@feedmepos/mf-payment 1.7.22-dev → 1.8.0

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 (46) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cuzla1oY.js → Actions.vue_vue_type_script_setup_true_lang-CX1_lQSw.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-D79gyND3.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BeMe0eWN.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-OINuOkas.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DfYsAAaC.js} +2 -2
  4. package/dist/{Chargeback-sQQp7fCd.js → Chargeback-xwB_glv5.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-C42uptsa.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js} +1 -1
  6. package/dist/{OnboardForm-9mnBqMmd.js → OnboardForm-DKhsjm3n.js} +717 -722
  7. package/dist/{OnboardForm-CaOEbQ22.js → OnboardForm-F2Qcvalp.js} +127 -128
  8. package/dist/{OnboardSubmission-BdRBebcC.js → OnboardSubmission-0hfx_f8i.js} +3 -3
  9. package/dist/{OnboardSubmission-BeP-x0v2.js → OnboardSubmission-D2ebcVnG.js} +6 -6
  10. package/dist/{PayoutAccount-DOFljBvE.js → PayoutAccount-CIek2Qnh.js} +5 -5
  11. package/dist/{PayoutAccount-PBySjzsl.js → PayoutAccount-Dw-_pf4z.js} +7 -7
  12. package/dist/{PayoutAccountSetting-CWAxe_Bk.js → PayoutAccountSetting-DSk8ZV9p.js} +6 -6
  13. package/dist/{Restaurant-DoMkz27y.js → Restaurant-Bdike4SW.js} +4 -4
  14. package/dist/{RestaurantSetting-Bz6qwpNC.js → RestaurantSetting-DSDzRmgE.js} +3 -3
  15. package/dist/{Settlement-CMayu7aU.js → Settlement-BEhvMZje.js} +4 -4
  16. package/dist/{Settlement-BYZHrs8E.js → Settlement-Cw6JGHxU.js} +3 -3
  17. package/dist/{SettlementTransactions-CRPIYXVW.js → SettlementTransactions-BlRbAo_K.js} +5 -5
  18. package/dist/{SettlementTransactions-CyxL85fB.js → SettlementTransactions-yczyKInV.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-DWJ_miup.js → Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js} +1 -1
  20. package/dist/{Terminal-DkwnRFFL.js → Terminal-BwHi929R.js} +5 -5
  21. package/dist/{TerminalSetting-CGlMvxa8.js → TerminalSetting-ZA-ADJVD.js} +5 -5
  22. package/dist/{Transaction-fm0B5nRC.js → Transaction-BvvdK0go.js} +11 -11
  23. package/dist/{Transaction-8t3Tgjwa.js → Transaction-DqwB7HTI.js} +10 -10
  24. package/dist/{TransactionOld-BCUkorA2.js → TransactionOld-B0fQrQ7W.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DRthK8zD.js → TransactionStatus.vue_vue_type_script_setup_true_lang-KpyoB07o.js} +1 -1
  26. package/dist/{app-HurNvNS5.js → app-v4m_QvHC.js} +352 -361
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-DVLU2t_q.js → assets-xspGnWqt.js} +1 -1
  29. package/dist/{grafana-BsMCGCzE.js → grafana-By90eHTE.js} +1 -1
  30. package/dist/{index-BwALxMhM.js → index-B-1dMDti.js} +1 -1
  31. package/dist/{index-BifkD6JA.js → index-BO4m11-f.js} +1 -1
  32. package/dist/{index-C4XdtTWx.js → index-Bm1fndT6.js} +1 -1
  33. package/dist/{index-nSB5f6HJ.js → index-CMIKOUH0.js} +1 -1
  34. package/dist/{index-BmEpfjpT.js → index-COhy5Sra.js} +1 -1
  35. package/dist/{index-03Hs823S.js → index-ClZtCkMC.js} +1 -1
  36. package/dist/{index-DsLgOa7d.js → index-CnoeFPh3.js} +1 -1
  37. package/dist/{index-DHD88s-a.js → index-D3G27Mr4.js} +2 -2
  38. package/dist/{index-CYzo-plj.js → index-DQ81tv1s.js} +1 -1
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-BsBHrQLx.js → index.vue_vue_type_script_setup_true_lang-FjfVgwqj.js} +1 -1
  40. package/dist/model/onboard-submission.d.ts +0 -1
  41. package/dist/onboard-submission-dp_mz2J_.js +23 -0
  42. package/dist/package.json +1 -1
  43. package/dist/{payout-account-D3OetCJc.js → payout-account-Dz18wMnQ.js} +3 -3
  44. package/dist/tsconfig.app.tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/dist/onboard-submission-CPRheDQl.js +0 -30
