@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f

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.
Files changed (164) hide show
  1. package/dist/AsYouType-DPWqJvFu.js +2482 -0
  2. package/dist/addressAutocomplete-t809rK3N.js +108 -0
  3. package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
  4. package/dist/antifraud/antifraud.es.js +17 -18
  5. package/dist/antifraud/styles.css +1 -1
  6. package/dist/authentication/authentication.es.js +28 -50
  7. package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
  8. package/dist/back-tutorial-BNTyW-1N.js +14584 -0
  9. package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
  10. package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
  11. package/dist/base.css +327 -67
  12. package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
  13. package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
  14. package/dist/button-DrtZRYJX.js +123 -0
  15. package/dist/checkbox-kZerHUek.js +85 -0
  16. package/dist/consent/consent.es.js +82 -89
  17. package/dist/consent/styles.css +1 -1
  18. package/dist/countries-y2ydYDhN.js +8323 -0
  19. package/dist/curp-validation/curp-validation.es.js +271 -313
  20. package/dist/curp-validation/styles.css +1 -1
  21. package/dist/dateInputComposed-9zbxhNlX.js +94 -0
  22. package/dist/dateInputComposed-B36DI9FJ.js +2 -0
  23. package/dist/defineProperty-brqHEHA_.js +39 -0
  24. package/dist/document-capture/styles.css +1 -1
  25. package/dist/documentCapture-CY-g1OUT.js +784 -0
  26. package/dist/dropdownComposed-CWxUwv7E.js +258 -0
  27. package/dist/ekyb/ekyb.es.js +2 -0
  28. package/dist/ekyb/styles.css +1 -1
  29. package/dist/ekybModule-DGOhCY0S.js +286 -0
  30. package/dist/ekybModule-mBTq_Apn.js +2 -0
  31. package/dist/ekyc/ekyc.es.js +2 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-DZlqb6Bc.js +2 -0
  34. package/dist/ekycModule-rJxf46TS.js +233 -0
  35. package/dist/email/email.es.js +110 -154
  36. package/dist/email/styles.css +1 -1
  37. package/dist/extensibility-CcUfegWj.js +2248 -0
  38. package/dist/extensibility.es.js +22 -150
  39. package/dist/face-match/styles.css +147 -73
  40. package/dist/faceMatch-K9k9f1HF.js +191 -0
  41. package/dist/flip-animation-DOJzdXB-.js +6983 -0
  42. package/dist/flow/flow.es.js +2274 -2613
  43. package/dist/flow/styles.css +432 -73
  44. package/dist/formField-BBfAFfVZ.js +100 -0
  45. package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
  46. package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
  47. package/dist/frontdevicelottie-DadDp6be.js +17302 -0
  48. package/dist/geolocation/geolocation.es.js +852 -832
  49. package/dist/geolocation/styles.css +1 -1
  50. package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
  51. package/dist/governmentValidation/governmentValidation.es.js +100 -106
  52. package/dist/governmentValidation/styles.css +1 -1
  53. package/dist/i18n-DZOHbK9q.js +1916 -0
  54. package/dist/icons-BHbofCgJ.js +245 -0
  55. package/dist/id/id.es.js +53 -59
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BWyU3VgL.js +467 -0
  58. package/dist/id-laser-v-JiWXUlv0.js +467 -0
  59. package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
  60. package/dist/incodeModule-Bf6yJ8RB.js +18 -0
  61. package/dist/index.es.js +4 -25
  62. package/dist/inputComposed-rPAh6ptN.js +77 -0
  63. package/dist/loadingIcon-BDMR5L6z.js +147 -0
  64. package/dist/mandatoryConsent-ohmxTqe7.js +101 -0
  65. package/dist/numberedStep-CQVRixRP.js +11 -0
  66. package/dist/otpInput-DRZiayDi.js +143 -0
  67. package/dist/page-M9yWRw73.js +61 -0
  68. package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
  69. package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
  70. package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
  71. package/dist/phone/phone.es.js +87 -121
  72. package/dist/phone/styles.css +1 -1
  73. package/dist/phoneInput-C9T_8FJt.js +138 -0
  74. package/dist/phoneInputComposed-CXTXBQ0B.js +407 -0
  75. package/dist/processing-yJ5QEgaC.js +15 -0
  76. package/dist/redirect-to-mobile/styles.css +1 -1
  77. package/dist/richText-Db0PfpkE.js +1973 -0
  78. package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
  79. package/dist/selfie/selfie.es.js +29 -50
  80. package/dist/selfie/styles.css +170 -66
  81. package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
  82. package/dist/setup-Dq2bzNKH.js +15 -0
  83. package/dist/signature/signature.es.js +557 -707
  84. package/dist/signature/styles.css +1 -1
  85. package/dist/spacer-DCljE53A.js +59 -0
  86. package/dist/spinner-BK2pIUzB.js +41 -0
  87. package/dist/spinner-DjG-sUzI.js +1 -0
  88. package/dist/successIcon-AHrfmJvv.js +17 -0
  89. package/dist/tutorial-C2kSUHWe.js +2781 -0
  90. package/dist/types/ekyb.d.ts +29 -0
  91. package/dist/types/ekyc.d.ts +29 -0
  92. package/dist/types/extensibility.d.ts +3 -5
  93. package/dist/types/flow.d.ts +1 -1
  94. package/dist/types/index.d.ts +2 -10
  95. package/dist/typography-BQrJwR60.js +1 -0
  96. package/dist/typography-BtyuWjzC.js +29 -0
  97. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  98. package/dist/vendor-preact-D6SntenC.js +958 -0
  99. package/dist/warningIcon-Cvj-ayg1.js +17 -0
  100. package/package.json +8 -11
  101. package/dist/AsYouType-D1H_js4X.js +0 -2607
  102. package/dist/Trans-aTzdT_SA.js +0 -55
  103. package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
  104. package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
  105. package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
  106. package/dist/back-tutorial-An9AcMSe.js +0 -29
  107. package/dist/back-vertical-hint-CNieqiCr.js +0 -5
  108. package/dist/backdevicelottie-B4NgyWmX.js +0 -29
  109. package/dist/blurdevicelottie-_BZRug1c.js +0 -29
  110. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  111. package/dist/button-CE9kRlem.js +0 -184
  112. package/dist/cameraView-C2X7klNb.js +0 -55
  113. package/dist/captureOverlay-tCb4R4WE.js +0 -592
  114. package/dist/checkbox-B5X-mfqq.js +0 -137
  115. package/dist/chevronDown-DSHaPKbi.js +0 -23
  116. package/dist/closeIcon-9Hc97omv.js +0 -28
  117. package/dist/countries-DfLkrF0x.js +0 -616
  118. package/dist/dateInputComposed-C7PCzh-U.js +0 -173
  119. package/dist/documentCapture-C0mO-RGE.js +0 -692
  120. package/dist/dropdownComposed-BpinYlrx.js +0 -367
  121. package/dist/ekybModule-Dr6LJUg-.js +0 -357
  122. package/dist/ekycModule-C3mswduI.js +0 -291
  123. package/dist/errorContent-Cb8nmQAE.js +0 -44
  124. package/dist/errorIcon-DEARBrGx.js +0 -26
  125. package/dist/faceMatch-DbDp7D3d.js +0 -237
  126. package/dist/fileIcon-CCSvS10T.js +0 -52
  127. package/dist/flip-animation-COR596wy.js +0 -29
  128. package/dist/flipAnimation-BqV462TA.js +0 -2059
  129. package/dist/formField-CP6wDdfA.js +0 -106
  130. package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
  131. package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
  132. package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
  133. package/dist/glaredevicelottie-DLuIStvb.js +0 -29
  134. package/dist/id-laser-h-BBV3r3rz.js +0 -29
  135. package/dist/id-laser-v-BTHJaSfx.js +0 -29
  136. package/dist/id-tutorial-B-F5Q28m.js +0 -29
  137. package/dist/incodeModule-C4XIllao.js +0 -96
  138. package/dist/inputComposed-fUbAGrDy.js +0 -103
  139. package/dist/instance-BWYzq8dk.js +0 -2163
  140. package/dist/loadingIcon-DmuPXh70.js +0 -195
  141. package/dist/mandatoryConsent-5xPI0cor.js +0 -94
  142. package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
  143. package/dist/numberedStep-DwUB__mh.js +0 -5
  144. package/dist/otpInput-BFXhqFRT.js +0 -156
  145. package/dist/page-SrUl0qtN.js +0 -69
  146. package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
  147. package/dist/passport-tutorial-CaYBFTqt.js +0 -29
  148. package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
  149. package/dist/permissions-DT4Fz9MR.js +0 -709
  150. package/dist/phoneInput-CGr8TxOO.js +0 -158
  151. package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
  152. package/dist/processing-szVOCQwZ.js +0 -19
  153. package/dist/richText-cspvNz2a.js +0 -1807
  154. package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
  155. package/dist/spinner-DygONskw.js +0 -60
  156. package/dist/successIcon-Bjsdc4lF.js +0 -26
  157. package/dist/tutorial-Cdz1025D.js +0 -473
  158. package/dist/types/ekyb/styles.d.ts +0 -1
  159. package/dist/types/ekyc/styles.d.ts +0 -1
  160. package/dist/typography-BDACYR5i.js +0 -14
  161. package/dist/uiConfig-Dnt-2YWB.js +0 -23
  162. package/dist/useMediaQuery-lJdQBmC2.js +0 -18
  163. package/dist/vendor-preact-BoMmvSgn.js +0 -694
  164. package/dist/warningIcon-DQq_MrOB.js +0 -26
