@feedmepos/mf-payment 1.9.4-dev → 1.9.5-dev

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 (75) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CkECWfJH.js → Actions.vue_vue_type_script_setup_true_lang-D9eFw5GT.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BO0JN_rh.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-tqt-P5jM.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Bnn4SxyN.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-wts-x4-q.js} +2 -2
  4. package/dist/{Chargeback-b5GjZ9Mb.js → Chargeback-D9ezofj9.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BviLk6nC.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B53mbAw2.js} +1 -1
  6. package/dist/ExternalTerminal-DHVCjDqS.js +484 -0
  7. package/dist/{OnboardForm-Bq181JPX.js → OnboardForm-CE_z1TWy.js} +6 -6
  8. package/dist/{OnboardForm-CtgycClY.js → OnboardForm-DHY3cskz.js} +6 -6
  9. package/dist/{OnboardSubmission-DXBjG3oR.js → OnboardSubmission-DAf8-PMR.js} +3 -3
  10. package/dist/{OnboardSubmission-D-0Sas7U.js → OnboardSubmission-vkH_ZjQd.js} +6 -6
  11. package/dist/{PayoutAccount-Ddpq-rZp.js → PayoutAccount-CLYNzn8n.js} +7 -7
  12. package/dist/{PayoutAccount-D5giLt_J.js → PayoutAccount-rs-jPdOb.js} +5 -5
  13. package/dist/{PayoutAccountSetting-5ik0IR2I.js → PayoutAccountSetting-CeVVbTpp.js} +6 -6
  14. package/dist/{Restaurant-BG-2LYcJ.js → Restaurant-DUeCpGQz.js} +4 -4
  15. package/dist/{RestaurantSetting-CtnOR7kY.js → RestaurantSetting-DPnjaSZP.js} +3 -3
  16. package/dist/{Settlement-BzoTb2ks.js → Settlement-Bvh2SjD-.js} +3 -3
  17. package/dist/{Settlement-CfU_5sp-.js → Settlement-DOWtSotU.js} +4 -4
  18. package/dist/{SettlementTransactions-CmX9LDuK.js → SettlementTransactions-D3J51WrT.js} +5 -5
  19. package/dist/{SettlementTransactions-Dh-erDBh.js → SettlementTransactions-K-J0ovnq.js} +5 -5
  20. package/dist/{Status.vue_vue_type_script_setup_true_lang-D3dpjdxR.js → Status.vue_vue_type_script_setup_true_lang-CvJ6L1_a.js} +1 -1
  21. package/dist/{Terminal-ZLduA0bd.js → Terminal-CO3PpKg9.js} +6 -6
  22. package/dist/{TerminalSetting-CvaUOBlA.js → TerminalSetting-DN4d9lH9.js} +1066 -973
  23. package/dist/{Transaction-Bpc_LdWE.js → Transaction-CDcgKp1w.js} +11 -11
  24. package/dist/{Transaction-BeNRIA2R.js → Transaction-CTZ89Wbs.js} +10 -10
  25. package/dist/{TransactionOld-SaMACUtQ.js → TransactionOld-C_95omc8.js} +7 -7
  26. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-CuBa_qMU.js → TransactionStatus.vue_vue_type_script_setup_true_lang-D1-vczoG.js} +1 -1
  27. package/dist/api/external-terminal/index.d.ts +2 -1
  28. package/dist/{app-Cq04HfHW.js → app-Cs0_lCUQ.js} +24 -24
  29. package/dist/app.js +1 -1
  30. package/dist/{assets-Cj91tAER.js → assets-D3ALZiYC.js} +1 -1
  31. package/dist/{grafana-CuJUDQ26.js → grafana-DgZsQuHZ.js} +1 -1
  32. package/dist/{index-DVC9y-6t.js → index-6pMHqVXQ.js} +1 -1
  33. package/dist/{index-Cj7KUaM0.js → index-8HjTWFUv.js} +11 -9
  34. package/dist/{index-DmC6nw2c.js → index-9wT3znSS.js} +1 -1
  35. package/dist/{index-JV44EPG0.js → index-BuXolnO9.js} +2 -2
  36. package/dist/{index-C3dR6tpd.js → index-CD3vR04K.js} +1 -1
  37. package/dist/{index-lfOPW24n.js → index-Cc2oWXJD.js} +1 -1
  38. package/dist/{index-BTMbNw68.js → index-CjC49DkQ.js} +1 -1
  39. package/dist/{index-BQijmIi-.js → index-CrRToXMG.js} +1 -1
  40. package/dist/index-DFN4_x7R.js +52 -0
  41. package/dist/{index-C4EENmPN.js → index-DblBoips.js} +1 -1
  42. package/dist/{index.vue_vue_type_script_setup_true_lang-Cz6llWgj.js → index.vue_vue_type_script_setup_true_lang-BVloZZBn.js} +1 -1
  43. package/dist/{onboard-submission-ChLJrEtc.js → onboard-submission-DEJSQhGY.js} +1 -1
  44. package/dist/package.json +2 -2
  45. package/dist/{payout-account-Db0R_Isi.js → payout-account-bky0BGyg.js} +3 -3
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +16 -16
  48. package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +18 -18
  49. package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +16 -16
  50. package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +16 -16
  51. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +42 -32
  52. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +42 -32
  53. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +42 -32
  54. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +42 -32
  55. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +42 -32
  56. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +42 -32
  57. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +42 -32
  58. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +186 -0
  59. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +42 -32
  60. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +42 -32
  61. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +42 -32
  62. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +42 -32
  63. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +42 -32
  64. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +42 -32
  65. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +42 -32
  66. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +42 -32
  67. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +42 -32
  68. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +42 -32
  69. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +42 -32
  70. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +42 -32
  71. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +42 -32
  72. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +42 -32
  73. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +42 -32
  74. package/package.json +2 -2
  75. package/dist/ExternalTerminal-DhoNW6qp.js +0 -525
