@feedmepos/mf-payment 0.0.0-beta.26 → 0.0.0-beta.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/{PayoutAccount-DLx1vtHX.js → PayoutAccount-B_q3YWPn.js} +3 -3
  2. package/dist/{PayoutAccount-ka6Aj3dZ.js → PayoutAccount-DhS_swJU.js} +5 -5
  3. package/dist/{PayoutAccountSetting-BMK0lEkA.js → PayoutAccountSetting-B0WUvW2T.js} +3 -3
  4. package/dist/{Settlement-DJ5zBwg1.js → Settlement-BfzE6GRq.js} +3 -3
  5. package/dist/{Settlement-BbcLipkK.js → Settlement-DL852BAW.js} +3 -3
  6. package/dist/{SettlementTransactions-DiJ0UH3a.js → SettlementTransactions-B-PmdVmd.js} +4 -4
  7. package/dist/{SettlementTransactions-Dj-9ol4g.js → SettlementTransactions-Bns4JiYa.js} +4 -4
  8. package/dist/{Terminal-BhpnHoj_.js → Terminal-BJfw9jQn.js} +4 -4
  9. package/dist/TerminalSetting-ByALrF_k.js +259 -0
  10. package/dist/{TerminalTransaction-vQZGUaOJ.js → TerminalTransaction-DuVyCu0j.js} +5 -5
  11. package/dist/{TerminalTransaction-BGVuNPnK.js → TerminalTransaction-F3kzj60e.js} +5 -5
  12. package/dist/{Transaction-BTW34WyR.js → Transaction-BV3f9JLh.js} +4 -4
  13. package/dist/{Transaction-qdl0CHSg.js → Transaction-sG5VLrZG.js} +4 -4
  14. package/dist/api/terminal/index.d.ts +4 -0
  15. package/dist/app.js +13 -13
  16. package/dist/{assets-DKVuXT4S.js → assets-Bj5ToWoP.js} +1 -1
  17. package/dist/{index-CR0eMJfk.js → index-BYz1HdLk.js} +1 -1
  18. package/dist/{index-1GmRoAc1.js → index-BmrM-GfD.js} +1 -1
  19. package/dist/{index-CdC19Yvv.js → index-BvPakrCi.js} +1 -1
  20. package/dist/{index-Dse1Vzxp.js → index-CTWoVKkI.js} +3 -3
  21. package/dist/index-DvBq8FZH.js +47 -0
  22. package/dist/{index-BI8e-rBi.js → index-dVGYvcJH.js} +1 -1
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js → index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js} +1 -1
  24. package/dist/package.json +2 -2
  25. package/dist/{payout-account-BHfPuvHs.js → payout-account-CgvGA6_e.js} +156 -156
  26. package/dist/{transaction-tPLgGZ6z.js → transaction-LP1p6TuS.js} +1 -1
  27. package/dist/tsconfig.app.tsbuildinfo +1 -1
  28. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
  29. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -2
  30. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
  31. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
  32. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
  33. package/package.json +2 -2
  34. package/dist/TerminalSetting-DOA2yti9.js +0 -240
  35. package/dist/index-D8P4a4hn.js +0 -37
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, ref as P, reactive as k, computed as Z, watch as y, resolveComponent as i, openBlock as c, createBlock as Y, withCtx as X, createElementVNode as g, createVNode as u, unref as n, createCommentVNode as v, createElementBlock as p, normalizeClass as N, toDisplayString as R, h as W, onMounted as T, Fragment as L } from "vue";
2
- import { p as z } from "./index-CdC19Yvv.js";
3
- import { _ as I, u as S, e as h } from "./index-Dse1Vzxp.js";
2
+ import { p as z } from "./index-BvPakrCi.js";
3
+ import { _ as I, u as S, e as h } from "./index-CTWoVKkI.js";
4
4
  import { defineStore as _ } from "pinia";
5
5
  import { useCoreStore as $ } from "@feedmepos/mf-common";
6
- import { c as AA, P as j } from "./payout-account-BHfPuvHs.js";
6
+ import { c as AA, P as j } from "./payout-account-CgvGA6_e.js";
7
7
  import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
8
8
  import { z as f, a as q } from "./validator-D5jtpt9A.js";
9
9
  import { P as K } from "./PDFViewer-CjH_C1uT.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-CR0eMJfk.js";
