@vpdev2/metakyc 1.0.3 → 1.0.4

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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var he = (e, t, n) => Kt(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import qt from "axios";
5
5
  import * as It from "react";
6
6
  import we, { createContext as Vt, useState as k, useMemo as De, useEffect as ge, useContext as Yt, useRef as de, useCallback as ae, forwardRef as yt, createElement as wt } from "react";
7
- import { jsx as r, jsxs as o, Fragment as lt } from "react/jsx-runtime";
7
+ import { jsxs as o, jsx as r, Fragment as lt } from "react/jsx-runtime";
8
8
  import Qt, { createPortal as St } from "react-dom";
9
9
  import { useForm as Gt, Controller as et } from "react-hook-form";
10
10
  import { z as Ve } from "zod";
@@ -1409,10 +1409,10 @@ function Mt(e, t) {
1409
1409
  i.src = e, t && (i.id = t), i.async = !0, i.onload = () => n(), i.onerror = () => a(new Error(`Failed to load script: ${e}`)), document.head.appendChild(i);
1410
1410
  });
1411
1411
  }
1412
- function Wn(e) {
1412
+ function Un(e) {
1413
1413
  return !!document.getElementById(e);
1414
1414
  }
1415
- function Un(e) {
1415
+ function Kn(e) {
1416
1416
  const t = document.getElementById(e);
1417
1417
  t && t.remove();
1418
1418
  }
@@ -1955,7 +1955,7 @@ class Br {
1955
1955
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1956
1956
  }
1957
1957
  }
1958
- const Ot = Vt(null), Kn = ({ config: e, children: t }) => {
1958
+ const Ot = Vt(null), _r = "1.0.4", qn = ({ config: e, children: t }) => {
1959
1959
  const [n, a] = k(null), i = we.useRef(!1), s = we.useRef(!1), c = De(() => {
1960
1960
  const y = new pr(e), p = new mr(y), b = new yr(y), P = new hr(y), v = new fr(y), A = new gr(y), T = new br(y), w = new xr(y), N = new vr(y), z = new kr(y), Q = new Er(y), M = new Br();
1961
1961
  return {
@@ -2008,7 +2008,29 @@ const Ot = Vt(null), Kn = ({ config: e, children: t }) => {
2008
2008
  }
2009
2009
  })(), () => {
2010
2010
  c.themeManager.cleanup();
2011
- }), []), /* @__PURE__ */ r(Ot.Provider, { value: d, children: t });
2011
+ }), []), /* @__PURE__ */ o(Ot.Provider, { value: d, children: [
2012
+ e.showVersion && /* @__PURE__ */ o(
2013
+ "div",
2014
+ {
2015
+ style: {
2016
+ fontSize: "0.625rem",
2017
+ color: "var(--metakyc-text-muted, #9ca3af)",
2018
+ opacity: 0.5,
2019
+ textAlign: "right",
2020
+ padding: "2px 8px",
2021
+ userSelect: "none",
2022
+ pointerEvents: "none",
2023
+ letterSpacing: "0.02em",
2024
+ lineHeight: 1
2025
+ },
2026
+ children: [
2027
+ "SDK v",
2028
+ _r
2029
+ ]
2030
+ }
2031
+ ),
2032
+ t
2033
+ ] });
2012
2034
  };
