@feedmepos/mf-payment 1.6.13-dev → 1.6.16-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 (45) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CRy-UQpe.js → Actions.vue_vue_type_script_setup_true_lang-wXi4zlOF.js} +1 -1
  2. package/dist/AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CQSEq_3Z.js +139 -0
  3. package/dist/Chargeback-CJqlNeMt.js +397 -0
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CiqJxutL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Ckul-6N5.js} +1 -1
  5. package/dist/{OnboardForm-DQBU7D0V.js → OnboardForm-B4uFIDfL.js} +5 -5
  6. package/dist/{OnboardForm-mETWu1dk.js → OnboardForm-BXMmCslr.js} +5 -5
  7. package/dist/{OnboardSubmission-DhR5UmjI.js → OnboardSubmission-DEdrkQIy.js} +2 -2
  8. package/dist/{OnboardSubmission-CdAKhGo2.js → OnboardSubmission-DTShUQzf.js} +5 -5
  9. package/dist/{PayoutAccount-DTUZj1yi.js → PayoutAccount-3nq_6mVJ.js} +5 -5
  10. package/dist/{PayoutAccount-z4BGvlhv.js → PayoutAccount-CPjDqMpd.js} +5 -5
  11. package/dist/{PayoutAccountSetting-DHaTKlRM.js → PayoutAccountSetting-BVgA9_0u.js} +6 -6
  12. package/dist/{Restaurant-Bzz0qnnj.js → Restaurant-DVj-b61o.js} +4 -4
  13. package/dist/{RestaurantSetting-BvAl6Vo-.js → RestaurantSetting-7y0qkqkE.js} +3 -3
  14. package/dist/{Settlement-DBhzPPJS.js → Settlement-Dg24FLXs.js} +3 -3
  15. package/dist/{Settlement-CPB3Cojm.js → Settlement-j77mmZXv.js} +4 -4
  16. package/dist/{SettlementTransactions-BwSrt1vA.js → SettlementTransactions-DqnFsNBQ.js} +4 -4
  17. package/dist/{SettlementTransactions-BsOGpbtn.js → SettlementTransactions-PBQgs92s.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-BSX8ZhuG.js → Status.vue_vue_type_script_setup_true_lang-DhbTRCYM.js} +1 -1
  19. package/dist/{Terminal-CzM77vSF.js → Terminal-BUDlYupd.js} +5 -5
  20. package/dist/{TerminalSetting-DtmOsDl0.js → TerminalSetting-CnfALKFc.js} +4 -4
  21. package/dist/Transaction-C5oj2fA7.js +690 -0
  22. package/dist/{Transaction-DBh0KtR-.js → Transaction-Cvl6QATl.js} +10 -10
  23. package/dist/{TransactionOld-CAORQJw2.js → TransactionOld-Cy2U8Hn4.js} +7 -7
  24. package/dist/api/transaction/index.d.ts +5 -2
  25. package/dist/{app-D4_0cKed.js → app-Bv1eKatH.js} +23 -23
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-BEqu4LTS.js → assets-DAh5KIbj.js} +1 -1
  28. package/dist/components/AdminRestaurantSelector.vue.d.ts +17 -0
  29. package/dist/{grafana-BC92XSGj.js → grafana-CfbW-0Ri.js} +1 -1
  30. package/dist/{index-B4BQXToQ.js → index--DP2Qv9r.js} +40 -37
  31. package/dist/{index-DyFv4ofl.js → index-AdfhP3iZ.js} +1 -1
  32. package/dist/{index-2pJ6aK3N.js → index-BP3lxBw_.js} +1 -1
  33. package/dist/{index-lJgQkdhr.js → index-BU3AY5BY.js} +1 -1
  34. package/dist/{index-Vzwov74c.js → index-D_XLTy5p.js} +1 -1
  35. package/dist/{index-DqZVPkHG.js → index-Ds4tJNkA.js} +1 -1
  36. package/dist/{index-9bLqrnE-.js → index-DyRqovBt.js} +1 -1
  37. package/dist/{index-BBSrL5Hb.js → index-FMXYkp6e.js} +2 -2
  38. package/dist/{index-C-K9TPBG.js → index-HB-taFPL.js} +1 -1
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-Dh_I8dOY.js → index.vue_vue_type_script_setup_true_lang-BqUNz7vW.js} +68 -61
  40. package/dist/package.json +1 -1
  41. package/dist/{payout-account-D5UsGVu2.js → payout-account-0jjiMCJQ.js} +3 -3
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/Chargeback-Cg9Xe6iD.js +0 -413
  45. package/dist/Transaction-B1Hw-Qs-.js +0 -636
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, resolveComponent as o, openBlock as a, createBlock as s, withCtx as r, createElementVNode as d, unref as p, computed as g, createElementBlock as u, createVNode as m, Fragment as w, renderList as h } from "vue";
2
- import { g as y, a as F } from "./assets-BEqu4LTS.js";
2
+ import { g as y, a as F } from "./assets-DAh5KIbj.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const k = ["src"], M = /* @__PURE__ */ i({
5
5
  __name: "Gateway",
