@incodetech/web 0.0.0-dev-20260401-620f105 → 0.0.0-dev-20260401-018c3ea

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.
@@ -10,7 +10,7 @@ import { D as ee } from "./dropdownComposed-CzAsPPqv.js";
10
10
  import { P as T } from "./page-D4OThpFS.js";
11
11
  import { S as re } from "./spinner-CLwSl2tJ.js";
12
12
  import { r as oe } from "./incodeModule-C4XIllao.js";
13
- import { P as te } from "./phoneInputComposed-FjM87j1t.js";
13
+ import { P as te } from "./phoneInputComposed-BAFZQ4Y8.js";
14
14
  const ae = ({ config: p, onFinish: s }) => {
15
15
  const { t: l } = $(), [a, d] = G(() => z({ config: p }));
16
16
  return q(() => {
@@ -9,7 +9,7 @@ import "../uiConfig-DmIn-g8M.js";
9
9
  import "../typography-CBPoLoAP.js";
10
10
  import { a as L } from "../inputComposed-QzDneavl.js";
11
11
  import "../checkbox-wo8qk7tM.js";
12
- import "../phoneInputComposed-FjM87j1t.js";
12
+ import "../phoneInputComposed-BAFZQ4Y8.js";
13
13
  import "../dateInputComposed-D5kgh_aC.js";
14
14
  import "../captureOverlay-Crv6ZBp_.js";
15
15
  import "../manualCaptureButton-CPZ2xxEI.js";
@@ -11,11 +11,11 @@ import { C as q, P as z } from "./cameraView-DXT7CWqE.js";
11
11
  import { I as J, a as K } from "./inputComposed-QzDneavl.js";
12
12
  import { O as Q } from "./otpInput-B85heGC5.js";
13
13
  import { C as Y, a as Z } from "./checkbox-wo8qk7tM.js";
14
- import { P as $ } from "./phoneInputComposed-FjM87j1t.js";
14
+ import { P as $ } from "./phoneInputComposed-BAFZQ4Y8.js";
15
15
  import { D as ra, S as ea } from "./dropdownComposed-CzAsPPqv.js";
16
16
  import { C as ta, D as sa } from "./dateInputComposed-D5kgh_aC.js";
17
17
  import { T as pa, a as ca } from "./captureOverlay-Crv6ZBp_.js";
18
- import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-Bq6Yj6PU.js";
18
+ import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-CPzQqCvm.js";
19
19
  import { L as Ta, M as va } from "./manualCaptureButton-CPZ2xxEI.js";
20
20
  import { a as Ba, C as Fa, b as Pa, d as La, c as Oa, H as ba, L as Ha } from "./captureFooter-CKqO4KY2.js";
21
21
  import { A as i, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
@@ -12,7 +12,7 @@ import { B as W } from "./permissions-BeU3HuVB.js";
12
12
  import "@incodetech/core";
13
13
  import "./inputComposed-QzDneavl.js";
14
14
  import "./checkbox-wo8qk7tM.js";
15
- import "./phoneInputComposed-FjM87j1t.js";
15
+ import "./phoneInputComposed-BAFZQ4Y8.js";
16
16
  import "./dateInputComposed-D5kgh_aC.js";
17
17
  import "./countries-DfLkrF0x.js";
18
18
  const $ = ({
@@ -1,36 +1,36 @@
1
1
  import { u as l, c as _t, b as F, S as X, B as Z, V as Ot, I as wt, a as It, e as qt, i as Vt } from "../button-DXIWeie9.js";
2
2
  import { createOrchestratedFlowManager as zt, getRequiredWasmPipelines as Et } from "@incodetech/core/flow";
3
3
  import { Q as Ht, d as _, k as ne, b as Kt, y as L, z as Gt, P as Yt, q as x, A as Le } from "../vendor-preact-BoMmvSgn.js";
4
- import { api as yt, warmupWasm as jt } from "@incodetech/core";
4
+ import { api as yt, resolveWasmConfig as jt, warmupWasm as xt } from "@incodetech/core";
5
5
  import { s as te } from "../uiConfig-DmIn-g8M.js";
6
6
  import { r as Tt } from "../incodeModule-C4XIllao.js";
7
7
  import { S as J } from "../spinner-CLwSl2tJ.js";
8
- import { createRedirectToMobileManager as xt } from "@incodetech/core/redirect-to-mobile";
8
+ import { createRedirectToMobileManager as Jt } from "@incodetech/core/redirect-to-mobile";
9
9
  import { S as Mt } from "../successIcon-BZphSsQr.js";
10
- import { a as Jt } from "../countries-DfLkrF0x.js";
11
- import { T as Qt } from "../Trans-DiTufE_D.js";
12
- import { ekybMachine as Wt } from "@incodetech/core/ekyb";
13
- import { ekycMachine as Xt } from "@incodetech/core/ekyc";
14
- import { emailMachine as Zt } from "@incodetech/core/email";
15
- import { faceMatchMachine as $t } from "@incodetech/core/face-match";
16
- import { geolocationMachine as en } from "@incodetech/core/geolocation";
10
+ import { a as Qt } from "../countries-DfLkrF0x.js";
11
+ import { T as Wt } from "../Trans-DiTufE_D.js";
12
+ import { ekybMachine as Xt } from "@incodetech/core/ekyb";
13
+ import { ekycMachine as Zt } from "@incodetech/core/ekyc";
14
+ import { emailMachine as $t } from "@incodetech/core/email";
15
+ import { faceMatchMachine as en } from "@incodetech/core/face-match";
16
+ import { geolocationMachine as tn } from "@incodetech/core/geolocation";
17
17
  import { documentCaptureMachine as Ve } from "@incodetech/core/document-capture";
18
18
  import { idCaptureMachine as ae } from "@incodetech/core/id";
19
- import { phoneMachine as tn } from "@incodetech/core/phone";
20
- import { selfieMachine as nn } from "@incodetech/core/selfie";
21
- import { authenticationMachine as rn } from "@incodetech/core/authentication";
22
- import { curpValidationMachine as on } from "@incodetech/core/curp-validation";
23
- import { governmentValidationMachine as sn } from "@incodetech/core/government-validation";
24
- import { consentMachine as an } from "@incodetech/core/consent";
25
- import { mandatoryConsentMachine as cn } from "@incodetech/core/mandatory-consent";
26
- import { setup as ln } from "../index.es.js";
27
- import { signatureMachine as un } from "@incodetech/core/signature";
19
+ import { phoneMachine as nn } from "@incodetech/core/phone";
20
+ import { selfieMachine as rn } from "@incodetech/core/selfie";
21
+ import { authenticationMachine as on } from "@incodetech/core/authentication";
22
+ import { curpValidationMachine as sn } from "@incodetech/core/curp-validation";
23
+ import { governmentValidationMachine as an } from "@incodetech/core/government-validation";
24
+ import { consentMachine as cn } from "@incodetech/core/consent";
25
+ import { mandatoryConsentMachine as ln } from "@incodetech/core/mandatory-consent";
26
+ import { setup as un } from "../index.es.js";
27
+ import { signatureMachine as dn } from "@incodetech/core/signature";
28
28
  const Rt = Ht(null), Fe = () => {
29
29
  const e = Kt(Rt);
30
30
  if (!e)
31
31
  throw new Error("Tabs compound components must be used within <Tabs>");
32
32
  return e;
33
- }, dn = ({
33
+ }, fn = ({
34
34
  defaultValue: e,
35
35
  listClassName: t,
36
36
  triggerClassName: i,
@@ -51,10 +51,10 @@ const Rt = Ht(null), Fe = () => {
51
51
  children: n
52
52
  }
53
53
  );
54
- }, fn = ({ children: e }) => {
54
+ }, hn = ({ children: e }) => {
55
55
  const { listClassName: t } = Fe();
56
56
  return /* @__PURE__ */ l("div", { class: t, children: e });
57
- }, hn = ({ value: e, children: t }) => {
57
+ }, gn = ({ value: e, children: t }) => {
58
58
  const {
59
59
  activeValue: i,
60
60
  setActiveValue: r,
@@ -73,14 +73,14 @@ const Rt = Ht(null), Fe = () => {
73
73
  children: t
74
74
  }
75
75
  );
76
- }, gn = ({ value: e, children: t }) => {
76
+ }, mn = ({ value: e, children: t }) => {
77
77
  const { activeValue: i } = Fe();
78
78
  return i !== e ? null : /* @__PURE__ */ l(ne, { children: t });
79
- }, G = Object.assign(dn, {
80
- List: fn,
81
- Trigger: hn,
82
- Content: gn
83
- }), mn = ({ logoSrc: e }) => {
79
+ }, G = Object.assign(fn, {
80
+ List: hn,
81
+ Trigger: gn,
82
+ Content: mn
83
+ }), pn = ({ logoSrc: e }) => {
84
84
  const { t } = F();
85
85
  return /* @__PURE__ */ l("header", { class: "IncodeRedirectHeader", children: [
86
86
  /* @__PURE__ */ l("div", { class: "IncodeRedirectLogoWrapper", children: /* @__PURE__ */ l("img", { src: e, alt: "Logo", class: "IncodeRedirectLogo" }) }),
@@ -89,7 +89,7 @@ const Rt = Ht(null), Fe = () => {
89
89
  /* @__PURE__ */ l(X, { size: 12 }),
90
90
  /* @__PURE__ */ l("p", { class: "IncodeRedirectSubtitle", children: t("v2.redirectToMobile.subtitle") })
91
91
  ] });
92
- }, pn = ({
92
+ }, Cn = ({
93
93
  addContinueToDesktop: e,
94
94
  onContinueOnDesktop: t
95
95
  }) => {
@@ -98,7 +98,7 @@ const Rt = Ht(null), Fe = () => {
98
98
  e ? /* @__PURE__ */ l(Z, { variant: "link", onClick: t, children: i("redirect.continueOnDesktop") }) : null,
99
99
  /* @__PURE__ */ l(Ot, {})
100
100
  ] });
101
- }, Cn = ({ visible: e }) => {
101
+ }, wn = ({ visible: e }) => {
102
102
  const { t } = F();
103
103
  return e ? /* @__PURE__ */ l("div", { class: "IncodeRedirectToast", children: [
104
104
  /* @__PURE__ */ l(Mt, { size: 24 }),
@@ -106,7 +106,7 @@ const Rt = Ht(null), Fe = () => {
106
106
  ] }) : null;
107
107
  };
108
108
  var Y = {}, ce, ze;
109
- function wn() {
109
+ function In() {
110
110
  return ze || (ze = 1, ce = function() {
111
111
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
112
112
  }), ce;
@@ -219,7 +219,7 @@ function Ue() {
219
219
  })(ue)), ue;
220
220
  }
221
221
  var de, Ge;
222
- function In() {
222
+ function En() {
223
223
  if (Ge) return de;
224
224
  Ge = 1;
225
225
  function e() {
@@ -244,7 +244,7 @@ function In() {
244
244
  }, de = e, de;
245
245
  }
246
246
  var fe, Ye;
247
- function En() {
247
+ function yn() {
248
248
  if (Ye) return fe;
249
249
  Ye = 1;
250
250
  function e(t) {
@@ -264,7 +264,7 @@ function En() {
264
264
  }, fe = e, fe;
265
265
  }
266
266
  var he = {}, je;
267
- function yn() {
267
+ function Tn() {
268
268
  return je || (je = 1, (function(e) {
269
269
  const t = z().getSymbolSize;
270
270
  e.getRowColCoords = function(r) {
@@ -285,7 +285,7 @@ function yn() {
285
285
  })(he)), he;
286
286
  }
287
287
  var ge = {}, xe;
288
- function Tn() {
288
+ function Mn() {
289
289
  if (xe) return ge;
290
290
  xe = 1;
291
291
  const e = z().getSymbolSize, t = 7;
@@ -302,7 +302,7 @@ function Tn() {
302
302
  }, ge;
303
303
  }
304
304
  var me = {}, Je;
305
- function Mn() {
305
+ function Rn() {
306
306
  return Je || (Je = 1, (function(e) {
307
307
  e.Patterns = {
308
308
  PATTERN000: 0,
@@ -757,7 +757,7 @@ function St() {
757
757
  }, ee;
758
758
  }
759
759
  var pe = {}, W = {}, We;
760
- function Rn() {
760
+ function Sn() {
761
761
  if (We) return W;
762
762
  We = 1;
763
763
  const e = new Uint8Array(512), t = new Uint8Array(256);
@@ -777,9 +777,9 @@ function Rn() {
777
777
  }, W;
778
778
  }
779
779
  var Xe;
780
- function Sn() {
780
+ function bn() {
781
781
  return Xe || (Xe = 1, (function(e) {
782
- const t = Rn();
782
+ const t = Sn();
783
783
  e.mul = function(r, n) {
784
784
  const o = new Uint8Array(r.length + n.length - 1);
785
785
  for (let a = 0; a < r.length; a++)
@@ -806,10 +806,10 @@ function Sn() {
806
806
  })(pe)), pe;
807
807
  }
808
808
  var Ce, Ze;
809
- function bn() {
809
+ function An() {
810
810
  if (Ze) return Ce;
811
811
  Ze = 1;
812
- const e = Sn();
812
+ const e = bn();
813
813
  function t(i) {
814
814
  this.genPoly = void 0, this.degree = i, this.degree && this.initialize(this.degree);
815
815
  }
@@ -916,7 +916,7 @@ function H() {
916
916
  })(Ie)), Ie;
917
917
  }
918
918
  var nt;
919
- function An() {
919
+ function Nn() {
920
920
  return nt || (nt = 1, (function(e) {
921
921
  const t = z(), i = St(), r = Ue(), n = H(), o = bt(), a = 7973, c = t.getBCHDigit(a);
922
922
  function s(d, f, M) {
@@ -982,7 +982,7 @@ function An() {
982
982
  })(we)), we;
983
983
  }
984
984
  var ye = {}, rt;
985
- function Nn() {
985
+ function vn() {
986
986
  if (rt) return ye;
987
987
  rt = 1;
988
988
  const e = z(), t = 1335, i = 21522, r = e.getBCHDigit(t);
@@ -995,7 +995,7 @@ function Nn() {
995
995
  }, ye;
996
996
  }
997
997
  var Te = {}, Me, ot;
998
- function vn() {
998
+ function Bn() {
999
999
  if (ot) return Me;
1000
1000
  ot = 1;
1001
1001
  const e = H();
@@ -1017,7 +1017,7 @@ function vn() {
1017
1017
  }, Me = t, Me;
1018
1018
  }
1019
1019
  var Re, it;
1020
- function Bn() {
1020
+ function Pn() {
1021
1021
  if (it) return Re;
1022
1022
  it = 1;
1023
1023
  const e = H(), t = [
@@ -1086,7 +1086,7 @@ function Bn() {
1086
1086
  }, Re = i, Re;
1087
1087
  }
1088
1088
  var Se, st;
1089
- function Pn() {
1089
+ function Ln() {
1090
1090
  if (st) return Se;
1091
1091
  st = 1;
1092
1092
  const e = H();
@@ -1105,7 +1105,7 @@ function Pn() {
1105
1105
  }, Se = t, Se;
1106
1106
  }
1107
1107
  var be, at;
1108
- function Ln() {
1108
+ function Dn() {
1109
1109
  if (at) return be;
1110
1110
  at = 1;
1111
1111
  const e = H(), t = z();
@@ -1136,7 +1136,7 @@ Make sure your charset is UTF-8`
1136
1136
  }, be = i, be;
1137
1137
  }
1138
1138
  var Ae = { exports: {} }, ct;
1139
- function Dn() {
1139
+ function Fn() {
1140
1140
  return ct || (ct = 1, (function(e) {
1141
1141
  var t = {
1142
1142
  single_source_shortest_paths: function(i, r, n) {
@@ -1204,9 +1204,9 @@ function Dn() {
1204
1204
  })(Ae)), Ae.exports;
1205
1205
  }
1206
1206
  var lt;
1207
- function Fn() {
1207
+ function Un() {
1208
1208
  return lt || (lt = 1, (function(e) {
1209
- const t = H(), i = vn(), r = Bn(), n = Pn(), o = Ln(), a = At(), c = z(), s = Dn();
1209
+ const t = H(), i = Bn(), r = Pn(), n = Ln(), o = Dn(), a = At(), c = z(), s = Fn();
1210
1210
  function u(A) {
1211
1211
  return unescape(encodeURIComponent(A)).length;
1212
1212
  }
@@ -1338,10 +1338,10 @@ function Fn() {
1338
1338
  })(Te)), Te;
1339
1339
  }
1340
1340
  var ut;
1341
- function Un() {
1341
+ function kn() {
1342
1342
  if (ut) return le;
1343
1343
  ut = 1;
1344
- const e = z(), t = Ue(), i = In(), r = En(), n = yn(), o = Tn(), a = Mn(), c = St(), s = bn(), u = An(), h = Nn(), g = H(), d = Fn();
1344
+ const e = z(), t = Ue(), i = En(), r = yn(), n = Tn(), o = Mn(), a = Rn(), c = St(), s = An(), u = Nn(), h = vn(), g = H(), d = Un();
1345
1345
  function f(C, S) {
1346
1346
  const R = C.size, w = o.getPositions(S);
1347
1347
  for (let N = 0; N < w.length; N++) {
@@ -1529,7 +1529,7 @@ function Nt() {
1529
1529
  })(ve)), ve;
1530
1530
  }
1531
1531
  var ft;
1532
- function kn() {
1532
+ function _n() {
1533
1533
  return ft || (ft = 1, (function(e) {
1534
1534
  const t = Nt();
1535
1535
  function i(n, o, a) {
@@ -1556,7 +1556,7 @@ function kn() {
1556
1556
  })(Ne)), Ne;
1557
1557
  }
1558
1558
  var Be = {}, ht;
1559
- function _n() {
1559
+ function On() {
1560
1560
  if (ht) return Be;
1561
1561
  ht = 1;
1562
1562
  const e = Nt();
@@ -1583,10 +1583,10 @@ function _n() {
1583
1583
  }, Be;
1584
1584
  }
1585
1585
  var gt;
1586
- function On() {
1586
+ function qn() {
1587
1587
  if (gt) return Y;
1588
1588
  gt = 1;
1589
- const e = wn(), t = Un(), i = kn(), r = _n();
1589
+ const e = In(), t = kn(), i = _n(), r = On();
1590
1590
  function n(o, a, c, s, u) {
1591
1591
  const h = [].slice.call(arguments, 1), g = h.length, d = typeof h[g - 1] == "function";
1592
1592
  if (!d && !e())
@@ -1618,8 +1618,8 @@ function On() {
1618
1618
  return r.render(o, c);
1619
1619
  }), Y;
1620
1620
  }
1621
- var qn = On();
1622
- const Vn = ({
1621
+ var Vn = qn();
1622
+ const zn = ({
1623
1623
  value: e,
1624
1624
  size: t = 150,
1625
1625
  bgColor: i = "#ffffff",
@@ -1627,7 +1627,7 @@ const Vn = ({
1627
1627
  }) => {
1628
1628
  const [n, o] = _("");
1629
1629
  return L(() => {
1630
- e && qn.toString(e, {
1630
+ e && Vn.toString(e, {
1631
1631
  type: "svg",
1632
1632
  width: t,
1633
1633
  margin: 0,
@@ -1643,13 +1643,13 @@ const Vn = ({
1643
1643
  dangerouslySetInnerHTML: { __html: n }
1644
1644
  }
1645
1645
  ) : null;
1646
- }, zn = ({ redirectUrl: e }) => {
1646
+ }, Hn = ({ redirectUrl: e }) => {
1647
1647
  const { t } = F();
1648
1648
  return /* @__PURE__ */ l(ne, { children: [
1649
1649
  /* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: t("v2.redirectToMobile.qr.description") }),
1650
- /* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(Vn, { value: e, size: 186 }) })
1650
+ /* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(zn, { value: e, size: 186 }) })
1651
1651
  ] });
1652
- }, Hn = ({
1652
+ }, Kn = ({
1653
1653
  formattedPhone: e,
1654
1654
  onResend: t,
1655
1655
  onChangePhone: i
@@ -1663,7 +1663,7 @@ const Vn = ({
1663
1663
  /* @__PURE__ */ l("p", { class: "IncodeRedirectLinkSentPhone", children: r("redirect.linkSentTo", { phone: e }) }),
1664
1664
  /* @__PURE__ */ l(X, { size: 32 }),
1665
1665
  /* @__PURE__ */ l("div", { class: "IncodeRedirectLinkSentActions", children: /* @__PURE__ */ l(
1666
- Qt,
1666
+ Wt,
1667
1667
  {
1668
1668
  i18nKey: "redirect.didntReceiveLinkActions",
1669
1669
  defaultValue: "Didn't receive the link? <resend>Resend</resend> or <changePhone>Change phone number</changePhone>",
@@ -1674,9 +1674,9 @@ const Vn = ({
1674
1674
  }
1675
1675
  ) })
1676
1676
  ] });
1677
- }, Kn = Gt(
1677
+ }, Gn = Gt(
1678
1678
  () => import("../phoneInput-nmmFFaXI.js").then((e) => ({ default: e.PhoneInput }))
1679
- ), Gn = ({
1679
+ ), Yn = ({
1680
1680
  countryCode: e,
1681
1681
  phonePrefix: t,
1682
1682
  error: i,
@@ -1688,7 +1688,7 @@ const Vn = ({
1688
1688
  const { t: c } = F();
1689
1689
  return /* @__PURE__ */ l(ne, { children: [
1690
1690
  /* @__PURE__ */ l(Yt, { fallback: /* @__PURE__ */ l(J, {}), children: /* @__PURE__ */ l(
1691
- Kn,
1691
+ Gn,
1692
1692
  {
1693
1693
  countryCode: e,
1694
1694
  phonePrefix: t,
@@ -1709,18 +1709,18 @@ const Vn = ({
1709
1709
  }
1710
1710
  )
1711
1711
  ] });
1712
- }, Yn = (e, t) => {
1712
+ }, jn = (e, t) => {
1713
1713
  if (!e.startsWith(t)) return e;
1714
1714
  const i = e.slice(t.length);
1715
1715
  return `${t} ${i.replace(/(\d{3})(?=\d)/g, "$1 ")}`;
1716
- }, jn = ({
1716
+ }, xn = ({
1717
1717
  phonePrefix: e,
1718
1718
  smsSent: t,
1719
1719
  error: i,
1720
1720
  manager: r,
1721
1721
  onResend: n
1722
1722
  }) => {
1723
- const { t: o } = F(), [a, c] = _(e), [s, u] = _(!1), [h, g] = _(!1), d = Jt(e)?.code ?? "", f = Yn(a, e), M = x((I, m) => {
1723
+ const { t: o } = F(), [a, c] = _(e), [s, u] = _(!1), [h, g] = _(!1), d = Qt(e)?.code ?? "", f = jn(a, e), M = x((I, m) => {
1724
1724
  c(I), u(m);
1725
1725
  }, []), E = x(() => {
1726
1726
  g(!0), r.sendSms(a), g(!1);
@@ -1732,14 +1732,14 @@ const Vn = ({
1732
1732
  return /* @__PURE__ */ l(ne, { children: [
1733
1733
  /* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: o("v2.redirectToMobile.sms.description") }),
1734
1734
  t ? /* @__PURE__ */ l(
1735
- Hn,
1735
+ Kn,
1736
1736
  {
1737
1737
  formattedPhone: f,
1738
1738
  onResend: P,
1739
1739
  onChangePhone: A
1740
1740
  }
1741
1741
  ) : /* @__PURE__ */ l(
1742
- Gn,
1742
+ Yn,
1743
1743
  {
1744
1744
  countryCode: d,
1745
1745
  phonePrefix: e,
@@ -1751,7 +1751,7 @@ const Vn = ({
1751
1751
  }
1752
1752
  )
1753
1753
  ] });
1754
- }, xn = ({
1754
+ }, Jn = ({
1755
1755
  redirectUrl: e,
1756
1756
  phonePrefix: t,
1757
1757
  smsSent: i,
@@ -1767,9 +1767,9 @@ const Vn = ({
1767
1767
  a.continueOnDesktop();
1768
1768
  }, [a]);
1769
1769
  return /* @__PURE__ */ l("div", { class: "IncodeRedirectContainer", children: [
1770
- /* @__PURE__ */ l(Cn, { visible: u }),
1770
+ /* @__PURE__ */ l(wn, { visible: u }),
1771
1771
  /* @__PURE__ */ l("div", { class: "IncodeRedirectCard", children: [
1772
- /* @__PURE__ */ l(mn, { logoSrc: c }),
1772
+ /* @__PURE__ */ l(pn, { logoSrc: c }),
1773
1773
  /* @__PURE__ */ l("div", { class: "IncodeRedirectOptions", children: /* @__PURE__ */ l(
1774
1774
  G,
1775
1775
  {
@@ -1782,9 +1782,9 @@ const Vn = ({
1782
1782
  /* @__PURE__ */ l(G.Trigger, { value: "qr", children: s("v2.redirectToMobile.tabs.0") }),
1783
1783
  r ? null : /* @__PURE__ */ l(G.Trigger, { value: "sms", children: s("v2.redirectToMobile.tabs.1") })
1784
1784
  ] }),
1785
- /* @__PURE__ */ l(G.Content, { value: "qr", children: /* @__PURE__ */ l(zn, { redirectUrl: e }) }),
1785
+ /* @__PURE__ */ l(G.Content, { value: "qr", children: /* @__PURE__ */ l(Hn, { redirectUrl: e }) }),
1786
1786
  r ? null : /* @__PURE__ */ l(G.Content, { value: "sms", children: /* @__PURE__ */ l(
1787
- jn,
1787
+ xn,
1788
1788
  {
1789
1789
  phonePrefix: t,
1790
1790
  smsSent: i,
@@ -1797,7 +1797,7 @@ const Vn = ({
1797
1797
  }
1798
1798
  ) }),
1799
1799
  /* @__PURE__ */ l(
1800
- pn,
1800
+ Cn,
1801
1801
  {
1802
1802
  addContinueToDesktop: n,
1803
1803
  onContinueOnDesktop: d
@@ -1805,7 +1805,7 @@ const Vn = ({
1805
1805
  )
1806
1806
  ] })
1807
1807
  ] });
1808
- }, Jn = ({
1808
+ }, Qn = ({
1809
1809
  title: e,
1810
1810
  subtitle: t,
1811
1811
  logoSrc: i
@@ -1816,14 +1816,14 @@ const Vn = ({
1816
1816
  n ? /* @__PURE__ */ l("h1", { class: "IncodeRedirectFinishedTitle", children: n }) : null,
1817
1817
  o ? /* @__PURE__ */ l("p", { class: "IncodeRedirectFinishedSubtitle", children: o }) : null
1818
1818
  ] });
1819
- }, Qn = ({
1819
+ }, Wn = ({
1820
1820
  config: e,
1821
1821
  onFinish: t,
1822
1822
  onContinue: i,
1823
1823
  onError: r
1824
1824
  }) => {
1825
1825
  const [n, o] = It(
1826
- () => xt({ config: e })
1826
+ () => Jt({ config: e })
1827
1827
  ), { logoSrc: a, logoHeightPx: c } = qt({
1828
1828
  hideHeader: void 0,
1829
1829
  hideFooterBranding: void 0,
@@ -1838,7 +1838,7 @@ const Vn = ({
1838
1838
  n.status === "error" && r?.(n.error);
1839
1839
  }, [n.status, r, n]);
1840
1840
  const s = n.status === "idle" || n.status === "loading" ? /* @__PURE__ */ l(J, { fullScreen: !0 }) : n.status === "redirecting" ? /* @__PURE__ */ l(
1841
- xn,
1841
+ Jn,
1842
1842
  {
1843
1843
  redirectUrl: n.redirectUrl,
1844
1844
  phonePrefix: n.phonePrefix,
@@ -1849,7 +1849,7 @@ const Vn = ({
1849
1849
  manager: o,
1850
1850
  logoSrc: a
1851
1851
  }
1852
- ) : n.status === "finished" ? /* @__PURE__ */ l(Jn, { logoSrc: a }) : null;
1852
+ ) : n.status === "finished" ? /* @__PURE__ */ l(Qn, { logoSrc: a }) : null;
1853
1853
  return /* @__PURE__ */ l(
1854
1854
  "div",
1855
1855
  {
@@ -1864,7 +1864,7 @@ const Vn = ({
1864
1864
  onContinue: i,
1865
1865
  onError: r
1866
1866
  }) => /* @__PURE__ */ l(wt, { children: e ? /* @__PURE__ */ l(
1867
- Qn,
1867
+ Wn,
1868
1868
  {
1869
1869
  config: e,
1870
1870
  onFinish: t,
@@ -1873,7 +1873,7 @@ const Vn = ({
1873
1873
  }
1874
1874
  ) : null });
1875
1875
  Tt(vt, "incode-redirect-to-mobile");
1876
- function Wn(e) {
1876
+ function Xn(e) {
1877
1877
  let t = e.replace("#", "");
1878
1878
  t.length === 3 && (t = t.split("").map((g) => g + g).join(""));
1879
1879
  const i = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
@@ -1912,8 +1912,8 @@ function j(e, t, i) {
1912
1912
  };
1913
1913
  return `#${u(a)}${u(c)}${u(s)}`;
1914
1914
  }
1915
- function Xn(e) {
1916
- const t = Wn(e);
1915
+ function Zn(e) {
1916
+ const t = Xn(e);
1917
1917
  if (!t)
1918
1918
  throw new Error(`Invalid color format: ${e}`);
1919
1919
  return {
@@ -1926,10 +1926,10 @@ function Xn(e) {
1926
1926
  900: j(t.h, t.s, 20)
1927
1927
  };
1928
1928
  }
1929
- function Zn(e, t) {
1929
+ function $n(e, t) {
1930
1930
  if (typeof document > "u")
1931
1931
  return;
1932
- const i = Xn(e);
1932
+ const i = Zn(e);
1933
1933
  let r = document.getElementById(
1934
1934
  "incode-theme"
1935
1935
  );
@@ -1949,11 +1949,11 @@ function Zn(e, t) {
1949
1949
  `;
1950
1950
  r.textContent = o;
1951
1951
  }
1952
- async function $n() {
1952
+ async function er() {
1953
1953
  return (await yt.get("/omni/asset/fetch-all")).data;
1954
1954
  }
1955
1955
  const mt = /* @__PURE__ */ new Map();
1956
- async function er(e) {
1956
+ async function tr(e) {
1957
1957
  if (e.startsWith("data:"))
1958
1958
  return e;
1959
1959
  const t = mt.get(e);
@@ -1965,8 +1965,8 @@ async function er(e) {
1965
1965
  });
1966
1966
  return mt.set(e, n), n;
1967
1967
  }
1968
- async function tr() {
1969
- const e = await $n();
1968
+ async function nr() {
1969
+ const e = await er();
1970
1970
  if (!e.theme)
1971
1971
  throw new Error("Theme URL not found in assets response");
1972
1972
  const t = e.theme, i = t.startsWith("http://") || t.startsWith("https://");
@@ -1980,14 +1980,14 @@ async function tr() {
1980
1980
  r = (await yt.get(t)).data;
1981
1981
  const n = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo;
1982
1982
  let o = n;
1983
- return n && (o = await er(n)), {
1983
+ return n && (o = await tr(n)), {
1984
1984
  ...r,
1985
1985
  logo: o
1986
1986
  };
1987
1987
  }
1988
- async function nr() {
1989
- const e = await tr();
1990
- return e.main && Zn(e.main, e.buttonColor), e;
1988
+ async function rr() {
1989
+ const e = await nr();
1990
+ return e.main && $n(e.main, e.buttonColor), e;
1991
1991
  }
1992
1992
  const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
1993
1993
  PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
@@ -2003,7 +2003,7 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
2003
2003
  (e) => e.GovernmentValidation
2004
2004
  ),
2005
2005
  GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
2006
- EXTERNAL_VERIFICATION: () => import("../ekycModule-CT6sxv3k.js").then((e) => e.EkycModule),
2006
+ EXTERNAL_VERIFICATION: () => import("../ekycModule-BgFGstuw.js").then((e) => e.EkycModule),
2007
2007
  EKYB: () => import("../ekybModule-G2eXzUMi.js").then((e) => e.EkybModule),
2008
2008
  DOCUMENT_CAPTURE: () => import("../documentCapture-DyhxCgpZ.js").then(
2009
2009
  (e) => e.DocumentCapture
@@ -2020,37 +2020,38 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
2020
2020
  function Bt() {
2021
2021
  return zt({
2022
2022
  modules: {
2023
- PHONE: tn,
2024
- EMAIL: Zt,
2025
- SELFIE: nn,
2026
- AUTHENTICATION: rn,
2023
+ PHONE: nn,
2024
+ EMAIL: $t,
2025
+ SELFIE: rn,
2026
+ AUTHENTICATION: on,
2027
2027
  ID: ae,
2028
2028
  TUTORIAL_ID: ae,
2029
2029
  SECOND_ID: ae,
2030
- FACE_MATCH: $t,
2031
- CURP_VALIDATION: on,
2032
- GOVT_VALIDATION_PROVISIONING: sn,
2033
- GEOLOCATION: en,
2034
- EXTERNAL_VERIFICATION: Xt,
2035
- EKYB: Wt,
2030
+ FACE_MATCH: en,
2031
+ CURP_VALIDATION: sn,
2032
+ GOVT_VALIDATION_PROVISIONING: an,
2033
+ GEOLOCATION: tn,
2034
+ EXTERNAL_VERIFICATION: Zt,
2035
+ EKYB: Xt,
2036
2036
  DOCUMENT_CAPTURE: Ve,
2037
2037
  ADDRESS: Ve,
2038
- COMBINED_CONSENT: an,
2039
- MANDATORY_CONSENT: cn,
2040
- SIGNATURE: un
2038
+ COMBINED_CONSENT: cn,
2039
+ MANDATORY_CONSENT: ln,
2040
+ SIGNATURE: dn
2041
2041
  }
2042
2042
  });
2043
2043
  }
2044
2044
  async function Pt(e) {
2045
- await ln({
2045
+ await un({
2046
2046
  apiURL: e.apiURL,
2047
2047
  token: e.token,
2048
+ wasm: !1,
2048
2049
  i18n: { lang: e.lang ?? "en" }
2049
2050
  });
2050
2051
  }
2051
2052
  async function Lt() {
2052
2053
  try {
2053
- const e = await nr(), t = {
2054
+ const e = await rr(), t = {
2054
2055
  logoSrc: e.logo,
2055
2056
  hideFooterBranding: e.hideFooterBranding
2056
2057
  };
@@ -2061,14 +2062,17 @@ async function Lt() {
2061
2062
  }
2062
2063
  function Dt(e, t) {
2063
2064
  const i = Et(e.flow);
2064
- i.length > 0 && jt({
2065
- ...t,
2066
- pipelines: i
2067
- }).catch((r) => {
2068
- console.error("WASM warmup failed:", r);
2069
- });
2065
+ if (i.length > 0) {
2066
+ const r = jt({
2067
+ ...t,
2068
+ pipelines: i
2069
+ });
2070
+ xt(r).catch((n) => {
2071
+ console.error("WASM warmup failed:", n);
2072
+ });
2073
+ }
2070
2074
  }
2071
- function rr(e) {
2075
+ function or(e) {
2072
2076
  const t = e.currentStep;
2073
2077
  if (t) {
2074
2078
  const i = ke[t];
@@ -2076,7 +2080,7 @@ function rr(e) {
2076
2080
  });
2077
2081
  }
2078
2082
  }
2079
- const or = ({
2083
+ const ir = ({
2080
2084
  moduleKey: e,
2081
2085
  onNext: t
2082
2086
  }) => /* @__PURE__ */ l("section", { class: "IncodeUnsupportedModule", "aria-live": "polite", children: /* @__PURE__ */ l("div", { class: "IncodeUnsupportedModuleContent", children: [
@@ -2119,7 +2123,7 @@ function pt(e) {
2119
2123
  }
2120
2124
  };
2121
2125
  }
2122
- function _r(e) {
2126
+ function Or(e) {
2123
2127
  const { token: t } = e;
2124
2128
  if (V.has(t))
2125
2129
  return pt(t);
@@ -2146,7 +2150,7 @@ function _r(e) {
2146
2150
  }), u = o.subscribe((h) => {
2147
2151
  if (h.status === "ready") {
2148
2152
  const g = h;
2149
- e.wasmConfig && Dt(g, e.wasmConfig), rr(g), a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "ready", a.readyResolve();
2153
+ e.wasmConfig && Dt(g, e.wasmConfig), or(g), a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "ready", a.readyResolve();
2150
2154
  } else h.status === "error" && (a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "error", a.error = h.error, a.readyReject(new Error(h.error)));
2151
2155
  });
2152
2156
  a.unsubscribe = u, o.load(), await s;
@@ -2164,7 +2168,7 @@ function Ct(e) {
2164
2168
  const t = De(e);
2165
2169
  return t && V.delete(e), t;
2166
2170
  }
2167
- function ir(e) {
2171
+ function sr(e) {
2168
2172
  const { apiURL: t, token: i, lang: r, disableDashboardTheme: n, onError: o } = e, a = Le(null), [c, s] = _(() => {
2169
2173
  const h = De(i);
2170
2174
  if (h?.status === "ready") {
@@ -2217,7 +2221,7 @@ function ir(e) {
2217
2221
  })();
2218
2222
  }, [t, i, r, n, o, c]), c;
2219
2223
  }
2220
- function sr(e) {
2224
+ function ar(e) {
2221
2225
  const { moduleKey: t, onModuleLoading: i, onModuleLoaded: r, onError: n } = e, [o, a] = _({ status: "idle" });
2222
2226
  return L(() => {
2223
2227
  if (!t) {
@@ -2243,7 +2247,7 @@ function sr(e) {
2243
2247
  };
2244
2248
  }, [t, i, r, n]), o;
2245
2249
  }
2246
- function ar(e, t) {
2250
+ function cr(e, t) {
2247
2251
  const i = Le(/* @__PURE__ */ new Set());
2248
2252
  L(() => {
2249
2253
  if (t < e.length - 1) {
@@ -2258,12 +2262,12 @@ function ar(e, t) {
2258
2262
  }
2259
2263
  }, [e, t]);
2260
2264
  }
2261
- const cr = ({
2265
+ const lr = ({
2262
2266
  config: e,
2263
2267
  onFinish: t,
2264
2268
  onError: i
2265
2269
  }) => {
2266
- const { t: r, i18n: n } = F(), [o, a] = _(!1), c = ir({
2270
+ const { t: r, i18n: n } = F(), [o, a] = _(!1), c = sr({
2267
2271
  apiURL: e.apiURL,
2268
2272
  token: e.token,
2269
2273
  lang: e.lang,
@@ -2271,13 +2275,13 @@ const cr = ({
2271
2275
  onError: i
2272
2276
  }), [s, u] = It(() => c.flowManager, {
2273
2277
  autoLoad: !1
2274
- }), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !o, g = sr({
2278
+ }), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !o, g = ar({
2275
2279
  moduleKey: s?.status === "ready" && !h ? s.currentStep : void 0,
2276
2280
  onModuleLoading: e.onModuleLoading,
2277
2281
  onModuleLoaded: e.onModuleLoaded,
2278
2282
  onError: i
2279
2283
  });
2280
- if (ar(
2284
+ if (cr(
2281
2285
  s?.status === "ready" ? s.steps : [],
2282
2286
  s?.status === "ready" ? s.currentStepIndex : -1
2283
2287
  ), L(() => {
@@ -2365,7 +2369,7 @@ const cr = ({
2365
2369
  ) });
2366
2370
  if (g.status === "unsupported")
2367
2371
  return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
2368
- or,
2372
+ ir,
2369
2373
  {
2370
2374
  moduleKey: d,
2371
2375
  onNext: () => u.completeModule()
@@ -2609,21 +2613,21 @@ const cr = ({
2609
2613
  ) });
2610
2614
  }
2611
2615
  return null;
2612
- }, lr = ({
2616
+ }, ur = ({
2613
2617
  config: e,
2614
2618
  onFinish: t = () => {
2615
2619
  },
2616
2620
  onError: i
2617
2621
  }) => /* @__PURE__ */ l(wt, { children: e ? /* @__PURE__ */ l(
2618
- cr,
2622
+ lr,
2619
2623
  {
2620
2624
  config: e,
2621
2625
  onFinish: t,
2622
2626
  onError: i
2623
2627
  }
2624
2628
  ) : null });
2625
- Tt(lr, "incode-flow");
2629
+ Tt(ur, "incode-flow");
2626
2630
  export {
2627
- lr as IncodeFlow,
2628
- _r as preloadIncodeFlow
2631
+ ur as IncodeFlow,
2632
+ Or as preloadIncodeFlow
2629
2633
  };
package/dist/id/id.es.js CHANGED
@@ -5,7 +5,7 @@ import "@incodetech/core";
5
5
  import { P as f } from "../permissions-BeU3HuVB.js";
6
6
  import { r as l } from "../incodeModule-C4XIllao.js";
7
7
  import { P as h } from "../processing-Ss26Ad0W.js";
8
- import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-Bq6Yj6PU.js";
8
+ import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-CPzQqCvm.js";
9
9
  import "../captureOverlay-Crv6ZBp_.js";
10
10
  import "../uiConfig-DmIn-g8M.js";
11
11
  import "../typography-CBPoLoAP.js";
@@ -6,7 +6,7 @@ import "@incodetech/core";
6
6
  import { C as y } from "../checkbox-wo8qk7tM.js";
7
7
  import { O as k } from "../otpInput-B85heGC5.js";
8
8
  import { P as g } from "../page-D4OThpFS.js";
9
- import { P as R } from "../phoneInputComposed-FjM87j1t.js";
9
+ import { P as R } from "../phoneInputComposed-BAFZQ4Y8.js";
10
10
  import { r as V } from "../incodeModule-C4XIllao.js";
11
11
  const B = ({
12
12
  config: i,
@@ -1,11 +1,11 @@
1
- import { u as a } from "./button-DXIWeie9.js";
2
- import { D as J, d as L, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
3
- import { w as X, g as I, c as j, b as k } from "./countries-DfLkrF0x.js";
1
+ import { u as s } from "./button-DXIWeie9.js";
2
+ import { D as J, d as D, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
3
+ import { w as X, g as h, c as j, b as k } from "./countries-DfLkrF0x.js";
4
4
  import { D as z } from "./dropdownComposed-CzAsPPqv.js";
5
5
  import { E as _ } from "./errorIcon-DOuc6ONw.js";
6
6
  import { S as q } from "./successIcon-BZphSsQr.js";
7
7
  import { a as e2 } from "./inputComposed-QzDneavl.js";
8
- import { P as n2, p as D, A as g } from "./AsYouType-D1H_js4X.js";
8
+ import { P as n2, p as L, A as g } from "./AsYouType-D1H_js4X.js";
9
9
  function o2(e, o, r) {
10
10
  if (o[e])
11
11
  return new n2(e, o[e], r);
@@ -21,123 +21,124 @@ function s2(e, o) {
21
21
  const r = e.replace(/\D/g, "");
22
22
  if (r === o) return e;
23
23
  if (!r.endsWith(o)) return null;
24
- const l = r.length - o.length;
25
- if (l <= 0) return e;
24
+ const a = r.length - o.length;
25
+ if (a <= 0) return e;
26
+ const l = e.replace(/[()]/g, "");
26
27
  let c = 0;
27
- for (let s = 0; s < e.length; s++)
28
- if (/\d/.test(e[s]) && (c++, c === l))
29
- return e.slice(s + 1).trimStart();
28
+ for (let d = 0; d < l.length; d++)
29
+ if (/\d/.test(l[d]) && (c++, c === a))
30
+ return l.slice(d + 1).replace(/^\D+/, "");
30
31
  return e;
31
32
  }
32
33
  const a2 = {
33
34
  US: "(123) 456-7890",
34
35
  CA: "(123) 456-7890"
35
36
  };
36
- function l2(e) {
37
+ function c2(e) {
37
38
  const o = a2[e];
38
39
  if (o) return o;
39
40
  const r = t2(e, r2);
40
41
  if (!r) return "";
41
- const l = r.formatNational(), c = s2(l, r.nationalNumber);
42
- if (c) return c;
43
- const s = `+${k(e)}`;
44
- return b(r.nationalNumber, s, e);
42
+ const a = r.formatNational(), l = s2(a, r.nationalNumber);
43
+ if (l) return l;
44
+ const c = `+${k(e)}`;
45
+ return b(r.nationalNumber, c, e);
45
46
  }
46
- const c2 = J(
47
+ const l2 = J(
47
48
  ({
48
49
  id: e,
49
50
  label: o,
50
51
  countryCode: r = "US",
51
- value: l,
52
- placeholder: c,
53
- error: s,
54
- helper: h,
52
+ value: a,
53
+ placeholder: l,
54
+ error: c,
55
+ helper: d,
55
56
  showErrorIcon: R,
56
57
  showHelperIcon: y,
57
58
  disabled: E = !1,
58
59
  disableCountrySelector: K = !1,
59
60
  required: P,
60
- onChange: S,
61
+ onChange: f,
61
62
  "aria-labelledby": $,
62
63
  "data-testid": H,
63
64
  ...W
64
65
  }, U) => {
65
- const [d, N] = L(r), [u, f] = L(""), T = x(!1), F = M(
66
+ const [p, N] = D(r), [C, S] = D(""), T = x(!1), F = M(
66
67
  () => j.map((t) => ({
67
68
  value: t.code,
68
69
  label: `${t.emoji} ${t.callingCode} ${t.name}`
69
70
  })),
70
71
  []
71
72
  ), i = M(
72
- () => I(d) ?? I("US"),
73
- [d]
73
+ () => h(p) ?? h("US"),
74
+ [p]
74
75
  ), O = M(
75
- () => c ?? l2(d),
76
- [c, d]
76
+ () => l ?? c2(p),
77
+ [l, p]
77
78
  );
78
79
  Q(() => {
79
- if (T.current || !l || !i) return;
80
+ if (T.current || !a || !i) return;
80
81
  T.current = !0;
81
- const t = l.startsWith("+") ? l : `+${l}`, n = D(t);
82
+ const t = a.startsWith("+") ? a : `+${a}`, n = L(t);
82
83
  if (n?.isValid() && n.country) {
83
- n.country !== d && N(n.country);
84
- const p = new g(n.country);
85
- f(p.input(n.nationalNumber));
84
+ n.country !== p && N(n.country);
85
+ const u = new g(n.country);
86
+ S(u.input(n.nationalNumber));
86
87
  }
87
- }, [l, i, d]);
88
- const C = A(
88
+ }, [a, i, p]);
89
+ const m = A(
89
90
  (t, n) => {
90
- const p = `${n.callingCode}${t.replace(/\D/g, "")}`;
91
+ const u = `${n.callingCode}${t.replace(/\D/g, "")}`;
91
92
  try {
92
- const Y = D(p, n.code);
93
- S?.(p, Y?.isValid() ?? !1);
93
+ const Y = L(u, n.code);
94
+ f?.(u, Y?.isValid() ?? !1);
94
95
  } catch {
95
- S?.(p, !1);
96
+ f?.(u, !1);
96
97
  }
97
98
  },
98
- [S]
99
+ [f]
99
100
  ), V = A(
100
101
  (t) => {
101
102
  N(t);
102
- const n = I(t);
103
- n && u && C(u, n);
103
+ const n = h(t);
104
+ n && C && m(C, n);
104
105
  },
105
- [u, C]
106
+ [C, m]
106
107
  ), Z = A(
107
108
  (t) => {
108
109
  const n = t.target.value;
109
110
  if (!i) {
110
- f(n);
111
+ S(n);
111
112
  return;
112
113
  }
113
- const p = b(
114
+ const u = b(
114
115
  n,
115
116
  i.callingCode,
116
117
  i.code
117
118
  );
118
- f(p), C(n, i);
119
+ S(u), m(n, i);
119
120
  },
120
- [i, C]
121
- ), v = `${e}-country`, m = `${e}-phone`, G = `${m}-helper`, B = `${m}-error`, w = [h ? G : null, s ? B : null].filter(Boolean).join(" ");
122
- return /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposed", children: [
123
- o && /* @__PURE__ */ a(
121
+ [i, m]
122
+ ), v = `${e}-country`, I = `${e}-phone`, G = `${I}-helper`, B = `${I}-error`, w = [d ? G : null, c ? B : null].filter(Boolean).join(" ");
123
+ return /* @__PURE__ */ s("div", { class: "IncodePhoneInputComposed", children: [
124
+ o && /* @__PURE__ */ s(
124
125
  "label",
125
126
  {
126
127
  class: "IncodePhoneInputComposedLabel",
127
- htmlFor: m,
128
+ htmlFor: I,
128
129
  "data-testid": `${e}-label`,
129
130
  children: [
130
131
  o,
131
- P && /* @__PURE__ */ a("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
132
+ P && /* @__PURE__ */ s("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
132
133
  ]
133
134
  }
134
135
  ),
135
- /* @__PURE__ */ a(
136
+ /* @__PURE__ */ s(
136
137
  z,
137
138
  {
138
139
  id: v,
139
140
  options: F,
140
- value: d,
141
+ value: p,
141
142
  onChange: V,
142
143
  disabled: E || K,
143
144
  required: P,
@@ -146,60 +147,60 @@ const c2 = J(
146
147
  suppressMessages: !0,
147
148
  "aria-label": `Country code ${i.callingCode}, ${i.name}`,
148
149
  renderSelectedLabel: (t) => {
149
- const n = I(t.value);
150
+ const n = h(t.value);
150
151
  return n ? `${n.emoji} ${n.callingCode}` : t.label;
151
152
  },
152
153
  class: "IncodePhoneInputComposedDropdown",
153
- siblingElement: /* @__PURE__ */ a(
154
+ siblingElement: /* @__PURE__ */ s(
154
155
  e2,
155
156
  {
156
- id: m,
157
+ id: I,
157
158
  ref: U,
158
159
  type: "tel",
159
- value: u,
160
+ value: C,
160
161
  onInput: Z,
161
162
  placeholder: O,
162
- error: s,
163
+ error: c,
163
164
  disabled: E,
164
165
  required: P,
165
166
  suppressMessages: !0,
166
167
  "aria-label": o ? void 0 : "Phone number",
167
168
  "aria-labelledby": $,
168
169
  "aria-describedby": w || void 0,
169
- "aria-invalid": s ? "true" : void 0,
170
+ "aria-invalid": c ? "true" : void 0,
170
171
  "data-testid": H,
171
172
  ...W
172
173
  }
173
174
  )
174
175
  }
175
176
  ),
176
- s && /* @__PURE__ */ a(
177
+ c && /* @__PURE__ */ s(
177
178
  "div",
178
179
  {
179
180
  class: "IncodePhoneInputComposedErrorWrapper",
180
181
  role: "alert",
181
182
  "data-testid": `${e}-error-wrapper`,
182
183
  children: [
183
- R && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(_, { size: 16 }) }),
184
- /* @__PURE__ */ a("p", { id: B, class: "IncodePhoneInputComposedError", children: s })
184
+ R && /* @__PURE__ */ s("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ s(_, { size: 16 }) }),
185
+ /* @__PURE__ */ s("p", { id: B, class: "IncodePhoneInputComposedError", children: c })
185
186
  ]
186
187
  }
187
188
  ),
188
- h && !s && /* @__PURE__ */ a(
189
+ d && !c && /* @__PURE__ */ s(
189
190
  "div",
190
191
  {
191
192
  class: "IncodePhoneInputComposedHelperWrapper",
192
193
  "data-testid": `${e}-helper-wrapper`,
193
194
  children: [
194
- y && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(q, { size: 16 }) }),
195
- /* @__PURE__ */ a("p", { id: G, class: "IncodePhoneInputComposedHelper", children: h })
195
+ y && /* @__PURE__ */ s("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ s(q, { size: 16 }) }),
196
+ /* @__PURE__ */ s("p", { id: G, class: "IncodePhoneInputComposedHelper", children: d })
196
197
  ]
197
198
  }
198
199
  )
199
200
  ] });
200
201
  }
201
202
  );
202
- c2.displayName = "PhoneInputComposed";
203
+ l2.displayName = "PhoneInputComposed";
203
204
  export {
204
- c2 as P
205
+ l2 as P
205
206
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260401-620f105",
3
+ "version": "0.0.0-dev-20260401-018c3ea",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -136,7 +136,7 @@
136
136
  "preact-markup": "^2.1.1",
137
137
  "qrcode": "^1.5.4",
138
138
  "tailwindcss": "^4.1.17",
139
- "@incodetech/core": "0.0.0-dev-20260401-620f105"
139
+ "@incodetech/core": "0.0.0-dev-20260401-018c3ea"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@microsoft/api-extractor": "^7.53.3",