3
- import { _ as O } from "./index-Dse1Vzxp.js";
2
+ import { u as S } from "./index-BYz1HdLk.js";
3
+ import { _ as O } from "./index-CTWoVKkI.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
5
- import { P as V } from "./payout-account-BHfPuvHs.js";
6
- import { p as D } from "./index-CdC19Yvv.js";
5
+ import { P as V } from "./payout-account-CgvGA6_e.js";
6
+ import { p as D } from "./index-BvPakrCi.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js";
9
9
  import { useRouter as $ } from "vue-router";
10
10
  const G = /* @__PURE__ */ b({
11
11
  __name: "Status",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, resolveComponent as y, openBlock as b, createElementBlock as G, Fragment as D, createElementVNode as i, createVNode as o, withCtx as w, createTextVNode as x, toDisplayString as S, createCommentVNode as U, createBlock as V, ref as C, watch as K, computed as E, unref as p, isRef as M, h as N, onMounted as O, resolveDynamicComponent as j, normalizeProps as z, mergeProps as H } from "vue";
2
- import { p as T } from "./index-CdC19Yvv.js";
3
- import { g as _, b as B, u as L } from "./index-Dse1Vzxp.js";
2
+ import { p as T } from "./index-BvPakrCi.js";
3
+ import { g as _, b as B, u as L } from "./index-CTWoVKkI.js";
4
4
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
5
5
  import { useRouter as J } from "vue-router";
6
- import { u as Q } from "./index-CR0eMJfk.js";
6
+ import { u as Q } from "./index-BYz1HdLk.js";
7
7
  import { P as q } from "./PDFViewer-CjH_C1uT.js";
8
8
  import { useSnackbar as X } from "@feedmepos/ui-library";
9
9
  import { u as Y } from "./error-K1CakhA9.js";
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, h as A, onMounted as k, watch as F, unref as n, withCtx as V, createElementVNode as p, createVNode as i, isRef as C } from "vue";
2
- import { u as $ } from "./index-Dse1Vzxp.js";
2
+ import { u as $ } from "./index-CTWoVKkI.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as b } from "@feedmepos/mf-common";
5
5
  import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
- import { s as g } from "./index-1GmRoAc1.js";
6
+ import { s as g } from "./index-BmrM-GfD.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as K } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
10
10
  import { useRouter as P } from "vue-router";
