@feedmepos/mf-payment 1.6.13 → 1.6.15

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 (40) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DgYlOO7v.js → Actions.vue_vue_type_script_setup_true_lang-BwqEwIbk.js} +1 -1
  2. package/dist/{Chargeback-BCR8NXxY.js → Chargeback-HqJVAn0Z.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BZihV-9L.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Bf9_Jnat.js} +1 -1
  4. package/dist/{OnboardForm-B2uDNwfW.js → OnboardForm-CplpMKeA.js} +110 -108
  5. package/dist/{OnboardForm-DB5IV7lk.js → OnboardForm-mLEDPuH_.js} +5 -5
  6. package/dist/{OnboardSubmission-BJRFZWxp.js → OnboardSubmission-BEBlGtAP.js} +5 -5
  7. package/dist/{OnboardSubmission-CdYi65sp.js → OnboardSubmission-COuAiucv.js} +2 -2
  8. package/dist/{PayoutAccount-CDNEMcFZ.js → PayoutAccount-B1EkSuku.js} +6 -6
  9. package/dist/{PayoutAccount-Dr5jWhjs.js → PayoutAccount-Chxxg-yG.js} +5 -5
  10. package/dist/{PayoutAccountSetting-CM02lRrX.js → PayoutAccountSetting-DOWnpYYb.js} +6 -6
  11. package/dist/{Restaurant-B1CG7och.js → Restaurant-CFkHYJUe.js} +4 -4
  12. package/dist/{RestaurantSetting-JaIEcKG8.js → RestaurantSetting-GYG9AJ5s.js} +3 -3
  13. package/dist/{Settlement-D42o7f6K.js → Settlement-DCogntHR.js} +3 -3
  14. package/dist/{Settlement-XJJU4C1d.js → Settlement-DDjgLz0A.js} +4 -4
  15. package/dist/{SettlementTransactions-BQvrbT7_.js → SettlementTransactions-B7C2mZsC.js} +4 -4
  16. package/dist/{SettlementTransactions-CDJ4Spo_.js → SettlementTransactions-B98bI2_X.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-Dh-4px4J.js → Status.vue_vue_type_script_setup_true_lang-0vIOUglu.js} +1 -1
  18. package/dist/{Terminal-BX5s0KPo.js → Terminal-DSGjvrUL.js} +5 -5
  19. package/dist/{TerminalSetting-BHvZry6M.js → TerminalSetting-q3A0tPHp.js} +4 -4
  20. package/dist/{Transaction-DkXPDI68.js → Transaction-CZNE4OKE.js} +10 -10
  21. package/dist/{Transaction-CrOuTo4I.js → Transaction-pZtFCtRx.js} +6 -6
  22. package/dist/{TransactionOld-FY8kYZ6i.js → TransactionOld-C8kD4LbM.js} +7 -7
  23. package/dist/{app-EJ-8quMw.js → app-C5aG6rV-.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-CR0IBpF3.js → assets-CSb3x9lO.js} +1 -1
  26. package/dist/{grafana-CA92XuSE.js → grafana-BVNqDZyb.js} +1 -1
  27. package/dist/{index-DahuwxQa.js → index-BhesrTdM.js} +1 -1
  28. package/dist/{index-DvREC7Gf.js → index-CHcatkWf.js} +1 -1
  29. package/dist/{index-B1Ecvw7D.js → index-CjdLKvtB.js} +2 -2
  30. package/dist/{index-B8XKPxIS.js → index-DS27FPRD.js} +1 -1
  31. package/dist/{index-DS6vKp4i.js → index-DvqbuGtv.js} +1 -1
  32. package/dist/{index-CwMoBIwF.js → index-HZ-7BxMz.js} +1 -1
  33. package/dist/{index-D2VitZIq.js → index-RAMtgDm8.js} +1 -1
  34. package/dist/{index-DSnaLrvO.js → index-fbz0x-6n.js} +1 -1
  35. package/dist/{index-BHUevAM-.js → index-keVp-1HO.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-BMnikW5d.js → index.vue_vue_type_script_setup_true_lang-NOcD5NO9.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-kbcALiXc.js → payout-account-DT9at0J0.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import { defineComponent as Pn, ref as u, computed as rn, resolveComponent as x, openBlock as i, createElementBlock as y, createElementVNode as o, toDisplayString as _, renderSlot as Rn, createCommentVNode as a, Fragment as $, createBlock as M, withCtx as c, createVNode as f, unref as t, onMounted as Cn, renderList as Qn, createSlots as Fn, createTextVNode as On, watch as Ln, nextTick as Jn, h as Dn, resolveDynamicComponent as Kn } from "vue";
1
+ import { defineComponent as Pn, ref as u, computed as rn, resolveComponent as x, openBlock as i, createElementBlock as y, createElementVNode as o, toDisplayString as _, renderSlot as Rn, createCommentVNode as a, Fragment as $, createBlock as B, withCtx as c, createVNode as f, unref as t, onMounted as Cn, renderList as Qn, createSlots as Fn, createTextVNode as On, watch as Ln, nextTick as Jn, h as Dn, resolveDynamicComponent as Kn } from "vue";
2
2
  import { z as w, a as p } from "./validator-CTlVogBQ.js";
3
- import { _ as un } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BZihV-9L.js";
3
+ import { _ as un } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Bf9_Jnat.js";
4
4
  import { P as En, _ as qn } from "./PDFViewer-CIPPbzWD.js";
5
5
  import { useCoreStore as kn, useI18n as Wn } from "@feedmepos/mf-common";
6
- import { o as en } from "./index-B1Ecvw7D.js";
7
- import { p as In } from "./index-DahuwxQa.js";
6
+ import { o as en } from "./index-CjdLKvtB.js";
7
+ import { p as In } from "./index-BhesrTdM.js";
8
8
  import { useSnackbar as Yn, useFormChild as Un, useDialog as _n } from "@feedmepos/ui-library";
9
- import { u as gn } from "./index-DSnaLrvO.js";
9
+ import { u as gn } from "./index-fbz0x-6n.js";
10
10
  import { s as Vn } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as $n } from "./payout-account-kbcALiXc.js";
