@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BpMu58oE.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-z-gdodfR.js} +361 -360
- package/dist/PayoutAccountSetting-jZJu4WWL.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-DfBX5uPS.js} +56 -54
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js +33 -0
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-KPtRoif-.js} +3 -3
- package/dist/{Settlement-Fh86ozFD.js → Settlement-DbMQAA0_.js} +9 -8
- package/dist/Settlement-smC2PDKA.js +445 -0
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-Bs8Il-GO.js} +14 -14
- package/dist/SettlementTransactions-Cw9DnODr.js +291 -0
- package/dist/{Terminal-BUBkiYYw.js → Terminal-HLOGtr0x.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-DraCszpQ.js} +27 -27
- package/dist/Transaction-B8cHQbbP.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-_CB4VTT9.js} +123 -105
- package/dist/TransactionOld-BhzUSu5h.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-DWRPKvx2.js} +1115 -780
- package/dist/app.d.ts +278 -0
- package/dist/app.js +4 -3
- package/dist/{assets-BySnqkmr.js → assets-BImh8bhR.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-CPOGSE20.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-8eCaI4jI.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-CNZFZxie.js} +8163 -8081
- package/dist/{index-DXV5GQaF.js → index-D5DlMaeB.js} +1 -1
- package/dist/index-DtT3I2PI.js +45 -0
- package/dist/index-DuSw-EaU.js +66 -0
- package/dist/{index-CvJ2nft4.js → index-eznEOmAe.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +9 -8
- package/dist/{payout-account-DPdwKVTr.js → payout-account-CjDkY3wf.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +9 -8
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js +0 -33
- package/dist/Settlement-SeGVEdZj.js +0 -444
- package/dist/SettlementTransactions-CHRsIcoh.js +0 -291
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionOld-Pj412ujb.js +0 -99
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as
|
2
|
-
import { u as O } from "./index-
|
1
|
+
import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
2
|
+
import { u as O } from "./index-8eCaI4jI.js";
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
|
-
import { u as G } from "./index-
|
5
|
+
import { u as G } from "./index-CNZFZxie.js";
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
7
|
-
import { r as H } from "./index-
|
7
|
+
import { r as H } from "./index-eznEOmAe.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-CPOGSE20.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -17,8 +17,8 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
17
17
|
setup(p, { emit: l }) {
|
18
18
|
const m = l, u = p, s = y(!1);
|
19
19
|
return (v, c) => {
|
20
|
-
const
|
21
|
-
return x(), A(
|
20
|
+
const a = g("FmButton"), o = g("FmMenuItem"), b = g("FmMenu");
|
21
|
+
return x(), A(b, {
|
22
22
|
"max-height": 264,
|
23
23
|
shift: "",
|
24
24
|
onMenuChanged: c[0] || (c[0] = (e) => s.value = e)
|
@@ -26,7 +26,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
26
26
|
"menu-button": $(() => {
|
27
27
|
var e;
|
28
28
|
return [
|
29
|
-
f(
|
29
|
+
f(a, {
|
30
30
|
icon: s.value ? "expand_less" : "expand_more",
|
31
31
|
label: (e = v.items.find((t) => t.value === u.value)) == null ? void 0 : e.label,
|
32
32
|
"icon-position": "append",
|
@@ -41,7 +41,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
41
41
|
style: T({ maxHeight: `${e}px` }),
|
42
42
|
class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
|
43
43
|
}, [
|
44
|
-
(x(!0), R(
|
44
|
+
(x(!0), R(z, null, q(v.items, (t) => (x(), A(o, {
|
45
45
|
key: t.value,
|
46
46
|
label: t.label,
|
47
47
|
value: t.value,
|
@@ -54,9 +54,9 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
54
54
|
});
|
55
55
|
};
|
56
56
|
}
|
57
|
-
}), Z = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, ee = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, te = { class: "flex gap-8 items-center" },
|
57
|
+
}), Z = { class: "basis-72 bg-white flex items-center justify-between px-24 pt-6" }, ee = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, te = { class: "flex gap-8 items-center" }, ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible" }, ne = {
|
58
58
|
class: /* @__PURE__ */ W(["flex gap-8 items-center"])
|
59
|
-
},
|
59
|
+
}, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, le = { class: "flex gap-8" }, se = /* @__PURE__ */ F({
|
60
60
|
__name: "index",
|
61
61
|
props: {
|
62
62
|
columnDefs: {
|
@@ -77,31 +77,32 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
77
77
|
const u = [10, 20, 30, 50, 100].map((_) => ({
|
78
78
|
label: _.toString(),
|
79
79
|
value: _
|
80
|
-
})), s = p, v = m, { isLoading: c, startLoading:
|
81
|
-
if (
|
80
|
+
})), s = p, v = m, { isLoading: c, startLoading: a, stopLoading: o } = G(!0), b = y(), e = y(), t = y(10), w = y(0), r = y(1), k = async function(_ = !1) {
|
81
|
+
if (a(), _ && (e.value = [], r.value != 1)) {
|
82
82
|
r.value = 1;
|
83
83
|
return;
|
84
84
|
}
|
85
|
-
const
|
86
|
-
e.value =
|
87
|
-
},
|
85
|
+
const n = await s.paginate(t.value, r.value);
|
86
|
+
e.value = n.resources, w.value = n.meta.totalPages ?? 1, o();
|
87
|
+
}, D = C(() => r.value > 1), K = C(() => r.value < w.value), U = C(() => {
|
88
88
|
var _;
|
89
89
|
return (_ = e.value) == null ? void 0 : _.map(s.rowsDefs);
|
90
90
|
});
|
91
91
|
return I(t, () => k(!0)), I(r, () => k()), N(() => k()), l({
|
92
92
|
reset: () => k(!0)
|
93
|
-
}), (_,
|
93
|
+
}), (_, n) => {
|
94
94
|
const M = g("FmTable"), S = g("FmButton");
|
95
|
-
return x(), R(
|
95
|
+
return x(), R(z, null, [
|
96
96
|
f(M, {
|
97
|
-
modelValue:
|
98
|
-
"onUpdate:modelValue":
|
99
|
-
loading:
|
97
|
+
modelValue: b.value,
|
98
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => b.value = i),
|
99
|
+
loading: h(c),
|
100
100
|
"page-size": t.value,
|
101
|
-
"row-data":
|
101
|
+
"row-data": U.value,
|
102
102
|
"column-defs": p.columnDefs,
|
103
103
|
"hide-footer": !0,
|
104
|
-
|
104
|
+
"shrink-at": !1,
|
105
|
+
onRowClick: n[1] || (n[1] = (i) => {
|
105
106
|
var V;
|
106
107
|
return v("row-click", (V = e.value) == null ? void 0 : V.at(i.index));
|
107
108
|
})
|
@@ -109,16 +110,16 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
109
110
|
d("div", Z, [
|
110
111
|
d("div", ee, [
|
111
112
|
d("div", te, [
|
112
|
-
|
113
|
+
n[6] || (n[6] = d("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
|
113
114
|
f(L, {
|
114
|
-
items:
|
115
|
+
items: h(u),
|
115
116
|
value: t.value,
|
116
|
-
"onUpdate:modelValue":
|
117
|
+
"onUpdate:modelValue": n[2] || (n[2] = (i) => t.value = i)
|
117
118
|
}, null, 8, ["items", "value"])
|
118
119
|
]),
|
119
|
-
d("span",
|
120
|
+
d("span", ae, B((r.value - 1) * t.value) + " - " + B((r.value - 1) * t.value + t.value), 1)
|
120
121
|
]),
|
121
|
-
d("div",
|
122
|
+
d("div", ne, [
|
122
123
|
f(L, {
|
123
124
|
items: Array.from(Array(w.value), (i, V) => V + 1).map(
|
124
125
|
(i) => ({
|
@@ -127,23 +128,23 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
127
128
|
})
|
128
129
|
),
|
129
130
|
value: r.value,
|
130
|
-
"onUpdate:modelValue":
|
131
|
+
"onUpdate:modelValue": n[3] || (n[3] = (i) => r.value = i)
|
131
132
|
}, null, 8, ["items", "value"]),
|
132
|
-
d("span",
|
133
|
+
d("span", oe, " Page " + B(r.value) + " of " + B(w.value), 1),
|
133
134
|
d("div", le, [
|
134
135
|
f(S, {
|
135
|
-
disabled: !
|
136
|
+
disabled: !D.value,
|
136
137
|
icon: "chevron_left",
|
137
138
|
"icon-color": "neutral-black",
|
138
139
|
variant: "tertiary",
|
139
|
-
onClick:
|
140
|
+
onClick: n[4] || (n[4] = () => r.value -= 1)
|
140
141
|
}, null, 8, ["disabled"]),
|
141
142
|
f(S, {
|
142
|
-
disabled: !
|
143
|
+
disabled: !K.value,
|
143
144
|
icon: "chevron_right",
|
144
145
|
"icon-color": "neutral-black",
|
145
146
|
variant: "tertiary",
|
146
|
-
onClick:
|
147
|
+
onClick: n[5] || (n[5] = () => r.value += 1)
|
147
148
|
}, null, 8, ["disabled"])
|
148
149
|
])
|
149
150
|
])
|
@@ -205,34 +206,35 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
205
206
|
]);
|
206
207
|
};
|
207
208
|
}
|
208
|
-
}), ie = { class: "flex
|
209
|
+
}), ie = { class: "flex justify-between mb-6" }, xe = /* @__PURE__ */ F({
|
209
210
|
__name: "Restaurant",
|
210
211
|
setup(p) {
|
211
212
|
const { searchKey: l } = O({
|
212
|
-
searchKey: ""
|
213
|
+
searchKey: "",
|
214
|
+
crtbiz: !1
|
213
215
|
}), m = y(), u = J();
|
214
216
|
let s;
|
215
217
|
I(l, async () => {
|
216
218
|
s && clearTimeout(s), s = setTimeout(
|
217
219
|
() => {
|
218
|
-
var
|
219
|
-
return (
|
220
|
+
var a;
|
221
|
+
return (a = m.value) == null ? void 0 : a.reset();
|
220
222
|
},
|
221
223
|
700
|
222
224
|
);
|
223
225
|
});
|
224
|
-
const v = function(
|
225
|
-
const
|
226
|
+
const v = function(a) {
|
227
|
+
const o = a.payoutAccount;
|
226
228
|
return {
|
227
|
-
id:
|
228
|
-
name:
|
229
|
-
hasPayoutAccount: (
|
229
|
+
id: a._id,
|
230
|
+
name: a.profile.name,
|
231
|
+
hasPayoutAccount: (o == null ? void 0 : o.enable) && o.status != "NEW"
|
230
232
|
};
|
231
233
|
}, c = [
|
232
234
|
{
|
233
235
|
header: () => "ID",
|
234
236
|
accessorKey: "id",
|
235
|
-
cell: ({ cell:
|
237
|
+
cell: ({ cell: a }) => P(Q, { data: a.getValue() }),
|
236
238
|
meta: {
|
237
239
|
maxWidth: "72px",
|
238
240
|
textAlign: "right"
|
@@ -248,7 +250,7 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
248
250
|
meta: {
|
249
251
|
maxWidth: "64px"
|
250
252
|
},
|
251
|
-
cell: ({ cell:
|
253
|
+
cell: ({ cell: a, row: o }) => P(re, { row: o, data: a.getValue() })
|
252
254
|
},
|
253
255
|
{
|
254
256
|
header: () => "Actions",
|
@@ -256,20 +258,20 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
256
258
|
meta: {
|
257
259
|
maxWidth: "64px"
|
258
260
|
},
|
259
|
-
cell: ({ row:
|
261
|
+
cell: ({ row: a }) => P(ue, { id: a.original.id })
|
260
262
|
}
|
261
263
|
];
|
262
|
-
return (
|
263
|
-
const
|
264
|
+
return (a, o) => {
|
265
|
+
const b = g("FmSearch");
|
264
266
|
return x(), A(j, {
|
265
267
|
title: "Restaurants",
|
266
268
|
loading: !1
|
267
269
|
}, {
|
268
270
|
default: $(() => [
|
269
271
|
d("div", ie, [
|
270
|
-
f(
|
271
|
-
"model-value":
|
272
|
-
"onUpdate:modelValue":
|
272
|
+
f(b, {
|
273
|
+
"model-value": h(l),
|
274
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => E(l) ? l.value = e : null),
|
273
275
|
class: "mr-8",
|
274
276
|
label: "Search",
|
275
277
|
placeholder: "Search Restaurants ..."
|
@@ -280,14 +282,14 @@ const Y = ["id"], L = /* @__PURE__ */ F({
|
|
280
282
|
ref: m,
|
281
283
|
"column-defs": c,
|
282
284
|
"rows-defs": v,
|
283
|
-
paginate: (e, t) =>
|
285
|
+
paginate: (e, t) => h(H).readRestaurantWithPagination({
|
284
286
|
limit: e,
|
285
287
|
skip: t - 1,
|
286
288
|
sortBy: "name",
|
287
|
-
search:
|
289
|
+
search: h(l),
|
288
290
|
descending: !1
|
289
291
|
}),
|
290
|
-
onRowClick:
|
292
|
+
onRowClick: o[1] || (o[1] = (e) => h(u).push({
|
291
293
|
name: "mf-payment-admin.restaurant-settings",
|
292
294
|
params: {
|
293
295
|
restaurantId: e._id
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { defineComponent as i, computed as l, resolveComponent as d, openBlock as _, createBlock as v, unref as a } from "vue";
|
2
|
+
import { useCoreStore as f, useI18n as S } from "@feedmepos/mf-common";
|
3
|
+
const V = /* @__PURE__ */ i({
|
4
|
+
__name: "RestaurantSelector",
|
5
|
+
setup(b) {
|
6
|
+
const t = f(), { t: s } = S(), r = l(() => {
|
7
|
+
var e;
|
8
|
+
return (e = t.currentRestaurant.value) == null ? void 0 : e._id;
|
9
|
+
}), u = l(() => t.restaurants.value.filter((e) => e.managable).map((e) => ({
|
10
|
+
label: e.profile.name,
|
11
|
+
value: e._id
|
12
|
+
})));
|
13
|
+
return (e, n) => {
|
14
|
+
const m = d("FmSelect");
|
15
|
+
return _(), v(m, {
|
16
|
+
label: a(s)("components.restaurant"),
|
17
|
+
modelValue: r.value,
|
18
|
+
"onUpdate:modelValue": [
|
19
|
+
n[0] || (n[0] = (o) => r.value = o),
|
20
|
+
n[1] || (n[1] = (o) => {
|
21
|
+
const p = a(t).restaurants.value.find((c) => c._id == o);
|
22
|
+
a(t).changeRestaurant(p);
|
23
|
+
})
|
24
|
+
],
|
25
|
+
class: "w-[220px]",
|
26
|
+
items: u.value
|
27
|
+
}, null, 8, ["label", "modelValue", "items"]);
|
28
|
+
};
|
29
|
+
}
|
30
|
+
});
|
31
|
+
export {
|
32
|
+
V as _
|
33
|
+
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
|
2
|
-
import { g as T, b as R, u as E, e as U } from "./index-
|
2
|
+
import { g as T, b as R, u as E, e as U } from "./index-CNZFZxie.js";
|
3
3
|
import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as A } from "vue-router";
|
5
|
-
import { u as L } from "./index-
|
5
|
+
import { u as L } from "./index-8eCaI4jI.js";
|
6
6
|
import { z as p, a as v } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
|
-
import { r as z } from "./index-
|
8
|
+
import { r as z } from "./index-eznEOmAe.js";
|
9
9
|
const _ = {
|
10
10
|
async get(n) {
|
11
11
|
return T(
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { u as D } from "./index-
|
1
|
+
import { defineComponent as h, ref as C, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
|
2
|
+
import { u as D } from "./index-CNZFZxie.js";
|
3
3
|
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as c } from "./index-
|
4
|
+
import { s as c } from "./index-D5DlMaeB.js";
|
5
5
|
import { useSnackbar as T } from "@feedmepos/ui-library";
|
6
6
|
import { d as v } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
8
8
|
import { useRouter as q } from "vue-router";
|
9
9
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as O } from "./index-
|
10
|
+
import { u as O } from "./index-8eCaI4jI.js";
|
11
11
|
import { u as U } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
|
-
const z = /* @__PURE__ */
|
13
|
+
const z = /* @__PURE__ */ h({
|
14
14
|
__name: "SettlementTable",
|
15
15
|
props: {
|
16
16
|
data: {
|
@@ -24,7 +24,7 @@ const z = /* @__PURE__ */ C({
|
|
24
24
|
},
|
25
25
|
emits: ["row-click"],
|
26
26
|
setup(w, { emit: u }) {
|
27
|
-
const r = w, i = u, o =
|
27
|
+
const r = w, i = u, o = C(""), p = [
|
28
28
|
{
|
29
29
|
header: () => "Settlement ID",
|
30
30
|
accessorKey: "id",
|
@@ -62,16 +62,17 @@ const z = /* @__PURE__ */ C({
|
|
62
62
|
modelValue: o.value,
|
63
63
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
|
64
64
|
"row-data": f.value,
|
65
|
+
"shrink-at": !1,
|
65
66
|
"column-defs": p,
|
66
67
|
loading: r.loading,
|
67
68
|
onRowClick: n[1] || (n[1] = (l) => i("row-click", r.data.at(l.index)))
|
68
69
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
69
70
|
};
|
70
71
|
}
|
71
|
-
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4" }, ie = /* @__PURE__ */
|
72
|
+
}), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4" }, ie = /* @__PURE__ */ h({
|
72
73
|
__name: "Settlement",
|
73
74
|
setup(w) {
|
74
|
-
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o =
|
75
|
+
const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o = C([]), p = q(), f = T(), { dateRange: e } = O({
|
75
76
|
dateRange: {
|
76
77
|
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
77
78
|
endDate: g().endOf("day").format("YYYY-MM-DD")
|