@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260609-11ba3e8a
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/ae-signature/ae-signature.es.js +15 -13
- package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
- package/dist/antifraud/antifraud.es.js +22 -19
- package/dist/authentication/authentication.es.js +42 -33
- package/dist/autoFocusTitle-DM6PvgcP.js +29 -0
- package/dist/{back-horizontal-hint-DsPhKbR4.js → back-horizontal-hint-BXYix0Wj.js} +26 -26
- package/dist/back-tutorial-vb1MxlrT.js +14597 -0
- package/dist/{back-vertical-hint-BFJbYQrX.js → back-vertical-hint-DNSh6JNH.js} +27 -27
- package/dist/backdevicelottie-HypPqBz7.js +16690 -0
- package/dist/base.css +5 -0
- package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
- package/dist/bottomSheet-BuzqNQtG.js +39 -0
- package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
- package/dist/button-B-qlr4iI.js +35 -0
- package/dist/checkbox-CTPETqo5.js +96 -0
- package/dist/consent/consent.es.js +75 -64
- package/dist/countrySelector-CzyuaDIs.js +60 -0
- package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
- package/dist/cpfOcr-DQVs3r8N.js +92 -0
- package/dist/cpfOcr-WNklFuxT.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
- package/dist/curp-validation/curp-validation.es.js +246 -211
- package/dist/customFields-B4MqqDI6.js +140 -0
- package/dist/customWatchlist-Dfqw1DQP.js +36 -0
- package/dist/dateInputComposed-BsPQHG5o.js +1 -0
- package/dist/dateInputComposed-DY97tQVK.js +69 -0
- package/dist/defineProperty-mefzVtTv.js +39 -0
- package/dist/document-capture/document-capture.es.js +2 -2
- package/dist/documentCapture-BE78MIlR.js +876 -0
- package/dist/documentCapture-BVfNZL29.js +2 -0
- package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
- package/dist/dropdownComposed-mvHuRFHn.js +1 -0
- package/dist/dynamicForms-BYGGAQoc.js +352 -0
- package/dist/ekyb/ekyb.es.js +2 -2
- package/dist/ekybModule-BUPX0QhW.js +2 -0
- package/dist/ekybModule-CkTXu-4u.js +279 -0
- package/dist/ekyc/ekyc.es.js +2 -2
- package/dist/ekycModule-BWsVX39d.js +257 -0
- package/dist/ekycModule-DNDPqvUc.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -2
- package/dist/electronic-signature-BJSyzex9.js +426 -0
- package/dist/email/email.es.js +198 -78
- package/dist/emailInput-BHp4Apt4.js +39 -0
- package/dist/errorIcon-B0rmz3rw.js +26 -0
- package/dist/expiredId-C105HVKv.js +85 -0
- package/dist/extensibility-DJwVxojG.js +3070 -0
- package/dist/extensibility.es.js +26 -26
- package/dist/face-match/face-match.es.js +2 -2
- package/dist/faceMatch-BOFGxzzx.js +343 -0
- package/dist/faceMatch-CDMcFQwR.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +2 -2
- package/dist/fieldComparison-BMDmQ8eA.js +88 -0
- package/dist/fieldComparison-Z1NleSxD.js +2 -0
- package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
- package/dist/flow/flow.es.js +597 -493
- package/dist/flow/styles.css +0 -8
- package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
- package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
- package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
- package/dist/geolocation/geolocation.es.js +485 -395
- package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
- package/dist/governmentValidation/governmentValidation.es.js +145 -64
- package/dist/governmentValidation/styles.css +0 -36
- package/dist/homeScreen-BsEYyiDB.js +264 -0
- package/dist/hooks-BtgmGvba.js +149 -0
- package/dist/i18n-gTHArCl9.js +2971 -0
- package/dist/icons-DKY3xDkf.js +360 -0
- package/dist/id/id.es.js +565 -413
- package/dist/id-laser-h-DX8UbVNH.js +467 -0
- package/dist/id-laser-v-DhnHdjlB.js +490 -0
- package/dist/id-tutorial-lj4iKtYT.js +13165 -0
- package/dist/id-verification/id-verification.es.js +21 -18
- package/dist/idOcr-BS77o1VC.js +123 -0
- package/dist/identity-reuse/identity-reuse.es.js +168 -130
- package/dist/incode-logo-57XFniXU.js +4 -0
- package/dist/incodeComponent-CDJxFZvS.js +63 -0
- package/dist/incodeModule-DkA_yd0X.js +13 -0
- package/dist/index.es.js +16 -14
- package/dist/inputComposed-5V2nLTqH.js +99 -0
- package/dist/inputComposed-BPOYwUBl.js +1 -0
- package/dist/loadingIcon-DN62ugKs.js +148 -0
- package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
- package/dist/mandatoryConsent-DP189TUn.js +107 -0
- package/dist/modal-B5QeulDu.js +153 -0
- package/dist/modal.hooks-C7K9k_pY.js +202 -0
- package/dist/numberedStep-DVAyTPv1.js +13 -0
- package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
- package/dist/otpInput-2IQ-JCK8.js +195 -0
- package/dist/page-BZ-0eNWq.js +71 -0
- package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
- package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
- package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
- package/dist/pdf-BZA70WbM.js +22398 -0
- package/dist/pdfViewer-Dr63sJ51.js +114 -0
- package/dist/phone/phone.es.js +214 -87
- package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
- package/dist/processing-B_u8wUB7.js +8 -0
- package/dist/qe-signature/qe-signature.es.js +15 -13
- package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
- package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
- package/dist/requiredLabelHint-DEadtiwx.js +17 -0
- package/dist/richText-C7GUm0WL.js +3153 -0
- package/dist/rolldown-runtime--E5BIlTp.js +33 -0
- package/dist/selfie/selfie.es.js +54 -42
- package/dist/selfieTutorial-CtruLyO2.js +2689 -0
- package/dist/signature/signature.es.js +765 -406
- package/dist/snackbar-Dz9crm39.js +16 -0
- package/dist/spinner-BfBIZkDQ.js +42 -0
- package/dist/spinner-DEDtE7Pz.js +1 -0
- package/dist/statusPage-CVCoieyd.js +28 -0
- package/dist/successIcon-rmzr-pxu.js +30 -0
- package/dist/tabs--UMd6eEB.js +103 -0
- package/dist/transitionSpinner-CWhGcr7c.js +26 -0
- package/dist/{tutorial-QzQ536BL.js → tutorial-Jv0noW4z.js} +832 -578
- package/dist/types/extensibility.d.ts +3 -1
- package/dist/types/index.d.ts +13 -4
- package/dist/typography-BK4AmfKX.js +45 -0
- package/dist/uiConfig-sgEkFuuA.js +25 -0
- package/dist/useModuleLoader-CuhHtmgr.js +670 -0
- package/dist/vendor-preact-BH7vOa2r.js +957 -0
- package/dist/verificationResult-CJ0JyV6A.js +64 -0
- package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
- package/dist/watchlist/watchlist.es.js +31 -26
- package/dist/watchlistForBusiness-RZcnjVDb.js +80 -0
- package/dist/workflow/styles.css +0 -8
- package/dist/workflow/workflow.es.js +251 -209
- package/package.json +4 -2
- package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
- package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
- package/dist/back-tutorial-DhSE2FJo.js +0 -14585
- package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
- package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
- package/dist/bottomSheet-QrpyatOD.js +0 -31
- package/dist/browser-ponyfill-Crda_c5R.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-DCCzBAuF.js +0 -86
- package/dist/countrySelector-CJ8egQ4C.js +0 -58
- package/dist/cpfOcr-Db06i-Lm.js +0 -2
- package/dist/cpfOcr-FixhUeMQ.js +0 -79
- package/dist/customFields-C1G9xHNX.js +0 -125
- package/dist/customWatchlist-IKEblz7u.js +0 -31
- package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
- package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
- package/dist/defineProperty-xczUyn-m.js +0 -39
- package/dist/documentCapture-D9I7FjGe.js +0 -2
- package/dist/documentCapture-b61wlala.js +0 -765
- package/dist/dropdownComposed-B4U0AIak.js +0 -1
- package/dist/dropdownComposed-CS2pyn-g.js +0 -293
- package/dist/dynamicForms-tYQog0kw.js +0 -298
- package/dist/ekybModule-C33C4JES.js +0 -237
- package/dist/ekybModule-LON6G2Bz.js +0 -2
- package/dist/ekycModule-BJOgtTAh.js +0 -225
- package/dist/ekycModule-BSf_DIG7.js +0 -2
- package/dist/electronic-signature-OdgTyso4.js +0 -406
- package/dist/emailInput-CU7mLB21.js +0 -37
- package/dist/errorIcon-DpHzAoAo.js +0 -24
- package/dist/expiredId-nfVAZgTL.js +0 -70
- package/dist/extensibility-BbNy3mVG.js +0 -2602
- package/dist/faceMatch-BIila4kf.js +0 -2
- package/dist/faceMatch-DJ7Mqujx.js +0 -206
- package/dist/fieldComparison-D2RSFYl-.js +0 -84
- package/dist/fieldComparison-DbUyouFd.js +0 -2
- package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
- package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
- package/dist/homeScreen-CyPddxWl.js +0 -227
- package/dist/hooks-MxHtZWTS.js +0 -112
- package/dist/i18n-Kzzvkz94.js +0 -2019
- package/dist/icons-9I5g9-_1.js +0 -292
- package/dist/id-laser-h-iCPbFixz.js +0 -467
- package/dist/id-laser-v-CNzwliP2.js +0 -483
- package/dist/id-tutorial-CF4nO4oX.js +0 -13153
- package/dist/idOcr-DlMLMDqa.js +0 -97
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-BoFhgK7G.js +0 -50
- package/dist/incodeModule-BiCoAJ5k.js +0 -13
- package/dist/inputComposed-DAEey9xm.js +0 -94
- package/dist/inputComposed-eS4B0Mkh.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/lottie_light-DLqSnziX.js +0 -4419
- package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
- package/dist/modal-ZqAhwiRF.js +0 -135
- package/dist/modal.hooks-LdusROLW.js +0 -126
- package/dist/numberedStep-CdLWASwL.js +0 -11
- package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
- package/dist/otpInput-C4pk4BJU.js +0 -157
- package/dist/page-DA3R7q0J.js +0 -69
- package/dist/pdf-51QeiFSx.js +0 -14967
- package/dist/pdfViewer-rKzTHket.js +0 -64
- package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
- package/dist/processing-DPktVde2.js +0 -6
- package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
- package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
- package/dist/requiredLabelHint-B6FN3v88.js +0 -13
- package/dist/richText-6pIbydcz.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
- package/dist/snackbar-CQiiWO4p.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-B8b3Jg6N.js +0 -28
- package/dist/successIcon-SlKgTSty.js +0 -28
- package/dist/tabs-D7lGst3Q.js +0 -78
- package/dist/transitionSpinner-Di3bOyOu.js +0 -17
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-Bqs7fglI.js +0 -517
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-DhT3hH1b.js +0 -90
- package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
- package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { h as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { i as r, n as i, o as a, r as o, s } from "./modal.hooks-LdusROLW.js";
|
|
3
|
-
//#region src/shared/bottomSheet/bottomSheet.tsx
|
|
4
|
-
var c = ({ isOpen: c = !1, onClose: l, labelledById: u, children: d }) => {
|
|
5
|
-
let f = t(null), p = t(null), m = e(() => {
|
|
6
|
-
l?.();
|
|
7
|
-
}, [l]);
|
|
8
|
-
return i(c), o(c, !0, m), r(c, f), a(c, f), s(c, p), c ? /* @__PURE__ */ n("div", {
|
|
9
|
-
ref: p,
|
|
10
|
-
class: "IncodeBottomSheetOverlay",
|
|
11
|
-
onClick: (e) => {
|
|
12
|
-
e.target === e.currentTarget && m();
|
|
13
|
-
},
|
|
14
|
-
children: /* @__PURE__ */ n("div", {
|
|
15
|
-
class: "IncodeBottomSheetContainer",
|
|
16
|
-
onClick: m,
|
|
17
|
-
children: /* @__PURE__ */ n("div", {
|
|
18
|
-
ref: f,
|
|
19
|
-
class: "IncodeBottomSheet",
|
|
20
|
-
role: "dialog",
|
|
21
|
-
"aria-modal": "true",
|
|
22
|
-
"aria-labelledby": u,
|
|
23
|
-
tabIndex: -1,
|
|
24
|
-
onClick: (e) => e.stopPropagation(),
|
|
25
|
-
children: d
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
}) : null;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
export { c as t };
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CYMK-g2i.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/cross-fetch@4.0.0/node_modules/cross-fetch/dist/browser-ponyfill.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof global < "u" && global, r = (function() {
|
|
5
|
-
function e() {
|
|
6
|
-
this.fetch = !1, this.DOMException = n.DOMException;
|
|
7
|
-
}
|
|
8
|
-
return e.prototype = n, new e();
|
|
9
|
-
})();
|
|
10
|
-
(function(e) {
|
|
11
|
-
(function(t) {
|
|
12
|
-
var n = e !== void 0 && e || typeof self < "u" && self || n !== void 0 && n, r = {
|
|
13
|
-
searchParams: "URLSearchParams" in n,
|
|
14
|
-
iterable: "Symbol" in n && "iterator" in Symbol,
|
|
15
|
-
blob: "FileReader" in n && "Blob" in n && (function() {
|
|
16
|
-
try {
|
|
17
|
-
return new Blob(), !0;
|
|
18
|
-
} catch {
|
|
19
|
-
return !1;
|
|
20
|
-
}
|
|
21
|
-
})(),
|
|
22
|
-
formData: "FormData" in n,
|
|
23
|
-
arrayBuffer: "ArrayBuffer" in n
|
|
24
|
-
};
|
|
25
|
-
function i(e) {
|
|
26
|
-
return e && DataView.prototype.isPrototypeOf(e);
|
|
27
|
-
}
|
|
28
|
-
if (r.arrayBuffer) var a = [
|
|
29
|
-
"[object Int8Array]",
|
|
30
|
-
"[object Uint8Array]",
|
|
31
|
-
"[object Uint8ClampedArray]",
|
|
32
|
-
"[object Int16Array]",
|
|
33
|
-
"[object Uint16Array]",
|
|
34
|
-
"[object Int32Array]",
|
|
35
|
-
"[object Uint32Array]",
|
|
36
|
-
"[object Float32Array]",
|
|
37
|
-
"[object Float64Array]"
|
|
38
|
-
], o = ArrayBuffer.isView || function(e) {
|
|
39
|
-
return e && a.indexOf(Object.prototype.toString.call(e)) > -1;
|
|
40
|
-
};
|
|
41
|
-
function s(e) {
|
|
42
|
-
if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "") throw TypeError("Invalid character in header field name: \"" + e + "\"");
|
|
43
|
-
return e.toLowerCase();
|
|
44
|
-
}
|
|
45
|
-
function c(e) {
|
|
46
|
-
return typeof e != "string" && (e = String(e)), e;
|
|
47
|
-
}
|
|
48
|
-
function l(e) {
|
|
49
|
-
var t = { next: function() {
|
|
50
|
-
var t = e.shift();
|
|
51
|
-
return {
|
|
52
|
-
done: t === void 0,
|
|
53
|
-
value: t
|
|
54
|
-
};
|
|
55
|
-
} };
|
|
56
|
-
return r.iterable && (t[Symbol.iterator] = function() {
|
|
57
|
-
return t;
|
|
58
|
-
}), t;
|
|
59
|
-
}
|
|
60
|
-
function u(e) {
|
|
61
|
-
this.map = {}, e instanceof u ? e.forEach(function(e, t) {
|
|
62
|
-
this.append(t, e);
|
|
63
|
-
}, this) : Array.isArray(e) ? e.forEach(function(e) {
|
|
64
|
-
this.append(e[0], e[1]);
|
|
65
|
-
}, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
|
|
66
|
-
this.append(t, e[t]);
|
|
67
|
-
}, this);
|
|
68
|
-
}
|
|
69
|
-
u.prototype.append = function(e, t) {
|
|
70
|
-
e = s(e), t = c(t);
|
|
71
|
-
var n = this.map[e];
|
|
72
|
-
this.map[e] = n ? n + ", " + t : t;
|
|
73
|
-
}, u.prototype.delete = function(e) {
|
|
74
|
-
delete this.map[s(e)];
|
|
75
|
-
}, u.prototype.get = function(e) {
|
|
76
|
-
return e = s(e), this.has(e) ? this.map[e] : null;
|
|
77
|
-
}, u.prototype.has = function(e) {
|
|
78
|
-
return this.map.hasOwnProperty(s(e));
|
|
79
|
-
}, u.prototype.set = function(e, t) {
|
|
80
|
-
this.map[s(e)] = c(t);
|
|
81
|
-
}, u.prototype.forEach = function(e, t) {
|
|
82
|
-
for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
|
|
83
|
-
}, u.prototype.keys = function() {
|
|
84
|
-
var e = [];
|
|
85
|
-
return this.forEach(function(t, n) {
|
|
86
|
-
e.push(n);
|
|
87
|
-
}), l(e);
|
|
88
|
-
}, u.prototype.values = function() {
|
|
89
|
-
var e = [];
|
|
90
|
-
return this.forEach(function(t) {
|
|
91
|
-
e.push(t);
|
|
92
|
-
}), l(e);
|
|
93
|
-
}, u.prototype.entries = function() {
|
|
94
|
-
var e = [];
|
|
95
|
-
return this.forEach(function(t, n) {
|
|
96
|
-
e.push([n, t]);
|
|
97
|
-
}), l(e);
|
|
98
|
-
}, r.iterable && (u.prototype[Symbol.iterator] = u.prototype.entries);
|
|
99
|
-
function d(e) {
|
|
100
|
-
if (e.bodyUsed) return Promise.reject(/* @__PURE__ */ TypeError("Already read"));
|
|
101
|
-
e.bodyUsed = !0;
|
|
102
|
-
}
|
|
103
|
-
function f(e) {
|
|
104
|
-
return new Promise(function(t, n) {
|
|
105
|
-
e.onload = function() {
|
|
106
|
-
t(e.result);
|
|
107
|
-
}, e.onerror = function() {
|
|
108
|
-
n(e.error);
|
|
109
|
-
};
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function p(e) {
|
|
113
|
-
var t = new FileReader(), n = f(t);
|
|
114
|
-
return t.readAsArrayBuffer(e), n;
|
|
115
|
-
}
|
|
116
|
-
function m(e) {
|
|
117
|
-
var t = new FileReader(), n = f(t);
|
|
118
|
-
return t.readAsText(e), n;
|
|
119
|
-
}
|
|
120
|
-
function h(e) {
|
|
121
|
-
for (var t = new Uint8Array(e), n = Array(t.length), r = 0; r < t.length; r++) n[r] = String.fromCharCode(t[r]);
|
|
122
|
-
return n.join("");
|
|
123
|
-
}
|
|
124
|
-
function g(e) {
|
|
125
|
-
if (e.slice) return e.slice(0);
|
|
126
|
-
var t = new Uint8Array(e.byteLength);
|
|
127
|
-
return t.set(new Uint8Array(e)), t.buffer;
|
|
128
|
-
}
|
|
129
|
-
function _() {
|
|
130
|
-
return this.bodyUsed = !1, this._initBody = function(e) {
|
|
131
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : r.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : r.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : r.arrayBuffer && r.blob && i(e) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : r.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || o(e)) ? this._bodyArrayBuffer = g(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : r.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
132
|
-
}, r.blob && (this.blob = function() {
|
|
133
|
-
var e = d(this);
|
|
134
|
-
if (e) return e;
|
|
135
|
-
if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
|
|
136
|
-
if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
137
|
-
if (this._bodyFormData) throw Error("could not read FormData body as blob");
|
|
138
|
-
return Promise.resolve(new Blob([this._bodyText]));
|
|
139
|
-
}, this.arrayBuffer = function() {
|
|
140
|
-
return this._bodyArrayBuffer ? d(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(p);
|
|
141
|
-
}), this.text = function() {
|
|
142
|
-
var e = d(this);
|
|
143
|
-
if (e) return e;
|
|
144
|
-
if (this._bodyBlob) return m(this._bodyBlob);
|
|
145
|
-
if (this._bodyArrayBuffer) return Promise.resolve(h(this._bodyArrayBuffer));
|
|
146
|
-
if (this._bodyFormData) throw Error("could not read FormData body as text");
|
|
147
|
-
return Promise.resolve(this._bodyText);
|
|
148
|
-
}, r.formData && (this.formData = function() {
|
|
149
|
-
return this.text().then(x);
|
|
150
|
-
}), this.json = function() {
|
|
151
|
-
return this.text().then(JSON.parse);
|
|
152
|
-
}, this;
|
|
153
|
-
}
|
|
154
|
-
var v = [
|
|
155
|
-
"DELETE",
|
|
156
|
-
"GET",
|
|
157
|
-
"HEAD",
|
|
158
|
-
"OPTIONS",
|
|
159
|
-
"POST",
|
|
160
|
-
"PUT"
|
|
161
|
-
];
|
|
162
|
-
function y(e) {
|
|
163
|
-
var t = e.toUpperCase();
|
|
164
|
-
return v.indexOf(t) > -1 ? t : e;
|
|
165
|
-
}
|
|
166
|
-
function b(e, t) {
|
|
167
|
-
if (!(this instanceof b)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
|
|
168
|
-
t ||= {};
|
|
169
|
-
var n = t.body;
|
|
170
|
-
if (e instanceof b) {
|
|
171
|
-
if (e.bodyUsed) throw TypeError("Already read");
|
|
172
|
-
this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new u(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !n && e._bodyInit != null && (n = e._bodyInit, e.bodyUsed = !0);
|
|
173
|
-
} else this.url = String(e);
|
|
174
|
-
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new u(t.headers)), this.method = y(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && n) throw TypeError("Body not allowed for GET or HEAD requests");
|
|
175
|
-
if (this._initBody(n), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
|
|
176
|
-
var r = /([?&])_=[^&]*/;
|
|
177
|
-
r.test(this.url) ? this.url = this.url.replace(r, "$1_=" + (/* @__PURE__ */ new Date()).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
b.prototype.clone = function() {
|
|
181
|
-
return new b(this, { body: this._bodyInit });
|
|
182
|
-
};
|
|
183
|
-
function x(e) {
|
|
184
|
-
var t = new FormData();
|
|
185
|
-
return e.trim().split("&").forEach(function(e) {
|
|
186
|
-
if (e) {
|
|
187
|
-
var n = e.split("="), r = n.shift().replace(/\+/g, " "), i = n.join("=").replace(/\+/g, " ");
|
|
188
|
-
t.append(decodeURIComponent(r), decodeURIComponent(i));
|
|
189
|
-
}
|
|
190
|
-
}), t;
|
|
191
|
-
}
|
|
192
|
-
function S(e) {
|
|
193
|
-
var t = new u();
|
|
194
|
-
return e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(e) {
|
|
195
|
-
return e.indexOf("\n") === 0 ? e.substr(1, e.length) : e;
|
|
196
|
-
}).forEach(function(e) {
|
|
197
|
-
var n = e.split(":"), r = n.shift().trim();
|
|
198
|
-
if (r) {
|
|
199
|
-
var i = n.join(":").trim();
|
|
200
|
-
t.append(r, i);
|
|
201
|
-
}
|
|
202
|
-
}), t;
|
|
203
|
-
}
|
|
204
|
-
_.call(b.prototype);
|
|
205
|
-
function C(e, t) {
|
|
206
|
-
if (!(this instanceof C)) throw TypeError("Please use the \"new\" operator, this DOM object constructor cannot be called as a function.");
|
|
207
|
-
t ||= {}, this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new u(t.headers), this.url = t.url || "", this._initBody(e);
|
|
208
|
-
}
|
|
209
|
-
_.call(C.prototype), C.prototype.clone = function() {
|
|
210
|
-
return new C(this._bodyInit, {
|
|
211
|
-
status: this.status,
|
|
212
|
-
statusText: this.statusText,
|
|
213
|
-
headers: new u(this.headers),
|
|
214
|
-
url: this.url
|
|
215
|
-
});
|
|
216
|
-
}, C.error = function() {
|
|
217
|
-
var e = new C(null, {
|
|
218
|
-
status: 0,
|
|
219
|
-
statusText: ""
|
|
220
|
-
});
|
|
221
|
-
return e.type = "error", e;
|
|
222
|
-
};
|
|
223
|
-
var w = [
|
|
224
|
-
301,
|
|
225
|
-
302,
|
|
226
|
-
303,
|
|
227
|
-
307,
|
|
228
|
-
308
|
|
229
|
-
];
|
|
230
|
-
C.redirect = function(e, t) {
|
|
231
|
-
if (w.indexOf(t) === -1) throw RangeError("Invalid status code");
|
|
232
|
-
return new C(null, {
|
|
233
|
-
status: t,
|
|
234
|
-
headers: { location: e }
|
|
235
|
-
});
|
|
236
|
-
}, t.DOMException = n.DOMException;
|
|
237
|
-
try {
|
|
238
|
-
new t.DOMException();
|
|
239
|
-
} catch {
|
|
240
|
-
t.DOMException = function(e, t) {
|
|
241
|
-
this.message = e, this.name = t, this.stack = Error(e).stack;
|
|
242
|
-
}, t.DOMException.prototype = Object.create(Error.prototype), t.DOMException.prototype.constructor = t.DOMException;
|
|
243
|
-
}
|
|
244
|
-
function T(e, i) {
|
|
245
|
-
return new Promise(function(a, o) {
|
|
246
|
-
var s = new b(e, i);
|
|
247
|
-
if (s.signal && s.signal.aborted) return o(new t.DOMException("Aborted", "AbortError"));
|
|
248
|
-
var l = new XMLHttpRequest();
|
|
249
|
-
function d() {
|
|
250
|
-
l.abort();
|
|
251
|
-
}
|
|
252
|
-
l.onload = function() {
|
|
253
|
-
var e = {
|
|
254
|
-
status: l.status,
|
|
255
|
-
statusText: l.statusText,
|
|
256
|
-
headers: S(l.getAllResponseHeaders() || "")
|
|
257
|
-
};
|
|
258
|
-
e.url = "responseURL" in l ? l.responseURL : e.headers.get("X-Request-URL");
|
|
259
|
-
var t = "response" in l ? l.response : l.responseText;
|
|
260
|
-
setTimeout(function() {
|
|
261
|
-
a(new C(t, e));
|
|
262
|
-
}, 0);
|
|
263
|
-
}, l.onerror = function() {
|
|
264
|
-
setTimeout(function() {
|
|
265
|
-
o(/* @__PURE__ */ TypeError("Network request failed"));
|
|
266
|
-
}, 0);
|
|
267
|
-
}, l.ontimeout = function() {
|
|
268
|
-
setTimeout(function() {
|
|
269
|
-
o(/* @__PURE__ */ TypeError("Network request failed"));
|
|
270
|
-
}, 0);
|
|
271
|
-
}, l.onabort = function() {
|
|
272
|
-
setTimeout(function() {
|
|
273
|
-
o(new t.DOMException("Aborted", "AbortError"));
|
|
274
|
-
}, 0);
|
|
275
|
-
};
|
|
276
|
-
function f(e) {
|
|
277
|
-
try {
|
|
278
|
-
return e === "" && n.location.href ? n.location.href : e;
|
|
279
|
-
} catch {
|
|
280
|
-
return e;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
l.open(s.method, f(s.url), !0), s.credentials === "include" ? l.withCredentials = !0 : s.credentials === "omit" && (l.withCredentials = !1), "responseType" in l && (r.blob ? l.responseType = "blob" : r.arrayBuffer && s.headers.get("Content-Type") && s.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (l.responseType = "arraybuffer")), i && typeof i.headers == "object" && !(i.headers instanceof u) ? Object.getOwnPropertyNames(i.headers).forEach(function(e) {
|
|
284
|
-
l.setRequestHeader(e, c(i.headers[e]));
|
|
285
|
-
}) : s.headers.forEach(function(e, t) {
|
|
286
|
-
l.setRequestHeader(t, e);
|
|
287
|
-
}), s.signal && (s.signal.addEventListener("abort", d), l.onreadystatechange = function() {
|
|
288
|
-
l.readyState === 4 && s.signal.removeEventListener("abort", d);
|
|
289
|
-
}), l.send(s._bodyInit === void 0 ? null : s._bodyInit);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
return T.polyfill = !0, n.fetch || (n.fetch = T, n.Headers = u, n.Request = b, n.Response = C), t.Headers = u, t.Request = b, t.Response = C, t.fetch = T, t;
|
|
293
|
-
})({});
|
|
294
|
-
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
295
|
-
var i = n.fetch ? n : r;
|
|
296
|
-
e = i.fetch, e.default = i.fetch, e.fetch = i.fetch, e.Headers = i.Headers, e.Request = i.Request, e.Response = i.Response, t.exports = e;
|
|
297
|
-
}));
|
|
298
|
-
//#endregion
|
|
299
|
-
export default t();
|
package/dist/button-DcCUEn2n.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { S as e, a as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as r, t as i } from "./loadingIcon-BN5YRQUb.js";
|
|
3
|
-
//#region src/shared/button/button.tsx
|
|
4
|
-
var a = 30, o = {
|
|
5
|
-
primary: "IncodeButtonPrimary",
|
|
6
|
-
secondary: "IncodeButtonSecondary",
|
|
7
|
-
link: "IncodeButtonLink"
|
|
8
|
-
}, s = {
|
|
9
|
-
L: "IncodeButtonL",
|
|
10
|
-
M: "IncodeButtonM",
|
|
11
|
-
S: "IncodeButtonS"
|
|
12
|
-
}, c = t((t, c) => {
|
|
13
|
-
let { isLoading: l = !1, variant: u = "primary", size: d = "L", icon: f, class: p, type: m = "button", children: h, disabled: g, ..._ } = t, v = !h && !!f, y = l && d === "L", b = () => y ? /* @__PURE__ */ n(i, { size: a }) : v ? f : f ? /* @__PURE__ */ n(e, { children: [h, f] }) : h;
|
|
14
|
-
return /* @__PURE__ */ n("button", {
|
|
15
|
-
ref: c,
|
|
16
|
-
..._,
|
|
17
|
-
class: r("IncodeButton", o[u], s[d], y ? "IncodeButtonLoading" : "", v ? "IncodeButtonIconOnly" : "", p),
|
|
18
|
-
disabled: g || y,
|
|
19
|
-
type: m,
|
|
20
|
-
children: b()
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
//#endregion
|
|
24
|
-
export { c as t };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { a as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as r } from "./loadingIcon-BN5YRQUb.js";
|
|
3
|
-
import { t as i } from "./errorIcon-DpHzAoAo.js";
|
|
4
|
-
import { d as a } from "./icons-9I5g9-_1.js";
|
|
5
|
-
//#region src/shared/checkbox/checkbox.tsx
|
|
6
|
-
var o = e(({ id: e, label: o, labelHint: s, size: c = "m", checked: l, defaultChecked: u, disabled: d = !1, required: f = !1, name: p, value: m, onChange: h, error: g, helper: _, showErrorIcon: v = !0, class: y, "aria-label": b, "aria-labelledby": x, "aria-describedby": S, "aria-invalid": C, ...w }, T) => {
|
|
7
|
-
let [E, D] = t(!!u), O = l !== void 0, k = O ? !!l : E, A = !!d, j = !!f, M = typeof y == "string" ? y : void 0, N = (e) => {
|
|
8
|
-
O || D(e.target.checked), h?.(e);
|
|
9
|
-
}, P = _ ? `${e}-helper` : void 0, F = g ? `${e}-error` : void 0, I = [
|
|
10
|
-
S,
|
|
11
|
-
F,
|
|
12
|
-
P
|
|
13
|
-
].filter(Boolean).join(" ") || void 0;
|
|
14
|
-
return /* @__PURE__ */ n("div", {
|
|
15
|
-
class: r("IncodeCheckbox", M),
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ n("label", {
|
|
18
|
-
class: r("IncodeCheckboxLabel", { IncodeCheckboxLabelDisabled: A }),
|
|
19
|
-
htmlFor: e,
|
|
20
|
-
children: [/* @__PURE__ */ n("div", {
|
|
21
|
-
class: "relative inline-flex",
|
|
22
|
-
children: [/* @__PURE__ */ n("input", {
|
|
23
|
-
ref: T,
|
|
24
|
-
type: "checkbox",
|
|
25
|
-
class: "IncodeCheckboxInput",
|
|
26
|
-
id: e,
|
|
27
|
-
name: p,
|
|
28
|
-
value: m,
|
|
29
|
-
...O ? { checked: l } : { defaultChecked: u },
|
|
30
|
-
disabled: d,
|
|
31
|
-
required: f,
|
|
32
|
-
onChange: N,
|
|
33
|
-
"aria-label": b,
|
|
34
|
-
"aria-labelledby": x,
|
|
35
|
-
"aria-describedby": I,
|
|
36
|
-
"aria-invalid": C || !!g,
|
|
37
|
-
"aria-required": j,
|
|
38
|
-
...w
|
|
39
|
-
}), /* @__PURE__ */ n("div", {
|
|
40
|
-
class: r("IncodeCheckboxVisual", {
|
|
41
|
-
IncodeCheckboxVisualChecked: k,
|
|
42
|
-
IncodeCheckboxVisualDisabled: A,
|
|
43
|
-
IncodeCheckboxVisualError: !!g
|
|
44
|
-
}),
|
|
45
|
-
children: k && /* @__PURE__ */ n(a, { size: 28 })
|
|
46
|
-
})]
|
|
47
|
-
}), o && /* @__PURE__ */ n("span", {
|
|
48
|
-
class: r("IncodeCheckboxText", {
|
|
49
|
-
IncodeCheckboxTextS: c === "s",
|
|
50
|
-
IncodeCheckboxTextM: c === "m",
|
|
51
|
-
IncodeCheckboxTextDisabled: A
|
|
52
|
-
}),
|
|
53
|
-
"aria-hidden": x ? "true" : void 0,
|
|
54
|
-
children: [o, s && /* @__PURE__ */ n("span", {
|
|
55
|
-
class: "IncodeCheckboxLabelHint",
|
|
56
|
-
"data-testid": `${e}-label-hint`,
|
|
57
|
-
children: s
|
|
58
|
-
})]
|
|
59
|
-
})]
|
|
60
|
-
}),
|
|
61
|
-
g && /* @__PURE__ */ n("div", {
|
|
62
|
-
class: "IncodeCheckboxMessageWrapper",
|
|
63
|
-
"data-testid": `${e}-error-wrapper`,
|
|
64
|
-
children: [v && /* @__PURE__ */ n("div", {
|
|
65
|
-
class: "IncodeCheckboxIconWrapper",
|
|
66
|
-
children: /* @__PURE__ */ n(i, { size: 17 })
|
|
67
|
-
}), /* @__PURE__ */ n("p", {
|
|
68
|
-
id: F,
|
|
69
|
-
class: "IncodeCheckboxErrorText",
|
|
70
|
-
children: g
|
|
71
|
-
})]
|
|
72
|
-
}),
|
|
73
|
-
_ && !g && /* @__PURE__ */ n("div", {
|
|
74
|
-
class: "IncodeCheckboxMessageWrapper",
|
|
75
|
-
"data-testid": `${e}-helper-wrapper`,
|
|
76
|
-
children: /* @__PURE__ */ n("p", {
|
|
77
|
-
id: P,
|
|
78
|
-
class: "IncodeCheckboxHelperText",
|
|
79
|
-
children: _
|
|
80
|
-
})
|
|
81
|
-
})
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
//#endregion
|
|
86
|
-
export { o as t };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { t as r } from "./dropdownComposed-CS2pyn-g.js";
|
|
4
|
-
//#region src/shared/countrySelector/countrySelector.tsx
|
|
5
|
-
var i = [
|
|
6
|
-
"BR",
|
|
7
|
-
"CN",
|
|
8
|
-
"FR",
|
|
9
|
-
"DE",
|
|
10
|
-
"IL",
|
|
11
|
-
"IT",
|
|
12
|
-
"MX",
|
|
13
|
-
"ES",
|
|
14
|
-
"GB",
|
|
15
|
-
"US"
|
|
16
|
-
], a = [
|
|
17
|
-
"CM",
|
|
18
|
-
"KE",
|
|
19
|
-
"NG"
|
|
20
|
-
];
|
|
21
|
-
function o(e) {
|
|
22
|
-
return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
|
|
23
|
-
}
|
|
24
|
-
function s() {
|
|
25
|
-
if (typeof window > "u") return !1;
|
|
26
|
-
let { hostname: e } = window.location;
|
|
27
|
-
return e === "localhost" || e.includes("stage") || e.includes("demo");
|
|
28
|
-
}
|
|
29
|
-
var c = ({ value: c, onChange: l, label: u, id: d = "country-selector", countryCodes: f = i, devOnlyCountryCodes: p = a, "data-testid": m }) => {
|
|
30
|
-
let { i18n: h } = e(), g = h.language || "en";
|
|
31
|
-
return /* @__PURE__ */ n("div", {
|
|
32
|
-
class: "IncodeCountrySelector",
|
|
33
|
-
children: /* @__PURE__ */ n(r, {
|
|
34
|
-
id: d,
|
|
35
|
-
label: u,
|
|
36
|
-
value: c,
|
|
37
|
-
options: t(() => {
|
|
38
|
-
let e = new Intl.DisplayNames([g, "en"], { type: "region" });
|
|
39
|
-
return (s() ? [...f, ...p] : [...f]).map((t) => {
|
|
40
|
-
let n = e.of(t) ?? t;
|
|
41
|
-
return {
|
|
42
|
-
value: t,
|
|
43
|
-
label: `${o(t)} ${n}`,
|
|
44
|
-
ariaLabel: n
|
|
45
|
-
};
|
|
46
|
-
}).sort((e, t) => e.label.localeCompare(t.label, g));
|
|
47
|
-
}, [
|
|
48
|
-
f,
|
|
49
|
-
p,
|
|
50
|
-
g
|
|
51
|
-
]),
|
|
52
|
-
onChange: l,
|
|
53
|
-
"data-testid": m
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
//#endregion
|
|
58
|
-
export { c as t };
|
package/dist/cpfOcr-Db06i-Lm.js
DELETED
package/dist/cpfOcr-FixhUeMQ.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { _ as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { c as r, o as i } from "./hooks-MxHtZWTS.js";
|
|
3
|
-
import { r as a } from "./loadingIcon-BN5YRQUb.js";
|
|
4
|
-
import { t as o } from "./page-DA3R7q0J.js";
|
|
5
|
-
import { t as s } from "./spinner-CKnjVHxw.js";
|
|
6
|
-
import "./spinner-B4dcie2T.js";
|
|
7
|
-
import { t as c } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as l } from "./verificationResult-DhT3hH1b.js";
|
|
9
|
-
import { t as u } from "./inputComposed-DAEey9xm.js";
|
|
10
|
-
import { createCpfOcrManager as d } from "@incodetech/core/cpf-ocr";
|
|
11
|
-
//#region src/modules/cpf-ocr/cpfOcr.tsx
|
|
12
|
-
var f = (e) => e.status === "inputting" ? {
|
|
13
|
-
cpf: e.cpf,
|
|
14
|
-
isValid: e.isValid
|
|
15
|
-
} : {
|
|
16
|
-
cpf: "",
|
|
17
|
-
isValid: !1
|
|
18
|
-
}, p = ({ manager: p, onFinish: m, onError: h }) => {
|
|
19
|
-
let [g, _] = r(() => p ?? d(), { manageLifecycle: !p }), [v, y] = t(!1), [b, x] = t(!1), [S, C] = t(!1);
|
|
20
|
-
if (i({
|
|
21
|
-
status: g.status === "finished" ? "finished" : "loading",
|
|
22
|
-
onFinish: m
|
|
23
|
-
}), e(() => {
|
|
24
|
-
g.status === "error" && h?.(g.error);
|
|
25
|
-
}, [g, h]), g.status === "idle" || g.status === "loading" || g.status === "submitting") return /* @__PURE__ */ n(o, {
|
|
26
|
-
className: "IncodeCpfOcrPage",
|
|
27
|
-
children: /* @__PURE__ */ n("div", {
|
|
28
|
-
class: "IncodeCpfOcrLoading",
|
|
29
|
-
children: /* @__PURE__ */ n(s, { fullScreen: !1 })
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
if (g.status === "error") return /* @__PURE__ */ n(l, {
|
|
33
|
-
status: "failure",
|
|
34
|
-
failureTitle: "Não foi possível verificar o CPF",
|
|
35
|
-
onRetry: () => _.retry()
|
|
36
|
-
});
|
|
37
|
-
if (g.status === "finished") return null;
|
|
38
|
-
let w = f(g), T = w.cpf.replace(/\D/g, "").length === 11, E = b && !w.isValid && (T || v && !S) ? "Insira um CPF válido" : void 0;
|
|
39
|
-
return /* @__PURE__ */ n(o, {
|
|
40
|
-
className: "IncodeCpfOcrPage",
|
|
41
|
-
title: "Insira e verifique o número do seu CPF",
|
|
42
|
-
children: /* @__PURE__ */ n("div", {
|
|
43
|
-
class: "IncodeCpfOcr",
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ n(a, { size: 32 }),
|
|
46
|
-
/* @__PURE__ */ n(u, {
|
|
47
|
-
id: "cpf-ocr-input",
|
|
48
|
-
label: "",
|
|
49
|
-
value: w.cpf,
|
|
50
|
-
placeholder: "Seu CPF",
|
|
51
|
-
maxLength: 14,
|
|
52
|
-
inputMode: "numeric",
|
|
53
|
-
"aria-label": "CPF",
|
|
54
|
-
onInput: (e) => {
|
|
55
|
-
x(!0), _.setCpf(e.target.value);
|
|
56
|
-
},
|
|
57
|
-
onFocus: () => {
|
|
58
|
-
C(!0);
|
|
59
|
-
},
|
|
60
|
-
onBlur: () => {
|
|
61
|
-
C(!1), y(!0);
|
|
62
|
-
},
|
|
63
|
-
error: E,
|
|
64
|
-
showErrorIcon: !0
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ n(a, {}),
|
|
67
|
-
/* @__PURE__ */ n(c, {
|
|
68
|
-
type: "button",
|
|
69
|
-
onClick: () => _.submit(),
|
|
70
|
-
disabled: !w.isValid,
|
|
71
|
-
"data-testid": "cpf-ocr-continue",
|
|
72
|
-
children: "Continuar"
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
79
|
-
export { p as t };
|