@feedmepos/mf-payment 1.3.1 → 1.3.2

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.
@@ -1,14 +1,15 @@
1
- import { defineComponent as O, ref as V, computed as Z, resolveComponent as v, openBlock as u, createElementBlock as F, createElementVNode as d, toDisplayString as ee, Fragment as $, createBlock as w, withCtx as q, createVNode as n, createCommentVNode as y, onMounted as se, unref as o, createTextVNode as z, resolveDynamicComponent as ue } from "vue";
1
+ import { defineComponent as O, ref as V, computed as Z, resolveComponent as y, openBlock as u, createElementBlock as S, createElementVNode as d, toDisplayString as ee, Fragment as $, createBlock as w, withCtx as T, createVNode as n, createCommentVNode as v, unref as l, onMounted as se, createTextVNode as z, resolveDynamicComponent as ue } from "vue";
2
2
  import { z as p, a as c } from "./validator-D5jtpt9A.js";
3
3
  import { P as de, _ as me } from "./PDFViewer-DlSCBBxr.js";
4
4
  import { useCoreStore as pe } from "@feedmepos/mf-common";
5
- import { o as L } from "./index-BF2tC_f4.js";
5
+ import { o as L } from "./index-CvXTRd5n.js";
6
6
  import { p as ce } from "./index-jsEyizHG.js";
7
7
  import { useSnackbar as ve } from "@feedmepos/ui-library";
8
8
  import { u as X } from "./index-eNSd1RuW.js";
