@feedmepos/mf-payment 1.6.28-dev → 1.6.30-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-B4ZiwdN0.js → Actions.vue_vue_type_script_setup_true_lang-DnYxawNz.js} +1 -1
  2. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-B_Ijdnd4.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C09Zc2yY.js} +2 -2
  3. package/dist/{Chargeback-YmbARhKg.js → Chargeback-4dVzZbFZ.js} +5 -5
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CdKtDipZ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Dxrni9eN.js} +1 -1
  5. package/dist/{OnboardForm-CcrB3E8X.js → OnboardForm-CjEjpYxz.js} +277 -267
  6. package/dist/{OnboardForm-DHgdxxqe.js → OnboardForm-Dk9ZECLJ.js} +105 -105
  7. package/dist/{OnboardSubmission-DKdaX9rF.js → OnboardSubmission-CYtyPlF1.js} +5 -5
  8. package/dist/{OnboardSubmission-CtitCQsu.js → OnboardSubmission-DdoEUtf-.js} +2 -2
  9. package/dist/{PayoutAccount-DTx2LcLp.js → PayoutAccount-BBoQdjnL.js} +5 -5
  10. package/dist/{PayoutAccount-CXeBK1AX.js → PayoutAccount-CdNFCi5z.js} +6 -6
  11. package/dist/{PayoutAccountSetting-B1X-UvJK.js → PayoutAccountSetting-67hgm--k.js} +6 -6
  12. package/dist/{Restaurant-CIBbX8G3.js → Restaurant-BJWKGoep.js} +4 -4
  13. package/dist/{RestaurantSetting-D7ICl_qP.js → RestaurantSetting-D_Q7cyky.js} +3 -3
  14. package/dist/{Settlement-BI-VTPxv.js → Settlement-D4Vyx5cd.js} +4 -4
  15. package/dist/{Settlement-CdWL_ETb.js → Settlement-IG78kruB.js} +3 -3
  16. package/dist/{SettlementTransactions-Cu-BYmgZ.js → SettlementTransactions-DKa4Jrl4.js} +4 -4
  17. package/dist/{SettlementTransactions-CuG_0cWP.js → SettlementTransactions-ewxoUcu0.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-D3s5zsYW.js → Status.vue_vue_type_script_setup_true_lang-DwOlx2Fk.js} +1 -1
  19. package/dist/{Terminal-Btv6-BKv.js → Terminal-CNGQgmjZ.js} +5 -5
  20. package/dist/{TerminalSetting-BOfwlpzm.js → TerminalSetting-CxZY9PJo.js} +4 -4
  21. package/dist/{Transaction-DPsf-VDH.js → Transaction-B2tcvJEe.js} +10 -10
  22. package/dist/{Transaction-BlX2YbA7.js → Transaction-BbWjLqro.js} +9 -9
  23. package/dist/{TransactionOld-BNF36cu2.js → TransactionOld-DG_4Vovo.js} +7 -7
  24. package/dist/{app-B5iKjZWK.js → app-gnD_lgDE.js} +23 -23
  25. package/dist/app.js +1 -1
  26. package/dist/{assets-Cc2Vi-Gl.js → assets-CmfoPIpc.js} +1 -1
  27. package/dist/{grafana-CfwAikn_.js → grafana-VxUrxdE4.js} +1 -1
  28. package/dist/{index-BrB06b4G.js → index-23n8-7UD.js} +1 -1
  29. package/dist/{index-BAlPThXB.js → index-Bhk7RTSe.js} +1 -1
  30. package/dist/{index-CfsT_RZU.js → index-CN3QMYWB.js} +1 -1
  31. package/dist/{index-Ckm19Rq6.js → index-CNmzvdir.js} +2 -2
  32. package/dist/{index-1LtOZdzT.js → index-DVfiTUAz.js} +1 -1
  33. package/dist/{index-BXA_Sb3P.js → index-DYd8CSWb.js} +1 -1
  34. package/dist/{index-C64vpG3g.js → index-MWfVxwUN.js} +1 -1
  35. package/dist/{index-DZmqReyr.js → index-SxK1831p.js} +1 -1
  36. package/dist/{index-C-7E5sGo.js → index-s3O4Ulnc.js} +1 -1
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-Dw0Sdf8S.js → index.vue_vue_type_script_setup_true_lang-0P7yv8du.js} +1 -1
  38. package/dist/package.json +1 -1
  39. package/dist/{payout-account-BfxGH_xZ.js → payout-account-DlHoX0DD.js} +3 -3
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as vn, ref as X, computed as dn, resolveComponent as x, openBlock as o, createElementBlock as y, createElementVNode as s, toDisplayString as $, renderSlot as cn, createCommentVNode as w, Fragment as nn, createBlock as B, withCtx as c, createVNode as d, unref as t, watch as ln, onMounted as xn, renderList as Bn, createSlots as Jn, createTextVNode as An, nextTick as wn, h as jn, resolveDynamicComponent as Gn } from "vue";
1
+ import { defineComponent as vn, ref as D, computed as dn, resolveComponent as x, openBlock as o, createElementBlock as y, createElementVNode as s, toDisplayString as $, renderSlot as cn, createCommentVNode as w, Fragment as nn, createBlock as B, withCtx as c, createVNode as d, unref as t, watch as ln, onMounted as xn, renderList as Bn, createSlots as Jn, createTextVNode as An, nextTick as wn, h as jn, resolveDynamicComponent as Gn } from "vue";
2
2
  import { z as H, a as j } from "./validator-CTlVogBQ.js";
