@vpdev2/metakyc 1.0.85 → 1.0.86

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
@@ -200,7 +200,7 @@ const ii = {
200
200
  warn: 2,
201
201
  info: 3,
202
202
  debug: 4
203
- }, we = {
203
+ }, xe = {
204
204
  prefix: "color:#6366f1;font-weight:bold",
205
205
  arrow: "color:#9ca3af",
206
206
  method: "color:#22d3ee;font-weight:bold",
@@ -229,43 +229,43 @@ class rr {
229
229
  if (!this.shouldLog("debug")) return n;
230
230
  const o = [
231
231
  `%c[MetaKYC]%c →%c ${t}%c ${a}`,
232
- we.prefix,
233
- we.arrow,
234
- we.method,
235
- we.url
232
+ xe.prefix,
233
+ xe.arrow,
234
+ xe.method,
235
+ xe.url
236
236
  ];
237
- return r && Object.keys(r).length > 0 ? (console.groupCollapsed(...o), console.log("%cPayload:", we.dim, r), console.groupEnd()) : console.log(...o), n;
237
+ return r && Object.keys(r).length > 0 ? (console.groupCollapsed(...o), console.log("%cPayload:", xe.dim, r), console.groupEnd()) : console.log(...o), n;
238
238
  }
239
239
  response(t, a, r, n, o) {
240
240
  if (!this.shouldLog("debug")) return;
241
241
  const l = r >= 200 && r < 300, d = [
242
242
  `%c[MetaKYC]%c ←%c ${r}%c ${t} ${a.split("/").pop()} %c(${n}ms)`,
243
- we.prefix,
244
- we.arrow,
245
- l ? we.status : we.statusErr,
246
- we.dim,
247
- we.timing
243
+ xe.prefix,
244
+ xe.arrow,
245
+ l ? xe.status : xe.statusErr,
246
+ xe.dim,
247
+ xe.timing
248
248
  ];
249
- o && this.shouldLog("debug") ? (console.groupCollapsed(...d), console.log("%cResponse:", we.dim, o), console.groupEnd()) : console.log(...d);
249
+ o && this.shouldLog("debug") ? (console.groupCollapsed(...d), console.log("%cResponse:", xe.dim, o), console.groupEnd()) : console.log(...d);
250
250
  }
251
251
  error(t, a, r, n) {
252
252
  this.shouldLog("error") && (console.log(
253
253
  `%c[MetaKYC]%c ✗%c ${t} ${a.split("/").pop()} %cfailed %c(${n}ms)`,
254
- we.prefix,
255
- we.statusErr,
256
- we.dim,
257
- we.statusErr,
258
- we.timing
254
+ xe.prefix,
255
+ xe.statusErr,
256
+ xe.dim,
257
+ xe.statusErr,
258
+ xe.timing
259
259
  ), this.shouldLog("debug") && console.error(r));
260
260
  }
261
261
  info(t, ...a) {
262
- this.shouldLog("info") && console.log(`%c[MetaKYC]%c ${t}`, we.prefix, we.dim, ...a);
262
+ this.shouldLog("info") && console.log(`%c[MetaKYC]%c ${t}`, xe.prefix, xe.dim, ...a);
263
263
  }
264
264
  warn(t, ...a) {
265
- this.shouldLog("warn") && console.warn(`%c[MetaKYC]%c ${t}`, we.prefix, we.dim, ...a);
265
+ this.shouldLog("warn") && console.warn(`%c[MetaKYC]%c ${t}`, xe.prefix, xe.dim, ...a);
266
266
  }
267
267
  debug(t, ...a) {
268
- this.shouldLog("debug") && console.log(`%c[MetaKYC]%c ${t}`, we.prefix, we.dim, ...a);
268
+ this.shouldLog("debug") && console.log(`%c[MetaKYC]%c ${t}`, xe.prefix, xe.dim, ...a);
269
269
  }
270
270
  }
271
271
  const _ = new rr(), ar = 16, ri = 32;
@@ -428,7 +428,7 @@ class sr {
428
428
  }
