@feedmepos/mf-payment 1.0.0 → 1.0.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.
Files changed (98) hide show
  1. package/README.md +11 -1
  2. package/dist/{AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js → AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js} +8 -9
  3. package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
  4. package/dist/PDFViewer-xrBtzrlR.js +22426 -0
  5. package/dist/{PayoutAccount-Dc1CYQ0W.js → PayoutAccount-Bxz83we4.js} +93 -83
  6. package/dist/{PayoutAccount-DZaKHWcy.js → PayoutAccount-DLxO15Kf.js} +259 -258
  7. package/dist/{PayoutAccountSetting-BzmNuLFj.js → PayoutAccountSetting-C1yeSNv8.js} +161 -183
  8. package/dist/Restaurant-B02jty0J.js +262 -0
  9. package/dist/RestaurantSetting-CWZAKz1A.js +389 -0
  10. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
  11. package/dist/Settlement-CAHgJIuH.js +145 -0
  12. package/dist/{Settlement-Bx3zAkIw.js → Settlement-D8nayzFt.js} +41 -43
  13. package/dist/{SettlementTransactions-D_SVuKyR.js → SettlementTransactions-DfXEf1fm.js} +10 -10
  14. package/dist/{SettlementTransactions-AaYyTH96.js → SettlementTransactions-JJyQEOMw.js} +41 -41
  15. package/dist/{Terminal-68OQnhM3.js → Terminal-DX8v8WpM.js} +117 -103
  16. package/dist/TerminalSetting-qklmRz3H.js +387 -0
  17. package/dist/TerminalTransaction-BjwvTbGu.js +261 -0
  18. package/dist/TerminalTransaction-D-mJRP0T.js +485 -0
  19. package/dist/Transaction-CZkNzH-m.js +238 -0
  20. package/dist/{Transaction-a1VfiCP_.js → Transaction-CvrsRuuz.js} +125 -127
  21. package/dist/api/restaurant/index.d.ts +6 -0
  22. package/dist/{app-C9FRsUfb.js → app-FuKCNfJl.js} +174 -144
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-Bji7O2YD.js → assets-DjRoCcqv.js} +22 -21
  25. package/dist/components/AdminLayout.vue.d.ts +8 -13
  26. package/dist/components/AutoCopyCell.vue.d.ts +3 -4
  27. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  28. package/dist/components/Layout.vue.d.ts +8 -13
  29. package/dist/components/PDFViewer.vue.d.ts +1 -1
  30. package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
  31. package/dist/components/PagingTable/index.vue.d.ts +48 -0
  32. package/dist/components/RouteCell.vue.d.ts +5 -6
  33. package/dist/components/SelectAll.vue.d.ts +57 -0
  34. package/dist/helpers/idToDate.d.ts +1 -1
  35. package/dist/index-BEFlDEyV.js +28 -0
  36. package/dist/index-BWFqxSU3.js +19 -0
  37. package/dist/{index-DjDGwRX8.js → index-BerQZMQW.js} +1 -1
  38. package/dist/{index-DSuZG0l6.js → index-CFjLufVa.js} +1 -1
  39. package/dist/{index-_0TroOJr.js → index-CTSM9lSC.js} +1 -1
  40. package/dist/{index-DBfZnaV1.js → index-CWGSYCJG.js} +1 -1
  41. package/dist/{index-CLYePgWW.js → index-DFePh4ct.js} +1 -1
  42. package/dist/{index-Bt_OgDYn.js → index-Dj_LwPBy.js} +32176 -32166
  43. package/dist/{index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +64 -61
  44. package/dist/package.json +2 -2
  45. package/dist/{payout-account-BWcq7OJy.js → payout-account-YJZlBDSF.js} +2 -2
  46. package/dist/router/index.d.ts +1 -0
  47. package/dist/stores/iframe.d.ts +1 -1
  48. package/dist/stores/payoutAccount.d.ts +1 -1
  49. package/dist/{transaction-DqrhM5jB.js → transaction-CIYqsLqc.js} +26 -16
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
  52. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
  53. package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  54. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
  55. package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
  56. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
  57. package/dist/views/admin/restaurant/Restaurant.vue.d.ts +2 -0
  58. package/dist/views/admin/restaurant/RestaurantSetting.vue.d.ts +12 -0
  59. package/dist/views/admin/restaurant/cell/IsActive.vue.d.ts +7 -0
  60. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +803 -0
  61. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  62. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  63. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  64. package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
  65. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
  66. package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
  67. package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
  68. package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
  69. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
  70. package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
  71. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
  72. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  73. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
  74. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +7 -0
  75. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
  76. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
  77. package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
  78. package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
  79. package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
  80. package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
  81. package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  82. package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
  83. package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
  84. package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
  85. package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
  86. package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
  87. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  88. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
  89. package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
  90. package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
  91. package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
  92. package/package.json +2 -2
  93. package/dist/PDFViewer-CjH_C1uT.js +0 -21792
  94. package/dist/Settlement-mwnO-iYH.js +0 -150
  95. package/dist/TerminalSetting-DEFim0xg.js +0 -379
  96. package/dist/TerminalTransaction-CQjNdffr.js +0 -426
  97. package/dist/TerminalTransaction-ClihmWOJ.js +0 -250
  98. package/dist/Transaction-68L7JzIk.js +0 -242
@@ -1,18 +1,18 @@
1
- import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as L, createElementVNode as h, toDisplayString as U, resolveComponent as p, createVNode as v, normalizeClass as O, withCtx as V, createBlock as g, createCommentVNode as I, ref as k, computed as z, unref as c, watch as D, isRef as K, h as E } from "vue";
2
- import "./index-Bt_OgDYn.js";
3
- import { h as Y } from "./moment-h96o7c8I.js";
4
- import { u as j } from "./index-DjDGwRX8.js";
5
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js";
6
- import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
- import { useSnackbar as $, useDialogChild as G, useDialog as H } from "@feedmepos/ui-library";
8
- import { t as A } from "./index-CLYePgWW.js";
9
- import { c as J } from "./clipboard-4jh1WteU.js";
1
+ import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as O, createElementVNode as h, toDisplayString as $, resolveComponent as p, createVNode as y, normalizeClass as z, withCtx as V, createBlock as g, createCommentVNode as F, ref as k, computed as Y, unref as c, watch as K, isRef as P, h as E } from "vue";
2
+ import "./index-Dj_LwPBy.js";
3
+ import { h as j } from "./moment-h96o7c8I.js";
4
+ import { u as q } from "./index-BerQZMQW.js";
5
+ import { _ as Q } from "./index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js";
6
+ import { _ as G } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
+ import { useSnackbar as D, useDialogChild as H, useDialog as J } from "@feedmepos/ui-library";
8
+ import { t as A } from "./index-DFePh4ct.js";
9
+ import { c as M } from "./clipboard-4jh1WteU.js";
10
10
  import { u as N } from "./error-K1CakhA9.js";
