@incodetech/web 0.0.0-dev-20260323-d29613f → 0.0.0-dev-20260324-90ddcfd

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.
@@ -1,7 +1,7 @@
1
- import { u as l, d as _t, b as F, S as X, B as Z, V as Ot, I as Ct, a as It, c as qt, i as Vt } from "../button-Yr39X4SE.js";
2
- import { createOrchestratedFlowManager as zt, getRequiredWasmPipelines as Et } from "@incodetech/core/flow";
3
- import { Q as Ht, d as _, k as ne, b as Kt, y as L, P as Gt, z as jt, q as x, A as Le } from "../vendor-preact--mDTxXnt.js";
4
- import { api as yt, warmupWasm as Yt } from "@incodetech/core";
1
+ import { u as l, d as _t, b as F, S as X, B as Z, V as Ot, I as wt, a as It, c as qt, i as Vt } from "../button-Yr39X4SE.js";
2
+ import { createOrchestratedFlowManager as zt, getRequiredWasmPipelines as yt } from "@incodetech/core/flow";
3
+ import { Q as Ht, d as _, k as ne, b as Kt, y as L, P as Gt, z as Yt, q as x, A as Le } from "../vendor-preact--mDTxXnt.js";
4
+ import { api as Et, warmupWasm as jt } from "@incodetech/core";
5
5
  import { s as te } from "../uiConfig-CKJmKRCo.js";
6
6
  import { r as Tt } from "../incodeModule-Bxzkb7nW.js";
7
7
  import { S as J } from "../spinner-Djok6FY8.js";
@@ -22,13 +22,14 @@ import { authenticationMachine as rn } from "@incodetech/core/authentication";
22
22
  import { curpValidationMachine as on } from "@incodetech/core/curp-validation";
23
23
  import { governmentValidationMachine as sn } from "@incodetech/core/government-validation";
24
24
  import { consentMachine as an } from "@incodetech/core/consent";
