@feedmepos/mf-payment 1.0.17-beta.1 → 1.0.18-beta.1
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/{PayoutAccount-DVTKC9HU.js → PayoutAccount-DCq9zJ7I.js} +3 -3
- package/dist/{PayoutAccount-DaSWi1Me.js → PayoutAccount-Dlrre2MV.js} +83 -115
- package/dist/PayoutAccountSetting-D6Scsqvm.js +426 -0
- package/dist/{Restaurant-C-pno48_.js → Restaurant-AoDzEhKi.js} +4 -4
- package/dist/{RestaurantSetting-D5BXiTn2.js → RestaurantSetting-CAQfJwaq.js} +137 -115
- package/dist/{Settlement-Cgxts5eu.js → Settlement-anAN-1YR.js} +3 -3
- package/dist/Settlement-kfM1jLO-.js +444 -0
- package/dist/{SettlementTransactions-BXPsJSOI.js → SettlementTransactions-IhEM3Qtp.js} +4 -4
- package/dist/{SettlementTransactions-BWe-hWjq.js → SettlementTransactions-dVE594dr.js} +4 -4
- package/dist/Terminal-C0Irg7I_.js +435 -0
- package/dist/{TerminalSetting-BciOf47B.js → TerminalSetting-mMj1OSGc.js} +3 -3
- package/dist/{TerminalTransaction-BYlEOFjg.js → TerminalTransaction-2Oe5b_rm.js} +176 -188
- package/dist/TerminalTransaction-Coth2MwA.js +269 -0
- package/dist/Transaction-BbbVDMIm.js +247 -0
- package/dist/{Transaction-B362xcHT.js → Transaction-ChE2VgSa.js} +6 -6
- package/dist/{TransactionOld--8HuiCzC.js → TransactionOld-T8CKBB6U.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-yAM0nD2z.js → TransactionTable.vue_vue_type_script_setup_true_lang-CoPiWynn.js} +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/settlement/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -2
- package/dist/{app-Dm8kGtux.js → app-B36bwKcX.js} +165 -165
- package/dist/app.js +1 -1
- package/dist/{assets-BDTkzAxB.js → assets-fxpnHIZr.js} +1 -1
- package/dist/grafana-BFQCDk-V.js +54 -0
- package/dist/index-9a-RyWYf.js +52 -0
- package/dist/{index-BroiGVyD.js → index-C2q2ptf8.js} +1 -1
- package/dist/{index-D7Uh09kd.js → index-CC8HNMje.js} +1 -1
- package/dist/{index-DmltKkqh.js → index-CEJAjyRa.js} +1 -1
- package/dist/{index-4uEqQ1dj.js → index-Cj90pU-C.js} +27 -20
- package/dist/{index-CtVHR2Os.js → index-DueuWuxx.js} +1 -1
- package/dist/{index-CZAwC5k6.js → index-ZMBnoQxd.js} +31 -23
- package/dist/{index.vue_vue_type_script_setup_true_lang-3Bmqvkzy.js → index.vue_vue_type_script_setup_true_lang-PfAufXp3.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BZ-WV3GM.js → payout-account-D-LZ6-Lb.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{transaction-XK-M9o1a.js → transaction-5dZS6JFA.js} +21 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
- package/package.json +2 -2
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-CYE3OEXe.js +0 -110
- package/dist/PayoutAccountSetting-CqWDYDDi.js +0 -758
- package/dist/Settlement-I67N2bqy.js +0 -145
- package/dist/Terminal-o9zfC9WW.js +0 -404
- package/dist/TerminalTransaction-C_2wLJJV.js +0 -820
- package/dist/Transaction-gDdSiqs9.js +0 -145
- package/dist/grafana-Dtn-kbRH.js +0 -49
- package/dist/index-BC85ddk1.js +0 -47
- package/dist/index-CZ9tbaEh.js +0 -28
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,13 +1,35 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as
|
3
|
-
import { _ as
|
4
|
-
import { useRouter as
|
5
|
-
import { u as
|
6
|
-
import { p as
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
|
10
|
-
|
1
|
+
import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
|
2
|
+
import { g as T, b as R, u as E, e as U } from "./index-CC8HNMje.js";
|
3
|
+
import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
|
+
import { useRouter as A } from "vue-router";
|
5
|
+
import { u as L } from "./index-DueuWuxx.js";
|
6
|
+
import { z as p, a as v } from "./validator-D5jtpt9A.js";
|
7
|
+
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
|
+
import { r as z } from "./index-C2q2ptf8.js";
|
9
|
+
const _ = {
|
10
|
+
async get(n) {
|
11
|
+
return T(
|
12
|
+
await R().get(
|
13
|
+
`restaurants/${n}/payment-gateway`
|
14
|
+
)
|
15
|
+
);
|
16
|
+
},
|
17
|
+
async upsert(n, i) {
|
18
|
+
return T(
|
19
|
+
await R().post(
|
20
|
+
`restaurants/${n}/payment-gateway`,
|
21
|
+
{ data: i }
|
22
|
+
)
|
23
|
+
);
|
24
|
+
},
|
25
|
+
async delete(n, i) {
|
26
|
+
return T(
|
27
|
+
await R().delete(
|
28
|
+
`restaurants/${n}/payment-gateway/${i}`
|
29
|
+
)
|
30
|
+
);
|
31
|
+
}
|
32
|
+
}, H = { class: "flex mt-6 space-x-6" }, Q = /* @__PURE__ */ C({
|
11
33
|
__name: "FiuuGateway",
|
12
34
|
props: {
|
13
35
|
onUpdate: {
|
@@ -24,8 +46,8 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
24
46
|
}
|
25
47
|
},
|
26
48
|
setup(n) {
|
27
|
-
var
|
28
|
-
const t =
|
49
|
+
var c;
|
50
|
+
const t = I(((c = n.gateway) == null ? void 0 : c.config) || {
|
29
51
|
merchantId: "",
|
30
52
|
uniqueId: "",
|
31
53
|
verifyKey: "",
|
@@ -34,8 +56,8 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
34
56
|
offlineSecret: ""
|
35
57
|
});
|
36
58
|
return (b, e) => {
|
37
|
-
const l =
|
38
|
-
return
|
59
|
+
const l = d("FmTextField"), g = d("FmButton"), w = d("FmForm");
|
60
|
+
return f(), F(w, {
|
39
61
|
ref: "form",
|
40
62
|
class: "flex flex-col gap-16",
|
41
63
|
onValidationSuccess: e[6] || (e[6] = () => n.onUpdate(t.value))
|
@@ -43,48 +65,48 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
43
65
|
default: k(() => [
|
44
66
|
u(l, {
|
45
67
|
modelValue: t.value.merchantId,
|
46
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
68
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value.merchantId = o),
|
47
69
|
label: "Merchant ID",
|
48
|
-
rules: a(p)(a(
|
70
|
+
rules: a(p)(a(v).string())
|
49
71
|
}, null, 8, ["modelValue", "rules"]),
|
50
72
|
u(l, {
|
51
73
|
modelValue: t.value.uniqueId,
|
52
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
74
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => t.value.uniqueId = o),
|
53
75
|
label: "Unique ID",
|
54
|
-
rules: a(p)(a(
|
76
|
+
rules: a(p)(a(v).string())
|
55
77
|
}, null, 8, ["modelValue", "rules"]),
|
56
78
|
u(l, {
|
57
79
|
modelValue: t.value.verifyKey,
|
58
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
80
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => t.value.verifyKey = o),
|
59
81
|
label: "Verify Key",
|
60
|
-
rules: a(p)(a(
|
82
|
+
rules: a(p)(a(v).string())
|
61
83
|
}, null, 8, ["modelValue", "rules"]),
|
62
84
|
u(l, {
|
63
85
|
modelValue: t.value.secretKey,
|
64
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
86
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => t.value.secretKey = o),
|
65
87
|
label: "Secret Key",
|
66
|
-
rules: a(p)(a(
|
88
|
+
rules: a(p)(a(v).string())
|
67
89
|
}, null, 8, ["modelValue", "rules"]),
|
68
90
|
u(l, {
|
69
91
|
modelValue: t.value.applicationCode,
|
70
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
92
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => t.value.applicationCode = o),
|
71
93
|
label: "Application Code ( Offline )",
|
72
|
-
rules: a(p)(a(
|
94
|
+
rules: a(p)(a(v).string())
|
73
95
|
}, null, 8, ["modelValue", "rules"]),
|
74
96
|
u(l, {
|
75
97
|
modelValue: t.value.offlineSecret,
|
76
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
98
|
+
"onUpdate:modelValue": e[5] || (e[5] = (o) => t.value.offlineSecret = o),
|
77
99
|
label: "Offline Secret ( Offline )",
|
78
|
-
rules: a(p)(a(
|
100
|
+
rules: a(p)(a(v).string())
|
79
101
|
}, null, 8, ["modelValue", "rules"]),
|
80
|
-
|
81
|
-
n.gateway ? (
|
102
|
+
D("div", H, [
|
103
|
+
n.gateway ? (f(), F(g, {
|
82
104
|
key: 0,
|
83
105
|
class: "flex-1",
|
84
106
|
variant: "secondary",
|
85
107
|
label: "Delete",
|
86
108
|
onclick: () => n.onDelete(n.gateway)
|
87
|
-
}, null, 8, ["onclick"])) :
|
109
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
88
110
|
u(g, {
|
89
111
|
type: "submit",
|
90
112
|
class: "flex-1",
|
@@ -97,7 +119,7 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
97
119
|
}, 512);
|
98
120
|
};
|
99
121
|
}
|
100
|
-
}),
|
122
|
+
}), Z = { class: "flex mt-6 space-x-6" }, J = /* @__PURE__ */ C({
|
101
123
|
__name: "RevenueMonsterGateway",
|
102
124
|
props: {
|
103
125
|
onUpdate: {
|
@@ -114,16 +136,16 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
114
136
|
}
|
115
137
|
},
|
116
138
|
setup(n) {
|
117
|
-
var
|
118
|
-
const t =
|
139
|
+
var c;
|
140
|
+
const t = I(((c = n.gateway) == null ? void 0 : c.config) || {
|
119
141
|
storeId: "",
|
120
142
|
clientId: "",
|
121
143
|
clientSecret: "",
|
122
144
|
clientPrivateKey: ""
|
123
145
|
});
|
124
146
|
return (b, e) => {
|
125
|
-
const l =
|
126
|
-
return
|
147
|
+
const l = d("FmTextField"), g = d("FmTextarea"), w = d("FmButton"), o = d("FmForm");
|
148
|
+
return f(), F(o, {
|
127
149
|
ref: "form",
|
128
150
|
class: "flex flex-col gap-16",
|
129
151
|
onValidationSuccess: e[4] || (e[4] = () => n.onUpdate(t.value))
|
@@ -131,36 +153,36 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
131
153
|
default: k(() => [
|
132
154
|
u(l, {
|
133
155
|
modelValue: t.value.storeId,
|
134
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
156
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => t.value.storeId = r),
|
135
157
|
label: "Store ID",
|
136
|
-
rules: a(p)(a(
|
158
|
+
rules: a(p)(a(v).string())
|
137
159
|
}, null, 8, ["modelValue", "rules"]),
|
138
160
|
u(l, {
|
139
161
|
modelValue: t.value.clientId,
|
140
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
162
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => t.value.clientId = r),
|
141
163
|
label: "Client ID",
|
142
|
-
rules: a(p)(a(
|
164
|
+
rules: a(p)(a(v).string())
|
143
165
|
}, null, 8, ["modelValue", "rules"]),
|
144
166
|
u(l, {
|
145
167
|
modelValue: t.value.clientSecret,
|
146
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
168
|
+
"onUpdate:modelValue": e[2] || (e[2] = (r) => t.value.clientSecret = r),
|
147
169
|
label: "Client Secret",
|
148
|
-
rules: a(p)(a(
|
170
|
+
rules: a(p)(a(v).string())
|
149
171
|
}, null, 8, ["modelValue", "rules"]),
|
150
172
|
u(g, {
|
151
173
|
modelValue: t.value.clientPrivateKey,
|
152
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
174
|
+
"onUpdate:modelValue": e[3] || (e[3] = (r) => t.value.clientPrivateKey = r),
|
153
175
|
label: "Client Private Key"
|
154
176
|
}, null, 8, ["modelValue"]),
|
155
|
-
|
156
|
-
n.gateway ? (
|
177
|
+
D("div", Z, [
|
178
|
+
n.gateway ? (f(), F(w, {
|
157
179
|
key: 0,
|
158
180
|
class: "flex-1",
|
159
181
|
variant: "secondary",
|
160
182
|
label: "Delete",
|
161
183
|
onclick: () => n.onDelete(n.gateway)
|
162
|
-
}, null, 8, ["onclick"])) :
|
163
|
-
u(
|
184
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
185
|
+
u(w, {
|
164
186
|
type: "submit",
|
165
187
|
class: "flex-1",
|
166
188
|
variant: "primary",
|
@@ -172,7 +194,7 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
172
194
|
}, 512);
|
173
195
|
};
|
174
196
|
}
|
175
|
-
}),
|
197
|
+
}), W = { class: "flex mt-6 space-x-6" }, X = /* @__PURE__ */ C({
|
176
198
|
__name: "GhlGateway",
|
177
199
|
props: {
|
178
200
|
onUpdate: {
|
@@ -189,15 +211,15 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
189
211
|
}
|
190
212
|
},
|
191
213
|
setup(n) {
|
192
|
-
var
|
193
|
-
const t =
|
214
|
+
var c;
|
215
|
+
const t = I(((c = n.gateway) == null ? void 0 : c.config) || {
|
194
216
|
merchantId: "",
|
195
217
|
terminalId: "",
|
196
218
|
privateKey: ""
|
197
219
|
});
|
198
220
|
return (b, e) => {
|
199
|
-
const l =
|
200
|
-
return
|
221
|
+
const l = d("FmTextField"), g = d("FmTextarea"), w = d("FmButton"), o = d("FmForm");
|
222
|
+
return f(), F(o, {
|
201
223
|
ref: "form",
|
202
224
|
class: "flex flex-col gap-16",
|
203
225
|
onValidationSuccess: e[3] || (e[3] = () => n.onUpdate(t.value))
|
@@ -205,31 +227,31 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
205
227
|
default: k(() => [
|
206
228
|
u(l, {
|
207
229
|
modelValue: t.value.merchantId,
|
208
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
230
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => t.value.merchantId = r),
|
209
231
|
label: "Merchant ID",
|
210
|
-
rules: a(p)(a(
|
232
|
+
rules: a(p)(a(v).string())
|
211
233
|
}, null, 8, ["modelValue", "rules"]),
|
212
234
|
u(l, {
|
213
235
|
modelValue: t.value.terminalId,
|
214
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
236
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => t.value.terminalId = r),
|
215
237
|
label: "Terminal ID",
|
216
|
-
rules: a(p)(a(
|
238
|
+
rules: a(p)(a(v).string())
|
217
239
|
}, null, 8, ["modelValue", "rules"]),
|
218
240
|
u(g, {
|
219
241
|
modelValue: t.value.privateKey,
|
220
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
242
|
+
"onUpdate:modelValue": e[2] || (e[2] = (r) => t.value.privateKey = r),
|
221
243
|
label: "Private Key",
|
222
|
-
rules: a(p)(a(
|
244
|
+
rules: a(p)(a(v).string())
|
223
245
|
}, null, 8, ["modelValue", "rules"]),
|
224
|
-
|
225
|
-
n.gateway ? (
|
246
|
+
D("div", W, [
|
247
|
+
n.gateway ? (f(), F(w, {
|
226
248
|
key: 0,
|
227
249
|
class: "flex-1",
|
228
250
|
variant: "secondary",
|
229
251
|
label: "Delete",
|
230
252
|
onclick: () => n.onDelete(n.gateway)
|
231
|
-
}, null, 8, ["onclick"])) :
|
232
|
-
u(
|
253
|
+
}, null, 8, ["onclick"])) : S("", !0),
|
254
|
+
u(w, {
|
233
255
|
type: "submit",
|
234
256
|
class: "flex-1",
|
235
257
|
variant: "primary",
|
@@ -241,10 +263,10 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
241
263
|
}, 512);
|
242
264
|
};
|
243
265
|
}
|
244
|
-
}),
|
266
|
+
}), h = {
|
245
267
|
key: 0,
|
246
268
|
class: "flex items-center justify-center min-h-[80vh]"
|
247
|
-
},
|
269
|
+
}, ee = /* @__PURE__ */ C({
|
248
270
|
__name: "PaymentGateway",
|
249
271
|
props: {
|
250
272
|
restaurant: {
|
@@ -253,85 +275,85 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
253
275
|
}
|
254
276
|
},
|
255
277
|
setup(n) {
|
256
|
-
const
|
278
|
+
const i = n, t = j(), { isLoading: c, startAsyncCall: b } = E(), e = I(), l = I([]);
|
257
279
|
function g() {
|
258
280
|
b(async () => {
|
259
|
-
var
|
260
|
-
l.value = await
|
281
|
+
var y;
|
282
|
+
l.value = await _.get(i.restaurant._id), e.value = (y = l.value.find((s) => s.active)) == null ? void 0 : y.paymentGateway;
|
261
283
|
});
|
262
284
|
}
|
263
|
-
async function
|
264
|
-
b(async () => {
|
285
|
+
async function w(y) {
|
286
|
+
await b(async () => {
|
265
287
|
var G;
|
266
288
|
const s = {
|
267
289
|
_id: "",
|
268
290
|
_rev: "",
|
269
291
|
paymentGateway: e.value,
|
270
|
-
config:
|
292
|
+
config: y,
|
271
293
|
active: !0
|
272
|
-
},
|
273
|
-
|
294
|
+
}, V = l.value.find((m) => m.paymentGateway === e.value);
|
295
|
+
V && (s._id = V._id, s._rev = V._rev), await Promise.all(
|
274
296
|
l.value.map(async (m) => {
|
275
|
-
m.active && m.paymentGateway !== s.paymentGateway && await
|
297
|
+
m.paymentGateway || await _.delete(i.restaurant._id, m._id), m.active && m.paymentGateway !== s.paymentGateway && await _.upsert(i.restaurant._id, {
|
276
298
|
...m,
|
277
299
|
active: !1
|
278
300
|
});
|
279
301
|
})
|
280
|
-
), await
|
302
|
+
), await _.upsert(i.restaurant._id, s), l.value = await _.get(i.restaurant._id), e.value = (G = l.value.find((m) => m.active)) == null ? void 0 : G.paymentGateway;
|
281
303
|
});
|
282
304
|
}
|
283
|
-
async function
|
305
|
+
async function o(y) {
|
284
306
|
b(async () => {
|
285
307
|
var s;
|
286
|
-
await
|
308
|
+
await _.delete(i.restaurant._id, y._id), l.value = await _.get(i.restaurant._id), e.value = (s = l.value.find((V) => V.active)) == null ? void 0 : s.paymentGateway;
|
287
309
|
});
|
288
310
|
}
|
289
|
-
|
290
|
-
const
|
311
|
+
P(g);
|
312
|
+
const r = [
|
291
313
|
{
|
292
314
|
label: "Fiuu",
|
293
315
|
value: "RAZER_MERCHANT_SERVICE",
|
294
|
-
form:
|
295
|
-
region: [
|
316
|
+
form: Q,
|
317
|
+
region: [U.F_COUNTRY.enum.MY, U.F_COUNTRY.enum.SG]
|
296
318
|
},
|
297
319
|
{
|
298
320
|
label: "Revenue Monster",
|
299
321
|
value: "REVENUE_MONSTER",
|
300
|
-
form:
|
301
|
-
region: [
|
322
|
+
form: J,
|
323
|
+
region: [U.F_COUNTRY.enum.MY]
|
302
324
|
},
|
303
325
|
{
|
304
326
|
label: "GHL",
|
305
327
|
value: "E_GHL",
|
306
|
-
form:
|
307
|
-
region: [
|
328
|
+
form: X,
|
329
|
+
region: [U.F_COUNTRY.enum.MY]
|
308
330
|
}
|
309
|
-
],
|
310
|
-
var
|
311
|
-
return (
|
331
|
+
], x = q(() => {
|
332
|
+
var y;
|
333
|
+
return (y = r.find((s) => s.value === e.value)) == null ? void 0 : y.form;
|
312
334
|
});
|
313
|
-
return (
|
314
|
-
const
|
315
|
-
return
|
316
|
-
a(
|
317
|
-
u(
|
318
|
-
])) : (
|
335
|
+
return (y, s) => {
|
336
|
+
const V = d("FmCircularProgress"), G = d("FmSelect");
|
337
|
+
return f(), K(M, null, [
|
338
|
+
a(c) ? (f(), K("div", h, [
|
339
|
+
u(V, { size: "xxl" })
|
340
|
+
])) : (f(), F(G, {
|
319
341
|
key: 1,
|
320
342
|
modelValue: e.value,
|
321
343
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => e.value = m),
|
322
344
|
class: "mb-6",
|
323
345
|
label: "Payment Service Provider",
|
324
|
-
items:
|
346
|
+
items: r.filter((m) => m.region.includes(a(t).currentCountry.value ?? a(U.F_COUNTRY).enum.MY))
|
325
347
|
}, null, 8, ["modelValue", "items"])),
|
326
|
-
e.value ? (
|
348
|
+
e.value ? (f(), F(O(x.value), $(B({ key: 2 }, {
|
327
349
|
gateway: l.value.find((m) => m.paymentGateway === e.value),
|
328
|
-
onDelete:
|
329
|
-
onUpdate:
|
330
|
-
})), null, 16)) :
|
350
|
+
onDelete: o,
|
351
|
+
onUpdate: w
|
352
|
+
})), null, 16)) : S("", !0)
|
331
353
|
], 64);
|
332
354
|
};
|
333
355
|
}
|
334
|
-
}),
|
356
|
+
}), ie = /* @__PURE__ */ C({
|
335
357
|
__name: "RestaurantSetting",
|
336
358
|
props: {
|
337
359
|
restaurantId: {
|
@@ -340,44 +362,44 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
340
362
|
}
|
341
363
|
},
|
342
364
|
setup(n) {
|
343
|
-
const
|
365
|
+
const i = n, { tab: t } = L({
|
344
366
|
tab: "payment-gateway"
|
345
|
-
}), { isLoading:
|
367
|
+
}), { isLoading: c, startAsyncCall: b } = E(!0), e = A(), l = I(), g = [
|
346
368
|
{
|
347
369
|
label: "Payment Gateway",
|
348
370
|
value: "payment-gateway",
|
349
371
|
icon: "assured_workload",
|
350
|
-
render:
|
372
|
+
render: ee
|
351
373
|
}
|
352
374
|
];
|
353
|
-
function
|
375
|
+
function w() {
|
354
376
|
b(async () => {
|
355
|
-
l.value = await
|
377
|
+
l.value = await z.readRestaurantById(i.restaurantId);
|
356
378
|
});
|
357
379
|
}
|
358
|
-
|
359
|
-
const
|
360
|
-
var
|
361
|
-
return (
|
380
|
+
P(w);
|
381
|
+
const o = q(() => {
|
382
|
+
var r;
|
383
|
+
return (r = g.find((x) => x.value === t.value)) == null ? void 0 : r.render;
|
362
384
|
});
|
363
|
-
return (
|
385
|
+
return (r, x) => {
|
364
386
|
var s;
|
365
|
-
const
|
366
|
-
return
|
387
|
+
const y = d("FmTabs");
|
388
|
+
return f(), F(Y, {
|
367
389
|
title: `Restaurant (${(s = l.value) == null ? void 0 : s._id})`,
|
368
|
-
loading: a(
|
390
|
+
loading: a(c),
|
369
391
|
onBack: a(e).back
|
370
392
|
}, {
|
371
393
|
default: k(() => [
|
372
|
-
u(
|
394
|
+
u(y, {
|
373
395
|
"model-value": a(t),
|
374
|
-
"onUpdate:modelValue":
|
396
|
+
"onUpdate:modelValue": x[0] || (x[0] = (V) => N(t) ? t.value = V : null),
|
375
397
|
class: "mb-6",
|
376
398
|
items: g
|
377
399
|
}, null, 8, ["model-value"]),
|
378
|
-
a(t) && l.value ? (
|
400
|
+
a(t) && l.value ? (f(), F(O(o.value), $(B({ key: 0 }, {
|
379
401
|
restaurant: l.value
|
380
|
-
})), null, 16)) :
|
402
|
+
})), null, 16)) : S("", !0)
|
381
403
|
]),
|
382
404
|
_: 1
|
383
405
|
}, 8, ["title", "loading", "onBack"]);
|
@@ -385,5 +407,5 @@ const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
|
|
385
407
|
}
|
386
408
|
});
|
387
409
|
export {
|
388
|
-
|
410
|
+
ie as default
|
389
411
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as C, ref as h, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
|
2
|
-
import { u as D } from "./index-
|
2
|
+
import { u as D } from "./index-CC8HNMje.js";
|
3
3
|
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as c } from "./index-
|
4
|
+
import { s as c } from "./index-Cj90pU-C.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
6
|
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
8
|
import { useRouter as q } from "vue-router";
|
9
9
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as O } from "./index-
|
10
|
+
import { u as O } from "./index-DueuWuxx.js";
|
11
11
|
import { u as U } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
13
|
const z = /* @__PURE__ */ C({
|