@feedmepos/mf-order-setting 0.0.83 → 0.0.84
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/{DisplaySystemView-BXy_OnbY.js → DisplaySystemView-4Bz8p26A.js} +1 -1
- package/dist/{KioskDevicesView-D3YR1e6K.js → KioskDevicesView-DdwFuenU.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js} +3 -3
- package/dist/{KioskSettingView-C3L9_8ag.js → KioskSettingView-D57KtQ-t.js} +289 -240
- package/dist/{KioskView-Cs6VBCj5.js → KioskView-fwBwUGCQ.js} +113 -103
- package/dist/{OrderSettingsView-BdaHRXda.js → OrderSettingsView-RhlyZmzs.js} +1772 -1766
- package/dist/{app-CP6AFTEu.js → app-ClOkRxOZ.js} +26 -6
- package/dist/app.js +1 -1
- package/dist/common/util/index.d.ts +9 -0
- package/dist/frontend/mf-order/src/app.d.ts +20 -0
- package/dist/frontend/mf-order/src/main.d.ts +20 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/languages.d.ts +7 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +9 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-LCS8oexE.js → index-5k7kGCpJ.js} +2 -2
- package/dist/{index-BckeUsPc.js → index-CKEbr9Es.js} +1 -1
- package/dist/{index-DoJzzpyh.js → index-I2YGevce.js} +1 -1
- package/dist/{order.dto-Bm04C1sQ.js → order.dto-Dbn-hRrm.js} +3294 -3235
- package/dist/package/entity/alert/alert-base.dto.d.ts +306 -0
- package/dist/package/entity/alert/alert.dto.d.ts +956 -0
- package/dist/package/entity/alert/alert.enum.d.ts +7 -0
- package/dist/package/entity/alert/categories/integration.d.ts +333 -0
- package/dist/package/entity/alert/categories/kiosk.d.ts +297 -0
- package/dist/package/entity/alert/categories/mini-program.d.ts +297 -0
- package/dist/package/entity/alert/investigation.dto.d.ts +86 -0
- package/dist/package/entity/alert/lark-callback.dto.d.ts +106 -0
- package/dist/package/entity/alert/suggestion.dto.d.ts +31 -0
- package/dist/package/entity/alert/suggestion.enum.d.ts +7 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +80 -0
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +575 -0
- package/dist/package/entity/index.d.ts +12 -0
- package/dist/package/entity/index.frontend.d.ts +1 -0
- package/dist/package/entity/member/member.dto.d.ts +2 -1
- package/dist/package/entity/order/order.do.d.ts +64 -7
- package/dist/package/entity/order/order.dto.d.ts +85 -67
- package/dist/package/entity/order/payment/payment.dto.d.ts +36 -28
- package/dist/package/entity/order-platform/external/auth/external-auth.dto.d.ts +9 -15
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +33 -0
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1185 -23
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1104 -52
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +2914 -88
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +38 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +26 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-availability.dto.d.ts +75 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +9 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +13 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood.enum.d.ts +6 -0
- package/dist/package/entity/order-platform/tng/tng-order.do.d.ts +6 -6
- package/dist/package/entity/order-platform/tng/tng.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +12 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/payment/transaction.d.ts +115 -30
- package/dist/package/entity/queue/queue.dto.d.ts +13 -11
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +5 -0
- package/src/locales/ja-JP.json +5 -0
- package/src/locales/th-TH.json +5 -0
- package/src/locales/zh-CN.json +5 -0
- package/src/modules/order-setting/kiosk/interface.ts +8 -0
- package/src/modules/order-setting/kiosk/languages.ts +29 -0
- package/src/stores/order-setting/mapper.spec.ts +44 -0
- package/src/stores/order-setting/mapper.ts +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +63 -0
- package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +6 -1
- package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { e as
|
|
3
|
-
import { c as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { useSnackbar as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as ie, computed as k, ref as $, onMounted as be, resolveComponent as S, openBlock as h, createBlock as H, withCtx as C, createVNode as s, unref as l, createElementVNode as r, withDirectives as U, vShow as R, toDisplayString as b, watch as ge, createElementBlock as L, createCommentVNode as Z, Fragment as Ie, renderList as Pe } from "vue";
|
|
2
|
+
import { e as oe, b as ue, s as me, d as Se, r as re, f as se, h as _e } from "./app-ClOkRxOZ.js";
|
|
3
|
+
import { c as p, K as xe, d as he } from "./order.dto-Dbn-hRrm.js";
|
|
4
|
+
import { _ as we, u as Ve, a as ke } from "./index-5k7kGCpJ.js";
|
|
5
|
+
import { useI18n as pe, FeedMeAuth as ce, useCoreStore as Te } from "@feedmepos/mf-common";
|
|
6
|
+
import { useSnackbar as Ce } from "@feedmepos/ui-library";
|
|
7
|
+
const Ae = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }, Ue = { class: "ml-7" }, Re = { class: "ml-7" }, Fe = { class: "flex flex-row gap-9" }, Ee = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "KioskPaymentTypeSection",
|
|
9
9
|
props: {
|
|
10
10
|
paymentTypes: {
|
|
@@ -29,12 +29,12 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:paymentTypes", "update:offlinePaymentTypes", "update:ePaymentTypes"],
|
|
32
|
-
setup(i, { emit:
|
|
33
|
-
const { t: e } =
|
|
34
|
-
Object.keys(
|
|
32
|
+
setup(i, { emit: c }) {
|
|
33
|
+
const { t: e } = pe(), g = i, w = c, P = k(() => (g.paymentTypes || []).includes(oe.F_ORDER_PAYMENT_TYPE.enum.ePayment)), I = $(), v = $([]), a = $(!1), A = $(!1), V = $(!1), W = () => {
|
|
34
|
+
Object.keys(g.ePaymentTypes).length !== 0 && (g.ePaymentTypes.terminal && (A.value = !0), g.ePaymentTypes.card.terminal ? (I.value = p.enum.TERMINAL, a.value = !0) : g.ePaymentTypes.card.nfc && (I.value = p.enum.NFC, a.value = !0), g.ePaymentTypes.eWallet.qrPay && (v.value.push(p.enum.QRPAY), V.value = !0), g.ePaymentTypes.eWallet.scanPay && (v.value.push(p.enum.SCANPAY), V.value = !0));
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
W();
|
|
37
|
+
const G = (y) => {
|
|
38
38
|
const d = {
|
|
39
39
|
terminal: !1,
|
|
40
40
|
card: {
|
|
@@ -46,9 +46,9 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
46
46
|
scanPay: !1
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
P.value && (
|
|
50
|
-
},
|
|
51
|
-
const
|
|
49
|
+
P.value && (y == p.enum.TERMINAL && (d.card.terminal = !0), y == p.enum.NFC && (d.card.nfc = !0), v.value.length > 0 && (v.value.includes(p.enum.QRPAY) && (d.eWallet.qrPay = !0), v.value.includes(p.enum.SCANPAY) && (d.eWallet.scanPay = !0))), A.value && (d.terminal = !0), w("update:ePaymentTypes", d);
|
|
50
|
+
}, T = () => {
|
|
51
|
+
const y = {
|
|
52
52
|
terminal: !1,
|
|
53
53
|
card: {
|
|
54
54
|
terminal: !1,
|
|
@@ -61,38 +61,38 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
61
61
|
terminalQrPay: !1
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
P.value && (I.value && (I.value ===
|
|
65
|
-
}, O = (
|
|
66
|
-
I.value = "",
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
]),
|
|
72
|
-
},
|
|
73
|
-
|
|
64
|
+
P.value && (I.value && (I.value === p.enum.TERMINAL && (y.card.terminal = !0), I.value === p.enum.NFC && (y.card.nfc = !0)), A.value && (y.terminal = !0), v.value.includes(p.enum.QRPAY) && (y.eWallet.qrPay = !0), v.value.includes(p.enum.SCANPAY) && (y.eWallet.scanPay = !0), v.value.includes(p.enum.TERMINAL_SCAN_PAY) && (y.eWallet.terminalScanPay = !0), v.value.includes(p.enum.TERMINAL_QR_PAY) && (y.eWallet.terminalQrPay = !0)), w("update:ePaymentTypes", y);
|
|
65
|
+
}, O = (y) => {
|
|
66
|
+
I.value = "", y && (I.value = p.enum.TERMINAL), T();
|
|
67
|
+
}, K = (y) => {
|
|
68
|
+
v.value = [], y && (v.value = [
|
|
69
|
+
p.enum.QRPAY,
|
|
70
|
+
p.enum.SCANPAY
|
|
71
|
+
]), T();
|
|
72
|
+
}, J = (y) => {
|
|
73
|
+
w("update:paymentTypes", y), y.includes(oe.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, V.value = !1, O(!1), K(!1));
|
|
74
74
|
};
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
}), (
|
|
78
|
-
const
|
|
79
|
-
return
|
|
75
|
+
return be(() => {
|
|
76
|
+
W();
|
|
77
|
+
}), (y, d) => {
|
|
78
|
+
const F = S("FmSwitch"), Y = S("FmRadio"), X = S("FmRadioGroup"), j = S("FmCardSection"), q = S("FmCard"), E = S("FmCheckbox");
|
|
79
|
+
return h(), H(we, {
|
|
80
80
|
"payment-types": i.paymentTypes,
|
|
81
81
|
"offline-payment-types": i.offlinePaymentTypes,
|
|
82
|
-
"allow-e-payment":
|
|
83
|
-
"allow-credit":
|
|
84
|
-
"onUpdate:paymentTypes":
|
|
85
|
-
"onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) =>
|
|
82
|
+
"allow-e-payment": g.allowEPayment,
|
|
83
|
+
"allow-credit": g.allowCredit,
|
|
84
|
+
"onUpdate:paymentTypes": J,
|
|
85
|
+
"onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) => w("update:offlinePaymentTypes", f || []))
|
|
86
86
|
}, {
|
|
87
|
-
"e-payment-note":
|
|
88
|
-
r("div",
|
|
87
|
+
"e-payment-note": C(() => [
|
|
88
|
+
r("div", Ae, b(l(e)("order.legacyEPaymentNote")), 1)
|
|
89
89
|
]),
|
|
90
|
-
"e-payment-content":
|
|
90
|
+
"e-payment-content": C(() => [
|
|
91
91
|
s(q, { variant: "outlined" }, {
|
|
92
|
-
default:
|
|
93
|
-
s(
|
|
94
|
-
default:
|
|
95
|
-
s(
|
|
92
|
+
default: C(() => [
|
|
93
|
+
s(j, null, {
|
|
94
|
+
default: C(() => [
|
|
95
|
+
s(F, {
|
|
96
96
|
label: l(e)("order.bankCard"),
|
|
97
97
|
sublabel: l(e)("order.cardPaymentDescription"),
|
|
98
98
|
"label-placement": "right",
|
|
@@ -103,29 +103,29 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
103
103
|
]
|
|
104
104
|
}, null, 8, ["label", "sublabel", "modelValue"]),
|
|
105
105
|
d[9] || (d[9] = r("br", null, null, -1)),
|
|
106
|
-
|
|
107
|
-
s(
|
|
106
|
+
U(r("div", Ue, [
|
|
107
|
+
s(X, {
|
|
108
108
|
modelValue: I.value,
|
|
109
109
|
"onUpdate:modelValue": [
|
|
110
110
|
d[1] || (d[1] = (f) => I.value = f),
|
|
111
|
-
|
|
111
|
+
G
|
|
112
112
|
],
|
|
113
113
|
inline: ""
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
s(
|
|
115
|
+
default: C(() => [
|
|
116
|
+
s(Y, {
|
|
117
117
|
label: l(e)("order.terminal"),
|
|
118
|
-
value: l(
|
|
118
|
+
value: l(p).enum.TERMINAL
|
|
119
119
|
}, null, 8, ["label", "value"]),
|
|
120
|
-
s(
|
|
120
|
+
s(Y, {
|
|
121
121
|
label: l(e)("order.nfc"),
|
|
122
|
-
value: l(
|
|
122
|
+
value: l(p).enum.NFC
|
|
123
123
|
}, null, 8, ["label", "value"])
|
|
124
124
|
]),
|
|
125
125
|
_: 1
|
|
126
126
|
}, 8, ["modelValue"])
|
|
127
127
|
], 512), [
|
|
128
|
-
[
|
|
128
|
+
[R, a.value]
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
@@ -137,17 +137,17 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
137
137
|
variant: "outlined",
|
|
138
138
|
class: "mt-2"
|
|
139
139
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
s(
|
|
142
|
-
default:
|
|
143
|
-
s(
|
|
140
|
+
default: C(() => [
|
|
141
|
+
s(j, null, {
|
|
142
|
+
default: C(() => [
|
|
143
|
+
s(F, {
|
|
144
144
|
label: l(e)("order.terminal"),
|
|
145
145
|
sublabel: l(e)("order.terminalPaymentDescription"),
|
|
146
146
|
"label-placement": "right",
|
|
147
|
-
modelValue:
|
|
147
|
+
modelValue: A.value,
|
|
148
148
|
"onUpdate:modelValue": [
|
|
149
|
-
d[2] || (d[2] = (f) =>
|
|
150
|
-
|
|
149
|
+
d[2] || (d[2] = (f) => A.value = f),
|
|
150
|
+
T
|
|
151
151
|
]
|
|
152
152
|
}, null, 8, ["label", "sublabel", "modelValue"])
|
|
153
153
|
]),
|
|
@@ -160,61 +160,61 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
160
160
|
variant: "outlined",
|
|
161
161
|
class: "mt-2"
|
|
162
162
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
s(
|
|
165
|
-
default:
|
|
166
|
-
s(
|
|
163
|
+
default: C(() => [
|
|
164
|
+
s(j, null, {
|
|
165
|
+
default: C(() => [
|
|
166
|
+
s(F, {
|
|
167
167
|
label: l(e)("order.eWallet"),
|
|
168
168
|
sublabel: l(e)("order.eWalletDescription"),
|
|
169
169
|
"label-placement": "right",
|
|
170
|
-
modelValue:
|
|
170
|
+
modelValue: V.value,
|
|
171
171
|
"onUpdate:modelValue": [
|
|
172
|
-
d[3] || (d[3] = (f) =>
|
|
173
|
-
|
|
172
|
+
d[3] || (d[3] = (f) => V.value = f),
|
|
173
|
+
K
|
|
174
174
|
]
|
|
175
175
|
}, null, 8, ["label", "sublabel", "modelValue"]),
|
|
176
176
|
d[10] || (d[10] = r("br", null, null, -1)),
|
|
177
|
-
|
|
178
|
-
r("div",
|
|
179
|
-
s(
|
|
180
|
-
modelValue:
|
|
177
|
+
U(r("div", Re, [
|
|
178
|
+
r("div", Fe, [
|
|
179
|
+
s(E, {
|
|
180
|
+
modelValue: v.value,
|
|
181
181
|
"onUpdate:modelValue": [
|
|
182
|
-
d[4] || (d[4] = (f) =>
|
|
183
|
-
|
|
182
|
+
d[4] || (d[4] = (f) => v.value = f),
|
|
183
|
+
T
|
|
184
184
|
],
|
|
185
185
|
label: l(e)("order.qrPay"),
|
|
186
|
-
value: l(
|
|
186
|
+
value: l(p).enum.QRPAY
|
|
187
187
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
188
|
-
s(
|
|
189
|
-
modelValue:
|
|
188
|
+
s(E, {
|
|
189
|
+
modelValue: v.value,
|
|
190
190
|
"onUpdate:modelValue": [
|
|
191
|
-
d[5] || (d[5] = (f) =>
|
|
192
|
-
|
|
191
|
+
d[5] || (d[5] = (f) => v.value = f),
|
|
192
|
+
T
|
|
193
193
|
],
|
|
194
194
|
label: l(e)("order.scanPay"),
|
|
195
|
-
value: l(
|
|
195
|
+
value: l(p).enum.SCANPAY
|
|
196
196
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
197
|
-
s(
|
|
198
|
-
modelValue:
|
|
197
|
+
s(E, {
|
|
198
|
+
modelValue: v.value,
|
|
199
199
|
"onUpdate:modelValue": [
|
|
200
|
-
d[6] || (d[6] = (f) =>
|
|
201
|
-
|
|
200
|
+
d[6] || (d[6] = (f) => v.value = f),
|
|
201
|
+
T
|
|
202
202
|
],
|
|
203
203
|
label: l(e)("order.terminalScanPay"),
|
|
204
|
-
value: l(
|
|
204
|
+
value: l(p).enum.TERMINAL_SCAN_PAY
|
|
205
205
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
206
|
-
s(
|
|
207
|
-
modelValue:
|
|
206
|
+
s(E, {
|
|
207
|
+
modelValue: v.value,
|
|
208
208
|
"onUpdate:modelValue": [
|
|
209
|
-
d[7] || (d[7] = (f) =>
|
|
210
|
-
|
|
209
|
+
d[7] || (d[7] = (f) => v.value = f),
|
|
210
|
+
T
|
|
211
211
|
],
|
|
212
212
|
label: l(e)("order.terminalQrPay"),
|
|
213
|
-
value: l(
|
|
213
|
+
value: l(p).enum.TERMINAL_QR_PAY
|
|
214
214
|
}, null, 8, ["modelValue", "label", "value"])
|
|
215
215
|
])
|
|
216
216
|
], 512), [
|
|
217
|
-
[
|
|
217
|
+
[R, V.value]
|
|
218
218
|
])
|
|
219
219
|
]),
|
|
220
220
|
_: 1
|
|
@@ -227,101 +227,125 @@ const xe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary ml-7" }
|
|
|
227
227
|
}, 8, ["payment-types", "offline-payment-types", "allow-e-payment", "allow-credit"]);
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
})
|
|
231
|
-
|
|
230
|
+
}), Ne = {
|
|
231
|
+
"en-US": "English",
|
|
232
|
+
"zh-CN": "中文",
|
|
233
|
+
"th-TH": "ไทย",
|
|
234
|
+
"vi-VN": "Tiếng Việt",
|
|
235
|
+
"id-ID": "Bahasa Indonesia",
|
|
236
|
+
"ko-KR": "한국어",
|
|
237
|
+
"ja-JP": "日本語",
|
|
238
|
+
"ar-SA": "العربية"
|
|
239
|
+
}, Le = xe.map((i) => ({
|
|
240
|
+
code: i,
|
|
241
|
+
label: Ne[i]
|
|
242
|
+
}));
|
|
243
|
+
var Oe = { firebase: {} }, De = {};
|
|
232
244
|
let z = null;
|
|
233
|
-
function
|
|
234
|
-
var
|
|
235
|
-
const
|
|
236
|
-
return
|
|
245
|
+
function Me(i) {
|
|
246
|
+
var g;
|
|
247
|
+
const c = (g = i.name.split(".").pop()) == null ? void 0 : g.toLowerCase();
|
|
248
|
+
return c && /^[a-z0-9]+$/.test(c) ? c : {
|
|
237
249
|
"image/jpeg": "jpg",
|
|
238
250
|
"image/png": "png",
|
|
239
251
|
"image/webp": "webp",
|
|
240
252
|
"image/gif": "gif"
|
|
241
253
|
}[i.type] ?? "bin";
|
|
242
254
|
}
|
|
243
|
-
function
|
|
255
|
+
function $e() {
|
|
244
256
|
var e;
|
|
245
|
-
return (((e =
|
|
257
|
+
return (((e = De.firebase) == null ? void 0 : e.storageBucket) ?? Oe.firebase.storageBucket ?? "image.feedme.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
|
|
246
258
|
}
|
|
247
|
-
function
|
|
248
|
-
const
|
|
249
|
-
return `https://${
|
|
259
|
+
function We(i) {
|
|
260
|
+
const c = i.replace(/^\/+/, "");
|
|
261
|
+
return `https://${$e()}/${c}`;
|
|
250
262
|
}
|
|
251
|
-
async function
|
|
252
|
-
const i =
|
|
263
|
+
async function Ye() {
|
|
264
|
+
const i = ue();
|
|
253
265
|
if (!i.currentUser && (await i.authStateReady(), !i.currentUser && (z || (z = (async () => {
|
|
254
|
-
const
|
|
255
|
-
await
|
|
266
|
+
const c = await ce.getCustomToken();
|
|
267
|
+
await me(i, c);
|
|
256
268
|
})().finally(() => {
|
|
257
269
|
z = null;
|
|
258
270
|
})), await z, !i.currentUser)))
|
|
259
271
|
throw new Error("User not authenticated for image upload");
|
|
260
272
|
}
|
|
261
|
-
async function
|
|
262
|
-
const i =
|
|
263
|
-
i.currentUser && await
|
|
264
|
-
const
|
|
265
|
-
await
|
|
273
|
+
async function je() {
|
|
274
|
+
const i = ue();
|
|
275
|
+
i.currentUser && await _e(i);
|
|
276
|
+
const c = await ce.getCustomToken();
|
|
277
|
+
await me(i, c);
|
|
266
278
|
}
|
|
267
|
-
async function
|
|
268
|
-
const e =
|
|
279
|
+
async function qe(i, c) {
|
|
280
|
+
const e = Se(), g = re(e, i);
|
|
269
281
|
try {
|
|
270
|
-
await
|
|
271
|
-
contentType:
|
|
282
|
+
await se(g, c, {
|
|
283
|
+
contentType: c.type || void 0
|
|
272
284
|
});
|
|
273
285
|
return;
|
|
274
286
|
} catch (P) {
|
|
275
287
|
if ((P == null ? void 0 : P.code) !== "storage/unauthorized")
|
|
276
288
|
throw P;
|
|
277
289
|
}
|
|
278
|
-
await
|
|
279
|
-
const
|
|
280
|
-
await
|
|
281
|
-
contentType:
|
|
290
|
+
await je();
|
|
291
|
+
const w = re(e, i);
|
|
292
|
+
await se(w, c, {
|
|
293
|
+
contentType: c.type || void 0
|
|
282
294
|
});
|
|
283
295
|
}
|
|
284
|
-
async function
|
|
285
|
-
await
|
|
286
|
-
const e = i.replace(/^\/+/, "").replace(/\/+$/, ""),
|
|
287
|
-
return await
|
|
296
|
+
async function Be(i, c) {
|
|
297
|
+
await Ye();
|
|
298
|
+
const e = i.replace(/^\/+/, "").replace(/\/+$/, ""), g = Me(c), w = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${g}`, P = `${e}/${w}`;
|
|
299
|
+
return await qe(P, c), We(P);
|
|
288
300
|
}
|
|
289
|
-
const
|
|
301
|
+
const Ke = {
|
|
290
302
|
key: 0,
|
|
291
303
|
class: "flex flex-col gap-32"
|
|
292
|
-
},
|
|
304
|
+
}, Qe = {
|
|
293
305
|
key: 0,
|
|
294
306
|
class: "flex flex-col gap-2"
|
|
295
|
-
},
|
|
307
|
+
}, ze = { class: "fm-typo-en-title-sm-600" }, He = { class: "flex flex-col gap-1 w-full md:w-1/2" }, Ge = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Je = { class: "flex flex-col gap-2" }, Xe = { class: "fm-typo-en-title-sm-600" }, Ze = { class: "flex flex-col gap-5" }, ea = { class: "flex flex-col gap-16" }, aa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, la = { class: "fm-typo-en-title-sm-600" }, ta = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, na = { class: "fm-typo-en-title-sm-600" }, oa = { class: "flex flex-row gap-2" }, ra = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, sa = { class: "fm-typo-en-title-sm-600" }, da = { class: "flex flex-col gap-2" }, ia = { class: "fm-typo-en-title-sm-600" }, ua = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ma = { class: "fm-typo-en-title-sm-600" }, pa = { class: "flex flex-col gap-2" }, ca = { class: "fm-typo-en-title-sm-600" }, ya = { class: "flex flex-col gap-2" }, fa = { class: "fm-typo-en-title-sm-600" }, va = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ba = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, ga = { class: "grid grid-cols-1 md:grid-cols-2 gap-3" }, Ia = {
|
|
308
|
+
key: 0,
|
|
309
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-system-error-300"
|
|
310
|
+
}, Pa = { class: "flex flex-col gap-2" }, Sa = { class: "fm-typo-en-title-sm-600" }, _a = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, xa = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, ha = { class: "fm-typo-en-body-md-600" }, wa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Va = {
|
|
296
311
|
key: 1,
|
|
297
312
|
class: "flex flex-col gap-2"
|
|
298
|
-
},
|
|
313
|
+
}, ka = ["src", "alt"], Ta = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, Ca = { class: "fm-typo-en-body-md-600" }, Aa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ua = {
|
|
299
314
|
key: 1,
|
|
300
315
|
class: "flex flex-col gap-2"
|
|
301
|
-
},
|
|
316
|
+
}, Ra = ["src", "alt"], Fa = { class: "flex flex-col gap-2" }, Ea = { class: "fm-typo-en-title-sm-600" }, Na = { class: "flex flex-col gap-2" }, La = { key: 1 }, de = 10 * 1e3 * 1e3, ja = /* @__PURE__ */ ie({
|
|
302
317
|
__name: "KioskSettingView",
|
|
303
318
|
props: {
|
|
304
319
|
restaurantId: {},
|
|
305
320
|
form: {}
|
|
306
321
|
},
|
|
307
322
|
emits: ["updateKioskOrderSetting"],
|
|
308
|
-
setup(i, { emit:
|
|
309
|
-
const { t: e } =
|
|
323
|
+
setup(i, { emit: c }) {
|
|
324
|
+
const { t: e } = pe(), g = Te(), w = k(() => {
|
|
310
325
|
var o;
|
|
311
|
-
return ((o =
|
|
312
|
-
}), P = i, I =
|
|
313
|
-
|
|
314
|
-
|
|
326
|
+
return ((o = g.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
|
|
327
|
+
}), P = i, I = Ce(), v = c, a = $(P.form), A = Le, V = k(() => a.value.languages != null), W = k(() => a.value.languages ?? []);
|
|
328
|
+
function G(o) {
|
|
329
|
+
a.value.languages = o ? ["en-US"] : null;
|
|
330
|
+
}
|
|
331
|
+
function T(o, t) {
|
|
332
|
+
const u = a.value.languages ?? [];
|
|
333
|
+
a.value.languages = t ? A.filter((m) => m.code === o || u.includes(m.code)).map((m) => m.code) : u.filter((m) => m !== o);
|
|
334
|
+
}
|
|
335
|
+
const O = (o) => o < 0 ? e("order.nonNegativeRule") : !0, K = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, J = k(() => [O]), y = k(() => [O]), d = k(() => [O, K]), F = k(() => {
|
|
336
|
+
var m, _, N, B, D, n, Q, te;
|
|
337
|
+
const o = a.value, t = (m = o.otaChannel) == null ? void 0 : m.trim();
|
|
315
338
|
if (o.dineIn.enabled && o.dineIn.displayStand.enabled) {
|
|
316
|
-
const { padDigit: x, standSlotRange:
|
|
317
|
-
if (!(x != null && x >= 0 &&
|
|
339
|
+
const { padDigit: x, standSlotRange: M } = o.dineIn.displayStand;
|
|
340
|
+
if (!(x != null && x >= 0 && M.min != null && M.max != null && M.min <= M.max)) return null;
|
|
318
341
|
}
|
|
342
|
+
if (o.languages != null && o.languages.length === 0) return null;
|
|
319
343
|
const u = o.paymentSetting;
|
|
320
|
-
if ((
|
|
344
|
+
if ((_ = u == null ? void 0 : u.paymentTypes) != null && _.includes(he.enum.ePayment)) {
|
|
321
345
|
const x = u.ePaymentTypes;
|
|
322
346
|
if (!x) return null;
|
|
323
|
-
const
|
|
324
|
-
if (!
|
|
347
|
+
const M = ((N = x.card) == null ? void 0 : N.terminal) || ((B = x.card) == null ? void 0 : B.nfc), ne = ((D = x.eWallet) == null ? void 0 : D.qrPay) || ((n = x.eWallet) == null ? void 0 : n.scanPay) || ((Q = x.eWallet) == null ? void 0 : Q.terminalScanPay) || ((te = x.eWallet) == null ? void 0 : te.terminalQrPay), ve = x.terminal;
|
|
348
|
+
if (!M && !ne && !ve) return null;
|
|
325
349
|
}
|
|
326
350
|
return {
|
|
327
351
|
...o,
|
|
@@ -340,28 +364,28 @@ const Oe = {
|
|
|
340
364
|
}
|
|
341
365
|
}
|
|
342
366
|
};
|
|
343
|
-
}), { startAsyncCall: Y } =
|
|
344
|
-
function
|
|
367
|
+
}), { startAsyncCall: Y } = Ve();
|
|
368
|
+
function X(o) {
|
|
345
369
|
a.value.paymentSetting.paymentTypes = o;
|
|
346
370
|
}
|
|
347
|
-
function
|
|
371
|
+
function j(o) {
|
|
348
372
|
a.value.paymentSetting.ePaymentTypes = o;
|
|
349
373
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
374
|
+
const q = ke();
|
|
375
|
+
function E(o) {
|
|
352
376
|
a.value[o] = null;
|
|
353
377
|
}
|
|
354
|
-
function
|
|
378
|
+
function f(o) {
|
|
355
379
|
const t = a.value[o];
|
|
356
380
|
if (!t) return null;
|
|
357
381
|
const u = t.trim();
|
|
358
382
|
return u.length > 0 ? u : null;
|
|
359
383
|
}
|
|
360
|
-
async function
|
|
384
|
+
async function ee(o, t) {
|
|
361
385
|
try {
|
|
362
386
|
const u = await Y(async () => {
|
|
363
|
-
const
|
|
364
|
-
return await
|
|
387
|
+
const m = `/restaurant/${P.restaurantId}/kiosk/${o}`;
|
|
388
|
+
return await Be(m, t);
|
|
365
389
|
});
|
|
366
390
|
a.value[o] = u, I.open({
|
|
367
391
|
title: e("order.imageUploadSuccess"),
|
|
@@ -374,40 +398,40 @@ const Oe = {
|
|
|
374
398
|
});
|
|
375
399
|
}
|
|
376
400
|
}
|
|
377
|
-
function
|
|
378
|
-
var
|
|
379
|
-
const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"),
|
|
401
|
+
function ae(o, t) {
|
|
402
|
+
var _, N;
|
|
403
|
+
const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), m = (N = (_ = t[0]) == null ? void 0 : _.reason) == null ? void 0 : N[0];
|
|
380
404
|
I.open({
|
|
381
|
-
title:
|
|
405
|
+
title: m ? `${e("order.imageUploadRejected")}: ${u} (${m})` : `${e("order.imageUploadRejected")}: ${u}`,
|
|
382
406
|
type: "error"
|
|
383
407
|
});
|
|
384
408
|
}
|
|
385
|
-
const
|
|
409
|
+
const ye = k(() => q.getRestaurantEPayment()), le = k({
|
|
386
410
|
get: () => (a.value.dineIn.displayStand.enabled && a.value.dineIn.displayStand.enablePaxDialog || a.value.dineIn.pickUp.enablePaxDialog) ?? !1,
|
|
387
411
|
set: (o) => {
|
|
388
412
|
a.value.dineIn.displayStand.enablePaxDialog = o, a.value.dineIn.pickUp.enablePaxDialog = o;
|
|
389
413
|
}
|
|
390
414
|
});
|
|
391
|
-
|
|
415
|
+
ge(
|
|
392
416
|
() => [
|
|
393
417
|
a.value.dineIn.enabled,
|
|
394
418
|
a.value.dineIn.pickUp.enabled,
|
|
395
419
|
a.value.dineIn.displayStand.enabled
|
|
396
420
|
],
|
|
397
|
-
([o, t, u],
|
|
398
|
-
const
|
|
399
|
-
o && !t && !u && (a.value.dineIn.pickUp.enabled = !0,
|
|
421
|
+
([o, t, u], m) => {
|
|
422
|
+
const _ = (m == null ? void 0 : m[0]) ?? !1;
|
|
423
|
+
o && !t && !u && (a.value.dineIn.pickUp.enabled = !0, _ || I.open({
|
|
400
424
|
title: e("order.dineInModeAutoCorrected"),
|
|
401
425
|
type: "info"
|
|
402
426
|
}));
|
|
403
427
|
},
|
|
404
428
|
{ immediate: !0 }
|
|
405
429
|
);
|
|
406
|
-
async function
|
|
407
|
-
if (
|
|
408
|
-
const o =
|
|
430
|
+
async function fe() {
|
|
431
|
+
if (F.value) {
|
|
432
|
+
const o = F.value;
|
|
409
433
|
Y(async () => {
|
|
410
|
-
await
|
|
434
|
+
await v("updateKioskOrderSetting", o);
|
|
411
435
|
});
|
|
412
436
|
} else
|
|
413
437
|
I.open({
|
|
@@ -416,39 +440,39 @@ const Oe = {
|
|
|
416
440
|
});
|
|
417
441
|
}
|
|
418
442
|
return (o, t) => {
|
|
419
|
-
const u =
|
|
420
|
-
return a.value ? (
|
|
421
|
-
|
|
422
|
-
r("span",
|
|
423
|
-
r("div",
|
|
443
|
+
const u = S("FmTextField"), m = S("FmSwitch"), _ = S("FmStepperField"), N = S("FmCheckbox"), B = S("FmDropField"), D = S("FmButton");
|
|
444
|
+
return a.value ? (h(), L("div", Ke, [
|
|
445
|
+
w.value ? (h(), L("div", Qe, [
|
|
446
|
+
r("span", ze, b(l(e)("order.otaChannel")), 1),
|
|
447
|
+
r("div", He, [
|
|
424
448
|
s(u, {
|
|
425
449
|
modelValue: a.value.otaChannel,
|
|
426
450
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => a.value.otaChannel = n),
|
|
427
451
|
label: l(e)("order.otaChannel"),
|
|
428
452
|
placeholder: l(e)("order.otaChannelHint")
|
|
429
453
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
430
|
-
r("span",
|
|
454
|
+
r("span", Ge, b(l(e)("order.otaChannelHint")), 1)
|
|
431
455
|
])
|
|
432
|
-
])) :
|
|
433
|
-
r("div",
|
|
434
|
-
r("span",
|
|
435
|
-
r("div",
|
|
436
|
-
s(
|
|
456
|
+
])) : Z("", !0),
|
|
457
|
+
r("div", Je, [
|
|
458
|
+
r("span", Xe, b(l(e)("order.dineIn")), 1),
|
|
459
|
+
r("div", Ze, [
|
|
460
|
+
s(m, {
|
|
437
461
|
modelValue: a.value.dineIn.enabled,
|
|
438
462
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => a.value.dineIn.enabled = n),
|
|
439
463
|
label: l(e)("order.dineIn"),
|
|
440
464
|
"label-placement": "right"
|
|
441
465
|
}, null, 8, ["modelValue", "label"]),
|
|
442
|
-
|
|
466
|
+
U(r("div", ea, [
|
|
443
467
|
r("div", null, [
|
|
444
|
-
s(
|
|
468
|
+
s(m, {
|
|
445
469
|
modelValue: a.value.dineIn.pickUp.enabled,
|
|
446
470
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => a.value.dineIn.pickUp.enabled = n),
|
|
447
471
|
label: l(e)("order.pickAtCounter"),
|
|
448
472
|
"label-placement": "right"
|
|
449
473
|
}, null, 8, ["modelValue", "label"]),
|
|
450
|
-
|
|
451
|
-
r("span",
|
|
474
|
+
U(r("div", aa, [
|
|
475
|
+
r("span", la, b(l(e)("order.submitOrderInstruction")), 1),
|
|
452
476
|
s(u, {
|
|
453
477
|
modelValue: a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter,
|
|
454
478
|
"onUpdate:modelValue": t[3] || (t[3] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter = n),
|
|
@@ -462,57 +486,57 @@ const Oe = {
|
|
|
462
486
|
placeholder: "Please wait as we prepare your food. We'll call your number when it's ready."
|
|
463
487
|
}, null, 8, ["modelValue", "label"])
|
|
464
488
|
], 512), [
|
|
465
|
-
[
|
|
489
|
+
[R, a.value.dineIn.pickUp.enabled]
|
|
466
490
|
])
|
|
467
491
|
]),
|
|
468
492
|
r("div", null, [
|
|
469
|
-
s(
|
|
493
|
+
s(m, {
|
|
470
494
|
modelValue: a.value.dineIn.displayStand.enabled,
|
|
471
495
|
"onUpdate:modelValue": t[5] || (t[5] = (n) => a.value.dineIn.displayStand.enabled = n),
|
|
472
496
|
label: l(e)("order.displayStand"),
|
|
473
497
|
"label-placement": "right"
|
|
474
498
|
}, null, 8, ["modelValue", "label"]),
|
|
475
|
-
|
|
476
|
-
r("span",
|
|
499
|
+
U(r("div", ta, [
|
|
500
|
+
r("span", na, b(l(e)("order.tableServiceSetting")), 1),
|
|
477
501
|
s(u, {
|
|
478
502
|
modelValue: a.value.dineIn.displayStand.prefix,
|
|
479
503
|
"onUpdate:modelValue": t[6] || (t[6] = (n) => a.value.dineIn.displayStand.prefix = n),
|
|
480
504
|
label: l(e)("order.prefix"),
|
|
481
505
|
placeholder: l(e)("order.prefix")
|
|
482
506
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
483
|
-
r("div",
|
|
484
|
-
s(
|
|
507
|
+
r("div", oa, [
|
|
508
|
+
s(_, {
|
|
485
509
|
modelValue: a.value.dineIn.displayStand.standSlotRange.min,
|
|
486
510
|
"onUpdate:modelValue": t[7] || (t[7] = (n) => a.value.dineIn.displayStand.standSlotRange.min = n),
|
|
487
511
|
class: "w-1/2",
|
|
488
512
|
label: l(e)("order.start"),
|
|
489
513
|
labelMark: "required",
|
|
490
|
-
rules:
|
|
514
|
+
rules: y.value,
|
|
491
515
|
placeholder: l(e)("order.enterANumber")
|
|
492
516
|
}, null, 8, ["modelValue", "label", "rules", "placeholder"]),
|
|
493
|
-
s(
|
|
517
|
+
s(_, {
|
|
494
518
|
modelValue: a.value.dineIn.displayStand.standSlotRange.max,
|
|
495
519
|
"onUpdate:modelValue": t[8] || (t[8] = (n) => a.value.dineIn.displayStand.standSlotRange.max = n),
|
|
496
520
|
class: "w-1/2",
|
|
497
521
|
label: l(e)("order.end"),
|
|
498
522
|
labelMark: "required",
|
|
499
|
-
rules:
|
|
523
|
+
rules: d.value,
|
|
500
524
|
placeholder: l(e)("order.enterANumber")
|
|
501
525
|
}, null, 8, ["modelValue", "label", "rules", "placeholder"])
|
|
502
526
|
]),
|
|
503
|
-
s(
|
|
527
|
+
s(_, {
|
|
504
528
|
modelValue: a.value.dineIn.displayStand.padDigit,
|
|
505
529
|
"onUpdate:modelValue": t[9] || (t[9] = (n) => a.value.dineIn.displayStand.padDigit = n),
|
|
506
530
|
label: l(e)("order.padDigit"),
|
|
507
531
|
labelMark: "required",
|
|
508
|
-
rules:
|
|
532
|
+
rules: J.value,
|
|
509
533
|
placeholder: l(e)("order.padDigit")
|
|
510
534
|
}, null, 8, ["modelValue", "label", "rules", "placeholder"])
|
|
511
535
|
], 512), [
|
|
512
|
-
[
|
|
536
|
+
[R, a.value.dineIn.displayStand.enabled]
|
|
513
537
|
]),
|
|
514
|
-
|
|
515
|
-
r("span",
|
|
538
|
+
U(r("div", ra, [
|
|
539
|
+
r("span", sa, b(l(e)("order.submitOrderInstruction")), 1),
|
|
516
540
|
s(u, {
|
|
517
541
|
modelValue: a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter,
|
|
518
542
|
"onUpdate:modelValue": t[10] || (t[10] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter = n),
|
|
@@ -526,25 +550,25 @@ const Oe = {
|
|
|
526
550
|
placeholder: "Please collect your receipt and we'll bring your food to your table once it's ready."
|
|
527
551
|
}, null, 8, ["modelValue", "label"])
|
|
528
552
|
], 512), [
|
|
529
|
-
[
|
|
553
|
+
[R, a.value.dineIn.displayStand.enabled]
|
|
530
554
|
])
|
|
531
555
|
])
|
|
532
556
|
], 512), [
|
|
533
|
-
[
|
|
557
|
+
[R, a.value.dineIn.enabled]
|
|
534
558
|
])
|
|
535
559
|
])
|
|
536
560
|
]),
|
|
537
|
-
r("div",
|
|
538
|
-
r("span",
|
|
539
|
-
s(
|
|
561
|
+
r("div", da, [
|
|
562
|
+
r("span", ia, b(l(e)("order.takeawayTitle")), 1),
|
|
563
|
+
s(m, {
|
|
540
564
|
modelValue: a.value.takeaway.enabled,
|
|
541
565
|
"onUpdate:modelValue": t[12] || (t[12] = (n) => a.value.takeaway.enabled = n),
|
|
542
566
|
label: l(e)("order.takeaway"),
|
|
543
567
|
"label-placement": "right",
|
|
544
568
|
class: "mb-5"
|
|
545
569
|
}, null, 8, ["modelValue", "label"]),
|
|
546
|
-
|
|
547
|
-
r("span",
|
|
570
|
+
U(r("div", ua, [
|
|
571
|
+
r("span", ma, b(l(e)("order.submitOrderInstruction")), 1),
|
|
548
572
|
s(u, {
|
|
549
573
|
modelValue: a.value.takeaway.submitOrderInstruction.payAtCounter,
|
|
550
574
|
"onUpdate:modelValue": t[13] || (t[13] = (n) => a.value.takeaway.submitOrderInstruction.payAtCounter = n),
|
|
@@ -558,12 +582,12 @@ const Oe = {
|
|
|
558
582
|
placeholder: "Please wait as we prepare your food. We'll call your number when it's ready."
|
|
559
583
|
}, null, 8, ["modelValue", "label"])
|
|
560
584
|
], 512), [
|
|
561
|
-
[
|
|
585
|
+
[R, a.value.takeaway.enabled]
|
|
562
586
|
])
|
|
563
587
|
]),
|
|
564
|
-
r("div",
|
|
565
|
-
r("span",
|
|
566
|
-
s(
|
|
588
|
+
r("div", pa, [
|
|
589
|
+
r("span", ca, b(l(e)("order.menuItem")), 1),
|
|
590
|
+
s(m, {
|
|
567
591
|
modelValue: a.value.menuItem.showAllOnly,
|
|
568
592
|
"onUpdate:modelValue": t[15] || (t[15] = (n) => a.value.menuItem.showAllOnly = n),
|
|
569
593
|
label: l(e)("order.showNotAvailableMenuItem"),
|
|
@@ -571,92 +595,117 @@ const Oe = {
|
|
|
571
595
|
class: "mb-5"
|
|
572
596
|
}, null, 8, ["modelValue", "label"])
|
|
573
597
|
]),
|
|
574
|
-
r("div",
|
|
575
|
-
r("span",
|
|
576
|
-
r("span",
|
|
577
|
-
r("div",
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
598
|
+
r("div", ya, [
|
|
599
|
+
r("span", fa, b(l(e)("order.kioskLanguage")), 1),
|
|
600
|
+
r("span", va, b(l(e)("order.kioskLanguageHint")), 1),
|
|
601
|
+
r("div", ba, [
|
|
602
|
+
s(m, {
|
|
603
|
+
"model-value": V.value,
|
|
604
|
+
label: l(e)("order.kioskLanguageRestrict"),
|
|
605
|
+
sublabel: l(e)("order.kioskLanguageRestrictSublabel"),
|
|
606
|
+
"label-placement": "right",
|
|
607
|
+
"onUpdate:modelValue": G
|
|
608
|
+
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
609
|
+
U(r("div", ga, [
|
|
610
|
+
(h(!0), L(Ie, null, Pe(l(A), (n) => (h(), H(N, {
|
|
611
|
+
key: n.code,
|
|
612
|
+
"model-value": W.value.includes(n.code),
|
|
613
|
+
value: n.code,
|
|
614
|
+
label: n.label,
|
|
615
|
+
"onUpdate:modelValue": (Q) => T(n.code, Q)
|
|
616
|
+
}, null, 8, ["model-value", "value", "label", "onUpdate:modelValue"]))), 128))
|
|
617
|
+
], 512), [
|
|
618
|
+
[R, V.value]
|
|
619
|
+
]),
|
|
620
|
+
V.value && W.value.length === 0 ? (h(), L("span", Ia, b(l(e)("order.kioskLanguageAtLeastOne")), 1)) : Z("", !0)
|
|
621
|
+
])
|
|
622
|
+
]),
|
|
623
|
+
r("div", Pa, [
|
|
624
|
+
r("span", Sa, b(l(e)("order.coverImage")), 1),
|
|
625
|
+
r("span", _a, b(l(e)("order.coverImageFallbackHint")), 1),
|
|
626
|
+
r("div", xa, [
|
|
627
|
+
r("span", ha, b(l(e)("order.coverImageLandscape")), 1),
|
|
628
|
+
r("span", wa, b(l(e)("order.coverImageLandscapeHint")), 1),
|
|
629
|
+
f("coverImageLandscape") ? (h(), L("div", Va, [
|
|
581
630
|
r("img", {
|
|
582
|
-
src:
|
|
631
|
+
src: f("coverImageLandscape"),
|
|
583
632
|
alt: l(e)("order.coverImageLandscape"),
|
|
584
633
|
class: "max-w-[400px] aspect-video object-cover rounded-md border border-fm-color-neutral-gray-200"
|
|
585
|
-
}, null, 8,
|
|
586
|
-
s(
|
|
634
|
+
}, null, 8, ka),
|
|
635
|
+
s(D, {
|
|
587
636
|
variant: "tertiary",
|
|
588
637
|
class: "mr-auto",
|
|
589
638
|
label: l(e)("common.delete"),
|
|
590
|
-
onClick: t[18] || (t[18] = (n) =>
|
|
639
|
+
onClick: t[18] || (t[18] = (n) => E("coverImageLandscape"))
|
|
591
640
|
}, null, 8, ["label"])
|
|
592
|
-
])) : (
|
|
641
|
+
])) : (h(), H(B, {
|
|
593
642
|
key: 0,
|
|
594
643
|
accept: "image/*",
|
|
595
|
-
"max-file-size":
|
|
644
|
+
"max-file-size": de,
|
|
596
645
|
"content-class": "w-full max-w-[400px] aspect-video",
|
|
597
|
-
onFileUpload: t[16] || (t[16] = (n) =>
|
|
598
|
-
onFileRejected: t[17] || (t[17] = (n) =>
|
|
646
|
+
onFileUpload: t[16] || (t[16] = (n) => ee("coverImageLandscape", n)),
|
|
647
|
+
onFileRejected: t[17] || (t[17] = (n) => ae("coverImageLandscape", n))
|
|
599
648
|
}))
|
|
600
649
|
]),
|
|
601
|
-
r("div",
|
|
602
|
-
r("span",
|
|
603
|
-
r("span",
|
|
604
|
-
|
|
650
|
+
r("div", Ta, [
|
|
651
|
+
r("span", Ca, b(l(e)("order.coverImagePortrait")), 1),
|
|
652
|
+
r("span", Aa, b(l(e)("order.coverImagePortraitHint")), 1),
|
|
653
|
+
f("coverImagePortrait") ? (h(), L("div", Ua, [
|
|
605
654
|
r("img", {
|
|
606
|
-
src:
|
|
655
|
+
src: f("coverImagePortrait"),
|
|
607
656
|
alt: l(e)("order.coverImagePortrait"),
|
|
608
657
|
class: "max-w-[200px] aspect-[9/16] object-cover rounded-md border border-fm-color-neutral-gray-200"
|
|
609
|
-
}, null, 8,
|
|
610
|
-
s(
|
|
658
|
+
}, null, 8, Ra),
|
|
659
|
+
s(D, {
|
|
611
660
|
variant: "tertiary",
|
|
612
661
|
class: "mr-auto",
|
|
613
662
|
label: l(e)("common.delete"),
|
|
614
|
-
onClick: t[21] || (t[21] = (n) =>
|
|
663
|
+
onClick: t[21] || (t[21] = (n) => E("coverImagePortrait"))
|
|
615
664
|
}, null, 8, ["label"])
|
|
616
|
-
])) : (
|
|
665
|
+
])) : (h(), H(B, {
|
|
617
666
|
key: 0,
|
|
618
667
|
accept: "image/*",
|
|
619
|
-
"max-file-size":
|
|
668
|
+
"max-file-size": de,
|
|
620
669
|
"content-class": "w-[240px] aspect-[9/16]",
|
|
621
|
-
onFileUpload: t[19] || (t[19] = (n) =>
|
|
622
|
-
onFileRejected: t[20] || (t[20] = (n) =>
|
|
670
|
+
onFileUpload: t[19] || (t[19] = (n) => ee("coverImagePortrait", n)),
|
|
671
|
+
onFileRejected: t[20] || (t[20] = (n) => ae("coverImagePortrait", n))
|
|
623
672
|
}))
|
|
624
673
|
])
|
|
625
674
|
]),
|
|
626
|
-
r("div",
|
|
627
|
-
r("span",
|
|
628
|
-
s(
|
|
629
|
-
modelValue:
|
|
630
|
-
"onUpdate:modelValue": t[22] || (t[22] = (n) =>
|
|
675
|
+
r("div", Fa, [
|
|
676
|
+
r("span", Ea, b(l(e)("order.displayPaxDialogTitle")), 1),
|
|
677
|
+
s(m, {
|
|
678
|
+
modelValue: le.value,
|
|
679
|
+
"onUpdate:modelValue": t[22] || (t[22] = (n) => le.value = n),
|
|
631
680
|
label: l(e)("order.displayPaxDialogDescription"),
|
|
632
681
|
"label-placement": "right",
|
|
633
682
|
class: "mb-5"
|
|
634
683
|
}, null, 8, ["modelValue", "label"])
|
|
635
684
|
]),
|
|
636
|
-
|
|
637
|
-
r("div",
|
|
638
|
-
s(
|
|
685
|
+
Z("", !0),
|
|
686
|
+
r("div", Na, [
|
|
687
|
+
s(Ee, {
|
|
639
688
|
"payment-types": a.value.paymentSetting.paymentTypes ?? [],
|
|
640
689
|
"allow-credit": !0,
|
|
641
|
-
"allow-e-payment":
|
|
690
|
+
"allow-e-payment": ye.value,
|
|
642
691
|
"offline-payment-types": a.value.paymentSetting.offlinePaymentTypes ?? [],
|
|
643
692
|
ePaymentTypes: a.value.paymentSetting.ePaymentTypes ?? {},
|
|
644
|
-
"onUpdate:paymentTypes":
|
|
693
|
+
"onUpdate:paymentTypes": X,
|
|
645
694
|
"onUpdate:offlinePaymentTypes": t[24] || (t[24] = (n) => a.value.paymentSetting.offlinePaymentTypes = n),
|
|
646
|
-
"onUpdate:ePaymentTypes":
|
|
695
|
+
"onUpdate:ePaymentTypes": j
|
|
647
696
|
}, null, 8, ["payment-types", "allow-e-payment", "offline-payment-types", "ePaymentTypes"])
|
|
648
697
|
]),
|
|
649
|
-
s(
|
|
698
|
+
s(D, {
|
|
650
699
|
class: "w-1/4 mb-10",
|
|
651
700
|
variant: "primary",
|
|
652
701
|
label: l(e)("order.updateSetting"),
|
|
653
|
-
disabled: !
|
|
654
|
-
onClick:
|
|
702
|
+
disabled: !F.value,
|
|
703
|
+
onClick: fe
|
|
655
704
|
}, null, 8, ["label", "disabled"])
|
|
656
|
-
])) : (
|
|
705
|
+
])) : (h(), L("div", La, b(l(e)("order.pleaseSelectRestaurant")), 1));
|
|
657
706
|
};
|
|
658
707
|
}
|
|
659
708
|
});
|
|
660
709
|
export {
|
|
661
|
-
|
|
710
|
+
ja as default
|
|
662
711
|
};
|