11
- import { u as O } from "./index-CR0eMJfk.js";
11
+ import { u as O } from "./index-BYz1HdLk.js";
12
12
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
14
14
  const L = /* @__PURE__ */ w({
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as w, ref as h, computed as S, resolveComponent as v, openBlock as x, createBlock as D, h as A, watch as k, onMounted as F, unref as o, withCtx as R, createElementVNode as u, createVNode as p, isRef as V } from "vue";
2
- import { u as b } from "./index-Dse1Vzxp.js";
2
+ import { u as b } from "./index-CTWoVKkI.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
- import { s as g } from "./index-1GmRoAc1.js";
4
+ import { s as g } from "./index-BmrM-GfD.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import { d as f } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as C } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
8
8
  import { useRouter as $ } from "vue-router";
9
9
  import { _ as I } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
10
- import { u as K } from "./index-CR0eMJfk.js";
10
+ import { u as K } from "./index-BYz1HdLk.js";
11
11
  import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  const B = /* @__PURE__ */ w({
13
13
  __name: "SettlementTable",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
- import { e as E, u as j } from "./index-Dse1Vzxp.js";
2
+ import { e as E, u as j } from "./index-CTWoVKkI.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as h } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-DKVuXT4S.js";
6
- import { t as q, a as J } from "./transaction-tPLgGZ6z.js";
5
+ import { g as Y, a as H } from "./assets-Bj5ToWoP.js";
6
+ import { t as q, a as J } from "./transaction-LP1p6TuS.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-1GmRoAc1.js";
9
+ import { s as X } from "./index-BmrM-GfD.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-Dse1Vzxp.js";
2
+ import { e as E, u as q } from "./index-CTWoVKkI.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X } from "./assets-DKVuXT4S.js";
6
- import { t as P, a as Z } from "./transaction-tPLgGZ6z.js";
5
+ import { g as W, a as X } from "./assets-Bj5ToWoP.js";
6
+ import { t as P, a as Z } from "./transaction-LP1p6TuS.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-1GmRoAc1.js";
9
+ import { s as ae } from "./index-BmrM-GfD.js";
10
10
  import { u as ne } from "./error-K1CakhA9.js";
11
11
  import { w as oe } from "./Modal-DB8M9o1T.js";
12
12
  const re = /* @__PURE__ */ w({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as x, openBlock as d, createElementBlock as I, createTextVNode as N, createElementVNode as h, toDisplayString as $, resolveComponent as m, createVNode as _, normalizeClass as R, withCtx as V, createBlock as g, createCommentVNode as B, ref as k, computed as z, unref as c, watch as Y, isRef as M, h as S } from "vue";
2
- import "./index-Dse1Vzxp.js";
2
+ import "./index-CTWoVKkI.js";
3
3
  import { h as j } from "./moment-h96o7c8I.js";
4
- import { u as L } from "./index-CR0eMJfk.js";
5
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js";
4
+ import { u as L } from "./index-BYz1HdLk.js";
5
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js";
6
6
  import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
7
  import { useSnackbar as U, useDialogChild as Q, useDialog as G } from "@feedmepos/ui-library";
8
- import { t as F } from "./index-D8P4a4hn.js";
8
+ import { t as F } from "./index-DvBq8FZH.js";
9
9
  import { c as H } from "./clipboard-4jh1WteU.js";
10
10
  import { u as D } from "./error-K1CakhA9.js";
11
11
  import { z as K, a as P } from "./validator-D5jtpt9A.js";
@@ -0,0 +1,259 @@
1
+ import { defineComponent as x, openBlock as w, createElementBlock as C, Fragment as L, createElementVNode as v, createTextVNode as q, toDisplayString as B, ref as y, onMounted as T, computed as _, resolveComponent as c, unref as I, createVNode as g, createBlock as k, withCtx as U, isRef as N, resolveDynamicComponent as P, normalizeProps as E, mergeProps as M, createCommentVNode as O } from "vue";
2
+ import { u as D } from "./index-CTWoVKkI.js";
3
+ import { useRouter as $ } from "vue-router";
4
+ import { t as b } from "./index-DvBq8FZH.js";
5
+ import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
+ import { u as A } from "./index-BYz1HdLk.js";
7
+ import { useSnackbar as G } from "@feedmepos/ui-library";
8
+ import { u as R } from "./error-K1CakhA9.js";
9
+ const z = /* @__PURE__ */ x({
10
+ __name: "Information",
11
+ props: {
12
+ terminal: {
13
+ type: Object,
14
+ required: !0
15
+ }
16
+ },
17
+ setup(t) {
18
+ return (i, e) => (w(), C(L, null, [
19
+ e[0] || (e[0] = v("b", null, "Name", -1)),
20
+ q(": " + B(t.terminal.name), 1),
21
+ e[1] || (e[1] = v("br", null, null, -1)),
22
+ e[2] || (e[2] = v("b", null, "Status", -1)),
23
+ q(": " + B(t.terminal.status), 1),
24
+ e[3] || (e[3] = v("br", null, null, -1)),
25
+ e[4] || (e[4] = v("b", null, "Device ID", -1)),
26
+ q(": " + B(t.terminal.deviceId ?? "-"), 1),
27
+ e[5] || (e[5] = v("br", null, null, -1))
28
+ ], 64));
29
+ }
30
+ }), Q = {
31
+ key: 0,
32
+ class: "flex items-center justify-center min-h-[80vh]"
33
+ }, H = /* @__PURE__ */ x({
34
+ __name: "TerminalGateway",
35
+ props: {
36
+ terminal: {
37
+ type: Object,
38
+ required: !0
39
+ },
40
+ onUpdate: {
41
+ type: Function,
42
+ required: !0
43
+ }
44
+ },
45
+ setup(t) {
46
+ const { isLoading: i, startAsyncCall: e } = D(), m = t, d = y();
47
+ async function o() {
48
+ e(async () => {
49
+ d.value = await b.getTerminals(m.terminal.referenceId);
50
+ });
51
+ }
52
+ T(o);
53
+ const s = y(), a = y(-1), l = y({
54
+ terminalId: ""
55
+ });
56
+ T(() => {
57
+ if (!m.terminal.gateways)
58
+ return;
59
+ const r = m.terminal.gateways.findIndex((n) => n && n.gateway && n.gateway === "Terminal");
60
+ if (r === -1)
61
+ return;
62
+ a.value = r;
63
+ const u = m.terminal.gateways.at(r);
64
+ u.gateway === "Terminal" && u.config && (l.value = {
65
+ terminalId: u.config.terminalId
66
+ });
67
+ });
68
+ const p = _(() => (d.value ?? []).map((r) => ({
69
+ label: r.name ?? r._id,
70
+ value: r._id
71
+ })));
72
+ return (r, u) => {
73
+ const n = c("FmCircularProgress"), f = c("FmSelect"), V = c("FmButton"), F = c("FmForm");
74
+ return I(i) ? (w(), C("div", Q, [
75
+ g(n, { size: "xxl" })
76
+ ])) : (w(), k(F, {
77
+ key: 1,
78
+ ref: s.value,
79
+ class: "flex flex-col gap-16 w-[500px]",
80
+ onValidationSuccess: u[1] || (u[1] = () => {
81
+ a.value > -1 ? t.terminal.gateways[a.value] = { gateway: "Terminal", config: l.value } : (t.terminal.gateways || (t.terminal.gateways = []), t.terminal.gateways.push({ gateway: "Terminal", config: l.value })), m.onUpdate(t.terminal);
82
+ })
83
+ }, {
84
+ default: U(() => [
85
+ g(f, {
86
+ modelValue: l.value.terminalId,
87
+ "onUpdate:modelValue": u[0] || (u[0] = (S) => l.value.terminalId = S),
88
+ label: "Terminal ID",
89
+ items: p.value
90
+ }, null, 8, ["modelValue", "items"]),
91
+ g(V, {
92
+ type: "submit",
93
+ label: "Save"
94
+ })
95
+ ]),
96
+ _: 1
97
+ }, 512));
98
+ };
99
+ }
100
+ }), J = /* @__PURE__ */ x({
101
+ __name: "FiuuGateway",
102
+ props: {
103
+ terminal: {
104
+ type: Object,
105
+ required: !0
106
+ },
107
+ onUpdate: {
108
+ type: Function,
109
+ required: !0
110
+ }
111
+ },
112
+ setup(t) {
113
+ const i = t, e = [
114
+ {
115
+ label: "Fiuu Malaysia",
116
+ value: "cc.feedme.payment.rms"
117
+ },
118
+ {
119
+ label: "Fiuu Malaysia V2",
120
+ value: "cc.feedme.payment.fiuu_my"
121
+ },
122
+ {
123
+ label: "Fiuu Singapore",
124
+ value: "cc.feedme.payment.fiuu_sg"
125
+ }
126
+ ], m = y(), d = y(-1), o = y({
127
+ packageId: "",
128
+ uniqueId: ""
129
+ });
130
+ return T(() => {
131
+ if (!i.terminal.gateways)
132
+ return;
133
+ const s = i.terminal.gateways.findIndex((l) => l && l.gateway && l.gateway === "Fiuu");
134
+ if (s === -1)
135
+ return;
136
+ d.value = s;
137
+ const a = i.terminal.gateways.at(s);
138
+ a.gateway === "Fiuu" && a.config && (o.value = {
139
+ packageId: a.config.packageId,
140
+ uniqueId: a.config.uniqueId
141
+ });
142
+ }), (s, a) => {
143
+ const l = c("FmSelect"), p = c("FmTextField"), r = c("FmButton"), u = c("FmForm");
144
+ return w(), k(u, {
145
+ ref: m.value,
146
+ class: "flex flex-col gap-16 w-[500px]",
147
+ onValidationSuccess: a[2] || (a[2] = () => {
148
+ d.value > -1 ? t.terminal.gateways[d.value] = { gateway: "Fiuu", config: o.value } : (t.terminal.gateways || (t.terminal.gateways = []), t.terminal.gateways.push({ gateway: "Fiuu", config: o.value })), i.onUpdate(t.terminal);
149
+ })
150
+ }, {
151
+ default: U(() => [
152
+ g(l, {
153
+ modelValue: o.value.packageId,
154
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => o.value.packageId = n),
155
+ label: "Package ID",
156
+ items: e
157
+ }, null, 8, ["modelValue"]),
158
+ g(p, {
159
+ modelValue: o.value.uniqueId,
160
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => o.value.uniqueId = n),
161
+ label: "Unique ID"
162
+ }, null, 8, ["modelValue"]),
163
+ g(r, {
164
+ type: "submit",
165
+ label: "Save"
166
+ })
167
+ ]),
168
+ _: 1
169
+ }, 512);
170
+ };
171
+ }
172
+ }), te = /* @__PURE__ */ x({
173
+ __name: "TerminalSetting",
174
+ props: {
175
+ terminalId: {
176
+ type: String,
177
+ required: !0
178
+ }
179
+ },
180
+ setup(t) {
181
+ const i = t, { tab: e } = A({
182
+ tab: "information"
183
+ }), { isLoading: m, startAsyncCall: d } = D(!0), o = $(), s = G(), a = y();
184
+ async function l(n) {
185
+ try {
186
+ await b.updateById(
187
+ i.terminalId,
188
+ {
189
+ name: n.name,
190
+ status: n.status,
191
+ gateways: n.gateways ?? []
192
+ }
193
+ ), a.value = await b.readById(i.terminalId), s.open({
194
+ type: "success",
195
+ message: "Terminal updated successfully"
196
+ });
197
+ } catch (f) {
198
+ s.open({
199
+ type: "error",
200
+ title: "Error occurs when update terminal",
201
+ message: R(f)
202
+ });
203
+ }
204
+ }
205
+ const p = [
206
+ {
207
+ label: "Information",
208
+ value: "information",
209
+ icon: "overview",
210
+ render: z
211
+ },
212
+ {
213
+ label: "Fiuu",
214
+ value: "fiuu",
215
+ icon: "payment",
216
+ render: J
217
+ }
218
+ ], r = _(() => {
219
+ var n;
220
+ return (n = p.find((f) => f.value === e.value)) == null ? void 0 : n.render;
221
+ });
222
+ async function u() {
223
+ d(async () => {
224
+ a.value = await b.readById(i.terminalId), a.value.deviceType !== "TERMINAL" && p.push({
225
+ label: "Terminal",
226
+ value: "terminal",
227
+ icon: "shopping_cart_checkout",
228
+ render: H
229
+ });
230
+ });
231
+ }
232
+ return T(u), (n, f) => {
233
+ var F;
234
+ const V = c("FmTabs");
235
+ return w(), k(j, {
236
+ title: `Terminal (${(F = a.value) == null ? void 0 : F._id})`,
237
+ loading: I(m),
238
+ onBack: I(o).back
239
+ }, {
240
+ default: U(() => [
241
+ g(V, {
242
+ "model-value": I(e),
243
+ "onUpdate:modelValue": f[0] || (f[0] = (S) => N(e) ? e.value = S : null),
244
+ class: "mb-6",
245
+ items: p
246
+ }, null, 8, ["model-value"]),
247
+ I(e) ? (w(), k(P(r.value), E(M({ key: 0 }, {
248
+ terminal: a.value,
249
+ onUpdate: l
250
+ })), null, 16)) : O("", !0)
251
+ ]),
252
+ _: 1
253
+ }, 8, ["title", "loading", "onBack"]);
254
+ };
255
+ }
256
+ });
257
+ export {
258
+ te as default
259
+ };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as h, openBlock as N, createElementBlock as F, unref as r, resolveComponent as d, createBlock as y, normalizeClass as b, withCtx as R, createElementVNode as _, toDisplayString as D, ref as V, watch as A, createVNode as i, isRef as T, h as g } from "vue";
2
- import { c as s } from "./index-Dse1Vzxp.js";
2
+ import { c as s } from "./index-CTWoVKkI.js";
3
3
  import { h as I } from "./moment-h96o7c8I.js";
4
- import { u as k } from "./index-CR0eMJfk.js";
5
- import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js";
4
+ import { u as k } from "./index-BYz1HdLk.js";
5
+ import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js";
6
6
  import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
7
  import "@feedmepos/ui-library";
8
- import { g as $ } from "./assets-DKVuXT4S.js";
9
- import { t as w } from "./index-BI8e-rBi.js";
8
+ import { g as $ } from "./assets-Bj5ToWoP.js";
9
+ import { t as w } from "./index-dVGYvcJH.js";
10
10
  import { d as L } from "./dinero-CIVmXLL-.js";
11
11
  import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
12
12
  import { useCoreStore as P } from "@feedmepos/mf-common";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as g, openBlock as I, createElementBlock as v, unref as r, resolveComponent as u, createBlock as w, normalizeClass as F, withCtx as y, createElementVNode as _, toDisplayString as b, ref as D, watch as N, createVNode as i, isRef as f, h as A } from "vue";
