@vpdev2/metakyc-sdk 1.0.107 → 1.0.109

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
@@ -206,7 +206,13 @@ class pr {
206
206
  "Content-Type": "application/json"
207
207
  }
208
208
  }), this.axiosInstance.interceptors.request.use(
209
- (n) => (n.headers["Abp-TenantId"] = this.config.tenantId.toString(), n.headers.ApiKey = this.config.apiKey, n.headers["X-API-KEY"] = this.config.apiKey, this.config.locale && (n.headers["Accept-Language"] = this.config.locale), n),
209
+ (n) => {
210
+ if (n.headers["Abp-TenantId"] = this.config.tenantId.toString(), this.config.getAccessToken) {
211
+ const a = this.config.getAccessToken();
212
+ a && (n.headers.Authorization = `Bearer ${a}`);
213
+ } else this.config.apiKey && (n.headers.ApiKey = this.config.apiKey, n.headers["X-API-KEY"] = this.config.apiKey);
214
+ return this.config.locale && (n.headers["Accept-Language"] = this.config.locale), n;
215
+ },
210
216
  (n) => Promise.reject(n)
211
217
  ), this.axiosInstance.interceptors.response.use(
212
218
  (n) => n,
@@ -1208,7 +1214,7 @@ class Ar {
1208
1214
  this.events.clear();
1209
1215
  }
1210
1216
  }