@@ -1,16 +1,15 @@
1
- import { defineComponent as Z, ref as E, computed as W, resolveComponent as C, openBlock as b, createElementBlock as P, createElementVNode as n, toDisplayString as U, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
2
- import { o as H } from "./index-DHD88s-a.js";
3
- import { u as te, p as oe } from "./index-BwALxMhM.js";
1
+ import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as P, createElementVNode as n, toDisplayString as U, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
2
+ import { o as H } from "./index-D3G27Mr4.js";
3
+ import { u as te, p as oe } from "./index-B-1dMDti.js";
4
4
  import { useRouter as ce } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-CTlVogBQ.js";
6
- import { P as ye } from "./payout-account-D3OetCJc.js";
7
- import { a as ge } from "./onboard-submission-CPRheDQl.js";
8
- import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-C42uptsa.js";
9
- import { s as Ve } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
- import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-DWJ_miup.js";
6
+ import { P as ye } from "./payout-account-Dz18wMnQ.js";
7
+ import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js";
8
+ import { s as ge } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
+ import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js";
11
10
  import { useSnackbar as ae } from "@feedmepos/ui-library";
12
11
  import { u as Q } from "./error-K1CakhA9.js";
13
- const ve = ["src"], F = /* @__PURE__ */ Z({
12
+ const Ve = ["src"], F = /* @__PURE__ */ Z({
14
13
  __name: "UploadButton",
15
14
  props: {
16
15
  modelValue: {},
@@ -20,7 +19,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
20
19
  },
21
20
  emits: ["update:modelValue"],
22
21
  setup(m, { emit: O }) {
23
- const v = m, k = E(v.modelValue), g = O, w = (a) => {
22
+ const v = m, k = $(v.modelValue), g = O, w = (a) => {
24
23
  const i = new FileReader();
25
24
  i.onload = (x) => {
26
25
  var V;
@@ -42,7 +41,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
42
41
  m.type === "image" ? (b(), P("img", {
43
42
  key: 0,
44
43
  src: I
45
- }, null, 8, ve)) : A("", !0),
44
+ }, null, 8, Ve)) : A("", !0),
46
45
  m.type === "pdf" ? (b(), T(x, {
47
46
  key: 1,
48
47
  class: "mt-4 w-full",
@@ -62,10 +61,10 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
62
61
  ]);
63
62
  };
64
63
  }
65
- }), fe = ["src"], ke = {
64
+ }), ve = ["src"], fe = {
66
65
  key: 0,
67
66
  class: "text-center text-red-700 py-4"
68
- }, Ce = { class: "flex justify-evenly py-3" }, Ne = /* @__PURE__ */ Z({
67
+ }, ke = { class: "flex justify-evenly py-3" }, Ce = /* @__PURE__ */ Z({
69
68
  __name: "SignatureBoard",
70
69
  props: {
71
70
  modelValue: {},
@@ -74,15 +73,15 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
74
73
  },
75
74
  emits: ["update:modelValue"],
76
75
  setup(m, { emit: O }) {
77
- const v = m, k = O, g = E(v.modelValue), w = E(!1), c = E(), R = E(!1);
76
+ const v = m, k = O, g = $(v.modelValue), w = $(!1), c = $(), R = $(!1);
78
77
  function a(x, V) {
79
78
  var D;
80
79
  const I = x.split(","), B = ((D = I[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", q = atob(I[1]);
81
80
  let p = q.length;
82
- const j = new Uint8Array(p);
81
+ const E = new Uint8Array(p);
83
82
  for (; p--; )
84
- j[p] = q.charCodeAt(p);
85
- return new File([j], V, { type: B });
83
+ E[p] = q.charCodeAt(p);
84
+ return new File([E], V, { type: B });
86
85
  }
87
86
  const i = function() {
88
87
  const { isEmpty: x, data: V } = c.value.saveSignature();
@@ -104,7 +103,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
104
103
  src: q,
105
104
  alt: "Signature Preview",
106
105
  class: "w-full h-auto"
107
- }, null, 8, fe)
106
+ }, null, 8, ve)
108
107
  ]),
109
108
  _: 1
110
109
  }, 8, ["document", "restaurant-id"])) : A("", !0),
@@ -124,15 +123,15 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
124
123
  n("div", null, "Signature Board", -1)
125
124
  ])]),