3
- import { _ as zn } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CdKtDipZ.js";
3
+ import { _ as zn } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Dxrni9eN.js";
4
4
  import { P as yn, _ as Zn } from "./PDFViewer-CIPPbzWD.js";
5
5
  import { useCoreStore as On, useI18n as gn } from "@feedmepos/mf-common";
6
- import { o as en } from "./index-Ckm19Rq6.js";
7
- import { p as hn } from "./index-1LtOZdzT.js";
6
+ import { o as en } from "./index-CNmzvdir.js";
7
+ import { p as hn } from "./index-DVfiTUAz.js";
8
8
  import { useSnackbar as Xn, useFormChild as Rn, useDialog as Cn } from "@feedmepos/ui-library";
9
- import { u as sn } from "./index-C64vpG3g.js";
9
+ import { u as sn } from "./index-MWfVxwUN.js";
10
10
  import { s as Dn } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as Ln } from "./payout-account-BfxGH_xZ.js";
11
+ import { P as Ln } from "./payout-account-DlHoX0DD.js";
12
12
  import { useRouter as un } from "vue-router";
13
13
  const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold" }, Wn = ["src"], In = ["src"], I = /* @__PURE__ */ vn({
14
14
  __name: "UploadButton",
@@ -20,26 +20,26 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
20
20
  },
21
21
  emits: ["update:modelValue"],