1211
- class Pr {
1217
+ class Tr {
1212
1218
  constructor() {
1213
1219
  he(this, "handlers", /* @__PURE__ */ new Map());
1214
1220
  }
@@ -1249,11 +1255,11 @@ class Pr {
1249
1255
  return a.submitData(n);
1250
1256
  }
1251
1257
  }
1252
- class Tr {
1258
+ class Pr {
1253
1259
  constructor(t, n, a, i, o, c, d, y) {
1254
1260
  he(this, "state");
1255
1261
  he(this, "stepRouter");
1256
- this.applicantService = t, this.questionnaireService = n, this.uploadDocumentService = a, this.appropriatenessTestService = i, this.overviewService = o, this.riskScoringService = c, this.investorCategorizationService = y, this.state = new Ar(), this.stepRouter = new Pr(), this.registerStepHandlers();
1262
+ this.applicantService = t, this.questionnaireService = n, this.uploadDocumentService = a, this.appropriatenessTestService = i, this.overviewService = o, this.riskScoringService = c, this.investorCategorizationService = y, this.state = new Ar(), this.stepRouter = new Tr(), this.registerStepHandlers();
1257
1263
  }
1258
1264
  /**
1259
1265
  * Register all step handlers
@@ -1420,83 +1426,30 @@ function We(e, t) {
1420
1426
  }
1421
1427
  function Dr() {
1422
1428
  const e = We("--metakyc-primary", "#2563eb"), t = We("--metakyc-primary-hover", "#1d4ed8"), n = We("--metakyc-background", "#ffffff"), a = We("--metakyc-surface", "#f9fafb"), i = We("--metakyc-text-primary", "#111827"), o = We("--metakyc-text-secondary", "#6b7280"), c = We("--metakyc-text-muted", "#9ca3af"), d = We("--metakyc-border", "#e5e7eb");
1423
- return [
1424
- `body, html { font-family: ${We(
1425
- "--metakyc-font-family",
1426
- "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
1427
- )} !important; background-color: ${n} !important; }`,
1428
- `p, span, label, div { color: ${i}; }`,
1429
- `h1, h2, h3, h4 { color: ${i}; }`,
1430
- `.step-desc { color: ${o}; }`,
1431
- "section.content {",
1432
- ` background-color: ${a};`,
1433
- ` color: ${i};`,
1434
- " padding: 32px 32px 16px;",
1435
- " box-shadow: none;",
1436
- " border-radius: 10px;",
1437
- ` border: 1px solid ${d};`,
1438
- "}",
1439
- "input {",
1440
- ` color: ${i};`,
1441
- " font-weight: 500;",
1442
- " outline: none;",
1443
- ` background-color: ${n};`,
1444
- ` border: 1px solid ${d};`,
1445
- " border-radius: 6px;",
1446
- "}",
1447
- "input:focus {",
1448
- ` border-color: ${e};`,
1449
- ` box-shadow: 0 0 0 2px ${e}33;`,
1450
- "}",
1451
- "button.submit, button.back {",
1452
- " border-radius: 8px;",
1453
- " height: 44px;",
1454
- " padding: 0 24px;",
1455
- " font-size: 14px;",
1456
- " font-weight: 600;",
1457
- " background-image: none !important;",
1458
- " transform: none !important;",
1459
- " box-shadow: none !important;",
1460
- " transition: all 0.15s ease;",
1461
- " cursor: pointer;",
1462
- "}",
1463
- "button.submit {",
1464
- " min-width: 120px;",
1465
- " background: none;",
1466
- ` background-color: ${e};`,
1467
- " color: #ffffff;",
1468
- " border: none;",
1469
- "}",
1470
- "button.submit:hover {",
1471
- ` background-color: ${t};`,
1472
- "}",
1473
- "button.back {",
1474
- " background: none;",
1475
- ` background-color: ${n};`,
1476
- ` border: 1px solid ${d};`,
1477
- ` color: ${i};`,
1478
- "}",
1479
- "button.back:hover {",
1480
- ` background-color: ${a};`,
1481
- "}",
1482
- ".round-icon {",
1483
- ` background-color: ${e} !important;`,
1484
- " background-image: none !important;",
1485
- "}",
1486
- ".upload-item, .document-status {",
1487
- ` border-color: ${d} !important;`,
1488
- "}",
1489
- "select {",
1490
- ` background-color: ${n};`,
1491
- ` color: ${i};`,
1492
- ` border: 1px solid ${d};`,
1493
- " border-radius: 6px;",
1494
- "}",
1495
- `.description { color: ${o}; }`,
1496
- `.subtitle { color: ${c}; }`,
1497
- `a { color: ${e}; }`,
1498
- `a:hover { color: ${t}; }`
1499
- ].join(" ");
1429
+ return `
1430
+ body, html { font-family: ${We(
1431
+ "--metakyc-font-family",
1432
+ "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
1433
+ )} !important; background-color: ${n} !important; }
1434
+ p, span, label, div { color: ${i}; }
1435
+ h1, h2, h3, h4 { color: ${i}; }
1436
+ .step-desc { color: ${o}; }
1437
+ section.content { background-color: ${a}; color: ${i}; padding: 32px 32px 16px; box-shadow: none; border-radius: 10px; border: 1px solid ${d}; }
1438
+ input { color: ${i}; font-weight: 500; outline: none; background-color: ${n}; border: 1px solid ${d}; border-radius: 6px; }
1439
+ input:focus { border-color: ${e}; box-shadow: 0 0 0 2px ${e}33; }
1440
+ button.submit, button.back { border-radius: 8px; height: 44px; padding: 0 24px; font-size: 14px; font-weight: 600; background-image: none !important; transform: none !important; box-shadow: none !important; transition: all 0.15s ease; cursor: pointer; }
1441
+ button.submit { min-width: 120px; background: none; background-color: ${e}; color: #ffffff; border: none; }
1442
+ button.submit:hover { background-color: ${t}; }
1443
+ button.back { background: none; background-color: ${n}; border: 1px solid ${d}; color: ${i}; }
1444
+ button.back:hover { background-color: ${a}; }
1445
+ .round-icon { background-color: ${e} !important; background-image: none !important; }
1446
+ .upload-item, .document-status { border-color: ${d} !important; }
1447
+ select { background-color: ${n}; color: ${i}; border: 1px solid ${d}; border-radius: 6px; }
1448
+ .description { color: ${o}; }
1449
+ .subtitle { color: ${c}; }
1450
+ a { color: ${e}; }
1451
+ a:hover { color: ${t}; }
1452
+ `.trim();
1500
1453
  }
1501
1454
  class Mr {
1502
1455
  constructor(t) {
@@ -1512,18 +1465,17 @@ class Mr {
1512
1465
  }
1513
1466
  async initialize(t) {
1514
1467
  await this.loadSDK();
1515
- const n = {};
1516
- this.config.customCss && (n.customCss = this.config.customCss), n.customCssStr = Dr();
1468
+ const n = {
1469
+ lang: this.config.lang || "en"
1470
+ };
1471
+ if (this.config.applicantEmail && (n.email = this.config.applicantEmail), this.config.applicantPhone && (n.phone = this.config.applicantPhone), this.config.theme && (n.theme = this.config.theme), this.config.customizationName && (n.customizationName = this.config.customizationName), !this.config.customizationName) {
1472
+ const i = {};
1473
+ this.config.customCss && (i.customCss = this.config.customCss), this.config.customCssStr && (i.customCssStr = this.config.customCssStr), i.customCssStr || (i.customCssStr = Dr()), n.uiConf = i;
1474
+ }
1517
1475
  const a = window.snsWebSdk.init(
1518
1476
  this.config.accessToken,
1519
1477
  () => this.config.onTokenRefresh()
1520
- ).withConf({
1521
- lang: this.config.lang || "en",
1522
- ...this.config.applicantEmail ? { email: this.config.applicantEmail } : {},
1523
- ...this.config.applicantPhone ? { phone: this.config.applicantPhone } : {},
1524
- ...this.config.theme ? { theme: this.config.theme } : {},
1525
- uiConf: n
1526
- }).withOptions({
1478
+ ).withConf(n).withOptions({
1527
1479
  addViewportTag: !1,
1528
1480
  adaptIframeHeight: this.config.adaptIframeHeight !== !1
1529
1481
  }).on("idCheck.onStepCompleted", (i) => {
@@ -1797,6 +1749,7 @@ class Ge {
1797
1749
  externalUserId: n.externalUserId,
1798
1750
  lang: c.lang || n.lang || "en",
1799
1751
  theme: c.theme,
1752
+ customizationName: c.customizationName,
1800
1753
  customCss: c.customCss,
1801
1754
  adaptIframeHeight: c.adaptIframeHeight
1802
1755
  };
@@ -2004,15 +1957,15 @@ class Br {
2004
1957
  }
2005
1958
  const Ot = Vt(null), Kn = ({ config: e, children: t }) => {
2006
1959
  const [n, a] = k(null), i = we.useRef(!1), o = we.useRef(!1), c = De(() => {
2007
- const y = new pr(e), p = new mr(y), x = new yr(y), T = new hr(y), v = new fr(y), A = new gr(y), P = new br(y), w = new xr(y), N = new vr(y), z = new kr(y), Q = new Er(y), M = new Br();
1960
+ const y = new pr(e), p = new mr(y), x = 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();
2008
1961
  return {
2009
1962
  httpClient: y,
2010
1963
  applicantService: p,
2011
1964
  questionnaireService: x,
2012
- uploadDocumentService: T,
1965
+ uploadDocumentService: P,
2013
1966
  appropriatenessTestService: v,
2014
1967
  overviewService: A,
2015
- riskScoringService: P,
1968
+ riskScoringService: T,
2016
1969
  identityService: w,
2017
1970
  baseInformationService: N,
2018
1971
  investorCategorizationService: z,
@@ -2023,7 +1976,7 @@ const Ot = Vt(null), Kn = ({ config: e, children: t }) => {
2023
1976
  config: e,
2024
1977
  ...c,
2025
1978
  currentTheme: n,
2026
- createOrchestrator: () => new Tr(
1979
+ createOrchestrator: () => new Pr(
2027
1980
  c.applicantService,
2028
1981
  c.questionnaireService,
2029
1982
  c.uploadDocumentService,
@@ -2057,7 +2010,7 @@ const Ot = Vt(null), Kn = ({ config: e, children: t }) => {
2057
2010
  c.themeManager.cleanup();
2058
2011
  }), []), /* @__PURE__ */ r(Ot.Provider, { value: d, children: t });
2059
2012
  };
2060
- function Pe() {
2013
+ function Te() {
2061
2014
  const e = Yt(Ot);
2062
2015
  if (!e)
2063
2016
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
@@ -2147,7 +2100,7 @@ function Gn() {
2147
2100
  Wr(), Kr();
2148
2101
  }
2149
2102
  function qr(e) {
2150
- const { createOrchestrator: t } = Pe(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(null), y = de(null), p = e || Hr();
2103
+ const { createOrchestrator: t } = Te(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(null), y = de(null), p = e || Hr();
2151
2104
  ge(() => {
2152
2105
  y.current || (y.current = t());
2153
2106
  }, [t]), ge(() => {
@@ -2161,7 +2114,7 @@ function qr(e) {
2161
2114
  nextWorkflowKey: n.nextWorkflowKey
2162
2115
  }));
2163
2116
  }, [n, p]);
2164
- const x = de(!1), T = de(!1), v = ae(async () => {
2117
+ const x = de(!1), P = de(!1), v = ae(async () => {
2165
2118
  if (!(!p || !y.current)) {
2166
2119
  if (x.current) {
2167
2120
  console.log("[Workflow] Load already in progress, skipping...");
@@ -2170,7 +2123,7 @@ function qr(e) {
2170
2123
  x.current = !0, o(!0), d(null);
2171
2124
  try {
2172
2125
  const M = await y.current.initialize(p);
2173
- a(M), T.current = !0;
2126
+ a(M), P.current = !0;
2174
2127
  } catch (M) {
2175
2128
  d(M);
2176
2129
  } finally {
@@ -2179,7 +2132,7 @@ function qr(e) {
2179
2132
  }
2180
2133
  }, [p]);
2181
2134
  ge(() => {
2182
- p && !T.current && v();
2135
+ p && !P.current && v();
2183
2136
  }, [p, v]);
2184
2137
  const A = ae(async () => {
2185
2138
  if (y.current) {
@@ -2197,7 +2150,7 @@ function qr(e) {
2197
2150
  o(!1), x.current = !1;
2198
2151
  }
2199
2152
  }
2200
- }, []), P = ae(async () => {
2153
+ }, []), T = ae(async () => {
2201
2154
  if (y.current) {
2202
2155
  o(!0), d(null);
2203
2156
  try {
@@ -2250,14 +2203,14 @@ function qr(e) {
2250
2203
  isComplete: (n == null ? void 0 : n.status) === ze.Finished,
2251
2204
  isOnHold: (n == null ? void 0 : n.status) === ze.OnHold,
2252
2205
  refreshProgress: A,
2253
- moveToNext: P,
2206
+ moveToNext: T,
2254
2207
  moveBack: w,
2255
2208
  submitCurrentStep: N,
2256
2209
  orchestrator: y.current
2257
2210
  };
2258
2211
  }
2259
2212
  function Vr(e) {
2260
- const { questionnaireService: t, applicantService: n } = Pe(), [a, i] = k(null), [o, c] = k({}), [d, y] = k(!1), [p, x] = k(!1), [T, v] = k(null), A = de(!1), P = de(null), w = ae(async () => {
2213
+ const { questionnaireService: t, applicantService: n } = Te(), [a, i] = k(null), [o, c] = k({}), [d, y] = k(!1), [p, x] = k(!1), [P, v] = k(null), A = de(!1), T = de(null), w = ae(async () => {
2261
2214
  var z, Q;
2262
2215
  if (e) {
2263
2216
  if (A.current) {
@@ -2281,7 +2234,7 @@ function Vr(e) {
2281
2234
  }
2282
2235
  c(ee);
2283
2236
  }
2284
- P.current = e;
2237
+ T.current = e;
2285
2238
  } catch (M) {
2286
2239
  v(M);
2287
2240
  } finally {
@@ -2290,7 +2243,7 @@ function Vr(e) {
2290
2243
  }
2291
2244
  }, [e, t, n]);
2292
2245
  ge(() => {
2293
- e && P.current !== e && w();
2246
+ e && T.current !== e && w();
2294
2247
  }, [e]);
2295
2248
  const N = ae(
2296
2249
  async (z) => {
@@ -2310,39 +2263,39 @@ function Vr(e) {
2310
2263
  initialAnswers: o,
2311
2264
  isLoading: d,
2312
2265
  isSubmitting: p,
2313
- error: T,
2266
+ error: P,
2314
2267
  load: w,
2315
2268
  submit: N
2316
2269
  };
2317
2270
  }
2318
2271
  function Yr(e) {
2319
- const { uploadDocumentService: t } = Pe(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(0), [x, T] = k(null), v = de(!1), A = de(null), P = ae(async () => {
2272
+ const { uploadDocumentService: t } = Te(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(0), [x, P] = k(null), v = de(!1), A = de(null), T = ae(async () => {
2320
2273
  if (e) {
2321
2274
  if (v.current) {
2322
2275
  console.log("[UploadDocument] Load already in progress, skipping...");
2323
2276
  return;
2324
2277
  }
2325
- v.current = !0, o(!0), T(null);
2278
+ v.current = !0, o(!0), P(null);
2326
2279
  try {
2327
2280
  const N = await t.getUploadDocument(e);
2328
2281
  a(N), A.current = e;
2329
2282
  } catch (N) {
2330
- T(N);
2283
+ P(N);
2331
2284
  } finally {
2332
2285
  o(!1), v.current = !1;
2333
2286
  }
2334
2287
  }
2335
2288
  }, [e, t]);
2336
2289
  ge(() => {
2337
- e && A.current !== e && P();
2290
+ e && A.current !== e && T();
2338
2291
  }, [e]);
2339
2292
  const w = ae(
2340
2293
  async (N) => {
2341
- d(!0), p(0), T(null);
2294
+ d(!0), p(0), P(null);
2342
2295
  try {
2343
2296
  await t.fillUploadDocument(N), p(100);
2344
2297
  } catch (z) {
2345
- throw T(z), z;
2298
+ throw P(z), z;
2346
2299
  } finally {
2347
2300
  d(!1);
2348
2301
  }
@@ -2355,12 +2308,12 @@ function Yr(e) {
2355
2308
  isSubmitting: c,
2356
2309
  uploadProgress: y,
2357
2310
  error: x,
2358
- load: P,
2311
+ load: T,
2359
2312
  submit: w
2360
2313
  };
2361
2314
  }
2362
2315
  function Jn(e) {
2363
- const { appropriatenessTestService: t } = Pe(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(null), [x, T] = k(null), v = de(!1), A = de(null), P = ae(async () => {
2316
+ const { appropriatenessTestService: t } = Te(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(null), [x, P] = k(null), v = de(!1), A = de(null), T = ae(async () => {
2364
2317
  if (e) {
2365
2318
  if (v.current) {
2366
2319
  console.log("[AppropriatenessTest] Load already in progress, skipping...");
@@ -2378,14 +2331,14 @@ function Jn(e) {
2378
2331
  }
2379
2332
  }, [e, t]);
2380
2333
  ge(() => {
2381
- e && A.current !== e && P();
2334
+ e && A.current !== e && T();
2382
2335
  }, [e]);
2383
2336
  const w = ae(
2384
2337
  async (N) => {
2385
2338
  d(!0), p(null);
2386
2339
  try {
2387
2340
  const z = await t.fillAppropriatenessTest(N);
2388
- return T(z), z;
2341
+ return P(z), z;
2389
2342
  } catch (z) {
2390
2343
  throw p(z), z;
2391
2344
  } finally {
@@ -2400,12 +2353,12 @@ function Jn(e) {
2400
2353
  isLoading: i,
2401
2354
  isSubmitting: c,
2402
2355
  error: y,
2403
- load: P,
2356
+ load: T,
2404
2357
  submit: w
2405
2358
  };
2406
2359
  }
2407
2360
  function Qr(e) {
2408
- const { overviewService: t } = Pe(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(null), x = de(!1), T = de(null), v = ae(async () => {
2361
+ const { overviewService: t } = Te(), [n, a] = k(null), [i, o] = k(!1), [c, d] = k(!1), [y, p] = k(null), x = de(!1), P = de(null), v = ae(async () => {
2409
2362
  if (e) {
2410
2363
  if (x.current) {
2411
2364
  console.log("[Overview] Load already in progress, skipping...");
@@ -2413,25 +2366,25 @@ function Qr(e) {
2413
2366
  }
2414
2367
  x.current = !0, o(!0), p(null);
2415
2368
  try {
2416
- const P = await t.getOverviewData(e);
2417
- a(P), T.current = e;
2418
- } catch (P) {
2419
- p(P);
2369
+ const T = await t.getOverviewData(e);
2370
+ a(T), P.current = e;
2371
+ } catch (T) {
2372
+ p(T);
2420
2373
  } finally {
2421
2374
  o(!1), x.current = !1;
2422
2375
  }
2423
2376
  }
2424
2377
  }, [e, t]);
2425
2378
  ge(() => {
2426
- e && T.current !== e && v();
2379
+ e && P.current !== e && v();
2427
2380
  }, [e]);
2428
2381
  const A = ae(async () => {
2429
2382
  if (e) {
2430
2383
  d(!0), p(null);
2431
2384
  try {
2432
2385
  await t.passOverview(e);
2433
- } catch (P) {
2434
- throw p(P), P;
2386
+ } catch (T) {
2387
+ throw p(T), T;
2435
2388
  } finally {
2436
2389
  d(!1);
2437
2390
  }
@@ -2447,7 +2400,7 @@ function Qr(e) {
2447
2400
  };
2448
2401
  }
2449
2402
  function Gr(e) {
2450
- const { identityService: t } = Pe(), [n, a] = k(
2403
+ const { identityService: t } = Te(), [n, a] = k(
2451
2404
  null
2452
2405
  ), [i, o] = k(!1), [c, d] = k(null), y = de(!1), p = ae(
2453
2406
  async (v, A) => {
@@ -2458,18 +2411,18 @@ function Gr(e) {
2458
2411
  }
2459
2412
  y.current = !0, o(!0), d(null);
2460
2413
  try {
2461
- const P = {
2414
+ const T = {
2462
2415
  applicantId: e,
2463
2416
  restart: !1,
2464
2417
  redirectUrl: v || "",
2465
2418
  ttl: A || 604800
2466
2419
  // Default: 7 days
2467
2420
  };
2468
- console.log("Identity request input:", P);
2469
- const w = await t.identityRequest(P);
2421
+ console.log("Identity request input:", T);
2422
+ const w = await t.identityRequest(T);
2470
2423
  return console.log("Identity request result:", w), a(w), w;
2471
- } catch (P) {
2472
- throw d(P), P;
2424
+ } catch (T) {
2425
+ throw d(T), T;
2473
2426
  } finally {
2474
2427
  o(!1), y.current = !1;
2475
2428
  }
@@ -2481,22 +2434,22 @@ function Gr(e) {
2481
2434
  if (e) {
2482
2435
  o(!0), d(null);
2483
2436
  try {
2484
- const P = {
2437
+ const T = {
2485
2438
  applicantId: e,
2486
2439
  restart: !1,
2487
2440
  redirectUrl: v,
2488
2441
  ttl: A
2489
- }, w = await t.identityCompanyRequest(P);
2442
+ }, w = await t.identityCompanyRequest(T);
2490
2443
  return a(w), w;
2491
- } catch (P) {
2492
- throw d(P), P;
2444
+ } catch (T) {
2445
+ throw d(T), T;
2493
2446
  } finally {
2494
2447
  o(!1);
2495
2448
  }
2496
2449
  }
2497
2450
  },
2498
2451
  [e, t]
2499
- ), T = ae(async () => {
2452
+ ), P = ae(async () => {
2500
2453
  if (e) {
2501
2454
  if (y.current) {
2502
2455
  console.log("[Identity] Restart already in progress, skipping...");
@@ -2529,11 +2482,11 @@ function Gr(e) {
2529
2482
  error: c,
2530
2483
  requestIdentity: p,
2531
2484
  requestCompanyIdentity: x,
2532
- restartIdentity: T
2485
+ restartIdentity: P
2533
2486
  };
2534
2487
  }
2535
2488
  function Jr(e) {
2536
- const { riskScoringService: t, applicantService: n } = Pe(), [a, i] = k(null), [o, c] = k({}), [d, y] = k(!1), [p, x] = k(!1), [T, v] = k(null), [A, P] = k(null), w = de(!1), N = de(null), z = ae(async () => {
2489
+ const { riskScoringService: t, applicantService: n } = Te(), [a, i] = k(null), [o, c] = k({}), [d, y] = k(!1), [p, x] = k(!1), [P, v] = k(null), [A, T] = k(null), w = de(!1), N = de(null), z = ae(async () => {
2537
2490
  var M;
2538
2491
  if (e) {
2539
2492
  if (w.current) {
@@ -2573,7 +2526,7 @@ function Jr(e) {
2573
2526
  x(!0), v(null);
2574
2527
  try {
2575
2528
  const j = await t.submitRiskScoring(M);
2576
- return P(j), j;
2529
+ return T(j), j;
2577
2530
  } catch (j) {
2578
2531
  throw v(j), j;
2579
2532
  } finally {
@@ -2588,23 +2541,23 @@ function Jr(e) {
2588
2541
  result: A,
2589
2542
  isLoading: d,
2590
2543
  isSubmitting: p,
2591
- error: T,
2544
+ error: P,
2592
2545
  load: z,
2593
2546
  submit: Q
2594
2547
  };
2595
2548
  }
2596
2549
  function zt() {
2597
- const { applicantService: e, config: t } = Pe(), [n, a] = k(!1), [i, o] = k(null), c = de(!1), d = de(!1), y = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(A) {
2598
- const P = Math.random() * 16 | 0;
2599
- return (A === "x" ? P : P & 3 | 8).toString(16);
2550
+ const { applicantService: e, config: t } = Te(), [n, a] = k(!1), [i, o] = k(null), c = de(!1), d = de(!1), y = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(A) {
2551
+ const T = Math.random() * 16 | 0;
2552
+ return (A === "x" ? T : T & 3 | 8).toString(16);
2600
2553
  }), p = ae(
2601
2554
  async (A) => {
2602
- var P;
2555
+ var T;
2603
2556
  if (c.current)
2604
2557
  throw console.log("[Applicant] Create already in progress, skipping..."), new Error("Creation already in progress");
2605
2558
  c.current = !0, a(!0), o(null);
2606
2559
  try {
2607
- if (A.applicantAdditionalDatas || (A.applicantAdditionalDatas = []), (P = t.identityProviders) != null && P.sardinai) {
2560
+ if (A.applicantAdditionalDatas || (A.applicantAdditionalDatas = []), (T = t.identityProviders) != null && T.sardinai) {
2608
2561
  const N = y();
2609
2562
  console.log("[SardinAI] Generated session key:", N), A.applicantAdditionalDatas.push({
2610
2563
  paramName: "sessionKey",
@@ -2624,22 +2577,22 @@ function zt() {
2624
2577
  a(!0), o(null);
2625
2578
  try {
2626
2579
  return await e.createCompanyApplicant(A);
2627
- } catch (P) {
2628
- throw o(P), P;
2580
+ } catch (T) {
2581
+ throw o(T), T;
2629
2582
  } finally {
2630
2583
  a(!1);
2631
2584
  }
2632
2585
  },
2633
2586
  [e]
2634
- ), T = ae(
2587
+ ), P = ae(
2635
2588
  async (A) => {
2636
2589
  if (d.current)
2637
2590
  throw console.log("[Applicant] Data load already in progress, skipping..."), new Error("Data load already in progress");
2638
2591
  d.current = !0, a(!0), o(null);
2639
2592
  try {
2640
2593
  return await e.getApplicantData(A);
2641
- } catch (P) {
2642
- throw o(P), P;
2594
+ } catch (T) {
2595
+ throw o(T), T;
2643
2596
  } finally {
2644
2597
  a(!1), d.current = !1;
2645
2598
  }
@@ -2650,8 +2603,8 @@ function zt() {
2650
2603
  a(!0), o(null);
2651
2604
  try {
2652
2605
  await e.stopProgress(A);
2653
- } catch (P) {
2654
- throw o(P), P;
2606
+ } catch (T) {
2607
+ throw o(T), T;
2655
2608
  } finally {
2656
2609
  a(!1);
2657
2610
  }
@@ -2663,7 +2616,7 @@ function zt() {
2663
2616
  error: i,
2664
2617
  createApplicant: p,
2665
2618
  createCompanyApplicant: x,
2666
- getApplicantData: T,
2619
+ getApplicantData: P,
2667
2620
  stopProgress: v
2668
2621
  };
2669
2622
  }
@@ -2971,7 +2924,7 @@ const Et = 280, en = ({
2971
2924
  readOnly: c = !1,
2972
2925
  required: d = !1
2973
2926
  }) => {
2974
- const y = o || c, [p, x] = k(!1), [T, v] = k(""), [A, P] = k(null), [w, N] = k({
2927
+ const y = o || c, [p, x] = k(!1), [P, v] = k(""), [A, T] = k(null), [w, N] = k({
2975
2928
  bg: "#ffffff",
2976
2929
  borderColor: "#d1d5db",
2977
2930
  textPrimary: "#111827",
@@ -2998,7 +2951,7 @@ const Et = 280, en = ({
2998
2951
  if (y) return;
2999
2952
  K();
3000
2953
  const F = j();
3001
- F && P(F), x(!0);
2954
+ F && T(F), x(!0);
3002
2955
  }, [y, j, K]), E = ae(() => {
3003
2956
  x(!1), v("");
3004
2957
  }, []);
@@ -3014,14 +2967,14 @@ const Et = 280, en = ({
3014
2967
  if (!p) return;
3015
2968
  const F = () => {
3016
2969
  const U = j();
3017
- U && P(U);
2970
+ U && T(U);
3018
2971
  };
3019
2972
  return window.addEventListener("scroll", F, !0), window.addEventListener("resize", F), () => {
3020
2973
  window.removeEventListener("scroll", F, !0), window.removeEventListener("resize", F);
3021
2974
  };
3022
2975
  }, [p, j]);
3023
2976
  const b = a.filter(
3024
- (F) => F.label.toLowerCase().includes(T.toLowerCase())
2977
+ (F) => F.label.toLowerCase().includes(P.toLowerCase())
3025
2978
  ), $ = (F) => {
3026
2979
  y || n(t.includes(F) ? t.filter((U) => U !== F) : [...t, F]);
3027
2980
  }, V = (F, U) => {
@@ -3052,7 +3005,7 @@ const Et = 280, en = ({
3052
3005
  "input",
3053
3006
  {
3054
3007
  type: "text",
3055
- value: T,
3008
+ value: P,
3056
3009
  onChange: (F) => v(F.target.value),
3057
3010
  placeholder: "Search...",
3058
3011
  autoFocus: !0,
@@ -3242,7 +3195,7 @@ const Et = 280, en = ({
3242
3195
  className: x
3243
3196
  }) => {
3244
3197
  var fe;
3245
- const T = d || y, [v, A] = k(!1), [P, w] = k(""), [N, z] = k(null), [Q, M] = k({
3198
+ const P = d || y, [v, A] = k(!1), [T, w] = k(""), [N, z] = k(null), [Q, M] = k({
3246
3199
  bg: "#ffffff",
3247
3200
  border: "#d1d5db",
3248
3201
  text: "#111827",
@@ -3271,11 +3224,11 @@ const Et = 280, en = ({
3271
3224
  openUp: ye
3272
3225
  };
3273
3226
  }, []), V = ae(() => {
3274
- if (T) return;
3227
+ if (P) return;
3275
3228
  j();
3276
3229
  const I = $();
3277
3230
  I && z(I), A(!0);
3278
- }, [T, $, j]), G = ae(() => {
3231
+ }, [P, $, j]), G = ae(() => {
3279
3232
  A(!1), w("");
3280
3233
  }, []), _ = () => v ? G() : V();
3281
3234
  ge(() => {
@@ -3302,9 +3255,9 @@ const Et = 280, en = ({
3302
3255
  }, 0);
3303
3256
  }, [v]);
3304
3257
  const J = a.filter(
3305
- (I) => I.label.toLowerCase().includes(P.toLowerCase()) || I.value.toLowerCase().includes(P.toLowerCase())
3258
+ (I) => I.label.toLowerCase().includes(T.toLowerCase()) || I.value.toLowerCase().includes(T.toLowerCase())
3306
3259
  ), se = (fe = a.find((I) => I.value === o)) == null ? void 0 : fe.label, Y = (I, te) => {
3307
- T || te || (c(I), G());
3260
+ P || te || (c(I), G());
3308
3261
  }, { bg: ve, border: ue, text: me, textSecondary: ke, primary: F, primaryLight: U, hoverBg: B } = Q, H = v && N && /* @__PURE__ */ s(
3309
3262
  "div",
3310
3263
  {
@@ -3329,7 +3282,7 @@ const Et = 280, en = ({
3329
3282
  {
3330
3283
  ref: b,
3331
3284
  type: "text",
3332
- value: P,
3285
+ value: T,
3333
3286
  onChange: (I) => w(I.target.value),
3334
3287
  placeholder: "Search...",
3335
3288
  onClick: (I) => I.stopPropagation(),
@@ -3419,7 +3372,7 @@ const Et = 280, en = ({
3419
3372
  {
3420
3373
  ref: ee,
3421
3374
  role: "button",
3422
- tabIndex: T ? -1 : 0,
3375
+ tabIndex: P ? -1 : 0,
3423
3376
  onClick: _,
3424
3377
  onKeyDown: (I) => {
3425
3378
  (I.key === "Enter" || I.key === " ") && (I.preventDefault(), _()), I.key === "Escape" && G();
@@ -3429,7 +3382,7 @@ const Et = 280, en = ({
3429
3382
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors text-left",
3430
3383
  "flex items-center justify-between gap-2",
3431
3384
  "focus:outline-none",
3432
- T ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
3385
+ P ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
3433
3386
  ),
3434
3387
  style: {
3435
3388
  backgroundColor: "var(--metakyc-input-bg, #ffffff)",
@@ -3476,7 +3429,7 @@ const rn = ({
3476
3429
  value: y = [],
3477
3430
  className: p
3478
3431
  }) => {
3479
- const [x, T] = k(!1), [v, A] = k(null), P = de(null), w = ae((E) => {
3432
+ const [x, P] = k(!1), [v, A] = k(null), T = de(null), w = ae((E) => {
3480
3433
  if (!E) return;
3481
3434
  A(null);
3482
3435
  const b = Array.from(E);
@@ -3486,14 +3439,14 @@ const rn = ({
3486
3439
  }
3487
3440
  d == null || d(i ? [...y, ...b] : [b[0]]);
3488
3441
  }, [o, i, d, y]), N = ae((E) => {
3489
- E.preventDefault(), E.stopPropagation(), T(!0);
3442
+ E.preventDefault(), E.stopPropagation(), P(!0);
3490
3443
  }, []), z = ae((E) => {
3491
- E.preventDefault(), E.stopPropagation(), T(!1);
3444
+ E.preventDefault(), E.stopPropagation(), P(!1);
3492
3445
  }, []), Q = ae((E) => {
3493
- E.preventDefault(), E.stopPropagation(), T(!1), w(E.dataTransfer.files);
3446
+ E.preventDefault(), E.stopPropagation(), P(!1), w(E.dataTransfer.files);
3494
3447
  }, [w]), M = () => {
3495
3448
  var E;
3496
- (E = P.current) == null || E.click();
3449
+ (E = T.current) == null || E.click();
3497
3450
  }, j = (E) => {
3498
3451
  A(null);
3499
3452
  const b = y.filter(($, V) => V !== E);
@@ -3539,7 +3492,7 @@ const rn = ({
3539
3492
  /* @__PURE__ */ r(
3540
3493
  "input",
3541
3494
  {
3542
- ref: P,
3495
+ ref: T,
3543
3496
  type: "file",
3544
3497
  style: { display: "none" },
3545
3498
  accept: a,
@@ -3930,7 +3883,7 @@ const yn = ({
3930
3883
  onComplete: t,
3931
3884
  onBack: n
3932
3885
  }) => {
3933
- const { questionnaire: a, initialAnswers: i, isLoading: o, isSubmitting: c, error: d, submit: y } = Vr(e), [p, x] = k({}), [T, v] = k({}), [A, P] = k(0);
3886
+ const { questionnaire: a, initialAnswers: i, isLoading: o, isSubmitting: c, error: d, submit: y } = Vr(e), [p, x] = k({}), [P, v] = k({}), [A, T] = k(0);
3934
3887
  we.useEffect(() => {
3935
3888
  i && Object.keys(i).length > 0 && Object.keys(p).length === 0 && x(i);
3936
3889
  }, [i]);
@@ -3950,9 +3903,9 @@ const yn = ({
3950
3903
  }
3951
3904
  return v((b) => ({ ...b, ...E })), Object.keys(E).length === 0;
3952
3905
  }, [z, p]), j = () => {
3953
- M() && P((E) => E + 1);
3906
+ M() && T((E) => E + 1);
3954
3907
  }, K = () => {
3955
- A > 0 ? P((E) => E - 1) : n == null || n();
3908
+ A > 0 ? T((E) => E - 1) : n == null || n();
3956
3909
  }, ee = async () => {
3957
3910
  if (!(!M() || !a))
3958
3911
  try {
@@ -4004,7 +3957,7 @@ const yn = ({
4004
3957
  {
4005
3958
  question: E,
4006
3959
  value: p[E.id] ?? [],
4007
- error: T[E.id],
3960
+ error: P[E.id],
4008
3961
  onChange: (b) => Q(E.id, b)
4009
3962
  },
4010
3963
  E.id
@@ -4167,7 +4120,7 @@ const gn = ({
4167
4120
  onComplete: t,
4168
4121
  onBack: n
4169
4122
  }) => {
4170
- const { uploadDocument: a, isLoading: i, isSubmitting: o, error: c, submit: d } = Yr(e), [y, p] = k({}), [x, T] = k(null), [v, A] = k(0), [P, w] = k({}), N = De(
4123
+ const { uploadDocument: a, isLoading: i, isSubmitting: o, error: c, submit: d } = Yr(e), [y, p] = k({}), [x, P] = k(null), [v, A] = k(0), [T, w] = k({}), N = De(
4171
4124
  () => a ? fn(a.uploadDocumentFiles) : [],
4172
4125
  [a]
4173
4126
  ), z = N[v] ?? [], Q = v === N.length - 1, M = N.length, j = ae(() => {
@@ -4181,7 +4134,7 @@ const gn = ({
4181
4134
  v > 0 ? (A((b) => b - 1), w({})) : n == null || n();
4182
4135
  }, E = async () => {
4183
4136
  if (!(!j() || !a)) {
4184
- T(null);
4137
+ P(null);
4185
4138
  try {
4186
4139
  const b = await Promise.all(
4187
4140
  a.uploadDocumentFiles.map(async (V) => {
@@ -4203,7 +4156,7 @@ const gn = ({
4203
4156
  };
4204
4157
  await d($), t == null || t();
4205
4158
  } catch (b) {
4206
- T((b == null ? void 0 : b.message) || "Failed to submit documents. Please try again.");
4159
+ P((b == null ? void 0 : b.message) || "Failed to submit documents. Please try again.");
4207
4160
  }
4208
4161
  }
4209
4162
  };
@@ -4318,10 +4271,10 @@ const gn = ({
4318
4271
  multiple: b.multipleFile,
4319
4272
  maxSize: b.maxEachFileSizeByte,
4320
4273
  required: b.isRequired,
4321
- error: P[b.id],
4274
+ error: T[b.id],
4322
4275
  value: y[b.id] || [],
4323
4276
  onChange: ($) => {
4324
- T(null), w((V) => {
4277
+ P(null), w((V) => {
4325
4278
  const G = { ...V };
4326
4279
  return delete G[b.id], G;
4327
4280
  }), p((V) => ({ ...V, [b.id]: $ }));
@@ -4489,9 +4442,9 @@ const Nn = ({
4489
4442
  onComplete: t,
4490
4443
  onBack: n
4491
4444
  }) => {
4492
- const { config: a } = Pe(), i = a.locale ?? "en", { criteria: o, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: x } = Jr(e), [T, v] = k({}), [A, P] = k({}), [w, N] = k(0), [z, Q] = k(!1);
4445
+ const { config: a } = Te(), i = a.locale ?? "en", { criteria: o, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: x } = Jr(e), [P, v] = k({}), [A, T] = k({}), [w, N] = k(0), [z, Q] = k(!1);
4493
4446
  we.useEffect(() => {
4494
- c && Object.keys(c).length > 0 && Object.keys(T).length === 0 && v(c);
4447
+ c && Object.keys(c).length > 0 && Object.keys(P).length === 0 && v(c);
4495
4448
  }, [c]);
4496
4449
  const M = De(
4497
4450
  () => o && o.length > 0 ? Sn(o) : [],
@@ -4501,18 +4454,18 @@ const Nn = ({
4501
4454
  !d && o && o.length === 0 && !z && !y && (Q(!0), x({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4502
4455
  }, [d, o, z, y, x, e, t]);
4503
4456
  const ee = ae((G, _) => {
4504
- v((J) => ({ ...J, [G]: _ })), P((J) => {
4457
+ v((J) => ({ ...J, [G]: _ })), T((J) => {
4505
4458
  const se = { ...J };
4506
4459
  return delete se[G], se;
4507
4460
  });
4508
4461
  }, []), E = ae(() => {
4509
4462
  const G = {};
4510
4463
  for (const { criterion: _ } of K) {
4511
- const J = wn(_, T[_.id] ?? []);
4464
+ const J = wn(_, P[_.id] ?? []);
4512
4465
  J && (G[_.id] = J);
4513
4466
  }
4514
- return P((_) => ({ ..._, ...G })), Object.keys(G).length === 0;
4515
- }, [K, T]), b = () => {
4467
+ return T((_) => ({ ..._, ...G })), Object.keys(G).length === 0;
4468
+ }, [K, P]), b = () => {
4516
4469
  E() && N((G) => G + 1);
4517
4470
  }, $ = () => {
4518
4471
  w > 0 ? N((G) => G - 1) : n == null || n();
@@ -4520,7 +4473,7 @@ const Nn = ({
4520
4473
  if (!(!E() || !o))
4521
4474
  try {
4522
4475
  const G = o.map((J) => {
4523
- const se = (T[J.id] ?? []).filter((Y) => Y && Y.trim());
4476
+ const se = (P[J.id] ?? []).filter((Y) => Y && Y.trim());
4524
4477
  return se.length > 0 ? { riskCriteriaId: J.id, values: se } : null;
4525
4478
  }).filter((J) => J !== null);
4526
4479
  await x({ applicantId: e, criteriaValueInputs: G }), t == null || t();
@@ -4566,7 +4519,7 @@ const Nn = ({
4566
4519
  Rn,
4567
4520
  {
4568
4521
  criterion: G,
4569
- value: T[G.id] ?? [],
4522
+ value: P[G.id] ?? [],
4570
4523
  error: A[G.id],
4571
4524
  locale: i,
4572
4525
  onChange: (_) => ee(G.id, _)
@@ -4676,7 +4629,7 @@ const Nn = ({
4676
4629
  type: "checkbox",
4677
4630
  checked: t.includes(p),
4678
4631
  onChange: (x) => {
4679
- x.target.checked ? i([...t, p]) : i(t.filter((T) => T !== p));
4632
+ x.target.checked ? i([...t, p]) : i(t.filter((P) => P !== p));
4680
4633
  },
4681
4634
  className: "metakyc-option-input",
4682
4635
  style: {
@@ -4724,9 +4677,9 @@ const Nn = ({
4724
4677
  onComplete: t,
4725
4678
  onBack: n
4726
4679
  }) => {
4727
- const { investorCategorizationService: a } = Pe(), [i, o] = k(null), [c, d] = k(!1), [y, p] = k(null);
4728
- return /* @__PURE__ */ r("form", { onSubmit: async (T) => {
4729
- if (T.preventDefault(), i === null) {
4680
+ const { investorCategorizationService: a } = Te(), [i, o] = k(null), [c, d] = k(!1), [y, p] = k(null);
4681
+ return /* @__PURE__ */ r("form", { onSubmit: async (P) => {
4682
+ if (P.preventDefault(), i === null) {
4730
4683
  p("Please select an investor type");
4731
4684
  return;
4732
4685
  }
@@ -4861,7 +4814,7 @@ const Nn = ({
4861
4814
  ] })
4862
4815
  ] }) });
4863
4816
  };
4864
- function Pt(e) {
4817
+ function Tt(e) {
4865
4818
  const t = e.split(":").map(Number);
4866
4819
  return t.length === 3 ? t[0] * 3600 + t[1] * 60 + t[2] : 0;
4867
4820
  }
@@ -4874,29 +4827,29 @@ const En = ({
4874
4827
  onComplete: t,
4875
4828
  onBack: n
4876
4829
  }) => {
4877
- const { appropriatenessTestService: a } = Pe(), [i, o] = k(null), [c, d] = k(!0), [y, p] = k(!1), [x, T] = k(null), [v, A] = k({}), [P, w] = k(0), [N, z] = k(!1), [Q, M] = k(!1), [j, K] = k(0), [ee, E] = k(0), [b, $] = k(null);
4830
+ const { appropriatenessTestService: a } = Te(), [i, o] = k(null), [c, d] = k(!0), [y, p] = k(!1), [x, 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), [b, $] = k(null);
4878
4831
  ge(() => {
4879
4832
  (async () => {
4880
4833
  try {
4881
- d(!0), T(null);
4834
+ d(!0), P(null);
4882
4835
  const B = await a.getAppropriatenessTest(e);
4883
4836
  if (o(B), B.waitTimeSpanForNextTry && B.waitTimeSpanForNextTry !== "00:00:00") {
4884
- const H = Pt(B.waitTimeSpanForNextTry);
4837
+ const H = Tt(B.waitTimeSpanForNextTry);
4885
4838
  H > 0 && K(H);
4886
4839
  }
4887
4840
  } catch (B) {
4888
- T(B.message || "Failed to load appropriateness test");
4841
+ P(B.message || "Failed to load appropriateness test");
4889
4842
  } finally {
4890
4843
  d(!1);
4891
4844
  }
4892
4845
  })();
4893
4846
  }, [e, a]), ge(() => {
4894
- if (!N || P <= 0) return;
4847
+ if (!N || T <= 0) return;
4895
4848
  const B = setInterval(() => {
4896
4849
  w((H) => H <= 1 ? (M(!0), 0) : H - 1);
4897
4850
  }, 1e3);
4898
4851
  return () => clearInterval(B);
4899
- }, [N, P]), ge(() => {
4852
+ }, [N, T]), ge(() => {
4900
4853
  if (j <= 0) return;
4901
4854
  const B = setInterval(() => {
4902
4855
  K((H) => H <= 1 ? 0 : H - 1);
@@ -4906,14 +4859,14 @@ const En = ({
4906
4859
  Q && !y && J();
4907
4860
  }, [Q]);
4908
4861
  const V = () => {
4909
- i && (z(!0), w(i.testDurationSec), E(0), A({}), T(null));
4862
+ i && (z(!0), w(i.testDurationSec), E(0), A({}), P(null));
4910
4863
  }, G = (B, H) => {
4911
4864
  A((fe) => ({ ...fe, [B]: H }));
4912
4865
  }, _ = ae(async () => {
4913
4866
  try {
4914
4867
  const B = await a.getAppropriatenessTest(e);
4915
4868
  if (o(B), B.waitTimeSpanForNextTry && B.waitTimeSpanForNextTry !== "00:00:00") {
4916
- const H = Pt(B.waitTimeSpanForNextTry);
4869
+ const H = Tt(B.waitTimeSpanForNextTry);
4917
4870
  H > 0 && K(H);
4918
4871
  }
4919
4872
  } catch {
@@ -4923,11 +4876,11 @@ const En = ({
4923
4876
  if (!Q) {
4924
4877
  const H = i.appropriatenessQuestions.length - Object.keys(v).length;
4925
4878
  if (H > 0) {
4926
- T(`Please answer all questions. ${H} remaining.`);
4879
+ P(`Please answer all questions. ${H} remaining.`);
4927
4880
  return;
4928
4881
  }
4929
4882
  }
4930
- p(!0), T(null);
4883
+ p(!0), P(null);
4931
4884
  try {
4932
4885
  const H = i.appropriatenessQuestions.map(
4933
4886
  (I) => ({ appropriatenessQuestionId: I.id, value: v[I.id] || "" })
@@ -4946,7 +4899,7 @@ const En = ({
4946
4899
  throw I;
4947
4900
  }
4948
4901
  } catch (H) {
4949
- T(H.message || "Failed to submit test. Please try again."), se();
4902
+ P(H.message || "Failed to submit test. Please try again."), se();
4950
4903
  } finally {
4951
4904
  p(!1);
4952
4905
  }
@@ -4997,7 +4950,7 @@ const En = ({
4997
4950
  ] });
4998
4951
  if (b) {
4999
4952
  const B = () => {
5000
- $(null), se(), T(null);
4953
+ $(null), se(), P(null);
5001
4954
  };
5002
4955
  return /* @__PURE__ */ s(re, { children: [
5003
4956
  /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ s("div", { style: {
@@ -5143,7 +5096,7 @@ const En = ({
5143
5096
  /* @__PURE__ */ r(Z, { type: "button", onClick: V, disabled: Y <= 0, children: "Start Test" })
5144
5097
  ] }) })
5145
5098
  ] });
5146
- const me = i.appropriatenessQuestions[ee], ke = ee === ve - 1, F = ue === ve, U = P <= 60;
5099
+ const me = i.appropriatenessQuestions[ee], ke = ee === ve - 1, F = ue === ve, U = T <= 60;
5147
5100
  return /* @__PURE__ */ s(re, { children: [
5148
5101
  /* @__PURE__ */ s(Se, { children: [
5149
5102
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
@@ -5188,7 +5141,7 @@ const En = ({
5188
5141
  fontVariantNumeric: "tabular-nums",
5189
5142
  color: U ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-text-primary, #111827)",
5190
5143
  transition: "color 0.3s ease"
5191
- }, children: vt(P) })
5144
+ }, children: vt(T) })
5192
5145
  ] })
5193
5146
  ] }),
5194
5147
  /* @__PURE__ */ s("div", { style: { marginTop: "12px" }, children: [
@@ -5450,13 +5403,13 @@ const En = ({
5450
5403
  o
5451
5404
  );
5452
5405
  }) })
5453
- ] }), Pn = ({
5406
+ ] }), Tn = ({
5454
5407
  applicantId: e,
5455
5408
  onComplete: t,
5456
5409
  onBack: n
5457
5410
  }) => {
5458
5411
  var Ze, je, it, Ye;
5459
- const { applicantService: a, baseInformationService: i, identityService: o, config: c, currentTheme: d } = Pe(), { identityData: y, provider: p, token: x, isLoading: T, error: v, requestIdentity: A, restartIdentity: P } = Gr(e), [w, N] = k(null), [z, Q] = k(null), [M, j] = k([]), [K, ee] = k([]), [E, b] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, se] = k(!1), Y = we.useRef(!1), [ve, ue] = 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);
5412
+ const { applicantService: a, baseInformationService: i, identityService: o, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: x, 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, b] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, se] = k(!1), Y = we.useRef(!1), [ve, ue] = 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);
5460
5413
  B.current = U;
5461
5414
  const H = Gt({
5462
5415
  defaultValues: {
@@ -5642,12 +5595,12 @@ const En = ({
5642
5595
  }
5643
5596
  }, te = async () => {
5644
5597
  try {
5645
- _(null), se(!1), N(null), console.log("[Identity] Restarting verification..."), await P(), V(!0);
5598
+ _(null), se(!1), N(null), console.log("[Identity] Restarting verification..."), await T(), V(!0);
5646
5599
  } catch (h) {
5647
5600
  console.error("Error restarting identity verification:", h), _(h.message || "Failed to restart verification");
5648
5601
  }
5649
5602
  };
5650
- if (E || T)
5603
+ if (E || P)
5651
5604
  return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ne, { children: [
5652
5605
  /* @__PURE__ */ r(Me, { className: "my-8" }),
5653
5606
  /* @__PURE__ */ r("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: "Loading identity verification..." })
@@ -5696,7 +5649,7 @@ const En = ({
5696
5649
  ] }),
5697
5650
  /* @__PURE__ */ s(Ce, { className: "flex justify-between", children: [
5698
5651
  n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" }),
5699
- /* @__PURE__ */ r(Z, { type: "button", onClick: te, disabled: T, children: T ? "Restarting..." : "Restart Verification" })
5652
+ /* @__PURE__ */ r(Z, { type: "button", onClick: te, disabled: P, children: P ? "Restarting..." : "Restart Verification" })
5700
5653
  ] })
5701
5654
  ] });
5702
5655
  if ($ && y) {
@@ -5732,7 +5685,7 @@ const En = ({
5732
5685
  {
5733
5686
  type: "button",
5734
5687
  onClick: te,
5735
- disabled: T,
5688
+ disabled: P,
5736
5689
  style: {
5737
5690
  padding: "6px 14px",
5738
5691
  fontSize: "13px",
@@ -5741,10 +5694,10 @@ const En = ({
5741
5694
  border: "1px solid var(--metakyc-border, #d1d5db)",
5742
5695
  background: "var(--metakyc-background, #ffffff)",
5743
5696
  color: "var(--metakyc-text-primary, #111827)",
5744
- cursor: T ? "not-allowed" : "pointer",
5745
- opacity: T ? 0.5 : 1
5697
+ cursor: P ? "not-allowed" : "pointer",
5698
+ opacity: P ? 0.5 : 1
5746
5699
  },
5747
- children: T ? "Restarting…" : "Restart"
5700
+ children: P ? "Restarting…" : "Restart"
5748
5701
  }
5749
5702
  )
5750
5703
  ] }),
@@ -5777,7 +5730,7 @@ const En = ({
5777
5730
  variant: "outline",
5778
5731
  size: "sm",
5779
5732
  onClick: te,
5780
- disabled: T,
5733
+ disabled: P,
5781
5734
  children: "Restart"
5782
5735
  }
5783
5736
  )
@@ -6110,7 +6063,7 @@ const En = ({
6110
6063
  /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { className: "grid grid-cols-4 gap-4", children: F.fields.map((q, W) => at(q, W)) }) }),
6111
6064
  /* @__PURE__ */ s(Ce, { className: "flex justify-between", children: [
6112
6065
  n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" }),
6113
- /* @__PURE__ */ r(Z, { type: "submit", isLoading: T, children: "Confirm and Start Verification" })
6066
+ /* @__PURE__ */ r(Z, { type: "submit", isLoading: P, children: "Confirm and Start Verification" })
6114
6067
  ] })
6115
6068
  ] }) });
6116
6069
  }
@@ -6177,10 +6130,10 @@ const En = ({
6177
6130
  ] }),
6178
6131
  /* @__PURE__ */ s(Ce, { className: "flex justify-between", children: [
6179
6132
  n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" }),
6180
- /* @__PURE__ */ r(Z, { type: "submit", isLoading: T, children: "Confirm and Start Verification" })
6133
+ /* @__PURE__ */ r(Z, { type: "submit", isLoading: P, children: "Confirm and Start Verification" })
6181
6134
  ] })
6182
6135
  ] }) });
6183
- }, Tt = ({
6136
+ }, Pt = ({
6184
6137
  kycStatus: e,
6185
6138
  reviewStatus: t,
6186
6139
  workflowResult: n,
@@ -6322,7 +6275,7 @@ const En = ({
6322
6275
  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" }) })
6323
6276
  ] })
6324
6277
  ] });
6325
- }, Tn = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6278
+ }, Pn = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6326
6279
  "img",
6327
6280
  {
6328
6281
  src: e.url,
@@ -6342,7 +6295,7 @@ const En = ({
6342
6295
  subtitle: t,
6343
6296
  className: n = ""
6344
6297
  }) => {
6345
- const { currentTheme: a } = Pe(), i = e || (a == null ? void 0 : a.title) || "", o = !!(a != null && a.logo && a.logo.visible && a.logo.url), c = !!i;
6298
+ const { currentTheme: a } = Te(), i = e || (a == null ? void 0 : a.title) || "", o = !!(a != null && a.logo && a.logo.visible && a.logo.url), c = !!i;
6346
6299
  return !o && !c ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${n}`, children: [
6347
6300
  /* @__PURE__ */ s(
6348
6301
  "div",
@@ -6350,7 +6303,7 @@ const En = ({
6350
6303
  className: "metakyc-header-title flex items-center text-xl font-bold",
6351
6304
  style: { color: "var(--metakyc-text-primary, #111827)" },
6352
6305
  children: [
6353
- o && /* @__PURE__ */ r(Tn, { config: a.logo }),
6306
+ o && /* @__PURE__ */ r(Pn, { config: a.logo }),
6354
6307
  o && c && /* @__PURE__ */ r(
6355
6308
  "span",
6356
6309
  {
@@ -6508,12 +6461,12 @@ const pt = {
6508
6461
  onCancel: a
6509
6462
  }) => {
6510
6463
  var q, W, X, m, R, L, u;
6511
- const { config: i, baseInformationService: o, currentTheme: c } = Pe(), { createApplicant: d, isLoading: y } = zt(), p = e || ((q = i.applicantForm) == null ? void 0 : q.workflowKey);
6464
+ const { config: i, baseInformationService: o, currentTheme: c } = Te(), { createApplicant: d, isLoading: y } = zt(), p = e || ((q = i.applicantForm) == null ? void 0 : q.workflowKey);
6512
6465
  if (!p)
6513
6466
  throw new Error(
6514
6467
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
6515
6468
  );
6516
- const x = t || ((W = i.applicantForm) == null ? void 0 : W.externalRefId) || "", T = ((X = i.applicantForm) == null ? void 0 : X.email) || "", v = ((m = i.applicantForm) == null ? void 0 : m.hiddenValues) || {}, A = ((R = i.applicantForm) == null ? void 0 : R.initialValues) || {}, w = (((L = i.applicantForm) == null ? void 0 : L.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", N = De(
6469
+ const x = t || ((W = i.applicantForm) == null ? void 0 : W.externalRefId) || "", P = ((X = i.applicantForm) == null ? void 0 : X.email) || "", v = ((m = i.applicantForm) == null ? void 0 : m.hiddenValues) || {}, A = ((R = i.applicantForm) == null ? void 0 : R.initialValues) || {}, w = (((L = i.applicantForm) == null ? void 0 : L.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", N = De(
6517
6470
  () => c != null && c.applicantFormPages && c.applicantFormPages.length > 0 ? c.applicantFormPages : null,
6518
6471
  [c == null ? void 0 : c.applicantFormPages]
6519
6472
  ), z = De(() => {
@@ -6574,11 +6527,11 @@ const pt = {
6574
6527
  try {
6575
6528
  const g = await Promise.all(
6576
6529
  l.map(async (C) => {
6577
- const S = C != null ? String(C) : "all", pe = await o.getCountries("", i.locale || "en", C), ie = C === 40, be = /* @__PURE__ */ new Set(), Te = pe.map((le) => ie && le.countryCode ? {
6530
+ const S = C != null ? String(C) : "all", pe = await o.getCountries("", i.locale || "en", C), ie = C === 40, be = /* @__PURE__ */ new Set(), Pe = pe.map((le) => ie && le.countryCode ? {
6578
6531
  value: le.countryCode,
6579
6532
  label: `${le.countryCode} – ${le.name}`
6580
6533
  } : { value: le.abbreviation3 || le.abbreviation, label: le.name }).filter((le) => !le.value || be.has(le.value) ? !1 : (be.add(le.value), !0));
6581
- return V.current.add(S), $.current.delete(S), [S, Te];
6534
+ return V.current.add(S), $.current.delete(S), [S, Pe];
6582
6535
  })
6583
6536
  );
6584
6537
  ee((C) => ({ ...C, ...Object.fromEntries(g) }));
@@ -6628,7 +6581,7 @@ const pt = {
6628
6581
  firstName: "",
6629
6582
  lastName: "",
6630
6583
  title: "",
6631
- email: T,
6584
+ email: P,
6632
6585
  dateOfBirth: "",
6633
6586
  phonenumber: "",
6634
6587
  externalRefId: x,
@@ -6764,7 +6717,7 @@ const pt = {
6764
6717
  var Nt;
6765
6718
  const S = nt[l];
6766
6719
  if (!S) return null;
6767
- const pe = z.includes(l), ie = B[l], be = D || S.label, Te = l in se, le = f ?? l, Be = { required: pe }, He = C ? C !== "placeholder" : w, Qe = He ? be : void 0, Wt = He ? "..." : be;
6720
+ const pe = z.includes(l), ie = B[l], be = D || S.label, Pe = l in se, le = f ?? l, Be = { required: pe }, He = C ? C !== "placeholder" : w, Qe = He ? be : void 0, Wt = He ? "..." : be;
6768
6721
  switch (S.type) {
6769
6722
  case "select":
6770
6723
  if (l === "country" || l === "nationality" || l === "taxCountry" || l === "countryOfBirth" || l === "mobileCountryCode") {
@@ -6778,7 +6731,7 @@ const pt = {
6778
6731
  onChange: (Xe) => oe(l, Xe),
6779
6732
  options: [{ value: "", label: `Select ${Wt.toLowerCase()}` }, ...Ie],
6780
6733
  disabled: E,
6781
- readOnly: Te,
6734
+ readOnly: Pe,
6782
6735
  error: ie
6783
6736
  },
6784
6737
  le
@@ -6798,7 +6751,7 @@ const pt = {
6798
6751
  { value: bt.Female.toString(), label: "Female" },
6799
6752
  { value: bt.Other.toString(), label: "Other" }
6800
6753
  ],
6801
- readOnly: Te,
6754
+ readOnly: Pe,
6802
6755
  error: ie
6803
6756
  },
6804
6757
  le
@@ -6813,7 +6766,7 @@ const pt = {
6813
6766
  value: Y[l] || "",
6814
6767
  onChange: (Xe) => oe(l, Xe),
6815
6768
  options: [{ value: "", label: He ? "Select language..." : be }, ...Ie],
6816
- readOnly: Te,
6769
+ readOnly: Pe,
6817
6770
  error: ie
6818
6771
  },
6819
6772
  le
@@ -6833,7 +6786,7 @@ const pt = {
6833
6786
  options: Ie,
6834
6787
  placeholder: He ? "Select other nationalities..." : be,
6835
6788
  disabled: E,
6836
- readOnly: Te
6789
+ readOnly: Pe
6837
6790
  },
6838
6791
  le
6839
6792
  );
@@ -6849,7 +6802,7 @@ const pt = {
6849
6802
  placeholder: He ? void 0 : be,
6850
6803
  value: Y[l] || "",
6851
6804
  onChange: (Ie) => oe(l, Ie.target.value),
6852
- readOnly: Te,
6805
+ readOnly: Pe,
6853
6806
  error: ie
6854
6807
  },
6855
6808
  le
@@ -6864,7 +6817,7 @@ const pt = {
6864
6817
  placeholder: He ? void 0 : be,
6865
6818
  value: Y[l] || "",
6866
6819
  onChange: (Ie) => oe(l, Ie.target.value),
6867
- readOnly: Te,
6820
+ readOnly: Pe,
6868
6821
  error: ie
6869
6822
  },
6870
6823
  le
@@ -6879,7 +6832,7 @@ const pt = {
6879
6832
  placeholder: He ? void 0 : be,
6880
6833
  value: Y[l] || "",
6881
6834
  onChange: (Ie) => oe(l, Ie.target.value),
6882
- readOnly: Te,
6835
+ readOnly: Pe,
6883
6836
  error: ie
6884
6837
  },
6885
6838
  le
@@ -6894,7 +6847,7 @@ const pt = {
6894
6847
  placeholder: He ? void 0 : be,
6895
6848
  value: Y[l] || "",
6896
6849
  onChange: (Ie) => oe(l, Ie.target.value),
6897
- readOnly: Te,
6850
+ readOnly: Pe,
6898
6851
  error: ie
6899
6852
  },
6900
6853
  le
@@ -7067,8 +7020,8 @@ const pt = {
7067
7020
  if (l.singleSelect)
7068
7021
  Ne(l.paramName, be.target.checked ? pe.value : "");
7069
7022
  else {
7070
- const Te = be.target.checked ? [...S, pe.value] : S.filter((le) => le !== pe.value);
7071
- Ne(l.paramName, Te.join(","));
7023
+ const Pe = be.target.checked ? [...S, pe.value] : S.filter((le) => le !== pe.value);
7024
+ Ne(l.paramName, Pe.join(","));
7072
7025
  }
7073
7026
  },
7074
7027
  className: "metakyc-option-input",
@@ -7297,12 +7250,12 @@ const Xn = ({
7297
7250
  onCancel: a
7298
7251
  }) => {
7299
7252
  var Ye, h, O, q, W, X;
7300
- const { config: i, baseInformationService: o, currentTheme: c } = Pe(), { createCompanyApplicant: d, isLoading: y } = zt(), p = e || ((Ye = i.applicantForm) == null ? void 0 : Ye.workflowKey);
7253
+ const { config: i, baseInformationService: o, currentTheme: c } = Te(), { createCompanyApplicant: d, isLoading: y } = zt(), p = e || ((Ye = i.applicantForm) == null ? void 0 : Ye.workflowKey);
7301
7254
  if (!p)
7302
7255
  throw new Error(
7303
7256
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
7304
7257
  );
7305
- const x = t || ((h = i.applicantForm) == null ? void 0 : h.externalRefId) || "", T = ((O = i.applicantForm) == null ? void 0 : O.email) || "", v = ((q = i.applicantForm) == null ? void 0 : q.initialValues) || {}, P = (((W = i.applicantForm) == null ? void 0 : W.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", w = De(
7258
+ const x = t || ((h = i.applicantForm) == null ? void 0 : h.externalRefId) || "", P = ((O = i.applicantForm) == null ? void 0 : O.email) || "", v = ((q = i.applicantForm) == null ? void 0 : q.initialValues) || {}, T = (((W = i.applicantForm) == null ? void 0 : W.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", w = De(
7306
7259
  () => c != null && c.companyFormPages && c.companyFormPages.length > 0 ? c.companyFormPages : null,
7307
7260
  [c == null ? void 0 : c.companyFormPages]
7308
7261
  ), N = De(() => {
@@ -7390,7 +7343,7 @@ const Xn = ({
7390
7343
  ), [J, se] = k({
7391
7344
  workflowKey: p,
7392
7345
  companyName: "",
7393
- email: T,
7346
+ email: P,
7394
7347
  phone: "",
7395
7348
  registrationNumber: "",
7396
7349
  countryResidence: "",
@@ -7526,7 +7479,7 @@ const Xn = ({
7526
7479
  }, Ze = (m, R, L, u, l) => {
7527
7480
  const f = st[m];
7528
7481
  if (!f) return null;
7529
- const D = N.includes(m), g = ke[m], C = L || f.label, S = m in _, pe = R ?? m, ie = l ? l !== "placeholder" : P, be = ie ? C : void 0, Te = ie ? "..." : C;
7482
+ const D = N.includes(m), g = ke[m], C = L || f.label, S = m in _, pe = R ?? m, ie = l ? l !== "placeholder" : T, be = ie ? C : void 0, Pe = ie ? "..." : C;
7530
7483
  switch (f.type) {
7531
7484
  case "select":
7532
7485
  if (m === "countryResidence" || m === "addressCountry") {
@@ -7538,7 +7491,7 @@ const Xn = ({
7538
7491
  label: be,
7539
7492
  value: J[m] || "",
7540
7493
  onChange: (Be) => I(m, Be),
7541
- options: [{ value: "", label: `Select ${Te.toLowerCase()}` }, ...le],
7494
+ options: [{ value: "", label: `Select ${Pe.toLowerCase()}` }, ...le],
7542
7495
  disabled: ee,
7543
7496
  readOnly: S,
7544
7497
  error: g
@@ -7634,7 +7587,7 @@ const Xn = ({
7634
7587
  }
7635
7588
  ) }, `custom-${R}`);
7636
7589
  if (!m.paramName) return null;
7637
- const L = ke[m.paramName], u = m.displayText || m.label || m.paramName, l = m.labelMode ? m.labelMode !== "placeholder" : P;
7590
+ const L = ke[m.paramName], u = m.displayText || m.label || m.paramName, l = m.labelMode ? m.labelMode !== "placeholder" : T;
7638
7591
  return m.customType === "checkbox" ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
7639
7592
  /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
7640
7593
  /* @__PURE__ */ r(
@@ -7774,10 +7727,10 @@ const Xn = ({
7774
7727
  workflowKey: y,
7775
7728
  nextWorkflowKey: p,
7776
7729
  hasWorkflowChanged: x,
7777
- isLoading: T,
7730
+ isLoading: P,
7778
7731
  error: v,
7779
7732
  moveBack: A,
7780
- refreshProgress: P
7733
+ refreshProgress: T
7781
7734
  } = qr(e), [w, N] = we.useState(!1), z = we.useRef(null);
7782
7735
  if (we.useEffect(() => {
7783
7736
  v && n && n(v);
@@ -7787,7 +7740,7 @@ const Xn = ({
7787
7740
  a === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
7788
7741
  }, [a]), we.useEffect(() => {
7789
7742
  x && N(!1);
7790
- }, [x]), T || !o)
7743
+ }, [x]), P || !o)
7791
7744
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${i || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ne, { children: [
7792
7745
  /* @__PURE__ */ r(Me, { className: "my-8" }),
7793
7746
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Loading workflow..." })
@@ -7828,7 +7781,7 @@ const Xn = ({
7828
7781
  ] }) }) }) });
7829
7782
  if (o.status === ze.Finished || o.status === ze.OnHold)
7830
7783
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${i || ""}`, children: /* @__PURE__ */ r(
7831
- Tt,
7784
+ Pt,
7832
7785
  {
7833
7786
  kycStatus: o.kycStatus,
7834
7787
  reviewStatus: o.reviewStatus,
@@ -7906,7 +7859,7 @@ const Xn = ({
7906
7859
  const K = {
7907
7860
  applicantId: e,
7908
7861
  onComplete: async () => {
7909
- await P();
7862
+ await T();
7910
7863
  },
7911
7864
  onBack: c.order > 0 ? A : void 0
7912
7865
  };
@@ -7918,7 +7871,7 @@ const Xn = ({
7918
7871
  case ce.Overview:
7919
7872
  return /* @__PURE__ */ r(bn, { ...K });
7920
7873
  case ce.IdentitySdk:
7921
- return /* @__PURE__ */ r(Pn, { ...K });
7874
+ return /* @__PURE__ */ r(Tn, { ...K });
7922
7875
  case ce.RiskScoring:
7923
7876
  return /* @__PURE__ */ r(Nn, { ...K });
7924
7877
  case ce.AdditionalData:
@@ -7928,7 +7881,7 @@ const Xn = ({
7928
7881
  return /* @__PURE__ */ r(En, { ...K });
7929
7882
  case ce.ManualReview:
7930
7883
  return /* @__PURE__ */ r(
7931
- Tt,
7884
+ Pt,
7932
7885
  {
7933
7886
  kycStatus: o.kycStatus,
7934
7887
  reviewStatus: o.reviewStatus,
@@ -7979,7 +7932,7 @@ const Xn = ({
7979
7932
  gap: "0"
7980
7933
  },
7981
7934
  children: e.map((c, d) => {
7982
- const y = d < t, p = d === t, x = y || p, T = c.displayName || c.name || n(c.action) || `Step ${d + 1}`;
7935
+ const y = d < t, p = d === t, x = y || p, P = c.displayName || c.name || n(c.action) || `Step ${d + 1}`;
7983
7936
  return /* @__PURE__ */ s(we.Fragment, { children: [
7984
7937
  /* @__PURE__ */ s(
7985
7938
  "div",
@@ -8019,7 +7972,7 @@ const Xn = ({
8019
7972
  fontWeight: p ? 600 : 400,
8020
7973
  color: p ? "var(--metakyc-text-primary, #111827)" : y ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
8021
7974
  transition: "color 0.2s ease"
8022
- }, children: T })
7975
+ }, children: P })
8023
7976
  ]
8024
7977
  }
8025
7978
  ),
@@ -8123,7 +8076,7 @@ export {
8123
8076
  Ge as IdentityProviderManager,
8124
8077
  xr as IdentityService,
8125
8078
  Oe as IdentityVerificationProvider,
8126
- Pn as IdentityVerificationStep,
8079
+ Tn as IdentityVerificationStep,
8127
8080
  xe as Input,
8128
8081
  kr as InvestorCategorizationService,
8129
8082
  In as InvestorCategorizationStep,
@@ -8131,9 +8084,9 @@ export {
8131
8084
  or as InvestorCategoryType,
8132
8085
  er as KycProcessStatus,
8133
8086
  tt as KycStatus,
8134
- Tt as KycStatusDisplay,
8087
+ Pt as KycStatusDisplay,
8135
8088
  ea as KycWorkflow,
8136
- Tn as Logo,
8089
+ Pn as Logo,
8137
8090
  Ot as MetaKYCContext,
8138
8091
  Ue as MetaKYCError,
8139
8092
  Kn as MetaKYCProvider,
@@ -8153,7 +8106,7 @@ export {
8153
8106
  qe as SearchableSelect,
8154
8107
  Ct as Select,
8155
8108
  Me as Spinner,
8156
- Pr as StepRouter,
8109
+ Tr as StepRouter,
8157
8110
  Mr as SumsubProvider,
8158
8111
  Br as ThemeManager,
8159
8112
  Fe as ThemePreset,
@@ -8162,7 +8115,7 @@ export {
8162
8115
  gn as UploadDocumentStep,
8163
8116
  tr as UserType,
8164
8117
  Ke as ValueDataType,
8165
- Tr as WorkflowOrchestrator,
8118
+ Pr as WorkflowOrchestrator,
8166
8119
  gt as WorkflowResultType,
8167
8120
  Ar as WorkflowState,
8168
8121
  ce as WorkflowStepAction,
@@ -8198,7 +8151,7 @@ export {
8198
8151
  Jn as useAppropriatenessTest,
8199
8152
  Gr as useIdentityVerification,
8200
8153
  qr as useKycWorkflow,
8201
- Pe as useMetaKYC,
8154
+ Te as useMetaKYC,
8202
8155
  Qr as useOverview,
8203
8156
  Vr as useQuestionnaire,
8204
8157
  Jr as useRiskScoring,