@feedmepos/mf-payment 1.4.42 → 1.4.44
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/{Actions.vue_vue_type_script_setup_true_lang-Cnd9TJ68.js → Actions.vue_vue_type_script_setup_true_lang-sYaYPQ_s.js} +1 -1
- package/dist/{OnboardForm-waChRcKB.js → OnboardForm-BHwzJNnl.js} +2 -2
- package/dist/{OnboardForm-BJCOkcxV.js → OnboardForm-D-p05sjq.js} +2 -2
- package/dist/{OnboardSubmission-LwipxLAE.js → OnboardSubmission-BUp1Q-al.js} +1 -1
- package/dist/{OnboardSubmission-CxWmsLQi.js → OnboardSubmission-DjwHpqdD.js} +2 -2
- package/dist/{PayoutAccount-xwhPrJB1.js → PayoutAccount-C6HJIzYS.js} +1 -1
- package/dist/{PayoutAccount-uY7vQRSE.js → PayoutAccount-C6IwKGOz.js} +3 -3
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CxX3_Xyg.js +63 -0
- package/dist/{RestaurantSetting-rUCiB-f_.js → RestaurantSetting-D1APrvzM.js} +1 -1
- package/dist/{Settlement-DJ6rwp_4.js → Settlement-C_rIV3fu.js} +17 -26
- package/dist/{SettlementTransactions-B7NwtUmV.js → SettlementTransactions-BIodJ6DN.js} +1 -1
- package/dist/{SettlementTransactions-Bh8lUwJw.js → SettlementTransactions-DYAlKO__.js} +1 -1
- package/dist/{Transaction-95UATrK6.js → Transaction-D51QiCaP.js} +1 -1
- package/dist/Transaction-ouagKBic.js +456 -0
- package/dist/{TransactionOld-D2zkgLmw.js → TransactionOld-CDxar7K3.js} +10 -6
- package/dist/api/payment-gateway/index.d.ts +2 -2
- package/dist/{app-CHdfyK8E.js → app-DmIXP-hM.js} +64 -64
- package/dist/app.js +1 -1
- package/dist/{assets-CpvC_0O-.js → assets--JQWdCl5.js} +22 -21
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/{index-DUhSc35c.js → index-DAuJC2FO.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-Pf3v_PH7.js → payout-account-eSXqQE97.js} +2 -2
- package/dist/{plugins-BePlqvwU.js → plugins-DK1OMbz2.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-Bmt9k4Tu.js +0 -37
- package/dist/Transaction-wIXTvNTt.js +0 -449
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, resolveComponent as a, openBlock as r, createBlock as l, normalizeClass as w, withCtx as i, createElementVNode as m, toDisplayString as h, unref as f, createElementBlock as d, createVNode as b, Fragment as F, renderList as T } from "vue";
|
|
2
2
|
import { e as p } from "./index-cCTvH31Z.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
|
-
import { g as y, a as A } from "./assets
|
|
4
|
+
import { g as y, a as A } from "./assets--JQWdCl5.js";
|
|
5
5
|
const C = /* @__PURE__ */ c({
|
|
6
6
|
__name: "Status",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as R, createElementVNode as n, toDisplayString as B, Fragment as z, createBlock as T, withCtx as c, createVNode as o, createCommentVNode as j, unref as e, createTextVNode as E, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
|
2
|
-
import { o as _ } from "./index-
|
|
2
|
+
import { o as _ } from "./index-DAuJC2FO.js";
|
|
3
3
|
import { u as M } from "./index-cCTvH31Z.js";
|
|
4
4
|
import { useRouter as h } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-D5jtpt9A.js";
|
|
6
|
-
import { P as ee } from "./payout-account-
|
|
6
|
+
import { P as ee } from "./payout-account-eSXqQE97.js";
|
|
7
7
|
import { P as le } from "./PDFViewer-DHKBD99J.js";
|
|
8
8
|
import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
9
|
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js";
|
|
@@ -2,12 +2,12 @@ import { defineComponent as U, ref as D, computed as vf, resolveComponent as w,
|
|
|
2
2
|
import { z as d, a as s } from "./validator-D5jtpt9A.js";
|
|
3
3
|
import { P as jf, _ as bf } from "./PDFViewer-DHKBD99J.js";
|
|
4
4
|
import { useCoreStore as xf } from "@feedmepos/mf-common";
|
|
5
|
-
import { o as F } from "./index-
|
|
5
|
+
import { o as F } from "./index-DAuJC2FO.js";
|
|
6
6
|
import { p as af } from "./index-B9kHmV6p.js";
|
|
7
7
|
import { useSnackbar as df } from "@feedmepos/ui-library";
|
|
8
8
|
import { u as Af } from "./index-cCTvH31Z.js";
|
|
9
9
|
import { s as sf } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { P as Lf } from "./payout-account-
|
|
10
|
+
import { P as Lf } from "./payout-account-eSXqQE97.js";
|
|
11
11
|
import { useRouter as yf } from "vue-router";
|
|
12
12
|
const uf = { class: "flex" }, pf = { class: "justify-self-center" }, Df = ["src"], o = /* @__PURE__ */ U({
|
|
13
13
|
__name: "UploadButton",
|
|
@@ -1,5 +1,5 @@
|
|
|
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, unref as o, isRef as n, h as O } from "vue";
|
|
2
|
-
import { o as R } from "./index-
|
|
2
|
+
import { o as R } from "./index-DAuJC2FO.js";
|
|
3
3
|
import { p as d } from "./index-cCTvH31Z.js";
|
|
4
4
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-NUicoOT2.js";
|
|
5
5
|
import { useRouter as D } from "vue-router";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as $, ref as H, computed as U, onMounted as D, watch as
|
|
|
2
2
|
import { _ as q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
3
3
|
import { u as G, p as J, e as L } from "./index-cCTvH31Z.js";
|
|
4
4
|
import { useI18n as K, useCoreStore as Q } from "@feedmepos/mf-common";
|
|
5
|
-
import { _ as X } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { o as Z } from "./index-
|
|
5
|
+
import { _ as X } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CxX3_Xyg.js";
|
|
6
|
+
import { o as Z } from "./index-DAuJC2FO.js";
|
|
7
7
|
import { useRouter as w } from "vue-router";
|
|
8
8
|
import { i as ss } from "./softspace-25X2bjBx.js";
|
|
9
9
|
const es = { class: "flex justify-left items-center mb-6" }, ts = { class: "grid grid-cols-3 gap-6" }, os = { class: "flex items-center" }, ns = ["src"], is = { class: "px-16 text-sm flex-grow" }, rs = { class: "list-disc pl-6" }, ms = {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
|
|
|
2
2
|
import { u as O } from "./index-BLyx8ZQr.js";
|
|
3
3
|
import { p as K } from "./index-cCTvH31Z.js";
|
|
4
4
|
import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
|
5
|
-
import { P as V } from "./payout-account-
|
|
5
|
+
import { P as V } from "./payout-account-eSXqQE97.js";
|
|
6
6
|
import { p as D } from "./index-B9kHmV6p.js";
|
|
7
7
|
import "@feedmepos/ui-library";
|
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-NUicoOT2.js";
|
|
@@ -3,12 +3,12 @@ import { p as K } from "./index-B9kHmV6p.js";
|
|
|
3
3
|
import { p as U, u as gA, e as lA } from "./index-cCTvH31Z.js";
|
|
4
4
|
import { defineStore as rA } from "pinia";
|
|
5
5
|
import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
|
|
6
|
-
import { c as cA, a as _, P as J } from "./payout-account-
|
|
6
|
+
import { c as cA, a as _, P as J } from "./payout-account-eSXqQE97.js";
|
|
7
7
|
import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
|
|
8
8
|
import { z as F, a as H } from "./validator-D5jtpt9A.js";
|
|
9
9
|
import { P as $ } from "./PDFViewer-DHKBD99J.js";
|
|
10
|
-
import "./app-
|
|
11
|
-
import "./plugins-
|
|
10
|
+
import "./app-DmIXP-hM.js";
|
|
11
|
+
import "./plugins-DK1OMbz2.js";
|
|
12
12
|
import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
13
13
|
function wA() {
|
|
14
14
|
return {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as b, ref as k, computed as m, resolveComponent as s, openBlock as i, createElementBlock as p, createVNode as a, withCtx as d, createElementVNode as t, toDisplayString as x, unref as _, Fragment as F, renderList as S, createBlock as w } from "vue";
|
|
2
|
+
import { useCoreStore as C, useI18n as I } from "@feedmepos/mf-common";
|
|
3
|
+
const M = { class: "inline-flex" }, V = { 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" }, B = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = { class: "relative" }, N = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, j = /* @__PURE__ */ b({
|
|
4
|
+
__name: "RestaurantSelector",
|
|
5
|
+
setup(z) {
|
|
6
|
+
const n = k(""), c = C(), { t: f } = I(), u = m(() => {
|
|
7
|
+
const e = c.currentRestaurant.value;
|
|
8
|
+
return console.log(u), (e == null ? void 0 : e.profile.name) + " (" + ((e == null ? void 0 : e.profile.code) ?? "--") + ")";
|
|
9
|
+
}), v = m(() => c.restaurants.value.filter((e) => e.managable).filter((e) => {
|
|
10
|
+
if (!n.value)
|
|
11
|
+
return !0;
|
|
12
|
+
const l = new RegExp(n.value, "i"), r = JSON.stringify(e.profile);
|
|
13
|
+
return l.test(r);
|
|
14
|
+
}).map((e) => ({
|
|
15
|
+
label: `${e.profile.name} (${e.profile.code ?? "--"})`,
|
|
16
|
+
key: e._id,
|
|
17
|
+
value: e
|
|
18
|
+
})));
|
|
19
|
+
return (e, l) => {
|
|
20
|
+
const r = s("FmIcon"), h = s("FmSearch"), y = s("FmMenuItem"), g = s("FmMenu");
|
|
21
|
+
return i(), p("div", M, [
|
|
22
|
+
a(g, { "close-on-click": !0 }, {
|
|
23
|
+
"menu-button": d(() => [
|
|
24
|
+
t("div", V, [
|
|
25
|
+
a(r, {
|
|
26
|
+
name: "store",
|
|
27
|
+
size: "sm"
|
|
28
|
+
}),
|
|
29
|
+
t("div", B, x(u.value), 1),
|
|
30
|
+
a(r, {
|
|
31
|
+
name: "expand_more",
|
|
32
|
+
size: "sm"
|
|
33
|
+
})
|
|
34
|
+
])
|
|
35
|
+
]),
|
|
36
|
+
default: d(() => [
|
|
37
|
+
t("div", E, [
|
|
38
|
+
t("div", N, [
|
|
39
|
+
a(h, {
|
|
40
|
+
"model-value": n.value,
|
|
41
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => n.value = o),
|
|
42
|
+
placeholder: _(f)("payment.components.select")
|
|
43
|
+
}, null, 8, ["model-value", "placeholder"])
|
|
44
|
+
]),
|
|
45
|
+
t("div", null, [
|
|
46
|
+
(i(!0), p(F, null, S(v.value, (o) => (i(), w(y, {
|
|
47
|
+
key: o.key,
|
|
48
|
+
label: o.label,
|
|
49
|
+
sublabel: "Restaurant",
|
|
50
|
+
onClick: () => _(c).changeRestaurant(o.value)
|
|
51
|
+
}, null, 8, ["label", "onClick"]))), 128))
|
|
52
|
+
])
|
|
53
|
+
])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})
|
|
57
|
+
]);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
j as _
|
|
63
|
+
};
|
|
@@ -416,7 +416,7 @@ const C = {
|
|
|
416
416
|
);
|
|
417
417
|
e.value.merchantId = l, p.value = !0, m.open({
|
|
418
418
|
type: "success",
|
|
419
|
-
title: "Grab Setting sync
|
|
419
|
+
title: "Grab Setting sync successfully, you will still need to save the changes."
|
|
420
420
|
});
|
|
421
421
|
} catch (l) {
|
|
422
422
|
m.open({
|
|
@@ -10,7 +10,7 @@ import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8ST
|
|
|
10
10
|
import { useRouter as L } from "vue-router";
|
|
11
11
|
import { u as J } from "./index-BLyx8ZQr.js";
|
|
12
12
|
import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
13
|
-
import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CxX3_Xyg.js";
|
|
14
14
|
import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
15
15
|
const X = /* @__PURE__ */ C({
|
|
16
16
|
__name: "SettlementTable",
|
|
@@ -328,7 +328,7 @@ const X = /* @__PURE__ */ C({
|
|
|
328
328
|
], 64);
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
}), ne = { class: "flex justify-between items-center mb-6" }, oe = { class: "flex space-x-8 items-center" }, le = { class: "flex space-x-4 self-center" }, se = { class: "mb-6" },
|
|
331
|
+
}), ne = { class: "flex justify-between items-center mb-6" }, oe = { class: "flex space-x-8 items-center" }, le = { class: "flex space-x-4 self-center" }, se = { class: "mb-6" }, we = /* @__PURE__ */ C({
|
|
332
332
|
__name: "Settlement",
|
|
333
333
|
setup(c) {
|
|
334
334
|
const n = L(), { tab: l, dateRange: s } = J({
|
|
@@ -339,28 +339,21 @@ const X = /* @__PURE__ */ C({
|
|
|
339
339
|
}
|
|
340
340
|
}), { t: f } = K(), { isLoading: y, startAsyncCall: h } = z(!0), { currentRestaurant: b } = E(), a = I(), e = k([]), o = k([]);
|
|
341
341
|
async function i() {
|
|
342
|
-
const g = await A.readRestaurantSettlements(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
);
|
|
342
|
+
const g = await A.readRestaurantSettlements({
|
|
343
|
+
start: s.value.startDate,
|
|
344
|
+
end: s.value.endDate
|
|
345
|
+
});
|
|
348
346
|
e.value = g;
|
|
349
347
|
}
|
|
350
348
|
async function F() {
|
|
351
|
-
const g = await A.readRestaurantRMSSettlements(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
);
|
|
349
|
+
const g = await A.readRestaurantRMSSettlements({
|
|
350
|
+
start: s.value.startDate,
|
|
351
|
+
end: s.value.endDate
|
|
352
|
+
});
|
|
357
353
|
o.value = g;
|
|
358
354
|
}
|
|
359
355
|
async function x() {
|
|
360
|
-
await h(async () => Promise.all([
|
|
361
|
-
i(),
|
|
362
|
-
F()
|
|
363
|
-
]));
|
|
356
|
+
await h(async () => Promise.all([i(), F()]));
|
|
364
357
|
}
|
|
365
358
|
async function S(g) {
|
|
366
359
|
const p = $(g.summary.completedAt).format("YYYY/MM/DD");
|
|
@@ -383,7 +376,11 @@ const X = /* @__PURE__ */ C({
|
|
|
383
376
|
default: _(() => [
|
|
384
377
|
m("div", ne, [
|
|
385
378
|
m("div", oe, [
|
|
386
|
-
u(W)
|
|
379
|
+
u(W),
|
|
380
|
+
u(G, {
|
|
381
|
+
modelValue: t(s),
|
|
382
|
+
"onUpdate:modelValue": p[0] || (p[0] = (Y) => M(s) ? s.value = Y : null)
|
|
383
|
+
}, null, 8, ["modelValue"])
|
|
387
384
|
]),
|
|
388
385
|
m("div", le, [
|
|
389
386
|
u(Q, {
|
|
@@ -402,12 +399,6 @@ const X = /* @__PURE__ */ C({
|
|
|
402
399
|
])
|
|
403
400
|
]),
|
|
404
401
|
m("div", se, [
|
|
405
|
-
u(G, {
|
|
406
|
-
modelValue: t(s),
|
|
407
|
-
"onUpdate:modelValue": p[0] || (p[0] = (Y) => M(s) ? s.value = Y : null)
|
|
408
|
-
}, null, 8, ["modelValue"])
|
|
409
|
-
]),
|
|
410
|
-
m("div", me, [
|
|
411
402
|
u(j, {
|
|
412
403
|
modelValue: t(l),
|
|
413
404
|
"onUpdate:modelValue": p[1] || (p[1] = (Y) => M(l) ? l.value = Y : null),
|
|
@@ -449,5 +440,5 @@ const X = /* @__PURE__ */ C({
|
|
|
449
440
|
}
|
|
450
441
|
});
|
|
451
442
|
export {
|
|
452
|
-
|
|
443
|
+
we as default
|
|
453
444
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as f, openBlock as F, createBloc
|
|
|
2
2
|
import { e as E, u as G } from "./index-cCTvH31Z.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as H, a as q, t as J } from "./assets
|
|
5
|
+
import { g as H, a as q, t as J } from "./assets--JQWdCl5.js";
|
|
6
6
|
import { t as Q } from "./index-B0uA-O38.js";
|
|
7
7
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
8
8
|
import { useRouter as X } from "vue-router";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as d, openBlock as A, createBloc
|
|
|
2
2
|
import { e as k, u as q } from "./index-cCTvH31Z.js";
|
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
|
5
|
-
import { g as W, a as X, t as Z } from "./assets
|
|
5
|
+
import { g as W, a as X, t as Z } from "./assets--JQWdCl5.js";
|
|
6
6
|
import { t as P } from "./index-B0uA-O38.js";
|
|
7
7
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
8
8
|
import { useRouter as te } from "vue-router";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as d, openBlock as m, createBlock as T, normalizeClass as C, withCtx as h, createElementVNode as g, toDisplayString as E, unref as f, createElementBlock as D, createVNode as y, Fragment as Y, renderList as O, createTextVNode as P, ref as B, watch as x, isRef as N, h as _ } from "vue";
|
|
2
2
|
import { t as w } from "./index-B0uA-O38.js";
|
|
3
3
|
import { h as F } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { g as U, a as G, t as L, b as q } from "./assets
|
|
4
|
+
import { g as U, a as G, t as L, b as q } from "./assets--JQWdCl5.js";
|
|
5
5
|
import { u as z } from "./index-BLyx8ZQr.js";
|
|
6
6
|
import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
|
7
7
|
import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|