2
- import { c as s } from "./index-Dse1Vzxp.js";
2
+ import { c as s } from "./index-CTWoVKkI.js";
3
3
  import { h as T } from "./moment-h96o7c8I.js";
4
- import { u as V } from "./index-CR0eMJfk.js";
5
- import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js";
4
+ import { u as V } from "./index-BYz1HdLk.js";
5
+ import { _ as k } from "./index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js";
6
6
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
7
  import "@feedmepos/ui-library";
8
- import { g as M } from "./assets-DKVuXT4S.js";
9
- import { t as x } from "./index-BI8e-rBi.js";
8
+ import { g as M } from "./assets-Bj5ToWoP.js";
9
+ import { t as x } from "./index-dVGYvcJH.js";
10
10
  import { d as L } from "./dinero-CIVmXLL-.js";
11
11
  import { _ as $ } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as _, resolveComponent as T, openBlock as f, createBlock as N, normalizeClass as k, withCtx as R, createElementVNode as y, toDisplayString as K, createElementBlock as D, unref as o, ref as A, h as x, onMounted as V, watch as E, createVNode as p, isRef as F } from "vue";
2
- import { t as I, a as C } from "./transaction-tPLgGZ6z.js";
3
- import { e as S, u as P } from "./index-Dse1Vzxp.js";
2
+ import { t as I, a as C } from "./transaction-LP1p6TuS.js";
3
+ import { e as S, u as P } from "./index-CTWoVKkI.js";
4
4
  import { useSnackbar as $ } from "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as b } from "./moment-h96o7c8I.js";
