@feedmepos/mf-payment 1.2.26 → 1.2.29
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-BwHRuUJ2.js +709 -0
- package/dist/OnboardForm-DtdgTAfM.js +671 -0
- package/dist/OnboardSubmission-Cuzay_2u.js +148 -0
- package/dist/OnboardSubmission-TvoVrbT8.js +146 -0
- package/dist/{PDFViewer-xrBtzrlR.js → PDFViewer-DlSCBBxr.js} +14 -12
- package/dist/{PayoutAccount-DoUb4juo.js → PayoutAccount-DM-Uh5AW.js} +8 -7
- package/dist/{PayoutAccount-C4zN4xMw.js → PayoutAccount-D_oz3IN_.js} +5 -5
- package/dist/{PayoutAccountSetting-IgBRFN0A.js → PayoutAccountSetting-CUlmHkw3.js} +4 -4
- package/dist/{Restaurant-CIGhOFvk.js → Restaurant-DDebeSrf.js} +4 -4
- package/dist/{RestaurantSetting-0CbusLcz.js → RestaurantSetting-Cf63FkWQ.js} +291 -222
- package/dist/{Settlement-DmG5-VSP.js → Settlement-C_V-iTDy.js} +3 -3
- package/dist/{Settlement-CUmpNHMN.js → Settlement-CctMzPsZ.js} +3 -3
- package/dist/{SettlementTransactions-DhjGSAg4.js → SettlementTransactions-9p3tYV0n.js} +3 -3
- package/dist/{SettlementTransactions-CcMUINyi.js → SettlementTransactions-DYvhz0Yh.js} +3 -3
- package/dist/Status.vue_vue_type_script_setup_true_lang-wrcEbNj3.js +29 -0
- package/dist/{Terminal-CRizNZ4p.js → Terminal-D3QDgPY6.js} +5 -5
- package/dist/{TerminalSetting-DdJl_9JJ.js → TerminalSetting-ehm_sRqf.js} +3 -3
- package/dist/{Transaction-E9_hSpx4.js → Transaction-DIz_ArbY.js} +6 -6
- package/dist/{Transaction-ykrWGKIa.js → Transaction-DzIzAIbO.js} +5 -5
- package/dist/{TransactionOld-lPUiTl8n.js → TransactionOld-CagUKhjR.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B03g8Jum.js → TransactionTable.vue_vue_type_script_setup_true_lang-ChuhuUKc.js} +3 -3
- package/dist/api/index.d.ts +1 -0
- package/dist/api/onboard-submission/index.d.ts +17 -0
- package/dist/api/payment-gateway/index.d.ts +3 -1
- package/dist/api/payout/index.d.ts +1 -0
- package/dist/{app-CU7mklRE.js → app-DB_fctP1.js} +212 -131
- package/dist/app.d.ts +46 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Dttfej_E.js → assets-ha4XB2PU.js} +1 -1
- package/dist/{grafana-DCGA3gMb.js → grafana-DRZOKr8c.js} +1 -1
- package/dist/{index-BQtW6X1l.js → index-8Xu0hCTB.js} +1 -1
- package/dist/{index-CZKvrBM7.js → index-B6GVzj7l.js} +1 -1
- package/dist/{index-tCobqIDD.js → index-BasdAonL.js} +4930 -4857
- package/dist/{index-BOwfUR6x.js → index-DGF3hKwg.js} +1 -1
- package/dist/{index-BYLzp2JB.js → index-Dg_mEOso.js} +1 -1
- package/dist/{index-JCMXdVSJ.js → index-DoD23lHB.js} +8 -1
- package/dist/index-MqVn-IaA.js +68 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js → index.vue_vue_type_script_setup_true_lang-D4bLM6th.js} +56 -54
- package/dist/modules.d.ts +1 -0
- package/dist/package.json +9 -8
- package/dist/payout-account-6yMkxM2O.js +458 -0
- package/dist/plugins-BLG_oAxW.js +1366 -0
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/OnboardForm.vue.d.ts +12 -0
- package/dist/views/admin/onboard-submission/OnboardSubmission.vue.d.ts +2 -0
- package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +10 -0
- package/dist/views/admin/onboard-submission/cell/Status.vue.d.ts +5 -0
- package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +11 -0
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/LocalIntegration.vue.d.ts +803 -0
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +8 -8
- package/dist/views/onboard-submission/OnboardForm.vue.d.ts +14 -0
- package/dist/views/onboard-submission/OnboardSubmission.vue.d.ts +2 -0
- package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +10 -0
- package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +11 -0
- package/dist/views/onboard-submission/form/SoftSpaceSubmission.vue.d.ts +5 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
- package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
- package/package.json +9 -8
- package/dist/payout-account-CdudVI6I.js +0 -1819
@@ -1,44 +1,59 @@
|
|
1
|
-
import { defineComponent as _, ref as b, resolveComponent as r, openBlock as
|
2
|
-
import { g as q, b as A, u as
|
3
|
-
import { _ as
|
4
|
-
import { useRouter as
|
5
|
-
import { u as
|
6
|
-
import { z as f, a as
|
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-BasdAonL.js";
|
3
|
+
import { _ as h } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
4
|
+
import { useRouter as Q } from "vue-router";
|
5
|
+
import { u as L } from "./index-DGF3hKwg.js";
|
6
|
+
import { z as f, a as F } from "./validator-D5jtpt9A.js";
|
7
7
|
import { useCoreStore as j } from "@feedmepos/mf-common";
|
8
|
-
import { u as
|
9
|
-
import { useSnackbar as
|
10
|
-
import { r as
|
11
|
-
const
|
12
|
-
async get(
|
8
|
+
import { u as Z } from "./error-K1CakhA9.js";
|
9
|
+
import { useSnackbar as J } from "@feedmepos/ui-library";
|
10
|
+
import { r as W } from "./index-B6GVzj7l.js";
|
11
|
+
const D = {
|
12
|
+
async get(a) {
|
13
13
|
return q(
|
14
14
|
await A().get(
|
15
|
-
`restaurants/${
|
15
|
+
`restaurants/${a}/payment-gateway`
|
16
16
|
)
|
17
17
|
);
|
18
18
|
},
|
19
|
-
async upsert(
|
19
|
+
async upsert(a, s) {
|
20
20
|
return q(
|
21
21
|
await A().post(
|
22
|
-
`restaurants/${
|
23
|
-
{ data:
|
22
|
+
`restaurants/${a}/payment-gateway`,
|
23
|
+
{ data: s }
|
24
24
|
)
|
25
25
|
);
|
26
26
|
},
|
27
|
-
async delete(
|
27
|
+
async delete(a, s) {
|
28
28
|
return q(
|
29
29
|
await A().delete(
|
30
|
-
`restaurants/${
|
30
|
+
`restaurants/${a}/payment-gateway/${s}`
|
31
31
|
)
|
32
32
|
);
|
33
33
|
},
|
34
|
-
async grabSync(
|
34
|
+
async grabSync(a) {
|
35
35
|
return q(
|
36
36
|
await A().post(
|
37
|
-
`restaurants/${
|
37
|
+
`restaurants/${a}/payment-gateway/grab/sync`
|
38
|
+
)
|
39
|
+
);
|
40
|
+
},
|
41
|
+
async getIntegration(a) {
|
42
|
+
return q(
|
43
|
+
await A().get(
|
44
|
+
`restaurants/${a}/payment-gateway/integration`
|
45
|
+
)
|
46
|
+
);
|
47
|
+
},
|
48
|
+
async upsertIntegration(a, s) {
|
49
|
+
return q(
|
50
|
+
await A().put(
|
51
|
+
`restaurants/${a}/payment-gateway/integration`,
|
52
|
+
s
|
38
53
|
)
|
39
54
|
);
|
40
55
|
}
|
41
|
-
},
|
56
|
+
}, X = { class: "flex mt-6 space-x-6" }, ee = /* @__PURE__ */ _({
|
42
57
|
__name: "FiuuGateway",
|
43
58
|
props: {
|
44
59
|
onUpdate: {
|
@@ -54,9 +69,9 @@ const G = {
|
|
54
69
|
required: !0
|
55
70
|
}
|
56
71
|
},
|
57
|
-
setup(
|
58
|
-
var p,
|
59
|
-
const
|
72
|
+
setup(a) {
|
73
|
+
var p, y;
|
74
|
+
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
60
75
|
merchantId: "",
|
61
76
|
uniqueId: "",
|
62
77
|
verifyKey: "",
|
@@ -64,62 +79,62 @@ const G = {
|
|
64
79
|
applicationCode: "",
|
65
80
|
offlineSecret: ""
|
66
81
|
});
|
67
|
-
return (
|
82
|
+
return (c, e) => {
|
68
83
|
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
69
|
-
return
|
84
|
+
return g(), w(v, {
|
70
85
|
ref: "form",
|
71
86
|
class: "flex flex-col gap-16",
|
72
|
-
onValidationSuccess: e[7] || (e[7] = () =>
|
87
|
+
onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, t.value))
|
73
88
|
}, {
|
74
|
-
default:
|
89
|
+
default: C(() => [
|
75
90
|
o(i, {
|
76
91
|
modelValue: t.value.merchantId,
|
77
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
92
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
78
93
|
label: "Merchant ID",
|
79
|
-
rules: n(f)(n(
|
94
|
+
rules: n(f)(n(F).string())
|
80
95
|
}, null, 8, ["modelValue", "rules"]),
|
81
96
|
o(i, {
|
82
97
|
modelValue: t.value.uniqueId,
|
83
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
98
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.uniqueId = l),
|
84
99
|
label: "Unique ID",
|
85
|
-
rules: n(f)(n(
|
100
|
+
rules: n(f)(n(F).string())
|
86
101
|
}, null, 8, ["modelValue", "rules"]),
|
87
102
|
o(i, {
|
88
103
|
modelValue: t.value.verifyKey,
|
89
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
104
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.verifyKey = l),
|
90
105
|
label: "Verify Key",
|
91
|
-
rules: n(f)(n(
|
106
|
+
rules: n(f)(n(F).string())
|
92
107
|
}, null, 8, ["modelValue", "rules"]),
|
93
108
|
o(i, {
|
94
109
|
modelValue: t.value.secretKey,
|
95
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
110
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.secretKey = l),
|
96
111
|
label: "Secret Key",
|
97
|
-
rules: n(f)(n(
|
112
|
+
rules: n(f)(n(F).string())
|
98
113
|
}, null, 8, ["modelValue", "rules"]),
|
99
114
|
o(i, {
|
100
115
|
modelValue: t.value.applicationCode,
|
101
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
116
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.applicationCode = l),
|
102
117
|
label: "Application Code ( Offline )",
|
103
|
-
rules: n(f)(n(
|
118
|
+
rules: n(f)(n(F).string())
|
104
119
|
}, null, 8, ["modelValue", "rules"]),
|
105
120
|
o(i, {
|
106
121
|
modelValue: t.value.offlineSecret,
|
107
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
122
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => t.value.offlineSecret = l),
|
108
123
|
label: "Offline Secret ( Offline )",
|
109
|
-
rules: n(f)(n(
|
124
|
+
rules: n(f)(n(F).string())
|
110
125
|
}, null, 8, ["modelValue", "rules"]),
|
111
126
|
o(V, {
|
112
127
|
modelValue: u.value,
|
113
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
128
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => u.value = l),
|
114
129
|
label: "Is Active"
|
115
130
|
}, null, 8, ["modelValue"]),
|
116
|
-
|
117
|
-
|
131
|
+
I("div", X, [
|
132
|
+
a.gateway ? (g(), w(d, {
|
118
133
|
key: 0,
|
119
134
|
class: "flex-1",
|
120
135
|
variant: "secondary",
|
121
136
|
label: "Delete",
|
122
|
-
onclick: () =>
|
137
|
+
onclick: () => a.onDelete(a.gateway)
|
123
138
|
}, null, 8, ["onclick"])) : S("", !0),
|
124
139
|
o(d, {
|
125
140
|
type: "submit",
|
@@ -133,7 +148,7 @@ const G = {
|
|
133
148
|
}, 512);
|
134
149
|
};
|
135
150
|
}
|
136
|
-
}),
|
151
|
+
}), te = { class: "flex mt-6 space-x-6" }, ae = /* @__PURE__ */ _({
|
137
152
|
__name: "RevenueMonsterGateway",
|
138
153
|
props: {
|
139
154
|
onUpdate: {
|
@@ -149,57 +164,57 @@ const G = {
|
|
149
164
|
required: !0
|
150
165
|
}
|
151
166
|
},
|
152
|
-
setup(
|
153
|
-
var p,
|
154
|
-
const
|
167
|
+
setup(a) {
|
168
|
+
var p, y;
|
169
|
+
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
155
170
|
storeId: "",
|
156
171
|
clientId: "",
|
157
172
|
clientSecret: "",
|
158
173
|
clientPrivateKey: ""
|
159
174
|
});
|
160
|
-
return (
|
161
|
-
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"),
|
162
|
-
return
|
175
|
+
return (c, e) => {
|
176
|
+
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), l = r("FmForm");
|
177
|
+
return g(), w(l, {
|
163
178
|
ref: "form",
|
164
179
|
class: "flex flex-col gap-16",
|
165
|
-
onValidationSuccess: e[5] || (e[5] = () =>
|
180
|
+
onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, t.value))
|
166
181
|
}, {
|
167
|
-
default:
|
182
|
+
default: C(() => [
|
168
183
|
o(i, {
|
169
184
|
modelValue: t.value.storeId,
|
170
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
185
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.storeId = m),
|
171
186
|
label: "Store ID",
|
172
|
-
rules: n(f)(n(
|
187
|
+
rules: n(f)(n(F).string())
|
173
188
|
}, null, 8, ["modelValue", "rules"]),
|
174
189
|
o(i, {
|
175
190
|
modelValue: t.value.clientId,
|
176
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
191
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.clientId = m),
|
177
192
|
label: "Client ID",
|
178
|
-
rules: n(f)(n(
|
193
|
+
rules: n(f)(n(F).string())
|
179
194
|
}, null, 8, ["modelValue", "rules"]),
|
180
195
|
o(i, {
|
181
196
|
modelValue: t.value.clientSecret,
|
182
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
197
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.clientSecret = m),
|
183
198
|
label: "Client Secret",
|
184
|
-
rules: n(f)(n(
|
199
|
+
rules: n(f)(n(F).string())
|
185
200
|
}, null, 8, ["modelValue", "rules"]),
|
186
201
|
o(V, {
|
187
202
|
modelValue: t.value.clientPrivateKey,
|
188
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
203
|
+
"onUpdate:modelValue": e[3] || (e[3] = (m) => t.value.clientPrivateKey = m),
|
189
204
|
label: "Client Private Key"
|
190
205
|
}, null, 8, ["modelValue"]),
|
191
206
|
o(d, {
|
192
207
|
modelValue: u.value,
|
193
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
208
|
+
"onUpdate:modelValue": e[4] || (e[4] = (m) => u.value = m),
|
194
209
|
label: "Is Active"
|
195
210
|
}, null, 8, ["modelValue"]),
|
196
|
-
|
197
|
-
|
211
|
+
I("div", te, [
|
212
|
+
a.gateway ? (g(), w(v, {
|
198
213
|
key: 0,
|
199
214
|
class: "flex-1",
|
200
215
|
variant: "secondary",
|
201
216
|
label: "Delete",
|
202
|
-
onclick: () =>
|
217
|
+
onclick: () => a.onDelete(a.gateway)
|
203
218
|
}, null, 8, ["onclick"])) : S("", !0),
|
204
219
|
o(v, {
|
205
220
|
type: "submit",
|
@@ -213,7 +228,7 @@ const G = {
|
|
213
228
|
}, 512);
|
214
229
|
};
|
215
230
|
}
|
216
|
-
}),
|
231
|
+
}), le = { class: "flex mt-6 space-x-6" }, ne = /* @__PURE__ */ _({
|
217
232
|
__name: "GhlGateway",
|
218
233
|
props: {
|
219
234
|
onUpdate: {
|
@@ -229,52 +244,52 @@ const G = {
|
|
229
244
|
required: !0
|
230
245
|
}
|
231
246
|
},
|
232
|
-
setup(
|
233
|
-
var p,
|
234
|
-
const
|
247
|
+
setup(a) {
|
248
|
+
var p, y;
|
249
|
+
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
235
250
|
merchantId: "",
|
236
251
|
terminalId: "",
|
237
252
|
privateKey: ""
|
238
253
|
});
|
239
|
-
return (
|
240
|
-
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"),
|
241
|
-
return
|
254
|
+
return (c, e) => {
|
255
|
+
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), l = r("FmForm");
|
256
|
+
return g(), w(l, {
|
242
257
|
ref: "form",
|
243
258
|
class: "flex flex-col gap-16",
|
244
|
-
onValidationSuccess: e[4] || (e[4] = () =>
|
259
|
+
onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, t.value))
|
245
260
|
}, {
|
246
|
-
default:
|
261
|
+
default: C(() => [
|
247
262
|
o(i, {
|
248
263
|
modelValue: t.value.merchantId,
|
249
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
264
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.merchantId = m),
|
250
265
|
label: "Merchant ID",
|
251
|
-
rules: n(f)(n(
|
266
|
+
rules: n(f)(n(F).string())
|
252
267
|
}, null, 8, ["modelValue", "rules"]),
|
253
268
|
o(i, {
|
254
269
|
modelValue: t.value.terminalId,
|
255
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
270
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.terminalId = m),
|
256
271
|
label: "Terminal ID",
|
257
|
-
rules: n(f)(n(
|
272
|
+
rules: n(f)(n(F).string())
|
258
273
|
}, null, 8, ["modelValue", "rules"]),
|
259
274
|
o(V, {
|
260
275
|
id: "ghl_pkey",
|
261
276
|
modelValue: t.value.privateKey,
|
262
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
277
|
+
"onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.privateKey = m),
|
263
278
|
label: "Private Key",
|
264
|
-
rules: n(f)(n(
|
279
|
+
rules: n(f)(n(F).string())
|
265
280
|
}, null, 8, ["modelValue", "rules"]),
|
266
281
|
o(d, {
|
267
282
|
modelValue: u.value,
|
268
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
283
|
+
"onUpdate:modelValue": e[3] || (e[3] = (m) => u.value = m),
|
269
284
|
label: "Is Active"
|
270
285
|
}, null, 8, ["modelValue"]),
|
271
|
-
|
272
|
-
|
286
|
+
I("div", le, [
|
287
|
+
a.gateway ? (g(), w(v, {
|
273
288
|
key: 0,
|
274
289
|
class: "flex-1",
|
275
290
|
variant: "secondary",
|
276
291
|
label: "Delete",
|
277
|
-
onclick: () =>
|
292
|
+
onclick: () => a.onDelete(a.gateway)
|
278
293
|
}, null, 8, ["onclick"])) : S("", !0),
|
279
294
|
o(v, {
|
280
295
|
type: "submit",
|
@@ -288,7 +303,7 @@ const G = {
|
|
288
303
|
}, 512);
|
289
304
|
};
|
290
305
|
}
|
291
|
-
}),
|
306
|
+
}), oe = { class: "flex mt-6 space-x-6" }, ue = /* @__PURE__ */ _({
|
292
307
|
__name: "MacauPassGateway",
|
293
308
|
props: {
|
294
309
|
onUpdate: {
|
@@ -304,65 +319,65 @@ const G = {
|
|
304
319
|
required: !0
|
305
320
|
}
|
306
321
|
},
|
307
|
-
setup(
|
308
|
-
var p,
|
309
|
-
const
|
322
|
+
setup(a) {
|
323
|
+
var p, y;
|
324
|
+
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
310
325
|
merchantId: "",
|
311
326
|
merchantName: "",
|
312
327
|
merchantCategoryCode: "",
|
313
328
|
storeID: "",
|
314
329
|
storeName: ""
|
315
330
|
});
|
316
|
-
return (
|
331
|
+
return (c, e) => {
|
317
332
|
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
318
|
-
return
|
333
|
+
return g(), w(v, {
|
319
334
|
ref: "form",
|
320
335
|
class: "flex flex-col gap-16",
|
321
|
-
onValidationSuccess: e[6] || (e[6] = () =>
|
336
|
+
onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, t.value))
|
322
337
|
}, {
|
323
|
-
default:
|
338
|
+
default: C(() => [
|
324
339
|
o(i, {
|
325
340
|
modelValue: t.value.merchantId,
|
326
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
341
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
327
342
|
label: "Merchant ID",
|
328
|
-
rules: n(f)(n(
|
343
|
+
rules: n(f)(n(F).string())
|
329
344
|
}, null, 8, ["modelValue", "rules"]),
|
330
345
|
o(i, {
|
331
346
|
modelValue: t.value.merchantName,
|
332
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
347
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.merchantName = l),
|
333
348
|
label: "Merchant Name",
|
334
|
-
rules: n(f)(n(
|
349
|
+
rules: n(f)(n(F).string())
|
335
350
|
}, null, 8, ["modelValue", "rules"]),
|
336
351
|
o(i, {
|
337
352
|
modelValue: t.value.merchantCategoryCode,
|
338
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
353
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.merchantCategoryCode = l),
|
339
354
|
label: "Merchant MCC",
|
340
|
-
rules: n(f)(n(
|
355
|
+
rules: n(f)(n(F).string())
|
341
356
|
}, null, 8, ["modelValue", "rules"]),
|
342
357
|
o(i, {
|
343
358
|
modelValue: t.value.storeID,
|
344
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
359
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.storeID = l),
|
345
360
|
label: "Store ID",
|
346
|
-
rules: n(f)(n(
|
361
|
+
rules: n(f)(n(F).string())
|
347
362
|
}, null, 8, ["modelValue", "rules"]),
|
348
363
|
o(i, {
|
349
364
|
modelValue: t.value.storeName,
|
350
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
365
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.storeName = l),
|
351
366
|
label: "Store Name",
|
352
|
-
rules: n(f)(n(
|
367
|
+
rules: n(f)(n(F).string())
|
353
368
|
}, null, 8, ["modelValue", "rules"]),
|
354
369
|
o(V, {
|
355
370
|
modelValue: u.value,
|
356
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
371
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l),
|
357
372
|
label: "Is Active"
|
358
373
|
}, null, 8, ["modelValue"]),
|
359
|
-
|
360
|
-
|
374
|
+
I("div", oe, [
|
375
|
+
a.gateway ? (g(), w(d, {
|
361
376
|
key: 0,
|
362
377
|
class: "flex-1",
|
363
378
|
variant: "secondary",
|
364
379
|
label: "Delete",
|
365
|
-
onclick: () =>
|
380
|
+
onclick: () => a.onDelete(a.gateway)
|
366
381
|
}, null, 8, ["onclick"])) : S("", !0),
|
367
382
|
o(d, {
|
368
383
|
type: "submit",
|
@@ -376,7 +391,7 @@ const G = {
|
|
376
391
|
}, 512);
|
377
392
|
};
|
378
393
|
}
|
379
|
-
}),
|
394
|
+
}), re = { class: "flex items-end" }, se = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ _({
|
380
395
|
__name: "GrabGateway",
|
381
396
|
props: {
|
382
397
|
onUpdate: {
|
@@ -392,50 +407,50 @@ const G = {
|
|
392
407
|
required: !0
|
393
408
|
}
|
394
409
|
},
|
395
|
-
setup(
|
410
|
+
setup(a) {
|
396
411
|
var V, d;
|
397
|
-
const
|
412
|
+
const s = J(), { isLoading: u, startAsyncCall: t } = O(), p = j(), y = a, c = b(((V = y.gateway) == null ? void 0 : V.active) ?? !1), e = b(((d = y.gateway) == null ? void 0 : d.config) || {
|
398
413
|
merchantId: ""
|
399
414
|
});
|
400
415
|
async function i() {
|
401
416
|
t(async () => {
|
402
417
|
var v;
|
403
418
|
try {
|
404
|
-
const { merchantID:
|
405
|
-
e.value.merchantId =
|
419
|
+
const { merchantID: l } = await D.grabSync(((v = p.currentRestaurant.value) == null ? void 0 : v._id) ?? "");
|
420
|
+
e.value.merchantId = l, c.value = !0, s.open({
|
406
421
|
type: "success",
|
407
422
|
title: "Grab Setting sync succesfully, you will still need to save the changes."
|
408
423
|
});
|
409
|
-
} catch (
|
410
|
-
|
424
|
+
} catch (l) {
|
425
|
+
s.open({
|
411
426
|
type: "error",
|
412
427
|
title: "Error occurs when sync ordering settings",
|
413
|
-
message:
|
428
|
+
message: Z(l)
|
414
429
|
});
|
415
430
|
}
|
416
431
|
});
|
417
432
|
}
|
418
|
-
return (v,
|
419
|
-
const
|
420
|
-
return
|
433
|
+
return (v, l) => {
|
434
|
+
const m = r("FmTextField"), x = r("FmButton"), k = r("FmTooltip"), T = r("FmSwitch"), G = r("FmForm");
|
435
|
+
return g(), w(G, {
|
421
436
|
ref: "form",
|
422
437
|
class: "flex flex-col gap-16",
|
423
|
-
onValidationSuccess:
|
438
|
+
onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(c.value, e.value))
|
424
439
|
}, {
|
425
|
-
default:
|
426
|
-
|
427
|
-
o(
|
440
|
+
default: C(() => [
|
441
|
+
I("div", re, [
|
442
|
+
o(m, {
|
428
443
|
modelValue: e.value.merchantId,
|
429
|
-
"onUpdate:modelValue":
|
444
|
+
"onUpdate:modelValue": l[0] || (l[0] = (M) => e.value.merchantId = M),
|
430
445
|
label: "Merchant ID",
|
431
|
-
rules: n(f)(n(
|
446
|
+
rules: n(f)(n(F).string())
|
432
447
|
}, null, 8, ["modelValue", "rules"]),
|
433
|
-
o(
|
448
|
+
o(k, {
|
434
449
|
variant: "plain",
|
435
450
|
placement: "right",
|
436
451
|
content: "Sync from Ordering Settings"
|
437
452
|
}, {
|
438
|
-
default:
|
453
|
+
default: C(() => [
|
439
454
|
o(x, {
|
440
455
|
class: "ml-2",
|
441
456
|
type: "button",
|
@@ -449,17 +464,17 @@ const G = {
|
|
449
464
|
})
|
450
465
|
]),
|
451
466
|
o(T, {
|
452
|
-
modelValue:
|
453
|
-
"onUpdate:modelValue":
|
467
|
+
modelValue: c.value,
|
468
|
+
"onUpdate:modelValue": l[1] || (l[1] = (M) => c.value = M),
|
454
469
|
label: "Is Active"
|
455
470
|
}, null, 8, ["modelValue"]),
|
456
|
-
|
457
|
-
|
471
|
+
I("div", se, [
|
472
|
+
a.gateway ? (g(), w(x, {
|
458
473
|
key: 0,
|
459
474
|
class: "flex-1",
|
460
475
|
variant: "secondary",
|
461
476
|
label: "Delete",
|
462
|
-
onclick: () =>
|
477
|
+
onclick: () => a.onDelete(a.gateway)
|
463
478
|
}, null, 8, ["onclick"])) : S("", !0),
|
464
479
|
o(x, {
|
465
480
|
type: "submit",
|
@@ -473,7 +488,7 @@ const G = {
|
|
473
488
|
}, 512);
|
474
489
|
};
|
475
490
|
}
|
476
|
-
}),
|
491
|
+
}), me = { class: "flex mt-6 space-x-6" }, ce = /* @__PURE__ */ _({
|
477
492
|
__name: "SoftSpaceGateway",
|
478
493
|
props: {
|
479
494
|
onUpdate: {
|
@@ -489,44 +504,44 @@ const G = {
|
|
489
504
|
required: !0
|
490
505
|
}
|
491
506
|
},
|
492
|
-
setup(
|
493
|
-
var p,
|
494
|
-
const
|
507
|
+
setup(a) {
|
508
|
+
var p, y;
|
509
|
+
const s = a, u = b(((p = s.gateway) == null ? void 0 : p.active) ?? !1), t = b(((y = s.gateway) == null ? void 0 : y.config) || {
|
495
510
|
mid: "",
|
496
511
|
tid: ""
|
497
512
|
});
|
498
|
-
return (
|
513
|
+
return (c, e) => {
|
499
514
|
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
500
|
-
return
|
515
|
+
return g(), w(v, {
|
501
516
|
ref: "form",
|
502
517
|
class: "flex flex-col gap-16",
|
503
|
-
onValidationSuccess: e[3] || (e[3] = () =>
|
518
|
+
onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, t.value))
|
504
519
|
}, {
|
505
|
-
default:
|
520
|
+
default: C(() => [
|
506
521
|
o(i, {
|
507
522
|
modelValue: t.value.mid,
|
508
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
523
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.mid = l),
|
509
524
|
label: "MID",
|
510
|
-
rules: n(f)(n(
|
525
|
+
rules: n(f)(n(F).string())
|
511
526
|
}, null, 8, ["modelValue", "rules"]),
|
512
527
|
o(i, {
|
513
528
|
modelValue: t.value.tid,
|
514
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
529
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.tid = l),
|
515
530
|
label: "TID",
|
516
|
-
rules: n(f)(n(
|
531
|
+
rules: n(f)(n(F).string())
|
517
532
|
}, null, 8, ["modelValue", "rules"]),
|
518
533
|
o(V, {
|
519
534
|
modelValue: u.value,
|
520
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
535
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
|
521
536
|
label: "Is Active"
|
522
537
|
}, null, 8, ["modelValue"]),
|
523
|
-
|
524
|
-
|
538
|
+
I("div", me, [
|
539
|
+
a.gateway ? (g(), w(d, {
|
525
540
|
key: 0,
|
526
541
|
class: "flex-1",
|
527
542
|
variant: "secondary",
|
528
543
|
label: "Delete",
|
529
|
-
onclick: () =>
|
544
|
+
onclick: () => a.onDelete(a.gateway)
|
530
545
|
}, null, 8, ["onclick"])) : S("", !0),
|
531
546
|
o(d, {
|
532
547
|
type: "submit",
|
@@ -540,7 +555,7 @@ const G = {
|
|
540
555
|
}, 512);
|
541
556
|
};
|
542
557
|
}
|
543
|
-
}),
|
558
|
+
}), de = { class: "flex mt-6 space-x-6" }, ye = /* @__PURE__ */ _({
|
544
559
|
__name: "DigioGateway",
|
545
560
|
props: {
|
546
561
|
gateway: {
|
@@ -556,37 +571,37 @@ const G = {
|
|
556
571
|
required: !0
|
557
572
|
}
|
558
573
|
},
|
559
|
-
setup(
|
560
|
-
var p,
|
561
|
-
const
|
574
|
+
setup(a) {
|
575
|
+
var p, y;
|
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) || {
|
562
577
|
merchantId: ""
|
563
578
|
});
|
564
|
-
return (
|
579
|
+
return (c, e) => {
|
565
580
|
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
|
566
|
-
return
|
581
|
+
return g(), w(v, {
|
567
582
|
ref: "form",
|
568
583
|
class: "flex flex-col gap-16",
|
569
|
-
onValidationSuccess: e[2] || (e[2] = () =>
|
584
|
+
onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value, t.value))
|
570
585
|
}, {
|
571
|
-
default:
|
586
|
+
default: C(() => [
|
572
587
|
o(i, {
|
573
588
|
modelValue: t.value.merchantId,
|
574
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
589
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
|
575
590
|
label: "Merchant ID",
|
576
|
-
rules: n(f)(n(
|
591
|
+
rules: n(f)(n(F).string())
|
577
592
|
}, null, 8, ["modelValue", "rules"]),
|
578
593
|
o(V, {
|
579
594
|
modelValue: u.value,
|
580
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
595
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => u.value = l),
|
581
596
|
label: "Is Active"
|
582
597
|
}, null, 8, ["modelValue"]),
|
583
|
-
|
584
|
-
|
598
|
+
I("div", de, [
|
599
|
+
a.gateway ? (g(), w(d, {
|
585
600
|
key: 0,
|
586
601
|
class: "flex-1",
|
587
602
|
variant: "secondary",
|
588
603
|
label: "Delete",
|
589
|
-
onclick: () =>
|
604
|
+
onclick: () => a.onDelete(a.gateway)
|
590
605
|
}, null, 8, ["onclick"])) : S("", !0),
|
591
606
|
o(d, {
|
592
607
|
type: "submit",
|
@@ -600,10 +615,10 @@ const G = {
|
|
600
615
|
}, 512);
|
601
616
|
};
|
602
617
|
}
|
603
|
-
}),
|
618
|
+
}), pe = {
|
604
619
|
key: 0,
|
605
620
|
class: "flex items-center justify-center min-h-[80vh]"
|
606
|
-
},
|
621
|
+
}, ve = /* @__PURE__ */ _({
|
607
622
|
__name: "PaymentGateway",
|
608
623
|
props: {
|
609
624
|
restaurant: {
|
@@ -611,102 +626,150 @@ const G = {
|
|
611
626
|
required: !0
|
612
627
|
}
|
613
628
|
},
|
614
|
-
setup(
|
615
|
-
const
|
629
|
+
setup(a) {
|
630
|
+
const s = [
|
616
631
|
{
|
617
632
|
label: "Fiuu",
|
618
633
|
value: "RAZER_MERCHANT_SERVICE",
|
619
|
-
form:
|
620
|
-
region: [
|
634
|
+
form: ee,
|
635
|
+
region: [U.F_COUNTRY.enum.MY, U.F_COUNTRY.enum.SG]
|
621
636
|
},
|
622
637
|
{
|
623
638
|
label: "Revenue Monster",
|
624
639
|
value: "REVENUE_MONSTER",
|
625
|
-
form:
|
626
|
-
region: [
|
640
|
+
form: ae,
|
641
|
+
region: [U.F_COUNTRY.enum.MY]
|
627
642
|
},
|
628
643
|
{
|
629
644
|
label: "GHL",
|
630
645
|
value: "E_GHL",
|
631
|
-
form:
|
632
|
-
region: [
|
646
|
+
form: ne,
|
647
|
+
region: [U.F_COUNTRY.enum.MY]
|
633
648
|
},
|
634
649
|
{
|
635
650
|
label: "Grab",
|
636
651
|
value: "GRAB",
|
637
|
-
form:
|
638
|
-
region: [
|
652
|
+
form: ie,
|
653
|
+
region: [U.F_COUNTRY.enum.MY]
|
639
654
|
},
|
640
655
|
{
|
641
656
|
label: "Macau Pass",
|
642
657
|
value: "MACAU_PASS",
|
643
|
-
form:
|
644
|
-
region: [
|
658
|
+
form: ue,
|
659
|
+
region: [U.F_COUNTRY.enum.MO]
|
645
660
|
},
|
646
661
|
{
|
647
662
|
label: "SoftSpace",
|
648
663
|
value: "SOFTSPACE",
|
649
|
-
form:
|
650
|
-
region: [
|
664
|
+
form: ce,
|
665
|
+
region: [U.F_COUNTRY.enum.MY]
|
651
666
|
},
|
652
667
|
{
|
653
668
|
label: "Digio",
|
654
669
|
value: "DIGIO",
|
655
|
-
form:
|
656
|
-
region: [
|
670
|
+
form: ye,
|
671
|
+
region: [U.F_COUNTRY.enum.TH]
|
657
672
|
}
|
658
|
-
], u =
|
673
|
+
], u = a, t = j(), { isLoading: p, startAsyncCall: y } = O(), { activeGateway: c } = L({
|
659
674
|
activeGateway: ""
|
660
675
|
}), e = b([]);
|
661
|
-
async function i(
|
662
|
-
await
|
663
|
-
const
|
676
|
+
async function i(m, x) {
|
677
|
+
await y(async () => {
|
678
|
+
const k = {
|
664
679
|
_id: "",
|
665
680
|
_rev: "",
|
666
|
-
paymentGateway:
|
681
|
+
paymentGateway: c.value,
|
667
682
|
config: x,
|
668
|
-
active:
|
669
|
-
}, T = e.value.find((
|
670
|
-
T && (
|
683
|
+
active: m
|
684
|
+
}, T = e.value.find((G) => G.paymentGateway === c.value);
|
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);
|
671
686
|
});
|
672
687
|
}
|
673
|
-
async function V(
|
674
|
-
|
675
|
-
await
|
688
|
+
async function V(m) {
|
689
|
+
y(async () => {
|
690
|
+
await D.delete(u.restaurant._id, m._id), e.value = await D.get(u.restaurant._id);
|
676
691
|
});
|
677
692
|
}
|
678
|
-
const d =
|
693
|
+
const d = R(() => s.filter((m) => m.region.includes(t.currentCountry.value ?? U.F_COUNTRY.enum.MY)));
|
679
694
|
function v() {
|
680
|
-
|
681
|
-
e.value = await
|
695
|
+
y(async () => {
|
696
|
+
e.value = await D.get(u.restaurant._id), d.value.length > 0 && (c.value = d.value[0].value);
|
682
697
|
});
|
683
698
|
}
|
684
|
-
|
685
|
-
const
|
686
|
-
var
|
687
|
-
return (
|
699
|
+
N(v);
|
700
|
+
const l = R(() => {
|
701
|
+
var m;
|
702
|
+
return (m = s.find((x) => x.value === c.value)) == null ? void 0 : m.form;
|
688
703
|
});
|
689
|
-
return (
|
690
|
-
const
|
691
|
-
return
|
692
|
-
n(p) ? (
|
693
|
-
o(
|
704
|
+
return (m, x) => {
|
705
|
+
const k = r("FmCircularProgress"), T = r("FmTabs");
|
706
|
+
return g(), $(B, null, [
|
707
|
+
n(p) ? (g(), $("div", pe, [
|
708
|
+
o(k, { size: "xxl" })
|
694
709
|
])) : S("", !0),
|
695
710
|
o(T, {
|
696
711
|
class: "mb-6",
|
697
|
-
"model-value": n(
|
698
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
712
|
+
"model-value": n(c),
|
713
|
+
"onUpdate:modelValue": x[0] || (x[0] = (G) => P(c) ? c.value = G : null),
|
699
714
|
items: d.value
|
700
715
|
}, null, 8, ["model-value", "items"]),
|
701
|
-
n(
|
702
|
-
gateway: e.value.find((
|
716
|
+
n(c) ? (g(), w(K(l.value), E(Y({ key: 1 }, {
|
717
|
+
gateway: e.value.find((G) => G.paymentGateway === n(c)),
|
703
718
|
onDelete: V,
|
704
719
|
onUpdate: i
|
705
720
|
})), null, 16)) : S("", !0)
|
706
721
|
], 64);
|
707
722
|
};
|
708
723
|
}
|
709
|
-
}),
|
724
|
+
}), ge = { class: "flex flex-col gap-8" }, fe = { class: "mt-6 space-x-6" }, Fe = /* @__PURE__ */ _({
|
725
|
+
__name: "LocalIntegration",
|
726
|
+
props: {
|
727
|
+
restaurant: {
|
728
|
+
type: Object,
|
729
|
+
required: !0
|
730
|
+
}
|
731
|
+
},
|
732
|
+
setup(a) {
|
733
|
+
const { isLoading: s, startAsyncCall: u } = O(!1), t = b([]), p = a;
|
734
|
+
N(() => {
|
735
|
+
u(async () => {
|
736
|
+
const c = await D.getIntegration(p.restaurant._id);
|
737
|
+
c && (t.value = c.integrations.map((e) => e.gateway) || []);
|
738
|
+
});
|
739
|
+
});
|
740
|
+
function y() {
|
741
|
+
u(async () => {
|
742
|
+
await D.upsertIntegration(p.restaurant._id, {
|
743
|
+
integrations: t.value.map((c) => ({
|
744
|
+
gateway: c
|
745
|
+
}))
|
746
|
+
});
|
747
|
+
});
|
748
|
+
}
|
749
|
+
return (c, e) => {
|
750
|
+
const i = r("FmCheckbox"), V = r("FmButton");
|
751
|
+
return g(), $(B, null, [
|
752
|
+
I("div", ge, [
|
753
|
+
(g(!0), $(B, null, z(n(H.FdoLocationIntegrationGateway).Values, (d) => (g(), w(i, {
|
754
|
+
modelValue: t.value,
|
755
|
+
"onUpdate:modelValue": e[0] || (e[0] = (v) => t.value = v),
|
756
|
+
label: d,
|
757
|
+
value: d
|
758
|
+
}, null, 8, ["modelValue", "label", "value"]))), 256))
|
759
|
+
]),
|
760
|
+
I("div", fe, [
|
761
|
+
o(V, {
|
762
|
+
variant: "primary",
|
763
|
+
label: "Save",
|
764
|
+
icon: "save",
|
765
|
+
loading: n(s),
|
766
|
+
onclick: y
|
767
|
+
}, null, 8, ["loading"])
|
768
|
+
])
|
769
|
+
], 64);
|
770
|
+
};
|
771
|
+
}
|
772
|
+
}), ke = /* @__PURE__ */ _({
|
710
773
|
__name: "RestaurantSetting",
|
711
774
|
props: {
|
712
775
|
restaurantId: {
|
@@ -714,44 +777,50 @@ const G = {
|
|
714
777
|
required: !0
|
715
778
|
}
|
716
779
|
},
|
717
|
-
setup(
|
718
|
-
const
|
780
|
+
setup(a) {
|
781
|
+
const s = a, { tab: u } = L({
|
719
782
|
tab: "payment-gateway"
|
720
|
-
}), { isLoading: t, startAsyncCall: p } =
|
783
|
+
}), { isLoading: t, startAsyncCall: p } = O(!0), y = Q(), c = b(), e = [
|
721
784
|
{
|
722
785
|
label: "Payment Gateway",
|
723
786
|
value: "payment-gateway",
|
724
787
|
icon: "assured_workload",
|
725
|
-
render:
|
788
|
+
render: ve
|
789
|
+
},
|
790
|
+
{
|
791
|
+
label: "Local Integration",
|
792
|
+
value: "local-integration",
|
793
|
+
icon: "api",
|
794
|
+
render: Fe
|
726
795
|
}
|
727
796
|
];
|
728
797
|
function i() {
|
729
798
|
p(async () => {
|
730
|
-
|
799
|
+
c.value = await W.readRestaurantById(s.restaurantId);
|
731
800
|
});
|
732
801
|
}
|
733
|
-
|
734
|
-
const V =
|
802
|
+
N(i);
|
803
|
+
const V = R(() => {
|
735
804
|
var d;
|
736
805
|
return (d = e.find((v) => v.value === u.value)) == null ? void 0 : d.render;
|
737
806
|
});
|
738
807
|
return (d, v) => {
|
739
|
-
var
|
740
|
-
const
|
741
|
-
return
|
742
|
-
title: `Restaurant (${(
|
808
|
+
var m;
|
809
|
+
const l = r("FmTabs");
|
810
|
+
return g(), w(h, {
|
811
|
+
title: `Restaurant (${(m = c.value) == null ? void 0 : m._id})`,
|
743
812
|
loading: n(t),
|
744
|
-
onBack: n(
|
813
|
+
onBack: n(y).back
|
745
814
|
}, {
|
746
|
-
default:
|
747
|
-
o(
|
815
|
+
default: C(() => [
|
816
|
+
o(l, {
|
748
817
|
"model-value": n(u),
|
749
|
-
"onUpdate:modelValue": v[0] || (v[0] = (x) =>
|
818
|
+
"onUpdate:modelValue": v[0] || (v[0] = (x) => P(u) ? u.value = x : null),
|
750
819
|
class: "mb-6",
|
751
820
|
items: e
|
752
821
|
}, null, 8, ["model-value"]),
|
753
|
-
n(u) &&
|
754
|
-
restaurant:
|
822
|
+
n(u) && c.value ? (g(), w(K(V.value), E(Y({ key: 0 }, {
|
823
|
+
restaurant: c.value
|
755
824
|
})), null, 16)) : S("", !0)
|
756
825
|
]),
|
757
826
|
_: 1
|
@@ -760,5 +829,5 @@ const G = {
|
|
760
829
|
}
|
761
830
|
});
|
762
831
|
export {
|
763
|
-
|
832
|
+
ke as default
|
764
833
|
};
|