@feedmepos/mf-payment 1.3.15 → 1.3.16
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-CG7K5yk7.js → OnboardForm-BdM5mFxX.js} +2 -2
- package/dist/{OnboardForm-CPuGbrK_.js → OnboardForm-DpS49KIM.js} +2 -2
- package/dist/{OnboardSubmission-B-qZcl9K.js → OnboardSubmission-JK-FTiXu.js} +1 -1
- package/dist/{OnboardSubmission-sxGMoZZI.js → OnboardSubmission-dEzULxx-.js} +1 -1
- package/dist/{PayoutAccount-CpllhH0o.js → PayoutAccount-C28drc5s.js} +1 -1
- package/dist/{PayoutAccount-C97gLbqE.js → PayoutAccount-bCXQK_Wh.js} +3 -3
- package/dist/{RestaurantSetting-DcHUxBYh.js → RestaurantSetting-BZ_wJvh-.js} +52 -52
- package/dist/{TerminalSetting-Bgn-I2bk.js → TerminalSetting-CmpDYU7f.js} +53 -50
- package/dist/{app-Cf7DgBaZ.js → app-otnLxbyt.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{index-CHjhdeWq.js → index-DGRcCQln.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-BZbHO2Nx.js → payout-account-woXZx4kD.js} +2 -2
- package/dist/{plugins-DzVeXQgr.js → plugins-CApeCjFO.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2,12 +2,12 @@ import { defineComponent as O, ref as V, computed as Z, resolveComponent as y, o
|
|
2
2
|
import { z as p, a as c } from "./validator-D5jtpt9A.js";
|
3
3
|
import { P as de, _ as me } from "./PDFViewer-DlSCBBxr.js";
|
4
4
|
import { useCoreStore as pe } from "@feedmepos/mf-common";
|
5
|
-
import { o as L } from "./index-
|
5
|
+
import { o as L } from "./index-DGRcCQln.js";
|
6
6
|
import { p as ce } from "./index-DZYRliw9.js";
|
7
7
|
import { useSnackbar as ve } from "@feedmepos/ui-library";
|
8
8
|
import { u as X } from "./index-CJPiBIRm.js";
|
9
9
|
import { s as ye } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
10
|
-
import { P as be } from "./payout-account-
|
10
|
+
import { P as be } from "./payout-account-woXZx4kD.js";
|
11
11
|
import { useRouter as fe } from "vue-router";
|
12
12
|
const ge = ["src"], R = /* @__PURE__ */ O({
|
13
13
|
__name: "UploadButton",
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as q, createElementVNode as o, toDisplayString as E, Fragment as z, createBlock as j, withCtx as c, createVNode as s, createCommentVNode as I, unref as e, createTextVNode as D, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
2
|
-
import { o as T } from "./index-
|
2
|
+
import { o as T } from "./index-DGRcCQln.js";
|
3
3
|
import { u as M } from "./index-CJPiBIRm.js";
|
4
4
|
import { useRouter as h } from "vue-router";
|
5
5
|
import { z as u, a as d } from "./validator-D5jtpt9A.js";
|
6
|
-
import { P as ee } from "./payout-account-
|
6
|
+
import { P as ee } from "./payout-account-woXZx4kD.js";
|
7
7
|
import { P as le } from "./PDFViewer-DlSCBBxr.js";
|
8
8
|
import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
9
9
|
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-kehDoQ6j.js";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as A, ref as V, watch as v, computed as p, resolveComponent as x, openBlock as h, createBlock as w, withCtx as f, createElementVNode as S, createVNode as r, unref as l, isRef as n, h as k } from "vue";
|
2
|
-
import { o as K } from "./index-
|
2
|
+
import { o as K } from "./index-DGRcCQln.js";
|
3
3
|
import { p as m } from "./index-CJPiBIRm.js";
|
4
4
|
import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-CaVufHjO.js";
|
5
5
|
import { useRouter as F } from "vue-router";
|
@@ -3,7 +3,7 @@ import { _ as q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js
|
|
3
3
|
import { u as G, p as J, e as L } from "./index-CJPiBIRm.js";
|
4
4
|
import { useI18n as K, useCoreStore as Q } from "@feedmepos/mf-common";
|
5
5
|
import { _ as X } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
6
|
-
import { o as Z } from "./index-
|
6
|
+
import { o as Z } from "./index-DGRcCQln.js";
|
7
7
|
import { useRouter as w } from "vue-router";
|
8
8
|
import { i as ss } from "./softspace-25X2bjBx.js";
|
9
9
|
const es = { class: "flex justify-left items-center mb-6" }, ts = { class: "grid grid-cols-3 gap-6" }, os = { class: "flex items-center" }, ns = ["src"], is = { class: "px-16 text-sm flex-grow" }, rs = { class: "list-disc pl-6" }, ms = {
|
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
|
|
2
2
|
import { u as O } from "./index-98tll3Hu.js";
|
3
3
|
import { p as K } from "./index-CJPiBIRm.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-
|
5
|
+
import { P as V } from "./payout-account-woXZx4kD.js";
|
6
6
|
import { p as D } from "./index-DZYRliw9.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CaVufHjO.js";
|
@@ -3,12 +3,12 @@ import { p as K } from "./index-DZYRliw9.js";
|
|
3
3
|
import { p as U, u as gA, e as lA } from "./index-CJPiBIRm.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-woXZx4kD.js";
|
7
7
|
import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
|
8
8
|
import { z as F, a as H } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as $ } from "./PDFViewer-DlSCBBxr.js";
|
10
|
-
import "./app-
|
11
|
-
import "./plugins-
|
10
|
+
import "./app-otnLxbyt.js";
|
11
|
+
import "./plugins-CApeCjFO.js";
|
12
12
|
import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
13
13
|
function wA() {
|
14
14
|
return {
|
@@ -64,9 +64,9 @@ const G = {
|
|
64
64
|
applicationCode: "",
|
65
65
|
offlineSecret: ""
|
66
66
|
});
|
67
|
-
return (
|
68
|
-
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"),
|
69
|
-
return F(), w(
|
67
|
+
return (v, e) => {
|
68
|
+
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
69
|
+
return F(), w(y, {
|
70
70
|
ref: "form",
|
71
71
|
class: "flex flex-col gap-16",
|
72
72
|
onValidationSuccess: e[7] || (e[7] = () => l.onUpdate(u.value, t.value))
|
@@ -157,8 +157,8 @@ const G = {
|
|
157
157
|
clientSecret: "",
|
158
158
|
clientPrivateKey: ""
|
159
159
|
});
|
160
|
-
return (
|
161
|
-
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"),
|
160
|
+
return (v, e) => {
|
161
|
+
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), y = r("FmButton"), a = r("FmForm");
|
162
162
|
return F(), w(a, {
|
163
163
|
ref: "form",
|
164
164
|
class: "flex flex-col gap-16",
|
@@ -194,14 +194,14 @@ const G = {
|
|
194
194
|
label: "Is Active"
|
195
195
|
}, null, 8, ["modelValue"]),
|
196
196
|
D("div", h, [
|
197
|
-
l.gateway ? (F(), w(
|
197
|
+
l.gateway ? (F(), w(y, {
|
198
198
|
key: 0,
|
199
199
|
class: "flex-1",
|
200
200
|
variant: "secondary",
|
201
201
|
label: "Delete",
|
202
202
|
onclick: () => l.onDelete(l.gateway)
|
203
203
|
}, null, 8, ["onclick"])) : S("", !0),
|
204
|
-
o(
|
204
|
+
o(y, {
|
205
205
|
type: "submit",
|
206
206
|
class: "flex-1",
|
207
207
|
variant: "primary",
|
@@ -236,8 +236,8 @@ const G = {
|
|
236
236
|
terminalId: "",
|
237
237
|
privateKey: ""
|
238
238
|
});
|
239
|
-
return (
|
240
|
-
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"),
|
239
|
+
return (v, e) => {
|
240
|
+
const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), y = r("FmButton"), a = r("FmForm");
|
241
241
|
return F(), w(a, {
|
242
242
|
ref: "form",
|
243
243
|
class: "flex flex-col gap-16",
|
@@ -257,26 +257,26 @@ const G = {
|
|
257
257
|
rules: n(f)(n(g).string())
|
258
258
|
}, null, 8, ["modelValue", "rules"]),
|
259
259
|
o(V, {
|
260
|
-
id: "ghl_pkey",
|
261
260
|
modelValue: t.value.privateKey,
|
262
261
|
"onUpdate:modelValue": e[2] || (e[2] = (s) => t.value.privateKey = s),
|
263
262
|
label: "Private Key",
|
264
|
-
|
265
|
-
|
263
|
+
"label-mark": "optional",
|
264
|
+
"label-info": "Default will use FeedMe Private Key"
|
265
|
+
}, null, 8, ["modelValue"]),
|
266
266
|
o(d, {
|
267
267
|
modelValue: u.value,
|
268
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
|
-
l.gateway ? (F(), w(
|
272
|
+
l.gateway ? (F(), w(y, {
|
273
273
|
key: 0,
|
274
274
|
class: "flex-1",
|
275
275
|
variant: "secondary",
|
276
276
|
label: "Delete",
|
277
277
|
onclick: () => l.onDelete(l.gateway)
|
278
278
|
}, null, 8, ["onclick"])) : S("", !0),
|
279
|
-
o(
|
279
|
+
o(y, {
|
280
280
|
type: "submit",
|
281
281
|
class: "flex-1",
|
282
282
|
variant: "primary",
|
@@ -313,9 +313,9 @@ const G = {
|
|
313
313
|
storeID: "",
|
314
314
|
storeName: ""
|
315
315
|
});
|
316
|
-
return (
|
317
|
-
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"),
|
318
|
-
return F(), w(
|
316
|
+
return (v, e) => {
|
317
|
+
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
318
|
+
return F(), w(y, {
|
319
319
|
ref: "form",
|
320
320
|
class: "flex flex-col gap-16",
|
321
321
|
onValidationSuccess: e[6] || (e[6] = () => l.onUpdate(u.value, t.value))
|
@@ -394,15 +394,15 @@ const G = {
|
|
394
394
|
},
|
395
395
|
setup(l) {
|
396
396
|
var V, d;
|
397
|
-
const m = Z(), { isLoading: u, startAsyncCall: t } = R(), p = j(), c = l,
|
397
|
+
const m = Z(), { isLoading: u, startAsyncCall: t } = R(), p = j(), c = l, v = b(((V = c.gateway) == null ? void 0 : V.active) ?? !1), e = b(((d = c.gateway) == null ? void 0 : d.config) || {
|
398
398
|
merchantId: ""
|
399
399
|
});
|
400
400
|
async function i() {
|
401
401
|
t(async () => {
|
402
|
-
var
|
402
|
+
var y;
|
403
403
|
try {
|
404
|
-
const { merchantID: a } = await G.grabSync(((
|
405
|
-
e.value.merchantId = a,
|
404
|
+
const { merchantID: a } = await G.grabSync(((y = p.currentRestaurant.value) == null ? void 0 : y._id) ?? "");
|
405
|
+
e.value.merchantId = a, v.value = !0, m.open({
|
406
406
|
type: "success",
|
407
407
|
title: "Grab Setting sync succesfully, you will still need to save the changes."
|
408
408
|
});
|
@@ -415,12 +415,12 @@ const G = {
|
|
415
415
|
}
|
416
416
|
});
|
417
417
|
}
|
418
|
-
return (
|
418
|
+
return (y, a) => {
|
419
419
|
const s = r("FmTextField"), x = r("FmButton"), C = r("FmTooltip"), T = r("FmSwitch"), k = r("FmForm");
|
420
420
|
return F(), w(k, {
|
421
421
|
ref: "form",
|
422
422
|
class: "flex flex-col gap-16",
|
423
|
-
onValidationSuccess: a[2] || (a[2] = () => l.onUpdate(
|
423
|
+
onValidationSuccess: a[2] || (a[2] = () => l.onUpdate(v.value, e.value))
|
424
424
|
}, {
|
425
425
|
default: U(() => [
|
426
426
|
D("div", oe, [
|
@@ -449,8 +449,8 @@ const G = {
|
|
449
449
|
})
|
450
450
|
]),
|
451
451
|
o(T, {
|
452
|
-
modelValue:
|
453
|
-
"onUpdate:modelValue": a[1] || (a[1] = (M) =>
|
452
|
+
modelValue: v.value,
|
453
|
+
"onUpdate:modelValue": a[1] || (a[1] = (M) => v.value = M),
|
454
454
|
label: "Is Active"
|
455
455
|
}, null, 8, ["modelValue"]),
|
456
456
|
D("div", ue, [
|
@@ -495,9 +495,9 @@ const G = {
|
|
495
495
|
mid: "",
|
496
496
|
tid: ""
|
497
497
|
});
|
498
|
-
return (
|
499
|
-
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"),
|
500
|
-
return F(), w(
|
498
|
+
return (v, e) => {
|
499
|
+
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
500
|
+
return F(), w(y, {
|
501
501
|
ref: "form",
|
502
502
|
class: "flex flex-col gap-16",
|
503
503
|
onValidationSuccess: e[3] || (e[3] = () => l.onUpdate(u.value, t.value))
|
@@ -561,9 +561,9 @@ const G = {
|
|
561
561
|
const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
|
562
562
|
merchantId: ""
|
563
563
|
});
|
564
|
-
return (
|
565
|
-
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"),
|
566
|
-
return F(), w(
|
564
|
+
return (v, e) => {
|
565
|
+
const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), y = r("FmForm");
|
566
|
+
return F(), w(y, {
|
567
567
|
ref: "form",
|
568
568
|
class: "flex flex-col gap-16",
|
569
569
|
onValidationSuccess: e[2] || (e[2] = () => l.onUpdate(u.value, t.value))
|
@@ -603,7 +603,7 @@ const G = {
|
|
603
603
|
}), de = {
|
604
604
|
key: 0,
|
605
605
|
class: "flex items-center justify-center min-h-[80vh]"
|
606
|
-
},
|
606
|
+
}, ve = /* @__PURE__ */ _({
|
607
607
|
__name: "PaymentGateway",
|
608
608
|
props: {
|
609
609
|
restaurant: {
|
@@ -655,7 +655,7 @@ const G = {
|
|
655
655
|
form: ce,
|
656
656
|
region: [I.F_COUNTRY.enum.TH]
|
657
657
|
}
|
658
|
-
], u = l, t = j(), { isLoading: p, startAsyncCall: c } = R(), { activeGateway:
|
658
|
+
], u = l, t = j(), { isLoading: p, startAsyncCall: c } = R(), { activeGateway: v } = E({
|
659
659
|
activeGateway: ""
|
660
660
|
}), e = b([]);
|
661
661
|
async function i(s, x) {
|
@@ -663,10 +663,10 @@ const G = {
|
|
663
663
|
const C = {
|
664
664
|
_id: "",
|
665
665
|
_rev: "",
|
666
|
-
paymentGateway:
|
666
|
+
paymentGateway: v.value,
|
667
667
|
config: x,
|
668
668
|
active: s
|
669
|
-
}, T = e.value.find((k) => k.paymentGateway ===
|
669
|
+
}, T = e.value.find((k) => k.paymentGateway === v.value);
|
670
670
|
T && (C._id = T._id, C._rev = T._rev), await G.upsert(u.restaurant._id, C), e.value = await G.get(u.restaurant._id);
|
671
671
|
});
|
672
672
|
}
|
@@ -676,15 +676,15 @@ const G = {
|
|
676
676
|
});
|
677
677
|
}
|
678
678
|
const d = O(() => m.filter((s) => s.region.includes(t.currentCountry.value ?? I.F_COUNTRY.enum.MY)));
|
679
|
-
function
|
679
|
+
function y() {
|
680
680
|
c(async () => {
|
681
|
-
e.value = await G.get(u.restaurant._id), d.value.length > 0 && (
|
681
|
+
e.value = await G.get(u.restaurant._id), d.value.length > 0 && (v.value = d.value[0].value);
|
682
682
|
});
|
683
683
|
}
|
684
|
-
$(
|
684
|
+
$(y);
|
685
685
|
const a = O(() => {
|
686
686
|
var s;
|
687
|
-
return (s = m.find((x) => x.value ===
|
687
|
+
return (s = m.find((x) => x.value === v.value)) == null ? void 0 : s.form;
|
688
688
|
});
|
689
689
|
return (s, x) => {
|
690
690
|
const C = r("FmCircularProgress"), T = r("FmTabs");
|
@@ -694,12 +694,12 @@ const G = {
|
|
694
694
|
])) : S("", !0),
|
695
695
|
o(T, {
|
696
696
|
class: "mb-6",
|
697
|
-
"model-value": n(
|
698
|
-
"onUpdate:modelValue": x[0] || (x[0] = (k) => B(
|
697
|
+
"model-value": n(v),
|
698
|
+
"onUpdate:modelValue": x[0] || (x[0] = (k) => B(v) ? v.value = k : null),
|
699
699
|
items: d.value
|
700
700
|
}, null, 8, ["model-value", "items"]),
|
701
|
-
n(
|
702
|
-
gateway: e.value.find((k) => k.paymentGateway === n(
|
701
|
+
n(v) ? (F(), w(P(a.value), K(Y({ key: 1 }, {
|
702
|
+
gateway: e.value.find((k) => k.paymentGateway === n(v)),
|
703
703
|
onDelete: V,
|
704
704
|
onUpdate: i
|
705
705
|
})), null, 16)) : S("", !0)
|
@@ -717,41 +717,41 @@ const G = {
|
|
717
717
|
setup(l) {
|
718
718
|
const m = l, { tab: u } = E({
|
719
719
|
tab: "payment-gateway"
|
720
|
-
}), { isLoading: t, startAsyncCall: p } = R(!0), c = H(),
|
720
|
+
}), { isLoading: t, startAsyncCall: p } = R(!0), c = H(), v = b(), e = [
|
721
721
|
{
|
722
722
|
label: "Payment Gateway",
|
723
723
|
value: "payment-gateway",
|
724
724
|
icon: "assured_workload",
|
725
|
-
render:
|
725
|
+
render: ve
|
726
726
|
}
|
727
727
|
];
|
728
728
|
function i() {
|
729
729
|
p(async () => {
|
730
|
-
|
730
|
+
v.value = await J.readRestaurantById(m.restaurantId);
|
731
731
|
});
|
732
732
|
}
|
733
733
|
$(i);
|
734
734
|
const V = O(() => {
|
735
735
|
var d;
|
736
|
-
return (d = e.find((
|
736
|
+
return (d = e.find((y) => y.value === u.value)) == null ? void 0 : d.render;
|
737
737
|
});
|
738
|
-
return (d,
|
738
|
+
return (d, y) => {
|
739
739
|
var s;
|
740
740
|
const a = r("FmTabs");
|
741
741
|
return F(), w(z, {
|
742
|
-
title: `Restaurant (${(s =
|
742
|
+
title: `Restaurant (${(s = v.value) == null ? void 0 : s._id})`,
|
743
743
|
loading: n(t),
|
744
744
|
onBack: n(c).back
|
745
745
|
}, {
|
746
746
|
default: U(() => [
|
747
747
|
o(a, {
|
748
748
|
"model-value": n(u),
|
749
|
-
"onUpdate:modelValue":
|
749
|
+
"onUpdate:modelValue": y[0] || (y[0] = (x) => B(u) ? u.value = x : null),
|
750
750
|
class: "mb-6",
|
751
751
|
items: e
|
752
752
|
}, null, 8, ["model-value"]),
|
753
|
-
n(u) &&
|
754
|
-
restaurant:
|
753
|
+
n(u) && v.value ? (F(), w(P(V.value), K(Y({ key: 0 }, {
|
754
|
+
restaurant: v.value
|
755
755
|
})), null, 16)) : S("", !0)
|
756
756
|
]),
|
757
757
|
_: 1
|