@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.
Files changed (78) hide show
  1. package/dist/OnboardForm-BwHRuUJ2.js +709 -0
  2. package/dist/OnboardForm-DtdgTAfM.js +671 -0
  3. package/dist/OnboardSubmission-Cuzay_2u.js +148 -0
  4. package/dist/OnboardSubmission-TvoVrbT8.js +146 -0
  5. package/dist/{PDFViewer-xrBtzrlR.js → PDFViewer-DlSCBBxr.js} +14 -12
  6. package/dist/{PayoutAccount-DoUb4juo.js → PayoutAccount-DM-Uh5AW.js} +8 -7
  7. package/dist/{PayoutAccount-C4zN4xMw.js → PayoutAccount-D_oz3IN_.js} +5 -5
  8. package/dist/{PayoutAccountSetting-IgBRFN0A.js → PayoutAccountSetting-CUlmHkw3.js} +4 -4
  9. package/dist/{Restaurant-CIGhOFvk.js → Restaurant-DDebeSrf.js} +4 -4
  10. package/dist/{RestaurantSetting-0CbusLcz.js → RestaurantSetting-Cf63FkWQ.js} +291 -222
  11. package/dist/{Settlement-DmG5-VSP.js → Settlement-C_V-iTDy.js} +3 -3
  12. package/dist/{Settlement-CUmpNHMN.js → Settlement-CctMzPsZ.js} +3 -3
  13. package/dist/{SettlementTransactions-DhjGSAg4.js → SettlementTransactions-9p3tYV0n.js} +3 -3
  14. package/dist/{SettlementTransactions-CcMUINyi.js → SettlementTransactions-DYvhz0Yh.js} +3 -3
  15. package/dist/Status.vue_vue_type_script_setup_true_lang-wrcEbNj3.js +29 -0
  16. package/dist/{Terminal-CRizNZ4p.js → Terminal-D3QDgPY6.js} +5 -5
  17. package/dist/{TerminalSetting-DdJl_9JJ.js → TerminalSetting-ehm_sRqf.js} +3 -3
  18. package/dist/{Transaction-E9_hSpx4.js → Transaction-DIz_ArbY.js} +6 -6
  19. package/dist/{Transaction-ykrWGKIa.js → Transaction-DzIzAIbO.js} +5 -5
  20. package/dist/{TransactionOld-lPUiTl8n.js → TransactionOld-CagUKhjR.js} +4 -4
  21. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B03g8Jum.js → TransactionTable.vue_vue_type_script_setup_true_lang-ChuhuUKc.js} +3 -3
  22. package/dist/api/index.d.ts +1 -0
  23. package/dist/api/onboard-submission/index.d.ts +17 -0
  24. package/dist/api/payment-gateway/index.d.ts +3 -1
  25. package/dist/api/payout/index.d.ts +1 -0
  26. package/dist/{app-CU7mklRE.js → app-DB_fctP1.js} +212 -131
  27. package/dist/app.d.ts +46 -0
  28. package/dist/app.js +1 -1
  29. package/dist/{assets-Dttfej_E.js → assets-ha4XB2PU.js} +1 -1
  30. package/dist/{grafana-DCGA3gMb.js → grafana-DRZOKr8c.js} +1 -1
  31. package/dist/{index-BQtW6X1l.js → index-8Xu0hCTB.js} +1 -1
  32. package/dist/{index-CZKvrBM7.js → index-B6GVzj7l.js} +1 -1
  33. package/dist/{index-tCobqIDD.js → index-BasdAonL.js} +4930 -4857
  34. package/dist/{index-BOwfUR6x.js → index-DGF3hKwg.js} +1 -1
  35. package/dist/{index-BYLzp2JB.js → index-Dg_mEOso.js} +1 -1
  36. package/dist/{index-JCMXdVSJ.js → index-DoD23lHB.js} +8 -1
  37. package/dist/index-MqVn-IaA.js +68 -0
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-HBMZ5z3-.js → index.vue_vue_type_script_setup_true_lang-D4bLM6th.js} +56 -54
  39. package/dist/modules.d.ts +1 -0
  40. package/dist/package.json +9 -8
  41. package/dist/payout-account-6yMkxM2O.js +458 -0
  42. package/dist/plugins-BLG_oAxW.js +1366 -0
  43. package/dist/stores/payoutAccount.d.ts +16 -16
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/onboard-submission/OnboardForm.vue.d.ts +12 -0
  47. package/dist/views/admin/onboard-submission/OnboardSubmission.vue.d.ts +2 -0
  48. package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +10 -0
  49. package/dist/views/admin/onboard-submission/cell/Status.vue.d.ts +5 -0
  50. package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +11 -0
  51. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +81 -0
  52. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
  53. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +20 -20
  54. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +20 -20
  55. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
  56. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
  57. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +20 -20
  58. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  59. package/dist/views/admin/restaurant/tabs/LocalIntegration.vue.d.ts +803 -0
  60. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
  61. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  62. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  63. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  64. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +8 -8
  65. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +8 -8
  66. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  67. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +8 -8
  68. package/dist/views/onboard-submission/OnboardForm.vue.d.ts +14 -0
  69. package/dist/views/onboard-submission/OnboardSubmission.vue.d.ts +2 -0
  70. package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +10 -0
  71. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +11 -0
  72. package/dist/views/onboard-submission/form/SoftSpaceSubmission.vue.d.ts +5 -0
  73. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
  74. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
  75. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
  76. package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
  77. package/package.json +9 -8
  78. package/dist/payout-account-CdudVI6I.js +0 -1819
