@feedmepos/mf-payment 1.4.41 → 1.4.43
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/{Actions.vue_vue_type_script_setup_true_lang-Dm9-P1P6.js → Actions.vue_vue_type_script_setup_true_lang-Cnd9TJ68.js} +2 -2
- package/dist/{Chargeback-CF_p5AkJ.js → Chargeback-BftBez0p.js} +5 -5
- package/dist/{OnboardForm-ChV0WBPP.js → OnboardForm-BQy8Zcpp.js} +4 -4
- package/dist/{OnboardForm-BBTeyz62.js → OnboardForm-DUMMSnIq.js} +4 -4
- package/dist/{OnboardSubmission-Cm2voJph.js → OnboardSubmission-Bl9QPMAC.js} +3 -3
- package/dist/{OnboardSubmission-zgLxolLn.js → OnboardSubmission-WyNZQDgB.js} +5 -5
- package/dist/{PayoutAccount-BGnDHZu0.js → PayoutAccount-7OrgY3EZ.js} +5 -5
- package/dist/{PayoutAccount-CuaZPXV1.js → PayoutAccount-BvncjJnv.js} +5 -5
- package/dist/{PayoutAccountSetting-9TPlf6cV.js → PayoutAccountSetting-YYswVooL.js} +3 -3
- package/dist/{Restaurant-BFM6IVeo.js → Restaurant-26r7Q01z.js} +4 -4
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CxX3_Xyg.js +63 -0
- package/dist/{RestaurantSetting-CRWzH54g.js → RestaurantSetting-D1APrvzM.js} +199 -178
- package/dist/{Settlement-CK5FGMkl.js → Settlement-C_rIV3fu.js} +20 -29
- package/dist/{Settlement-BVyNw-s_.js → Settlement-Ix55QLVB.js} +3 -3
- package/dist/{SettlementTransactions-q8-O_icK.js → SettlementTransactions-B7NwtUmV.js} +4 -4
- package/dist/{SettlementTransactions-B_OHLhd0.js → SettlementTransactions-Bh8lUwJw.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B_1HKa0E.js → Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js} +1 -1
- package/dist/{Terminal-BSmGsSH6.js → Terminal-CrM7EzkM.js} +5 -5
- package/dist/{TerminalSetting-B70azG2l.js → TerminalSetting-BiaGvysm.js} +3 -3
- package/dist/{Transaction-BhnPGXP_.js → Transaction-95UATrK6.js} +6 -6
- package/dist/Transaction-DowFSIYy.js +456 -0
- package/dist/{TransactionOld-hQw2jPbw.js → TransactionOld-D8EnKv6-.js} +14 -10
- package/dist/api/payment-gateway/index.d.ts +4 -7
- package/dist/{app-Tmr48m4A.js → app-BE2wXsqm.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-B1D_MgMU.js → assets-CpvC_0O-.js} +1 -1
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/{grafana-CpZFM_Is.js → grafana-22PXAn1O.js} +1 -1
- package/dist/{index-yD13EQmY.js → index-B0-Kn6Mw.js} +1 -1
- package/dist/{index-BOXe3lBY.js → index-B0uA-O38.js} +1 -1
- package/dist/{index-CIj4gYaQ.js → index-B9kHmV6p.js} +1 -1
- package/dist/{index-Cif5ZVCF.js → index-BLyx8ZQr.js} +1 -1
- package/dist/{index-DkkJFPfC.js → index-Blb5YaYR.js} +1 -1
- package/dist/{index-CvhrHdH5.js → index-CGb-qnBI.js} +2 -2
- package/dist/{index-wMVjSqOV.js → index-Ctn4LFui.js} +1 -1
- package/dist/{index-BCwCx3CJ.js → index-cCTvH31Z.js} +4806 -4722
- package/dist/{index.vue_vue_type_script_setup_true_lang-BzAMhFiq.js → index.vue_vue_type_script_setup_true_lang-NUicoOT2.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CPyM_Ryb.js → payout-account-CKki3n0I.js} +3 -3
- package/dist/{plugins-CABpeaof.js → plugins-DXBLQm5t.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +20 -20
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +7 -7
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +6 -6
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +40 -40
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +4 -4
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +2 -2
- package/package.json +2 -2
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-Bmt9k4Tu.js +0 -37
- package/dist/Transaction-ycjLL38i.js +0 -449
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as D, ref as b, resolveComponent as r, openBlock as g, createBlock as w, withCtx as I, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as S, computed as
|
|
2
|
-
import { g as q, b as G, u as M, e as U } from "./index-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { u as
|
|
1
|
+
import { defineComponent as D, ref as b, resolveComponent as r, openBlock as g, createBlock as w, withCtx as I, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as S, computed as K, onMounted as R, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as P, normalizeProps as H } from "vue";
|
|
2
|
+
import { g as q, b as G, u as M, e as U } from "./index-cCTvH31Z.js";
|
|
3
|
+
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
4
|
+
import { useRouter as Q } from "vue-router";
|
|
5
|
+
import { u as Y } from "./index-BLyx8ZQr.js";
|
|
6
6
|
import { z as f, a as F } from "./validator-D5jtpt9A.js";
|
|
7
|
-
import { useCoreStore as
|
|
8
|
-
import { u as
|
|
9
|
-
import { useSnackbar as
|
|
10
|
-
import { r as
|
|
11
|
-
const
|
|
7
|
+
import { useCoreStore as E } from "@feedmepos/mf-common";
|
|
8
|
+
import { u as Z } from "./error-K1CakhA9.js";
|
|
9
|
+
import { useSnackbar as J } from "@feedmepos/ui-library";
|
|
10
|
+
import { r as W } from "./index-Ctn4LFui.js";
|
|
11
|
+
const C = {
|
|
12
12
|
async get(a) {
|
|
13
13
|
return q(
|
|
14
14
|
await G().get(
|
|
@@ -38,7 +38,7 @@ const A = {
|
|
|
38
38
|
)
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
},
|
|
41
|
+
}, X = { class: "flex mt-6 space-x-6" }, h = /* @__PURE__ */ D({
|
|
42
42
|
__name: "FiuuGateway",
|
|
43
43
|
props: {
|
|
44
44
|
onUpdate: {
|
|
@@ -55,17 +55,19 @@ const A = {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
setup(a) {
|
|
58
|
-
var v,
|
|
59
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
var v, i;
|
|
59
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
60
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
61
|
+
merchantId: "",
|
|
62
|
+
uniqueId: "",
|
|
63
|
+
verifyKey: "",
|
|
64
|
+
secretKey: "",
|
|
65
|
+
applicationCode: "",
|
|
66
|
+
offlineSecret: ""
|
|
67
|
+
}
|
|
68
|
+
);
|
|
67
69
|
return (p, e) => {
|
|
68
|
-
const s = r("FmTextField"), V = r("FmSwitch"),
|
|
70
|
+
const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
|
69
71
|
return g(), w(y, {
|
|
70
72
|
ref: "form",
|
|
71
73
|
class: "flex flex-col gap-16",
|
|
@@ -113,15 +115,15 @@ const A = {
|
|
|
113
115
|
"onUpdate:modelValue": e[6] || (e[6] = (l) => u.value = l),
|
|
114
116
|
label: "Is Active"
|
|
115
117
|
}, null, 8, ["modelValue"]),
|
|
116
|
-
T("div",
|
|
117
|
-
a.gateway ? (g(), w(
|
|
118
|
+
T("div", X, [
|
|
119
|
+
a.gateway ? (g(), w(d, {
|
|
118
120
|
key: 0,
|
|
119
121
|
class: "flex-1",
|
|
120
122
|
variant: "secondary",
|
|
121
123
|
label: "Delete",
|
|
122
124
|
onclick: () => a.onDelete(a.gateway)
|
|
123
125
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
124
|
-
o(
|
|
126
|
+
o(d, {
|
|
125
127
|
type: "submit",
|
|
126
128
|
class: "flex-1",
|
|
127
129
|
variant: "primary",
|
|
@@ -133,7 +135,7 @@ const A = {
|
|
|
133
135
|
}, 512);
|
|
134
136
|
};
|
|
135
137
|
}
|
|
136
|
-
}),
|
|
138
|
+
}), ee = { class: "flex mt-6 space-x-6" }, te = /* @__PURE__ */ D({
|
|
137
139
|
__name: "RevenueMonsterGateway",
|
|
138
140
|
props: {
|
|
139
141
|
onUpdate: {
|
|
@@ -150,15 +152,17 @@ const A = {
|
|
|
150
152
|
}
|
|
151
153
|
},
|
|
152
154
|
setup(a) {
|
|
153
|
-
var v,
|
|
154
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
var v, i;
|
|
156
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
157
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
158
|
+
storeId: "",
|
|
159
|
+
clientId: "",
|
|
160
|
+
clientSecret: "",
|
|
161
|
+
clientPrivateKey: ""
|
|
162
|
+
}
|
|
163
|
+
);
|
|
160
164
|
return (p, e) => {
|
|
161
|
-
const s = r("FmTextField"), V = r("FmTextarea"),
|
|
165
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), y = r("FmButton"), l = r("FmForm");
|
|
162
166
|
return g(), w(l, {
|
|
163
167
|
ref: "form",
|
|
164
168
|
class: "flex flex-col gap-16",
|
|
@@ -167,33 +171,33 @@ const A = {
|
|
|
167
171
|
default: I(() => [
|
|
168
172
|
o(s, {
|
|
169
173
|
modelValue: t.value.storeId,
|
|
170
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
174
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.value.storeId = c),
|
|
171
175
|
label: "Store ID",
|
|
172
176
|
rules: n(f)(n(F).string())
|
|
173
177
|
}, null, 8, ["modelValue", "rules"]),
|
|
174
178
|
o(s, {
|
|
175
179
|
modelValue: t.value.clientId,
|
|
176
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
180
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.value.clientId = c),
|
|
177
181
|
label: "Client ID",
|
|
178
182
|
rules: n(f)(n(F).string())
|
|
179
183
|
}, null, 8, ["modelValue", "rules"]),
|
|
180
184
|
o(s, {
|
|
181
185
|
modelValue: t.value.clientSecret,
|
|
182
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
186
|
+
"onUpdate:modelValue": e[2] || (e[2] = (c) => t.value.clientSecret = c),
|
|
183
187
|
label: "Client Secret",
|
|
184
188
|
rules: n(f)(n(F).string())
|
|
185
189
|
}, null, 8, ["modelValue", "rules"]),
|
|
186
190
|
o(V, {
|
|
187
191
|
modelValue: t.value.clientPrivateKey,
|
|
188
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
192
|
+
"onUpdate:modelValue": e[3] || (e[3] = (c) => t.value.clientPrivateKey = c),
|
|
189
193
|
label: "Client Private Key"
|
|
190
194
|
}, null, 8, ["modelValue"]),
|
|
191
|
-
o(
|
|
195
|
+
o(d, {
|
|
192
196
|
modelValue: u.value,
|
|
193
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
197
|
+
"onUpdate:modelValue": e[4] || (e[4] = (c) => u.value = c),
|
|
194
198
|
label: "Is Active"
|
|
195
199
|
}, null, 8, ["modelValue"]),
|
|
196
|
-
T("div",
|
|
200
|
+
T("div", ee, [
|
|
197
201
|
a.gateway ? (g(), w(y, {
|
|
198
202
|
key: 0,
|
|
199
203
|
class: "flex-1",
|
|
@@ -213,7 +217,7 @@ const A = {
|
|
|
213
217
|
}, 512);
|
|
214
218
|
};
|
|
215
219
|
}
|
|
216
|
-
}),
|
|
220
|
+
}), le = { class: "flex mt-6 space-x-6" }, ae = /* @__PURE__ */ D({
|
|
217
221
|
__name: "GhlGateway",
|
|
218
222
|
props: {
|
|
219
223
|
onUpdate: {
|
|
@@ -230,14 +234,16 @@ const A = {
|
|
|
230
234
|
}
|
|
231
235
|
},
|
|
232
236
|
setup(a) {
|
|
233
|
-
var v,
|
|
234
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
var v, i;
|
|
238
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
239
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
240
|
+
merchantId: "",
|
|
241
|
+
terminalId: "",
|
|
242
|
+
privateKey: ""
|
|
243
|
+
}
|
|
244
|
+
);
|
|
239
245
|
return (p, e) => {
|
|
240
|
-
const s = r("FmTextField"), V = r("FmTextarea"),
|
|
246
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), y = r("FmButton"), l = r("FmForm");
|
|
241
247
|
return g(), w(l, {
|
|
242
248
|
ref: "form",
|
|
243
249
|
class: "flex flex-col gap-16",
|
|
@@ -246,29 +252,29 @@ const A = {
|
|
|
246
252
|
default: I(() => [
|
|
247
253
|
o(s, {
|
|
248
254
|
modelValue: t.value.merchantId,
|
|
249
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
255
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.value.merchantId = c),
|
|
250
256
|
label: "Merchant ID",
|
|
251
257
|
rules: n(f)(n(F).string())
|
|
252
258
|
}, null, 8, ["modelValue", "rules"]),
|
|
253
259
|
o(s, {
|
|
254
260
|
modelValue: t.value.terminalId,
|
|
255
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
261
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.value.terminalId = c),
|
|
256
262
|
label: "Terminal ID",
|
|
257
263
|
rules: n(f)(n(F).string())
|
|
258
264
|
}, null, 8, ["modelValue", "rules"]),
|
|
259
265
|
o(V, {
|
|
260
266
|
modelValue: t.value.privateKey,
|
|
261
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
267
|
+
"onUpdate:modelValue": e[2] || (e[2] = (c) => t.value.privateKey = c),
|
|
262
268
|
label: "Private Key",
|
|
263
269
|
"label-mark": "optional",
|
|
264
270
|
"label-info": "Default will use FeedMe Private Key"
|
|
265
271
|
}, null, 8, ["modelValue"]),
|
|
266
|
-
o(
|
|
272
|
+
o(d, {
|
|
267
273
|
modelValue: u.value,
|
|
268
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
274
|
+
"onUpdate:modelValue": e[3] || (e[3] = (c) => u.value = c),
|
|
269
275
|
label: "Is Active"
|
|
270
276
|
}, null, 8, ["modelValue"]),
|
|
271
|
-
T("div",
|
|
277
|
+
T("div", le, [
|
|
272
278
|
a.gateway ? (g(), w(y, {
|
|
273
279
|
key: 0,
|
|
274
280
|
class: "flex-1",
|
|
@@ -288,7 +294,7 @@ const A = {
|
|
|
288
294
|
}, 512);
|
|
289
295
|
};
|
|
290
296
|
}
|
|
291
|
-
}),
|
|
297
|
+
}), ne = { class: "flex mt-6 space-x-6" }, oe = /* @__PURE__ */ D({
|
|
292
298
|
__name: "MacauPassGateway",
|
|
293
299
|
props: {
|
|
294
300
|
onUpdate: {
|
|
@@ -305,16 +311,18 @@ const A = {
|
|
|
305
311
|
}
|
|
306
312
|
},
|
|
307
313
|
setup(a) {
|
|
308
|
-
var v,
|
|
309
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
var v, i;
|
|
315
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
316
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
317
|
+
merchantId: "",
|
|
318
|
+
merchantName: "",
|
|
319
|
+
merchantCategoryCode: "",
|
|
320
|
+
storeID: "",
|
|
321
|
+
storeName: ""
|
|
322
|
+
}
|
|
323
|
+
);
|
|
316
324
|
return (p, e) => {
|
|
317
|
-
const s = r("FmTextField"), V = r("FmSwitch"),
|
|
325
|
+
const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
|
318
326
|
return g(), w(y, {
|
|
319
327
|
ref: "form",
|
|
320
328
|
class: "flex flex-col gap-16",
|
|
@@ -356,15 +364,15 @@ const A = {
|
|
|
356
364
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l),
|
|
357
365
|
label: "Is Active"
|
|
358
366
|
}, null, 8, ["modelValue"]),
|
|
359
|
-
T("div",
|
|
360
|
-
a.gateway ? (g(), w(
|
|
367
|
+
T("div", ne, [
|
|
368
|
+
a.gateway ? (g(), w(d, {
|
|
361
369
|
key: 0,
|
|
362
370
|
class: "flex-1",
|
|
363
371
|
variant: "secondary",
|
|
364
372
|
label: "Delete",
|
|
365
373
|
onclick: () => a.onDelete(a.gateway)
|
|
366
374
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
367
|
-
o(
|
|
375
|
+
o(d, {
|
|
368
376
|
type: "submit",
|
|
369
377
|
class: "flex-1",
|
|
370
378
|
variant: "primary",
|
|
@@ -376,7 +384,7 @@ const A = {
|
|
|
376
384
|
}, 512);
|
|
377
385
|
};
|
|
378
386
|
}
|
|
379
|
-
}),
|
|
387
|
+
}), ue = { class: "flex items-end" }, re = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */ D({
|
|
380
388
|
__name: "GrabGateway",
|
|
381
389
|
props: {
|
|
382
390
|
onUpdate: {
|
|
@@ -393,44 +401,48 @@ const A = {
|
|
|
393
401
|
}
|
|
394
402
|
},
|
|
395
403
|
setup(a) {
|
|
396
|
-
var V,
|
|
397
|
-
const m =
|
|
398
|
-
|
|
399
|
-
|
|
404
|
+
var V, d;
|
|
405
|
+
const m = J(), { isLoading: u, startAsyncCall: t } = M(), v = E(), i = a, p = b(((V = i.gateway) == null ? void 0 : V.active) ?? !1), e = b(
|
|
406
|
+
((d = i.gateway) == null ? void 0 : d.config) || {
|
|
407
|
+
merchantId: ""
|
|
408
|
+
}
|
|
409
|
+
);
|
|
400
410
|
async function s() {
|
|
401
411
|
t(async () => {
|
|
402
412
|
var y;
|
|
403
413
|
try {
|
|
404
|
-
const { merchantID: l } = await
|
|
414
|
+
const { merchantID: l } = await C.grabSync(
|
|
415
|
+
((y = v.currentRestaurant.value) == null ? void 0 : y._id) ?? ""
|
|
416
|
+
);
|
|
405
417
|
e.value.merchantId = l, p.value = !0, m.open({
|
|
406
418
|
type: "success",
|
|
407
|
-
title: "Grab Setting sync
|
|
419
|
+
title: "Grab Setting sync successfully, you will still need to save the changes."
|
|
408
420
|
});
|
|
409
421
|
} catch (l) {
|
|
410
422
|
m.open({
|
|
411
423
|
type: "error",
|
|
412
424
|
title: "Error occurs when sync ordering settings",
|
|
413
|
-
message:
|
|
425
|
+
message: Z(l)
|
|
414
426
|
});
|
|
415
427
|
}
|
|
416
428
|
});
|
|
417
429
|
}
|
|
418
430
|
return (y, l) => {
|
|
419
|
-
const
|
|
420
|
-
return g(), w(
|
|
431
|
+
const c = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), A = r("FmSwitch"), O = r("FmForm");
|
|
432
|
+
return g(), w(O, {
|
|
421
433
|
ref: "form",
|
|
422
434
|
class: "flex flex-col gap-16",
|
|
423
435
|
onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(p.value, e.value))
|
|
424
436
|
}, {
|
|
425
437
|
default: I(() => [
|
|
426
|
-
T("div",
|
|
427
|
-
o(
|
|
438
|
+
T("div", ue, [
|
|
439
|
+
o(c, {
|
|
428
440
|
modelValue: e.value.merchantId,
|
|
429
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
441
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => e.value.merchantId = _),
|
|
430
442
|
label: "Merchant ID",
|
|
431
443
|
rules: n(f)(n(F).string())
|
|
432
444
|
}, null, 8, ["modelValue", "rules"]),
|
|
433
|
-
o(
|
|
445
|
+
o(k, {
|
|
434
446
|
variant: "plain",
|
|
435
447
|
placement: "right",
|
|
436
448
|
content: "Sync from Ordering Settings"
|
|
@@ -448,12 +460,12 @@ const A = {
|
|
|
448
460
|
_: 1
|
|
449
461
|
})
|
|
450
462
|
]),
|
|
451
|
-
o(
|
|
463
|
+
o(A, {
|
|
452
464
|
modelValue: p.value,
|
|
453
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
465
|
+
"onUpdate:modelValue": l[1] || (l[1] = (_) => p.value = _),
|
|
454
466
|
label: "Is Active"
|
|
455
467
|
}, null, 8, ["modelValue"]),
|
|
456
|
-
T("div",
|
|
468
|
+
T("div", re, [
|
|
457
469
|
a.gateway ? (g(), w(x, {
|
|
458
470
|
key: 0,
|
|
459
471
|
class: "flex-1",
|
|
@@ -473,7 +485,7 @@ const A = {
|
|
|
473
485
|
}, 512);
|
|
474
486
|
};
|
|
475
487
|
}
|
|
476
|
-
}),
|
|
488
|
+
}), me = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ D({
|
|
477
489
|
__name: "SoftSpaceGateway",
|
|
478
490
|
props: {
|
|
479
491
|
onUpdate: {
|
|
@@ -490,13 +502,15 @@ const A = {
|
|
|
490
502
|
}
|
|
491
503
|
},
|
|
492
504
|
setup(a) {
|
|
493
|
-
var v,
|
|
494
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
505
|
+
var v, i;
|
|
506
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
507
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
508
|
+
mid: "",
|
|
509
|
+
tid: ""
|
|
510
|
+
}
|
|
511
|
+
);
|
|
498
512
|
return (p, e) => {
|
|
499
|
-
const s = r("FmTextField"), V = r("FmSwitch"),
|
|
513
|
+
const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
|
500
514
|
return g(), w(y, {
|
|
501
515
|
ref: "form",
|
|
502
516
|
class: "flex flex-col gap-16",
|
|
@@ -520,15 +534,15 @@ const A = {
|
|
|
520
534
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
|
|
521
535
|
label: "Is Active"
|
|
522
536
|
}, null, 8, ["modelValue"]),
|
|
523
|
-
T("div",
|
|
524
|
-
a.gateway ? (g(), w(
|
|
537
|
+
T("div", me, [
|
|
538
|
+
a.gateway ? (g(), w(d, {
|
|
525
539
|
key: 0,
|
|
526
540
|
class: "flex-1",
|
|
527
541
|
variant: "secondary",
|
|
528
542
|
label: "Delete",
|
|
529
543
|
onclick: () => a.onDelete(a.gateway)
|
|
530
544
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
531
|
-
o(
|
|
545
|
+
o(d, {
|
|
532
546
|
type: "submit",
|
|
533
547
|
class: "flex-1",
|
|
534
548
|
variant: "primary",
|
|
@@ -540,7 +554,7 @@ const A = {
|
|
|
540
554
|
}, 512);
|
|
541
555
|
};
|
|
542
556
|
}
|
|
543
|
-
}),
|
|
557
|
+
}), de = { class: "flex mt-6 space-x-6" }, ce = /* @__PURE__ */ D({
|
|
544
558
|
__name: "DigioGateway",
|
|
545
559
|
props: {
|
|
546
560
|
gateway: {
|
|
@@ -557,12 +571,14 @@ const A = {
|
|
|
557
571
|
}
|
|
558
572
|
},
|
|
559
573
|
setup(a) {
|
|
560
|
-
var v,
|
|
561
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
562
|
-
|
|
563
|
-
|
|
574
|
+
var v, i;
|
|
575
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
576
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
577
|
+
merchantId: ""
|
|
578
|
+
}
|
|
579
|
+
);
|
|
564
580
|
return (p, e) => {
|
|
565
|
-
const s = r("FmTextField"), V = r("FmSwitch"),
|
|
581
|
+
const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
|
566
582
|
return g(), w(y, {
|
|
567
583
|
ref: "form",
|
|
568
584
|
class: "flex flex-col gap-16",
|
|
@@ -580,15 +596,15 @@ const A = {
|
|
|
580
596
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => u.value = l),
|
|
581
597
|
label: "Is Active"
|
|
582
598
|
}, null, 8, ["modelValue"]),
|
|
583
|
-
T("div",
|
|
584
|
-
a.gateway ? (g(), w(
|
|
599
|
+
T("div", de, [
|
|
600
|
+
a.gateway ? (g(), w(d, {
|
|
585
601
|
key: 0,
|
|
586
602
|
class: "flex-1",
|
|
587
603
|
variant: "secondary",
|
|
588
604
|
label: "Delete",
|
|
589
605
|
onclick: () => a.onDelete(a.gateway)
|
|
590
606
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
591
|
-
o(
|
|
607
|
+
o(d, {
|
|
592
608
|
type: "submit",
|
|
593
609
|
class: "flex-1",
|
|
594
610
|
variant: "primary",
|
|
@@ -600,7 +616,7 @@ const A = {
|
|
|
600
616
|
}, 512);
|
|
601
617
|
};
|
|
602
618
|
}
|
|
603
|
-
}),
|
|
619
|
+
}), ve = { class: "flex mt-6 space-x-6" }, ye = /* @__PURE__ */ D({
|
|
604
620
|
__name: "AdyenGateway",
|
|
605
621
|
props: {
|
|
606
622
|
onUpdate: {
|
|
@@ -617,16 +633,18 @@ const A = {
|
|
|
617
633
|
}
|
|
618
634
|
},
|
|
619
635
|
setup(a) {
|
|
620
|
-
var v,
|
|
621
|
-
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
636
|
+
var v, i;
|
|
637
|
+
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
638
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
639
|
+
merchantAccount: "",
|
|
640
|
+
username: "",
|
|
641
|
+
apiKey: "",
|
|
642
|
+
endpoint: "",
|
|
643
|
+
hmacKey: ""
|
|
644
|
+
}
|
|
645
|
+
);
|
|
628
646
|
return (p, e) => {
|
|
629
|
-
const s = r("FmTextField"), V = r("FmSwitch"),
|
|
647
|
+
const s = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
|
630
648
|
return g(), w(y, {
|
|
631
649
|
ref: "form",
|
|
632
650
|
class: "flex flex-col gap-16",
|
|
@@ -667,15 +685,15 @@ const A = {
|
|
|
667
685
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l),
|
|
668
686
|
label: "Is Active"
|
|
669
687
|
}, null, 8, ["modelValue"]),
|
|
670
|
-
T("div",
|
|
671
|
-
a.gateway ? (g(), w(
|
|
688
|
+
T("div", ve, [
|
|
689
|
+
a.gateway ? (g(), w(d, {
|
|
672
690
|
key: 0,
|
|
673
691
|
class: "flex-1",
|
|
674
692
|
variant: "secondary",
|
|
675
693
|
label: "Delete",
|
|
676
694
|
onclick: () => a.onDelete(a.gateway)
|
|
677
695
|
}, null, 8, ["onclick"])) : S("", !0),
|
|
678
|
-
o(
|
|
696
|
+
o(d, {
|
|
679
697
|
type: "submit",
|
|
680
698
|
class: "flex-1",
|
|
681
699
|
variant: "primary",
|
|
@@ -687,7 +705,7 @@ const A = {
|
|
|
687
705
|
}, 512);
|
|
688
706
|
};
|
|
689
707
|
}
|
|
690
|
-
}),
|
|
708
|
+
}), pe = { class: "flex mt-6 space-x-6" }, fe = /* @__PURE__ */ D({
|
|
691
709
|
__name: "KsherGateway",
|
|
692
710
|
props: {
|
|
693
711
|
gateway: {
|
|
@@ -704,15 +722,15 @@ const A = {
|
|
|
704
722
|
}
|
|
705
723
|
},
|
|
706
724
|
setup(a) {
|
|
707
|
-
var v,
|
|
725
|
+
var v, i;
|
|
708
726
|
const m = a, u = b(((v = m.gateway) == null ? void 0 : v.active) ?? !1), t = b(
|
|
709
|
-
((
|
|
727
|
+
((i = m.gateway) == null ? void 0 : i.config) || {
|
|
710
728
|
appId: "",
|
|
711
729
|
privateKey: ""
|
|
712
730
|
}
|
|
713
731
|
);
|
|
714
732
|
return (p, e) => {
|
|
715
|
-
const s = r("FmTextField"), V = r("FmTextarea"),
|
|
733
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), y = r("FmButton"), l = r("FmForm");
|
|
716
734
|
return g(), w(l, {
|
|
717
735
|
ref: "form",
|
|
718
736
|
class: "flex flex-col gap-16",
|
|
@@ -721,22 +739,22 @@ const A = {
|
|
|
721
739
|
default: I(() => [
|
|
722
740
|
o(s, {
|
|
723
741
|
modelValue: t.value.appId,
|
|
724
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
742
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.value.appId = c),
|
|
725
743
|
label: "App ID",
|
|
726
744
|
rules: n(f)(n(F).string())
|
|
727
745
|
}, null, 8, ["modelValue", "rules"]),
|
|
728
746
|
o(V, {
|
|
729
747
|
modelValue: t.value.privateKey,
|
|
730
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
748
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.value.privateKey = c),
|
|
731
749
|
label: "Private Key",
|
|
732
750
|
placeholder: "Paste your private key including BEGIN and END markers"
|
|
733
751
|
}, null, 8, ["modelValue"]),
|
|
734
|
-
o(
|
|
752
|
+
o(d, {
|
|
735
753
|
modelValue: u.value,
|
|
736
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
754
|
+
"onUpdate:modelValue": e[2] || (e[2] = (c) => u.value = c),
|
|
737
755
|
label: "Is Active"
|
|
738
756
|
}, null, 8, ["modelValue"]),
|
|
739
|
-
T("div",
|
|
757
|
+
T("div", pe, [
|
|
740
758
|
a.gateway ? (g(), w(y, {
|
|
741
759
|
key: 0,
|
|
742
760
|
class: "flex-1",
|
|
@@ -756,10 +774,10 @@ const A = {
|
|
|
756
774
|
}, 512);
|
|
757
775
|
};
|
|
758
776
|
}
|
|
759
|
-
}),
|
|
777
|
+
}), Fe = {
|
|
760
778
|
key: 0,
|
|
761
779
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
762
|
-
},
|
|
780
|
+
}, ge = /* @__PURE__ */ D({
|
|
763
781
|
__name: "PaymentGateway",
|
|
764
782
|
props: {
|
|
765
783
|
restaurant: {
|
|
@@ -772,31 +790,31 @@ const A = {
|
|
|
772
790
|
{
|
|
773
791
|
label: "Fiuu",
|
|
774
792
|
value: "RAZER_MERCHANT_SERVICE",
|
|
775
|
-
form:
|
|
793
|
+
form: h,
|
|
776
794
|
region: [U.F_COUNTRY.enum.MY, U.F_COUNTRY.enum.SG]
|
|
777
795
|
},
|
|
778
796
|
{
|
|
779
797
|
label: "Revenue Monster",
|
|
780
798
|
value: "REVENUE_MONSTER",
|
|
781
|
-
form:
|
|
799
|
+
form: te,
|
|
782
800
|
region: [U.F_COUNTRY.enum.MY]
|
|
783
801
|
},
|
|
784
802
|
{
|
|
785
803
|
label: "GHL",
|
|
786
804
|
value: "E_GHL",
|
|
787
|
-
form:
|
|
805
|
+
form: ae,
|
|
788
806
|
region: [U.F_COUNTRY.enum.MY]
|
|
789
807
|
},
|
|
790
808
|
{
|
|
791
809
|
label: "Grab",
|
|
792
810
|
value: "GRAB",
|
|
793
|
-
form:
|
|
811
|
+
form: se,
|
|
794
812
|
region: [U.F_COUNTRY.enum.MY]
|
|
795
813
|
},
|
|
796
814
|
{
|
|
797
815
|
label: "Macau Pass",
|
|
798
816
|
value: "MACAU_PASS",
|
|
799
|
-
form:
|
|
817
|
+
form: oe,
|
|
800
818
|
region: [U.F_COUNTRY.enum.MO]
|
|
801
819
|
},
|
|
802
820
|
{
|
|
@@ -808,69 +826,72 @@ const A = {
|
|
|
808
826
|
{
|
|
809
827
|
label: "Digio",
|
|
810
828
|
value: "DIGIO",
|
|
811
|
-
form:
|
|
829
|
+
form: ce,
|
|
812
830
|
region: [U.F_COUNTRY.enum.TH]
|
|
813
831
|
},
|
|
814
832
|
{
|
|
815
833
|
label: "Ksher",
|
|
816
834
|
value: "KSHER",
|
|
817
|
-
form:
|
|
835
|
+
form: fe,
|
|
818
836
|
region: [U.F_COUNTRY.enum.TH]
|
|
819
837
|
},
|
|
820
838
|
{
|
|
821
839
|
label: "Adyen",
|
|
822
840
|
value: "ADYEN",
|
|
823
|
-
form:
|
|
841
|
+
form: ye,
|
|
824
842
|
region: [U.F_COUNTRY.enum.MY, U.F_COUNTRY.enum.SG]
|
|
825
843
|
}
|
|
826
|
-
], u = a, t =
|
|
844
|
+
], u = a, t = E(), { isLoading: v, startAsyncCall: i } = M(), { activeGateway: p } = Y({
|
|
827
845
|
activeGateway: ""
|
|
828
846
|
}), e = b([]);
|
|
829
|
-
async function s(
|
|
830
|
-
await
|
|
831
|
-
const
|
|
832
|
-
_id: "",
|
|
833
|
-
_rev: "",
|
|
847
|
+
async function s(x, k) {
|
|
848
|
+
await i(async () => {
|
|
849
|
+
const A = {
|
|
834
850
|
paymentGateway: p.value,
|
|
835
|
-
config:
|
|
836
|
-
active:
|
|
837
|
-
}
|
|
838
|
-
|
|
851
|
+
config: k,
|
|
852
|
+
active: x
|
|
853
|
+
};
|
|
854
|
+
await C.upsert(u.restaurant._id, A), e.value = [...await C.get(u.restaurant._id)];
|
|
839
855
|
});
|
|
840
856
|
}
|
|
841
|
-
async function V(
|
|
842
|
-
|
|
843
|
-
await
|
|
857
|
+
async function V(x) {
|
|
858
|
+
await i(async () => {
|
|
859
|
+
await C.delete(u.restaurant._id, x._id), e.value = [...await C.get(u.restaurant._id)];
|
|
844
860
|
});
|
|
845
861
|
}
|
|
846
|
-
const
|
|
862
|
+
const d = K(() => m.filter(
|
|
863
|
+
(x) => x.region.includes(t.currentCountry.value ?? U.F_COUNTRY.enum.MY)
|
|
864
|
+
));
|
|
847
865
|
function y() {
|
|
848
|
-
|
|
849
|
-
e.value = await
|
|
866
|
+
i(async () => {
|
|
867
|
+
e.value = await C.get(u.restaurant._id), d.value.length > 0 && (p.value = d.value[0].value);
|
|
850
868
|
});
|
|
851
869
|
}
|
|
852
870
|
R(y);
|
|
853
|
-
const l =
|
|
854
|
-
var
|
|
855
|
-
return (
|
|
856
|
-
});
|
|
857
|
-
return (
|
|
858
|
-
|
|
871
|
+
const l = K(() => {
|
|
872
|
+
var x;
|
|
873
|
+
return (x = m.find((k) => k.value === p.value)) == null ? void 0 : x.form;
|
|
874
|
+
}), c = K(() => e.value.find((x) => x.paymentGateway === p.value));
|
|
875
|
+
return (x, k) => {
|
|
876
|
+
var _;
|
|
877
|
+
const A = r("FmCircularProgress"), O = r("FmTabs");
|
|
859
878
|
return g(), N(L, null, [
|
|
860
|
-
n(v) ? (g(), N("div",
|
|
861
|
-
o(
|
|
879
|
+
n(v) ? (g(), N("div", Fe, [
|
|
880
|
+
o(A, { size: "xxl" })
|
|
862
881
|
])) : S("", !0),
|
|
863
|
-
o(
|
|
882
|
+
o(O, {
|
|
864
883
|
class: "mb-6",
|
|
865
884
|
"model-value": n(p),
|
|
866
|
-
"onUpdate:modelValue":
|
|
867
|
-
items:
|
|
885
|
+
"onUpdate:modelValue": k[0] || (k[0] = (j) => B(p) ? p.value = j : null),
|
|
886
|
+
items: d.value
|
|
868
887
|
}, null, 8, ["model-value", "items"]),
|
|
869
|
-
n(p) ? (g(), w($(l.value), P(
|
|
870
|
-
|
|
888
|
+
n(p) ? (g(), w($(l.value), P({
|
|
889
|
+
key: (_ = c.value) == null ? void 0 : _._id
|
|
890
|
+
}, {
|
|
891
|
+
gateway: c.value,
|
|
871
892
|
onDelete: V,
|
|
872
893
|
onUpdate: s
|
|
873
|
-
})
|
|
894
|
+
}), null, 16)) : S("", !0)
|
|
874
895
|
], 64);
|
|
875
896
|
};
|
|
876
897
|
}
|
|
@@ -883,33 +904,33 @@ const A = {
|
|
|
883
904
|
}
|
|
884
905
|
},
|
|
885
906
|
setup(a) {
|
|
886
|
-
const m = a, { tab: u } =
|
|
907
|
+
const m = a, { tab: u } = Y({
|
|
887
908
|
tab: "payment-gateway"
|
|
888
|
-
}), { isLoading: t, startAsyncCall: v } = M(!0),
|
|
909
|
+
}), { isLoading: t, startAsyncCall: v } = M(!0), i = Q(), p = b(), e = [
|
|
889
910
|
{
|
|
890
911
|
label: "Payment Gateway",
|
|
891
912
|
value: "payment-gateway",
|
|
892
913
|
icon: "assured_workload",
|
|
893
|
-
render:
|
|
914
|
+
render: ge
|
|
894
915
|
}
|
|
895
916
|
];
|
|
896
917
|
function s() {
|
|
897
918
|
v(async () => {
|
|
898
|
-
p.value = await
|
|
919
|
+
p.value = await W.readRestaurantById(m.restaurantId);
|
|
899
920
|
});
|
|
900
921
|
}
|
|
901
922
|
R(s);
|
|
902
|
-
const V =
|
|
903
|
-
var
|
|
904
|
-
return (
|
|
923
|
+
const V = K(() => {
|
|
924
|
+
var d;
|
|
925
|
+
return (d = e.find((y) => y.value === u.value)) == null ? void 0 : d.render;
|
|
905
926
|
});
|
|
906
|
-
return (
|
|
907
|
-
var
|
|
927
|
+
return (d, y) => {
|
|
928
|
+
var c;
|
|
908
929
|
const l = r("FmTabs");
|
|
909
|
-
return g(), w(
|
|
910
|
-
title: `Restaurant (${(
|
|
930
|
+
return g(), w(z, {
|
|
931
|
+
title: `Restaurant (${(c = p.value) == null ? void 0 : c._id})`,
|
|
911
932
|
loading: n(t),
|
|
912
|
-
onBack: n(
|
|
933
|
+
onBack: n(i).back
|
|
913
934
|
}, {
|
|
914
935
|
default: I(() => [
|
|
915
936
|
o(l, {
|
|
@@ -918,7 +939,7 @@ const A = {
|
|
|
918
939
|
class: "mb-6",
|
|
919
940
|
items: e
|
|
920
941
|
}, null, 8, ["model-value"]),
|
|
921
|
-
n(u) && p.value ? (g(), w($(V.value), P(
|
|
942
|
+
n(u) && p.value ? (g(), w($(V.value), H(P({ key: 0 }, {
|
|
922
943
|
restaurant: p.value
|
|
923
944
|
})), null, 16)) : S("", !0)
|
|
924
945
|
]),
|