7
- import { g as L, a as B } from "./assets-DKVuXT4S.js";
7
+ import { g as L, a as B } from "./assets-Bj5ToWoP.js";
8
8
  import { useCoreStore as M } from "@feedmepos/mf-common";
9
9
  import { _ as U } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
10
- import { u as G } from "./index-CR0eMJfk.js";
10
+ import { u as G } from "./index-BYz1HdLk.js";
11
11
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
13
  const J = /* @__PURE__ */ _({
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as p, resolveComponent as T, openBlock as _, createBlock as A, normalizeClass as O, withCtx as I, createElementVNode as y, toDisplayString as R, createElementBlock as b, unref as r, ref as S, h as g, onMounted as V, watch as K, createVNode as h, isRef as N } from "vue";
2
- import { t as E, a as k } from "./transaction-tPLgGZ6z.js";
3
- import { e as v, u as C } from "./index-Dse1Vzxp.js";
2
+ import { t as E, a as k } from "./transaction-LP1p6TuS.js";
3
+ import { e as v, u as C } from "./index-CTWoVKkI.js";
4
4
  import "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as F } from "./moment-h96o7c8I.js";
7
- import { g as P, a as $ } from "./assets-DKVuXT4S.js";
7
+ import { g as P, a as $ } from "./assets-Bj5ToWoP.js";
8
8
  import { _ as L } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
9
9
  import "@feedmepos/mf-common";
10
- import { u as B } from "./index-CR0eMJfk.js";
10
+ import { u as B } from "./index-BYz1HdLk.js";
11
11
  import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
12
12
  import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  const G = /* @__PURE__ */ p({
@@ -14,4 +14,8 @@ export declare const temrinalApi: {
14
14
  updateById(id: string, payload: UpdateTerminalByIdDto): Promise<FdoTerminal>;
15
15
  getBindCode(id: string): Promise<string>;
16
16
  unbind(id: string): Promise<any>;
17
+ /**
18
+ * Relying on the payout account so need pass in the restaurant id from the payout account
19
+ */
20
+ getTerminals(restaurantId: string): Promise<FdoTerminal[]>;
17
21
  };
package/dist/app.js CHANGED
@@ -9,13 +9,13 @@ const f = [
9
9
  meta: {
10
10
  sidebarDisplay: "Payout Accounts"
11
11
  },
12
- component: () => import("./PayoutAccount-ka6Aj3dZ.js")
12
+ component: () => import("./PayoutAccount-DhS_swJU.js")
13
13
  },
14
14
  {
15
15
  path: "/admin/payout-accounts/:accountId",
16
16
  name: "mf-payment-admin.payout-account-settings",
17
17
  props: !0,
18
- component: () => import("./PayoutAccountSetting-BMK0lEkA.js")
18
+ component: () => import("./PayoutAccountSetting-B0WUvW2T.js")
19
19
  },
20
20
  {
21
21
  path: "/admin/transaction",
@@ -23,7 +23,7 @@ const f = [
23
23
  meta: {
24
24
  sidebarDisplay: "Transactions"
25
25
  },
26
- component: () => import("./Transaction-qdl0CHSg.js")
26
+ component: () => import("./Transaction-sG5VLrZG.js")
27
27
  },
28
28
  {
29
29
  path: "/admin/settlement",
@@ -31,13 +31,13 @@ const f = [
31
31
  meta: {
32
32
  sidebarDisplay: "Settlements"
33
33
  },
34
- component: () => import("./Settlement-BbcLipkK.js")
34
+ component: () => import("./Settlement-DL852BAW.js")
35
35
  },
36
36
  {
37
37
  path: "/admin/settlement/:settlementId",
38
38
  name: "mf-payment-admin.settlement-transaction",
39
39
  props: !0,
40
- component: () => import("./SettlementTransactions-Dj-9ol4g.js")
40
+ component: () => import("./SettlementTransactions-Bns4JiYa.js")
41
41
  },
42
42
  {
43
43
  path: "/admin/terminal",
@@ -45,13 +45,13 @@ const f = [
45
45
  meta: {
46
46
  sidebarDisplay: "Terminals"
47
47
  },
48
- component: () => import("./Terminal-BhpnHoj_.js")
48
+ component: () => import("./Terminal-BJfw9jQn.js")
49
49
  },
50
50
  {
51
51
  path: "/admin/terminal/:terminalId",
52
52
  name: "mf-payment-admin.terminal-setting",
53
53
  props: !0,
54
- component: () => import("./TerminalSetting-DOA2yti9.js")
54
+ component: () => import("./TerminalSetting-ByALrF_k.js")
55
55
  },
56
56
  {
57
57
  path: "/admin/terminal-transaction",
@@ -59,7 +59,7 @@ const f = [
59
59
  meta: {
60
60
  sidebarDisplay: "Terminal Transactions"
61
61
  },
62
- component: () => import("./TerminalTransaction-BGVuNPnK.js")
62
+ component: () => import("./TerminalTransaction-F3kzj60e.js")
63
63
  }
64
64
  ], y = [
65
65
  {
@@ -69,7 +69,7 @@ const f = [
69
69
  {
70
70
  path: "/payout-account",
71
71
  name: "mf-payment-payout-account",
72
- component: () => import("./PayoutAccount-DLx1vtHX.js"),
72
+ component: () => import("./PayoutAccount-B_q3YWPn.js"),
73
73
  meta: {
74
74
  sidebarDisplay: "Payout Accounts"
75
75
  }
@@ -77,7 +77,7 @@ const f = [
77
77
  {
78
78
  path: "/transaction",
79
79
  name: "mf-payment-transaction",
80
- component: () => import("./Transaction-BTW34WyR.js"),
80
+ component: () => import("./Transaction-BV3f9JLh.js"),
81
81
  meta: {
82
82
  sidebarDisplay: "Transactions"
83
83
  }
@@ -85,7 +85,7 @@ const f = [
85
85
  {
86
86
  path: "/settlement",
87
87
  name: "mf-payment-settlement",
88
- component: () => import("./Settlement-DJ5zBwg1.js"),
88
+ component: () => import("./Settlement-BfzE6GRq.js"),
89
89
  meta: {
90
90
  sidebarDisplay: "Settlements"
91
91
  }
@@ -94,7 +94,7 @@ const f = [
94
94
  path: "/settlement/:settlementId",
95
95
  name: "mf-payment-settlement-transaction",
96
96
  props: !0,
97
- component: () => import("./SettlementTransactions-DiJ0UH3a.js")
97
+ component: () => import("./SettlementTransactions-B-PmdVmd.js")
98
98
  },
99
99
  {
100
100
  path: "/terminal-tranasction",
@@ -102,7 +102,7 @@ const f = [
102
102
  meta: {
103
103
  sidebarDisplay: "Terminal Transactions"
104
104
  },
105
- component: () => import("./TerminalTransaction-vQZGUaOJ.js")
105
+ component: () => import("./TerminalTransaction-DuVyCu0j.js")
106
106
  }
107
107
  ], A = P("iframe", () => {
108
108
  const o = {