126
125
  default: f(() => [
127
- r(e(Ve), {
126
+ r(e(ge), {
128
127
  ref_key: "signaturePad",
129
128
  ref: c,
130
129
  height: "300px",
131
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
132
131
  options: { penColor: "#000000" }
133
132
  }, null, 512),
134
- w.value ? (b(), P("p", ke, " Please sign your signature before saving. ")) : A("", !0),
135
- n("div", Ce, [
133
+ w.value ? (b(), P("p", fe, " Please sign your signature before saving. ")) : A("", !0),
134
+ n("div", ke, [
136
135
  r(I, {
137
136
  variant: "destructive",
138
137
  label: "Clear",
@@ -151,13 +150,13 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
151
150
  ]);
152
151
  };
153
152
  }
154
- }), Se = { class: "space-y-2" }, we = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, xe = { class: "text-gray-900" }, Ie = { class: "grid grid-cols-4 gap-6" }, Re = ["src"], De = {
153
+ }), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, we = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, xe = { class: "grid grid-cols-4 gap-6" }, Ie = ["src"], Re = {
155
154
  key: 1,
156
155
  class: "mt-2 truncate text-gray-700"
157
- }, Te = { key: 0 }, Be = {
156
+ }, De = { key: 0 }, Te = {
158
157
  key: 0,
159
158
  class: "w-full flex justify-end mt-6"
160
- }, Ae = { class: "mt-6 grid grid-cols-4 gap-24" }, Ee = { class: "w-full flex justify-end mt-6" }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "col-span-2" }, Oe = { class: "col-span-2" }, Le = { class: "col-span-2" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-span-2" }, We = { class: "col-span-2" }, Je = { class: "col-start-1 col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Ye = { class: "mt-6 grid grid-cols-4 gap-6" }, he = { class: "mt-6 grid grid-cols-2 gap-24" }, ne = 30, Xe = /* @__PURE__ */ Z({
159
+ }, Be = { class: "mt-6 grid grid-cols-4 gap-24" }, Ae = { class: "w-full flex justify-end mt-6" }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "col-span-2" }, Ee = { class: "col-span-2" }, Oe = { class: "col-span-2" }, Le = { class: "col-span-2" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-span-2" }, We = { class: "col-start-1 col-span-2" }, Je = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-6" }, Ge = { class: "mt-6 grid grid-cols-2 gap-24" }, ne = 30, Ye = /* @__PURE__ */ Z({
161
160
  __name: "SoftspaceSubmission",
162
161
  props: {
163
162
  submission: {
@@ -167,7 +166,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
167
166
  },
168
167
  emits: ["update:submission"],
169
168
  setup(m, { emit: O }) {
170
- const v = m, k = O, g = ae(), w = E(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = E(""), p = E(
169
+ const v = m, k = O, g = ae(), w = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = $(""), p = $(
171
170
  v.submission.rates ? Object.fromEntries(
172
171
  Object.entries(v.submission.rates).map(([y, l]) => [y, `${l}`])
173
172
  ) : {
@@ -179,40 +178,40 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
179
178
  jcbStandard: "2.2",
180
179
  jcbPlatinum: "2.2"
181
180
  }
182
- ), j = W(
181
+ ), E = W(
183
182
  () => Object.values(p.value).every((y) => parseFloat(y) > 0)
184
- ), { isLoading: D, startAsyncCall: Y } = te(), M = E([]), _ = (y) => Number(y.replace("additionalDocument", "")), h = W(
183
+ ), { isLoading: D, startAsyncCall: G } = te(), M = $([]), _ = (y) => Number(y.replace("additionalDocument", "")), Y = W(
185
184
  () => Object.keys(v.submission.documents).filter((y) => /^additionalDocument\d+$/.test(y)).sort((y, l) => _(y) - _(l))
186
185
  ), ee = W(
187
- () => h.value.length + M.value.length
186
+ () => Y.value.length + M.value.length
188
187
  ), S = (y) => {
189
188
  if (!(ee.value >= ne)) {
190
189
  if (y.type.startsWith("image/")) {
191
190
  const l = new FileReader();
192
- l.onload = ($) => {
191
+ l.onload = (j) => {
193
192
  var L;
194
193
  return M.value.push({
195
194
  file: y,
196
- preview: String(((L = $.target) == null ? void 0 : L.result) ?? "")
195
+ preview: String(((L = j.target) == null ? void 0 : L.result) ?? "")
197
196
  });
198
197
  }, l.readAsDataURL(y);
199
198
  return;
200
199
  }
201
200
  M.value.push({ file: y, preview: "" });
202
201
  }
203
- }, s = () => Y(async () => {
202
+ }, s = () => G(async () => {
204
203
  try {
205
- let y = h.value.reduce(
206
- ($, L) => Math.max($, _(L)),
204
+ let y = Y.value.reduce(
205
+ (j, L) => Math.max(j, _(L)),
207
206
  0
208
207
  );
209
208
  const l = {};
210
- for (const { file: $ } of M.value) {
209
+ for (const { file: j } of M.value) {
211
210
  const L = `additionalDocument${++y}`;
212
211
  l[L] = await H.uploadDocument(
213
212
  x,
214
213
  L,
215
- $
214
+ j
216
215
  );
217
216
  }
218
217
  k(
@@ -279,64 +278,64 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
279
278
  }
280
279
  });
281
280
  return (y, l) => {
282
- const $ = C("FmButton"), L = C("FmDropField"), o = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
281
+ const j = C("FmButton"), L = C("FmDropField"), o = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
283
282
  return b(), P(J, null, [
284
- n("div", Se, [
283
+ n("div", Ne, [
285
284
  n("div", null, [
286
285
  l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
287
- n("span", we, U(e(x)), 1)
286
+ n("span", Se, U(e(x)), 1)
288
287
  ]),
289
288
  n("div", null, [
290
289
  l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
291
- n("span", qe, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
290
+ n("span", we, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
292
291
  ]),
293
292
  n("div", null, [
294
293
  l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
295
- n("span", Fe, U(e(V).email), 1)
294
+ n("span", qe, U(e(V).email), 1)
296
295
  ]),
297
296
  n("div", null, [
298
297
  l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
299
- n("span", Pe, U(e(V).phoneNo), 1)
298
+ n("span", Fe, U(e(V).phoneNo), 1)
300
299
  ]),
301
300
  n("div", null, [
302
301
  l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
303
- n("span", Ue, [
302
+ n("span", Pe, [
304
303
  r(ie, { data: e(I) }, null, 8, ["data"])
305
304
  ])
306
305
  ]),
307
306
  n("div", null, [
308
307
  l[39] || (l[39] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
309
- n("span", xe, U(e(B)), 1)
308
+ n("span", Ue, U(e(B)), 1)
310
309
  ])
311
310
  ]),
312
311
  l[51] || (l[51] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
313
- n("div", Ie, [
314
- (b(!0), P(J, null, le(h.value, (t) => (b(), T(F, {
312
+ n("div", xe, [
313
+ (b(!0), P(J, null, le(Y.value, (t) => (b(), T(F, {
315
314
  key: t,
316
315
  label: t.replace("additionalDocument", "Document "),
317
316
  type: /\.pdf$/i.test(v.submission.documents[t]) ? "pdf" : "image",
318
317
  modelValue: v.submission.documents[t],
319
- "onUpdate:modelValue": (G) => v.submission.documents[t] = G,
318
+ "onUpdate:modelValue": (h) => v.submission.documents[t] = h,
320
319
  "restaurant-id": e(x)
321
320
  }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
322
- (b(!0), P(J, null, le(M.value, (t, G) => (b(), P("div", {
323
- key: `new-${G}`
321
+ (b(!0), P(J, null, le(M.value, (t, h) => (b(), P("div", {
322
+ key: `new-${h}`
324
323
  }, [
325
- n("p", null, "Document " + U(h.value.length + G + 1), 1),
324
+ n("p", null, "Document " + U(Y.value.length + h + 1), 1),
326
325
  t.file.type.startsWith("image/") ? (b(), P("img", {
327
326
  key: 0,
328
327
  src: t.preview,
329
328
  class: "mt-2 rounded border"
330
- }, null, 8, Re)) : (b(), P("p", De, U(t.file.name), 1)),
331
- r($, {
329
+ }, null, 8, Ie)) : (b(), P("p", Re, U(t.file.name), 1)),
330
+ r(j, {
332
331
  class: "mt-4",
333
332
  "prepend-icon": "delete",
334
333
  label: "Remove",
335
334
  variant: "destructive",
336
- onClick: (ql) => M.value.splice(G, 1)
335
+ onClick: (wl) => M.value.splice(h, 1)
337
336
  }, null, 8, ["onClick"])
338
337
  ]))), 128)),
339
- ee.value < ne ? (b(), P("div", Te, [
338
+ ee.value < ne ? (b(), P("div", De, [
340
339
  n("p", null, "Document " + U(ee.value + 1), 1),
341
340
  r(L, {
342
341
  accept: ".png, .jpg, .jpeg, .pdf",
@@ -344,8 +343,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
344
343
  })
345
344
  ])) : A("", !0)
346
345
  ]),
347
- M.value.length ? (b(), P("div", Be, [
348
- r($, {
346
+ M.value.length ? (b(), P("div", Te, [
347
+ r(j, {
349
348
  type: "button",
350
349
  variant: "primary",
351
350
  "prepend-icon": "cloud_upload",
@@ -355,7 +354,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
355
354
  }, null, 8, ["loading"])
356
355
  ])) : A("", !0),
357
356
  l[52] || (l[52] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
358
- n("div", Ae, [
357
+ n("div", Be, [
359
358
  r(o, {
360
359
  modelValue: p.value.duitNow,
361
360
  "onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
@@ -476,13 +475,13 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
476
475
  _: 1
477
476
  }, 8, ["modelValue", "rules"])
478
477
  ]),
479
- n("div", Ee, [
478
+ n("div", Ae, [
480
479
  r(ue, {
481
480
  modelValue: w.value,
482
481
  "onUpdate:modelValue": l[8] || (l[8] = (t) => w.value = t)
483
482
  }, {
484
483
  "dialog-button": f(() => [
485
- r($, {
484
+ r(j, {
486
485
  class: "mr-6",
487
486
  type: "button",
488
487
  variant: "destructive",
@@ -502,7 +501,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
502
501
  "label-mark": "optional",
503
502
  "helper-text": "Please provide a reason for rejection."
504
503
  }, null, 8, ["modelValue"]),
505
- r($, {
504
+ r(j, {
506
505
  class: "mb-2 mt-6 w-full",
507
506
  label: "Submit",
508
507
  "prepend-icon": "save",
@@ -512,11 +511,11 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
512
511
  ]),
513
512
  _: 1
514
513
  }, 8, ["modelValue"]),
515
- r($, {
514
+ r(j, {
516
515
  type: "button",
517
516
  variant: "primary",
518
517
  "prepend-icon": "approval",
519
- disabled: !j.value,
518
+ disabled: !E.value,
520
519
  label: "Approve Submission with Rates",
521
520
  onClick: N,
522
521
  loading: e(c)
@@ -536,7 +535,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
536
535
  rules: e(u)(e(d).string().min(1, "Owner/Director Name is required"))
537
536
  }, null, 8, ["modelValue", "rules"])
538
537
  ]),
539
- n("div", Oe, [
538
+ n("div", Ee, [
540
539
  r(o, {
541
540
  modelValue: e(a).picRole,
542
541
  "onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
@@ -546,7 +545,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
546
545
  rules: e(u)(e(d).string().min(1, "Owner/Director Role is required"))
547
546
  }, null, 8, ["modelValue", "rules"])
548
547
  ]),
549
- n("div", Le, [
548
+ n("div", Oe, [
550
549
  r(o, {
551
550
  modelValue: e(a).picEmail,
552
551
  "onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
@@ -557,7 +556,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
557
556
  rules: e(u)(e(d).string().min(1, "Owner/Director Email is required"))
558
557
  }, null, 8, ["modelValue", "rules"])
559
558
  ]),
560
- n("div", Me, [
559
+ n("div", Le, [
561
560
  r(de, {
562
561
  "model-value": e(a).picContact,
563
562
  "onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
@@ -567,7 +566,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
567
566
  rules: e(u)(e(d).string().min(1, "Owner/Director Contact is required"))
568
567
  }, null, 8, ["model-value", "rules"])
569
568
  ]),
570
- n("div", He, [
569
+ n("div", Me, [
571
570
  r(o, {
572
571
  modelValue: e(a).tradingName,
573
572
  "onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).tradingName = t),
@@ -577,7 +576,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
577
576
  rules: e(u)(e(d).string().min(1, "Trading Name is required"))
578
577
  }, null, 8, ["modelValue", "rules"])
579
578
  ]),
580
- n("div", ze, [
579
+ n("div", He, [
581
580
  r(o, {
582
581
  modelValue: e(a).outletName,
583
582
  "onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletName = t),
@@ -587,7 +586,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
587
586
  rules: e(u)(e(d).string().min(1, "Registered Name is required"))
588
587
  }, null, 8, ["modelValue", "rules"])
589
588
  ]),
590
- n("div", We, [
589
+ n("div", ze, [
591
590
  r(o, {
592
591
  modelValue: e(a).outletAddress,
593
592
  "onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletAddress = t),
@@ -621,7 +620,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
621
620
  "label-mark": "required",
622
621
  rules: e(u)(e(d).string().min(1, "City is required"))
623
622
  }, null, 8, ["modelValue", "rules"]),
624
- n("div", Je, [
623
+ n("div", We, [
625
624
  r(se, {
626
625
  modelValue: e(a).businessType,
627
626
  "onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessType = t),
@@ -643,7 +642,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
643
642
  ]
644
643
  }, null, 8, ["modelValue", "rules"])
645
644
  ]),
646
- n("div", Qe, [
645
+ n("div", Je, [
647
646
  r(o, {
648
647
  modelValue: e(a).businessRegNo,
649
648
  "onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).businessRegNo = t),
@@ -653,7 +652,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
653
652
  rules: e(u)(e(d).string().min(1, "Reg No is required"))
654
653
  }, null, 8, ["modelValue", "rules"])
655
654
  ]),
656
- n("div", Ke, [
655
+ n("div", Qe, [
657
656
  r(o, {
658
657
  modelValue: e(a).tinNo,
659
658
  "onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).tinNo = t),
@@ -663,7 +662,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
663
662
  rules: e(u)(e(d).string().min(1, "TIN is required"))
664
663
  }, null, 8, ["modelValue", "rules"])
665
664
  ]),
666
- n("div", Ge, [
665
+ n("div", Ke, [
667
666
  r(o, {
668
667
  modelValue: e(a).sstNo,
669
668
  "onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).sstNo = t),
@@ -674,7 +673,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
674
673
  ])
675
674
  ]),
676
675
  l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
677
- n("div", Ye, [
676
+ n("div", he, [
678
677
  r(se, {
679
678
  modelValue: e(a).bankName,
680
679
  "onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankName = t),
@@ -718,9 +717,9 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
718
717
  (t) => !!e(i)[`onsitePhoto${t}`]
719
718
  ), (t) => (b(), T(F, {
720
719
  key: t,
721
- label: e(ge)[t - 1],
720
+ label: `Onsite Photo ${t}`,
722
721
  modelValue: e(i)[`onsitePhoto${t}`],
723
- "onUpdate:modelValue": (G) => e(i)[`onsitePhoto${t}`] = G,
722
+ "onUpdate:modelValue": (h) => e(i)[`onsitePhoto${t}`] = h,
724
723
  type: "image",
725
724
  "restaurant-id": m.submission.restaurantId
726
725
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
@@ -757,8 +756,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
757
756
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
758
757
  ]),
759
758
  l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
760
- n("div", he, [
761
- r(Ne, {
759
+ n("div", Ge, [
760
+ r(Ce, {
762
761
  modelValue: e(i).signature,
763
762
  "onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).signature = t),
764
763
  "restaurant-id": m.submission.restaurantId,
@@ -778,7 +777,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
778
777
  ], 64);
779
778
  };
780
779
  }
781
- }), Ze = { class: "space-y-2" }, _e = { class: "text-gray-900" }, el = { class: "text-gray-900" }, ll = { class: "text-gray-900" }, tl = { class: "text-gray-900" }, al = { class: "text-gray-900" }, sl = { class: "text-gray-900" }, nl = { class: "mt-6 grid grid-cols-4 gap-24" }, ol = { class: "w-full flex justify-end mt-6" }, rl = { class: "mt-6 grid grid-cols-4 gap-24" }, il = { class: "col-span-2" }, ul = { class: "col-span-2" }, dl = { class: "col-span-2" }, ml = { class: "col-span-2" }, pl = { class: "mt-6 grid grid-cols-4 gap-24" }, bl = { class: "mt-6 grid grid-cols-4 gap-24" }, cl = { class: "mt-6 grid grid-cols-4 gap-24" }, yl = { class: "col-span-2" }, gl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, vl = { class: "col-span-2" }, fl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = /* @__PURE__ */ Z({
780
+ }), Xe = { class: "space-y-2" }, Ze = { class: "text-gray-900" }, _e = { class: "text-gray-900" }, el = { class: "text-gray-900" }, ll = { class: "text-gray-900" }, tl = { class: "text-gray-900" }, al = { class: "text-gray-900" }, sl = { class: "mt-6 grid grid-cols-4 gap-24" }, nl = { class: "w-full flex justify-end mt-6" }, ol = { class: "mt-6 grid grid-cols-4 gap-24" }, rl = { class: "col-span-2" }, il = { class: "col-span-2" }, ul = { class: "col-span-2" }, dl = { class: "col-span-2" }, ml = { class: "mt-6 grid grid-cols-4 gap-24" }, pl = { class: "mt-6 grid grid-cols-4 gap-24" }, bl = { class: "mt-6 grid grid-cols-4 gap-24" }, cl = { class: "col-span-2" }, yl = { class: "col-span-2" }, gl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, vl = { class: "col-span-2" }, fl = { class: "col-span-2" }, kl = /* @__PURE__ */ Z({
782
781
  __name: "NTTSubmission",
783
782
  props: {
784
783
  submission: {
@@ -788,7 +787,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
788
787
  },
789
788
  emits: ["update:submission"],
790
789
  setup(m, { emit: O }) {
791
- const v = m, k = O, g = ae(), w = E(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = E(""), p = [
790
+ const v = m, k = O, g = ae(), w = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = $(""), p = [
792
791
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
793
792
  {
794
793
  key: "localCardStandard",
@@ -820,13 +819,13 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
820
819
  { key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
821
820
  { key: "linePay", label: "LinePay", defaultValue: "2.1" },
822
821
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
823
- ], j = Object.fromEntries(
822
+ ], E = Object.fromEntries(
824
823
  p.map((S) => [S.key, S.defaultValue])
825
- ), D = E(
824
+ ), D = $(
826
825
  v.submission.rates ? Object.fromEntries(
827
826
  Object.entries(v.submission.rates).map(([S, s]) => [S, `${s}`])
828
- ) : { ...j }
829
- ), Y = W(
827
+ ) : { ...E }
828
+ ), G = W(
830
829
  () => Object.values(D.value).every((S) => parseFloat(S) > 0)
831
830
  ), M = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), _ = () => R(async () => {
832
831
  try {
@@ -847,7 +846,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
847
846
  message: Q(S)
848
847
  });
849
848
  }
850
- }), h = () => R(async () => {
849
+ }), Y = () => R(async () => {
851
850
  try {
852
851
  const S = await H.reviewById(
853
852
  v.submission._id,
@@ -894,38 +893,38 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
894
893
  }
895
894
  });
896
895
  return (S, s) => {
897
- const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), $ = C("FmPhoneNumber"), L = C("FmForm");
896
+ const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), j = C("FmPhoneNumber"), L = C("FmForm");
898
897
  return b(), P(J, null, [
899
- n("div", Ze, [
898
+ n("div", Xe, [
900
899
  n("div", null, [
901
900
  s[31] || (s[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
902
- n("span", _e, U(e(x)), 1)
901
+ n("span", Ze, U(e(x)), 1)
903
902
  ]),
904
903
  n("div", null, [
905
904
  s[32] || (s[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
906
- n("span", el, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
905
+ n("span", _e, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
907
906
  ]),
908
907
  n("div", null, [
909
908
  s[33] || (s[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
910
- n("span", ll, U(e(V).email), 1)
909
+ n("span", el, U(e(V).email), 1)
911
910
  ]),
912
911
  n("div", null, [
913
912
  s[34] || (s[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
914
- n("span", tl, U(e(V).phoneNo), 1)
913
+ n("span", ll, U(e(V).phoneNo), 1)
915
914
  ]),
916
915
  n("div", null, [
917
916
  s[35] || (s[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
918
- n("span", al, [
917
+ n("span", tl, [
919
918
  r(ie, { data: e(I) }, null, 8, ["data"])
920
919
  ])
921
920
  ]),
922
921
  n("div", null, [
923
922
  s[36] || (s[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
924
- n("span", sl, U(e(B)), 1)
923
+ n("span", al, U(e(B)), 1)
925
924
  ])
926
925
  ]),
927
926
  s[43] || (s[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
928
- n("div", nl, [
927
+ n("div", sl, [
929
928
  (b(), P(J, null, le(p, (o) => r(N, {
930
929
  key: o.key,
931
930
  modelValue: D.value[o.key],
@@ -945,7 +944,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
945
944
  _: 1
946
945
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
947
946
  ]),
948
- n("div", ol, [
947
+ n("div", nl, [
949
948
  r(l, {
950
949
  modelValue: w.value,
951
950
  "onUpdate:modelValue": s[1] || (s[1] = (o) => w.value = o)
@@ -986,8 +985,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
986
985
  variant: "primary",
987
986
  "prepend-icon": "approval",
988
987
  label: "Approve Submission with Rates",
989
- disabled: !Y.value,
990
- onClick: h,
988
+ disabled: !G.value,
989
+ onClick: Y,
991
990
  loading: e(c)
992
991
  }, null, 8, ["disabled", "loading"]),
993
992
  e(I) === "approved" ? (b(), T(X, {
@@ -1004,8 +1003,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1004
1003
  r(L, { disabled: !0 }, {
1005
1004
  default: f(() => [
1006
1005
  s[39] || (s[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
1007
- n("div", rl, [
1008
- n("div", il, [
1006
+ n("div", ol, [
1007
+ n("div", rl, [
1009
1008
  r(N, {
1010
1009
  modelValue: e(a).companyName,
1011
1010
  "onUpdate:modelValue": s[2] || (s[2] = (o) => e(a).companyName = o),
@@ -1014,7 +1013,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1014
1013
  rules: e(u)(e(d).string().min(1, "Company Name is required"))
1015
1014
  }, null, 8, ["modelValue", "rules"])
1016
1015
  ]),
1017
- n("div", ul, [
1016
+ n("div", il, [
1018
1017
  r(N, {
1019
1018
  modelValue: e(a).outletName,
1020
1019
  "onUpdate:modelValue": s[3] || (s[3] = (o) => e(a).outletName = o),
@@ -1023,7 +1022,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1023
1022
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
1024
1023
  }, null, 8, ["modelValue", "rules"])
1025
1024
  ]),
1026
- n("div", dl, [
1025
+ n("div", ul, [
1027
1026
  r(N, {
1028
1027
  modelValue: e(a).outletNameEnglish,
1029
1028
  "onUpdate:modelValue": s[4] || (s[4] = (o) => e(a).outletNameEnglish = o),
@@ -1032,7 +1031,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1032
1031
  rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
1033
1032
  }, null, 8, ["modelValue", "rules"])
1034
1033
  ]),
1035
- n("div", ml, [
1034
+ n("div", dl, [
1036
1035
  r(N, {
1037
1036
  modelValue: e(a).outletAddress,
1038
1037
  "onUpdate:modelValue": s[5] || (s[5] = (o) => e(a).outletAddress = o),
@@ -1075,7 +1074,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1075
1074
  }, null, 8, ["modelValue"])
1076
1075
  ]),
1077
1076
  s[40] || (s[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
1078
- n("div", pl, [
1077
+ n("div", ml, [
1079
1078
  r(N, {
1080
1079
  modelValue: e(a).bankName,
1081
1080
  "onUpdate:modelValue": s[10] || (s[10] = (o) => e(a).bankName = o),
@@ -1113,7 +1112,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1113
1112
  }, null, 8, ["modelValue", "rules"])
1114
1113
  ]),
1115
1114
  s[41] || (s[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1116
- n("div", bl, [
1115
+ n("div", pl, [
1117
1116
  r(F, {
1118
1117
  label: "Authorized Person ID",
1119
1118
  modelValue: e(i).authorizedPersonID,
@@ -1168,8 +1167,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1168
1167
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
1169
1168
  ]),
1170
1169
  s[42] || (s[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1171
- n("div", cl, [
1172
- n("div", yl, [
1170
+ n("div", bl, [
1171
+ n("div", cl, [
1173
1172
  r(N, {
1174
1173
  modelValue: e(a).picName,
1175
1174
  "onUpdate:modelValue": s[22] || (s[22] = (o) => e(a).picName = o),
@@ -1178,7 +1177,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1178
1177
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
1179
1178
  }, null, 8, ["modelValue", "rules"])
1180
1179
  ]),
1181
- n("div", gl, [
1180
+ n("div", yl, [
1182
1181
  r(N, {
1183
1182
  modelValue: e(a).picRole,
1184
1183
  "onUpdate:modelValue": s[23] || (s[23] = (o) => e(a).picRole = o),
@@ -1187,7 +1186,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1187
1186
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
1188
1187
  }, null, 8, ["modelValue", "rules"])
1189
1188
  ]),
1190
- n("div", Vl, [
1189
+ n("div", gl, [
1191
1190
  r(N, {
1192
1191
  modelValue: e(a).picEmail,
1193
1192
  "onUpdate:modelValue": s[24] || (s[24] = (o) => e(a).picEmail = o),
@@ -1196,8 +1195,8 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1196
1195
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
1197
1196
  }, null, 8, ["modelValue", "rules"])
1198
1197
  ]),
1199
- n("div", vl, [
1200
- r($, {
1198
+ n("div", Vl, [
1199
+ r(j, {
1201
1200
  "model-value": e(a).picContact,
1202
1201
  "onUpdate:modelValue": s[25] || (s[25] = (o) => e(a).picContact = o),
1203
1202
  "default-country": "TH",
@@ -1206,7 +1205,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1206
1205
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
1207
1206
  }, null, 8, ["model-value", "rules"])
1208
1207
  ]),
1209
- n("div", fl, [
1208
+ n("div", vl, [
1210
1209
  r(N, {
1211
1210
  modelValue: e(a).witnessName,
1212
1211
  "onUpdate:modelValue": s[26] || (s[26] = (o) => e(a).witnessName = o),
@@ -1215,7 +1214,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1215
1214
  rules: e(u)(e(d).string().min(1, "Witness Name is required"))
1216
1215
  }, null, 8, ["modelValue", "rules"])
1217
1216
  ]),
1218
- n("div", kl, [
1217
+ n("div", fl, [
1219
1218
  r(N, {
1220
1219
  modelValue: e(a).witnessRole,
1221
1220
  "onUpdate:modelValue": s[27] || (s[27] = (o) => e(a).witnessRole = o),
@@ -1252,7 +1251,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1252
1251
  ], 64);
1253
1252
  };
1254
1253
  }
1255
- }), Nl = /* @__PURE__ */ Z({
1254
+ }), Cl = /* @__PURE__ */ Z({
1256
1255
  __name: "TyroSubmission",
1257
1256
  props: {
1258
1257
  submission: {
@@ -1317,10 +1316,10 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1317
1316
  });
1318
1317
  };
1319
1318
  }
1320
- }), Sl = {
1319
+ }), Nl = {
1321
1320
  key: 0,
1322
1321
  class: "flex items-center justify-center min-h-[80vh]"
1323
- }, wl = { class: "px-32 pb-32" }, jl = /* @__PURE__ */ Z({
1322
+ }, Sl = { class: "px-32 pb-32" }, $l = /* @__PURE__ */ Z({
1324
1323
  __name: "OnboardForm",
1325
1324
  props: {
1326
1325
  submissionId: {
@@ -1329,7 +1328,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1329
1328
  }
1330
1329
  },
1331
1330
  setup(m) {
1332
- const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, w = ce(), c = E(null), R = W(
1331
+ const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, w = ce(), c = $(null), R = W(
1333
1332
  () => {
1334
1333
  var B;
1335
1334
  return ((B = c.value) == null ? void 0 : B.type) === oe.FdoOnboardType.enum.tyro;
@@ -1350,15 +1349,15 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1350
1349
  if (!c.value) return null;
1351
1350
  switch (c.value.type) {
1352
1351
  case "softspace":
1353
- return Xe;
1352
+ return Ye;
1354
1353
  case "ntt":
1355
- return Cl;
1354
+ return kl;
1356
1355
  case "tyro":
1357
- return Nl;
1356
+ return Cl;
1358
1357
  default:
1359
1358
  return null;
1360
1359
  }
1361
- }), x = E(0);
1360
+ }), x = $(0);
1362
1361
  function V(B) {
1363
1362
  c.value = B, x.value = Date.now();
1364
1363
  }
@@ -1367,9 +1366,9 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1367
1366
  if (c.value)
1368
1367
  switch (B) {
1369
1368
  case "preview":
1370
- let j;
1369
+ let E;
1371
1370
  try {
1372
- j = k.open({
1371
+ E = k.open({
1373
1372
  message: "Generating preview document...",
1374
1373
  type: "info"
1375
1374
  }), await H.previewDocument(
@@ -1382,7 +1381,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1382
1381
  message: Q(D)
1383
1382
  });
1384
1383
  } finally {
1385
- j && k.close(j);
1384
+ E && k.close(E);
1386
1385
  }
1387
1386
  break;
1388
1387
  case "send":
@@ -1407,14 +1406,14 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1407
1406
  }
1408
1407
  };
1409
1408
  return (B, q) => {
1410
- var D, Y;
1411
- const p = C("FmCircularProgress"), j = C("FmPageHead");
1412
- return e(v) ? (b(), P("div", Sl, [
1409
+ var D, G;
1410
+ const p = C("FmCircularProgress"), E = C("FmPageHead");
1411
+ return e(v) ? (b(), P("div", Nl, [
1413
1412
  r(p, { size: "xxl" })
1414
1413
  ])) : (b(), P(J, { key: 1 }, [
1415
- r(j, {
1414
+ r(E, {
1416
1415
  title: `Submission - ${(D = c.value) == null ? void 0 : D.type}`,
1417
- description: `ID - ${(Y = c.value) == null ? void 0 : Y._id}`,
1416
+ description: `ID - ${(G = c.value) == null ? void 0 : G._id}`,
1418
1417
  "back-button": !0,
1419
1418
  "onClick:back": a,
1420
1419
  "onClick:action": I,
@@ -1432,7 +1431,7 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1432
1431
  }
1433
1432
  ]
1434
1433
  }, null, 8, ["title", "description", "actions"]),
1435
- n("div", wl, [
1434
+ n("div", Sl, [
1436
1435
  (b(), T(be(i.value), {
1437
1436
  key: x.value,
1438
1437
  submission: c.value,
@@ -1444,5 +1443,5 @@ const ve = ["src"], F = /* @__PURE__ */ Z({
1444
1443
  }
1445
1444
  });
1446
1445
  export {
1447
- jl as default
1446
+ $l as default
1448
1447
  };