@feedmepos/mf-order-setting 0.0.74-dev → 0.0.75-dev.20260721T080807Z.29812992895
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-CW7nDXi2.js → KioskDevicesView-CqyTDI1x.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CPDkls2i.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DZkir0K_.js} +32 -32
- package/dist/{KioskSettingView-DErXeFIt.js → KioskSettingView-DyCVWm7r.js} +188 -190
- package/dist/KioskView-DYtrx8Qe.js +420 -0
- package/dist/{OrderSettingsView-asfw4cYT.js → OrderSettingsView-DkxKkzbt.js} +10353 -10414
- package/dist/{app-DrWO2wkv.js → app-11No87EZ.js} +1363 -1352
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Fu6ejRAr.js → dayjs.min-D_adqybn.js} +12 -12
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -3
- package/dist/frontend/mf-order/src/version.d.ts +7 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -2
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSetting.vue.d.ts +0 -17
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DJLCZHNZ.js → index-JbCnNX9Q.js} +2 -2
- package/dist/index-x8Mu3VDv.js +23 -0
- package/dist/{lineman-settings.dto-DS4tgxBJ.js → lineman-settings.dto-C8boe82Z.js} +22163 -20754
- package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +6 -6
- package/dist/package/entity/food-court/order.do.d.ts +24 -4
- package/dist/package/entity/food-court/order.dto.d.ts +2675 -2675
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +14332 -1
- package/dist/package/entity/member/member.dto.d.ts +799 -0
- package/dist/package/entity/order/order.do.d.ts +6763 -1
- package/dist/package/entity/order/order.dto.d.ts +12596 -1599
- package/dist/package/entity/order/payment/payment.dto.d.ts +191 -191
- package/dist/package/entity/order/queue-transfer.dto.d.ts +33 -9
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +12 -12
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +4 -1
- package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +11 -8
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -19
- package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +16 -3
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +8 -3
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
- package/dist/package/entity/order-platform/order-platform.enum.d.ts +1 -1
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -3
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -5
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +8 -8
- package/dist/package/entity/payment/payment.dto.d.ts +3 -3
- package/dist/package/entity/payment/transaction.d.ts +63 -63
- package/dist/package/entity/queue/queue.dto.d.ts +160 -160
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +91 -91
- package/dist/package/entity/websocket/websocket.dto.d.ts +10 -10
- package/dist/style.css +1 -1
- package/env.d.ts +3 -0
- package/package.json +1 -1
- package/src/app.ts +4 -0
- package/src/main.ts +3 -0
- package/src/modules/order-setting/kiosk/interface.ts +1 -1
- package/src/stores/order-setting/mapper.ts +94 -94
- package/src/version.ts +21 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +1 -19
- package/src/views/order-settings/delivery/DeliverySetting.vue +21 -3
- package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +2 -1
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -1
- package/src/views/order-settings/drive-thru/DriveThruSetting.vue +4 -4
- package/src/views/order-settings/pickup/PickUpSetting.vue +131 -191
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -8
- package/src/views/order-settings/servicecharge/ServiceChargeRule.vue +5 -1
- package/vite.config.ts +10 -0
- package/dist/KioskView-d1YjttbD.js +0 -362
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialog.vue.d.ts +0 -16
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickupList.vue.d.ts +0 -16
- package/dist/index-DEKeP24S.js +0 -86
- package/src/views/order-settings/pickup/PickUpSettingDialog.vue +0 -118
- package/src/views/order-settings/pickup/PickupList.vue +0 -49
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as
|
|
2
|
-
import { e as ae, b as re, s as se, d as ye, r as le, f as te, h as fe } from "./app-
|
|
3
|
-
import { b as
|
|
4
|
-
import { _ as be, u as ge, a as
|
|
5
|
-
import { useI18n as de, FeedMeAuth as ie, useCoreStore as
|
|
1
|
+
import { defineComponent as oe, computed as A, ref as L, onMounted as me, resolveComponent as w, openBlock as R, createBlock as G, withCtx as k, createVNode as s, unref as l, createElementVNode as r, withDirectives as E, vShow as N, watch as pe, createElementBlock as j, toDisplayString as g, createCommentVNode as ce } from "vue";
|
|
2
|
+
import { e as ae, b as re, s as se, d as ye, r as le, f as te, h as fe } from "./app-11No87EZ.js";
|
|
3
|
+
import { b as m, c as ve } from "./lineman-settings.dto-C8boe82Z.js";
|
|
4
|
+
import { _ as be, u as ge, a as Ie } from "./index-JbCnNX9Q.js";
|
|
5
|
+
import { useI18n as de, FeedMeAuth as ie, useCoreStore as Pe } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as Se } from "@feedmepos/ui-library";
|
|
7
|
-
const
|
|
7
|
+
const xe = { class: "ml-7" }, we = { class: "ml-7" }, _e = { class: "flex flex-row gap-9" }, Ve = /* @__PURE__ */ oe({
|
|
8
8
|
__name: "KioskPaymentTypeSection",
|
|
9
9
|
props: {
|
|
10
10
|
paymentTypes: {
|
|
@@ -29,12 +29,12 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:paymentTypes", "update:offlinePaymentTypes", "update:ePaymentTypes"],
|
|
32
|
-
setup(
|
|
33
|
-
const { t: e } = de(),
|
|
34
|
-
Object.keys(
|
|
32
|
+
setup(i, { emit: p }) {
|
|
33
|
+
const { t: e } = de(), v = i, _ = p, P = A(() => (v.paymentTypes || []).includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment)), I = L(), y = L([]), a = L(!1), V = L(!1), T = L(!1), B = () => {
|
|
34
|
+
Object.keys(v.ePaymentTypes).length !== 0 && (v.ePaymentTypes.terminal && (V.value = !0), v.ePaymentTypes.card.terminal ? (I.value = m.enum.TERMINAL, a.value = !0) : v.ePaymentTypes.card.nfc && (I.value = m.enum.NFC, a.value = !0), v.ePaymentTypes.eWallet.qrPay && (y.value.push(m.enum.QRPAY), T.value = !0), v.ePaymentTypes.eWallet.scanPay && (y.value.push(m.enum.SCANPAY), T.value = !0));
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
const H = (
|
|
36
|
+
B();
|
|
37
|
+
const H = (c) => {
|
|
38
38
|
const d = {
|
|
39
39
|
terminal: !1,
|
|
40
40
|
card: {
|
|
@@ -43,14 +43,12 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
43
43
|
},
|
|
44
44
|
eWallet: {
|
|
45
45
|
qrPay: !1,
|
|
46
|
-
scanPay: !1
|
|
47
|
-
terminalScanPay: !1,
|
|
48
|
-
terminalQrPay: !1
|
|
46
|
+
scanPay: !1
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
|
-
|
|
49
|
+
P.value && (c == m.enum.TERMINAL && (d.card.terminal = !0), c == m.enum.NFC && (d.card.nfc = !0), y.value.length > 0 && (y.value.includes(m.enum.QRPAY) && (d.eWallet.qrPay = !0), y.value.includes(m.enum.SCANPAY) && (d.eWallet.scanPay = !0))), V.value && (d.terminal = !0), _("update:ePaymentTypes", d);
|
|
52
50
|
}, h = () => {
|
|
53
|
-
const
|
|
51
|
+
const c = {
|
|
54
52
|
terminal: !1,
|
|
55
53
|
card: {
|
|
56
54
|
terminal: !1,
|
|
@@ -63,62 +61,62 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
63
61
|
terminalQrPay: !1
|
|
64
62
|
}
|
|
65
63
|
};
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
P.value && (I.value && (I.value === m.enum.TERMINAL && (c.card.terminal = !0), I.value === m.enum.NFC && (c.card.nfc = !0)), V.value && (c.terminal = !0), y.value.includes(m.enum.QRPAY) && (c.eWallet.qrPay = !0), y.value.includes(m.enum.SCANPAY) && (c.eWallet.scanPay = !0), y.value.includes(m.enum.TERMINAL_SCAN_PAY) && (c.eWallet.terminalScanPay = !0), y.value.includes(m.enum.TERMINAL_QR_PAY) && (c.eWallet.terminalQrPay = !0)), _("update:ePaymentTypes", c);
|
|
65
|
+
}, O = (c) => {
|
|
66
|
+
I.value = "", c && (I.value = m.enum.TERMINAL), h();
|
|
67
|
+
}, Y = (c) => {
|
|
68
|
+
y.value = [], c && (y.value = [
|
|
69
|
+
m.enum.QRPAY,
|
|
70
|
+
m.enum.SCANPAY
|
|
73
71
|
]), h();
|
|
74
|
-
}, K = (
|
|
75
|
-
|
|
72
|
+
}, K = (c) => {
|
|
73
|
+
_("update:paymentTypes", c), c.includes(ae.F_ORDER_PAYMENT_TYPE.enum.ePayment) || (a.value = !1, T.value = !1, O(!1), Y(!1));
|
|
76
74
|
};
|
|
77
75
|
return me(() => {
|
|
78
|
-
|
|
79
|
-
}), (
|
|
80
|
-
const
|
|
76
|
+
B();
|
|
77
|
+
}), (c, d) => {
|
|
78
|
+
const D = w("FmSwitch"), U = w("FmRadio"), Q = w("FmRadioGroup"), M = w("FmCardSection"), q = w("FmCard"), F = w("FmCheckbox");
|
|
81
79
|
return R(), G(be, {
|
|
82
|
-
"payment-types":
|
|
83
|
-
"offline-payment-types":
|
|
84
|
-
"allow-e-payment":
|
|
85
|
-
"allow-credit":
|
|
80
|
+
"payment-types": i.paymentTypes,
|
|
81
|
+
"offline-payment-types": i.offlinePaymentTypes,
|
|
82
|
+
"allow-e-payment": v.allowEPayment,
|
|
83
|
+
"allow-credit": v.allowCredit,
|
|
86
84
|
"onUpdate:paymentTypes": K,
|
|
87
|
-
"onUpdate:offlinePaymentTypes": d[8] || (d[8] = (
|
|
85
|
+
"onUpdate:offlinePaymentTypes": d[8] || (d[8] = (f) => _("update:offlinePaymentTypes", f || []))
|
|
88
86
|
}, {
|
|
89
|
-
"e-payment-content":
|
|
90
|
-
s(
|
|
91
|
-
default:
|
|
92
|
-
s(
|
|
93
|
-
default:
|
|
94
|
-
s(
|
|
87
|
+
"e-payment-content": k(() => [
|
|
88
|
+
s(q, { variant: "outlined" }, {
|
|
89
|
+
default: k(() => [
|
|
90
|
+
s(M, null, {
|
|
91
|
+
default: k(() => [
|
|
92
|
+
s(D, {
|
|
95
93
|
label: l(e)("order.bankCard"),
|
|
96
94
|
sublabel: l(e)("order.cardPaymentDescription"),
|
|
97
95
|
"label-placement": "right",
|
|
98
96
|
modelValue: a.value,
|
|
99
97
|
"onUpdate:modelValue": [
|
|
100
|
-
d[0] || (d[0] = (
|
|
101
|
-
|
|
98
|
+
d[0] || (d[0] = (f) => a.value = f),
|
|
99
|
+
O
|
|
102
100
|
]
|
|
103
101
|
}, null, 8, ["label", "sublabel", "modelValue"]),
|
|
104
102
|
d[9] || (d[9] = r("br", null, null, -1)),
|
|
105
|
-
E(r("div",
|
|
106
|
-
s(
|
|
107
|
-
modelValue:
|
|
103
|
+
E(r("div", xe, [
|
|
104
|
+
s(Q, {
|
|
105
|
+
modelValue: I.value,
|
|
108
106
|
"onUpdate:modelValue": [
|
|
109
|
-
d[1] || (d[1] = (
|
|
107
|
+
d[1] || (d[1] = (f) => I.value = f),
|
|
110
108
|
H
|
|
111
109
|
],
|
|
112
110
|
inline: ""
|
|
113
111
|
}, {
|
|
114
|
-
default:
|
|
112
|
+
default: k(() => [
|
|
115
113
|
s(U, {
|
|
116
114
|
label: l(e)("order.terminal"),
|
|
117
|
-
value: l(
|
|
115
|
+
value: l(m).enum.TERMINAL
|
|
118
116
|
}, null, 8, ["label", "value"]),
|
|
119
117
|
s(U, {
|
|
120
118
|
label: l(e)("order.nfc"),
|
|
121
|
-
value: l(
|
|
119
|
+
value: l(m).enum.NFC
|
|
122
120
|
}, null, 8, ["label", "value"])
|
|
123
121
|
]),
|
|
124
122
|
_: 1
|
|
@@ -132,20 +130,20 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
132
130
|
]),
|
|
133
131
|
_: 1
|
|
134
132
|
}),
|
|
135
|
-
s(
|
|
133
|
+
s(q, {
|
|
136
134
|
variant: "outlined",
|
|
137
135
|
class: "mt-2"
|
|
138
136
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
s(
|
|
141
|
-
default:
|
|
142
|
-
s(
|
|
137
|
+
default: k(() => [
|
|
138
|
+
s(M, null, {
|
|
139
|
+
default: k(() => [
|
|
140
|
+
s(D, {
|
|
143
141
|
label: l(e)("order.terminal"),
|
|
144
142
|
sublabel: l(e)("order.terminalPaymentDescription"),
|
|
145
143
|
"label-placement": "right",
|
|
146
|
-
modelValue:
|
|
144
|
+
modelValue: V.value,
|
|
147
145
|
"onUpdate:modelValue": [
|
|
148
|
-
d[2] || (d[2] = (
|
|
146
|
+
d[2] || (d[2] = (f) => V.value = f),
|
|
149
147
|
h
|
|
150
148
|
]
|
|
151
149
|
}, null, 8, ["label", "sublabel", "modelValue"])
|
|
@@ -155,65 +153,65 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
155
153
|
]),
|
|
156
154
|
_: 1
|
|
157
155
|
}),
|
|
158
|
-
s(
|
|
156
|
+
s(q, {
|
|
159
157
|
variant: "outlined",
|
|
160
158
|
class: "mt-2"
|
|
161
159
|
}, {
|
|
162
|
-
default:
|
|
163
|
-
s(
|
|
164
|
-
default:
|
|
165
|
-
s(
|
|
160
|
+
default: k(() => [
|
|
161
|
+
s(M, null, {
|
|
162
|
+
default: k(() => [
|
|
163
|
+
s(D, {
|
|
166
164
|
label: l(e)("order.eWallet"),
|
|
167
165
|
sublabel: l(e)("order.eWalletDescription"),
|
|
168
166
|
"label-placement": "right",
|
|
169
|
-
modelValue:
|
|
167
|
+
modelValue: T.value,
|
|
170
168
|
"onUpdate:modelValue": [
|
|
171
|
-
d[3] || (d[3] = (
|
|
172
|
-
|
|
169
|
+
d[3] || (d[3] = (f) => T.value = f),
|
|
170
|
+
Y
|
|
173
171
|
]
|
|
174
172
|
}, null, 8, ["label", "sublabel", "modelValue"]),
|
|
175
173
|
d[10] || (d[10] = r("br", null, null, -1)),
|
|
176
|
-
E(r("div",
|
|
177
|
-
r("div",
|
|
174
|
+
E(r("div", we, [
|
|
175
|
+
r("div", _e, [
|
|
178
176
|
s(F, {
|
|
179
|
-
modelValue:
|
|
177
|
+
modelValue: y.value,
|
|
180
178
|
"onUpdate:modelValue": [
|
|
181
|
-
d[4] || (d[4] = (
|
|
179
|
+
d[4] || (d[4] = (f) => y.value = f),
|
|
182
180
|
h
|
|
183
181
|
],
|
|
184
182
|
label: l(e)("order.qrPay"),
|
|
185
|
-
value: l(
|
|
183
|
+
value: l(m).enum.QRPAY
|
|
186
184
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
187
185
|
s(F, {
|
|
188
|
-
modelValue:
|
|
186
|
+
modelValue: y.value,
|
|
189
187
|
"onUpdate:modelValue": [
|
|
190
|
-
d[5] || (d[5] = (
|
|
188
|
+
d[5] || (d[5] = (f) => y.value = f),
|
|
191
189
|
h
|
|
192
190
|
],
|
|
193
191
|
label: l(e)("order.scanPay"),
|
|
194
|
-
value: l(
|
|
192
|
+
value: l(m).enum.SCANPAY
|
|
195
193
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
196
194
|
s(F, {
|
|
197
|
-
modelValue:
|
|
195
|
+
modelValue: y.value,
|
|
198
196
|
"onUpdate:modelValue": [
|
|
199
|
-
d[6] || (d[6] = (
|
|
197
|
+
d[6] || (d[6] = (f) => y.value = f),
|
|
200
198
|
h
|
|
201
199
|
],
|
|
202
200
|
label: l(e)("order.terminalScanPay"),
|
|
203
|
-
value: l(
|
|
201
|
+
value: l(m).enum.TERMINAL_SCAN_PAY
|
|
204
202
|
}, null, 8, ["modelValue", "label", "value"]),
|
|
205
203
|
s(F, {
|
|
206
|
-
modelValue:
|
|
204
|
+
modelValue: y.value,
|
|
207
205
|
"onUpdate:modelValue": [
|
|
208
|
-
d[7] || (d[7] = (
|
|
206
|
+
d[7] || (d[7] = (f) => y.value = f),
|
|
209
207
|
h
|
|
210
208
|
],
|
|
211
209
|
label: l(e)("order.terminalQrPay"),
|
|
212
|
-
value: l(
|
|
210
|
+
value: l(m).enum.TERMINAL_QR_PAY
|
|
213
211
|
}, null, 8, ["modelValue", "label", "value"])
|
|
214
212
|
])
|
|
215
213
|
], 512), [
|
|
216
|
-
[N,
|
|
214
|
+
[N, T.value]
|
|
217
215
|
])
|
|
218
216
|
]),
|
|
219
217
|
_: 1
|
|
@@ -227,100 +225,100 @@ const _e = { class: "ml-7" }, xe = { class: "ml-7" }, we = { class: "flex flex-r
|
|
|
227
225
|
};
|
|
228
226
|
}
|
|
229
227
|
});
|
|
230
|
-
var
|
|
228
|
+
var he = { firebase: {} }, Te = {};
|
|
231
229
|
let z = null;
|
|
232
|
-
function
|
|
233
|
-
var
|
|
234
|
-
const
|
|
235
|
-
return
|
|
230
|
+
function Ce(i) {
|
|
231
|
+
var v;
|
|
232
|
+
const p = (v = i.name.split(".").pop()) == null ? void 0 : v.toLowerCase();
|
|
233
|
+
return p && /^[a-z0-9]+$/.test(p) ? p : {
|
|
236
234
|
"image/jpeg": "jpg",
|
|
237
235
|
"image/png": "png",
|
|
238
236
|
"image/webp": "webp",
|
|
239
237
|
"image/gif": "gif"
|
|
240
|
-
}[
|
|
238
|
+
}[i.type] ?? "bin";
|
|
241
239
|
}
|
|
242
|
-
function
|
|
240
|
+
function ke() {
|
|
243
241
|
var e;
|
|
244
|
-
return (((e =
|
|
242
|
+
return (((e = Te.firebase) == null ? void 0 : e.storageBucket) ?? he.firebase.storageBucket ?? "image.feedmedev.cc").replace(/^https?:\/\//, "").replace(/\/+$/, "");
|
|
245
243
|
}
|
|
246
|
-
function
|
|
247
|
-
const
|
|
248
|
-
return `https://${
|
|
244
|
+
function Ae(i) {
|
|
245
|
+
const p = i.replace(/^\/+/, "");
|
|
246
|
+
return `https://${ke()}/${p}`;
|
|
249
247
|
}
|
|
250
248
|
async function Re() {
|
|
251
|
-
const
|
|
252
|
-
if (!
|
|
253
|
-
const
|
|
254
|
-
await se(
|
|
249
|
+
const i = re();
|
|
250
|
+
if (!i.currentUser && (await i.authStateReady(), !i.currentUser && (z || (z = (async () => {
|
|
251
|
+
const p = await ie.getCustomToken();
|
|
252
|
+
await se(i, p);
|
|
255
253
|
})().finally(() => {
|
|
256
254
|
z = null;
|
|
257
|
-
})), await z, !
|
|
255
|
+
})), await z, !i.currentUser)))
|
|
258
256
|
throw new Error("User not authenticated for image upload");
|
|
259
257
|
}
|
|
260
258
|
async function Ue() {
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
await se(
|
|
259
|
+
const i = re();
|
|
260
|
+
i.currentUser && await fe(i);
|
|
261
|
+
const p = await ie.getCustomToken();
|
|
262
|
+
await se(i, p);
|
|
265
263
|
}
|
|
266
|
-
async function Fe(
|
|
267
|
-
const e = ye(),
|
|
264
|
+
async function Fe(i, p) {
|
|
265
|
+
const e = ye(), v = le(e, i);
|
|
268
266
|
try {
|
|
269
|
-
await te(
|
|
270
|
-
contentType:
|
|
267
|
+
await te(v, p, {
|
|
268
|
+
contentType: p.type || void 0
|
|
271
269
|
});
|
|
272
270
|
return;
|
|
273
|
-
} catch (
|
|
274
|
-
if ((
|
|
275
|
-
throw
|
|
271
|
+
} catch (P) {
|
|
272
|
+
if ((P == null ? void 0 : P.code) !== "storage/unauthorized")
|
|
273
|
+
throw P;
|
|
276
274
|
}
|
|
277
275
|
await Ue();
|
|
278
|
-
const
|
|
279
|
-
await te(
|
|
280
|
-
contentType:
|
|
276
|
+
const _ = le(e, i);
|
|
277
|
+
await te(_, p, {
|
|
278
|
+
contentType: p.type || void 0
|
|
281
279
|
});
|
|
282
280
|
}
|
|
283
|
-
async function Ee(
|
|
281
|
+
async function Ee(i, p) {
|
|
284
282
|
await Re();
|
|
285
|
-
const e =
|
|
286
|
-
return await Fe(
|
|
283
|
+
const e = i.replace(/^\/+/, "").replace(/\/+$/, ""), v = Ce(p), _ = `${Date.now()}_${Math.random().toString(36).slice(2, 10)}.${v}`, P = `${e}/${_}`;
|
|
284
|
+
return await Fe(P, p), Ae(P);
|
|
287
285
|
}
|
|
288
286
|
const Ne = {
|
|
289
287
|
key: 0,
|
|
290
288
|
class: "flex flex-col gap-32"
|
|
291
|
-
},
|
|
289
|
+
}, Oe = {
|
|
292
290
|
key: 0,
|
|
293
291
|
class: "flex flex-col gap-2"
|
|
294
|
-
},
|
|
292
|
+
}, De = { class: "fm-typo-en-title-sm-600" }, Me = { class: "flex flex-col gap-1 w-full md:w-1/2" }, We = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, $e = { class: "flex flex-col gap-2" }, Le = { class: "fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col gap-5" }, qe = { class: "flex flex-col gap-16" }, je = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Be = { class: "fm-typo-en-title-sm-600" }, Qe = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ze = { class: "fm-typo-en-title-sm-600" }, He = { class: "flex flex-row gap-2" }, Ke = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, Ge = { class: "fm-typo-en-title-sm-600" }, Xe = { class: "flex flex-col gap-2" }, Ze = { class: "fm-typo-en-title-sm-600" }, Je = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2 my-5 w-11/12" }, ea = { class: "fm-typo-en-title-sm-600" }, aa = { class: "flex flex-col gap-2" }, la = { class: "fm-typo-en-title-sm-600" }, ta = { class: "flex flex-col gap-2" }, na = { class: "fm-typo-en-title-sm-600" }, oa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ra = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, sa = { class: "fm-typo-en-body-md-600" }, da = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ia = {
|
|
295
293
|
key: 1,
|
|
296
294
|
class: "flex flex-col gap-2"
|
|
297
295
|
}, ua = ["src", "alt"], ma = { class: "border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-4 my-5 w-11/12" }, pa = { class: "fm-typo-en-body-md-600" }, ca = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ya = {
|
|
298
296
|
key: 1,
|
|
299
297
|
class: "flex flex-col gap-2"
|
|
300
|
-
}, fa = ["src", "alt"], va = { class: "flex flex-col gap-2" }, ba = { class: "fm-typo-en-title-sm-600" }, ga = { class: "flex flex-col gap-2" },
|
|
298
|
+
}, fa = ["src", "alt"], va = { class: "flex flex-col gap-2" }, ba = { class: "fm-typo-en-title-sm-600" }, ga = { class: "flex flex-col gap-2" }, Ia = { key: 1 }, ne = 10 * 1e3 * 1e3, ha = /* @__PURE__ */ oe({
|
|
301
299
|
__name: "KioskSettingView",
|
|
302
300
|
props: {
|
|
303
301
|
restaurantId: {},
|
|
304
302
|
form: {}
|
|
305
303
|
},
|
|
306
304
|
emits: ["updateKioskOrderSetting"],
|
|
307
|
-
setup(
|
|
308
|
-
const { t: e } = de(),
|
|
305
|
+
setup(i, { emit: p }) {
|
|
306
|
+
const { t: e } = de(), v = Pe(), _ = A(() => {
|
|
309
307
|
var o;
|
|
310
|
-
return ((o =
|
|
311
|
-
}),
|
|
312
|
-
var b, S,
|
|
308
|
+
return ((o = v.sessionUser.value) == null ? void 0 : o.role.isAdmin) ?? !1;
|
|
309
|
+
}), P = i, I = Se(), y = p, a = L(P.form), V = (o) => o < 0 ? e("order.nonNegativeRule") : !0, T = (o) => o <= (a.value.dineIn.displayStand.standSlotRange.min ?? 0) ? e("order.greaterThanMinRule") : !0, B = A(() => [V]), H = A(() => [V]), h = A(() => [V, T]), O = A(() => {
|
|
310
|
+
var b, S, C, W, n, X, Z, J;
|
|
313
311
|
const o = a.value, t = (b = o.otaChannel) == null ? void 0 : b.trim();
|
|
314
312
|
if (o.dineIn.enabled && o.dineIn.displayStand.enabled) {
|
|
315
|
-
const { padDigit:
|
|
316
|
-
if (!(
|
|
313
|
+
const { padDigit: x, standSlotRange: $ } = o.dineIn.displayStand;
|
|
314
|
+
if (!(x != null && x >= 0 && $.min != null && $.max != null && $.min <= $.max)) return null;
|
|
317
315
|
}
|
|
318
|
-
const
|
|
319
|
-
if ((S =
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
316
|
+
const u = o.paymentSetting;
|
|
317
|
+
if ((S = u == null ? void 0 : u.paymentTypes) != null && S.includes(ve.enum.ePayment)) {
|
|
318
|
+
const x = u.ePaymentTypes;
|
|
319
|
+
if (!x) return null;
|
|
320
|
+
const $ = ((C = x.card) == null ? void 0 : C.terminal) || ((W = x.card) == null ? void 0 : W.nfc), ee = ((n = x.eWallet) == null ? void 0 : n.qrPay) || ((X = x.eWallet) == null ? void 0 : X.scanPay) || ((Z = x.eWallet) == null ? void 0 : Z.terminalScanPay) || ((J = x.eWallet) == null ? void 0 : J.terminalQrPay), ue = x.terminal;
|
|
321
|
+
if (!$ && !ee && !ue) return null;
|
|
324
322
|
}
|
|
325
323
|
return {
|
|
326
324
|
...o,
|
|
@@ -339,49 +337,49 @@ const Ne = {
|
|
|
339
337
|
}
|
|
340
338
|
}
|
|
341
339
|
};
|
|
342
|
-
}), { startAsyncCall:
|
|
340
|
+
}), { startAsyncCall: Y } = ge();
|
|
343
341
|
function K(o) {
|
|
344
342
|
a.value.paymentSetting.paymentTypes = o;
|
|
345
343
|
}
|
|
346
|
-
function
|
|
344
|
+
function c(o) {
|
|
347
345
|
a.value.paymentSetting.ePaymentTypes = o;
|
|
348
346
|
}
|
|
349
|
-
const d =
|
|
350
|
-
function
|
|
347
|
+
const d = Ie();
|
|
348
|
+
function D(o) {
|
|
351
349
|
a.value[o] = null;
|
|
352
350
|
}
|
|
353
351
|
function U(o) {
|
|
354
352
|
const t = a.value[o];
|
|
355
353
|
if (!t) return null;
|
|
356
|
-
const
|
|
357
|
-
return
|
|
354
|
+
const u = t.trim();
|
|
355
|
+
return u.length > 0 ? u : null;
|
|
358
356
|
}
|
|
359
|
-
async function
|
|
357
|
+
async function Q(o, t) {
|
|
360
358
|
try {
|
|
361
|
-
const
|
|
362
|
-
const b = `/restaurant/${
|
|
359
|
+
const u = await Y(async () => {
|
|
360
|
+
const b = `/restaurant/${P.restaurantId}/kiosk/${o}`;
|
|
363
361
|
return await Ee(b, t);
|
|
364
362
|
});
|
|
365
|
-
a.value[o] =
|
|
363
|
+
a.value[o] = u, I.open({
|
|
366
364
|
title: e("order.imageUploadSuccess"),
|
|
367
365
|
type: "success"
|
|
368
366
|
});
|
|
369
|
-
} catch (
|
|
370
|
-
console.error(
|
|
367
|
+
} catch (u) {
|
|
368
|
+
console.error(u), I.open({
|
|
371
369
|
title: e("order.imageUploadFailed"),
|
|
372
370
|
type: "error"
|
|
373
371
|
});
|
|
374
372
|
}
|
|
375
373
|
}
|
|
376
|
-
function
|
|
377
|
-
var S,
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
title: b ? `${e("order.imageUploadRejected")}: ${
|
|
374
|
+
function M(o, t) {
|
|
375
|
+
var S, C;
|
|
376
|
+
const u = e(o === "coverImageLandscape" ? "order.coverImageLandscape" : "order.coverImagePortrait"), b = (C = (S = t[0]) == null ? void 0 : S.reason) == null ? void 0 : C[0];
|
|
377
|
+
I.open({
|
|
378
|
+
title: b ? `${e("order.imageUploadRejected")}: ${u} (${b})` : `${e("order.imageUploadRejected")}: ${u}`,
|
|
381
379
|
type: "error"
|
|
382
380
|
});
|
|
383
381
|
}
|
|
384
|
-
const
|
|
382
|
+
const q = A(() => d.getRestaurantEPayment()), F = A({
|
|
385
383
|
get: () => (a.value.dineIn.displayStand.enabled && a.value.dineIn.displayStand.enablePaxDialog || a.value.dineIn.pickUp.enablePaxDialog) ?? !1,
|
|
386
384
|
set: (o) => {
|
|
387
385
|
a.value.dineIn.displayStand.enablePaxDialog = o, a.value.dineIn.pickUp.enablePaxDialog = o;
|
|
@@ -393,34 +391,34 @@ const Ne = {
|
|
|
393
391
|
a.value.dineIn.pickUp.enabled,
|
|
394
392
|
a.value.dineIn.displayStand.enabled
|
|
395
393
|
],
|
|
396
|
-
([o, t,
|
|
394
|
+
([o, t, u], b) => {
|
|
397
395
|
const S = (b == null ? void 0 : b[0]) ?? !1;
|
|
398
|
-
o && !t && !
|
|
396
|
+
o && !t && !u && (a.value.dineIn.pickUp.enabled = !0, S || I.open({
|
|
399
397
|
title: e("order.dineInModeAutoCorrected"),
|
|
400
398
|
type: "info"
|
|
401
399
|
}));
|
|
402
400
|
},
|
|
403
401
|
{ immediate: !0 }
|
|
404
402
|
);
|
|
405
|
-
async function
|
|
406
|
-
if (
|
|
407
|
-
const o =
|
|
408
|
-
|
|
409
|
-
await
|
|
403
|
+
async function f() {
|
|
404
|
+
if (O.value) {
|
|
405
|
+
const o = O.value;
|
|
406
|
+
Y(async () => {
|
|
407
|
+
await y("updateKioskOrderSetting", o);
|
|
410
408
|
});
|
|
411
409
|
} else
|
|
412
|
-
|
|
410
|
+
I.open({
|
|
413
411
|
title: e("order.failedToUpdateSetting"),
|
|
414
412
|
type: "error"
|
|
415
413
|
});
|
|
416
414
|
}
|
|
417
415
|
return (o, t) => {
|
|
418
|
-
const
|
|
419
|
-
return a.value ? (R(),
|
|
420
|
-
|
|
421
|
-
r("span",
|
|
422
|
-
r("div",
|
|
423
|
-
s(
|
|
416
|
+
const u = w("FmTextField"), b = w("FmSwitch"), S = w("FmStepperField"), C = w("FmDropField"), W = w("FmButton");
|
|
417
|
+
return a.value ? (R(), j("div", Ne, [
|
|
418
|
+
_.value ? (R(), j("div", Oe, [
|
|
419
|
+
r("span", De, g(l(e)("order.otaChannel")), 1),
|
|
420
|
+
r("div", Me, [
|
|
421
|
+
s(u, {
|
|
424
422
|
modelValue: a.value.otaChannel,
|
|
425
423
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => a.value.otaChannel = n),
|
|
426
424
|
label: l(e)("order.otaChannel"),
|
|
@@ -429,16 +427,16 @@ const Ne = {
|
|
|
429
427
|
r("span", We, g(l(e)("order.otaChannelHint")), 1)
|
|
430
428
|
])
|
|
431
429
|
])) : ce("", !0),
|
|
432
|
-
r("div",
|
|
433
|
-
r("span",
|
|
434
|
-
r("div",
|
|
430
|
+
r("div", $e, [
|
|
431
|
+
r("span", Le, g(l(e)("order.dineIn")), 1),
|
|
432
|
+
r("div", Ye, [
|
|
435
433
|
s(b, {
|
|
436
434
|
modelValue: a.value.dineIn.enabled,
|
|
437
435
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => a.value.dineIn.enabled = n),
|
|
438
436
|
label: l(e)("order.dineIn"),
|
|
439
437
|
"label-placement": "right"
|
|
440
438
|
}, null, 8, ["modelValue", "label"]),
|
|
441
|
-
E(r("div",
|
|
439
|
+
E(r("div", qe, [
|
|
442
440
|
r("div", null, [
|
|
443
441
|
s(b, {
|
|
444
442
|
modelValue: a.value.dineIn.pickUp.enabled,
|
|
@@ -446,15 +444,15 @@ const Ne = {
|
|
|
446
444
|
label: l(e)("order.pickAtCounter"),
|
|
447
445
|
"label-placement": "right"
|
|
448
446
|
}, null, 8, ["modelValue", "label"]),
|
|
449
|
-
E(r("div",
|
|
450
|
-
r("span",
|
|
451
|
-
s(
|
|
447
|
+
E(r("div", je, [
|
|
448
|
+
r("span", Be, g(l(e)("order.submitOrderInstruction")), 1),
|
|
449
|
+
s(u, {
|
|
452
450
|
modelValue: a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter,
|
|
453
451
|
"onUpdate:modelValue": t[3] || (t[3] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.payAtCounter = n),
|
|
454
452
|
label: l(e)("order.payAtCounter"),
|
|
455
453
|
placeholder: "Collect your transaction slip below and present it to the cashier"
|
|
456
454
|
}, null, 8, ["modelValue", "label"]),
|
|
457
|
-
s(
|
|
455
|
+
s(u, {
|
|
458
456
|
modelValue: a.value.dineIn.pickUp.submitOrderInstruction.paid,
|
|
459
457
|
"onUpdate:modelValue": t[4] || (t[4] = (n) => a.value.dineIn.pickUp.submitOrderInstruction.paid = n),
|
|
460
458
|
label: l(e)("order.paid"),
|
|
@@ -471,9 +469,9 @@ const Ne = {
|
|
|
471
469
|
label: l(e)("order.displayStand"),
|
|
472
470
|
"label-placement": "right"
|
|
473
471
|
}, null, 8, ["modelValue", "label"]),
|
|
474
|
-
E(r("div",
|
|
472
|
+
E(r("div", Qe, [
|
|
475
473
|
r("span", ze, g(l(e)("order.tableServiceSetting")), 1),
|
|
476
|
-
s(
|
|
474
|
+
s(u, {
|
|
477
475
|
modelValue: a.value.dineIn.displayStand.prefix,
|
|
478
476
|
"onUpdate:modelValue": t[6] || (t[6] = (n) => a.value.dineIn.displayStand.prefix = n),
|
|
479
477
|
label: l(e)("order.prefix"),
|
|
@@ -504,7 +502,7 @@ const Ne = {
|
|
|
504
502
|
"onUpdate:modelValue": t[9] || (t[9] = (n) => a.value.dineIn.displayStand.padDigit = n),
|
|
505
503
|
label: l(e)("order.padDigit"),
|
|
506
504
|
labelMark: "required",
|
|
507
|
-
rules:
|
|
505
|
+
rules: B.value,
|
|
508
506
|
placeholder: l(e)("order.padDigit")
|
|
509
507
|
}, null, 8, ["modelValue", "label", "rules", "placeholder"])
|
|
510
508
|
], 512), [
|
|
@@ -512,13 +510,13 @@ const Ne = {
|
|
|
512
510
|
]),
|
|
513
511
|
E(r("div", Ke, [
|
|
514
512
|
r("span", Ge, g(l(e)("order.submitOrderInstruction")), 1),
|
|
515
|
-
s(
|
|
513
|
+
s(u, {
|
|
516
514
|
modelValue: a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter,
|
|
517
515
|
"onUpdate:modelValue": t[10] || (t[10] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.payAtCounter = n),
|
|
518
516
|
label: l(e)("order.payAtCounter"),
|
|
519
517
|
placeholder: "Collect your transaction slip below and present it to the cashier"
|
|
520
518
|
}, null, 8, ["modelValue", "label"]),
|
|
521
|
-
s(
|
|
519
|
+
s(u, {
|
|
522
520
|
modelValue: a.value.dineIn.displayStand.submitOrderInstruction.paid,
|
|
523
521
|
"onUpdate:modelValue": t[11] || (t[11] = (n) => a.value.dineIn.displayStand.submitOrderInstruction.paid = n),
|
|
524
522
|
label: l(e)("order.paid"),
|
|
@@ -544,13 +542,13 @@ const Ne = {
|
|
|
544
542
|
}, null, 8, ["modelValue", "label"]),
|
|
545
543
|
E(r("div", Je, [
|
|
546
544
|
r("span", ea, g(l(e)("order.submitOrderInstruction")), 1),
|
|
547
|
-
s(
|
|
545
|
+
s(u, {
|
|
548
546
|
modelValue: a.value.takeaway.submitOrderInstruction.payAtCounter,
|
|
549
547
|
"onUpdate:modelValue": t[13] || (t[13] = (n) => a.value.takeaway.submitOrderInstruction.payAtCounter = n),
|
|
550
548
|
label: l(e)("order.payAtCounter"),
|
|
551
549
|
placeholder: "Collect your transaction slip below and present it to the cashier"
|
|
552
550
|
}, null, 8, ["modelValue", "label"]),
|
|
553
|
-
s(
|
|
551
|
+
s(u, {
|
|
554
552
|
modelValue: a.value.takeaway.submitOrderInstruction.paid,
|
|
555
553
|
"onUpdate:modelValue": t[14] || (t[14] = (n) => a.value.takeaway.submitOrderInstruction.paid = n),
|
|
556
554
|
label: l(e)("order.paid"),
|
|
@@ -576,7 +574,7 @@ const Ne = {
|
|
|
576
574
|
r("div", ra, [
|
|
577
575
|
r("span", sa, g(l(e)("order.coverImageLandscape")), 1),
|
|
578
576
|
r("span", da, g(l(e)("order.coverImageLandscapeHint")), 1),
|
|
579
|
-
U("coverImageLandscape") ? (R(),
|
|
577
|
+
U("coverImageLandscape") ? (R(), j("div", ia, [
|
|
580
578
|
r("img", {
|
|
581
579
|
src: U("coverImageLandscape"),
|
|
582
580
|
alt: l(e)("order.coverImageLandscape"),
|
|
@@ -586,21 +584,21 @@ const Ne = {
|
|
|
586
584
|
variant: "tertiary",
|
|
587
585
|
class: "mr-auto",
|
|
588
586
|
label: l(e)("common.delete"),
|
|
589
|
-
onClick: t[18] || (t[18] = (n) =>
|
|
587
|
+
onClick: t[18] || (t[18] = (n) => D("coverImageLandscape"))
|
|
590
588
|
}, null, 8, ["label"])
|
|
591
|
-
])) : (R(), G(
|
|
589
|
+
])) : (R(), G(C, {
|
|
592
590
|
key: 0,
|
|
593
591
|
accept: "image/*",
|
|
594
592
|
"max-file-size": ne,
|
|
595
593
|
"content-class": "w-full max-w-[400px] aspect-video",
|
|
596
|
-
onFileUpload: t[16] || (t[16] = (n) =>
|
|
597
|
-
onFileRejected: t[17] || (t[17] = (n) =>
|
|
594
|
+
onFileUpload: t[16] || (t[16] = (n) => Q("coverImageLandscape", n)),
|
|
595
|
+
onFileRejected: t[17] || (t[17] = (n) => M("coverImageLandscape", n))
|
|
598
596
|
}))
|
|
599
597
|
]),
|
|
600
598
|
r("div", ma, [
|
|
601
599
|
r("span", pa, g(l(e)("order.coverImagePortrait")), 1),
|
|
602
600
|
r("span", ca, g(l(e)("order.coverImagePortraitHint")), 1),
|
|
603
|
-
U("coverImagePortrait") ? (R(),
|
|
601
|
+
U("coverImagePortrait") ? (R(), j("div", ya, [
|
|
604
602
|
r("img", {
|
|
605
603
|
src: U("coverImagePortrait"),
|
|
606
604
|
alt: l(e)("order.coverImagePortrait"),
|
|
@@ -610,15 +608,15 @@ const Ne = {
|
|
|
610
608
|
variant: "tertiary",
|
|
611
609
|
class: "mr-auto",
|
|
612
610
|
label: l(e)("common.delete"),
|
|
613
|
-
onClick: t[21] || (t[21] = (n) =>
|
|
611
|
+
onClick: t[21] || (t[21] = (n) => D("coverImagePortrait"))
|
|
614
612
|
}, null, 8, ["label"])
|
|
615
|
-
])) : (R(), G(
|
|
613
|
+
])) : (R(), G(C, {
|
|
616
614
|
key: 0,
|
|
617
615
|
accept: "image/*",
|
|
618
616
|
"max-file-size": ne,
|
|
619
617
|
"content-class": "w-[240px] aspect-[9/16]",
|
|
620
|
-
onFileUpload: t[19] || (t[19] = (n) =>
|
|
621
|
-
onFileRejected: t[20] || (t[20] = (n) =>
|
|
618
|
+
onFileUpload: t[19] || (t[19] = (n) => Q("coverImagePortrait", n)),
|
|
619
|
+
onFileRejected: t[20] || (t[20] = (n) => M("coverImagePortrait", n))
|
|
622
620
|
}))
|
|
623
621
|
])
|
|
624
622
|
]),
|
|
@@ -636,25 +634,25 @@ const Ne = {
|
|
|
636
634
|
s(Ve, {
|
|
637
635
|
"payment-types": a.value.paymentSetting.paymentTypes ?? [],
|
|
638
636
|
"allow-credit": !0,
|
|
639
|
-
"allow-e-payment":
|
|
637
|
+
"allow-e-payment": q.value,
|
|
640
638
|
"offline-payment-types": a.value.paymentSetting.offlinePaymentTypes ?? [],
|
|
641
639
|
ePaymentTypes: a.value.paymentSetting.ePaymentTypes ?? {},
|
|
642
640
|
"onUpdate:paymentTypes": K,
|
|
643
641
|
"onUpdate:offlinePaymentTypes": t[23] || (t[23] = (n) => a.value.paymentSetting.offlinePaymentTypes = n),
|
|
644
|
-
"onUpdate:ePaymentTypes":
|
|
642
|
+
"onUpdate:ePaymentTypes": c
|
|
645
643
|
}, null, 8, ["payment-types", "allow-e-payment", "offline-payment-types", "ePaymentTypes"])
|
|
646
644
|
]),
|
|
647
645
|
s(W, {
|
|
648
646
|
class: "w-1/4 mb-10",
|
|
649
647
|
variant: "primary",
|
|
650
648
|
label: l(e)("order.updateSetting"),
|
|
651
|
-
disabled: !
|
|
652
|
-
onClick:
|
|
649
|
+
disabled: !O.value,
|
|
650
|
+
onClick: f
|
|
653
651
|
}, null, 8, ["label", "disabled"])
|
|
654
|
-
])) : (R(),
|
|
652
|
+
])) : (R(), j("div", Ia, g(l(e)("order.pleaseSelectRestaurant")), 1));
|
|
655
653
|
};
|
|
656
654
|
}
|
|
657
655
|
});
|
|
658
656
|
export {
|
|
659
|
-
|
|
657
|
+
ha as default
|
|
660
658
|
};
|