@@ -0,0 +1,267 @@
1
+ import { v as e } from "./vendor-preact-D6SntenC.js";
2
+ //#region src/modules/id/capture/assets/hints/passport-vertical-hint.svg?react
3
+ var t = (t) => /* @__PURE__ */ e("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ fill: "none",
6
+ viewBox: "0 0 800 800",
7
+ ...t,
8
+ children: [/* @__PURE__ */ e("g", {
9
+ clipPath: "url(#a)",
10
+ children: [
11
+ /* @__PURE__ */ e("path", {
12
+ fill: "url(#b)",
13
+ fillRule: "evenodd",
14
+ d: "M231.843 392.153c5.324-.558 10.366.505 13.447 1.683l.103.039 18.429 9.465 30.08 8.875c4.919.197 12.773 1.176 20.839 3.492 8.172 2.347 16.8 6.134 22.749 12.083 5.752 5.752 14.184 17.239 22.311 29.11 8.163 11.922 16.131 24.399 20.977 32.254l1.882 3.051h-3.584c-2.346 0-5.838.871-8.53 3.445-2.612 2.497-4.731 6.847-3.98 14.356 1.577 15.766-1.461 28.736-3.432 33.929.498 3.732.701 14.082-1.575 31.528-1.544 11.842-5.765 17.785-11.222 20.251-5.187 2.346-10.895 1.204-14.551.472l-.102-.02c-3.854-.771-6.617-3.938-8.45-7.012-.226-.378-.442-.762-.648-1.149-.616 4.316-1.458 9.242-2.532 14.117-1.824 8.285-4.387 16.766-7.836 21.725-3.712 5.336-9.083 6.7-14.016 6.301-3.065-.248-3.029-1.172-5.495-2.271l8.835 71.964c.002.006.003.013.004.019 3.11 16.822 2.207 44.074-1.632 68.258-3.825 24.086-10.669 45.831-32.092 54.442-20.967 8.428-45.704 6.62-67.903 1.111-22.19-5.508-42.134-14.787-53.792-21.704-5.516-2.684-13.393-7.875-19.281-14.861-5.921-7.027-10.041-16.154-7.198-26.435 2.511-9.078 3.07-24.757 2.691-40.907-.377-16.013-1.665-32.204-2.742-42.25l-6.509-31.548-.009-.145c-1.5-25.667-4.799-81.999-5.999-101.997-1.383-23.045 15.597-34.574 21.803-38.788.868-.589 1.524-1.035 1.892-1.35 1.297-1.112 4.584-4.514 8.268-8.438 3.608-3.842 7.487-8.067 9.985-10.814l16.954-22.938 17.505-22.506c6.505-8.673 21.396-28.495 28.997-38.496 4.214-5.545 9.991-7.778 15.359-8.341Zm.417 3.978c-4.566.479-9.206 2.329-12.592 6.784-7.595 9.994-22.491 29.822-28.992 38.49l-.01.014-17.496 22.494-17.046 23.062-.068.075c-2.505 2.755-6.438 7.039-10.097 10.936-3.616 3.851-7.079 7.449-8.581 8.737-.559.479-1.424 1.08-2.495 1.824-6.603 4.588-21.036 14.615-19.81 35.038 1.197 19.964 4.487 76.125 5.991 101.858l6.49 31.452.01.096c1.088 10.128 2.393 26.485 2.774 42.679.378 16.109-.146 32.346-2.835 42.068-2.356 8.519.94 16.309 6.402 22.79 5.468 6.489 12.895 11.383 18.043 13.877l.076.037.073.043c11.352 6.745 30.972 15.889 52.786 21.303 21.851 5.424 45.613 7.033 65.447-.939 19.377-7.789 25.865-27.627 29.633-51.358 3.751-23.623 4.701-50.41 1.646-66.923l-.004-.019-10.234-80.47 3.789 2.445c2.391 1.542 3.352 3.312 7.365 3.637 3.925.318 7.722-.735 10.409-4.599 2.951-4.241 5.388-12.01 7.214-20.3 1.805-8.196 2.944-16.564 3.437-21.747l3.94-.26c.464 2.01 1.522 5.131 3.144 7.85 1.666 2.793 3.653 4.709 5.799 5.138 3.849.77 8.333 1.584 12.222-.173 3.668-1.659 7.447-5.966 8.903-17.124 2.393-18.35 1.959-28.37 1.514-30.894l-.101-.568.218-.534c1.711-4.2 4.929-16.873 3.362-32.546-.849-8.492 1.532-14.142 5.195-17.645 2.444-2.336 5.34-3.604 7.936-4.174-4.869-7.804-11.968-18.839-19.216-29.426-8.156-11.912-16.391-23.092-21.839-28.54-5.251-5.251-13.122-8.797-21.025-11.067-7.869-2.26-15.531-3.187-20.131-3.349l-.253-.009-30.923-9.124-18.567-9.535c-2.598-.974-6.953-1.881-11.503-1.404Z",
15
+ clipRule: "evenodd"
16
+ }),
17
+ /* @__PURE__ */ e("path", {
18
+ fill: "#fff",
19
+ d: "M275 229h196v342H275V229Z"
20
+ }),
21
+ /* @__PURE__ */ e("path", {
22
+ fill: "url(#c)",
23
+ fillOpacity: .3,
24
+ d: "M30 238.863c0-5.447 4.3658-9.863 9.7513-9.863H275v341H39.7512c-5.3855 0-9.7513-4.416-9.7513-9.863L30 238.863Z"
25
+ }),
26
+ /* @__PURE__ */ e("path", {
27
+ fill: "#AEAEAE",
28
+ d: "M353 538c0 4.418 3.587 8 8.012 8H431c-5.44-6.875-9.973-23.751-9.973-23.751 3.937 0 9.613-7.736 9.714-13.785 0-8.435-5.777-15.181-9.716-15.181 0 0 3.957-14.737 8.915-22.283h-68.928c-4.425 0-8.012 3.582-8.012 8v59Z"
29
+ }),
30
+ /* @__PURE__ */ e("path", {
31
+ fill: "url(#d)",
32
+ d: "M415.773 519.189h.147c3.108.041 5.444 2.643 7.01 7.808 4.545-6.223 8.18-12.447 8.18-18.67 0-6.224-3.635-12.448-8.18-18.671-1.567 5.13-3.908 7.732-7.021 7.808-1.181 0-12.691-.004-13.872-.01.052-.371.019-.339-.076 0-3.892-.01 1.203-.027-4.116-.05-5.318-.023-10.077 22.145 4.528 21.819 1.489-.004 11.714-.013 13.4-.034Z"
33
+ }),
34
+ /* @__PURE__ */ e("path", {
35
+ fill: "#CDCDCD",
36
+ d: "M408.63 519.077c-.969-9.325 3.067-18.105 3.067-18.105s9.138 1.74 6.482 18.105h-9.549Z"
37
+ }),
38
+ /* @__PURE__ */ e("path", {
39
+ fill: "url(#e)",
40
+ d: "M389.91 526.852c-1.943-1.233-.622-2.751.281-3.356l8.599-.808c.749.034 1.228.509 1.384 1.743.195 1.542-3.782 2.54-5.266 2.888-1.485.347-2.569 1.073-4.998-.467Z"
41
+ }),
42
+ /* @__PURE__ */ e("path", {
43
+ fill: "url(#f)",
44
+ d: "M391.03 489.808c-1.955 1.214-.649 2.744.249 3.358l8.591.889c.749-.027 1.233-.497 1.4-1.73.21-1.54-3.757-2.575-5.238-2.937-1.482-.362-2.559-1.098-5.002.42Z"
45
+ }),
46
+ /* @__PURE__ */ e("path", {
47
+ fill: "#fff",
48
+ d: "M391.716 490.788c13.008 0 23.552 9.533 23.552 16.973 0 8.138-10.544 16.973-23.552 16.973-11.589 0-23.973-.936-23.973-16.973s12.116-16.973 23.973-16.973Z"
49
+ }),
50
+ /* @__PURE__ */ e("path", {
51
+ fill: "#707070",
52
+ d: "M429.159 471H445c4.418 0 8 3.582 8 8v59c0 4.418-3.582 8-8 8h-14.752c-5.589-6.875-9.748-23.5-9.748-23.5 4.044 0 9.378-7.987 9.482-14.036 0-8.435-5.435-14.964-9.482-14.964 0 0 3.565-14.954 8.659-22.5Z"
53
+ }),
54
+ /* @__PURE__ */ e("path", {
55
+ fill: "#E9E9EB",
56
+ d: "M436 418c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v43c0 1.104-.896 2-2 2h-9c-1.104 0-2-.896-2-2v-43Zm-26.214-91c0-1.105.896-2 2-2h9.286c1.105 0 2 .896 2 2v134c0 1.104-.895 2-2 2h-9.286c-1.104 0-2-.895-2-2V327Zm-26.571 37.154c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Zm-26.571 0c0-1.104.895-2 2-2h9.286c1.104.001 2 .896 2 2V461c0 1.104-.896 2-2 2h-9.286c-1.105 0-2-.895-2-2v-96.846Z"
57
+ }),
58
+ /* @__PURE__ */ e("rect", {
59
+ width: 34,
60
+ height: 12,
61
+ x: 441,
62
+ y: 286,
63
+ fill: "#E9E9EB",
64
+ rx: 2,
65
+ transform: "rotate(-90 441 286)"
66
+ }),
67
+ /* @__PURE__ */ e("rect", {
68
+ width: 34,
69
+ height: 12,
70
+ x: 413,
71
+ y: 286,
72
+ fill: "#E9E9EB",
73
+ rx: 2,
74
+ transform: "rotate(-90 413 286)"
75
+ }),
76
+ /* @__PURE__ */ e("rect", {
77
+ width: 34,
78
+ height: 13,
79
+ x: 384,
80
+ y: 286,
81
+ fill: "#E9E9EB",
82
+ rx: 2,
83
+ transform: "rotate(-90 384 286)"
84
+ }),
85
+ /* @__PURE__ */ e("path", {
86
+ fill: "#F4F4F5",
87
+ d: "M471 571V229h42c6.627 0 12 5.373 12 12v318c0 6.627-5.373 12-12 12h-42Z"
88
+ }),
89
+ /* @__PURE__ */ e("rect", {
90
+ width: 139,
91
+ height: 19,
92
+ x: 303,
93
+ y: 546,
94
+ fill: "#C9C9C9",
95
+ fillOpacity: .5,
96
+ rx: 2,
97
+ transform: "rotate(-90 303 546)"
98
+ }),
99
+ /* @__PURE__ */ e("rect", {
100
+ width: 28,
101
+ height: 28,
102
+ x: 303,
103
+ y: 280,
104
+ fill: "#EAF0F6",
105
+ rx: 2,
106
+ transform: "rotate(-90 303 280)"
107
+ }),
108
+ /* @__PURE__ */ e("rect", {
109
+ width: 299,
110
+ height: 13,
111
+ x: 481,
112
+ y: 551,
113
+ fill: "#C9C9C9",
114
+ fillOpacity: .5,
115
+ rx: 2,
116
+ transform: "rotate(-90 481 551)"
117
+ }),
118
+ /* @__PURE__ */ e("rect", {
119
+ width: 299,
120
+ height: 13,
121
+ x: 502,
122
+ y: 551,
123
+ fill: "#C9C9C9",
124
+ fillOpacity: .5,
125
+ rx: 2,
126
+ transform: "rotate(-90 502 551)"
127
+ }),
128
+ /* @__PURE__ */ e("path", {
129
+ fill: "url(#g)",
130
+ stroke: "url(#h)",
131
+ strokeWidth: 6,
132
+ d: "M291.236 614.053c17.5 91 15.508 156.278 9.494 171.762-18.872 70.363-109.364 47.471-148.681 21.591-3.814-48.5 39.153-70.476 41.804-121.931-.152-7.444 14.136-81.358 15.979-91.247 1.843-9.89 1.168-48.684-1.131-61.128-2.3-12.445.075-38.353 7.916-64.553 7.84-26.201 20.701-33.312 35.79-31.013 15.826 2.412 18.824 15.696 20.965 25.184 2.142 9.489 8.143 25.784 8.486 52.132.343 26.348-5.267 16.251 9.378 99.203Z"
133
+ }),
134
+ /* @__PURE__ */ e("path", {
135
+ fill: "#C9C9C9",
136
+ fillOpacity: .8,
137
+ fillRule: "evenodd",
138
+ d: "M23 559V241c0-9.389 7.6112-17 17-17h473c9.389 0 17 7.611 17 17v318c0 9.389-7.611 17-17 17H40c-9.3888 0-17-7.611-17-17Zm5 0c0 6.627 5.3726 12 12 12h473c6.627 0 12-5.373 12-12V241c0-6.627-5.373-12-12-12H40c-6.6274 0-12 5.373-12 12v318Z",
139
+ clipRule: "evenodd"
140
+ })
141
+ ]
142
+ }), /* @__PURE__ */ e("defs", { children: [
143
+ /* @__PURE__ */ e("linearGradient", {
144
+ id: "b",
145
+ x1: 451.5,
146
+ x2: 288.5,
147
+ y1: 411.5,
148
+ y2: 650.5,
149
+ gradientUnits: "userSpaceOnUse",
150
+ children: [/* @__PURE__ */ e("stop", { stopColor: "#fff" }), /* @__PURE__ */ e("stop", {
151
+ offset: 1,
152
+ stopColor: "#fff",
153
+ stopOpacity: 0
154
+ })]
155
+ }),
156
+ /* @__PURE__ */ e("linearGradient", {
157
+ id: "c",
158
+ x1: 30,
159
+ x2: 261,
160
+ y1: 400,
161
+ y2: 400,
162
+ gradientUnits: "userSpaceOnUse",
163
+ children: [/* @__PURE__ */ e("stop", {
164
+ offset: .108594,
165
+ stopColor: "#EAEAEA",
166
+ stopOpacity: 0
167
+ }), /* @__PURE__ */ e("stop", {
168
+ offset: 1,
169
+ stopColor: "#848484"
170
+ })]
171
+ }),
172
+ /* @__PURE__ */ e("linearGradient", {
173
+ id: "d",
174
+ x1: 403.261,
175
+ x2: 421.335,
176
+ y1: 509.982,
177
+ y2: 509.982,
178
+ gradientUnits: "userSpaceOnUse",
179
+ children: [/* @__PURE__ */ e("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ e("stop", {
180
+ offset: 1,
181
+ stopColor: "#fff"
182
+ })]
183
+ }),
184
+ /* @__PURE__ */ e("linearGradient", {
185
+ id: "e",
186
+ x1: 394.239,
187
+ x2: 394.798,
188
+ y1: 523.577,
189
+ y2: 526.517,
190
+ gradientUnits: "userSpaceOnUse",
191
+ children: [
192
+ /* @__PURE__ */ e("stop", {
193
+ offset: .171875,
194
+ stopColor: "#BDBDBD"
195
+ }),
196
+ /* @__PURE__ */ e("stop", {
197
+ offset: .640625,
198
+ stopColor: "#E1E1E1"
199
+ }),
200
+ /* @__PURE__ */ e("stop", {
201
+ offset: 1,
202
+ stopColor: "#DDD"
203
+ })
204
+ ]
205
+ }),
206
+ /* @__PURE__ */ e("linearGradient", {
207
+ id: "f",
208
+ x1: 395.328,
209
+ x2: 395.914,
210
+ y1: 493.124,
211
+ y2: 490.189,
212
+ gradientUnits: "userSpaceOnUse",
213
+ children: [
214
+ /* @__PURE__ */ e("stop", {
215
+ offset: .0416667,
216
+ stopColor: "#B5B5B5"
217
+ }),
218
+ /* @__PURE__ */ e("stop", {
219
+ offset: .362488,
220
+ stopColor: "#E2E2E2"
221
+ }),
222
+ /* @__PURE__ */ e("stop", {
223
+ offset: 1,
224
+ stopColor: "#fff"
225
+ })
226
+ ]
227
+ }),
228
+ /* @__PURE__ */ e("linearGradient", {
229
+ id: "g",
230
+ x1: 284.5,
231
+ x2: 240.5,
232
+ y1: 48.0001,
233
+ y2: 752.5,
234
+ gradientUnits: "userSpaceOnUse",
235
+ children: [/* @__PURE__ */ e("stop", { stopColor: "#D9D9D9" }), /* @__PURE__ */ e("stop", {
236
+ offset: .897222,
237
+ stopColor: "#fff",
238
+ stopOpacity: 0
239
+ })]
240
+ }),
241
+ /* @__PURE__ */ e("linearGradient", {
242
+ id: "h",
243
+ x1: 239.736,
244
+ x2: 226.736,
245
+ y1: 477.053,
246
+ y2: 751.053,
247
+ gradientUnits: "userSpaceOnUse",
248
+ children: [/* @__PURE__ */ e("stop", {
249
+ offset: .10944,
250
+ stopColor: "#fff"
251
+ }), /* @__PURE__ */ e("stop", {
252
+ offset: 1,
253
+ stopColor: "#fff",
254
+ stopOpacity: 0
255
+ })]
256
+ }),
257
+ /* @__PURE__ */ e("clipPath", {
258
+ id: "a",
259
+ children: /* @__PURE__ */ e("path", {
260
+ fill: "#fff",
261
+ d: "M0 0h800v800H0z"
262
+ })
263
+ })
264
+ ] })]
265
+ });
266
+ //#endregion
267
+ export { t as default };
@@ -1,121 +1,87 @@
1
- import { u as n, I as O, b as C, a as E, S as g } from "../loadingIcon-DmuPXh70.js";
2
- import { createPhoneManager as v } from "@incodetech/core/phone";
3
- import { d as w } from "../vendor-preact-BoMmvSgn.js";
4
- import "../instance-BWYzq8dk.js";
5
- import "@incodetech/core";
6
- import { B as S } from "../button-CE9kRlem.js";
7
- import { C as y } from "../checkbox-B5X-mfqq.js";
8
- import { O as k } from "../otpInput-BFXhqFRT.js";
9
- import { P } from "../page-SrUl0qtN.js";
10
- import { P as R } from "../phoneInputComposed-Cm9O2Jba.js";
11
- import { r as V } from "../incodeModule-C4XIllao.js";
12
- const B = ({
13
- config: r,
14
- manager: s,
15
- onFinish: p,
16
- onError: d
17
- }) => {
18
- const { t: e } = C(), [t, o] = E(
19
- () => {
20
- if (s) return s;
21
- if (!r)
22
- throw new Error("Phone config is required");
23
- return v({ config: r });
24
- },
25
- { manageLifecycle: !s }
26
- ), [b, I] = w(!1);
27
- if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
28
- const i = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.countryCode : "US", l = t.status === "inputting" ? t.prefilledPhone : void 0, c = t.status === "inputting" && t.phoneError ? e(t.phoneError) : void 0, u = t.status === "inputting" ? t.otpVerification ?? !1 : !1, h = t.status === "inputting" ? t.optinEnabled ?? !1 : !1;
29
- return /* @__PURE__ */ n(
30
- P,
31
- {
32
- className: "IncodePhonePage",
33
- title: e("phone.verify"),
34
- subtitle: u ? e("email.willSendCode") : void 0,
35
- children: [
36
- /* @__PURE__ */ n("div", { class: "IncodePhoneInputContainer", children: [
37
- /* @__PURE__ */ n(
38
- R,
39
- {
40
- id: "phone",
41
- countryCode: a,
42
- value: l,
43
- error: c,
44
- disabled: i,
45
- onChange: (m, f) => {
46
- o.setPhoneNumber(m, f), I(f);
47
- },
48
- "data-testid": "phone-input",
49
- showErrorIcon: !0
50
- }
51
- ),
52
- /* @__PURE__ */ n(g, { size: 16 }),
53
- h && /* @__PURE__ */ n(
54
- y,
55
- {
56
- id: "phone-optin",
57
- label: e("phone.optIn"),
58
- size: "s",
59
- onChange: (m) => o.setOptInGranted(m.target.checked)
60
- }
61
- )
62
- ] }),
63
- /* @__PURE__ */ n(g, {}),
64
- /* @__PURE__ */ n(
65
- S,
66
- {
67
- onClick: () => o.submit(),
68
- disabled: !b,
69
- isLoading: i,
70
- "data-testid": "phone-submit",
71
- children: e("common.continue")
72
- }
73
- )
74
- ]
75
- },
76
- "phone-input"
77
- );
78
- }
79
- if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
80
- const i = t.status === "verifyingOtp", a = t.status === "otpError", l = t.status === "awaitingOtp", c = t.status === "resendingOtp", u = l || a || i;
81
- return /* @__PURE__ */ n(
82
- P,
83
- {
84
- className: "IncodePhonePage",
85
- title: e("otp.enterCodeSMS"),
86
- children: /* @__PURE__ */ n(
87
- k,
88
- {
89
- resendTimer: u ? t.resendTimer : 0,
90
- canResend: u ? t.canResend : !1,
91
- isLoading: i,
92
- disabled: c || i,
93
- error: a ? e(t.otpError) : void 0,
94
- onSubmit: (h) => o.submitOtp(h),
95
- onResend: () => o.resendOtp(),
96
- onBack: () => o.back()
97
- }
98
- )
99
- },
100
- "phone-otp"
101
- );
102
- }
103
- return t.status === "finished" ? (p?.(), null) : (t.status === "error" && d?.(t.error), null);
104
- }, L = ({
105
- config: r,
106
- manager: s,
107
- onFinish: p,
108
- onError: d
109
- }) => /* @__PURE__ */ n(O, { children: r || s ? /* @__PURE__ */ n(
110
- B,
111
- {
112
- config: r,
113
- manager: s,
114
- onFinish: p,
115
- onError: d
116
- }
117
- ) : null });
118
- V(L, "incode-phone");
119
- export {
120
- L as Phone
121
- };
1
+ import { n as e } from "../i18n-DZOHbK9q.js";
2
+ import { p as t, v as n } from "../vendor-preact-D6SntenC.js";
3
+ import { c as r, r as i } from "../loadingIcon-BDMR5L6z.js";
4
+ import { t as a } from "../spacer-DCljE53A.js";
5
+ import { t as o } from "../button-DrtZRYJX.js";
6
+ import { t as s } from "../page-M9yWRw73.js";
7
+ import { t as c } from "../otpInput-DRZiayDi.js";
8
+ import { t as l } from "../checkbox-kZerHUek.js";
9
+ import { t as u } from "../phoneInputComposed-CXTXBQ0B.js";
10
+ import { t as d } from "../incodeModule-Bf6yJ8RB.js";
11
+ import { createPhoneManager as f } from "@incodetech/core/phone";
12
+ //#region src/modules/phone/phone.tsx
13
+ var p = ({ config: i, manager: d, onFinish: p, onError: m }) => {
14
+ let { t: h } = e(), [g, _] = r(() => {
15
+ if (d) return d;
16
+ if (!i) throw Error("Phone config is required");
17
+ return f({ config: i });
18
+ }, { manageLifecycle: !d }), [v, y] = t(!1);
19
+ if (g.status === "idle" || g.status === "loadingPrefill" || g.status === "inputting" || g.status === "submitting" || g.status === "sendingInitialOtp") {
20
+ let e = g.status === "idle" || g.status === "loadingPrefill" || g.status === "submitting" || g.status === "sendingInitialOtp", t = g.status === "inputting" ? g.countryCode : "US", r = g.status === "inputting" ? g.prefilledPhone : void 0, i = g.status === "inputting" && g.phoneError ? h(g.phoneError) : void 0, c = g.status === "inputting" ? g.otpVerification ?? !1 : !1, d = g.status === "inputting" ? g.optinEnabled ?? !1 : !1;
21
+ return /* @__PURE__ */ n(s, {
22
+ className: "IncodePhonePage",
23
+ title: h("phone.verify"),
24
+ subtitle: c ? h("email.willSendCode") : void 0,
25
+ children: [
26
+ /* @__PURE__ */ n("div", {
27
+ class: "IncodePhoneInputContainer",
28
+ children: [
29
+ /* @__PURE__ */ n(u, {
30
+ id: "phone",
31
+ countryCode: t,
32
+ value: r,
33
+ error: i,
34
+ disabled: e,
35
+ onChange: (e, t) => {
36
+ _.setPhoneNumber(e, t), y(t);
37
+ },
38
+ "data-testid": "phone-input",
39
+ showErrorIcon: !0
40
+ }),
41
+ /* @__PURE__ */ n(a, { size: 16 }),
42
+ d && /* @__PURE__ */ n(l, {
43
+ id: "phone-optin",
44
+ label: h("phone.optIn"),
45
+ size: "s",
46
+ onChange: (e) => _.setOptInGranted(e.target.checked)
47
+ })
48
+ ]
49
+ }),
50
+ /* @__PURE__ */ n(a, {}),
51
+ /* @__PURE__ */ n(o, {
52
+ onClick: () => _.submit(),
53
+ disabled: !v,
54
+ isLoading: e,
55
+ "data-testid": "phone-submit",
56
+ children: h("common.continue")
57
+ })
58
+ ]
59
+ }, "phone-input");
60
+ }
61
+ if (g.status === "awaitingOtp" || g.status === "verifyingOtp" || g.status === "otpError" || g.status === "resendingOtp") {
62
+ let e = g.status === "verifyingOtp", t = g.status === "otpError", r = g.status === "awaitingOtp", i = g.status === "resendingOtp", a = r || t || e;
63
+ return /* @__PURE__ */ n(s, {
64
+ className: "IncodePhonePage",
65
+ title: h("otp.enterCodeSMS"),
66
+ children: /* @__PURE__ */ n(c, {
67
+ resendTimer: a ? g.resendTimer : 0,
68
+ canResend: a ? g.canResend : !1,
69
+ isLoading: e,
70
+ disabled: i || e,
71
+ error: t ? h(g.otpError) : void 0,
72
+ onSubmit: (e) => _.submitOtp(e),
73
+ onResend: () => _.resendOtp(),
74
+ onBack: () => _.back()
75
+ })
76
+ }, "phone-otp");
77
+ }
78
+ return g.status === "finished" ? (p?.(), null) : (g.status === "error" && m?.(g.error), null);
79
+ }, m = ({ config: e, manager: t, onFinish: r, onError: a }) => /* @__PURE__ */ n(i, { children: e || t ? /* @__PURE__ */ n(p, {
80
+ config: e,
81
+ manager: t,
82
+ onFinish: r,
83
+ onError: a
84
+ }) : null });
85
+ d(m, "incode-phone");
86
+ //#endregion
87
+ export { m as Phone };
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
2
  .IncodePhonePage .IncodePageContent {
3
3
  padding-top: var(--spacing-32, var(--spacing-32, 32px));
4
4
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
@@ -0,0 +1,138 @@
1
+ import { S as e, _ as t, l as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
2
+ import { t as a } from "./spacer-DCljE53A.js";
3
+ import { c as o } from "./icons-BHbofCgJ.js";
4
+ import { r as s, t as c } from "./countries-y2ydYDhN.js";
5
+ import { n as l, t as u } from "./AsYouType-DPWqJvFu.js";
6
+ //#region src/modules/phone/phoneInput.tsx
7
+ var d = ({ countryCode: d, prefilledPhone: f, phoneError: p, optinEnabled: m = !1, disabled: h = !1, autoFocus: g = !1, onPhoneChange: _, onOptInChange: v }) => {
8
+ let [y, b] = r(null), [x, S] = r(!1), [C, w] = r(""), [T, E] = r(!1), D = n(null), O = n(null);
9
+ t(() => {
10
+ b(s(d) || c.find((e) => e.code === "US") || c[0]);
11
+ }, [d]), t(() => {
12
+ if (f && y) {
13
+ let e = f.startsWith("+") ? f : `+${f}`, t = l(e);
14
+ if (t?.isValid()) {
15
+ if (t.country && t.country !== y.code) {
16
+ let e = s(t.country);
17
+ e && b(e);
18
+ }
19
+ w(new u(t.country).input(t.nationalNumber)), _(e, !0);
20
+ }
21
+ }
22
+ }, [
23
+ f,
24
+ y,
25
+ _
26
+ ]), t(() => {
27
+ g && O.current?.focus();
28
+ }, [g]), t(() => {
29
+ let e = (e) => {
30
+ D.current && !D.current.contains(e.target) && S(!1);
31
+ };
32
+ return x && document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
33
+ }, [x]);
34
+ let k = (e, t) => {
35
+ let n = `${t.callingCode}${e.replace(/\D/g, "")}`;
36
+ try {
37
+ _(n, l(n, t.code)?.isValid() ?? !1);
38
+ } catch {
39
+ _(n, !1);
40
+ }
41
+ }, A = (e) => {
42
+ let t = e.target.value;
43
+ y ? (w(new u(y.code).input(t)), k(t, y)) : w(t);
44
+ }, j = (e) => {
45
+ b(e), S(!1), C && k(C, e);
46
+ }, M = (e) => {
47
+ let t = e.target.checked;
48
+ E(t), v?.(t);
49
+ };
50
+ return /* @__PURE__ */ i("div", {
51
+ class: "IncodePhoneInput",
52
+ children: /* @__PURE__ */ i("div", {
53
+ class: "IncodePhoneInputContainer",
54
+ children: [
55
+ /* @__PURE__ */ i("div", {
56
+ class: "IncodePhoneInputRow",
57
+ children: [/* @__PURE__ */ i("div", {
58
+ class: `IncodePhoneCountrySelector ${x ? "IncodePhoneCountrySelectorOpen" : ""} ${h ? "IncodePhoneCountrySelectorDisabled" : ""}`,
59
+ ref: D,
60
+ children: [/* @__PURE__ */ i("button", {
61
+ type: "button",
62
+ class: "IncodePhoneCountryButton",
63
+ onClick: () => {
64
+ h || S(!x);
65
+ },
66
+ disabled: h,
67
+ "aria-expanded": x,
68
+ "aria-haspopup": "listbox",
69
+ "data-testid": "phone-country-selector",
70
+ children: [
71
+ /* @__PURE__ */ i("span", {
72
+ class: "IncodePhoneCountryFlag",
73
+ "aria-hidden": "true",
74
+ children: y?.emoji
75
+ }),
76
+ /* @__PURE__ */ i("span", {
77
+ class: "IncodePhoneCountryCode",
78
+ children: y?.callingCode
79
+ }),
80
+ /* @__PURE__ */ i(o, { class: `IncodePhoneCountryArrow ${x ? "IncodePhoneCountryArrowUp" : ""}` })
81
+ ]
82
+ }), x && /* @__PURE__ */ i("div", {
83
+ class: "IncodePhoneCountryDropdown",
84
+ children: c.map((e) => /* @__PURE__ */ i("button", {
85
+ type: "button",
86
+ class: `IncodePhoneCountryOption ${y?.code === e.code ? "IncodePhoneCountryOptionSelected" : ""}`,
87
+ onClick: () => j(e),
88
+ children: [
89
+ /* @__PURE__ */ i("span", {
90
+ class: "IncodePhoneCountryFlag",
91
+ "aria-hidden": "true",
92
+ children: e.emoji
93
+ }),
94
+ /* @__PURE__ */ i("span", {
95
+ class: "IncodePhoneCountryOptionCode",
96
+ children: e.callingCode
97
+ }),
98
+ /* @__PURE__ */ i("span", {
99
+ class: "IncodePhoneCountryOptionName",
100
+ children: e.name
101
+ })
102
+ ]
103
+ }, e.code))
104
+ })]
105
+ }), /* @__PURE__ */ i("div", {
106
+ class: `IncodePhoneInputWrapper ${p ? "IncodePhoneInputWrapperError" : ""} ${h ? "IncodePhoneInputWrapperDisabled" : ""}`,
107
+ children: /* @__PURE__ */ i("input", {
108
+ ref: O,
109
+ type: "tel",
110
+ value: C,
111
+ onInput: A,
112
+ placeholder: "(123) 456-7890",
113
+ disabled: h,
114
+ class: "IncodePhoneInputField",
115
+ "data-testid": "phone-input"
116
+ })
117
+ })]
118
+ }),
119
+ p && /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ i(a, { size: 8 }), /* @__PURE__ */ i("p", {
120
+ class: "IncodePhoneInputError",
121
+ "data-testid": "phone-error",
122
+ children: p
123
+ })] }),
124
+ m && /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ i(a, { size: 16 }), /* @__PURE__ */ i("label", {
125
+ class: "IncodePhoneInputOptIn",
126
+ children: [/* @__PURE__ */ i("input", {
127
+ type: "checkbox",
128
+ checked: T,
129
+ onChange: M,
130
+ "data-testid": "phone-optin"
131
+ }), /* @__PURE__ */ i("span", { children: "I agree to receive SMS notifications" })]
132
+ })] })
133
+ ]
134
+ })
135
+ });
136
+ };
137
+ //#endregion
138
+ export { d as PhoneInput };