429
429
  class Tn {
430
430
  static async createToken(t) {
431
- const { baseUrl: a, apiKey: r, secretKey: n, tenantId: o, clientId: l, externalRefId: d, workflowKey: u, email: m, isCompany: g, tenantClientId: y, applicant: w } = t, A = t.enableEncryption !== !1;
431
+ const { baseUrl: a, apiKey: r, secretKey: n, tenantId: o, clientId: l, externalRefId: d, workflowKey: u, email: m, isCompany: g, tenantClientId: y, applicant: x } = t, A = t.enableEncryption !== !1;
432
432
  if (!o && !l)
433
433
  throw new Error("Either tenantId or clientId must be provided.");
434
434
  if (!d)
@@ -444,7 +444,7 @@ class Tn {
444
444
  workflowKey: u,
445
445
  email: m
446
446
  };
447
- o != null && (S.tenantId = o), l && (S.clientId = l), g != null && (S.isCompany = g), y != null && (S.tenantClientId = y), w && (S.applicant = w), A && (S.sdkPublicKey = "1");
447
+ o != null && (S.tenantId = o), l && (S.clientId = l), g != null && (S.isCompany = g), y != null && (S.tenantClientId = y), x && (S.applicant = x), A && (S.sdkPublicKey = "1");
448
448
  const N = (await Si.post(
449
449
  `${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
450
450
  S,
@@ -1072,7 +1072,7 @@ const Ve = {
1072
1072
  cardPadding: "2rem",
1073
1073
  inputHeight: "3rem"
1074
1074
  }
1075
- }, xr = {
1075
+ }, wr = {
1076
1076
  name: "Minimal",
1077
1077
  logo: {
1078
1078
  url: "",
@@ -1105,16 +1105,16 @@ const Ve = {
1105
1105
  cardPadding: "1.25rem",
1106
1106
  inputHeight: "2.25rem"
1107
1107
  }
1108
- }, wr = {
1108
+ }, xr = {
1109
1109
  [Be.Default]: Ve,
1110
1110
  [Be.Corporate]: hr,
1111
1111
  [Be.Fintech]: kr,
1112
1112
  [Be.Healthcare]: vr,
1113
1113
  [Be.Modern]: br,
1114
- [Be.Minimal]: xr
1114
+ [Be.Minimal]: wr
1115
1115
  };
1116
1116
  function Nt(e) {
1117
- return wr[e] || Ve;
1117
+ return xr[e] || Ve;
1118
1118
  }
1119
1119
  class Sr {
1120
1120
  constructor(t) {
@@ -7155,7 +7155,7 @@ function ie(e, t) {
7155
7155
  const r = Jr.exec(a);
7156
7156
  return r ? t(r[1]) : e;
7157
7157
  }
7158
- const Yt = "1.0.85", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7158
+ const Yt = "1.0.86", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7159
7159
  locale: e,
7160
7160
  fetchTranslations: t,
7161
7161
  children: a
@@ -7209,7 +7209,7 @@ function Ie() {
7209
7209
  }
7210
7210
  return e;
7211
7211
  }
7212
- const Ai = Gt(null), ta = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .italic{font-style:italic}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media(max-width:767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media(max-width:767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;--metakyc-shell-padding-x: 1.5rem;--metakyc-shell-padding-y: 1.5rem;--metakyc-card-header-px: 1.5rem;--metakyc-card-header-py: 1rem;padding:1.5rem!important;border-radius:.75rem!important}@media(max-width:767px){.metakyc-sdk{--metakyc-shell-padding-x: 12px;--metakyc-shell-padding-y: 12px;--metakyc-card-header-px: 12px;--metakyc-card-header-py: 12px}}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk[dir=rtl]{direction:rtl!important;text-align:right!important}.metakyc-sdk[dir=rtl] .text-center{text-align:center!important}.metakyc-sdk[dir=rtl] .text-left{text-align:right!important}.metakyc-sdk[dir=rtl] .text-right{text-align:left!important}.metakyc-sdk[dir=rtl] .metakyc-stepper-scroll{direction:rtl!important}.metakyc-sdk[dir=rtl] .ml-1{margin-left:0!important;margin-right:.25rem!important}.metakyc-sdk[dir=rtl] .ml-2{margin-left:0!important;margin-right:.5rem!important}.metakyc-sdk[dir=rtl] .ml-3{margin-left:0!important;margin-right:.75rem!important}.metakyc-sdk[dir=rtl] .ml-4{margin-left:0!important;margin-right:1rem!important}.metakyc-sdk[dir=rtl] .mr-1{margin-right:0!important;margin-left:.25rem!important}.metakyc-sdk[dir=rtl] .mr-2{margin-right:0!important;margin-left:.5rem!important}.metakyc-sdk[dir=rtl] .mr-3{margin-right:0!important;margin-left:.75rem!important}.metakyc-sdk[dir=rtl] .mr-4{margin-right:0!important;margin-left:1rem!important}.metakyc-sdk[dir=rtl] .pl-1{padding-left:0!important;padding-right:.25rem!important}.metakyc-sdk[dir=rtl] .pl-2{padding-left:0!important;padding-right:.5rem!important}.metakyc-sdk[dir=rtl] .pl-4{padding-left:0!important;padding-right:1rem!important}.metakyc-sdk[dir=rtl] .pr-1{padding-right:0!important;padding-left:.25rem!important}.metakyc-sdk[dir=rtl] .pr-2{padding-right:0!important;padding-left:.5rem!important}.metakyc-sdk[dir=rtl] .pr-4{padding-right:0!important;padding-left:1rem!important}.metakyc-sdk[dir=rtl] input[type=checkbox]:checked:after{left:auto!important;right:4px!important}.metakyc-sdk[dir=rtl] input,.metakyc-sdk[dir=rtl] textarea,.metakyc-sdk[dir=rtl] select{text-align:right!important}.metakyc-sdk[dir=rtl] input[type=email],.metakyc-sdk[dir=rtl] input[type=tel],.metakyc-sdk[dir=rtl] input[type=url],.metakyc-sdk[dir=rtl] input[type=number]{direction:ltr!important;text-align:left!important}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', ui = "metakyc-sdk-styles";
7212
+ const Ai = Gt(null), ta = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .italic{font-style:italic}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media(max-width:767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media(max-width:767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk[dir=rtl]{direction:rtl!important;text-align:right!important}.metakyc-sdk[dir=rtl] .text-center{text-align:center!important}.metakyc-sdk[dir=rtl] .text-left{text-align:right!important}.metakyc-sdk[dir=rtl] .text-right{text-align:left!important}.metakyc-sdk[dir=rtl] .metakyc-stepper-scroll{direction:rtl!important}.metakyc-sdk[dir=rtl] .ml-1{margin-left:0!important;margin-right:.25rem!important}.metakyc-sdk[dir=rtl] .ml-2{margin-left:0!important;margin-right:.5rem!important}.metakyc-sdk[dir=rtl] .ml-3{margin-left:0!important;margin-right:.75rem!important}.metakyc-sdk[dir=rtl] .ml-4{margin-left:0!important;margin-right:1rem!important}.metakyc-sdk[dir=rtl] .mr-1{margin-right:0!important;margin-left:.25rem!important}.metakyc-sdk[dir=rtl] .mr-2{margin-right:0!important;margin-left:.5rem!important}.metakyc-sdk[dir=rtl] .mr-3{margin-right:0!important;margin-left:.75rem!important}.metakyc-sdk[dir=rtl] .mr-4{margin-right:0!important;margin-left:1rem!important}.metakyc-sdk[dir=rtl] .pl-1{padding-left:0!important;padding-right:.25rem!important}.metakyc-sdk[dir=rtl] .pl-2{padding-left:0!important;padding-right:.5rem!important}.metakyc-sdk[dir=rtl] .pl-4{padding-left:0!important;padding-right:1rem!important}.metakyc-sdk[dir=rtl] .pr-1{padding-right:0!important;padding-left:.25rem!important}.metakyc-sdk[dir=rtl] .pr-2{padding-right:0!important;padding-left:.5rem!important}.metakyc-sdk[dir=rtl] .pr-4{padding-right:0!important;padding-left:1rem!important}.metakyc-sdk[dir=rtl] input[type=checkbox]:checked:after{left:auto!important;right:4px!important}.metakyc-sdk[dir=rtl] input,.metakyc-sdk[dir=rtl] textarea,.metakyc-sdk[dir=rtl] select{text-align:right!important}.metakyc-sdk[dir=rtl] input[type=email],.metakyc-sdk[dir=rtl] input[type=tel],.metakyc-sdk[dir=rtl] input[type=url],.metakyc-sdk[dir=rtl] input[type=number]{direction:ltr!important;text-align:left!important}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', ui = "metakyc-sdk-styles";
7213
7213
  let Vt = !1;
7214
7214
  function ia() {
7215
7215
  if (Vt || typeof document > "u") return;
@@ -7224,7 +7224,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7224
7224
  ia();
7225
7225
  const [a, r] = T(null), [n, o] = T(e.locale || "en"), l = ye.useRef(!1), d = ye.useRef(!1), u = Ue(() => {
7226
7226
  _.setLevel(e.debug ?? e.logLevel ?? "none"), _.info(`SDK v${Yt} initializing — baseUrl=${e.baseUrl}`);
7227
- const w = new sr(e), A = new lr(w), S = new cr(w), B = new dr(w), N = new ur(w), U = new mr(w), K = new pr(w), O = new gr(w), M = new fr(w), Y = new yr(w), G = new Sr(w), Q = new Cr(w), v = new Pr();
7227
+ const x = new sr(e), A = new lr(x), S = new cr(x), B = new dr(x), N = new ur(x), U = new mr(x), K = new pr(x), O = new gr(x), M = new fr(x), Y = new yr(x), G = new Sr(x), Q = new Cr(x), v = new Pr();
7228
7228
  if (typeof document < "u")
7229
7229
  if (e.theme)
7230
7230
  v.applyTheme(e.theme);
@@ -7236,7 +7236,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7236
7236
  v.applyTheme(Ve);
7237
7237
  }
7238
7238
  return {
7239
- httpClient: w,
7239
+ httpClient: x,
7240
7240
  applicantService: A,
7241
7241
  questionnaireService: S,
7242
7242
  uploadDocumentService: B,
@@ -7250,8 +7250,8 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7250
7250
  translationService: Q,
7251
7251
  themeManager: v
7252
7252
  };
7253
- }, [e]), m = ee((w) => {
7254
- o(w.toLowerCase().split(/[-_]/)[0]);
7253
+ }, [e]), m = ee((x) => {
7254
+ o(x.toLowerCase().split(/[-_]/)[0]);
7255
7255
  }, []), g = Ue(() => ({
7256
7256
  config: e,
7257
7257
  ...u,
@@ -7297,7 +7297,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7297
7297
  u.themeManager.cleanup();
7298
7298
  }), []);
7299
7299
  const y = ee(
7300
- (w) => u.translationService.getTranslations(w),
7300
+ (x) => u.translationService.getTranslations(x),
7301
7301
  [u.translationService]
7302
7302
  );
7303
7303
  return /* @__PURE__ */ i(Ai.Provider, { value: g, children: /* @__PURE__ */ s(
@@ -7424,7 +7424,7 @@ function sa(e) {
7424
7424
  nextWorkflowKey: r.nextWorkflowKey
7425
7425
  });
7426
7426
  }, [r, g]);
7427
- const y = pe(!1), w = pe(void 0), A = ee(async () => {
7427
+ const y = pe(!1), x = pe(void 0), A = ee(async () => {
7428
7428
  if (!(!g || !m.current)) {
7429
7429
  if (y.current) {
7430
7430
  _.debug("Workflow load already in progress, skipping");
@@ -7433,7 +7433,7 @@ function sa(e) {
7433
7433
  y.current = !0, l(!0), u(null);
7434
7434
  try {
7435
7435
  const M = await m.current.initialize(g);
7436
- n(M), w.current = g;
7436
+ n(M), x.current = g;
7437
7437
  } catch (M) {
7438
7438
  u(M);
7439
7439
  } finally {
@@ -7442,7 +7442,7 @@ function sa(e) {
7442
7442
  }
7443
7443
  }, [g]);
7444
7444
  fe(() => {
7445
- g && w.current !== g && A();
7445
+ g && x.current !== g && A();
7446
7446
  }, [g, A]);
7447
7447
  const S = ee(async () => {
7448
7448
  if (m.current) {
@@ -7521,7 +7521,7 @@ function sa(e) {
7521
7521
  }
7522
7522
  function la(e) {
7523
7523
  var Y;
7524
- const { applicantService: t, config: a } = Se(), [r, n] = T(null), [o, l] = T(!0), [d, u] = T(null), [m, g] = T(), [y, w] = T(), A = pe(!1), S = ee(async () => {
7524
+ const { applicantService: t, config: a } = Se(), [r, n] = T(null), [o, l] = T(!0), [d, u] = T(null), [m, g] = T(), [y, x] = T(), A = pe(!1), S = ee(async () => {
7525
7525
  try {
7526
7526
  l(!0), u(null);
7527
7527
  const G = await t.getSdkState();
@@ -7536,9 +7536,9 @@ function la(e) {
7536
7536
  A.current || S();
7537
7537
  }, [S]);
7538
7538
  const B = ee((G) => {
7539
- _.info(`Transitioning to workflow → applicantId=${G}`), g(G), w("workflow");
7539
+ _.info(`Transitioning to workflow → applicantId=${G}`), g(G), x("workflow");
7540
7540
  }, []), N = ee((G) => {
7541
- _.info(`Switching applicant → newApplicantId=${G}`), g(G), w("workflow");
7541
+ _.info(`Switching applicant → newApplicantId=${G}`), g(G), x("workflow");
7542
7542
  }, []), U = y || (r == null ? void 0 : r.phase) || "loading", K = m || (r == null ? void 0 : r.applicantId), O = e ?? (r == null ? void 0 : r.isCompany) ?? !1, M = (r == null ? void 0 : r.workflowKey) || ((Y = a.applicantForm) == null ? void 0 : Y.workflowKey);
7543
7543
  return {
7544
7544
  phase: d ? "error" : o ? "loading" : U,
@@ -7553,14 +7553,14 @@ function la(e) {
7553
7553
  };
7554
7554
  }
7555
7555
  function ca(e) {
7556
- const { questionnaireService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, u] = T(!1), [m, g] = T(!1), [y, w] = T(null), A = pe(!1), S = pe(null), B = ee(async () => {
7556
+ const { questionnaireService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, u] = T(!1), [m, g] = T(!1), [y, x] = T(null), A = pe(!1), S = pe(null), B = ee(async () => {
7557
7557
  var U, K;
7558
7558
  if (e) {
7559
7559
  if (A.current) {
7560
7560
  _.debug("Questionnaire load already in progress, skipping");
7561
7561
  return;
7562
7562
  }
7563
- A.current = !0, u(!0), w(null);
7563
+ A.current = !0, u(!0), x(null);
7564
7564
  try {
7565
7565
  const [O, M] = await Promise.all([
7566
7566
  t.getQuestionnaire(e),
@@ -7579,7 +7579,7 @@ function ca(e) {
7579
7579
  }
7580
7580
  S.current = e;
7581
7581
  } catch (O) {
7582
- w(O);
7582
+ x(O);
7583
7583
  } finally {
7584
7584
  u(!1), A.current = !1;
7585
7585
  }
@@ -7590,11 +7590,11 @@ function ca(e) {
7590
7590
  }, [e]);
7591
7591
  const N = ee(
7592
7592
  async (U) => {
7593
- g(!0), w(null);
7593
+ g(!0), x(null);
7594
7594
  try {
7595
7595
  return await t.fillQuestionnaire(U);
7596
7596
  } catch (K) {
7597
- throw w(K), K;
7597
+ throw x(K), K;
7598
7598
  } finally {
7599
7599
  g(!1);
7600
7600
  }
@@ -7612,20 +7612,20 @@ function ca(e) {
7612
7612
  };
7613
7613
  }
7614
7614
  function da(e) {
7615
- const { uploadDocumentService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(0), [g, y] = T(null), w = pe(!1), A = pe(null), S = ee(async () => {
7615
+ const { uploadDocumentService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(0), [g, y] = T(null), x = pe(!1), A = pe(null), S = ee(async () => {
7616
7616
  if (e) {
7617
- if (w.current) {
7617
+ if (x.current) {
7618
7618
  _.debug("UploadDocument load already in progress, skipping");
7619
7619
  return;
7620
7620
  }
7621
- w.current = !0, o(!0), y(null);
7621
+ x.current = !0, o(!0), y(null);
7622
7622
  try {
7623
7623
  const N = await t.getUploadDocument(e);
7624
7624
  r(N), A.current = e;
7625
7625
  } catch (N) {
7626
7626
  y(N);
7627
7627
  } finally {
7628
- o(!1), w.current = !1;
7628
+ o(!1), x.current = !1;
7629
7629
  }
7630
7630
  }
7631
7631
  }, [e, t]);
@@ -7656,20 +7656,20 @@ function da(e) {
7656
7656
  };
7657
7657
  }
7658
7658
  function jn(e) {
7659
- const { appropriatenessTestService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(null), [g, y] = T(null), w = pe(!1), A = pe(null), S = ee(async () => {
7659
+ const { appropriatenessTestService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(null), [g, y] = T(null), x = pe(!1), A = pe(null), S = ee(async () => {
7660
7660
  if (e) {
7661
- if (w.current) {
7661
+ if (x.current) {
7662
7662
  _.debug("AppropriatenessTest load already in progress, skipping");
7663
7663
  return;
7664
7664
  }
7665
- w.current = !0, o(!0), m(null);
7665
+ x.current = !0, o(!0), m(null);
7666
7666
  try {
7667
7667
  const N = await t.getAppropriatenessTest(e);
7668
7668
  r(N), A.current = e;
7669
7669
  } catch (N) {
7670
7670
  m(N);
7671
7671
  } finally {
7672
- o(!1), w.current = !1;
7672
+ o(!1), x.current = !1;
7673
7673
  }
7674
7674
  }
7675
7675
  }, [e, t]);
@@ -7701,7 +7701,7 @@ function jn(e) {
7701
7701
  };
7702
7702
  }
7703
7703
  function ua(e) {
7704
- const { overviewService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(null), g = pe(!1), y = pe(null), w = ee(async () => {
7704
+ const { overviewService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [u, m] = T(null), g = pe(!1), y = pe(null), x = ee(async () => {
7705
7705
  if (e) {
7706
7706
  if (g.current) {
7707
7707
  _.debug("Overview load already in progress, skipping");
@@ -7719,7 +7719,7 @@ function ua(e) {
7719
7719
  }
7720
7720
  }, [e, t]);
7721
7721
  fe(() => {
7722
- e && y.current !== e && w();
7722
+ e && y.current !== e && x();
7723
7723
  }, [e]);
7724
7724
  const A = ee(async () => {
7725
7725
  if (e) {
@@ -7738,7 +7738,7 @@ function ua(e) {
7738
7738
  isLoading: n,
7739
7739
  isSubmitting: l,
7740
7740
  error: u,
7741
- load: w,
7741
+ load: x,
7742
7742
  passOverview: A
7743
7743
  };
7744
7744
  }
@@ -7746,7 +7746,7 @@ function ma(e) {
7746
7746
  const { identityService: t } = Se(), [a, r] = T(
7747
7747
  null
7748
7748
  ), [n, o] = T(!1), [l, d] = T(null), u = pe(!1), m = ee(
7749
- async (w, A) => {
7749
+ async (x, A) => {
7750
7750
  if (e) {
7751
7751
  if (u.current) {
7752
7752
  _.debug("Identity request already in progress, skipping");
@@ -7757,7 +7757,7 @@ function ma(e) {
7757
7757
  const S = {
7758
7758
  applicantId: e,
7759
7759
  restart: !1,
7760
- redirectUrl: w || "",
7760
+ redirectUrl: x || "",
7761
7761
  ttl: A || 604800
7762
7762
  };
7763
7763
  _.debug("Identity request input:", S);
@@ -7772,14 +7772,14 @@ function ma(e) {
7772
7772
  },
7773
7773
  [e, t]
7774
7774
  ), g = ee(
7775
- async (w, A) => {
7775
+ async (x, A) => {
7776
7776
  if (e) {
7777
7777
  o(!0), d(null);
7778
7778
  try {
7779
7779
  const S = {
7780
7780
  applicantId: e,
7781
7781
  restart: !1,
7782
- redirectUrl: w,
7782
+ redirectUrl: x,
7783
7783
  ttl: A
7784
7784
  }, B = await t.identityCompanyRequest(S);
7785
7785
  return r(B), B;
@@ -7799,17 +7799,17 @@ function ma(e) {
7799
7799
  }
7800
7800
  u.current = !0, o(!0), d(null);
7801
7801
  try {
7802
- const w = {
7802
+ const x = {
7803
7803
  applicantId: e,
7804
7804
  restart: !0,
7805
7805
  redirectUrl: "",
7806
7806
  ttl: 604800
7807
7807
  };
7808
- _.debug("Restarting identity with input:", w);
7809
- const A = await t.identityRequest(w);
7808
+ _.debug("Restarting identity with input:", x);
7809
+ const A = await t.identityRequest(x);
7810
7810
  return _.debug("Restart identity result:", A), r(A), A;
7811
- } catch (w) {
7812
- throw d(w), w;
7811
+ } catch (x) {
7812
+ throw d(x), x;
7813
7813
  } finally {
7814
7814
  o(!1), u.current = !1;
7815
7815
  }
@@ -7827,14 +7827,14 @@ function ma(e) {
7827
7827
  };
7828
7828
  }
7829
7829
  function pa(e) {
7830
- const { riskScoringService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, u] = T(!1), [m, g] = T(!1), [y, w] = T(null), [A, S] = T(null), B = pe(!1), N = pe(null), U = ee(async () => {
7830
+ const { riskScoringService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, u] = T(!1), [m, g] = T(!1), [y, x] = T(null), [A, S] = T(null), B = pe(!1), N = pe(null), U = ee(async () => {
7831
7831
  var O;
7832
7832
  if (e) {
7833
7833
  if (B.current) {
7834
7834
  _.debug("RiskScoring load already in progress, skipping");
7835
7835
  return;
7836
7836
  }
7837
- B.current = !0, u(!0), w(null);
7837
+ B.current = !0, u(!0), x(null);
7838
7838
  try {
7839
7839
  const [M, Y] = await Promise.all([
7840
7840
  t.getRiskCriterias(e),
@@ -7853,7 +7853,7 @@ function pa(e) {
7853
7853
  }
7854
7854
  N.current = e;
7855
7855
  } catch (M) {
7856
- w(M);
7856
+ x(M);
7857
7857
  } finally {
7858
7858
  u(!1), B.current = !1;
7859
7859
  }
@@ -7864,12 +7864,12 @@ function pa(e) {
7864
7864
  }, [e]);
7865
7865
  const K = ee(
7866
7866
  async (O) => {
7867
- g(!0), w(null);
7867
+ g(!0), x(null);
7868
7868
  try {
7869
7869
  const M = await t.submitRiskScoring(O);
7870
7870
  return S(M), M;
7871
7871
  } catch (M) {
7872
- throw w(M), M;
7872
+ throw x(M), M;
7873
7873
  } finally {
7874
7874
  g(!1);
7875
7875
  }
@@ -7937,7 +7937,7 @@ function Ii() {
7937
7937
  }
7938
7938
  },
7939
7939
  [e]
7940
- ), w = ee(
7940
+ ), x = ee(
7941
7941
  async (A) => {
7942
7942
  r(!0), o(null);
7943
7943
  try {
@@ -7956,7 +7956,7 @@ function Ii() {
7956
7956
  createApplicant: m,
7957
7957
  createCompanyApplicant: g,
7958
7958
  getApplicantData: y,
7959
- stopProgress: w
7959
+ stopProgress: x
7960
7960
  };
7961
7961
  }
7962
7962
  const ga = {
@@ -8370,7 +8370,7 @@ const pi = 280, ha = ({
8370
8370
  readOnly: l = !1,
8371
8371
  required: d = !1
8372
8372
  }) => {
8373
- const { t: u } = Ie(), m = n ?? u("common.select"), g = o || l, [y, w] = T(!1), [A, S] = T(""), [B, N] = T(null), [U, K] = T({
8373
+ const { t: u } = Ie(), m = n ?? u("common.select"), g = o || l, [y, x] = T(!1), [A, S] = T(""), [B, N] = T(null), [U, K] = T({
8374
8374
  bg: "#ffffff",
8375
8375
  borderColor: "#d1d5db",
8376
8376
  textPrimary: "#111827",
@@ -8397,9 +8397,9 @@ const pi = 280, ha = ({
8397
8397
  if (g) return;
8398
8398
  Q();
8399
8399
  const R = G();
8400
- R && N(R), w(!0);
8400
+ R && N(R), x(!0);
8401
8401
  }, [g, G, Q]), z = ee(() => {
8402
- w(!1), S("");
8402
+ x(!1), S("");
8403
8403
  }, []);
8404
8404
  fe(() => {
8405
8405
  if (!y) return;
@@ -8642,7 +8642,7 @@ const pi = 280, ha = ({
8642
8642
  className: g
8643
8643
  }) => {
8644
8644
  var ge;
8645
- const { t: y } = Ie(), w = n ?? y("common.select"), A = d || u, [S, B] = T(!1), [N, U] = T(""), [K, O] = T(null), [M, Y] = T({
8645
+ const { t: y } = Ie(), x = n ?? y("common.select"), A = d || u, [S, B] = T(!1), [N, U] = T(""), [K, O] = T(null), [M, Y] = T({
8646
8646
  bg: "#ffffff",
8647
8647
  border: "#d1d5db",
8648
8648
  text: "#111827",
@@ -8840,7 +8840,7 @@ const pi = 280, ha = ({
8840
8840
  outlineOffset: "-1px"
8841
8841
  },
8842
8842
  children: [
8843
- /* @__PURE__ */ i("span", { className: "truncate flex-1", children: de || w }),
8843
+ /* @__PURE__ */ i("span", { className: "truncate flex-1", children: de || x }),
8844
8844
  /* @__PURE__ */ i(
8845
8845
  "span",
8846
8846
  {
@@ -8876,7 +8876,7 @@ const va = ({
8876
8876
  value: u = [],
8877
8877
  className: m
8878
8878
  }) => {
8879
- const { t: g } = Ie(), [y, w] = T(!1), [A, S] = T(null), B = pe(null), N = ee((v) => {
8879
+ const { t: g } = Ie(), [y, x] = T(!1), [A, S] = T(null), B = pe(null), N = ee((v) => {
8880
8880
  if (!v) return;
8881
8881
  S(null);
8882
8882
  const z = Array.from(v);
@@ -8886,11 +8886,11 @@ const va = ({
8886
8886
  }
8887
8887
  d == null || d(n ? [...u, ...z] : [z[0]]);
8888
8888
  }, [o, n, d, u]), U = ee((v) => {
8889
- v.preventDefault(), v.stopPropagation(), w(!0);
8889
+ v.preventDefault(), v.stopPropagation(), x(!0);
8890
8890
  }, []), K = ee((v) => {
8891
- v.preventDefault(), v.stopPropagation(), w(!1);
8891
+ v.preventDefault(), v.stopPropagation(), x(!1);
8892
8892
  }, []), O = ee((v) => {
8893
- v.preventDefault(), v.stopPropagation(), w(!1), N(v.dataTransfer.files);
8893
+ v.preventDefault(), v.stopPropagation(), x(!1), N(v.dataTransfer.files);
8894
8894
  }, [N]), M = () => {
8895
8895
  var v;
8896
8896
  (v = B.current) == null || v.click();
@@ -9164,14 +9164,14 @@ const Li = (...e) => e.filter((t, a, r) => !!t && t.trim() !== "" && r.indexOf(t
9164
9164
  * This source code is licensed under the ISC license.
9165
9165
  * See the LICENSE file in the root directory of this source tree.
9166
9166
  */
9167
- const xa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9167
+ const wa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9168
9168
  /**
9169
9169
  * @license lucide-react v0.574.0 - ISC
9170
9170
  *
9171
9171
  * This source code is licensed under the ISC license.
9172
9172
  * See the LICENSE file in the root directory of this source tree.
9173
9173
  */
9174
- const wa = (e) => e.replace(
9174
+ const xa = (e) => e.replace(
9175
9175
  /^([A-Z])|[\s-_]+(\w)/g,
9176
9176
  (t, a, r) => r ? r.toUpperCase() : a.toLowerCase()
9177
9177
  );
@@ -9182,7 +9182,7 @@ const wa = (e) => e.replace(
9182
9182
  * See the LICENSE file in the root directory of this source tree.
9183
9183
  */
9184
9184
  const fi = (e) => {
9185
- const t = wa(e);
9185
+ const t = xa(e);
9186
9186
  return t.charAt(0).toUpperCase() + t.slice(1);
9187
9187
  };
9188
9188
  /**
@@ -9261,7 +9261,7 @@ const Ei = (e, t) => {
9261
9261
  ref: o,
9262
9262
  iconNode: t,
9263
9263
  className: Li(
9264
- `lucide-${xa(fi(e))}`,
9264
+ `lucide-${wa(fi(e))}`,
9265
9265
  `lucide-${e}`,
9266
9266
  r
9267
9267
  ),
@@ -9328,7 +9328,7 @@ const za = ({
9328
9328
  onComplete: t,
9329
9329
  onBack: a
9330
9330
  }) => {
9331
- const { t: r } = Ie(), { questionnaire: n, initialAnswers: o, isLoading: l, isSubmitting: d, error: u, submit: m } = ca(e), [g, y] = T({}), [w, A] = T({}), [S, B] = T(0);
9331
+ const { t: r } = Ie(), { questionnaire: n, initialAnswers: o, isLoading: l, isSubmitting: d, error: u, submit: m } = ca(e), [g, y] = T({}), [x, A] = T({}), [S, B] = T(0);
9332
9332
  ye.useEffect(() => {
9333
9333
  o && Object.keys(o).length > 0 && Object.keys(g).length === 0 && y(o);
9334
9334
  }, [o]);
@@ -9398,7 +9398,7 @@ const za = ({
9398
9398
  {
9399
9399
  question: v,
9400
9400
  value: g[v.id] ?? [],
9401
- error: w[v.id],
9401
+ error: x[v.id],
9402
9402
  onChange: (z) => O(v.id, z)
9403
9403
  },
9404
9404
  v.id
@@ -9549,7 +9549,7 @@ const Da = ({
9549
9549
  onComplete: t,
9550
9550
  onBack: a
9551
9551
  }) => {
9552
- const { t: r } = Ie(), { uploadDocument: n, isLoading: o, isSubmitting: l, error: d, submit: u } = da(e), [m, g] = T({}), [y, w] = T(null), [A, S] = T(0), [B, N] = T({}), U = Ue(
9552
+ const { t: r } = Ie(), { uploadDocument: n, isLoading: o, isSubmitting: l, error: d, submit: u } = da(e), [m, g] = T({}), [y, x] = T(null), [A, S] = T(0), [B, N] = T({}), U = Ue(
9553
9553
  () => n ? Ea(n.uploadDocumentFiles) : [],
9554
9554
  [n]
9555
9555
  ), K = U[A] ?? [], O = A === U.length - 1, M = U.length, Y = ee(() => {
@@ -9563,7 +9563,7 @@ const Da = ({
9563
9563
  A > 0 ? (S((z) => z - 1), N({})) : a == null || a();
9564
9564
  }, v = async () => {
9565
9565
  if (!(!Y() || !n)) {
9566
- w(null);
9566
+ x(null);
9567
9567
  try {
9568
9568
  const z = await Promise.all(
9569
9569
  n.uploadDocumentFiles.map(async (X) => {
@@ -9585,7 +9585,7 @@ const Da = ({
9585
9585
  };
9586
9586
  await u(F), t == null || t();
9587
9587
  } catch (z) {
9588
- w((z == null ? void 0 : z.message) || r("uploadDocument.failedToSubmit"));
9588
+ x((z == null ? void 0 : z.message) || r("uploadDocument.failedToSubmit"));
9589
9589
  }
9590
9590
  }
9591
9591
  };
@@ -9698,7 +9698,7 @@ const Da = ({
9698
9698
  error: B[z.id],
9699
9699
  value: m[z.id] || [],
9700
9700
  onChange: (F) => {
9701
- w(null), N((X) => {
9701
+ x(null), N((X) => {
9702
9702
  const te = { ...X };
9703
9703
  return delete te[z.id], te;
9704
9704
  }), g((X) => ({ ...X, [z.id]: F }));
@@ -9867,9 +9867,9 @@ const qa = ({
9867
9867
  onComplete: t,
9868
9868
  onBack: a
9869
9869
  }) => {
9870
- const { t: r } = Ie(), { config: n } = Se(), o = n.locale ?? "en", { criteria: l, initialAnswers: d, isLoading: u, isSubmitting: m, error: g, submit: y } = pa(e), [w, A] = T({}), [S, B] = T({}), [N, U] = T(0), [K, O] = T(!1);
9870
+ const { t: r } = Ie(), { config: n } = Se(), o = n.locale ?? "en", { criteria: l, initialAnswers: d, isLoading: u, isSubmitting: m, error: g, submit: y } = pa(e), [x, A] = T({}), [S, B] = T({}), [N, U] = T(0), [K, O] = T(!1);
9871
9871
  ye.useEffect(() => {
9872
- d && Object.keys(d).length > 0 && Object.keys(w).length === 0 && A(d);
9872
+ d && Object.keys(d).length > 0 && Object.keys(x).length === 0 && A(d);
9873
9873
  }, [d]);
9874
9874
  const M = Ue(
9875
9875
  () => l && l.length > 0 ? Va(l) : [],
@@ -9886,11 +9886,11 @@ const qa = ({
9886
9886
  }, []), v = ee(() => {
9887
9887
  const te = {};
9888
9888
  for (const { criterion: H } of G) {
9889
- const re = Oa(H, w[H.id] ?? []);
9889
+ const re = Oa(H, x[H.id] ?? []);
9890
9890
  re && (te[H.id] = re);
9891
9891
  }
9892
9892
  return B((H) => ({ ...H, ...te })), Object.keys(te).length === 0;
9893
- }, [G, w]), z = () => {
9893
+ }, [G, x]), z = () => {
9894
9894
  v() && U((te) => te + 1);
9895
9895
  }, F = () => {
9896
9896
  N > 0 ? U((te) => te - 1) : a == null || a();
@@ -9898,7 +9898,7 @@ const qa = ({
9898
9898
  if (!(!v() || !l))
9899
9899
  try {
9900
9900
  const te = l.map((re) => {
9901
- const me = (w[re.id] ?? []).filter((de) => de && de.trim());
9901
+ const me = (x[re.id] ?? []).filter((de) => de && de.trim());
9902
9902
  return me.length > 0 ? { riskCriteriaId: re.id, values: me } : null;
9903
9903
  }).filter((re) => re !== null);
9904
9904
  await y({ applicantId: e, criteriaValueInputs: te }), t == null || t();
@@ -9940,7 +9940,7 @@ const qa = ({
9940
9940
  Ua,
9941
9941
  {
9942
9942
  criterion: te,
9943
- value: w[te.id] ?? [],
9943
+ value: x[te.id] ?? [],
9944
9944
  error: S[te.id],
9945
9945
  locale: o,
9946
9946
  onChange: (H) => Q(te.id, H)
@@ -10044,17 +10044,17 @@ const qa = ({
10044
10044
  ] }),
10045
10045
  l === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10046
10046
  (e.defaultValues ?? []).map((g) => {
10047
- const y = t.includes(g), w = () => {
10047
+ const y = t.includes(g), x = () => {
10048
10048
  n(y ? t.filter((A) => A !== g) : [...t, g]);
10049
10049
  };
10050
10050
  return /* @__PURE__ */ s(
10051
10051
  "div",
10052
10052
  {
10053
10053
  className: "metakyc-option-label",
10054
- onClick: w,
10054
+ onClick: x,
10055
10055
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
10056
10056
  children: [
10057
- /* @__PURE__ */ i(Xe, { checked: y, onChange: () => w() }),
10057
+ /* @__PURE__ */ i(Xe, { checked: y, onChange: () => x() }),
10058
10058
  /* @__PURE__ */ i("span", { className: "metakyc-option-text", style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)", lineHeight: "1.4", marginLeft: 0 }, children: m(g) })
10059
10059
  ]
10060
10060
  },
@@ -10087,8 +10087,8 @@ const qa = ({
10087
10087
  onBack: a
10088
10088
  }) => {
10089
10089
  const { t: r } = Ie(), { investorCategorizationService: n } = Se(), [o, l] = T(null), [d, u] = T(!1), [m, g] = T(null);
10090
- return /* @__PURE__ */ i("form", { onSubmit: async (w) => {
10091
- if (w.preventDefault(), o === null) {
10090
+ return /* @__PURE__ */ i("form", { onSubmit: async (x) => {
10091
+ if (x.preventDefault(), o === null) {
10092
10092
  g(r("investorCategorization.pleaseSelect"));
10093
10093
  return;
10094
10094
  }
@@ -10227,18 +10227,18 @@ const Wa = ({
10227
10227
  onComplete: t,
10228
10228
  onBack: a
10229
10229
  }) => {
10230
- const { t: r } = Ie(), { appropriatenessTestService: n } = Se(), [o, l] = T(null), [d, u] = T(!0), [m, g] = T(!1), [y, w] = T(null), [A, S] = T({}), [B, N] = T(0), [U, K] = T(!1), [O, M] = T(!1), [Y, G] = T(0), [Q, v] = T(0), [z, F] = T(null);
10230
+ const { t: r } = Ie(), { appropriatenessTestService: n } = Se(), [o, l] = T(null), [d, u] = T(!0), [m, g] = T(!1), [y, x] = T(null), [A, S] = T({}), [B, N] = T(0), [U, K] = T(!1), [O, M] = T(!1), [Y, G] = T(0), [Q, v] = T(0), [z, F] = T(null);
10231
10231
  fe(() => {
10232
10232
  (async () => {
10233
10233
  try {
10234
- u(!0), w(null);
10234
+ u(!0), x(null);
10235
10235
  const P = await n.getAppropriatenessTest(e);
10236
10236
  if (l(P), P.waitTimeSpanForNextTry && P.waitTimeSpanForNextTry !== "00:00:00") {
10237
10237
  const j = yi(P.waitTimeSpanForNextTry);
10238
10238
  j > 0 && G(j);
10239
10239
  }
10240
10240
  } catch (P) {
10241
- w(P.message || r("appropriatenessTest.failedToLoad"));
10241
+ x(P.message || r("appropriatenessTest.failedToLoad"));
10242
10242
  } finally {
10243
10243
  u(!1);
10244
10244
  }
@@ -10259,7 +10259,7 @@ const Wa = ({
10259
10259
  O && !m && re();
10260
10260
  }, [O]);
10261
10261
  const X = () => {
10262
- o && (K(!0), N(o.testDurationSec), v(0), S({}), w(null));
10262
+ o && (K(!0), N(o.testDurationSec), v(0), S({}), x(null));
10263
10263
  }, te = (P, j) => {
10264
10264
  S((Z) => ({ ...Z, [P]: j }));
10265
10265
  }, H = ee(async () => {
@@ -10276,11 +10276,11 @@ const Wa = ({
10276
10276
  if (!O) {
10277
10277
  const j = o.appropriatenessQuestions.length - Object.keys(A).length;
10278
10278
  if (j > 0) {
10279
- w(r("appropriatenessTest.answerAllQuestions", { remaining: j }));
10279
+ x(r("appropriatenessTest.answerAllQuestions", { remaining: j }));
10280
10280
  return;
10281
10281
  }
10282
10282
  }
10283
- g(!0), w(null);
10283
+ g(!0), x(null);
10284
10284
  try {
10285
10285
  const j = o.appropriatenessQuestions.map(
10286
10286
  (ge) => ({ appropriatenessQuestionId: ge.id, value: A[ge.id] || "" })
@@ -10299,7 +10299,7 @@ const Wa = ({
10299
10299
  throw ge;
10300
10300
  }
10301
10301
  } catch (j) {
10302
- w(j.message || r("appropriatenessTest.failedToSubmit")), me();
10302
+ x(j.message || r("appropriatenessTest.failedToSubmit")), me();
10303
10303
  } finally {
10304
10304
  g(!1);
10305
10305
  }
@@ -10350,7 +10350,7 @@ const Wa = ({
10350
10350
  ] });
10351
10351
  if (z) {
10352
10352
  const P = () => {
10353
- F(null), me(), w(null);
10353
+ F(null), me(), x(null);
10354
10354
  };
10355
10355
  return /* @__PURE__ */ s(ne, { children: [
10356
10356
  /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ s("div", { style: {
@@ -10798,7 +10798,7 @@ const Wa = ({
10798
10798
  onBack: a
10799
10799
  }) => {
10800
10800
  var gt, b, V, D;
10801
- const { t: r } = Ie(), { applicantService: n, baseInformationService: o, identityService: l, config: d, currentTheme: u } = Se(), { identityData: m, provider: g, token: y, isLoading: w, error: A, requestIdentity: S, restartIdentity: B } = ma(e), [N, U] = T(null), [K, O] = T(null), [M, Y] = T([]), [G, Q] = T([]), [v, z] = T(!0), [F, X] = T(!1), [te, H] = T(null), [re, me] = T(!1), de = ye.useRef(!1), [Ne, le] = T("idle"), ve = pe(!1), he = pe(null), [$, R] = T({}), [P, j] = T({}), Z = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, ge = !!(u != null && u.reviewPageDisabled), W = pe(!1);
10801
+ const { t: r } = Ie(), { applicantService: n, baseInformationService: o, identityService: l, config: d, currentTheme: u } = Se(), { identityData: m, provider: g, token: y, isLoading: x, error: A, requestIdentity: S, restartIdentity: B } = ma(e), [N, U] = T(null), [K, O] = T(null), [M, Y] = T([]), [G, Q] = T([]), [v, z] = T(!0), [F, X] = T(!1), [te, H] = T(null), [re, me] = T(!1), de = ye.useRef(!1), [Ne, le] = T("idle"), ve = pe(!1), he = pe(null), [$, R] = T({}), [P, j] = T({}), Z = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, ge = !!(u != null && u.reviewPageDisabled), W = pe(!1);
10802
10802
  W.current = ge;
10803
10803
  const J = qi({
10804
10804
  defaultValues: {
@@ -10825,9 +10825,9 @@ const Wa = ({
10825
10825
  // CountriesType.PhoneNumber
10826
10826
  ]);
10827
10827
  O(h);
10828
- const q = /* @__PURE__ */ new Set(), c = E.map((x) => ({ value: x.abbreviation3 || x.abbreviation, label: x.name })).filter((x) => !x.value || q.has(x.value) ? !1 : (q.add(x.value), !0));
10828
+ const q = /* @__PURE__ */ new Set(), c = E.map((w) => ({ value: w.abbreviation3 || w.abbreviation, label: w.name })).filter((w) => !w.value || q.has(w.value) ? !1 : (q.add(w.value), !0));
10829
10829
  Y(c);
10830
- const L = /* @__PURE__ */ new Set(), C = I.filter((x) => x.countryCode).map((x) => ({ value: x.countryCode, label: `${x.countryCode} – ${x.name}` })).filter((x) => L.has(x.value) ? !1 : (L.add(x.value), !0));
10830
+ const L = /* @__PURE__ */ new Set(), C = I.filter((w) => w.countryCode).map((w) => ({ value: w.countryCode, label: `${w.countryCode} – ${w.name}` })).filter((w) => L.has(w.value) ? !1 : (L.add(w.value), !0));
10831
10831
  Q(C);
10832
10832
  const p = h.applicantRequestData;
10833
10833
  if (R({
@@ -10864,8 +10864,8 @@ const Wa = ({
10864
10864
  console.log("[Identity] Review page disabled + existing identity — auto-requesting..."), de.current = !0;
10865
10865
  try {
10866
10866
  await S(), X(!0);
10867
- } catch (x) {
10868
- console.error("[Identity] Auto-request failed:", x);
10867
+ } catch (w) {
10868
+ console.error("[Identity] Auto-request failed:", w);
10869
10869
  }
10870
10870
  }
10871
10871
  } catch (h) {
@@ -11037,7 +11037,7 @@ const Wa = ({
11037
11037
  console.error("Error restarting identity verification:", f), H(f.message || r("identity.failedToRestart"));
11038
11038
  }
11039
11039
  };
11040
- if (v || w)
11040
+ if (v || x)
11041
11041
  return /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
11042
11042
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
11043
11043
  /* @__PURE__ */ i("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: r("identity.loadingIdentity") })
@@ -11094,7 +11094,7 @@ const Wa = ({
11094
11094
  ] }),
11095
11095
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11096
11096
  He && /* @__PURE__ */ i(se, { type: "button", variant: "outline", onClick: He, children: r("common.back") }),
11097
- /* @__PURE__ */ i(se, { type: "button", onClick: Qe, disabled: w, children: r(w ? "identity.restarting" : "identity.restartVerification") })
11097
+ /* @__PURE__ */ i(se, { type: "button", onClick: Qe, disabled: x, children: r(x ? "identity.restarting" : "identity.restartVerification") })
11098
11098
  ] })
11099
11099
  ] });
11100
11100
  if (F && Ne === "processing")
@@ -11136,7 +11136,7 @@ const Wa = ({
11136
11136
  {
11137
11137
  type: "button",
11138
11138
  onClick: ze,
11139
- disabled: Ze || w,
11139
+ disabled: Ze || x,
11140
11140
  style: {
11141
11141
  padding: "6px 14px",
11142
11142
  fontSize: "13px",
@@ -11145,8 +11145,8 @@ const Wa = ({
11145
11145
  border: "1px solid var(--metakyc-border, #d1d5db)",
11146
11146
  background: "var(--metakyc-background, #ffffff)",
11147
11147
  color: "var(--metakyc-text-primary, #111827)",
11148
- cursor: Ze || w ? "not-allowed" : "pointer",
11149
- opacity: Ze || w ? 0.5 : 1
11148
+ cursor: Ze || x ? "not-allowed" : "pointer",
11149
+ opacity: Ze || x ? 0.5 : 1
11150
11150
  },
11151
11151
  children: r(Ze ? "identity.restarting" : "identity.reset")
11152
11152
  }
@@ -11231,7 +11231,7 @@ const Wa = ({
11231
11231
  return E ? E.label : String(h);
11232
11232
  }
11233
11233
  return String(h);
11234
- }, xt = ({ helpText: f }) => {
11234
+ }, wt = ({ helpText: f }) => {
11235
11235
  const [h, E] = T(!1), I = pe(null), [, q] = T({ top: 0, left: 0 });
11236
11236
  return /* @__PURE__ */ s(bt, { children: [
11237
11237
  /* @__PURE__ */ i(
@@ -11327,8 +11327,8 @@ const Wa = ({
11327
11327
  ] });
11328
11328
  }, Pe = (f, h) => h ? /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
11329
11329
  /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0 }, children: f }),
11330
- /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(xt, { helpText: h }) })
11331
- ] }) : f, wt = (f, h) => {
11330
+ /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(wt, { helpText: h }) })
11331
+ ] }) : f, xt = (f, h) => {
11332
11332
  const E = `cf-${h}`, I = f.paramName ?? "", q = P[I];
11333
11333
  if (f.customType === "br")
11334
11334
  return /* @__PURE__ */ i("div", { style: { ...De(f.colSpan), minHeight: "0.5rem" } }, E);
@@ -11441,7 +11441,7 @@ const Wa = ({
11441
11441
  f.helpText
11442
11442
  ) }, E);
11443
11443
  }, pt = (f, h) => {
11444
- if (f.isCustom) return wt(f, h);
11444
+ if (f.isCustom) return xt(f, h);
11445
11445
  const E = f.name ?? "", I = dt[E], q = ie(f.displayText, r) || (I != null && I.translationKey ? r(`fields.${I.translationKey}`) : void 0) || (I == null ? void 0 : I.label) || E, c = $[E] ?? "", L = E === "mobileCountryCode", C = !!(I != null && I.countriesType) && !L;
11446
11446
  return f.editable ? L ? /* @__PURE__ */ i("div", { style: De(f.colSpan ?? 2), children: Pe(
11447
11447
  /* @__PURE__ */ i(
@@ -11496,7 +11496,7 @@ const Wa = ({
11496
11496
  /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: Z.fields.map((E, I) => pt(E, I)) }) }),
11497
11497
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11498
11498
  a && /* @__PURE__ */ i(se, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11499
- /* @__PURE__ */ i(se, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11499
+ /* @__PURE__ */ i(se, { type: "submit", isLoading: x, children: r("identity.confirmAndStart") })
11500
11500
  ] })
11501
11501
  ] }) });
11502
11502
  }
@@ -11563,7 +11563,7 @@ const Wa = ({
11563
11563
  ] }),
11564
11564
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11565
11565
  a && /* @__PURE__ */ i(se, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11566
- /* @__PURE__ */ i(se, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11566
+ /* @__PURE__ */ i(se, { type: "submit", isLoading: x, children: r("identity.confirmAndStart") })
11567
11567
  ] })
11568
11568
  ] }) });
11569
11569
  }, Zt = {
@@ -11705,54 +11705,219 @@ const hi = ({
11705
11705
  }
11706
11706
  }
11707
11707
  ) });
11708
+ }, ki = {
11709
+ en: "English",
11710
+ de: "Deutsch",
11711
+ fr: "Français",
11712
+ es: "Español",
11713
+ it: "Italiano",
11714
+ pt: "Português",
11715
+ nl: "Nederlands",
11716
+ pl: "Polski",
11717
+ ru: "Русский",
11718
+ zh: "中文",
11719
+ ja: "日本語",
11720
+ ar: "العربية",
11721
+ tr: "Türkçe",
11722
+ sv: "Svenska",
11723
+ da: "Dansk",
11724
+ fi: "Suomi",
11725
+ no: "Norsk"
11726
+ }, Qa = ({ size: e = 18 }) => /* @__PURE__ */ s(
11727
+ "svg",
11728
+ {
11729
+ width: e,
11730
+ height: e,
11731
+ viewBox: "0 0 24 24",
11732
+ fill: "none",
11733
+ stroke: "currentColor",
11734
+ strokeWidth: 1.8,
11735
+ strokeLinecap: "round",
11736
+ strokeLinejoin: "round",
11737
+ children: [
11738
+ /* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "10" }),
11739
+ /* @__PURE__ */ i("path", { d: "M2 12h20" }),
11740
+ /* @__PURE__ */ i("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
11741
+ ]
11742
+ }
11743
+ ), Xa = () => {
11744
+ const { locale: e, setLocale: t, currentTheme: a } = Se(), [r, n] = T(!1), o = pe(null), l = Object.keys(Pt), d = a != null && a.allowedLanguages && a.allowedLanguages.length > 0 ? l.filter((m) => {
11745
+ const g = m.toUpperCase();
11746
+ return a.allowedLanguages.some(
11747
+ (y) => y.toUpperCase() === g
11748
+ );
11749
+ }) : l;
11750
+ fe(() => {
11751
+ const m = (g) => {
11752
+ o.current && !o.current.contains(g.target) && n(!1);
11753
+ };
11754
+ return r && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
11755
+ }, [r]);
11756
+ const u = e === "ar";
11757
+ return /* @__PURE__ */ s(
11758
+ "div",
11759
+ {
11760
+ ref: o,
11761
+ style: { position: "relative", display: "inline-flex", zIndex: 50 },
11762
+ children: [
11763
+ /* @__PURE__ */ s(
11764
+ "button",
11765
+ {
11766
+ type: "button",
11767
+ onClick: () => n(!r),
11768
+ "aria-label": "Select language",
11769
+ style: {
11770
+ display: "inline-flex",
11771
+ alignItems: "center",
11772
+ gap: "6px",
11773
+ padding: "6px 10px",
11774
+ borderRadius: "8px",
11775
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
11776
+ backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
11777
+ color: "var(--metakyc-text-secondary, #6b7280)",
11778
+ fontSize: "13px",
11779
+ fontWeight: 500,
11780
+ cursor: "pointer",
11781
+ transition: "border-color 0.15s, box-shadow 0.15s",
11782
+ lineHeight: 1
11783
+ },
11784
+ onMouseEnter: (m) => {
11785
+ m.currentTarget.style.borderColor = "var(--metakyc-primary, #2563eb)";
11786
+ },
11787
+ onMouseLeave: (m) => {
11788
+ r || (m.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
11789
+ },
11790
+ children: [
11791
+ /* @__PURE__ */ i(Qa, { size: 16 }),
11792
+ /* @__PURE__ */ i("span", { children: ki[e] || e.toUpperCase() }),
11793
+ /* @__PURE__ */ i(
11794
+ "svg",
11795
+ {
11796
+ width: "12",
11797
+ height: "12",
11798
+ viewBox: "0 0 24 24",
11799
+ fill: "none",
11800
+ stroke: "currentColor",
11801
+ strokeWidth: 2.5,
11802
+ style: {
11803
+ transition: "transform 0.15s",
11804
+ transform: r ? "rotate(180deg)" : "rotate(0deg)"
11805
+ },
11806
+ children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
11807
+ }
11808
+ )
11809
+ ]
11810
+ }
11811
+ ),
11812
+ r && /* @__PURE__ */ i(
11813
+ "div",
11814
+ {
11815
+ style: {
11816
+ position: "absolute",
11817
+ top: "100%",
11818
+ ...u ? { left: 0 } : { right: 0 },
11819
+ marginTop: "4px",
11820
+ minWidth: "160px",
11821
+ maxHeight: "240px",
11822
+ overflowY: "auto",
11823
+ backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
11824
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
11825
+ borderRadius: "8px",
11826
+ boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
11827
+ padding: "4px 0",
11828
+ zIndex: 51
11829
+ },
11830
+ children: d.map((m) => {
11831
+ const g = m === e;
11832
+ return /* @__PURE__ */ i(
11833
+ "button",
11834
+ {
11835
+ type: "button",
11836
+ onClick: () => {
11837
+ t(m), n(!1);
11838
+ },
11839
+ style: {
11840
+ display: "flex",
11841
+ alignItems: "center",
11842
+ width: "100%",
11843
+ padding: "8px 12px",
11844
+ border: "none",
11845
+ backgroundColor: g ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 10%, transparent)" : "transparent",
11846
+ color: g ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-primary, #111827)",
11847
+ fontSize: "13px",
11848
+ fontWeight: g ? 600 : 400,
11849
+ cursor: "pointer",
11850
+ textAlign: u ? "right" : "left",
11851
+ direction: m === "ar" ? "rtl" : "ltr",
11852
+ transition: "background-color 0.1s"
11853
+ },
11854
+ onMouseEnter: (y) => {
11855
+ g || (y.currentTarget.style.backgroundColor = "var(--metakyc-surface, #f9fafb)");
11856
+ },
11857
+ onMouseLeave: (y) => {
11858
+ g || (y.currentTarget.style.backgroundColor = "transparent");
11859
+ },
11860
+ children: ki[m] || m.toUpperCase()
11861
+ },
11862
+ m
11863
+ );
11864
+ })
11865
+ }
11866
+ )
11867
+ ]
11868
+ }
11869
+ );
11708
11870
  }, Rt = ({
11709
11871
  title: e,
11710
11872
  subtitle: t,
11711
11873
  className: a = ""
11712
11874
  }) => {
11713
- const { currentTheme: r } = Se(), { t: n } = Ie(), o = e || (r == null ? void 0 : r.title) || "", l = ie(o, n), d = ie(t, n), u = !!(r != null && r.logo && r.logo.visible && r.logo.url), m = !!l;
11714
- return !u && !m ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${a}`, children: [
11875
+ const { currentTheme: r, config: n } = Se(), { t: o } = Ie(), l = e || (r == null ? void 0 : r.title) || "", d = ie(l, o), u = ie(t, o), m = !!(r != null && r.logo && r.logo.visible && r.logo.url), g = !!d, y = !!n.showLanguagePicker;
11876
+ return !m && !g && !y ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${a}`, children: [
11715
11877
  /* @__PURE__ */ s(
11716
11878
  "div",
11717
11879
  {
11718
11880
  className: "metakyc-header-title flex items-center text-xl font-bold",
11719
- style: { color: "var(--metakyc-text-primary, #111827)" },
11881
+ style: { color: "var(--metakyc-text-primary, #111827)", justifyContent: "space-between" },
11720
11882
  children: [
11721
- u && /* @__PURE__ */ i(Ga, { config: r.logo }),
11722
- u && m && /* @__PURE__ */ i(
11723
- "span",
11724
- {
11725
- style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-text-muted, #9ca3af)", margin: "0 12px" },
11726
- children: "|"
11727
- }
11728
- ),
11729
- m && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: l })
11883
+ /* @__PURE__ */ s("div", { className: "flex items-center", style: { minWidth: 0 }, children: [
11884
+ m && /* @__PURE__ */ i(Ga, { config: r.logo }),
11885
+ m && g && /* @__PURE__ */ i(
11886
+ "span",
11887
+ {
11888
+ style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-text-muted, #9ca3af)", margin: "0 12px" },
11889
+ children: "|"
11890
+ }
11891
+ ),
11892
+ g && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: d })
11893
+ ] }),
11894
+ y && /* @__PURE__ */ i(Xa, {})
11730
11895
  ]
11731
11896
  }
11732
11897
  ),
11733
- d && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: d })
11898
+ u && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: u })
11734
11899
  ] });
11735
11900
  }, Mi = Gt(null), ji = () => Qt(Mi);
11736
11901
  function It() {
11737
11902
  const e = ji(), t = pe(e);
11738
11903
  return t.current = e, t;
11739
11904
  }
11740
- const Qa = ({ children: e }) => {
11905
+ const Za = ({ children: e }) => {
11741
11906
  const [t, a] = T([]), [r, n] = T({}), o = pe([]), l = ee((g) => {
11742
11907
  o.current = [...o.current.filter((y) => y.id !== g.id), g], a([...o.current]);
11743
11908
  }, []), d = ee((g) => {
11744
11909
  o.current = o.current.filter((y) => y.id !== g), a([...o.current]);
11745
11910
  }, []), u = ee((g) => {
11746
11911
  n((y) => {
11747
- const w = { ...y, ...g };
11748
- return Object.keys(g).some((S) => y[S] !== g[S]) ? w : y;
11912
+ const x = { ...y, ...g };
11913
+ return Object.keys(g).some((S) => y[S] !== g[S]) ? x : y;
11749
11914
  });
11750
11915
  }, []), m = Ue(
11751
11916
  () => ({ actions: t, registerAction: l, unregisterAction: d, sdkState: r, updateSdkState: u }),
11752
11917
  [t, l, d, r, u]
11753
11918
  );
11754
11919
  return /* @__PURE__ */ i(Mi.Provider, { value: m, children: e });
11755
- }, ki = 2147483640, Xa = () => {
11920
+ }, vi = 2147483640, Ja = () => {
11756
11921
  const e = ji(), [t, a] = T(!1), [r, n] = T("actions"), [o, l] = T(null), d = pe(null);
11757
11922
  if (fe(() => {
11758
11923
  if (!t) return;
@@ -11763,7 +11928,7 @@ const Qa = ({ children: e }) => {
11763
11928
  clearTimeout(z), document.removeEventListener("mousedown", v);
11764
11929
  };
11765
11930
  }, [t]), !e) return null;
11766
- const { actions: u, sdkState: m } = e, g = u.filter((v) => v.group === "form"), y = u.filter((v) => v.group === "workflow"), w = u.filter((v) => !v.group || v.group === "general"), A = async (v, z) => {
11931
+ const { actions: u, sdkState: m } = e, g = u.filter((v) => v.group === "form"), y = u.filter((v) => v.group === "workflow"), x = u.filter((v) => !v.group || v.group === "general"), A = async (v, z) => {
11767
11932
  l(v);
11768
11933
  try {
11769
11934
  await z();
@@ -11774,7 +11939,7 @@ const Qa = ({ children: e }) => {
11774
11939
  position: "fixed",
11775
11940
  bottom: "16px",
11776
11941
  right: "16px",
11777
- zIndex: ki,
11942
+ zIndex: vi,
11778
11943
  display: "flex",
11779
11944
  alignItems: "center",
11780
11945
  gap: "6px",
@@ -11796,7 +11961,7 @@ const Qa = ({ children: e }) => {
11796
11961
  position: "fixed",
11797
11962
  bottom: "56px",
11798
11963
  right: "16px",
11799
- zIndex: ki,
11964
+ zIndex: vi,
11800
11965
  width: "340px",
11801
11966
  maxHeight: "480px",
11802
11967
  borderRadius: "12px",
@@ -11908,7 +12073,7 @@ const Qa = ({ children: e }) => {
11908
12073
  /* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, children: r === "actions" ? /* @__PURE__ */ s("div", { style: { paddingBottom: "8px" }, children: [
11909
12074
  Y("Form", g),
11910
12075
  Y("Workflow", y),
11911
- Y("General", w),
12076
+ Y("General", x),
11912
12077
  u.length === 0 && /* @__PURE__ */ s("div", { style: { padding: "24px 14px", textAlign: "center", color: "#6c7086" }, children: [
11913
12078
  "No actions registered.",
11914
12079
  /* @__PURE__ */ i("br", {}),
@@ -11946,7 +12111,7 @@ const Qa = ({ children: e }) => {
11946
12111
  )
11947
12112
  ] });
11948
12113
  return typeof document > "u" ? null : Ft(Q, document.body);
11949
- }, Za = ["James", "Emma", "Alexander", "Sophia", "Michael", "Olivia", "Daniel", "Isabella", "Lukas", "Anna"], Ja = ["Anderson", "Mueller", "Johnson", "Williams", "Brown", "Schmidt", "Garcia", "Chen", "Huber", "Wagner"], en = ["Acme Corp", "Global Holdings Ltd", "TechVentures AG", "Alpine Solutions GmbH", "Meridian Capital LLC", "Nordic Innovations AS"], Mt = ["Vienna", "Zurich", "Munich", "Berlin", "London", "Amsterdam", "Paris", "Milan"], jt = ["AUT", "CHE", "DEU", "GBR", "NLD", "FRA", "ITA"], _t = ["Main Street", "Oak Avenue", "Elm Road", "Park Lane", "Lake Boulevard", "Ringstrasse", "Bahnhofstrasse"], tn = ["Software Engineer", "Financial Analyst", "Doctor", "Teacher", "Lawyer", "Architect", "Accountant"];
12114
+ }, en = ["James", "Emma", "Alexander", "Sophia", "Michael", "Olivia", "Daniel", "Isabella", "Lukas", "Anna"], tn = ["Anderson", "Mueller", "Johnson", "Williams", "Brown", "Schmidt", "Garcia", "Chen", "Huber", "Wagner"], rn = ["Acme Corp", "Global Holdings Ltd", "TechVentures AG", "Alpine Solutions GmbH", "Meridian Capital LLC", "Nordic Innovations AS"], Mt = ["Vienna", "Zurich", "Munich", "Berlin", "London", "Amsterdam", "Paris", "Milan"], jt = ["AUT", "CHE", "DEU", "GBR", "NLD", "FRA", "ITA"], _t = ["Main Street", "Oak Avenue", "Elm Road", "Park Lane", "Lake Boulevard", "Ringstrasse", "Bahnhofstrasse"], an = ["Software Engineer", "Financial Analyst", "Doctor", "Teacher", "Lawyer", "Architect", "Accountant"];
11950
12115
  function Ae(e) {
11951
12116
  return e[Math.floor(Math.random() * e.length)];
11952
12117
  }
@@ -11957,8 +12122,8 @@ function Fi(e, t) {
11957
12122
  const a = e + Math.floor(Math.random() * (t - e)), r = String(1 + Math.floor(Math.random() * 12)).padStart(2, "0"), n = String(1 + Math.floor(Math.random() * 28)).padStart(2, "0");
11958
12123
  return `${a}-${r}-${n}`;
11959
12124
  }
11960
- function rn() {
11961
- const e = Ae(Za), t = Ae(Ja), a = Ae(jt);
12125
+ function nn() {
12126
+ const e = Ae(en), t = Ae(tn), a = Ae(jt);
11962
12127
  return {
11963
12128
  firstName: e,
11964
12129
  lastName: t,
@@ -11974,7 +12139,7 @@ function rn() {
11974
12139
  placeOfBirth: Ae(Mt),
11975
12140
  countryOfBirth: Ae(jt),
11976
12141
  taxCountry: a,
11977
- occupation: Ae(tn),
12142
+ occupation: Ae(an),
11978
12143
  educationLevel: Ae(["Bachelor", "Master", "PhD", "High School"]),
11979
12144
  taxNumber: vt(10),
11980
12145
  defaultLanguage: "EN",
@@ -11983,8 +12148,8 @@ function rn() {
11983
12148
  title: Ae(["Mr", "Ms", "Dr", "Prof"])
11984
12149
  };
11985
12150
  }
11986
- function an() {
11987
- const e = Ae(en), t = e.split(" ")[0].toLowerCase();
12151
+ function on() {
12152
+ const e = Ae(rn), t = e.split(" ")[0].toLowerCase();
11988
12153
  return {
11989
12154
  companyName: e,
11990
12155
  email: `info@${t}.com`,
@@ -12007,7 +12172,7 @@ const Lt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
12007
12172
  function St(e) {
12008
12173
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
12009
12174
  }
12010
- const nn = {
12175
+ const sn = {
12011
12176
  width: "16px",
12012
12177
  height: "16px",
12013
12178
  minWidth: "16px",
@@ -12019,7 +12184,7 @@ const nn = {
12019
12184
  padding: 0,
12020
12185
  display: "inline-block",
12021
12186
  verticalAlign: "middle"
12022
- }, vi = ({ helpText: e, children: t }) => {
12187
+ }, bi = ({ helpText: e, children: t }) => {
12023
12188
  const [a, r] = ye.useState(!1);
12024
12189
  if (!e) return /* @__PURE__ */ i(bt, { children: t });
12025
12190
  const n = a ? /* @__PURE__ */ i(
@@ -12140,7 +12305,7 @@ const nn = {
12140
12305
  ),
12141
12306
  typeof document < "u" && n ? Ft(n, document.body) : null
12142
12307
  ] });
12143
- }, on = ({
12308
+ }, ln = ({
12144
12309
  workflowKey: e,
12145
12310
  externalRefId: t,
12146
12311
  applicantId: a,
@@ -12148,8 +12313,8 @@ const nn = {
12148
12313
  onCancel: n
12149
12314
  }) => {
12150
12315
  var V, D, f, h, E, I, q;
12151
- const { config: o, baseInformationService: l, currentTheme: d } = Se(), { createApplicant: u, getApplicantData: m, isLoading: g } = Ii(), { t: y } = Ie(), w = e || ((V = o.applicantForm) == null ? void 0 : V.workflowKey);
12152
- if (!w)
12316
+ const { config: o, baseInformationService: l, currentTheme: d } = Se(), { createApplicant: u, getApplicantData: m, isLoading: g } = Ii(), { t: y } = Ie(), x = e || ((V = o.applicantForm) == null ? void 0 : V.workflowKey);
12317
+ if (!x)
12153
12318
  throw new Error(
12154
12319
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
12155
12320
  );
@@ -12167,8 +12332,8 @@ const nn = {
12167
12332
  }, [d == null ? void 0 : d.applicantFormRequiredFields, O]), Y = Ue(() => {
12168
12333
  var C;
12169
12334
  if (O) {
12170
- const p = O.flatMap((x) => x.fields).filter((x) => !x.isCustom && x.name).map((x) => x.name), k = new Set(p);
12171
- for (const x of Lt) k.add(x);
12335
+ const p = O.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), k = new Set(p);
12336
+ for (const w of Lt) k.add(w);
12172
12337
  return Array.from(k);
12173
12338
  }
12174
12339
  let c;
@@ -12203,8 +12368,8 @@ const nn = {
12203
12368
  });
12204
12369
  if (c.length === 0) {
12205
12370
  Q.every((k) => {
12206
- const x = k != null ? String(k) : "all";
12207
- return H.current.has(x);
12371
+ const w = k != null ? String(k) : "all";
12372
+ return H.current.has(w);
12208
12373
  }) && X(!1);
12209
12374
  return;
12210
12375
  }
@@ -12214,11 +12379,11 @@ const nn = {
12214
12379
  try {
12215
12380
  const p = await Promise.all(
12216
12381
  c.map(async (k) => {
12217
- const x = k != null ? String(k) : "all", ue = await l.getCountries("", o.locale || "en", k), ce = k === 40, Me = /* @__PURE__ */ new Set(), je = ue.map((xe) => ce && xe.countryCode ? {
12218
- value: xe.countryCode,
12219
- label: `${xe.countryCode} – ${xe.name}`
12220
- } : { value: xe.abbreviation3 || xe.abbreviation, label: xe.name }).filter((xe) => !xe.value || Me.has(xe.value) ? !1 : (Me.add(xe.value), !0));
12221
- return H.current.add(x), te.current.delete(x), [x, je];
12382
+ const w = k != null ? String(k) : "all", ue = await l.getCountries("", o.locale || "en", k), ce = k === 40, Me = /* @__PURE__ */ new Set(), je = ue.map((we) => ce && we.countryCode ? {
12383
+ value: we.countryCode,
12384
+ label: `${we.countryCode} – ${we.name}`
12385
+ } : { value: we.abbreviation3 || we.abbreviation, label: we.name }).filter((we) => !we.value || Me.has(we.value) ? !1 : (Me.add(we.value), !0));
12386
+ return H.current.add(w), te.current.delete(w), [w, je];
12222
12387
  })
12223
12388
  );
12224
12389
  z((k) => ({ ...k, ...Object.fromEntries(p) }));
@@ -12226,8 +12391,8 @@ const nn = {
12226
12391
  L.forEach((k) => te.current.delete(k)), console.error("Failed to load countries:", p);
12227
12392
  } finally {
12228
12393
  Q.every((k) => {
12229
- const x = k != null ? String(k) : "all";
12230
- return H.current.has(x);
12394
+ const w = k != null ? String(k) : "all";
12395
+ return H.current.has(w);
12231
12396
  }) && X(!1);
12232
12397
  }
12233
12398
  })();
@@ -12264,7 +12429,7 @@ const nn = {
12264
12429
  ), Ne = Object.fromEntries(
12265
12430
  Object.entries(N).filter(([c]) => c in me)
12266
12431
  ), [le, ve] = T({
12267
- workflowKey: w,
12432
+ workflowKey: x,
12268
12433
  firstName: "",
12269
12434
  lastName: "",
12270
12435
  title: "",
@@ -12302,7 +12467,7 @@ const nn = {
12302
12467
  if (c) return;
12303
12468
  const p = C.applicantRequestData;
12304
12469
  p && ve((k) => {
12305
- var x;
12470
+ var w;
12306
12471
  return {
12307
12472
  ...k,
12308
12473
  firstName: p.firstName || k.firstName,
@@ -12326,7 +12491,7 @@ const nn = {
12326
12491
  occupation: p.occupation || k.occupation,
12327
12492
  title: p.title || k.title,
12328
12493
  salutation: p.salutation != null ? Number(p.salutation) : k.salutation,
12329
- otherNationality: (x = p.otherNationalities) != null && x.length ? p.otherNationalities : k.otherNationality
12494
+ otherNationality: (w = p.otherNationalities) != null && w.length ? p.otherNationalities : k.otherNationality
12330
12495
  };
12331
12496
  }), C.externalRefId && ve((k) => ({ ...k, externalRefId: C.externalRefId }));
12332
12497
  } catch (C) {
@@ -12339,28 +12504,28 @@ const nn = {
12339
12504
  };
12340
12505
  }, [a]);
12341
12506
  const [Z, ge] = T(0), [W, J] = T({}), [ke, Re] = T(null), [Ce, _e] = T(!1), st = It(), Ze = ee(() => {
12342
- const c = rn(), L = (C) => {
12507
+ const c = nn(), L = (C) => {
12343
12508
  var ue;
12344
- const p = (ue = dt[C]) == null ? void 0 : ue.countriesType, k = p != null ? String(p) : "all", x = (v[k] || []).filter((ce) => ce.value);
12345
- if (x.length)
12346
- return x[Math.floor(Math.random() * x.length)].value;
12509
+ const p = (ue = dt[C]) == null ? void 0 : ue.countriesType, k = p != null ? String(p) : "all", w = (v[k] || []).filter((ce) => ce.value);
12510
+ if (w.length)
12511
+ return w[Math.floor(Math.random() * w.length)].value;
12347
12512
  };
12348
12513
  ve((C) => {
12349
12514
  const p = { ...C };
12350
- for (const [k, x] of Object.entries(c))
12515
+ for (const [k, w] of Object.entries(c))
12351
12516
  if (k in C && (C[k] === "" || C[k] === null || C[k] === void 0))
12352
12517
  if (G.has(k)) {
12353
12518
  const ue = L(k);
12354
12519
  ue && (p[k] = ue);
12355
12520
  } else
12356
- p[k] = x;
12521
+ p[k] = w;
12357
12522
  return p;
12358
12523
  }), O && R((C) => {
12359
- var k, x;
12524
+ var k, w;
12360
12525
  const p = { ...C };
12361
12526
  for (const ue of O)
12362
12527
  for (const ce of ue.fields)
12363
- !ce.isCustom || !ce.paramName || p[ce.paramName] || (ce.customType === "checkbox" || ce.customType === "link_checkbox" ? p[ce.paramName] = "true" : ce.customType === "radio_group" && ((k = ce.options) != null && k.length) || ce.customType === "group_checkbox" && ((x = ce.options) != null && x.length) ? p[ce.paramName] = ce.options[0].value : ce.customType === "text" && (p[ce.paramName] = "Sample value"));
12528
+ !ce.isCustom || !ce.paramName || p[ce.paramName] || (ce.customType === "checkbox" || ce.customType === "link_checkbox" ? p[ce.paramName] = "true" : ce.customType === "radio_group" && ((k = ce.options) != null && k.length) || ce.customType === "group_checkbox" && ((w = ce.options) != null && w.length) ? p[ce.paramName] = ce.options[0].value : ce.customType === "text" && (p[ce.paramName] = "Sample value"));
12364
12529
  return p;
12365
12530
  }), J({}), Re(null);
12366
12531
  }, [O, v]);
@@ -12381,7 +12546,7 @@ const nn = {
12381
12546
  if (!C.isCustom || !C.paramName || !((L = C.blockingValues) != null && L.length)) continue;
12382
12547
  const p = $[C.paramName] ?? "";
12383
12548
  if (C.customType === "group_checkbox") {
12384
- if (p.split(",").filter(Boolean).some((x) => C.blockingValues.includes(x))) return !0;
12549
+ if (p.split(",").filter(Boolean).some((w) => C.blockingValues.includes(w))) return !0;
12385
12550
  } else if (C.customType === "radio_group" && C.blockingValues.includes(p))
12386
12551
  return !0;
12387
12552
  }
@@ -12398,12 +12563,12 @@ const nn = {
12398
12563
  } else if (C.name) {
12399
12564
  const p = C.name;
12400
12565
  if (M.includes(p) && St(le[p])) {
12401
- const k = dt[p], x = ie(C.displayText, y) || (k != null && k.translationKey ? y(`fields.${k.translationKey}`) : void 0) || (k == null ? void 0 : k.label) || p;
12402
- L[p] = y("validation.fieldRequired", { field: x });
12566
+ const k = dt[p], w = ie(C.displayText, y) || (k != null && k.translationKey ? y(`fields.${k.translationKey}`) : void 0) || (k == null ? void 0 : k.label) || p;
12567
+ L[p] = y("validation.fieldRequired", { field: w });
12403
12568
  }
12404
12569
  }
12405
12570
  return L;
12406
- }, xt = async () => {
12571
+ }, wt = async () => {
12407
12572
  if (!O) return;
12408
12573
  const c = O[Z];
12409
12574
  if (He(c) || c.conditionalOn && c.conditionalMode === "block" && !Qe(c)) return;
@@ -12441,42 +12606,42 @@ const nn = {
12441
12606
  if (O) {
12442
12607
  for (const k of O)
12443
12608
  if (Qe(k)) {
12444
- for (const x of k.fields)
12445
- if (!x.isCustom && x.name) {
12446
- const ue = x.name, ce = le[ue];
12609
+ for (const w of k.fields)
12610
+ if (!w.isCustom && w.name) {
12611
+ const ue = w.name, ce = le[ue];
12447
12612
  St(ce) || (c[ue] = ce);
12448
12613
  }
12449
12614
  }
12450
12615
  for (const k of Lt)
12451
12616
  if (c[k] === void 0) {
12452
- const x = le[k];
12453
- St(x) || (c[k] = x);
12617
+ const w = le[k];
12618
+ St(w) || (c[k] = w);
12454
12619
  }
12455
12620
  } else
12456
12621
  Y.forEach((k) => {
12457
12622
  if (k === "externalRefId") return;
12458
- const x = le[k];
12459
- St(x) || (c[k] = x);
12623
+ const w = le[k];
12624
+ St(w) || (c[k] = w);
12460
12625
  });
12461
12626
  const L = [];
12462
12627
  if (O) {
12463
12628
  for (const k of O)
12464
12629
  if (Qe(k))
12465
- for (const x of k.fields) {
12466
- if (!x.isCustom || !x.paramName || x.customType === "paragraph" || x.customType === "html" || x.customType === "br" || x.customType === "link") continue;
12467
- const ue = $[x.paramName] ?? "";
12630
+ for (const w of k.fields) {
12631
+ if (!w.isCustom || !w.paramName || w.customType === "paragraph" || w.customType === "html" || w.customType === "br" || w.customType === "link") continue;
12632
+ const ue = $[w.paramName] ?? "";
12468
12633
  let ce;
12469
- if (x.customType === "checkbox" || x.customType === "link_checkbox")
12634
+ if (w.customType === "checkbox" || w.customType === "link_checkbox")
12470
12635
  ce = ue === "true" ? "yes" : "no";
12471
- else if (ce = ue, !ce && !x.required) continue;
12472
- L.push({ paramName: x.paramName, value: ce });
12636
+ else if (ce = ue, !ce && !w.required) continue;
12637
+ L.push({ paramName: w.paramName, value: ce });
12473
12638
  }
12474
12639
  }
12475
- for (const [k, x] of Object.entries(de))
12476
- c[k] === void 0 && !St(x) && (c[k] = x);
12640
+ for (const [k, w] of Object.entries(de))
12641
+ c[k] === void 0 && !St(w) && (c[k] = w);
12477
12642
  const C = new Set(L.map((k) => k.paramName));
12478
- for (const [k, x] of Object.entries(he))
12479
- !C.has(k) && x && L.push({ paramName: k, value: x });
12643
+ for (const [k, w] of Object.entries(he))
12644
+ !C.has(k) && w && L.push({ paramName: k, value: w });
12480
12645
  L.length > 0 && (c.applicantAdditionalDatas = L);
12481
12646
  const p = await u(c);
12482
12647
  r(p.applicantId);
@@ -12485,7 +12650,7 @@ const nn = {
12485
12650
  } finally {
12486
12651
  _e(!1);
12487
12652
  }
12488
- }, wt = async (c) => {
12653
+ }, xt = async (c) => {
12489
12654
  c.preventDefault();
12490
12655
  for (const L of M)
12491
12656
  if (St(le[L])) {
@@ -12496,10 +12661,10 @@ const nn = {
12496
12661
  await Pe();
12497
12662
  }, pt = (c, L, C, p, k) => {
12498
12663
  var Jt;
12499
- const x = dt[c];
12500
- if (!x) return null;
12501
- const ue = M.includes(c), ce = W[c], Me = ie(C, y) || (x.translationKey ? y(`fields.${x.translationKey}`) : void 0) || x.label, je = c in Ne, xe = L ?? c, $e = { required: ue }, tt = k ? k !== "placeholder" : K, lt = tt ? Me : void 0;
12502
- switch (x.type) {
12664
+ const w = dt[c];
12665
+ if (!w) return null;
12666
+ const ue = M.includes(c), ce = W[c], Me = ie(C, y) || (w.translationKey ? y(`fields.${w.translationKey}`) : void 0) || w.label, je = c in Ne, we = L ?? c, $e = { required: ue }, tt = k ? k !== "placeholder" : K, lt = tt ? Me : void 0;
12667
+ switch (w.type) {
12503
12668
  case "select":
12504
12669
  if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
12505
12670
  const Fe = re(c, p);
@@ -12515,7 +12680,7 @@ const nn = {
12515
12680
  readOnly: je,
12516
12681
  error: ce
12517
12682
  },
12518
- xe
12683
+ we
12519
12684
  );
12520
12685
  }
12521
12686
  if (c === "salutation")
@@ -12535,7 +12700,7 @@ const nn = {
12535
12700
  readOnly: je,
12536
12701
  error: ce
12537
12702
  },
12538
- xe
12703
+ we
12539
12704
  );
12540
12705
  if (c === "defaultLanguage") {
12541
12706
  const Fe = d != null && d.allowedLanguages && d.allowedLanguages.length > 0 ? ti.filter((ft) => d.allowedLanguages.includes(ft.value)) : ti;
@@ -12550,7 +12715,7 @@ const nn = {
12550
12715
  readOnly: je,
12551
12716
  error: ce
12552
12717
  },
12553
- xe
12718
+ we
12554
12719
  );
12555
12720
  }
12556
12721
  return null;
@@ -12569,7 +12734,7 @@ const nn = {
12569
12734
  disabled: F,
12570
12735
  readOnly: je
12571
12736
  },
12572
- xe
12737
+ we
12573
12738
  );
12574
12739
  }
12575
12740
  return null;
@@ -12586,7 +12751,7 @@ const nn = {
12586
12751
  readOnly: je,
12587
12752
  error: ce
12588
12753
  },
12589
- xe
12754
+ we
12590
12755
  );
12591
12756
  case "email":
12592
12757
  return /* @__PURE__ */ i(
@@ -12601,7 +12766,7 @@ const nn = {
12601
12766
  readOnly: je,
12602
12767
  error: ce
12603
12768
  },
12604
- xe
12769
+ we
12605
12770
  );
12606
12771
  case "tel":
12607
12772
  return /* @__PURE__ */ i(
@@ -12616,7 +12781,7 @@ const nn = {
12616
12781
  readOnly: je,
12617
12782
  error: ce
12618
12783
  },
12619
- xe
12784
+ we
12620
12785
  );
12621
12786
  default:
12622
12787
  return /* @__PURE__ */ i(
@@ -12631,13 +12796,13 @@ const nn = {
12631
12796
  readOnly: je,
12632
12797
  error: ce
12633
12798
  },
12634
- xe
12799
+ we
12635
12800
  );
12636
12801
  }
12637
12802
  }, gt = (c, L) => {
12638
12803
  const C = c.labelMode ? c.labelMode !== "placeholder" : K;
12639
12804
  if (c.customType === "paragraph") {
12640
- const x = ie(c.displayText, y) || ie(c.label, y) || "";
12805
+ const w = ie(c.displayText, y) || ie(c.label, y) || "";
12641
12806
  return /* @__PURE__ */ i(
12642
12807
  "p",
12643
12808
  {
@@ -12648,7 +12813,7 @@ const nn = {
12648
12813
  margin: 0,
12649
12814
  color: "var(--metakyc-text-secondary, #6b7280)"
12650
12815
  },
12651
- dangerouslySetInnerHTML: { __html: x }
12816
+ dangerouslySetInnerHTML: { __html: w }
12652
12817
  },
12653
12818
  `custom-${L}`
12654
12819
  );
@@ -12664,7 +12829,7 @@ const nn = {
12664
12829
  if (c.customType === "br")
12665
12830
  return /* @__PURE__ */ i("div", { style: { height: "12px" } }, `custom-${L}`);
12666
12831
  if (c.customType === "link") {
12667
- const x = ie(c.displayText, y) || ie(c.label, y) || c.linkText || c.linkUrl || "";
12832
+ const w = ie(c.displayText, y) || ie(c.label, y) || c.linkText || c.linkUrl || "";
12668
12833
  return /* @__PURE__ */ i("div", { className: "metakyc-link-field", children: /* @__PURE__ */ s(
12669
12834
  "a",
12670
12835
  {
@@ -12681,7 +12846,7 @@ const nn = {
12681
12846
  cursor: "pointer"
12682
12847
  },
12683
12848
  children: [
12684
- x,
12849
+ w,
12685
12850
  /* @__PURE__ */ i("span", { style: { fontSize: "10px", opacity: 0.7 }, children: "↗" })
12686
12851
  ]
12687
12852
  }
@@ -12690,21 +12855,21 @@ const nn = {
12690
12855
  if (!c.paramName) return null;
12691
12856
  const p = W[c.paramName], k = ie(c.displayText, y) || ie(c.label, y) || c.paramName;
12692
12857
  if (c.customType === "checkbox") {
12693
- const x = $[c.paramName] === "true";
12858
+ const w = $[c.paramName] === "true";
12694
12859
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
12695
12860
  /* @__PURE__ */ s(
12696
12861
  "div",
12697
12862
  {
12698
12863
  className: "metakyc-option-label",
12699
12864
  role: "checkbox",
12700
- "aria-checked": x,
12701
- onClick: () => ze(c.paramName, x ? "false" : "true"),
12865
+ "aria-checked": w,
12866
+ onClick: () => ze(c.paramName, w ? "false" : "true"),
12702
12867
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12703
12868
  children: [
12704
12869
  /* @__PURE__ */ i(
12705
12870
  Xe,
12706
12871
  {
12707
- checked: x,
12872
+ checked: w,
12708
12873
  onChange: (ue) => ze(c.paramName, ue ? "true" : "false")
12709
12874
  }
12710
12875
  ),
@@ -12726,21 +12891,21 @@ const nn = {
12726
12891
  ] }, `custom-${L}`);
12727
12892
  }
12728
12893
  if (c.customType === "link_checkbox") {
12729
- const x = $[c.paramName] === "true";
12894
+ const w = $[c.paramName] === "true";
12730
12895
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
12731
12896
  /* @__PURE__ */ s(
12732
12897
  "div",
12733
12898
  {
12734
12899
  className: "metakyc-option-label",
12735
12900
  role: "checkbox",
12736
- "aria-checked": x,
12737
- onClick: () => ze(c.paramName, x ? "false" : "true"),
12901
+ "aria-checked": w,
12902
+ onClick: () => ze(c.paramName, w ? "false" : "true"),
12738
12903
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12739
12904
  children: [
12740
12905
  /* @__PURE__ */ i(
12741
12906
  Xe,
12742
12907
  {
12743
- checked: x,
12908
+ checked: w,
12744
12909
  onChange: (ue) => ze(c.paramName, ue ? "true" : "false")
12745
12910
  }
12746
12911
  ),
@@ -12775,7 +12940,7 @@ const nn = {
12775
12940
  ] }, `custom-${L}`);
12776
12941
  }
12777
12942
  if (c.customType === "group_checkbox") {
12778
- const x = ($[c.paramName] || "").split(",").filter(Boolean);
12943
+ const w = ($[c.paramName] || "").split(",").filter(Boolean);
12779
12944
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
12780
12945
  C && /* @__PURE__ */ s(
12781
12946
  "div",
@@ -12789,11 +12954,11 @@ const nn = {
12789
12954
  }
12790
12955
  ),
12791
12956
  /* @__PURE__ */ i("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((ue) => {
12792
- const ce = c.singleSelect ? $[c.paramName] === ue.value : x.includes(ue.value), Me = () => {
12957
+ const ce = c.singleSelect ? $[c.paramName] === ue.value : w.includes(ue.value), Me = () => {
12793
12958
  if (c.singleSelect)
12794
12959
  ze(c.paramName, ce ? "" : ue.value);
12795
12960
  else {
12796
- const je = ce ? x.filter((xe) => xe !== ue.value) : [...x, ue.value];
12961
+ const je = ce ? w.filter((we) => we !== ue.value) : [...w, ue.value];
12797
12962
  ze(c.paramName, je.join(","));
12798
12963
  }
12799
12964
  };
@@ -12833,23 +12998,23 @@ const nn = {
12833
12998
  ]
12834
12999
  }
12835
13000
  ),
12836
- /* @__PURE__ */ i("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((x) => /* @__PURE__ */ s(
13001
+ /* @__PURE__ */ i("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((w) => /* @__PURE__ */ s(
12837
13002
  "div",
12838
13003
  {
12839
13004
  className: "metakyc-option-label",
12840
- onClick: () => ze(c.paramName, x.value),
13005
+ onClick: () => ze(c.paramName, w.value),
12841
13006
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12842
13007
  children: [
12843
13008
  /* @__PURE__ */ i(
12844
13009
  "input",
12845
13010
  {
12846
13011
  type: "radio",
12847
- checked: $[c.paramName] === x.value,
12848
- onChange: () => ze(c.paramName, x.value),
13012
+ checked: $[c.paramName] === w.value,
13013
+ onChange: () => ze(c.paramName, w.value),
12849
13014
  name: `radio-group-${c.paramName}-${L}`,
12850
13015
  className: "metakyc-option-input",
12851
13016
  onClick: (ue) => ue.stopPropagation(),
12852
- style: nn
13017
+ style: sn
12853
13018
  }
12854
13019
  ),
12855
13020
  /* @__PURE__ */ i(
@@ -12857,12 +13022,12 @@ const nn = {
12857
13022
  {
12858
13023
  className: "metakyc-option-text",
12859
13024
  style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)", lineHeight: "1.4" },
12860
- children: x.label
13025
+ children: w.label
12861
13026
  }
12862
13027
  )
12863
13028
  ]
12864
13029
  },
12865
- x.value
13030
+ w.value
12866
13031
  )) }),
12867
13032
  p && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-danger, #ef4444)" }, children: p })
12868
13033
  ] }, `custom-${L}`) : /* @__PURE__ */ i(
@@ -12872,7 +13037,7 @@ const nn = {
12872
13037
  label: C ? `${k}${c.required ? " *" : ""}` : void 0,
12873
13038
  placeholder: C ? void 0 : k,
12874
13039
  value: $[c.paramName] || "",
12875
- onChange: (x) => ze(c.paramName, x.target.value),
13040
+ onChange: (w) => ze(c.paramName, w.target.value),
12876
13041
  required: c.required,
12877
13042
  error: p
12878
13043
  },
@@ -12881,7 +13046,7 @@ const nn = {
12881
13046
  }, b = (c, L) => {
12882
13047
  const C = Qe(c);
12883
13048
  return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
12884
- c.conditionalOn && /* @__PURE__ */ i(vi, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
13049
+ c.conditionalOn && /* @__PURE__ */ i(bi, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
12885
13050
  "div",
12886
13051
  {
12887
13052
  className: "metakyc-option-label",
@@ -12909,8 +13074,8 @@ const nn = {
12909
13074
  }
12910
13075
  ) }),
12911
13076
  C && /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: c.fields.map((p, k) => {
12912
- const x = Math.min(4, Math.max(1, Number(p.colSpan) || 4)), ue = p.isCustom ? `custom-${k}-${p.paramName}` : `builtin-${p.name}-${k}`;
12913
- return /* @__PURE__ */ i("div", { style: { gridColumn: `span ${x} / span ${x}` }, children: /* @__PURE__ */ i(vi, { helpText: p.helpText, children: p.isCustom ? gt(p, k) : pt(p.name, ue, p.displayText, p.countriesType, p.labelMode) }) }, ue);
13077
+ const w = Math.min(4, Math.max(1, Number(p.colSpan) || 4)), ue = p.isCustom ? `custom-${k}-${p.paramName}` : `builtin-${p.name}-${k}`;
13078
+ return /* @__PURE__ */ i("div", { style: { gridColumn: `span ${w} / span ${w}` }, children: /* @__PURE__ */ i(bi, { helpText: p.helpText, children: p.isCustom ? gt(p, k) : pt(p.name, ue, p.displayText, p.countriesType, p.labelMode) }) }, ue);
12914
13079
  }) })
12915
13080
  ] });
12916
13081
  };
@@ -12920,9 +13085,9 @@ const nn = {
12920
13085
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: y("common.loadingForm") })
12921
13086
  ] }) }) });
12922
13087
  if (O) {
12923
- const c = O[Z] ?? O[0], L = De === -1, C = et === -1, p = O.length, k = Qe(c), x = He(c), ue = Object.values(W), ce = !k && !!c.conditionalOn && c.conditionalMode === "block", Me = Ce || g || ce || x;
13088
+ const c = O[Z] ?? O[0], L = De === -1, C = et === -1, p = O.length, k = Qe(c), w = He(c), ue = Object.values(W), ce = !k && !!c.conditionalOn && c.conditionalMode === "block", Me = Ce || g || ce || w;
12924
13089
  let je;
12925
- return ce || x ? je = y("common.blocked") : C ? je = c.conditionalOn && !k ? y("common.skipAndSubmit") : y("common.submit") : je = c.conditionalOn && !k ? y("common.skip") : y("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ne, { children: [
13090
+ return ce || w ? je = y("common.blocked") : C ? je = c.conditionalOn && !k ? y("common.skipAndSubmit") : y("common.submit") : je = c.conditionalOn && !k ? y("common.skip") : y("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ne, { children: [
12926
13091
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || y("createApplicant.title") }) }),
12927
13092
  /* @__PURE__ */ s(oe, { children: [
12928
13093
  (c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
@@ -12952,7 +13117,7 @@ const nn = {
12952
13117
  )
12953
13118
  ] }),
12954
13119
  p > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12955
- O.map((xe, $e) => /* @__PURE__ */ i(
13120
+ O.map((we, $e) => /* @__PURE__ */ i(
12956
13121
  "div",
12957
13122
  {
12958
13123
  style: {
@@ -12979,7 +13144,7 @@ const nn = {
12979
13144
  " ",
12980
13145
  ke
12981
13146
  ] }),
12982
- ue.map((xe, $e) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: xe }, $e))
13147
+ ue.map((we, $e) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: we }, $e))
12983
13148
  ] }),
12984
13149
  b(c)
12985
13150
  ] }),
@@ -13005,14 +13170,14 @@ const nn = {
13005
13170
  type: "button",
13006
13171
  isLoading: Ce || g,
13007
13172
  disabled: Me,
13008
- onClick: C ? Pe : xt,
13173
+ onClick: C ? Pe : wt,
13009
13174
  children: je
13010
13175
  }
13011
13176
  )
13012
13177
  ] })
13013
13178
  ] }) });
13014
13179
  }
13015
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: wt, children: /* @__PURE__ */ s(ne, { children: [
13180
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: xt, children: /* @__PURE__ */ s(ne, { children: [
13016
13181
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || y("createApplicant.title") }) }),
13017
13182
  /* @__PURE__ */ s(oe, { children: [
13018
13183
  ke && /* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-lg", style: {
@@ -13030,27 +13195,27 @@ const nn = {
13030
13195
  /* @__PURE__ */ i(se, { type: "submit", isLoading: Ce || g, children: y("createApplicant.createApplicant") })
13031
13196
  ] })
13032
13197
  ] }) }) });
13033
- }, bi = ["companyName", "email"];
13198
+ }, wi = ["companyName", "email"];
13034
13199
  function Kt(e) {
13035
13200
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
13036
13201
  }
13037
- const sn = ({
13202
+ const cn = ({
13038
13203
  workflowKey: e,
13039
13204
  externalRefId: t,
13040
13205
  onSuccess: a,
13041
13206
  onCancel: r
13042
13207
  }) => {
13043
- var mt, xt, Pe, wt, pt, gt;
13208
+ var mt, wt, Pe, xt, pt, gt;
13044
13209
  const { config: n, baseInformationService: o, currentTheme: l } = Se(), { createCompanyApplicant: d, isLoading: u } = Ii(), { t: m } = Ie(), g = e || ((mt = n.applicantForm) == null ? void 0 : mt.workflowKey);
13045
13210
  if (!g)
13046
13211
  throw new Error(
13047
13212
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
13048
13213
  );
13049
- const y = t || ((xt = n.applicantForm) == null ? void 0 : xt.externalRefId) || "", w = ((Pe = n.applicantForm) == null ? void 0 : Pe.email) || "", A = ((wt = n.applicantForm) == null ? void 0 : wt.initialValues) || {}, B = (((pt = n.applicantForm) == null ? void 0 : pt.fieldLabelMode) || (l == null ? void 0 : l.fieldLabelMode) || "label") !== "placeholder", N = Ue(
13214
+ const y = t || ((wt = n.applicantForm) == null ? void 0 : wt.externalRefId) || "", x = ((Pe = n.applicantForm) == null ? void 0 : Pe.email) || "", A = ((xt = n.applicantForm) == null ? void 0 : xt.initialValues) || {}, B = (((pt = n.applicantForm) == null ? void 0 : pt.fieldLabelMode) || (l == null ? void 0 : l.fieldLabelMode) || "label") !== "placeholder", N = Ue(
13050
13215
  () => l != null && l.companyFormPages && l.companyFormPages.length > 0 ? l.companyFormPages : null,
13051
13216
  [l == null ? void 0 : l.companyFormPages]
13052
13217
  ), U = Ue(() => {
13053
- const b = new Set(bi), V = l == null ? void 0 : l.companyFormRequiredFields;
13218
+ const b = new Set(wi), V = l == null ? void 0 : l.companyFormRequiredFields;
13054
13219
  if (V) for (const D of V) b.add(D);
13055
13220
  if (N)
13056
13221
  for (const D of N)
@@ -13061,7 +13226,7 @@ const sn = ({
13061
13226
  var b;
13062
13227
  if (N) {
13063
13228
  const V = N.flatMap((f) => f.fields).filter((f) => !f.isCustom && f.name).map((f) => f.name), D = new Set(V);
13064
- for (const f of bi) D.add(f);
13229
+ for (const f of wi) D.add(f);
13065
13230
  return Array.from(D);
13066
13231
  }
13067
13232
  return (b = n.applicantForm) != null && b.visibleFields ? n.applicantForm.visibleFields : l != null && l.companyFormVisibleFields && l.companyFormVisibleFields.length > 0 ? l.companyFormVisibleFields : Ji;
@@ -13134,7 +13299,7 @@ const sn = ({
13134
13299
  ), [re, me] = T({
13135
13300
  workflowKey: g,
13136
13301
  companyName: "",
13137
- email: w,
13302
+ email: x,
13138
13303
  phone: "",
13139
13304
  registrationNumber: "",
13140
13305
  countryResidence: "",
@@ -13155,7 +13320,7 @@ const sn = ({
13155
13320
  externalRefId: y,
13156
13321
  ...H
13157
13322
  }), [de, Ne] = T({}), [le, ve] = T(0), [he, $] = T({}), [R, P] = T(null), [j, Z] = T(!1), ge = It(), W = ee(() => {
13158
- const b = an(), V = (D) => {
13323
+ const b = on(), V = (D) => {
13159
13324
  var I;
13160
13325
  const f = (I = ht[D]) == null ? void 0 : I.countriesType, h = f != null ? String(f) : "all", E = (Y[h] || []).filter((q) => q.value);
13161
13326
  if (E.length)
@@ -13321,7 +13486,7 @@ const sn = ({
13321
13486
  switch (E.type) {
13322
13487
  case "select":
13323
13488
  if (b === "countryResidence" || b === "addressCountry") {
13324
- const x = X(b, f);
13489
+ const w = X(b, f);
13325
13490
  return /* @__PURE__ */ i(
13326
13491
  nt,
13327
13492
  {
@@ -13329,7 +13494,7 @@ const sn = ({
13329
13494
  label: k,
13330
13495
  value: re[b] || "",
13331
13496
  onChange: (ue) => J(b, ue),
13332
- options: [{ value: "", label: p ? m("placeholders.selectCountry") : c }, ...x],
13497
+ options: [{ value: "", label: p ? m("placeholders.selectCountry") : c }, ...w],
13333
13498
  disabled: Q,
13334
13499
  readOnly: L,
13335
13500
  error: q
@@ -13347,7 +13512,7 @@ const sn = ({
13347
13512
  label: k,
13348
13513
  placeholder: p ? void 0 : c,
13349
13514
  value: re[b] || "",
13350
- onChange: (x) => J(b, x.target.value),
13515
+ onChange: (w) => J(b, w.target.value),
13351
13516
  readOnly: L,
13352
13517
  error: q
13353
13518
  },
@@ -13362,7 +13527,7 @@ const sn = ({
13362
13527
  label: k,
13363
13528
  placeholder: p ? void 0 : c,
13364
13529
  value: re[b] || "",
13365
- onChange: (x) => J(b, x.target.value),
13530
+ onChange: (w) => J(b, w.target.value),
13366
13531
  readOnly: L,
13367
13532
  error: q
13368
13533
  },
@@ -13377,7 +13542,7 @@ const sn = ({
13377
13542
  label: k,
13378
13543
  placeholder: p ? void 0 : c,
13379
13544
  value: re[b] || "",
13380
- onChange: (x) => J(b, x.target.value),
13545
+ onChange: (w) => J(b, w.target.value),
13381
13546
  readOnly: L,
13382
13547
  error: q
13383
13548
  },
@@ -13392,7 +13557,7 @@ const sn = ({
13392
13557
  label: k,
13393
13558
  placeholder: p ? void 0 : c,
13394
13559
  value: re[b] || "",
13395
- onChange: (x) => J(b, x.target.value),
13560
+ onChange: (w) => J(b, w.target.value),
13396
13561
  readOnly: L,
13397
13562
  error: q
13398
13563
  },
@@ -13580,18 +13745,18 @@ const sn = ({
13580
13745
  /* @__PURE__ */ i(se, { type: "submit", isLoading: j || u, children: m("createCompany.registerCompany") })
13581
13746
  ] })
13582
13747
  ] }) }) });
13583
- }, ln = ["ar"], cn = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", dn = ({
13748
+ }, dn = ["ar"], un = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", mn = ({
13584
13749
  applicantId: e,
13585
13750
  onComplete: t,
13586
13751
  onError: a,
13587
13752
  onWorkflowChange: r,
13588
13753
  className: n
13589
13754
  }) => {
13590
- const { t: o } = Ie(), { applicantService: l, locale: d } = Se(), u = ln.includes(d), {
13755
+ const { t: o } = Ie(), { applicantService: l, locale: d } = Se(), u = dn.includes(d), {
13591
13756
  progress: m,
13592
13757
  currentStep: g,
13593
13758
  steps: y,
13594
- nextWorkflowKey: w,
13759
+ nextWorkflowKey: x,
13595
13760
  hasWorkflowChanged: A,
13596
13761
  isLoading: S,
13597
13762
  error: B,
@@ -13706,7 +13871,7 @@ const sn = ({
13706
13871
  uploadDocumentFileId: j.id,
13707
13872
  valueList: [{
13708
13873
  fileName: "dev-placeholder.pdf",
13709
- fileData: cn
13874
+ fileData: un
13710
13875
  }]
13711
13876
  }));
13712
13877
  await te.fillUploadDocument({
@@ -13772,15 +13937,15 @@ const sn = ({
13772
13937
  }, [m == null ? void 0 : m.workflowResult, t]);
13773
13938
  const Ne = ye.useRef(!1);
13774
13939
  if (ye.useEffect(() => {
13775
- if (!A || !w || !e || Ne.current) return;
13940
+ if (!A || !x || !e || Ne.current) return;
13776
13941
  Ne.current = !0;
13777
13942
  let $ = !1;
13778
13943
  return O(!0), Y(null), (async () => {
13779
13944
  try {
13780
- _.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${w}`);
13945
+ _.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${x}`);
13781
13946
  const R = await l.duplicateApplicant({
13782
13947
  applicantId: e,
13783
- workflowKey: w
13948
+ workflowKey: x
13784
13949
  });
13785
13950
  if ($) return;
13786
13951
  _.info(`[SDK] Duplicated → new applicantId=${R.applicantId}`), r && r(R.applicantId);
@@ -13794,7 +13959,7 @@ const sn = ({
13794
13959
  })(), () => {
13795
13960
  $ = !0;
13796
13961
  };
13797
- }, [A, w, e, l, r]), S || K || !m)
13962
+ }, [A, x, e, l, r]), S || K || !m)
13798
13963
  return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: u ? "rtl" : void 0, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
13799
13964
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
13800
13965
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
@@ -13882,7 +14047,7 @@ const sn = ({
13882
14047
  } })
13883
14048
  ] }),
13884
14049
  /* @__PURE__ */ i(
13885
- un,
14050
+ pn,
13886
14051
  {
13887
14052
  ref: G,
13888
14053
  visibleSteps: $,
@@ -13945,7 +14110,7 @@ const sn = ({
13945
14110
  ve(),
13946
14111
  he()
13947
14112
  ] });
13948
- }, un = ye.forwardRef(
14113
+ }, pn = ye.forwardRef(
13949
14114
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: a }, r) => {
13950
14115
  const n = ye.useRef(null), o = ye.useRef(null);
13951
14116
  return ye.useImperativeHandle(r, () => n.current), ye.useEffect(() => {
@@ -14030,185 +14195,15 @@ const sn = ({
14030
14195
  }
14031
14196
  );
14032
14197
  }
14033
- ), xi = {
14034
- en: "English",
14035
- de: "Deutsch",
14036
- fr: "Français",
14037
- es: "Español",
14038
- it: "Italiano",
14039
- pt: "Português",
14040
- nl: "Nederlands",
14041
- pl: "Polski",
14042
- ru: "Русский",
14043
- zh: "中文",
14044
- ja: "日本語",
14045
- ar: "العربية",
14046
- tr: "Türkçe",
14047
- sv: "Svenska",
14048
- da: "Dansk",
14049
- fi: "Suomi",
14050
- no: "Norsk"
14051
- }, mn = ({ size: e = 18 }) => /* @__PURE__ */ s(
14052
- "svg",
14053
- {
14054
- width: e,
14055
- height: e,
14056
- viewBox: "0 0 24 24",
14057
- fill: "none",
14058
- stroke: "currentColor",
14059
- strokeWidth: 1.8,
14060
- strokeLinecap: "round",
14061
- strokeLinejoin: "round",
14062
- children: [
14063
- /* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "10" }),
14064
- /* @__PURE__ */ i("path", { d: "M2 12h20" }),
14065
- /* @__PURE__ */ i("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
14066
- ]
14067
- }
14068
- ), pn = () => {
14069
- const { locale: e, setLocale: t, currentTheme: a } = Se(), [r, n] = T(!1), o = pe(null), l = Object.keys(Pt), d = a != null && a.allowedLanguages && a.allowedLanguages.length > 0 ? l.filter((m) => {
14070
- const g = m.toUpperCase();
14071
- return a.allowedLanguages.some(
14072
- (y) => y.toUpperCase() === g
14073
- );
14074
- }) : l;
14075
- fe(() => {
14076
- const m = (g) => {
14077
- o.current && !o.current.contains(g.target) && n(!1);
14078
- };
14079
- return r && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
14080
- }, [r]);
14081
- const u = e === "ar";
14082
- return /* @__PURE__ */ s(
14083
- "div",
14084
- {
14085
- ref: o,
14086
- style: { position: "relative", display: "inline-flex", zIndex: 50 },
14087
- children: [
14088
- /* @__PURE__ */ s(
14089
- "button",
14090
- {
14091
- type: "button",
14092
- onClick: () => n(!r),
14093
- "aria-label": "Select language",
14094
- style: {
14095
- display: "inline-flex",
14096
- alignItems: "center",
14097
- gap: "6px",
14098
- padding: "6px 10px",
14099
- borderRadius: "8px",
14100
- border: "1px solid var(--metakyc-border, #e5e7eb)",
14101
- backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
14102
- color: "var(--metakyc-text-secondary, #6b7280)",
14103
- fontSize: "13px",
14104
- fontWeight: 500,
14105
- cursor: "pointer",
14106
- transition: "border-color 0.15s, box-shadow 0.15s",
14107
- lineHeight: 1
14108
- },
14109
- onMouseEnter: (m) => {
14110
- m.currentTarget.style.borderColor = "var(--metakyc-primary, #2563eb)";
14111
- },
14112
- onMouseLeave: (m) => {
14113
- r || (m.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
14114
- },
14115
- children: [
14116
- /* @__PURE__ */ i(mn, { size: 16 }),
14117
- /* @__PURE__ */ i("span", { children: xi[e] || e.toUpperCase() }),
14118
- /* @__PURE__ */ i(
14119
- "svg",
14120
- {
14121
- width: "12",
14122
- height: "12",
14123
- viewBox: "0 0 24 24",
14124
- fill: "none",
14125
- stroke: "currentColor",
14126
- strokeWidth: 2.5,
14127
- style: {
14128
- transition: "transform 0.15s",
14129
- transform: r ? "rotate(180deg)" : "rotate(0deg)"
14130
- },
14131
- children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
14132
- }
14133
- )
14134
- ]
14135
- }
14136
- ),
14137
- r && /* @__PURE__ */ i(
14138
- "div",
14139
- {
14140
- style: {
14141
- position: "absolute",
14142
- top: "100%",
14143
- ...u ? { left: 0 } : { right: 0 },
14144
- marginTop: "4px",
14145
- minWidth: "160px",
14146
- maxHeight: "240px",
14147
- overflowY: "auto",
14148
- backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
14149
- border: "1px solid var(--metakyc-border, #e5e7eb)",
14150
- borderRadius: "8px",
14151
- boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
14152
- padding: "4px 0",
14153
- zIndex: 51
14154
- },
14155
- children: d.map((m) => {
14156
- const g = m === e;
14157
- return /* @__PURE__ */ i(
14158
- "button",
14159
- {
14160
- type: "button",
14161
- onClick: () => {
14162
- t(m), n(!1);
14163
- },
14164
- style: {
14165
- display: "flex",
14166
- alignItems: "center",
14167
- width: "100%",
14168
- padding: "8px 12px",
14169
- border: "none",
14170
- backgroundColor: g ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 10%, transparent)" : "transparent",
14171
- color: g ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-primary, #111827)",
14172
- fontSize: "13px",
14173
- fontWeight: g ? 600 : 400,
14174
- cursor: "pointer",
14175
- textAlign: u ? "right" : "left",
14176
- direction: m === "ar" ? "rtl" : "ltr",
14177
- transition: "background-color 0.1s"
14178
- },
14179
- onMouseEnter: (y) => {
14180
- g || (y.currentTarget.style.backgroundColor = "var(--metakyc-surface, #f9fafb)");
14181
- },
14182
- onMouseLeave: (y) => {
14183
- g || (y.currentTarget.style.backgroundColor = "transparent");
14184
- },
14185
- children: xi[m] || m.toUpperCase()
14186
- },
14187
- m
14188
- );
14189
- })
14190
- }
14191
- )
14192
- ]
14193
- }
14194
- );
14195
- }, gn = ["ar"], Ct = ({ className: e, children: t }) => {
14196
- const { config: a, locale: r } = Se(), n = gn.includes(r);
14197
- return /* @__PURE__ */ s("div", { className: `metakyc-sdk ${e || ""}`, dir: n ? "rtl" : "ltr", style: { position: "relative" }, children: [
14198
- a.showLanguagePicker && /* @__PURE__ */ i("div", { style: {
14199
- position: "absolute",
14200
- top: "calc(var(--metakyc-shell-padding-y, 1.5rem) + var(--metakyc-card-header-py, 1rem) + 1px)",
14201
- ...n ? { left: "calc(var(--metakyc-shell-padding-x, 1.5rem) + var(--metakyc-card-header-px, 1.5rem) + 1px)" } : { right: "calc(var(--metakyc-shell-padding-x, 1.5rem) + var(--metakyc-card-header-px, 1.5rem) + 1px)" },
14202
- zIndex: 50
14203
- }, children: /* @__PURE__ */ i(pn, {}) }),
14204
- t
14205
- ] });
14198
+ ), gn = ["ar"], Ct = ({ className: e, children: t }) => {
14199
+ const { locale: a } = Se(), r = gn.includes(a);
14200
+ return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${e || ""}`, dir: r ? "rtl" : "ltr", children: t });
14206
14201
  }, Fn = (e) => {
14207
14202
  const { config: t } = Se();
14208
- return t.debug || t.logLevel && t.logLevel !== "none" ? /* @__PURE__ */ s(Qa, { children: [
14209
- /* @__PURE__ */ i(wi, { ...e }),
14210
- /* @__PURE__ */ i(Xa, {})
14211
- ] }) : /* @__PURE__ */ i(wi, { ...e });
14203
+ return t.debug || t.logLevel && t.logLevel !== "none" ? /* @__PURE__ */ s(Za, { children: [
14204
+ /* @__PURE__ */ i(xi, { ...e }),
14205
+ /* @__PURE__ */ i(Ja, {})
14206
+ ] }) : /* @__PURE__ */ i(xi, { ...e });
14212
14207
  };
14213
14208
  function fn(e, t, a, r) {
14214
14209
  const n = It();
@@ -14217,7 +14212,7 @@ function fn(e, t, a, r) {
14217
14212
  (o = n.current) == null || o.updateSdkState({ phase: e, applicantId: t ?? null, isCompany: !!a, workflowKey: r ?? null });
14218
14213
  }, [n, e, t, a, r]);
14219
14214
  }
