@feedmepos/mf-payment 1.2.32 → 1.3.0
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/{OnboardForm-DzKMzOTu.js → OnboardForm-SR-0z0CS.js} +4 -4
- package/dist/{OnboardForm-C6PtSsCN.js → OnboardForm-kEy0cnQ-.js} +4 -4
- package/dist/{OnboardSubmission-BJd4ad6M.js → OnboardSubmission-Bc7ys2zC.js} +5 -5
- package/dist/{OnboardSubmission-ZXMWLseU.js → OnboardSubmission-D__D6hwH.js} +2 -2
- package/dist/{PayoutAccount-CXACf-wl.js → PayoutAccount-CPvk6xcW.js} +5 -5
- package/dist/{PayoutAccount-DuxyDGjW.js → PayoutAccount-zAKSvyac.js} +5 -5
- package/dist/{PayoutAccountSetting-CUlmHkw3.js → PayoutAccountSetting-DfGw639O.js} +3 -3
- package/dist/{Restaurant-DDebeSrf.js → Restaurant-BdDDrAsq.js} +4 -4
- package/dist/{RestaurantSetting-Cf63FkWQ.js → RestaurantSetting-C-16ifI3.js} +86 -85
- package/dist/{Settlement-C_V-iTDy.js → Settlement-8RYgvfzf.js} +3 -3
- package/dist/{Settlement-CctMzPsZ.js → Settlement-Cfhafc8m.js} +3 -3
- package/dist/{SettlementTransactions-BevyrXpX.js → SettlementTransactions-Bb54OlAj.js} +3 -3
- package/dist/{SettlementTransactions-ChOW3OFP.js → SettlementTransactions-DrA8PAyd.js} +3 -3
- package/dist/{Status.vue_vue_type_script_setup_true_lang-wrcEbNj3.js → Status.vue_vue_type_script_setup_true_lang-BumKpo4s.js} +1 -1
- package/dist/{Terminal-D3QDgPY6.js → Terminal-DoTJw-hl.js} +5 -5
- package/dist/{TerminalSetting-ehm_sRqf.js → TerminalSetting-DpePQHKW.js} +3 -3
- package/dist/{Transaction-DRyKIb_9.js → Transaction-C5DXkIjl.js} +5 -5
- package/dist/{Transaction-D1rYvU6G.js → Transaction-qKhaX4qv.js} +6 -6
- package/dist/{TransactionOld-CDjxfE_x.js → TransactionOld-DAoWcstb.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BhW4t6ml.js → TransactionTable.vue_vue_type_script_setup_true_lang-C5cEFUs2.js} +3 -3
- package/dist/{app-Diwu0mTm.js → app-BcysfQ1o.js} +151 -151
- package/dist/app.js +1 -1
- package/dist/{assets-Bgq2Viy_.js → assets-C_H0OeWB.js} +1 -1
- package/dist/{grafana-DRZOKr8c.js → grafana-BK_sYlee.js} +1 -1
- package/dist/{index-DGF3hKwg.js → index-BjqwgRyA.js} +1 -1
- package/dist/{index-B6GVzj7l.js → index-D4_YGL4B.js} +1 -1
- package/dist/{index-8Xu0hCTB.js → index-Dogc22BO.js} +1 -1
- package/dist/{index-Dg_mEOso.js → index-GsQWAnBk.js} +1 -1
- package/dist/{index-kKYhoPJ0.js → index-_oz98qlb.js} +2 -2
- package/dist/{index-BasdAonL.js → index-eNSd1RuW.js} +2 -1
- package/dist/{index-DoD23lHB.js → index-jsEyizHG.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D4bLM6th.js → index.vue_vue_type_script_setup_true_lang-CIxp2j06.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BruzOhyM.js → payout-account-_Q5_6S8z.js} +3 -3
- package/dist/{plugins-1r8hV_Pp.js → plugins-CcusOGSo.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/TerminalDialog.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/SettingRequest.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +2 -2
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +4 -4
- package/package.json +2 -2
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as $, ref as w, computed as L, resolveComponent as y, openBlock as v, createElementBlock as N, createElementVNode as a, toDisplayString as D, Fragment as z, createBlock as _, withCtx as c, createVNode as n, createCommentVNode as E, unref as e, createTextVNode as I, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
2
|
-
import { o as j } from "./index-
|
3
|
-
import { u as M } from "./index-
|
2
|
+
import { o as j } from "./index-_oz98qlb.js";
|
3
|
+
import { u as M } from "./index-eNSd1RuW.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-_Q5_6S8z.js";
|
7
7
|
import { P as le } from "./PDFViewer-DlSCBBxr.js";
|
8
|
-
import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-
|
8
|
+
import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-BumKpo4s.js";
|
9
9
|
import { useSnackbar as J } from "@feedmepos/ui-library";
|
10
10
|
import { u as A } from "./error-K1CakhA9.js";
|
11
11
|
const oe = ["src"], B = /* @__PURE__ */ $({
|
@@ -2,11 +2,11 @@ import { defineComponent as O, ref as V, computed as Z, resolveComponent as v, o
|
|
2
2
|
import { z as p, a as c } from "./validator-D5jtpt9A.js";
|
3
3
|
import { P as de, _ as me } from "./PDFViewer-DlSCBBxr.js";
|
4
4
|
import { useCoreStore as pe } from "@feedmepos/mf-common";
|
5
|
-
import { o as L } from "./index-
|
6
|
-
import { p as ce } from "./index-
|
5
|
+
import { o as L } from "./index-_oz98qlb.js";
|
6
|
+
import { p as ce } from "./index-jsEyizHG.js";
|
7
7
|
import { useSnackbar as ve } from "@feedmepos/ui-library";
|
8
|
-
import { u as X } from "./index-
|
9
|
-
import { P as ye } from "./payout-account-
|
8
|
+
import { u as X } from "./index-eNSd1RuW.js";
|
9
|
+
import { P as ye } from "./payout-account-_Q5_6S8z.js";
|
10
10
|
import { useRouter as be } from "vue-router";
|
11
11
|
const fe = ["src"], R = /* @__PURE__ */ O({
|
12
12
|
__name: "UploadButton",
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as A, ref as V, watch as v, computed as p, resolveComponent as x, openBlock as h, createBlock as w, withCtx as f, createElementVNode as S, createVNode as r, unref as l, isRef as n, h as k } from "vue";
|
2
|
-
import { o as K } from "./index-
|
3
|
-
import { p as m } from "./index-
|
4
|
-
import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { o as K } from "./index-_oz98qlb.js";
|
3
|
+
import { p as m } from "./index-eNSd1RuW.js";
|
4
|
+
import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-CIxp2j06.js";
|
5
5
|
import { useRouter as F } from "vue-router";
|
6
6
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { h as R } from "./moment-h96o7c8I.js";
|
8
|
-
import { u as C } from "./index-
|
8
|
+
import { u as C } from "./index-BjqwgRyA.js";
|
9
9
|
import { _ as D } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
10
|
-
import { _ as E } from "./Status.vue_vue_type_script_setup_true_lang-
|
10
|
+
import { _ as E } from "./Status.vue_vue_type_script_setup_true_lang-BumKpo4s.js";
|
11
11
|
const U = { class: "flex items-start mb-6" }, z = /* @__PURE__ */ A({
|
12
12
|
__name: "OnboardSubmission",
|
13
13
|
setup(Y) {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as $, ref as z, computed as H, onMounted as U, watch as D, resolveComponent as a, openBlock as n, createBlock as x, unref as o, withCtx as y, createElementVNode as s, createVNode as u, createElementBlock as l, Fragment as B, renderList as N, toDisplayString as i, createTextVNode as c, createCommentVNode as _ } from "vue";
|
2
2
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
3
|
-
import { u as q, p as G, e as S } from "./index-
|
3
|
+
import { u as q, p as G, e as S } from "./index-eNSd1RuW.js";
|
4
4
|
import { useI18n as J, useCoreStore as K } from "@feedmepos/mf-common";
|
5
5
|
import { _ as Q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
6
|
-
import { o as X } from "./index-
|
6
|
+
import { o as X } from "./index-_oz98qlb.js";
|
7
7
|
import { useRouter as Z } from "vue-router";
|
8
8
|
import { i as w } from "./softspace-25X2bjBx.js";
|
9
9
|
const ss = { class: "flex justify-left items-center mb-6" }, es = { class: "grid grid-cols-3 gap-6" }, ts = { class: "flex items-center" }, os = ["src"], ns = { class: "px-16 text-sm flex-grow" }, is = { class: "list-disc pl-6" }, rs = {
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as P, ref as W, reactive as sA, computed as I, watch as AA, resolveComponent as V, openBlock as c, createElementBlock as x, Fragment as tA, unref as a, createVNode as Y, createBlock as i, createCommentVNode as j, withCtx as q, createElementVNode as n, toDisplayString as z, normalizeClass as k, h as N, onMounted as oA } from "vue";
|
2
|
-
import { p as K } from "./index-
|
3
|
-
import { p as U, u as gA, e as lA } from "./index-
|
2
|
+
import { p as K } from "./index-jsEyizHG.js";
|
3
|
+
import { p as U, u as gA, e as lA } from "./index-eNSd1RuW.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-_Q5_6S8z.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-DlSCBBxr.js";
|
10
|
-
import "./app-
|
11
|
-
import "./plugins-
|
10
|
+
import "./app-BcysfQ1o.js";
|
11
|
+
import "./plugins-CcusOGSo.js";
|
12
12
|
import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
13
13
|
function wA() {
|
14
14
|
return {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
|
2
|
-
import { u as O } from "./index-
|
3
|
-
import { p as K } from "./index-
|
2
|
+
import { u as O } from "./index-BjqwgRyA.js";
|
3
|
+
import { p as K } from "./index-eNSd1RuW.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-
|
6
|
-
import { p as D } from "./index-
|
5
|
+
import { P as V } from "./payout-account-_Q5_6S8z.js";
|
6
|
+
import { p as D } from "./index-jsEyizHG.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CIxp2j06.js";
|
9
9
|
import { useRouter as U } from "vue-router";
|
10
10
|
import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
11
|
const G = /* @__PURE__ */ y({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as k, resolveComponent as d, openBlock as g, createElementBlock as h, Fragment as $, createElementVNode as i, createVNode as u, withCtx as V, createTextVNode as A, toDisplayString as U, createCommentVNode as T, createBlock as w, ref as P, watch as W, computed as G, unref as c, isRef as E, h as R, onMounted as J, resolveDynamicComponent as z, normalizeProps as L, mergeProps as H } from "vue";
|
2
|
-
import { p as I } from "./index-
|
3
|
-
import { u as j, e as N } from "./index-
|
2
|
+
import { p as I } from "./index-jsEyizHG.js";
|
3
|
+
import { u as j, e as N } from "./index-eNSd1RuW.js";
|
4
4
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
5
5
|
import { useRouter as te } from "vue-router";
|
6
|
-
import { u as K } from "./index-
|
6
|
+
import { u as K } from "./index-BjqwgRyA.js";
|
7
7
|
import { P as Q } from "./PDFViewer-DlSCBBxr.js";
|
8
8
|
import { useSnackbar as Y, components as ae } from "@feedmepos/ui-library";
|
9
9
|
import { u as B } from "./error-K1CakhA9.js";
|
@@ -1,12 +1,12 @@
|
|
1
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-
|
2
|
+
import { u as O } from "./index-BjqwgRyA.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-eNSd1RuW.js";
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
7
|
-
import { r as H } from "./index-
|
7
|
+
import { r as H } from "./index-D4_YGL4B.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-BK_sYlee.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as _, ref as b, resolveComponent as r, openBlock as g, createBlock as w, withCtx as C, createVNode as o, unref as n, createElementVNode as I, createCommentVNode as S, computed as R, onMounted as N, createElementBlock as $, Fragment as B, isRef as P, resolveDynamicComponent as K, normalizeProps as E, mergeProps as Y, renderList as z } from "vue";
|
2
|
-
import { g as q, b as A, u as O, e as U, p as H } from "./index-
|
2
|
+
import { g as q, b as A, u as O, e as U, p as H } from "./index-eNSd1RuW.js";
|
3
3
|
import { _ as h } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as Q } from "vue-router";
|
5
|
-
import { u as L } from "./index-
|
5
|
+
import { u as L } from "./index-BjqwgRyA.js";
|
6
6
|
import { z as f, a as F } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
8
|
import { u as Z } from "./error-K1CakhA9.js";
|
9
9
|
import { useSnackbar as J } from "@feedmepos/ui-library";
|
10
|
-
import { r as W } from "./index-
|
10
|
+
import { r as W } from "./index-D4_YGL4B.js";
|
11
11
|
const D = {
|
12
12
|
async get(a) {
|
13
13
|
return q(
|
@@ -79,45 +79,45 @@ const D = {
|
|
79
79
|
applicationCode: "",
|
80
80
|
offlineSecret: ""
|
81
81
|
});
|
82
|
-
return (
|
83
|
-
const
|
82
|
+
return (i, e) => {
|
83
|
+
const m = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
84
84
|
return g(), w(v, {
|
85
85
|
ref: "form",
|
86
86
|
class: "flex flex-col gap-16",
|
87
87
|
onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, t.value))
|
88
88
|
}, {
|
89
89
|
default: C(() => [
|
90
|
-
o(
|
90
|
+
o(m, {
|
91
91
|
modelValue: t.value.merchantId,
|
92
92
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
93
93
|
label: "Merchant ID",
|
94
94
|
rules: n(f)(n(F).string())
|
95
95
|
}, null, 8, ["modelValue", "rules"]),
|
96
|
-
o(
|
96
|
+
o(m, {
|
97
97
|
modelValue: t.value.uniqueId,
|
98
98
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.uniqueId = l),
|
99
99
|
label: "Unique ID",
|
100
100
|
rules: n(f)(n(F).string())
|
101
101
|
}, null, 8, ["modelValue", "rules"]),
|
102
|
-
o(
|
102
|
+
o(m, {
|
103
103
|
modelValue: t.value.verifyKey,
|
104
104
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.verifyKey = l),
|
105
105
|
label: "Verify Key",
|
106
106
|
rules: n(f)(n(F).string())
|
107
107
|
}, null, 8, ["modelValue", "rules"]),
|
108
|
-
o(
|
108
|
+
o(m, {
|
109
109
|
modelValue: t.value.secretKey,
|
110
110
|
"onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.secretKey = l),
|
111
111
|
label: "Secret Key",
|
112
112
|
rules: n(f)(n(F).string())
|
113
113
|
}, null, 8, ["modelValue", "rules"]),
|
114
|
-
o(
|
114
|
+
o(m, {
|
115
115
|
modelValue: t.value.applicationCode,
|
116
116
|
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.applicationCode = l),
|
117
117
|
label: "Application Code ( Offline )",
|
118
118
|
rules: n(f)(n(F).string())
|
119
119
|
}, null, 8, ["modelValue", "rules"]),
|
120
|
-
o(
|
120
|
+
o(m, {
|
121
121
|
modelValue: t.value.offlineSecret,
|
122
122
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => t.value.offlineSecret = l),
|
123
123
|
label: "Offline Secret ( Offline )",
|
@@ -172,40 +172,40 @@ const D = {
|
|
172
172
|
clientSecret: "",
|
173
173
|
clientPrivateKey: ""
|
174
174
|
});
|
175
|
-
return (
|
176
|
-
const
|
175
|
+
return (i, e) => {
|
176
|
+
const m = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), l = r("FmForm");
|
177
177
|
return g(), w(l, {
|
178
178
|
ref: "form",
|
179
179
|
class: "flex flex-col gap-16",
|
180
180
|
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, t.value))
|
181
181
|
}, {
|
182
182
|
default: C(() => [
|
183
|
-
o(
|
183
|
+
o(m, {
|
184
184
|
modelValue: t.value.storeId,
|
185
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
185
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.value.storeId = c),
|
186
186
|
label: "Store ID",
|
187
187
|
rules: n(f)(n(F).string())
|
188
188
|
}, null, 8, ["modelValue", "rules"]),
|
189
|
-
o(
|
189
|
+
o(m, {
|
190
190
|
modelValue: t.value.clientId,
|
191
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
191
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.value.clientId = c),
|
192
192
|
label: "Client ID",
|
193
193
|
rules: n(f)(n(F).string())
|
194
194
|
}, null, 8, ["modelValue", "rules"]),
|
195
|
-
o(
|
195
|
+
o(m, {
|
196
196
|
modelValue: t.value.clientSecret,
|
197
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
197
|
+
"onUpdate:modelValue": e[2] || (e[2] = (c) => t.value.clientSecret = c),
|
198
198
|
label: "Client Secret",
|
199
199
|
rules: n(f)(n(F).string())
|
200
200
|
}, null, 8, ["modelValue", "rules"]),
|
201
201
|
o(V, {
|
202
202
|
modelValue: t.value.clientPrivateKey,
|
203
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
203
|
+
"onUpdate:modelValue": e[3] || (e[3] = (c) => t.value.clientPrivateKey = c),
|
204
204
|
label: "Client Private Key"
|
205
205
|
}, null, 8, ["modelValue"]),
|
206
206
|
o(d, {
|
207
207
|
modelValue: u.value,
|
208
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
208
|
+
"onUpdate:modelValue": e[4] || (e[4] = (c) => u.value = c),
|
209
209
|
label: "Is Active"
|
210
210
|
}, null, 8, ["modelValue"]),
|
211
211
|
I("div", te, [
|
@@ -251,36 +251,36 @@ const D = {
|
|
251
251
|
terminalId: "",
|
252
252
|
privateKey: ""
|
253
253
|
});
|
254
|
-
return (
|
255
|
-
const
|
254
|
+
return (i, e) => {
|
255
|
+
const m = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), l = r("FmForm");
|
256
256
|
return g(), w(l, {
|
257
257
|
ref: "form",
|
258
258
|
class: "flex flex-col gap-16",
|
259
259
|
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, t.value))
|
260
260
|
}, {
|
261
261
|
default: C(() => [
|
262
|
-
o(
|
262
|
+
o(m, {
|
263
263
|
modelValue: t.value.merchantId,
|
264
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
264
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.value.merchantId = c),
|
265
265
|
label: "Merchant ID",
|
266
266
|
rules: n(f)(n(F).string())
|
267
267
|
}, null, 8, ["modelValue", "rules"]),
|
268
|
-
o(
|
268
|
+
o(m, {
|
269
269
|
modelValue: t.value.terminalId,
|
270
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
270
|
+
"onUpdate:modelValue": e[1] || (e[1] = (c) => t.value.terminalId = c),
|
271
271
|
label: "Terminal ID",
|
272
272
|
rules: n(f)(n(F).string())
|
273
273
|
}, null, 8, ["modelValue", "rules"]),
|
274
274
|
o(V, {
|
275
275
|
id: "ghl_pkey",
|
276
276
|
modelValue: t.value.privateKey,
|
277
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
277
|
+
"onUpdate:modelValue": e[2] || (e[2] = (c) => t.value.privateKey = c),
|
278
278
|
label: "Private Key",
|
279
279
|
rules: n(f)(n(F).string())
|
280
280
|
}, null, 8, ["modelValue", "rules"]),
|
281
281
|
o(d, {
|
282
282
|
modelValue: u.value,
|
283
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
283
|
+
"onUpdate:modelValue": e[3] || (e[3] = (c) => u.value = c),
|
284
284
|
label: "Is Active"
|
285
285
|
}, null, 8, ["modelValue"]),
|
286
286
|
I("div", le, [
|
@@ -328,39 +328,39 @@ const D = {
|
|
328
328
|
storeID: "",
|
329
329
|
storeName: ""
|
330
330
|
});
|
331
|
-
return (
|
332
|
-
const
|
331
|
+
return (i, e) => {
|
332
|
+
const m = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
333
333
|
return g(), w(v, {
|
334
334
|
ref: "form",
|
335
335
|
class: "flex flex-col gap-16",
|
336
336
|
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, t.value))
|
337
337
|
}, {
|
338
338
|
default: C(() => [
|
339
|
-
o(
|
339
|
+
o(m, {
|
340
340
|
modelValue: t.value.merchantId,
|
341
341
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
342
342
|
label: "Merchant ID",
|
343
343
|
rules: n(f)(n(F).string())
|
344
344
|
}, null, 8, ["modelValue", "rules"]),
|
345
|
-
o(
|
345
|
+
o(m, {
|
346
346
|
modelValue: t.value.merchantName,
|
347
347
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.merchantName = l),
|
348
348
|
label: "Merchant Name",
|
349
349
|
rules: n(f)(n(F).string())
|
350
350
|
}, null, 8, ["modelValue", "rules"]),
|
351
|
-
o(
|
351
|
+
o(m, {
|
352
352
|
modelValue: t.value.merchantCategoryCode,
|
353
353
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.merchantCategoryCode = l),
|
354
354
|
label: "Merchant MCC",
|
355
355
|
rules: n(f)(n(F).string())
|
356
356
|
}, null, 8, ["modelValue", "rules"]),
|
357
|
-
o(
|
357
|
+
o(m, {
|
358
358
|
modelValue: t.value.storeID,
|
359
359
|
"onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.storeID = l),
|
360
360
|
label: "Store ID",
|
361
361
|
rules: n(f)(n(F).string())
|
362
362
|
}, null, 8, ["modelValue", "rules"]),
|
363
|
-
o(
|
363
|
+
o(m, {
|
364
364
|
modelValue: t.value.storeName,
|
365
365
|
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.storeName = l),
|
366
366
|
label: "Store Name",
|
@@ -409,15 +409,15 @@ const D = {
|
|
409
409
|
},
|
410
410
|
setup(a) {
|
411
411
|
var V, d;
|
412
|
-
const s = J(), { isLoading: u, startAsyncCall: t } = O(), p = j(), y = a,
|
412
|
+
const s = J(), { isLoading: u, startAsyncCall: t } = O(), p = j(), y = a, i = b(((V = y.gateway) == null ? void 0 : V.active) ?? !1), e = b(((d = y.gateway) == null ? void 0 : d.config) || {
|
413
413
|
merchantId: ""
|
414
414
|
});
|
415
|
-
async function
|
415
|
+
async function m() {
|
416
416
|
t(async () => {
|
417
417
|
var v;
|
418
418
|
try {
|
419
419
|
const { merchantID: l } = await D.grabSync(((v = p.currentRestaurant.value) == null ? void 0 : v._id) ?? "");
|
420
|
-
e.value.merchantId = l,
|
420
|
+
e.value.merchantId = l, i.value = !0, s.open({
|
421
421
|
type: "success",
|
422
422
|
title: "Grab Setting sync succesfully, you will still need to save the changes."
|
423
423
|
});
|
@@ -431,15 +431,15 @@ const D = {
|
|
431
431
|
});
|
432
432
|
}
|
433
433
|
return (v, l) => {
|
434
|
-
const
|
434
|
+
const c = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), T = r("FmSwitch"), G = r("FmForm");
|
435
435
|
return g(), w(G, {
|
436
436
|
ref: "form",
|
437
437
|
class: "flex flex-col gap-16",
|
438
|
-
onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(
|
438
|
+
onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(i.value, e.value))
|
439
439
|
}, {
|
440
440
|
default: C(() => [
|
441
441
|
I("div", re, [
|
442
|
-
o(
|
442
|
+
o(c, {
|
443
443
|
modelValue: e.value.merchantId,
|
444
444
|
"onUpdate:modelValue": l[0] || (l[0] = (M) => e.value.merchantId = M),
|
445
445
|
label: "Merchant ID",
|
@@ -457,15 +457,15 @@ const D = {
|
|
457
457
|
variant: "primary",
|
458
458
|
icon: "sync",
|
459
459
|
loading: n(u),
|
460
|
-
onclick: () =>
|
460
|
+
onclick: () => m()
|
461
461
|
}, null, 8, ["loading", "onclick"])
|
462
462
|
]),
|
463
463
|
_: 1
|
464
464
|
})
|
465
465
|
]),
|
466
466
|
o(T, {
|
467
|
-
modelValue:
|
468
|
-
"onUpdate:modelValue": l[1] || (l[1] = (M) =>
|
467
|
+
modelValue: i.value,
|
468
|
+
"onUpdate:modelValue": l[1] || (l[1] = (M) => i.value = M),
|
469
469
|
label: "Is Active"
|
470
470
|
}, null, 8, ["modelValue"]),
|
471
471
|
I("div", se, [
|
@@ -510,21 +510,21 @@ const D = {
|
|
510
510
|
mid: "",
|
511
511
|
tid: ""
|
512
512
|
});
|
513
|
-
return (
|
514
|
-
const
|
513
|
+
return (i, e) => {
|
514
|
+
const m = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
515
515
|
return g(), w(v, {
|
516
516
|
ref: "form",
|
517
517
|
class: "flex flex-col gap-16",
|
518
518
|
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, t.value))
|
519
519
|
}, {
|
520
520
|
default: C(() => [
|
521
|
-
o(
|
521
|
+
o(m, {
|
522
522
|
modelValue: t.value.mid,
|
523
523
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.mid = l),
|
524
524
|
label: "MID",
|
525
525
|
rules: n(f)(n(F).string())
|
526
526
|
}, null, 8, ["modelValue", "rules"]),
|
527
|
-
o(
|
527
|
+
o(m, {
|
528
528
|
modelValue: t.value.tid,
|
529
529
|
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.tid = l),
|
530
530
|
label: "TID",
|
@@ -576,15 +576,15 @@ const D = {
|
|
576
576
|
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
577
577
|
merchantId: ""
|
578
578
|
});
|
579
|
-
return (
|
580
|
-
const
|
579
|
+
return (i, e) => {
|
580
|
+
const m = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
581
581
|
return g(), w(v, {
|
582
582
|
ref: "form",
|
583
583
|
class: "flex flex-col gap-16",
|
584
584
|
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value, t.value))
|
585
585
|
}, {
|
586
586
|
default: C(() => [
|
587
|
-
o(
|
587
|
+
o(m, {
|
588
588
|
modelValue: t.value.merchantId,
|
589
589
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
590
590
|
label: "Merchant ID",
|
@@ -670,38 +670,38 @@ const D = {
|
|
670
670
|
form: ye,
|
671
671
|
region: [U.F_COUNTRY.enum.TH]
|
672
672
|
}
|
673
|
-
], u = a, t = j(), { isLoading: p, startAsyncCall: y } = O(), { activeGateway:
|
673
|
+
], u = a, t = j(), { isLoading: p, startAsyncCall: y } = O(), { activeGateway: i } = L({
|
674
674
|
activeGateway: ""
|
675
675
|
}), e = b([]);
|
676
|
-
async function
|
676
|
+
async function m(c, x) {
|
677
677
|
await y(async () => {
|
678
678
|
const k = {
|
679
679
|
_id: "",
|
680
680
|
_rev: "",
|
681
|
-
paymentGateway:
|
681
|
+
paymentGateway: i.value,
|
682
682
|
config: x,
|
683
|
-
active:
|
684
|
-
}, T = e.value.find((G) => G.paymentGateway ===
|
683
|
+
active: c
|
684
|
+
}, T = e.value.find((G) => G.paymentGateway === i.value);
|
685
685
|
T && (k._id = T._id, k._rev = T._rev), await D.upsert(u.restaurant._id, k), e.value = await D.get(u.restaurant._id);
|
686
686
|
});
|
687
687
|
}
|
688
|
-
async function V(
|
688
|
+
async function V(c) {
|
689
689
|
y(async () => {
|
690
|
-
await D.delete(u.restaurant._id,
|
690
|
+
await D.delete(u.restaurant._id, c._id), e.value = await D.get(u.restaurant._id);
|
691
691
|
});
|
692
692
|
}
|
693
|
-
const d = R(() => s.filter((
|
693
|
+
const d = R(() => s.filter((c) => c.region.includes(t.currentCountry.value ?? U.F_COUNTRY.enum.MY)));
|
694
694
|
function v() {
|
695
695
|
y(async () => {
|
696
|
-
e.value = await D.get(u.restaurant._id), d.value.length > 0 && (
|
696
|
+
e.value = await D.get(u.restaurant._id), d.value.length > 0 && (i.value = d.value[0].value);
|
697
697
|
});
|
698
698
|
}
|
699
699
|
N(v);
|
700
700
|
const l = R(() => {
|
701
|
-
var
|
702
|
-
return (
|
701
|
+
var c;
|
702
|
+
return (c = s.find((x) => x.value === i.value)) == null ? void 0 : c.form;
|
703
703
|
});
|
704
|
-
return (
|
704
|
+
return (c, x) => {
|
705
705
|
const k = r("FmCircularProgress"), T = r("FmTabs");
|
706
706
|
return g(), $(B, null, [
|
707
707
|
n(p) ? (g(), $("div", pe, [
|
@@ -709,14 +709,14 @@ const D = {
|
|
709
709
|
])) : S("", !0),
|
710
710
|
o(T, {
|
711
711
|
class: "mb-6",
|
712
|
-
"model-value": n(
|
713
|
-
"onUpdate:modelValue": x[0] || (x[0] = (G) => P(
|
712
|
+
"model-value": n(i),
|
713
|
+
"onUpdate:modelValue": x[0] || (x[0] = (G) => P(i) ? i.value = G : null),
|
714
714
|
items: d.value
|
715
715
|
}, null, 8, ["model-value", "items"]),
|
716
|
-
n(
|
717
|
-
gateway: e.value.find((G) => G.paymentGateway === n(
|
716
|
+
n(i) ? (g(), w(K(l.value), E(Y({ key: 1 }, {
|
717
|
+
gateway: e.value.find((G) => G.paymentGateway === n(i)),
|
718
718
|
onDelete: V,
|
719
|
-
onUpdate:
|
719
|
+
onUpdate: m
|
720
720
|
})), null, 16)) : S("", !0)
|
721
721
|
], 64);
|
722
722
|
};
|
@@ -733,24 +733,25 @@ const D = {
|
|
733
733
|
const { isLoading: s, startAsyncCall: u } = O(!1), t = b([]), p = a;
|
734
734
|
N(() => {
|
735
735
|
u(async () => {
|
736
|
-
const
|
737
|
-
|
736
|
+
const i = await D.getIntegration(p.restaurant._id);
|
737
|
+
i && (t.value = i.integrations.map((e) => e.gateway) || []);
|
738
738
|
});
|
739
739
|
});
|
740
740
|
function y() {
|
741
741
|
u(async () => {
|
742
|
-
await D.upsertIntegration(p.restaurant._id, {
|
743
|
-
integrations: t.value.map((
|
744
|
-
gateway:
|
742
|
+
const i = await D.upsertIntegration(p.restaurant._id, {
|
743
|
+
integrations: t.value.map((e) => ({
|
744
|
+
gateway: e
|
745
745
|
}))
|
746
746
|
});
|
747
|
+
i && (t.value = i.integrations.map((e) => e.gateway) || []);
|
747
748
|
});
|
748
749
|
}
|
749
|
-
return (
|
750
|
-
const
|
750
|
+
return (i, e) => {
|
751
|
+
const m = r("FmCheckbox"), V = r("FmButton");
|
751
752
|
return g(), $(B, null, [
|
752
753
|
I("div", ge, [
|
753
|
-
(g(!0), $(B, null, z(n(H.FdoLocationIntegrationGateway).Values, (d) => (g(), w(
|
754
|
+
(g(!0), $(B, null, z(n(H.FdoLocationIntegrationGateway).Values, (d) => (g(), w(m, {
|
754
755
|
modelValue: t.value,
|
755
756
|
"onUpdate:modelValue": e[0] || (e[0] = (v) => t.value = v),
|
756
757
|
label: d,
|
@@ -780,7 +781,7 @@ const D = {
|
|
780
781
|
setup(a) {
|
781
782
|
const s = a, { tab: u } = L({
|
782
783
|
tab: "payment-gateway"
|
783
|
-
}), { isLoading: t, startAsyncCall: p } = O(!0), y = Q(),
|
784
|
+
}), { isLoading: t, startAsyncCall: p } = O(!0), y = Q(), i = b(), e = [
|
784
785
|
{
|
785
786
|
label: "Payment Gateway",
|
786
787
|
value: "payment-gateway",
|
@@ -794,21 +795,21 @@ const D = {
|
|
794
795
|
render: Fe
|
795
796
|
}
|
796
797
|
];
|
797
|
-
function
|
798
|
+
function m() {
|
798
799
|
p(async () => {
|
799
|
-
|
800
|
+
i.value = await W.readRestaurantById(s.restaurantId);
|
800
801
|
});
|
801
802
|
}
|
802
|
-
N(
|
803
|
+
N(m);
|
803
804
|
const V = R(() => {
|
804
805
|
var d;
|
805
806
|
return (d = e.find((v) => v.value === u.value)) == null ? void 0 : d.render;
|
806
807
|
});
|
807
808
|
return (d, v) => {
|
808
|
-
var
|
809
|
+
var c;
|
809
810
|
const l = r("FmTabs");
|
810
811
|
return g(), w(h, {
|
811
|
-
title: `Restaurant (${(
|
812
|
+
title: `Restaurant (${(c = i.value) == null ? void 0 : c._id})`,
|
812
813
|
loading: n(t),
|
813
814
|
onBack: n(y).back
|
814
815
|
}, {
|
@@ -819,8 +820,8 @@ const D = {
|
|
819
820
|
class: "mb-6",
|
820
821
|
items: e
|
821
822
|
}, null, 8, ["model-value"]),
|
822
|
-
n(u) &&
|
823
|
-
restaurant:
|
823
|
+
n(u) && i.value ? (g(), w(K(V.value), E(Y({ key: 0 }, {
|
824
|
+
restaurant: i.value
|
824
825
|
})), null, 16)) : S("", !0)
|
825
826
|
]),
|
826
827
|
_: 1
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as m, createVNode as u, withCtx as _, unref as t, toDisplayString as r, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
|
2
|
-
import { u as z } from "./index-
|
2
|
+
import { u as z } from "./index-eNSd1RuW.js";
|
3
3
|
import { h as $ } from "./moment-h96o7c8I.js";
|
4
4
|
import { useI18n as K, useCoreStore as E } from "@feedmepos/mf-common";
|
5
5
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { s as A } from "./index-
|
6
|
+
import { s as A } from "./index-GsQWAnBk.js";
|
7
7
|
import { useDialog as I } from "@feedmepos/ui-library";
|
8
8
|
import { d } from "./dinero-CIVmXLL-.js";
|
9
9
|
import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
10
10
|
import { useRouter as L } from "vue-router";
|
11
|
-
import { u as J } from "./index-
|
11
|
+
import { u as J } from "./index-BjqwgRyA.js";
|
12
12
|
import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
13
|
import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
14
14
|
import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
|
2
|
-
import { u as A } from "./index-
|
2
|
+
import { u as A } from "./index-eNSd1RuW.js";
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as _ } from "./index-
|
4
|
+
import { s as _ } from "./index-GsQWAnBk.js";
|
5
5
|
import { useSnackbar as U } from "@feedmepos/ui-library";
|
6
6
|
import { d as w } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
9
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
10
|
-
import { u as z } from "./index-
|
10
|
+
import { u as z } from "./index-BjqwgRyA.js";
|
11
11
|
import { u as G } from "./error-K1CakhA9.js";
|
12
12
|
import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
13
13
|
import "@feedmepos/mf-common";
|