@feedmepos/mf-payment 1.5.62-dev → 1.5.64-dev
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-CuMzUFr4.js → Actions.vue_vue_type_script_setup_true_lang-D4Vqzy09.js} +1 -1
- package/dist/{Chargeback-CBbWxbvV.js → Chargeback-BqeZFXW6.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CzHNX9ap.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CMaTG0WU.js} +1 -1
- package/dist/{OnboardForm-evcmirj1.js → OnboardForm-Brio8PFS.js} +5 -5
- package/dist/{OnboardForm-BQsNHwxR.js → OnboardForm-yVKzD609.js} +5 -5
- package/dist/{OnboardSubmission-CSy6lEQ1.js → OnboardSubmission-BYvgYNkK.js} +5 -5
- package/dist/{OnboardSubmission-CJMxQgUb.js → OnboardSubmission-CzR8nXw1.js} +254 -247
- package/dist/{PayoutAccount-D1i1otbs.js → PayoutAccount-BgAa7zFo.js} +4 -4
- package/dist/{PayoutAccount-DbdIwsth.js → PayoutAccount-D0wpj1dm.js} +5 -5
- package/dist/{PayoutAccountSetting-BZSYlXgn.js → PayoutAccountSetting-CkrRvte4.js} +4 -4
- package/dist/{Restaurant-BONB5gLl.js → Restaurant-BQ8-pOeP.js} +4 -4
- package/dist/{RestaurantSetting-DX-9p5m6.js → RestaurantSetting-BXii0HXX.js} +242 -235
- package/dist/{Settlement-D7WpQDYZ.js → Settlement-D0OnbNPH.js} +4 -4
- package/dist/{Settlement-DicFfMKq.js → Settlement-DSHOPPUh.js} +3 -3
- package/dist/{SettlementTransactions-CdLtrBMB.js → SettlementTransactions-DaVTyPcJ.js} +4 -4
- package/dist/{SettlementTransactions-Bia1FYKe.js → SettlementTransactions-DpEt7wLE.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-XvoMHt4k.js → Status.vue_vue_type_script_setup_true_lang-B05LuBsp.js} +1 -1
- package/dist/{Terminal-BEuNnTyV.js → Terminal-NAhda9IQ.js} +5 -5
- package/dist/{TerminalSetting-E5Ogkphe.js → TerminalSetting-GHoLcHpJ.js} +710 -679
- package/dist/{Transaction-C7JP5Pa2.js → Transaction-B45NPqif.js} +9 -9
- package/dist/{Transaction-JCOHuT8y.js → Transaction-NyZ8Ccc6.js} +5 -5
- package/dist/{TransactionOld-CkCw1orB.js → TransactionOld-C57ZBqVr.js} +6 -6
- package/dist/{app-BsT-qPq1.js → app-CxUYS_yY.js} +29 -29
- package/dist/app.js +1 -1
- package/dist/{assets-C33MQ2U-.js → assets-B_zPI08-.js} +1 -1
- package/dist/{grafana-WXlihYZR.js → grafana-CsFUAPt6.js} +1 -1
- package/dist/{index-8puctVkP.js → index-7Z9p1eCA.js} +1 -1
- package/dist/{index-Brgy4-bG.js → index-B317hrHB.js} +1 -1
- package/dist/{index-f4-J5uyS.js → index-B9nBAihf.js} +1 -1
- package/dist/{index-D2L-xfUj.js → index-B_qUyJzb.js} +1028 -1002
- package/dist/{index-CmNdj-l1.js → index-BkKT37K1.js} +1 -1
- package/dist/{index-CZZ-H3n4.js → index-CSu-hYGn.js} +1 -1
- package/dist/{index-BpLbzUH-.js → index-CU3pLYbg.js} +2 -2
- package/dist/{index-D2YQjKqs.js → index-DO2S4bEB.js} +1 -1
- package/dist/{index-GbZ7SCR2.js → index-Tmt8zfe5.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-1sEeWeSt.js → index.vue_vue_type_script_setup_true_lang-ByG2zlLp.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-CR7mbhfJ.js → payout-account-BG6bgqZy.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +2 -0
- package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as
|
|
2
|
-
import { g as q, b as M, u as O, e as
|
|
1
|
+
import { defineComponent as D, ref as w, resolveComponent as r, openBlock as g, createBlock as b, withCtx as S, createVNode as o, unref as n, createElementVNode as T, createCommentVNode as U, computed as G, onMounted as N, createElementBlock as R, Fragment as L, isRef as B, resolveDynamicComponent as $, mergeProps as Y, normalizeProps as H } from "vue";
|
|
2
|
+
import { g as q, b as M, u as O, e as I } from "./index-B_qUyJzb.js";
|
|
3
3
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
4
4
|
import { useRouter as Q } from "vue-router";
|
|
5
|
-
import { u as P } from "./index-
|
|
6
|
-
import { z as
|
|
5
|
+
import { u as P } from "./index-CSu-hYGn.js";
|
|
6
|
+
import { z as y, a as f } from "./validator-DzjyJnvv.js";
|
|
7
7
|
import { useCoreStore as E } 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-B9nBAihf.js";
|
|
11
11
|
const A = {
|
|
12
12
|
async get(a) {
|
|
13
13
|
return q(
|
|
@@ -16,18 +16,18 @@ const A = {
|
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
18
|
},
|
|
19
|
-
async upsert(a,
|
|
19
|
+
async upsert(a, i) {
|
|
20
20
|
return q(
|
|
21
21
|
await M().post(
|
|
22
22
|
`restaurants/${a}/payment-gateway`,
|
|
23
|
-
{ data:
|
|
23
|
+
{ data: i }
|
|
24
24
|
)
|
|
25
25
|
);
|
|
26
26
|
},
|
|
27
|
-
async delete(a,
|
|
27
|
+
async delete(a, i) {
|
|
28
28
|
return q(
|
|
29
29
|
await M().delete(
|
|
30
|
-
`restaurants/${a}/payment-gateway/${
|
|
30
|
+
`restaurants/${a}/payment-gateway/${i}`
|
|
31
31
|
)
|
|
32
32
|
);
|
|
33
33
|
},
|
|
@@ -55,9 +55,9 @@ const A = {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
setup(a) {
|
|
58
|
-
var c,
|
|
59
|
-
const
|
|
60
|
-
((
|
|
58
|
+
var c, m;
|
|
59
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
60
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
61
61
|
merchantId: "",
|
|
62
62
|
uniqueId: "",
|
|
63
63
|
verifyKey: "",
|
|
@@ -71,48 +71,48 @@ const A = {
|
|
|
71
71
|
return g(), b(v, {
|
|
72
72
|
ref: "form",
|
|
73
73
|
class: "flex flex-col gap-16",
|
|
74
|
-
onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value,
|
|
74
|
+
onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, l.value))
|
|
75
75
|
}, {
|
|
76
|
-
default:
|
|
76
|
+
default: S(() => [
|
|
77
77
|
o(s, {
|
|
78
|
-
modelValue:
|
|
79
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
78
|
+
modelValue: l.value.merchantId,
|
|
79
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
|
|
80
80
|
label: "Merchant ID",
|
|
81
|
-
rules: n(
|
|
81
|
+
rules: n(y)(n(f).string())
|
|
82
82
|
}, null, 8, ["modelValue", "rules"]),
|
|
83
83
|
o(s, {
|
|
84
|
-
modelValue:
|
|
85
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
84
|
+
modelValue: l.value.uniqueId,
|
|
85
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.uniqueId = t),
|
|
86
86
|
label: "Unique ID",
|
|
87
|
-
rules: n(
|
|
87
|
+
rules: n(y)(n(f).string())
|
|
88
88
|
}, null, 8, ["modelValue", "rules"]),
|
|
89
89
|
o(s, {
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
90
|
+
modelValue: l.value.verifyKey,
|
|
91
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.verifyKey = t),
|
|
92
92
|
label: "Verify Key",
|
|
93
|
-
rules: n(
|
|
93
|
+
rules: n(y)(n(f).string())
|
|
94
94
|
}, null, 8, ["modelValue", "rules"]),
|
|
95
95
|
o(s, {
|
|
96
|
-
modelValue:
|
|
97
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
96
|
+
modelValue: l.value.secretKey,
|
|
97
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.secretKey = t),
|
|
98
98
|
label: "Secret Key",
|
|
99
|
-
rules: n(
|
|
99
|
+
rules: n(y)(n(f).string())
|
|
100
100
|
}, null, 8, ["modelValue", "rules"]),
|
|
101
101
|
o(s, {
|
|
102
|
-
modelValue:
|
|
103
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
102
|
+
modelValue: l.value.applicationCode,
|
|
103
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.applicationCode = t),
|
|
104
104
|
label: "Application Code ( Offline )",
|
|
105
|
-
rules: n(
|
|
105
|
+
rules: n(y)(n(f).string())
|
|
106
106
|
}, null, 8, ["modelValue", "rules"]),
|
|
107
107
|
o(s, {
|
|
108
|
-
modelValue:
|
|
109
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
108
|
+
modelValue: l.value.offlineSecret,
|
|
109
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => l.value.offlineSecret = t),
|
|
110
110
|
label: "Offline Secret ( Offline )",
|
|
111
|
-
rules: n(
|
|
111
|
+
rules: n(y)(n(f).string())
|
|
112
112
|
}, null, 8, ["modelValue", "rules"]),
|
|
113
113
|
o(V, {
|
|
114
114
|
modelValue: u.value,
|
|
115
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
|
115
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => u.value = t),
|
|
116
116
|
label: "Is Active"
|
|
117
117
|
}, null, 8, ["modelValue"]),
|
|
118
118
|
T("div", X, [
|
|
@@ -122,7 +122,7 @@ const A = {
|
|
|
122
122
|
variant: "secondary",
|
|
123
123
|
label: "Delete",
|
|
124
124
|
onclick: () => a.onDelete(a.gateway)
|
|
125
|
-
}, null, 8, ["onclick"])) :
|
|
125
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
126
126
|
o(d, {
|
|
127
127
|
type: "submit",
|
|
128
128
|
class: "flex-1",
|
|
@@ -135,7 +135,7 @@ const A = {
|
|
|
135
135
|
}, 512);
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
}), ee = { class: "flex mt-6 space-x-6" },
|
|
138
|
+
}), ee = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ D({
|
|
139
139
|
__name: "RevenueMonsterGateway",
|
|
140
140
|
props: {
|
|
141
141
|
onUpdate: {
|
|
@@ -152,9 +152,9 @@ const A = {
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
setup(a) {
|
|
155
|
-
var c,
|
|
156
|
-
const
|
|
157
|
-
((
|
|
155
|
+
var c, m;
|
|
156
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
157
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
158
158
|
storeId: "",
|
|
159
159
|
clientId: "",
|
|
160
160
|
clientSecret: "",
|
|
@@ -162,39 +162,39 @@ const A = {
|
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
return (F, e) => {
|
|
165
|
-
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"),
|
|
166
|
-
return g(), b(
|
|
165
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
|
|
166
|
+
return g(), b(t, {
|
|
167
167
|
ref: "form",
|
|
168
168
|
class: "flex flex-col gap-16",
|
|
169
|
-
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value,
|
|
169
|
+
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, l.value))
|
|
170
170
|
}, {
|
|
171
|
-
default:
|
|
171
|
+
default: S(() => [
|
|
172
172
|
o(s, {
|
|
173
|
-
modelValue:
|
|
174
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
173
|
+
modelValue: l.value.storeId,
|
|
174
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.storeId = p),
|
|
175
175
|
label: "Store ID",
|
|
176
|
-
rules: n(
|
|
176
|
+
rules: n(y)(n(f).string())
|
|
177
177
|
}, null, 8, ["modelValue", "rules"]),
|
|
178
178
|
o(s, {
|
|
179
|
-
modelValue:
|
|
180
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
179
|
+
modelValue: l.value.clientId,
|
|
180
|
+
"onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.clientId = p),
|
|
181
181
|
label: "Client ID",
|
|
182
|
-
rules: n(
|
|
182
|
+
rules: n(y)(n(f).string())
|
|
183
183
|
}, null, 8, ["modelValue", "rules"]),
|
|
184
184
|
o(s, {
|
|
185
|
-
modelValue:
|
|
186
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
185
|
+
modelValue: l.value.clientSecret,
|
|
186
|
+
"onUpdate:modelValue": e[2] || (e[2] = (p) => l.value.clientSecret = p),
|
|
187
187
|
label: "Client Secret",
|
|
188
|
-
rules: n(
|
|
188
|
+
rules: n(y)(n(f).string())
|
|
189
189
|
}, null, 8, ["modelValue", "rules"]),
|
|
190
190
|
o(V, {
|
|
191
|
-
modelValue:
|
|
192
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
191
|
+
modelValue: l.value.clientPrivateKey,
|
|
192
|
+
"onUpdate:modelValue": e[3] || (e[3] = (p) => l.value.clientPrivateKey = p),
|
|
193
193
|
label: "Client Private Key"
|
|
194
194
|
}, null, 8, ["modelValue"]),
|
|
195
195
|
o(d, {
|
|
196
196
|
modelValue: u.value,
|
|
197
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
197
|
+
"onUpdate:modelValue": e[4] || (e[4] = (p) => u.value = p),
|
|
198
198
|
label: "Is Active"
|
|
199
199
|
}, null, 8, ["modelValue"]),
|
|
200
200
|
T("div", ee, [
|
|
@@ -204,7 +204,7 @@ const A = {
|
|
|
204
204
|
variant: "secondary",
|
|
205
205
|
label: "Delete",
|
|
206
206
|
onclick: () => a.onDelete(a.gateway)
|
|
207
|
-
}, null, 8, ["onclick"])) :
|
|
207
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
208
208
|
o(v, {
|
|
209
209
|
type: "submit",
|
|
210
210
|
class: "flex-1",
|
|
@@ -217,7 +217,7 @@ const A = {
|
|
|
217
217
|
}, 512);
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
220
|
+
}), te = { class: "flex mt-6 space-x-6" }, ae = /* @__PURE__ */ D({
|
|
221
221
|
__name: "GhlGateway",
|
|
222
222
|
props: {
|
|
223
223
|
onUpdate: {
|
|
@@ -234,54 +234,54 @@ const A = {
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
setup(a) {
|
|
237
|
-
var c,
|
|
238
|
-
const
|
|
239
|
-
((
|
|
237
|
+
var c, m;
|
|
238
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
239
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
240
240
|
merchantId: "",
|
|
241
241
|
terminalId: "",
|
|
242
242
|
privateKey: ""
|
|
243
243
|
}
|
|
244
244
|
);
|
|
245
245
|
return (F, e) => {
|
|
246
|
-
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"),
|
|
247
|
-
return g(), b(
|
|
246
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
|
|
247
|
+
return g(), b(t, {
|
|
248
248
|
ref: "form",
|
|
249
249
|
class: "flex flex-col gap-16",
|
|
250
|
-
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value,
|
|
250
|
+
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, l.value))
|
|
251
251
|
}, {
|
|
252
|
-
default:
|
|
252
|
+
default: S(() => [
|
|
253
253
|
o(s, {
|
|
254
|
-
modelValue:
|
|
255
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
254
|
+
modelValue: l.value.merchantId,
|
|
255
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.merchantId = p),
|
|
256
256
|
label: "Merchant ID",
|
|
257
|
-
rules: n(
|
|
257
|
+
rules: n(y)(n(f).string())
|
|
258
258
|
}, null, 8, ["modelValue", "rules"]),
|
|
259
259
|
o(s, {
|
|
260
|
-
modelValue:
|
|
261
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
260
|
+
modelValue: l.value.terminalId,
|
|
261
|
+
"onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.terminalId = p),
|
|
262
262
|
label: "Terminal ID",
|
|
263
|
-
rules: n(
|
|
263
|
+
rules: n(y)(n(f).string())
|
|
264
264
|
}, null, 8, ["modelValue", "rules"]),
|
|
265
265
|
o(V, {
|
|
266
|
-
modelValue:
|
|
267
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
266
|
+
modelValue: l.value.privateKey,
|
|
267
|
+
"onUpdate:modelValue": e[2] || (e[2] = (p) => l.value.privateKey = p),
|
|
268
268
|
label: "Private Key",
|
|
269
269
|
"label-mark": "optional",
|
|
270
270
|
"label-info": "Default will use FeedMe Private Key"
|
|
271
271
|
}, null, 8, ["modelValue"]),
|
|
272
272
|
o(d, {
|
|
273
273
|
modelValue: u.value,
|
|
274
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
274
|
+
"onUpdate:modelValue": e[3] || (e[3] = (p) => u.value = p),
|
|
275
275
|
label: "Is Active"
|
|
276
276
|
}, null, 8, ["modelValue"]),
|
|
277
|
-
T("div",
|
|
277
|
+
T("div", te, [
|
|
278
278
|
a.gateway ? (g(), b(v, {
|
|
279
279
|
key: 0,
|
|
280
280
|
class: "flex-1",
|
|
281
281
|
variant: "secondary",
|
|
282
282
|
label: "Delete",
|
|
283
283
|
onclick: () => a.onDelete(a.gateway)
|
|
284
|
-
}, null, 8, ["onclick"])) :
|
|
284
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
285
285
|
o(v, {
|
|
286
286
|
type: "submit",
|
|
287
287
|
class: "flex-1",
|
|
@@ -311,9 +311,9 @@ const A = {
|
|
|
311
311
|
}
|
|
312
312
|
},
|
|
313
313
|
setup(a) {
|
|
314
|
-
var c,
|
|
315
|
-
const
|
|
316
|
-
((
|
|
314
|
+
var c, m;
|
|
315
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
316
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
317
317
|
merchantId: "",
|
|
318
318
|
merchantName: "",
|
|
319
319
|
merchantCategoryCode: "",
|
|
@@ -326,42 +326,42 @@ const A = {
|
|
|
326
326
|
return g(), b(v, {
|
|
327
327
|
ref: "form",
|
|
328
328
|
class: "flex flex-col gap-16",
|
|
329
|
-
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value,
|
|
329
|
+
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, l.value))
|
|
330
330
|
}, {
|
|
331
|
-
default:
|
|
331
|
+
default: S(() => [
|
|
332
332
|
o(s, {
|
|
333
|
-
modelValue:
|
|
334
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
333
|
+
modelValue: l.value.merchantId,
|
|
334
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
|
|
335
335
|
label: "Merchant ID",
|
|
336
|
-
rules: n(
|
|
336
|
+
rules: n(y)(n(f).string())
|
|
337
337
|
}, null, 8, ["modelValue", "rules"]),
|
|
338
338
|
o(s, {
|
|
339
|
-
modelValue:
|
|
340
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
339
|
+
modelValue: l.value.merchantName,
|
|
340
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantName = t),
|
|
341
341
|
label: "Merchant Name",
|
|
342
|
-
rules: n(
|
|
342
|
+
rules: n(y)(n(f).string())
|
|
343
343
|
}, null, 8, ["modelValue", "rules"]),
|
|
344
344
|
o(s, {
|
|
345
|
-
modelValue:
|
|
346
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
345
|
+
modelValue: l.value.merchantCategoryCode,
|
|
346
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.merchantCategoryCode = t),
|
|
347
347
|
label: "Merchant MCC",
|
|
348
|
-
rules: n(
|
|
348
|
+
rules: n(y)(n(f).string())
|
|
349
349
|
}, null, 8, ["modelValue", "rules"]),
|
|
350
350
|
o(s, {
|
|
351
|
-
modelValue:
|
|
352
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
351
|
+
modelValue: l.value.storeID,
|
|
352
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.storeID = t),
|
|
353
353
|
label: "Store ID",
|
|
354
|
-
rules: n(
|
|
354
|
+
rules: n(y)(n(f).string())
|
|
355
355
|
}, null, 8, ["modelValue", "rules"]),
|
|
356
356
|
o(s, {
|
|
357
|
-
modelValue:
|
|
358
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
357
|
+
modelValue: l.value.storeName,
|
|
358
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.storeName = t),
|
|
359
359
|
label: "Store Name",
|
|
360
|
-
rules: n(
|
|
360
|
+
rules: n(y)(n(f).string())
|
|
361
361
|
}, null, 8, ["modelValue", "rules"]),
|
|
362
362
|
o(V, {
|
|
363
363
|
modelValue: u.value,
|
|
364
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
364
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => u.value = t),
|
|
365
365
|
label: "Is Active"
|
|
366
366
|
}, null, 8, ["modelValue"]),
|
|
367
367
|
T("div", ne, [
|
|
@@ -371,7 +371,7 @@ const A = {
|
|
|
371
371
|
variant: "secondary",
|
|
372
372
|
label: "Delete",
|
|
373
373
|
onclick: () => a.onDelete(a.gateway)
|
|
374
|
-
}, null, 8, ["onclick"])) :
|
|
374
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
375
375
|
o(d, {
|
|
376
376
|
type: "submit",
|
|
377
377
|
class: "flex-1",
|
|
@@ -402,52 +402,52 @@ const A = {
|
|
|
402
402
|
},
|
|
403
403
|
setup(a) {
|
|
404
404
|
var V, d;
|
|
405
|
-
const
|
|
406
|
-
((d =
|
|
405
|
+
const i = J(), { isLoading: u, startAsyncCall: l } = O(), c = E(), m = a, F = w(((V = m.gateway) == null ? void 0 : V.active) ?? !1), e = w(
|
|
406
|
+
((d = m.gateway) == null ? void 0 : d.config) || {
|
|
407
407
|
merchantId: ""
|
|
408
408
|
}
|
|
409
409
|
);
|
|
410
410
|
async function s() {
|
|
411
|
-
|
|
411
|
+
l(async () => {
|
|
412
412
|
var v;
|
|
413
413
|
try {
|
|
414
|
-
const { merchantID:
|
|
414
|
+
const { merchantID: t } = await A.grabSync(
|
|
415
415
|
((v = c.currentRestaurant.value) == null ? void 0 : v._id) ?? ""
|
|
416
416
|
);
|
|
417
|
-
e.value.merchantId =
|
|
417
|
+
e.value.merchantId = t, F.value = !0, i.open({
|
|
418
418
|
type: "success",
|
|
419
419
|
title: "Grab Setting sync successfully, you will still need to save the changes."
|
|
420
420
|
});
|
|
421
|
-
} catch (
|
|
422
|
-
|
|
421
|
+
} catch (t) {
|
|
422
|
+
i.open({
|
|
423
423
|
type: "error",
|
|
424
424
|
title: "Error occurs when sync ordering settings",
|
|
425
|
-
message: Z(
|
|
425
|
+
message: Z(t)
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
return (v,
|
|
431
|
-
const
|
|
430
|
+
return (v, t) => {
|
|
431
|
+
const p = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), _ = r("FmSwitch"), K = r("FmForm");
|
|
432
432
|
return g(), b(K, {
|
|
433
433
|
ref: "form",
|
|
434
434
|
class: "flex flex-col gap-16",
|
|
435
|
-
onValidationSuccess:
|
|
435
|
+
onValidationSuccess: t[2] || (t[2] = () => a.onUpdate(F.value, e.value))
|
|
436
436
|
}, {
|
|
437
|
-
default:
|
|
437
|
+
default: S(() => [
|
|
438
438
|
T("div", ue, [
|
|
439
|
-
o(
|
|
439
|
+
o(p, {
|
|
440
440
|
modelValue: e.value.merchantId,
|
|
441
|
-
"onUpdate:modelValue":
|
|
441
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => e.value.merchantId = C),
|
|
442
442
|
label: "Merchant ID",
|
|
443
|
-
rules: n(
|
|
443
|
+
rules: n(y)(n(f).string())
|
|
444
444
|
}, null, 8, ["modelValue", "rules"]),
|
|
445
445
|
o(k, {
|
|
446
446
|
variant: "plain",
|
|
447
447
|
placement: "right",
|
|
448
448
|
content: "Sync from Ordering Settings"
|
|
449
449
|
}, {
|
|
450
|
-
default:
|
|
450
|
+
default: S(() => [
|
|
451
451
|
o(x, {
|
|
452
452
|
class: "ml-2",
|
|
453
453
|
type: "button",
|
|
@@ -462,7 +462,7 @@ const A = {
|
|
|
462
462
|
]),
|
|
463
463
|
o(_, {
|
|
464
464
|
modelValue: F.value,
|
|
465
|
-
"onUpdate:modelValue":
|
|
465
|
+
"onUpdate:modelValue": t[1] || (t[1] = (C) => F.value = C),
|
|
466
466
|
label: "Is Active"
|
|
467
467
|
}, null, 8, ["modelValue"]),
|
|
468
468
|
T("div", re, [
|
|
@@ -472,7 +472,7 @@ const A = {
|
|
|
472
472
|
variant: "secondary",
|
|
473
473
|
label: "Delete",
|
|
474
474
|
onclick: () => a.onDelete(a.gateway)
|
|
475
|
-
}, null, 8, ["onclick"])) :
|
|
475
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
476
476
|
o(x, {
|
|
477
477
|
type: "submit",
|
|
478
478
|
class: "flex-1",
|
|
@@ -485,7 +485,7 @@ const A = {
|
|
|
485
485
|
}, 512);
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
}),
|
|
488
|
+
}), ie = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */ D({
|
|
489
489
|
__name: "SoftSpaceGateway",
|
|
490
490
|
props: {
|
|
491
491
|
onUpdate: {
|
|
@@ -502,11 +502,12 @@ const A = {
|
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
setup(a) {
|
|
505
|
-
var c,
|
|
506
|
-
const
|
|
507
|
-
((
|
|
505
|
+
var c, m;
|
|
506
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
507
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
508
508
|
mid: "",
|
|
509
|
-
tid: ""
|
|
509
|
+
tid: "",
|
|
510
|
+
profileId: ""
|
|
510
511
|
}
|
|
511
512
|
);
|
|
512
513
|
return (F, e) => {
|
|
@@ -514,34 +515,40 @@ const A = {
|
|
|
514
515
|
return g(), b(v, {
|
|
515
516
|
ref: "form",
|
|
516
517
|
class: "flex flex-col gap-16",
|
|
517
|
-
onValidationSuccess: e[
|
|
518
|
+
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, l.value))
|
|
518
519
|
}, {
|
|
519
|
-
default:
|
|
520
|
+
default: S(() => [
|
|
520
521
|
o(s, {
|
|
521
|
-
modelValue:
|
|
522
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
522
|
+
modelValue: l.value.mid,
|
|
523
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.mid = t),
|
|
523
524
|
label: "MID",
|
|
524
|
-
rules: n(
|
|
525
|
+
rules: n(y)(n(f).string())
|
|
525
526
|
}, null, 8, ["modelValue", "rules"]),
|
|
526
527
|
o(s, {
|
|
527
|
-
modelValue:
|
|
528
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
528
|
+
modelValue: l.value.tid,
|
|
529
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.tid = t),
|
|
529
530
|
label: "TID",
|
|
530
|
-
rules: n(
|
|
531
|
+
rules: n(y)(n(f).string())
|
|
532
|
+
}, null, 8, ["modelValue", "rules"]),
|
|
533
|
+
o(s, {
|
|
534
|
+
modelValue: l.value.profileId,
|
|
535
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.profileId = t),
|
|
536
|
+
label: "Profile ID",
|
|
537
|
+
rules: n(y)(n(f).string())
|
|
531
538
|
}, null, 8, ["modelValue", "rules"]),
|
|
532
539
|
o(V, {
|
|
533
540
|
modelValue: u.value,
|
|
534
|
-
"onUpdate:modelValue": e[
|
|
541
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => u.value = t),
|
|
535
542
|
label: "Is Active"
|
|
536
543
|
}, null, 8, ["modelValue"]),
|
|
537
|
-
T("div",
|
|
544
|
+
T("div", ie, [
|
|
538
545
|
a.gateway ? (g(), b(d, {
|
|
539
546
|
key: 0,
|
|
540
547
|
class: "flex-1",
|
|
541
548
|
variant: "secondary",
|
|
542
549
|
label: "Delete",
|
|
543
550
|
onclick: () => a.onDelete(a.gateway)
|
|
544
|
-
}, null, 8, ["onclick"])) :
|
|
551
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
545
552
|
o(d, {
|
|
546
553
|
type: "submit",
|
|
547
554
|
class: "flex-1",
|
|
@@ -571,9 +578,9 @@ const A = {
|
|
|
571
578
|
}
|
|
572
579
|
},
|
|
573
580
|
setup(a) {
|
|
574
|
-
var c,
|
|
575
|
-
const
|
|
576
|
-
((
|
|
581
|
+
var c, m;
|
|
582
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
583
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
577
584
|
merchantId: ""
|
|
578
585
|
}
|
|
579
586
|
);
|
|
@@ -582,18 +589,18 @@ const A = {
|
|
|
582
589
|
return g(), b(v, {
|
|
583
590
|
ref: "form",
|
|
584
591
|
class: "flex flex-col gap-16",
|
|
585
|
-
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value,
|
|
592
|
+
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value, l.value))
|
|
586
593
|
}, {
|
|
587
|
-
default:
|
|
594
|
+
default: S(() => [
|
|
588
595
|
o(s, {
|
|
589
|
-
modelValue:
|
|
590
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
596
|
+
modelValue: l.value.merchantId,
|
|
597
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.merchantId = t),
|
|
591
598
|
label: "Merchant ID",
|
|
592
|
-
rules: n(
|
|
599
|
+
rules: n(y)(n(f).string())
|
|
593
600
|
}, null, 8, ["modelValue", "rules"]),
|
|
594
601
|
o(V, {
|
|
595
602
|
modelValue: u.value,
|
|
596
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
603
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => u.value = t),
|
|
597
604
|
label: "Is Active"
|
|
598
605
|
}, null, 8, ["modelValue"]),
|
|
599
606
|
T("div", de, [
|
|
@@ -603,7 +610,7 @@ const A = {
|
|
|
603
610
|
variant: "secondary",
|
|
604
611
|
label: "Delete",
|
|
605
612
|
onclick: () => a.onDelete(a.gateway)
|
|
606
|
-
}, null, 8, ["onclick"])) :
|
|
613
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
607
614
|
o(d, {
|
|
608
615
|
type: "submit",
|
|
609
616
|
class: "flex-1",
|
|
@@ -616,7 +623,7 @@ const A = {
|
|
|
616
623
|
}, 512);
|
|
617
624
|
};
|
|
618
625
|
}
|
|
619
|
-
}), ve = { class: "flex mt-6 space-x-6" },
|
|
626
|
+
}), ve = { class: "flex mt-6 space-x-6" }, pe = /* @__PURE__ */ D({
|
|
620
627
|
__name: "AdyenGateway",
|
|
621
628
|
props: {
|
|
622
629
|
onUpdate: {
|
|
@@ -633,9 +640,9 @@ const A = {
|
|
|
633
640
|
}
|
|
634
641
|
},
|
|
635
642
|
setup(a) {
|
|
636
|
-
var c,
|
|
637
|
-
const
|
|
638
|
-
((
|
|
643
|
+
var c, m;
|
|
644
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
645
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
639
646
|
merchantAccount: "",
|
|
640
647
|
username: "",
|
|
641
648
|
apiKey: "",
|
|
@@ -648,41 +655,41 @@ const A = {
|
|
|
648
655
|
return g(), b(v, {
|
|
649
656
|
ref: "form",
|
|
650
657
|
class: "flex flex-col gap-16",
|
|
651
|
-
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value,
|
|
658
|
+
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, l.value))
|
|
652
659
|
}, {
|
|
653
|
-
default:
|
|
660
|
+
default: S(() => [
|
|
654
661
|
o(s, {
|
|
655
|
-
modelValue:
|
|
656
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
662
|
+
modelValue: l.value.endpoint,
|
|
663
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.endpoint = t),
|
|
657
664
|
label: "Endpoint",
|
|
658
|
-
rules: n(
|
|
665
|
+
rules: n(y)(n(f).string())
|
|
659
666
|
}, null, 8, ["modelValue", "rules"]),
|
|
660
667
|
o(s, {
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
668
|
+
modelValue: l.value.merchantAccount,
|
|
669
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.merchantAccount = t),
|
|
663
670
|
label: "Merchant Account",
|
|
664
|
-
rules: n(
|
|
671
|
+
rules: n(y)(n(f).string())
|
|
665
672
|
}, null, 8, ["modelValue", "rules"]),
|
|
666
673
|
o(s, {
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
674
|
+
modelValue: l.value.username,
|
|
675
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.username = t),
|
|
669
676
|
label: "Username",
|
|
670
|
-
rules: n(
|
|
677
|
+
rules: n(y)(n(f).string())
|
|
671
678
|
}, null, 8, ["modelValue", "rules"]),
|
|
672
679
|
o(s, {
|
|
673
|
-
modelValue:
|
|
674
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
680
|
+
modelValue: l.value.apiKey,
|
|
681
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.apiKey = t),
|
|
675
682
|
label: "API Key",
|
|
676
|
-
rules: n(
|
|
683
|
+
rules: n(y)(n(f).string())
|
|
677
684
|
}, null, 8, ["modelValue", "rules"]),
|
|
678
685
|
o(s, {
|
|
679
|
-
modelValue:
|
|
680
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
686
|
+
modelValue: l.value.hmacKey,
|
|
687
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.value.hmacKey = t),
|
|
681
688
|
label: "HMac Key"
|
|
682
689
|
}, null, 8, ["modelValue"]),
|
|
683
690
|
o(V, {
|
|
684
691
|
modelValue: u.value,
|
|
685
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
692
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => u.value = t),
|
|
686
693
|
label: "Is Active"
|
|
687
694
|
}, null, 8, ["modelValue"]),
|
|
688
695
|
T("div", ve, [
|
|
@@ -692,7 +699,7 @@ const A = {
|
|
|
692
699
|
variant: "secondary",
|
|
693
700
|
label: "Delete",
|
|
694
701
|
onclick: () => a.onDelete(a.gateway)
|
|
695
|
-
}, null, 8, ["onclick"])) :
|
|
702
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
696
703
|
o(d, {
|
|
697
704
|
type: "submit",
|
|
698
705
|
class: "flex-1",
|
|
@@ -705,7 +712,7 @@ const A = {
|
|
|
705
712
|
}, 512);
|
|
706
713
|
};
|
|
707
714
|
}
|
|
708
|
-
}),
|
|
715
|
+
}), ye = { class: "flex mt-6 space-x-6" }, fe = /* @__PURE__ */ D({
|
|
709
716
|
__name: "KsherGateway",
|
|
710
717
|
props: {
|
|
711
718
|
gateway: {
|
|
@@ -722,46 +729,46 @@ const A = {
|
|
|
722
729
|
}
|
|
723
730
|
},
|
|
724
731
|
setup(a) {
|
|
725
|
-
var c,
|
|
726
|
-
const
|
|
727
|
-
((
|
|
732
|
+
var c, m;
|
|
733
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
734
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
728
735
|
appId: "",
|
|
729
736
|
privateKey: ""
|
|
730
737
|
}
|
|
731
738
|
);
|
|
732
739
|
return (F, e) => {
|
|
733
|
-
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"),
|
|
734
|
-
return g(), b(
|
|
740
|
+
const s = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), t = r("FmForm");
|
|
741
|
+
return g(), b(t, {
|
|
735
742
|
ref: "form",
|
|
736
743
|
class: "flex flex-col gap-16",
|
|
737
|
-
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value,
|
|
744
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, l.value))
|
|
738
745
|
}, {
|
|
739
|
-
default:
|
|
746
|
+
default: S(() => [
|
|
740
747
|
o(s, {
|
|
741
|
-
modelValue:
|
|
742
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
748
|
+
modelValue: l.value.appId,
|
|
749
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => l.value.appId = p),
|
|
743
750
|
label: "App ID",
|
|
744
|
-
rules: n(
|
|
751
|
+
rules: n(y)(n(f).string())
|
|
745
752
|
}, null, 8, ["modelValue", "rules"]),
|
|
746
753
|
o(V, {
|
|
747
|
-
modelValue:
|
|
748
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
754
|
+
modelValue: l.value.privateKey,
|
|
755
|
+
"onUpdate:modelValue": e[1] || (e[1] = (p) => l.value.privateKey = p),
|
|
749
756
|
label: "Private Key",
|
|
750
757
|
placeholder: "Paste your private key including BEGIN and END markers"
|
|
751
758
|
}, null, 8, ["modelValue"]),
|
|
752
759
|
o(d, {
|
|
753
760
|
modelValue: u.value,
|
|
754
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
761
|
+
"onUpdate:modelValue": e[2] || (e[2] = (p) => u.value = p),
|
|
755
762
|
label: "Is Active"
|
|
756
763
|
}, null, 8, ["modelValue"]),
|
|
757
|
-
T("div",
|
|
764
|
+
T("div", ye, [
|
|
758
765
|
a.gateway ? (g(), b(v, {
|
|
759
766
|
key: 0,
|
|
760
767
|
class: "flex-1",
|
|
761
768
|
variant: "secondary",
|
|
762
769
|
label: "Delete",
|
|
763
770
|
onclick: () => a.onDelete(a.gateway)
|
|
764
|
-
}, null, 8, ["onclick"])) :
|
|
771
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
765
772
|
o(v, {
|
|
766
773
|
type: "submit",
|
|
767
774
|
class: "flex-1",
|
|
@@ -791,9 +798,9 @@ const A = {
|
|
|
791
798
|
}
|
|
792
799
|
},
|
|
793
800
|
setup(a) {
|
|
794
|
-
var c,
|
|
795
|
-
const
|
|
796
|
-
((
|
|
801
|
+
var c, m;
|
|
802
|
+
const i = a, u = w(((c = i.gateway) == null ? void 0 : c.active) ?? !1), l = w(
|
|
803
|
+
((m = i.gateway) == null ? void 0 : m.config) || {
|
|
797
804
|
clientId: "",
|
|
798
805
|
clientSecret: "",
|
|
799
806
|
merchantId: "",
|
|
@@ -805,36 +812,36 @@ const A = {
|
|
|
805
812
|
return g(), b(v, {
|
|
806
813
|
ref: "form",
|
|
807
814
|
class: "flex flex-col gap-16",
|
|
808
|
-
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value,
|
|
815
|
+
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, l.value))
|
|
809
816
|
}, {
|
|
810
|
-
default:
|
|
817
|
+
default: S(() => [
|
|
811
818
|
o(s, {
|
|
812
|
-
modelValue:
|
|
813
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
819
|
+
modelValue: l.value.clientId,
|
|
820
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.clientId = t),
|
|
814
821
|
label: "Client ID",
|
|
815
|
-
rules: n(
|
|
822
|
+
rules: n(y)(n(f).string())
|
|
816
823
|
}, null, 8, ["modelValue", "rules"]),
|
|
817
824
|
o(s, {
|
|
818
|
-
modelValue:
|
|
819
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
825
|
+
modelValue: l.value.clientSecret,
|
|
826
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value.clientSecret = t),
|
|
820
827
|
label: "Client Secret",
|
|
821
|
-
rules: n(
|
|
828
|
+
rules: n(y)(n(f).string())
|
|
822
829
|
}, null, 8, ["modelValue", "rules"]),
|
|
823
830
|
o(s, {
|
|
824
|
-
modelValue:
|
|
825
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
831
|
+
modelValue: l.value.merchantId,
|
|
832
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.value.merchantId = t),
|
|
826
833
|
label: "Merchant ID (Client Ref ID)",
|
|
827
|
-
rules: n(
|
|
834
|
+
rules: n(y)(n(f).string())
|
|
828
835
|
}, null, 8, ["modelValue", "rules"]),
|
|
829
836
|
o(s, {
|
|
830
|
-
modelValue:
|
|
831
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
837
|
+
modelValue: l.value.terminalId,
|
|
838
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.value.terminalId = t),
|
|
832
839
|
label: "Terminal ID",
|
|
833
840
|
"label-mark": "optional"
|
|
834
841
|
}, null, 8, ["modelValue"]),
|
|
835
842
|
o(V, {
|
|
836
843
|
modelValue: u.value,
|
|
837
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
844
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => u.value = t),
|
|
838
845
|
label: "Is Active"
|
|
839
846
|
}, null, 8, ["modelValue"]),
|
|
840
847
|
T("div", Fe, [
|
|
@@ -844,7 +851,7 @@ const A = {
|
|
|
844
851
|
variant: "secondary",
|
|
845
852
|
label: "Delete",
|
|
846
853
|
onclick: () => a.onDelete(a.gateway)
|
|
847
|
-
}, null, 8, ["onclick"])) :
|
|
854
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
|
848
855
|
o(d, {
|
|
849
856
|
type: "submit",
|
|
850
857
|
class: "flex-1",
|
|
@@ -869,72 +876,72 @@ const A = {
|
|
|
869
876
|
}
|
|
870
877
|
},
|
|
871
878
|
setup(a) {
|
|
872
|
-
const
|
|
879
|
+
const i = [
|
|
873
880
|
{
|
|
874
881
|
label: "Fiuu",
|
|
875
882
|
value: "RAZER_MERCHANT_SERVICE",
|
|
876
883
|
form: h,
|
|
877
|
-
region: [
|
|
884
|
+
region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
|
|
878
885
|
},
|
|
879
886
|
{
|
|
880
887
|
label: "Revenue Monster",
|
|
881
888
|
value: "REVENUE_MONSTER",
|
|
882
|
-
form:
|
|
883
|
-
region: [
|
|
889
|
+
form: le,
|
|
890
|
+
region: [I.F_COUNTRY.enum.MY]
|
|
884
891
|
},
|
|
885
892
|
{
|
|
886
893
|
label: "GHL",
|
|
887
894
|
value: "E_GHL",
|
|
888
895
|
form: ae,
|
|
889
|
-
region: [
|
|
896
|
+
region: [I.F_COUNTRY.enum.MY]
|
|
890
897
|
},
|
|
891
898
|
{
|
|
892
899
|
label: "Grab",
|
|
893
900
|
value: "GRAB",
|
|
894
901
|
form: se,
|
|
895
|
-
region: [
|
|
902
|
+
region: [I.F_COUNTRY.enum.MY]
|
|
896
903
|
},
|
|
897
904
|
{
|
|
898
905
|
label: "Macau Pass",
|
|
899
906
|
value: "MACAU_PASS",
|
|
900
907
|
form: oe,
|
|
901
|
-
region: [
|
|
908
|
+
region: [I.F_COUNTRY.enum.MO]
|
|
902
909
|
},
|
|
903
910
|
{
|
|
904
911
|
label: "SoftSpace",
|
|
905
912
|
value: "SOFTSPACE",
|
|
906
|
-
form:
|
|
907
|
-
region: [
|
|
913
|
+
form: me,
|
|
914
|
+
region: [I.F_COUNTRY.enum.MY]
|
|
908
915
|
},
|
|
909
916
|
{
|
|
910
917
|
label: "Digio",
|
|
911
918
|
value: "DIGIO",
|
|
912
919
|
form: ce,
|
|
913
|
-
region: [
|
|
920
|
+
region: [I.F_COUNTRY.enum.TH]
|
|
914
921
|
},
|
|
915
922
|
{
|
|
916
923
|
label: "Ksher",
|
|
917
924
|
value: "KSHER",
|
|
918
925
|
form: fe,
|
|
919
|
-
region: [
|
|
926
|
+
region: [I.F_COUNTRY.enum.TH]
|
|
920
927
|
},
|
|
921
928
|
{
|
|
922
929
|
label: "Adyen",
|
|
923
930
|
value: "ADYEN",
|
|
924
|
-
form:
|
|
925
|
-
region: [
|
|
931
|
+
form: pe,
|
|
932
|
+
region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
|
|
926
933
|
},
|
|
927
934
|
{
|
|
928
935
|
label: "Maybank",
|
|
929
936
|
value: "MAYBANK_QR",
|
|
930
937
|
form: ge,
|
|
931
|
-
region: [
|
|
938
|
+
region: [I.F_COUNTRY.enum.MY]
|
|
932
939
|
}
|
|
933
|
-
], u = a,
|
|
940
|
+
], u = a, l = E(), { isLoading: c, startAsyncCall: m } = O(), { activeGateway: F } = P({
|
|
934
941
|
activeGateway: ""
|
|
935
942
|
}), e = w([]);
|
|
936
943
|
async function s(x, k) {
|
|
937
|
-
await
|
|
944
|
+
await m(async () => {
|
|
938
945
|
const _ = {
|
|
939
946
|
paymentGateway: F.value,
|
|
940
947
|
config: k,
|
|
@@ -944,30 +951,30 @@ const A = {
|
|
|
944
951
|
});
|
|
945
952
|
}
|
|
946
953
|
async function V(x) {
|
|
947
|
-
await
|
|
954
|
+
await m(async () => {
|
|
948
955
|
await A.delete(u.restaurant._id, x._id), e.value = [...await A.get(u.restaurant._id)];
|
|
949
956
|
});
|
|
950
957
|
}
|
|
951
|
-
const d = G(() =>
|
|
952
|
-
(x) => x.region.includes(
|
|
958
|
+
const d = G(() => i.filter(
|
|
959
|
+
(x) => x.region.includes(l.currentCountry.value ?? I.F_COUNTRY.enum.MY)
|
|
953
960
|
));
|
|
954
961
|
function v() {
|
|
955
|
-
|
|
962
|
+
m(async () => {
|
|
956
963
|
e.value = await A.get(u.restaurant._id), d.value.length > 0 && (F.value = d.value[0].value);
|
|
957
964
|
});
|
|
958
965
|
}
|
|
959
966
|
N(v);
|
|
960
|
-
const
|
|
967
|
+
const t = G(() => {
|
|
961
968
|
var x;
|
|
962
|
-
return (x =
|
|
963
|
-
}),
|
|
969
|
+
return (x = i.find((k) => k.value === F.value)) == null ? void 0 : x.form;
|
|
970
|
+
}), p = G(() => e.value.find((x) => x.paymentGateway === F.value));
|
|
964
971
|
return (x, k) => {
|
|
965
972
|
var C;
|
|
966
973
|
const _ = r("FmCircularProgress"), K = r("FmTabs");
|
|
967
974
|
return g(), R(L, null, [
|
|
968
975
|
n(c) ? (g(), R("div", Ve, [
|
|
969
976
|
o(_, { size: "xxl" })
|
|
970
|
-
])) :
|
|
977
|
+
])) : U("", !0),
|
|
971
978
|
o(K, {
|
|
972
979
|
class: "mb-6",
|
|
973
980
|
"model-value": n(F),
|
|
@@ -975,13 +982,13 @@ const A = {
|
|
|
975
982
|
items: d.value,
|
|
976
983
|
showMoreAt: 8
|
|
977
984
|
}, null, 8, ["model-value", "items"]),
|
|
978
|
-
n(F) ? (g(), b($(
|
|
979
|
-
key: (C =
|
|
985
|
+
n(F) ? (g(), b($(t.value), Y({
|
|
986
|
+
key: (C = p.value) == null ? void 0 : C._id
|
|
980
987
|
}, {
|
|
981
|
-
gateway:
|
|
988
|
+
gateway: p.value,
|
|
982
989
|
onDelete: V,
|
|
983
990
|
onUpdate: s
|
|
984
|
-
}), null, 16)) :
|
|
991
|
+
}), null, 16)) : U("", !0)
|
|
985
992
|
], 64);
|
|
986
993
|
};
|
|
987
994
|
}
|
|
@@ -994,9 +1001,9 @@ const A = {
|
|
|
994
1001
|
}
|
|
995
1002
|
},
|
|
996
1003
|
setup(a) {
|
|
997
|
-
const
|
|
1004
|
+
const i = a, { tab: u } = P({
|
|
998
1005
|
tab: "payment-gateway"
|
|
999
|
-
}), { isLoading:
|
|
1006
|
+
}), { isLoading: l, startAsyncCall: c } = O(!0), m = Q(), F = w(), e = [
|
|
1000
1007
|
{
|
|
1001
1008
|
label: "Payment Gateway",
|
|
1002
1009
|
value: "payment-gateway",
|
|
@@ -1006,7 +1013,7 @@ const A = {
|
|
|
1006
1013
|
];
|
|
1007
1014
|
function s() {
|
|
1008
1015
|
c(async () => {
|
|
1009
|
-
F.value = await W.readRestaurantById(
|
|
1016
|
+
F.value = await W.readRestaurantById(i.restaurantId);
|
|
1010
1017
|
});
|
|
1011
1018
|
}
|
|
1012
1019
|
N(s);
|
|
@@ -1015,15 +1022,15 @@ const A = {
|
|
|
1015
1022
|
return (d = e.find((v) => v.value === u.value)) == null ? void 0 : d.render;
|
|
1016
1023
|
});
|
|
1017
1024
|
return (d, v) => {
|
|
1018
|
-
var
|
|
1019
|
-
const
|
|
1025
|
+
var p;
|
|
1026
|
+
const t = r("FmTabs");
|
|
1020
1027
|
return g(), b(z, {
|
|
1021
|
-
title: `Restaurant (${(
|
|
1022
|
-
loading: n(
|
|
1023
|
-
onBack: n(
|
|
1028
|
+
title: `Restaurant (${(p = F.value) == null ? void 0 : p._id})`,
|
|
1029
|
+
loading: n(l),
|
|
1030
|
+
onBack: n(m).back
|
|
1024
1031
|
}, {
|
|
1025
|
-
default:
|
|
1026
|
-
o(
|
|
1032
|
+
default: S(() => [
|
|
1033
|
+
o(t, {
|
|
1027
1034
|
"model-value": n(u),
|
|
1028
1035
|
"onUpdate:modelValue": v[0] || (v[0] = (x) => B(u) ? u.value = x : null),
|
|
1029
1036
|
class: "mb-6",
|
|
@@ -1031,7 +1038,7 @@ const A = {
|
|
|
1031
1038
|
}, null, 8, ["model-value"]),
|
|
1032
1039
|
n(u) && F.value ? (g(), b($(V.value), H(Y({ key: 0 }, {
|
|
1033
1040
|
restaurant: F.value
|
|
1034
|
-
})), null, 16)) :
|
|
1041
|
+
})), null, 16)) : U("", !0)
|
|
1035
1042
|
]),
|
|
1036
1043
|
_: 1
|
|
1037
1044
|
}, 8, ["title", "loading", "onBack"]);
|