@feedmepos/mf-order-setting 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{KioskDevicesView-BHzBoF_O.js → KioskDevicesView-wPKewwAS.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-C5JpMDP_.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BCJPU2la.js} +2 -2
- package/dist/{KioskSettingView-i8tgH3dF.js → KioskSettingView-CV54HpY2.js} +142 -140
- package/dist/{KioskView-DW7vX6rJ.js → KioskView-B4mggCt0.js} +4 -4
- package/dist/OrderSettingsView-CKGRFx_2.js +50624 -0
- package/dist/{app-C15xKXga.js → app-D4exdzAx.js} +20 -15
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-KE7XM_kc.js → dayjs.min-C_sCJHuD.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +5 -0
- package/dist/frontend/mf-order/src/main.d.ts +5 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +393 -393
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +75 -75
- package/dist/frontend/mf-order/src/stores/table-settings.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +50 -50
- package/dist/frontend/mf-order/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue.d.ts +5 -0
- package/dist/frontend/mf-order/src/views/order-settings/servicecharge/ServiceChargeRule.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DGfFxIZo.js → index-Cvhc_ltu.js} +2 -2
- package/dist/menu.dto-CeUdKgTW.js +103445 -0
- package/dist/package/entity/booking/booking.do.d.ts +502 -502
- package/dist/package/entity/delivery/delivery.dto.d.ts +100 -100
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +17 -0
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +1973 -836
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +32 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +555 -555
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +15 -0
- package/dist/package/entity/order/order.do.d.ts +5 -0
- package/dist/package/entity/order/order.dto.d.ts +208 -200
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +4 -4
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +100 -100
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +100 -100
- package/dist/package/entity/order-platform/menu.dto.d.ts +410 -410
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +100 -100
- package/dist/package/entity/queue/queue.do.d.ts +34 -34
- package/package.json +3 -3
- package/src/locales/en-US.json +2 -0
- package/src/locales/th-TH.json +2 -0
- package/src/locales/zh-CN.json +1 -0
- package/src/stores/menu/menu.ts +1 -1
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +11 -1
- package/src/views/order-settings/delivery/DeliverySetting.vue +11 -16
- package/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue +26 -9
- package/src/views/order-settings/delivery/integrated-delivery/DeliverooSetting.vue +12 -1
- package/dist/OrderSettingsView-D3SQHET3.js +0 -74796
- package/dist/menu.dto-CLARGRsi.js +0 -126428
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as U, resolveComponent as T, createElementBlock as I, openBlock as
|
|
1
|
+
import { defineComponent as U, resolveComponent as T, createElementBlock as I, openBlock as v, createElementVNode as m, toDisplayString as V, unref as l, Fragment as B, renderList as j, createVNode as o, computed as D, withDirectives as Y, vShow as W, createBlock as M, createCommentVNode as L, ref as O, onMounted as te, withCtx as R, createTextVNode as le } from "vue";
|
|
2
2
|
import { useI18n as F } from "@feedmepos/mf-common";
|
|
3
|
-
import { F as $, c as
|
|
3
|
+
import { F as $, c as y } from "./menu.dto-CeUdKgTW.js";
|
|
4
4
|
import { _ as ie, u as de } from "./index-BXsnV_eO.js";
|
|
5
5
|
import { useSnackbar as oe } from "@feedmepos/ui-library";
|
|
6
6
|
function ue(P, h) {
|
|
@@ -22,17 +22,17 @@ const se = {
|
|
|
22
22
|
}
|
|
23
23
|
return (i, b) => {
|
|
24
24
|
const d = T("FmTextField");
|
|
25
|
-
return
|
|
25
|
+
return v(), I("div", re, [
|
|
26
26
|
m("span", pe, V(l(e)("order.submitOrderInstruction")), 1),
|
|
27
|
-
(
|
|
27
|
+
(v(!0), I(B, null, j(n.fields, (r) => (v(), I("div", {
|
|
28
28
|
class: "flex flex-col gap-10",
|
|
29
|
-
key:
|
|
29
|
+
key: r.title
|
|
30
30
|
}, [
|
|
31
31
|
o(d, {
|
|
32
|
-
"model-value":
|
|
33
|
-
label:
|
|
34
|
-
placeholder:
|
|
35
|
-
"onUpdate:modelValue": (_) => g(
|
|
32
|
+
"model-value": r.value,
|
|
33
|
+
label: r.title,
|
|
34
|
+
placeholder: r.defaultValue,
|
|
35
|
+
"onUpdate:modelValue": (_) => g(r.id, _)
|
|
36
36
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"])
|
|
37
37
|
]))), 128))
|
|
38
38
|
]);
|
|
@@ -71,7 +71,7 @@ const se = {
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
const b = (u) => u < 0 ? e("order.nonNegativeRule") : !0, d = (u) => u <= (n.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0,
|
|
74
|
+
const b = (u) => u < 0 ? e("order.nonNegativeRule") : !0, d = (u) => u <= (n.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, r = D(() => [b]), _ = D(() => [b]), c = D(() => [b, d]);
|
|
75
75
|
D(() => {
|
|
76
76
|
const a = se.applyPadDigits(5, n.displayStand.padDigit ?? 0);
|
|
77
77
|
return `Preview: ${n.displayStand.prefix}${a}`;
|
|
@@ -100,22 +100,22 @@ const se = {
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function q(u) {
|
|
104
104
|
p("updateDisplayStand", {
|
|
105
105
|
...n.displayStand,
|
|
106
106
|
prefix: u
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Q(u) {
|
|
110
110
|
u && p("updateDisplayStand", {
|
|
111
111
|
...n.displayStand,
|
|
112
112
|
padDigit: u
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
return (u, a) => {
|
|
116
|
-
const
|
|
117
|
-
return
|
|
118
|
-
o(
|
|
116
|
+
const f = T("FmSwitch"), E = T("FmTextField"), C = T("FmStepperField");
|
|
117
|
+
return v(), I("div", null, [
|
|
118
|
+
o(f, {
|
|
119
119
|
"model-value": u.displayStand.enabled,
|
|
120
120
|
label: l(e)("order.displayStand"),
|
|
121
121
|
"label-placement": "right",
|
|
@@ -128,7 +128,7 @@ const se = {
|
|
|
128
128
|
"model-value": u.displayStand.prefix,
|
|
129
129
|
label: l(e)("order.prefix"),
|
|
130
130
|
placeholder: l(e)("order.prefix"),
|
|
131
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": q
|
|
132
132
|
}, null, 8, ["model-value", "label", "placeholder"])
|
|
133
133
|
]),
|
|
134
134
|
m("div", fe, [
|
|
@@ -146,7 +146,7 @@ const se = {
|
|
|
146
146
|
"model-value": u.displayStand.standSlotRange.max,
|
|
147
147
|
label: l(e)("order.end"),
|
|
148
148
|
labelMark: "required",
|
|
149
|
-
rules:
|
|
149
|
+
rules: c.value,
|
|
150
150
|
placeholder: l(e)("order.enterANumber"),
|
|
151
151
|
"onUpdate:modelValue": A
|
|
152
152
|
}, null, 8, ["model-value", "label", "rules", "placeholder"])
|
|
@@ -156,19 +156,19 @@ const se = {
|
|
|
156
156
|
"model-value": u.displayStand.padDigit,
|
|
157
157
|
label: l(e)("order.padDigit"),
|
|
158
158
|
labelMark: "required",
|
|
159
|
-
rules:
|
|
159
|
+
rules: r.value,
|
|
160
160
|
placeholder: l(e)("order.padDigit"),
|
|
161
|
-
"onUpdate:modelValue":
|
|
161
|
+
"onUpdate:modelValue": Q
|
|
162
162
|
}, null, 8, ["model-value", "label", "rules", "placeholder"])
|
|
163
163
|
])
|
|
164
164
|
], 512), [
|
|
165
|
-
[
|
|
165
|
+
[W, u.displayStand.enabled]
|
|
166
166
|
]),
|
|
167
167
|
Y(o(G, {
|
|
168
168
|
fields: g.value,
|
|
169
169
|
"onUpdate:field": i
|
|
170
170
|
}, null, 8, ["fields"]), [
|
|
171
|
-
[
|
|
171
|
+
[W, u.displayStand.enabled]
|
|
172
172
|
])
|
|
173
173
|
]);
|
|
174
174
|
};
|
|
@@ -200,18 +200,18 @@ const se = {
|
|
|
200
200
|
enabled: d
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
function b(d,
|
|
203
|
+
function b(d, r) {
|
|
204
204
|
p("update-pick-up", {
|
|
205
205
|
...n.form,
|
|
206
206
|
submitOrderInstruction: {
|
|
207
207
|
...n.form.submitOrderInstruction,
|
|
208
|
-
[d]:
|
|
208
|
+
[d]: r
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
return (d,
|
|
212
|
+
return (d, r) => {
|
|
213
213
|
const _ = T("FmSwitch");
|
|
214
|
-
return
|
|
214
|
+
return v(), I("div", null, [
|
|
215
215
|
o(_, {
|
|
216
216
|
"model-value": d.form.enabled,
|
|
217
217
|
label: l(e)("order.pickAtCounter"),
|
|
@@ -222,7 +222,7 @@ const se = {
|
|
|
222
222
|
fields: g.value,
|
|
223
223
|
"onUpdate:field": b
|
|
224
224
|
}, null, 8, ["fields"]), [
|
|
225
|
-
[
|
|
225
|
+
[W, d.form.enabled]
|
|
226
226
|
])
|
|
227
227
|
]);
|
|
228
228
|
};
|
|
@@ -254,9 +254,9 @@ const se = {
|
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
const i = P, b = h;
|
|
257
|
-
return (d,
|
|
257
|
+
return (d, r) => {
|
|
258
258
|
const _ = T("FmSwitch");
|
|
259
|
-
return
|
|
259
|
+
return v(), I("div", Se, [
|
|
260
260
|
m("div", Pe, [
|
|
261
261
|
o(_, {
|
|
262
262
|
"model-value": d.v.enabled,
|
|
@@ -265,18 +265,18 @@ const se = {
|
|
|
265
265
|
"onUpdate:modelValue": g
|
|
266
266
|
}, null, 8, ["model-value", "label"]),
|
|
267
267
|
Y(m("div", ge, [
|
|
268
|
-
d.v.pickUp ? (
|
|
268
|
+
d.v.pickUp ? (v(), M(be, {
|
|
269
269
|
key: 0,
|
|
270
270
|
form: d.v.pickUp,
|
|
271
271
|
onUpdatePickUp: n
|
|
272
272
|
}, null, 8, ["form"])) : L("", !0),
|
|
273
|
-
d.v.displayStand ? (
|
|
273
|
+
d.v.displayStand ? (v(), M(ve, {
|
|
274
274
|
key: 1,
|
|
275
275
|
"display-stand": d.v.displayStand,
|
|
276
276
|
onUpdateDisplayStand: p
|
|
277
277
|
}, null, 8, ["display-stand"])) : L("", !0)
|
|
278
278
|
], 512), [
|
|
279
|
-
[
|
|
279
|
+
[W, d.v.enabled]
|
|
280
280
|
])
|
|
281
281
|
])
|
|
282
282
|
]);
|
|
@@ -306,18 +306,18 @@ const se = {
|
|
|
306
306
|
function i(d) {
|
|
307
307
|
p("updateTakeaway", { ...n.v, enabled: d });
|
|
308
308
|
}
|
|
309
|
-
function b(d,
|
|
309
|
+
function b(d, r) {
|
|
310
310
|
p("updateTakeaway", {
|
|
311
311
|
...n.v,
|
|
312
312
|
submitOrderInstruction: {
|
|
313
313
|
...n.v.submitOrderInstruction,
|
|
314
|
-
[d]:
|
|
314
|
+
[d]: r
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
|
-
return (d,
|
|
318
|
+
return (d, r) => {
|
|
319
319
|
const _ = T("FmSwitch");
|
|
320
|
-
return
|
|
320
|
+
return v(), I("div", null, [
|
|
321
321
|
o(_, {
|
|
322
322
|
"model-value": d.v.enabled,
|
|
323
323
|
label: l(e)("order.takeaway"),
|
|
@@ -329,7 +329,7 @@ const se = {
|
|
|
329
329
|
fields: g.value,
|
|
330
330
|
"onUpdate:field": b
|
|
331
331
|
}, null, 8, ["fields"]), [
|
|
332
|
-
[
|
|
332
|
+
[W, d.v.enabled]
|
|
333
333
|
])
|
|
334
334
|
]);
|
|
335
335
|
};
|
|
@@ -363,33 +363,33 @@ const se = {
|
|
|
363
363
|
emits: ["update:paymentTypes", "update:offlinePaymentTypes", "update:ePaymentTypes"],
|
|
364
364
|
setup(P, { emit: h }) {
|
|
365
365
|
const { t: e } = F(), n = P, p = h;
|
|
366
|
-
async function g(
|
|
366
|
+
async function g(s) {
|
|
367
367
|
p(
|
|
368
368
|
"update:offlinePaymentTypes",
|
|
369
|
-
n.offlinePaymentTypes.filter((t, x) => x !==
|
|
369
|
+
n.offlinePaymentTypes.filter((t, x) => x !== s)
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
372
|
const i = D(() => (n.paymentTypes || []).includes($.enum.ePayment)), b = D(() => {
|
|
373
|
-
const
|
|
374
|
-
return
|
|
375
|
-
}), d = O(!1),
|
|
373
|
+
const s = n.paymentTypes || [], t = n.offlinePaymentTypes || [];
|
|
374
|
+
return s.includes($.enum.cash) || t.length > 0;
|
|
375
|
+
}), d = O(!1), r = O([]), _ = O(), c = O([]), w = O(!1), k = O(!1), A = [
|
|
376
376
|
{ label: e("order.offlinePayment"), value: "offline" },
|
|
377
377
|
{ label: e("order.ePayment"), value: "e-payment" }
|
|
378
|
-
],
|
|
379
|
-
const
|
|
380
|
-
b.value &&
|
|
378
|
+
], q = () => {
|
|
379
|
+
const s = [];
|
|
380
|
+
b.value && s.push("offline"), i.value && s.push("e-payment"), r.value = s, d.value = s.length === A.length, Object.keys(n.ePaymentTypes).length !== 0 && (n.ePaymentTypes.card.terminal ? (_.value = y.enum.TERMINAL, w.value = !0) : n.ePaymentTypes.card.nfc && (_.value = y.enum.NFC, w.value = !0), n.ePaymentTypes.eWallet.qrPay && (c.value.push(y.enum.QRPAY), k.value = !0), n.ePaymentTypes.eWallet.scanPay && (c.value.push(y.enum.SCANPAY), k.value = !0), n.ePaymentTypes.eWallet.terminalScanPay && (c.value.push(y.enum.TERMINAL_SCAN_PAY), k.value = !0), n.ePaymentTypes.eWallet.terminalQrPay && (c.value.push(y.enum.TERMINAL_QR_PAY), k.value = !0));
|
|
381
381
|
};
|
|
382
|
-
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
const t = [], x =
|
|
386
|
-
|
|
387
|
-
}, u = (
|
|
388
|
-
const t =
|
|
389
|
-
|
|
390
|
-
const x = [], N =
|
|
391
|
-
|
|
392
|
-
}, a = (
|
|
382
|
+
q();
|
|
383
|
+
const Q = (s) => {
|
|
384
|
+
r.value = s ? A.map((N) => N.value) : [], d.value = s;
|
|
385
|
+
const t = [], x = s ? n.offlinePaymentTypes || [] : [];
|
|
386
|
+
r.value.includes("e-payment") && (t.push($.enum.ePayment), w.value = !0, k.value = !0), r.value.includes("offline") && t.push($.enum.cash), p("update:paymentTypes", t), p("update:offlinePaymentTypes", x), E(w.value), C(k.value);
|
|
387
|
+
}, u = (s) => {
|
|
388
|
+
const t = r.value;
|
|
389
|
+
r.value = s, d.value = s.length === A.length;
|
|
390
|
+
const x = [], N = s.includes("offline") ? n.offlinePaymentTypes || [] : [];
|
|
391
|
+
s.includes("e-payment") && x.push($.enum.ePayment), s.includes("offline") && x.push($.enum.cash), t.includes("e-payment") || (w.value = !0, k.value = !0, E(w.value), C(k.value)), p("update:paymentTypes", x), p("update:offlinePaymentTypes", N);
|
|
392
|
+
}, a = (s) => {
|
|
393
393
|
const t = {
|
|
394
394
|
card: {
|
|
395
395
|
terminal: !1,
|
|
@@ -402,59 +402,61 @@ const se = {
|
|
|
402
402
|
terminalQrPay: !1
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
},
|
|
407
|
-
const
|
|
405
|
+
r.value.includes("e-payment") && (s == y.enum.TERMINAL && (t.card.terminal = !0), s == y.enum.NFC && (t.card.nfc = !0), c.value.length > 0 && (c.value.includes(y.enum.QRPAY) && (t.eWallet.qrPay = !0), c.value.includes(y.enum.SCANPAY) && (t.eWallet.scanPay = !0), c.value.includes(y.enum.TERMINAL_SCAN_PAY) && (t.eWallet.terminalScanPay = !0), c.value.includes(y.enum.TERMINAL_QR_PAY) && (t.eWallet.terminalQrPay = !0))), p("update:ePaymentTypes", t);
|
|
406
|
+
}, f = () => {
|
|
407
|
+
const s = {
|
|
408
408
|
card: {
|
|
409
409
|
terminal: !1,
|
|
410
410
|
nfc: !1
|
|
411
411
|
},
|
|
412
412
|
eWallet: {
|
|
413
413
|
qrPay: !1,
|
|
414
|
-
scanPay: !1
|
|
414
|
+
scanPay: !1,
|
|
415
|
+
terminalScanPay: !1,
|
|
416
|
+
terminalQrPay: !1
|
|
415
417
|
}
|
|
416
418
|
};
|
|
417
|
-
|
|
418
|
-
}, E = (
|
|
419
|
-
_.value = "",
|
|
420
|
-
}, C = (
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
]),
|
|
419
|
+
r.value.includes("e-payment") && (_.value && (_.value === y.enum.TERMINAL && (s.card.terminal = !0), _.value === y.enum.NFC && (s.card.nfc = !0)), c.value.includes(y.enum.QRPAY) && (s.eWallet.qrPay = !0), c.value.includes(y.enum.SCANPAY) && (s.eWallet.scanPay = !0), c.value.includes(y.enum.TERMINAL_SCAN_PAY) && (s.eWallet.terminalScanPay = !0), c.value.includes(y.enum.TERMINAL_QR_PAY) && (s.eWallet.terminalQrPay = !0)), p("update:ePaymentTypes", s);
|
|
420
|
+
}, E = (s) => {
|
|
421
|
+
_.value = "", s && (_.value = y.enum.TERMINAL), f();
|
|
422
|
+
}, C = (s) => {
|
|
423
|
+
c.value = [], s && (c.value = [
|
|
424
|
+
y.enum.QRPAY,
|
|
425
|
+
y.enum.SCANPAY
|
|
426
|
+
]), f();
|
|
425
427
|
};
|
|
426
428
|
return te(() => {
|
|
427
|
-
|
|
428
|
-
}), (
|
|
429
|
+
q();
|
|
430
|
+
}), (s, t) => {
|
|
429
431
|
var J, X;
|
|
430
|
-
const x = T("FmCheckbox"), N = T("FmCardSection"),
|
|
431
|
-
return
|
|
432
|
+
const x = T("FmCheckbox"), N = T("FmCardSection"), K = T("FmCard"), ee = T("FmButton"), z = T("FmSwitch"), H = T("FmRadio"), ae = T("FmRadioGroup");
|
|
433
|
+
return v(), I(B, null, [
|
|
432
434
|
o(x, {
|
|
433
435
|
value: "",
|
|
434
436
|
"model-value": d.value,
|
|
435
437
|
label: l(e)("order.all"),
|
|
436
|
-
indeterminate:
|
|
437
|
-
"onUpdate:modelValue":
|
|
438
|
+
indeterminate: r.value.length > 0 && r.value.length < A.length,
|
|
439
|
+
"onUpdate:modelValue": Q
|
|
438
440
|
}, null, 8, ["model-value", "label", "indeterminate"]),
|
|
439
441
|
m("div", Ie, [
|
|
440
442
|
o(x, {
|
|
441
|
-
modelValue:
|
|
443
|
+
modelValue: r.value,
|
|
442
444
|
"onUpdate:modelValue": [
|
|
443
|
-
t[0] || (t[0] = (S) =>
|
|
445
|
+
t[0] || (t[0] = (S) => r.value = S),
|
|
444
446
|
u
|
|
445
447
|
],
|
|
446
448
|
label: A[0].label,
|
|
447
449
|
value: A[0].value
|
|
448
450
|
}, null, 8, ["modelValue", "label", "value"])
|
|
449
451
|
]),
|
|
450
|
-
|
|
452
|
+
r.value.includes(A[0].value) && ((J = P.offlinePaymentTypes) == null ? void 0 : J.length) === 0 ? (v(), I("div", Te, [
|
|
451
453
|
o(ie, {
|
|
452
454
|
"onUpdate:offlinePaymentTypes": t[1] || (t[1] = (S) => p("update:offlinePaymentTypes", S))
|
|
453
455
|
})
|
|
454
456
|
])) : L("", !0),
|
|
455
|
-
|
|
456
|
-
((X = P.offlinePaymentTypes) == null ? void 0 : X.length) === 0 ? (
|
|
457
|
-
o(
|
|
457
|
+
r.value.includes("offline") ? (v(), I("div", ke, [
|
|
458
|
+
((X = P.offlinePaymentTypes) == null ? void 0 : X.length) === 0 ? (v(), I("div", xe, [
|
|
459
|
+
o(K, { variant: "outlined" }, {
|
|
458
460
|
default: R(() => [
|
|
459
461
|
o(N, null, {
|
|
460
462
|
default: R(() => [
|
|
@@ -466,8 +468,8 @@ const se = {
|
|
|
466
468
|
_: 1
|
|
467
469
|
})
|
|
468
470
|
])) : L("", !0),
|
|
469
|
-
(
|
|
470
|
-
o(
|
|
471
|
+
(v(!0), I(B, null, j(P.offlinePaymentTypes, (S, ne) => (v(), I("p", { key: ne }, [
|
|
472
|
+
o(K, { variant: "outlined" }, {
|
|
471
473
|
default: R(() => [
|
|
472
474
|
o(N, { class: "flex items-center justify-between" }, {
|
|
473
475
|
default: R(() => [
|
|
@@ -476,7 +478,7 @@ const se = {
|
|
|
476
478
|
t[10] || (t[10] = m("br", null, null, -1)),
|
|
477
479
|
m("span", null, V(S.instruction), 1)
|
|
478
480
|
]),
|
|
479
|
-
(
|
|
481
|
+
(v(!0), I(B, null, j(P.offlinePaymentTypes, (Ge, Z) => (v(), I("div", { key: Z }, [
|
|
480
482
|
o(ee, {
|
|
481
483
|
"append-icon": "delete",
|
|
482
484
|
variant: "tertiary",
|
|
@@ -492,16 +494,16 @@ const se = {
|
|
|
492
494
|
]))), 128))
|
|
493
495
|
])) : L("", !0),
|
|
494
496
|
o(x, {
|
|
495
|
-
modelValue:
|
|
497
|
+
modelValue: r.value,
|
|
496
498
|
"onUpdate:modelValue": [
|
|
497
|
-
t[2] || (t[2] = (S) =>
|
|
499
|
+
t[2] || (t[2] = (S) => r.value = S),
|
|
498
500
|
u
|
|
499
501
|
],
|
|
500
502
|
label: A[1].label,
|
|
501
503
|
value: A[1].value
|
|
502
504
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
503
|
-
|
|
504
|
-
o(
|
|
505
|
+
r.value.includes(A[1].value) ? (v(), I("div", we, [
|
|
506
|
+
o(K, { variant: "outlined" }, {
|
|
505
507
|
default: R(() => [
|
|
506
508
|
o(N, null, {
|
|
507
509
|
default: R(() => [
|
|
@@ -528,17 +530,17 @@ const se = {
|
|
|
528
530
|
default: R(() => [
|
|
529
531
|
o(H, {
|
|
530
532
|
label: l(e)("order.terminal"),
|
|
531
|
-
value: l(
|
|
533
|
+
value: l(y).enum.TERMINAL
|
|
532
534
|
}, null, 8, ["label", "value"]),
|
|
533
535
|
o(H, {
|
|
534
536
|
label: l(e)("order.nfc"),
|
|
535
|
-
value: l(
|
|
537
|
+
value: l(y).enum.NFC
|
|
536
538
|
}, null, 8, ["label", "value"])
|
|
537
539
|
]),
|
|
538
540
|
_: 1
|
|
539
541
|
}, 8, ["modelValue"])
|
|
540
542
|
], 512), [
|
|
541
|
-
[
|
|
543
|
+
[W, w.value]
|
|
542
544
|
])
|
|
543
545
|
]),
|
|
544
546
|
_: 1
|
|
@@ -546,7 +548,7 @@ const se = {
|
|
|
546
548
|
]),
|
|
547
549
|
_: 1
|
|
548
550
|
}),
|
|
549
|
-
o(
|
|
551
|
+
o(K, {
|
|
550
552
|
variant: "outlined",
|
|
551
553
|
class: "mt-2"
|
|
552
554
|
}, {
|
|
@@ -567,44 +569,44 @@ const se = {
|
|
|
567
569
|
Y(m("div", De, [
|
|
568
570
|
m("div", Ce, [
|
|
569
571
|
o(x, {
|
|
570
|
-
modelValue:
|
|
572
|
+
modelValue: c.value,
|
|
571
573
|
"onUpdate:modelValue": [
|
|
572
|
-
t[6] || (t[6] = (S) =>
|
|
573
|
-
|
|
574
|
+
t[6] || (t[6] = (S) => c.value = S),
|
|
575
|
+
f
|
|
574
576
|
],
|
|
575
577
|
label: l(e)("order.qrPay"),
|
|
576
|
-
value: l(
|
|
578
|
+
value: l(y).enum.QRPAY
|
|
577
579
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
578
580
|
o(x, {
|
|
579
|
-
modelValue:
|
|
581
|
+
modelValue: c.value,
|
|
580
582
|
"onUpdate:modelValue": [
|
|
581
|
-
t[7] || (t[7] = (S) =>
|
|
582
|
-
|
|
583
|
+
t[7] || (t[7] = (S) => c.value = S),
|
|
584
|
+
f
|
|
583
585
|
],
|
|
584
586
|
label: l(e)("order.scanPay"),
|
|
585
|
-
value: l(
|
|
587
|
+
value: l(y).enum.SCANPAY
|
|
586
588
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
587
589
|
o(x, {
|
|
588
|
-
modelValue:
|
|
590
|
+
modelValue: c.value,
|
|
589
591
|
"onUpdate:modelValue": [
|
|
590
|
-
t[8] || (t[8] = (S) =>
|
|
591
|
-
|
|
592
|
+
t[8] || (t[8] = (S) => c.value = S),
|
|
593
|
+
f
|
|
592
594
|
],
|
|
593
595
|
label: l(e)("order.terminalScanPay"),
|
|
594
|
-
value: l(
|
|
596
|
+
value: l(y).enum.TERMINAL_SCAN_PAY
|
|
595
597
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
596
598
|
o(x, {
|
|
597
|
-
modelValue:
|
|
599
|
+
modelValue: c.value,
|
|
598
600
|
"onUpdate:modelValue": [
|
|
599
|
-
t[9] || (t[9] = (S) =>
|
|
600
|
-
|
|
601
|
+
t[9] || (t[9] = (S) => c.value = S),
|
|
602
|
+
f
|
|
601
603
|
],
|
|
602
604
|
label: l(e)("order.terminalQrPay"),
|
|
603
|
-
value: l(
|
|
605
|
+
value: l(y).enum.TERMINAL_QR_PAY
|
|
604
606
|
}, null, 8, ["modelValue", "label", "value"])
|
|
605
607
|
])
|
|
606
608
|
], 512), [
|
|
607
|
-
[
|
|
609
|
+
[W, k.value]
|
|
608
610
|
])
|
|
609
611
|
]),
|
|
610
612
|
_: 1
|
|
@@ -628,7 +630,7 @@ const se = {
|
|
|
628
630
|
};
|
|
629
631
|
return (g, i) => {
|
|
630
632
|
const b = T("FmSwitch");
|
|
631
|
-
return
|
|
633
|
+
return v(), M(b, {
|
|
632
634
|
"model-value": g.v,
|
|
633
635
|
label: `${l(e)("order.hideNotAvailableMenuItem")}`,
|
|
634
636
|
"label-placement": "right",
|
|
@@ -650,7 +652,7 @@ const se = {
|
|
|
650
652
|
}
|
|
651
653
|
return (g, i) => {
|
|
652
654
|
const b = T("FmSwitch");
|
|
653
|
-
return
|
|
655
|
+
return v(), I("div", null, [
|
|
654
656
|
o(b, {
|
|
655
657
|
"model-value": g.v,
|
|
656
658
|
label: l(e)("order.displayPaxDialogDescription"),
|
|
@@ -664,7 +666,7 @@ const se = {
|
|
|
664
666
|
}), Ne = {
|
|
665
667
|
key: 0,
|
|
666
668
|
class: "flex flex-col gap-32"
|
|
667
|
-
}, Ee = { class: "flex flex-col gap-2" }, Oe = { class: "fm-typo-en-title-sm-600" }, $e = { class: "flex flex-col gap-2" }, Me = { class: "fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col gap-2" },
|
|
669
|
+
}, Ee = { class: "flex flex-col gap-2" }, Oe = { class: "fm-typo-en-title-sm-600" }, $e = { class: "flex flex-col gap-2" }, Me = { class: "fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col gap-2" }, We = { class: "fm-typo-en-title-sm-600" }, qe = { class: "flex flex-col gap-2" }, Le = { class: "fm-typo-en-title-sm-600" }, Qe = { class: "flex flex-col gap-2" }, Ke = { class: "fm-typo-en-title-sm-600" }, Be = { class: "fm-typo-en-title-sm-400 font-bold" }, je = { key: 1 }, aa = /* @__PURE__ */ U({
|
|
668
670
|
__name: "KioskSettingView",
|
|
669
671
|
props: {
|
|
670
672
|
restaurantId: {},
|
|
@@ -698,25 +700,25 @@ const se = {
|
|
|
698
700
|
}
|
|
699
701
|
};
|
|
700
702
|
if (a.dineIn.enabled && a.dineIn.displayStand.enabled) {
|
|
701
|
-
const
|
|
702
|
-
return
|
|
703
|
+
const f = a.dineIn.displayStand;
|
|
704
|
+
return f.padDigit != null && f.padDigit >= 0 && f.standSlotRange.min && f.standSlotRange.max && f.standSlotRange.min <= f.standSlotRange.max ? {
|
|
703
705
|
...a,
|
|
704
706
|
dineIn: {
|
|
705
707
|
enabled: a.dineIn.enabled,
|
|
706
708
|
sequenceNumber: a.dineIn.sequenceNumber,
|
|
707
709
|
pickUp: a.dineIn.pickUp,
|
|
708
710
|
displayStand: {
|
|
709
|
-
enabled:
|
|
710
|
-
padDigit:
|
|
711
|
+
enabled: f.enabled,
|
|
712
|
+
padDigit: f.padDigit,
|
|
711
713
|
standSlotRange: {
|
|
712
|
-
min:
|
|
713
|
-
max:
|
|
714
|
+
min: f.standSlotRange.min,
|
|
715
|
+
max: f.standSlotRange.max
|
|
714
716
|
},
|
|
715
|
-
prefix:
|
|
716
|
-
enablePaxDialog:
|
|
717
|
+
prefix: f.prefix ?? "",
|
|
718
|
+
enablePaxDialog: f.enablePaxDialog,
|
|
717
719
|
submitOrderInstruction: {
|
|
718
|
-
payAtCounter:
|
|
719
|
-
paid:
|
|
720
|
+
payAtCounter: f.submitOrderInstruction.payAtCounter ?? null,
|
|
721
|
+
paid: f.submitOrderInstruction.paid ?? null
|
|
720
722
|
}
|
|
721
723
|
}
|
|
722
724
|
}
|
|
@@ -745,13 +747,13 @@ const se = {
|
|
|
745
747
|
}
|
|
746
748
|
};
|
|
747
749
|
}), { startAsyncCall: d } = de();
|
|
748
|
-
async function
|
|
750
|
+
async function r(a) {
|
|
749
751
|
i.value.dineIn = a;
|
|
750
752
|
}
|
|
751
753
|
async function _(a) {
|
|
752
754
|
i.value.takeaway = a;
|
|
753
755
|
}
|
|
754
|
-
async function
|
|
756
|
+
async function c(a) {
|
|
755
757
|
i.value.menuItem.showAllOnly = a;
|
|
756
758
|
}
|
|
757
759
|
async function w(a) {
|
|
@@ -761,10 +763,10 @@ const se = {
|
|
|
761
763
|
i.value.paymentSetting.ePaymentTypes = a;
|
|
762
764
|
}
|
|
763
765
|
const A = D(() => (i.value.paymentSetting.paymentTypes || []).includes($.enum.ePayment));
|
|
764
|
-
async function
|
|
766
|
+
async function q(a) {
|
|
765
767
|
i.value.dineIn.displayStand.enablePaxDialog = a, i.value.dineIn.pickUp.enablePaxDialog = a;
|
|
766
768
|
}
|
|
767
|
-
const
|
|
769
|
+
const Q = D(() => (i.value.dineIn.displayStand.enabled && i.value.dineIn.displayStand.enablePaxDialog || i.value.dineIn.pickUp.enablePaxDialog) ?? !1);
|
|
768
770
|
async function u() {
|
|
769
771
|
if (b.value) {
|
|
770
772
|
const a = b.value;
|
|
@@ -777,43 +779,43 @@ const se = {
|
|
|
777
779
|
type: "error"
|
|
778
780
|
});
|
|
779
781
|
}
|
|
780
|
-
return (a,
|
|
782
|
+
return (a, f) => {
|
|
781
783
|
const E = T("FmButton");
|
|
782
|
-
return i.value ? (
|
|
784
|
+
return i.value ? (v(), I("div", Ne, [
|
|
783
785
|
m("div", Ee, [
|
|
784
786
|
m("span", Oe, V(l(e)("order.dineIn")), 1),
|
|
785
|
-
(
|
|
787
|
+
(v(), M(_e, {
|
|
786
788
|
key: "dine-in-" + a.restaurantId,
|
|
787
789
|
v: i.value.dineIn,
|
|
788
|
-
onUpdateDineIn:
|
|
790
|
+
onUpdateDineIn: r
|
|
789
791
|
}, null, 8, ["v"]))
|
|
790
792
|
]),
|
|
791
793
|
m("div", $e, [
|
|
792
794
|
m("span", Me, V(l(e)("order.takeawayTitle")), 1),
|
|
793
|
-
(
|
|
795
|
+
(v(), M(he, {
|
|
794
796
|
key: "takeaway-" + a.restaurantId,
|
|
795
797
|
v: i.value.takeaway,
|
|
796
798
|
onUpdateTakeaway: _
|
|
797
799
|
}, null, 8, ["v"]))
|
|
798
800
|
]),
|
|
799
801
|
m("div", Ye, [
|
|
800
|
-
m("span",
|
|
801
|
-
(
|
|
802
|
+
m("span", We, V(l(e)("order.menuItem")), 1),
|
|
803
|
+
(v(), M(Ue, {
|
|
802
804
|
key: "menu-item-" + a.restaurantId,
|
|
803
805
|
v: i.value.menuItem.showAllOnly,
|
|
804
|
-
"onUpdate:modelValue":
|
|
806
|
+
"onUpdate:modelValue": c
|
|
805
807
|
}, null, 8, ["v"]))
|
|
806
808
|
]),
|
|
807
|
-
m("div",
|
|
809
|
+
m("div", qe, [
|
|
808
810
|
m("span", Le, V(l(e)("order.displayPaxDialogTitle")), 1),
|
|
809
|
-
(
|
|
811
|
+
(v(), M(Fe, {
|
|
810
812
|
key: "enable-pax-dialog-" + a.restaurantId,
|
|
811
|
-
v:
|
|
812
|
-
onUpdateEnablePaxDialog:
|
|
813
|
+
v: Q.value,
|
|
814
|
+
onUpdateEnablePaxDialog: q
|
|
813
815
|
}, null, 8, ["v"]))
|
|
814
816
|
]),
|
|
815
|
-
m("div",
|
|
816
|
-
m("span",
|
|
817
|
+
m("div", Qe, [
|
|
818
|
+
m("span", Ke, V(l(e)("order.acceptedPayment")), 1),
|
|
817
819
|
m("span", Be, V(l(e)("order.configuration")), 1),
|
|
818
820
|
o(Re, {
|
|
819
821
|
"payment-types": i.value.paymentSetting.paymentTypes ?? [],
|
|
@@ -821,7 +823,7 @@ const se = {
|
|
|
821
823
|
"offline-payment-types": i.value.paymentSetting.offlinePaymentTypes ?? [],
|
|
822
824
|
ePaymentTypes: i.value.paymentSetting.ePaymentTypes ?? {},
|
|
823
825
|
"onUpdate:paymentTypes": w,
|
|
824
|
-
"onUpdate:offlinePaymentTypes":
|
|
826
|
+
"onUpdate:offlinePaymentTypes": f[0] || (f[0] = (C) => i.value.paymentSetting.offlinePaymentTypes = C),
|
|
825
827
|
"onUpdate:ePaymentTypes": k
|
|
826
828
|
}, null, 8, ["payment-types", "allow-e-payment", "offline-payment-types", "ePaymentTypes"])
|
|
827
829
|
]),
|
|
@@ -832,7 +834,7 @@ const se = {
|
|
|
832
834
|
disabled: !b.value,
|
|
833
835
|
onClick: u
|
|
834
836
|
}, null, 8, ["label", "disabled"])
|
|
835
|
-
])) : (
|
|
837
|
+
])) : (v(), I("div", je, V(l(e)("order.pleaseSelectRestaurant")), 1));
|
|
836
838
|
};
|
|
837
839
|
}
|
|
838
840
|
});
|