@vpdev2/metakyc 1.0.85 → 1.0.87

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) {
@@ -2028,7 +2028,12 @@ class Pr {
2028
2028
  "danger-bg": t.dangerBg,
2029
2029
  "success-bg": t.successBg,
2030
2030
  "warning-bg": t.warningBg,
2031
- "info-bg": t.infoBg
2031
+ "info-bg": t.infoBg,
2032
+ // Header/Footer overrides (optional)
2033
+ "header-bg": t.headerBg,
2034
+ "header-text": t.headerText,
2035
+ "footer-bg": t.footerBg,
2036
+ "footer-text": t.footerText
2032
2037
  };
2033
2038
  a != null && a.fontFamily && (n["font-family"] = a.fontFamily), a != null && a.headingFont && (n["heading-font"] = a.headingFont), a != null && a.fontSize && Object.entries(a.fontSize).forEach(([u, m]) => {
2034
2039
  n[`font-size-${u}`] = m;
@@ -7155,7 +7160,7 @@ function ie(e, t) {
7155
7160
  const r = Jr.exec(a);
7156
7161
  return r ? t(r[1]) : e;
7157
7162
  }
7158
- const Yt = "1.0.85", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7163
+ const Yt = "1.0.87", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7159
7164
  locale: e,
7160
7165
  fetchTranslations: t,
7161
7166
  children: a
@@ -7209,7 +7214,7 @@ function Ie() {
7209
7214
  }
7210
7215
  return e;
7211
7216
  }
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";
7217
+ 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
7218
  let Vt = !1;
7214
7219
  function ia() {
7215
7220
  if (Vt || typeof document > "u") return;
@@ -7224,7 +7229,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7224
7229
  ia();
7225
7230
  const [a, r] = T(null), [n, o] = T(e.locale || "en"), l = ye.useRef(!1), d = ye.useRef(!1), u = Ue(() => {
7226
7231
  _.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();
7232
+ 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
7233
  if (typeof document < "u")
7229
7234
  if (e.theme)
7230
7235
  v.applyTheme(e.theme);
@@ -7236,7 +7241,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7236
7241
  v.applyTheme(Ve);
7237
7242
  }
7238
7243
  return {
7239
- httpClient: w,
7244
+ httpClient: x,
7240
7245
  applicantService: A,
7241
7246
  questionnaireService: S,
7242
7247
  uploadDocumentService: B,
@@ -7250,8 +7255,8 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7250
7255
  translationService: Q,
7251
7256
  themeManager: v
7252
7257
  };
7253
- }, [e]), m = ee((w) => {
7254
- o(w.toLowerCase().split(/[-_]/)[0]);
7258
+ }, [e]), m = ee((x) => {
7259
+ o(x.toLowerCase().split(/[-_]/)[0]);
7255
7260
  }, []), g = Ue(() => ({
7256
7261
  config: e,
7257
7262
  ...u,
@@ -7297,7 +7302,7 @@ const mi = "metakyc-theme-cache", An = ({ config: e, children: t }) => {
7297
7302
  u.themeManager.cleanup();
7298
7303
  }), []);
7299
7304
  const y = ee(
7300
- (w) => u.translationService.getTranslations(w),
7305
+ (x) => u.translationService.getTranslations(x),
7301
7306
  [u.translationService]
7302
7307
  );
7303
7308
  return /* @__PURE__ */ i(Ai.Provider, { value: g, children: /* @__PURE__ */ s(
@@ -7424,7 +7429,7 @@ function sa(e) {
7424
7429
  nextWorkflowKey: r.nextWorkflowKey
7425
7430
  });
7426
7431
  }, [r, g]);
7427
- const y = pe(!1), w = pe(void 0), A = ee(async () => {
7432
+ const y = pe(!1), x = pe(void 0), A = ee(async () => {
7428
7433
  if (!(!g || !m.current)) {
7429
7434
  if (y.current) {
7430
7435
  _.debug("Workflow load already in progress, skipping");
@@ -7433,7 +7438,7 @@ function sa(e) {
7433
7438
  y.current = !0, l(!0), u(null);
7434
7439
  try {
7435
7440
  const M = await m.current.initialize(g);
7436
- n(M), w.current = g;
7441
+ n(M), x.current = g;
7437
7442
  } catch (M) {
7438
7443
  u(M);
7439
7444
  } finally {
@@ -7442,7 +7447,7 @@ function sa(e) {
7442
7447
  }
7443
7448
  }, [g]);
7444
7449
  fe(() => {
7445
- g && w.current !== g && A();
7450
+ g && x.current !== g && A();
7446
7451
  }, [g, A]);
7447
7452
  const S = ee(async () => {
7448
7453
  if (m.current) {
@@ -7521,7 +7526,7 @@ function sa(e) {
7521
7526
  }
7522
7527
  function la(e) {
7523
7528
  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 () => {
7529
+ 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
7530
  try {
7526
7531
  l(!0), u(null);
7527
7532
  const G = await t.getSdkState();
@@ -7536,9 +7541,9 @@ function la(e) {
7536
7541
  A.current || S();
7537
7542
  }, [S]);
7538
7543
  const B = ee((G) => {
7539
- _.info(`Transitioning to workflow → applicantId=${G}`), g(G), w("workflow");
7544
+ _.info(`Transitioning to workflow → applicantId=${G}`), g(G), x("workflow");
7540
7545
  }, []), N = ee((G) => {
7541
- _.info(`Switching applicant → newApplicantId=${G}`), g(G), w("workflow");
7546
+ _.info(`Switching applicant → newApplicantId=${G}`), g(G), x("workflow");
7542
7547
  }, []), 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
7548
  return {
7544
7549
  phase: d ? "error" : o ? "loading" : U,
@@ -7553,14 +7558,14 @@ function la(e) {
7553
7558
  };
7554
7559
  }
7555
7560
  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 () => {
7561
+ 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
7562
  var U, K;
7558
7563
  if (e) {
7559
7564
  if (A.current) {
7560
7565
  _.debug("Questionnaire load already in progress, skipping");
7561
7566
  return;
7562
7567
  }
7563
- A.current = !0, u(!0), w(null);
7568
+ A.current = !0, u(!0), x(null);
7564
7569
  try {
7565
7570
  const [O, M] = await Promise.all([
7566
7571
  t.getQuestionnaire(e),
@@ -7579,7 +7584,7 @@ function ca(e) {
7579
7584
  }
7580
7585
  S.current = e;
7581
7586
  } catch (O) {
7582
- w(O);
7587
+ x(O);
7583
7588
  } finally {
7584
7589
  u(!1), A.current = !1;
7585
7590
  }
@@ -7590,11 +7595,11 @@ function ca(e) {
7590
7595
  }, [e]);
7591
7596
  const N = ee(
7592
7597
  async (U) => {
7593
- g(!0), w(null);
7598
+ g(!0), x(null);
7594
7599
  try {
7595
7600
  return await t.fillQuestionnaire(U);
7596
7601
  } catch (K) {
7597
- throw w(K), K;
7602
+ throw x(K), K;
7598
7603
  } finally {
7599
7604
  g(!1);
7600
7605
  }
@@ -7612,20 +7617,20 @@ function ca(e) {
7612
7617
  };
7613
7618
  }
7614
7619
  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 () => {
7620
+ 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
7621
  if (e) {
7617
- if (w.current) {
7622
+ if (x.current) {
7618
7623
  _.debug("UploadDocument load already in progress, skipping");
7619
7624
  return;
7620
7625
  }
7621
- w.current = !0, o(!0), y(null);
7626
+ x.current = !0, o(!0), y(null);
7622
7627
  try {
7623
7628
  const N = await t.getUploadDocument(e);
7624
7629
  r(N), A.current = e;
7625
7630
  } catch (N) {
7626
7631
  y(N);
7627
7632
  } finally {
7628
- o(!1), w.current = !1;
7633
+ o(!1), x.current = !1;
7629
7634
  }
7630
7635
  }
7631
7636
  }, [e, t]);
@@ -7656,20 +7661,20 @@ function da(e) {
7656
7661
  };
7657
7662
  }
7658
7663
  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 () => {
7664
+ 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
7665
  if (e) {
7661
- if (w.current) {
7666
+ if (x.current) {
7662
7667
  _.debug("AppropriatenessTest load already in progress, skipping");
7663
7668
  return;
7664
7669
  }
7665
- w.current = !0, o(!0), m(null);
7670
+ x.current = !0, o(!0), m(null);
7666
7671
  try {
7667
7672
  const N = await t.getAppropriatenessTest(e);
7668
7673
  r(N), A.current = e;
7669
7674
  } catch (N) {
7670
7675
  m(N);
7671
7676
  } finally {
7672
- o(!1), w.current = !1;
7677
+ o(!1), x.current = !1;
7673
7678
  }
7674
7679
  }
7675
7680
  }, [e, t]);
@@ -7701,7 +7706,7 @@ function jn(e) {
7701
7706
  };
7702
7707
  }
7703
7708
  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 () => {
7709
+ 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
7710
  if (e) {
7706
7711
  if (g.current) {
7707
7712
  _.debug("Overview load already in progress, skipping");
@@ -7719,7 +7724,7 @@ function ua(e) {
7719
7724
  }
7720
7725
  }, [e, t]);
7721
7726
  fe(() => {
7722
- e && y.current !== e && w();
7727
+ e && y.current !== e && x();
7723
7728
  }, [e]);
7724
7729
  const A = ee(async () => {
7725
7730
  if (e) {
@@ -7738,7 +7743,7 @@ function ua(e) {
7738
7743
  isLoading: n,
7739
7744
  isSubmitting: l,
7740
7745
  error: u,
7741
- load: w,
7746
+ load: x,
7742
7747
  passOverview: A
7743
7748
  };
7744
7749
  }
@@ -7746,7 +7751,7 @@ function ma(e) {
7746
7751
  const { identityService: t } = Se(), [a, r] = T(
7747
7752
  null
7748
7753
  ), [n, o] = T(!1), [l, d] = T(null), u = pe(!1), m = ee(
7749
- async (w, A) => {
7754
+ async (x, A) => {
7750
7755
  if (e) {
7751
7756
  if (u.current) {
7752
7757
  _.debug("Identity request already in progress, skipping");
@@ -7757,7 +7762,7 @@ function ma(e) {
7757
7762
  const S = {
7758
7763
  applicantId: e,
7759
7764
  restart: !1,
7760
- redirectUrl: w || "",
7765
+ redirectUrl: x || "",
7761
7766
  ttl: A || 604800
7762
7767
  };
7763
7768
  _.debug("Identity request input:", S);
@@ -7772,14 +7777,14 @@ function ma(e) {
7772
7777
  },
7773
7778
  [e, t]
7774
7779
  ), g = ee(
7775
- async (w, A) => {
7780
+ async (x, A) => {
7776
7781
  if (e) {
7777
7782
  o(!0), d(null);
7778
7783
  try {
7779
7784
  const S = {
7780
7785
  applicantId: e,
7781
7786
  restart: !1,
7782
- redirectUrl: w,
7787
+ redirectUrl: x,
7783
7788
  ttl: A
7784
7789
  }, B = await t.identityCompanyRequest(S);
7785
7790
  return r(B), B;
@@ -7799,17 +7804,17 @@ function ma(e) {
7799
7804
  }
7800
7805
  u.current = !0, o(!0), d(null);
7801
7806
  try {
7802
- const w = {
7807
+ const x = {
7803
7808
  applicantId: e,
7804
7809
  restart: !0,
7805
7810
  redirectUrl: "",
7806
7811
  ttl: 604800
7807
7812
  };
7808
- _.debug("Restarting identity with input:", w);
7809
- const A = await t.identityRequest(w);
7813
+ _.debug("Restarting identity with input:", x);
7814
+ const A = await t.identityRequest(x);
7810
7815
  return _.debug("Restart identity result:", A), r(A), A;
7811
- } catch (w) {
7812
- throw d(w), w;
7816
+ } catch (x) {
7817
+ throw d(x), x;
7813
7818
  } finally {
7814
7819
  o(!1), u.current = !1;
7815
7820
  }
@@ -7827,14 +7832,14 @@ function ma(e) {
7827
7832
  };
7828
7833
  }
7829
7834
  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 () => {
7835
+ 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
7836
  var O;
7832
7837
  if (e) {
7833
7838
  if (B.current) {
7834
7839
  _.debug("RiskScoring load already in progress, skipping");
7835
7840
  return;
7836
7841
  }
7837
- B.current = !0, u(!0), w(null);
7842
+ B.current = !0, u(!0), x(null);
7838
7843
  try {
7839
7844
  const [M, Y] = await Promise.all([
7840
7845
  t.getRiskCriterias(e),
@@ -7853,7 +7858,7 @@ function pa(e) {
7853
7858
  }
7854
7859
  N.current = e;
7855
7860
  } catch (M) {
7856
- w(M);
7861
+ x(M);
7857
7862
  } finally {
7858
7863
  u(!1), B.current = !1;
7859
7864
  }
@@ -7864,12 +7869,12 @@ function pa(e) {
7864
7869
  }, [e]);
7865
7870
  const K = ee(
7866
7871
  async (O) => {
7867
- g(!0), w(null);
7872
+ g(!0), x(null);
7868
7873
  try {
7869
7874
  const M = await t.submitRiskScoring(O);
7870
7875
  return S(M), M;
7871
7876
  } catch (M) {
7872
- throw w(M), M;
7877
+ throw x(M), M;
7873
7878
  } finally {
7874
7879
  g(!1);
7875
7880
  }
@@ -7937,7 +7942,7 @@ function Ii() {
7937
7942
  }
7938
7943
  },
7939
7944
  [e]
7940
- ), w = ee(
7945
+ ), x = ee(
7941
7946
  async (A) => {
7942
7947
  r(!0), o(null);
7943
7948
  try {
@@ -7956,7 +7961,7 @@ function Ii() {
7956
7961
  createApplicant: m,
7957
7962
  createCompanyApplicant: g,
7958
7963
  getApplicantData: y,
7959
- stopProgress: w
7964
+ stopProgress: x
7960
7965
  };
7961
7966
  }
7962
7967
  const ga = {
@@ -8130,6 +8135,8 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8130
8135
  borderBottomWidth: "1px",
8131
8136
  borderBottomStyle: "solid",
8132
8137
  borderBottomColor: "var(--metakyc-border, #e5e7eb)",
8138
+ backgroundColor: "var(--metakyc-header-bg, transparent)",
8139
+ color: "var(--metakyc-header-text, inherit)",
8133
8140
  ...a
8134
8141
  },
8135
8142
  ...r,
@@ -8152,6 +8159,8 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8152
8159
  borderTopWidth: "1px",
8153
8160
  borderTopStyle: "solid",
8154
8161
  borderTopColor: "var(--metakyc-border, #e5e7eb)",
8162
+ backgroundColor: "var(--metakyc-footer-bg, transparent)",
8163
+ color: "var(--metakyc-footer-text, inherit)",
8155
8164
  ...a
8156
8165
  },
8157
8166
  ...r,
@@ -8370,7 +8379,7 @@ const pi = 280, ha = ({
8370
8379
  readOnly: l = !1,
8371
8380
  required: d = !1
8372
8381
  }) => {
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({
8382
+ 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
8383
  bg: "#ffffff",
8375
8384
  borderColor: "#d1d5db",
8376
8385
  textPrimary: "#111827",
@@ -8397,9 +8406,9 @@ const pi = 280, ha = ({
8397
8406
  if (g) return;
8398
8407
  Q();
8399
8408
  const R = G();
8400
- R && N(R), w(!0);
8409
+ R && N(R), x(!0);
8401
8410
  }, [g, G, Q]), z = ee(() => {
8402
- w(!1), S("");
8411
+ x(!1), S("");
8403
8412
  }, []);
8404
8413
  fe(() => {
8405
8414
  if (!y) return;
@@ -8642,7 +8651,7 @@ const pi = 280, ha = ({
8642
8651
  className: g
8643
8652
  }) => {
8644
8653
  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({
8654
+ 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
8655
  bg: "#ffffff",
8647
8656
  border: "#d1d5db",
8648
8657
  text: "#111827",
@@ -8840,7 +8849,7 @@ const pi = 280, ha = ({
8840
8849
  outlineOffset: "-1px"
8841
8850
  },
8842
8851
  children: [
8843
- /* @__PURE__ */ i("span", { className: "truncate flex-1", children: de || w }),
8852
+ /* @__PURE__ */ i("span", { className: "truncate flex-1", children: de || x }),
8844
8853
  /* @__PURE__ */ i(
8845
8854
  "span",
8846
8855
  {
@@ -8876,7 +8885,7 @@ const va = ({
8876
8885
  value: u = [],
8877
8886
  className: m
8878
8887
  }) => {
8879
- const { t: g } = Ie(), [y, w] = T(!1), [A, S] = T(null), B = pe(null), N = ee((v) => {
8888
+ const { t: g } = Ie(), [y, x] = T(!1), [A, S] = T(null), B = pe(null), N = ee((v) => {
8880
8889
  if (!v) return;
8881
8890
  S(null);
8882
8891
  const z = Array.from(v);
@@ -8886,11 +8895,11 @@ const va = ({
8886
8895
  }
8887
8896
  d == null || d(n ? [...u, ...z] : [z[0]]);
8888
8897
  }, [o, n, d, u]), U = ee((v) => {
8889
- v.preventDefault(), v.stopPropagation(), w(!0);
8898
+ v.preventDefault(), v.stopPropagation(), x(!0);
8890
8899
  }, []), K = ee((v) => {
8891
- v.preventDefault(), v.stopPropagation(), w(!1);
8900
+ v.preventDefault(), v.stopPropagation(), x(!1);
8892
8901
  }, []), O = ee((v) => {
8893
- v.preventDefault(), v.stopPropagation(), w(!1), N(v.dataTransfer.files);
8902
+ v.preventDefault(), v.stopPropagation(), x(!1), N(v.dataTransfer.files);
8894
8903
  }, [N]), M = () => {
8895
8904
  var v;
8896
8905
  (v = B.current) == null || v.click();
@@ -9164,14 +9173,14 @@ const Li = (...e) => e.filter((t, a, r) => !!t && t.trim() !== "" && r.indexOf(t
9164
9173
  * This source code is licensed under the ISC license.
9165
9174
  * See the LICENSE file in the root directory of this source tree.
9166
9175
  */
9167
- const xa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9176
+ const wa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9168
9177
  /**
9169
9178
  * @license lucide-react v0.574.0 - ISC
9170
9179
  *
9171
9180
  * This source code is licensed under the ISC license.
9172
9181
  * See the LICENSE file in the root directory of this source tree.
9173
9182
  */
9174
- const wa = (e) => e.replace(
9183
+ const xa = (e) => e.replace(
9175
9184
  /^([A-Z])|[\s-_]+(\w)/g,
9176
9185
  (t, a, r) => r ? r.toUpperCase() : a.toLowerCase()
9177
9186
  );
@@ -9182,7 +9191,7 @@ const wa = (e) => e.replace(
9182
9191
  * See the LICENSE file in the root directory of this source tree.
9183
9192
  */
9184
9193
  const fi = (e) => {
9185
- const t = wa(e);
9194
+ const t = xa(e);
9186
9195
  return t.charAt(0).toUpperCase() + t.slice(1);
9187
9196
  };
9188
9197
  /**
@@ -9261,7 +9270,7 @@ const Ei = (e, t) => {
9261
9270
  ref: o,
9262
9271
  iconNode: t,
9263
9272
  className: Li(
9264
- `lucide-${xa(fi(e))}`,
9273
+ `lucide-${wa(fi(e))}`,
9265
9274
  `lucide-${e}`,
9266
9275
  r
9267
9276
  ),
@@ -9328,7 +9337,7 @@ const za = ({
9328
9337
  onComplete: t,
9329
9338
  onBack: a
9330
9339
  }) => {
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);
9340
+ 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
9341
  ye.useEffect(() => {
9333
9342
  o && Object.keys(o).length > 0 && Object.keys(g).length === 0 && y(o);
9334
9343
  }, [o]);
@@ -9398,7 +9407,7 @@ const za = ({
9398
9407
  {
9399
9408
  question: v,
9400
9409
  value: g[v.id] ?? [],
9401
- error: w[v.id],
9410
+ error: x[v.id],
9402
9411
  onChange: (z) => O(v.id, z)
9403
9412
  },
9404
9413
  v.id
@@ -9549,7 +9558,7 @@ const Da = ({
9549
9558
  onComplete: t,
9550
9559
  onBack: a
9551
9560
  }) => {
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(
9561
+ 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
9562
  () => n ? Ea(n.uploadDocumentFiles) : [],
9554
9563
  [n]
9555
9564
  ), K = U[A] ?? [], O = A === U.length - 1, M = U.length, Y = ee(() => {
@@ -9563,7 +9572,7 @@ const Da = ({
9563
9572
  A > 0 ? (S((z) => z - 1), N({})) : a == null || a();
9564
9573
  }, v = async () => {
9565
9574
  if (!(!Y() || !n)) {
9566
- w(null);
9575
+ x(null);
9567
9576
  try {
9568
9577
  const z = await Promise.all(
9569
9578
  n.uploadDocumentFiles.map(async (X) => {
@@ -9585,7 +9594,7 @@ const Da = ({
9585
9594
  };
9586
9595
  await u(F), t == null || t();
9587
9596
  } catch (z) {
9588
- w((z == null ? void 0 : z.message) || r("uploadDocument.failedToSubmit"));
9597
+ x((z == null ? void 0 : z.message) || r("uploadDocument.failedToSubmit"));
9589
9598
  }
9590
9599
  }
9591
9600
  };
@@ -9698,7 +9707,7 @@ const Da = ({
9698
9707
  error: B[z.id],
9699
9708
  value: m[z.id] || [],
9700
9709
  onChange: (F) => {
9701
- w(null), N((X) => {
9710
+ x(null), N((X) => {
9702
9711
  const te = { ...X };
9703
9712
  return delete te[z.id], te;
9704
9713
  }), g((X) => ({ ...X, [z.id]: F }));
@@ -9867,9 +9876,9 @@ const qa = ({
9867
9876
  onComplete: t,
9868
9877
  onBack: a
9869
9878
  }) => {
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);
9879
+ 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
9880
  ye.useEffect(() => {
9872
- d && Object.keys(d).length > 0 && Object.keys(w).length === 0 && A(d);
9881
+ d && Object.keys(d).length > 0 && Object.keys(x).length === 0 && A(d);
9873
9882
  }, [d]);
9874
9883
  const M = Ue(
9875
9884
  () => l && l.length > 0 ? Va(l) : [],
@@ -9886,11 +9895,11 @@ const qa = ({
9886
9895
  }, []), v = ee(() => {
9887
9896
  const te = {};
9888
9897
  for (const { criterion: H } of G) {
9889
- const re = Oa(H, w[H.id] ?? []);
9898
+ const re = Oa(H, x[H.id] ?? []);
9890
9899
  re && (te[H.id] = re);
9891
9900
  }
9892
9901
  return B((H) => ({ ...H, ...te })), Object.keys(te).length === 0;
9893
- }, [G, w]), z = () => {
9902
+ }, [G, x]), z = () => {
9894
9903
  v() && U((te) => te + 1);
9895
9904
  }, F = () => {
9896
9905
  N > 0 ? U((te) => te - 1) : a == null || a();
@@ -9898,7 +9907,7 @@ const qa = ({
9898
9907
  if (!(!v() || !l))
9899
9908
  try {
9900
9909
  const te = l.map((re) => {
9901
- const me = (w[re.id] ?? []).filter((de) => de && de.trim());
9910
+ const me = (x[re.id] ?? []).filter((de) => de && de.trim());
9902
9911
  return me.length > 0 ? { riskCriteriaId: re.id, values: me } : null;
9903
9912
  }).filter((re) => re !== null);
9904
9913
  await y({ applicantId: e, criteriaValueInputs: te }), t == null || t();
@@ -9940,7 +9949,7 @@ const qa = ({
9940
9949
  Ua,
9941
9950
  {
9942
9951
  criterion: te,
9943
- value: w[te.id] ?? [],
9952
+ value: x[te.id] ?? [],
9944
9953
  error: S[te.id],
9945
9954
  locale: o,
9946
9955
  onChange: (H) => Q(te.id, H)
@@ -10044,17 +10053,17 @@ const qa = ({
10044
10053
  ] }),
10045
10054
  l === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10046
10055
  (e.defaultValues ?? []).map((g) => {
10047
- const y = t.includes(g), w = () => {
10056
+ const y = t.includes(g), x = () => {
10048
10057
  n(y ? t.filter((A) => A !== g) : [...t, g]);
10049
10058
  };
10050
10059
  return /* @__PURE__ */ s(
10051
10060
  "div",
10052
10061
  {
10053
10062
  className: "metakyc-option-label",
10054
- onClick: w,
10063
+ onClick: x,
10055
10064
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
10056
10065
  children: [
10057
- /* @__PURE__ */ i(Xe, { checked: y, onChange: () => w() }),
10066
+ /* @__PURE__ */ i(Xe, { checked: y, onChange: () => x() }),
10058
10067
  /* @__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
10068
  ]
10060
10069
  },
@@ -10087,8 +10096,8 @@ const qa = ({
10087
10096
  onBack: a
10088
10097
  }) => {
10089
10098
  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) {
10099
+ return /* @__PURE__ */ i("form", { onSubmit: async (x) => {
10100
+ if (x.preventDefault(), o === null) {
10092
10101
  g(r("investorCategorization.pleaseSelect"));
10093
10102
  return;
10094
10103
  }
@@ -10227,18 +10236,18 @@ const Wa = ({
10227
10236
  onComplete: t,
10228
10237
  onBack: a
10229
10238
  }) => {
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);
10239
+ 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
10240
  fe(() => {
10232
10241
  (async () => {
10233
10242
  try {
10234
- u(!0), w(null);
10243
+ u(!0), x(null);
10235
10244
  const P = await n.getAppropriatenessTest(e);
10236
10245
  if (l(P), P.waitTimeSpanForNextTry && P.waitTimeSpanForNextTry !== "00:00:00") {
10237
10246
  const j = yi(P.waitTimeSpanForNextTry);
10238
10247
  j > 0 && G(j);
10239
10248
  }
10240
10249
  } catch (P) {
10241
- w(P.message || r("appropriatenessTest.failedToLoad"));
10250
+ x(P.message || r("appropriatenessTest.failedToLoad"));
10242
10251
  } finally {
10243
10252
  u(!1);
10244
10253
  }
@@ -10259,7 +10268,7 @@ const Wa = ({
10259
10268
  O && !m && re();
10260
10269
  }, [O]);
10261
10270
  const X = () => {
10262
- o && (K(!0), N(o.testDurationSec), v(0), S({}), w(null));
10271
+ o && (K(!0), N(o.testDurationSec), v(0), S({}), x(null));
10263
10272
  }, te = (P, j) => {
10264
10273
  S((Z) => ({ ...Z, [P]: j }));
10265
10274
  }, H = ee(async () => {
@@ -10276,11 +10285,11 @@ const Wa = ({
10276
10285
  if (!O) {
10277
10286
  const j = o.appropriatenessQuestions.length - Object.keys(A).length;
10278
10287
  if (j > 0) {
10279
- w(r("appropriatenessTest.answerAllQuestions", { remaining: j }));
10288
+ x(r("appropriatenessTest.answerAllQuestions", { remaining: j }));
10280
10289
  return;
10281
10290
  }
10282
10291
  }
10283
- g(!0), w(null);
10292
+ g(!0), x(null);
10284
10293
  try {
10285
10294
  const j = o.appropriatenessQuestions.map(
10286
10295
  (ge) => ({ appropriatenessQuestionId: ge.id, value: A[ge.id] || "" })
@@ -10299,7 +10308,7 @@ const Wa = ({
10299
10308
  throw ge;
10300
10309
  }
10301
10310
  } catch (j) {
10302
- w(j.message || r("appropriatenessTest.failedToSubmit")), me();
10311
+ x(j.message || r("appropriatenessTest.failedToSubmit")), me();
10303
10312
  } finally {
10304
10313
  g(!1);
10305
10314
  }
@@ -10350,7 +10359,7 @@ const Wa = ({
10350
10359
  ] });
10351
10360
  if (z) {
10352
10361
  const P = () => {
10353
- F(null), me(), w(null);
10362
+ F(null), me(), x(null);
10354
10363
  };
10355
10364
  return /* @__PURE__ */ s(ne, { children: [
10356
10365
  /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ s("div", { style: {
@@ -10798,7 +10807,7 @@ const Wa = ({
10798
10807
  onBack: a
10799
10808
  }) => {
10800
10809
  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);
10810
+ 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
10811
  W.current = ge;
10803
10812
  const J = qi({
10804
10813
  defaultValues: {
@@ -10825,9 +10834,9 @@ const Wa = ({
10825
10834
  // CountriesType.PhoneNumber
10826
10835
  ]);
10827
10836
  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));
10837
+ 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
10838
  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));
10839
+ 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
10840
  Q(C);
10832
10841
  const p = h.applicantRequestData;
10833
10842
  if (R({
@@ -10864,8 +10873,8 @@ const Wa = ({
10864
10873
  console.log("[Identity] Review page disabled + existing identity — auto-requesting..."), de.current = !0;
10865
10874
  try {
10866
10875
  await S(), X(!0);
10867
- } catch (x) {
10868
- console.error("[Identity] Auto-request failed:", x);
10876
+ } catch (w) {
10877
+ console.error("[Identity] Auto-request failed:", w);
10869
10878
  }
10870
10879
  }
10871
10880
  } catch (h) {
@@ -11037,7 +11046,7 @@ const Wa = ({
11037
11046
  console.error("Error restarting identity verification:", f), H(f.message || r("identity.failedToRestart"));
11038
11047
  }
11039
11048
  };
11040
- if (v || w)
11049
+ if (v || x)
11041
11050
  return /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
11042
11051
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
11043
11052
  /* @__PURE__ */ i("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: r("identity.loadingIdentity") })
@@ -11094,7 +11103,7 @@ const Wa = ({
11094
11103
  ] }),
11095
11104
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11096
11105
  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") })
11106
+ /* @__PURE__ */ i(se, { type: "button", onClick: Qe, disabled: x, children: r(x ? "identity.restarting" : "identity.restartVerification") })
11098
11107
  ] })
11099
11108
  ] });
11100
11109
  if (F && Ne === "processing")
@@ -11136,7 +11145,7 @@ const Wa = ({
11136
11145
  {
11137
11146
  type: "button",
11138
11147
  onClick: ze,
11139
- disabled: Ze || w,
11148
+ disabled: Ze || x,
11140
11149
  style: {
11141
11150
  padding: "6px 14px",
11142
11151
  fontSize: "13px",
@@ -11145,8 +11154,8 @@ const Wa = ({
11145
11154
  border: "1px solid var(--metakyc-border, #d1d5db)",
11146
11155
  background: "var(--metakyc-background, #ffffff)",
11147
11156
  color: "var(--metakyc-text-primary, #111827)",
11148
- cursor: Ze || w ? "not-allowed" : "pointer",
11149
- opacity: Ze || w ? 0.5 : 1
11157
+ cursor: Ze || x ? "not-allowed" : "pointer",
11158
+ opacity: Ze || x ? 0.5 : 1
11150
11159
  },
11151
11160
  children: r(Ze ? "identity.restarting" : "identity.reset")
11152
11161
  }
@@ -11231,7 +11240,7 @@ const Wa = ({
11231
11240
  return E ? E.label : String(h);
11232
11241
  }
11233
11242
  return String(h);
11234
- }, xt = ({ helpText: f }) => {
11243
+ }, wt = ({ helpText: f }) => {
11235
11244
  const [h, E] = T(!1), I = pe(null), [, q] = T({ top: 0, left: 0 });
11236
11245
  return /* @__PURE__ */ s(bt, { children: [
11237
11246
  /* @__PURE__ */ i(
@@ -11327,8 +11336,8 @@ const Wa = ({
11327
11336
  ] });
11328
11337
  }, Pe = (f, h) => h ? /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
11329
11338
  /* @__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) => {
11339
+ /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(wt, { helpText: h }) })
11340
+ ] }) : f, xt = (f, h) => {
11332
11341
  const E = `cf-${h}`, I = f.paramName ?? "", q = P[I];
11333
11342
  if (f.customType === "br")
11334
11343
  return /* @__PURE__ */ i("div", { style: { ...De(f.colSpan), minHeight: "0.5rem" } }, E);
@@ -11441,7 +11450,7 @@ const Wa = ({
11441
11450
  f.helpText
11442
11451
  ) }, E);
11443
11452
  }, pt = (f, h) => {
11444
- if (f.isCustom) return wt(f, h);
11453
+ if (f.isCustom) return xt(f, h);
11445
11454
  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
11455
  return f.editable ? L ? /* @__PURE__ */ i("div", { style: De(f.colSpan ?? 2), children: Pe(
11447
11456
  /* @__PURE__ */ i(
@@ -11496,7 +11505,7 @@ const Wa = ({
11496
11505
  /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: Z.fields.map((E, I) => pt(E, I)) }) }),
11497
11506
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11498
11507
  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") })
11508
+ /* @__PURE__ */ i(se, { type: "submit", isLoading: x, children: r("identity.confirmAndStart") })
11500
11509
  ] })
11501
11510
  ] }) });
11502
11511
  }
@@ -11563,7 +11572,7 @@ const Wa = ({
11563
11572
  ] }),
11564
11573
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11565
11574
  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") })
11575
+ /* @__PURE__ */ i(se, { type: "submit", isLoading: x, children: r("identity.confirmAndStart") })
11567
11576
  ] })
11568
11577
  ] }) });
11569
11578
  }, Zt = {
@@ -11705,54 +11714,219 @@ const hi = ({
11705
11714
  }
11706
11715
  }
11707
11716
  ) });
11717
+ }, ki = {
11718
+ en: "English",
11719
+ de: "Deutsch",
11720
+ fr: "Français",
11721
+ es: "Español",
11722
+ it: "Italiano",
11723
+ pt: "Português",
11724
+ nl: "Nederlands",
11725
+ pl: "Polski",
11726
+ ru: "Русский",
11727
+ zh: "中文",
11728
+ ja: "日本語",
11729
+ ar: "العربية",
11730
+ tr: "Türkçe",
11731
+ sv: "Svenska",
11732
+ da: "Dansk",
11733
+ fi: "Suomi",
11734
+ no: "Norsk"
11735
+ }, Qa = ({ size: e = 18 }) => /* @__PURE__ */ s(
11736
+ "svg",
11737
+ {
11738
+ width: e,
11739
+ height: e,
11740
+ viewBox: "0 0 24 24",
11741
+ fill: "none",
11742
+ stroke: "currentColor",
11743
+ strokeWidth: 1.8,
11744
+ strokeLinecap: "round",
11745
+ strokeLinejoin: "round",
11746
+ children: [
11747
+ /* @__PURE__ */ i("circle", { cx: "12", cy: "12", r: "10" }),
11748
+ /* @__PURE__ */ i("path", { d: "M2 12h20" }),
11749
+ /* @__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" })
11750
+ ]
11751
+ }
11752
+ ), Xa = () => {
11753
+ 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) => {
11754
+ const g = m.toUpperCase();
11755
+ return a.allowedLanguages.some(
11756
+ (y) => y.toUpperCase() === g
11757
+ );
11758
+ }) : l;
11759
+ fe(() => {
11760
+ const m = (g) => {
11761
+ o.current && !o.current.contains(g.target) && n(!1);
11762
+ };
11763
+ return r && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
11764
+ }, [r]);
11765
+ const u = e === "ar";
11766
+ return /* @__PURE__ */ s(
11767
+ "div",
11768
+ {
11769
+ ref: o,
11770
+ style: { position: "relative", display: "inline-flex", zIndex: 50 },
11771
+ children: [
11772
+ /* @__PURE__ */ s(
11773
+ "button",
11774
+ {
11775
+ type: "button",
11776
+ onClick: () => n(!r),
11777
+ "aria-label": "Select language",
11778
+ style: {
11779
+ display: "inline-flex",
11780
+ alignItems: "center",
11781
+ gap: "6px",
11782
+ padding: "6px 10px",
11783
+ borderRadius: "8px",
11784
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
11785
+ backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
11786
+ color: "var(--metakyc-header-text, var(--metakyc-text-secondary, #6b7280))",
11787
+ fontSize: "13px",
11788
+ fontWeight: 500,
11789
+ cursor: "pointer",
11790
+ transition: "border-color 0.15s, box-shadow 0.15s",
11791
+ lineHeight: 1
11792
+ },
11793
+ onMouseEnter: (m) => {
11794
+ m.currentTarget.style.borderColor = "var(--metakyc-primary, #2563eb)";
11795
+ },
11796
+ onMouseLeave: (m) => {
11797
+ r || (m.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
11798
+ },
11799
+ children: [
11800
+ /* @__PURE__ */ i(Qa, { size: 16 }),
11801
+ /* @__PURE__ */ i("span", { children: ki[e] || e.toUpperCase() }),
11802
+ /* @__PURE__ */ i(
11803
+ "svg",
11804
+ {
11805
+ width: "12",
11806
+ height: "12",
11807
+ viewBox: "0 0 24 24",
11808
+ fill: "none",
11809
+ stroke: "currentColor",
11810
+ strokeWidth: 2.5,
11811
+ style: {
11812
+ transition: "transform 0.15s",
11813
+ transform: r ? "rotate(180deg)" : "rotate(0deg)"
11814
+ },
11815
+ children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" })
11816
+ }
11817
+ )
11818
+ ]
11819
+ }
11820
+ ),
11821
+ r && /* @__PURE__ */ i(
11822
+ "div",
11823
+ {
11824
+ style: {
11825
+ position: "absolute",
11826
+ top: "100%",
11827
+ ...u ? { left: 0 } : { right: 0 },
11828
+ marginTop: "4px",
11829
+ minWidth: "160px",
11830
+ maxHeight: "240px",
11831
+ overflowY: "auto",
11832
+ backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
11833
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
11834
+ borderRadius: "8px",
11835
+ boxShadow: "0 4px 12px rgba(0,0,0,0.1)",
11836
+ padding: "4px 0",
11837
+ zIndex: 51
11838
+ },
11839
+ children: d.map((m) => {
11840
+ const g = m === e;
11841
+ return /* @__PURE__ */ i(
11842
+ "button",
11843
+ {
11844
+ type: "button",
11845
+ onClick: () => {
11846
+ t(m), n(!1);
11847
+ },
11848
+ style: {
11849
+ display: "flex",
11850
+ alignItems: "center",
11851
+ width: "100%",
11852
+ padding: "8px 12px",
11853
+ border: "none",
11854
+ backgroundColor: g ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 10%, transparent)" : "transparent",
11855
+ color: g ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-primary, #111827)",
11856
+ fontSize: "13px",
11857
+ fontWeight: g ? 600 : 400,
11858
+ cursor: "pointer",
11859
+ textAlign: u ? "right" : "left",
11860
+ direction: m === "ar" ? "rtl" : "ltr",
11861
+ transition: "background-color 0.1s"
11862
+ },
11863
+ onMouseEnter: (y) => {
11864
+ g || (y.currentTarget.style.backgroundColor = "var(--metakyc-surface, #f9fafb)");
11865
+ },
11866
+ onMouseLeave: (y) => {
11867
+ g || (y.currentTarget.style.backgroundColor = "transparent");
11868
+ },
11869
+ children: ki[m] || m.toUpperCase()
11870
+ },
11871
+ m
11872
+ );
11873
+ })
11874
+ }
11875
+ )
11876
+ ]
11877
+ }
11878
+ );
11708
11879
  }, Rt = ({
11709
11880
  title: e,
11710
11881
  subtitle: t,
11711
11882
  className: a = ""
11712
11883
  }) => {
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: [
11884
+ 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;
11885
+ return !m && !g && !y ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${a}`, children: [
11715
11886
  /* @__PURE__ */ s(
11716
11887
  "div",
11717
11888
  {
11718
11889
  className: "metakyc-header-title flex items-center text-xl font-bold",
11719
- style: { color: "var(--metakyc-text-primary, #111827)" },
11890
+ style: { color: "var(--metakyc-header-text, var(--metakyc-text-primary, #111827))", justifyContent: "space-between" },
11720
11891
  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 })
11892
+ /* @__PURE__ */ s("div", { className: "flex items-center", style: { minWidth: 0 }, children: [
11893
+ m && /* @__PURE__ */ i(Ga, { config: r.logo }),
11894
+ m && g && /* @__PURE__ */ i(
11895
+ "span",
11896
+ {
11897
+ style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-header-text, var(--metakyc-text-muted, #9ca3af))", margin: "0 12px" },
11898
+ children: "|"
11899
+ }
11900
+ ),
11901
+ g && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-header-text, var(--metakyc-text-primary, #111827))" }, children: d })
11902
+ ] }),
11903
+ y && /* @__PURE__ */ i(Xa, {})
11730
11904
  ]
11731
11905
  }
11732
11906
  ),
11733
- d && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: d })
11907
+ u && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-header-text, var(--metakyc-text-secondary, #6b7280))" }, children: u })
11734
11908
  ] });
11735
11909
  }, Mi = Gt(null), ji = () => Qt(Mi);
11736
11910
  function It() {
11737
11911
  const e = ji(), t = pe(e);
11738
11912
  return t.current = e, t;
11739
11913
  }
11740
- const Qa = ({ children: e }) => {
11914
+ const Za = ({ children: e }) => {
11741
11915
  const [t, a] = T([]), [r, n] = T({}), o = pe([]), l = ee((g) => {
11742
11916
  o.current = [...o.current.filter((y) => y.id !== g.id), g], a([...o.current]);
11743
11917
  }, []), d = ee((g) => {
11744
11918
  o.current = o.current.filter((y) => y.id !== g), a([...o.current]);
11745
11919
  }, []), u = ee((g) => {
11746
11920
  n((y) => {
11747
- const w = { ...y, ...g };
11748
- return Object.keys(g).some((S) => y[S] !== g[S]) ? w : y;
11921
+ const x = { ...y, ...g };
11922
+ return Object.keys(g).some((S) => y[S] !== g[S]) ? x : y;
11749
11923
  });
11750
11924
  }, []), m = Ue(
11751
11925
  () => ({ actions: t, registerAction: l, unregisterAction: d, sdkState: r, updateSdkState: u }),
11752
11926
  [t, l, d, r, u]
11753
11927
  );
11754
11928
  return /* @__PURE__ */ i(Mi.Provider, { value: m, children: e });
11755
- }, ki = 2147483640, Xa = () => {
11929
+ }, vi = 2147483640, Ja = () => {
11756
11930
  const e = ji(), [t, a] = T(!1), [r, n] = T("actions"), [o, l] = T(null), d = pe(null);
11757
11931
  if (fe(() => {
11758
11932
  if (!t) return;
@@ -11763,7 +11937,7 @@ const Qa = ({ children: e }) => {
11763
11937
  clearTimeout(z), document.removeEventListener("mousedown", v);
11764
11938
  };
11765
11939
  }, [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) => {
11940
+ 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
11941
  l(v);
11768
11942
  try {
11769
11943
  await z();
@@ -11774,7 +11948,7 @@ const Qa = ({ children: e }) => {
11774
11948
  position: "fixed",
11775
11949
  bottom: "16px",
11776
11950
  right: "16px",
11777
- zIndex: ki,
11951
+ zIndex: vi,
11778
11952
  display: "flex",
11779
11953
  alignItems: "center",
11780
11954
  gap: "6px",
@@ -11796,7 +11970,7 @@ const Qa = ({ children: e }) => {
11796
11970
  position: "fixed",
11797
11971
  bottom: "56px",
11798
11972
  right: "16px",
11799
- zIndex: ki,
11973
+ zIndex: vi,
11800
11974
  width: "340px",
11801
11975
  maxHeight: "480px",
11802
11976
  borderRadius: "12px",
@@ -11908,7 +12082,7 @@ const Qa = ({ children: e }) => {
11908
12082
  /* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, children: r === "actions" ? /* @__PURE__ */ s("div", { style: { paddingBottom: "8px" }, children: [
11909
12083
  Y("Form", g),
11910
12084
  Y("Workflow", y),
11911
- Y("General", w),
12085
+ Y("General", x),
11912
12086
  u.length === 0 && /* @__PURE__ */ s("div", { style: { padding: "24px 14px", textAlign: "center", color: "#6c7086" }, children: [
11913
12087
  "No actions registered.",
11914
12088
  /* @__PURE__ */ i("br", {}),
@@ -11946,7 +12120,7 @@ const Qa = ({ children: e }) => {
11946
12120
  )
11947
12121
  ] });
11948
12122
  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"];
12123
+ }, 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
12124
  function Ae(e) {
11951
12125
  return e[Math.floor(Math.random() * e.length)];
11952
12126
  }
@@ -11957,8 +12131,8 @@ function Fi(e, t) {
11957
12131
  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
12132
  return `${a}-${r}-${n}`;
11959
12133
  }
11960
- function rn() {
11961
- const e = Ae(Za), t = Ae(Ja), a = Ae(jt);
12134
+ function nn() {
12135
+ const e = Ae(en), t = Ae(tn), a = Ae(jt);
11962
12136
  return {
11963
12137
  firstName: e,
11964
12138
  lastName: t,
@@ -11974,7 +12148,7 @@ function rn() {
11974
12148
  placeOfBirth: Ae(Mt),
11975
12149
  countryOfBirth: Ae(jt),
11976
12150
  taxCountry: a,
11977
- occupation: Ae(tn),
12151
+ occupation: Ae(an),
11978
12152
  educationLevel: Ae(["Bachelor", "Master", "PhD", "High School"]),
11979
12153
  taxNumber: vt(10),
11980
12154
  defaultLanguage: "EN",
@@ -11983,8 +12157,8 @@ function rn() {
11983
12157
  title: Ae(["Mr", "Ms", "Dr", "Prof"])
11984
12158
  };
11985
12159
  }
11986
- function an() {
11987
- const e = Ae(en), t = e.split(" ")[0].toLowerCase();
12160
+ function on() {
12161
+ const e = Ae(rn), t = e.split(" ")[0].toLowerCase();
11988
12162
  return {
11989
12163
  companyName: e,
11990
12164
  email: `info@${t}.com`,
@@ -12007,7 +12181,7 @@ const Lt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
12007
12181
  function St(e) {
12008
12182
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
12009
12183
  }
12010
- const nn = {
12184
+ const sn = {
12011
12185
  width: "16px",
12012
12186
  height: "16px",
12013
12187
  minWidth: "16px",
@@ -12019,7 +12193,7 @@ const nn = {
12019
12193
  padding: 0,
12020
12194
  display: "inline-block",
12021
12195
  verticalAlign: "middle"
12022
- }, vi = ({ helpText: e, children: t }) => {
12196
+ }, bi = ({ helpText: e, children: t }) => {
12023
12197
  const [a, r] = ye.useState(!1);
12024
12198
  if (!e) return /* @__PURE__ */ i(bt, { children: t });
12025
12199
  const n = a ? /* @__PURE__ */ i(
@@ -12140,7 +12314,7 @@ const nn = {
12140
12314
  ),
12141
12315
  typeof document < "u" && n ? Ft(n, document.body) : null
12142
12316
  ] });
12143
- }, on = ({
12317
+ }, ln = ({
12144
12318
  workflowKey: e,
12145
12319
  externalRefId: t,
12146
12320
  applicantId: a,
@@ -12148,8 +12322,8 @@ const nn = {
12148
12322
  onCancel: n
12149
12323
  }) => {
12150
12324
  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)
12325
+ 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);
12326
+ if (!x)
12153
12327
  throw new Error(
12154
12328
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
12155
12329
  );
@@ -12167,8 +12341,8 @@ const nn = {
12167
12341
  }, [d == null ? void 0 : d.applicantFormRequiredFields, O]), Y = Ue(() => {
12168
12342
  var C;
12169
12343
  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);
12344
+ const p = O.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), k = new Set(p);
12345
+ for (const w of Lt) k.add(w);
12172
12346
  return Array.from(k);
12173
12347
  }
12174
12348
  let c;
@@ -12203,8 +12377,8 @@ const nn = {
12203
12377
  });
12204
12378
  if (c.length === 0) {
12205
12379
  Q.every((k) => {
12206
- const x = k != null ? String(k) : "all";
12207
- return H.current.has(x);
12380
+ const w = k != null ? String(k) : "all";
12381
+ return H.current.has(w);
12208
12382
  }) && X(!1);
12209
12383
  return;
12210
12384
  }
@@ -12214,11 +12388,11 @@ const nn = {
12214
12388
  try {
12215
12389
  const p = await Promise.all(
12216
12390
  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];
12391
+ 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 ? {
12392
+ value: we.countryCode,
12393
+ label: `${we.countryCode} – ${we.name}`
12394
+ } : { value: we.abbreviation3 || we.abbreviation, label: we.name }).filter((we) => !we.value || Me.has(we.value) ? !1 : (Me.add(we.value), !0));
12395
+ return H.current.add(w), te.current.delete(w), [w, je];
12222
12396
  })
12223
12397
  );
12224
12398
  z((k) => ({ ...k, ...Object.fromEntries(p) }));
@@ -12226,8 +12400,8 @@ const nn = {
12226
12400
  L.forEach((k) => te.current.delete(k)), console.error("Failed to load countries:", p);
12227
12401
  } finally {
12228
12402
  Q.every((k) => {
12229
- const x = k != null ? String(k) : "all";
12230
- return H.current.has(x);
12403
+ const w = k != null ? String(k) : "all";
12404
+ return H.current.has(w);
12231
12405
  }) && X(!1);
12232
12406
  }
12233
12407
  })();
@@ -12264,7 +12438,7 @@ const nn = {
12264
12438
  ), Ne = Object.fromEntries(
12265
12439
  Object.entries(N).filter(([c]) => c in me)
12266
12440
  ), [le, ve] = T({
12267
- workflowKey: w,
12441
+ workflowKey: x,
12268
12442
  firstName: "",
12269
12443
  lastName: "",
12270
12444
  title: "",
@@ -12302,7 +12476,7 @@ const nn = {
12302
12476
  if (c) return;
12303
12477
  const p = C.applicantRequestData;
12304
12478
  p && ve((k) => {
12305
- var x;
12479
+ var w;
12306
12480
  return {
12307
12481
  ...k,
12308
12482
  firstName: p.firstName || k.firstName,
@@ -12326,7 +12500,7 @@ const nn = {
12326
12500
  occupation: p.occupation || k.occupation,
12327
12501
  title: p.title || k.title,
12328
12502
  salutation: p.salutation != null ? Number(p.salutation) : k.salutation,
12329
- otherNationality: (x = p.otherNationalities) != null && x.length ? p.otherNationalities : k.otherNationality
12503
+ otherNationality: (w = p.otherNationalities) != null && w.length ? p.otherNationalities : k.otherNationality
12330
12504
  };
12331
12505
  }), C.externalRefId && ve((k) => ({ ...k, externalRefId: C.externalRefId }));
12332
12506
  } catch (C) {
@@ -12339,28 +12513,28 @@ const nn = {
12339
12513
  };
12340
12514
  }, [a]);
12341
12515
  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) => {
12516
+ const c = nn(), L = (C) => {
12343
12517
  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;
12518
+ const p = (ue = dt[C]) == null ? void 0 : ue.countriesType, k = p != null ? String(p) : "all", w = (v[k] || []).filter((ce) => ce.value);
12519
+ if (w.length)
12520
+ return w[Math.floor(Math.random() * w.length)].value;
12347
12521
  };
12348
12522
  ve((C) => {
12349
12523
  const p = { ...C };
12350
- for (const [k, x] of Object.entries(c))
12524
+ for (const [k, w] of Object.entries(c))
12351
12525
  if (k in C && (C[k] === "" || C[k] === null || C[k] === void 0))
12352
12526
  if (G.has(k)) {
12353
12527
  const ue = L(k);
12354
12528
  ue && (p[k] = ue);
12355
12529
  } else
12356
- p[k] = x;
12530
+ p[k] = w;
12357
12531
  return p;
12358
12532
  }), O && R((C) => {
12359
- var k, x;
12533
+ var k, w;
12360
12534
  const p = { ...C };
12361
12535
  for (const ue of O)
12362
12536
  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"));
12537
+ !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
12538
  return p;
12365
12539
  }), J({}), Re(null);
12366
12540
  }, [O, v]);
@@ -12381,7 +12555,7 @@ const nn = {
12381
12555
  if (!C.isCustom || !C.paramName || !((L = C.blockingValues) != null && L.length)) continue;
12382
12556
  const p = $[C.paramName] ?? "";
12383
12557
  if (C.customType === "group_checkbox") {
12384
- if (p.split(",").filter(Boolean).some((x) => C.blockingValues.includes(x))) return !0;
12558
+ if (p.split(",").filter(Boolean).some((w) => C.blockingValues.includes(w))) return !0;
12385
12559
  } else if (C.customType === "radio_group" && C.blockingValues.includes(p))
12386
12560
  return !0;
12387
12561
  }
@@ -12398,12 +12572,12 @@ const nn = {
12398
12572
  } else if (C.name) {
12399
12573
  const p = C.name;
12400
12574
  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 });
12575
+ 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;
12576
+ L[p] = y("validation.fieldRequired", { field: w });
12403
12577
  }
12404
12578
  }
12405
12579
  return L;
12406
- }, xt = async () => {
12580
+ }, wt = async () => {
12407
12581
  if (!O) return;
12408
12582
  const c = O[Z];
12409
12583
  if (He(c) || c.conditionalOn && c.conditionalMode === "block" && !Qe(c)) return;
@@ -12441,42 +12615,42 @@ const nn = {
12441
12615
  if (O) {
12442
12616
  for (const k of O)
12443
12617
  if (Qe(k)) {
12444
- for (const x of k.fields)
12445
- if (!x.isCustom && x.name) {
12446
- const ue = x.name, ce = le[ue];
12618
+ for (const w of k.fields)
12619
+ if (!w.isCustom && w.name) {
12620
+ const ue = w.name, ce = le[ue];
12447
12621
  St(ce) || (c[ue] = ce);
12448
12622
  }
12449
12623
  }
12450
12624
  for (const k of Lt)
12451
12625
  if (c[k] === void 0) {
12452
- const x = le[k];
12453
- St(x) || (c[k] = x);
12626
+ const w = le[k];
12627
+ St(w) || (c[k] = w);
12454
12628
  }
12455
12629
  } else
12456
12630
  Y.forEach((k) => {
12457
12631
  if (k === "externalRefId") return;
12458
- const x = le[k];
12459
- St(x) || (c[k] = x);
12632
+ const w = le[k];
12633
+ St(w) || (c[k] = w);
12460
12634
  });
12461
12635
  const L = [];
12462
12636
  if (O) {
12463
12637
  for (const k of O)
12464
12638
  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] ?? "";
12639
+ for (const w of k.fields) {
12640
+ if (!w.isCustom || !w.paramName || w.customType === "paragraph" || w.customType === "html" || w.customType === "br" || w.customType === "link") continue;
12641
+ const ue = $[w.paramName] ?? "";
12468
12642
  let ce;
12469
- if (x.customType === "checkbox" || x.customType === "link_checkbox")
12643
+ if (w.customType === "checkbox" || w.customType === "link_checkbox")
12470
12644
  ce = ue === "true" ? "yes" : "no";
12471
- else if (ce = ue, !ce && !x.required) continue;
12472
- L.push({ paramName: x.paramName, value: ce });
12645
+ else if (ce = ue, !ce && !w.required) continue;
12646
+ L.push({ paramName: w.paramName, value: ce });
12473
12647
  }
12474
12648
  }
12475
- for (const [k, x] of Object.entries(de))
12476
- c[k] === void 0 && !St(x) && (c[k] = x);
12649
+ for (const [k, w] of Object.entries(de))
12650
+ c[k] === void 0 && !St(w) && (c[k] = w);
12477
12651
  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 });
12652
+ for (const [k, w] of Object.entries(he))
12653
+ !C.has(k) && w && L.push({ paramName: k, value: w });
12480
12654
  L.length > 0 && (c.applicantAdditionalDatas = L);
12481
12655
  const p = await u(c);
12482
12656
  r(p.applicantId);
@@ -12485,7 +12659,7 @@ const nn = {
12485
12659
  } finally {
12486
12660
  _e(!1);
12487
12661
  }
12488
- }, wt = async (c) => {
12662
+ }, xt = async (c) => {
12489
12663
  c.preventDefault();
12490
12664
  for (const L of M)
12491
12665
  if (St(le[L])) {
@@ -12496,10 +12670,10 @@ const nn = {
12496
12670
  await Pe();
12497
12671
  }, pt = (c, L, C, p, k) => {
12498
12672
  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) {
12673
+ const w = dt[c];
12674
+ if (!w) return null;
12675
+ 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;
12676
+ switch (w.type) {
12503
12677
  case "select":
12504
12678
  if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
12505
12679
  const Fe = re(c, p);
@@ -12515,7 +12689,7 @@ const nn = {
12515
12689
  readOnly: je,
12516
12690
  error: ce
12517
12691
  },
12518
- xe
12692
+ we
12519
12693
  );
12520
12694
  }
12521
12695
  if (c === "salutation")
@@ -12535,7 +12709,7 @@ const nn = {
12535
12709
  readOnly: je,
12536
12710
  error: ce
12537
12711
  },
12538
- xe
12712
+ we
12539
12713
  );
12540
12714
  if (c === "defaultLanguage") {
12541
12715
  const Fe = d != null && d.allowedLanguages && d.allowedLanguages.length > 0 ? ti.filter((ft) => d.allowedLanguages.includes(ft.value)) : ti;
@@ -12550,7 +12724,7 @@ const nn = {
12550
12724
  readOnly: je,
12551
12725
  error: ce
12552
12726
  },
12553
- xe
12727
+ we
12554
12728
  );
12555
12729
  }
12556
12730
  return null;
@@ -12569,7 +12743,7 @@ const nn = {
12569
12743
  disabled: F,
12570
12744
  readOnly: je
12571
12745
  },
12572
- xe
12746
+ we
12573
12747
  );
12574
12748
  }
12575
12749
  return null;
@@ -12586,7 +12760,7 @@ const nn = {
12586
12760
  readOnly: je,
12587
12761
  error: ce
12588
12762
  },
12589
- xe
12763
+ we
12590
12764
  );
12591
12765
  case "email":
12592
12766
  return /* @__PURE__ */ i(
@@ -12601,7 +12775,7 @@ const nn = {
12601
12775
  readOnly: je,
12602
12776
  error: ce
12603
12777
  },
12604
- xe
12778
+ we
12605
12779
  );
12606
12780
  case "tel":
12607
12781
  return /* @__PURE__ */ i(
@@ -12616,7 +12790,7 @@ const nn = {
12616
12790
  readOnly: je,
12617
12791
  error: ce
12618
12792
  },
12619
- xe
12793
+ we
12620
12794
  );
12621
12795
  default:
12622
12796
  return /* @__PURE__ */ i(
@@ -12631,13 +12805,13 @@ const nn = {
12631
12805
  readOnly: je,
12632
12806
  error: ce
12633
12807
  },
12634
- xe
12808
+ we
12635
12809
  );
12636
12810
  }
12637
12811
  }, gt = (c, L) => {
12638
12812
  const C = c.labelMode ? c.labelMode !== "placeholder" : K;
12639
12813
  if (c.customType === "paragraph") {
12640
- const x = ie(c.displayText, y) || ie(c.label, y) || "";
12814
+ const w = ie(c.displayText, y) || ie(c.label, y) || "";
12641
12815
  return /* @__PURE__ */ i(
12642
12816
  "p",
12643
12817
  {
@@ -12648,7 +12822,7 @@ const nn = {
12648
12822
  margin: 0,
12649
12823
  color: "var(--metakyc-text-secondary, #6b7280)"
12650
12824
  },
12651
- dangerouslySetInnerHTML: { __html: x }
12825
+ dangerouslySetInnerHTML: { __html: w }
12652
12826
  },
12653
12827
  `custom-${L}`
12654
12828
  );
@@ -12664,7 +12838,7 @@ const nn = {
12664
12838
  if (c.customType === "br")
12665
12839
  return /* @__PURE__ */ i("div", { style: { height: "12px" } }, `custom-${L}`);
12666
12840
  if (c.customType === "link") {
12667
- const x = ie(c.displayText, y) || ie(c.label, y) || c.linkText || c.linkUrl || "";
12841
+ const w = ie(c.displayText, y) || ie(c.label, y) || c.linkText || c.linkUrl || "";
12668
12842
  return /* @__PURE__ */ i("div", { className: "metakyc-link-field", children: /* @__PURE__ */ s(
12669
12843
  "a",
12670
12844
  {
@@ -12681,7 +12855,7 @@ const nn = {
12681
12855
  cursor: "pointer"
12682
12856
  },
12683
12857
  children: [
12684
- x,
12858
+ w,
12685
12859
  /* @__PURE__ */ i("span", { style: { fontSize: "10px", opacity: 0.7 }, children: "↗" })
12686
12860
  ]
12687
12861
  }
@@ -12690,21 +12864,21 @@ const nn = {
12690
12864
  if (!c.paramName) return null;
12691
12865
  const p = W[c.paramName], k = ie(c.displayText, y) || ie(c.label, y) || c.paramName;
12692
12866
  if (c.customType === "checkbox") {
12693
- const x = $[c.paramName] === "true";
12867
+ const w = $[c.paramName] === "true";
12694
12868
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
12695
12869
  /* @__PURE__ */ s(
12696
12870
  "div",
12697
12871
  {
12698
12872
  className: "metakyc-option-label",
12699
12873
  role: "checkbox",
12700
- "aria-checked": x,
12701
- onClick: () => ze(c.paramName, x ? "false" : "true"),
12874
+ "aria-checked": w,
12875
+ onClick: () => ze(c.paramName, w ? "false" : "true"),
12702
12876
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12703
12877
  children: [
12704
12878
  /* @__PURE__ */ i(
12705
12879
  Xe,
12706
12880
  {
12707
- checked: x,
12881
+ checked: w,
12708
12882
  onChange: (ue) => ze(c.paramName, ue ? "true" : "false")
12709
12883
  }
12710
12884
  ),
@@ -12726,21 +12900,21 @@ const nn = {
12726
12900
  ] }, `custom-${L}`);
12727
12901
  }
12728
12902
  if (c.customType === "link_checkbox") {
12729
- const x = $[c.paramName] === "true";
12903
+ const w = $[c.paramName] === "true";
12730
12904
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
12731
12905
  /* @__PURE__ */ s(
12732
12906
  "div",
12733
12907
  {
12734
12908
  className: "metakyc-option-label",
12735
12909
  role: "checkbox",
12736
- "aria-checked": x,
12737
- onClick: () => ze(c.paramName, x ? "false" : "true"),
12910
+ "aria-checked": w,
12911
+ onClick: () => ze(c.paramName, w ? "false" : "true"),
12738
12912
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12739
12913
  children: [
12740
12914
  /* @__PURE__ */ i(
12741
12915
  Xe,
12742
12916
  {
12743
- checked: x,
12917
+ checked: w,
12744
12918
  onChange: (ue) => ze(c.paramName, ue ? "true" : "false")
12745
12919
  }
12746
12920
  ),
@@ -12775,7 +12949,7 @@ const nn = {
12775
12949
  ] }, `custom-${L}`);
12776
12950
  }
12777
12951
  if (c.customType === "group_checkbox") {
12778
- const x = ($[c.paramName] || "").split(",").filter(Boolean);
12952
+ const w = ($[c.paramName] || "").split(",").filter(Boolean);
12779
12953
  return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
12780
12954
  C && /* @__PURE__ */ s(
12781
12955
  "div",
@@ -12789,11 +12963,11 @@ const nn = {
12789
12963
  }
12790
12964
  ),
12791
12965
  /* @__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 = () => {
12966
+ const ce = c.singleSelect ? $[c.paramName] === ue.value : w.includes(ue.value), Me = () => {
12793
12967
  if (c.singleSelect)
12794
12968
  ze(c.paramName, ce ? "" : ue.value);
12795
12969
  else {
12796
- const je = ce ? x.filter((xe) => xe !== ue.value) : [...x, ue.value];
12970
+ const je = ce ? w.filter((we) => we !== ue.value) : [...w, ue.value];
12797
12971
  ze(c.paramName, je.join(","));
12798
12972
  }
12799
12973
  };
@@ -12833,23 +13007,23 @@ const nn = {
12833
13007
  ]
12834
13008
  }
12835
13009
  ),
12836
- /* @__PURE__ */ i("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((x) => /* @__PURE__ */ s(
13010
+ /* @__PURE__ */ i("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((w) => /* @__PURE__ */ s(
12837
13011
  "div",
12838
13012
  {
12839
13013
  className: "metakyc-option-label",
12840
- onClick: () => ze(c.paramName, x.value),
13014
+ onClick: () => ze(c.paramName, w.value),
12841
13015
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
12842
13016
  children: [
12843
13017
  /* @__PURE__ */ i(
12844
13018
  "input",
12845
13019
  {
12846
13020
  type: "radio",
12847
- checked: $[c.paramName] === x.value,
12848
- onChange: () => ze(c.paramName, x.value),
13021
+ checked: $[c.paramName] === w.value,
13022
+ onChange: () => ze(c.paramName, w.value),
12849
13023
  name: `radio-group-${c.paramName}-${L}`,
12850
13024
  className: "metakyc-option-input",
12851
13025
  onClick: (ue) => ue.stopPropagation(),
12852
- style: nn
13026
+ style: sn
12853
13027
  }
12854
13028
  ),
12855
13029
  /* @__PURE__ */ i(
@@ -12857,12 +13031,12 @@ const nn = {
12857
13031
  {
12858
13032
  className: "metakyc-option-text",
12859
13033
  style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)", lineHeight: "1.4" },
12860
- children: x.label
13034
+ children: w.label
12861
13035
  }
12862
13036
  )
12863
13037
  ]
12864
13038
  },
12865
- x.value
13039
+ w.value
12866
13040
  )) }),
12867
13041
  p && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-danger, #ef4444)" }, children: p })
12868
13042
  ] }, `custom-${L}`) : /* @__PURE__ */ i(
@@ -12872,7 +13046,7 @@ const nn = {
12872
13046
  label: C ? `${k}${c.required ? " *" : ""}` : void 0,
12873
13047
  placeholder: C ? void 0 : k,
12874
13048
  value: $[c.paramName] || "",
12875
- onChange: (x) => ze(c.paramName, x.target.value),
13049
+ onChange: (w) => ze(c.paramName, w.target.value),
12876
13050
  required: c.required,
12877
13051
  error: p
12878
13052
  },
@@ -12881,7 +13055,7 @@ const nn = {
12881
13055
  }, b = (c, L) => {
12882
13056
  const C = Qe(c);
12883
13057
  return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
12884
- c.conditionalOn && /* @__PURE__ */ i(vi, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
13058
+ c.conditionalOn && /* @__PURE__ */ i(bi, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
12885
13059
  "div",
12886
13060
  {
12887
13061
  className: "metakyc-option-label",
@@ -12909,8 +13083,8 @@ const nn = {
12909
13083
  }
12910
13084
  ) }),
12911
13085
  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);
13086
+ const w = Math.min(4, Math.max(1, Number(p.colSpan) || 4)), ue = p.isCustom ? `custom-${k}-${p.paramName}` : `builtin-${p.name}-${k}`;
13087
+ 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
13088
  }) })
12915
13089
  ] });
12916
13090
  };
@@ -12920,9 +13094,9 @@ const nn = {
12920
13094
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: y("common.loadingForm") })
12921
13095
  ] }) }) });
12922
13096
  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;
13097
+ 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
13098
  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: [
13099
+ 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
13100
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || y("createApplicant.title") }) }),
12927
13101
  /* @__PURE__ */ s(oe, { children: [
12928
13102
  (c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
@@ -12952,7 +13126,7 @@ const nn = {
12952
13126
  )
12953
13127
  ] }),
12954
13128
  p > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12955
- O.map((xe, $e) => /* @__PURE__ */ i(
13129
+ O.map((we, $e) => /* @__PURE__ */ i(
12956
13130
  "div",
12957
13131
  {
12958
13132
  style: {
@@ -12979,7 +13153,7 @@ const nn = {
12979
13153
  " ",
12980
13154
  ke
12981
13155
  ] }),
12982
- ue.map((xe, $e) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: xe }, $e))
13156
+ ue.map((we, $e) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: we }, $e))
12983
13157
  ] }),
12984
13158
  b(c)
12985
13159
  ] }),
@@ -13005,14 +13179,14 @@ const nn = {
13005
13179
  type: "button",
13006
13180
  isLoading: Ce || g,
13007
13181
  disabled: Me,
13008
- onClick: C ? Pe : xt,
13182
+ onClick: C ? Pe : wt,
13009
13183
  children: je
13010
13184
  }
13011
13185
  )
13012
13186
  ] })
13013
13187
  ] }) });
13014
13188
  }
13015
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: wt, children: /* @__PURE__ */ s(ne, { children: [
13189
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: xt, children: /* @__PURE__ */ s(ne, { children: [
13016
13190
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || y("createApplicant.title") }) }),
13017
13191
  /* @__PURE__ */ s(oe, { children: [
13018
13192
  ke && /* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-lg", style: {
@@ -13030,27 +13204,27 @@ const nn = {
13030
13204
  /* @__PURE__ */ i(se, { type: "submit", isLoading: Ce || g, children: y("createApplicant.createApplicant") })
13031
13205
  ] })
13032
13206
  ] }) }) });
13033
- }, bi = ["companyName", "email"];
13207
+ }, wi = ["companyName", "email"];
13034
13208
  function Kt(e) {
13035
13209
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
13036
13210
  }
13037
- const sn = ({
13211
+ const cn = ({
13038
13212
  workflowKey: e,
13039
13213
  externalRefId: t,
13040
13214
  onSuccess: a,
13041
13215
  onCancel: r
13042
13216
  }) => {
13043
- var mt, xt, Pe, wt, pt, gt;
13217
+ var mt, wt, Pe, xt, pt, gt;
13044
13218
  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
13219
  if (!g)
13046
13220
  throw new Error(
13047
13221
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
13048
13222
  );
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(
13223
+ 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
13224
  () => l != null && l.companyFormPages && l.companyFormPages.length > 0 ? l.companyFormPages : null,
13051
13225
  [l == null ? void 0 : l.companyFormPages]
13052
13226
  ), U = Ue(() => {
13053
- const b = new Set(bi), V = l == null ? void 0 : l.companyFormRequiredFields;
13227
+ const b = new Set(wi), V = l == null ? void 0 : l.companyFormRequiredFields;
13054
13228
  if (V) for (const D of V) b.add(D);
13055
13229
  if (N)
13056
13230
  for (const D of N)
@@ -13061,7 +13235,7 @@ const sn = ({
13061
13235
  var b;
13062
13236
  if (N) {
13063
13237
  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);
13238
+ for (const f of wi) D.add(f);
13065
13239
  return Array.from(D);
13066
13240
  }
13067
13241
  return (b = n.applicantForm) != null && b.visibleFields ? n.applicantForm.visibleFields : l != null && l.companyFormVisibleFields && l.companyFormVisibleFields.length > 0 ? l.companyFormVisibleFields : Ji;
@@ -13134,7 +13308,7 @@ const sn = ({
13134
13308
  ), [re, me] = T({
13135
13309
  workflowKey: g,
13136
13310
  companyName: "",
13137
- email: w,
13311
+ email: x,
13138
13312
  phone: "",
13139
13313
  registrationNumber: "",
13140
13314
  countryResidence: "",
@@ -13155,7 +13329,7 @@ const sn = ({
13155
13329
  externalRefId: y,
13156
13330
  ...H
13157
13331
  }), [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) => {
13332
+ const b = on(), V = (D) => {
13159
13333
  var I;
13160
13334
  const f = (I = ht[D]) == null ? void 0 : I.countriesType, h = f != null ? String(f) : "all", E = (Y[h] || []).filter((q) => q.value);
13161
13335
  if (E.length)
@@ -13321,7 +13495,7 @@ const sn = ({
13321
13495
  switch (E.type) {
13322
13496
  case "select":
13323
13497
  if (b === "countryResidence" || b === "addressCountry") {
13324
- const x = X(b, f);
13498
+ const w = X(b, f);
13325
13499
  return /* @__PURE__ */ i(
13326
13500
  nt,
13327
13501
  {
@@ -13329,7 +13503,7 @@ const sn = ({
13329
13503
  label: k,
13330
13504
  value: re[b] || "",
13331
13505
  onChange: (ue) => J(b, ue),
13332
- options: [{ value: "", label: p ? m("placeholders.selectCountry") : c }, ...x],
13506
+ options: [{ value: "", label: p ? m("placeholders.selectCountry") : c }, ...w],
13333
13507
  disabled: Q,
13334
13508
  readOnly: L,
13335
13509
  error: q
@@ -13347,7 +13521,7 @@ const sn = ({
13347
13521
  label: k,
13348
13522
  placeholder: p ? void 0 : c,
13349
13523
  value: re[b] || "",
13350
- onChange: (x) => J(b, x.target.value),
13524
+ onChange: (w) => J(b, w.target.value),
13351
13525
  readOnly: L,
13352
13526
  error: q
13353
13527
  },
@@ -13362,7 +13536,7 @@ const sn = ({
13362
13536
  label: k,
13363
13537
  placeholder: p ? void 0 : c,
13364
13538
  value: re[b] || "",
13365
- onChange: (x) => J(b, x.target.value),
13539
+ onChange: (w) => J(b, w.target.value),
13366
13540
  readOnly: L,
13367
13541
  error: q
13368
13542
  },
@@ -13377,7 +13551,7 @@ const sn = ({
13377
13551
  label: k,
13378
13552
  placeholder: p ? void 0 : c,
13379
13553
  value: re[b] || "",
13380
- onChange: (x) => J(b, x.target.value),
13554
+ onChange: (w) => J(b, w.target.value),
13381
13555
  readOnly: L,
13382
13556
  error: q
13383
13557
  },
@@ -13392,7 +13566,7 @@ const sn = ({
13392
13566
  label: k,
13393
13567
  placeholder: p ? void 0 : c,
13394
13568
  value: re[b] || "",
13395
- onChange: (x) => J(b, x.target.value),
13569
+ onChange: (w) => J(b, w.target.value),
13396
13570
  readOnly: L,
13397
13571
  error: q
13398
13572
  },
@@ -13580,18 +13754,18 @@ const sn = ({
13580
13754
  /* @__PURE__ */ i(se, { type: "submit", isLoading: j || u, children: m("createCompany.registerCompany") })
13581
13755
  ] })
13582
13756
  ] }) }) });
13583
- }, ln = ["ar"], cn = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", dn = ({
13757
+ }, dn = ["ar"], un = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", mn = ({
13584
13758
  applicantId: e,
13585
13759
  onComplete: t,
13586
13760
  onError: a,
13587
13761
  onWorkflowChange: r,
13588
13762
  className: n
13589
13763
  }) => {
13590
- const { t: o } = Ie(), { applicantService: l, locale: d } = Se(), u = ln.includes(d), {
13764
+ const { t: o } = Ie(), { applicantService: l, locale: d } = Se(), u = dn.includes(d), {
13591
13765
  progress: m,
13592
13766
  currentStep: g,
13593
13767
  steps: y,
13594
- nextWorkflowKey: w,
13768
+ nextWorkflowKey: x,
13595
13769
  hasWorkflowChanged: A,
13596
13770
  isLoading: S,
13597
13771
  error: B,
@@ -13706,7 +13880,7 @@ const sn = ({
13706
13880
  uploadDocumentFileId: j.id,
13707
13881
  valueList: [{
13708
13882
  fileName: "dev-placeholder.pdf",
13709
- fileData: cn
13883
+ fileData: un
13710
13884
  }]
13711
13885
  }));
13712
13886
  await te.fillUploadDocument({
@@ -13772,15 +13946,15 @@ const sn = ({
13772
13946
  }, [m == null ? void 0 : m.workflowResult, t]);
13773
13947
  const Ne = ye.useRef(!1);
13774
13948
  if (ye.useEffect(() => {
13775
- if (!A || !w || !e || Ne.current) return;
13949
+ if (!A || !x || !e || Ne.current) return;
13776
13950
  Ne.current = !0;
13777
13951
  let $ = !1;
13778
13952
  return O(!0), Y(null), (async () => {
13779
13953
  try {
13780
- _.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${w}`);
13954
+ _.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${x}`);
13781
13955
  const R = await l.duplicateApplicant({
13782
13956
  applicantId: e,
13783
- workflowKey: w
13957
+ workflowKey: x
13784
13958
  });
13785
13959
  if ($) return;
13786
13960
  _.info(`[SDK] Duplicated → new applicantId=${R.applicantId}`), r && r(R.applicantId);
@@ -13794,7 +13968,7 @@ const sn = ({
13794
13968
  })(), () => {
13795
13969
  $ = !0;
13796
13970
  };
13797
- }, [A, w, e, l, r]), S || K || !m)
13971
+ }, [A, x, e, l, r]), S || K || !m)
13798
13972
  return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: u ? "rtl" : void 0, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
13799
13973
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
13800
13974
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
@@ -13858,11 +14032,12 @@ const sn = ({
13858
14032
  const $ = y.filter((ge) => ge.visibility !== !1), R = $.findIndex((ge) => ge.order === g.order), P = R >= 0 ? R + 1 : 1, j = $.length, Z = j > 1 ? (R + 1) / j * 100 : 100;
13859
14033
  return /* @__PURE__ */ s("div", { className: "metakyc-progress-wrapper", style: {
13860
14034
  marginBottom: "24px",
13861
- backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
14035
+ backgroundColor: "var(--metakyc-header-bg, var(--metakyc-surface, var(--metakyc-background, #ffffff)))",
13862
14036
  borderRadius: "0.75rem",
13863
14037
  border: "1px solid var(--metakyc-border, #e5e7eb)",
13864
14038
  padding: "1rem 1.5rem",
13865
- overflow: "hidden"
14039
+ overflow: "hidden",
14040
+ color: "var(--metakyc-header-text, inherit)"
13866
14041
  }, children: [
13867
14042
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px", gap: "8px", flexWrap: "wrap" }, children: [
13868
14043
  /* @__PURE__ */ i(Rt, {}),
@@ -13882,7 +14057,7 @@ const sn = ({
13882
14057
  } })
13883
14058
  ] }),
13884
14059
  /* @__PURE__ */ i(
13885
- un,
14060
+ pn,
13886
14061
  {
13887
14062
  ref: G,
13888
14063
  visibleSteps: $,
@@ -13945,7 +14120,7 @@ const sn = ({
13945
14120
  ve(),
13946
14121
  he()
13947
14122
  ] });
13948
- }, un = ye.forwardRef(
14123
+ }, pn = ye.forwardRef(
13949
14124
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: a }, r) => {
13950
14125
  const n = ye.useRef(null), o = ye.useRef(null);
13951
14126
  return ye.useImperativeHandle(r, () => n.current), ye.useEffect(() => {
@@ -14030,185 +14205,15 @@ const sn = ({
14030
14205
  }
14031
14206
  );
14032
14207
  }
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
- ] });
14208
+ ), gn = ["ar"], Ct = ({ className: e, children: t }) => {
14209
+ const { locale: a } = Se(), r = gn.includes(a);
14210
+ return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${e || ""}`, dir: r ? "rtl" : "ltr", children: t });
14206
14211
  }, Fn = (e) => {
14207
14212
  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 });
14213
+ return t.debug || t.logLevel && t.logLevel !== "none" ? /* @__PURE__ */ s(Za, { children: [
14214
+ /* @__PURE__ */ i(xi, { ...e }),
14215
+ /* @__PURE__ */ i(Ja, {})
14216
+ ] }) : /* @__PURE__ */ i(xi, { ...e });
14212
14217
  };
14213
14218
  function fn(e, t, a, r) {
14214
14219
  const n = It();
@@ -14217,7 +14222,7 @@ function fn(e, t, a, r) {
14217
14222
  (o = n.current) == null || o.updateSdkState({ phase: e, applicantId: t ?? null, isCompany: !!a, workflowKey: r ?? null });
14218
14223
  }, [n, e, t, a, r]);
14219
14224
  }
14220
- const wi = ({
14225
+ const xi = ({
14221
14226
  isCompany: e,
14222
14227
  onComplete: t,
14223
14228
  onError: a,
@@ -14231,7 +14236,7 @@ const wi = ({
14231
14236
  isCompany: m,
14232
14237
  workflowKey: g,
14233
14238
  error: y,
14234
- isLoading: w,
14239
+ isLoading: x,
14235
14240
  transitionToWorkflow: A,
14236
14241
  switchApplicant: S,
14237
14242
  refresh: B
@@ -14254,7 +14259,7 @@ const wi = ({
14254
14259
  const U = ye.useCallback((M) => {
14255
14260
  r == null || r(M), A(M);
14256
14261
  }, [r, A]);
14257
- if (d === "loading" || w)
14262
+ if (d === "loading" || x)
14258
14263
  return /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
14259
14264
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14260
14265
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
@@ -14267,14 +14272,14 @@ const wi = ({
14267
14272
  if (d === "create_applicant") {
14268
14273
  const M = g || ((K = l.applicantForm) == null ? void 0 : K.workflowKey), Y = (O = l.applicantForm) == null ? void 0 : O.externalRefId;
14269
14274
  return m ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14270
- sn,
14275
+ cn,
14271
14276
  {
14272
14277
  workflowKey: M,
14273
14278
  externalRefId: Y,
14274
14279
  onSuccess: U
14275
14280
  }
14276
14281
  ) }) : /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14277
- on,
14282
+ ln,
14278
14283
  {
14279
14284
  workflowKey: M,
14280
14285
  externalRefId: Y,
@@ -14284,7 +14289,7 @@ const wi = ({
14284
14289
  ) });
14285
14290
  }
14286
14291
  return u ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14287
- dn,
14292
+ mn,
14288
14293
  {
14289
14294
  applicantId: u,
14290
14295
  onComplete: t,
@@ -14361,8 +14366,8 @@ export {
14361
14366
  Le as CardHeader,
14362
14367
  Xe as Checkbox,
14363
14368
  ut as CountriesType,
14364
- on as CreateApplicantForm,
14365
- sn as CreateCompanyApplicantForm,
14369
+ ln as CreateApplicantForm,
14370
+ cn as CreateCompanyApplicantForm,
14366
14371
  Xi as CriteriaBuiltInType,
14367
14372
  Ji as DEFAULT_COMPANY_VISIBLE_FIELDS,
14368
14373
  er as DEFAULT_VISIBLE_FIELDS,
@@ -14388,8 +14393,8 @@ export {
14388
14393
  Hi as KycProcessStatus,
14389
14394
  Ci as KycStatus,
14390
14395
  hi as KycStatusDisplay,
14391
- dn as KycWorkflow,
14392
- pn as LanguagePicker,
14396
+ mn as KycWorkflow,
14397
+ Xa as LanguagePicker,
14393
14398
  Ga as Logo,
14394
14399
  Fn as MetaKYC,
14395
14400
  Ai as MetaKYCContext,
@@ -14451,13 +14456,13 @@ export {
14451
14456
  Nn as isScriptLoaded,
14452
14457
  Ti as loadScript,
14453
14458
  _ as logger,
14454
- xr as minimalTheme,
14459
+ wr as minimalTheme,
14455
14460
  br as modernTheme,
14456
14461
  Rn as removeScript,
14457
14462
  ie as resolveDisplayText,
14458
14463
  En as saveApplicantId,
14459
14464
  na as saveWorkflowState,
14460
- wr as themePresets,
14465
+ xr as themePresets,
14461
14466
  Ii as useApplicant,
14462
14467
  jn as useAppropriatenessTest,
14463
14468
  ma as useIdentityVerification,