9
- import { P as ye } from "./payout-account-B0OvJ2_h.js";
10
- import { useRouter as be } from "vue-router";
11
- const fe = ["src"], R = /* @__PURE__ */ O({
9
+ import { s as ye } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
+ import { P as be } from "./payout-account-DU-Eid_y.js";
11
+ import { useRouter as fe } from "vue-router";
12
+ const ge = ["src"], R = /* @__PURE__ */ O({
12
13
  __name: "UploadButton",
13
14
  props: {
14
15
  modelValue: {},
@@ -16,8 +17,8 @@ const fe = ["src"], R = /* @__PURE__ */ O({
16
17
  type: {}
17
18
  },
18
19
  emits: ["update:modelValue"],
19
- setup(D, { emit: N }) {
20
- const P = D, b = V(P.modelValue), g = N, I = (k) => {
20
+ setup(B, { emit: N }) {
21
+ const P = B, b = V(P.modelValue), g = N, I = (k) => {
21
22
  const C = new FileReader();
22
23
  C.onload = (x) => {
23
24
  var f;
@@ -25,25 +26,25 @@ const fe = ["src"], R = /* @__PURE__ */ O({
25
26
  }, C.readAsDataURL(k);
26
27
  }, A = Z(() => P.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
27
28
  return (k, C) => {
28
- const x = v("FmButton"), f = v("FmDialog"), s = v("FmDropField");
29
- return u(), F("div", null, [
29
+ const x = y("FmButton"), f = y("FmDialog"), s = y("FmDropField");
30
+ return u(), S("div", null, [
30
31
  d("p", null, ee(k.label), 1),
31
- b.value ? (u(), F($, { key: 0 }, [
32
+ b.value ? (u(), S($, { key: 0 }, [
32
33
  k.type === "pdf" ? (u(), w(f, {
33
34
  key: 0,
34
35
  '"': ""
35
36
  }, {
36
- "dialog-button": q(() => [
37
+ "dialog-button": T(() => [
37
38
  n(x, {
38
39
  class: "mt-4",
39
40
  "prepend-icon": "preview",
40
41
  label: "Preview"
41
42
  })
42
43
  ]),
43
- "dialog-header": q(() => C[1] || (C[1] = [
44
+ "dialog-header": T(() => C[1] || (C[1] = [
44
45
  d("div", null, "Document Preview", -1)
45
46
  ])),
46
- default: q(() => [
47
+ default: T(() => [
47
48
  n(de, {
48
49
  height: 450,
49
50
  pdf: b.value,
@@ -52,19 +53,19 @@ const fe = ["src"], R = /* @__PURE__ */ O({
52
53
  }, null, 8, ["pdf"])
53
54
  ]),
54
55
  _: 1
55
- })) : y("", !0),
56
- k.type === "image" ? (u(), F("img", {
56
+ })) : v("", !0),
57
+ k.type === "image" ? (u(), S("img", {
57
58
  key: 1,
58
59
  src: b.value
59
- }, null, 8, fe)) : y("", !0)
60
- ], 64)) : y("", !0),
60
+ }, null, 8, ge)) : v("", !0)
61
+ ], 64)) : v("", !0),
61
62
  b.value ? (u(), w(x, {
62
63
  key: 1,
63
64
  class: "mt-4 w-full",
64
65
  "prepend-icon": "delete",
65
66
  label: "Clear",
66
67
  variant: "destructive",
67
- onClick: C[0] || (C[0] = (l) => {
68
+ onClick: C[0] || (C[0] = (o) => {
68
69
  b.value = null, g("update:modelValue", null);
69
70
  })
70
71
  })) : (u(), w(s, {
@@ -76,25 +77,25 @@ const fe = ["src"], R = /* @__PURE__ */ O({
76
77
  ]);
77
78
  };
78
79
  }
79
- }), ge = ["src"], he = {
80
+ }), he = ["src"], Ve = {
80
81
  key: 0,
81
82
  class: "text-center text-red-700 py-4"
82
- }, Ve = { class: "flex justify-evenly py-3" }, ke = /* @__PURE__ */ O({
83
+ }, ke = { class: "flex justify-evenly py-3" }, Fe = /* @__PURE__ */ O({
83
84
  __name: "SignatureBoard",
84
85
  props: {
85
86
  modelValue: {},
86
87
  label: {}
87
88
  },
88
89
  emits: ["update:modelValue"],
89
- setup(D, { emit: N }) {
90
- const P = D, b = N, g = V(P.modelValue), I = V(!1), A = V(), k = V(!1);
90
+ setup(B, { emit: N }) {
91
+ const P = B, b = N, g = V(P.modelValue), I = V(!1), A = V(), k = V(!1);
91
92
  function C(f, s) {
92
93
  var a;
93
- const l = f.split(","), m = ((a = l[0].match(/:(.*?);/)) == null ? void 0 : a[1]) || "", B = atob(l[1]);
94
- let i = B.length;
94
+ const o = f.split(","), m = ((a = o[0].match(/:(.*?);/)) == null ? void 0 : a[1]) || "", q = atob(o[1]);
95
+ let i = q.length;
95
96
  const E = new Uint8Array(i);
96
97
  for (; i--; )
97
- E[i] = B.charCodeAt(i);
98
+ E[i] = q.charCodeAt(i);
98
99
  return new File([E], s, { type: m });
99
100
  }
100
101
  const x = function() {
@@ -104,57 +105,57 @@ const fe = ["src"], R = /* @__PURE__ */ O({
104
105
  g.value = s, k.value = !1, b("update:modelValue", C(s, "signature.png"));
105
106
  };
106
107
  return (f, s) => {
107
- const l = v("FmButton"), m = v("VueSignaturePad"), B = v("FmDialog");
108
- return u(), F("div", null, [
108
+ const o = y("FmButton"), m = y("FmDialog");
109
+ return u(), S("div", null, [
109
110
  d("p", null, ee(f.label), 1),
110
- g.value ? (u(), F("img", {
111
+ g.value ? (u(), S("img", {
111
112
  key: 0,
112
113
  src: g.value,
113
114
  alt: "Signature Preview",
114
115
  class: "w-full h-auto"
115
- }, null, 8, ge)) : y("", !0),
116
- g.value ? (u(), w(l, {
116
+ }, null, 8, he)) : v("", !0),
117
+ g.value ? (u(), w(o, {
117
118
  key: 1,
118
119
  class: "mt-4 w-full",
119
120
  "prepend-icon": "delete",
120
121
  label: "Clear",
121
122
  variant: "destructive",
122
- onClick: s[0] || (s[0] = (i) => {
123
+ onClick: s[0] || (s[0] = (q) => {
123
124
  g.value = null, b("update:modelValue", null);
124
125
  })
125
- })) : y("", !0),
126
- g.value ? y("", !0) : (u(), w(B, {
126
+ })) : v("", !0),
127
+ g.value ? v("", !0) : (u(), w(m, {
127
128
  key: 2,
128
129
  modelValue: k.value,
129
- "onUpdate:modelValue": s[2] || (s[2] = (i) => k.value = i)
130
+ "onUpdate:modelValue": s[2] || (s[2] = (q) => k.value = q)
130
131
  }, {
131
- "dialog-button": q(() => [
132
- n(l, {
132
+ "dialog-button": T(() => [
133
+ n(o, {
133
134
  "prepend-icon": "signature",
134
135
  class: "w-full",
135
136
  label: "Signature"
136
137
  })
137
138
  ]),
138
- "dialog-header": q(() => s[3] || (s[3] = [
139
+ "dialog-header": T(() => s[3] || (s[3] = [
139
140
  d("div", null, "Signature Board", -1)
140
141
  ])),
141
- default: q(() => [
142
- n(m, {
142
+ default: T(() => [
143
+ n(l(ye), {
143
144
  ref_key: "signaturePad",
144
145
  ref: A,
145
146
  height: "300px",
146
147
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
147
148
  options: { penColor: "#000000" }
148
149
  }, null, 512),
149
- I.value ? (u(), F("p", he, " Please sign your signature before saving. ")) : y("", !0),
150
- d("div", Ve, [
151
- n(l, {
150
+ I.value ? (u(), S("p", Ve, " Please sign your signature before saving. ")) : v("", !0),
151
+ d("div", ke, [
152
+ n(o, {
152
153
  variant: "destructive",
153
154
  label: "Clear",
154
155
  "prepend-icon": "delete",
155
- onClick: s[1] || (s[1] = (i) => A.value.clearSignature())
156
+ onClick: s[1] || (s[1] = (q) => A.value.clearSignature())
156
157
  }),
157
- n(l, {
158
+ n(o, {
158
159
  label: "Save",
159
160
  "prepend-icon": "save",
160
161
  onClick: x
@@ -169,20 +170,20 @@ const fe = ["src"], R = /* @__PURE__ */ O({
169
170
  }), Se = {
170
171
  key: 0,
171
172
  class: "grid grid-cols-4 gap-24"
172
- }, Fe = { class: "col-span-2" }, Ne = { class: "col-span-2" }, Ce = { class: "col-span-2" }, we = { class: "col-span-2" }, Pe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ae = { class: "col-start-1 col-span-2" }, xe = { class: "col-span-2" }, qe = { class: "col-span-2" }, _e = { class: "col-span-2" }, Te = {
173
+ }, Ne = { class: "col-span-2" }, Ce = { class: "col-span-2" }, we = { class: "col-span-2" }, Pe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ae = { class: "col-span-2" }, xe = { class: "col-start-1 col-span-2" }, qe = { class: "col-span-2" }, Te = { class: "col-span-2" }, _e = { class: "col-span-2" }, Ue = {
173
174
  key: 1,
174
175
  class: "grid grid-cols-4 gap-24"
175
- }, Ue = {
176
+ }, De = {
176
177
  key: 2,
177
178
  class: "grid grid-cols-4 gap-24"
178
- }, De = { key: 3 }, Be = { class: "flex items-stretch gap-6" }, Ee = { class: "flex flex-1 flex-col justify-end" }, Re = { class: "flex flex-1 flex-row items-center gap-8" }, Me = /* @__PURE__ */ O({
179
+ }, Be = { key: 3 }, Ee = { class: "flex items-stretch gap-6" }, Re = { class: "flex flex-1 flex-col justify-end" }, Me = { class: "flex flex-1 flex-row items-center gap-8" }, We = /* @__PURE__ */ O({
179
180
  __name: "SoftSpaceSubmission",
180
181
  props: {
181
182
  submission: {}
182
183
  },
183
- setup(D) {
184
+ setup(B) {
184
185
  var j, H, K, Y, J, Q;
185
- const { currentRestaurant: N, sessionUser: P } = pe(), b = ve(), g = D, I = be(), { isLoading: A, startAsyncCall: k } = X(!1), { isLoading: C, startAsyncCall: x } = X(!1), f = V(null), s = V(null), l = N.value, m = P.value, B = V(), i = V(1), E = V(!1), a = V({
186
+ const { currentRestaurant: N, sessionUser: P } = pe(), b = ve(), g = B, I = fe(), { isLoading: A, startAsyncCall: k } = X(!1), { isLoading: C, startAsyncCall: x } = X(!1), f = V(null), s = V(null), o = N.value, m = P.value, q = V(), i = V(1), E = V(!1), a = V({
186
187
  bankName: ((H = (j = s.value) == null ? void 0 : j.store.bank) == null ? void 0 : H.name) || "",
187
188
  bankAccountNo: ((Y = (K = s.value) == null ? void 0 : K.store.bank) == null ? void 0 : Y.accountNumber) || "",
188
189
  bankHolderName: ((Q = (J = s.value) == null ? void 0 : J.store.bank) == null ? void 0 : Q.holderName) || "",
@@ -190,15 +191,15 @@ const fe = ["src"], R = /* @__PURE__ */ O({
190
191
  picRole: (m == null ? void 0 : m._role) || "",
191
192
  picEmail: (m == null ? void 0 : m.email) || "",
192
193
  picContact: (m == null ? void 0 : m.phoneNumber) || "",
193
- outletName: (l == null ? void 0 : l.profile.legalName) || (l == null ? void 0 : l.profile.name) || "",
194
- outletAddress: (l == null ? void 0 : l.profile.address.line1) || "" + (l == null ? void 0 : l.profile.address.line2) || "",
195
- outletState: (l == null ? void 0 : l.profile.address.state) || "",
196
- outletCity: (l == null ? void 0 : l.profile.address.city) || "",
197
- outletPostCode: (l == null ? void 0 : l.profile.address.postcode) || "",
194
+ outletName: (o == null ? void 0 : o.profile.legalName) || (o == null ? void 0 : o.profile.name) || "",
195
+ outletAddress: (o == null ? void 0 : o.profile.address.line1) || "" + (o == null ? void 0 : o.profile.address.line2) || "",
196
+ outletState: (o == null ? void 0 : o.profile.address.state) || "",
197
+ outletCity: (o == null ? void 0 : o.profile.address.city) || "",
198
+ outletPostCode: (o == null ? void 0 : o.profile.address.postcode) || "",
198
199
  tinNo: "",
199
- sstNo: (l == null ? void 0 : l.profile.sstRegNo) || "",
200
+ sstNo: (o == null ? void 0 : o.profile.sstRegNo) || "",
200
201
  businessType: "",
201
- businessRegNo: (l == null ? void 0 : l.profile.regNo) || ""
202
+ businessRegNo: (o == null ? void 0 : o.profile.regNo) || ""
202
203
  }), r = V({
203
204
  authorizedPersonID: null,
204
205
  outletPhoto: null,
@@ -216,7 +217,7 @@ const fe = ["src"], R = /* @__PURE__ */ O({
216
217
  });
217
218
  se(() => {
218
219
  k(async () => {
219
- var S, e, T;
220
+ var F, e, U;
220
221
  if (!N.value) {
221
222
  b.open({
222
223
  message: "Please select a restaurant before proceeding.",
@@ -224,27 +225,27 @@ const fe = ["src"], R = /* @__PURE__ */ O({
224
225
  });
225
226
  return;
226
227
  }
227
- g.submission && (f.value = await L.getById(g.submission, N.value._id), a.value = f.value.fields, r.value = f.value.documents), s.value = await ce.readByRestaurantId(N.value._id), a.value.bankName = ((S = s.value.store.bank) == null ? void 0 : S.name) || "", a.value.bankAccountNo = ((e = s.value.store.bank) == null ? void 0 : e.accountNumber) || "", a.value.bankHolderName = ((T = s.value.store.bank) == null ? void 0 : T.holderName) || "";
228
+ g.submission && (f.value = await L.getById(g.submission, N.value._id), a.value = f.value.fields, r.value = f.value.documents), s.value = await ce.readByRestaurantId(N.value._id), a.value.bankName = ((F = s.value.store.bank) == null ? void 0 : F.name) || "", a.value.bankAccountNo = ((e = s.value.store.bank) == null ? void 0 : e.accountNumber) || "", a.value.bankHolderName = ((U = s.value.store.bank) == null ? void 0 : U.holderName) || "";
228
229
  });
229
230
  });
230
- const _ = (S, e) => {
231
- if (M.value[S] = e, e) {
232
- const T = new FileReader();
233
- T.onload = (W) => {
234
- var U;
235
- r.value[S] = (U = W.target) == null ? void 0 : U.result;
236
- }, T.readAsDataURL(e);
231
+ const _ = (F, e) => {
232
+ if (M.value[F] = e, e) {
233
+ const U = new FileReader();
234
+ U.onload = (W) => {
235
+ var D;
236
+ r.value[F] = (D = W.target) == null ? void 0 : D.result;
237
+ }, U.readAsDataURL(e);
237
238
  } else
238
- r.value[S] = null;
239
+ r.value[F] = null;
239
240
  }, te = Z(() => i.value === 4 ? E.value && r.value.signature && r.value.companyStamp : i.value === 3 ? r.value.authorizedPersonID && r.value.outletPhoto && r.value.bankStatement && r.value.certificate : i.value < 4), ae = () => {
240
241
  if (i.value === 4)
241
242
  return x(async () => {
242
243
  try {
243
- for (const S of Object.keys(M.value)) {
244
- const e = M.value[S];
245
- e && (r.value[S] = await L.uploadDocument(
244
+ for (const F of Object.keys(M.value)) {
245
+ const e = M.value[F];
246
+ e && (r.value[F] = await L.uploadDocument(
246
247
  N.value._id,
247
- S,
248
+ F,
248
249
  e
249
250
  ));
250
251
  }
@@ -266,52 +267,52 @@ const fe = ["src"], R = /* @__PURE__ */ O({
266
267
  });
267
268
  i.value++;
268
269
  };
269
- return (S, e) => {
270
- const T = v("FmPageHead"), W = v("FmCircularProgress"), U = v("FmStep"), le = v("FmStepper"), h = v("FmTextField"), oe = v("FmPhoneNumber"), G = v("FmSelect"), ne = v("FmCheckbox"), ie = v("FmButton"), re = v("FmForm");
271
- return u(), F($, null, [
272
- n(T, {
270
+ return (F, e) => {
271
+ const U = y("FmPageHead"), W = y("FmCircularProgress"), D = y("FmStep"), le = y("FmStepper"), h = y("FmTextField"), oe = y("FmPhoneNumber"), G = y("FmSelect"), ne = y("FmCheckbox"), ie = y("FmButton"), re = y("FmForm");
272
+ return u(), S($, null, [
273
+ n(U, {
273
274
  title: "FASSPAY MERCHANT APPLICATION FORM",
274
275
  description: `The Merchant Acquiring Services Agreement (together with this Fasspay Merchant Application Form, Letter of Offer and all the Schedules including
275
276
  its Appendices) (“Agreement”), is entered into by and between Fass Payment Solutions Sdn. Bhd. (“Fasspay”) with its principal place of business at
276
277
  Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral, 50470 Kuala Lumpur, Malaysia and the entity identified below
277
278
  (“Merchant”).`
278
279
  }),
279
- o(A) ? (u(), w(W, {
280
+ l(A) ? (u(), w(W, {
280
281
  key: 0,
281
282
  size: "xxl",
282
283
  class: "mt-16",
283
284
  color: "primary"
284
- })) : y("", !0),
285
- o(A) ? y("", !0) : (u(), F($, { key: 1 }, [
285
+ })) : v("", !0),
286
+ l(A) ? v("", !0) : (u(), S($, { key: 1 }, [
286
287
  n(le, {
287
288
  modelValue: i.value,
288
289
  "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
289
290
  class: "px-16 pb-16",
290
291
  orientation: "horizontal"
291
292
  }, {
292
- default: q(() => [
293
- n(U, {
293
+ default: T(() => [
294
+ n(D, {
294
295
  title: "Outlet Information",
295
296
  description: "Enter your outlet details.",
296
297
  value: 1,
297
298
  complete: () => i.value > 1,
298
299
  disabled: () => i.value < 1
299
300
  }, null, 8, ["complete", "disabled"]),
300
- n(U, {
301
+ n(D, {
301
302
  title: "Payout Information",
302
303
  description: "Enter your payout details.",
303
304
  value: 2,
304
305
  complete: () => i.value > 2,
305
306
  disabled: () => i.value < 2
306
307
  }, null, 8, ["complete", "disabled"]),
307
- n(U, {
308
+ n(D, {
308
309
  title: "Legal Documents",
309
310
  description: "Upload your legal documents.",
310
311
  value: 3,
311
312
  complete: () => i.value > 3,
312
313
  disabled: () => i.value < 3
313
314
  }, null, 8, ["complete", "disabled"]),
314
- n(U, {
315
+ n(D, {
315
316
  title: "Declaration",
316
317
  description: "Accept Terms & Conditions.",
317
318
  value: 4,
@@ -323,34 +324,34 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
323
324
  }, 8, ["modelValue"]),
324
325
  n(re, {
325
326
  ref_key: "form",
326
- ref: B,
327
+ ref: q,
327
328
  "blame-form-child-on-validation-failed": !0,
328
329
  onValidationSuccess: ae,
329
330
  class: "px-24 pb-24"
330
331
  }, {
331
- default: q(() => [
332
- i.value === 1 ? (u(), F("div", Se, [
333
- d("div", Fe, [
332
+ default: T(() => [
333
+ i.value === 1 ? (u(), S("div", Se, [
334
+ d("div", Ne, [
334
335
  n(h, {
335
336
  modelValue: a.value.picName,
336
337
  "onUpdate:modelValue": e[1] || (e[1] = (t) => a.value.picName = t),
337
338
  label: "PIC Name",
338
339
  placeholder: "Enter your name",
339
340
  "label-mark": "required",
340
- rules: o(p)(o(c).string().min(1, "PIC Name is required"))
341
+ rules: l(p)(l(c).string().min(1, "PIC Name is required"))
341
342
  }, null, 8, ["modelValue", "rules"])
342
343
  ]),
343
- d("div", Ne, [
344
+ d("div", Ce, [
344
345
  n(h, {
345
346
  modelValue: a.value.picRole,
346
347
  "onUpdate:modelValue": e[2] || (e[2] = (t) => a.value.picRole = t),
347
348
  label: "PIC Role",
348
349
  placeholder: "Enter your role",
349
350
  "label-mark": "required",
350
- rules: o(p)(o(c).string().min(1, "PIC Role is required"))
351
+ rules: l(p)(l(c).string().min(1, "PIC Role is required"))
351
352
  }, null, 8, ["modelValue", "rules"])
352
353
  ]),
353
- d("div", Ce, [
354
+ d("div", we, [
354
355
  n(h, {
355
356
  modelValue: a.value.picEmail,
356
357
  "onUpdate:modelValue": e[3] || (e[3] = (t) => a.value.picEmail = t),
@@ -358,37 +359,37 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
358
359
  type: "email",
359
360
  placeholder: "Enter your email address",
360
361
  "label-mark": "required",
361
- rules: o(p)(o(c).string().min(1, "PIC Email is required"))
362
+ rules: l(p)(l(c).string().min(1, "PIC Email is required"))
362
363
  }, null, 8, ["modelValue", "rules"])
363
364
  ]),
364
- d("div", we, [
365
+ d("div", Pe, [
365
366
  n(oe, {
366
367
  "model-value": a.value.picContact,
367
368
  "onUpdate:modelValue": e[4] || (e[4] = (t) => a.value.picContact = t),
368
369
  "default-country": "MY",
369
370
  label: "PIC Contact",
370
371
  "label-mark": "required",
371
- rules: o(p)(o(c).string().min(1, "PIC Contact is required"))
372
+ rules: l(p)(l(c).string().min(1, "PIC Contact is required"))
372
373
  }, null, 8, ["model-value", "rules"])
373
374
  ]),
374
- d("div", Pe, [
375
+ d("div", Ie, [
375
376
  n(h, {
376
377
  modelValue: a.value.outletName,
377
378
  "onUpdate:modelValue": e[5] || (e[5] = (t) => a.value.outletName = t),
378
379
  label: "Outlet Name",
379
380
  placeholder: "Enter outlet name",
380
381
  "label-mark": "required",
381
- rules: o(p)(o(c).string().min(1, "Outlet Name is required"))
382
+ rules: l(p)(l(c).string().min(1, "Outlet Name is required"))
382
383
  }, null, 8, ["modelValue", "rules"])
383
384
  ]),
384
- d("div", Ie, [
385
+ d("div", Ae, [
385
386
  n(h, {
386
387
  modelValue: a.value.outletAddress,
387
388
  "onUpdate:modelValue": e[6] || (e[6] = (t) => a.value.outletAddress = t),
388
389
  label: "Outlet Address",
389
390
  placeholder: "Enter outlet address",
390
391
  "label-mark": "required",
391
- rules: o(p)(o(c).string().min(1, "Address is required"))
392
+ rules: l(p)(l(c).string().min(1, "Address is required"))
392
393
  }, null, 8, ["modelValue", "rules"])
393
394
  ]),
394
395
  n(h, {
@@ -397,7 +398,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
397
398
  label: "Postal Code",
398
399
  placeholder: "Enter postal code",
399
400
  "label-mark": "required",
400
- rules: o(p)(o(c).string().min(1, "Postal Code is required"))
401
+ rules: l(p)(l(c).string().min(1, "Postal Code is required"))
401
402
  }, null, 8, ["modelValue", "rules"]),
402
403
  n(h, {
403
404
  modelValue: a.value.outletState,
@@ -405,7 +406,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
405
406
  label: "State",
406
407
  placeholder: "Enter state",
407
408
  "label-mark": "required",
408
- rules: o(p)(o(c).string().min(1, "State is required"))
409
+ rules: l(p)(l(c).string().min(1, "State is required"))
409
410
  }, null, 8, ["modelValue", "rules"]),
410
411
  n(h, {
411
412
  modelValue: a.value.outletCity,
@@ -413,16 +414,16 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
413
414
  label: "City",
414
415
  placeholder: "Enter city",
415
416
  "label-mark": "required",
416
- rules: o(p)(o(c).string().min(1, "City is required"))
417
+ rules: l(p)(l(c).string().min(1, "City is required"))
417
418
  }, null, 8, ["modelValue", "rules"]),
418
- d("div", Ae, [
419
+ d("div", xe, [
419
420
  n(G, {
420
421
  modelValue: a.value.businessType,
421
422
  "onUpdate:modelValue": e[10] || (e[10] = (t) => a.value.businessType = t),
422
423
  label: "Type",
423
424
  placeholder: "Select business type",
424
425
  "label-mark": "required",
425
- rules: o(p)(o(c).string().min(1, "Business Type is required")),
426
+ rules: l(p)(l(c).string().min(1, "Business Type is required")),
426
427
  items: [
427
428
  { label: "Sole Proprietorship", value: "sole_proprietorship" },
428
429
  { label: "Partnership", value: "partnership" },
@@ -431,24 +432,24 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
431
432
  ]
432
433
  }, null, 8, ["modelValue", "rules"])
433
434
  ]),
434
- d("div", xe, [
435
+ d("div", qe, [
435
436
  n(h, {
436
437
  modelValue: a.value.businessRegNo,
437
438
  "onUpdate:modelValue": e[11] || (e[11] = (t) => a.value.businessRegNo = t),
438
439
  label: "Registration No",
439
440
  placeholder: "Enter registration number",
440
441
  "label-mark": "required",
441
- rules: o(p)(o(c).string().min(1, "Reg No is required"))
442
+ rules: l(p)(l(c).string().min(1, "Reg No is required"))
442
443
  }, null, 8, ["modelValue", "rules"])
443
444
  ]),
444
- d("div", qe, [
445
+ d("div", Te, [
445
446
  n(h, {
446
447
  modelValue: a.value.tinNo,
447
448
  "onUpdate:modelValue": e[12] || (e[12] = (t) => a.value.tinNo = t),
448
449
  label: "Tax Identification No (TIN)",
449
450
  placeholder: "Enter your TIN number",
450
451
  "label-mark": "required",
451
- rules: o(p)(o(c).string().min(1, "TIN is required"))
452
+ rules: l(p)(l(c).string().min(1, "TIN is required"))
452
453
  }, null, 8, ["modelValue", "rules"])
453
454
  ]),
454
455
  d("div", _e, [
@@ -458,19 +459,19 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
458
459
  label: "SST Registration No (SST)",
459
460
  placeholder: "Enter your SST number",
460
461
  "label-mark": "required",
461
- rules: o(p)(o(c).string().min(1, "SST No is required"))
462
+ rules: l(p)(l(c).string().min(1, "SST No is required"))
462
463
  }, null, 8, ["modelValue", "rules"])
463
464
  ])
464
- ])) : y("", !0),
465
- i.value === 2 ? (u(), F("div", Te, [
465
+ ])) : v("", !0),
466
+ i.value === 2 ? (u(), S("div", Ue, [
466
467
  n(G, {
467
468
  modelValue: a.value.bankName,
468
469
  "onUpdate:modelValue": e[14] || (e[14] = (t) => a.value.bankName = t),
469
470
  label: "Bank",
470
471
  placeholder: "Select bank type",
471
472
  "label-mark": "required",
472
- rules: o(p)(o(c).string().min(1, "Bank Type is required")),
473
- items: o(ye).bankNameOptions()
473
+ rules: l(p)(l(c).string().min(1, "Bank Type is required")),
474
+ items: l(be).bankNameOptions()
474
475
  }, null, 8, ["modelValue", "rules", "items"]),
475
476
  n(h, {
476
477
  modelValue: a.value.bankHolderName,
@@ -478,7 +479,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
478
479
  label: "Beneficiary Name",
479
480
  placeholder: "Enter Beneficiary Name",
480
481
  "label-mark": "required",
481
- rules: o(p)(o(c).string().min(1, "Beneficiary Name is required"))
482
+ rules: l(p)(l(c).string().min(1, "Beneficiary Name is required"))
482
483
  }, null, 8, ["modelValue", "rules"]),
483
484
  n(h, {
484
485
  modelValue: a.value.bankAccountNo,
@@ -486,10 +487,10 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
486
487
  label: "Account Number",
487
488
  placeholder: "Enter Account Number",
488
489
  "label-mark": "required",
489
- rules: o(p)(o(c).string().min(1, "Account Number is required"))
490
+ rules: l(p)(l(c).string().min(1, "Account Number is required"))
490
491
  }, null, 8, ["modelValue", "rules"])
491
- ])) : y("", !0),
492
- i.value === 3 ? (u(), F("div", Ue, [
492
+ ])) : v("", !0),
493
+ i.value === 3 ? (u(), S("div", De, [
493
494
  n(R, {
494
495
  label: "Authorized Person ID",
495
496
  modelValue: r.value.authorizedPersonID,
@@ -526,7 +527,7 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
526
527
  e[23] || (e[23] = (t) => r.value.certificate = t),
527
528
  e[24] || (e[24] = (t) => _("certificate", t))
528
529
  ]
529
- }, null, 8, ["modelValue"])) : y("", !0),
530
+ }, null, 8, ["modelValue"])) : v("", !0),
530
531
  a.value.businessType === "sole_proprietorship" || a.value.businessType === "partnership" ? (u(), w(R, {
531
532
  key: 1,
532
533
  label: "SSM Certificate & Info",
@@ -536,9 +537,9 @@ Unit 15-15, Level 15 Q Sentral, 2A, Jalan Stesen Sentral 2, Kuala Lumpur Sentral
536
537
  e[25] || (e[25] = (t) => r.value.certificate = t),
537
538
  e[26] || (e[26] = (t) => _("certificate", t))
538
539
  ]
539
- }, null, 8, ["modelValue"])) : y("", !0)
540
- ])) : y("", !0),
541
- i.value === 4 ? (u(), F("div", De, [
540
+ }, null, 8, ["modelValue"])) : v("", !0)
541
+ ])) : v("", !0),
542
+ i.value === 4 ? (u(), S("div", Be, [
542
543
  e[32] || (e[32] = d("pre", { class: "w-full h-full p-4 overflow-y-auto whitespace-pre-wrap" }, [
543
544
  z(""),
544
545
  d("b", null, "Fasspay Merchant Services Application T&C"),
@@ -600,8 +601,8 @@ Termination / Discontinuation: Merchant needs to notify in writing to wallet.sup
600
601
  notice.
601
602
  `)
602
603
  ], -1)),
603
- d("div", Be, [
604
- d("div", Ee, [
604
+ d("div", Ee, [
605
+ d("div", Re, [
605
606
  n(ne, {
606
607
  modelValue: E.value,
607
608
  "onUpdate:modelValue": e[27] || (e[27] = (t) => E.value = t),
@@ -609,8 +610,8 @@ notice.
609
610
  value: "1"
610
611
  }, null, 8, ["modelValue"])
611
612
  ]),
612
- d("div", Re, [
613
- n(ke, {
613
+ d("div", Me, [
614
+ n(Fe, {
614
615
  modelValue: r.value.signature,
615
616
  "onUpdate:modelValue": [
616
617
  e[28] || (e[28] = (t) => r.value.signature = t),
@@ -631,16 +632,16 @@ notice.
631
632
  }, null, 8, ["modelValue"])
632
633
  ])
633
634
  ])
634
- ])) : y("", !0),
635
+ ])) : v("", !0),
635
636
  te.value ? (u(), w(ie, {
636
637
  key: 4,
637
638
  variant: "primary",
638
639
  type: "submit",
639
- loading: o(C),
640
+ loading: l(C),
640
641
  label: i.value < 4 ? "Next" : "Submit",
641
642
  "append-icon": i.value < 4 ? "arrow_forward" : "send",
642
643
  class: "mt-6 w-full"
643
- }, null, 8, ["loading", "label", "append-icon"])) : y("", !0)
644
+ }, null, 8, ["loading", "label", "append-icon"])) : v("", !0)
644
645
  ]),
645
646
  _: 1
646
647
  }, 512)
@@ -648,13 +649,13 @@ notice.
648
649
  ], 64);
649
650
  };
650
651
  }
651
- }), We = {
652
+ }), ze = {
652
653
  props: ["type", "submission"],
653
654
  computed: {
654
655
  currentComponent() {
655
656
  switch (this.type) {
656
657
  case "softspace":
657
- return Me;
658
+ return We;
658
659
  default:
659
660
  return this.$nextTick(() => {
660
661
  this.$router.back();
@@ -663,10 +664,10 @@ notice.
663
664
  }
664
665
  }
665
666
  };
666
- function ze(D, N, P, b, g, I) {
667
+ function Le(B, N, P, b, g, I) {
667
668
  return u(), w(ue(I.currentComponent), { submission: P.submission }, null, 8, ["submission"]);
668
669
  }
669
- const Xe = /* @__PURE__ */ me(We, [["render", ze]]);
670
+ const et = /* @__PURE__ */ me(ze, [["render", Le]]);
670
671
  export {
671
- Xe as default
672
+ et as default
672
673
  };