@feedmepos/mf-payment 1.2.12 → 1.2.13
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/AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js +40 -0
- package/dist/{PayoutAccount-j4yHJfSr.js → PayoutAccount-BallFJB0.js} +5 -5
- package/dist/{PayoutAccount-D-NM-_2s.js → PayoutAccount-d7sLsB5J.js} +6 -6
- package/dist/{PayoutAccountSetting-vzdkhXb8.js → PayoutAccountSetting-wKE68NqB.js} +111 -114
- package/dist/{Restaurant-CPIy0SZJ.js → Restaurant-CA3nbrzh.js} +5 -5
- package/dist/{RestaurantSetting-DK4GOY2d.js → RestaurantSetting-CJdlyxX7.js} +3 -3
- package/dist/{Settlement-B5kQfJuQ.js → Settlement-BEXf60UK.js} +4 -4
- package/dist/{Settlement-BeI2ksZ3.js → Settlement-Cnbk9m6D.js} +4 -4
- package/dist/SettlementTransactions-D-lWN15V.js +362 -0
- package/dist/SettlementTransactions-Pto6c_3v.js +323 -0
- package/dist/{Terminal-Bf7VZ5Yo.js → Terminal-B3S_wOTA.js} +5 -5
- package/dist/{TerminalSetting-pnwFHRR8.js → TerminalSetting-tSDETEOb.js} +3 -3
- package/dist/{Transaction-Cbiu540w.js → Transaction-BY4EF2Z2.js} +125 -94
- package/dist/{Transaction-Cpbte6yS.js → Transaction-DsYgbjyl.js} +7 -7
- package/dist/{TransactionOld-Dnnz541Y.js → TransactionOld-BY_4OAOA.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-tMjd6_k7.js → TransactionTable.vue_vue_type_script_setup_true_lang-C02jC4yj.js} +115 -93
- package/dist/{app-C_At3NFn.js → app-BiKLWpiD.js} +341 -341
- package/dist/app.js +1 -1
- package/dist/{assets-DjGZEHos.js → assets-C4cUIo0F.js} +35 -33
- package/dist/components/AutoCopyCell.vue.d.ts +1 -0
- package/dist/{grafana-D99I428B.js → grafana-DRHro6WQ.js} +1 -1
- package/dist/{index-DdE42RgX.js → index-0_vl4Euu.js} +1 -1
- package/dist/{index-B3IOW-oD.js → index-4QkP1zBY.js} +1 -1
- package/dist/{index-DigkUnks.js → index-BTIQHrH_.js} +1 -1
- package/dist/{index-BI63pT6J.js → index-BWaS2Ice.js} +5277 -5169
- package/dist/{index-DXLkzCkb.js → index-Bohmvrj5.js} +1 -1
- package/dist/{index-CvPpUZR3.js → index-DJlXGssK.js} +1 -1
- package/dist/{index-CW2tMCo9.js → index-DeoktQzV.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dx-Mg_Zx.js → index.vue_vue_type_script_setup_true_lang-wZFI0CDi.js} +1 -1
- package/dist/model/transaction.d.ts +1 -0
- package/dist/package.json +2 -2
- package/dist/{payout-account-D7Wzxyao.js → payout-account-CtfOQFPT.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +10 -10
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +10 -10
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +28 -34
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +28 -34
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +10 -10
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +10 -10
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +28 -34
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +6 -12
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +1 -1
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +20 -20
- package/dist/views/settlement/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/settlement/cell/Method.vue.d.ts +1 -1
- package/dist/views/transaction/cell/Gateway.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js +0 -39
- package/dist/SettlementTransactions-CHjwajgr.js +0 -297
- package/dist/SettlementTransactions-D7z5DaxO.js +0 -336
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as V, resolveComponent as
|
2
|
-
import { p as N } from "./index-
|
3
|
-
import { u as j, e as
|
1
|
+
import { defineComponent as V, resolveComponent as y, openBlock as g, createElementBlock as _, Fragment as D, createElementVNode as i, createVNode as r, withCtx as k, createTextVNode as C, toDisplayString as U, createCommentVNode as P, createBlock as x, ref as T, watch as W, computed as G, unref as c, isRef as q, h as M, onMounted as J, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as H } from "vue";
|
2
|
+
import { p as N } from "./index-DeoktQzV.js";
|
3
|
+
import { u as j, e as $ } from "./index-BWaS2Ice.js";
|
4
4
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as te } from "vue-router";
|
6
|
-
import { u as K } from "./index-
|
6
|
+
import { u as K } from "./index-DJlXGssK.js";
|
7
7
|
import { P as Q } from "./PDFViewer-xrBtzrlR.js";
|
8
8
|
import { useSnackbar as z, components as ae } from "@feedmepos/ui-library";
|
9
9
|
import { u as B } from "./error-K1CakhA9.js";
|
@@ -18,9 +18,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
18
18
|
}
|
19
19
|
},
|
20
20
|
setup(n) {
|
21
|
-
return (
|
22
|
-
const v =
|
23
|
-
return g(), _(
|
21
|
+
return (d, e) => {
|
22
|
+
const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
|
23
|
+
return g(), _(D, null, [
|
24
24
|
i("div", ne, [
|
25
25
|
r(t, {
|
26
26
|
horizontal: "",
|
@@ -73,16 +73,16 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
73
73
|
}),
|
74
74
|
r(u, { class: "p-0" }, {
|
75
75
|
default: k(() => {
|
76
|
-
var l, f, s, a, o,
|
76
|
+
var l, f, s, a, o, p, m, b;
|
77
77
|
return [
|
78
78
|
e[6] || (e[6] = i("b", null, "Email", -1)),
|
79
79
|
C(": " + U((s = (f = (l = n.payoutAccount) == null ? void 0 : l.store) == null ? void 0 : f.keyPerson) == null ? void 0 : s.email) + " ", 1),
|
80
80
|
e[7] || (e[7] = i("br", null, null, -1)),
|
81
81
|
e[8] || (e[8] = i("b", null, "Name", -1)),
|
82
|
-
C(": " + U((
|
82
|
+
C(": " + U((p = (o = (a = n.payoutAccount) == null ? void 0 : a.store) == null ? void 0 : o.keyPerson) == null ? void 0 : p.name), 1),
|
83
83
|
e[9] || (e[9] = i("br", null, null, -1)),
|
84
84
|
e[10] || (e[10] = i("b", null, "Phone", -1)),
|
85
|
-
C(": " + U((b = (
|
85
|
+
C(": " + U((b = (m = n.payoutAccount) == null ? void 0 : m.store.keyPerson) == null ? void 0 : b.phone), 1),
|
86
86
|
e[11] || (e[11] = i("br", null, null, -1))
|
87
87
|
];
|
88
88
|
}),
|
@@ -112,9 +112,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
112
112
|
}
|
113
113
|
},
|
114
114
|
setup(n) {
|
115
|
-
return (
|
116
|
-
const v =
|
117
|
-
return g(), _(
|
115
|
+
return (d, e) => {
|
116
|
+
const v = y("FmCardHeader"), u = y("FmCardSection"), t = y("FmCard");
|
117
|
+
return g(), _(D, null, [
|
118
118
|
r(t, {
|
119
119
|
horizontal: "",
|
120
120
|
class: "flex-1 p-6 mx-6 mb-6",
|
@@ -130,7 +130,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
130
130
|
}),
|
131
131
|
r(u, { class: "p-0" }, {
|
132
132
|
default: k(() => {
|
133
|
-
var l, f, s, a, o,
|
133
|
+
var l, f, s, a, o, p;
|
134
134
|
return [
|
135
135
|
e[0] || (e[0] = i("b", null, "Bank", -1)),
|
136
136
|
C(": " + U((f = (l = n.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : f.name), 1),
|
@@ -139,7 +139,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
139
139
|
C(": " + U((a = (s = n.payoutAccount) == null ? void 0 : s.store.bank) == null ? void 0 : a.holderName), 1),
|
140
140
|
e[3] || (e[3] = i("br", null, null, -1)),
|
141
141
|
e[4] || (e[4] = i("b", null, "Number", -1)),
|
142
|
-
C(": " + U((
|
142
|
+
C(": " + U((p = (o = n.payoutAccount) == null ? void 0 : o.store.bank) == null ? void 0 : p.accountNumber), 1)
|
143
143
|
];
|
144
144
|
}),
|
145
145
|
_: 1
|
@@ -180,11 +180,11 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
180
180
|
onChange: { type: Function }
|
181
181
|
},
|
182
182
|
setup(n) {
|
183
|
-
const
|
183
|
+
const d = n, e = T(d.data.toString());
|
184
184
|
return W(e, (v) => {
|
185
|
-
|
185
|
+
d.onChange(parseFloat(v));
|
186
186
|
}), (v, u) => {
|
187
|
-
const t =
|
187
|
+
const t = y("FmTextField");
|
188
188
|
return g(), x(t, {
|
189
189
|
inputmode: "decimal",
|
190
190
|
modelValue: e.value,
|
@@ -197,18 +197,18 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
197
197
|
}, 8, ["modelValue"]);
|
198
198
|
};
|
199
199
|
}
|
200
|
-
}),
|
200
|
+
}), me = /* @__PURE__ */ V({
|
201
201
|
__name: "TPlusInput",
|
202
202
|
props: {
|
203
203
|
data: {},
|
204
204
|
onChange: { type: Function }
|
205
205
|
},
|
206
206
|
setup(n) {
|
207
|
-
const
|
207
|
+
const d = n, e = T(d.data.toString());
|
208
208
|
return W(e, (v) => {
|
209
|
-
|
209
|
+
d.onChange(parseInt(v));
|
210
210
|
}), (v, u) => {
|
211
|
-
const t =
|
211
|
+
const t = y("FmTextField");
|
212
212
|
return g(), x(t, {
|
213
213
|
inputmode: "numeric",
|
214
214
|
modelValue: e.value,
|
@@ -216,7 +216,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
216
216
|
}, null, 8, ["modelValue"]);
|
217
217
|
};
|
218
218
|
}
|
219
|
-
}),
|
219
|
+
}), de = { class: "flex gap-16 mt-6" }, pe = { class: "flex-1" }, ye = { class: "flex-1" }, ve = { class: "my-6 w-full flex justify-end" }, fe = { class: "w-[320px]" }, ge = /* @__PURE__ */ V({
|
220
220
|
__name: "PaymentStatus",
|
221
221
|
props: {
|
222
222
|
onUpdate: {
|
@@ -229,9 +229,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
229
229
|
}
|
230
230
|
},
|
231
231
|
setup(n) {
|
232
|
-
const
|
232
|
+
const d = n, e = T(!1), v = z(), u = async (a) => {
|
233
233
|
try {
|
234
|
-
e.value = !0, await
|
234
|
+
e.value = !0, await d.onUpdate(a), v.open({
|
235
235
|
type: "success",
|
236
236
|
title: "Payout account update succesfully"
|
237
237
|
});
|
@@ -246,9 +246,9 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
246
246
|
}
|
247
247
|
}, { search: t } = K({
|
248
248
|
search: ""
|
249
|
-
}), l =
|
250
|
-
const { ssm: a, bank: o, bankStatement:
|
251
|
-
return a && o && o.name && o.accountNumber && o.holderName &&
|
249
|
+
}), l = G(() => {
|
250
|
+
const { ssm: a, bank: o, bankStatement: p } = d.payoutAccount.store;
|
251
|
+
return a && o && o.name && o.accountNumber && o.holderName && p;
|
252
252
|
}), f = T(""), s = [
|
253
253
|
{
|
254
254
|
header: () => "Payment Method",
|
@@ -260,14 +260,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
260
260
|
accessorKey: "rate",
|
261
261
|
cell: ({ row: a }) => {
|
262
262
|
let o = 0;
|
263
|
-
return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)),
|
263
|
+
return a.original.rate && (o = a.original.rate.amount / Math.pow(10, a.original.rate.precision)), M(ie, {
|
264
264
|
data: o,
|
265
|
-
onChange: (
|
266
|
-
const
|
267
|
-
|
265
|
+
onChange: (p) => {
|
266
|
+
const m = d.payoutAccount.methods.at(a.index);
|
267
|
+
m.rate || (m.rate = {
|
268
268
|
amount: 0,
|
269
269
|
precision: 4
|
270
|
-
}),
|
270
|
+
}), m.rate.amount = p * Math.pow(10, m.rate.precision);
|
271
271
|
}
|
272
272
|
});
|
273
273
|
}
|
@@ -275,35 +275,35 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
275
275
|
{
|
276
276
|
header: () => "T plus",
|
277
277
|
accessorKey: "tPlus",
|
278
|
-
cell: ({ row: a }) =>
|
278
|
+
cell: ({ row: a }) => M(me, {
|
279
279
|
data: a.original.tPlus ?? 0,
|
280
280
|
onChange: (o) => {
|
281
|
-
const
|
282
|
-
|
281
|
+
const p = d.payoutAccount.methods.at(a.index);
|
282
|
+
p.tPlus = o;
|
283
283
|
}
|
284
284
|
})
|
285
285
|
}
|
286
286
|
];
|
287
287
|
return (a, o) => {
|
288
|
-
const
|
289
|
-
return g(), _(
|
290
|
-
i("div",
|
291
|
-
i("div",
|
292
|
-
r(
|
288
|
+
const p = y("FmRadio"), m = y("FmRadioGroup"), b = y("FmSwitch"), S = y("FmSearch"), I = y("FmTable"), R = y("FmButton");
|
289
|
+
return g(), _(D, null, [
|
290
|
+
i("div", de, [
|
291
|
+
i("div", pe, [
|
292
|
+
r(m, {
|
293
293
|
modelValue: n.payoutAccount.status,
|
294
294
|
"onUpdate:modelValue": o[0] || (o[0] = (F) => n.payoutAccount.status = F),
|
295
295
|
label: "Account Status"
|
296
296
|
}, {
|
297
297
|
default: k(() => [
|
298
|
-
r(
|
298
|
+
r(p, {
|
299
299
|
value: "NEW",
|
300
300
|
label: "New"
|
301
301
|
}),
|
302
|
-
r(
|
302
|
+
r(p, {
|
303
303
|
value: "PENDING",
|
304
304
|
label: "Pending"
|
305
305
|
}),
|
306
|
-
r(
|
306
|
+
r(p, {
|
307
307
|
value: "APPROVED",
|
308
308
|
label: "Approved"
|
309
309
|
})
|
@@ -311,7 +311,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
311
311
|
_: 1
|
312
312
|
}, 8, ["modelValue"])
|
313
313
|
]),
|
314
|
-
i("div",
|
314
|
+
i("div", ye, [
|
315
315
|
r(b, {
|
316
316
|
modelValue: n.payoutAccount.enable,
|
317
317
|
"onUpdate:modelValue": o[1] || (o[1] = (F) => n.payoutAccount.enable = F),
|
@@ -321,7 +321,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
321
321
|
}, null, 8, ["modelValue", "disabled"])
|
322
322
|
])
|
323
323
|
]),
|
324
|
-
n.payoutAccount.enable ? (g(), _(
|
324
|
+
n.payoutAccount.enable ? (g(), _(D, { key: 0 }, [
|
325
325
|
i("div", ve, [
|
326
326
|
i("div", fe, [
|
327
327
|
r(S, {
|
@@ -341,7 +341,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
341
341
|
"column-defs": s
|
342
342
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
343
343
|
], 64)) : P("", !0),
|
344
|
-
r(
|
344
|
+
r(R, {
|
345
345
|
class: "w-full mt-6",
|
346
346
|
variant: "primary",
|
347
347
|
label: "Save",
|
@@ -354,10 +354,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
354
354
|
}), be = { class: "flex" }, Fe = /* @__PURE__ */ V({
|
355
355
|
__name: "Actions",
|
356
356
|
emits: ["edit", "delete"],
|
357
|
-
setup(n, { emit:
|
358
|
-
const e =
|
357
|
+
setup(n, { emit: d }) {
|
358
|
+
const e = d;
|
359
359
|
return (v, u) => {
|
360
|
-
const t =
|
360
|
+
const t = y("FmButton");
|
361
361
|
return g(), _("div", be, [
|
362
362
|
r(t, {
|
363
363
|
variant: "plain",
|
@@ -378,7 +378,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
378
378
|
}
|
379
379
|
},
|
380
380
|
setup(n) {
|
381
|
-
const
|
381
|
+
const d = z(), e = n, { isLoading: v, startAsyncCall: u } = j(), t = T([]);
|
382
382
|
function l() {
|
383
383
|
u(async () => {
|
384
384
|
t.value = await N.getChannels(e.payoutAccount._id);
|
@@ -388,12 +388,12 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
388
388
|
function f() {
|
389
389
|
u(async () => {
|
390
390
|
try {
|
391
|
-
await N.updateChannels(e.payoutAccount._id, t.value),
|
391
|
+
await N.updateChannels(e.payoutAccount._id, t.value), d.open({
|
392
392
|
type: "success",
|
393
393
|
title: "Payout account channels update succesfully"
|
394
394
|
});
|
395
395
|
} catch (o) {
|
396
|
-
|
396
|
+
d.open({
|
397
397
|
type: "error",
|
398
398
|
title: "Error occurs when updating payout account channels",
|
399
399
|
message: B(o)
|
@@ -404,12 +404,12 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
404
404
|
function s() {
|
405
405
|
u(async () => {
|
406
406
|
try {
|
407
|
-
await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id),
|
407
|
+
await N.resetChannels(e.payoutAccount._id), t.value = await N.getChannels(e.payoutAccount._id), d.open({
|
408
408
|
type: "success",
|
409
409
|
title: "Payout account channels reset succesfully"
|
410
410
|
});
|
411
411
|
} catch (o) {
|
412
|
-
|
412
|
+
d.open({
|
413
413
|
type: "error",
|
414
414
|
title: "Error occurs when reset payout account channels",
|
415
415
|
message: B(o)
|
@@ -429,29 +429,29 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
429
429
|
{
|
430
430
|
header: () => "Display",
|
431
431
|
accessorKey: "icon",
|
432
|
-
cell: ({ row: o }) =>
|
432
|
+
cell: ({ row: o }) => M("img", { src: o.original.icon, width: 32, height: 32 })
|
433
433
|
},
|
434
434
|
{
|
435
435
|
header: () => "Label",
|
436
436
|
accessorKey: "label",
|
437
|
-
cell: ({ row: o }) =>
|
437
|
+
cell: ({ row: o }) => M(ae.FmTextField, {
|
438
438
|
modelValue: o.original.label,
|
439
|
-
"onUpdate:modelValue": (
|
439
|
+
"onUpdate:modelValue": (p) => o.original.label = p
|
440
440
|
})
|
441
441
|
},
|
442
442
|
{
|
443
443
|
id: "actions",
|
444
444
|
header: () => "Actions",
|
445
|
-
cell: ({ row: o }) =>
|
445
|
+
cell: ({ row: o }) => M(Fe, {
|
446
446
|
onDelete: () => t.value.splice(o.index, 1)
|
447
447
|
})
|
448
448
|
}
|
449
449
|
];
|
450
|
-
return (o,
|
451
|
-
const
|
452
|
-
return g(), _(
|
450
|
+
return (o, p) => {
|
451
|
+
const m = y("FmButton"), b = y("FmTable");
|
452
|
+
return g(), _(D, null, [
|
453
453
|
i("div", we, [
|
454
|
-
r(
|
454
|
+
r(m, {
|
455
455
|
class: "mx-4",
|
456
456
|
variant: "destructive",
|
457
457
|
size: "md",
|
@@ -459,7 +459,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
459
459
|
label: "Reset",
|
460
460
|
onClick: s
|
461
461
|
}),
|
462
|
-
r(
|
462
|
+
r(m, {
|
463
463
|
variant: "primary",
|
464
464
|
size: "md",
|
465
465
|
icon: "save",
|
@@ -500,7 +500,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
500
500
|
secretKey: ""
|
501
501
|
});
|
502
502
|
return (u, t) => {
|
503
|
-
const l =
|
503
|
+
const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
|
504
504
|
return g(), x(s, {
|
505
505
|
ref: "form",
|
506
506
|
class: "flex flex-col gap-16",
|
@@ -571,7 +571,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
571
571
|
storeName: ""
|
572
572
|
});
|
573
573
|
return (u, t) => {
|
574
|
-
const l =
|
574
|
+
const l = y("FmTextField"), f = y("FmButton"), s = y("FmForm");
|
575
575
|
return g(), x(s, {
|
576
576
|
ref: "form",
|
577
577
|
class: "flex flex-col gap-16",
|
@@ -643,26 +643,26 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
643
643
|
}
|
644
644
|
},
|
645
645
|
setup(n) {
|
646
|
-
const
|
646
|
+
const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { gatewayTab: t } = K({
|
647
647
|
gatewayTab: ""
|
648
648
|
}), l = n, f = [
|
649
649
|
{
|
650
650
|
label: "Fiuu",
|
651
651
|
value: "RAZER_MERCHANT_SERVICE",
|
652
652
|
render: Ve,
|
653
|
-
region: [
|
653
|
+
region: [$.F_COUNTRY.enum.SG]
|
654
654
|
},
|
655
655
|
{
|
656
656
|
label: "Macau Pass",
|
657
657
|
value: "MACAU_PASS",
|
658
658
|
render: _e,
|
659
|
-
region: [
|
659
|
+
region: [$.F_COUNTRY.enum.MO]
|
660
660
|
}
|
661
|
-
], s = T(l.payoutAccount.gateways ?? []), a =
|
662
|
-
async function
|
661
|
+
], s = T(l.payoutAccount.gateways ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
|
662
|
+
async function p(m) {
|
663
663
|
await u(async () => {
|
664
664
|
try {
|
665
|
-
await N.updateGateway(l.payoutAccount._id,
|
665
|
+
await N.updateGateway(l.payoutAccount._id, m), e.open({
|
666
666
|
type: "success",
|
667
667
|
title: "Payout account gateways update succesfully"
|
668
668
|
});
|
@@ -675,11 +675,11 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
675
675
|
}
|
676
676
|
});
|
677
677
|
}
|
678
|
-
return (
|
679
|
-
var
|
680
|
-
const S =
|
681
|
-
return g(), _(
|
682
|
-
c(
|
678
|
+
return (m, b) => {
|
679
|
+
var R;
|
680
|
+
const S = y("FmCircularProgress"), I = y("FmTabs");
|
681
|
+
return g(), _(D, null, [
|
682
|
+
c(d).value === c($.F_COUNTRY).enum.MY ? (g(), _("p", Ae, b[1] || (b[1] = [
|
683
683
|
i("b", null, "Note: ", -1),
|
684
684
|
C(" There's no setup required for Malaysia Payment Gateway, once Payout Account is ready you will able to configure the payment channels. ")
|
685
685
|
]))) : P("", !0),
|
@@ -692,7 +692,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
692
692
|
class: "mb-6",
|
693
693
|
items: o.value
|
694
694
|
}, null, 8, ["model-value", "items"])),
|
695
|
-
c(t) ? (g(), x(Y((
|
695
|
+
c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 3 }, {
|
696
696
|
gateway: s.value.find((F) => {
|
697
697
|
var w;
|
698
698
|
return F.paymentGateway === ((w = a.value) == null ? void 0 : w.value);
|
@@ -701,7 +701,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
701
701
|
s.value = s.value.filter((F) => {
|
702
702
|
var w;
|
703
703
|
return F.paymentGateway !== ((w = a.value) == null ? void 0 : w.value);
|
704
|
-
}),
|
704
|
+
}), p(s.value);
|
705
705
|
},
|
706
706
|
onUpdate: (F) => {
|
707
707
|
var E;
|
@@ -712,7 +712,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
712
712
|
w ? w.config = F : s.value.push({
|
713
713
|
paymentGateway: (E = a.value) == null ? void 0 : E.value,
|
714
714
|
config: F
|
715
|
-
}),
|
715
|
+
}), p(s.value);
|
716
716
|
}
|
717
717
|
})), null, 16)) : P("", !0)
|
718
718
|
], 64);
|
@@ -740,15 +740,12 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
740
740
|
type: "googlePay",
|
741
741
|
gateway: "RAZER_MERCHANT_SERVICE",
|
742
742
|
config: {
|
743
|
-
|
744
|
-
|
745
|
-
gateway: "molpay",
|
746
|
-
gatewayMerchantId: "molpay"
|
747
|
-
}
|
743
|
+
gateway: "molpay",
|
744
|
+
gatewayMerchantId: "molpay"
|
748
745
|
}
|
749
746
|
});
|
750
747
|
return (v, u) => {
|
751
|
-
const t =
|
748
|
+
const t = y("FmTextField"), l = y("FmButton"), f = y("FmForm");
|
752
749
|
return g(), x(f, {
|
753
750
|
ref: "form",
|
754
751
|
class: "flex flex-col gap-16",
|
@@ -763,15 +760,15 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
763
760
|
rules: c(A)(c(h).string())
|
764
761
|
}, null, 8, ["modelValue", "rules"]),
|
765
762
|
r(t, {
|
766
|
-
modelValue: e.value.config.gateway
|
767
|
-
"onUpdate:modelValue": u[1] || (u[1] = (s) => e.value.config.gateway
|
763
|
+
modelValue: e.value.config.gateway,
|
764
|
+
"onUpdate:modelValue": u[1] || (u[1] = (s) => e.value.config.gateway = s),
|
768
765
|
label: "Gateway ID",
|
769
766
|
disabled: !0,
|
770
767
|
rules: c(A)(c(h).string())
|
771
768
|
}, null, 8, ["modelValue", "rules"]),
|
772
769
|
r(t, {
|
773
|
-
modelValue: e.value.config.gateway
|
774
|
-
"onUpdate:modelValue": u[2] || (u[2] = (s) => e.value.config.gateway
|
770
|
+
modelValue: e.value.config.gateway,
|
771
|
+
"onUpdate:modelValue": u[2] || (u[2] = (s) => e.value.config.gateway = s),
|
775
772
|
label: "Gateway Merchant ID",
|
776
773
|
disabled: !0,
|
777
774
|
rules: c(A)(c(h).string())
|
@@ -808,7 +805,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
808
805
|
}
|
809
806
|
},
|
810
807
|
setup(n) {
|
811
|
-
const
|
808
|
+
const d = X().currentCountry, e = z(), { isLoading: v, startAsyncCall: u } = j(), { tokenTab: t } = K({
|
812
809
|
tokenTab: ""
|
813
810
|
}), l = n, f = [
|
814
811
|
{
|
@@ -816,13 +813,13 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
816
813
|
value: "googlePay",
|
817
814
|
icon: "android",
|
818
815
|
render: Se,
|
819
|
-
region: [
|
816
|
+
region: [$.F_COUNTRY.enum.MY, $.F_COUNTRY.enum.SG]
|
820
817
|
}
|
821
|
-
], s = T(l.payoutAccount.tokens ?? []), a =
|
822
|
-
async function
|
818
|
+
], s = T(l.payoutAccount.tokens ?? []), a = G(() => f.find((m) => m.value === t.value)), o = G(() => f.filter((m) => m.region.includes(d.value ?? $.F_COUNTRY.enum.MY)));
|
819
|
+
async function p(m) {
|
823
820
|
await u(async () => {
|
824
821
|
try {
|
825
|
-
await N.updateTokens(l.payoutAccount._id,
|
822
|
+
await N.updateTokens(l.payoutAccount._id, m), e.open({
|
826
823
|
type: "success",
|
827
824
|
title: "Payout account tokens gateway update succesfully"
|
828
825
|
});
|
@@ -835,10 +832,10 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
835
832
|
}
|
836
833
|
});
|
837
834
|
}
|
838
|
-
return (
|
839
|
-
var
|
840
|
-
const S =
|
841
|
-
return g(), _(
|
835
|
+
return (m, b) => {
|
836
|
+
var R;
|
837
|
+
const S = y("FmCircularProgress"), I = y("FmTabs");
|
838
|
+
return g(), _(D, null, [
|
842
839
|
b[1] || (b[1] = i("p", { className: "mt-1 my-6 text-gray-600" }, [
|
843
840
|
i("b", null, "Note: "),
|
844
841
|
C(" Token gateway always on the top of every other methods ( online channels ), and it's was branding requirements from each of the payment token gateway provider. For setting most of the time are the same and only need to select for which provider. ")
|
@@ -852,7 +849,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
852
849
|
class: "mb-6",
|
853
850
|
items: o.value
|
854
851
|
}, null, 8, ["model-value", "items"])),
|
855
|
-
c(t) ? (g(), x(Y((
|
852
|
+
c(t) ? (g(), x(Y((R = a.value) == null ? void 0 : R.render), L(H({ key: 2 }, {
|
856
853
|
gateway: s.value.find((F) => {
|
857
854
|
var w;
|
858
855
|
return F.type === ((w = a.value) == null ? void 0 : w.value);
|
@@ -861,14 +858,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
861
858
|
s.value = s.value.filter((F) => {
|
862
859
|
var w;
|
863
860
|
return F.type !== ((w = a.value) == null ? void 0 : w.value);
|
864
|
-
}),
|
861
|
+
}), p(s.value);
|
865
862
|
},
|
866
863
|
onUpdate: (F) => {
|
867
864
|
let w = s.value.find((E) => {
|
868
865
|
var O;
|
869
866
|
return E.type === ((O = a.value) == null ? void 0 : O.value);
|
870
867
|
});
|
871
|
-
w ? w.config = F : s.value.push(F),
|
868
|
+
w ? w.config = F : s.value.push(F), p(s.value);
|
872
869
|
}
|
873
870
|
})), null, 16)) : P("", !0)
|
874
871
|
], 64);
|
@@ -883,14 +880,14 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
883
880
|
}
|
884
881
|
},
|
885
882
|
setup(n) {
|
886
|
-
const
|
883
|
+
const d = n, { tab: e } = K({
|
887
884
|
tab: "information"
|
888
885
|
}), { isLoading: v, startAsyncCall: u } = j(!0), t = te(), l = T();
|
889
|
-
async function f(
|
886
|
+
async function f(p) {
|
890
887
|
await N.updateById(
|
891
|
-
|
892
|
-
|
893
|
-
), l.value = await N.readById(
|
888
|
+
d.accountId,
|
889
|
+
p
|
890
|
+
), l.value = await N.readById(d.accountId);
|
894
891
|
}
|
895
892
|
const s = [
|
896
893
|
{
|
@@ -932,17 +929,17 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
932
929
|
];
|
933
930
|
function a() {
|
934
931
|
u(async () => {
|
935
|
-
l.value = await N.readById(
|
932
|
+
l.value = await N.readById(d.accountId);
|
936
933
|
});
|
937
934
|
}
|
938
935
|
J(a);
|
939
|
-
const o =
|
940
|
-
const
|
941
|
-
return
|
936
|
+
const o = G(() => {
|
937
|
+
const p = s.reduce((m, b) => m || (b.children ? b.children.find((S) => S.value === e.value) || null : b.value === e.value ? b : null), null);
|
938
|
+
return p == null ? void 0 : p.render;
|
942
939
|
});
|
943
|
-
return (
|
940
|
+
return (p, m) => {
|
944
941
|
var S;
|
945
|
-
const b =
|
942
|
+
const b = y("FmTabs");
|
946
943
|
return g(), x(ee, {
|
947
944
|
title: `Payout Account (${(S = l.value) == null ? void 0 : S._id})`,
|
948
945
|
loading: c(v),
|
@@ -951,7 +948,7 @@ const ne = { class: "flex gap-16 mb-6" }, oe = ["src"], le = /* @__PURE__ */ V({
|
|
951
948
|
default: k(() => [
|
952
949
|
r(b, {
|
953
950
|
"model-value": c(e),
|
954
|
-
"onUpdate:modelValue":
|
951
|
+
"onUpdate:modelValue": m[0] || (m[0] = (I) => q(e) ? e.value = I : null),
|
955
952
|
class: "mb-6",
|
956
953
|
items: s
|
957
954
|
}, null, 8, ["model-value"]),
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
2
|
-
import { u as O } from "./index-
|
2
|
+
import { u as O } from "./index-DJlXGssK.js";
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
|
-
import { u as G } from "./index-
|
6
|
-
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-
|
7
|
-
import { r as H } from "./index-
|
5
|
+
import { u as G } from "./index-BWaS2Ice.js";
|
6
|
+
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
7
|
+
import { r as H } from "./index-Bohmvrj5.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-DRHro6WQ.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as D, ref as x, resolveComponent as s, openBlock as F, createBlock as w, withCtx as k, createVNode as o, unref as a, createElementVNode as G, createCommentVNode as S, computed as q, onMounted as $, createElementBlock as O, Fragment as j, isRef as B, resolveDynamicComponent as K, normalizeProps as P, mergeProps as E } from "vue";
|
2
|
-
import { g as R, b as A, u as N, e as C } from "./index-
|
2
|
+
import { g as R, b as A, u as N, e as C } from "./index-BWaS2Ice.js";
|
3
3
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as H } from "vue-router";
|
5
|
-
import { u as Y } from "./index-
|
5
|
+
import { u as Y } from "./index-DJlXGssK.js";
|
6
6
|
import { z as p, a as f } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as L } from "@feedmepos/mf-common";
|
8
8
|
import { u as Q } from "./error-K1CakhA9.js";
|
9
9
|
import { useSnackbar as Z } from "@feedmepos/ui-library";
|
10
|
-
import { r as h } from "./index-
|
10
|
+
import { r as h } from "./index-Bohmvrj5.js";
|
11
11
|
const T = {
|
12
12
|
async get(n) {
|
13
13
|
return R(
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
|
2
|
-
import { u as A } from "./index-
|
2
|
+
import { u as A } from "./index-BWaS2Ice.js";
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as _ } from "./index-
|
4
|
+
import { s as _ } from "./index-0_vl4Euu.js";
|
5
5
|
import { useSnackbar as U } from "@feedmepos/ui-library";
|
6
6
|
import { d as w } from "./dinero-CIVmXLL-.js";
|
7
|
-
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-
|
7
|
+
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
9
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as z } from "./index-
|
10
|
+
import { u as z } from "./index-DJlXGssK.js";
|
11
11
|
import { u as G } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
13
|
import "@feedmepos/mf-common";
|