@@ -0,0 +1,139 @@
1
+ import { defineComponent as R, useModel as S, ref as _, onMounted as z, watch as V, resolveComponent as s, openBlock as u, createBlock as p, withCtx as k, createElementVNode as c, createVNode as F, unref as w, createElementBlock as $, Fragment as T, renderList as A, toDisplayString as E, withModifiers as G, mergeModels as L } from "vue";
2
+ import { r as x } from "./index-AdfhP3iZ.js";
3
+ import { useI18n as N } from "@feedmepos/mf-common";
4
+ const O = { class: "inline-flex items-center gap-8" }, U = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer" }, j = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, D = { class: "relative min-w-[280px]" }, W = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, K = /* @__PURE__ */ R({
5
+ __name: "AdminRestaurantSelector",
6
+ props: /* @__PURE__ */ L({
7
+ label: {},
8
+ labelMark: {},
9
+ placeholder: {},
10
+ searchPlaceholder: {},
11
+ rules: {}
12
+ }, {
13
+ modelValue: { default: "" },
14
+ modelModifiers: {}
15
+ }),
16
+ emits: ["update:modelValue"],
17
+ setup(g) {
18
+ const r = g, e = S(g, "modelValue"), { t: M } = N(), i = _(""), h = _(!0), v = _([]), a = _();
19
+ let b;
20
+ const y = async (t = "") => {
21
+ var o;
22
+ h.value = !0;
23
+ try {
24
+ const m = await x.readRestaurantWithPagination({
25
+ limit: 20,
26
+ skip: 0,
27
+ sortBy: "name",
28
+ search: t,
29
+ descending: !1
30
+ });
31
+ v.value = m.resources.map((n) => ({
32
+ label: `${n.profile.name} (${n.profile.code ?? "--"})`,
33
+ value: n._id
34
+ }));
35
+ const f = v.value.find((n) => n.value === e.value);
36
+ if (f) {
37
+ a.value = f;
38
+ return;
39
+ }
40
+ if (!e.value) {
41
+ a.value = void 0;
42
+ return;
43
+ }
44
+ if (((o = a.value) == null ? void 0 : o.value) === e.value)
45
+ return;
46
+ const d = await x.readRestaurantById(e.value);
47
+ a.value = {
48
+ label: `${d.profile.name} (${d.profile.code ?? "--"})`,
49
+ value: d._id
50
+ };
51
+ } finally {
52
+ h.value = !1;
53
+ }
54
+ };
55
+ z(() => y()), V(i, () => {
56
+ b && clearTimeout(b), b = setTimeout(() => {
57
+ y(i.value);
58
+ }, 700);
59
+ }), V(e, () => {
60
+ const t = v.value.find((o) => o.value === e.value);
61
+ if (t || !e.value) {
62
+ a.value = t;
63
+ return;
64
+ }
65
+ y(i.value);
66
+ });
67
+ const C = (t) => {
68
+ a.value = t, e.value = t.value;
69
+ }, I = () => {
70
+ a.value = void 0, e.value = "";
71
+ };
72
+ return (t, o) => {
73
+ const m = s("FmIcon"), f = s("FmCircularProgress"), d = s("FmSearch"), n = s("FmMenuItem"), B = s("FmMenu"), P = s("FmFormGroup");
74
+ return u(), p(P, {
75
+ modelValue: e.value,
76
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => e.value = l),
77
+ label: r.label,
78
+ "label-mark": r.labelMark,
79
+ rules: r.rules
80
+ }, {
81
+ default: k(() => [
82
+ c("div", O, [
83
+ F(B, { "close-on-click": !0 }, {
84
+ "menu-button": k(() => {
85
+ var l;
86
+ return [
87
+ c("div", U, [
88
+ F(m, {
89
+ name: "store",
90
+ size: "sm"
91
+ }),
92
+ c("div", j, E(((l = a.value) == null ? void 0 : l.label) ?? r.placeholder ?? w(M)("payment.components.select")), 1),
93
+ h.value ? (u(), p(f, {
94
+ key: 0,
95
+ size: "md"
96
+ })) : a.value ? (u(), p(m, {
97
+ key: 1,
98
+ name: "close",
99
+ size: "sm",
100
+ onClick: G(I, ["stop"])
101
+ })) : (u(), p(m, {
102
+ key: 2,
103
+ name: "expand_more",
104
+ size: "sm"
105
+ }))
106
+ ])
107
+ ];
108
+ }),
109
+ default: k(() => [
110
+ c("div", D, [
111
+ c("div", W, [
112
+ F(d, {
113
+ "model-value": i.value,
114
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => i.value = l),
115
+ placeholder: r.searchPlaceholder ?? r.placeholder ?? w(M)("payment.components.select")
116
+ }, null, 8, ["model-value", "placeholder"])
117
+ ]),
118
+ c("div", null, [
119
+ (u(!0), $(T, null, A(v.value, (l) => (u(), p(n, {
120
+ key: l.value,
121
+ label: l.label,
122
+ sublabel: "Restaurant",
123
+ onClick: () => C(l)
124
+ }, null, 8, ["label", "onClick"]))), 128))
125
+ ])
126
+ ])
127
+ ]),
128
+ _: 1
129
+ })
130
+ ])
131
+ ]),
132
+ _: 1
133
+ }, 8, ["modelValue", "label", "label-mark", "rules"]);
134
+ };
135
+ }
136
+ });
137
+ export {
138
+ K as _
139
+ };
@@ -0,0 +1,397 @@
1
+ import { defineComponent as D, ref as C, resolveComponent as i, openBlock as k, createBlock as $, withCtx as v, createVNode as s, unref as b, createElementVNode as y, createElementBlock as Y, Fragment as B, renderList as K, watch as M, isRef as T, h as V } from "vue";
2
+ import { t as S } from "./index--DP2Qv9r.js";
3
+ import { h as f } from "./moment-h96o7c8I.js";
4
+ import "./index-HB-taFPL.js";
5
+ import { d as A } from "./dinero-CIVmXLL-.js";
6
+ import { u as P } from "./index-DyRqovBt.js";
7
+ import { _ as q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
8
+ import { _ as O } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
9
+ import { useDialogChild as U, useSnackbar as N, useDialog as x } from "@feedmepos/ui-library";
10
+ import { _ as E } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
11
+ import { _ as j } from "./index.vue_vue_type_script_setup_true_lang-BqUNz7vW.js";
12
+ import { _ as w } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
13
+ import { _ as z } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CQSEq_3Z.js";
14
+ import { z as F, a as I, s as G } from "./validator-CTlVogBQ.js";
15
+ import { u as R } from "./error-K1CakhA9.js";
16
+ function H(a) {
17
+ return {
18
+ id: a._id,
19
+ restaurant: a.restaurant || "",
20
+ payId: a.payId || "-",
21
+ createdAt: f(a.createdAt).format("YYYY-MM-DD HH:mm:ss"),
22
+ canSettleAt: f(a.canSettleAt).format("YYYY-MM-DD"),
23
+ method: a.method,
24
+ gateway: a.gateway,
25
+ status: a.status,
26
+ payFor: a.payFor,
27
+ group: a.group || "-",
28
+ seqNumber: a.seqNumber || "-",
29
+ chargeBackReason: a.chargeBackReason || "-",
30
+ fdoAmount: a.amount,
31
+ // Show chargeback amount as positive value
32
+ amount: A(a.amount).multiply(-1).toFormat("$0.00"),
33
+ fee: A(a.fee).toFormat("$0.00"),
34
+ payout: A(a.payout).toFormat("$0.00"),
35
+ settlement: a.settlement || ""
36
+ };
37
+ }
38
+ function L(a) {
39
+ return a.map(H);
40
+ }
41
+ const Q = { class: "flex justify-end mb-2" }, J = /* @__PURE__ */ D({
42
+ __name: "CreateChargebackDialog",
43
+ setup(a) {
44
+ const u = U(), m = C(), t = C({
45
+ restaurant: "",
46
+ payId: "",
47
+ amount: "",
48
+ reason: ""
49
+ }), o = () => {
50
+ u.emitData({
51
+ restaurant: t.value.restaurant,
52
+ payId: t.value.payId || void 0,
53
+ amount: Number.parseFloat(t.value.amount),
54
+ chargeBackReason: t.value.reason
55
+ }), u.emitAction("primary");
56
+ };
57
+ return (d, l) => {
58
+ const p = i("FmTextField"), r = i("FmTextarea"), g = i("FmButton"), _ = i("FmForm");
59
+ return k(), $(_, {
60
+ ref_key: "form",
61
+ ref: m,
62
+ class: "flex flex-col gap-16",
63
+ onValidationSuccess: o
64
+ }, {
65
+ default: v(() => [
66
+ s(z, {
67
+ modelValue: t.value.restaurant,
68
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => t.value.restaurant = e),
69
+ label: "Restaurant",
70
+ "label-mark": "required",
71
+ rules: b(F)(b(I).string().min(1, "Restaurant is required")),
72
+ placeholder: "Select restaurant",
73
+ "search-placeholder": "Search restaurants"
74
+ }, null, 8, ["modelValue", "rules"]),
75
+ s(p, {
76
+ modelValue: t.value.payId,
77
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => t.value.payId = e),
78
+ label: "Pay ID",
79
+ placeholder: "Enter Pay ID (optional)"
80
+ }, null, 8, ["modelValue"]),
81
+ s(p, {
82
+ modelValue: t.value.amount,
83
+ "onUpdate:modelValue": l[2] || (l[2] = (e) => t.value.amount = e),
84
+ label: "Amount",
85
+ type: "number",
86
+ step: "0.01",
87
+ placeholder: "Enter amount",
88
+ "label-mark": "required",
89
+ decimal: 2,
90
+ min: 0.01,
91
+ rules: b(F)(
92
+ b(I).string().min(1, "Amount is required").transform((e) => Number.parseFloat(e)).refine((e) => !isNaN(e) && e > 0, { message: "Amount must be greater than 0" }).refine((e) => Math.round(e * 100) / 100 === e, { message: "Amount can only have maximum of 2 decimal places" })
93
+ )
94
+ }, null, 8, ["modelValue", "rules"]),
95
+ s(r, {
96
+ modelValue: t.value.reason,
97
+ "onUpdate:modelValue": l[3] || (l[3] = (e) => t.value.reason = e),
98
+ label: "Reason",
99
+ placeholder: "Enter chargeback reason",
100
+ "label-mark": "required",
101
+ rules: b(F)(b(I).string().trim().min(1, "Reason is required"))
102
+ }, null, 8, ["modelValue", "rules"]),
103
+ y("div", Q, [
104
+ s(g, {
105
+ type: "submit",
106
+ variant: "primary",
107
+ label: "Create"
108
+ })
109
+ ])
110
+ ]),
111
+ _: 1
112
+ }, 512);
113
+ };
114
+ }
115
+ }), W = { class: "flex justify-end gap-12 mt-24 mb-2" }, X = /* @__PURE__ */ D({
116
+ __name: "UpdateChargebackDialog",
117
+ props: {
118
+ chargebackId: {},
119
+ currentDate: {}
120
+ },
121
+ setup(a) {
122
+ const u = a, { emitData: m, emitAction: t } = U(), o = C(f(u.currentDate).format("YYYY-MM-DD")), d = G().refine(
123
+ (r) => f(r).startOf("day").isSameOrAfter(f().startOf("day")),
124
+ { message: "Date cannot be in the past" }
125
+ ), l = F(d), p = () => {
126
+ d.safeParse(o.value).success && (m({
127
+ chargebackId: u.chargebackId,
128
+ canSettleAt: f(o.value).toISOString()
129
+ }), t("primary"));
130
+ };
131
+ return (r, g) => {
132
+ const _ = i("FmSimpleDatePicker"), e = i("FmFormGroup"), n = i("FmButton");
133
+ return k(), Y(B, null, [
134
+ s(e, {
135
+ modelValue: o.value,
136
+ "onUpdate:modelValue": g[1] || (g[1] = (c) => o.value = c),
137
+ label: "Chargeback Date",
138
+ "label-mark": "required"
139
+ }, {
140
+ default: v(() => [
141
+ s(_, {
142
+ modelValue: o.value,
143
+ "onUpdate:modelValue": g[0] || (g[0] = (c) => o.value = c),
144
+ rules: b(l),
145
+ required: ""
146
+ }, null, 8, ["modelValue", "rules"])
147
+ ]),
148
+ _: 1
149
+ }, 8, ["modelValue"]),
150
+ y("div", W, [
151
+ s(n, {
152
+ label: "Submit",
153
+ variant: "primary",
154
+ onClick: p
155
+ })
156
+ ])
157
+ ], 64);
158
+ };
159
+ }
160
+ }), Z = /* @__PURE__ */ D({
161
+ __name: "Actions",
162
+ props: {
163
+ onAction: { type: Function },
164
+ chargeback: {}
165
+ },
166
+ setup(a) {
167
+ const m = [
168
+ {
169
+ label: "Update",
170
+ sublabel: "Update chargeback transaction",
171
+ icon: "edit",
172
+ action: "update",
173
+ disabled: !!a.chargeback.settlement
174
+ }
175
+ ];
176
+ return (t, o) => {
177
+ const d = i("FmIcon"), l = i("FmMenuItem"), p = i("FmMenu");
178
+ return k(), Y("div", {
179
+ onClick: o[0] || (o[0] = (r) => {
180
+ r.stopPropagation();
181
+ })
182
+ }, [
183
+ s(p, null, {
184
+ "menu-button": v(() => [
185
+ s(d, { name: "settings" })
186
+ ]),
187
+ default: v(() => [
188
+ (k(), Y(B, null, K(m, (r) => s(l, {
189
+ selectable: !0,
190
+ key: r.label,
191
+ sublabel: r.sublabel,
192
+ label: r.label,
193
+ icon: r.icon,
194
+ disabled: r.disabled,
195
+ onclick: r.disabled ? void 0 : () => a.onAction(r.action)
196
+ }, null, 8, ["sublabel", "label", "icon", "disabled", "onclick"])), 64))
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]);
201
+ };
202
+ }
203
+ }), ee = { class: "flex justify-between mb-6 items-center" }, ae = { class: "flex space-x-4" }, te = { class: "flex space-x-4 self-center" }, re = { class: "mb-6" }, _e = /* @__PURE__ */ D({
204
+ __name: "Chargeback",
205
+ setup(a) {
206
+ const u = C(), { dateRange: m, searchKey: t } = P({
207
+ searchKey: "",
208
+ dateRange: {
209
+ startDate: f().startOf("day").format("YYYY-MM-DD"),
210
+ endDate: f().endOf("day").format("YYYY-MM-DD")
211
+ }
212
+ }), o = N(), d = x(), l = async (e, n) => {
213
+ const c = await S.readChargebackTransactions({
214
+ start: f(m.value.startDate).startOf("day").toISOString(),
215
+ end: f(m.value.endDate).endOf("day").toISOString(),
216
+ limit: e,
217
+ cursor: n,
218
+ search: t.value
219
+ });
220
+ return {
221
+ data: L(c.data),
222
+ meta: c.meta
223
+ };
224
+ };
225
+ M(m, async () => {
226
+ var e;
227
+ (e = u.value) == null || e.reset();
228
+ });
229
+ let p;
230
+ M(t, async () => {
231
+ p && clearTimeout(p), p = setTimeout(() => {
232
+ var e;
233
+ (e = u.value) == null || e.reset();
234
+ }, 700);
235
+ });
236
+ const r = async () => {
237
+ d.open({
238
+ title: "Create Chargeback",
239
+ closeButton: !0,
240
+ overlay: !0,
241
+ contentComponent: J
242
+ }).onPrimary(async (e) => {
243
+ var n;
244
+ try {
245
+ await S.createChargebackTransaction(e), (n = u.value) == null || n.reset(), o.open({
246
+ type: "success",
247
+ message: "Chargeback created successfully"
248
+ }), d.close();
249
+ } catch (c) {
250
+ o.open({
251
+ type: "error",
252
+ title: "Failed to create chargeback",
253
+ message: R(c)
254
+ });
255
+ }
256
+ });
257
+ }, g = async (e) => {
258
+ d.open({
259
+ title: "Update Chargeback",
260
+ closeButton: !0,
261
+ overlay: !0,
262
+ contentComponent: X,
263
+ contentComponentProps: {
264
+ chargebackId: e.id,
265
+ currentDate: e.canSettleAt
266
+ }
267
+ }).onPrimary(async (n) => {
268
+ var c;
269
+ try {
270
+ await S.updateChargebackTransaction(n), (c = u.value) == null || c.reset(), o.open({
271
+ type: "success",
272
+ message: "Chargeback updated successfully"
273
+ }), d.close();
274
+ } catch (h) {
275
+ o.open({
276
+ type: "error",
277
+ title: "Failed to update chargeback date",
278
+ message: R(h)
279
+ });
280
+ }
281
+ });
282
+ }, _ = [
283
+ {
284
+ header: () => "Transaction ID",
285
+ accessorKey: "id",
286
+ cell: ({ cell: e }) => V(w, {
287
+ data: e.getValue(),
288
+ truncate: { startChars: 8, endChars: 8 }
289
+ })
290
+ },
291
+ {
292
+ header: () => "Restaurant",
293
+ accessorKey: "restaurant",
294
+ cell: ({ cell: e }) => V(w, {
295
+ data: e.getValue(),
296
+ truncate: { startChars: 8, endChars: 8 }
297
+ })
298
+ },
299
+ {
300
+ header: () => "Pay ID",
301
+ accessorKey: "payId"
302
+ },
303
+ {
304
+ header: () => "Chargeback Amount",
305
+ accessorKey: "amount",
306
+ cell: ({ row: e }) => e.original.amount
307
+ },
308
+ {
309
+ header: () => "Reason",
310
+ accessorKey: "chargeBackReason",
311
+ meta: {
312
+ width: "200px"
313
+ }
314
+ },
315
+ {
316
+ header: () => "Chargeback At",
317
+ accessorKey: "canSettleAt",
318
+ meta: {
319
+ width: "180px"
320
+ }
321
+ },
322
+ {
323
+ header: () => "Settled",
324
+ accessorKey: "settlement",
325
+ cell: ({ cell: e }) => e.getValue() ? "Yes" : "No",
326
+ meta: {
327
+ width: "50px"
328
+ }
329
+ },
330
+ {
331
+ header: () => "Created At",
332
+ accessorKey: "createdAt",
333
+ meta: {
334
+ width: "180px"
335
+ }
336
+ },
337
+ {
338
+ header: () => "Actions",
339
+ accessorKey: "id",
340
+ cell: ({ row: e }) => V(Z, {
341
+ chargeback: e.original,
342
+ onAction: (n) => {
343
+ n === "update" && g(e.original);
344
+ }
345
+ })
346
+ }
347
+ ];
348
+ return (e, n) => {
349
+ const c = i("FmSearch");
350
+ return k(), $(q, {
351
+ title: "Chargebacks",
352
+ loading: !1
353
+ }, {
354
+ default: v(() => [
355
+ y("div", ee, [
356
+ y("div", ae, [
357
+ s(c, {
358
+ "model-value": b(t),
359
+ "onUpdate:modelValue": n[0] || (n[0] = (h) => T(t) ? t.value = h : null),
360
+ class: "mr-8",
361
+ label: "Search",
362
+ placeholder: "Search Chargebacks ..."
363
+ }, null, 8, ["model-value"])
364
+ ]),
365
+ y("div", te, [
366
+ s(O, {
367
+ button: {
368
+ appendIcon: "add",
369
+ variant: "primary",
370
+ label: "Create"
371
+ },
372
+ handler: r
373
+ })
374
+ ])
375
+ ]),
376
+ y("div", re, [
377
+ s(E, {
378
+ modelValue: b(m),
379
+ "onUpdate:modelValue": n[1] || (n[1] = (h) => T(m) ? m.value = h : null)
380
+ }, null, 8, ["modelValue"])
381
+ ]),
382
+ s(j, {
383
+ ref_key: "controller",
384
+ ref: u,
385
+ "column-defs": _,
386
+ "rows-defs": (h) => h,
387
+ paginate: l
388
+ }, null, 8, ["rows-defs"])
389
+ ]),
390
+ _: 1
391
+ });
392
+ };
393
+ }
394
+ });
395
+ export {
396
+ _e as default
397
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, computed as d, ref as c, resolveComponent as p, openBlock as C, createElementBlock as l, renderSlot as u, createElementVNode as o, createVNode as y, createCommentVNode as L, createBlock as x } from "vue";
2
- import { d as m } from "./index-DqZVPkHG.js";
2
+ import { d as m } from "./index-Ds4tJNkA.js";
3
3
  const M = "data:image/svg+xml,%3csvg%20width='858'%20height='376'%20viewBox='0%200%20858%20376'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1132_89720)'%3e%3cpath%20d='M440%20505.86C651.525%20505.86%20823%20437.839%20823%20353.93C823%20270.021%20651.525%20202%20440%20202C228.475%20202%2057%20270.021%2057%20353.93C57%20437.839%20228.475%20505.86%20440%20505.86Z'%20fill='url(%23paint0_linear_1132_89720)'%20fill-opacity='0.5'/%3e%3cg%20clip-path='url(%23clip1_1132_89720)'%3e%3cpath%20d='M331.443%20106.351C343.852%2058.097%20379.776%2037.6206%20397.221%2030.2477C402.417%2028.0519%20407.88%2026.5702%20413.469%2025.749L424.914%2024.0709C430.503%2023.2497%20436.163%2023.1069%20441.769%2023.7138C460.588%2025.749%20500.887%2035.0321%20526.652%2077.6808C561.416%20135.2%20586.627%20250.954%20457.589%20272.322V272.376C456.91%20272.483%20456.25%20272.555%20455.589%20272.644C454.928%20272.751%20454.268%20272.858%20453.589%20272.965V272.912C323.854%20289.55%20314.695%20171.458%20331.443%20106.351Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M429.807%20275.839C396.221%20275.839%20370.046%20265.414%20351.762%20244.705C319.016%20207.644%20319.641%20146.84%20330.14%20106.03C342.406%2058.3112%20377.099%2037.2993%20396.686%2029.0337C401.899%2026.8379%20407.47%2025.2848%20413.273%2024.4457L424.718%2022.7676C430.521%2021.9107%20436.306%2021.7858%20441.912%2022.3928C463.053%2024.6778%20502.316%2034.8178%20527.795%2076.9845C549.596%20113.046%20567.701%20171.119%20547.007%20216.035C532.973%20246.508%20503.387%20265.824%20459.089%20273.429V273.465L457.786%20273.715C457.375%20273.768%20456.982%20273.822%20456.589%20273.876L454.982%20274.108C454.59%20274.179%20454.197%20274.233%20453.786%20274.304L452.447%20274.5L452.429%20274.411C444.573%20275.357%20437.02%20275.839%20429.807%20275.839ZM332.747%20106.69C322.408%20146.876%20321.712%20206.662%20353.762%20242.956C375.563%20267.645%20409.095%20277.285%20453.429%20271.591L454.75%20271.43V271.448L456.268%20271.233C456.375%20271.216%20456.5%20271.198%20456.607%20271.198L457.375%20271.037C501.477%20263.736%20530.813%20244.866%20544.597%20214.946C564.845%20170.976%20546.972%20113.921%20525.528%2078.3949C500.638%2037.1743%20462.285%2027.2842%20441.645%2025.0349C436.252%2024.4457%20430.699%2024.5707%20425.129%2025.3919L413.684%2027.07C408.113%2027.8912%20402.756%2029.3729%20397.757%2031.4795C378.598%2039.5665%20344.727%2060.0964%20332.747%20106.69Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M360.457%20129.166L360.493%20111.814C362.475%2083.3041%20397.685%2072.0216%20409.041%2068.3083C417.504%2065.5413%20428.467%2063.6489%20432.359%2063.042V63.0241C432.359%2063.0241%20432.609%2062.9884%20433.074%2062.917C433.538%2062.8456%20433.788%2062.8099%20433.788%2062.8099V62.8277C437.68%2062.31%20448.732%2060.9533%20457.642%2061.1675C469.569%2061.471%20506.547%2062.1315%20516.653%2088.874L521.67%20105.476C527.045%20124.114%20518.974%20141.324%20501.566%20143.876L390.757%20160.175C373.348%20162.728%20360.671%20148.571%20360.457%20129.166Z'%20fill='white'/%3e%3cpath%20d='M490.656%20119.473C482.675%20120.651%20473.997%20114.76%20473.158%20106.458C472.319%2098.1393%20477.622%2090.213%20486.175%2088.9633C494.156%2087.7851%20502.833%2093.6763%20503.673%20101.978C504.512%20110.297%20499.209%20118.223%20490.656%20119.473Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M488.585%20120.972C484.836%20120.972%20481.068%20119.651%20477.944%20117.223C474.426%20114.474%20472.248%20110.707%20471.837%20106.601C470.891%2097.2824%20477.105%2088.9455%20485.996%2087.6423C490.442%2086.9818%20495.156%2088.285%20498.923%2091.2306C502.441%2093.9798%20504.619%2097.7466%20505.03%20101.853C505.976%20111.171%20499.763%20119.508%20490.871%20120.812C490.103%20120.919%20489.335%20120.972%20488.585%20120.972ZM488.21%2090.1594C487.586%2090.1594%20486.978%2090.1952%20486.371%2090.2844C478.908%2091.3734%20473.694%2098.425%20474.498%20106.316C474.837%20109.69%20476.64%20112.796%20479.586%20115.099C482.729%20117.545%20486.8%20118.687%20490.478%20118.152C497.941%20117.063%20503.155%20110.011%20502.352%20102.12C502.012%2098.7463%20500.209%2095.6222%20497.263%2093.3371C494.62%2091.2841%20491.353%2090.1594%20488.21%2090.1594Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M411.309%20131.13C403.327%20132.308%20394.65%20126.417%20393.811%20118.116C392.971%20109.797%20398.274%20101.87%20406.827%20100.621C414.808%2099.4426%20423.486%20105.334%20424.325%20113.635C425.182%20121.954%20419.861%20129.88%20411.309%20131.13Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M409.238%20132.63C405.488%20132.63%20401.721%20131.309%20398.596%20128.881C395.079%20126.131%20392.9%20122.365%20392.49%20118.259C391.543%20108.94%20397.757%20100.603%20406.649%2099.2997C411.095%2098.6392%20415.808%2099.9603%20419.576%20102.888C423.093%20105.637%20425.272%20109.404%20425.682%20113.51C426.629%20122.829%20420.415%20131.166%20411.523%20132.469C410.755%20132.576%20409.988%20132.63%20409.238%20132.63ZM408.863%20101.817C408.238%20101.817%20407.631%20101.853%20407.024%20101.942C399.56%20103.031%20394.347%20110.082%20395.15%20117.973C395.489%20121.347%20397.293%20124.453%20400.239%20126.756C403.381%20129.202%20407.452%20130.345%20411.13%20129.809C418.594%20128.72%20423.807%20121.668%20423.004%20113.778C422.665%20110.404%20420.861%20107.28%20417.915%20104.995C415.291%20102.942%20412.005%20101.817%20408.863%20101.817Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M567.791%20147.286C576.968%20161.747%20586.699%20171.994%20597.698%20165.031C608.679%20158.069%20610.161%20140.699%20600.983%20126.239C591.806%20111.778%20575.468%20105.709%20564.47%20112.671C553.471%20119.633%20558.613%20132.826%20567.791%20147.286Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M317.962%20176.582C318.141%20176.546%20318.319%20176.546%20318.498%20176.51C318.569%20177.242%20318.623%20177.992%20318.712%20178.724C320.962%20200.039%20326.747%20219.07%20335.674%20234.905C334.121%20236.101%20332.193%20236.975%20329.836%20237.44C317.069%20239.921%20304.053%20228.317%20300.786%20211.518C297.518%20194.719%20305.178%20179.081%20317.962%20176.582Z'%20fill='%23D6D6D6'/%3e%3cpath%20d='M547.167%20216.088C549.917%20210.143%20552.006%20203.734%20553.506%20196.969C550.417%20185.579%20546.542%20174.671%20541.686%20165.852C539.775%20162.371%20535.883%20160.479%20531.955%20161.032L526.045%20161.871C519.849%20162.746%20516.153%20169.226%20518.546%20175.028C520.01%20178.599%20521.224%20180.241%20522.17%20183.454C523.831%20189.096%20520.081%20194.88%20514.243%20195.665L413.415%20209.179C408.059%20209.893%20403.095%20206.073%20402.559%20200.682C402.059%20195.737%20401.309%20192.88%20400.595%20188.953C399.685%20183.883%20394.917%20180.455%20389.829%20181.187L375.116%20183.276C369.902%20184.008%20366.242%20188.828%20366.974%20194.041C368.849%20207.751%20371.241%20234.101%20366.188%20256.952C366.117%20257.255%20366.099%20257.559%20366.063%20257.862C382.865%20269.93%20404.184%20276.018%20429.824%20276.018C437.002%20276.018%20444.501%20275.536%20452.339%20274.59L452.357%20274.679L453.857%20274.465C454.268%20274.411%20454.66%20274.34%20455.071%20274.268L456.678%20274.036C457.071%20273.983%20457.464%20273.929%20457.856%20273.875L459.32%20273.608V273.572C503.565%20265.913%20533.133%20246.58%20547.167%20216.088Z'%20fill='white'/%3e%3cpath%20d='M476.069%20249.668C484.727%20249.668%20491.746%20242.651%20491.746%20233.994C491.746%20225.337%20484.727%20218.32%20476.069%20218.32C467.411%20218.32%20460.393%20225.337%20460.393%20233.994C460.393%20242.651%20467.411%20249.668%20476.069%20249.668Z'%20fill='white'/%3e%3cpath%20d='M484.854%20240.617C485.032%20242.135%20485.318%20244.562%20485.55%20246.473C489.978%20243.116%20492.478%20237.511%20491.603%20231.62C490.443%20223.836%20483.765%20218.248%20476.141%20218.213C476.158%20218.552%20476.176%20218.855%20476.176%20218.909C476.212%20219.712%20476.248%20220.498%20476.266%20221.301C476.337%20223.497%20477.176%20224.657%20479.23%20225.461C479.783%20225.675%20480.337%20225.961%20480.836%20226.3C482.604%20227.496%20483.425%20229.263%20483.729%20231.298C483.997%20233.083%20484.175%20234.887%20484.39%20236.69C484.568%20238.011%20484.693%20239.314%20484.854%20240.617Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M460.499%20236.261C461.356%20242.045%20465.266%20246.615%20470.355%20248.597C470.319%20248.365%20470.302%20248.204%20470.284%20248.186C470.07%20246.812%20469.855%20245.437%20469.623%20244.063C469.016%20240.331%20468.373%20236.6%20467.802%20232.851C467.481%20230.816%20468.07%20229.031%20469.552%20227.567C470.105%20227.014%20470.694%20226.496%20471.248%20225.925C472.194%20224.961%20472.48%20223.854%20472.105%20222.497C471.623%20220.569%20471.784%20221.212%20471.623%20220.569C471.551%20220.284%20471.355%20219.569%20471.212%20218.962C464.017%20221.301%20459.356%20228.549%20460.499%20236.261Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M480.925%20235.797C480.89%20235.511%20480.818%20235.208%20480.729%20234.922C480.515%20234.19%20479.783%20233.762%20479.051%20233.94C478.336%20234.101%20477.872%20234.797%20477.979%20235.547C478.604%20239.725%20479.372%20244.919%20480.015%20249.168C480.979%20248.918%20481.907%20248.579%20482.782%20248.169C482.229%20244.473%20481.443%20239.225%20480.925%20235.797Z'%20fill='%23A7A9AC'/%3e%3cpath%20d='M472.855%20234.976C471.98%20235.261%20471.623%20235.833%20471.766%20236.779C472.266%20240.224%20473.069%20245.598%20473.641%20249.472C474.587%20249.615%20475.569%20249.686%20476.551%20249.65C476.373%20248.258%20476.087%20246.258%20475.944%20245.259C475.498%20242.152%20475.033%20239.046%20474.569%20235.958C474.444%20235.226%20473.587%20234.744%20472.855%20234.976Z'%20fill='%23A7A9AC'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1132_89720'%20x1='440.003'%20y1='133.148'%20x2='440.003'%20y2='371.72'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A5A5A5'/%3e%3cstop%20offset='0.4764'%20stop-color='%23E0E0E0'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1132_89720'%3e%3crect%20width='858'%20height='376'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1132_89720'%3e%3crect%20width='307'%20height='254'%20fill='white'%20transform='translate(300%2022)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Z = { key: 0 }, D = ["src"], V = { key: 1 }, k = ["src"], b = {
4
4
  key: 2,
5
5
  class: "max-w-[340px] bg-white border border-gray-200 rounded-md overflow-hidden shadow-sm flex flex-col font-sans"
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as G, ref as D, computed as W, resolveComponent as C, openBlock as g, createElementBlock as $, createElementVNode as o, toDisplayString as x, createBlock as j, withCtx as V, createCommentVNode as O, createVNode as n, unref as e, Fragment as Q, createTextVNode as L, renderList as h, onMounted as oe, resolveDynamicComponent as ne } from "vue";
2
- import { o as M } from "./index-BBSrL5Hb.js";
3
- import { u as _, p as le } from "./index-C-K9TPBG.js";
2
+ import { o as M } from "./index-FMXYkp6e.js";
3
+ import { u as _, p as le } from "./index-HB-taFPL.js";
4
4
  import { useRouter as re } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-CTlVogBQ.js";
6
- import { P as ie } from "./payout-account-D5UsGVu2.js";
7
- import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CiqJxutL.js";
6
+ import { P as ie } from "./payout-account-0jjiMCJQ.js";
7
+ import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Ckul-6N5.js";
8
8
  import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
- import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-BSX8ZhuG.js";
9
+ import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-DhbTRCYM.js";
10
10
  import { useSnackbar as ee } from "@feedmepos/ui-library";
11
11
  import { u as z } from "./error-K1CakhA9.js";
12
12
  const de = ["src"], F = /* @__PURE__ */ G({
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as Pn, ref as u, computed as rn, resolveComponent as x, openBlock as i, createElementBlock as y, createElementVNode as o, toDisplayString as _, renderSlot as Rn, createCommentVNode as a, Fragment as $, createBlock as M, withCtx as c, createVNode as f, unref as t, onMounted as Cn, renderList as Qn, createSlots as Fn, createTextVNode as On, watch as Ln, nextTick as Jn, h as Dn, resolveDynamicComponent as Kn } from "vue";
2
2
  import { z as w, a as p } from "./validator-CTlVogBQ.js";
3
- import { _ as un } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CiqJxutL.js";
3
+ import { _ as un } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Ckul-6N5.js";
4
4
  import { P as En, _ as qn } from "./PDFViewer-CIPPbzWD.js";
5
5
  import { useCoreStore as kn, useI18n as Wn } from "@feedmepos/mf-common";
6
- import { o as en } from "./index-BBSrL5Hb.js";
7
- import { p as In } from "./index-2pJ6aK3N.js";
6
+ import { o as en } from "./index-FMXYkp6e.js";
7
+ import { p as In } from "./index-BP3lxBw_.js";
8
8
  import { useSnackbar as Yn, useFormChild as Un, useDialog as _n } from "@feedmepos/ui-library";
9
- import { u as gn } from "./index-C-K9TPBG.js";
9
+ import { u as gn } from "./index-HB-taFPL.js";
10
10
  import { s as Vn } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as $n } from "./payout-account-D5UsGVu2.js";
11
+ import { P as $n } from "./payout-account-0jjiMCJQ.js";
12
12
  import { useRouter as Sn } from "vue-router";
13
13
  const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold" }, et = ["src"], ft = ["src"], k = /* @__PURE__ */ Pn({
14
14
  __name: "UploadButton",
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as fA, ref as X, computed as W, onMounted as pA, watch as gA, onBeforeUnmount as vA, resolveComponent as C, openBlock as l, createBlock as R, unref as o, withCtx as Z, createElementVNode as t, createVNode as x, createElementBlock as b, Fragment as U, renderList as K, normalizeClass as PA, toDisplayString as r, createTextVNode as B, createCommentVNode as T } from "vue";
2
2
  import { _ as BA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
3
- import { u as DA, e as F, p as f } from "./index-C-K9TPBG.js";
3
+ import { u as DA, e as F, p as f } from "./index-HB-taFPL.js";
4
4
  import { u as N } from "./error-K1CakhA9.js";
5
5
  import { useI18n as wA, useCoreStore as xA } from "@feedmepos/mf-common";
6
6
  import { useSnackbar as HA } from "@feedmepos/ui-library";
7
7
  import { _ as LA } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-D08ykrWf.js";
8
- import { o as G } from "./index-BBSrL5Hb.js";
8
+ import { o as G } from "./index-FMXYkp6e.js";
9
9
  import { useRouter as CA } from "vue-router";
10
10
  import { c as TA } from "./index-MdV54cWO.js";
11
11
  import { s as QA, t as OA } from "./tyro-BovmsorS.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as x, ref as w, watch as f, computed as y, resolveComponent as _, openBlock as k, createBlock as F, withCtx as b, createElementVNode as K, createVNode as m, isRef as n, unref as o, h as O } from "vue";
2
- import { o as R } from "./index-BBSrL5Hb.js";
3
- import { p as d } from "./index-C-K9TPBG.js";
4
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Dh_I8dOY.js";
2
+ import { o as R } from "./index-FMXYkp6e.js";
3
+ import { p as d } from "./index-HB-taFPL.js";
4
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-BqUNz7vW.js";
5
5
  import { useRouter as D } from "vue-router";
6
6
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { h as U } from "./moment-h96o7c8I.js";
8
- import { u as C } from "./index-9bLqrnE-.js";
8
+ import { u as C } from "./index-DyRqovBt.js";
9
9
  import { _ as E } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
10
- import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-BSX8ZhuG.js";
10
+ import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-DhbTRCYM.js";
11
11
  const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
12
12
  __name: "OnboardSubmission",
13
13
  setup($) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as y, resolveComponent as p, openBlock as f, createElementBlock as N, createVNode as m, normalizeClass as v, withCtx as b, createElementVNode as P, toDisplayString as k, createCommentVNode as I, createBlock as V, computed as F, ref as O, watch as R, isRef as _, unref as l, h as x } from "vue";
2
2
  import { h as K } from "./moment-h96o7c8I.js";
3
- import { u as T } from "./index-9bLqrnE-.js";
4
- import { p as $ } from "./index-C-K9TPBG.js";
3
+ import { u as T } from "./index-DyRqovBt.js";
4
+ import { p as $ } from "./index-HB-taFPL.js";
5
5
  import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
- import { P as E } from "./payout-account-D5UsGVu2.js";
7
- import { p as A } from "./index-2pJ6aK3N.js";
6
+ import { P as E } from "./payout-account-0jjiMCJQ.js";
7
+ import { p as A } from "./index-BP3lxBw_.js";
8
8
  import "@feedmepos/ui-library";
9
- import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-Dh_I8dOY.js";
9
+ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-BqUNz7vW.js";
10
10
  import { useRouter as Y } from "vue-router";
11
11
  import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
12
12
  const W = { class: "flex flex-col gap-1" }, j = {