@incodetech/web 0.0.0-dev-20260507-a2cd155 → 0.0.0-dev-20260508-2ed9245
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 +2 -2
- package/dist/antifraud/antifraud.es.js +2 -2
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/base.css +218 -0
- package/dist/consent/consent.es.js +7 -7
- package/dist/{countrySelector-CxwhZU7X.js → countrySelector-CoffOdbC.js} +2 -2
- package/dist/{cpfOcr-BzoRvWuh.js → cpfOcr-BYlfZY40.js} +1 -1
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +10 -10
- package/dist/{customFields-64Wcgiwr.js → customFields-BraeAxZp.js} +6 -6
- package/dist/{customWatchlist-BT1PQfoG.js → customWatchlist-CFFQpv_v.js} +4 -4
- package/dist/{documentCapture-B7gkjbde.js → documentCapture-DPlR8XwV.js} +12 -12
- package/dist/dropdownComposed-BvVIyMBo.js +1 -0
- package/dist/{dynamicForms-DFXXP6uP.js → dynamicForms-iowHKj2D.js} +9 -9
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-C3lXG2tC.js → ekybModule-BFOWbi7v.js} +9 -9
- package/dist/ekybModule-VFeaId2k.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-L1RBjKZI.js → ekycModule-BPi7gpEg.js} +11 -11
- package/dist/ekycModule-DvRBzbaa.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BeiUCIMV.js → electronic-signature-Cio3QpBY.js} +6 -6
- package/dist/email/email.es.js +5 -5
- package/dist/{emailInput-Q5WNjX9l.js → emailInput-1AO-Fmsw.js} +2 -2
- package/dist/{extensibility-C1xYMmD-.js → extensibility-CL6pOTDM.js} +150 -113
- package/dist/extensibility.es.js +22 -22
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +12 -0
- package/dist/{faceMatch-B6hGcl2-.js → faceMatch-BtHZNJ0A.js} +5 -5
- package/dist/faceMatch-Drzy4xup.js +2 -0
- package/dist/flow/flow.es.js +6 -6
- package/dist/flow/styles.css +12 -0
- package/dist/{formField-BkU7EVsS.js → formField-DHnOQD0l.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +5 -5
- package/dist/{homeScreen-DprCAAmv.js → homeScreen-CmsrGndM.js} +3 -3
- package/dist/{i18n-BnVa5Y-_.js → i18n-D6pCC7RL.js} +1 -1
- package/dist/id/id.es.js +10 -10
- package/dist/{idOcr-iAAZKKU2.js → idOcr-DQtsITAI.js} +30 -31
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-9ZUPvQgC.js → incodeComponent-BRtpx7iO.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-BVUiGOKK.js → mandatoryConsent-CCXO_vxQ.js} +6 -6
- package/dist/{optionAccessibleLabel-BNqnKbwB.js → optionAccessibleLabel-D-791Qve.js} +3 -3
- package/dist/{otpInput-CLo5__yb.js → otpInput-S08V9UR2.js} +1 -2
- package/dist/{pdf-BK9eYHAw.js → pdf-DL0w_-nc.js} +1 -1
- package/dist/phone/phone.es.js +6 -6
- package/dist/{phoneInputComposed-bvWhGLFZ.js → phoneInputComposed-Dl4rnkJh.js} +1 -1
- package/dist/{processing-c8ep-KSh.js → processing-Byt0PHxP.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-Cg-BpzrT.js → redirectToMobile-CDqR2ADA.js} +8 -8
- package/dist/{richText-gJTUJEMX.js → richText-oCMMhPa2.js} +1 -1
- package/dist/segmentedDateInput-DIZb0ruK.js +348 -0
- package/dist/segmentedDateInput-DI_bDhHG.js +1 -0
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/selfie/styles.css +12 -0
- package/dist/signature/signature.es.js +6 -6
- package/dist/themes/dark.css +6 -0
- package/dist/themes/light.css +6 -0
- package/dist/{transitionSpinner-av72n-l1.js → transitionSpinner-DHelnP9m.js} +1 -1
- package/dist/{tutorial-BvRU4P4P.js → tutorial-CpB1q1y3.js} +5 -5
- package/dist/types/extensibility.d.ts +9 -0
- package/dist/{useModuleLoader-CPLC4c0j.js → useModuleLoader-DR_UitYZ.js} +15 -15
- package/dist/{verificationResult-9weGpvn5.js → verificationResult-Boi07OiG.js} +1 -1
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/{watchlistForBusiness-DjgJnsPT.js → watchlistForBusiness-k2IqUCN_.js} +5 -5
- package/dist/workflow/styles.css +12 -0
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/dateInputComposed-B4IHGFn2.js +0 -1
- package/dist/dateInputComposed-YUmNQwOo.js +0 -44
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/ekybModule-B92LkG1f.js +0 -2
- package/dist/ekycModule-Dl44pQfM.js +0 -2
- package/dist/faceMatch-Dh01E8Zv.js +0 -2
- package/dist/inputComposed-XYrarFxS.js +0 -1
- /package/dist/{aligndevicelottie-CpAPbotJ.js → aligndevicelottie-Dfs3Ku2-.js} +0 -0
- /package/dist/{autoFocusTitle-C01okScG.js → autoFocusTitle-CZoNkxcF.js} +0 -0
- /package/dist/{back-horizontal-hint-C_wAUpW0.js → back-horizontal-hint-Cch8dR2s.js} +0 -0
- /package/dist/{back-tutorial-H9SCe0gx.js → back-tutorial-DCeMC-YK.js} +0 -0
- /package/dist/{back-vertical-hint-C9xK0aN8.js → back-vertical-hint-Dzn5uXKH.js} +0 -0
- /package/dist/{backdevicelottie-Dx1dP2K0.js → backdevicelottie-B4ve1L_u.js} +0 -0
- /package/dist/{blurdevicelottie-DCVb3_MF.js → blurdevicelottie-DIQrsw9H.js} +0 -0
- /package/dist/{bottomSheet-CLMmiBQS.js → bottomSheet-DE_8TFEC.js} +0 -0
- /package/dist/{browser-ponyfill-Dxc09_1M.js → browser-ponyfill-Dqca0y49.js} +0 -0
- /package/dist/{checkbox-Cl57ltq_.js → checkbox-CfusZiOJ.js} +0 -0
- /package/dist/{defineProperty-CqT6YdHJ.js → defineProperty-CplHoz4_.js} +0 -0
- /package/dist/{dropdownComposed-DFRBG22E.js → dropdownComposed-Cmj-HO0i.js} +0 -0
- /package/dist/{flip-animation-CviBXTS-.js → flip-animation-B1zV6oY9.js} +0 -0
- /package/dist/{front-horizontal-hint-SvDdygvL.js → front-horizontal-hint-CNu99K_l.js} +0 -0
- /package/dist/{front-vertical-hint-vIniWZ_9.js → front-vertical-hint-CpQjOGpU.js} +0 -0
- /package/dist/{frontdevicelottie-6sxr3oQH.js → frontdevicelottie-D3Gw7Qab.js} +0 -0
- /package/dist/{glaredevicelottie--PlYPjZt.js → glaredevicelottie-BPRxXRbG.js} +0 -0
- /package/dist/{id-laser-h-D0KN9qFd.js → id-laser-h-BUV5ROmy.js} +0 -0
- /package/dist/{id-laser-v-BLY6XMRK.js → id-laser-v-DzsdfzVM.js} +0 -0
- /package/dist/{id-tutorial-Dnuu_ZUb.js → id-tutorial-B2d6DkZv.js} +0 -0
- /package/dist/{incodeModule-D_r2n18O.js → incodeModule-grHfB1zI.js} +0 -0
- /package/dist/{numberedStep-CR4w_BpM.js → numberedStep-CT-alrK5.js} +0 -0
- /package/dist/{passport-horizontal-hint-Bxb4tVrA.js → passport-horizontal-hint-WqdYMc9Y.js} +0 -0
- /package/dist/{passport-tutorial-CFp2zeDJ.js → passport-tutorial-DYBRCYAN.js} +0 -0
- /package/dist/{passport-vertical-hint-D6hgaXKT.js → passport-vertical-hint-rNP6GykM.js} +0 -0
- /package/dist/{radioGroupComposed-B74fc1L3.js → radioGroupComposed-CEw7kuBy.js} +0 -0
- /package/dist/{requiredLabelHint-J9rEJWcF.js → requiredLabelHint-DF0yOi3G.js} +0 -0
- /package/dist/{selfieTutorial-1QMt37Us.js → selfieTutorial-CMc0HW_O.js} +0 -0
- /package/dist/{snackbar-BVeXpux9.js → snackbar-B3hIVhgk.js} +0 -0
- /package/dist/{statusPage-BvmC0O1t.js → statusPage-DXmurxxX.js} +0 -0
- /package/dist/{tabs-MPYTnMQG.js → tabs-D-xvkepW.js} +0 -0
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { S as t, _ as n, a as r, c as i, d as a, h as o, l as s, o as c, p as l, v as u } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import "./uiConfig-CwpQ-IM6.js";
|
|
4
4
|
import { n as d, t as f } from "./hooks-BVnGysT7.js";
|
|
5
|
-
import "./incodeComponent-
|
|
5
|
+
import "./incodeComponent-BRtpx7iO.js";
|
|
6
6
|
import { n as p, r as m } from "./loadingIcon-BN5YRQUb.js";
|
|
7
7
|
import { t as h } from "./page-DCsXSlHl.js";
|
|
8
8
|
import { t as g } from "./typography-CxjaknHN.js";
|
|
9
9
|
import { t as _ } from "./spinner-CKnjVHxw.js";
|
|
10
10
|
import "./spinner-B4dcie2T.js";
|
|
11
|
-
import "./processing-
|
|
11
|
+
import "./processing-Byt0PHxP.js";
|
|
12
12
|
import { t as v } from "./button-DcCUEn2n.js";
|
|
13
|
-
import { f as y, g as b, i as x,
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { a as
|
|
17
|
-
import "./verificationResult-
|
|
18
|
-
import "./inputComposed-APSw8C7o.js";
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./bottomSheet-CLMmiBQS.js";
|
|
13
|
+
import { f as y, g as b, i as x, m as S, r as C, s as w, t as T } from "./icons-Cc7zwchP.js";
|
|
14
|
+
import { t as E } from "./successIcon-DbILeIz_.js";
|
|
15
|
+
import { t as D } from "./modal-XTO80Vsu.js";
|
|
16
|
+
import { a as O, i as ee } from "./tutorial-CpB1q1y3.js";
|
|
17
|
+
import "./verificationResult-Boi07OiG.js";
|
|
18
|
+
import { t as k } from "./inputComposed-APSw8C7o.js";
|
|
19
|
+
import "./otpInput-S08V9UR2.js";
|
|
20
|
+
import "./checkbox-CfusZiOJ.js";
|
|
21
|
+
import "./formField-DHnOQD0l.js";
|
|
22
|
+
import "./phoneInputComposed-Dl4rnkJh.js";
|
|
23
|
+
import "./dropdownComposed-BvVIyMBo.js";
|
|
24
|
+
import "./segmentedDateInput-DI_bDhHG.js";
|
|
25
|
+
import "./radioGroupComposed-CEw7kuBy.js";
|
|
26
|
+
import "./bottomSheet-DE_8TFEC.js";
|
|
28
27
|
import "@incodetech/core/id";
|
|
29
28
|
//#region src/shared/overlay/overlay.tsx
|
|
30
|
-
var
|
|
29
|
+
var te = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
|
|
31
30
|
class: `IncodeOverlay ${n ?? ""}`,
|
|
32
31
|
role: "dialog",
|
|
33
32
|
"aria-modal": "true",
|
|
@@ -56,7 +55,45 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
56
55
|
class: "IncodeProgressBarLabel",
|
|
57
56
|
children: n
|
|
58
57
|
})] }) : null]
|
|
59
|
-
}), j = r((e, t) => {
|
|
58
|
+
}), j = r(({ id: e, label: t, disabled: n, class: r, ...i }, a) => {
|
|
59
|
+
let o = s(null), c = (e) => {
|
|
60
|
+
o.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
61
|
+
}, l = (e) => {
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
let t = o.current;
|
|
64
|
+
if (!(!t || n)) if (t.focus(), "showPicker" in HTMLInputElement.prototype) try {
|
|
65
|
+
t.showPicker();
|
|
66
|
+
} catch {
|
|
67
|
+
t.click();
|
|
68
|
+
}
|
|
69
|
+
else t.click();
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ u(k, {
|
|
72
|
+
ref: c,
|
|
73
|
+
id: e,
|
|
74
|
+
type: "date",
|
|
75
|
+
label: t,
|
|
76
|
+
disabled: n,
|
|
77
|
+
class: p("IncodeDateInputComposed", r),
|
|
78
|
+
rightIcon: /* @__PURE__ */ u("button", {
|
|
79
|
+
type: "button",
|
|
80
|
+
class: "IncodeDateInputComposedIconButton",
|
|
81
|
+
onClick: l,
|
|
82
|
+
onTouchEnd: l,
|
|
83
|
+
disabled: n,
|
|
84
|
+
"aria-label": "Open date picker",
|
|
85
|
+
children: /* @__PURE__ */ u("span", {
|
|
86
|
+
class: "IncodeDateInputComposedIcon",
|
|
87
|
+
children: /* @__PURE__ */ u(S, {})
|
|
88
|
+
})
|
|
89
|
+
}),
|
|
90
|
+
...i
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
j.displayName = "DateInputComposed";
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/shared/textArea/textArea.tsx
|
|
96
|
+
var M = r((e, t) => {
|
|
60
97
|
let { class: n, rows: r = 4, ...i } = e;
|
|
61
98
|
return /* @__PURE__ */ u("textarea", {
|
|
62
99
|
...i,
|
|
@@ -64,7 +101,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
64
101
|
rows: r,
|
|
65
102
|
class: p("IncodeTextArea", n)
|
|
66
103
|
});
|
|
67
|
-
}),
|
|
104
|
+
}), N = r(({ id: e, label: t, labelHint: n, "aria-label": r, error: i, showErrorIcon: a, helper: o, showHelperIcon: s, required: c, rows: l = 4, class: d, ...f }, m) => {
|
|
68
105
|
let h = `${e}-helper`, g = `${e}-error`, _ = [o ? h : null, i ? g : null].filter(Boolean).join(" ");
|
|
69
106
|
return /* @__PURE__ */ u("div", {
|
|
70
107
|
class: p("IncodeTextAreaComposed", d),
|
|
@@ -81,7 +118,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
81
118
|
}),
|
|
82
119
|
/* @__PURE__ */ u("div", {
|
|
83
120
|
class: "IncodeTextAreaComposedWrapper",
|
|
84
|
-
children: /* @__PURE__ */ u(
|
|
121
|
+
children: /* @__PURE__ */ u(M, {
|
|
85
122
|
id: e,
|
|
86
123
|
rows: l,
|
|
87
124
|
...f,
|
|
@@ -110,7 +147,7 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
110
147
|
"data-testid": `${e}-helper-wrapper`,
|
|
111
148
|
children: [s && /* @__PURE__ */ u("div", {
|
|
112
149
|
class: "IncodeTextAreaComposedIconWrapper",
|
|
113
|
-
children: /* @__PURE__ */ u(
|
|
150
|
+
children: /* @__PURE__ */ u(E, { size: 17 })
|
|
114
151
|
}), /* @__PURE__ */ u("p", {
|
|
115
152
|
id: h,
|
|
116
153
|
class: "IncodeTextAreaComposedHelper",
|
|
@@ -120,16 +157,16 @@ var k = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("
|
|
|
120
157
|
]
|
|
121
158
|
});
|
|
122
159
|
});
|
|
123
|
-
|
|
160
|
+
N.displayName = "TextAreaComposed";
|
|
124
161
|
//#endregion
|
|
125
162
|
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
126
|
-
function
|
|
163
|
+
function P({ children: e }) {
|
|
127
164
|
return /* @__PURE__ */ u("div", {
|
|
128
165
|
class: "IncodeVerificationOptionCardList",
|
|
129
166
|
children: e
|
|
130
167
|
});
|
|
131
168
|
}
|
|
132
|
-
function
|
|
169
|
+
function F({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
133
170
|
return /* @__PURE__ */ u("button", {
|
|
134
171
|
type: "button",
|
|
135
172
|
class: "IncodeVerificationOptionCard",
|
|
@@ -149,11 +186,11 @@ function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
149
186
|
children: [/* @__PURE__ */ u("span", {
|
|
150
187
|
class: "IncodeVerificationOptionCardTitle",
|
|
151
188
|
children: t
|
|
152
|
-
}), i && /* @__PURE__ */ u(
|
|
189
|
+
}), i && /* @__PURE__ */ u(ne, { label: i })]
|
|
153
190
|
}), /* @__PURE__ */ u("span", {
|
|
154
191
|
class: "IncodeVerificationOptionCardArrow",
|
|
155
192
|
"data-testid": "chevron-right-icon",
|
|
156
|
-
children: /* @__PURE__ */ u(
|
|
193
|
+
children: /* @__PURE__ */ u(w, {
|
|
157
194
|
size: 24,
|
|
158
195
|
variant: "m"
|
|
159
196
|
})
|
|
@@ -161,10 +198,10 @@ function P({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
|
|
|
161
198
|
})]
|
|
162
199
|
});
|
|
163
200
|
}
|
|
164
|
-
function
|
|
201
|
+
function ne({ label: e }) {
|
|
165
202
|
return /* @__PURE__ */ u("div", {
|
|
166
203
|
class: "IncodeVerificationOptionCardTag",
|
|
167
|
-
children: [/* @__PURE__ */ u(
|
|
204
|
+
children: [/* @__PURE__ */ u(T, {}), /* @__PURE__ */ u("span", { children: e })]
|
|
168
205
|
});
|
|
169
206
|
}
|
|
170
207
|
//#endregion
|
|
@@ -227,7 +264,7 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
227
264
|
children: [
|
|
228
265
|
/* @__PURE__ */ u("div", {
|
|
229
266
|
class: "IncodeCaptureFooterEncryption",
|
|
230
|
-
children: [/* @__PURE__ */ u(
|
|
267
|
+
children: [/* @__PURE__ */ u(C, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
|
|
231
268
|
}),
|
|
232
269
|
r && n ? /* @__PURE__ */ u("div", {
|
|
233
270
|
class: "IncodeCaptureFooterCaptureSection",
|
|
@@ -258,14 +295,14 @@ var I = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameSta
|
|
|
258
295
|
};
|
|
259
296
|
//#endregion
|
|
260
297
|
//#region src/shared/manualCapture/manualCapture.tsx
|
|
261
|
-
function
|
|
298
|
+
function re(e) {
|
|
262
299
|
if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
|
|
263
300
|
let t = document.createElement("canvas");
|
|
264
301
|
t.width = e.videoWidth, t.height = e.videoHeight;
|
|
265
302
|
let n = t.getContext("2d");
|
|
266
303
|
return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
|
|
267
304
|
}
|
|
268
|
-
var
|
|
305
|
+
var ie = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
269
306
|
let i = s(null);
|
|
270
307
|
n(() => {
|
|
271
308
|
i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
|
|
@@ -273,7 +310,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
273
310
|
let a = o(() => {
|
|
274
311
|
let e = i.current;
|
|
275
312
|
if (!e || r) return;
|
|
276
|
-
let n =
|
|
313
|
+
let n = re(e);
|
|
277
314
|
n && t(n);
|
|
278
315
|
}, [t, r]);
|
|
279
316
|
return /* @__PURE__ */ u("div", {
|
|
@@ -301,7 +338,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
301
338
|
})
|
|
302
339
|
})]
|
|
303
340
|
});
|
|
304
|
-
},
|
|
341
|
+
}, ae = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
305
342
|
width: "24",
|
|
306
343
|
height: "24",
|
|
307
344
|
viewBox: "0 0 24 24",
|
|
@@ -331,7 +368,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
331
368
|
fill: "currentColor"
|
|
332
369
|
})
|
|
333
370
|
]
|
|
334
|
-
}),
|
|
371
|
+
}), oe = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
335
372
|
width: "24",
|
|
336
373
|
height: "24",
|
|
337
374
|
viewBox: "0 0 24 24",
|
|
@@ -357,7 +394,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
357
394
|
fill: "currentColor"
|
|
358
395
|
})
|
|
359
396
|
]
|
|
360
|
-
}),
|
|
397
|
+
}), se = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
361
398
|
width: "24",
|
|
362
399
|
height: "24",
|
|
363
400
|
viewBox: "0 0 24 24",
|
|
@@ -391,7 +428,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
391
428
|
fill: "currentColor"
|
|
392
429
|
})
|
|
393
430
|
]
|
|
394
|
-
}),
|
|
431
|
+
}), ce = ({ className: e }) => /* @__PURE__ */ u("svg", {
|
|
395
432
|
width: "64",
|
|
396
433
|
height: "64",
|
|
397
434
|
viewBox: "0 0 64 64",
|
|
@@ -408,13 +445,13 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
408
445
|
d: "M32 41C33.1045 41 34 41.8955 34 43C34 44.1045 33.1045 45 32 45C30.8954 45 30 44.1045 30 43C30 41.8954 30.8954 41 32 41ZM32 18.5C36.6906 18.5001 40.1669 22.0578 40.167 26.5605C40.167 28.8363 39.239 30.7175 37.7119 32.0381C36.5502 33.0426 35.086 33.6855 33.5 33.9863V38H30.5V31.2568L31.9072 31.1699C33.5141 31.0696 34.8469 30.5494 35.75 29.7686C36.6245 29.0121 37.167 27.9561 37.167 26.5605C37.1669 23.7203 35.0394 21.5001 32 21.5C28.9065 21.5001 26.7253 23.7825 26.1406 26.8418L23.1934 26.2793C23.9755 22.1855 27.1118 18.5001 32 18.5Z",
|
|
409
446
|
fill: "white"
|
|
410
447
|
})]
|
|
411
|
-
}),
|
|
448
|
+
}), V = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
|
|
412
449
|
let { t: a } = e(), s = o((e) => {
|
|
413
450
|
e?.focus();
|
|
414
451
|
}, []), c = () => {
|
|
415
452
|
r(), n();
|
|
416
453
|
};
|
|
417
|
-
return /* @__PURE__ */ u(
|
|
454
|
+
return /* @__PURE__ */ u(D.Root, {
|
|
418
455
|
open: t,
|
|
419
456
|
onOpenChange: (e) => {
|
|
420
457
|
e || n();
|
|
@@ -423,14 +460,14 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
423
460
|
hasBackdrop: !1,
|
|
424
461
|
portalContainer: i ?? void 0,
|
|
425
462
|
manageInitialFocus: !1,
|
|
426
|
-
children: /* @__PURE__ */ u(
|
|
463
|
+
children: /* @__PURE__ */ u(D.Content, {
|
|
427
464
|
class: "IncodeCommonIssuesContent",
|
|
428
465
|
children: [
|
|
429
|
-
/* @__PURE__ */ u(
|
|
466
|
+
/* @__PURE__ */ u(D.Icon, {
|
|
430
467
|
class: "IncodeCommonIssuesQuestionIcon",
|
|
431
|
-
children: /* @__PURE__ */ u(
|
|
468
|
+
children: /* @__PURE__ */ u(ce, {})
|
|
432
469
|
}),
|
|
433
|
-
/* @__PURE__ */ u(
|
|
470
|
+
/* @__PURE__ */ u(D.TitleSection, { children: /* @__PURE__ */ u(g, {
|
|
434
471
|
id: "incode-modal-title",
|
|
435
472
|
ref: s,
|
|
436
473
|
className: "IncodeCommonIssuesTitle",
|
|
@@ -445,7 +482,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
445
482
|
children: [/* @__PURE__ */ u("div", {
|
|
446
483
|
class: "IncodeCommonIssuesCardIcon",
|
|
447
484
|
"aria-hidden": "true",
|
|
448
|
-
children: /* @__PURE__ */ u(
|
|
485
|
+
children: /* @__PURE__ */ u(oe, {})
|
|
449
486
|
}), /* @__PURE__ */ u("div", {
|
|
450
487
|
class: "IncodeCommonIssuesCardText",
|
|
451
488
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -462,7 +499,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
462
499
|
children: [/* @__PURE__ */ u("div", {
|
|
463
500
|
class: "IncodeCommonIssuesCardIcon",
|
|
464
501
|
"aria-hidden": "true",
|
|
465
|
-
children: /* @__PURE__ */ u(
|
|
502
|
+
children: /* @__PURE__ */ u(ae, {})
|
|
466
503
|
}), /* @__PURE__ */ u("div", {
|
|
467
504
|
class: "IncodeCommonIssuesCardText",
|
|
468
505
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -479,7 +516,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
479
516
|
children: [/* @__PURE__ */ u("div", {
|
|
480
517
|
class: "IncodeCommonIssuesCardIcon",
|
|
481
518
|
"aria-hidden": "true",
|
|
482
|
-
children: /* @__PURE__ */ u(
|
|
519
|
+
children: /* @__PURE__ */ u(se, {})
|
|
483
520
|
}), /* @__PURE__ */ u("div", {
|
|
484
521
|
class: "IncodeCommonIssuesCardText",
|
|
485
522
|
children: [/* @__PURE__ */ u("h3", {
|
|
@@ -493,7 +530,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
493
530
|
})
|
|
494
531
|
]
|
|
495
532
|
}),
|
|
496
|
-
/* @__PURE__ */ u(
|
|
533
|
+
/* @__PURE__ */ u(D.Actions, {
|
|
497
534
|
class: "IncodeCommonIssuesButtons",
|
|
498
535
|
children: [/* @__PURE__ */ u(v, {
|
|
499
536
|
variant: "link",
|
|
@@ -509,7 +546,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
509
546
|
]
|
|
510
547
|
})
|
|
511
548
|
});
|
|
512
|
-
},
|
|
549
|
+
}, H = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
|
|
513
550
|
let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
|
|
514
551
|
return /* @__PURE__ */ u("div", {
|
|
515
552
|
class: p("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
|
|
@@ -517,7 +554,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
517
554
|
role: "presentation",
|
|
518
555
|
children: r
|
|
519
556
|
});
|
|
520
|
-
},
|
|
557
|
+
}, U = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s, blurImage: c }) => {
|
|
521
558
|
let { t: l } = e();
|
|
522
559
|
return /* @__PURE__ */ u(h, {
|
|
523
560
|
hideHeader: !0,
|
|
@@ -531,7 +568,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
531
568
|
class: "IncodeIdProcessingTopArea",
|
|
532
569
|
children: a
|
|
533
570
|
}),
|
|
534
|
-
/* @__PURE__ */ u(
|
|
571
|
+
/* @__PURE__ */ u(H, {
|
|
535
572
|
orientation: n,
|
|
536
573
|
mode: r === "id" ? "front" : r,
|
|
537
574
|
state: i,
|
|
@@ -550,24 +587,24 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
550
587
|
class: "IncodeIdProcessingBottomArea",
|
|
551
588
|
children: [/* @__PURE__ */ u("div", {
|
|
552
589
|
class: "IncodeCaptureEncryptionLabel",
|
|
553
|
-
children: [/* @__PURE__ */ u(
|
|
590
|
+
children: [/* @__PURE__ */ u(C, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l("v2.capture.label") })]
|
|
554
591
|
}), o]
|
|
555
592
|
})
|
|
556
593
|
]
|
|
557
594
|
})
|
|
558
595
|
})
|
|
559
596
|
});
|
|
560
|
-
},
|
|
597
|
+
}, W = ({ imageUrl: t, progress: r, orientation: i, mode: a, blurImage: o }) => {
|
|
561
598
|
let { t: c } = e(), d = s(null), f = i !== "vertical" || a === "passport", [p, m] = l(null);
|
|
562
599
|
return n(() => {
|
|
563
600
|
d.current?.focus();
|
|
564
601
|
}, []), n(() => {
|
|
565
|
-
f ? import("./id-laser-h-
|
|
602
|
+
f ? import("./id-laser-h-BUV5ROmy.js").then((e) => {
|
|
566
603
|
m(e.default);
|
|
567
|
-
}) : import("./id-laser-v-
|
|
604
|
+
}) : import("./id-laser-v-DzsdfzVM.js").then((e) => {
|
|
568
605
|
m(e.default);
|
|
569
606
|
});
|
|
570
|
-
}, [f]), /* @__PURE__ */ u(
|
|
607
|
+
}, [f]), /* @__PURE__ */ u(U, {
|
|
571
608
|
imageUrl: t,
|
|
572
609
|
orientation: i,
|
|
573
610
|
mode: a,
|
|
@@ -583,13 +620,13 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
583
620
|
children: c("idv2.capture.processing.analyzing")
|
|
584
621
|
})]
|
|
585
622
|
}),
|
|
586
|
-
overlayContent: p ? /* @__PURE__ */ u(
|
|
623
|
+
overlayContent: p ? /* @__PURE__ */ u(O, {
|
|
587
624
|
animationData: p,
|
|
588
625
|
loop: !0,
|
|
589
626
|
className: "IncodeAnalyzingLottie"
|
|
590
627
|
}) : null
|
|
591
628
|
});
|
|
592
|
-
},
|
|
629
|
+
}, G = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
593
630
|
class: e,
|
|
594
631
|
width: "32",
|
|
595
632
|
height: "32",
|
|
@@ -602,7 +639,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
602
639
|
d: "M16 0C24.8363 0.00012782 32 7.1636 32 16C31.9999 24.8363 24.8363 31.9999 16 32C7.16362 32 7.37067e-05 24.8364 0 16C0 7.16352 7.16357 0 16 0ZM22.3486 11.2314C21.8838 10.7668 21.1503 10.736 20.6494 11.1387L20.6406 11.1455L20.5537 11.2236L13.7139 18.0635L11.4521 15.8008C10.9543 15.3032 10.1473 15.3033 9.64941 15.8008C9.18435 16.2658 9.15345 17.0008 9.55664 17.502L9.56348 17.5098L9.6416 17.5977L12.8125 20.7686C13.2775 21.2335 14.0117 21.2644 14.5127 20.8613L14.5205 20.8545L14.6084 20.7764L22.3486 13.0352C22.8467 12.5371 22.8467 11.7295 22.3486 11.2314Z",
|
|
603
640
|
fill: "#189F60"
|
|
604
641
|
})
|
|
605
|
-
}),
|
|
642
|
+
}), K = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
|
|
606
643
|
class: e,
|
|
607
644
|
width: "33",
|
|
608
645
|
height: "32",
|
|
@@ -615,11 +652,11 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
615
652
|
d: "M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",
|
|
616
653
|
fill: "#E71111"
|
|
617
654
|
})
|
|
618
|
-
}),
|
|
655
|
+
}), q = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: f, attemptsRemaining: p, blurImage: h }) => {
|
|
619
656
|
let { t: _ } = e(), y = s(null);
|
|
620
657
|
return n(() => {
|
|
621
658
|
y.current?.focus();
|
|
622
|
-
}, []), /* @__PURE__ */ u(
|
|
659
|
+
}, []), /* @__PURE__ */ u(U, {
|
|
623
660
|
imageUrl: i,
|
|
624
661
|
orientation: a,
|
|
625
662
|
mode: o,
|
|
@@ -629,7 +666,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
629
666
|
class: "IncodeIdProcessingResultContent",
|
|
630
667
|
role: "status",
|
|
631
668
|
children: [
|
|
632
|
-
u(r === "success" ?
|
|
669
|
+
u(r === "success" ? G : K, { className: "IncodeIdProcessingResultIcon" }),
|
|
633
670
|
/* @__PURE__ */ u(m, { size: 16 }),
|
|
634
671
|
c && /* @__PURE__ */ u(g, {
|
|
635
672
|
ref: y,
|
|
@@ -655,11 +692,11 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
655
692
|
})]
|
|
656
693
|
})
|
|
657
694
|
});
|
|
658
|
-
},
|
|
695
|
+
}, le = ({ manager: t, state: n, blurImage: r }) => {
|
|
659
696
|
let { t: i } = e();
|
|
660
697
|
if (!n.previewImageUrl) return null;
|
|
661
698
|
let a = n.currentMode === "passport" ? "passport" : "id";
|
|
662
|
-
return /* @__PURE__ */ u(
|
|
699
|
+
return /* @__PURE__ */ u(q, {
|
|
663
700
|
variant: "success",
|
|
664
701
|
imageUrl: n.previewImageUrl,
|
|
665
702
|
orientation: n.orientation,
|
|
@@ -685,7 +722,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
685
722
|
})]
|
|
686
723
|
});
|
|
687
724
|
let o = n.currentMode === "passport" ? "passport" : "id";
|
|
688
|
-
return n.previewImageUrl ? /* @__PURE__ */ u(
|
|
725
|
+
return n.previewImageUrl ? /* @__PURE__ */ u(q, {
|
|
689
726
|
variant: "error",
|
|
690
727
|
imageUrl: n.previewImageUrl,
|
|
691
728
|
orientation: n.orientation,
|
|
@@ -697,7 +734,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
697
734
|
attemptsRemaining: n.attemptsRemaining,
|
|
698
735
|
blurImage: r
|
|
699
736
|
}) : null;
|
|
700
|
-
},
|
|
737
|
+
}, ue = ({ manager: t }) => {
|
|
701
738
|
let { t: r } = e(), i = s(null);
|
|
702
739
|
return n(() => {
|
|
703
740
|
i.current?.focus();
|
|
@@ -709,7 +746,7 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
709
746
|
class: "IncodeIdExpiredContent",
|
|
710
747
|
role: "alert",
|
|
711
748
|
children: [
|
|
712
|
-
/* @__PURE__ */ u(
|
|
749
|
+
/* @__PURE__ */ u(K, { className: "IncodeIdExpiredIcon" }),
|
|
713
750
|
/* @__PURE__ */ u(g, {
|
|
714
751
|
ref: i,
|
|
715
752
|
tabIndex: -1,
|
|
@@ -735,11 +772,11 @@ var te = ({ stream: e, onCapture: t, disabled: r }) => {
|
|
|
735
772
|
})]
|
|
736
773
|
});
|
|
737
774
|
}, Y = /* @__PURE__ */ new Map(), X = !1, Z = {
|
|
738
|
-
blur: () => import("./blurdevicelottie-
|
|
739
|
-
glare: () => import("./glaredevicelottie
|
|
740
|
-
align: () => import("./aligndevicelottie-
|
|
741
|
-
front: () => import("./frontdevicelottie-
|
|
742
|
-
back: () => import("./backdevicelottie-
|
|
775
|
+
blur: () => import("./blurdevicelottie-DIQrsw9H.js"),
|
|
776
|
+
glare: () => import("./glaredevicelottie-BPRxXRbG.js"),
|
|
777
|
+
align: () => import("./aligndevicelottie-Dfs3Ku2-.js"),
|
|
778
|
+
front: () => import("./frontdevicelottie-D3Gw7Qab.js"),
|
|
779
|
+
back: () => import("./backdevicelottie-B4ve1L_u.js")
|
|
743
780
|
};
|
|
744
781
|
function Q(e) {
|
|
745
782
|
X || (X = !0, Promise.all([
|
|
@@ -752,15 +789,15 @@ function Q(e) {
|
|
|
752
789
|
Y.set("blur", t.default), Y.set("glare", n.default), Y.set("align", r.default), Y.set("front", i.default), Y.set("back", a.default), e?.();
|
|
753
790
|
}).catch(() => {}));
|
|
754
791
|
}
|
|
755
|
-
function
|
|
792
|
+
function de() {
|
|
756
793
|
Q();
|
|
757
794
|
}
|
|
758
|
-
function
|
|
795
|
+
function fe() {
|
|
759
796
|
n(() => {
|
|
760
|
-
|
|
797
|
+
de();
|
|
761
798
|
}, []);
|
|
762
799
|
}
|
|
763
|
-
function
|
|
800
|
+
function pe(t, r) {
|
|
764
801
|
let { t: i } = e(), [, a] = l(0);
|
|
765
802
|
if (n(() => {
|
|
766
803
|
Q(() => a((e) => e + 1));
|
|
@@ -791,8 +828,8 @@ function ue(t, r) {
|
|
|
791
828
|
}
|
|
792
829
|
//#endregion
|
|
793
830
|
//#region src/modules/id/capture/captureNotification.tsx
|
|
794
|
-
var
|
|
795
|
-
let { t: c } = e(), l =
|
|
831
|
+
var me = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
832
|
+
let { t: c } = e(), l = pe(r, i), d = s(null), f = s({
|
|
796
833
|
message: "",
|
|
797
834
|
at: 0
|
|
798
835
|
}), h = s(r), g = s(!1), _ = s(), v = s(), y = r === "detecting" || r === "idNotDetected" || r === "manualCapture", b = r === "manualCapture", x = r === "wrongSide", S = r === "farAway", C = r === "glare", w = r === "blur", T = o((e) => {
|
|
@@ -893,7 +930,7 @@ var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
|
893
930
|
}),
|
|
894
931
|
l.animationData && /* @__PURE__ */ u("div", {
|
|
895
932
|
class: "IncodeIdCaptureNotificationAnimation",
|
|
896
|
-
children: /* @__PURE__ */ u(
|
|
933
|
+
children: /* @__PURE__ */ u(O, {
|
|
897
934
|
animationData: l.animationData,
|
|
898
935
|
loop: !0
|
|
899
936
|
})
|
|
@@ -901,34 +938,34 @@ var de = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
|
|
|
901
938
|
]
|
|
902
939
|
})
|
|
903
940
|
}) : null] });
|
|
904
|
-
},
|
|
941
|
+
}, he = i(() => import("./front-horizontal-hint-CNu99K_l.js")), ge = i(() => import("./front-vertical-hint-CpQjOGpU.js")), _e = i(() => import("./back-horizontal-hint-Cch8dR2s.js")), ve = i(() => import("./back-vertical-hint-Dzn5uXKH.js")), ye = i(() => import("./passport-horizontal-hint-WqdYMc9Y.js")), be = i(() => import("./passport-vertical-hint-rNP6GykM.js")), $ = {
|
|
905
942
|
"front-horizontal": 348,
|
|
906
943
|
"back-horizontal": 348,
|
|
907
944
|
"passport-horizontal": 342
|
|
908
|
-
},
|
|
945
|
+
}, xe = {
|
|
909
946
|
"front-vertical": 446,
|
|
910
947
|
"back-vertical": 446,
|
|
911
948
|
"passport-vertical": 342
|
|
912
949
|
};
|
|
913
|
-
function
|
|
914
|
-
let i = `${e}-${t}`, a =
|
|
950
|
+
function Se(e, t, n, r) {
|
|
951
|
+
let i = `${e}-${t}`, a = $[i];
|
|
915
952
|
if (a) return n / a;
|
|
916
|
-
let o =
|
|
953
|
+
let o = xe[i];
|
|
917
954
|
return o ? r / o : 1;
|
|
918
955
|
}
|
|
919
|
-
var
|
|
956
|
+
var Ce = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
920
957
|
let i = s(null), [a, o] = l(1);
|
|
921
958
|
n(() => {
|
|
922
959
|
let n = i.current;
|
|
923
960
|
if (!n) return;
|
|
924
961
|
let r = () => {
|
|
925
|
-
o(
|
|
962
|
+
o(Se(e, t, n.clientWidth, n.clientHeight));
|
|
926
963
|
};
|
|
927
964
|
r();
|
|
928
965
|
let a = new ResizeObserver(r);
|
|
929
966
|
return a.observe(n), () => a.disconnect();
|
|
930
967
|
}, [e, t]);
|
|
931
|
-
let d = () => e === "front" ? u(t === "horizontal" ?
|
|
968
|
+
let d = () => e === "front" ? u(t === "horizontal" ? he : ge, {}) : e === "back" ? u(t === "horizontal" ? _e : ve, {}) : e === "passport" ? u(t === "horizontal" ? ye : be, {}) : null;
|
|
932
969
|
return /* @__PURE__ */ u("div", {
|
|
933
970
|
ref: i,
|
|
934
971
|
class: "IncodeIdHint",
|
|
@@ -949,9 +986,9 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
949
986
|
})
|
|
950
987
|
})
|
|
951
988
|
});
|
|
952
|
-
},
|
|
989
|
+
}, we = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: c, showManualCapture: d, onCapture: f, onOpenHelp: m, helpButtonRef: h, captureButtonRef: g }, _) => {
|
|
953
990
|
let { t: v } = e();
|
|
954
|
-
|
|
991
|
+
fe();
|
|
955
992
|
let y = s(!1), [b, x] = l(!1);
|
|
956
993
|
n(() => {
|
|
957
994
|
if (i === "idNotDetected") {
|
|
@@ -993,7 +1030,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
993
1030
|
children: [
|
|
994
1031
|
/* @__PURE__ */ u("div", {
|
|
995
1032
|
class: "IncodeCaptureTopSection",
|
|
996
|
-
children: [/* @__PURE__ */ u(
|
|
1033
|
+
children: [/* @__PURE__ */ u(me, {
|
|
997
1034
|
detectionStatus: i,
|
|
998
1035
|
mode: t,
|
|
999
1036
|
isCapturing: c
|
|
@@ -1013,7 +1050,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1013
1050
|
children: [c && o > 0 && /* @__PURE__ */ u("div", {
|
|
1014
1051
|
class: "IncodeCaptureCounter",
|
|
1015
1052
|
children: o
|
|
1016
|
-
}), b && /* @__PURE__ */ u(
|
|
1053
|
+
}), b && /* @__PURE__ */ u(Ce, {
|
|
1017
1054
|
mode: t,
|
|
1018
1055
|
orientation: r ?? "horizontal",
|
|
1019
1056
|
onAnimationEnd: () => x(!1)
|
|
@@ -1047,10 +1084,10 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1047
1084
|
})
|
|
1048
1085
|
]
|
|
1049
1086
|
});
|
|
1050
|
-
}),
|
|
1087
|
+
}), Te = ({ manager: e, state: t }) => {
|
|
1051
1088
|
if (t.captureStatus === "uploading" && t.previewImageUrl) {
|
|
1052
1089
|
let e = t.currentMode === "passport" ? "passport" : "id";
|
|
1053
|
-
return /* @__PURE__ */ u(
|
|
1090
|
+
return /* @__PURE__ */ u(W, {
|
|
1054
1091
|
imageUrl: t.previewImageUrl,
|
|
1055
1092
|
progress: t.uploadProgress ?? 0,
|
|
1056
1093
|
orientation: t.orientation,
|
|
@@ -1058,7 +1095,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1058
1095
|
blurImage: t.ageAssurance
|
|
1059
1096
|
});
|
|
1060
1097
|
}
|
|
1061
|
-
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(
|
|
1098
|
+
return t.captureStatus === "success" && t.previewImageUrl ? /* @__PURE__ */ u(le, {
|
|
1062
1099
|
manager: e,
|
|
1063
1100
|
state: t,
|
|
1064
1101
|
blurImage: t.ageAssurance
|
|
@@ -1066,11 +1103,11 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1066
1103
|
manager: e,
|
|
1067
1104
|
state: t,
|
|
1068
1105
|
blurImage: t.ageAssurance
|
|
1069
|
-
}) : /* @__PURE__ */ u(
|
|
1106
|
+
}) : /* @__PURE__ */ u(Ee, {
|
|
1070
1107
|
manager: e,
|
|
1071
1108
|
state: t
|
|
1072
1109
|
});
|
|
1073
|
-
},
|
|
1110
|
+
}, Ee = ({ manager: e, state: t }) => {
|
|
1074
1111
|
let n = s(null), r = s(null), i = s(null), a = s(null), [c, p] = l(!1), m = o(() => {
|
|
1075
1112
|
let t = n.current;
|
|
1076
1113
|
if (!t) return;
|
|
@@ -1103,7 +1140,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1103
1140
|
stream: t.stream,
|
|
1104
1141
|
onPlaying: m,
|
|
1105
1142
|
"aria-hidden": c || void 0,
|
|
1106
|
-
children: /* @__PURE__ */ u(
|
|
1143
|
+
children: /* @__PURE__ */ u(we, {
|
|
1107
1144
|
ref: n,
|
|
1108
1145
|
mode: t.currentMode,
|
|
1109
1146
|
orientation: t.orientation,
|
|
@@ -1118,7 +1155,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1118
1155
|
})
|
|
1119
1156
|
}),
|
|
1120
1157
|
/* @__PURE__ */ u("div", { ref: a }),
|
|
1121
|
-
/* @__PURE__ */ u(
|
|
1158
|
+
/* @__PURE__ */ u(V, {
|
|
1122
1159
|
open: c,
|
|
1123
1160
|
onClose: b,
|
|
1124
1161
|
onTakeManually: x,
|
|
@@ -1126,19 +1163,19 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1126
1163
|
})
|
|
1127
1164
|
]
|
|
1128
1165
|
});
|
|
1129
|
-
},
|
|
1166
|
+
}, De = ({ manager: t, state: r }) => {
|
|
1130
1167
|
let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), d = r.selectedDocumentType === "passport", f = r.currentMode === "back";
|
|
1131
1168
|
n(() => {
|
|
1132
|
-
d ? import("./passport-tutorial-
|
|
1169
|
+
d ? import("./passport-tutorial-DYBRCYAN.js").then((e) => {
|
|
1133
1170
|
c(e.default);
|
|
1134
|
-
}) : f ? import("./back-tutorial-
|
|
1171
|
+
}) : f ? import("./back-tutorial-DCeMC-YK.js").then((e) => {
|
|
1135
1172
|
c(e.default);
|
|
1136
|
-
}) : import("./id-tutorial-
|
|
1173
|
+
}) : import("./id-tutorial-B2d6DkZv.js").then((e) => {
|
|
1137
1174
|
c(e.default);
|
|
1138
1175
|
});
|
|
1139
1176
|
}, [d, f]);
|
|
1140
1177
|
let m = i(d ? "idv2.capture.passport.title" : f ? "idv2.backTutorial.title" : "idv2.tutorial.title"), h = i(d ? "idv2.capture.passport.subtitle" : f ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(f ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
|
|
1141
|
-
return /* @__PURE__ */ u(
|
|
1178
|
+
return /* @__PURE__ */ u(ee, {
|
|
1142
1179
|
animationData: s,
|
|
1143
1180
|
title: m,
|
|
1144
1181
|
subtitle: h,
|
|
@@ -1150,7 +1187,7 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
1150
1187
|
isLoading: a,
|
|
1151
1188
|
className: p("IncodeIdTutorial", d ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
|
|
1152
1189
|
});
|
|
1153
|
-
},
|
|
1190
|
+
}, Oe = {
|
|
1154
1191
|
digitalIdUpload: {
|
|
1155
1192
|
type: "digitalIdUpload",
|
|
1156
1193
|
icon: () => /* @__PURE__ */ u("svg", {
|
|
@@ -2187,16 +2224,16 @@ var $ = ({ mode: e, orientation: t, onAnimationEnd: r }) => {
|
|
|
2187
2224
|
};
|
|
2188
2225
|
//#endregion
|
|
2189
2226
|
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2190
|
-
function
|
|
2227
|
+
function ke(e) {
|
|
2191
2228
|
return e.reduce((e, t) => {
|
|
2192
|
-
let n =
|
|
2229
|
+
let n = Oe[t];
|
|
2193
2230
|
return n && e.push(n), e;
|
|
2194
2231
|
}, []).sort((e, t) => e.weight - t.weight);
|
|
2195
2232
|
}
|
|
2196
2233
|
//#endregion
|
|
2197
2234
|
//#region src/modules/id/chooser/chooser.tsx
|
|
2198
|
-
var
|
|
2199
|
-
let { t: r } = e(), i = a(() =>
|
|
2235
|
+
var Ae = ({ manager: t, state: n }) => {
|
|
2236
|
+
let { t: r } = e(), i = a(() => ke(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
|
|
2200
2237
|
t.selectDocument(e);
|
|
2201
2238
|
};
|
|
2202
2239
|
return /* @__PURE__ */ u(h, {
|
|
@@ -2205,7 +2242,7 @@ var De = ({ manager: t, state: n }) => {
|
|
|
2205
2242
|
className: "IncodeChooserPage",
|
|
2206
2243
|
children: /* @__PURE__ */ u("div", {
|
|
2207
2244
|
class: "IncodeChooserContainer",
|
|
2208
|
-
children: /* @__PURE__ */ u(
|
|
2245
|
+
children: /* @__PURE__ */ u(P, { children: i.map((e) => /* @__PURE__ */ u(F, {
|
|
2209
2246
|
icon: e.icon,
|
|
2210
2247
|
title: r(e.title),
|
|
2211
2248
|
testId: e.testId,
|
|
@@ -2214,10 +2251,10 @@ var De = ({ manager: t, state: n }) => {
|
|
|
2214
2251
|
}, e.type)) })
|
|
2215
2252
|
})
|
|
2216
2253
|
});
|
|
2217
|
-
},
|
|
2254
|
+
}, je = ({ manager: t, direction: r }) => {
|
|
2218
2255
|
let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
|
|
2219
2256
|
n(() => {
|
|
2220
|
-
import("./flip-animation-
|
|
2257
|
+
import("./flip-animation-B1zV6oY9.js").then((e) => {
|
|
2221
2258
|
a(e.default);
|
|
2222
2259
|
});
|
|
2223
2260
|
}, []);
|
|
@@ -2236,7 +2273,7 @@ var De = ({ manager: t, state: n }) => {
|
|
|
2236
2273
|
children: d(r === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
|
|
2237
2274
|
}),
|
|
2238
2275
|
/* @__PURE__ */ u(m, { size: 32 }),
|
|
2239
|
-
/* @__PURE__ */ u(
|
|
2276
|
+
/* @__PURE__ */ u(O, {
|
|
2240
2277
|
animationData: i,
|
|
2241
2278
|
loop: !1,
|
|
2242
2279
|
reverse: r === "toFront",
|
|
@@ -2246,4 +2283,4 @@ var De = ({ manager: t, state: n }) => {
|
|
|
2246
2283
|
}) : null;
|
|
2247
2284
|
};
|
|
2248
2285
|
//#endregion
|
|
2249
|
-
export {
|
|
2286
|
+
export { j as _, ue as a, B as c, L as d, I as f, M as g, N as h, Te as i, z as l, P as m, Ae as n, J as o, F as p, De as r, ie as s, je as t, R as u, A as v, te as y };
|