@feedmepos/mf-payment 0.0.0-beta.8 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/PayoutAccount-DZaKHWcy.js +612 -0
- package/dist/{PayoutAccount-CpatyqJa.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
- package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-Bx3zAkIw.js +195 -0
- package/dist/Settlement-mwnO-iYH.js +150 -0
- package/dist/{SettlementTransactions-DT1A_tI5.js → SettlementTransactions-AaYyTH96.js} +99 -105
- package/dist/{SettlementTransactions-CkU0gCHb.js → SettlementTransactions-D_SVuKyR.js} +117 -130
- package/dist/Terminal-68OQnhM3.js +372 -0
- package/dist/TerminalSetting-DEFim0xg.js +379 -0
- package/dist/TerminalTransaction-CQjNdffr.js +426 -0
- package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
- package/dist/Transaction-68L7JzIk.js +242 -0
- package/dist/Transaction-a1VfiCP_.js +405 -0
- package/dist/api/index.d.ts +14 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/settlement/index.d.ts +12 -13
- package/dist/api/terminal/index.d.ts +13 -1
- package/dist/api/terminal-transaction/index.d.ts +12 -1
- package/dist/api/transaction/index.d.ts +7 -2
- package/dist/app-C9FRsUfb.js +6343 -0
- package/dist/app.js +3 -198
- package/dist/assets-Bji7O2YD.js +45 -0
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/components/CursorTable/index.vue.d.ts +24 -5
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/components/RouteCell.vue.d.ts +8 -0
- package/dist/helpers/assets.d.ts +2 -0
- package/dist/index-Bt_OgDYn.js +56107 -0
- package/dist/index-CLYePgWW.js +47 -0
- package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
- package/dist/index-DSuZG0l6.js +52 -0
- package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
- package/dist/index-_0TroOJr.js +127 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +4 -4
- package/dist/payout-account-BWcq7OJy.js +1805 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-DqrhM5jB.js +87 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -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/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +4 -4
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
- package/dist/PayoutAccount-C0xyoyTa.js +0 -3485
- package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/TerminalTransaction-ClhuAOOF.js +0 -240
- package/dist/Transaction-BYq9Ymp_.js +0 -242
- package/dist/Transaction-Doq11qIf.js +0 -241
- package/dist/api/auth/index.d.ts +0 -7
- package/dist/assets-Dg26uQOf.js +0 -1756
- package/dist/index-Coz5aeIO.js +0 -61
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
- package/dist/mascot-side-D5UubCy7.js +0 -8
- package/dist/payout-account-D2Ftjrss.js +0 -3317
- package/dist/transaction-vRrBf3FN.js +0 -64
@@ -0,0 +1,39 @@
|
|
1
|
+
import { defineComponent as l, resolveComponent as o, openBlock as t, createElementBlock as n, createVNode as s, createElementVNode as c, renderSlot as i } from "vue";
|
2
|
+
import "@feedmepos/ui-library";
|
3
|
+
const m = {
|
4
|
+
key: 0,
|
5
|
+
class: "flex items-center justify-center min-h-[80vh]"
|
6
|
+
}, d = {
|
7
|
+
key: 1,
|
8
|
+
class: "m-6"
|
9
|
+
}, p = { class: "bg-white fm-corner-radius-md p-6" }, f = /* @__PURE__ */ l({
|
10
|
+
__name: "AdminLayout",
|
11
|
+
props: {
|
12
|
+
loading: { type: Boolean },
|
13
|
+
title: {},
|
14
|
+
onBack: { type: Function },
|
15
|
+
businessFilter: { type: Boolean },
|
16
|
+
restaurantFilter: { type: Boolean }
|
17
|
+
},
|
18
|
+
setup(u) {
|
19
|
+
return (e, _) => {
|
20
|
+
const a = o("FmCircularProgress"), r = o("FmPageHead");
|
21
|
+
return e.loading ? (t(), n("div", m, [
|
22
|
+
s(a, { size: "xxl" })
|
23
|
+
])) : (t(), n("div", d, [
|
24
|
+
s(r, {
|
25
|
+
class: "flex-grow mb-6",
|
26
|
+
title: e.title,
|
27
|
+
"back-button": !!e.onBack,
|
28
|
+
"onClick:back": e.onBack
|
29
|
+
}, null, 8, ["title", "back-button", "onClick:back"]),
|
30
|
+
c("div", p, [
|
31
|
+
i(e.$slots, "default")
|
32
|
+
])
|
33
|
+
]));
|
34
|
+
};
|
35
|
+
}
|
36
|
+
});
|
37
|
+
export {
|
38
|
+
f as _
|
39
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { defineComponent as s, ref as l, resolveComponent as u, openBlock as i, createBlock as p, mergeProps as m } from "vue";
|
2
|
+
import { u as f } from "./error-K1CakhA9.js";
|
3
|
+
import { useSnackbar as d } from "@feedmepos/ui-library";
|
4
|
+
const b = /* @__PURE__ */ s({
|
5
|
+
__name: "AsyncButton",
|
6
|
+
props: {
|
7
|
+
button: {
|
8
|
+
type: Object
|
9
|
+
},
|
10
|
+
handler: {
|
11
|
+
type: Function,
|
12
|
+
required: !0
|
13
|
+
}
|
14
|
+
},
|
15
|
+
setup(n) {
|
16
|
+
const r = n, e = l(!1), t = d();
|
17
|
+
async function a() {
|
18
|
+
e.value = !0;
|
19
|
+
try {
|
20
|
+
await r.handler();
|
21
|
+
} catch (o) {
|
22
|
+
t.open({
|
23
|
+
type: "error",
|
24
|
+
title: "Error occurs when performing action",
|
25
|
+
message: f(o)
|
26
|
+
});
|
27
|
+
} finally {
|
28
|
+
e.value = !1;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
return (o, g) => {
|
32
|
+
const c = u("FmButton");
|
33
|
+
return i(), p(c, m(n.button, {
|
34
|
+
loading: e.value,
|
35
|
+
onClick: a
|
36
|
+
}), null, 16, ["loading"]);
|
37
|
+
};
|
38
|
+
}
|
39
|
+
});
|
40
|
+
export {
|
41
|
+
b as _
|
42
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { defineComponent as i, resolveComponent as s, openBlock as l, createElementBlock as m, createVNode as d, createTextVNode as C, toDisplayString as f } from "vue";
|
2
|
+
import { c as u } from "./clipboard-4jh1WteU.js";
|
3
|
+
import { useSnackbar as _ } from "@feedmepos/ui-library";
|
4
|
+
const x = /* @__PURE__ */ i({
|
5
|
+
__name: "AutoCopyCell",
|
6
|
+
props: {
|
7
|
+
data: {}
|
8
|
+
},
|
9
|
+
setup(a) {
|
10
|
+
const o = a, t = _();
|
11
|
+
function r() {
|
12
|
+
try {
|
13
|
+
u(o.data), t.open({ title: "Text copied to clipboard." }, 1e3);
|
14
|
+
} catch {
|
15
|
+
t.open({ title: "Clipboard API incompatible." }, 1e3);
|
16
|
+
}
|
17
|
+
o.data;
|
18
|
+
}
|
19
|
+
return (e, n) => {
|
20
|
+
const p = s("FmIcon");
|
21
|
+
return l(), m("div", {
|
22
|
+
class: "flex",
|
23
|
+
onClick: n[0] || (n[0] = (c) => {
|
24
|
+
c.stopPropagation(), r();
|
25
|
+
})
|
26
|
+
}, [
|
27
|
+
d(p, {
|
28
|
+
class: "mr-4",
|
29
|
+
name: "content_copy",
|
30
|
+
size: "sm",
|
31
|
+
outline: ""
|
32
|
+
}),
|
33
|
+
C(" " + f(e.data), 1)
|
34
|
+
]);
|
35
|
+
};
|
36
|
+
}
|
37
|
+
});
|
38
|
+
export {
|
39
|
+
x as _
|
40
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import "@feedmepos/ui-library";
|
2
|
+
const s = (n, o, e, t, c) => {
|
3
|
+
const r = n.open({
|
4
|
+
title: o,
|
5
|
+
message: e,
|
6
|
+
primaryActions: { text: "Confirm", close: !0 },
|
7
|
+
secondaryActions: { text: "Cancel", close: !0 }
|
8
|
+
});
|
9
|
+
t && r.onPrimary(t);
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
s as w
|
13
|
+
};
|