@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,98 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { a as i, c as a, o } from "./hooks-MxHtZWTS.js";
|
|
4
|
-
import { t as s } from "./incodeComponent-BoFhgK7G.js";
|
|
5
|
-
import { t as c } from "./page-DA3R7q0J.js";
|
|
6
|
-
import { t as l } from "./transitionSpinner-Di3bOyOu.js";
|
|
7
|
-
import { t as u } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as d } from "./checkbox-DCCzBAuF.js";
|
|
9
|
-
import { t as f } from "./incodeModule-BiCoAJ5k.js";
|
|
10
|
-
import { t as p } from "./richText-6pIbydcz.js";
|
|
11
|
-
import { createMandatoryConsentManager as m } from "@incodetech/core/mandatory-consent";
|
|
12
|
-
//#region src/modules/mandatory-consent/mandatoryConsent.tsx
|
|
13
|
-
var h = (e) => {
|
|
14
|
-
e.target.closest("a") && e.stopPropagation();
|
|
15
|
-
}, g = ({ config: s, manager: f, onFinish: g, onError: _ }) => {
|
|
16
|
-
let { t: v, i18n: y } = e(), b = n(null), [x, S] = a(() => {
|
|
17
|
-
if (f) return f;
|
|
18
|
-
if (!s) throw Error("MandatoryConsent config is required when no manager is provided");
|
|
19
|
-
return m({ config: {
|
|
20
|
-
...s,
|
|
21
|
-
language: y.language
|
|
22
|
-
} });
|
|
23
|
-
}, { manageLifecycle: !f });
|
|
24
|
-
if (t(() => {
|
|
25
|
-
x.status === "display" && b.current?.focus();
|
|
26
|
-
}, [x.status]), o({
|
|
27
|
-
status: x.status,
|
|
28
|
-
onFinish: g,
|
|
29
|
-
onError: _,
|
|
30
|
-
error: x.status === "error" ? x.error : void 0
|
|
31
|
-
}), i(x)) return null;
|
|
32
|
-
if (x.status === "idle" || x.status === "loading") return /* @__PURE__ */ r(l, { hideText: !0 });
|
|
33
|
-
let C = x.text.split("\n").filter((e) => e.trim().length > 0).join(" "), w = (s?.type ?? "MANDATORY") === "MANDATORY";
|
|
34
|
-
return /* @__PURE__ */ r(c, {
|
|
35
|
-
className: "IncodeConsentPage",
|
|
36
|
-
title: x.title,
|
|
37
|
-
children: /* @__PURE__ */ r("div", {
|
|
38
|
-
class: "IncodeConsentContent",
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ r("div", {
|
|
41
|
-
class: "IncodeConsentBody",
|
|
42
|
-
children: [/* @__PURE__ */ r("p", {
|
|
43
|
-
class: "IncodeConsentSubtitle",
|
|
44
|
-
children: v("biometricConsent.subtitle")
|
|
45
|
-
}), /* @__PURE__ */ r("div", {
|
|
46
|
-
class: "IncodeConsentCheckboxList",
|
|
47
|
-
children: /* @__PURE__ */ r(d, {
|
|
48
|
-
id: "mandatory-consent-checkbox",
|
|
49
|
-
class: "IncodeConsentCheckbox",
|
|
50
|
-
checked: x.isSigned,
|
|
51
|
-
required: !0,
|
|
52
|
-
onChange: () => S.toggle(),
|
|
53
|
-
label: /* @__PURE__ */ r("span", {
|
|
54
|
-
class: "IncodeConsentCheckboxLabel",
|
|
55
|
-
role: "presentation",
|
|
56
|
-
onClick: h,
|
|
57
|
-
onKeyDown: h,
|
|
58
|
-
children: /* @__PURE__ */ r(p, {
|
|
59
|
-
content: C,
|
|
60
|
-
class: "IncodeRichText"
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
})]
|
|
65
|
-
}),
|
|
66
|
-
x.status === "display" && x.error ? /* @__PURE__ */ r("p", {
|
|
67
|
-
class: "IncodeConsentSubmitError",
|
|
68
|
-
"data-testid": "mandatory-consent-submit-error",
|
|
69
|
-
role: "alert",
|
|
70
|
-
children: x.error
|
|
71
|
-
}) : null,
|
|
72
|
-
/* @__PURE__ */ r("div", {
|
|
73
|
-
class: "IncodeConsentActions",
|
|
74
|
-
children: [/* @__PURE__ */ r(u, {
|
|
75
|
-
"data-testid": "mandatory-consent-submit",
|
|
76
|
-
class: w ? void 0 : "IncodeConsentButton",
|
|
77
|
-
onClick: () => S.submit(),
|
|
78
|
-
disabled: !x.canSubmit,
|
|
79
|
-
isLoading: x.status === "submitting",
|
|
80
|
-
children: v("biometricConsent.button.continue")
|
|
81
|
-
}), w && /* @__PURE__ */ r(u, {
|
|
82
|
-
variant: "link",
|
|
83
|
-
onClick: () => S.cancel(),
|
|
84
|
-
children: v("biometricConsent.button.cancel")
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
]
|
|
88
|
-
})
|
|
89
|
-
}, "ready");
|
|
90
|
-
}, _ = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(s, { children: e || t ? /* @__PURE__ */ r(g, {
|
|
91
|
-
config: e,
|
|
92
|
-
manager: t,
|
|
93
|
-
onFinish: n,
|
|
94
|
-
onError: i
|
|
95
|
-
}) : null });
|
|
96
|
-
f(_, "incode-mandatory-consent");
|
|
97
|
-
//#endregion
|
|
98
|
-
export { _ as MandatoryConsent };
|
package/dist/modal-ZqAhwiRF.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { C as e, b as t, d as n, f as r, g as i, h as a, l as o, p as s, r as c, v as l, x as u, y as d } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as f } from "./loadingIcon-BN5YRQUb.js";
|
|
3
|
-
import { o as p } from "./icons-9I5g9-_1.js";
|
|
4
|
-
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./modal.hooks-LdusROLW.js";
|
|
5
|
-
//#region src/shared/modal/modal.tsx
|
|
6
|
-
var b = u(null);
|
|
7
|
-
function x() {
|
|
8
|
-
let e = i(b);
|
|
9
|
-
if (!e) throw Error("Modal compound components must be used within Modal.Root");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function S({ open: e, children: t, onOpenChange: r, dismissible: i = !0, portalContainer: u, class: d, hasBackdrop: p = !0, manageInitialFocus: y = !0, returnFocusRef: x }) {
|
|
13
|
-
let S = m(e, u ?? void 0), [C, w] = s(!1), T = o(null), E = a(() => {
|
|
14
|
-
i && r?.(!1);
|
|
15
|
-
}, [i, r]), D = n(() => ({
|
|
16
|
-
setHasDescription: w,
|
|
17
|
-
dismissible: i,
|
|
18
|
-
requestClose: E
|
|
19
|
-
}), [i, E]), O = e && !!S;
|
|
20
|
-
return g(e), v(e, i, E), h(O, T, y, x), _(O, T), !S || !e ? null : c(/* @__PURE__ */ l(b.Provider, {
|
|
21
|
-
value: D,
|
|
22
|
-
children: /* @__PURE__ */ l("div", {
|
|
23
|
-
class: f("IncodeModalRoot", d),
|
|
24
|
-
"data-incode-modal": "",
|
|
25
|
-
children: [p && /* @__PURE__ */ l("div", {
|
|
26
|
-
class: "IncodeModalBackdrop",
|
|
27
|
-
"aria-hidden": "true",
|
|
28
|
-
onMouseDown: () => {
|
|
29
|
-
E();
|
|
30
|
-
}
|
|
31
|
-
}), /* @__PURE__ */ l("div", {
|
|
32
|
-
ref: T,
|
|
33
|
-
class: "IncodeModalDialog",
|
|
34
|
-
role: "dialog",
|
|
35
|
-
"aria-modal": "true",
|
|
36
|
-
"aria-labelledby": "incode-modal-title",
|
|
37
|
-
"aria-describedby": C ? "incode-modal-description" : void 0,
|
|
38
|
-
tabIndex: -1,
|
|
39
|
-
onMouseDown: (e) => {
|
|
40
|
-
e.stopPropagation();
|
|
41
|
-
},
|
|
42
|
-
children: t
|
|
43
|
-
})]
|
|
44
|
-
})
|
|
45
|
-
}), S);
|
|
46
|
-
}
|
|
47
|
-
function C({ children: e, class: t }) {
|
|
48
|
-
return /* @__PURE__ */ l("div", {
|
|
49
|
-
class: f("IncodeModalContent", t),
|
|
50
|
-
children: e
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function w({ "aria-label": e = "Close", title: t = "Close", class: n, onClick: r }) {
|
|
54
|
-
let { dismissible: i, requestClose: a } = x();
|
|
55
|
-
if (!i) return null;
|
|
56
|
-
let o = async () => {
|
|
57
|
-
r && await r(), a();
|
|
58
|
-
};
|
|
59
|
-
return /* @__PURE__ */ l("button", {
|
|
60
|
-
type: "button",
|
|
61
|
-
class: f("IncodeModalClose", n),
|
|
62
|
-
"aria-label": e,
|
|
63
|
-
title: t,
|
|
64
|
-
onClick: o,
|
|
65
|
-
children: /* @__PURE__ */ l(p, {
|
|
66
|
-
height: 32,
|
|
67
|
-
width: 32,
|
|
68
|
-
fillColor: "var(--icon-neutral-300)"
|
|
69
|
-
})
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function T({ children: e, class: t }) {
|
|
73
|
-
return /* @__PURE__ */ l("div", {
|
|
74
|
-
class: f("IncodeModalIcon", t),
|
|
75
|
-
children: e
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function E({ children: e, align: t = "center" }) {
|
|
79
|
-
let n = {
|
|
80
|
-
center: "IncodeModalTitleSectionCenter",
|
|
81
|
-
left: "IncodeModalTitleSectionLeft"
|
|
82
|
-
}[t];
|
|
83
|
-
return /* @__PURE__ */ l("div", {
|
|
84
|
-
class: n,
|
|
85
|
-
children: e
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function D({ children: e, ref: t, class: n }) {
|
|
89
|
-
return /* @__PURE__ */ l("h2", {
|
|
90
|
-
id: "incode-modal-title",
|
|
91
|
-
ref: t,
|
|
92
|
-
className: f("IncodeModalTitle", n),
|
|
93
|
-
children: e
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function O({ children: e, class: t }) {
|
|
97
|
-
let { setHasDescription: n } = x();
|
|
98
|
-
return r(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ l("p", {
|
|
99
|
-
id: "incode-modal-description",
|
|
100
|
-
className: f("IncodeModalSubtitle", t),
|
|
101
|
-
children: e
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function k(t) {
|
|
105
|
-
return e(t) && t.props != null && typeof t.props == "object" && "autoFocus" in t.props;
|
|
106
|
-
}
|
|
107
|
-
function A({ children: n, class: r, orientation: i = "vertical" }) {
|
|
108
|
-
let a = i === "vertical" ? "IncodeModalActionsVertical" : "IncodeModalActionsHorizontal", o = d(n), s = [];
|
|
109
|
-
for (let i = 0; i < o.length; i++) {
|
|
110
|
-
let c = o[i];
|
|
111
|
-
if (k(c)) return /* @__PURE__ */ l("div", {
|
|
112
|
-
class: f(a, r),
|
|
113
|
-
role: "group",
|
|
114
|
-
children: n
|
|
115
|
-
});
|
|
116
|
-
s.push(e(c) && i === 0 ? t(c, { [y]: "" }) : c);
|
|
117
|
-
}
|
|
118
|
-
return /* @__PURE__ */ l("div", {
|
|
119
|
-
class: f(a, r),
|
|
120
|
-
role: "group",
|
|
121
|
-
children: s
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
var j = {
|
|
125
|
-
Root: S,
|
|
126
|
-
Content: C,
|
|
127
|
-
Close: w,
|
|
128
|
-
Icon: T,
|
|
129
|
-
TitleSection: E,
|
|
130
|
-
Title: D,
|
|
131
|
-
Subtitle: O,
|
|
132
|
-
Actions: A
|
|
133
|
-
};
|
|
134
|
-
//#endregion
|
|
135
|
-
export { j as t };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { _ as e, p as t } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
//#region src/shared/modal/modal.hooks.ts
|
|
3
|
-
var n = "IncodeModalScrollLock", r = "data-incode-modal-initial-focus", i = [
|
|
4
|
-
"button:not([disabled])",
|
|
5
|
-
"[href]",
|
|
6
|
-
"input:not([disabled])",
|
|
7
|
-
"select:not([disabled])",
|
|
8
|
-
"textarea:not([disabled])",
|
|
9
|
-
"[tabindex]:not([tabindex=\"-1\"])"
|
|
10
|
-
].join(", ");
|
|
11
|
-
function a(e) {
|
|
12
|
-
return Array.from(e.querySelectorAll(i));
|
|
13
|
-
}
|
|
14
|
-
function o(e) {
|
|
15
|
-
try {
|
|
16
|
-
return e.matches(i);
|
|
17
|
-
} catch {
|
|
18
|
-
return !1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function s(e) {
|
|
22
|
-
let t = e.querySelector("[autofocus]");
|
|
23
|
-
if (t && o(t)) return t;
|
|
24
|
-
let n = e.querySelector(`[${r}]`);
|
|
25
|
-
if (n) {
|
|
26
|
-
if (o(n)) return n;
|
|
27
|
-
let e = n.querySelector(i);
|
|
28
|
-
if (e) return e;
|
|
29
|
-
}
|
|
30
|
-
return a(e)[0] ?? e;
|
|
31
|
-
}
|
|
32
|
-
function c(n, r) {
|
|
33
|
-
let [i, a] = t(null);
|
|
34
|
-
return e(() => {
|
|
35
|
-
if (!n) {
|
|
36
|
-
a(null);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (r) return a(r), () => {
|
|
40
|
-
a(null);
|
|
41
|
-
};
|
|
42
|
-
let e = document.createElement("div");
|
|
43
|
-
return e.setAttribute("data-incode-modal-portal", ""), (document.querySelector(".IncodeComponent") ?? document.body).appendChild(e), a(e), () => {
|
|
44
|
-
e.remove(), a(null);
|
|
45
|
-
};
|
|
46
|
-
}, [n, r]), i;
|
|
47
|
-
}
|
|
48
|
-
function l(t) {
|
|
49
|
-
e(() => {
|
|
50
|
-
if (!t) return;
|
|
51
|
-
let e = document.querySelector(".IncodeComponent");
|
|
52
|
-
return (e ?? document.body).classList.add(n), () => {
|
|
53
|
-
(e ?? document.body).classList.remove(n);
|
|
54
|
-
};
|
|
55
|
-
}, [t]);
|
|
56
|
-
}
|
|
57
|
-
function u(t, n, r) {
|
|
58
|
-
e(() => {
|
|
59
|
-
if (!t || !n) return;
|
|
60
|
-
let e = (e) => {
|
|
61
|
-
e.key === "Escape" && (e.preventDefault(), r());
|
|
62
|
-
};
|
|
63
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
64
|
-
}, [
|
|
65
|
-
t,
|
|
66
|
-
n,
|
|
67
|
-
r
|
|
68
|
-
]);
|
|
69
|
-
}
|
|
70
|
-
function d(t, n, r = !0, i) {
|
|
71
|
-
e(() => {
|
|
72
|
-
if (!t) return;
|
|
73
|
-
let e = document.activeElement, a = i?.current ?? null;
|
|
74
|
-
if (r) {
|
|
75
|
-
let e = n.current;
|
|
76
|
-
e && s(e).focus();
|
|
77
|
-
}
|
|
78
|
-
return () => {
|
|
79
|
-
if (a && typeof a.focus == "function") {
|
|
80
|
-
a.focus();
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
e && typeof e.focus == "function" && e.focus();
|
|
84
|
-
};
|
|
85
|
-
}, [
|
|
86
|
-
t,
|
|
87
|
-
n,
|
|
88
|
-
r,
|
|
89
|
-
i
|
|
90
|
-
]);
|
|
91
|
-
}
|
|
92
|
-
function f(t, n) {
|
|
93
|
-
e(() => {
|
|
94
|
-
if (!t || typeof window > "u") return;
|
|
95
|
-
let e = window.visualViewport;
|
|
96
|
-
if (!e) return;
|
|
97
|
-
let r = () => {
|
|
98
|
-
let t = n.current;
|
|
99
|
-
t && (t.style.setProperty("--incode-visual-viewport-height", `${e.height}px`), t.style.setProperty("--incode-visual-viewport-offset-top", `${e.offsetTop}px`));
|
|
100
|
-
};
|
|
101
|
-
return r(), e.addEventListener("resize", r), e.addEventListener("scroll", r), () => {
|
|
102
|
-
e.removeEventListener("resize", r), e.removeEventListener("scroll", r);
|
|
103
|
-
};
|
|
104
|
-
}, [t, n]);
|
|
105
|
-
}
|
|
106
|
-
function p(t, n) {
|
|
107
|
-
e(() => {
|
|
108
|
-
if (!t) return;
|
|
109
|
-
let e = (e) => {
|
|
110
|
-
if (e.key !== "Tab") return;
|
|
111
|
-
let t = n.current;
|
|
112
|
-
if (!t) return;
|
|
113
|
-
let r = a(t);
|
|
114
|
-
if (r.length === 0 && document.activeElement === t) {
|
|
115
|
-
e.preventDefault();
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
if (r.length === 0) return;
|
|
119
|
-
let i = r[0], o = r[r.length - 1];
|
|
120
|
-
e.shiftKey ? document.activeElement === i && (e.preventDefault(), o.focus()) : document.activeElement === o && (e.preventDefault(), i.focus());
|
|
121
|
-
};
|
|
122
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
123
|
-
}, [t, n]);
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
export { c as a, d as i, l as n, p as o, u as r, f as s, r as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { v as e } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
//#region src/shared/permissions/camera/numberedStep.tsx
|
|
3
|
-
var t = ({ number: t }) => /* @__PURE__ */ e("div", {
|
|
4
|
-
class: "IncodeNumberedStep",
|
|
5
|
-
children: /* @__PURE__ */ e("span", {
|
|
6
|
-
class: "IncodeNumberedStepText",
|
|
7
|
-
children: t
|
|
8
|
-
})
|
|
9
|
-
});
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as o } from "./hooks-MxHtZWTS.js";
|
|
4
|
-
import { t as s } from "./inputComposed-DAEey9xm.js";
|
|
5
|
-
import { i as c } from "./radioGroupComposed-DRRxVk9Z.js";
|
|
6
|
-
import { t as l } from "./bottomSheet-QrpyatOD.js";
|
|
7
|
-
//#region src/shared/addressAutocomplete/addressAutocomplete.tsx
|
|
8
|
-
var u = ({ label: u, value: d, error: f, errorParams: p, suggestions: m, readonly: h, required: g, labelHint: _, onChange: v, onSearch: y, onSelect: b, onBlur: x }) => {
|
|
9
|
-
let { t: S } = e(), [C, w] = i(!1), [T, E] = i(!1), [D, O] = i(""), [k, A] = i(-1), [j, M] = i(-1), N = r(null), P = r(null), F = r(null), I = "ekyc-address-listbox", L = "ekyc-address-mobile-listbox", R = "ekyc-address-modal-title", z = o(), B = S(u);
|
|
10
|
-
t(() => {
|
|
11
|
-
function e(e) {
|
|
12
|
-
N.current && !N.current.contains(e.target) && w(!1);
|
|
13
|
-
}
|
|
14
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
15
|
-
}, []), t(() => {
|
|
16
|
-
A(-1), M(-1);
|
|
17
|
-
}, [m]), t(() => {
|
|
18
|
-
let e = z ? F : P, t = z ? j : k;
|
|
19
|
-
t < 0 || e.current?.children[t]?.scrollIntoView({ block: "nearest" });
|
|
20
|
-
}, [
|
|
21
|
-
k,
|
|
22
|
-
j,
|
|
23
|
-
z
|
|
24
|
-
]);
|
|
25
|
-
let V = n((e) => {
|
|
26
|
-
b(e), w(!1), E(!1), A(-1), M(-1);
|
|
27
|
-
}, [b]), H = n(() => {
|
|
28
|
-
E(!1), M(-1);
|
|
29
|
-
}, []), U = (e) => {
|
|
30
|
-
v(e), e.length >= 3 ? z ? (E(!0), O(e), y(e)) : (y(e), w(!0)) : w(!1);
|
|
31
|
-
}, W = (e, t, n) => (r) => {
|
|
32
|
-
m.length !== 0 && (r.key === "ArrowDown" ? (r.preventDefault(), t((e) => e < m.length - 1 ? e + 1 : 0)) : r.key === "ArrowUp" ? (r.preventDefault(), t((e) => e > 0 ? e - 1 : m.length - 1)) : r.key === "Enter" && e() >= 0 ? (r.preventDefault(), V(m[e()])) : r.key === "Escape" && n && n());
|
|
33
|
-
}, G = W(() => k, A, () => {
|
|
34
|
-
w(!1), A(-1);
|
|
35
|
-
}), K = W(() => j, M), q = !z && C && m.length > 0, J = q && k >= 0 ? `${I}-option-${k}` : void 0;
|
|
36
|
-
return /* @__PURE__ */ a("div", {
|
|
37
|
-
className: "IncodeAddressAutocomplete",
|
|
38
|
-
ref: N,
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ a(s, {
|
|
41
|
-
id: "ekyc-street",
|
|
42
|
-
label: B,
|
|
43
|
-
labelHint: _,
|
|
44
|
-
name: "street",
|
|
45
|
-
value: d,
|
|
46
|
-
readOnly: h,
|
|
47
|
-
required: g,
|
|
48
|
-
error: c(S, f, p),
|
|
49
|
-
onInput: (e) => U(e.target.value),
|
|
50
|
-
onKeyDown: G,
|
|
51
|
-
onBlur: x,
|
|
52
|
-
role: "combobox",
|
|
53
|
-
"aria-expanded": q,
|
|
54
|
-
"aria-controls": I,
|
|
55
|
-
"aria-activedescendant": J,
|
|
56
|
-
"aria-autocomplete": "list",
|
|
57
|
-
"data-testid": "ekyc-address-input"
|
|
58
|
-
}),
|
|
59
|
-
q && /* @__PURE__ */ a("ul", {
|
|
60
|
-
ref: P,
|
|
61
|
-
id: I,
|
|
62
|
-
role: "listbox",
|
|
63
|
-
className: "IncodeAddressAutocompleteSuggestions",
|
|
64
|
-
children: m.map((e, t) => /* @__PURE__ */ a("li", {
|
|
65
|
-
id: `${I}-option-${t}`,
|
|
66
|
-
role: "option",
|
|
67
|
-
"aria-selected": t === k,
|
|
68
|
-
className: `IncodeAddressAutocompleteSuggestion ${t === k ? "IncodeAddressAutocompleteSuggestionActive" : ""}`,
|
|
69
|
-
onClick: () => V(e),
|
|
70
|
-
children: e.label
|
|
71
|
-
}, e.id))
|
|
72
|
-
}),
|
|
73
|
-
z && /* @__PURE__ */ a(l, {
|
|
74
|
-
isOpen: T,
|
|
75
|
-
onClose: H,
|
|
76
|
-
labelledById: R,
|
|
77
|
-
children: [/* @__PURE__ */ a("div", {
|
|
78
|
-
className: "IncodeAddressAutocompleteModalHeader",
|
|
79
|
-
children: [/* @__PURE__ */ a("h3", {
|
|
80
|
-
id: R,
|
|
81
|
-
children: S("verification.addressSearch")
|
|
82
|
-
}), /* @__PURE__ */ a("button", {
|
|
83
|
-
className: "IncodeAddressAutocompleteModalClose",
|
|
84
|
-
onClick: H,
|
|
85
|
-
type: "button",
|
|
86
|
-
"aria-label": S("common.close"),
|
|
87
|
-
children: "×"
|
|
88
|
-
})]
|
|
89
|
-
}), /* @__PURE__ */ a("div", {
|
|
90
|
-
className: "IncodeAddressAutocompleteModalBody",
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ a("input", {
|
|
93
|
-
className: "IncodeAddressAutocompleteModalInput",
|
|
94
|
-
type: "text",
|
|
95
|
-
value: D,
|
|
96
|
-
placeholder: S("verification.addressPlaceholder"),
|
|
97
|
-
"aria-label": S("verification.addressSearch"),
|
|
98
|
-
role: "combobox",
|
|
99
|
-
"aria-expanded": m.length > 0,
|
|
100
|
-
"aria-controls": L,
|
|
101
|
-
"aria-activedescendant": j >= 0 ? `${L}-option-${j}` : void 0,
|
|
102
|
-
"aria-autocomplete": "list",
|
|
103
|
-
onInput: (e) => {
|
|
104
|
-
let t = e.target.value;
|
|
105
|
-
O(t), t.length >= 3 && y(t);
|
|
106
|
-
},
|
|
107
|
-
onKeyDown: K,
|
|
108
|
-
autoFocus: !0
|
|
109
|
-
}),
|
|
110
|
-
m.length > 0 && /* @__PURE__ */ a("ul", {
|
|
111
|
-
ref: F,
|
|
112
|
-
id: L,
|
|
113
|
-
role: "listbox",
|
|
114
|
-
className: "IncodeAddressAutocompleteModalSuggestions",
|
|
115
|
-
children: m.map((e, t) => /* @__PURE__ */ a("li", {
|
|
116
|
-
id: `${L}-option-${t}`,
|
|
117
|
-
role: "option",
|
|
118
|
-
"aria-selected": t === j,
|
|
119
|
-
className: `IncodeAddressAutocompleteModalSuggestion ${t === j ? "IncodeAddressAutocompleteModalSuggestionActive" : ""}`,
|
|
120
|
-
onClick: () => V(e),
|
|
121
|
-
children: e.label
|
|
122
|
-
}, e.id))
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ a("button", {
|
|
125
|
-
className: "IncodeAddressAutocompleteEnterManually",
|
|
126
|
-
onClick: H,
|
|
127
|
-
type: "button",
|
|
128
|
-
children: S("verification.enterManually")
|
|
129
|
-
})
|
|
130
|
-
]
|
|
131
|
-
})]
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
});
|
|
135
|
-
}, d = /^(?:[\u{1F1E6}-\u{1F1FF}]{2}|\p{Extended_Pictographic})\s*/u;
|
|
136
|
-
function f(e) {
|
|
137
|
-
return e.replace(d, "").trimStart();
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
export { u as n, f as t };
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { _ as t, h as n, l as r, v as i } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as a } from "./loadingIcon-BN5YRQUb.js";
|
|
4
|
-
import { t as o } from "./button-DcCUEn2n.js";
|
|
5
|
-
import { t as s } from "./inputComposed-DAEey9xm.js";
|
|
6
|
-
import "./inputComposed-eS4B0Mkh.js";
|
|
7
|
-
//#region src/shared/otpInput/otpInput.tsx
|
|
8
|
-
var c = (e) => `${Math.floor(e / 60)}:${(e % 60).toString().padStart(2, "0")}`, l = (e, t) => e.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, t), u = ({ value: u, otpLength: d, resendTimer: f, canResend: p, error: m, validationError: h, isValid: g = !0, onSubmit: _, onChange: v, onValidate: y, onResend: b, onBack: x, backLinkText: S = "otp.changePhoneNumber", disabled: C = !1, isLoading: w = !1 }) => {
|
|
9
|
-
let { t: T } = e(), E = r(null), D = r(u.length), O = r(null), k = r(null), A = r(p), j = r(!1), M = r(), N = n((e) => {
|
|
10
|
-
let t = k.current;
|
|
11
|
-
t && (clearTimeout(M.current), t.textContent = "", M.current = setTimeout(() => {
|
|
12
|
-
t.textContent = e;
|
|
13
|
-
}, 50));
|
|
14
|
-
}, []);
|
|
15
|
-
t(() => {
|
|
16
|
-
let e = !A.current;
|
|
17
|
-
return A.current = p, e && p && N(T("otp.resendCodeAvailable")), () => clearTimeout(M.current);
|
|
18
|
-
}, [
|
|
19
|
-
p,
|
|
20
|
-
N,
|
|
21
|
-
T
|
|
22
|
-
]), t(() => {
|
|
23
|
-
m && (O.current = null, setTimeout(() => {
|
|
24
|
-
E.current?.focus();
|
|
25
|
-
}, 0));
|
|
26
|
-
}, [m]);
|
|
27
|
-
let P = n((e) => {
|
|
28
|
-
let t = l(e, d);
|
|
29
|
-
t.length !== d || w || O.current !== t && (O.current = t, _(t));
|
|
30
|
-
}, [
|
|
31
|
-
w,
|
|
32
|
-
_,
|
|
33
|
-
d
|
|
34
|
-
]);
|
|
35
|
-
t(() => {
|
|
36
|
-
let e = u.length === d && D.current < d;
|
|
37
|
-
D.current = u.length, e && P(u);
|
|
38
|
-
}, [
|
|
39
|
-
u,
|
|
40
|
-
d,
|
|
41
|
-
P
|
|
42
|
-
]);
|
|
43
|
-
let F = (e) => {
|
|
44
|
-
let t = e.target;
|
|
45
|
-
v(l(t.value, d));
|
|
46
|
-
}, I = (e) => {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
let t = l(e.clipboardData?.getData("text") || "", d);
|
|
49
|
-
t && v(t);
|
|
50
|
-
}, L = () => {
|
|
51
|
-
if (u.length < d) {
|
|
52
|
-
y?.(), E.current?.focus();
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
P(u);
|
|
56
|
-
}, R = m ?? h;
|
|
57
|
-
t(() => {
|
|
58
|
-
if (p || f <= 0) {
|
|
59
|
-
j.current = !1;
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (!j.current) {
|
|
63
|
-
j.current = !0, N(T("otp.timerStarted", { time: String(f) }));
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
f === 10 ? N(T("otp.timerTenSeconds")) : f === 5 && N(T("otp.timerFiveSeconds"));
|
|
67
|
-
}, [
|
|
68
|
-
f,
|
|
69
|
-
p,
|
|
70
|
-
N,
|
|
71
|
-
T
|
|
72
|
-
]);
|
|
73
|
-
let z = () => {
|
|
74
|
-
if (!p && f > 0) return /* @__PURE__ */ i("div", {
|
|
75
|
-
class: "IncodeOtpInputActions",
|
|
76
|
-
children: /* @__PURE__ */ i("p", {
|
|
77
|
-
class: "IncodeOtpInputTimerText",
|
|
78
|
-
"data-testid": "otp-timer",
|
|
79
|
-
children: T("otp.resendCountdown", { time: c(f) })
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
let e = () => {
|
|
83
|
-
O.current = null, v(""), b();
|
|
84
|
-
}, t = () => {
|
|
85
|
-
O.current = null, v(""), x();
|
|
86
|
-
};
|
|
87
|
-
return /* @__PURE__ */ i("div", {
|
|
88
|
-
class: "IncodeOtpInputActions",
|
|
89
|
-
children: /* @__PURE__ */ i("p", {
|
|
90
|
-
class: `IncodeOtpInputResendText ${C ? "IncodeOtpInputResendTextDisabled" : ""}`,
|
|
91
|
-
"data-testid": "otp-resend-section",
|
|
92
|
-
children: [
|
|
93
|
-
T("otp.didYouNotGetIt"),
|
|
94
|
-
/* @__PURE__ */ i("button", {
|
|
95
|
-
type: "button",
|
|
96
|
-
class: "IncodeOtpInputLink",
|
|
97
|
-
onClick: e,
|
|
98
|
-
disabled: C || !p,
|
|
99
|
-
"data-testid": "otp-resend",
|
|
100
|
-
children: T("otp.resendCode")
|
|
101
|
-
}),
|
|
102
|
-
` ${T("otp.or")} `,
|
|
103
|
-
/* @__PURE__ */ i("button", {
|
|
104
|
-
type: "button",
|
|
105
|
-
class: "IncodeOtpInputLink",
|
|
106
|
-
onClick: t,
|
|
107
|
-
disabled: C,
|
|
108
|
-
"data-testid": "otp-back",
|
|
109
|
-
children: T(S)
|
|
110
|
-
})
|
|
111
|
-
]
|
|
112
|
-
})
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
return /* @__PURE__ */ i("div", {
|
|
116
|
-
class: "IncodeOtpInput IncodeOtpInputComposed",
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ i("div", {
|
|
119
|
-
ref: k,
|
|
120
|
-
class: "IncodeSrOnly",
|
|
121
|
-
"aria-live": "polite",
|
|
122
|
-
"aria-atomic": "true"
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ i(s, {
|
|
125
|
-
id: "otp-code",
|
|
126
|
-
type: "text",
|
|
127
|
-
inputMode: "text",
|
|
128
|
-
ref: E,
|
|
129
|
-
maxLength: d,
|
|
130
|
-
value: u,
|
|
131
|
-
error: R,
|
|
132
|
-
onInput: F,
|
|
133
|
-
onBlur: y,
|
|
134
|
-
onPaste: I,
|
|
135
|
-
disabled: C || w,
|
|
136
|
-
required: !0,
|
|
137
|
-
autocomplete: "one-time-code",
|
|
138
|
-
"data-testid": "otp-input-0",
|
|
139
|
-
"aria-label": T("otp.verificationCode"),
|
|
140
|
-
class: "IncodeOtpSingleInput",
|
|
141
|
-
showErrorIcon: !0
|
|
142
|
-
}),
|
|
143
|
-
/* @__PURE__ */ i(a, {}),
|
|
144
|
-
/* @__PURE__ */ i(o, {
|
|
145
|
-
onClick: L,
|
|
146
|
-
disabled: C || w || !g,
|
|
147
|
-
isLoading: w,
|
|
148
|
-
"data-testid": "otp-submit",
|
|
149
|
-
children: T("common.continue")
|
|
150
|
-
}),
|
|
151
|
-
/* @__PURE__ */ i(a, { size: 12 }),
|
|
152
|
-
z()
|
|
153
|
-
]
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
//#endregion
|
|
157
|
-
export { u as t };
|