2013
2035
  function Te() {
2014
2036
  const e = Yt(Ot);
@@ -2016,7 +2038,7 @@ function Te() {
2016
2038
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
2017
2039
  return e;
2018
2040
  }
2019
- async function _r(e) {
2041
+ async function Hr(e) {
2020
2042
  return new Promise((t, n) => {
2021
2043
  const a = new FileReader();
2022
2044
  a.readAsDataURL(e), a.onload = () => {
@@ -2025,10 +2047,10 @@ async function _r(e) {
2025
2047
  }, a.onerror = (i) => n(i);
2026
2048
  });
2027
2049
  }
2028
- function qn(e, t) {
2050
+ function Vn(e, t) {
2029
2051
  return e.size <= t;
2030
2052
  }
2031
- function Vn(e, t) {
2053
+ function Yn(e, t) {
2032
2054
  return t.split(",").map((a) => a.trim()).some((a) => {
2033
2055
  if (a.endsWith("/*")) {
2034
2056
  const i = a.slice(0, -2);
@@ -2042,7 +2064,7 @@ function xt(e) {
2042
2064
  const t = 1024, n = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
2043
2065
  return Math.round(e / Math.pow(t, a) * 100) / 100 + " " + n[a];
2044
2066
  }
2045
- function Yn(e) {
2067
+ function Qn(e) {
2046
2068
  return e;
2047
2069
  }
2048
2070
  function Ae(...e) {
@@ -2059,7 +2081,7 @@ function jr(e) {
2059
2081
  console.warn("Failed to save applicant ID to storage:", t);
2060
2082
  }
2061
2083
  }
2062
- function Hr() {
2084
+ function Wr() {
2063
2085
  try {
2064
2086
  const e = localStorage.getItem(ct.APPLICANT_ID);
2065
2087
  return e ? parseInt(e, 10) : null;
@@ -2067,21 +2089,21 @@ function Hr() {
2067
2089
  return console.warn("Failed to retrieve applicant ID from storage:", e), null;
2068
2090
  }
2069
2091
  }
2070
- function Wr() {
2092
+ function Ur() {
2071
2093
  try {
2072
2094
  localStorage.removeItem(ct.APPLICANT_ID);
2073
2095
  } catch (e) {
2074
2096
  console.warn("Failed to clear applicant ID from storage:", e);
2075
2097
  }
2076
2098
  }
2077
- function Ur(e) {
2099
+ function Kr(e) {
2078
2100
  try {
2079
2101
  localStorage.setItem(ct.WORKFLOW_STATE, JSON.stringify(e));
2080
2102
  } catch (t) {
2081
2103
  console.warn("Failed to save workflow state to storage:", t);
2082
2104
  }
2083
2105
  }
2084
- function Qn() {
2106
+ function Gn() {
2085
2107
  try {
2086
2108
  const e = localStorage.getItem(ct.WORKFLOW_STATE);
2087
2109
  return e ? JSON.parse(e) : null;
@@ -2089,23 +2111,23 @@ function Qn() {
2089
2111
  return console.warn("Failed to retrieve workflow state from storage:", e), null;
2090
2112
  }
2091
2113
  }
2092
- function Kr() {
2114
+ function qr() {
2093
2115
  try {
2094
2116
  localStorage.removeItem(ct.WORKFLOW_STATE);
2095
2117
  } catch (e) {
2096
2118
  console.warn("Failed to clear workflow state from storage:", e);
2097
2119
  }
2098
2120
  }
2099
- function Gn() {
2100
- Wr(), Kr();
2121
+ function Jn() {
2122
+ Ur(), qr();
2101
2123
  }
2102
- function qr(e) {
2103
- const { createOrchestrator: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(null), y = de(null), p = e || Hr();
2124
+ function Vr(e) {
2125
+ const { createOrchestrator: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(null), y = de(null), p = e || Wr();
2104
2126
  ge(() => {
2105
2127
  y.current || (y.current = t());
2106
2128
  }, [t]), ge(() => {
2107
2129
  var M;
2108
- n && p && (jr(p), Ur({
2130
+ n && p && (jr(p), Kr({
2109
2131
  applicantId: p,
2110
2132
  currentStepOrder: (M = n.currentStep) == null ? void 0 : M.order,
2111
2133
  status: n.status,
@@ -2179,15 +2201,15 @@ function qr(e) {
2179
2201
  s(!0), d(null);
2180
2202
  try {
2181
2203
  await y.current.submitCurrentStep(M);
2182
- const j = await y.current.refreshProgress();
2183
- a(j);
2184
- } catch (j) {
2185
- throw d(j), j;
2204
+ const H = await y.current.refreshProgress();
2205
+ a(H);
2206
+ } catch (H) {
2207
+ throw d(H), H;
2186
2208
  } finally {
2187
2209
  s(!1);
2188
2210
  }
2189
2211
  }
2190
- }, []), z = It.useMemo(() => n != null && n.stepInfoList ? [...n.stepInfoList].sort((M, j) => M.order - j.order) : [], [n == null ? void 0 : n.stepInfoList]), Q = It.useMemo(() => n ? n.nextWorkflowKey && n.nextWorkflowKey !== n.workFlowKey : !1, [n]);
2212
+ }, []), z = It.useMemo(() => n != null && n.stepInfoList ? [...n.stepInfoList].sort((M, H) => M.order - H.order) : [], [n == null ? void 0 : n.stepInfoList]), Q = It.useMemo(() => n ? n.nextWorkflowKey && n.nextWorkflowKey !== n.workFlowKey : !1, [n]);
2191
2213
  return {
2192
2214
  progress: n,
2193
2215
  applicantId: p,
@@ -2209,7 +2231,7 @@ function qr(e) {
2209
2231
  orchestrator: y.current
2210
2232
  };
2211
2233
  }
2212
- function Vr(e) {
2234
+ function Yr(e) {
2213
2235
  const { questionnaireService: t, applicantService: n } = Te(), [a, i] = k(null), [s, c] = k({}), [d, y] = k(!1), [p, b] = k(!1), [P, v] = k(null), A = de(!1), T = de(null), w = ae(async () => {
2214
2236
  var z, Q;
2215
2237
  if (e) {
@@ -2219,13 +2241,13 @@ function Vr(e) {
2219
2241
  }
2220
2242
  A.current = !0, y(!0), v(null);
2221
2243
  try {
2222
- const [M, j] = await Promise.all([
2244
+ const [M, H] = await Promise.all([
2223
2245
  t.getQuestionnaire(e),
2224
2246
  n.getApplicantData(e).catch(() => null)
2225
2247
  ]);
2226
- if (i(M), (z = j == null ? void 0 : j.questionnaireResults) != null && z.length && M) {
2248
+ if (i(M), (z = H == null ? void 0 : H.questionnaireResults) != null && z.length && M) {
2227
2249
  const K = /* @__PURE__ */ new Map();
2228
- for (const g of j.questionnaireResults)
2250
+ for (const g of H.questionnaireResults)
2229
2251
  g.question && ((Q = g.answers) != null && Q.length) && K.set(g.question.trim().toLowerCase(), g.answers);
2230
2252
  const ee = {}, E = M.questionGroups.flatMap((g) => g.questions ?? []);
2231
2253
  for (const g of E) {
@@ -2268,7 +2290,7 @@ function Vr(e) {
2268
2290
  submit: N
2269
2291
  };
2270
2292
  }
2271
- function Yr(e) {
2293
+ function Qr(e) {
2272
2294
  const { uploadDocumentService: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(!1), [y, p] = k(0), [b, P] = k(null), v = de(!1), A = de(null), T = ae(async () => {
2273
2295
  if (e) {
2274
2296
  if (v.current) {
@@ -2312,7 +2334,7 @@ function Yr(e) {
2312
2334
  submit: w
2313
2335
  };
2314
2336
  }
2315
- function Jn(e) {
2337
+ function Zn(e) {
2316
2338
  const { appropriatenessTestService: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(!1), [y, p] = k(null), [b, P] = k(null), v = de(!1), A = de(null), T = ae(async () => {
2317
2339
  if (e) {
2318
2340
  if (v.current) {
@@ -2357,7 +2379,7 @@ function Jn(e) {
2357
2379
  submit: w
2358
2380
  };
2359
2381
  }
2360
- function Qr(e) {
2382
+ function Gr(e) {
2361
2383
  const { overviewService: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(!1), [y, p] = k(null), b = de(!1), P = de(null), v = ae(async () => {
2362
2384
  if (e) {
2363
2385
  if (b.current) {
@@ -2399,7 +2421,7 @@ function Qr(e) {
2399
2421
  passOverview: A
2400
2422
  };
2401
2423
  }
2402
- function Gr(e) {
2424
+ function Jr(e) {
2403
2425
  const { identityService: t } = Te(), [n, a] = k(
2404
2426
  null
2405
2427
  ), [i, s] = k(!1), [c, d] = k(null), y = de(!1), p = ae(
@@ -2485,7 +2507,7 @@ function Gr(e) {
2485
2507
  restartIdentity: P
2486
2508
  };
2487
2509
  }
2488
- function Jr(e) {
2510
+ function Zr(e) {
2489
2511
  const { riskScoringService: t, applicantService: n } = Te(), [a, i] = k(null), [s, c] = k({}), [d, y] = k(!1), [p, b] = k(!1), [P, v] = k(null), [A, T] = k(null), w = de(!1), N = de(null), z = ae(async () => {
2490
2512
  var M;
2491
2513
  if (e) {
@@ -2495,11 +2517,11 @@ function Jr(e) {
2495
2517
  }
2496
2518
  w.current = !0, y(!0), v(null);
2497
2519
  try {
2498
- const [j, K] = await Promise.all([
2520
+ const [H, K] = await Promise.all([
2499
2521
  t.getRiskCriterias(e),
2500
2522
  n.getApplicantData(e).catch(() => null)
2501
2523
  ]);
2502
- if (i(j), (M = K == null ? void 0 : K.riskScoringResults) != null && M.length) {
2524
+ if (i(H), (M = K == null ? void 0 : K.riskScoringResults) != null && M.length) {
2503
2525
  const ee = K.riskScoringResults[0], E = {};
2504
2526
  for (const g of ee.riskCriteriaResults ?? [])
2505
2527
  if (g.riskCriteriaId != null && g.answer != null && g.answer !== "") {
@@ -2511,8 +2533,8 @@ function Jr(e) {
2511
2533
  c(E);
2512
2534
  }
2513
2535
  N.current = e;
2514
- } catch (j) {
2515
- v(j);
2536
+ } catch (H) {
2537
+ v(H);
2516
2538
  } finally {
2517
2539
  y(!1), w.current = !1;
2518
2540
  }
@@ -2525,10 +2547,10 @@ function Jr(e) {
2525
2547
  async (M) => {
2526
2548
  b(!0), v(null);
2527
2549
  try {
2528
- const j = await t.submitRiskScoring(M);
2529
- return T(j), j;
2530
- } catch (j) {
2531
- throw v(j), j;
2550
+ const H = await t.submitRiskScoring(M);
2551
+ return T(H), H;
2552
+ } catch (H) {
2553
+ throw v(H), H;
2532
2554
  } finally {
2533
2555
  b(!1);
2534
2556
  }
@@ -2620,7 +2642,7 @@ function zt() {
2620
2642
  stopProgress: v
2621
2643
  };
2622
2644
  }
2623
- const Zr = {
2645
+ const Xr = {
2624
2646
  primary: {
2625
2647
  backgroundColor: "var(--metakyc-primary, #2563eb)",
2626
2648
  color: "#ffffff",
@@ -2681,7 +2703,7 @@ const Zr = {
2681
2703
  opacity: i || a ? 0.5 : 1,
2682
2704
  lineHeight: "1.25rem",
2683
2705
  ...b[n],
2684
- ...Zr[t],
2706
+ ...Xr[t],
2685
2707
  ...c
2686
2708
  },
2687
2709
  disabled: i || a,
@@ -2818,7 +2840,7 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2818
2840
  ...a,
2819
2841
  children: e
2820
2842
  }
2821
- ), Xr = {
2843
+ ), en = {
2822
2844
  // Theme-aware variants
2823
2845
  default: {
2824
2846
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
@@ -2848,7 +2870,7 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2848
2870
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
2849
2871
  n
2850
2872
  ),
2851
- style: { ...Xr[t], ...a },
2873
+ style: { ...en[t], ...a },
2852
2874
  ...i,
2853
2875
  children: e
2854
2876
  }
@@ -2955,7 +2977,7 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2955
2977
  ] })
2956
2978
  );
2957
2979
  Ct.displayName = "Select";
2958
- const Et = 280, en = ({
2980
+ const Et = 280, tn = ({
2959
2981
  label: e,
2960
2982
  value: t,
2961
2983
  onChange: n,
@@ -2973,12 +2995,12 @@ const Et = 280, en = ({
2973
2995
  primaryColor: "#2563eb",
2974
2996
  primaryLight: "#eff6ff",
2975
2997
  hoverBg: "#f9fafb"
2976
- }), z = de(null), Q = de(null), M = de(null), j = ae(() => {
2998
+ }), z = de(null), Q = de(null), M = de(null), H = ae(() => {
2977
2999
  if (!Q.current) return null;
2978
3000
  const F = Q.current.getBoundingClientRect(), B = window.innerHeight - F.bottom < Et && F.top > Et;
2979
3001
  return { top: B ? F.top : F.bottom + 4, left: F.left, width: F.width, openUp: B };
2980
3002
  }, []), K = ae(() => {
2981
- const F = getComputedStyle(document.documentElement), U = (H, fe) => F.getPropertyValue(H).trim() || fe, B = U("--metakyc-input-bg", U("--metakyc-background", "#ffffff"));
3003
+ const F = getComputedStyle(document.documentElement), U = (j, fe) => F.getPropertyValue(j).trim() || fe, B = U("--metakyc-input-bg", U("--metakyc-background", "#ffffff"));
2982
3004
  N({
2983
3005
  bg: B,
2984
3006
  borderColor: U("--metakyc-input-border", U("--metakyc-border", "#d1d5db")),
@@ -2991,29 +3013,29 @@ const Et = 280, en = ({
2991
3013
  }, []), ee = ae(() => {
2992
3014
  if (y) return;
2993
3015
  K();
2994
- const F = j();
3016
+ const F = H();
2995
3017
  F && T(F), b(!0);
2996
- }, [y, j, K]), E = ae(() => {
3018
+ }, [y, H, K]), E = ae(() => {
2997
3019
  b(!1), v("");
2998
3020
  }, []);
2999
3021
  ge(() => {
3000
3022
  if (!p) return;
3001
3023
  const F = (U) => {
3002
- var H, fe;
3024
+ var j, fe;
3003
3025
  const B = U.target;
3004
- !((H = z.current) != null && H.contains(B)) && !((fe = M.current) != null && fe.contains(B)) && E();
3026
+ !((j = z.current) != null && j.contains(B)) && !((fe = M.current) != null && fe.contains(B)) && E();
3005
3027
  };
3006
3028
  return document.addEventListener("mousedown", F), () => document.removeEventListener("mousedown", F);
3007
3029
  }, [p, E]), ge(() => {
3008
3030
  if (!p) return;
3009
3031
  const F = () => {
3010
- const U = j();
3032
+ const U = H();
3011
3033
  U && T(U);
3012
3034
  };
3013
3035
  return window.addEventListener("scroll", F, !0), window.addEventListener("resize", F), () => {
3014
3036
  window.removeEventListener("scroll", F, !0), window.removeEventListener("resize", F);
3015
3037
  };
3016
- }, [p, j]);
3038
+ }, [p, H]);
3017
3039
  const g = a.filter(
3018
3040
  (F) => F.label.toLowerCase().includes(P.toLowerCase())
3019
3041
  ), $ = (F) => {
@@ -3245,7 +3267,7 @@ const Et = 280, en = ({
3245
3267
  primary: "#2563eb",
3246
3268
  primaryLight: "#eff6ff",
3247
3269
  hoverBg: "#f9fafb"
3248
- }), j = ae(() => {
3270
+ }), H = ae(() => {
3249
3271
  const R = getComputedStyle(document.documentElement), te = (oe, Ne) => R.getPropertyValue(oe).trim() || Ne, ye = te("--metakyc-input-bg", te("--metakyc-background", "#ffffff"));
3250
3272
  M({
3251
3273
  bg: ye,
@@ -3267,10 +3289,10 @@ const Et = 280, en = ({
3267
3289
  };
3268
3290
  }, []), V = ae(() => {
3269
3291
  if (P) return;
3270
- j();
3292
+ H();
3271
3293
  const R = $();
3272
3294
  R && z(R), A(!0);
3273
- }, [P, $, j]), G = ae(() => {
3295
+ }, [P, $, H]), G = ae(() => {
3274
3296
  A(!1), w("");
3275
3297
  }, []), _ = () => v ? G() : V();
3276
3298
  ge(() => {
@@ -3300,7 +3322,7 @@ const Et = 280, en = ({
3300
3322
  (R) => R.label.toLowerCase().includes(T.toLowerCase()) || R.value.toLowerCase().includes(T.toLowerCase())
3301
3323
  ), ie = (fe = a.find((R) => R.value === s)) == null ? void 0 : fe.label, Y = (R, te) => {
3302
3324
  P || te || (c(R), G());
3303
- }, { bg: ve, border: pe, text: me, textSecondary: ke, primary: F, primaryLight: U, hoverBg: B } = Q, H = v && N && /* @__PURE__ */ o(
3325
+ }, { bg: ve, border: pe, text: me, textSecondary: ke, primary: F, primaryLight: U, hoverBg: B } = Q, j = v && N && /* @__PURE__ */ o(
3304
3326
  "div",
3305
3327
  {
3306
3328
  ref: E,
@@ -3447,7 +3469,7 @@ const Et = 280, en = ({
3447
3469
  ]
3448
3470
  }
3449
3471
  ),
3450
- typeof document < "u" && H ? St(H, document.body) : null,
3472
+ typeof document < "u" && j ? St(j, document.body) : null,
3451
3473
  t && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-error, #ef4444)" }, children: t }),
3452
3474
  !t && n && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n })
3453
3475
  ]
@@ -3455,11 +3477,11 @@ const Et = 280, en = ({
3455
3477
  );
3456
3478
  };
3457
3479
  qe.displayName = "SearchableSelect";
3458
- function tn(e) {
3480
+ function rn(e) {
3459
3481
  const t = e.type;
3460
3482
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
3461
3483
  }
3462
- const rn = ({
3484
+ const nn = ({
3463
3485
  label: e,
3464
3486
  subtitle: t,
3465
3487
  error: n,
@@ -3489,7 +3511,7 @@ const rn = ({
3489
3511
  }, [w]), M = () => {
3490
3512
  var E;
3491
3513
  (E = T.current) == null || E.click();
3492
- }, j = (E) => {
3514
+ }, H = (E) => {
3493
3515
  A(null);
3494
3516
  const g = y.filter(($, V) => V !== E);
3495
3517
  d == null || d(g);
@@ -3599,7 +3621,7 @@ const rn = ({
3599
3621
  }
3600
3622
  ),
3601
3623
  ee && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((E, g) => {
3602
- const $ = tn(E), V = $ === "image", G = V ? URL.createObjectURL(E) : null;
3624
+ const $ = rn(E), V = $ === "image", G = V ? URL.createObjectURL(E) : null;
3603
3625
  return /* @__PURE__ */ o(
3604
3626
  "div",
3605
3627
  {
@@ -3665,7 +3687,7 @@ const rn = ({
3665
3687
  {
3666
3688
  type: "button",
3667
3689
  onClick: (_) => {
3668
- _.stopPropagation(), j(g);
3690
+ _.stopPropagation(), H(g);
3669
3691
  },
3670
3692
  style: {
3671
3693
  display: "flex",
@@ -3701,7 +3723,7 @@ const rn = ({
3701
3723
  }) }),
3702
3724
  K && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: K })
3703
3725
  ] });
3704
- }, nn = yt(
3726
+ }, an = yt(
3705
3727
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: n, ...a }, i) => /* @__PURE__ */ o("div", { className: "w-full", children: [
3706
3728
  a.label && /* @__PURE__ */ o(
3707
3729
  "label",
@@ -3748,7 +3770,7 @@ const rn = ({
3748
3770
  a.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: a.error })
3749
3771
  ] })
3750
3772
  );
3751
- nn.displayName = "PhoneInput";
3773
+ an.displayName = "PhoneInput";
3752
3774
  /**
3753
3775
  * @license lucide-react v0.574.0 - ISC
3754
3776
  *
@@ -3762,14 +3784,14 @@ const Bt = (...e) => e.filter((t, n, a) => !!t && t.trim() !== "" && a.indexOf(t
3762
3784
  * This source code is licensed under the ISC license.
3763
3785
  * See the LICENSE file in the root directory of this source tree.
3764
3786
  */
3765
- const an = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3787
+ const on = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3766
3788
  /**
3767
3789
  * @license lucide-react v0.574.0 - ISC
3768
3790
  *
3769
3791
  * This source code is licensed under the ISC license.
3770
3792
  * See the LICENSE file in the root directory of this source tree.
3771
3793
  */
3772
- const on = (e) => e.replace(
3794
+ const sn = (e) => e.replace(
3773
3795
  /^([A-Z])|[\s-_]+(\w)/g,
3774
3796
  (t, n, a) => a ? a.toUpperCase() : n.toLowerCase()
3775
3797
  );
@@ -3780,7 +3802,7 @@ const on = (e) => e.replace(
3780
3802
  * See the LICENSE file in the root directory of this source tree.
3781
3803
  */
3782
3804
  const At = (e) => {
3783
- const t = on(e);
3805
+ const t = sn(e);
3784
3806
  return t.charAt(0).toUpperCase() + t.slice(1);
3785
3807
  };
3786
3808
  /**
@@ -3789,7 +3811,7 @@ const At = (e) => {
3789
3811
  * This source code is licensed under the ISC license.
3790
3812
  * See the LICENSE file in the root directory of this source tree.
3791
3813
  */
3792
- var sn = {
3814
+ var ln = {
3793
3815
  xmlns: "http://www.w3.org/2000/svg",
3794
3816
  width: 24,
3795
3817
  height: 24,
@@ -3806,7 +3828,7 @@ var sn = {
3806
3828
  * This source code is licensed under the ISC license.
3807
3829
  * See the LICENSE file in the root directory of this source tree.
3808
3830
  */
3809
- const ln = (e) => {
3831
+ const cn = (e) => {
3810
3832
  for (const t in e)
3811
3833
  if (t.startsWith("aria-") || t === "role" || t === "title")
3812
3834
  return !0;
@@ -3818,7 +3840,7 @@ const ln = (e) => {
3818
3840
  * This source code is licensed under the ISC license.
3819
3841
  * See the LICENSE file in the root directory of this source tree.
3820
3842
  */
3821
- const cn = yt(
3843
+ const dn = yt(
3822
3844
  ({
3823
3845
  color: e = "currentColor",
3824
3846
  size: t = 24,
@@ -3832,13 +3854,13 @@ const cn = yt(
3832
3854
  "svg",
3833
3855
  {
3834
3856
  ref: y,
3835
- ...sn,
3857
+ ...ln,
3836
3858
  width: t,
3837
3859
  height: t,
3838
3860
  stroke: e,
3839
3861
  strokeWidth: a ? Number(n) * 24 / Number(t) : n,
3840
3862
  className: Bt("lucide", i),
3841
- ...!s && !ln(d) && { "aria-hidden": "true" },
3863
+ ...!s && !cn(d) && { "aria-hidden": "true" },
3842
3864
  ...d
3843
3865
  },
3844
3866
  [
@@ -3855,11 +3877,11 @@ const cn = yt(
3855
3877
  */
3856
3878
  const _t = (e, t) => {
3857
3879
  const n = yt(
3858
- ({ className: a, ...i }, s) => wt(cn, {
3880
+ ({ className: a, ...i }, s) => wt(dn, {
3859
3881
  ref: s,
3860
3882
  iconNode: t,
3861
3883
  className: Bt(
3862
- `lucide-${an(At(e))}`,
3884
+ `lucide-${on(At(e))}`,
3863
3885
  `lucide-${e}`,
3864
3886
  a
3865
3887
  ),
@@ -3874,15 +3896,15 @@ const _t = (e, t) => {
3874
3896
  * This source code is licensed under the ISC license.
3875
3897
  * See the LICENSE file in the root directory of this source tree.
3876
3898
  */
3877
- const dn = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], jt = _t("chevron-left", dn);
3899
+ const un = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ht = _t("chevron-left", un);
3878
3900
  /**
3879
3901
  * @license lucide-react v0.574.0 - ISC
3880
3902
  *
3881
3903
  * This source code is licensed under the ISC license.
3882
3904
  * See the LICENSE file in the root directory of this source tree.
3883
3905
  */
3884
- const un = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ht = _t("chevron-right", un);
3885
- function pn(e, t) {
3906
+ const pn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], jt = _t("chevron-right", pn);
3907
+ function mn(e, t) {
3886
3908
  const n = !t || t.length === 0 || t.every((a) => !a || !a.trim());
3887
3909
  if (e.isRequired && n)
3888
3910
  return e.errorMessage || "This field is required";
@@ -3911,7 +3933,7 @@ function pn(e, t) {
3911
3933
  }
3912
3934
  return null;
3913
3935
  }
3914
- function mn(e) {
3936
+ function yn(e) {
3915
3937
  const t = e.flatMap(
3916
3938
  (a, i) => (a.questions ?? []).map((s, c) => ({ question: s, groupIndex: i, qIdx: c }))
3917
3939
  ), n = /* @__PURE__ */ new Map();
@@ -3921,17 +3943,17 @@ function mn(e) {
3921
3943
  }
3922
3944
  return Array.from(n.entries()).sort(([a], [i]) => a - i).map(([, a]) => a);
3923
3945
  }
3924
- const yn = ({
3946
+ const hn = ({
3925
3947
  applicantId: e,
3926
3948
  onComplete: t,
3927
3949
  onBack: n
3928
3950
  }) => {
3929
- const { questionnaire: a, initialAnswers: i, isLoading: s, isSubmitting: c, error: d, submit: y } = Vr(e), [p, b] = k({}), [P, v] = k({}), [A, T] = k(0);
3951
+ const { questionnaire: a, initialAnswers: i, isLoading: s, isSubmitting: c, error: d, submit: y } = Yr(e), [p, b] = k({}), [P, v] = k({}), [A, T] = k(0);
3930
3952
  we.useEffect(() => {
3931
3953
  i && Object.keys(i).length > 0 && Object.keys(p).length === 0 && b(i);
3932
3954
  }, [i]);
3933
3955
  const w = De(
3934
- () => a ? mn(a.questionGroups) : [],
3956
+ () => a ? yn(a.questionGroups) : [],
3935
3957
  [a]
3936
3958
  ), N = A === w.length - 1, z = w[A] ?? [], Q = ae((E, g) => {
3937
3959
  b(($) => ({ ...$, [E]: g })), v(($) => {
@@ -3941,11 +3963,11 @@ const yn = ({
3941
3963
  }, []), M = ae(() => {
3942
3964
  const E = {};
3943
3965
  for (const { question: g } of z) {
3944
- const $ = pn(g, p[g.id] ?? []);
3966
+ const $ = mn(g, p[g.id] ?? []);
3945
3967
  $ && (E[g.id] = $);
3946
3968
  }
3947
3969
  return v((g) => ({ ...g, ...E })), Object.keys(E).length === 0;
3948
- }, [z, p]), j = () => {
3970
+ }, [z, p]), H = () => {
3949
3971
  M() && T((E) => E + 1);
3950
3972
  }, K = () => {
3951
3973
  A > 0 ? T((E) => E - 1) : n == null || n();
@@ -3996,7 +4018,7 @@ const yn = ({
3996
4018
  ] })
3997
4019
  ] }),
3998
4020
  /* @__PURE__ */ r(ne, { className: "space-y-6", children: z.map(({ question: E }) => /* @__PURE__ */ r(
3999
- hn,
4021
+ fn,
4000
4022
  {
4001
4023
  question: E,
4002
4024
  value: p[E.id] ?? [],
@@ -4014,7 +4036,7 @@ const yn = ({
4014
4036
  onClick: K,
4015
4037
  style: { display: "flex", alignItems: "center", gap: "4px" },
4016
4038
  children: [
4017
- /* @__PURE__ */ r(jt, { size: 14 }),
4039
+ /* @__PURE__ */ r(Ht, { size: 14 }),
4018
4040
  A > 0 ? "Previous" : "Back"
4019
4041
  ]
4020
4042
  }
@@ -4031,18 +4053,18 @@ const yn = ({
4031
4053
  Z,
4032
4054
  {
4033
4055
  type: "button",
4034
- onClick: j,
4056
+ onClick: H,
4035
4057
  style: { display: "flex", alignItems: "center", gap: "4px" },
4036
4058
  children: [
4037
4059
  "Next",
4038
- /* @__PURE__ */ r(Ht, { size: 14 })
4060
+ /* @__PURE__ */ r(jt, { size: 14 })
4039
4061
  ]
4040
4062
  }
4041
4063
  )
4042
4064
  ] }),
4043
4065
  d && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: d.message }) })
4044
4066
  ] }) : null;
4045
- }, hn = ({ question: e, value: t, error: n, onChange: a }) => {
4067
+ }, fn = ({ question: e, value: t, error: n, onChange: a }) => {
4046
4068
  var c;
4047
4069
  const s = (((c = e.defaultAnswers) == null ? void 0 : c.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
4048
4070
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
@@ -4150,7 +4172,7 @@ const yn = ({
4150
4172
  n && s === "text" && null
4151
4173
  ] });
4152
4174
  };
4153
- function fn(e) {
4175
+ function gn(e) {
4154
4176
  const t = /* @__PURE__ */ new Map();
4155
4177
  for (const n of e) {
4156
4178
  const a = n.pageNumber != null && n.pageNumber > 0 ? n.pageNumber : 1;
@@ -4158,25 +4180,25 @@ function fn(e) {
4158
4180
  }
4159
4181
  return Array.from(t.entries()).sort(([n], [a]) => n - a).map(([, n]) => n);
4160
4182
  }
4161
- const gn = ({
4183
+ const bn = ({
4162
4184
  applicantId: e,
4163
4185
  onComplete: t,
4164
4186
  onBack: n
4165
4187
  }) => {
4166
- const { uploadDocument: a, isLoading: i, isSubmitting: s, error: c, submit: d } = Yr(e), [y, p] = k({}), [b, P] = k(null), [v, A] = k(0), [T, w] = k({}), N = De(
4167
- () => a ? fn(a.uploadDocumentFiles) : [],
4188
+ const { uploadDocument: a, isLoading: i, isSubmitting: s, error: c, submit: d } = Qr(e), [y, p] = k({}), [b, P] = k(null), [v, A] = k(0), [T, w] = k({}), N = De(
4189
+ () => a ? gn(a.uploadDocumentFiles) : [],
4168
4190
  [a]
4169
- ), z = N[v] ?? [], Q = v === N.length - 1, M = N.length, j = ae(() => {
4191
+ ), z = N[v] ?? [], Q = v === N.length - 1, M = N.length, H = ae(() => {
4170
4192
  const g = {};
4171
4193
  for (const $ of z)
4172
4194
  $.isRequired && (y[$.id] || []).length === 0 && (g[$.id] = `${$.displayName} is required`);
4173
4195
  return w(g), Object.keys(g).length === 0;
4174
4196
  }, [z, y]), K = () => {
4175
- j() && (A((g) => g + 1), w({}));
4197
+ H() && (A((g) => g + 1), w({}));
4176
4198
  }, ee = () => {
4177
4199
  v > 0 ? (A((g) => g - 1), w({})) : n == null || n();
4178
4200
  }, E = async () => {
4179
- if (!(!j() || !a)) {
4201
+ if (!(!H() || !a)) {
4180
4202
  P(null);
4181
4203
  try {
4182
4204
  const g = await Promise.all(
@@ -4184,7 +4206,7 @@ const gn = ({
4184
4206
  const G = y[V.id] || [], _ = await Promise.all(
4185
4207
  G.map(async (J) => ({
4186
4208
  fileName: J.name,
4187
- fileData: await _r(J)
4209
+ fileData: await Hr(J)
4188
4210
  }))
4189
4211
  );
4190
4212
  return {
@@ -4306,7 +4328,7 @@ const gn = ({
4306
4328
  }, children: a.description })
4307
4329
  ] }),
4308
4330
  /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: z.map((g) => /* @__PURE__ */ r(
4309
- rn,
4331
+ nn,
4310
4332
  {
4311
4333
  label: g.displayName,
4312
4334
  subtitle: g.subtitle,
@@ -4375,8 +4397,8 @@ const gn = ({
4375
4397
  )
4376
4398
  ] }) })
4377
4399
  ] }) : null;
4378
- }, bn = ({ applicantId: e, onComplete: t, onBack: n }) => {
4379
- const { overview: a, isLoading: i, isSubmitting: s, error: c, passOverview: d } = Qr(e), y = async () => {
4400
+ }, xn = ({ applicantId: e, onComplete: t, onBack: n }) => {
4401
+ const { overview: a, isLoading: i, isSubmitting: s, error: c, passOverview: d } = Gr(e), y = async () => {
4380
4402
  await d(), t == null || t();
4381
4403
  };
4382
4404
  return i ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r(Me, { className: "my-8" }) }) }) : c ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
@@ -4419,7 +4441,7 @@ const gn = ({
4419
4441
  ] })
4420
4442
  ] }) : null;
4421
4443
  };
4422
- function xn(e) {
4444
+ function vn(e) {
4423
4445
  const t = (e ?? "en").toLowerCase().replace("_", "-");
4424
4446
  try {
4425
4447
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -4427,11 +4449,11 @@ function xn(e) {
4427
4449
  return "en";
4428
4450
  }
4429
4451
  }
4430
- function vn(e) {
4452
+ function kn(e) {
4431
4453
  return e.valueDataType === Ke.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
4432
4454
  }
4433
- function kn(e, t) {
4434
- const n = new Intl.NumberFormat(xn(t), {
4455
+ function wn(e, t) {
4456
+ const n = new Intl.NumberFormat(vn(t), {
4435
4457
  minimumFractionDigits: 0,
4436
4458
  maximumFractionDigits: 2
4437
4459
  });
@@ -4440,7 +4462,7 @@ function kn(e, t) {
4440
4462
  return isNaN(i) ? a : n.format(i);
4441
4463
  });
4442
4464
  }
4443
- function wn(e, t) {
4465
+ function Sn(e, t) {
4444
4466
  const n = !t || t.length === 0 || t.every((a) => !a || !a.trim());
4445
4467
  if (e.isRequired && n)
4446
4468
  return e.errorMessage || `${e.displayName} is required`;
@@ -4470,29 +4492,29 @@ function wn(e, t) {
4470
4492
  }
4471
4493
  return null;
4472
4494
  }
4473
- function Sn(e) {
4495
+ function Cn(e) {
4474
4496
  const t = /* @__PURE__ */ new Map();
4475
4497
  return e.forEach((n, a) => {
4476
4498
  const i = n.pageNumber != null && n.pageNumber > 0 ? n.pageNumber : 1;
4477
4499
  t.has(i) || t.set(i, []), t.get(i).push({ criterion: n, idx: a });
4478
4500
  }), Array.from(t.entries()).sort(([n], [a]) => n - a).map(([, n]) => n);
4479
4501
  }
4480
- function Cn(e) {
4502
+ function Nn(e) {
4481
4503
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
4482
4504
  }
4483
- const Nn = ({
4505
+ const In = ({
4484
4506
  applicantId: e,
4485
4507
  onComplete: t,
4486
4508
  onBack: n
4487
4509
  }) => {
4488
- const { config: a } = Te(), i = a.locale ?? "en", { criteria: s, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: b } = Jr(e), [P, v] = k({}), [A, T] = k({}), [w, N] = k(0), [z, Q] = k(!1);
4510
+ const { config: a } = Te(), i = a.locale ?? "en", { criteria: s, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: b } = Zr(e), [P, v] = k({}), [A, T] = k({}), [w, N] = k(0), [z, Q] = k(!1);
4489
4511
  we.useEffect(() => {
4490
4512
  c && Object.keys(c).length > 0 && Object.keys(P).length === 0 && v(c);
4491
4513
  }, [c]);
4492
4514
  const M = De(
4493
- () => s && s.length > 0 ? Sn(s) : [],
4515
+ () => s && s.length > 0 ? Cn(s) : [],
4494
4516
  [s]
4495
- ), j = w === M.length - 1, K = M[w] ?? [];
4517
+ ), H = w === M.length - 1, K = M[w] ?? [];
4496
4518
  we.useEffect(() => {
4497
4519
  !d && s && s.length === 0 && !z && !y && (Q(!0), b({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4498
4520
  }, [d, s, z, y, b, e, t]);
@@ -4504,7 +4526,7 @@ const Nn = ({
4504
4526
  }, []), E = ae(() => {
4505
4527
  const G = {};
4506
4528
  for (const { criterion: _ } of K) {
4507
- const J = wn(_, P[_.id] ?? []);
4529
+ const J = Sn(_, P[_.id] ?? []);
4508
4530
  J && (G[_.id] = J);
4509
4531
  }
4510
4532
  return T((_) => ({ ..._, ...G })), Object.keys(G).length === 0;
@@ -4559,7 +4581,7 @@ const Nn = ({
4559
4581
  ] })
4560
4582
  ] }),
4561
4583
  /* @__PURE__ */ r(ne, { className: "space-y-6", children: K.map(({ criterion: G }) => /* @__PURE__ */ r(
4562
- In,
4584
+ Rn,
4563
4585
  {
4564
4586
  criterion: G,
4565
4587
  value: P[G.id] ?? [],
@@ -4578,12 +4600,12 @@ const Nn = ({
4578
4600
  onClick: $,
4579
4601
  style: { display: "flex", alignItems: "center", gap: "4px" },
4580
4602
  children: [
4581
- /* @__PURE__ */ r(jt, { size: 14 }),
4603
+ /* @__PURE__ */ r(Ht, { size: 14 }),
4582
4604
  w > 0 ? "Previous" : "Back"
4583
4605
  ]
4584
4606
  }
4585
4607
  ),
4586
- j ? /* @__PURE__ */ r(Z, { type: "button", isLoading: y, onClick: V, children: "Continue" }) : /* @__PURE__ */ o(
4608
+ H ? /* @__PURE__ */ r(Z, { type: "button", isLoading: y, onClick: V, children: "Continue" }) : /* @__PURE__ */ o(
4587
4609
  Z,
4588
4610
  {
4589
4611
  type: "button",
@@ -4591,15 +4613,15 @@ const Nn = ({
4591
4613
  style: { display: "flex", alignItems: "center", gap: "4px" },
4592
4614
  children: [
4593
4615
  "Next",
4594
- /* @__PURE__ */ r(Ht, { size: 14 })
4616
+ /* @__PURE__ */ r(jt, { size: 14 })
4595
4617
  ]
4596
4618
  }
4597
4619
  )
4598
4620
  ] }),
4599
4621
  p && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: p.message }) })
4600
4622
  ] }) : null;
4601
- }, In = ({ criterion: e, value: t, error: n, locale: a, onChange: i }) => {
4602
- const s = Cn(e), c = e.valueDataType === Ke.Integer || e.valueDataType === Ke.Money || e.valueDataType === Ke.DigitOnly, d = vn(e), y = (p) => d ? kn(p, a) : p;
4623
+ }, Rn = ({ criterion: e, value: t, error: n, locale: a, onChange: i }) => {
4624
+ const s = Nn(e), c = e.valueDataType === Ke.Integer || e.valueDataType === Ke.Money || e.valueDataType === Ke.DigitOnly, d = kn(e), y = (p) => d ? wn(p, a) : p;
4603
4625
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
4604
4626
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
4605
4627
  e.displayName,
@@ -4715,7 +4737,7 @@ const Nn = ({
4715
4737
  }
4716
4738
  )
4717
4739
  ] });
4718
- }, Rn = ({
4740
+ }, En = ({
4719
4741
  applicantId: e,
4720
4742
  onComplete: t,
4721
4743
  onBack: n
@@ -4865,20 +4887,20 @@ function vt(e) {
4865
4887
  const t = Math.floor(e / 60), n = e % 60;
4866
4888
  return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
4867
4889
  }
4868
- const En = ({
4890
+ const Fn = ({
4869
4891
  applicantId: e,
4870
4892
  onComplete: t,
4871
4893
  onBack: n
4872
4894
  }) => {
4873
- const { appropriatenessTestService: a } = Te(), [i, s] = k(null), [c, d] = k(!0), [y, p] = k(!1), [b, P] = k(null), [v, A] = k({}), [T, w] = k(0), [N, z] = k(!1), [Q, M] = k(!1), [j, K] = k(0), [ee, E] = k(0), [g, $] = k(null);
4895
+ const { appropriatenessTestService: a } = Te(), [i, s] = k(null), [c, d] = k(!0), [y, p] = k(!1), [b, P] = k(null), [v, A] = k({}), [T, w] = k(0), [N, z] = k(!1), [Q, M] = k(!1), [H, K] = k(0), [ee, E] = k(0), [g, $] = k(null);
4874
4896
  ge(() => {
4875
4897
  (async () => {
4876
4898
  try {
4877
4899
  d(!0), P(null);
4878
4900
  const B = await a.getAppropriatenessTest(e);
4879
4901
  if (s(B), B.waitTimeSpanForNextTry && B.waitTimeSpanForNextTry !== "00:00:00") {
4880
- const H = Tt(B.waitTimeSpanForNextTry);
4881
- H > 0 && K(H);
4902
+ const j = Tt(B.waitTimeSpanForNextTry);
4903
+ j > 0 && K(j);
4882
4904
  }
4883
4905
  } catch (B) {
4884
4906
  P(B.message || "Failed to load appropriateness test");
@@ -4889,48 +4911,48 @@ const En = ({
4889
4911
  }, [e, a]), ge(() => {
4890
4912
  if (!N || T <= 0) return;
4891
4913
  const B = setInterval(() => {
4892
- w((H) => H <= 1 ? (M(!0), 0) : H - 1);
4914
+ w((j) => j <= 1 ? (M(!0), 0) : j - 1);
4893
4915
  }, 1e3);
4894
4916
  return () => clearInterval(B);
4895
4917
  }, [N, T]), ge(() => {
4896
- if (j <= 0) return;
4918
+ if (H <= 0) return;
4897
4919
  const B = setInterval(() => {
4898
- K((H) => H <= 1 ? 0 : H - 1);
4920
+ K((j) => j <= 1 ? 0 : j - 1);
4899
4921
  }, 1e3);
4900
4922
  return () => clearInterval(B);
4901
- }, [j]), ge(() => {
4923
+ }, [H]), ge(() => {
4902
4924
  Q && !y && J();
4903
4925
  }, [Q]);
4904
4926
  const V = () => {
4905
4927
  i && (z(!0), w(i.testDurationSec), E(0), A({}), P(null));
4906
- }, G = (B, H) => {
4907
- A((fe) => ({ ...fe, [B]: H }));
4928
+ }, G = (B, j) => {
4929
+ A((fe) => ({ ...fe, [B]: j }));
4908
4930
  }, _ = ae(async () => {
4909
4931
  try {
4910
4932
  const B = await a.getAppropriatenessTest(e);
4911
4933
  if (s(B), B.waitTimeSpanForNextTry && B.waitTimeSpanForNextTry !== "00:00:00") {
4912
- const H = Tt(B.waitTimeSpanForNextTry);
4913
- H > 0 && K(H);
4934
+ const j = Tt(B.waitTimeSpanForNextTry);
4935
+ j > 0 && K(j);
4914
4936
  }
4915
4937
  } catch {
4916
4938
  }
4917
4939
  }, [e, a]), J = async (B) => {
4918
4940
  if (i) {
4919
4941
  if (!Q) {
4920
- const H = i.appropriatenessQuestions.length - Object.keys(v).length;
4921
- if (H > 0) {
4922
- P(`Please answer all questions. ${H} remaining.`);
4942
+ const j = i.appropriatenessQuestions.length - Object.keys(v).length;
4943
+ if (j > 0) {
4944
+ P(`Please answer all questions. ${j} remaining.`);
4923
4945
  return;
4924
4946
  }
4925
4947
  }
4926
4948
  p(!0), P(null);
4927
4949
  try {
4928
- const H = i.appropriatenessQuestions.map(
4950
+ const j = i.appropriatenessQuestions.map(
4929
4951
  (R) => ({ appropriatenessQuestionId: R.id, value: v[R.id] || "" })
4930
4952
  ), fe = {
4931
4953
  applicantId: e,
4932
4954
  appropriatenessTestId: i.id,
4933
- appropriatenessQuestionResults: H
4955
+ appropriatenessQuestionResults: j
4934
4956
  };
4935
4957
  try {
4936
4958
  const R = await a.fillAppropriatenessTest(fe);
@@ -4941,8 +4963,8 @@ const En = ({
4941
4963
  else
4942
4964
  throw R;
4943
4965
  }
4944
- } catch (H) {
4945
- P(H.message || "Failed to submit test. Please try again."), ie();
4966
+ } catch (j) {
4967
+ P(j.message || "Failed to submit test. Please try again."), ie();
4946
4968
  } finally {
4947
4969
  p(!1);
4948
4970
  }
@@ -4961,7 +4983,7 @@ const En = ({
4961
4983
  b && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: b })
4962
4984
  ] }) }) });
4963
4985
  const Y = i.testAllowedMaxTry - i.totalFailedTries, ve = i.appropriatenessQuestions.length, pe = Object.keys(v).length;
4964
- if (j > 0)
4986
+ if (H > 0)
4965
4987
  return /* @__PURE__ */ o(re, { children: [
4966
4988
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: i.displayName }) }),
4967
4989
  /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
@@ -4979,7 +5001,7 @@ const En = ({
4979
5001
  fontWeight: 700,
4980
5002
  color: "var(--metakyc-primary, #2563eb)",
4981
5003
  fontVariantNumeric: "tabular-nums"
4982
- }, children: vt(j) }) }),
5004
+ }, children: vt(H) }) }),
4983
5005
  /* @__PURE__ */ r("p", { style: { fontSize: "15px", fontWeight: 500, color: "var(--metakyc-text-primary, #111827)" }, children: "Please wait before retrying" }),
4984
5006
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: "You can attempt the test again once the timer expires" }),
4985
5007
  b && /* @__PURE__ */ r("div", { style: {
@@ -5064,8 +5086,8 @@ const En = ({
5064
5086
  }, children: "No attempts remaining. Please contact support for assistance." }) })
5065
5087
  ] }) }),
5066
5088
  /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: g.success ? /* @__PURE__ */ r(Z, { type: "button", onClick: () => t == null ? void 0 : t(), children: "Continue" }) : /* @__PURE__ */ o(lt, { children: [
5067
- Y > 0 && j <= 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "Retake Test" }),
5068
- Y > 0 && j > 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "OK" }),
5089
+ Y > 0 && H <= 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "Retake Test" }),
5090
+ Y > 0 && H > 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "OK" }),
5069
5091
  Y <= 0 && n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" })
5070
5092
  ] }) }) })
5071
5093
  ] });
@@ -5220,7 +5242,7 @@ const En = ({
5220
5242
  ] }),
5221
5243
  /* @__PURE__ */ o(ne, { children: [
5222
5244
  me && /* @__PURE__ */ r(
5223
- An,
5245
+ Tn,
5224
5246
  {
5225
5247
  question: me,
5226
5248
  index: ee,
@@ -5235,17 +5257,17 @@ const En = ({
5235
5257
  gap: "6px",
5236
5258
  marginTop: "20px",
5237
5259
  flexWrap: "wrap"
5238
- }, children: i.appropriatenessQuestions.map((B, H) => /* @__PURE__ */ r(
5260
+ }, children: i.appropriatenessQuestions.map((B, j) => /* @__PURE__ */ r(
5239
5261
  "button",
5240
5262
  {
5241
5263
  type: "button",
5242
- onClick: () => E(H),
5264
+ onClick: () => E(j),
5243
5265
  style: {
5244
5266
  width: "28px",
5245
5267
  height: "28px",
5246
5268
  borderRadius: "8px",
5247
- border: H === ee ? "2px solid var(--metakyc-primary, #2563eb)" : "1px solid var(--metakyc-border, #e5e7eb)",
5248
- backgroundColor: v[B.id] ? H === ee ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : H === ee ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
5269
+ border: j === ee ? "2px solid var(--metakyc-primary, #2563eb)" : "1px solid var(--metakyc-border, #e5e7eb)",
5270
+ backgroundColor: v[B.id] ? j === ee ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : j === ee ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
5249
5271
  color: v[B.id] ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
5250
5272
  fontSize: "12px",
5251
5273
  fontWeight: 600,
@@ -5256,7 +5278,7 @@ const En = ({
5256
5278
  alignItems: "center",
5257
5279
  justifyContent: "center"
5258
5280
  },
5259
- children: H + 1
5281
+ children: j + 1
5260
5282
  },
5261
5283
  B.id
5262
5284
  )) }),
@@ -5320,7 +5342,7 @@ const En = ({
5320
5342
  ] })
5321
5343
  ] }) })
5322
5344
  ] });
5323
- }, Fn = {
5345
+ }, An = {
5324
5346
  questions: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
5325
5347
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
5326
5348
  /* @__PURE__ */ r("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
@@ -5352,7 +5374,7 @@ const En = ({
5352
5374
  /* @__PURE__ */ r("div", { style: {
5353
5375
  color: i ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
5354
5376
  flexShrink: 0
5355
- }, children: Fn[e] }),
5377
+ }, children: An[e] }),
5356
5378
  /* @__PURE__ */ o("div", { children: [
5357
5379
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
5358
5380
  /* @__PURE__ */ r("p", { style: {
@@ -5364,7 +5386,7 @@ const En = ({
5364
5386
  }, children: n })
5365
5387
  ] })
5366
5388
  ] });
5367
- }, An = ({ question: e, selectedAnswer: t, onSelect: n, disabled: a }) => /* @__PURE__ */ o("div", { children: [
5389
+ }, Tn = ({ question: e, selectedAnswer: t, onSelect: n, disabled: a }) => /* @__PURE__ */ o("div", { children: [
5368
5390
  /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
5369
5391
  e.groupName && /* @__PURE__ */ r("span", { style: {
5370
5392
  display: "inline-block",
@@ -5446,15 +5468,15 @@ const En = ({
5446
5468
  s
5447
5469
  );
5448
5470
  }) })
5449
- ] }), Tn = ({
5471
+ ] }), Pn = ({
5450
5472
  applicantId: e,
5451
5473
  onComplete: t,
5452
5474
  onBack: n
5453
5475
  }) => {
5454
- var Ze, je, it, Ye;
5455
- const { applicantService: a, baseInformationService: i, identityService: s, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: b, isLoading: P, error: v, requestIdentity: A, restartIdentity: T } = Gr(e), [w, N] = k(null), [z, Q] = k(null), [M, j] = k([]), [K, ee] = k([]), [E, g] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, ie] = k(!1), Y = we.useRef(!1), [ve, pe] = k({}), [me, ke] = k({}), F = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), B = de(!1);
5476
+ var Ze, He, it, Ye;
5477
+ const { applicantService: a, baseInformationService: i, identityService: s, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: b, isLoading: P, error: v, requestIdentity: A, restartIdentity: T } = Jr(e), [w, N] = k(null), [z, Q] = k(null), [M, H] = k([]), [K, ee] = k([]), [E, g] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, ie] = k(!1), Y = we.useRef(!1), [ve, pe] = k({}), [me, ke] = k({}), F = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), B = de(!1);
5456
5478
  B.current = U;
5457
- const H = Gt({
5479
+ const j = Gt({
5458
5480
  defaultValues: {
5459
5481
  street: "",
5460
5482
  streetNumber: "",
@@ -5480,7 +5502,7 @@ const En = ({
5480
5502
  ]);
5481
5503
  Q(O);
5482
5504
  const X = /* @__PURE__ */ new Set(), m = q.map((f) => ({ value: f.abbreviation3 || f.abbreviation, label: f.name })).filter((f) => !f.value || X.has(f.value) ? !1 : (X.add(f.value), !0));
5483
- j(m);
5505
+ H(m);
5484
5506
  const I = /* @__PURE__ */ new Set(), L = W.filter((f) => f.countryCode).map((f) => ({ value: f.countryCode, label: `${f.countryCode} – ${f.name}` })).filter((f) => I.has(f.value) ? !1 : (I.add(f.value), !0));
5485
5507
  ee(L);
5486
5508
  const u = O.applicantRequestData;
@@ -5506,7 +5528,7 @@ const En = ({
5506
5528
  occupation: (u == null ? void 0 : u.occupation) || "",
5507
5529
  taxNumber: (u == null ? void 0 : u.taxNumber) || "",
5508
5530
  defaultLanguage: (u == null ? void 0 : u.defaultLanguage) || ""
5509
- }), H.reset({
5531
+ }), j.reset({
5510
5532
  street: (u == null ? void 0 : u.street) || "",
5511
5533
  streetNumber: (u == null ? void 0 : u.streetNumber) || "",
5512
5534
  city: (u == null ? void 0 : u.city) || "",
@@ -6113,14 +6135,14 @@ const En = ({
6113
6135
  ] })
6114
6136
  ] }) });
6115
6137
  }
6116
- return /* @__PURE__ */ r("form", { onSubmit: H.handleSubmit(R), children: /* @__PURE__ */ o(re, { children: [
6138
+ return /* @__PURE__ */ r("form", { onSubmit: j.handleSubmit(R), children: /* @__PURE__ */ o(re, { children: [
6117
6139
  /* @__PURE__ */ o(Se, { children: [
6118
6140
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: "Review Your Information" }),
6119
6141
  /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Please review and confirm your information before starting identity verification" })
6120
6142
  ] }),
6121
6143
  /* @__PURE__ */ o(ne, { className: "space-y-6", children: [
6122
6144
  /* @__PURE__ */ r("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
6123
- { label: "Name", value: `${((Ze = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Ze.firstName) || ""} ${((je = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : je.lastName) || ""}`.trim() },
6145
+ { label: "Name", value: `${((Ze = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Ze.firstName) || ""} ${((He = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : He.lastName) || ""}`.trim() },
6124
6146
  { label: "Email", value: (it = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : it.email },
6125
6147
  { label: "Date of Birth", value: ((Ye = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Ye.dateOfBirth) || "Not provided" }
6126
6148
  ].map(({ label: h, value: O }) => /* @__PURE__ */ o("div", { children: [
@@ -6133,7 +6155,7 @@ const En = ({
6133
6155
  /* @__PURE__ */ r(
6134
6156
  et,
6135
6157
  {
6136
- control: H.control,
6158
+ control: j.control,
6137
6159
  name: "country",
6138
6160
  render: ({ field: h }) => /* @__PURE__ */ r(
6139
6161
  qe,
@@ -6149,7 +6171,7 @@ const En = ({
6149
6171
  /* @__PURE__ */ r(
6150
6172
  et,
6151
6173
  {
6152
- control: H.control,
6174
+ control: j.control,
6153
6175
  name: "nationality",
6154
6176
  render: ({ field: h }) => /* @__PURE__ */ r(
6155
6177
  qe,
@@ -6164,14 +6186,14 @@ const En = ({
6164
6186
  )
6165
6187
  ] }),
6166
6188
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6167
- /* @__PURE__ */ r(et, { control: H.control, name: "street", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street" }) }),
6168
- /* @__PURE__ */ r(et, { control: H.control, name: "streetNumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street Number" }) })
6189
+ /* @__PURE__ */ r(et, { control: j.control, name: "street", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street" }) }),
6190
+ /* @__PURE__ */ r(et, { control: j.control, name: "streetNumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street Number" }) })
6169
6191
  ] }),
6170
6192
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6171
- /* @__PURE__ */ r(et, { control: H.control, name: "city", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "City" }) }),
6172
- /* @__PURE__ */ r(et, { control: H.control, name: "zip", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "ZIP / Postal Code" }) })
6193
+ /* @__PURE__ */ r(et, { control: j.control, name: "city", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "City" }) }),
6194
+ /* @__PURE__ */ r(et, { control: j.control, name: "zip", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "ZIP / Postal Code" }) })
6173
6195
  ] }),
6174
- /* @__PURE__ */ r(et, { control: H.control, name: "phonenumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Phone Number", type: "tel" }) })
6196
+ /* @__PURE__ */ r(et, { control: j.control, name: "phonenumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Phone Number", type: "tel" }) })
6175
6197
  ] })
6176
6198
  ] }),
6177
6199
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6321,7 +6343,7 @@ const En = ({
6321
6343
  d.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: "Please check back later or wait for our email notification" }) })
6322
6344
  ] })
6323
6345
  ] });
6324
- }, Pn = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6346
+ }, Ln = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6325
6347
  "img",
6326
6348
  {
6327
6349
  src: e.url,
@@ -6349,7 +6371,7 @@ const En = ({
6349
6371
  className: "metakyc-header-title flex items-center text-xl font-bold",
6350
6372
  style: { color: "var(--metakyc-text-primary, #111827)" },
6351
6373
  children: [
6352
- s && /* @__PURE__ */ r(Pn, { config: a.logo }),
6374
+ s && /* @__PURE__ */ r(Ln, { config: a.logo }),
6353
6375
  s && c && /* @__PURE__ */ r(
6354
6376
  "span",
6355
6377
  {
@@ -6500,7 +6522,7 @@ const pt = {
6500
6522
  ),
6501
6523
  typeof document < "u" && i ? St(i, document.body) : null
6502
6524
  ] });
6503
- }, Zn = ({
6525
+ }, Xn = ({
6504
6526
  workflowKey: e,
6505
6527
  externalRefId: t,
6506
6528
  onSuccess: n,
@@ -6542,7 +6564,7 @@ const pt = {
6542
6564
  "countryOfBirth",
6543
6565
  "mobileCountryCode",
6544
6566
  "otherNationality"
6545
- ]), j = De(() => {
6567
+ ]), H = De(() => {
6546
6568
  var f, D;
6547
6569
  const l = /* @__PURE__ */ new Set();
6548
6570
  if (N)
@@ -6556,12 +6578,12 @@ const pt = {
6556
6578
  }, [Q, N]), [K, ee] = k({}), [E, g] = k(!0), $ = de(/* @__PURE__ */ new Set()), V = de(/* @__PURE__ */ new Set());
6557
6579
  ge(() => {
6558
6580
  if (!c) return;
6559
- const l = j.filter((x) => {
6581
+ const l = H.filter((x) => {
6560
6582
  const C = x != null ? String(x) : "all";
6561
6583
  return !V.current.has(C) && !$.current.has(C);
6562
6584
  });
6563
6585
  if (l.length === 0) {
6564
- j.every((C) => {
6586
+ H.every((C) => {
6565
6587
  const S = C != null ? String(C) : "all";
6566
6588
  return V.current.has(S);
6567
6589
  }) && g(!1);
@@ -6584,13 +6606,13 @@ const pt = {
6584
6606
  } catch (x) {
6585
6607
  f.forEach((C) => $.current.delete(C)), console.error("Failed to load countries:", x);
6586
6608
  } finally {
6587
- j.every((C) => {
6609
+ H.every((C) => {
6588
6610
  const S = C != null ? String(C) : "all";
6589
6611
  return V.current.has(S);
6590
6612
  }) && g(!1);
6591
6613
  }
6592
6614
  })();
6593
- }, [j, c]);
6615
+ }, [H, c]);
6594
6616
  const G = (l, f) => {
6595
6617
  var C;
6596
6618
  const D = f ?? ((C = nt[l]) == null ? void 0 : C.countriesType), x = D != null ? String(D) : "all";
@@ -6651,7 +6673,7 @@ const pt = {
6651
6673
  ...ie
6652
6674
  }), pe = Object.fromEntries(
6653
6675
  Object.entries(v).filter(([l]) => !(l in J) && l !== "externalRefId" && l !== "workflowKey")
6654
- ), [me, ke] = k({ ...pe }), [F, U] = k(0), [B, H] = k({}), [fe, R] = k(null), [te, ye] = k(!1), oe = (l, f) => ve((D) => ({ ...D, [l]: f })), Ne = (l, f) => ke((D) => ({ ...D, [l]: f })), $e = (l) => !l.conditionalOn || me[l.conditionalOn] === "true", Ie = N && F < N.length - 1 ? F + 1 : -1, _e = N && F > 0 ? F - 1 : -1, at = (l) => {
6676
+ ), [me, ke] = k({ ...pe }), [F, U] = k(0), [B, j] = k({}), [fe, R] = k(null), [te, ye] = k(!1), oe = (l, f) => ve((D) => ({ ...D, [l]: f })), Ne = (l, f) => ke((D) => ({ ...D, [l]: f })), $e = (l) => !l.conditionalOn || me[l.conditionalOn] === "true", Ie = N && F < N.length - 1 ? F + 1 : -1, _e = N && F > 0 ? F - 1 : -1, at = (l) => {
6655
6677
  var D;
6656
6678
  const f = {};
6657
6679
  for (const x of l.fields)
@@ -6673,22 +6695,22 @@ const pt = {
6673
6695
  if (!N) return;
6674
6696
  const l = N[F];
6675
6697
  if (l.conditionalOn && !$e(l)) {
6676
- H({}), Ie >= 0 ? U(Ie) : await je();
6698
+ j({}), Ie >= 0 ? U(Ie) : await He();
6677
6699
  return;
6678
6700
  }
6679
6701
  const f = at(l);
6680
6702
  if (Object.keys(f).length > 0) {
6681
- H(f);
6703
+ j(f);
6682
6704
  return;
6683
6705
  }
6684
- H({}), Ie >= 0 ? U(Ie) : await je();
6685
- }, je = async () => {
6706
+ j({}), Ie >= 0 ? U(Ie) : await He();
6707
+ }, He = async () => {
6686
6708
  if (N) {
6687
6709
  let l = {};
6688
6710
  for (const f of N)
6689
6711
  $e(f) && (l = { ...l, ...at(f) });
6690
6712
  if (Object.keys(l).length > 0) {
6691
- H(l);
6713
+ j(l);
6692
6714
  return;
6693
6715
  }
6694
6716
  }
@@ -6758,12 +6780,12 @@ const pt = {
6758
6780
  R(`${x} is required.`);
6759
6781
  return;
6760
6782
  }
6761
- await je();
6783
+ await He();
6762
6784
  }, Ye = (l, f, D, x, C) => {
6763
6785
  var Nt;
6764
6786
  const S = nt[l];
6765
6787
  if (!S) return null;
6766
- const ue = z.includes(l), se = B[l], be = D || S.label, Pe = l in ie, le = f ?? l, Be = { required: ue }, He = C ? C !== "placeholder" : w, Qe = He ? be : void 0, Wt = He ? "..." : be;
6788
+ const ue = z.includes(l), se = B[l], be = D || S.label, Pe = l in ie, le = f ?? l, Be = { required: ue }, je = C ? C !== "placeholder" : w, Qe = je ? be : void 0, Wt = je ? "..." : be;
6767
6789
  switch (S.type) {
6768
6790
  case "select":
6769
6791
  if (l === "country" || l === "nationality" || l === "taxCountry" || l === "countryOfBirth" || l === "mobileCountryCode") {
@@ -6792,7 +6814,7 @@ const pt = {
6792
6814
  value: ((Nt = Y[l]) == null ? void 0 : Nt.toString()) || "",
6793
6815
  onChange: (Re) => oe(l, Re ? Number(Re) : null),
6794
6816
  options: [
6795
- { value: "", label: He ? "Select salutation..." : be },
6817
+ { value: "", label: je ? "Select salutation..." : be },
6796
6818
  { value: bt.Male.toString(), label: "Male" },
6797
6819
  { value: bt.Female.toString(), label: "Female" },
6798
6820
  { value: bt.Other.toString(), label: "Other" }
@@ -6811,7 +6833,7 @@ const pt = {
6811
6833
  label: Qe,
6812
6834
  value: Y[l] || "",
6813
6835
  onChange: (Xe) => oe(l, Xe),
6814
- options: [{ value: "", label: He ? "Select language..." : be }, ...Re],
6836
+ options: [{ value: "", label: je ? "Select language..." : be }, ...Re],
6815
6837
  readOnly: Pe,
6816
6838
  error: se
6817
6839
  },
@@ -6823,14 +6845,14 @@ const pt = {
6823
6845
  if (l === "otherNationality") {
6824
6846
  const Re = G(l, x);
6825
6847
  return /* @__PURE__ */ r(
6826
- en,
6848
+ tn,
6827
6849
  {
6828
6850
  ...Be,
6829
6851
  label: Qe,
6830
6852
  value: Y[l] || [],
6831
6853
  onChange: (Xe) => oe(l, Xe),
6832
6854
  options: Re,
6833
- placeholder: He ? "Select other nationalities..." : be,
6855
+ placeholder: je ? "Select other nationalities..." : be,
6834
6856
  disabled: E,
6835
6857
  readOnly: Pe
6836
6858
  },
@@ -6845,7 +6867,7 @@ const pt = {
6845
6867
  ...Be,
6846
6868
  type: "date",
6847
6869
  label: Qe,
6848
- placeholder: He ? void 0 : be,
6870
+ placeholder: je ? void 0 : be,
6849
6871
  value: Y[l] || "",
6850
6872
  onChange: (Re) => oe(l, Re.target.value),
6851
6873
  readOnly: Pe,
@@ -6860,7 +6882,7 @@ const pt = {
6860
6882
  ...Be,
6861
6883
  type: "email",
6862
6884
  label: Qe,
6863
- placeholder: He ? void 0 : be,
6885
+ placeholder: je ? void 0 : be,
6864
6886
  value: Y[l] || "",
6865
6887
  onChange: (Re) => oe(l, Re.target.value),
6866
6888
  readOnly: Pe,
@@ -6875,7 +6897,7 @@ const pt = {
6875
6897
  ...Be,
6876
6898
  type: "tel",
6877
6899
  label: Qe,
6878
- placeholder: He ? void 0 : be,
6900
+ placeholder: je ? void 0 : be,
6879
6901
  value: Y[l] || "",
6880
6902
  onChange: (Re) => oe(l, Re.target.value),
6881
6903
  readOnly: Pe,
@@ -6890,7 +6912,7 @@ const pt = {
6890
6912
  ...Be,
6891
6913
  type: "text",
6892
6914
  label: Qe,
6893
- placeholder: He ? void 0 : be,
6915
+ placeholder: je ? void 0 : be,
6894
6916
  value: Y[l] || "",
6895
6917
  onChange: (Re) => oe(l, Re.target.value),
6896
6918
  readOnly: Pe,
@@ -7254,7 +7276,7 @@ const pt = {
7254
7276
  type: "button",
7255
7277
  variant: "outline",
7256
7278
  onClick: () => {
7257
- U(_e), H({});
7279
+ U(_e), j({});
7258
7280
  },
7259
7281
  disabled: te || y,
7260
7282
  children: "Previous"
@@ -7267,7 +7289,7 @@ const pt = {
7267
7289
  {
7268
7290
  type: "button",
7269
7291
  isLoading: te || y,
7270
- onClick: D ? je : Ze,
7292
+ onClick: D ? He : Ze,
7271
7293
  children: D ? l.conditionalOn && !C ? "Skip & Submit" : "Submit" : l.conditionalOn && !C ? "Skip" : "Next"
7272
7294
  }
7273
7295
  )
@@ -7293,7 +7315,7 @@ const pt = {
7293
7315
  function kt(e) {
7294
7316
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
7295
7317
  }
7296
- const Xn = ({
7318
+ const ea = ({
7297
7319
  workflowKey: e,
7298
7320
  externalRefId: t,
7299
7321
  onSuccess: n,
@@ -7335,7 +7357,7 @@ const Xn = ({
7335
7357
  for (const u of z)
7336
7358
  Q.has(u) && m.add((L = ot[u]) == null ? void 0 : L.countriesType);
7337
7359
  return m.size === 0 && m.add(void 0), Array.from(m);
7338
- }, [z, w]), [j, K] = k({}), [ee, E] = k(!0), g = de(/* @__PURE__ */ new Set()), $ = de(/* @__PURE__ */ new Set());
7360
+ }, [z, w]), [H, K] = k({}), [ee, E] = k(!0), g = de(/* @__PURE__ */ new Set()), $ = de(/* @__PURE__ */ new Set());
7339
7361
  ge(() => {
7340
7362
  if (!c) return;
7341
7363
  const m = M.filter((u) => {
@@ -7367,7 +7389,7 @@ const Xn = ({
7367
7389
  const V = (m, I) => {
7368
7390
  var l;
7369
7391
  const L = I ?? ((l = ot[m]) == null ? void 0 : l.countriesType), u = L != null ? String(L) : "all";
7370
- return j[u] || [];
7392
+ return H[u] || [];
7371
7393
  }, G = {
7372
7394
  companyName: 1,
7373
7395
  registrationNumber: 1,
@@ -7413,7 +7435,7 @@ const Xn = ({
7413
7435
  lei: "",
7414
7436
  externalRefId: b,
7415
7437
  ..._
7416
- }), [Y, ve] = k({}), [pe, me] = k(0), [ke, F] = k({}), [U, B] = k(null), [H, fe] = k(!1), R = (m, I) => ie((L) => ({ ...L, [m]: I })), te = (m, I) => ve((L) => ({ ...L, [m]: I })), ye = (m) => !m.conditionalOn || Y[m.conditionalOn] === "true", oe = w && pe < w.length - 1 ? pe + 1 : -1, Ne = w && pe > 0 ? pe - 1 : -1, $e = (m) => {
7438
+ }), [Y, ve] = k({}), [pe, me] = k(0), [ke, F] = k({}), [U, B] = k(null), [j, fe] = k(!1), R = (m, I) => ie((L) => ({ ...L, [m]: I })), te = (m, I) => ve((L) => ({ ...L, [m]: I })), ye = (m) => !m.conditionalOn || Y[m.conditionalOn] === "true", oe = w && pe < w.length - 1 ? pe + 1 : -1, Ne = w && pe > 0 ? pe - 1 : -1, $e = (m) => {
7417
7439
  var L;
7418
7440
  const I = {};
7419
7441
  for (const u of m.fields)
@@ -7611,7 +7633,7 @@ const Xn = ({
7611
7633
  ue
7612
7634
  );
7613
7635
  }
7614
- }, je = (m, I) => {
7636
+ }, He = (m, I) => {
7615
7637
  if (m.customType === "paragraph")
7616
7638
  return /* @__PURE__ */ r(
7617
7639
  "p",
@@ -7685,7 +7707,7 @@ const Xn = ({
7685
7707
  ] }),
7686
7708
  I && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: m.fields.map((L, u) => {
7687
7709
  const l = Math.min(4, Math.max(1, Number(L.colSpan) || 4)), f = L.isCustom ? `custom-${u}-${L.paramName}` : `builtin-${L.name}-${u}`;
7688
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${l} / span ${l}` }, children: L.isCustom ? je(L, u) : Ze(L.name, f, L.displayText, L.countriesType, L.labelMode) }, f);
7710
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${l} / span ${l}` }, children: L.isCustom ? He(L, u) : Ze(L.name, f, L.displayText, L.countriesType, L.labelMode) }, f);
7689
7711
  }) })
7690
7712
  ] });
7691
7713
  };
@@ -7742,13 +7764,13 @@ const Xn = ({
7742
7764
  onClick: () => {
7743
7765
  me(Ne), F({});
7744
7766
  },
7745
- disabled: H || y,
7767
+ disabled: j || y,
7746
7768
  children: "Previous"
7747
7769
  }
7748
7770
  ),
7749
- I && a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: H || y, children: "Cancel" })
7771
+ I && a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: j || y, children: "Cancel" })
7750
7772
  ] }),
7751
- /* @__PURE__ */ r(Z, { type: "button", isLoading: H || y, onClick: L ? _e : Ie, children: L ? m.conditionalOn && !l ? "Skip & Submit" : "Submit" : m.conditionalOn && !l ? "Skip" : "Next" })
7773
+ /* @__PURE__ */ r(Z, { type: "button", isLoading: j || y, onClick: L ? _e : Ie, children: L ? m.conditionalOn && !l ? "Skip & Submit" : "Submit" : m.conditionalOn && !l ? "Skip" : "Next" })
7752
7774
  ] })
7753
7775
  ] }) });
7754
7776
  }
@@ -7763,11 +7785,11 @@ const Xn = ({
7763
7785
  /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: z.map((m) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Ze(m) }, m)) })
7764
7786
  ] }),
7765
7787
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7766
- a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: H || y, children: "Cancel" }),
7767
- /* @__PURE__ */ r(Z, { type: "submit", isLoading: H || y, children: "Register Company" })
7788
+ a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: j || y, children: "Cancel" }),
7789
+ /* @__PURE__ */ r(Z, { type: "submit", isLoading: j || y, children: "Register Company" })
7768
7790
  ] })
7769
7791
  ] }) }) });
7770
- }, ea = ({
7792
+ }, ta = ({
7771
7793
  applicantId: e,
7772
7794
  onComplete: t,
7773
7795
  onError: n,
@@ -7785,7 +7807,7 @@ const Xn = ({
7785
7807
  error: v,
7786
7808
  moveBack: A,
7787
7809
  refreshProgress: T
7788
- } = qr(e), [w, N] = we.useState(!1), z = we.useRef(null);
7810
+ } = Vr(e), [w, N] = we.useState(!1), z = we.useRef(null);
7789
7811
  if (we.useEffect(() => {
7790
7812
  v && n && n(v);
7791
7813
  }, [v, n]), we.useEffect(() => {
@@ -7900,7 +7922,7 @@ const Xn = ({
7900
7922
  transition: "width 0.4s ease"
7901
7923
  } }) }) }),
7902
7924
  /* @__PURE__ */ r(
7903
- Ln,
7925
+ Dn,
7904
7926
  {
7905
7927
  ref: z,
7906
7928
  visibleSteps: K,
@@ -7909,7 +7931,7 @@ const Xn = ({
7909
7931
  }
7910
7932
  )
7911
7933
  ] });
7912
- }, j = () => {
7934
+ }, H = () => {
7913
7935
  const K = {
7914
7936
  applicantId: e,
7915
7937
  onComplete: async () => {
@@ -7919,20 +7941,20 @@ const Xn = ({
7919
7941
  };
7920
7942
  switch (c.action) {
7921
7943
  case ce.Questionaries:
7922
- return /* @__PURE__ */ r(yn, { ...K });
7944
+ return /* @__PURE__ */ r(hn, { ...K });
7923
7945
  case ce.UploadDocument:
7924
- return /* @__PURE__ */ r(gn, { ...K });
7925
- case ce.Overview:
7926
7946
  return /* @__PURE__ */ r(bn, { ...K });
7947
+ case ce.Overview:
7948
+ return /* @__PURE__ */ r(xn, { ...K });
7927
7949
  case ce.IdentitySdk:
7928
- return /* @__PURE__ */ r(Tn, { ...K });
7950
+ return /* @__PURE__ */ r(Pn, { ...K });
7929
7951
  case ce.RiskScoring:
7930
- return /* @__PURE__ */ r(Nn, { ...K });
7952
+ return /* @__PURE__ */ r(In, { ...K });
7931
7953
  case ce.AdditionalData:
7932
7954
  case ce.InvestorCategorization:
7933
- return /* @__PURE__ */ r(Rn, { ...K });
7934
- case ce.AppropriatenessTest:
7935
7955
  return /* @__PURE__ */ r(En, { ...K });
7956
+ case ce.AppropriatenessTest:
7957
+ return /* @__PURE__ */ r(Fn, { ...K });
7936
7958
  case ce.ManualReview:
7937
7959
  return /* @__PURE__ */ r(
7938
7960
  Pt,
@@ -7959,9 +7981,9 @@ const Xn = ({
7959
7981
  };
7960
7982
  return /* @__PURE__ */ o("div", { className: `metakyc-sdk ${i || ""}`, children: [
7961
7983
  M(),
7962
- j()
7984
+ H()
7963
7985
  ] });
7964
- }, Ln = we.forwardRef(
7986
+ }, Dn = we.forwardRef(
7965
7987
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: n }, a) => {
7966
7988
  const i = we.useRef(null), s = we.useRef(null);
7967
7989
  return we.useImperativeHandle(a, () => i.current), we.useEffect(() => {
@@ -8046,12 +8068,12 @@ const Xn = ({
8046
8068
  );
8047
8069
  }
8048
8070
  );
8049
- function ta(e) {
8071
+ function ra(e) {
8050
8072
  return Ve.object({
8051
8073
  questionResults: Ve.any()
8052
8074
  }).passthrough();
8053
8075
  }
8054
- function Dn(e) {
8076
+ function Mn(e) {
8055
8077
  let t = Ve.array(Ve.instanceof(File));
8056
8078
  if (e.isRequired ? t = t.min(
8057
8079
  1,
@@ -8073,27 +8095,27 @@ function Dn(e) {
8073
8095
  }
8074
8096
  return t;
8075
8097
  }
8076
- function ra(e) {
8098
+ function na(e) {
8077
8099
  const t = {};
8078
8100
  return e.uploadDocumentFiles.forEach((n) => {
8079
8101
  const a = `file_${n.id}`;
8080
- t[a] = Dn(n);
8102
+ t[a] = Mn(n);
8081
8103
  }), Ve.object(t);
8082
8104
  }
8083
- function na(e) {
8105
+ function aa(e) {
8084
8106
  return Ve.any();
8085
8107
  }
8086
- function Mn(e) {
8108
+ function On(e) {
8087
8109
  return Ve.string().min(1, "This question is required");
8088
8110
  }
8089
- function aa(e) {
8111
+ function ia(e) {
8090
8112
  const t = {};
8091
8113
  return e.appropriatenessQuestions.forEach((n) => {
8092
8114
  const a = `question_${n.id}`;
8093
- t[a] = Mn();
8115
+ t[a] = On();
8094
8116
  }), Ve.object(t);
8095
8117
  }
8096
- const ia = Ve.any();
8118
+ const oa = Ve.any();
8097
8119
  export {
8098
8120
  Rt as ALLOWED_LANGUAGES,
8099
8121
  Jt as ApplicantProgressOnHoldReason,
@@ -8102,7 +8124,7 @@ export {
8102
8124
  Xt as ApplicantStatus,
8103
8125
  ar as AppropriatenessQuestionType,
8104
8126
  fr as AppropriatenessTestService,
8105
- En as AppropriatenessTestStep,
8127
+ Fn as AppropriatenessTestStep,
8106
8128
  $t as Badge,
8107
8129
  vr as BaseInformationService,
8108
8130
  Z as Button,
@@ -8112,8 +8134,8 @@ export {
8112
8134
  Ce as CardFooter,
8113
8135
  Se as CardHeader,
8114
8136
  Je as CountriesType,
8115
- Zn as CreateApplicantForm,
8116
- Xn as CreateCompanyApplicantForm,
8137
+ Xn as CreateApplicantForm,
8138
+ ea as CreateCompanyApplicantForm,
8117
8139
  or as CriteriaBuiltInType,
8118
8140
  lr as DEFAULT_COMPANY_VISIBLE_FIELDS,
8119
8141
  cr as DEFAULT_VISIBLE_FIELDS,
@@ -8123,39 +8145,40 @@ export {
8123
8145
  Fr as EventEmitter,
8124
8146
  nt as FIELD_METADATA,
8125
8147
  rr as FileType,
8126
- rn as FileUpload,
8148
+ nn as FileUpload,
8127
8149
  bt as GenderType,
8128
8150
  mt as Header,
8129
8151
  pr as HttpClient,
8130
8152
  Ge as IdentityProviderManager,
8131
8153
  xr as IdentityService,
8132
8154
  Oe as IdentityVerificationProvider,
8133
- Tn as IdentityVerificationStep,
8155
+ Pn as IdentityVerificationStep,
8134
8156
  xe as Input,
8135
8157
  kr as InvestorCategorizationService,
8136
- Rn as InvestorCategorizationStep,
8158
+ En as InvestorCategorizationStep,
8137
8159
  Ee as InvestorCategorizationType,
8138
8160
  sr as InvestorCategoryType,
8139
8161
  er as KycProcessStatus,
8140
8162
  tt as KycStatus,
8141
8163
  Pt as KycStatusDisplay,
8142
- ea as KycWorkflow,
8143
- Pn as Logo,
8164
+ ta as KycWorkflow,
8165
+ Ln as Logo,
8144
8166
  Ot as MetaKYCContext,
8145
8167
  Ue as MetaKYCError,
8146
- Kn as MetaKYCProvider,
8147
- en as MultiSelect,
8168
+ qn as MetaKYCProvider,
8169
+ tn as MultiSelect,
8148
8170
  Or as OnfidoProvider,
8149
8171
  gr as OverviewService,
8150
- bn as OverviewStep,
8151
- nn as PhoneInput,
8172
+ xn as OverviewStep,
8173
+ an as PhoneInput,
8152
8174
  yr as QuestionnaireService,
8153
- yn as QuestionnaireStep,
8175
+ hn as QuestionnaireStep,
8154
8176
  rt as ReviewStatus,
8155
8177
  ir as RiskCriteriaType,
8156
8178
  Zt as RiskLevel,
8157
8179
  br as RiskScoringService,
8158
- Nn as RiskScoringStep,
8180
+ In as RiskScoringStep,
8181
+ _r as SDK_VERSION,
8159
8182
  zr as SardinAIProvider,
8160
8183
  qe as SearchableSelect,
8161
8184
  Ct as Select,
@@ -8166,51 +8189,51 @@ export {
8166
8189
  Fe as ThemePreset,
8167
8190
  Er as ThemeService,
8168
8191
  hr as UploadDocumentService,
8169
- gn as UploadDocumentStep,
8192
+ bn as UploadDocumentStep,
8170
8193
  tr as UserType,
8171
8194
  Ke as ValueDataType,
8172
8195
  Pr as WorkflowOrchestrator,
8173
8196
  gt as WorkflowResultType,
8174
8197
  Ar as WorkflowState,
8175
8198
  ce as WorkflowStepAction,
8176
- ia as appropriatenessTestSchema,
8177
- Gn as clearAllStorage,
8178
- Wr as clearApplicantId,
8179
- Kr as clearWorkflowState,
8199
+ oa as appropriatenessTestSchema,
8200
+ Jn as clearAllStorage,
8201
+ Ur as clearApplicantId,
8202
+ qr as clearWorkflowState,
8180
8203
  Ae as cn,
8181
8204
  wr as corporateTheme,
8182
8205
  dr as defaultConfig,
8183
8206
  Le as defaultTheme,
8184
- _r as fileToBase64,
8207
+ Hr as fileToBase64,
8185
8208
  Sr as fintechTheme,
8186
8209
  xt as formatFileSize,
8187
- aa as generateAppropriatenessSchema,
8188
- ta as generateQuestionnaireSchema,
8189
- na as generateRiskScoringSchema,
8190
- ra as generateUploadDocumentSchema,
8191
- Yn as getAcceptString,
8192
- Hr as getApplicantId,
8210
+ ia as generateAppropriatenessSchema,
8211
+ ra as generateQuestionnaireSchema,
8212
+ aa as generateRiskScoringSchema,
8213
+ na as generateUploadDocumentSchema,
8214
+ Qn as getAcceptString,
8215
+ Wr as getApplicantId,
8193
8216
  ut as getThemePreset,
8194
- Qn as getWorkflowState,
8217
+ Gn as getWorkflowState,
8195
8218
  Cr as healthcareTheme,
8196
- Wn as isScriptLoaded,
8219
+ Un as isScriptLoaded,
8197
8220
  Mt as loadScript,
8198
8221
  Ir as minimalTheme,
8199
8222
  Nr as modernTheme,
8200
- Un as removeScript,
8223
+ Kn as removeScript,
8201
8224
  jr as saveApplicantId,
8202
- Ur as saveWorkflowState,
8225
+ Kr as saveWorkflowState,
8203
8226
  Rr as themePresets,
8204
8227
  zt as useApplicant,
8205
- Jn as useAppropriatenessTest,
8206
- Gr as useIdentityVerification,
8207
- qr as useKycWorkflow,
8228
+ Zn as useAppropriatenessTest,
8229
+ Jr as useIdentityVerification,
8230
+ Vr as useKycWorkflow,
8208
8231
  Te as useMetaKYC,
8209
- Qr as useOverview,
8210
- Vr as useQuestionnaire,
8211
- Jr as useRiskScoring,
8212
- Yr as useUploadDocument,
8213
- qn as validateFileSize,
8214
- Vn as validateFileType
8232
+ Gr as useOverview,
8233
+ Yr as useQuestionnaire,
8234
+ Zr as useRiskScoring,
8235
+ Qr as useUploadDocument,
8236
+ Vn as validateFileSize,
8237
+ Yn as validateFileType
8215
8238
  };
8216
8239
  //# sourceMappingURL=index.js.map