@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.
- package/dist/AsYouType-D1H_js4X.js +2607 -0
- package/dist/Trans-aTzdT_SA.js +55 -0
- package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
- package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
- package/dist/antifraud/antifraud.es.js +18 -17
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +50 -28
- package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
- package/dist/back-tutorial-An9AcMSe.js +29 -0
- package/dist/back-vertical-hint-CNieqiCr.js +5 -0
- package/dist/backdevicelottie-B4NgyWmX.js +29 -0
- package/dist/base.css +67 -327
- package/dist/blurdevicelottie-_BZRug1c.js +29 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/cameraView-C2X7klNb.js +55 -0
- package/dist/captureOverlay-tCb4R4WE.js +592 -0
- package/dist/checkbox-B5X-mfqq.js +137 -0
- package/dist/chevronDown-DSHaPKbi.js +23 -0
- package/dist/closeIcon-9Hc97omv.js +28 -0
- package/dist/consent/consent.es.js +89 -82
- package/dist/consent/styles.css +1 -1
- package/dist/countries-DfLkrF0x.js +616 -0
- package/dist/curp-validation/curp-validation.es.js +313 -271
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-C7PCzh-U.js +173 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-C0mO-RGE.js +692 -0
- package/dist/dropdownComposed-BpinYlrx.js +367 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-Dr6LJUg-.js +357 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-C3mswduI.js +291 -0
- package/dist/email/email.es.js +154 -110
- package/dist/email/styles.css +1 -1
- package/dist/errorContent-Cb8nmQAE.js +44 -0
- package/dist/errorIcon-DEARBrGx.js +26 -0
- package/dist/extensibility.es.js +150 -22
- package/dist/face-match/styles.css +73 -147
- package/dist/faceMatch-DbDp7D3d.js +237 -0
- package/dist/fileIcon-CCSvS10T.js +52 -0
- package/dist/flip-animation-COR596wy.js +29 -0
- package/dist/flipAnimation-BqV462TA.js +2059 -0
- package/dist/flow/flow.es.js +2613 -2273
- package/dist/flow/styles.css +73 -432
- package/dist/formField-CP6wDdfA.js +106 -0
- package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
- package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
- package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
- package/dist/geolocation/geolocation.es.js +832 -852
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-DLuIStvb.js +29 -0
- package/dist/governmentValidation/governmentValidation.es.js +106 -100
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/id/id.es.js +59 -53
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BBV3r3rz.js +29 -0
- package/dist/id-laser-v-BTHJaSfx.js +29 -0
- package/dist/id-tutorial-B-F5Q28m.js +29 -0
- package/dist/incodeModule-C4XIllao.js +96 -0
- package/dist/index.es.js +25 -4
- package/dist/inputComposed-fUbAGrDy.js +103 -0
- package/dist/instance-BWYzq8dk.js +2163 -0
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
- package/dist/numberedStep-DwUB__mh.js +5 -0
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/page-SrUl0qtN.js +69 -0
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
- package/dist/passport-tutorial-CaYBFTqt.js +29 -0
- package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
- package/dist/permissions-DT4Fz9MR.js +709 -0
- package/dist/phone/phone.es.js +121 -87
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-CGr8TxOO.js +158 -0
- package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
- package/dist/processing-szVOCQwZ.js +19 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-cspvNz2a.js +1807 -0
- package/dist/selfie/selfie.es.js +50 -29
- package/dist/selfie/styles.css +66 -170
- package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
- package/dist/signature/signature.es.js +707 -557
- package/dist/signature/styles.css +1 -1
- package/dist/spinner-DygONskw.js +60 -0
- package/dist/successIcon-Bjsdc4lF.js +26 -0
- package/dist/tutorial-Cdz1025D.js +473 -0
- package/dist/types/ekyb/styles.d.ts +1 -0
- package/dist/types/ekyc/styles.d.ts +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/typography-BDACYR5i.js +14 -0
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/useMediaQuery-lJdQBmC2.js +18 -0
- package/dist/vendor-preact-BoMmvSgn.js +694 -0
- package/dist/warningIcon-DQq_MrOB.js +26 -0
- package/package.json +11 -8
- package/dist/AsYouType-DPWqJvFu.js +0 -2482
- package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
- package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
- package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
- package/dist/back-tutorial-BNTyW-1N.js +0 -14584
- package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
- package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
- package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
- package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
- package/dist/button-DhL5eRT3.js +0 -123
- package/dist/checkbox-l8NxPf4o.js +0 -85
- package/dist/countries-y2ydYDhN.js +0 -8323
- package/dist/dateInputComposed-B9WqdYx9.js +0 -2
- package/dist/dateInputComposed-ndsGHX1M.js +0 -94
- package/dist/defineProperty-brqHEHA_.js +0 -39
- package/dist/documentCapture-wDgRLdon.js +0 -784
- package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekybModule-BBOm1y49.js +0 -2
- package/dist/ekybModule-fz6i9ZRt.js +0 -286
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekycModule-SeTFG3AJ.js +0 -233
- package/dist/ekycModule-hxIcNX8n.js +0 -2
- package/dist/extensibility-DJihqIzM.js +0 -2248
- package/dist/faceMatch-DH8sLx34.js +0 -191
- package/dist/flip-animation-DOJzdXB-.js +0 -6983
- package/dist/formField-BRTbY8w9.js +0 -100
- package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
- package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
- package/dist/frontdevicelottie-DadDp6be.js +0 -17302
- package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
- package/dist/i18n-DZOHbK9q.js +0 -1916
- package/dist/icons-BHbofCgJ.js +0 -245
- package/dist/id-laser-h-BWyU3VgL.js +0 -467
- package/dist/id-laser-v-JiWXUlv0.js +0 -467
- package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
- package/dist/incodeModule-Bf6yJ8RB.js +0 -18
- package/dist/inputComposed-BhbfD8Ru.js +0 -77
- package/dist/loadingIcon-CeQt7Zgb.js +0 -146
- package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
- package/dist/numberedStep-CQVRixRP.js +0 -11
- package/dist/otpInput-CDIG9el7.js +0 -143
- package/dist/page-SvlJWUfz.js +0 -61
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
- package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
- package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
- package/dist/phoneInput-C9T_8FJt.js +0 -138
- package/dist/phoneInputComposed-B-0zieIW.js +0 -407
- package/dist/processing-B5zhNH6I.js +0 -15
- package/dist/richText-Db0PfpkE.js +0 -1973
- package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
- package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
- package/dist/setup-Dq2bzNKH.js +0 -15
- package/dist/spacer-DCljE53A.js +0 -59
- package/dist/spinner-Bk0YuoLu.js +0 -1
- package/dist/spinner-snIGzmm8.js +0 -41
- package/dist/successIcon-AHrfmJvv.js +0 -17
- package/dist/tutorial-DNOd11tg.js +0 -2780
- package/dist/types/ekyb.d.ts +0 -29
- package/dist/types/ekyc.d.ts +0 -29
- package/dist/typography-BNbFNFek.js +0 -1
- package/dist/typography-DvHeVWfY.js +0 -29
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/warningIcon-Cvj-ayg1.js +0 -17
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { _ as e, a as t, d as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { p as s } from "./icons-BHbofCgJ.js";
|
|
3
|
-
import { t as c } from "./successIcon-AHrfmJvv.js";
|
|
4
|
-
import { t as l } from "./inputComposed-BhbfD8Ru.js";
|
|
5
|
-
import { i as u, r as d, t as f, u as p } from "./countries-y2ydYDhN.js";
|
|
6
|
-
import { n as m, r as h, t as g } from "./AsYouType-DPWqJvFu.js";
|
|
7
|
-
import { t as _ } from "./dropdownComposed-_Ey7wJNG.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/es6/getExampleNumber.js
|
|
9
|
-
function v(e, t, n) {
|
|
10
|
-
if (t[e]) return new h(e, t[e], n);
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/min/exports/getExampleNumber.js
|
|
14
|
-
function y() {
|
|
15
|
-
return p(v, arguments);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/examples.mobile.json.js
|
|
19
|
-
var b = {
|
|
20
|
-
AC: "40123",
|
|
21
|
-
AD: "312345",
|
|
22
|
-
AE: "501234567",
|
|
23
|
-
AF: "701234567",
|
|
24
|
-
AG: "2684641234",
|
|
25
|
-
AI: "2642351234",
|
|
26
|
-
AL: "672123456",
|
|
27
|
-
AM: "77123456",
|
|
28
|
-
AO: "923123456",
|
|
29
|
-
AR: "91123456789",
|
|
30
|
-
AS: "6847331234",
|
|
31
|
-
AT: "664123456",
|
|
32
|
-
AU: "412345678",
|
|
33
|
-
AW: "5601234",
|
|
34
|
-
AX: "412345678",
|
|
35
|
-
AZ: "401234567",
|
|
36
|
-
BA: "61123456",
|
|
37
|
-
BB: "2462501234",
|
|
38
|
-
BD: "1812345678",
|
|
39
|
-
BE: "470123456",
|
|
40
|
-
BF: "70123456",
|
|
41
|
-
BG: "43012345",
|
|
42
|
-
BH: "36001234",
|
|
43
|
-
BI: "79561234",
|
|
44
|
-
BJ: "0195123456",
|
|
45
|
-
BL: "690001234",
|
|
46
|
-
BM: "4413701234",
|
|
47
|
-
BN: "7123456",
|
|
48
|
-
BO: "71234567",
|
|
49
|
-
BQ: "3181234",
|
|
50
|
-
BR: "11961234567",
|
|
51
|
-
BS: "2423591234",
|
|
52
|
-
BT: "17123456",
|
|
53
|
-
BW: "71123456",
|
|
54
|
-
BY: "294911911",
|
|
55
|
-
BZ: "6221234",
|
|
56
|
-
CA: "5062345678",
|
|
57
|
-
CC: "412345678",
|
|
58
|
-
CD: "991234567",
|
|
59
|
-
CF: "70012345",
|
|
60
|
-
CG: "061234567",
|
|
61
|
-
CH: "781234567",
|
|
62
|
-
CI: "0123456789",
|
|
63
|
-
CK: "71234",
|
|
64
|
-
CL: "221234567",
|
|
65
|
-
CM: "671234567",
|
|
66
|
-
CN: "13123456789",
|
|
67
|
-
CO: "3211234567",
|
|
68
|
-
CR: "83123456",
|
|
69
|
-
CU: "51234567",
|
|
70
|
-
CV: "9911234",
|
|
71
|
-
CW: "95181234",
|
|
72
|
-
CX: "412345678",
|
|
73
|
-
CY: "96123456",
|
|
74
|
-
CZ: "601123456",
|
|
75
|
-
DE: "15123456789",
|
|
76
|
-
DJ: "77831001",
|
|
77
|
-
DK: "34412345",
|
|
78
|
-
DM: "7672251234",
|
|
79
|
-
DO: "8092345678",
|
|
80
|
-
DZ: "551234567",
|
|
81
|
-
EC: "991234567",
|
|
82
|
-
EE: "51234567",
|
|
83
|
-
EG: "1001234567",
|
|
84
|
-
EH: "650123456",
|
|
85
|
-
ER: "7123456",
|
|
86
|
-
ES: "612345678",
|
|
87
|
-
ET: "911234567",
|
|
88
|
-
FI: "412345678",
|
|
89
|
-
FJ: "7012345",
|
|
90
|
-
FK: "51234",
|
|
91
|
-
FM: "3501234",
|
|
92
|
-
FO: "211234",
|
|
93
|
-
FR: "612345678",
|
|
94
|
-
GA: "06031234",
|
|
95
|
-
GB: "7400123456",
|
|
96
|
-
GD: "4734031234",
|
|
97
|
-
GE: "555123456",
|
|
98
|
-
GF: "694201234",
|
|
99
|
-
GG: "7781123456",
|
|
100
|
-
GH: "231234567",
|
|
101
|
-
GI: "57123456",
|
|
102
|
-
GL: "221234",
|
|
103
|
-
GM: "3012345",
|
|
104
|
-
GN: "601123456",
|
|
105
|
-
GP: "690001234",
|
|
106
|
-
GQ: "222123456",
|
|
107
|
-
GR: "6912345678",
|
|
108
|
-
GT: "51234567",
|
|
109
|
-
GU: "6713001234",
|
|
110
|
-
GW: "955012345",
|
|
111
|
-
GY: "6091234",
|
|
112
|
-
HK: "51234567",
|
|
113
|
-
HN: "91234567",
|
|
114
|
-
HR: "921234567",
|
|
115
|
-
HT: "34101234",
|
|
116
|
-
HU: "201234567",
|
|
117
|
-
ID: "812345678",
|
|
118
|
-
IE: "850123456",
|
|
119
|
-
IL: "502345678",
|
|
120
|
-
IM: "7924123456",
|
|
121
|
-
IN: "8123456789",
|
|
122
|
-
IO: "3801234",
|
|
123
|
-
IQ: "7912345678",
|
|
124
|
-
IR: "9123456789",
|
|
125
|
-
IS: "6111234",
|
|
126
|
-
IT: "3123456789",
|
|
127
|
-
JE: "7797712345",
|
|
128
|
-
JM: "8762101234",
|
|
129
|
-
JO: "790123456",
|
|
130
|
-
JP: "9012345678",
|
|
131
|
-
KE: "712123456",
|
|
132
|
-
KG: "700123456",
|
|
133
|
-
KH: "91234567",
|
|
134
|
-
KI: "72001234",
|
|
135
|
-
KM: "3212345",
|
|
136
|
-
KN: "8697652917",
|
|
137
|
-
KP: "1921234567",
|
|
138
|
-
KR: "1020000000",
|
|
139
|
-
KW: "50012345",
|
|
140
|
-
KY: "3453231234",
|
|
141
|
-
KZ: "7710009998",
|
|
142
|
-
LA: "2023123456",
|
|
143
|
-
LB: "71123456",
|
|
144
|
-
LC: "7582845678",
|
|
145
|
-
LI: "660234567",
|
|
146
|
-
LK: "712345678",
|
|
147
|
-
LR: "770123456",
|
|
148
|
-
LS: "50123456",
|
|
149
|
-
LT: "61234567",
|
|
150
|
-
LU: "628123456",
|
|
151
|
-
LV: "21234567",
|
|
152
|
-
LY: "912345678",
|
|
153
|
-
MA: "650123456",
|
|
154
|
-
MC: "612345678",
|
|
155
|
-
MD: "62112345",
|
|
156
|
-
ME: "60123456",
|
|
157
|
-
MF: "690001234",
|
|
158
|
-
MG: "321234567",
|
|
159
|
-
MH: "2351234",
|
|
160
|
-
MK: "72345678",
|
|
161
|
-
ML: "65012345",
|
|
162
|
-
MM: "92123456",
|
|
163
|
-
MN: "88123456",
|
|
164
|
-
MO: "66123456",
|
|
165
|
-
MP: "6702345678",
|
|
166
|
-
MQ: "696201234",
|
|
167
|
-
MR: "22123456",
|
|
168
|
-
MS: "6644923456",
|
|
169
|
-
MT: "96961234",
|
|
170
|
-
MU: "52512345",
|
|
171
|
-
MV: "7712345",
|
|
172
|
-
MW: "991234567",
|
|
173
|
-
MX: "2221234567",
|
|
174
|
-
MY: "123456789",
|
|
175
|
-
MZ: "821234567",
|
|
176
|
-
NA: "811234567",
|
|
177
|
-
NC: "751234",
|
|
178
|
-
NE: "93123456",
|
|
179
|
-
NF: "381234",
|
|
180
|
-
NG: "8021234567",
|
|
181
|
-
NI: "81234567",
|
|
182
|
-
NL: "612345678",
|
|
183
|
-
NO: "40612345",
|
|
184
|
-
NP: "9841234567",
|
|
185
|
-
NR: "5551234",
|
|
186
|
-
NU: "8884012",
|
|
187
|
-
NZ: "211234567",
|
|
188
|
-
OM: "92123456",
|
|
189
|
-
PA: "61234567",
|
|
190
|
-
PE: "912345678",
|
|
191
|
-
PF: "87123456",
|
|
192
|
-
PG: "70123456",
|
|
193
|
-
PH: "9051234567",
|
|
194
|
-
PK: "3012345678",
|
|
195
|
-
PL: "512345678",
|
|
196
|
-
PM: "551234",
|
|
197
|
-
PR: "7872345678",
|
|
198
|
-
PS: "599123456",
|
|
199
|
-
PT: "912345678",
|
|
200
|
-
PW: "6201234",
|
|
201
|
-
PY: "961456789",
|
|
202
|
-
QA: "33123456",
|
|
203
|
-
RE: "692123456",
|
|
204
|
-
RO: "712034567",
|
|
205
|
-
RS: "601234567",
|
|
206
|
-
RU: "9123456789",
|
|
207
|
-
RW: "720123456",
|
|
208
|
-
SA: "512345678",
|
|
209
|
-
SB: "7421234",
|
|
210
|
-
SC: "2510123",
|
|
211
|
-
SD: "911231234",
|
|
212
|
-
SE: "701234567",
|
|
213
|
-
SG: "81234567",
|
|
214
|
-
SH: "51234",
|
|
215
|
-
SI: "31234567",
|
|
216
|
-
SJ: "41234567",
|
|
217
|
-
SK: "912123456",
|
|
218
|
-
SL: "25123456",
|
|
219
|
-
SM: "66661212",
|
|
220
|
-
SN: "701234567",
|
|
221
|
-
SO: "71123456",
|
|
222
|
-
SR: "7412345",
|
|
223
|
-
SS: "977123456",
|
|
224
|
-
ST: "9812345",
|
|
225
|
-
SV: "70123456",
|
|
226
|
-
SX: "7215205678",
|
|
227
|
-
SY: "944567890",
|
|
228
|
-
SZ: "76123456",
|
|
229
|
-
TA: "8999",
|
|
230
|
-
TC: "6492311234",
|
|
231
|
-
TD: "63012345",
|
|
232
|
-
TG: "90112345",
|
|
233
|
-
TH: "812345678",
|
|
234
|
-
TJ: "917123456",
|
|
235
|
-
TK: "7290",
|
|
236
|
-
TL: "77212345",
|
|
237
|
-
TM: "66123456",
|
|
238
|
-
TN: "20123456",
|
|
239
|
-
TO: "7715123",
|
|
240
|
-
TR: "5012345678",
|
|
241
|
-
TT: "8682911234",
|
|
242
|
-
TV: "901234",
|
|
243
|
-
TW: "912345678",
|
|
244
|
-
TZ: "621234567",
|
|
245
|
-
UA: "501234567",
|
|
246
|
-
UG: "712345678",
|
|
247
|
-
US: "2015550123",
|
|
248
|
-
UY: "94231234",
|
|
249
|
-
UZ: "912345678",
|
|
250
|
-
VA: "3123456789",
|
|
251
|
-
VC: "7844301234",
|
|
252
|
-
VE: "4121234567",
|
|
253
|
-
VG: "2843001234",
|
|
254
|
-
VI: "3406421234",
|
|
255
|
-
VN: "912345678",
|
|
256
|
-
VU: "5912345",
|
|
257
|
-
WF: "821234",
|
|
258
|
-
WS: "7212345",
|
|
259
|
-
XK: "43201234",
|
|
260
|
-
YE: "712345678",
|
|
261
|
-
YT: "639012345",
|
|
262
|
-
ZA: "711234567",
|
|
263
|
-
ZM: "955123456",
|
|
264
|
-
ZW: "712345678"
|
|
265
|
-
};
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region src/shared/phoneInputComposed/phoneInputComposed.tsx
|
|
268
|
-
function x(e, t, n) {
|
|
269
|
-
return new g(n).input(`${t}${e}`).replace(t, "").trimStart();
|
|
270
|
-
}
|
|
271
|
-
function S(e, t) {
|
|
272
|
-
let n = e.replace(/\D/g, "");
|
|
273
|
-
if (n === t) return e;
|
|
274
|
-
if (!n.endsWith(t)) return null;
|
|
275
|
-
let r = n.length - t.length;
|
|
276
|
-
if (r <= 0) return e;
|
|
277
|
-
let i = e.replace(/[()]/g, ""), a = 0;
|
|
278
|
-
for (let e = 0; e < i.length; e++) if (/\d/.test(i[e]) && (a++, a === r)) return i.slice(e + 1).replace(/^\D+/, "");
|
|
279
|
-
return e;
|
|
280
|
-
}
|
|
281
|
-
var C = {
|
|
282
|
-
US: "(123) 456-7890",
|
|
283
|
-
CA: "(123) 456-7890"
|
|
284
|
-
};
|
|
285
|
-
function w(e) {
|
|
286
|
-
let t = C[e];
|
|
287
|
-
if (t) return t;
|
|
288
|
-
let n = y(e, b);
|
|
289
|
-
if (!n) return "";
|
|
290
|
-
let r = S(n.formatNational(), n.nationalNumber);
|
|
291
|
-
if (r) return r;
|
|
292
|
-
let i = `+${u(e)}`;
|
|
293
|
-
return x(n.nationalNumber, i, e);
|
|
294
|
-
}
|
|
295
|
-
var T = t(({ id: t, label: u, countryCode: p = "US", value: h, placeholder: v, error: y, helper: b, showErrorIcon: S, showHelperIcon: C, disabled: T = !1, disableCountrySelector: E = !1, required: D, onChange: O, "aria-labelledby": k, "data-testid": A, ...j }, M) => {
|
|
296
|
-
let [N, P] = a(p), [F, I] = a(""), L = i(!1), R = n(() => f.map((e) => ({
|
|
297
|
-
value: e.code,
|
|
298
|
-
label: `${e.emoji} ${e.callingCode} ${e.name}`
|
|
299
|
-
})), []), z = n(() => d(N) ?? d("US"), [N]), B = n(() => v ?? w(N), [v, N]);
|
|
300
|
-
e(() => {
|
|
301
|
-
if (L.current || !h || !z) return;
|
|
302
|
-
L.current = !0;
|
|
303
|
-
let e = m(h.startsWith("+") ? h : `+${h}`);
|
|
304
|
-
e?.isValid() && e.country && (e.country !== N && P(e.country), I(new g(e.country).input(e.nationalNumber)));
|
|
305
|
-
}, [
|
|
306
|
-
h,
|
|
307
|
-
z,
|
|
308
|
-
N
|
|
309
|
-
]);
|
|
310
|
-
let V = r((e, t) => {
|
|
311
|
-
let n = `${t.callingCode}${e.replace(/\D/g, "")}`;
|
|
312
|
-
try {
|
|
313
|
-
let e = m(n, t.code);
|
|
314
|
-
O?.(n, e?.isValid() ?? !1);
|
|
315
|
-
} catch {
|
|
316
|
-
O?.(n, !1);
|
|
317
|
-
}
|
|
318
|
-
}, [O]), H = r((e) => {
|
|
319
|
-
P(e);
|
|
320
|
-
let t = d(e);
|
|
321
|
-
t && F && V(F, t);
|
|
322
|
-
}, [F, V]), U = r((e) => {
|
|
323
|
-
let t = e.target.value;
|
|
324
|
-
if (!z) {
|
|
325
|
-
I(t);
|
|
326
|
-
return;
|
|
327
|
-
}
|
|
328
|
-
I(x(t, z.callingCode, z.code)), V(t, z);
|
|
329
|
-
}, [z, V]), W = `${t}-country`, G = `${t}-phone`, K = `${G}-helper`, q = `${G}-error`, J = [b ? K : null, y ? q : null].filter(Boolean).join(" ");
|
|
330
|
-
return /* @__PURE__ */ o("div", {
|
|
331
|
-
class: "IncodePhoneInputComposed",
|
|
332
|
-
children: [
|
|
333
|
-
u && /* @__PURE__ */ o("label", {
|
|
334
|
-
class: "IncodePhoneInputComposedLabel",
|
|
335
|
-
htmlFor: G,
|
|
336
|
-
"data-testid": `${t}-label`,
|
|
337
|
-
children: [u, D && /* @__PURE__ */ o("span", {
|
|
338
|
-
class: "IncodePhoneInputComposedRequired",
|
|
339
|
-
children: " *"
|
|
340
|
-
})]
|
|
341
|
-
}),
|
|
342
|
-
/* @__PURE__ */ o(_, {
|
|
343
|
-
id: W,
|
|
344
|
-
options: R,
|
|
345
|
-
value: N,
|
|
346
|
-
onChange: H,
|
|
347
|
-
disabled: T || E,
|
|
348
|
-
required: D,
|
|
349
|
-
searchable: !0,
|
|
350
|
-
searchPlaceholder: "Search countries...",
|
|
351
|
-
suppressMessages: !0,
|
|
352
|
-
"aria-label": `Country code ${z.callingCode}, ${z.name}`,
|
|
353
|
-
renderSelectedLabel: (e) => {
|
|
354
|
-
let t = d(e.value);
|
|
355
|
-
return t ? `${t.emoji} ${t.callingCode}` : e.label;
|
|
356
|
-
},
|
|
357
|
-
class: "IncodePhoneInputComposedDropdown",
|
|
358
|
-
siblingElement: /* @__PURE__ */ o(l, {
|
|
359
|
-
id: G,
|
|
360
|
-
ref: M,
|
|
361
|
-
type: "tel",
|
|
362
|
-
value: F,
|
|
363
|
-
onInput: U,
|
|
364
|
-
placeholder: B,
|
|
365
|
-
error: y,
|
|
366
|
-
disabled: T,
|
|
367
|
-
required: D,
|
|
368
|
-
suppressMessages: !0,
|
|
369
|
-
"aria-label": u ? void 0 : "Phone number",
|
|
370
|
-
"aria-labelledby": k,
|
|
371
|
-
"aria-describedby": J || void 0,
|
|
372
|
-
"aria-invalid": y ? "true" : void 0,
|
|
373
|
-
"data-testid": A,
|
|
374
|
-
...j
|
|
375
|
-
})
|
|
376
|
-
}),
|
|
377
|
-
y && /* @__PURE__ */ o("div", {
|
|
378
|
-
class: "IncodePhoneInputComposedErrorWrapper",
|
|
379
|
-
role: "alert",
|
|
380
|
-
"data-testid": `${t}-error-wrapper`,
|
|
381
|
-
children: [S && /* @__PURE__ */ o("div", {
|
|
382
|
-
class: "IncodePhoneInputComposedIconWrapper",
|
|
383
|
-
children: /* @__PURE__ */ o(s, { size: 16 })
|
|
384
|
-
}), /* @__PURE__ */ o("p", {
|
|
385
|
-
id: q,
|
|
386
|
-
class: "IncodePhoneInputComposedError",
|
|
387
|
-
children: y
|
|
388
|
-
})]
|
|
389
|
-
}),
|
|
390
|
-
b && !y && /* @__PURE__ */ o("div", {
|
|
391
|
-
class: "IncodePhoneInputComposedHelperWrapper",
|
|
392
|
-
"data-testid": `${t}-helper-wrapper`,
|
|
393
|
-
children: [C && /* @__PURE__ */ o("div", {
|
|
394
|
-
class: "IncodePhoneInputComposedIconWrapper",
|
|
395
|
-
children: /* @__PURE__ */ o(c, { size: 16 })
|
|
396
|
-
}), /* @__PURE__ */ o("p", {
|
|
397
|
-
id: K,
|
|
398
|
-
class: "IncodePhoneInputComposedHelper",
|
|
399
|
-
children: b
|
|
400
|
-
})]
|
|
401
|
-
})
|
|
402
|
-
]
|
|
403
|
-
});
|
|
404
|
-
});
|
|
405
|
-
T.displayName = "PhoneInputComposed";
|
|
406
|
-
//#endregion
|
|
407
|
-
export { T as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-DZOHbK9q.js";
|
|
2
|
-
import { v as t } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { t as n } from "./spinner-snIGzmm8.js";
|
|
4
|
-
//#region src/shared/processing/processing.tsx
|
|
5
|
-
var r = () => {
|
|
6
|
-
let { t: r } = e();
|
|
7
|
-
return /* @__PURE__ */ t(n, {
|
|
8
|
-
title: r("loadingCircle.hangOn"),
|
|
9
|
-
subtitle: r("loadingCircle.validating"),
|
|
10
|
-
size: "large",
|
|
11
|
-
fullScreen: !0
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { r as t };
|