@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da

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 (162) hide show
  1. package/dist/AsYouType-D1H_js4X.js +2607 -0
  2. package/dist/Trans-aTzdT_SA.js +55 -0
  3. package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
  4. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  5. package/dist/antifraud/antifraud.es.js +18 -17
  6. package/dist/antifraud/styles.css +1 -1
  7. package/dist/authentication/authentication.es.js +50 -28
  8. package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
  9. package/dist/back-tutorial-An9AcMSe.js +29 -0
  10. package/dist/back-vertical-hint-CNieqiCr.js +5 -0
  11. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  12. package/dist/base.css +67 -327
  13. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  14. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  15. package/dist/button-CE9kRlem.js +184 -0
  16. package/dist/cameraView-C2X7klNb.js +55 -0
  17. package/dist/captureOverlay-tCb4R4WE.js +592 -0
  18. package/dist/checkbox-B5X-mfqq.js +137 -0
  19. package/dist/chevronDown-DSHaPKbi.js +23 -0
  20. package/dist/closeIcon-9Hc97omv.js +28 -0
  21. package/dist/consent/consent.es.js +89 -82
  22. package/dist/consent/styles.css +1 -1
  23. package/dist/countries-DfLkrF0x.js +616 -0
  24. package/dist/curp-validation/curp-validation.es.js +313 -271
  25. package/dist/curp-validation/styles.css +1 -1
  26. package/dist/dateInputComposed-C7PCzh-U.js +173 -0
  27. package/dist/document-capture/styles.css +1 -1
  28. package/dist/documentCapture-C0mO-RGE.js +692 -0
  29. package/dist/dropdownComposed-BpinYlrx.js +367 -0
  30. package/dist/ekyb/styles.css +1 -1
  31. package/dist/ekybModule-Dr6LJUg-.js +357 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-C3mswduI.js +291 -0
  34. package/dist/email/email.es.js +154 -110
  35. package/dist/email/styles.css +1 -1
  36. package/dist/errorContent-Cb8nmQAE.js +44 -0
  37. package/dist/errorIcon-DEARBrGx.js +26 -0
  38. package/dist/extensibility.es.js +150 -22
  39. package/dist/face-match/styles.css +73 -147
  40. package/dist/faceMatch-DbDp7D3d.js +237 -0
  41. package/dist/fileIcon-CCSvS10T.js +52 -0
  42. package/dist/flip-animation-COR596wy.js +29 -0
  43. package/dist/flipAnimation-BqV462TA.js +2059 -0
  44. package/dist/flow/flow.es.js +2613 -2273
  45. package/dist/flow/styles.css +73 -432
  46. package/dist/formField-CP6wDdfA.js +106 -0
  47. package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
  48. package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
  49. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  50. package/dist/geolocation/geolocation.es.js +832 -852
  51. package/dist/geolocation/styles.css +1 -1
  52. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  53. package/dist/governmentValidation/governmentValidation.es.js +106 -100
  54. package/dist/governmentValidation/styles.css +1 -1
  55. package/dist/id/id.es.js +59 -53
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  58. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  59. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  60. package/dist/incodeModule-C4XIllao.js +96 -0
  61. package/dist/index.es.js +25 -4
  62. package/dist/inputComposed-fUbAGrDy.js +103 -0
  63. package/dist/instance-BWYzq8dk.js +2163 -0
  64. package/dist/loadingIcon-DmuPXh70.js +195 -0
  65. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  66. package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
  67. package/dist/numberedStep-DwUB__mh.js +5 -0
  68. package/dist/otpInput-BFXhqFRT.js +156 -0
  69. package/dist/page-SrUl0qtN.js +69 -0
  70. package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
  71. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  72. package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
  73. package/dist/permissions-DT4Fz9MR.js +709 -0
  74. package/dist/phone/phone.es.js +121 -87
  75. package/dist/phone/styles.css +1 -1
  76. package/dist/phoneInput-CGr8TxOO.js +158 -0
  77. package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
  78. package/dist/processing-szVOCQwZ.js +19 -0
  79. package/dist/redirect-to-mobile/styles.css +1 -1
  80. package/dist/richText-cspvNz2a.js +1807 -0
  81. package/dist/selfie/selfie.es.js +50 -29
  82. package/dist/selfie/styles.css +66 -170
  83. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  84. package/dist/signature/signature.es.js +707 -557
  85. package/dist/signature/styles.css +1 -1
  86. package/dist/spinner-DygONskw.js +60 -0
  87. package/dist/successIcon-Bjsdc4lF.js +26 -0
  88. package/dist/tutorial-Cdz1025D.js +473 -0
  89. package/dist/types/ekyb/styles.d.ts +1 -0
  90. package/dist/types/ekyc/styles.d.ts +1 -0
  91. package/dist/types/index.d.ts +8 -0
  92. package/dist/typography-BDACYR5i.js +14 -0
  93. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  94. package/dist/useMediaQuery-lJdQBmC2.js +18 -0
  95. package/dist/vendor-preact-BoMmvSgn.js +694 -0
  96. package/dist/warningIcon-DQq_MrOB.js +26 -0
  97. package/package.json +11 -8
  98. package/dist/AsYouType-DPWqJvFu.js +0 -2482
  99. package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
  100. package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
  101. package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
  102. package/dist/back-tutorial-BNTyW-1N.js +0 -14584
  103. package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
  104. package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
  105. package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
  106. package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
  107. package/dist/button-DhL5eRT3.js +0 -123
  108. package/dist/checkbox-l8NxPf4o.js +0 -85
  109. package/dist/countries-y2ydYDhN.js +0 -8323
  110. package/dist/dateInputComposed-B9WqdYx9.js +0 -2
  111. package/dist/dateInputComposed-ndsGHX1M.js +0 -94
  112. package/dist/defineProperty-brqHEHA_.js +0 -39
  113. package/dist/documentCapture-wDgRLdon.js +0 -784
  114. package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
  115. package/dist/ekyb/ekyb.es.js +0 -2
  116. package/dist/ekybModule-BBOm1y49.js +0 -2
  117. package/dist/ekybModule-fz6i9ZRt.js +0 -286
  118. package/dist/ekyc/ekyc.es.js +0 -2
  119. package/dist/ekycModule-SeTFG3AJ.js +0 -233
  120. package/dist/ekycModule-hxIcNX8n.js +0 -2
  121. package/dist/extensibility-DJihqIzM.js +0 -2248
  122. package/dist/faceMatch-DH8sLx34.js +0 -191
  123. package/dist/flip-animation-DOJzdXB-.js +0 -6983
  124. package/dist/formField-BRTbY8w9.js +0 -100
  125. package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
  126. package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
  127. package/dist/frontdevicelottie-DadDp6be.js +0 -17302
  128. package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
  129. package/dist/i18n-DZOHbK9q.js +0 -1916
  130. package/dist/icons-BHbofCgJ.js +0 -245
  131. package/dist/id-laser-h-BWyU3VgL.js +0 -467
  132. package/dist/id-laser-v-JiWXUlv0.js +0 -467
  133. package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
  134. package/dist/incodeModule-Bf6yJ8RB.js +0 -18
  135. package/dist/inputComposed-BhbfD8Ru.js +0 -77
  136. package/dist/loadingIcon-CeQt7Zgb.js +0 -146
  137. package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
  138. package/dist/numberedStep-CQVRixRP.js +0 -11
  139. package/dist/otpInput-CDIG9el7.js +0 -143
  140. package/dist/page-SvlJWUfz.js +0 -61
  141. package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
  142. package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
  143. package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
  144. package/dist/phoneInput-C9T_8FJt.js +0 -138
  145. package/dist/phoneInputComposed-B-0zieIW.js +0 -407
  146. package/dist/processing-B5zhNH6I.js +0 -15
  147. package/dist/richText-Db0PfpkE.js +0 -1973
  148. package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
  149. package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
  150. package/dist/setup-Dq2bzNKH.js +0 -15
  151. package/dist/spacer-DCljE53A.js +0 -59
  152. package/dist/spinner-Bk0YuoLu.js +0 -1
  153. package/dist/spinner-snIGzmm8.js +0 -41
  154. package/dist/successIcon-AHrfmJvv.js +0 -17
  155. package/dist/tutorial-DNOd11tg.js +0 -2780
  156. package/dist/types/ekyb.d.ts +0 -29
  157. package/dist/types/ekyc.d.ts +0 -29
  158. package/dist/typography-BNbFNFek.js +0 -1
  159. package/dist/typography-DvHeVWfY.js +0 -29
  160. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  161. package/dist/vendor-preact-D6SntenC.js +0 -958
  162. package/dist/warningIcon-Cvj-ayg1.js +0 -17
@@ -1,267 +0,0 @@
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,138 +0,0 @@
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 };