11
+ import { P as $n } from "./payout-account-DT9at0J0.js";
12
12
  import { useRouter as Sn } from "vue-router";
13
13
  const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold" }, et = ["src"], ft = ["src"], k = /* @__PURE__ */ Pn({
14
14
  __name: "UploadButton",
@@ -20,28 +20,28 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
20
20
  },
21
21
  emits: ["update:modelValue"],
22
22
  setup(X, { emit: b }) {
23
- const C = X, T = u(C.modelValue), J = b, Z = (n) => {
24
- const N = new FileReader();
25
- N.onload = (R) => {
23
+ const C = X, N = u(C.modelValue), J = b, Z = (n) => {
24
+ const m = new FileReader();
25
+ m.onload = (R) => {
26
26
  var O;
27
- T.value = (O = R.target) == null ? void 0 : O.result, J("update:modelValue", n);
28
- }, N.readAsDataURL(n);
27
+ N.value = (O = R.target) == null ? void 0 : O.result, J("update:modelValue", n);
28
+ }, m.readAsDataURL(n);
29
29
  }, L = (n) => {
30
30
  window.open(n, "_blank", "noopener,noreferrer");
31
31
  }, W = rn(() => C.type === "image" ? ".png, .jpg, .jpeg" : ".pdf"), V = rn(() => {
32
32
  var n;
33
- return (n = T.value) == null ? void 0 : n.startsWith("data:");
33
+ return (n = N.value) == null ? void 0 : n.startsWith("data:");
34
34
  });
35
- return (n, N) => {
35
+ return (n, m) => {
36
36
  const R = x("FmButton"), O = x("FmDialog"), H = x("FmDropField");
37
37
  return i(), y("div", null, [
38
38
  o("div", nt, [
39
39
  o("p", tt, _(X.label), 1),
40
40
  n.$slots.info ? Rn(n.$slots, "info", { key: 0 }) : a("", !0)
41
41
  ]),
42
- T.value ? (i(), y($, { key: 0 }, [
42
+ N.value ? (i(), y($, { key: 0 }, [
43
43
  V.value ? (i(), y($, { key: 1 }, [
44
- X.type === "pdf" ? (i(), M(O, { key: 0 }, {
44
+ X.type === "pdf" ? (i(), B(O, { key: 0 }, {
45
45
  "dialog-button": c(() => [
46
46
  f(R, {
47
47
  class: "mt-4",
@@ -49,13 +49,13 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
49
49
  label: "Preview"
50
50
  })
51
51
  ]),
52
- "dialog-header": c(() => [...N[1] || (N[1] = [
52
+ "dialog-header": c(() => [...m[1] || (m[1] = [
53
53
  o("div", null, "Document Preview", -1)
54
54
  ])]),
55
55
  default: c(() => [
56
56
  f(En, {
57
57
  height: 450,
58
- pdf: T.value,
58
+ pdf: N.value,
59
59
  "disable-text-layer": !0,
60
60
  "disable-annotation-layer": !0
61
61
  }, null, 8, ["pdf"])
@@ -64,11 +64,11 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
64
64
  })) : a("", !0),
65
65
  X.type === "image" ? (i(), y("img", {
66
66
  key: 1,
67
- src: T.value
67
+ src: N.value
68
68
  }, null, 8, ft)) : a("", !0)
69
- ], 64)) : (i(), M(un, {
69
+ ], 64)) : (i(), B(un, {
70
70
  key: 0,
71
- document: T.value,
71
+ document: N.value,
72
72
  "restaurant-id": X.restaurantId
73
73
  }, {
74
74
  default: c(({ src: g }) => [
@@ -76,7 +76,7 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
76
76
  key: 0,
77
77
  src: g
78
78
  }, null, 8, et)) : a("", !0),
79
- X.type === "pdf" ? (i(), M(R, {
79
+ X.type === "pdf" ? (i(), B(R, {
80
80
  key: 1,
81
81
  class: "mt-4 w-full",
82
82
  "prepend-icon": "manage_accounts",
@@ -89,16 +89,16 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
89
89
  _: 1
90
90
  }, 8, ["document", "restaurant-id"]))
91
91
  ], 64)) : a("", !0),
92
- T.value ? (i(), M(R, {
92
+ N.value ? (i(), B(R, {
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: N[0] || (N[0] = (g) => {
99
- T.value = null, J("update:modelValue", null);
98
+ onClick: m[0] || (m[0] = (g) => {
99
+ N.value = null, J("update:modelValue", null);
100
100
  })
101
- })) : (i(), M(H, {
101
+ })) : (i(), B(H, {
102
102
  key: 2,
103
103
  "max-file-size": 2097152,
104
104
  accept: W.value,
@@ -119,7 +119,7 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
119
119
  },
120
120
  emits: ["update:modelValue"],
121
121
  setup(X, { emit: b }) {
122
- const C = X, T = b, J = u(C.modelValue), Z = u(!1), L = u(), W = u(!1), V = u(!1);
122
+ const C = X, N = b, J = u(C.modelValue), Z = u(!1), L = u(), W = u(!1), V = u(!1);
123
123
  function n(R, O) {
124
124
  var P;
125
125
  const H = R.split(","), g = ((P = H[0].match(/:(.*?);/)) == null ? void 0 : P[1]) || "", h = atob(H[1]);
@@ -129,11 +129,11 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
129
129
  D[s] = h.charCodeAt(s);
130
130
  return new File([D], O, { type: g });
131
131
  }
132
- const N = function() {
132
+ const m = function() {
133
133
  const { isEmpty: R, data: O } = L.value.saveSignature();
134
134
  if (R)
135
135
  return Z.value = !0;
136
- J.value = O, W.value = !1, V.value = !0, T("update:modelValue", n(O, "signature.png"));
136
+ J.value = O, W.value = !1, V.value = !0, N("update:modelValue", n(O, "signature.png"));
137
137
  };
138
138
  return (R, O) => {
139
139
  const H = x("FmButton"), g = x("FmDialog");
@@ -145,7 +145,7 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
145
145
  src: J.value,
146
146
  alt: "Signature Preview",
147
147
  class: "w-full h-auto"
148
- }, null, 8, vt)) : (i(), M(un, {
148
+ }, null, 8, vt)) : (i(), B(un, {
149
149
  key: 0,
150
150
  document: J.value,
151
151
  "restaurant-id": X.restaurantId
@@ -160,17 +160,17 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
160
160
  _: 1
161
161
  }, 8, ["document", "restaurant-id"]))
162
162
  ], 64)) : a("", !0),
163
- J.value ? (i(), M(H, {
163
+ J.value ? (i(), B(H, {
164
164
  key: 1,
165
165
  class: "mt-4 w-full",
166
166
  "prepend-icon": "delete",
167
167
  label: "Clear",
168
168
  variant: "destructive",
169
169
  onClick: O[0] || (O[0] = (h) => {
170
- J.value = null, T("update:modelValue", null);
170
+ J.value = null, N("update:modelValue", null);
171
171
  })
172
172
  })) : a("", !0),
173
- J.value ? a("", !0) : (i(), M(g, {
173
+ J.value ? a("", !0) : (i(), B(g, {
174
174
  key: 2,
175
175
  modelValue: W.value,
176
176
  "onUpdate:modelValue": O[2] || (O[2] = (h) => W.value = h)
@@ -204,7 +204,7 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
204
204
  f(H, {
205
205
  label: "Save",
206
206
  "prepend-icon": "save",
207
- onClick: N
207
+ onClick: m
208
208
  })
209
209
  ])
210
210
  ]),
@@ -225,8 +225,8 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
225
225
  },
226
226
  setup(X) {
227
227
  return (b, C) => {
228
- const T = x("FmDialog");
229
- return i(), M(T, null, {
228
+ const N = x("FmDialog");
229
+ return i(), B(N, null, {
230
230
  "dialog-button": c(() => [
231
231
  Rn(b.$slots, "default")
232
232
  ]),
@@ -257,7 +257,7 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
257
257
  },
258
258
  setup(X) {
259
259
  var bn, Hn, Q, jn, zn, wn;
260
- const { currentRestaurant: b, sessionUser: C, pushDataLayer: T } = kn(), J = Yn(), Z = X, L = Sn(), { isLoading: W, startAsyncCall: V } = gn(!1), { isLoading: n, startAsyncCall: N } = gn(!1), R = u(null), O = u(null), H = b.value, g = C.value, h = u(), s = u(1), D = u(!1), P = u({
260
+ const { currentRestaurant: b, sessionUser: C, pushDataLayer: N } = kn(), J = Yn(), Z = X, L = Sn(), { isLoading: W, startAsyncCall: V } = gn(!1), { isLoading: n, startAsyncCall: m } = gn(!1), R = u(null), O = u(null), H = b.value, g = C.value, h = u(), s = u(1), D = u(!1), P = u({
261
261
  bankName: ((Hn = (bn = O.value) == null ? void 0 : bn.store.bank) == null ? void 0 : Hn.name) || "",
262
262
  bankAccountNo: ((jn = (Q = O.value) == null ? void 0 : Q.store.bank) == null ? void 0 : jn.accountNumber) || "",
263
263
  bankHolderName: ((wn = (zn = O.value) == null ? void 0 : zn.store.bank) == null ? void 0 : wn.holderName) || "",
@@ -300,29 +300,29 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
300
300
  onsitePhoto4: null,
301
301
  onsitePhoto5: null,
302
302
  companyStamp: null
303
- }), hn = () => Z.submission ? "edit" : "new", fn = (B) => {
303
+ }), hn = () => Z.submission ? "edit" : "new", fn = (T) => {
304
304
  var E;
305
305
  const d = {
306
- event: B,
306
+ event: T,
307
307
  gateway: "softspace",
308
308
  onboarding_flow: "softspace",
309
309
  onboarding_mode: hn(),
310
310
  onboarding_country: "MY"
311
311
  };
312
- (E = b.value) != null && E._id && (d.restaurant_id = b.value._id), Z.submission && (d.submission_id = Z.submission), P.value.businessType && (d.onboarding_business_type = P.value.businessType), T(d);
312
+ (E = b.value) != null && E._id && (d.restaurant_id = b.value._id), Z.submission && (d.submission_id = Z.submission), P.value.businessType && (d.onboarding_business_type = P.value.businessType), N(d);
313
313
  }, j = () => {
314
314
  fn("payment_onboarding_submitted");
315
- }, An = (B) => {
315
+ }, An = (T) => {
316
316
  const E = {
317
317
  1: "payment_onboarding_outlet_completed",
318
318
  2: "payment_onboarding_payout_completed",
319
319
  3: "payment_onboarding_legal_documents_completed"
320
- }[B];
320
+ }[T];
321
321
  E && fn(E);
322
322
  };
323
323
  Cn(() => {
324
324
  V(async () => {
325
- var B, d, E;
325
+ var T, d, E;
326
326
  if (!b.value) {
327
327
  J.open({
328
328
  message: "Please select a restaurant before proceeding.",
@@ -335,27 +335,27 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
335
335
  b.value._id
336
336
  ), P.value = R.value.fields, z.value = R.value.documents), O.value = await In.readByRestaurantId(
337
337
  b.value._id
338
- ), P.value.bankName = ((B = O.value.store.bank) == null ? void 0 : B.name) || "", P.value.bankAccountNo = ((d = O.value.store.bank) == null ? void 0 : d.accountNumber) || "", P.value.bankHolderName = ((E = O.value.store.bank) == null ? void 0 : E.holderName) || "";
338
+ ), P.value.bankName = ((T = O.value.store.bank) == null ? void 0 : T.name) || "", P.value.bankAccountNo = ((d = O.value.store.bank) == null ? void 0 : d.accountNumber) || "", P.value.bankHolderName = ((E = O.value.store.bank) == null ? void 0 : E.holderName) || "";
339
339
  });
340
340
  });
341
- const S = (B, d) => {
342
- if (A.value[B] = d, d) {
341
+ const S = (T, d) => {
342
+ if (A.value[T] = d, d) {
343
343
  const E = new FileReader();
344
344
  E.onload = (dn) => {
345
345
  var F;
346
- z.value[B] = (F = dn.target) == null ? void 0 : F.result;
346
+ z.value[T] = (F = dn.target) == null ? void 0 : F.result;
347
347
  }, E.readAsDataURL(d);
348
348
  } else
349
- z.value[B] = null;
349
+ z.value[T] = null;
350
350
  }, on = rn(() => s.value === 4 ? D.value && z.value.signature && z.value.companyStamp : s.value === 3 ? z.value.authorizedPersonID && z.value.outletPhoto && z.value.onsitePhoto1 && z.value.bankStatement && z.value.certificate : s.value < 4), Xn = () => {
351
351
  if (s.value === 4)
352
- return N(async () => {
352
+ return m(async () => {
353
353
  try {
354
- for (const B of Object.keys(A.value)) {
355
- const d = A.value[B];
356
- d && (z.value[B] = await en.uploadDocument(
354
+ for (const T of Object.keys(A.value)) {
355
+ const d = A.value[T];
356
+ d && (z.value[T] = await en.uploadDocument(
357
357
  b.value._id,
358
- B,
358
+ T,
359
359
  d
360
360
  ));
361
361
  }
@@ -364,23 +364,25 @@ const nt = { class: "flex" }, tt = { class: "justify-self-center font-semibold"
364
364
  restaurantId: b.value._id,
365
365
  fields: P.value,
366
366
  documents: Object.fromEntries(
367
- Object.entries(z.value).filter(([, B]) => B !== null)
367
+ Object.entries(z.value).filter(
368
+ ([, T]) => T !== null
369
+ )
368
370
  )
369
371
  }), j(), L.back(), J.open({
370
372
  message: "Submission updated successfully.",
371
373
  type: "success"
372
374
  });
373
- } catch {
375
+ } catch (T) {
374
376
  J.open({
375
- message: "Failed to update submission.",
377
+ message: "Failed to update submission: " + (T instanceof Error ? T.message : String(T)),
376
378
  type: "error"
377
379
  });
378
380
  }
379
381
  });
380
382
  An(s.value), s.value++;
381
383
  };
382
- return (B, d) => {
383
- const E = x("FmPageHead"), dn = x("FmCircularProgress"), F = x("FmStep"), pn = x("FmStepper"), l = x("FmTextField"), e = x("FmPhoneNumber"), G = x("FmSelect"), I = x("FmIcon"), Y = x("FmCheckbox"), K = x("FmButton"), m = x("FmForm");
384
+ return (T, d) => {
385
+ const E = x("FmPageHead"), dn = x("FmCircularProgress"), F = x("FmStep"), pn = x("FmStepper"), l = x("FmTextField"), e = x("FmPhoneNumber"), G = x("FmSelect"), I = x("FmIcon"), Y = x("FmCheckbox"), K = x("FmButton"), M = x("FmForm");
384
386
  return i(), y($, null, [
385
387
  f(E, {
386
388
  title: "FASSPAY MERCHANT APPLICATION FORM",
@@ -389,7 +391,7 @@ its Appendices) (“Agreement”), is entered into by and between Fass Payment S
389
391
  Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral, 50470 Kuala Lumpur, Malaysia and the entity identified below
390
392
  (“Merchant”).`
391
393
  }),
392
- t(W) ? (i(), M(dn, {
394
+ t(W) ? (i(), B(dn, {
393
395
  key: 0,
394
396
  size: "xxl",
395
397
  class: "mt-16",
@@ -434,7 +436,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
434
436
  ]),
435
437
  _: 1
436
438
  }, 8, ["modelValue"]),
437
- f(m, {
439
+ f(M, {
438
440
  ref_key: "form",
439
441
  ref: h,
440
442
  "blame-form-child-on-validation-failed": !0,
@@ -684,7 +686,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
684
686
  type: "pdf",
685
687
  "restaurant-id": (cn = t(b)) == null ? void 0 : cn._id
686
688
  }, null, 8, ["modelValue", "restaurant-id"]),
687
- P.value.businessType === "private_limited" || P.value.businessType === "public_limited" ? (i(), M(k, {
689
+ P.value.businessType === "private_limited" || P.value.businessType === "public_limited" ? (i(), B(k, {
688
690
  key: 0,
689
691
  label: "Superform",
690
692
  type: "pdf",
@@ -711,7 +713,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
711
713
  ]),
712
714
  _: 1
713
715
  }, 8, ["modelValue", "restaurant-id"])) : a("", !0),
714
- P.value.businessType === "sole_proprietorship" || P.value.businessType === "partnership" ? (i(), M(k, {
716
+ P.value.businessType === "sole_proprietorship" || P.value.businessType === "partnership" ? (i(), B(k, {
715
717
  key: 1,
716
718
  label: "SSM Certificate & Info",
717
719
  type: "pdf",
@@ -741,7 +743,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
741
743
  (i(), y($, null, Qn(5, (r) => {
742
744
  var sn;
743
745
  return i(), y($, { key: r }, [
744
- r === 1 || z.value[`onsitePhoto${r - 1}`] ? (i(), M(k, {
746
+ r === 1 || z.value[`onsitePhoto${r - 1}`] ? (i(), B(k, {
745
747
  key: 0,
746
748
  label: r === 1 ? "Onsite Photo 1" : `Onsite Photo ${r} (Optional)`,
747
749
  modelValue: z.value[`onsitePhoto${r}`],
@@ -871,7 +873,7 @@ notice.
871
873
  ])
872
874
  ])
873
875
  ])) : a("", !0),
874
- on.value ? (i(), M(K, {
876
+ on.value ? (i(), B(K, {
875
877
  key: 4,
876
878
  variant: "primary",
877
879
  type: "submit",
@@ -917,18 +919,18 @@ notice.
917
919
  },
918
920
  emits: ["update:modelValue"],
919
921
  setup(X, { emit: b }) {
920
- const { t: C } = Wn(), T = X, J = b, { errorMessages: Z, validate: L } = Un(T, null), W = u(!1), V = u(null), n = u(!1), N = u(T.modelValue), R = rn(
921
- () => !!N.value && N.value.length > 0
922
+ const { t: C } = Wn(), N = X, J = b, { errorMessages: Z, validate: L } = Un(N, null), W = u(!1), V = u(null), n = u(!1), m = u(N.modelValue), R = rn(
923
+ () => !!m.value && m.value.length > 0
922
924
  ), O = rn(
923
925
  () => {
924
926
  var h;
925
- return ((h = N.value) == null ? void 0 : h.startsWith("data:")) ?? !1;
927
+ return ((h = m.value) == null ? void 0 : h.startsWith("data:")) ?? !1;
926
928
  }
927
929
  );
928
930
  Ln(
929
- () => T.modelValue,
931
+ () => N.modelValue,
930
932
  (h) => {
931
- N.value = h;
933
+ m.value = h;
932
934
  },
933
935
  { immediate: !0 }
934
936
  );
@@ -941,27 +943,27 @@ notice.
941
943
  W.value = !0;
942
944
  return;
943
945
  }
944
- W.value = !1, n.value = !1, N.value = D, J("update:modelValue", D), Jn(() => L());
946
+ W.value = !1, n.value = !1, m.value = D, J("update:modelValue", D), Jn(() => L());
945
947
  }, g = () => {
946
- N.value = null, J("update:modelValue", null), Jn(() => L());
948
+ m.value = null, J("update:modelValue", null), Jn(() => L());
947
949
  };
948
950
  return (h, s) => {
949
951
  const D = x("FmButton"), P = x("FmIcon"), z = x("FmDialog");
950
952
  return i(), y("div", Jt, [
951
953
  X.label ? (i(), y("div", Gt, [
952
954
  On(_(X.label) + " ", 1),
953
- T.labelMark === "required" ? (i(), y("span", Zt, " * ")) : a("", !0)
955
+ N.labelMark === "required" ? (i(), y("span", Zt, " * ")) : a("", !0)
954
956
  ])) : a("", !0),
955
957
  R.value ? (i(), y("div", Rt, [
956
958
  O.value ? (i(), y("div", Ct, [
957
959
  o("img", {
958
- src: N.value ?? "",
960
+ src: m.value ?? "",
959
961
  alt: "Signature Preview",
960
962
  class: "max-h-full max-w-full object-contain"
961
963
  }, null, 8, Lt)
962
- ])) : (i(), M(un, {
964
+ ])) : (i(), B(un, {
963
965
  key: 0,
964
- document: N.value ?? "",
966
+ document: m.value ?? "",
965
967
  "restaurant-id": X.restaurantId
966
968
  }, null, 8, ["document", "restaurant-id"])),
967
969
  o("div", Et, [
@@ -971,7 +973,7 @@ notice.
971
973
  onClick: g
972
974
  })
973
975
  ])
974
- ])) : (i(), M(z, {
976
+ ])) : (i(), B(z, {
975
977
  key: 2,
976
978
  modelValue: n.value,
977
979
  "onUpdate:modelValue": s[1] || (s[1] = (A) => n.value = A)
@@ -21589,8 +21591,8 @@ notice.
21589
21591
  submission: {}
21590
21592
  },
21591
21593
  setup(X) {
21592
- var B, d, E, dn, F, pn;
21593
- const { currentRestaurant: b, sessionUser: C, pushDataLayer: T } = kn(), J = _n(), Z = Yn(), L = X, W = Sn(), { t: V } = Wn(), n = (l) => V(`payment.onboard-submission.ntt.form.${l}`), { isLoading: N, startAsyncCall: R } = gn(!1), { isLoading: O, startAsyncCall: H } = gn(!1), g = u(null), h = u(null), s = b.value, D = C.value, P = u(1), z = u(!1), A = u({
21594
+ var T, d, E, dn, F, pn;
21595
+ const { currentRestaurant: b, sessionUser: C, pushDataLayer: N } = kn(), J = _n(), Z = Yn(), L = X, W = Sn(), { t: V } = Wn(), n = (l) => V(`payment.onboard-submission.ntt.form.${l}`), { isLoading: m, startAsyncCall: R } = gn(!1), { isLoading: O, startAsyncCall: H } = gn(!1), g = u(null), h = u(null), s = b.value, D = C.value, P = u(1), z = u(!1), A = u({
21594
21596
  companyName: (s == null ? void 0 : s.profile.legalName) ?? "",
21595
21597
  outletName: "",
21596
21598
  outletNameEnglish: (s == null ? void 0 : s.profile.name) ?? "",
@@ -21600,7 +21602,7 @@ notice.
21600
21602
  outletPostCode: (s == null ? void 0 : s.profile.address.postcode) ?? "",
21601
21603
  businessType: "",
21602
21604
  numberOfDevices: "1",
21603
- bankName: ((d = (B = h.value) == null ? void 0 : B.store.bank) == null ? void 0 : d.name) ?? "",
21605
+ bankName: ((d = (T = h.value) == null ? void 0 : T.store.bank) == null ? void 0 : d.name) ?? "",
21604
21606
  bankAccountNo: ((dn = (E = h.value) == null ? void 0 : E.store.bank) == null ? void 0 : dn.accountNumber) ?? "",
21605
21607
  bankHolderName: ((pn = (F = h.value) == null ? void 0 : F.store.bank) == null ? void 0 : pn.holderName) ?? "",
21606
21608
  bankBranch: "",
@@ -21706,7 +21708,7 @@ notice.
21706
21708
  onboarding_mode: S(),
21707
21709
  onboarding_country: "TH"
21708
21710
  };
21709
- (G = b.value) != null && G._id && (e.restaurant_id = b.value._id), L.submission && (e.submission_id = L.submission), A.value.businessType && (e.onboarding_business_type = A.value.businessType), T(e);
21711
+ (G = b.value) != null && G._id && (e.restaurant_id = b.value._id), L.submission && (e.submission_id = L.submission), A.value.businessType && (e.onboarding_business_type = A.value.businessType), N(e);
21710
21712
  }, Xn = () => {
21711
21713
  on("payment_onboarding_submitted");
21712
21714
  }, bn = (l) => {
@@ -21832,25 +21834,25 @@ notice.
21832
21834
  bn(P.value), P.value++;
21833
21835
  }, wn = (l, e) => {
21834
21836
  var q;
21835
- const [G, I] = l.split(","), Y = ((q = G.match(/:(.*?);/)) == null ? void 0 : q[1]) || "image/png", K = atob(I), m = new Uint8Array(K.length);
21837
+ const [G, I] = l.split(","), Y = ((q = G.match(/:(.*?);/)) == null ? void 0 : q[1]) || "image/png", K = atob(I), M = new Uint8Array(K.length);
21836
21838
  for (let U = 0; U < K.length; U++)
21837
- m[U] = K.charCodeAt(U);
21838
- return new File([m], e, { type: Y });
21839
+ M[U] = K.charCodeAt(U);
21840
+ return new File([M], e, { type: Y });
21839
21841
  };
21840
21842
  return (l, e) => {
21841
- const G = x("FmPageHead"), I = x("FmCircularProgress"), Y = x("FmStep"), K = x("FmStepper"), m = x("FmTextField"), q = x("FmSelect"), U = x("FmIcon"), an = x("FmCheckbox"), cn = x("FmPhoneNumber"), xn = x("FmButton"), yn = x("FmForm");
21843
+ const G = x("FmPageHead"), I = x("FmCircularProgress"), Y = x("FmStep"), K = x("FmStepper"), M = x("FmTextField"), q = x("FmSelect"), U = x("FmIcon"), an = x("FmCheckbox"), cn = x("FmPhoneNumber"), xn = x("FmButton"), yn = x("FmForm");
21842
21844
  return i(), y($, null, [
21843
21845
  f(G, {
21844
21846
  title: n("title"),
21845
21847
  description: n("description")
21846
21848
  }, null, 8, ["title", "description"]),
21847
- t(N) ? (i(), M(I, {
21849
+ t(m) ? (i(), B(I, {
21848
21850
  key: 0,
21849
21851
  size: "xxl",
21850
21852
  class: "mt-16",
21851
21853
  color: "primary"
21852
21854
  })) : a("", !0),
21853
- t(N) ? a("", !0) : (i(), y($, { key: 1 }, [
21855
+ t(m) ? a("", !0) : (i(), y($, { key: 1 }, [
21854
21856
  f(K, {
21855
21857
  modelValue: P.value,
21856
21858
  "onUpdate:modelValue": e[0] || (e[0] = (nn) => P.value = nn),
@@ -21900,7 +21902,7 @@ notice.
21900
21902
  return [
21901
21903
  P.value === 1 ? (i(), y("div", Kt, [
21902
21904
  o("div", qt, [
21903
- f(m, {
21905
+ f(M, {
21904
21906
  modelValue: A.value.companyName,
21905
21907
  "onUpdate:modelValue": e[1] || (e[1] = (v) => A.value.companyName = v),
21906
21908
  label: n("field.companyName.label"),
@@ -21912,7 +21914,7 @@ notice.
21912
21914
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
21913
21915
  ]),
21914
21916
  o("div", Ut, [
21915
- f(m, {
21917
+ f(M, {
21916
21918
  modelValue: A.value.outletName,
21917
21919
  "onUpdate:modelValue": e[2] || (e[2] = (v) => A.value.outletName = v),
21918
21920
  label: n("field.outletName.label"),
@@ -21922,7 +21924,7 @@ notice.
21922
21924
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
21923
21925
  ]),
21924
21926
  o("div", _t, [
21925
- f(m, {
21927
+ f(M, {
21926
21928
  modelValue: A.value.outletNameEnglish,
21927
21929
  "onUpdate:modelValue": e[3] || (e[3] = (v) => A.value.outletNameEnglish = v),
21928
21930
  label: n("field.outletNameEnglish.label"),
@@ -21934,7 +21936,7 @@ notice.
21934
21936
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
21935
21937
  ]),
21936
21938
  o("div", $t, [
21937
- f(m, {
21939
+ f(M, {
21938
21940
  modelValue: A.value.outletAddress,
21939
21941
  "onUpdate:modelValue": e[4] || (e[4] = (v) => A.value.outletAddress = v),
21940
21942
  label: n("field.outletAddress.label"),
@@ -21945,7 +21947,7 @@ notice.
21945
21947
  )
21946
21948
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
21947
21949
  ]),
21948
- f(m, {
21950
+ f(M, {
21949
21951
  modelValue: A.value.outletPostCode,
21950
21952
  "onUpdate:modelValue": e[5] || (e[5] = (v) => A.value.outletPostCode = v),
21951
21953
  label: n("field.outletPostCode.label"),
@@ -21955,7 +21957,7 @@ notice.
21955
21957
  t(p).string().min(1, n("validation.outletPostCodeRequired"))
21956
21958
  )
21957
21959
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
21958
- f(m, {
21960
+ f(M, {
21959
21961
  modelValue: A.value.outletState,
21960
21962
  "onUpdate:modelValue": e[6] || (e[6] = (v) => A.value.outletState = v),
21961
21963
  label: n("field.outletState.label"),
@@ -21963,7 +21965,7 @@ notice.
21963
21965
  "label-mark": "required",
21964
21966
  rules: t(w)(t(p).string().min(1, n("validation.outletStateRequired")))
21965
21967
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
21966
- f(m, {
21968
+ f(M, {
21967
21969
  modelValue: A.value.outletCity,
21968
21970
  "onUpdate:modelValue": e[7] || (e[7] = (v) => A.value.outletCity = v),
21969
21971
  label: n("field.outletCity.label"),
@@ -21994,7 +21996,7 @@ notice.
21994
21996
  }, null, 8, ["modelValue", "label", "placeholder", "rules", "items"])
21995
21997
  ]),
21996
21998
  o("div", te, [
21997
- f(m, {
21999
+ f(M, {
21998
22000
  modelValue: A.value.numberOfDevices,
21999
22001
  "onUpdate:modelValue": e[9] || (e[9] = (v) => A.value.numberOfDevices = v),
22000
22002
  type: "number",
@@ -22017,7 +22019,7 @@ notice.
22017
22019
  rules: t(w)(t(p).string().min(1, n("validation.bankNameRequired"))),
22018
22020
  items: hn
22019
22021
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
22020
- f(m, {
22022
+ f(M, {
22021
22023
  modelValue: A.value.bankHolderName,
22022
22024
  "onUpdate:modelValue": e[11] || (e[11] = (v) => A.value.bankHolderName = v),
22023
22025
  label: n("field.bankHolderName.label"),
@@ -22027,7 +22029,7 @@ notice.
22027
22029
  t(p).string().min(1, n("validation.bankHolderNameRequired"))
22028
22030
  )
22029
22031
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
22030
- f(m, {
22032
+ f(M, {
22031
22033
  modelValue: A.value.bankAccountNo,
22032
22034
  "onUpdate:modelValue": e[12] || (e[12] = (v) => A.value.bankAccountNo = v),
22033
22035
  label: n("field.bankAccountNo.label"),
@@ -22038,7 +22040,7 @@ notice.
22038
22040
  )
22039
22041
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
22040
22042
  o("div", fe, [
22041
- f(m, {
22043
+ f(M, {
22042
22044
  modelValue: A.value.bankBranch,
22043
22045
  "onUpdate:modelValue": e[13] || (e[13] = (v) => A.value.bankBranch = v),
22044
22046
  label: n("field.bankBranch.label"),
@@ -22048,7 +22050,7 @@ notice.
22048
22050
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
22049
22051
  ]),
22050
22052
  o("div", de, [
22051
- f(m, {
22053
+ f(M, {
22052
22054
  modelValue: A.value.bankBranchCode,
22053
22055
  "onUpdate:modelValue": e[14] || (e[14] = (v) => A.value.bankBranchCode = v),
22054
22056
  label: n("field.bankBranchCode.label"),
@@ -22133,7 +22135,7 @@ notice.
22133
22135
  type: "pdf",
22134
22136
  "restaurant-id": (sn = t(b)) == null ? void 0 : sn._id
22135
22137
  }, null, 8, ["label", "modelValue", "restaurant-id"]),
22136
- A.value.businessType === "juristic" ? (i(), M(k, {
22138
+ A.value.businessType === "juristic" ? (i(), B(k, {
22137
22139
  key: 0,
22138
22140
  label: n("document.companyCertificate"),
22139
22141
  type: "pdf",
@@ -22144,7 +22146,7 @@ notice.
22144
22146
  ],
22145
22147
  "restaurant-id": (vn = t(b)) == null ? void 0 : vn._id
22146
22148
  }, null, 8, ["label", "modelValue", "restaurant-id"])) : a("", !0),
22147
- A.value.businessType === "juristic" ? (i(), M(k, {
22149
+ A.value.businessType === "juristic" ? (i(), B(k, {
22148
22150
  key: 1,
22149
22151
  label: n("document.vatCertificate"),
22150
22152
  type: "pdf",
@@ -22155,7 +22157,7 @@ notice.
22155
22157
  ],
22156
22158
  "restaurant-id": (Tn = t(b)) == null ? void 0 : Tn._id
22157
22159
  }, null, 8, ["label", "modelValue", "restaurant-id"])) : a("", !0),
22158
- A.value.businessType === "individual" ? (i(), M(k, {
22160
+ A.value.businessType === "individual" ? (i(), B(k, {
22159
22161
  key: 2,
22160
22162
  label: n("document.commercialCertificate"),
22161
22163
  type: "pdf",
@@ -22185,7 +22187,7 @@ notice.
22185
22187
  ]),
22186
22188
  o("div", se, [
22187
22189
  o("div", oe, [
22188
- f(m, {
22190
+ f(M, {
22189
22191
  modelValue: A.value.picName,
22190
22192
  "onUpdate:modelValue": e[30] || (e[30] = (v) => A.value.picName = v),
22191
22193
  label: n("field.picName.label"),
@@ -22195,7 +22197,7 @@ notice.
22195
22197
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
22196
22198
  ]),
22197
22199
  o("div", ie, [
22198
- f(m, {
22200
+ f(M, {
22199
22201
  modelValue: A.value.picRole,
22200
22202
  "onUpdate:modelValue": e[31] || (e[31] = (v) => A.value.picRole = v),
22201
22203
  label: n("field.picRole.label"),
@@ -22205,7 +22207,7 @@ notice.
22205
22207
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
22206
22208
  ]),
22207
22209
  o("div", be, [
22208
- f(m, {
22210
+ f(M, {
22209
22211
  modelValue: A.value.picEmail,
22210
22212
  "onUpdate:modelValue": e[32] || (e[32] = (v) => A.value.picEmail = v),
22211
22213
  label: n("field.picEmail.label"),
@@ -22257,7 +22259,7 @@ notice.
22257
22259
  ]),
22258
22260
  o("div", ze, [
22259
22261
  o("div", we, [
22260
- f(m, {
22262
+ f(M, {
22261
22263
  modelValue: A.value.witnessName,
22262
22264
  "onUpdate:modelValue": e[37] || (e[37] = (v) => A.value.witnessName = v),
22263
22265
  label: n("field.witnessName.label"),
@@ -22269,7 +22271,7 @@ notice.
22269
22271
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
22270
22272
  ]),
22271
22273
  o("div", pe, [
22272
- f(m, {
22274
+ f(M, {
22273
22275
  modelValue: A.value.witnessRole,
22274
22276
  "onUpdate:modelValue": e[38] || (e[38] = (v) => A.value.witnessRole = v),
22275
22277
  label: n("field.witnessRole.label"),
@@ -22296,7 +22298,7 @@ notice.
22296
22298
  ])
22297
22299
  ])) : a("", !0),
22298
22300
  e[40] || (e[40] = o("div", { class: "my-20" }, null, -1)),
22299
- jn.value ? (i(), M(xn, {
22301
+ jn.value ? (i(), B(xn, {
22300
22302
  key: 4,
22301
22303
  variant: "primary",
22302
22304
  type: "submit",
@@ -22330,8 +22332,8 @@ notice.
22330
22332
  }
22331
22333
  }
22332
22334
  };
22333
- function ye(X, b, C, T, J, Z) {
22334
- return i(), M(Kn(Z.currentComponent), { submission: C.submission }, null, 8, ["submission"]);
22335
+ function ye(X, b, C, N, J, Z) {
22336
+ return i(), B(Kn(Z.currentComponent), { submission: C.submission }, null, 8, ["submission"]);
22335
22337
  }
22336
22338
  const Ge = /* @__PURE__ */ qn(xe, [["render", ye]]);
22337
22339
  export {