@feedmepos/mf-payment 1.2.16 → 1.2.17
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/{PayoutAccount-CvMczmij.js → PayoutAccount-9M0rbMxQ.js} +6 -6
- package/dist/{PayoutAccount-bF6506mg.js → PayoutAccount-CLUo0Ulz.js} +5 -5
- package/dist/{PayoutAccountSetting-Di_Rohl7.js → PayoutAccountSetting-CUSnIj68.js} +3 -3
- package/dist/{Restaurant-BgfJ4kMh.js → Restaurant-CTLkTgah.js} +4 -4
- package/dist/{RestaurantSetting-DLB_GBbu.js → RestaurantSetting-DujOQvSV.js} +108 -103
- package/dist/{Settlement-DqwyJFk-.js → Settlement-BSf_6o6G.js} +3 -3
- package/dist/{Settlement-Mf5XJrXc.js → Settlement-CZb5S23k.js} +3 -3
- package/dist/{SettlementTransactions-6vkA8-4o.js → SettlementTransactions-BRCNPglh.js} +3 -3
- package/dist/{SettlementTransactions-DvzbSvA9.js → SettlementTransactions-BjEwIVuM.js} +3 -3
- package/dist/{Terminal-DC6alAxg.js → Terminal-CvTDdi1v.js} +5 -5
- package/dist/{TerminalSetting-BE9fFg4j.js → TerminalSetting-BcIGtwC6.js} +3 -3
- package/dist/{Transaction-BXynWN9l.js → Transaction-3trhn_Zc.js} +5 -5
- package/dist/{Transaction-BPVSJWdM.js → Transaction-BWkIXreZ.js} +7 -7
- package/dist/{TransactionOld-aJqwnMYJ.js → TransactionOld-DLhqBVIl.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CX5eNJPx.js → TransactionTable.vue_vue_type_script_setup_true_lang-Cup19PFp.js} +3 -3
- package/dist/{app-l69fYMyZ.js → app-DAE_5nD5.js} +248 -248
- package/dist/app.js +1 -1
- package/dist/{assets-CRA5IzdW.js → assets-B4vtlKYE.js} +2 -2
- package/dist/{grafana-AnUnO24M.js → grafana-DV8B0DQp.js} +1 -1
- package/dist/{index-8V-GavUD.js → index-BRBuCpqm.js} +1 -1
- package/dist/{index-34hQY02y.js → index-BWggDsdo.js} +2 -2
- package/dist/{index-DmI9Gt5s.js → index-C8dj5wuz.js} +1 -1
- package/dist/{index-Cer_6J8b.js → index-CAkhGbuS.js} +1 -1
- package/dist/{index-BrtYLN-t.js → index-CJPkFMrY.js} +1 -1
- package/dist/{index-k7EwR1PN.js → index-QlMsszeQ.js} +1 -1
- package/dist/{index-DayhN_i6.js → index-ux7UbRaU.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BZvBvJ7L.js → index.vue_vue_type_script_setup_true_lang-BSJZOVa7.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-HJH4ybUc.js → payout-account-BwypT3rI.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
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 { _ as K } from "./index-
|
2
|
+
import { u as O } from "./index-CAkhGbuS.js";
|
3
|
+
import { _ as K } from "./index-CJPkFMrY.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-BwypT3rI.js";
|
6
|
+
import { p as D } from "./index-BWggDsdo.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
|
-
import "./index-
|
9
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
+
import "./index-C8dj5wuz.js";
|
9
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-BSJZOVa7.js";
|
10
10
|
import { useRouter as U } from "vue-router";
|
11
11
|
import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
12
12
|
const G = /* @__PURE__ */ y({
|
@@ -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 m, 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 { u as gA, e as lA } from "./index-
|
2
|
+
import { p as K } from "./index-BWggDsdo.js";
|
3
|
+
import { u as gA, e as lA } from "./index-C8dj5wuz.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-BwypT3rI.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
|
-
import { _ as U } from "./index-
|
9
|
+
import { _ as U } from "./index-CJPkFMrY.js";
|
10
10
|
import { P as $ } from "./PDFViewer-xrBtzrlR.js";
|
11
|
-
import "./app-
|
11
|
+
import "./app-DAE_5nD5.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,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, resolveComponent as m, openBlock as g, createElementBlock as h, Fragment as G, createElementVNode as i, createVNode as s, withCtx as k, createTextVNode as _, toDisplayString as U, createCommentVNode as T, createBlock as w, ref as P, watch as W, computed as R, unref as c, isRef as E, h as M, 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-BWggDsdo.js";
|
3
|
+
import { u as j, e as N } from "./index-C8dj5wuz.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-CAkhGbuS.js";
|
7
7
|
import { P as Q } from "./PDFViewer-xrBtzrlR.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-CAkhGbuS.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-C8dj5wuz.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-QlMsszeQ.js";
|
8
8
|
import { useRouter as J } from "vue-router";
|
9
|
-
import { g as X } from "./grafana-
|
9
|
+
import { g as X } from "./grafana-DV8B0DQp.js";
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
11
11
|
__name: "FmTableSelection",
|
12
12
|
props: {
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import { defineComponent as _, ref as b, resolveComponent as
|
2
|
-
import { g as q, b as
|
1
|
+
import { defineComponent as _, ref as b, resolveComponent as r, openBlock as F, createBlock as w, withCtx as U, createVNode as o, unref as l, createElementVNode as D, createCommentVNode as S, computed as O, onMounted as $, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as P, normalizeProps as K, mergeProps as Y } from "vue";
|
2
|
+
import { g as q, b as A, u as R, e as I } from "./index-C8dj5wuz.js";
|
3
3
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
4
|
import { useRouter as H } from "vue-router";
|
5
|
-
import { u as E } from "./index-
|
5
|
+
import { u as E } from "./index-CAkhGbuS.js";
|
6
6
|
import { z as f, a as g } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
8
|
import { u as Q } from "./error-K1CakhA9.js";
|
9
9
|
import { useSnackbar as Z } from "@feedmepos/ui-library";
|
10
|
-
import { r as J } from "./index-
|
10
|
+
import { r as J } from "./index-QlMsszeQ.js";
|
11
11
|
const G = {
|
12
12
|
async get(a) {
|
13
13
|
return q(
|
14
|
-
await
|
14
|
+
await A().get(
|
15
15
|
`restaurants/${a}/payment-gateway`
|
16
16
|
)
|
17
17
|
);
|
18
18
|
},
|
19
19
|
async upsert(a, c) {
|
20
20
|
return q(
|
21
|
-
await
|
21
|
+
await A().post(
|
22
22
|
`restaurants/${a}/payment-gateway`,
|
23
23
|
{ data: c }
|
24
24
|
)
|
@@ -26,14 +26,14 @@ const G = {
|
|
26
26
|
},
|
27
27
|
async delete(a, c) {
|
28
28
|
return q(
|
29
|
-
await
|
29
|
+
await A().delete(
|
30
30
|
`restaurants/${a}/payment-gateway/${c}`
|
31
31
|
)
|
32
32
|
);
|
33
33
|
},
|
34
34
|
async grabSync(a) {
|
35
35
|
return q(
|
36
|
-
await
|
36
|
+
await A().post(
|
37
37
|
`restaurants/${a}/payment-gateway/grab/sync`
|
38
38
|
)
|
39
39
|
);
|
@@ -55,8 +55,8 @@ const G = {
|
|
55
55
|
}
|
56
56
|
},
|
57
57
|
setup(a) {
|
58
|
-
var
|
59
|
-
const c = a, u = b(((
|
58
|
+
var p, m;
|
59
|
+
const c = a, u = b(((p = c.gateway) == null ? void 0 : p.active) ?? !1), t = b(((m = c.gateway) == null ? void 0 : m.config) || {
|
60
60
|
merchantId: "",
|
61
61
|
uniqueId: "",
|
62
62
|
verifyKey: "",
|
@@ -65,8 +65,8 @@ const G = {
|
|
65
65
|
offlineSecret: ""
|
66
66
|
});
|
67
67
|
return (d, e) => {
|
68
|
-
const i =
|
69
|
-
return
|
68
|
+
const i = r("FmTextField"), V = r("FmSwitch"), y = r("FmButton"), v = r("FmForm");
|
69
|
+
return F(), w(v, {
|
70
70
|
ref: "form",
|
71
71
|
class: "flex flex-col gap-16",
|
72
72
|
onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, t.value))
|
@@ -108,20 +108,20 @@ const G = {
|
|
108
108
|
label: "Offline Secret ( Offline )",
|
109
109
|
rules: l(f)(l(g).string())
|
110
110
|
}, null, 8, ["modelValue", "rules"]),
|
111
|
-
o(
|
111
|
+
o(V, {
|
112
112
|
modelValue: u.value,
|
113
113
|
"onUpdate:modelValue": e[6] || (e[6] = (n) => u.value = n),
|
114
114
|
label: "Is Active"
|
115
115
|
}, null, 8, ["modelValue"]),
|
116
116
|
D("div", W, [
|
117
|
-
a.gateway ? (
|
117
|
+
a.gateway ? (F(), w(y, {
|
118
118
|
key: 0,
|
119
119
|
class: "flex-1",
|
120
120
|
variant: "secondary",
|
121
121
|
label: "Delete",
|
122
122
|
onclick: () => a.onDelete(a.gateway)
|
123
123
|
}, null, 8, ["onclick"])) : S("", !0),
|
124
|
-
o(
|
124
|
+
o(y, {
|
125
125
|
type: "submit",
|
126
126
|
class: "flex-1",
|
127
127
|
variant: "primary",
|
@@ -150,16 +150,16 @@ const G = {
|
|
150
150
|
}
|
151
151
|
},
|
152
152
|
setup(a) {
|
153
|
-
var
|
154
|
-
const c = a, u = b(((
|
153
|
+
var p, m;
|
154
|
+
const c = a, u = b(((p = c.gateway) == null ? void 0 : p.active) ?? !1), t = b(((m = c.gateway) == null ? void 0 : m.config) || {
|
155
155
|
storeId: "",
|
156
156
|
clientId: "",
|
157
157
|
clientSecret: "",
|
158
158
|
clientPrivateKey: ""
|
159
159
|
});
|
160
160
|
return (d, e) => {
|
161
|
-
const i =
|
162
|
-
return
|
161
|
+
const i = r("FmTextField"), V = r("FmTextarea"), y = r("FmSwitch"), v = r("FmButton"), n = r("FmForm");
|
162
|
+
return F(), w(n, {
|
163
163
|
ref: "form",
|
164
164
|
class: "flex flex-col gap-16",
|
165
165
|
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, t.value))
|
@@ -167,41 +167,41 @@ const G = {
|
|
167
167
|
default: U(() => [
|
168
168
|
o(i, {
|
169
169
|
modelValue: t.value.storeId,
|
170
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
170
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => t.value.storeId = s),
|
171
171
|
label: "Store ID",
|
172
172
|
rules: l(f)(l(g).string())
|
173
173
|
}, null, 8, ["modelValue", "rules"]),
|
174
174
|
o(i, {
|
175
175
|
modelValue: t.value.clientId,
|
176
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
176
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => t.value.clientId = s),
|
177
177
|
label: "Client ID",
|
178
178
|
rules: l(f)(l(g).string())
|
179
179
|
}, null, 8, ["modelValue", "rules"]),
|
180
180
|
o(i, {
|
181
181
|
modelValue: t.value.clientSecret,
|
182
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
182
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => t.value.clientSecret = s),
|
183
183
|
label: "Client Secret",
|
184
184
|
rules: l(f)(l(g).string())
|
185
185
|
}, null, 8, ["modelValue", "rules"]),
|
186
|
-
o(
|
186
|
+
o(V, {
|
187
187
|
modelValue: t.value.clientPrivateKey,
|
188
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
188
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => t.value.clientPrivateKey = s),
|
189
189
|
label: "Client Private Key"
|
190
190
|
}, null, 8, ["modelValue"]),
|
191
|
-
o(
|
191
|
+
o(y, {
|
192
192
|
modelValue: u.value,
|
193
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
193
|
+
"onUpdate:modelValue": e[4] || (e[4] = (s) => u.value = s),
|
194
194
|
label: "Is Active"
|
195
195
|
}, null, 8, ["modelValue"]),
|
196
196
|
D("div", h, [
|
197
|
-
a.gateway ? (
|
197
|
+
a.gateway ? (F(), w(v, {
|
198
198
|
key: 0,
|
199
199
|
class: "flex-1",
|
200
200
|
variant: "secondary",
|
201
201
|
label: "Delete",
|
202
202
|
onclick: () => a.onDelete(a.gateway)
|
203
203
|
}, null, 8, ["onclick"])) : S("", !0),
|
204
|
-
o(
|
204
|
+
o(v, {
|
205
205
|
type: "submit",
|
206
206
|
class: "flex-1",
|
207
207
|
variant: "primary",
|
@@ -230,15 +230,15 @@ const G = {
|
|
230
230
|
}
|
231
231
|
},
|
232
232
|
setup(a) {
|
233
|
-
var
|
234
|
-
const c = a, u = b(((
|
233
|
+
var p, m;
|
234
|
+
const c = a, u = b(((p = c.gateway) == null ? void 0 : p.active) ?? !1), t = b(((m = c.gateway) == null ? void 0 : m.config) || {
|
235
235
|
merchantId: "",
|
236
236
|
terminalId: "",
|
237
237
|
privateKey: ""
|
238
238
|
});
|
239
239
|
return (d, e) => {
|
240
|
-
const i =
|
241
|
-
return
|
240
|
+
const i = r("FmTextField"), V = r("FmTextarea"), y = r("FmSwitch"), v = r("FmButton"), n = r("FmForm");
|
241
|
+
return F(), w(n, {
|
242
242
|
ref: "form",
|
243
243
|
class: "flex flex-col gap-16",
|
244
244
|
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, t.value))
|
@@ -246,37 +246,37 @@ const G = {
|
|
246
246
|
default: U(() => [
|
247
247
|
o(i, {
|
248
248
|
modelValue: t.value.merchantId,
|
249
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
249
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => t.value.merchantId = s),
|
250
250
|
label: "Merchant ID",
|
251
251
|
rules: l(f)(l(g).string())
|
252
252
|
}, null, 8, ["modelValue", "rules"]),
|
253
253
|
o(i, {
|
254
254
|
modelValue: t.value.terminalId,
|
255
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
255
|
+
"onUpdate:modelValue": e[1] || (e[1] = (s) => t.value.terminalId = s),
|
256
256
|
label: "Terminal ID",
|
257
257
|
rules: l(f)(l(g).string())
|
258
258
|
}, null, 8, ["modelValue", "rules"]),
|
259
|
-
o(
|
259
|
+
o(V, {
|
260
260
|
id: "ghl_pkey",
|
261
261
|
modelValue: t.value.privateKey,
|
262
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
262
|
+
"onUpdate:modelValue": e[2] || (e[2] = (s) => t.value.privateKey = s),
|
263
263
|
label: "Private Key",
|
264
264
|
rules: l(f)(l(g).string())
|
265
265
|
}, null, 8, ["modelValue", "rules"]),
|
266
|
-
o(
|
266
|
+
o(y, {
|
267
267
|
modelValue: u.value,
|
268
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
268
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => u.value = s),
|
269
269
|
label: "Is Active"
|
270
270
|
}, null, 8, ["modelValue"]),
|
271
271
|
D("div", te, [
|
272
|
-
a.gateway ? (
|
272
|
+
a.gateway ? (F(), w(v, {
|
273
273
|
key: 0,
|
274
274
|
class: "flex-1",
|
275
275
|
variant: "secondary",
|
276
276
|
label: "Delete",
|
277
277
|
onclick: () => a.onDelete(a.gateway)
|
278
278
|
}, null, 8, ["onclick"])) : S("", !0),
|
279
|
-
o(
|
279
|
+
o(v, {
|
280
280
|
type: "submit",
|
281
281
|
class: "flex-1",
|
282
282
|
variant: "primary",
|
@@ -305,8 +305,8 @@ const G = {
|
|
305
305
|
}
|
306
306
|
},
|
307
307
|
setup(a) {
|
308
|
-
var
|
309
|
-
const c = a, u = b(((
|
308
|
+
var p, m;
|
309
|
+
const c = a, u = b(((p = c.gateway) == null ? void 0 : p.active) ?? !1), t = b(((m = c.gateway) == null ? void 0 : m.config) || {
|
310
310
|
merchantId: "",
|
311
311
|
merchantName: "",
|
312
312
|
merchantCategoryCode: "",
|
@@ -314,8 +314,8 @@ const G = {
|
|
314
314
|
storeName: ""
|
315
315
|
});
|
316
316
|
return (d, e) => {
|
317
|
-
const i =
|
318
|
-
return
|
317
|
+
const i = r("FmTextField"), V = r("FmSwitch"), y = r("FmButton"), v = r("FmForm");
|
318
|
+
return F(), w(v, {
|
319
319
|
ref: "form",
|
320
320
|
class: "flex flex-col gap-16",
|
321
321
|
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, t.value))
|
@@ -351,20 +351,20 @@ const G = {
|
|
351
351
|
label: "Store Name",
|
352
352
|
rules: l(f)(l(g).string())
|
353
353
|
}, null, 8, ["modelValue", "rules"]),
|
354
|
-
o(
|
354
|
+
o(V, {
|
355
355
|
modelValue: u.value,
|
356
356
|
"onUpdate:modelValue": e[5] || (e[5] = (n) => u.value = n),
|
357
357
|
label: "Is Active"
|
358
358
|
}, null, 8, ["modelValue"]),
|
359
359
|
D("div", le, [
|
360
|
-
a.gateway ? (
|
360
|
+
a.gateway ? (F(), w(y, {
|
361
361
|
key: 0,
|
362
362
|
class: "flex-1",
|
363
363
|
variant: "secondary",
|
364
364
|
label: "Delete",
|
365
365
|
onclick: () => a.onDelete(a.gateway)
|
366
366
|
}, null, 8, ["onclick"])) : S("", !0),
|
367
|
-
o(
|
367
|
+
o(y, {
|
368
368
|
type: "submit",
|
369
369
|
class: "flex-1",
|
370
370
|
variant: "primary",
|
@@ -393,15 +393,15 @@ const G = {
|
|
393
393
|
}
|
394
394
|
},
|
395
395
|
setup(a) {
|
396
|
-
var
|
397
|
-
const c = Z(), { isLoading: u, startAsyncCall: t } =
|
396
|
+
var V, y;
|
397
|
+
const c = Z(), { isLoading: u, startAsyncCall: t } = R(), p = j(), m = a, d = b(((V = m.gateway) == null ? void 0 : V.active) ?? !1), e = b(((y = m.gateway) == null ? void 0 : y.config) || {
|
398
398
|
merchantId: ""
|
399
399
|
});
|
400
400
|
async function i() {
|
401
401
|
t(async () => {
|
402
|
-
var
|
402
|
+
var v;
|
403
403
|
try {
|
404
|
-
const { merchantID: n } = await G.grabSync(((
|
404
|
+
const { merchantID: n } = await G.grabSync(((v = p.currentRestaurant.value) == null ? void 0 : v._id) ?? "");
|
405
405
|
e.value.merchantId = n, d.value = !0, c.open({
|
406
406
|
type: "success",
|
407
407
|
title: "Grab Setting sync succesfully, you will still need to save the changes."
|
@@ -415,18 +415,18 @@ const G = {
|
|
415
415
|
}
|
416
416
|
});
|
417
417
|
}
|
418
|
-
return (
|
419
|
-
const
|
420
|
-
return
|
418
|
+
return (v, n) => {
|
419
|
+
const s = r("FmTextField"), x = r("FmButton"), C = r("FmTooltip"), T = r("FmSwitch"), k = r("FmForm");
|
420
|
+
return F(), w(k, {
|
421
421
|
ref: "form",
|
422
422
|
class: "flex flex-col gap-16",
|
423
423
|
onValidationSuccess: n[2] || (n[2] = () => a.onUpdate(d.value, e.value))
|
424
424
|
}, {
|
425
425
|
default: U(() => [
|
426
426
|
D("div", oe, [
|
427
|
-
o(
|
427
|
+
o(s, {
|
428
428
|
modelValue: e.value.merchantId,
|
429
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
429
|
+
"onUpdate:modelValue": n[0] || (n[0] = (M) => e.value.merchantId = M),
|
430
430
|
label: "Merchant ID",
|
431
431
|
rules: l(f)(l(g).string())
|
432
432
|
}, null, 8, ["modelValue", "rules"]),
|
@@ -450,11 +450,11 @@ const G = {
|
|
450
450
|
]),
|
451
451
|
o(T, {
|
452
452
|
modelValue: d.value,
|
453
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
453
|
+
"onUpdate:modelValue": n[1] || (n[1] = (M) => d.value = M),
|
454
454
|
label: "Is Active"
|
455
455
|
}, null, 8, ["modelValue"]),
|
456
456
|
D("div", ue, [
|
457
|
-
a.gateway ? (
|
457
|
+
a.gateway ? (F(), w(x, {
|
458
458
|
key: 0,
|
459
459
|
class: "flex-1",
|
460
460
|
variant: "secondary",
|
@@ -490,40 +490,45 @@ const G = {
|
|
490
490
|
}
|
491
491
|
},
|
492
492
|
setup(a) {
|
493
|
-
var
|
494
|
-
const c = a, u = b(((
|
493
|
+
var p, m;
|
494
|
+
const c = a, u = b(((p = c.gateway) == null ? void 0 : p.active) ?? !1), t = b(((m = c.gateway) == null ? void 0 : m.config) || {
|
495
495
|
mid: "",
|
496
496
|
tid: ""
|
497
497
|
});
|
498
498
|
return (d, e) => {
|
499
|
-
const i =
|
500
|
-
return
|
499
|
+
const i = r("FmTextField"), V = r("FmSwitch"), y = r("FmButton"), v = r("FmForm");
|
500
|
+
return F(), w(v, {
|
501
501
|
ref: "form",
|
502
502
|
class: "flex flex-col gap-16",
|
503
|
-
onValidationSuccess: e[
|
503
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, t.value))
|
504
504
|
}, {
|
505
505
|
default: U(() => [
|
506
506
|
o(i, {
|
507
507
|
modelValue: t.value.mid,
|
508
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
508
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => t.value.mid = n),
|
509
509
|
label: "MID",
|
510
510
|
rules: l(f)(l(g).string())
|
511
511
|
}, null, 8, ["modelValue", "rules"]),
|
512
512
|
o(i, {
|
513
513
|
modelValue: t.value.tid,
|
514
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
514
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => t.value.tid = n),
|
515
515
|
label: "TID",
|
516
516
|
rules: l(f)(l(g).string())
|
517
517
|
}, null, 8, ["modelValue", "rules"]),
|
518
|
+
o(V, {
|
519
|
+
modelValue: u.value,
|
520
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => u.value = n),
|
521
|
+
label: "Is Active"
|
522
|
+
}, null, 8, ["modelValue"]),
|
518
523
|
D("div", se, [
|
519
|
-
a.gateway ? (
|
524
|
+
a.gateway ? (F(), w(y, {
|
520
525
|
key: 0,
|
521
526
|
class: "flex-1",
|
522
527
|
variant: "secondary",
|
523
528
|
label: "Delete",
|
524
529
|
onclick: () => a.onDelete(a.gateway)
|
525
530
|
}, null, 8, ["onclick"])) : S("", !0),
|
526
|
-
o(
|
531
|
+
o(y, {
|
527
532
|
type: "submit",
|
528
533
|
class: "flex-1",
|
529
534
|
variant: "primary",
|
@@ -556,9 +561,9 @@ const G = {
|
|
556
561
|
const u = b(((t = a.gateway) == null ? void 0 : t.config) || {
|
557
562
|
merchantId: ""
|
558
563
|
});
|
559
|
-
return (
|
560
|
-
const d =
|
561
|
-
return
|
564
|
+
return (p, m) => {
|
565
|
+
const d = r("FmTextField"), e = r("FmButton"), i = r("FmForm");
|
566
|
+
return F(), w(i, {
|
562
567
|
ref: "form",
|
563
568
|
class: "flex flex-col gap-16",
|
564
569
|
onValidationSuccess: m[1] || (m[1] = () => a.onUpdate(u.value))
|
@@ -566,12 +571,12 @@ const G = {
|
|
566
571
|
default: U(() => [
|
567
572
|
o(d, {
|
568
573
|
modelValue: u.value.merchantId,
|
569
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
574
|
+
"onUpdate:modelValue": m[0] || (m[0] = (V) => u.value.merchantId = V),
|
570
575
|
label: "Merchant ID",
|
571
576
|
rules: l(f)(l(g).string())
|
572
577
|
}, null, 8, ["modelValue", "rules"]),
|
573
578
|
D("div", me, [
|
574
|
-
a.gateway ? (
|
579
|
+
a.gateway ? (F(), w(e, {
|
575
580
|
key: 0,
|
576
581
|
class: "flex-1",
|
577
582
|
variant: "secondary",
|
@@ -645,52 +650,52 @@ const G = {
|
|
645
650
|
form: ce,
|
646
651
|
region: [I.F_COUNTRY.enum.TH]
|
647
652
|
}
|
648
|
-
], u = a, t = j(), { isLoading:
|
653
|
+
], u = a, t = j(), { isLoading: p, startAsyncCall: m } = R(), { activeGateway: d } = E({
|
649
654
|
activeGateway: ""
|
650
655
|
}), e = b([]);
|
651
|
-
async function i(
|
656
|
+
async function i(s, x) {
|
652
657
|
await m(async () => {
|
653
658
|
const C = {
|
654
659
|
_id: "",
|
655
660
|
_rev: "",
|
656
661
|
paymentGateway: d.value,
|
657
662
|
config: x,
|
658
|
-
active:
|
663
|
+
active: s
|
659
664
|
}, T = e.value.find((k) => k.paymentGateway === d.value);
|
660
665
|
T && (C._id = T._id, C._rev = T._rev), await G.upsert(u.restaurant._id, C), e.value = await G.get(u.restaurant._id);
|
661
666
|
});
|
662
667
|
}
|
663
|
-
async function
|
668
|
+
async function V(s) {
|
664
669
|
m(async () => {
|
665
|
-
await G.delete(u.restaurant._id,
|
670
|
+
await G.delete(u.restaurant._id, s._id), e.value = await G.get(u.restaurant._id);
|
666
671
|
});
|
667
672
|
}
|
668
|
-
const
|
669
|
-
function
|
673
|
+
const y = O(() => c.filter((s) => s.region.includes(t.currentCountry.value ?? I.F_COUNTRY.enum.MY)));
|
674
|
+
function v() {
|
670
675
|
m(async () => {
|
671
|
-
e.value = await G.get(u.restaurant._id),
|
676
|
+
e.value = await G.get(u.restaurant._id), y.value.length > 0 && (d.value = y.value[0].value);
|
672
677
|
});
|
673
678
|
}
|
674
|
-
$(
|
675
|
-
const n =
|
676
|
-
var
|
677
|
-
return (
|
679
|
+
$(v);
|
680
|
+
const n = O(() => {
|
681
|
+
var s;
|
682
|
+
return (s = c.find((x) => x.value === d.value)) == null ? void 0 : s.form;
|
678
683
|
});
|
679
|
-
return (
|
680
|
-
const C =
|
681
|
-
return
|
682
|
-
l(
|
684
|
+
return (s, x) => {
|
685
|
+
const C = r("FmCircularProgress"), T = r("FmTabs");
|
686
|
+
return F(), N(L, null, [
|
687
|
+
l(p) ? (F(), N("div", de, [
|
683
688
|
o(C, { size: "xxl" })
|
684
689
|
])) : S("", !0),
|
685
690
|
o(T, {
|
686
691
|
class: "mb-6",
|
687
692
|
"model-value": l(d),
|
688
693
|
"onUpdate:modelValue": x[0] || (x[0] = (k) => B(d) ? d.value = k : null),
|
689
|
-
items:
|
694
|
+
items: y.value
|
690
695
|
}, null, 8, ["model-value", "items"]),
|
691
|
-
l(d) ? (
|
696
|
+
l(d) ? (F(), w(P(n.value), K(Y({ key: 1 }, {
|
692
697
|
gateway: e.value.find((k) => k.paymentGateway === l(d)),
|
693
|
-
onDelete:
|
698
|
+
onDelete: V,
|
694
699
|
onUpdate: i
|
695
700
|
})), null, 16)) : S("", !0)
|
696
701
|
], 64);
|
@@ -707,7 +712,7 @@ const G = {
|
|
707
712
|
setup(a) {
|
708
713
|
const c = a, { tab: u } = E({
|
709
714
|
tab: "payment-gateway"
|
710
|
-
}), { isLoading: t, startAsyncCall:
|
715
|
+
}), { isLoading: t, startAsyncCall: p } = R(!0), m = H(), d = b(), e = [
|
711
716
|
{
|
712
717
|
label: "Payment Gateway",
|
713
718
|
value: "payment-gateway",
|
@@ -716,31 +721,31 @@ const G = {
|
|
716
721
|
}
|
717
722
|
];
|
718
723
|
function i() {
|
719
|
-
|
724
|
+
p(async () => {
|
720
725
|
d.value = await J.readRestaurantById(c.restaurantId);
|
721
726
|
});
|
722
727
|
}
|
723
728
|
$(i);
|
724
|
-
const
|
725
|
-
var
|
726
|
-
return (
|
729
|
+
const V = O(() => {
|
730
|
+
var y;
|
731
|
+
return (y = e.find((v) => v.value === u.value)) == null ? void 0 : y.render;
|
727
732
|
});
|
728
|
-
return (
|
729
|
-
var
|
730
|
-
const n =
|
731
|
-
return
|
732
|
-
title: `Restaurant (${(
|
733
|
+
return (y, v) => {
|
734
|
+
var s;
|
735
|
+
const n = r("FmTabs");
|
736
|
+
return F(), w(z, {
|
737
|
+
title: `Restaurant (${(s = d.value) == null ? void 0 : s._id})`,
|
733
738
|
loading: l(t),
|
734
739
|
onBack: l(m).back
|
735
740
|
}, {
|
736
741
|
default: U(() => [
|
737
742
|
o(n, {
|
738
743
|
"model-value": l(u),
|
739
|
-
"onUpdate:modelValue":
|
744
|
+
"onUpdate:modelValue": v[0] || (v[0] = (x) => B(u) ? u.value = x : null),
|
740
745
|
class: "mb-6",
|
741
746
|
items: e
|
742
747
|
}, null, 8, ["model-value"]),
|
743
|
-
l(u) && d.value ? (
|
748
|
+
l(u) && d.value ? (F(), w(P(V.value), K(Y({ key: 0 }, {
|
744
749
|
restaurant: d.value
|
745
750
|
})), null, 16)) : S("", !0)
|
746
751
|
]),
|
@@ -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-C8dj5wuz.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-BRBuCpqm.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-CAkhGbuS.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-C8dj5wuz.js";
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as _ } from "./index-
|
4
|
+
import { s as _ } from "./index-BRBuCpqm.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-CAkhGbuS.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";
|