22
22
  setup(O, { emit: F }) {
23
- const R = O, u = X(R.modelValue), J = F, Q = (i) => {
24
- const T = new FileReader();
25
- T.onload = (E) => {
23
+ const R = O, T = D(R.modelValue), J = F, Q = (i) => {
24
+ const N = new FileReader();
25
+ N.onload = (E) => {
26
26
  var n;
27
- u.value = (n = E.target) == null ? void 0 : n.result, J("update:modelValue", i);
28
- }, T.readAsDataURL(i);
27
+ T.value = (n = E.target) == null ? void 0 : n.result, J("update:modelValue", i);
28
+ }, N.readAsDataURL(i);
29
29
  }, S = (i) => {
30
30
  window.open(i, "_blank", "noopener,noreferrer");
31
31
  }, Z = dn(() => R.type === "image" ? ".png, .jpg, .jpeg" : ".pdf"), p = dn(() => {
32
32
  var i;
33
- return (i = u.value) == null ? void 0 : i.startsWith("data:");
33
+ return (i = T.value) == null ? void 0 : i.startsWith("data:");
34
34
  });
35
- return (i, T) => {
35
+ return (i, N) => {
36
36
  const E = x("FmButton"), n = x("FmDialog"), k = x("FmDropField");
37
37
  return o(), y("div", null, [
38
38
  s("div", En, [
39
39
  s("p", kn, $(O.label), 1),
40
40
  i.$slots.info ? cn(i.$slots, "info", { key: 0 }) : w("", !0)
41
41
  ]),
42
- u.value ? (o(), y(nn, { key: 0 }, [
42
+ T.value ? (o(), y(nn, { key: 0 }, [
43
43
  p.value ? (o(), y(nn, { key: 1 }, [
44
44
  O.type === "pdf" ? (o(), B(n, { key: 0 }, {
45
45
  "dialog-button": c(() => [
@@ -49,13 +49,13 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
49
49
  label: "Preview"
50
50
  })
51
51
  ]),
52
- "dialog-header": c(() => [...T[1] || (T[1] = [
52
+ "dialog-header": c(() => [...N[1] || (N[1] = [
53
53
  s("div", null, "Document Preview", -1)
54
54
  ])]),
55
55
  default: c(() => [
56
56
  d(yn, {
57
57
  height: 450,
58
- pdf: u.value,
58
+ pdf: T.value,
59
59
  "disable-text-layer": !0,
60
60
  "disable-annotation-layer": !0
61
61
  }, null, 8, ["pdf"])
@@ -64,11 +64,11 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
64
64
  })) : w("", !0),
65
65
  O.type === "image" ? (o(), y("img", {
66
66
  key: 1,
67
- src: u.value
67
+ src: T.value
68
68
  }, null, 8, In)) : w("", !0)
69
69
  ], 64)) : (o(), B(zn, {
70
70
  key: 0,
71
- document: u.value,
71
+ document: T.value,
72
72
  "restaurant-id": O.restaurantId
73
73
  }, {
74
74
  default: c(({ src: W }) => [
@@ -89,14 +89,14 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
89
89
  _: 1
90
90
  }, 8, ["document", "restaurant-id"]))
91
91
  ], 64)) : w("", !0),
92
- u.value ? (o(), B(E, {
92
+ T.value ? (o(), B(E, {
93
93
  key: 1,
94
94
  class: "mt-12 w-full",
95
95
  "prepend-icon": "delete",
96
96
  label: "Clear",
97
97
  variant: "destructive",
98
- onClick: T[0] || (T[0] = (W) => {
99
- u.value = null, J("update:modelValue", null);
98
+ onClick: N[0] || (N[0] = (W) => {
99
+ T.value = null, J("update:modelValue", null);
100
100
  })
101
101
  })) : (o(), B(k, {
102
102
  key: 2,
@@ -119,21 +119,21 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
119
119
  },
120
120
  emits: ["update:modelValue"],
121
121
  setup(O, { emit: F }) {
122
- const R = O, u = F, J = X(R.modelValue), Q = X(!1), S = X(), Z = X(!1), p = X(!1);
122
+ const R = O, T = F, J = D(R.modelValue), Q = D(!1), S = D(), Z = D(!1), p = D(!1);
123
123
  function i(E, n) {
124
124
  var a;
125
- const k = E.split(","), W = ((a = k[0].match(/:(.*?);/)) == null ? void 0 : a[1]) || "", D = atob(k[1]);
126
- let g = D.length;
125
+ const k = E.split(","), W = ((a = k[0].match(/:(.*?);/)) == null ? void 0 : a[1]) || "", u = atob(k[1]);
126
+ let g = u.length;
127
127
  const Y = new Uint8Array(g);
128
128
  for (; g--; )
129
- Y[g] = D.charCodeAt(g);
129
+ Y[g] = u.charCodeAt(g);
130
130
  return new File([Y], n, { type: W });
131
131
  }
132
- const T = function() {
132
+ const N = function() {
133
133
  const { isEmpty: E, data: n } = S.value.saveSignature();
134
134
  if (E)
135
135
  return Q.value = !0;
136
- J.value = n, Z.value = !1, p.value = !0, u("update:modelValue", i(n, "signature.png"));
136
+ J.value = n, Z.value = !1, p.value = !0, T("update:modelValue", i(n, "signature.png"));
137
137
  };
138
138
  return (E, n) => {
139
139
  const k = x("FmButton"), W = x("FmDialog");
@@ -150,9 +150,9 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
150
150
  document: J.value,
151
151
  "restaurant-id": O.restaurantId
152
152
  }, {
153
- default: c(({ src: D }) => [
153
+ default: c(({ src: u }) => [
154
154
  s("img", {
155
- src: D,
155
+ src: u,
156
156
  alt: "Signature Preview",
157
157
  class: "w-full h-auto"
158
158
  }, null, 8, Yn)
@@ -166,14 +166,14 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
166
166
  "prepend-icon": "delete",
167
167
  label: "Clear",
168
168
  variant: "destructive",
169
- onClick: n[0] || (n[0] = (D) => {
170
- J.value = null, u("update:modelValue", null);
169
+ onClick: n[0] || (n[0] = (u) => {
170
+ J.value = null, T("update:modelValue", null);
171
171
  })
172
172
  })) : w("", !0),
173
173
  J.value ? w("", !0) : (o(), B(W, {
174
174
  key: 2,
175
175
  modelValue: Z.value,
176
- "onUpdate:modelValue": n[2] || (n[2] = (D) => Z.value = D)
176
+ "onUpdate:modelValue": n[2] || (n[2] = (u) => Z.value = u)
177
177
  }, {
178
178
  "dialog-button": c(() => [
179
179
  d(k, {
@@ -199,12 +199,12 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
199
199
  variant: "destructive",
200
200
  label: "Clear",
201
201
  "prepend-icon": "delete",
202
- onClick: n[1] || (n[1] = (D) => S.value.clearSignature())
202
+ onClick: n[1] || (n[1] = (u) => S.value.clearSignature())
203
203
  }),
204
204
  d(k, {
205
205
  label: "Save",
206
206
  "prepend-icon": "save",
207
- onClick: T
207
+ onClick: N
208
208
  })
209
209
  ])
210
210
  ]),
@@ -225,8 +225,8 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
225
225
  },
226
226
  setup(O) {
227
227
  return (F, R) => {
228
- const u = x("FmDialog");
229
- return o(), B(u, null, {
228
+ const T = x("FmDialog");
229
+ return o(), B(T, null, {
230
230
  "dialog-button": c(() => [
231
231
  cn(F.$slots, "default")
232
232
  ]),
@@ -260,10 +260,10 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
260
260
  const {
261
261
  currentRestaurant: F,
262
262
  sessionUser: R,
263
- pushDataLayer: u,
263
+ pushDataLayer: T,
264
264
  restaurants: J,
265
265
  changeRestaurant: Q
266
- } = On(), S = Xn(), Z = O, p = Z.restaurantId, i = un(), { isLoading: T, startAsyncCall: E } = sn(!1), { isLoading: n, startAsyncCall: k } = sn(!1), W = X(null), D = X(null), g = R.value, Y = X(), a = X(1), C = X(!1), P = X({
266
+ } = On(), S = Xn(), Z = O, p = Z.restaurantId, i = un(), { isLoading: N, startAsyncCall: E } = sn(!1), { isLoading: n, startAsyncCall: k } = sn(!1), W = D(null), u = D(null), g = R.value, Y = D(), a = D(1), C = D(!1), P = D({
267
267
  bankName: "",
268
268
  bankAccountNo: "",
269
269
  bankHolderName: "",
@@ -280,7 +280,7 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
280
280
  sstNo: "",
281
281
  businessType: "",
282
282
  businessRegNo: ""
283
- }), z = X({
283
+ }), z = D({
284
284
  authorizedPersonID: null,
285
285
  outletPhoto: null,
286
286
  interiorPhoto: null,
@@ -293,7 +293,7 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
293
293
  certificate: null,
294
294
  signature: null,
295
295
  companyStamp: null
296
- }), A = X({
296
+ }), A = D({
297
297
  authorizedPersonID: null,
298
298
  certificate: null,
299
299
  signature: null,
@@ -306,36 +306,36 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
306
306
  onsitePhoto4: null,
307
307
  onsitePhoto5: null,
308
308
  companyStamp: null
309
- }), on = () => Z.submission ? "edit" : "new", fn = (N) => {
309
+ }), on = () => Z.submission ? "edit" : "new", fn = (h) => {
310
310
  const f = {
311
- event: N,
311
+ event: h,
312
312
  gateway: "softspace",
313
313
  onboarding_flow: "softspace",
314
314
  onboarding_mode: on(),
315
315
  onboarding_country: "MY"
316
316
  };
317
- p && (f.restaurant_id = p), Z.submission && (f.submission_id = Z.submission), P.value.businessType && (f.onboarding_business_type = P.value.businessType), u(f);
317
+ p && (f.restaurant_id = p), Z.submission && (f.submission_id = Z.submission), P.value.businessType && (f.onboarding_business_type = P.value.businessType), T(f);
318
318
  }, b = () => {
319
319
  fn("payment_onboarding_submitted");
320
- }, rn = (N) => {
320
+ }, rn = (h) => {
321
321
  const m = {
322
322
  1: "payment_onboarding_outlet_completed",
323
323
  2: "payment_onboarding_payout_completed",
324
324
  3: "payment_onboarding_legal_documents_completed"
325
- }[N];
325
+ }[h];
326
326
  m && fn(m);
327
327
  };
328
328
  ln(
329
329
  J,
330
- (N) => {
330
+ (h) => {
331
331
  var m;
332
- const f = N.find((L) => L._id === p);
332
+ const f = h.find((L) => L._id === p);
333
333
  f && ((m = F.value) == null ? void 0 : m._id) !== p && Q(f);
334
334
  },
335
335
  { immediate: !0 }
336
336
  ), xn(() => {
337
337
  E(async () => {
338
- var N, f, m;
338
+ var h, f, m;
339
339
  if (Z.submission)
340
340
  W.value = await en.getById(
341
341
  Z.submission,
@@ -345,27 +345,27 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
345
345
  const L = J.value.find((q) => q._id === p);
346
346
  L && (P.value.outletName = L.profile.legalName || L.profile.name || "", P.value.outletAddress = L.profile.address.line1 || "" + L.profile.address.line2 || "", P.value.outletState = L.profile.address.state || "", P.value.outletCity = L.profile.address.city || "", P.value.outletPostCode = L.profile.address.postcode || "", P.value.sstNo = L.profile.sstRegNo || "", P.value.businessRegNo = L.profile.regNo || "");
347
347
  }
348
- D.value = await hn.readByRestaurantId(p), P.value.bankName = ((N = D.value.store.bank) == null ? void 0 : N.name) || "", P.value.bankAccountNo = ((f = D.value.store.bank) == null ? void 0 : f.accountNumber) || "", P.value.bankHolderName = ((m = D.value.store.bank) == null ? void 0 : m.holderName) || "";
348
+ u.value = await hn.readByRestaurantId(p), P.value.bankName = ((h = u.value.store.bank) == null ? void 0 : h.name) || "", P.value.bankAccountNo = ((f = u.value.store.bank) == null ? void 0 : f.accountNumber) || "", P.value.bankHolderName = ((m = u.value.store.bank) == null ? void 0 : m.holderName) || "";
349
349
  });
350
350
  });
351
- const K = (N, f) => {
352
- if (A.value[N] = f, f) {
351
+ const K = (h, f) => {
352
+ if (A.value[h] = f, f) {
353
353
  const m = new FileReader();
354
354
  m.onload = (L) => {
355
355
  var q;
356
- z.value[N] = (q = L.target) == null ? void 0 : q.result;
356
+ z.value[h] = (q = L.target) == null ? void 0 : q.result;
357
357
  }, m.readAsDataURL(f);
358
358
  } else
359
- z.value[N] = null;
359
+ z.value[h] = null;
360
360
  }, Pn = dn(() => a.value === 4 ? C.value && z.value.signature && z.value.companyStamp : a.value === 3 ? z.value.authorizedPersonID && z.value.outletPhoto && z.value.onsitePhoto1 && z.value.bankStatement && z.value.certificate : a.value < 4), bn = () => {
361
361
  if (a.value === 4)
362
362
  return k(async () => {
363
363
  try {
364
- for (const N of Object.keys(A.value)) {
365
- const f = A.value[N];
366
- f && (z.value[N] = await en.uploadDocument(
364
+ for (const h of Object.keys(A.value)) {
365
+ const f = A.value[h];
366
+ f && (z.value[h] = await en.uploadDocument(
367
367
  p,
368
- N,
368
+ h,
369
369
  f
370
370
  ));
371
371
  }
@@ -375,24 +375,24 @@ const En = { class: "flex" }, kn = { class: "justify-self-center font-semibold"
375
375
  fields: P.value,
376
376
  documents: Object.fromEntries(
377
377
  Object.entries(z.value).filter(
378
- ([, N]) => N !== null
378
+ ([, h]) => h !== null
379
379
  )
380
380
  )
381
381
  }), b(), i.back(), S.open({
382
382
  message: "Submission updated successfully.",
383
383
  type: "success"
384
384
  });
385
- } catch {
385
+ } catch (h) {
386
386
  S.open({
387
- message: "Failed to update submission.",
387
+ message: "Failed to update submission: " + (h instanceof Error ? h.message : String(h)),
388
388
  type: "error"
389
389
  });
390
390
  }
391
391
  });
392
392
  rn(a.value), a.value++;
393
393
  };
394
- return (N, f) => {
395
- const m = x("FmPageHead"), L = x("FmCircularProgress"), q = x("FmStep"), Hn = x("FmStepper"), l = x("FmTextField"), e = x("FmPhoneNumber"), G = x("FmSelect"), h = x("FmIcon"), V = x("FmCheckbox"), _ = x("FmButton"), M = x("FmForm");
394
+ return (h, f) => {
395
+ const m = x("FmPageHead"), L = x("FmCircularProgress"), q = x("FmStep"), Hn = x("FmStepper"), l = x("FmTextField"), e = x("FmPhoneNumber"), G = x("FmSelect"), X = x("FmIcon"), V = x("FmCheckbox"), _ = x("FmButton"), M = x("FmForm");
396
396
  return o(), y(nn, null, [
397
397
  d(m, {
398
398
  title: "FASSPAY MERCHANT APPLICATION FORM",
@@ -401,13 +401,13 @@ its Appendices) (“Agreement”), is entered into by and between Fass Payment S
401
401
  Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral, 50470 Kuala Lumpur, Malaysia and the entity identified below
402
402
  (“Merchant”).`
403
403
  }),
404
- t(T) ? (o(), B(L, {
404
+ t(N) ? (o(), B(L, {
405
405
  key: 0,
406
406
  size: "xxl",
407
407
  class: "mt-16",
408
408
  color: "primary"
409
409
  })) : w("", !0),
410
- t(T) ? w("", !0) : (o(), y(nn, { key: 1 }, [
410
+ t(N) ? w("", !0) : (o(), y(nn, { key: 1 }, [
411
411
  d(Hn, {
412
412
  modelValue: a.value,
413
413
  "onUpdate:modelValue": f[0] || (f[0] = (v) => a.value = v),
@@ -647,7 +647,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
647
647
  description: "Accepted IC image can be with strike-off 'ACSM used only' or without strike-off. Ensure details are clear and readable."
648
648
  }, {
649
649
  default: c(() => [
650
- d(h, {
650
+ d(X, {
651
651
  class: "ml-4",
652
652
  name: "info"
653
653
  })
@@ -674,7 +674,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
674
674
  description: "Upload a clear outlet frontage photo with visible signboard. If not available, submit tenancy agreement instead."
675
675
  }, {
676
676
  default: c(() => [
677
- d(h, {
677
+ d(X, {
678
678
  class: "ml-4",
679
679
  name: "info"
680
680
  })
@@ -721,7 +721,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
721
721
  image: t(Un)
722
722
  }, {
723
723
  default: c(() => [
724
- d(h, {
724
+ d(X, {
725
725
  class: "ml-4",
726
726
  name: "info"
727
727
  })
@@ -748,7 +748,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
748
748
  image: t(_n)
749
749
  }, {
750
750
  default: c(() => [
751
- d(h, {
751
+ d(X, {
752
752
  class: "ml-4",
753
753
  name: "info"
754
754
  })
@@ -779,7 +779,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
779
779
  description: "Please upload clear photos of your shop's interior and exterior. Ensure the entrance, signage, and overall layout are visible."
780
780
  }, {
781
781
  default: c(() => [
782
- d(h, {
782
+ d(X, {
783
783
  class: "ml-4",
784
784
  name: "info"
785
785
  })
@@ -933,51 +933,51 @@ notice.
933
933
  },
934
934
  emits: ["update:modelValue"],
935
935
  setup(O, { emit: F }) {
936
- const { t: R } = gn(), u = O, J = F, { errorMessages: Q, validate: S } = Rn(u, null), Z = X(!1), p = X(null), i = X(!1), T = X(u.modelValue), E = dn(
937
- () => !!T.value && T.value.length > 0
936
+ const { t: R } = gn(), T = O, J = F, { errorMessages: Q, validate: S } = Rn(T, null), Z = D(!1), p = D(null), i = D(!1), N = D(T.modelValue), E = dn(
937
+ () => !!N.value && N.value.length > 0
938
938
  ), n = dn(
939
939
  () => {
940
- var D;
941
- return ((D = T.value) == null ? void 0 : D.startsWith("data:")) ?? !1;
940
+ var u;
941
+ return ((u = N.value) == null ? void 0 : u.startsWith("data:")) ?? !1;
942
942
  }
943
943
  );
944
944
  ln(
945
- () => u.modelValue,
946
- (D) => {
947
- T.value = D;
945
+ () => T.modelValue,
946
+ (u) => {
947
+ N.value = u;
948
948
  },
949
949
  { immediate: !0 }
950
950
  );
951
951
  const k = () => {
952
- const D = p.value;
953
- if (!D)
952
+ const u = p.value;
953
+ if (!u)
954
954
  return;
955
- const { isEmpty: g, data: Y } = D.saveSignature();
955
+ const { isEmpty: g, data: Y } = u.saveSignature();
956
956
  if (g) {
957
957
  Z.value = !0;
958
958
  return;
959
959
  }
960
- Z.value = !1, i.value = !1, T.value = Y, J("update:modelValue", Y), wn(() => S());
960
+ Z.value = !1, i.value = !1, N.value = Y, J("update:modelValue", Y), wn(() => S());
961
961
  }, W = () => {
962
- T.value = null, J("update:modelValue", null), wn(() => S());
962
+ N.value = null, J("update:modelValue", null), wn(() => S());
963
963
  };
964
- return (D, g) => {
964
+ return (u, g) => {
965
965
  const Y = x("FmButton"), a = x("FmIcon"), C = x("FmDialog");
966
966
  return o(), y("div", xt, [
967
967
  O.label ? (o(), y("div", yt, [
968
968
  An($(O.label) + " ", 1),
969
- u.labelMark === "required" ? (o(), y("span", Ot, " * ")) : w("", !0)
969
+ T.labelMark === "required" ? (o(), y("span", Ot, " * ")) : w("", !0)
970
970
  ])) : w("", !0),
971
971
  E.value ? (o(), y("div", gt, [
972
972
  n.value ? (o(), y("div", ht, [
973
973
  s("img", {
974
- src: T.value ?? "",
974
+ src: N.value ?? "",
975
975
  alt: "Signature Preview",
976
976
  class: "max-h-full max-w-full object-contain"
977
977
  }, null, 8, Xt)
978
978
  ])) : (o(), B(zn, {
979
979
  key: 0,
980
- document: T.value ?? "",
980
+ document: N.value ?? "",
981
981
  "restaurant-id": O.restaurantId
982
982
  }, null, 8, ["document", "restaurant-id"])),
983
983
  s("div", Dt, [
@@ -21606,7 +21606,7 @@ notice.
21606
21606
  submission: {}
21607
21607
  },
21608
21608
  setup(O) {
21609
- const { currentRestaurant: F, sessionUser: R, pushDataLayer: u, restaurants: J, changeRestaurant: Q } = On(), S = Cn(), Z = Xn(), p = O, i = p.restaurantId, T = un(), { t: E } = gn(), n = (l) => E(`payment.onboard-submission.ntt.form.${l}`), { isLoading: k, startAsyncCall: W } = sn(!1), { isLoading: D, startAsyncCall: g } = sn(!1), Y = X(null), a = X(null), C = R.value, P = X(1), z = X(!1), A = X({
21609
+ const { currentRestaurant: F, sessionUser: R, pushDataLayer: T, restaurants: J, changeRestaurant: Q } = On(), S = Cn(), Z = Xn(), p = O, i = p.restaurantId, N = un(), { t: E } = gn(), n = (l) => E(`payment.onboard-submission.ntt.form.${l}`), { isLoading: k, startAsyncCall: W } = sn(!1), { isLoading: u, startAsyncCall: g } = sn(!1), Y = D(null), a = D(null), C = R.value, P = D(1), z = D(!1), A = D({
21610
21610
  companyName: "",
21611
21611
  outletName: "",
21612
21612
  outletNameEnglish: "",
@@ -21711,9 +21711,9 @@ notice.
21711
21711
  "signature",
21712
21712
  "witnessSignature",
21713
21713
  "companyStamp"
21714
- ], b = X(
21714
+ ], b = D(
21715
21715
  Object.fromEntries(fn.map((l) => [l, ""]))
21716
- ), rn = X({}), K = () => p.submission ? "edit" : "new", Pn = (l) => {
21716
+ ), rn = D({}), K = () => p.submission ? "edit" : "new", Pn = (l) => {
21717
21717
  const e = {
21718
21718
  event: l,
21719
21719
  gateway: "ntt",
@@ -21721,10 +21721,10 @@ notice.
21721
21721
  onboarding_mode: K(),
21722
21722
  onboarding_country: "TH"
21723
21723
  };
21724
- i && (e.restaurant_id = i), p.submission && (e.submission_id = p.submission), A.value.businessType && (e.onboarding_business_type = A.value.businessType), u(e);
21724
+ i && (e.restaurant_id = i), p.submission && (e.submission_id = p.submission), A.value.businessType && (e.onboarding_business_type = A.value.businessType), T(e);
21725
21725
  }, bn = () => {
21726
21726
  Pn("payment_onboarding_submitted");
21727
- }, N = (l) => {
21727
+ }, h = (l) => {
21728
21728
  const G = {
21729
21729
  1: "payment_onboarding_outlet_completed",
21730
21730
  2: "payment_onboarding_payout_completed",
@@ -21736,7 +21736,7 @@ notice.
21736
21736
  J,
21737
21737
  (l) => {
21738
21738
  var G;
21739
- const e = l.find((h) => h._id === i);
21739
+ const e = l.find((X) => X._id === i);
21740
21740
  e && ((G = F.value) == null ? void 0 : G._id) !== i && Q(e);
21741
21741
  },
21742
21742
  { immediate: !0 }
@@ -21748,12 +21748,12 @@ notice.
21748
21748
  p.submission,
21749
21749
  i
21750
21750
  ), A.value = Y.value.fields;
21751
- const h = Y.value.documents;
21751
+ const X = Y.value.documents;
21752
21752
  for (const V of fn)
21753
- b.value[V] = h[V] ?? "";
21753
+ b.value[V] = X[V] ?? "";
21754
21754
  } else {
21755
- const h = J.value.find((V) => V._id === i);
21756
- h && (A.value.companyName = h.profile.legalName ?? "", A.value.outletNameEnglish = h.profile.name ?? "", A.value.outletAddress = h.profile.address.line1 || "" + h.profile.address.line2 || "", A.value.outletState = h.profile.address.state ?? "", A.value.outletCity = h.profile.address.city ?? "", A.value.outletPostCode = h.profile.address.postcode ?? "");
21755
+ const X = J.value.find((V) => V._id === i);
21756
+ X && (A.value.companyName = X.profile.legalName ?? "", A.value.outletNameEnglish = X.profile.name ?? "", A.value.outletAddress = X.profile.address.line1 || "" + X.profile.address.line2 || "", A.value.outletState = X.profile.address.state ?? "", A.value.outletCity = X.profile.address.city ?? "", A.value.outletPostCode = X.profile.address.postcode ?? "");
21757
21757
  }
21758
21758
  a.value = await hn.readByRestaurantId(i), A.value.bankName = A.value.bankName || ((l = a.value.store.bank) == null ? void 0 : l.name) || "", A.value.bankAccountNo = A.value.bankAccountNo || ((e = a.value.store.bank) == null ? void 0 : e.accountNumber) || "", A.value.bankHolderName = A.value.bankHolderName || ((G = a.value.store.bank) == null ? void 0 : G.holderName) || "";
21759
21759
  });
@@ -21790,11 +21790,11 @@ notice.
21790
21790
  }
21791
21791
  const G = e;
21792
21792
  rn.value[l] = G;
21793
- const h = new FileReader();
21794
- h.onload = (V) => {
21793
+ const X = new FileReader();
21794
+ X.onload = (V) => {
21795
21795
  var _;
21796
21796
  b.value[l] = (_ = V.target) == null ? void 0 : _.result;
21797
- }, h.readAsDataURL(G);
21797
+ }, X.readAsDataURL(G);
21798
21798
  } else
21799
21799
  delete rn.value[l], b.value[l] = "";
21800
21800
  }, L = dn(() => {
@@ -21835,7 +21835,7 @@ notice.
21835
21835
  documents: Object.fromEntries(
21836
21836
  Object.entries(b.value).filter(([, l]) => !!l)
21837
21837
  )
21838
- }), bn(), T.back(), Z.open({
21838
+ }), bn(), N.back(), Z.open({
21839
21839
  message: n("toast.updateSuccess"),
21840
21840
  type: "success"
21841
21841
  });
@@ -21846,22 +21846,22 @@ notice.
21846
21846
  });
21847
21847
  }
21848
21848
  });
21849
- N(P.value), P.value++;
21849
+ h(P.value), P.value++;
21850
21850
  }, Hn = (l, e) => {
21851
21851
  var v;
21852
- const [G, h] = l.split(","), V = ((v = G.match(/:(.*?);/)) == null ? void 0 : v[1]) || "image/png", _ = atob(h), M = new Uint8Array(_.length);
21852
+ const [G, X] = l.split(","), V = ((v = G.match(/:(.*?);/)) == null ? void 0 : v[1]) || "image/png", _ = atob(X), M = new Uint8Array(_.length);
21853
21853
  for (let U = 0; U < _.length; U++)
21854
21854
  M[U] = _.charCodeAt(U);
21855
21855
  return new File([M], e, { type: V });
21856
21856
  };
21857
21857
  return (l, e) => {
21858
- const G = x("FmPageHead"), h = x("FmCircularProgress"), V = x("FmStep"), _ = x("FmStepper"), M = x("FmTextField"), v = x("FmSelect"), U = x("FmIcon"), Tn = x("FmCheckbox"), Nn = x("FmPhoneNumber"), mn = x("FmButton"), Mn = x("FmForm");
21858
+ const G = x("FmPageHead"), X = x("FmCircularProgress"), V = x("FmStep"), _ = x("FmStepper"), M = x("FmTextField"), v = x("FmSelect"), U = x("FmIcon"), Tn = x("FmCheckbox"), Nn = x("FmPhoneNumber"), mn = x("FmButton"), Mn = x("FmForm");
21859
21859
  return o(), y(nn, null, [
21860
21860
  d(G, {
21861
21861
  title: n("title"),
21862
21862
  description: n("description")
21863
21863
  }, null, 8, ["title", "description"]),
21864
- t(k) ? (o(), B(h, {
21864
+ t(k) ? (o(), B(X, {
21865
21865
  key: 0,
21866
21866
  size: "xxl",
21867
21867
  class: "mt-16",
@@ -22315,7 +22315,7 @@ notice.
22315
22315
  key: 4,
22316
22316
  variant: "primary",
22317
22317
  type: "submit",
22318
- loading: t(D),
22318
+ loading: t(u),
22319
22319
  label: P.value < 4 ? n("action.next") : n("action.submit"),
22320
22320
  "append-icon": P.value < 4 ? "arrow_forward" : "send",
22321
22321
  class: "mb-10 w-full"
@@ -22344,7 +22344,7 @@ notice.
22344
22344
  }
22345
22345
  }
22346
22346
  };
22347
- function le(O, F, R, u, J, Q) {
22347
+ function le(O, F, R, T, J, Q) {
22348
22348
  return o(), B(Gn(Q.currentComponent), {
22349
22349
  "restaurant-id": R.restaurantId,
22350
22350
  submission: R.submission
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as x, ref as w, watch as f, computed as y, resolveComponent as _, openBlock as k, createBlock as F, withCtx as b, createElementVNode as K, createVNode as m, isRef as n, unref as o, h as O } from "vue";
2
- import { o as R } from "./index-Ckm19Rq6.js";
3
- import { p as d } from "./index-C64vpG3g.js";
4
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Dw0Sdf8S.js";
2
+ import { o as R } from "./index-CNmzvdir.js";
3
+ import { p as d } from "./index-MWfVxwUN.js";
4
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-0P7yv8du.js";
5
5
  import { useRouter as D } from "vue-router";
6
6
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { h as U } from "./moment-h96o7c8I.js";
8
- import { u as C } from "./index-DZmqReyr.js";
8
+ import { u as C } from "./index-SxK1831p.js";
9
9
  import { _ as E } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
10
- import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-D3s5zsYW.js";
10
+ import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-DwOlx2Fk.js";
11
11
  const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
12
12
  __name: "OnboardSubmission",
13
13
  setup($) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as fA, ref as X, computed as W, onMounted as pA, watch as gA, onBeforeUnmount as vA, resolveComponent as C, openBlock as d, createBlock as Z, unref as o, withCtx as U, createElementVNode as t, createVNode as x, createElementBlock as b, Fragment as K, renderList as q, normalizeClass as PA, toDisplayString as a, createTextVNode as B, createCommentVNode as T } from "vue";
2
2
  import { _ as BA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
3
- import { u as DA, e as F, p as f } from "./index-C64vpG3g.js";
3
+ import { u as DA, e as F, p as f } from "./index-MWfVxwUN.js";
4
4
  import { u as G } from "./error-K1CakhA9.js";
5
5
  import { useI18n as wA, useCoreStore as xA } from "@feedmepos/mf-common";
6
6
  import { useSnackbar as HA } from "@feedmepos/ui-library";
7
7
  import { _ as LA } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-D08ykrWf.js";
8
- import { o as E } from "./index-Ckm19Rq6.js";
8
+ import { o as E } from "./index-CNmzvdir.js";
9
9
  import { useRouter as CA } from "vue-router";
10
10
  import { c as TA } from "./index-MdV54cWO.js";
11
11
  import { s as QA, t as OA } from "./tyro-BovmsorS.js";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as y, resolveComponent as p, openBlock as f, createElementBlock as N, createVNode as m, normalizeClass as v, withCtx as b, createElementVNode as P, toDisplayString as k, createCommentVNode as I, createBlock as V, computed as F, ref as O, watch as R, isRef as _, unref as l, h as x } from "vue";
2
2
  import { h as K } from "./moment-h96o7c8I.js";
3
- import { u as T } from "./index-DZmqReyr.js";
4
- import { p as $ } from "./index-C64vpG3g.js";
3
+ import { u as T } from "./index-SxK1831p.js";
4
+ import { p as $ } from "./index-MWfVxwUN.js";
5
5
  import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
- import { P as E } from "./payout-account-BfxGH_xZ.js";
7
- import { p as A } from "./index-1LtOZdzT.js";
6
+ import { P as E } from "./payout-account-DlHoX0DD.js";
7
+ import { p as A } from "./index-DVfiTUAz.js";
8
8
  import "@feedmepos/ui-library";
9
- import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-Dw0Sdf8S.js";
9
+ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-0P7yv8du.js";
10
10
  import { useRouter as Y } from "vue-router";
11
11
  import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
12
12
  const W = { class: "flex flex-col gap-1" }, j = {