25
- import { setup as cn } from "../index.es.js";
26
- const bt = Ht(null), Fe = () => {
27
- const e = Kt(bt);
25
+ import { mandatoryConsentMachine as cn } from "@incodetech/core/mandatory-consent";
26
+ import { setup as ln } from "../index.es.js";
27
+ const Rt = Ht(null), Fe = () => {
28
+ const e = Kt(Rt);
28
29
  if (!e)
29
30
  throw new Error("Tabs compound components must be used within <Tabs>");
30
31
  return e;
31
- }, ln = ({
32
+ }, un = ({
32
33
  defaultValue: e,
33
34
  listClassName: t,
34
35
  triggerClassName: i,
@@ -37,7 +38,7 @@ const bt = Ht(null), Fe = () => {
37
38
  }) => {
38
39
  const [o, a] = _(e);
39
40
  return /* @__PURE__ */ l(
40
- bt.Provider,
41
+ Rt.Provider,
41
42
  {
42
43
  value: {
43
44
  activeValue: o,
@@ -49,10 +50,10 @@ const bt = Ht(null), Fe = () => {
49
50
  children: n
50
51
  }
51
52
  );
52
- }, un = ({ children: e }) => {
53
+ }, dn = ({ children: e }) => {
53
54
  const { listClassName: t } = Fe();
54
55
  return /* @__PURE__ */ l("div", { class: t, children: e });
55
- }, dn = ({ value: e, children: t }) => {
56
+ }, fn = ({ value: e, children: t }) => {
56
57
  const {
57
58
  activeValue: i,
58
59
  setActiveValue: r,
@@ -71,14 +72,14 @@ const bt = Ht(null), Fe = () => {
71
72
  children: t
72
73
  }
73
74
  );
74
- }, fn = ({ value: e, children: t }) => {
75
+ }, hn = ({ value: e, children: t }) => {
75
76
  const { activeValue: i } = Fe();
76
77
  return i !== e ? null : /* @__PURE__ */ l(ne, { children: t });
77
- }, G = Object.assign(ln, {
78
- List: un,
79
- Trigger: dn,
80
- Content: fn
81
- }), hn = ({ logoSrc: e }) => {
78
+ }, G = Object.assign(un, {
79
+ List: dn,
80
+ Trigger: fn,
81
+ Content: hn
82
+ }), gn = ({ logoSrc: e }) => {
82
83
  const { t } = F();
83
84
  return /* @__PURE__ */ l("header", { class: "IncodeRedirectHeader", children: [
84
85
  /* @__PURE__ */ l("div", { class: "IncodeRedirectLogoWrapper", children: /* @__PURE__ */ l("img", { src: e, alt: "Logo", class: "IncodeRedirectLogo" }) }),
@@ -87,7 +88,7 @@ const bt = Ht(null), Fe = () => {
87
88
  /* @__PURE__ */ l(X, { size: 12 }),
88
89
  /* @__PURE__ */ l("p", { class: "IncodeRedirectSubtitle", children: t("v2.redirectToMobile.subtitle") })
89
90
  ] });
90
- }, gn = ({
91
+ }, mn = ({
91
92
  addContinueToDesktop: e,
92
93
  onContinueOnDesktop: t
93
94
  }) => {
@@ -96,15 +97,15 @@ const bt = Ht(null), Fe = () => {
96
97
  e ? /* @__PURE__ */ l(Z, { variant: "link", onClick: t, children: i("redirect.continueOnDesktop") }) : null,
97
98
  /* @__PURE__ */ l(Ot, {})
98
99
  ] });
99
- }, mn = ({ visible: e }) => {
100
+ }, pn = ({ visible: e }) => {
100
101
  const { t } = F();
101
102
  return e ? /* @__PURE__ */ l("div", { class: "IncodeRedirectToast", children: [
102
103
  /* @__PURE__ */ l(Mt, { size: 24 }),
103
104
  /* @__PURE__ */ l("span", { class: "IncodeRedirectToastText", children: t("redirect.linkResent") })
104
105
  ] }) : null;
105
106
  };
106
- var j = {}, ce, ze;
107
- function pn() {
107
+ var Y = {}, ce, ze;
108
+ function Cn() {
108
109
  return ze || (ze = 1, ce = function() {
109
110
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
110
111
  }), ce;
@@ -241,10 +242,10 @@ function wn() {
241
242
  }
242
243
  }, de = e, de;
243
244
  }
244
- var fe, je;
245
- function Cn() {
246
- if (je) return fe;
247
- je = 1;
245
+ var fe, Ye;
246
+ function In() {
247
+ if (Ye) return fe;
248
+ Ye = 1;
248
249
  function e(t) {
249
250
  if (!t || t < 1)
250
251
  throw new Error("BitMatrix size must be defined and greater than 0");
@@ -261,9 +262,9 @@ function Cn() {
261
262
  return this.reservedBit[t * this.size + i];
262
263
  }, fe = e, fe;
263
264
  }
264
- var he = {}, Ye;
265
- function In() {
266
- return Ye || (Ye = 1, (function(e) {
265
+ var he = {}, je;
266
+ function yn() {
267
+ return je || (je = 1, (function(e) {
267
268
  const t = z().getSymbolSize;
268
269
  e.getRowColCoords = function(r) {
269
270
  if (r === 1) return [];
@@ -300,7 +301,7 @@ function En() {
300
301
  }, ge;
301
302
  }
302
303
  var me = {}, Je;
303
- function yn() {
304
+ function Tn() {
304
305
  return Je || (Je = 1, (function(e) {
305
306
  e.Patterns = {
306
307
  PATTERN000: 0,
@@ -398,7 +399,7 @@ function yn() {
398
399
  })(me)), me;
399
400
  }
400
401
  var ee = {}, Qe;
401
- function Rt() {
402
+ function bt() {
402
403
  if (Qe) return ee;
403
404
  Qe = 1;
404
405
  const e = Ue(), t = [
@@ -755,7 +756,7 @@ function Rt() {
755
756
  }, ee;
756
757
  }
757
758
  var pe = {}, W = {}, We;
758
- function Tn() {
759
+ function Mn() {
759
760
  if (We) return W;
760
761
  We = 1;
761
762
  const e = new Uint8Array(512), t = new Uint8Array(256);
@@ -775,9 +776,9 @@ function Tn() {
775
776
  }, W;
776
777
  }
777
778
  var Xe;
778
- function Mn() {
779
+ function Rn() {
779
780
  return Xe || (Xe = 1, (function(e) {
780
- const t = Tn();
781
+ const t = Mn();
781
782
  e.mul = function(r, n) {
782
783
  const o = new Uint8Array(r.length + n.length - 1);
783
784
  for (let a = 0; a < r.length; a++)
@@ -803,11 +804,11 @@ function Mn() {
803
804
  };
804
805
  })(pe)), pe;
805
806
  }
806
- var we, Ze;
807
+ var Ce, Ze;
807
808
  function bn() {
808
- if (Ze) return we;
809
+ if (Ze) return Ce;
809
810
  Ze = 1;
810
- const e = Mn();
811
+ const e = Rn();
811
812
  function t(i) {
812
813
  this.genPoly = void 0, this.degree = i, this.degree && this.initialize(this.degree);
813
814
  }
@@ -824,13 +825,13 @@ function bn() {
824
825
  return c.set(o, a), c;
825
826
  }
826
827
  return o;
827
- }, we = t, we;
828
+ }, Ce = t, Ce;
828
829
  }
829
- var Ce = {}, Ie = {}, Ee = {}, $e;
830
+ var we = {}, Ie = {}, ye = {}, $e;
830
831
  function St() {
831
- return $e || ($e = 1, Ee.isValid = function(t) {
832
+ return $e || ($e = 1, ye.isValid = function(t) {
832
833
  return !isNaN(t) && t >= 1 && t <= 40;
833
- }), Ee;
834
+ }), ye;
834
835
  }
835
836
  var D = {}, et;
836
837
  function At() {
@@ -914,9 +915,9 @@ function H() {
914
915
  })(Ie)), Ie;
915
916
  }
916
917
  var nt;
917
- function Rn() {
918
+ function Sn() {
918
919
  return nt || (nt = 1, (function(e) {
919
- const t = z(), i = Rt(), r = Ue(), n = H(), o = St(), a = 7973, c = t.getBCHDigit(a);
920
+ const t = z(), i = bt(), r = Ue(), n = H(), o = St(), a = 7973, c = t.getBCHDigit(a);
920
921
  function s(d, f, M) {
921
922
  for (let I = 1; I <= 40; I++)
922
923
  if (f <= e.getCapacity(I, M, d))
@@ -943,9 +944,9 @@ function Rn() {
943
944
  if (!o.isValid(f))
944
945
  throw new Error("Invalid QR Code version");
945
946
  typeof I > "u" && (I = n.BYTE);
946
- const P = t.getSymbolTotalCodewords(f), A = i.getTotalCodewordsCount(f, M), E = (P - A) * 8;
947
- if (I === n.MIXED) return E;
948
- const m = E - u(I, f);
947
+ const P = t.getSymbolTotalCodewords(f), A = i.getTotalCodewordsCount(f, M), y = (P - A) * 8;
948
+ if (I === n.MIXED) return y;
949
+ const m = y - u(I, f);
949
950
  switch (I) {
950
951
  case n.NUMERIC:
951
952
  return Math.floor(m / 10 * 3);
@@ -977,23 +978,23 @@ function Rn() {
977
978
  M ^= a << t.getBCHDigit(M) - c;
978
979
  return f << 12 | M;
979
980
  };
980
- })(Ce)), Ce;
981
+ })(we)), we;
981
982
  }
982
- var ye = {}, rt;
983
- function Sn() {
984
- if (rt) return ye;
983
+ var Ee = {}, rt;
984
+ function An() {
985
+ if (rt) return Ee;
985
986
  rt = 1;
986
987
  const e = z(), t = 1335, i = 21522, r = e.getBCHDigit(t);
987
- return ye.getEncodedBits = function(o, a) {
988
+ return Ee.getEncodedBits = function(o, a) {
988
989
  const c = o.bit << 3 | a;
989
990
  let s = c << 10;
990
991
  for (; e.getBCHDigit(s) - r >= 0; )
991
992
  s ^= t << e.getBCHDigit(s) - r;
992
993
  return (c << 10 | s) ^ i;
993
- }, ye;
994
+ }, Ee;
994
995
  }
995
996
  var Te = {}, Me, ot;
996
- function An() {
997
+ function Nn() {
997
998
  if (ot) return Me;
998
999
  ot = 1;
999
1000
  const e = H();
@@ -1014,9 +1015,9 @@ function An() {
1014
1015
  c > 0 && (o = this.data.substr(n), a = parseInt(o, 10), r.put(a, c * 3 + 1));
1015
1016
  }, Me = t, Me;
1016
1017
  }
1017
- var be, it;
1018
+ var Re, it;
1018
1019
  function vn() {
1019
- if (it) return be;
1020
+ if (it) return Re;
1020
1021
  it = 1;
1021
1022
  const e = H(), t = [
1022
1023
  "0",
@@ -1081,11 +1082,11 @@ function vn() {
1081
1082
  a += t.indexOf(this.data[o + 1]), n.put(a, 11);
1082
1083
  }
1083
1084
  this.data.length % 2 && n.put(t.indexOf(this.data[o]), 6);
1084
- }, be = i, be;
1085
+ }, Re = i, Re;
1085
1086
  }
1086
- var Re, st;
1087
- function Nn() {
1088
- if (st) return Re;
1087
+ var be, st;
1088
+ function Bn() {
1089
+ if (st) return be;
1089
1090
  st = 1;
1090
1091
  const e = H();
1091
1092
  function t(i) {
@@ -1100,10 +1101,10 @@ function Nn() {
1100
1101
  }, t.prototype.write = function(i) {
1101
1102
  for (let r = 0, n = this.data.length; r < n; r++)
1102
1103
  i.put(this.data[r], 8);
1103
- }, Re = t, Re;
1104
+ }, be = t, be;
1104
1105
  }
1105
1106
  var Se, at;
1106
- function Bn() {
1107
+ function Pn() {
1107
1108
  if (at) return Se;
1108
1109
  at = 1;
1109
1110
  const e = H(), t = z();
@@ -1134,7 +1135,7 @@ Make sure your charset is UTF-8`
1134
1135
  }, Se = i, Se;
1135
1136
  }
1136
1137
  var Ae = { exports: {} }, ct;
1137
- function Pn() {
1138
+ function Ln() {
1138
1139
  return ct || (ct = 1, (function(e) {
1139
1140
  var t = {
1140
1141
  single_source_shortest_paths: function(i, r, n) {
@@ -1202,39 +1203,39 @@ function Pn() {
1202
1203
  })(Ae)), Ae.exports;
1203
1204
  }
1204
1205
  var lt;
1205
- function Ln() {
1206
+ function Dn() {
1206
1207
  return lt || (lt = 1, (function(e) {
1207
- const t = H(), i = An(), r = vn(), n = Nn(), o = Bn(), a = At(), c = z(), s = Pn();
1208
+ const t = H(), i = Nn(), r = vn(), n = Bn(), o = Pn(), a = At(), c = z(), s = Ln();
1208
1209
  function u(A) {
1209
1210
  return unescape(encodeURIComponent(A)).length;
1210
1211
  }
1211
- function h(A, E, m) {
1212
+ function h(A, y, m) {
1212
1213
  const p = [];
1213
1214
  let B;
1214
1215
  for (; (B = A.exec(m)) !== null; )
1215
1216
  p.push({
1216
1217
  data: B[0],
1217
1218
  index: B.index,
1218
- mode: E,
1219
+ mode: y,
1219
1220
  length: B[0].length
1220
1221
  });
1221
1222
  return p;
1222
1223
  }
1223
1224
  function g(A) {
1224
- const E = h(a.NUMERIC, t.NUMERIC, A), m = h(a.ALPHANUMERIC, t.ALPHANUMERIC, A);
1225
+ const y = h(a.NUMERIC, t.NUMERIC, A), m = h(a.ALPHANUMERIC, t.ALPHANUMERIC, A);
1225
1226
  let p, B;
1226
- return c.isKanjiModeEnabled() ? (p = h(a.BYTE, t.BYTE, A), B = h(a.KANJI, t.KANJI, A)) : (p = h(a.BYTE_KANJI, t.BYTE, A), B = []), E.concat(m, p, B).sort(function(R, b) {
1227
- return R.index - b.index;
1228
- }).map(function(R) {
1227
+ return c.isKanjiModeEnabled() ? (p = h(a.BYTE, t.BYTE, A), B = h(a.KANJI, t.KANJI, A)) : (p = h(a.BYTE_KANJI, t.BYTE, A), B = []), y.concat(m, p, B).sort(function(b, R) {
1228
+ return b.index - R.index;
1229
+ }).map(function(b) {
1229
1230
  return {
1230
- data: R.data,
1231
- mode: R.mode,
1232
- length: R.length
1231
+ data: b.data,
1232
+ mode: b.mode,
1233
+ length: b.length
1233
1234
  };
1234
1235
  });
1235
1236
  }
1236
- function d(A, E) {
1237
- switch (E) {
1237
+ function d(A, y) {
1238
+ switch (y) {
1238
1239
  case t.NUMERIC:
1239
1240
  return i.getBitsLength(A);
1240
1241
  case t.ALPHANUMERIC:
@@ -1246,66 +1247,66 @@ function Ln() {
1246
1247
  }
1247
1248
  }
1248
1249
  function f(A) {
1249
- return A.reduce(function(E, m) {
1250
- const p = E.length - 1 >= 0 ? E[E.length - 1] : null;
1251
- return p && p.mode === m.mode ? (E[E.length - 1].data += m.data, E) : (E.push(m), E);
1250
+ return A.reduce(function(y, m) {
1251
+ const p = y.length - 1 >= 0 ? y[y.length - 1] : null;
1252
+ return p && p.mode === m.mode ? (y[y.length - 1].data += m.data, y) : (y.push(m), y);
1252
1253
  }, []);
1253
1254
  }
1254
1255
  function M(A) {
1255
- const E = [];
1256
+ const y = [];
1256
1257
  for (let m = 0; m < A.length; m++) {
1257
1258
  const p = A[m];
1258
1259
  switch (p.mode) {
1259
1260
  case t.NUMERIC:
1260
- E.push([
1261
+ y.push([
1261
1262
  p,
1262
1263
  { data: p.data, mode: t.ALPHANUMERIC, length: p.length },
1263
1264
  { data: p.data, mode: t.BYTE, length: p.length }
1264
1265
  ]);
1265
1266
  break;
1266
1267
  case t.ALPHANUMERIC:
1267
- E.push([
1268
+ y.push([
1268
1269
  p,
1269
1270
  { data: p.data, mode: t.BYTE, length: p.length }
1270
1271
  ]);
1271
1272
  break;
1272
1273
  case t.KANJI:
1273
- E.push([
1274
+ y.push([
1274
1275
  p,
1275
1276
  { data: p.data, mode: t.BYTE, length: u(p.data) }
1276
1277
  ]);
1277
1278
  break;
1278
1279
  case t.BYTE:
1279
- E.push([
1280
+ y.push([
1280
1281
  { data: p.data, mode: t.BYTE, length: u(p.data) }
1281
1282
  ]);
1282
1283
  }
1283
1284
  }
1284
- return E;
1285
+ return y;
1285
1286
  }
1286
- function I(A, E) {
1287
+ function I(A, y) {
1287
1288
  const m = {}, p = { start: {} };
1288
1289
  let B = ["start"];
1289
- for (let w = 0; w < A.length; w++) {
1290
- const R = A[w], b = [];
1291
- for (let C = 0; C < R.length; C++) {
1292
- const v = R[C], y = "" + w + C;
1293
- b.push(y), m[y] = { node: v, lastCount: 0 }, p[y] = {};
1290
+ for (let C = 0; C < A.length; C++) {
1291
+ const b = A[C], R = [];
1292
+ for (let w = 0; w < b.length; w++) {
1293
+ const N = b[w], E = "" + C + w;
1294
+ R.push(E), m[E] = { node: N, lastCount: 0 }, p[E] = {};
1294
1295
  for (let S = 0; S < B.length; S++) {
1295
1296
  const T = B[S];
1296
- m[T] && m[T].node.mode === v.mode ? (p[T][y] = d(m[T].lastCount + v.length, v.mode) - d(m[T].lastCount, v.mode), m[T].lastCount += v.length) : (m[T] && (m[T].lastCount = v.length), p[T][y] = d(v.length, v.mode) + 4 + t.getCharCountIndicator(v.mode, E));
1297
+ m[T] && m[T].node.mode === N.mode ? (p[T][E] = d(m[T].lastCount + N.length, N.mode) - d(m[T].lastCount, N.mode), m[T].lastCount += N.length) : (m[T] && (m[T].lastCount = N.length), p[T][E] = d(N.length, N.mode) + 4 + t.getCharCountIndicator(N.mode, y));
1297
1298
  }
1298
1299
  }
1299
- B = b;
1300
+ B = R;
1300
1301
  }
1301
- for (let w = 0; w < B.length; w++)
1302
- p[B[w]].end = 0;
1302
+ for (let C = 0; C < B.length; C++)
1303
+ p[B[C]].end = 0;
1303
1304
  return { map: p, table: m };
1304
1305
  }
1305
- function P(A, E) {
1306
+ function P(A, y) {
1306
1307
  let m;
1307
1308
  const p = t.getBestModeForData(A);
1308
- if (m = t.from(E, p), m !== t.BYTE && m.bit < p.bit)
1309
+ if (m = t.from(y, p), m !== t.BYTE && m.bit < p.bit)
1309
1310
  throw new Error('"' + A + '" cannot be encoded with mode ' + t.toString(m) + `.
1310
1311
  Suggested mode is: ` + t.toString(p));
1311
1312
  switch (m === t.KANJI && !c.isKanjiModeEnabled() && (m = t.BYTE), m) {
@@ -1319,106 +1320,106 @@ function Ln() {
1319
1320
  return new n(A);
1320
1321
  }
1321
1322
  }
1322
- e.fromArray = function(E) {
1323
- return E.reduce(function(m, p) {
1323
+ e.fromArray = function(y) {
1324
+ return y.reduce(function(m, p) {
1324
1325
  return typeof p == "string" ? m.push(P(p, null)) : p.data && m.push(P(p.data, p.mode)), m;
1325
1326
  }, []);
1326
- }, e.fromString = function(E, m) {
1327
- const p = g(E, c.isKanjiModeEnabled()), B = M(p), w = I(B, m), R = s.find_path(w.map, "start", "end"), b = [];
1328
- for (let C = 1; C < R.length - 1; C++)
1329
- b.push(w.table[R[C]].node);
1330
- return e.fromArray(f(b));
1331
- }, e.rawSplit = function(E) {
1327
+ }, e.fromString = function(y, m) {
1328
+ const p = g(y, c.isKanjiModeEnabled()), B = M(p), C = I(B, m), b = s.find_path(C.map, "start", "end"), R = [];
1329
+ for (let w = 1; w < b.length - 1; w++)
1330
+ R.push(C.table[b[w]].node);
1331
+ return e.fromArray(f(R));
1332
+ }, e.rawSplit = function(y) {
1332
1333
  return e.fromArray(
1333
- g(E, c.isKanjiModeEnabled())
1334
+ g(y, c.isKanjiModeEnabled())
1334
1335
  );
1335
1336
  };
1336
1337
  })(Te)), Te;
1337
1338
  }
1338
1339
  var ut;
1339
- function Dn() {
1340
+ function Fn() {
1340
1341
  if (ut) return le;
1341
1342
  ut = 1;
1342
- const e = z(), t = Ue(), i = wn(), r = Cn(), n = In(), o = En(), a = yn(), c = Rt(), s = bn(), u = Rn(), h = Sn(), g = H(), d = Ln();
1343
- function f(w, R) {
1344
- const b = w.size, C = o.getPositions(R);
1345
- for (let v = 0; v < C.length; v++) {
1346
- const y = C[v][0], S = C[v][1];
1343
+ const e = z(), t = Ue(), i = wn(), r = In(), n = yn(), o = En(), a = Tn(), c = bt(), s = bn(), u = Sn(), h = An(), g = H(), d = Dn();
1344
+ function f(C, b) {
1345
+ const R = C.size, w = o.getPositions(b);
1346
+ for (let N = 0; N < w.length; N++) {
1347
+ const E = w[N][0], S = w[N][1];
1347
1348
  for (let T = -1; T <= 7; T++)
1348
- if (!(y + T <= -1 || b <= y + T))
1349
- for (let N = -1; N <= 7; N++)
1350
- S + N <= -1 || b <= S + N || (T >= 0 && T <= 6 && (N === 0 || N === 6) || N >= 0 && N <= 6 && (T === 0 || T === 6) || T >= 2 && T <= 4 && N >= 2 && N <= 4 ? w.set(y + T, S + N, !0, !0) : w.set(y + T, S + N, !1, !0));
1349
+ if (!(E + T <= -1 || R <= E + T))
1350
+ for (let v = -1; v <= 7; v++)
1351
+ S + v <= -1 || R <= S + v || (T >= 0 && T <= 6 && (v === 0 || v === 6) || v >= 0 && v <= 6 && (T === 0 || T === 6) || T >= 2 && T <= 4 && v >= 2 && v <= 4 ? C.set(E + T, S + v, !0, !0) : C.set(E + T, S + v, !1, !0));
1351
1352
  }
1352
1353
  }
1353
- function M(w) {
1354
- const R = w.size;
1355
- for (let b = 8; b < R - 8; b++) {
1356
- const C = b % 2 === 0;
1357
- w.set(b, 6, C, !0), w.set(6, b, C, !0);
1354
+ function M(C) {
1355
+ const b = C.size;
1356
+ for (let R = 8; R < b - 8; R++) {
1357
+ const w = R % 2 === 0;
1358
+ C.set(R, 6, w, !0), C.set(6, R, w, !0);
1358
1359
  }
1359
1360
  }
1360
- function I(w, R) {
1361
- const b = n.getPositions(R);
1362
- for (let C = 0; C < b.length; C++) {
1363
- const v = b[C][0], y = b[C][1];
1361
+ function I(C, b) {
1362
+ const R = n.getPositions(b);
1363
+ for (let w = 0; w < R.length; w++) {
1364
+ const N = R[w][0], E = R[w][1];
1364
1365
  for (let S = -2; S <= 2; S++)
1365
1366
  for (let T = -2; T <= 2; T++)
1366
- S === -2 || S === 2 || T === -2 || T === 2 || S === 0 && T === 0 ? w.set(v + S, y + T, !0, !0) : w.set(v + S, y + T, !1, !0);
1367
+ S === -2 || S === 2 || T === -2 || T === 2 || S === 0 && T === 0 ? C.set(N + S, E + T, !0, !0) : C.set(N + S, E + T, !1, !0);
1367
1368
  }
1368
1369
  }
1369
- function P(w, R) {
1370
- const b = w.size, C = u.getEncodedBits(R);
1371
- let v, y, S;
1370
+ function P(C, b) {
1371
+ const R = C.size, w = u.getEncodedBits(b);
1372
+ let N, E, S;
1372
1373
  for (let T = 0; T < 18; T++)
1373
- v = Math.floor(T / 3), y = T % 3 + b - 8 - 3, S = (C >> T & 1) === 1, w.set(v, y, S, !0), w.set(y, v, S, !0);
1374
+ N = Math.floor(T / 3), E = T % 3 + R - 8 - 3, S = (w >> T & 1) === 1, C.set(N, E, S, !0), C.set(E, N, S, !0);
1374
1375
  }
1375
- function A(w, R, b) {
1376
- const C = w.size, v = h.getEncodedBits(R, b);
1377
- let y, S;
1378
- for (y = 0; y < 15; y++)
1379
- S = (v >> y & 1) === 1, y < 6 ? w.set(y, 8, S, !0) : y < 8 ? w.set(y + 1, 8, S, !0) : w.set(C - 15 + y, 8, S, !0), y < 8 ? w.set(8, C - y - 1, S, !0) : y < 9 ? w.set(8, 15 - y - 1 + 1, S, !0) : w.set(8, 15 - y - 1, S, !0);
1380
- w.set(C - 8, 8, 1, !0);
1376
+ function A(C, b, R) {
1377
+ const w = C.size, N = h.getEncodedBits(b, R);
1378
+ let E, S;
1379
+ for (E = 0; E < 15; E++)
1380
+ S = (N >> E & 1) === 1, E < 6 ? C.set(E, 8, S, !0) : E < 8 ? C.set(E + 1, 8, S, !0) : C.set(w - 15 + E, 8, S, !0), E < 8 ? C.set(8, w - E - 1, S, !0) : E < 9 ? C.set(8, 15 - E - 1 + 1, S, !0) : C.set(8, 15 - E - 1, S, !0);
1381
+ C.set(w - 8, 8, 1, !0);
1381
1382
  }
1382
- function E(w, R) {
1383
- const b = w.size;
1384
- let C = -1, v = b - 1, y = 7, S = 0;
1385
- for (let T = b - 1; T > 0; T -= 2)
1383
+ function y(C, b) {
1384
+ const R = C.size;
1385
+ let w = -1, N = R - 1, E = 7, S = 0;
1386
+ for (let T = R - 1; T > 0; T -= 2)
1386
1387
  for (T === 6 && T--; ; ) {
1387
- for (let N = 0; N < 2; N++)
1388
- if (!w.isReserved(v, T - N)) {
1388
+ for (let v = 0; v < 2; v++)
1389
+ if (!C.isReserved(N, T - v)) {
1389
1390
  let O = !1;
1390
- S < R.length && (O = (R[S] >>> y & 1) === 1), w.set(v, T - N, O), y--, y === -1 && (S++, y = 7);
1391
+ S < b.length && (O = (b[S] >>> E & 1) === 1), C.set(N, T - v, O), E--, E === -1 && (S++, E = 7);
1391
1392
  }
1392
- if (v += C, v < 0 || b <= v) {
1393
- v -= C, C = -C;
1393
+ if (N += w, N < 0 || R <= N) {
1394
+ N -= w, w = -w;
1394
1395
  break;
1395
1396
  }
1396
1397
  }
1397
1398
  }
1398
- function m(w, R, b) {
1399
- const C = new i();
1400
- b.forEach(function(N) {
1401
- C.put(N.mode.bit, 4), C.put(N.getLength(), g.getCharCountIndicator(N.mode, w)), N.write(C);
1399
+ function m(C, b, R) {
1400
+ const w = new i();
1401
+ R.forEach(function(v) {
1402
+ w.put(v.mode.bit, 4), w.put(v.getLength(), g.getCharCountIndicator(v.mode, C)), v.write(w);
1402
1403
  });
1403
- const v = e.getSymbolTotalCodewords(w), y = c.getTotalCodewordsCount(w, R), S = (v - y) * 8;
1404
- for (C.getLengthInBits() + 4 <= S && C.put(0, 4); C.getLengthInBits() % 8 !== 0; )
1405
- C.putBit(0);
1406
- const T = (S - C.getLengthInBits()) / 8;
1407
- for (let N = 0; N < T; N++)
1408
- C.put(N % 2 ? 17 : 236, 8);
1409
- return p(C, w, R);
1404
+ const N = e.getSymbolTotalCodewords(C), E = c.getTotalCodewordsCount(C, b), S = (N - E) * 8;
1405
+ for (w.getLengthInBits() + 4 <= S && w.put(0, 4); w.getLengthInBits() % 8 !== 0; )
1406
+ w.putBit(0);
1407
+ const T = (S - w.getLengthInBits()) / 8;
1408
+ for (let v = 0; v < T; v++)
1409
+ w.put(v % 2 ? 17 : 236, 8);
1410
+ return p(w, C, b);
1410
1411
  }
1411
- function p(w, R, b) {
1412
- const C = e.getSymbolTotalCodewords(R), v = c.getTotalCodewordsCount(R, b), y = C - v, S = c.getBlocksCount(R, b), T = C % S, N = S - T, O = Math.floor(C / S), Q = Math.floor(y / S), Ft = Q + 1, _e = O - Q, Ut = new s(_e);
1412
+ function p(C, b, R) {
1413
+ const w = e.getSymbolTotalCodewords(b), N = c.getTotalCodewordsCount(b, R), E = w - N, S = c.getBlocksCount(b, R), T = w % S, v = S - T, O = Math.floor(w / S), Q = Math.floor(E / S), Ft = Q + 1, _e = O - Q, Ut = new s(_e);
1413
1414
  let re = 0;
1414
1415
  const $ = new Array(S), Oe = new Array(S);
1415
1416
  let oe = 0;
1416
- const kt = new Uint8Array(w.buffer);
1417
+ const kt = new Uint8Array(C.buffer);
1417
1418
  for (let K = 0; K < S; K++) {
1418
- const se = K < N ? Q : Ft;
1419
+ const se = K < v ? Q : Ft;
1419
1420
  $[K] = kt.slice(re, re + se), Oe[K] = Ut.encode($[K]), re += se, oe = Math.max(oe, se);
1420
1421
  }
1421
- const ie = new Uint8Array(C);
1422
+ const ie = new Uint8Array(w);
1422
1423
  let qe = 0, U, k;
1423
1424
  for (U = 0; U < oe; U++)
1424
1425
  for (k = 0; k < S; k++)
@@ -1428,52 +1429,52 @@ function Dn() {
1428
1429
  ie[qe++] = Oe[k][U];
1429
1430
  return ie;
1430
1431
  }
1431
- function B(w, R, b, C) {
1432
- let v;
1433
- if (Array.isArray(w))
1434
- v = d.fromArray(w);
1435
- else if (typeof w == "string") {
1436
- let O = R;
1432
+ function B(C, b, R, w) {
1433
+ let N;
1434
+ if (Array.isArray(C))
1435
+ N = d.fromArray(C);
1436
+ else if (typeof C == "string") {
1437
+ let O = b;
1437
1438
  if (!O) {
1438
- const Q = d.rawSplit(w);
1439
- O = u.getBestVersionForData(Q, b);
1439
+ const Q = d.rawSplit(C);
1440
+ O = u.getBestVersionForData(Q, R);
1440
1441
  }
1441
- v = d.fromString(w, O || 40);
1442
+ N = d.fromString(C, O || 40);
1442
1443
  } else
1443
1444
  throw new Error("Invalid data");
1444
- const y = u.getBestVersionForData(v, b);
1445
- if (!y)
1445
+ const E = u.getBestVersionForData(N, R);
1446
+ if (!E)
1446
1447
  throw new Error("The amount of data is too big to be stored in a QR Code");
1447
- if (!R)
1448
- R = y;
1449
- else if (R < y)
1448
+ if (!b)
1449
+ b = E;
1450
+ else if (b < E)
1450
1451
  throw new Error(
1451
1452
  `
1452
1453
  The chosen QR Code version cannot contain this amount of data.
1453
- Minimum version required to store current data is: ` + y + `.
1454
+ Minimum version required to store current data is: ` + E + `.
1454
1455
  `
1455
1456
  );
1456
- const S = m(R, b, v), T = e.getSymbolSize(R), N = new r(T);
1457
- return f(N, R), M(N), I(N, R), A(N, b, 0), R >= 7 && P(N, R), E(N, S), isNaN(C) && (C = a.getBestMask(
1458
- N,
1459
- A.bind(null, N, b)
1460
- )), a.applyMask(C, N), A(N, b, C), {
1461
- modules: N,
1462
- version: R,
1463
- errorCorrectionLevel: b,
1464
- maskPattern: C,
1465
- segments: v
1457
+ const S = m(b, R, N), T = e.getSymbolSize(b), v = new r(T);
1458
+ return f(v, b), M(v), I(v, b), A(v, R, 0), b >= 7 && P(v, b), y(v, S), isNaN(w) && (w = a.getBestMask(
1459
+ v,
1460
+ A.bind(null, v, R)
1461
+ )), a.applyMask(w, v), A(v, R, w), {
1462
+ modules: v,
1463
+ version: b,
1464
+ errorCorrectionLevel: R,
1465
+ maskPattern: w,
1466
+ segments: N
1466
1467
  };
1467
1468
  }
1468
- return le.create = function(R, b) {
1469
- if (typeof R > "u" || R === "")
1469
+ return le.create = function(b, R) {
1470
+ if (typeof b > "u" || b === "")
1470
1471
  throw new Error("No input text");
1471
- let C = t.M, v, y;
1472
- return typeof b < "u" && (C = t.from(b.errorCorrectionLevel, t.M), v = u.from(b.version), y = a.from(b.maskPattern), b.toSJISFunc && e.setToSJISFunction(b.toSJISFunc)), B(R, v, C, y);
1472
+ let w = t.M, N, E;
1473
+ return typeof R < "u" && (w = t.from(R.errorCorrectionLevel, t.M), N = u.from(R.version), E = a.from(R.maskPattern), R.toSJISFunc && e.setToSJISFunction(R.toSJISFunc)), B(b, N, w, E);
1473
1474
  }, le;
1474
1475
  }
1475
- var ve = {}, Ne = {}, dt;
1476
- function vt() {
1476
+ var Ne = {}, ve = {}, dt;
1477
+ function Nt() {
1477
1478
  return dt || (dt = 1, (function(e) {
1478
1479
  function t(i) {
1479
1480
  if (typeof i == "number" && (i = i.toString()), typeof i != "string")
@@ -1524,12 +1525,12 @@ function vt() {
1524
1525
  r[M++] = I.r, r[M++] = I.g, r[M++] = I.b, r[M] = I.a;
1525
1526
  }
1526
1527
  };
1527
- })(Ne)), Ne;
1528
+ })(ve)), ve;
1528
1529
  }
1529
1530
  var ft;
1530
- function Fn() {
1531
+ function Un() {
1531
1532
  return ft || (ft = 1, (function(e) {
1532
- const t = vt();
1533
+ const t = Nt();
1533
1534
  function i(n, o, a) {
1534
1535
  n.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = a, o.width = a, o.style.height = a + "px", o.style.width = a + "px";
1535
1536
  }
@@ -1551,13 +1552,13 @@ function Fn() {
1551
1552
  const u = e.render(o, a, s), h = s.type || "image/png", g = s.rendererOpts || {};
1552
1553
  return u.toDataURL(h, g.quality);
1553
1554
  };
1554
- })(ve)), ve;
1555
+ })(Ne)), Ne;
1555
1556
  }
1556
1557
  var Be = {}, ht;
1557
- function Un() {
1558
+ function kn() {
1558
1559
  if (ht) return Be;
1559
1560
  ht = 1;
1560
- const e = vt();
1561
+ const e = Nt();
1561
1562
  function t(n, o) {
1562
1563
  const a = n.a / 255, c = o + '="' + n.hex + '"';
1563
1564
  return a < 1 ? c + " " + o + '-opacity="' + a.toFixed(2).slice(1) + '"' : c;
@@ -1581,10 +1582,10 @@ function Un() {
1581
1582
  }, Be;
1582
1583
  }
1583
1584
  var gt;
1584
- function kn() {
1585
- if (gt) return j;
1585
+ function _n() {
1586
+ if (gt) return Y;
1586
1587
  gt = 1;
1587
- const e = pn(), t = Dn(), i = Fn(), r = Un();
1588
+ const e = Cn(), t = Fn(), i = Un(), r = kn();
1588
1589
  function n(o, a, c, s, u) {
1589
1590
  const h = [].slice.call(arguments, 1), g = h.length, d = typeof h[g - 1] == "function";
1590
1591
  if (!d && !e())
@@ -1612,12 +1613,12 @@ function kn() {
1612
1613
  u(f);
1613
1614
  }
1614
1615
  }
1615
- return j.create = t.create, j.toCanvas = n.bind(null, i.render), j.toDataURL = n.bind(null, i.renderToDataURL), j.toString = n.bind(null, function(o, a, c) {
1616
+ return Y.create = t.create, Y.toCanvas = n.bind(null, i.render), Y.toDataURL = n.bind(null, i.renderToDataURL), Y.toString = n.bind(null, function(o, a, c) {
1616
1617
  return r.render(o, c);
1617
- }), j;
1618
+ }), Y;
1618
1619
  }
1619
- var _n = kn();
1620
- const On = ({
1620
+ var On = _n();
1621
+ const qn = ({
1621
1622
  value: e,
1622
1623
  size: t = 150,
1623
1624
  bgColor: i = "#ffffff",
@@ -1625,7 +1626,7 @@ const On = ({
1625
1626
  }) => {
1626
1627
  const [n, o] = _("");
1627
1628
  return L(() => {
1628
- e && _n.toString(e, {
1629
+ e && On.toString(e, {
1629
1630
  type: "svg",
1630
1631
  width: t,
1631
1632
  margin: 0,
@@ -1641,13 +1642,13 @@ const On = ({
1641
1642
  dangerouslySetInnerHTML: { __html: n }
1642
1643
  }
1643
1644
  ) : null;
1644
- }, qn = ({ redirectUrl: e }) => {
1645
+ }, Vn = ({ redirectUrl: e }) => {
1645
1646
  const { t } = F();
1646
1647
  return /* @__PURE__ */ l(ne, { children: [
1647
1648
  /* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: t("v2.redirectToMobile.qr.description") }),
1648
- /* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(On, { value: e, size: 186 }) })
1649
+ /* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(qn, { value: e, size: 186 }) })
1649
1650
  ] });
1650
- }, Vn = ({
1651
+ }, zn = ({
1651
1652
  formattedPhone: e,
1652
1653
  onResend: t,
1653
1654
  onChangePhone: i
@@ -1672,9 +1673,9 @@ const On = ({
1672
1673
  }
1673
1674
  ) })
1674
1675
  ] });
1675
- }, zn = jt(
1676
+ }, Hn = Yt(
1676
1677
  () => import("../phoneInput-B7gKhoUa.js").then((e) => ({ default: e.PhoneInput }))
1677
- ), Hn = ({
1678
+ ), Kn = ({
1678
1679
  countryCode: e,
1679
1680
  phonePrefix: t,
1680
1681
  error: i,
@@ -1686,7 +1687,7 @@ const On = ({
1686
1687
  const { t: c } = F();
1687
1688
  return /* @__PURE__ */ l(ne, { children: [
1688
1689
  /* @__PURE__ */ l(Gt, { fallback: /* @__PURE__ */ l(J, {}), children: /* @__PURE__ */ l(
1689
- zn,
1690
+ Hn,
1690
1691
  {
1691
1692
  countryCode: e,
1692
1693
  phonePrefix: t,
@@ -1707,19 +1708,19 @@ const On = ({
1707
1708
  }
1708
1709
  )
1709
1710
  ] });
1710
- }, Kn = (e, t) => {
1711
+ }, Gn = (e, t) => {
1711
1712
  if (!e.startsWith(t)) return e;
1712
1713
  const i = e.slice(t.length);
1713
1714
  return `${t} ${i.replace(/(\d{3})(?=\d)/g, "$1 ")}`;
1714
- }, Gn = ({
1715
+ }, Yn = ({
1715
1716
  phonePrefix: e,
1716
1717
  smsSent: t,
1717
1718
  error: i,
1718
1719
  manager: r,
1719
1720
  onResend: n
1720
1721
  }) => {
1721
- const { t: o } = F(), [a, c] = _(e), [s, u] = _(!1), [h, g] = _(!1), d = Jt(e)?.code ?? "", f = Kn(a, e), M = x((E, m) => {
1722
- c(E), u(m);
1722
+ const { t: o } = F(), [a, c] = _(e), [s, u] = _(!1), [h, g] = _(!1), d = Jt(e)?.code ?? "", f = Gn(a, e), M = x((y, m) => {
1723
+ c(y), u(m);
1723
1724
  }, []), I = x(() => {
1724
1725
  g(!0), r.sendSms(a), g(!1);
1725
1726
  }, [r, a]), P = x(() => {
@@ -1730,14 +1731,14 @@ const On = ({
1730
1731
  return /* @__PURE__ */ l(ne, { children: [
1731
1732
  /* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: o("v2.redirectToMobile.sms.description") }),
1732
1733
  t ? /* @__PURE__ */ l(
1733
- Vn,
1734
+ zn,
1734
1735
  {
1735
1736
  formattedPhone: f,
1736
1737
  onResend: P,
1737
1738
  onChangePhone: A
1738
1739
  }
1739
1740
  ) : /* @__PURE__ */ l(
1740
- Hn,
1741
+ Kn,
1741
1742
  {
1742
1743
  countryCode: d,
1743
1744
  phonePrefix: e,
@@ -1765,9 +1766,9 @@ const On = ({
1765
1766
  a.continueOnDesktop();
1766
1767
  }, [a]);
1767
1768
  return /* @__PURE__ */ l("div", { class: "IncodeRedirectContainer", children: [
1768
- /* @__PURE__ */ l(mn, { visible: u }),
1769
+ /* @__PURE__ */ l(pn, { visible: u }),
1769
1770
  /* @__PURE__ */ l("div", { class: "IncodeRedirectCard", children: [
1770
- /* @__PURE__ */ l(hn, { logoSrc: c }),
1771
+ /* @__PURE__ */ l(gn, { logoSrc: c }),
1771
1772
  /* @__PURE__ */ l("div", { class: "IncodeRedirectOptions", children: /* @__PURE__ */ l(
1772
1773
  G,
1773
1774
  {
@@ -1780,9 +1781,9 @@ const On = ({
1780
1781
  /* @__PURE__ */ l(G.Trigger, { value: "qr", children: s("v2.redirectToMobile.tabs.0") }),
1781
1782
  r ? null : /* @__PURE__ */ l(G.Trigger, { value: "sms", children: s("v2.redirectToMobile.tabs.1") })
1782
1783
  ] }),
1783
- /* @__PURE__ */ l(G.Content, { value: "qr", children: /* @__PURE__ */ l(qn, { redirectUrl: e }) }),
1784
+ /* @__PURE__ */ l(G.Content, { value: "qr", children: /* @__PURE__ */ l(Vn, { redirectUrl: e }) }),
1784
1785
  r ? null : /* @__PURE__ */ l(G.Content, { value: "sms", children: /* @__PURE__ */ l(
1785
- Gn,
1786
+ Yn,
1786
1787
  {
1787
1788
  phonePrefix: t,
1788
1789
  smsSent: i,
@@ -1795,7 +1796,7 @@ const On = ({
1795
1796
  }
1796
1797
  ) }),
1797
1798
  /* @__PURE__ */ l(
1798
- gn,
1799
+ mn,
1799
1800
  {
1800
1801
  addContinueToDesktop: n,
1801
1802
  onContinueOnDesktop: d
@@ -1803,7 +1804,7 @@ const On = ({
1803
1804
  )
1804
1805
  ] })
1805
1806
  ] });
1806
- }, Yn = ({
1807
+ }, xn = ({
1807
1808
  title: e,
1808
1809
  subtitle: t,
1809
1810
  logoSrc: i
@@ -1814,7 +1815,7 @@ const On = ({
1814
1815
  n ? /* @__PURE__ */ l("h1", { class: "IncodeRedirectFinishedTitle", children: n }) : null,
1815
1816
  o ? /* @__PURE__ */ l("p", { class: "IncodeRedirectFinishedSubtitle", children: o }) : null
1816
1817
  ] });
1817
- }, xn = ({
1818
+ }, Jn = ({
1818
1819
  config: e,
1819
1820
  onFinish: t,
1820
1821
  onContinue: i,
@@ -1847,7 +1848,7 @@ const On = ({
1847
1848
  manager: o,
1848
1849
  logoSrc: a
1849
1850
  }
1850
- ) : n.status === "finished" ? /* @__PURE__ */ l(Yn, { logoSrc: a }) : null;
1851
+ ) : n.status === "finished" ? /* @__PURE__ */ l(xn, { logoSrc: a }) : null;
1851
1852
  return /* @__PURE__ */ l(
1852
1853
  "div",
1853
1854
  {
@@ -1856,13 +1857,13 @@ const On = ({
1856
1857
  children: s
1857
1858
  }
1858
1859
  );
1859
- }, Nt = ({
1860
+ }, vt = ({
1860
1861
  config: e,
1861
1862
  onFinish: t,
1862
1863
  onContinue: i,
1863
1864
  onError: r
1864
- }) => /* @__PURE__ */ l(Ct, { children: e ? /* @__PURE__ */ l(
1865
- xn,
1865
+ }) => /* @__PURE__ */ l(wt, { children: e ? /* @__PURE__ */ l(
1866
+ Jn,
1866
1867
  {
1867
1868
  config: e,
1868
1869
  onFinish: t,
@@ -1870,8 +1871,8 @@ const On = ({
1870
1871
  onError: r
1871
1872
  }
1872
1873
  ) : null });
1873
- Tt(Nt, "incode-redirect-to-mobile");
1874
- function Jn(e) {
1874
+ Tt(vt, "incode-redirect-to-mobile");
1875
+ function Qn(e) {
1875
1876
  let t = e.replace("#", "");
1876
1877
  t.length === 3 && (t = t.split("").map((g) => g + g).join(""));
1877
1878
  const i = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
@@ -1895,7 +1896,7 @@ function Jn(e) {
1895
1896
  }
1896
1897
  return { h: s * 360, s: u * 100, l: h * 100 };
1897
1898
  }
1898
- function Y(e, t, i) {
1899
+ function j(e, t, i) {
1899
1900
  const r = e / 360, n = t / 100, o = i / 100;
1900
1901
  let a, c, s;
1901
1902
  if (n === 0)
@@ -1910,24 +1911,24 @@ function Y(e, t, i) {
1910
1911
  };
1911
1912
  return `#${u(a)}${u(c)}${u(s)}`;
1912
1913
  }
1913
- function Qn(e) {
1914
- const t = Jn(e);
1914
+ function Wn(e) {
1915
+ const t = Qn(e);
1915
1916
  if (!t)
1916
1917
  throw new Error(`Invalid color format: ${e}`);
1917
1918
  return {
1918
- 50: Y(t.h, t.s, 95),
1919
- 200: Y(t.h, t.s, 80),
1920
- 300: Y(t.h, t.s, 65),
1921
- 400: Y(t.h, t.s, Math.min(100, t.l + 10)),
1919
+ 50: j(t.h, t.s, 95),
1920
+ 200: j(t.h, t.s, 80),
1921
+ 300: j(t.h, t.s, 65),
1922
+ 400: j(t.h, t.s, Math.min(100, t.l + 10)),
1922
1923
  500: e,
1923
- 600: Y(t.h, t.s, Math.max(0, t.l - 10)),
1924
- 900: Y(t.h, t.s, 20)
1924
+ 600: j(t.h, t.s, Math.max(0, t.l - 10)),
1925
+ 900: j(t.h, t.s, 20)
1925
1926
  };
1926
1927
  }
1927
- function Wn(e, t) {
1928
+ function Xn(e, t) {
1928
1929
  if (typeof document > "u")
1929
1930
  return;
1930
- const i = Qn(e);
1931
+ const i = Wn(e);
1931
1932
  let r = document.getElementById(
1932
1933
  "incode-theme"
1933
1934
  );
@@ -1947,11 +1948,11 @@ function Wn(e, t) {
1947
1948
  `;
1948
1949
  r.textContent = o;
1949
1950
  }
1950
- async function Xn() {
1951
- return (await yt.get("/omni/asset/fetch-all")).data;
1951
+ async function Zn() {
1952
+ return (await Et.get("/omni/asset/fetch-all")).data;
1952
1953
  }
1953
1954
  const mt = /* @__PURE__ */ new Map();
1954
- async function Zn(e) {
1955
+ async function $n(e) {
1955
1956
  if (e.startsWith("data:"))
1956
1957
  return e;
1957
1958
  const t = mt.get(e);
@@ -1963,8 +1964,8 @@ async function Zn(e) {
1963
1964
  });
1964
1965
  return mt.set(e, n), n;
1965
1966
  }
1966
- async function $n() {
1967
- const e = await Xn();
1967
+ async function er() {
1968
+ const e = await Zn();
1968
1969
  if (!e.theme)
1969
1970
  throw new Error("Theme URL not found in assets response");
1970
1971
  const t = e.theme, i = t.startsWith("http://") || t.startsWith("https://");
@@ -1975,17 +1976,17 @@ async function $n() {
1975
1976
  throw new Error(`Failed to fetch theme: ${a.statusText}`);
1976
1977
  r = await a.json();
1977
1978
  } else
1978
- r = (await yt.get(t)).data;
1979
+ r = (await Et.get(t)).data;
1979
1980
  const n = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo;
1980
1981
  let o = n;
1981
- return n && (o = await Zn(n)), {
1982
+ return n && (o = await $n(n)), {
1982
1983
  ...r,
1983
1984
  logo: o
1984
1985
  };
1985
1986
  }
1986
- async function er() {
1987
- const e = await $n();
1988
- return e.main && Wn(e.main, e.buttonColor), e;
1987
+ async function tr() {
1988
+ const e = await er();
1989
+ return e.main && Xn(e.main, e.buttonColor), e;
1989
1990
  }
1990
1991
  const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
1991
1992
  PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
@@ -2009,7 +2010,10 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
2009
2010
  ADDRESS: () => import("../documentCapture-DGJU-4sT.js").then(
2010
2011
  (e) => e.DocumentCapture
2011
2012
  ),
2012
- COMBINED_CONSENT: () => import("../consent/consent.es.js").then((e) => e.Consent)
2013
+ COMBINED_CONSENT: () => import("../consent/consent.es.js").then((e) => e.Consent),
2014
+ MANDATORY_CONSENT: () => import("../mandatoryConsent-z0Ci8SDN.js").then(
2015
+ (e) => e.MandatoryConsent
2016
+ )
2013
2017
  };
2014
2018
  function Bt() {
2015
2019
  return zt({
@@ -2029,12 +2033,13 @@ function Bt() {
2029
2033
  EKYB: Wt,
2030
2034
  DOCUMENT_CAPTURE: Ve,
2031
2035
  ADDRESS: Ve,
2032
- COMBINED_CONSENT: an
2036
+ COMBINED_CONSENT: an,
2037
+ MANDATORY_CONSENT: cn
2033
2038
  }
2034
2039
  });
2035
2040
  }
2036
2041
  async function Pt(e) {
2037
- await cn({
2042
+ await ln({
2038
2043
  apiURL: e.apiURL,
2039
2044
  token: e.token,
2040
2045
  i18n: { lang: e.lang ?? "en" }
@@ -2042,7 +2047,7 @@ async function Pt(e) {
2042
2047
  }
2043
2048
  async function Lt() {
2044
2049
  try {
2045
- const e = await er(), t = {
2050
+ const e = await tr(), t = {
2046
2051
  logoSrc: e.logo,
2047
2052
  hideFooterBranding: e.hideFooterBranding
2048
2053
  };
@@ -2052,15 +2057,15 @@ async function Lt() {
2052
2057
  }
2053
2058
  }
2054
2059
  function Dt(e, t) {
2055
- const i = Et(e.flow);
2056
- i.length > 0 && Yt({
2060
+ const i = yt(e.flow);
2061
+ i.length > 0 && jt({
2057
2062
  ...t,
2058
2063
  pipelines: i
2059
2064
  }).catch((r) => {
2060
2065
  console.error("WASM warmup failed:", r);
2061
2066
  });
2062
2067
  }
2063
- function tr(e) {
2068
+ function nr(e) {
2064
2069
  const t = e.currentStep;
2065
2070
  if (t) {
2066
2071
  const i = ke[t];
@@ -2068,7 +2073,7 @@ function tr(e) {
2068
2073
  });
2069
2074
  }
2070
2075
  }
2071
- const nr = ({
2076
+ const rr = ({
2072
2077
  moduleKey: e,
2073
2078
  onNext: t
2074
2079
  }) => /* @__PURE__ */ l("section", { class: "IncodeUnsupportedModule", "aria-live": "polite", children: /* @__PURE__ */ l("div", { class: "IncodeUnsupportedModuleContent", children: [
@@ -2111,7 +2116,7 @@ function pt(e) {
2111
2116
  }
2112
2117
  };
2113
2118
  }
2114
- function Dr(e) {
2119
+ function Ur(e) {
2115
2120
  const { token: t } = e;
2116
2121
  if (V.has(t))
2117
2122
  return pt(t);
@@ -2138,7 +2143,7 @@ function Dr(e) {
2138
2143
  }), u = o.subscribe((h) => {
2139
2144
  if (h.status === "ready") {
2140
2145
  const g = h;
2141
- e.wasmConfig && Dt(g, e.wasmConfig), tr(g), a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "ready", a.readyResolve();
2146
+ e.wasmConfig && Dt(g, e.wasmConfig), nr(g), a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "ready", a.readyResolve();
2142
2147
  } else h.status === "error" && (a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "error", a.error = h.error, a.readyReject(new Error(h.error)));
2143
2148
  });
2144
2149
  a.unsubscribe = u, o.load(), await s;
@@ -2152,15 +2157,15 @@ function Dr(e) {
2152
2157
  function De(e) {
2153
2158
  return V.get(e) ?? null;
2154
2159
  }
2155
- function wt(e) {
2160
+ function Ct(e) {
2156
2161
  const t = De(e);
2157
2162
  return t && V.delete(e), t;
2158
2163
  }
2159
- function rr(e) {
2164
+ function or(e) {
2160
2165
  const { apiURL: t, token: i, lang: r, disableDashboardTheme: n, onError: o } = e, a = Le(null), [c, s] = _(() => {
2161
2166
  const h = De(i);
2162
2167
  if (h?.status === "ready") {
2163
- const d = wt(i);
2168
+ const d = Ct(i);
2164
2169
  if (d)
2165
2170
  return a.current = d.flowManager, d.uiConfig && te(d.uiConfig), { status: "ready", flowManager: d.flowManager };
2166
2171
  }
@@ -2177,7 +2182,7 @@ function rr(e) {
2177
2182
  const h = De(i);
2178
2183
  if (h?.status === "loading") {
2179
2184
  h.readyPromise.then(() => {
2180
- const d = wt(i);
2185
+ const d = Ct(i);
2181
2186
  d && (a.current = d.flowManager, d.uiConfig && te(d.uiConfig), s({ status: "ready", flowManager: d.flowManager }));
2182
2187
  }).catch((d) => {
2183
2188
  const f = d instanceof Error ? d.message : "Preload failed";
@@ -2209,7 +2214,7 @@ function rr(e) {
2209
2214
  })();
2210
2215
  }, [t, i, r, n, o, c]), c;
2211
2216
  }
2212
- function or(e) {
2217
+ function ir(e) {
2213
2218
  const { moduleKey: t, onModuleLoading: i, onModuleLoaded: r, onError: n } = e, [o, a] = _({ status: "idle" });
2214
2219
  return L(() => {
2215
2220
  if (!t) {
@@ -2235,7 +2240,7 @@ function or(e) {
2235
2240
  };
2236
2241
  }, [t, i, r, n]), o;
2237
2242
  }
2238
- function ir(e, t) {
2243
+ function sr(e, t) {
2239
2244
  const i = Le(/* @__PURE__ */ new Set());
2240
2245
  L(() => {
2241
2246
  if (t < e.length - 1) {
@@ -2250,12 +2255,12 @@ function ir(e, t) {
2250
2255
  }
2251
2256
  }, [e, t]);
2252
2257
  }
2253
- const sr = ({
2258
+ const ar = ({
2254
2259
  config: e,
2255
2260
  onFinish: t,
2256
2261
  onError: i
2257
2262
  }) => {
2258
- const { t: r, i18n: n } = F(), [o, a] = _(!1), c = rr({
2263
+ const { t: r, i18n: n } = F(), [o, a] = _(!1), c = or({
2259
2264
  apiURL: e.apiURL,
2260
2265
  token: e.token,
2261
2266
  lang: e.lang,
@@ -2263,20 +2268,20 @@ const sr = ({
2263
2268
  onError: i
2264
2269
  }), [s, u] = It(() => c.flowManager, {
2265
2270
  autoLoad: !1
2266
- }), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !o, g = or({
2271
+ }), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !o, g = ir({
2267
2272
  moduleKey: s?.status === "ready" && !h ? s.currentStep : void 0,
2268
2273
  onModuleLoading: e.onModuleLoading,
2269
2274
  onModuleLoaded: e.onModuleLoaded,
2270
2275
  onError: i
2271
2276
  });
2272
- if (ir(
2277
+ if (sr(
2273
2278
  s?.status === "ready" ? s.steps : [],
2274
2279
  s?.status === "ready" ? s.currentStepIndex : -1
2275
2280
  ), L(() => {
2276
2281
  e.lang && n.language !== e.lang && n.changeLanguage(e.lang);
2277
2282
  }, [e.lang, n]), L(() => {
2278
2283
  if (s?.status === "ready" && e.wasmConfig) {
2279
- const d = s, f = Et(d.flow);
2284
+ const d = s, f = yt(d.flow);
2280
2285
  f.length > 0 && (e.onWasmWarmup?.(f), Dt(d, e.wasmConfig));
2281
2286
  }
2282
2287
  }, [s, e]), L(() => {
@@ -2330,7 +2335,7 @@ const sr = ({
2330
2335
  } = s;
2331
2336
  if (h)
2332
2337
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2333
- Nt,
2338
+ vt,
2334
2339
  {
2335
2340
  config: {
2336
2341
  flowId: M,
@@ -2357,7 +2362,7 @@ const sr = ({
2357
2362
  ) });
2358
2363
  if (g.status === "unsupported")
2359
2364
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2360
- nr,
2365
+ rr,
2361
2366
  {
2362
2367
  moduleKey: d,
2363
2368
  onNext: () => u.completeModule()
@@ -2373,10 +2378,10 @@ const sr = ({
2373
2378
  fullScreen: !0
2374
2379
  }
2375
2380
  ) });
2376
- const { Component: E } = g;
2381
+ const { Component: y } = g;
2377
2382
  if (d === "SELFIE")
2378
2383
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2379
- E,
2384
+ y,
2380
2385
  {
2381
2386
  config: f,
2382
2387
  onFinish: () => u.completeModule(),
@@ -2388,7 +2393,7 @@ const sr = ({
2388
2393
  ) });
2389
2394
  if (d === "AUTHENTICATION")
2390
2395
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2391
- E,
2396
+ y,
2392
2397
  {
2393
2398
  config: { ...f, authHint: e.authHint },
2394
2399
  onFinish: () => u.completeModule(),
@@ -2400,7 +2405,7 @@ const sr = ({
2400
2405
  ) });
2401
2406
  if (d === "PHONE")
2402
2407
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2403
- E,
2408
+ y,
2404
2409
  {
2405
2410
  config: f,
2406
2411
  onFinish: () => u.completeModule(),
@@ -2413,7 +2418,7 @@ const sr = ({
2413
2418
  if (d === "EMAIL") {
2414
2419
  const m = f;
2415
2420
  return !m || typeof m.otpVerification != "boolean" || typeof m.otpExpirationInMinutes != "number" ? /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l("div", { children: "Error: Invalid email configuration" }) }) : /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2416
- E,
2421
+ y,
2417
2422
  {
2418
2423
  config: {
2419
2424
  ...m,
@@ -2431,12 +2436,12 @@ const sr = ({
2431
2436
  d === "ID" && !s.steps.includes("TUTORIAL_ID")) {
2432
2437
  const m = f, B = d === "SECOND_ID" ? { ...m, isSecondId: !0 } : m;
2433
2438
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2434
- E,
2439
+ y,
2435
2440
  {
2436
2441
  config: B,
2437
2442
  onFinish: () => u.completeModule(),
2438
- onError: (w) => {
2439
- i?.(w ?? "ID capture error");
2443
+ onError: (C) => {
2444
+ i?.(C ?? "ID capture error");
2440
2445
  }
2441
2446
  },
2442
2447
  `id-${s.currentStepIndex}`
@@ -2448,7 +2453,7 @@ const sr = ({
2448
2453
  disableFaceMatchAnimation: m.disableFaceMatchAnimation ?? !1
2449
2454
  };
2450
2455
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2451
- E,
2456
+ y,
2452
2457
  {
2453
2458
  config: p,
2454
2459
  onFinish: () => u.completeModule(),
@@ -2461,7 +2466,7 @@ const sr = ({
2461
2466
  }
2462
2467
  if (d === "CURP_VALIDATION")
2463
2468
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2464
- E,
2469
+ y,
2465
2470
  {
2466
2471
  config: f,
2467
2472
  onFinish: () => u.completeModule(),
@@ -2473,7 +2478,7 @@ const sr = ({
2473
2478
  ) });
2474
2479
  if (d === "GOVT_VALIDATION_PROVISIONING")
2475
2480
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2476
- E,
2481
+ y,
2477
2482
  {
2478
2483
  config: f,
2479
2484
  onFinish: () => u.completeModule(),
@@ -2485,7 +2490,7 @@ const sr = ({
2485
2490
  ) });
2486
2491
  if (d === "GEOLOCATION")
2487
2492
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2488
- E,
2493
+ y,
2489
2494
  {
2490
2495
  config: { allowSkip: f.allowUserToSkipGeolocation },
2491
2496
  onFinish: () => u.completeModule(),
@@ -2497,7 +2502,7 @@ const sr = ({
2497
2502
  ) });
2498
2503
  if (d === "EXTERNAL_VERIFICATION")
2499
2504
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2500
- E,
2505
+ y,
2501
2506
  {
2502
2507
  config: { flowId: s.flow.flowId },
2503
2508
  onFinish: () => u.completeModule(),
@@ -2509,7 +2514,7 @@ const sr = ({
2509
2514
  ) });
2510
2515
  if (d === "DOCUMENT_CAPTURE")
2511
2516
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2512
- E,
2517
+ y,
2513
2518
  {
2514
2519
  config: f,
2515
2520
  onFinish: () => u.completeModule(),
@@ -2527,7 +2532,7 @@ const sr = ({
2527
2532
  text: m.text
2528
2533
  };
2529
2534
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2530
- E,
2535
+ y,
2531
2536
  {
2532
2537
  config: p,
2533
2538
  onFinish: () => u.completeModule(),
@@ -2547,7 +2552,7 @@ const sr = ({
2547
2552
  checkUniqueBeneficialOwner: m.checkUniqueBeneficialOwner
2548
2553
  };
2549
2554
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2550
- E,
2555
+ y,
2551
2556
  {
2552
2557
  config: p,
2553
2558
  onFinish: () => u.completeModule(),
@@ -2560,7 +2565,7 @@ const sr = ({
2560
2565
  }
2561
2566
  if (d === "COMBINED_CONSENT")
2562
2567
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2563
- E,
2568
+ y,
2564
2569
  {
2565
2570
  config: f,
2566
2571
  onFinish: () => u.completeModule(),
@@ -2570,23 +2575,35 @@ const sr = ({
2570
2575
  },
2571
2576
  `combined-consent-${s.currentStepIndex}`
2572
2577
  ) });
2578
+ if (d === "MANDATORY_CONSENT")
2579
+ return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2580
+ y,
2581
+ {
2582
+ config: f,
2583
+ onFinish: () => u.completeModule(),
2584
+ onError: (p) => {
2585
+ i?.(p ?? "Mandatory consent error");
2586
+ }
2587
+ },
2588
+ `mandatory-consent-${s.currentStepIndex}`
2589
+ ) });
2573
2590
  }
2574
2591
  return null;
2575
- }, ar = ({
2592
+ }, cr = ({
2576
2593
  config: e,
2577
2594
  onFinish: t = () => {
2578
2595
  },
2579
2596
  onError: i
2580
- }) => /* @__PURE__ */ l(Ct, { children: e ? /* @__PURE__ */ l(
2581
- sr,
2597
+ }) => /* @__PURE__ */ l(wt, { children: e ? /* @__PURE__ */ l(
2598
+ ar,
2582
2599
  {
2583
2600
  config: e,
2584
2601
  onFinish: t,
2585
2602
  onError: i
2586
2603
  }
2587
2604
  ) : null });
2588
- Tt(ar, "incode-flow");
2605
+ Tt(cr, "incode-flow");
2589
2606
  export {
2590
- ar as IncodeFlow,
2591
- Dr as preloadIncodeFlow
2607
+ cr as IncodeFlow,
2608
+ Ur as preloadIncodeFlow
2592
2609
  };