14220
- const wi = ({
14215
+ const xi = ({
14221
14216
  isCompany: e,
14222
14217
  onComplete: t,
14223
14218
  onError: a,
@@ -14231,7 +14226,7 @@ const wi = ({
14231
14226
  isCompany: m,
14232
14227
  workflowKey: g,
14233
14228
  error: y,
14234
- isLoading: w,
14229
+ isLoading: x,
14235
14230
  transitionToWorkflow: A,
14236
14231
  switchApplicant: S,
14237
14232
  refresh: B
@@ -14254,7 +14249,7 @@ const wi = ({
14254
14249
  const U = ye.useCallback((M) => {
14255
14250
  r == null || r(M), A(M);
14256
14251
  }, [r, A]);
14257
- if (d === "loading" || w)
14252
+ if (d === "loading" || x)
14258
14253
  return /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
14259
14254
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14260
14255
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
@@ -14267,14 +14262,14 @@ const wi = ({
14267
14262
  if (d === "create_applicant") {
14268
14263
  const M = g || ((K = l.applicantForm) == null ? void 0 : K.workflowKey), Y = (O = l.applicantForm) == null ? void 0 : O.externalRefId;
14269
14264
  return m ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14270
- sn,
14265
+ cn,
14271
14266
  {
14272
14267
  workflowKey: M,
14273
14268
  externalRefId: Y,
14274
14269
  onSuccess: U
14275
14270
  }
14276
14271
  ) }) : /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14277
- on,
14272
+ ln,
14278
14273
  {
14279
14274
  workflowKey: M,
14280
14275
  externalRefId: Y,
@@ -14284,7 +14279,7 @@ const wi = ({
14284
14279
  ) });
14285
14280
  }
14286
14281
  return u ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14287
- dn,
14282
+ mn,
14288
14283
  {
14289
14284
  applicantId: u,
14290
14285
  onComplete: t,
@@ -14361,8 +14356,8 @@ export {
14361
14356
  Le as CardHeader,
14362
14357
  Xe as Checkbox,
14363
14358
  ut as CountriesType,
14364
- on as CreateApplicantForm,
14365
- sn as CreateCompanyApplicantForm,
14359
+ ln as CreateApplicantForm,
14360
+ cn as CreateCompanyApplicantForm,
14366
14361
  Xi as CriteriaBuiltInType,
14367
14362
  Ji as DEFAULT_COMPANY_VISIBLE_FIELDS,
14368
14363
  er as DEFAULT_VISIBLE_FIELDS,
@@ -14388,8 +14383,8 @@ export {
14388
14383
  Hi as KycProcessStatus,
14389
14384
  Ci as KycStatus,
14390
14385
  hi as KycStatusDisplay,
14391
- dn as KycWorkflow,
14392
- pn as LanguagePicker,
14386
+ mn as KycWorkflow,
14387
+ Xa as LanguagePicker,
14393
14388
  Ga as Logo,
14394
14389
  Fn as MetaKYC,
14395
14390
  Ai as MetaKYCContext,
@@ -14451,13 +14446,13 @@ export {
14451
14446
  Nn as isScriptLoaded,
14452
14447
  Ti as loadScript,
14453
14448
  _ as logger,
14454
- xr as minimalTheme,
14449
+ wr as minimalTheme,
14455
14450
  br as modernTheme,
14456
14451
  Rn as removeScript,
14457
14452
  ie as resolveDisplayText,
14458
14453
  En as saveApplicantId,
14459
14454
  na as saveWorkflowState,
14460
- wr as themePresets,
14455
+ xr as themePresets,
14461
14456
  Ii as useApplicant,
14462
14457
  jn as useAppropriatenessTest,
14463
14458
  ma as useIdentityVerification,