@@ -1,44 +1,59 @@
1
- import { defineComponent as _, ref as b, resolveComponent as r, openBlock as F, createBlock as w, withCtx as U, createVNode as o, unref as n, createElementVNode as D, createCommentVNode as S, computed as O, onMounted as $, createElementBlock as N, Fragment as L, isRef as B, resolveDynamicComponent as P, normalizeProps as K, mergeProps as Y } from "vue";
2
- import { g as q, b as A, u as R, e as I } from "./index-tCobqIDD.js";
3
- import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
- import { useRouter as H } from "vue-router";
5
- import { u as E } from "./index-BOwfUR6x.js";
6
- import { z as f, a as g } from "./validator-D5jtpt9A.js";
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 Q } from "./error-K1CakhA9.js";
9
- import { useSnackbar as Z } from "@feedmepos/ui-library";
10
- import { r as J } from "./index-CZKvrBM7.js";
11
- const G = {
12
- async get(l) {
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/${l}/payment-gateway`
15
+ `restaurants/${a}/payment-gateway`
16
16
  )
17
17
  );
18
18
  },
19
- async upsert(l, m) {
19
+ async upsert(a, s) {
20
20
  return q(
21
21
  await A().post(
22
- `restaurants/${l}/payment-gateway`,
23
- { data: m }
22
+ `restaurants/${a}/payment-gateway`,
23
+ { data: s }
24
24
  )
25
25
  );
26
26
  },
27
- async delete(l, m) {
27
+ async delete(a, s) {
28
28
  return q(
29
29
  await A().delete(
30
- `restaurants/${l}/payment-gateway/${m}`
30
+ `restaurants/${a}/payment-gateway/${s}`
31
31
  )
32
32
  );
33
33
  },
34
- async grabSync(l) {
34
+ async grabSync(a) {
35
35
  return q(
36
36
  await A().post(
37
- `restaurants/${l}/payment-gateway/grab/sync`
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
- }, W = { class: "flex mt-6 space-x-6" }, X = /* @__PURE__ */ _({
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(l) {
58
- var p, c;
59
- const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
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 (y, e) => {
82
+ return (c, e) => {
68
83
  const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
69
- return F(), w(v, {
84
+ return g(), w(v, {
70
85
  ref: "form",
71
86
  class: "flex flex-col gap-16",
72
- onValidationSuccess: e[7] || (e[7] = () => l.onUpdate(u.value, t.value))
87
+ onValidationSuccess: e[7] || (e[7] = () => a.onUpdate(u.value, t.value))
73
88
  }, {
74
- default: U(() => [
89
+ default: C(() => [
75
90
  o(i, {
76
91
  modelValue: t.value.merchantId,
77
- "onUpdate:modelValue": e[0] || (e[0] = (a) => t.value.merchantId = a),
92
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
78
93
  label: "Merchant ID",
79
- rules: n(f)(n(g).string())
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] = (a) => t.value.uniqueId = a),
98
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.uniqueId = l),
84
99
  label: "Unique ID",
85
- rules: n(f)(n(g).string())
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] = (a) => t.value.verifyKey = a),
104
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.verifyKey = l),
90
105
  label: "Verify Key",
91
- rules: n(f)(n(g).string())
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] = (a) => t.value.secretKey = a),
110
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.secretKey = l),
96
111
  label: "Secret Key",
97
- rules: n(f)(n(g).string())
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] = (a) => t.value.applicationCode = a),
116
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.applicationCode = l),
102
117
  label: "Application Code ( Offline )",
103
- rules: n(f)(n(g).string())
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] = (a) => t.value.offlineSecret = a),
122
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => t.value.offlineSecret = l),
108
123
  label: "Offline Secret ( Offline )",
109
- rules: n(f)(n(g).string())
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] = (a) => u.value = a),
128
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => u.value = l),
114
129
  label: "Is Active"
115
130
  }, null, 8, ["modelValue"]),
116
- D("div", W, [
117
- l.gateway ? (F(), w(d, {
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: () => l.onDelete(l.gateway)
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
- }), h = { class: "flex mt-6 space-x-6" }, ee = /* @__PURE__ */ _({
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(l) {
153
- var p, c;
154
- const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
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 (y, e) => {
161
- const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), a = r("FmForm");
162
- return F(), w(a, {
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] = () => l.onUpdate(u.value, t.value))
180
+ onValidationSuccess: e[5] || (e[5] = () => a.onUpdate(u.value, t.value))
166
181
  }, {
167
- default: U(() => [
182
+ default: C(() => [
168
183
  o(i, {
169
184
  modelValue: t.value.storeId,
170
- "onUpdate:modelValue": e[0] || (e[0] = (s) => t.value.storeId = s),
185
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.storeId = m),
171
186
  label: "Store ID",
172
- rules: n(f)(n(g).string())
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] = (s) => t.value.clientId = s),
191
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.clientId = m),
177
192
  label: "Client ID",
178
- rules: n(f)(n(g).string())
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] = (s) => t.value.clientSecret = s),
197
+ "onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.clientSecret = m),
183
198
  label: "Client Secret",
184
- rules: n(f)(n(g).string())
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] = (s) => t.value.clientPrivateKey = s),
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] = (s) => u.value = s),
208
+ "onUpdate:modelValue": e[4] || (e[4] = (m) => u.value = m),
194
209
  label: "Is Active"
195
210
  }, null, 8, ["modelValue"]),
196
- D("div", h, [
197
- l.gateway ? (F(), w(v, {
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: () => l.onDelete(l.gateway)
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
- }), te = { class: "flex mt-6 space-x-6" }, ae = /* @__PURE__ */ _({
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(l) {
233
- var p, c;
234
- const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
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 (y, e) => {
240
- const i = r("FmTextField"), V = r("FmTextarea"), d = r("FmSwitch"), v = r("FmButton"), a = r("FmForm");
241
- return F(), w(a, {
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] = () => l.onUpdate(u.value, t.value))
259
+ onValidationSuccess: e[4] || (e[4] = () => a.onUpdate(u.value, t.value))
245
260
  }, {
246
- default: U(() => [
261
+ default: C(() => [
247
262
  o(i, {
248
263
  modelValue: t.value.merchantId,
249
- "onUpdate:modelValue": e[0] || (e[0] = (s) => t.value.merchantId = s),
264
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => t.value.merchantId = m),
250
265
  label: "Merchant ID",
251
- rules: n(f)(n(g).string())
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] = (s) => t.value.terminalId = s),
270
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => t.value.terminalId = m),
256
271
  label: "Terminal ID",
257
- rules: n(f)(n(g).string())
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] = (s) => t.value.privateKey = s),
277
+ "onUpdate:modelValue": e[2] || (e[2] = (m) => t.value.privateKey = m),
263
278
  label: "Private Key",
264
- rules: n(f)(n(g).string())
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] = (s) => u.value = s),
283
+ "onUpdate:modelValue": e[3] || (e[3] = (m) => u.value = m),
269
284
  label: "Is Active"
270
285
  }, null, 8, ["modelValue"]),
271
- D("div", te, [
272
- l.gateway ? (F(), w(v, {
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: () => l.onDelete(l.gateway)
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
- }), le = { class: "flex mt-6 space-x-6" }, ne = /* @__PURE__ */ _({
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(l) {
308
- var p, c;
309
- const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
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 (y, e) => {
331
+ return (c, e) => {
317
332
  const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
318
- return F(), w(v, {
333
+ return g(), w(v, {
319
334
  ref: "form",
320
335
  class: "flex flex-col gap-16",
321
- onValidationSuccess: e[6] || (e[6] = () => l.onUpdate(u.value, t.value))
336
+ onValidationSuccess: e[6] || (e[6] = () => a.onUpdate(u.value, t.value))
322
337
  }, {
323
- default: U(() => [
338
+ default: C(() => [
324
339
  o(i, {
325
340
  modelValue: t.value.merchantId,
326
- "onUpdate:modelValue": e[0] || (e[0] = (a) => t.value.merchantId = a),
341
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
327
342
  label: "Merchant ID",
328
- rules: n(f)(n(g).string())
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] = (a) => t.value.merchantName = a),
347
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.merchantName = l),
333
348
  label: "Merchant Name",
334
- rules: n(f)(n(g).string())
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] = (a) => t.value.merchantCategoryCode = a),
353
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.merchantCategoryCode = l),
339
354
  label: "Merchant MCC",
340
- rules: n(f)(n(g).string())
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] = (a) => t.value.storeID = a),
359
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => t.value.storeID = l),
345
360
  label: "Store ID",
346
- rules: n(f)(n(g).string())
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] = (a) => t.value.storeName = a),
365
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => t.value.storeName = l),
351
366
  label: "Store Name",
352
- rules: n(f)(n(g).string())
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] = (a) => u.value = a),
371
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l),
357
372
  label: "Is Active"
358
373
  }, null, 8, ["modelValue"]),
359
- D("div", le, [
360
- l.gateway ? (F(), w(d, {
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: () => l.onDelete(l.gateway)
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
- }), oe = { class: "flex items-end" }, ue = { class: "flex mt-6 space-x-6" }, re = /* @__PURE__ */ _({
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(l) {
410
+ setup(a) {
396
411
  var V, d;
397
- const m = Z(), { isLoading: u, startAsyncCall: t } = R(), p = j(), c = l, y = b(((V = c.gateway) == null ? void 0 : V.active) ?? !1), e = b(((d = c.gateway) == null ? void 0 : d.config) || {
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: a } = await G.grabSync(((v = p.currentRestaurant.value) == null ? void 0 : v._id) ?? "");
405
- e.value.merchantId = a, y.value = !0, m.open({
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 (a) {
410
- m.open({
424
+ } catch (l) {
425
+ s.open({
411
426
  type: "error",
412
427
  title: "Error occurs when sync ordering settings",
413
- message: Q(a)
428
+ message: Z(l)
414
429
  });
415
430
  }
416
431
  });
417
432
  }
418
- return (v, a) => {
419
- const s = r("FmTextField"), x = r("FmButton"), C = r("FmTooltip"), T = r("FmSwitch"), k = r("FmForm");
420
- return F(), w(k, {
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: a[2] || (a[2] = () => l.onUpdate(y.value, e.value))
438
+ onValidationSuccess: l[2] || (l[2] = () => a.onUpdate(c.value, e.value))
424
439
  }, {
425
- default: U(() => [
426
- D("div", oe, [
427
- o(s, {
440
+ default: C(() => [
441
+ I("div", re, [
442
+ o(m, {
428
443
  modelValue: e.value.merchantId,
429
- "onUpdate:modelValue": a[0] || (a[0] = (M) => e.value.merchantId = M),
444
+ "onUpdate:modelValue": l[0] || (l[0] = (M) => e.value.merchantId = M),
430
445
  label: "Merchant ID",
431
- rules: n(f)(n(g).string())
446
+ rules: n(f)(n(F).string())
432
447
  }, null, 8, ["modelValue", "rules"]),
433
- o(C, {
448
+ o(k, {
434
449
  variant: "plain",
435
450
  placement: "right",
436
451
  content: "Sync from Ordering Settings"
437
452
  }, {
438
- default: U(() => [
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: y.value,
453
- "onUpdate:modelValue": a[1] || (a[1] = (M) => y.value = M),
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
- D("div", ue, [
457
- l.gateway ? (F(), w(x, {
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: () => l.onDelete(l.gateway)
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
- }), se = { class: "flex mt-6 space-x-6" }, ie = /* @__PURE__ */ _({
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(l) {
493
- var p, c;
494
- const m = l, u = b(((p = m.gateway) == null ? void 0 : p.active) ?? !1), t = b(((c = m.gateway) == null ? void 0 : c.config) || {
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 (y, e) => {
513
+ return (c, e) => {
499
514
  const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
500
- return F(), w(v, {
515
+ return g(), w(v, {
501
516
  ref: "form",
502
517
  class: "flex flex-col gap-16",
503
- onValidationSuccess: e[3] || (e[3] = () => l.onUpdate(u.value, t.value))
518
+ onValidationSuccess: e[3] || (e[3] = () => a.onUpdate(u.value, t.value))
504
519
  }, {
505
- default: U(() => [
520
+ default: C(() => [
506
521
  o(i, {
507
522
  modelValue: t.value.mid,
508
- "onUpdate:modelValue": e[0] || (e[0] = (a) => t.value.mid = a),
523
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.mid = l),
509
524
  label: "MID",
510
- rules: n(f)(n(g).string())
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] = (a) => t.value.tid = a),
529
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.tid = l),
515
530
  label: "TID",
516
- rules: n(f)(n(g).string())
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] = (a) => u.value = a),
535
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
521
536
  label: "Is Active"
522
537
  }, null, 8, ["modelValue"]),
523
- D("div", se, [
524
- l.gateway ? (F(), w(d, {
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: () => l.onDelete(l.gateway)
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
- }), me = { class: "flex mt-6 space-x-6" }, ce = /* @__PURE__ */ _({
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(l) {
560
- var p, c;
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) || {
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 (y, e) => {
579
+ return (c, e) => {
565
580
  const i = r("FmTextField"), V = r("FmSwitch"), d = r("FmButton"), v = r("FmForm");
566
- return F(), w(v, {
581
+ return g(), w(v, {
567
582
  ref: "form",
568
583
  class: "flex flex-col gap-16",
569
- onValidationSuccess: e[2] || (e[2] = () => l.onUpdate(u.value, t.value))
584
+ onValidationSuccess: e[2] || (e[2] = () => a.onUpdate(u.value, t.value))
570
585
  }, {
571
- default: U(() => [
586
+ default: C(() => [
572
587
  o(i, {
573
588
  modelValue: t.value.merchantId,
574
- "onUpdate:modelValue": e[0] || (e[0] = (a) => t.value.merchantId = a),
589
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.merchantId = l),
575
590
  label: "Merchant ID",
576
- rules: n(f)(n(g).string())
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] = (a) => u.value = a),
595
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => u.value = l),
581
596
  label: "Is Active"
582
597
  }, null, 8, ["modelValue"]),
583
- D("div", me, [
584
- l.gateway ? (F(), w(d, {
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: () => l.onDelete(l.gateway)
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
- }), de = {
618
+ }), pe = {
604
619
  key: 0,
605
620
  class: "flex items-center justify-center min-h-[80vh]"
606
- }, ye = /* @__PURE__ */ _({
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(l) {
615
- const m = [
629
+ setup(a) {
630
+ const s = [
616
631
  {
617
632
  label: "Fiuu",
618
633
  value: "RAZER_MERCHANT_SERVICE",
619
- form: X,
620
- region: [I.F_COUNTRY.enum.MY, I.F_COUNTRY.enum.SG]
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: ee,
626
- region: [I.F_COUNTRY.enum.MY]
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: ae,
632
- region: [I.F_COUNTRY.enum.MY]
646
+ form: ne,
647
+ region: [U.F_COUNTRY.enum.MY]
633
648
  },
634
649
  {
635
650
  label: "Grab",
636
651
  value: "GRAB",
637
- form: re,
638
- region: [I.F_COUNTRY.enum.MY]
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: ne,
644
- region: [I.F_COUNTRY.enum.MO]
658
+ form: ue,
659
+ region: [U.F_COUNTRY.enum.MO]
645
660
  },
646
661
  {
647
662
  label: "SoftSpace",
648
663
  value: "SOFTSPACE",
649
- form: ie,
650
- region: [I.F_COUNTRY.enum.MY]
664
+ form: ce,
665
+ region: [U.F_COUNTRY.enum.MY]
651
666
  },
652
667
  {
653
668
  label: "Digio",
654
669
  value: "DIGIO",
655
- form: ce,
656
- region: [I.F_COUNTRY.enum.TH]
670
+ form: ye,
671
+ region: [U.F_COUNTRY.enum.TH]
657
672
  }
658
- ], u = l, t = j(), { isLoading: p, startAsyncCall: c } = R(), { activeGateway: y } = E({
673
+ ], u = a, t = j(), { isLoading: p, startAsyncCall: y } = O(), { activeGateway: c } = L({
659
674
  activeGateway: ""
660
675
  }), e = b([]);
661
- async function i(s, x) {
662
- await c(async () => {
663
- const C = {
676
+ async function i(m, x) {
677
+ await y(async () => {
678
+ const k = {
664
679
  _id: "",
665
680
  _rev: "",
666
- paymentGateway: y.value,
681
+ paymentGateway: c.value,
667
682
  config: x,
668
- active: s
669
- }, T = e.value.find((k) => k.paymentGateway === y.value);
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);
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(s) {
674
- c(async () => {
675
- await G.delete(u.restaurant._id, s._id), e.value = await G.get(u.restaurant._id);
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 = O(() => m.filter((s) => s.region.includes(t.currentCountry.value ?? I.F_COUNTRY.enum.MY)));
693
+ const d = R(() => s.filter((m) => m.region.includes(t.currentCountry.value ?? U.F_COUNTRY.enum.MY)));
679
694
  function v() {
680
- c(async () => {
681
- e.value = await G.get(u.restaurant._id), d.value.length > 0 && (y.value = d.value[0].value);
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
- $(v);
685
- const a = O(() => {
686
- var s;
687
- return (s = m.find((x) => x.value === y.value)) == null ? void 0 : s.form;
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 (s, x) => {
690
- const C = r("FmCircularProgress"), T = r("FmTabs");
691
- return F(), N(L, null, [
692
- n(p) ? (F(), N("div", de, [
693
- o(C, { size: "xxl" })
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(y),
698
- "onUpdate:modelValue": x[0] || (x[0] = (k) => B(y) ? y.value = k : null),
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(y) ? (F(), w(P(a.value), K(Y({ key: 1 }, {
702
- gateway: e.value.find((k) => k.paymentGateway === n(y)),
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
- }), Ie = /* @__PURE__ */ _({
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(l) {
718
- const m = l, { tab: u } = E({
780
+ setup(a) {
781
+ const s = a, { tab: u } = L({
719
782
  tab: "payment-gateway"
720
- }), { isLoading: t, startAsyncCall: p } = R(!0), c = H(), y = b(), e = [
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: ye
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
- y.value = await J.readRestaurantById(m.restaurantId);
799
+ c.value = await W.readRestaurantById(s.restaurantId);
731
800
  });
732
801
  }
733
- $(i);
734
- const V = O(() => {
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 s;
740
- const a = r("FmTabs");
741
- return F(), w(z, {
742
- title: `Restaurant (${(s = y.value) == null ? void 0 : s._id})`,
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(c).back
813
+ onBack: n(y).back
745
814
  }, {
746
- default: U(() => [
747
- o(a, {
815
+ default: C(() => [
816
+ o(l, {
748
817
  "model-value": n(u),
749
- "onUpdate:modelValue": v[0] || (v[0] = (x) => B(u) ? u.value = x : null),
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) && y.value ? (F(), w(P(V.value), K(Y({ key: 0 }, {
754
- restaurant: y.value
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
- Ie as default
832
+ ke as default
764
833
  };