@@ -1,525 +0,0 @@
1
- import { defineComponent as V, resolveComponent as d, openBlock as x, createElementBlock as q, createVNode as u, normalizeClass as Y, withCtx as P, createElementVNode as b, toDisplayString as R, createBlock as w, useModel as H, ref as v, watch as N, unref as f, createCommentVNode as L, mergeModels as K, createTextVNode as A, computed as j, resolveDynamicComponent as Q, normalizeProps as W, guardReactiveProps as G, isRef as J, h as M } from "vue";
2
- import { h as X } from "./moment-h96o7c8I.js";
3
- import { useCoreStore as Z } from "@feedmepos/mf-common";
4
- import { u as ee } from "./index-BQijmIi-.js";
5
- import { _ as te } from "./index.vue_vue_type_script_setup_true_lang-Cz6llWgj.js";
6
- import { _ as ae } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
- import { useSnackbar as z, useDialogChild as ne, useDialog as re } from "@feedmepos/ui-library";
8
- import { g as S, b as T, a as oe, p as le } from "./index-Cj7KUaM0.js";
9
- import { c as se } from "./clipboard-4jh1WteU.js";
10
- import { z as k, a as D } from "./validator-CTlVogBQ.js";
11
- import { _ as ie } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Bnn4SxyN.js";
12
- import { u as U } from "./error-K1CakhA9.js";
13
- import { w as me } from "./Modal-DB8M9o1T.js";
14
- const I = {
15
- async create(a) {
16
- return S(
17
- await T().post("/payments/external-terminals", a)
18
- );
19
- },
20
- async read(a) {
21
- return oe(
22
- await T().get("/payments/external-terminals", {
23
- params: { ...a }
24
- })
25
- );
26
- },
27
- async readById(a) {
28
- return S(
29
- await T().get(`/payments/external-terminals/${a}`)
30
- );
31
- },
32
- async updateById(a, n) {
33
- return S(
34
- await T().put(
35
- `/payments/external-terminals/${a}`,
36
- n
37
- )
38
- );
39
- },
40
- async pair(a, n) {
41
- return S(
42
- await T().post(
43
- `/payments/external-terminals/${a}/pair`,
44
- n
45
- )
46
- );
47
- },
48
- async delete(a) {
49
- return S(
50
- await T().delete(`/payments/external-terminals/${a}`)
51
- );
52
- }
53
- }, ue = /* @__PURE__ */ V({
54
- __name: "ID",
55
- props: {
56
- row: {},
57
- data: {}
58
- },
59
- setup(a) {
60
- const n = a, r = z();
61
- function m() {
62
- return n.row.original.status === "READY" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-amber-400";
63
- }
64
- function s() {
65
- try {
66
- se(n.data), r.open({ title: "Text copied to clipboard." }, 1e3);
67
- } catch {
68
- r.open({ title: "Clipboard API incompatible." }, 1e3);
69
- }
70
- }
71
- return (l, e) => {
72
- const c = d("FmBadge");
73
- return x(), q("div", {
74
- onClick: e[0] || (e[0] = (p) => {
75
- p.stopPropagation(), s();
76
- })
77
- }, [
78
- u(c, {
79
- inline: "",
80
- class: Y(m())
81
- }, {
82
- default: P(() => [
83
- b("div", null, R(a.data), 1)
84
- ]),
85
- _: 1
86
- }, 8, ["class"])
87
- ]);
88
- };
89
- }
90
- }), de = { class: "flex items-center justify-center" }, ce = {
91
- key: 1,
92
- class: "t-caption text-fm-color-neutral-gray-500 whitespace-nowrap"
93
- }, pe = /* @__PURE__ */ V({
94
- __name: "Actions",
95
- props: {
96
- data: {}
97
- },
98
- emits: ["pair", "edit", "delete"],
99
- setup(a, { emit: n }) {
100
- const r = n;
101
- return (m, s) => {
102
- const l = d("FmButton");
103
- return x(), q("div", de, [
104
- a.data.status === "NEW" ? (x(), w(l, {
105
- key: 0,
106
- variant: "tertiary",
107
- label: "Pair",
108
- "prepend-icon": "link",
109
- onClick: s[0] || (s[0] = (e) => {
110
- e.stopPropagation(), r("pair");
111
- })
112
- })) : (x(), q("div", ce, " Ready to use ")),
113
- u(l, {
114
- variant: "plain",
115
- "prepend-icon": "edit",
116
- onClick: s[1] || (s[1] = (e) => {
117
- e.stopPropagation(), r("edit");
118
- })
119
- }),
120
- u(l, {
121
- variant: "plain",
122
- "prepend-icon": "delete",
123
- onClick: s[2] || (s[2] = (e) => {
124
- e.stopPropagation(), r("delete");
125
- })
126
- })
127
- ]);
128
- };
129
- }
130
- }), fe = /* @__PURE__ */ V({
131
- __name: "ExternalTerminalSideSheet",
132
- props: /* @__PURE__ */ K({
133
- terminal: {
134
- type: Object
135
- }
136
- }, {
137
- modelValue: { type: Boolean, default: !1 },
138
- modelModifiers: {}
139
- }),
140
- emits: /* @__PURE__ */ K(["submit"], ["update:modelValue"]),
141
- setup(a, { emit: n }) {
142
- const r = a, m = n, s = H(a, "modelValue"), l = v(), e = v(""), c = v(""), p = v(), _ = le.FdoExternalTerminalProvider.options.map((F) => ({
143
- label: F,
144
- value: F
145
- }));
146
- N(s, (F) => {
147
- var y, C, E;
148
- F && (e.value = ((y = r.terminal) == null ? void 0 : y.name) ?? "", c.value = ((C = r.terminal) == null ? void 0 : C.restaurantId) ?? "", p.value = (E = r.terminal) == null ? void 0 : E.type);
149
- });
150
- function g() {
151
- m("submit", {
152
- name: e.value,
153
- // restaurant is optional and can be assigned later, so an empty selection
154
- // must be sent as null instead of '' to pass the backend's ObjectId check.
155
- restaurantId: c.value || null,
156
- type: p.value
157
- }), s.value = !1;
158
- }
159
- return (F, y) => {
160
- const C = d("FmSelect"), E = d("FmTextField"), $ = d("FmButton"), t = d("FmForm"), o = d("FmSideSheet");
161
- return x(), w(o, {
162
- modelValue: s.value,
163
- "onUpdate:modelValue": y[3] || (y[3] = (i) => s.value = i),
164
- header: r.terminal ? "Update External Terminal" : "Create New External Terminal",
165
- "close-button": ""
166
- }, {
167
- default: P(() => [
168
- u(t, {
169
- ref: l.value,
170
- class: "flex flex-col gap-16 px-4 py-6",
171
- onValidationSuccess: g
172
- }, {
173
- default: P(() => [
174
- r.terminal ? L("", !0) : (x(), w(C, {
175
- key: 0,
176
- modelValue: p.value,
177
- "onUpdate:modelValue": y[0] || (y[0] = (i) => p.value = i),
178
- label: "Provider",
179
- items: f(_),
180
- rules: f(k)(f(D).string().min(1, "Provider is required"))
181
- }, null, 8, ["modelValue", "items", "rules"])),
182
- u(ie, {
183
- modelValue: c.value,
184
- "onUpdate:modelValue": y[1] || (y[1] = (i) => c.value = i),
185
- label: "Restaurant",
186
- placeholder: "Unassigned",
187
- "search-placeholder": "Search restaurants"
188
- }, null, 8, ["modelValue"]),
189
- u(E, {
190
- modelValue: e.value,
191
- "onUpdate:modelValue": y[2] || (y[2] = (i) => e.value = i),
192
- label: "Terminal Name",
193
- rules: f(k)(f(D).string().min(1))
194
- }, null, 8, ["modelValue", "rules"]),
195
- u($, {
196
- type: "submit",
197
- label: r.terminal ? "Update" : "Create"
198
- }, null, 8, ["label"])
199
- ]),
200
- _: 1
201
- }, 512)
202
- ]),
203
- _: 1
204
- }, 8, ["modelValue", "header"]);
205
- };
206
- }
207
- }), ye = { class: "t-caption" }, ve = /* @__PURE__ */ V({
208
- __name: "BeamTerminal",
209
- props: {
210
- terminal: {
211
- type: Object,
212
- required: !0
213
- },
214
- onPair: {
215
- type: Function,
216
- required: !0
217
- }
218
- },
219
- setup(a) {
220
- const n = a, r = v(), m = v("");
221
- return (s, l) => {
222
- const e = d("FmTextField"), c = d("FmButton"), p = d("FmForm");
223
- return x(), w(p, {
224
- ref: r.value,
225
- class: "flex flex-col gap-16 mb-6",
226
- onValidationSuccess: l[1] || (l[1] = () => n.onPair({ type: "BEAM", pairCode: m.value }))
227
- }, {
228
- default: P(() => [
229
- b("div", ye, [
230
- l[2] || (l[2] = A(" Enter the pairing code shown on ", -1)),
231
- b("b", null, R(n.terminal.name), 1),
232
- l[3] || (l[3] = A(" to register it with Bolt Connect. ", -1))
233
- ]),
234
- u(e, {
235
- modelValue: m.value,
236
- "onUpdate:modelValue": l[0] || (l[0] = (_) => m.value = _),
237
- label: "Pair Code",
238
- "label-mark": "required",
239
- rules: f(k)(f(D).string().min(1, "Pair code is required"))
240
- }, null, 8, ["modelValue", "rules"]),
241
- u(c, {
242
- type: "submit",
243
- label: "Pair"
244
- })
245
- ]),
246
- _: 1
247
- }, 512);
248
- };
249
- }
250
- }), xe = { class: "t-caption" }, _e = /* @__PURE__ */ V({
251
- __name: "BRITerminal",
252
- props: {
253
- terminal: {
254
- type: Object,
255
- required: !0
256
- },
257
- onPair: {
258
- type: Function,
259
- required: !0
260
- }
261
- },
262
- setup(a) {
263
- const n = a, r = v(), m = v(""), s = v("");
264
- return (l, e) => {
265
- const c = d("FmTextField"), p = d("FmButton"), _ = d("FmForm");
266
- return x(), w(_, {
267
- ref: r.value,
268
- class: "flex flex-col gap-16 mb-6",
269
- onValidationSuccess: e[2] || (e[2] = () => n.onPair({ type: "BRI", pairCode: m.value, edcId: s.value }))
270
- }, {
271
- default: P(() => [
272
- b("div", xe, [
273
- e[3] || (e[3] = A(" Enter the pairing code and EDC ID shown on ", -1)),
274
- b("b", null, R(n.terminal.name), 1),
275
- e[4] || (e[4] = A(" to register it with BRI. ", -1))
276
- ]),
277
- u(c, {
278
- modelValue: m.value,
279
- "onUpdate:modelValue": e[0] || (e[0] = (g) => m.value = g),
280
- label: "Pair Code",
281
- "label-mark": "required",
282
- rules: f(k)(f(D).string().min(1, "Pair code is required"))
283
- }, null, 8, ["modelValue", "rules"]),
284
- u(c, {
285
- modelValue: s.value,
286
- "onUpdate:modelValue": e[1] || (e[1] = (g) => s.value = g),
287
- label: "EDC ID",
288
- "label-mark": "required",
289
- rules: f(k)(f(D).string().min(1, "EDC ID is required"))
290
- }, null, 8, ["modelValue", "rules"]),
291
- u(p, {
292
- type: "submit",
293
- label: "Pair"
294
- })
295
- ]),
296
- _: 1
297
- }, 512);
298
- };
299
- }
300
- }), ge = /* @__PURE__ */ V({
301
- __name: "ExternalTerminalPairDialog",
302
- props: {
303
- terminal: {
304
- type: Object,
305
- required: !0
306
- }
307
- },
308
- setup(a) {
309
- const n = a, r = ne(), m = {
310
- BEAM: ve,
311
- BRI: _e
312
- }, s = j(() => m[n.terminal.type]);
313
- function l(e) {
314
- r.emitData(e), r.emitAction("primary");
315
- }
316
- return (e, c) => (x(), w(Q(s.value), W(G({
317
- terminal: n.terminal,
318
- onPair: l
319
- })), null, 16));
320
- }
321
- }), be = { class: "flex justify-between mb-6 items-center" }, Fe = { class: "flex space-x-4" }, we = { class: "flex space-x-4" }, Ue = /* @__PURE__ */ V({
322
- __name: "ExternalTerminal",
323
- setup(a) {
324
- const n = v(), { searchKey: r } = ee({
325
- searchKey: ""
326
- });
327
- let m;
328
- N(r, async () => {
329
- m && clearTimeout(m), m = setTimeout(
330
- () => {
331
- var t;
332
- return (t = n.value) == null ? void 0 : t.reset();
333
- },
334
- 700
335
- );
336
- });
337
- const s = Z(), l = re(), e = z(), c = j(() => new Map(
338
- s.restaurants.value.map((t) => [t._id, t.profile.name])
339
- )), p = v(!1), _ = v();
340
- function g(t) {
341
- _.value = t, p.value = !0;
342
- }
343
- async function F(t) {
344
- var i;
345
- const o = _.value;
346
- try {
347
- o ? await I.updateById(o._id, {
348
- name: t.name,
349
- restaurantId: t.restaurantId
350
- }) : await I.create(t), (i = n.value) == null || i.reset(), e.open({
351
- type: "success",
352
- message: o ? "External terminal updated successfully." : "External terminal created successfully."
353
- });
354
- } catch (h) {
355
- e.open({
356
- type: "error",
357
- title: o ? "Error occurs when update external terminal" : "Error occurs when create external terminal",
358
- message: U(h)
359
- });
360
- }
361
- }
362
- async function y(t) {
363
- l.open({
364
- title: "Pair External Terminal",
365
- closeButton: !0,
366
- overlay: !0,
367
- contentComponent: ge,
368
- contentComponentProps: { terminal: t }
369
- }).onPrimary(async (o) => {
370
- var i;
371
- l.close();
372
- try {
373
- await I.pair(t._id, o), (i = n.value) == null || i.reset(), e.open({
374
- type: "success",
375
- message: "External terminal paired successfully."
376
- });
377
- } catch (h) {
378
- e.open({
379
- type: "error",
380
- title: "Error occurs when pair external terminal",
381
- message: U(h)
382
- });
383
- }
384
- });
385
- }
386
- async function C(t) {
387
- me(
388
- l,
389
- "Delete External Terminal",
390
- "Are you sure to delete this external terminal? This action cannot be revert!",
391
- async () => {
392
- var o;
393
- try {
394
- await I.delete(t), (o = n.value) == null || o.reset(), e.open({
395
- type: "success",
396
- message: "External terminal deleted successfully."
397
- });
398
- } catch (i) {
399
- e.open({
400
- type: "error",
401
- title: "Error occurs when delete external terminal",
402
- message: U(i)
403
- });
404
- }
405
- }
406
- );
407
- }
408
- const E = function(t) {
409
- return {
410
- id: t._id,
411
- status: t.status,
412
- name: t.name,
413
- type: t.type,
414
- restaurant: t.restaurantId ? c.value.get(t.restaurantId) ?? t.restaurantId : "-",
415
- updatedAt: X(t.updatedAt).format("YYYY-MM-DD HH:mm:ss")
416
- };
417
- }, $ = [
418
- {
419
- accessorKey: "id",
420
- header: () => "Terminal ID",
421
- meta: {
422
- textAlign: "right"
423
- },
424
- cell: ({ cell: t, row: o }) => M(ue, { row: o, data: t.getValue() })
425
- },
426
- {
427
- accessorKey: "name",
428
- header: () => "Name",
429
- meta: {
430
- textAlign: "left"
431
- }
432
- },
433
- {
434
- accessorKey: "type",
435
- header: () => "Provider",
436
- meta: {
437
- textAlign: "left"
438
- }
439
- },
440
- {
441
- accessorKey: "restaurant",
442
- header: () => "Restaurant",
443
- meta: {
444
- textAlign: "left"
445
- }
446
- },
447
- {
448
- accessorKey: "status",
449
- header: () => "Status",
450
- meta: {
451
- textAlign: "left"
452
- }
453
- },
454
- {
455
- accessorKey: "updatedAt",
456
- header: () => "Last Updated",
457
- meta: {
458
- textAlign: "left"
459
- }
460
- },
461
- {
462
- accessorKey: "id",
463
- header: () => "Actions",
464
- meta: {
465
- textAlign: "center"
466
- },
467
- cell: ({ row: t }) => {
468
- var i;
469
- const o = (i = n.value) == null ? void 0 : i.pageData().at(t.index);
470
- return M(pe, {
471
- data: o,
472
- onPair: () => y(o),
473
- onEdit: () => g(o),
474
- onDelete: () => C(o._id)
475
- });
476
- }
477
- }
478
- ];
479
- return (t, o) => {
480
- const i = d("FmSearch"), h = d("FmButton");
481
- return x(), w(ae, {
482
- title: "External Terminals",
483
- loading: !1
484
- }, {
485
- default: P(() => [
486
- b("div", be, [
487
- b("div", Fe, [
488
- u(i, {
489
- "model-value": f(r),
490
- "onUpdate:modelValue": o[0] || (o[0] = (B) => J(r) ? r.value = B : null),
491
- class: "mr-8",
492
- label: "Search",
493
- placeholder: "Search ..."
494
- }, null, 8, ["model-value"])
495
- ]),
496
- b("div", we, [
497
- u(h, {
498
- label: "Create",
499
- icon: "add",
500
- onClick: o[1] || (o[1] = () => g())
501
- })
502
- ])
503
- ]),
504
- u(te, {
505
- ref_key: "controller",
506
- ref: n,
507
- "column-defs": $,
508
- "rows-defs": E,
509
- paginate: (B, O) => f(I).read({ searchKey: f(r), limit: B, cursor: O })
510
- }, null, 8, ["paginate"]),
511
- u(fe, {
512
- modelValue: p.value,
513
- "onUpdate:modelValue": o[2] || (o[2] = (B) => p.value = B),
514
- terminal: _.value,
515
- onSubmit: F
516
- }, null, 8, ["modelValue", "terminal"])
517
- ]),
518
- _: 1
519
- });
520
- };
521
- }
522
- });
523
- export {
524
- Ue as default
525
- };