11
- import { z as P, a as R } from "./validator-D5jtpt9A.js";
11
+ import { z as R, a as U } from "./validator-D5jtpt9A.js";
12
12
  import { useCoreStore as W } from "@feedmepos/mf-common";
13
13
  import { w as X } from "./Modal-DB8M9o1T.js";
14
14
  import { useRouter as Z } from "vue-router";
15
- const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne = /* @__PURE__ */ x({
15
+ const ee = { class: "t-caption" }, te = /* @__PURE__ */ x({
16
16
  __name: "TerminalBindCodeDialog",
17
17
  props: {
18
18
  code: {
@@ -20,131 +20,145 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
20
20
  required: !0
21
21
  }
22
22
  },
23
- setup(y) {
24
- return (n, o) => (f(), B("div", ee, [
25
- o[0] || (o[0] = L(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
26
- h("div", te, U(y.code), 1)
23
+ setup(v) {
24
+ const n = v, a = D();
25
+ function r() {
26
+ try {
27
+ M(n.code), a.open({ title: "Text copied to clipboard." }, 1e3);
28
+ } catch {
29
+ a.open({ title: "Clipboard API incompatible." }, 1e3);
30
+ }
31
+ }
32
+ return (i, l) => (f(), B("div", ee, [
33
+ l[1] || (l[1] = O(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
34
+ h("div", {
35
+ class: "my-6 text-center fm-typo-en-title-md-800 tracking-[0.3rem] cursor-pointer hover:text-fm-color-neutral-gray-300",
36
+ onClick: l[0] || (l[0] = (o) => {
37
+ o.stopPropagation(), r();
38
+ })
39
+ }, $(v.code), 1)
27
40
  ]));
28
41
  }
29
- }), oe = /* @__PURE__ */ x({
42
+ }), ne = /* @__PURE__ */ x({
30
43
  __name: "ID",
31
44
  props: {
32
45
  row: {},
33
46
  data: {}
34
47
  },
35
- setup(y) {
36
- const n = y, o = $();
48
+ setup(v) {
49
+ const n = v, a = D();
37
50
  function r() {
38
51
  return n.row.original.status === "Active" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
39
52
  }
40
- function l() {
53
+ function i() {
41
54
  try {
42
- J(n.data), o.open({ title: "Text copied to clipboard." }, 1e3);
55
+ M(n.data), a.open({ title: "Text copied to clipboard." }, 1e3);
43
56
  } catch {
44
- o.open({ title: "Clipboard API incompatible." }, 1e3);
57
+ a.open({ title: "Clipboard API incompatible." }, 1e3);
45
58
  }
46
59
  n.data;
47
60
  }
48
- return (s, a) => {
61
+ return (l, o) => {
49
62
  const d = p("FmBadge");
50
63
  return f(), B("div", {
51
- onClick: a[0] || (a[0] = (_) => {
52
- _.stopPropagation(), l();
64
+ onClick: o[0] || (o[0] = (_) => {
65
+ _.stopPropagation(), i();
53
66
  })
54
67
  }, [
55
- v(d, {
68
+ y(d, {
56
69
  inline: "",
57
- class: O(r())
70
+ class: z(r())
58
71
  }, {
59
72
  default: V(() => [
60
- h("div", null, U(s.data), 1)
73
+ h("div", null, $(l.data), 1)
61
74
  ]),
62
75
  _: 1
63
76
  }, 8, ["class"])
64
77
  ]);
65
78
  };
66
79
  }
67
- }), ae = { class: "flex" }, re = /* @__PURE__ */ x({
80
+ }), oe = { class: "flex" }, ae = /* @__PURE__ */ x({
68
81
  __name: "Actions",
69
82
  props: {
70
83
  data: {}
71
84
  },
72
85
  emits: ["link", "unlink", "edit"],
73
- setup(y, { emit: n }) {
74
- const o = n;
75
- return (r, l) => {
76
- const s = p("FmButton");
77
- return f(), B("div", ae, [
78
- r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(s, {
86
+ setup(v, { emit: n }) {
87
+ const a = n;
88
+ return (r, i) => {
89
+ const l = p("FmButton");
90
+ return f(), B("div", oe, [
91
+ r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(l, {
79
92
  key: 0,
80
93
  variant: "plain",
81
94
  "prepend-icon": "link",
82
- onClick: l[0] || (l[0] = (a) => {
83
- a.stopPropagation(), o("link");
95
+ onClick: i[0] || (i[0] = (o) => {
96
+ o.stopPropagation(), a("link");
84
97
  })
85
- })) : I("", !0),
86
- r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(s, {
98
+ })) : F("", !0),
99
+ r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(l, {
87
100
  key: 1,
88
101
  variant: "plain",
89
102
  "prepend-icon": "link_off",
90
- onClick: l[1] || (l[1] = (a) => {
91
- a.stopPropagation(), o("unlink");
103
+ onClick: i[1] || (i[1] = (o) => {
104
+ o.stopPropagation(), a("unlink");
92
105
  })
93
- })) : I("", !0),
94
- v(s, {
106
+ })) : F("", !0),
107
+ y(l, {
95
108
  variant: "plain",
96
109
  "prepend-icon": "edit",
97
- onClick: l[2] || (l[2] = (a) => {
98
- a.stopPropagation(), o("edit");
110
+ onClick: i[2] || (i[2] = (o) => {
111
+ o.stopPropagation(), a("edit");
99
112
  })
100
113
  })
101
114
  ]);
102
115
  };
103
116
  }
104
- }), le = /* @__PURE__ */ x({
117
+ }), re = /* @__PURE__ */ x({
105
118
  __name: "TerminalDialog",
106
119
  props: {
107
120
  terminal: {
108
121
  type: Object
109
122
  }
110
123
  },
111
- setup(y) {
112
- var w, T, F;
113
- const n = y, o = W(), r = G(), l = k(), s = k((w = n.terminal) == null ? void 0 : w.name), a = k((T = n.terminal) == null ? void 0 : T.referenceId), d = k(((F = n.terminal) == null ? void 0 : F.status) === "Active"), _ = z(() => o.restaurants.value.map((b) => ({
114
- label: b.profile.name,
115
- value: b._id
124
+ setup(v) {
125
+ var w, b, I;
126
+ const n = v, a = W(), r = H(), i = k(), l = k((w = n.terminal) == null ? void 0 : w.name), o = k((b = n.terminal) == null ? void 0 : b.referenceId), d = k(((I = n.terminal) == null ? void 0 : I.status) === "Active"), _ = Y(() => a.restaurants.value.map((T) => ({
127
+ label: T.profile.name,
128
+ value: T._id
116
129
  })));
117
- return (b, u) => {
130
+ return (T, u) => {
118
131
  const e = p("FmSelect"), t = p("FmTextField"), m = p("FmSwitch"), C = p("FmButton"), S = p("FmForm");
119
132
  return f(), g(S, {
120
- ref: l.value,
133
+ ref: i.value,
121
134
  class: "flex flex-col gap-16 mb-6",
122
135
  onValidationSuccess: u[3] || (u[3] = () => {
123
- c(r).emitData({ name: s.value, referenceId: a.value, status: d.value ? "Active" : "Inactive" }), c(r).emitAction("primary");
136
+ c(r).emitData({ name: l.value, referenceId: o.value, status: d.value ? "Active" : "Inactive" }), c(r).emitAction("primary");
124
137
  })
125
138
  }, {
126
139
  default: V(() => [
127
- n.terminal ? I("", !0) : (f(), g(e, {
140
+ n.terminal ? F("", !0) : (f(), g(e, {
128
141
  key: 0,
129
- modelValue: a.value,
130
- "onUpdate:modelValue": u[0] || (u[0] = (i) => a.value = i),
142
+ modelValue: o.value,
143
+ "onUpdate:modelValue": u[0] || (u[0] = (s) => o.value = s),
131
144
  label: "Restaurant",
145
+ "helper-text": "If you can't find the restaurant please change the business to the restaurant's business.",
132
146
  items: _.value,
133
- rules: c(P)(c(R).string())
147
+ rules: c(R)(c(U).string())
134
148
  }, null, 8, ["modelValue", "items", "rules"])),
135
- v(t, {
136
- modelValue: s.value,
137
- "onUpdate:modelValue": u[1] || (u[1] = (i) => s.value = i),
149
+ y(t, {
150
+ modelValue: l.value,
151
+ "onUpdate:modelValue": u[1] || (u[1] = (s) => l.value = s),
138
152
  label: "Terminal Name",
139
- rules: c(P)(c(R).string())
153
+ rules: c(R)(c(U).string())
140
154
  }, null, 8, ["modelValue", "rules"]),
141
155
  n.terminal ? (f(), g(m, {
142
156
  key: 1,
143
157
  modelValue: d.value,
144
- "onUpdate:modelValue": u[2] || (u[2] = (i) => d.value = i),
158
+ "onUpdate:modelValue": u[2] || (u[2] = (s) => d.value = s),
145
159
  label: "Status"
146
- }, null, 8, ["modelValue"])) : I("", !0),
147
- v(C, {
160
+ }, null, 8, ["modelValue"])) : F("", !0),
161
+ y(C, {
148
162
  type: "submit",
149
163
  label: "Create"
150
164
  })
@@ -153,20 +167,20 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
153
167
  }, 512);
154
168
  };
155
169
  }
156
- }), ie = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" }, ce = { class: "flex space-x-4" }, xe = /* @__PURE__ */ x({
170
+ }), le = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, se = { class: "flex space-x-4" }, he = /* @__PURE__ */ x({
157
171
  __name: "Terminal",
158
- setup(y) {
159
- const n = k(), { searchKey: o, deviceType: r } = j({
172
+ setup(v) {
173
+ const n = k(), { searchKey: a, deviceType: r } = q({
160
174
  searchKey: "",
161
175
  deviceType: void 0
162
176
  });
163
- D(r, () => {
177
+ K(r, () => {
164
178
  var e;
165
179
  return (e = n.value) == null ? void 0 : e.reset();
166
180
  });
167
- let l;
168
- D(o, async () => {
169
- l && clearTimeout(l), l = setTimeout(
181
+ let i;
182
+ K(a, async () => {
183
+ i && clearTimeout(i), i = setTimeout(
170
184
  () => {
171
185
  var e;
172
186
  return (e = n.value) == null ? void 0 : e.reset();
@@ -174,10 +188,10 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
174
188
  700
175
189
  );
176
190
  });
177
- const s = Z(), a = H(), d = $();
191
+ const l = Z(), o = J(), d = D();
178
192
  async function _(e) {
179
193
  X(
180
- a,
194
+ o,
181
195
  "Terminal Unbind",
182
196
  "Are you sure to unbind terminal from device? This action cannot be revert and device will be logged out!",
183
197
  async () => {
@@ -199,24 +213,24 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
199
213
  }
200
214
  async function w(e) {
201
215
  const t = await A.getBindCode(e);
202
- a.open({
216
+ o.open({
203
217
  title: "Terminal Bind Code",
204
218
  closeButton: !0,
205
219
  overlay: !0,
206
- contentComponent: ne,
220
+ contentComponent: te,
207
221
  contentComponentProps: { code: t }
208
222
  });
209
223
  }
210
- async function T(e) {
211
- a.open({
224
+ async function b(e) {
225
+ o.open({
212
226
  title: e ? "Update Terminal" : "Create New Terminal",
213
227
  closeButton: !0,
214
228
  overlay: !0,
215
- contentComponent: le,
229
+ contentComponent: re,
216
230
  contentComponentProps: { terminal: e }
217
231
  }).onPrimary(async (t) => {
218
232
  var m;
219
- a.close();
233
+ o.close();
220
234
  try {
221
235
  await A.create(t), (m = n.value) == null || m.reset(), d.open({
222
236
  type: "success",
@@ -231,7 +245,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
231
245
  }
232
246
  });
233
247
  }
234
- const F = function(e) {
248
+ const I = function(e) {
235
249
  return {
236
250
  id: e._id,
237
251
  status: e.status,
@@ -239,16 +253,16 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
239
253
  name: e.name,
240
254
  deviceId: e.deviceId,
241
255
  deviceType: e.deviceType,
242
- updatedAt: Y(e.updatedAt).format("YYYY-MM-DD hh:mm:ss")
256
+ updatedAt: j(e.updatedAt).format("YYYY-MM-DD hh:mm:ss")
243
257
  };
244
- }, b = [
258
+ }, T = [
245
259
  {
246
260
  accessorKey: "id",
247
261
  header: () => "Terminal ID",
248
262
  meta: {
249
263
  textAlign: "right"
250
264
  },
251
- cell: ({ cell: e, row: t }) => E(oe, { row: t, data: e.getValue() })
265
+ cell: ({ cell: e, row: t }) => E(ne, { row: t, data: e.getValue() })
252
266
  },
253
267
  {
254
268
  accessorKey: "deviceType",
@@ -294,11 +308,11 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
294
308
  cell: ({ row: e }) => {
295
309
  var m;
296
310
  const t = (m = n.value) == null ? void 0 : m.pageData().at(e.index);
297
- return E(re, {
311
+ return E(ae, {
298
312
  data: t,
299
313
  onLink: () => w(t._id),
300
314
  onUnlink: () => _(t._id),
301
- onEdit: () => T(t)
315
+ onEdit: () => b(t)
302
316
  });
303
317
  }
304
318
  }
@@ -318,46 +332,46 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
318
332
  ];
319
333
  return (e, t) => {
320
334
  const m = p("FmSearch"), C = p("FmSelect"), S = p("FmButton");
321
- return f(), g(Q, {
335
+ return f(), g(G, {
322
336
  title: "Terminals",
323
337
  loading: !1
324
338
  }, {
325
339
  default: V(() => [
326
- h("div", ie, [
327
- h("div", se, [
328
- v(m, {
329
- "model-value": c(o),
330
- "onUpdate:modelValue": t[0] || (t[0] = (i) => K(o) ? o.value = i : null),
340
+ h("div", le, [
341
+ h("div", ie, [
342
+ y(m, {
343
+ "model-value": c(a),
344
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => P(a) ? a.value = s : null),
331
345
  class: "mr-8",
332
346
  label: "Search",
333
347
  placeholder: "Search Terminals ..."
334
348
  }, null, 8, ["model-value"]),
335
- v(C, {
349
+ y(C, {
336
350
  modelValue: c(r),
337
- "onUpdate:modelValue": t[1] || (t[1] = (i) => K(r) ? r.value = i : null),
351
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => P(r) ? r.value = s : null),
338
352
  class: "ml-6 w-[180px]",
339
353
  label: "Device",
340
354
  items: u
341
355
  }, null, 8, ["modelValue"])
342
356
  ]),
343
- h("div", ce, [
344
- v(S, {
357
+ h("div", se, [
358
+ y(S, {
345
359
  label: "Create",
346
360
  icon: "add",
347
- onClick: t[2] || (t[2] = () => T())
361
+ onClick: t[2] || (t[2] = () => b())
348
362
  })
349
363
  ])
350
364
  ]),
351
- v(q, {
365
+ y(Q, {
352
366
  ref_key: "controller",
353
367
  ref: n,
354
- "column-defs": b,
355
- "rows-defs": F,
356
- paginate: (i, M) => c(A).read({ searchKey: c(o), deviceType: c(r), limit: i, cursor: M }),
357
- onRowClick: t[3] || (t[3] = (i) => c(s).push({
368
+ "column-defs": T,
369
+ "rows-defs": I,
370
+ paginate: (s, L) => c(A).read({ searchKey: c(a), deviceType: c(r), limit: s, cursor: L }),
371
+ onRowClick: t[3] || (t[3] = (s) => c(l).push({
358
372
  name: "mf-payment-admin.terminal-setting",
359
373
  params: {
360
- terminalId: i._id
374
+ terminalId: s._id
361
375
  }
362
376
  }))
363
377
  }, null, 8, ["paginate"])
@@ -368,5 +382,5 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
368
382
  }
369
383
  });
370
384
  export {
371
- xe as default
385
+ he as default
372
386
  };