@feedmepos/mf-payment 1.0.16 → 1.0.17-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-BrmepGbb.js → PayoutAccount-DVTKC9HU.js} +98 -97
- package/dist/{PayoutAccount-cwCilNbl.js → PayoutAccount-DaSWi1Me.js} +5 -5
- package/dist/{PayoutAccountSelector.vue_vue_type_script_setup_true_lang-aKoJJbKM.js → PayoutAccountSelector.vue_vue_type_script_setup_true_lang-CYE3OEXe.js} +2 -2
- package/dist/{PayoutAccountSetting-90IBii5X.js → PayoutAccountSetting-CqWDYDDi.js} +4 -4
- package/dist/{Restaurant-D8QnwfhM.js → Restaurant-C-pno48_.js} +4 -4
- package/dist/{RestaurantSetting-BAUyjaOA.js → RestaurantSetting-D5BXiTn2.js} +4 -4
- package/dist/{Settlement-NIimyyhr.js → Settlement-Cgxts5eu.js} +3 -3
- package/dist/{Settlement-DNQgXGj3.js → Settlement-I67N2bqy.js} +3 -3
- package/dist/{SettlementTransactions-DHzXYTdX.js → SettlementTransactions-BWe-hWjq.js} +4 -4
- package/dist/{SettlementTransactions-uvV3ooaD.js → SettlementTransactions-BXPsJSOI.js} +4 -4
- package/dist/{Terminal-BkPBzmll.js → Terminal-o9zfC9WW.js} +5 -5
- package/dist/{TerminalSetting-CO3dbjuF.js → TerminalSetting-BciOf47B.js} +43 -41
- package/dist/{TerminalTransaction-UsDcltdD.js → TerminalTransaction-BYlEOFjg.js} +130 -107
- package/dist/TerminalTransaction-C_2wLJJV.js +820 -0
- package/dist/{Transaction-vY3phZhr.js → Transaction-B362xcHT.js} +6 -6
- package/dist/{Transaction-D_prIZ6Q.js → Transaction-gDdSiqs9.js} +5 -5
- package/dist/{TransactionOld-YZu6g47q.js → TransactionOld--8HuiCzC.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-DfdpMtKx.js → TransactionTable.vue_vue_type_script_setup_true_lang-yAM0nD2z.js} +2 -2
- package/dist/{app-B6dBdaju.js → app-Dm8kGtux.js} +230 -230
- package/dist/app.js +1 -1
- package/dist/{assets-XIznJ8q0.js → assets-BDTkzAxB.js} +1 -1
- package/dist/{grafana-D_rVb29h.js → grafana-Dtn-kbRH.js} +12 -12
- package/dist/{index-BB-aOpz8.js → index-4uEqQ1dj.js} +1 -1
- package/dist/{index-Co6TLxCS.js → index-BC85ddk1.js} +1 -1
- package/dist/{index-Cah_MIIP.js → index-BroiGVyD.js} +1 -1
- package/dist/{index-dMft2-qf.js → index-CZ9tbaEh.js} +1 -1
- package/dist/{index-BNgLI91K.js → index-CZAwC5k6.js} +1 -1
- package/dist/{index-BGSXGksh.js → index-CtVHR2Os.js} +1 -1
- package/dist/{index-D0b12Dm7.js → index-D7Uh09kd.js} +2 -2
- package/dist/{index-BZmxOkHq.js → index-DmltKkqh.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Csyu2VjT.js → index.vue_vue_type_script_setup_true_lang-3Bmqvkzy.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Dt1-_gXM.js → payout-account-BZ-WV3GM.js} +2 -2
- package/dist/{transaction-DQHJFQjs.js → transaction-XK-M9o1a.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/TerminalTransaction-w6eO7sMR.js +0 -819
@@ -1,13 +1,14 @@
|
|
1
|
-
import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as
|
2
|
-
import { u as R, e as U } from "./index-
|
3
|
-
import { useRouter as
|
4
|
-
import { t as C } from "./index-
|
5
|
-
import { _ as
|
6
|
-
import { u as H } from "./index-
|
1
|
+
import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
|
2
|
+
import { u as R, e as U } from "./index-D7Uh09kd.js";
|
3
|
+
import { useRouter as E } from "vue-router";
|
4
|
+
import { t as C } from "./index-BC85ddk1.js";
|
5
|
+
import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
+
import { u as H } from "./index-CtVHR2Os.js";
|
7
7
|
import { useSnackbar as Q } from "@feedmepos/ui-library";
|
8
8
|
import { u as J } from "./error-K1CakhA9.js";
|
9
|
+
import { z as W, a as X } from "./validator-D5jtpt9A.js";
|
9
10
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
10
|
-
const
|
11
|
+
const Z = /* @__PURE__ */ T({
|
11
12
|
__name: "Information",
|
12
13
|
props: {
|
13
14
|
terminal: {
|
@@ -31,10 +32,10 @@ const W = /* @__PURE__ */ T({
|
|
31
32
|
e[7] || (e[7] = g("br", null, null, -1))
|
32
33
|
], 64));
|
33
34
|
}
|
34
|
-
}),
|
35
|
+
}), ee = {
|
35
36
|
key: 0,
|
36
37
|
class: "flex items-center justify-center min-h-[80vh]"
|
37
|
-
},
|
38
|
+
}, ae = { class: "flex mt-6 space-x-6" }, te = /* @__PURE__ */ T({
|
38
39
|
__name: "TerminalGateway",
|
39
40
|
props: {
|
40
41
|
terminal: {
|
@@ -75,10 +76,10 @@ const W = /* @__PURE__ */ T({
|
|
75
76
|
(r = c.terminal.ecrs) == null || r.splice(t, 1), c.onUpdate(c.terminal);
|
76
77
|
}
|
77
78
|
return (t, r) => {
|
78
|
-
const m = f("FmCircularProgress"),
|
79
|
-
return
|
79
|
+
const m = f("FmCircularProgress"), k = f("FmSelect"), w = f("FmButton"), K = f("FmForm");
|
80
|
+
return _(d) ? (b(), N("div", ee, [
|
80
81
|
I(m, { size: "xxl" })
|
81
|
-
])) : (b(),
|
82
|
+
])) : (b(), x(K, {
|
82
83
|
key: 1,
|
83
84
|
ref: v.value,
|
84
85
|
class: "flex flex-col gap-16 w-[500px]",
|
@@ -87,14 +88,15 @@ const W = /* @__PURE__ */ T({
|
|
87
88
|
})
|
88
89
|
}, {
|
89
90
|
default: q(() => [
|
90
|
-
I(
|
91
|
+
I(k, {
|
91
92
|
modelValue: p.value.terminalId,
|
92
93
|
"onUpdate:modelValue": r[0] || (r[0] = (P) => p.value.terminalId = P),
|
93
94
|
label: "Terminal ID",
|
94
|
-
items: s.value
|
95
|
-
|
96
|
-
|
97
|
-
|
95
|
+
items: s.value,
|
96
|
+
rules: _(W)(_(X).string())
|
97
|
+
}, null, 8, ["modelValue", "items", "rules"]),
|
98
|
+
g("div", ae, [
|
99
|
+
n.value > -1 ? (b(), x(w, {
|
98
100
|
key: 0,
|
99
101
|
class: "flex-1",
|
100
102
|
variant: "secondary",
|
@@ -113,7 +115,7 @@ const W = /* @__PURE__ */ T({
|
|
113
115
|
}, 512));
|
114
116
|
};
|
115
117
|
}
|
116
|
-
}),
|
118
|
+
}), ne = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ T({
|
117
119
|
__name: "FiuuGateway",
|
118
120
|
props: {
|
119
121
|
terminal: {
|
@@ -166,8 +168,8 @@ const W = /* @__PURE__ */ T({
|
|
166
168
|
(u = a.value.gateways) == null || u.splice(s, 1), d.onUpdate(a.value);
|
167
169
|
}
|
168
170
|
return (s, u) => {
|
169
|
-
const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"),
|
170
|
-
return b(),
|
171
|
+
const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"), k = f("FmForm");
|
172
|
+
return b(), x(k, {
|
171
173
|
ref: o.value,
|
172
174
|
class: "flex flex-col gap-16 w-[500px]",
|
173
175
|
onValidationSuccess: u[2] || (u[2] = () => {
|
@@ -179,15 +181,15 @@ const W = /* @__PURE__ */ T({
|
|
179
181
|
modelValue: n.value.packageId,
|
180
182
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => n.value.packageId = w),
|
181
183
|
label: "Package ID",
|
182
|
-
items: c.filter((w) => w.region ===
|
184
|
+
items: c.filter((w) => w.region === _(e))
|
183
185
|
}, null, 8, ["modelValue", "items"]),
|
184
186
|
I(r, {
|
185
187
|
modelValue: n.value.uniqueId,
|
186
188
|
"onUpdate:modelValue": u[1] || (u[1] = (w) => n.value.uniqueId = w),
|
187
189
|
label: "Unique ID"
|
188
190
|
}, null, 8, ["modelValue"]),
|
189
|
-
g("div",
|
190
|
-
v.value > -1 ? (b(),
|
191
|
+
g("div", ne, [
|
192
|
+
v.value > -1 ? (b(), x(m, {
|
191
193
|
key: 0,
|
192
194
|
class: "flex-1",
|
193
195
|
variant: "secondary",
|
@@ -206,7 +208,7 @@ const W = /* @__PURE__ */ T({
|
|
206
208
|
}, 512);
|
207
209
|
};
|
208
210
|
}
|
209
|
-
}),
|
211
|
+
}), re = { class: "flex mt-6 space-x-6" }, ue = /* @__PURE__ */ T({
|
210
212
|
__name: "GhlGateway",
|
211
213
|
props: {
|
212
214
|
terminal: {
|
@@ -246,7 +248,7 @@ const W = /* @__PURE__ */ T({
|
|
246
248
|
}
|
247
249
|
return (i, l) => {
|
248
250
|
const s = f("FmTextField"), u = f("FmTextarea"), t = f("FmButton"), r = f("FmForm");
|
249
|
-
return b(),
|
251
|
+
return b(), x(r, {
|
250
252
|
ref: c.value,
|
251
253
|
class: "flex flex-col gap-16 w-[500px]",
|
252
254
|
onValidationSuccess: l[3] || (l[3] = () => {
|
@@ -269,8 +271,8 @@ const W = /* @__PURE__ */ T({
|
|
269
271
|
"onUpdate:modelValue": l[2] || (l[2] = (m) => o.value.privateKey = m),
|
270
272
|
label: "Private Key"
|
271
273
|
}, null, 8, ["modelValue"]),
|
272
|
-
g("div",
|
273
|
-
a.value > -1 ? (b(),
|
274
|
+
g("div", re, [
|
275
|
+
a.value > -1 ? (b(), x(t, {
|
274
276
|
key: 0,
|
275
277
|
class: "flex-1",
|
276
278
|
variant: "secondary",
|
@@ -289,7 +291,7 @@ const W = /* @__PURE__ */ T({
|
|
289
291
|
}, 512);
|
290
292
|
};
|
291
293
|
}
|
292
|
-
}),
|
294
|
+
}), ge = /* @__PURE__ */ T({
|
293
295
|
__name: "TerminalSetting",
|
294
296
|
props: {
|
295
297
|
terminalId: {
|
@@ -300,7 +302,7 @@ const W = /* @__PURE__ */ T({
|
|
300
302
|
setup(y) {
|
301
303
|
const d = y, { tab: e } = H({
|
302
304
|
tab: "information"
|
303
|
-
}), { isLoading: c, startAsyncCall: a } = R(!0), o =
|
305
|
+
}), { isLoading: c, startAsyncCall: a } = R(!0), o = E(), v = Q(), n = F();
|
304
306
|
async function p(t) {
|
305
307
|
a(async () => {
|
306
308
|
try {
|
@@ -330,13 +332,13 @@ const W = /* @__PURE__ */ T({
|
|
330
332
|
label: "Information",
|
331
333
|
value: "information",
|
332
334
|
icon: "overview",
|
333
|
-
render:
|
335
|
+
render: Z
|
334
336
|
},
|
335
337
|
{
|
336
338
|
label: "Fiuu",
|
337
339
|
value: "fiuu",
|
338
340
|
icon: "payment",
|
339
|
-
render:
|
341
|
+
render: le
|
340
342
|
}
|
341
343
|
], l = $().currentCountry, s = O(() => {
|
342
344
|
var t;
|
@@ -348,31 +350,31 @@ const W = /* @__PURE__ */ T({
|
|
348
350
|
label: "FeedMe Terminal",
|
349
351
|
value: "terminal",
|
350
352
|
icon: "shopping_cart_checkout",
|
351
|
-
render:
|
353
|
+
render: te
|
352
354
|
}), l.value === U.F_COUNTRY.enum.MY && i.push({
|
353
355
|
label: "GHL Terminal (V2)",
|
354
356
|
value: "ghl",
|
355
357
|
icon: "shopping_cart_checkout",
|
356
|
-
render:
|
358
|
+
render: ue
|
357
359
|
}));
|
358
360
|
});
|
359
361
|
}
|
360
362
|
return G(u), (t, r) => {
|
361
|
-
var
|
363
|
+
var k;
|
362
364
|
const m = f("FmTabs");
|
363
|
-
return b(),
|
364
|
-
title: `Terminal (${(
|
365
|
-
loading:
|
366
|
-
onBack:
|
365
|
+
return b(), x(A, {
|
366
|
+
title: `Terminal (${(k = n.value) == null ? void 0 : k._id})`,
|
367
|
+
loading: _(c),
|
368
|
+
onBack: _(o).back
|
367
369
|
}, {
|
368
370
|
default: q(() => [
|
369
371
|
I(m, {
|
370
|
-
"model-value":
|
372
|
+
"model-value": _(e),
|
371
373
|
"onUpdate:modelValue": r[0] || (r[0] = (w) => h(e) ? e.value = w : null),
|
372
374
|
class: "mb-6",
|
373
375
|
items: i
|
374
376
|
}, null, 8, ["model-value"]),
|
375
|
-
|
377
|
+
_(e) ? (b(), x(L(s.value), j(z({ key: 0 }, {
|
376
378
|
terminal: n.value,
|
377
379
|
onUpdate: p
|
378
380
|
})), null, 16)) : B("", !0)
|
@@ -383,5 +385,5 @@ const W = /* @__PURE__ */ T({
|
|
383
385
|
}
|
384
386
|
});
|
385
387
|
export {
|
386
|
-
|
388
|
+
ge as default
|
387
389
|
};
|