@incodetech/web 2.1.0-rc.2 → 2.1.0-rc.3
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/ae-signature/styles.css +59 -45
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -4
- package/dist/base.css +87 -59
- package/dist/{button-Ch5-QgHB.js → button-Dz6AsbmF.js} +2 -1
- package/dist/cameraView-DIEzM5ru.js +47 -0
- package/dist/{tutorial-Cap8qKvM.js → capture-CkGvdDNH.js} +18 -568
- package/dist/certificate-issuance/certificate-issuance.es.js +7 -7
- package/dist/consent/consent.es.js +8 -8
- package/dist/{countrySelector-B4WuNUya.js → countrySelector-SvUOyPo0.js} +1 -1
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-B79245-3.js +2 -0
- package/dist/{cpfOcr-liTE9e70.js → cpfOcr-BhxT-lRN.js} +5 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +7 -7
- package/dist/{customFields-BQ4scZfL.js → customFields-BDsXR7A-.js} +6 -6
- package/dist/{customWatchlist-7s0_wGtE.js → customWatchlist-CYoRNCim.js} +5 -5
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DXYYyxZl.js +2 -0
- package/dist/{documentCapture-CwoSD_Iq.js → documentCapture-DhbO-A-V.js} +11 -9
- package/dist/{dynamicForms-DvTU65bW.js → dynamicForms-BifGbC9F.js} +19 -8
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-C6Nttked.js +2 -0
- package/dist/{ekybModule-CwZvxios.js → ekybModule-DGnTw5UV.js} +12 -12
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CDIEjI6V.js +2 -0
- package/dist/{ekycModule-jkXByPXe.js → ekycModule-Dxpdd0ns.js} +10 -10
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-h1sAGg7l.js → electronic-signature-Ueoffasr.js} +37 -26
- package/dist/email/email.es.js +7 -7
- package/dist/{emailInput-BRMJMJV6.js → emailInput-DsLkDtER.js} +5 -5
- package/dist/{expiredId-D17oN5K2.js → expiredId-BZXLrLk-.js} +4 -4
- package/dist/{extensibility-CTmAsaji.js → extensibility-7sRIN0JC.js} +41 -76
- package/dist/extensibility.es.js +13 -11
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-B_HvxLm_.js +2 -0
- package/dist/{faceMatch-Dez_bq3n.js → faceMatch-DyTBoMDm.js} +8 -8
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-DfNEuEE5.js +2 -0
- package/dist/{fieldComparison-BelzSC48.js → fieldComparison-L_knHqgw.js} +7 -7
- package/dist/fiscal-qr/fiscal-qr.es.js +8 -7
- package/dist/flow/flow.es.js +22 -9
- package/dist/flow/styles.css +4151 -3042
- package/dist/geolocation/geolocation.es.js +14 -9
- package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +10 -14
- package/dist/{homeScreen-BIdVm9KA.js → homeScreen-B6T0JVh8.js} +2 -2
- package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
- package/dist/{i18n-DoP1NB7u.js → i18n-CU4xq8qC.js} +1 -1
- package/dist/id/id.es.js +76 -46
- package/dist/id/styles.css +1 -9
- package/dist/id-ocr/styles.css +12 -2
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-C4K2XVJr.js → idOcr-WFBvqy3b.js} +31 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -6
- package/dist/{incodeComponent-Cmi1rlWs.js → incodeComponent-CfzJGETt.js} +2 -2
- package/dist/{incodeModule-M8DszCee.js → incodeModule-B-4_3JrK.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-DOQ0DKgM.js → mandatoryConsent-D0GTKu-H.js} +7 -7
- package/dist/{optionAccessibleLabel-_nvVCTSL.js → optionAccessibleLabel-gfF-58Mv.js} +3 -3
- package/dist/{otpInput-Q_kzSZeD.js → otpInput-CnDc6pQm.js} +12 -11
- package/dist/{pdf-BMUXKJuC.js → pdf-BqtJTlor.js} +1 -1
- package/dist/{pdfViewer-BewML6eg.js → pdfViewer-B97DmT9m.js} +57 -20
- package/dist/phone/phone.es.js +6 -6
- package/dist/{processing-Boki1Z8j.js → processing-BeUMfdJJ.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioGroupComposed-TuAWUAFK.js → radioGroupComposed-DuQxslB2.js} +1 -1
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +17 -18
- package/dist/redirect-to-mobile/styles.css +2 -2
- package/dist/{richText-DsTP4H3j.js → richText-CB1fmegc.js} +1 -1
- package/dist/selfie/selfie.es.js +8 -7
- package/dist/selfie/styles.css +133 -63
- package/dist/signature/signature.es.js +8 -8
- package/dist/spinner-BCDCoi9C.js +1 -0
- package/dist/{spinner-BRNNKqPN.js → spinner-BMeIEK1d.js} +12 -6
- package/dist/themes/dark.css +16 -0
- package/dist/themes/light.css +16 -0
- package/dist/{transitionSpinner-4rPkt-KM.js → transitionSpinner-CuNCqHNi.js} +9 -8
- package/dist/tutorial-CCfPuVKX.js +706 -0
- package/dist/types/ae-signature.d.ts +23 -1
- package/dist/types/antifraud.d.ts +23 -1
- package/dist/types/authentication.d.ts +23 -1
- package/dist/types/certificate-issuance.d.ts +23 -1
- package/dist/types/consent.d.ts +23 -1
- package/dist/types/cross-document-data-match.d.ts +23 -1
- package/dist/types/curp-validation.d.ts +23 -1
- package/dist/types/document-capture.d.ts +23 -1
- package/dist/types/ekyb.d.ts +23 -1
- package/dist/types/ekyc.d.ts +23 -1
- package/dist/types/electronic-signature.d.ts +23 -1
- package/dist/types/email.d.ts +23 -1
- package/dist/types/extensibility.d.ts +39 -2
- package/dist/types/face-match.d.ts +23 -1
- package/dist/types/field-comparison.d.ts +23 -1
- package/dist/types/fiscal-qr.d.ts +23 -1
- package/dist/types/flow.d.ts +23 -1
- package/dist/types/geolocation.d.ts +27 -2
- package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
- package/dist/types/id-verification.d.ts +23 -1
- package/dist/types/id.d.ts +23 -1
- package/dist/types/identity-reuse.d.ts +23 -1
- package/dist/types/phone.d.ts +23 -1
- package/dist/types/qe-signature.d.ts +23 -1
- package/dist/types/selfie.d.ts +23 -1
- package/dist/types/signature.d.ts +23 -1
- package/dist/types/video-selfie.d.ts +72 -0
- package/dist/types/watchlist.d.ts +23 -1
- package/dist/types/workflow.d.ts +23 -1
- package/dist/{useModuleLoader-Kt78XfNR.js → useModuleLoader-Gvo9qscB.js} +38 -23
- package/dist/{verificationResult-B6PBXbp9.js → verificationResult-BWWkmeiA.js} +3 -3
- package/dist/video-selfie/styles.css +1644 -0
- package/dist/video-selfie/video-selfie.es.js +854 -0
- package/dist/watchlist/watchlist.es.js +5 -5
- package/dist/{watchlistForBusiness-DCKlKG81.js → watchlistForBusiness-D2Uo_TwF.js} +7 -7
- package/dist/workflow/styles.css +148 -76
- package/dist/workflow/workflow.es.js +23 -27
- package/package.json +29 -2
- package/dist/cpfOcr-BJOYoITy.js +0 -2
- package/dist/documentCapture-3RHCHepT.js +0 -2
- package/dist/ekybModule-BkVQBQvW.js +0 -2
- package/dist/ekycModule-BIbj7hr1.js +0 -2
- package/dist/faceMatch-C0-RPzrc.js +0 -2
- package/dist/fieldComparison-7FUznk_9.js +0 -2
- package/dist/spinner-zRaUjXtH.js +0 -1
- /package/dist/{aligndevicelottie-DMXPhIDs.js → aligndevicelottie-DFscByAI.js} +0 -0
- /package/dist/{back-horizontal-hint-DNIIDrEW.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
- /package/dist/{back-tutorial-B8JJSJBB.js → back-tutorial-cI_4VHmE.js} +0 -0
- /package/dist/{back-vertical-hint-CW6ZS7bP.js → back-vertical-hint-BWWlHfX2.js} +0 -0
- /package/dist/{backdevicelottie-By75Bznp.js → backdevicelottie-COyhTrxM.js} +0 -0
- /package/dist/{blurdevicelottie-C_9VAHkM.js → blurdevicelottie-BLVeJHEG.js} +0 -0
- /package/dist/{browser-ponyfill-C_DpU0lQ.js → browser-ponyfill-Df13Th-G.js} +0 -0
- /package/dist/{defineProperty-CTu-cLWm.js → defineProperty-Qjefk7Uf.js} +0 -0
- /package/dist/{flip-animation-st9bra1p.js → flip-animation-CZYSUtMm.js} +0 -0
- /package/dist/{front-horizontal-hint-DvME-aVk.js → front-horizontal-hint-B84GgTO1.js} +0 -0
- /package/dist/{front-vertical-hint-BUG1VMsP.js → front-vertical-hint-Bs_avngq.js} +0 -0
- /package/dist/{frontdevicelottie-uObOEs8p.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
- /package/dist/{glaredevicelottie-CsfIgqIc.js → glaredevicelottie-D1pR73sx.js} +0 -0
- /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
- /package/dist/{id-laser-h-BvVSaLyU.js → id-laser-h-CzPegPMn.js} +0 -0
- /package/dist/{id-laser-v-Dj_RN_s9.js → id-laser-v-BiUXkM4x.js} +0 -0
- /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-DwO90SAm.js} +0 -0
- /package/dist/{lottie_light-BG-RL2Iu.js → lottie_light-C6B2ec41.js} +0 -0
- /package/dist/{numberedStep-Dc0BUU-j.js → numberedStep-CEb-lFJm.js} +0 -0
- /package/dist/{passport-horizontal-hint-BhpVt73n.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
- /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-D9JNsMsM.js} +0 -0
- /package/dist/{passport-vertical-hint-CVRBnZXS.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
- /package/dist/{registerIncodeElement-CdlNRRv5.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
- /package/dist/{requiredLabelHint-DX3oVNtu.js → requiredLabelHint-D0RhuMed.js} +0 -0
- /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-pB-N-fj5.js} +0 -0
- /package/dist/{snackbar-CGL6gp9u.js → snackbar-DS7Mv62v.js} +0 -0
- /package/dist/{statusPage-BUm5gtQY.js → statusPage-Bk8nJwXV.js} +0 -0
- /package/dist/{tabs-DUkWjBGk.js → tabs-C__chW-u.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
3
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { n as ElectronicSignature } from "../electronic-signature-Ueoffasr.js";
|
|
3
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
4
4
|
//#region src/modules/ae-signature/ae-signature.tsx
|
|
5
5
|
var AeSignature = ({ config, onFinish, onError }) => {
|
|
6
6
|
return /* @__PURE__ */ u(ElectronicSignature, {
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.IncodeElectronicSignature .IncodeSrOnly {
|
|
14
|
+
clip-path: inset(50%);
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
border-width: 0;
|
|
17
|
+
width: 1px;
|
|
18
|
+
height: 1px;
|
|
19
|
+
margin: -1px;
|
|
20
|
+
padding: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
.IncodeElectronicSignature .IncodePageContent {
|
|
14
26
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
15
27
|
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
@@ -21,14 +33,14 @@
|
|
|
21
33
|
}
|
|
22
34
|
|
|
23
35
|
.IncodeElectronicSignature .IncodePageTitleContainer {
|
|
24
|
-
max-width:
|
|
36
|
+
max-width: var(--electronic-signature-title-max-w);
|
|
25
37
|
}
|
|
26
38
|
|
|
27
39
|
.IncodeElectronicSignature .IncodePageFooter {
|
|
28
40
|
padding-top: var(--spacing-16, var(--spacing-16, 16px));
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
.IncodeElectronicSignatureUploadBody {
|
|
43
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureUploadBody {
|
|
32
44
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
33
45
|
flex-direction: column;
|
|
34
46
|
flex: 1;
|
|
@@ -38,25 +50,25 @@
|
|
|
38
50
|
container-type: size;
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
.IncodeElectronicSignatureIllustration {
|
|
53
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureIllustration {
|
|
42
54
|
aspect-ratio: 1;
|
|
55
|
+
width: var(--electronic-signature-illustration-max-w);
|
|
43
56
|
border-radius: var(--radius-full, var(--border-radius-full));
|
|
44
57
|
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
45
58
|
justify-content: center;
|
|
46
59
|
align-items: center;
|
|
47
|
-
width: min(100cqw, 100cqh - 32px, 297px);
|
|
48
60
|
display: flex;
|
|
49
61
|
overflow: visible;
|
|
50
62
|
}
|
|
51
63
|
|
|
52
|
-
.IncodeElectronicSignatureIllustration svg {
|
|
53
|
-
--tw-translate-y: calc(3% * -1);
|
|
54
|
-
width: 80%;
|
|
64
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureIllustration svg {
|
|
55
65
|
height: auto;
|
|
66
|
+
width: var(--electronic-signature-illustration-svg-w);
|
|
67
|
+
--tw-translate-y: calc(var(--electronic-signature-illustration-svg-shift) * -1);
|
|
56
68
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
57
69
|
}
|
|
58
70
|
|
|
59
|
-
.IncodeElectronicSignatureFileInput {
|
|
71
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureFileInput {
|
|
60
72
|
opacity: 0;
|
|
61
73
|
width: 1px;
|
|
62
74
|
height: 1px;
|
|
@@ -64,13 +76,13 @@
|
|
|
64
76
|
overflow: hidden;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
|
-
.IncodeElectronicSignatureReviewBody {
|
|
79
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureReviewBody {
|
|
68
80
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
81
|
+
width: 100%;
|
|
82
|
+
max-width: var(--incode-form-max-w);
|
|
69
83
|
justify-content: center;
|
|
70
84
|
align-items: center;
|
|
71
85
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
72
|
-
width: 100%;
|
|
73
|
-
max-width: 420px;
|
|
74
86
|
padding-inline: var(--spacing-48, var(--spacing-48, 48px));
|
|
75
87
|
flex-direction: column;
|
|
76
88
|
flex: 1;
|
|
@@ -78,7 +90,7 @@
|
|
|
78
90
|
display: flex;
|
|
79
91
|
}
|
|
80
92
|
|
|
81
|
-
.IncodeElectronicSignatureReviewCard {
|
|
93
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureReviewCard {
|
|
82
94
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
83
95
|
align-items: center;
|
|
84
96
|
gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
@@ -94,28 +106,28 @@
|
|
|
94
106
|
display: flex;
|
|
95
107
|
}
|
|
96
108
|
|
|
97
|
-
.IncodeElectronicSignatureDocPreview {
|
|
109
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocPreview {
|
|
98
110
|
pointer-events: none;
|
|
99
111
|
aspect-ratio: 113 / 150;
|
|
100
|
-
max-height:
|
|
112
|
+
max-height: var(--electronic-signature-doc-preview-max-h);
|
|
101
113
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
114
|
+
border-radius: var(--electronic-signature-doc-preview-radius);
|
|
102
115
|
border-style: var(--tw-border-style);
|
|
103
116
|
border-width: 1px;
|
|
104
117
|
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
105
118
|
background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
|
|
106
|
-
border-radius: 6px;
|
|
107
119
|
flex: 1;
|
|
108
120
|
position: relative;
|
|
109
121
|
overflow: hidden;
|
|
110
122
|
}
|
|
111
123
|
|
|
112
|
-
.IncodeElectronicSignatureDocPreviewObject {
|
|
124
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocPreviewObject {
|
|
113
125
|
width: 100%;
|
|
114
126
|
height: 100%;
|
|
115
127
|
display: block;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
|
-
.IncodeElectronicSignatureDocName {
|
|
130
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocName {
|
|
119
131
|
text-align: center;
|
|
120
132
|
font-family: var(--typography-headline-family);
|
|
121
133
|
font-size: var(--typography-headline-h5-size);
|
|
@@ -126,7 +138,7 @@
|
|
|
126
138
|
flex-shrink: 0;
|
|
127
139
|
}
|
|
128
140
|
|
|
129
|
-
.IncodeElectronicSignatureEncrypted {
|
|
141
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureEncrypted {
|
|
130
142
|
justify-content: center;
|
|
131
143
|
align-items: center;
|
|
132
144
|
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
@@ -136,24 +148,26 @@
|
|
|
136
148
|
font-weight: var(--typography-body-m-regular-weight);
|
|
137
149
|
line-height: var(--typography-body-m-regular-line-height);
|
|
138
150
|
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
151
|
+
white-space: nowrap;
|
|
139
152
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
140
153
|
display: flex;
|
|
141
154
|
}
|
|
142
155
|
|
|
143
|
-
.IncodeElectronicSignatureEncryptedIcon {
|
|
156
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureEncryptedIcon {
|
|
144
157
|
width: var(--spacing-16, var(--spacing-16, 16px));
|
|
145
158
|
height: var(--spacing-16, var(--spacing-16, 16px));
|
|
146
159
|
color: var(--color-icon-neutral-500, var(--icon-neutral-500));
|
|
160
|
+
flex-shrink: 0;
|
|
147
161
|
}
|
|
148
162
|
|
|
149
|
-
.IncodeElectronicSignatureSigningTop {
|
|
163
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureSigningTop {
|
|
150
164
|
flex-direction: column;
|
|
151
165
|
flex-shrink: 0;
|
|
152
166
|
align-items: center;
|
|
153
167
|
display: flex;
|
|
154
168
|
}
|
|
155
169
|
|
|
156
|
-
.IncodeElectronicSignatureSigningBottom {
|
|
170
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureSigningBottom {
|
|
157
171
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
158
172
|
justify-content: flex-end;
|
|
159
173
|
align-items: center;
|
|
@@ -164,14 +178,14 @@
|
|
|
164
178
|
display: flex;
|
|
165
179
|
}
|
|
166
180
|
|
|
167
|
-
.IncodeElectronicSignatureDocContainer {
|
|
181
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocContainer {
|
|
182
|
+
width: 100%;
|
|
183
|
+
max-width: var(--incode-form-max-w);
|
|
168
184
|
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
169
185
|
border-style: var(--tw-border-style);
|
|
170
186
|
border-width: 1px;
|
|
171
187
|
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
172
188
|
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
173
|
-
width: 100%;
|
|
174
|
-
max-width: 420px;
|
|
175
189
|
padding-inline: var(--spacing-24, var(--spacing-24, 24px));
|
|
176
190
|
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
177
191
|
flex-direction: column;
|
|
@@ -182,16 +196,16 @@
|
|
|
182
196
|
overflow: clip;
|
|
183
197
|
}
|
|
184
198
|
|
|
185
|
-
.IncodeElectronicSignatureDocRow {
|
|
199
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocRow {
|
|
200
|
+
height: var(--electronic-signature-doc-row-h);
|
|
186
201
|
flex-shrink: 0;
|
|
187
202
|
justify-content: space-between;
|
|
188
203
|
align-items: center;
|
|
189
204
|
width: 100%;
|
|
190
|
-
height: 56px;
|
|
191
205
|
display: flex;
|
|
192
206
|
}
|
|
193
207
|
|
|
194
|
-
.IncodeElectronicSignatureDocRowName {
|
|
208
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocRowName {
|
|
195
209
|
font-family: var(--typography-button-family);
|
|
196
210
|
font-size: var(--typography-button-m-size);
|
|
197
211
|
font-weight: var(--typography-button-m-weight);
|
|
@@ -200,24 +214,24 @@
|
|
|
200
214
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
201
215
|
}
|
|
202
216
|
|
|
203
|
-
.IncodeElectronicSignatureDocRowAction {
|
|
217
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocRowAction {
|
|
204
218
|
width: auto;
|
|
205
219
|
max-width: none;
|
|
206
220
|
height: auto;
|
|
207
221
|
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
208
222
|
}
|
|
209
223
|
|
|
210
|
-
.IncodeElectronicSignatureConsents {
|
|
224
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureConsents {
|
|
211
225
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
226
|
+
width: 100%;
|
|
227
|
+
max-width: var(--incode-form-max-w);
|
|
212
228
|
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
213
229
|
flex-direction: column;
|
|
214
|
-
width: 100%;
|
|
215
|
-
max-width: 420px;
|
|
216
230
|
display: flex;
|
|
217
231
|
overflow: auto;
|
|
218
232
|
}
|
|
219
233
|
|
|
220
|
-
.IncodeElectronicSignatureConsents .IncodeCheckbox {
|
|
234
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureConsents .IncodeCheckbox {
|
|
221
235
|
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
222
236
|
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
223
237
|
width: 100%;
|
|
@@ -225,7 +239,7 @@
|
|
|
225
239
|
padding-block: var(--spacing-20, var(--spacing-20, 20px));
|
|
226
240
|
}
|
|
227
241
|
|
|
228
|
-
.IncodeElectronicSignatureConsents .IncodeCheckboxText {
|
|
242
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureConsents .IncodeCheckboxText {
|
|
229
243
|
font-family: var(--typography-checkbox-radio-family);
|
|
230
244
|
font-size: var(--typography-checkbox-radio-s-size);
|
|
231
245
|
font-weight: var(--typography-checkbox-radio-s-weight);
|
|
@@ -233,17 +247,17 @@
|
|
|
233
247
|
letter-spacing: var(--typography-checkbox-radio-s-letter-spacing);
|
|
234
248
|
}
|
|
235
249
|
|
|
236
|
-
.IncodeElectronicSignatureConsents a {
|
|
250
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureConsents a {
|
|
237
251
|
color: var(--color-text-link-default, var(--text-link-default));
|
|
238
252
|
text-decoration-line: underline;
|
|
239
253
|
}
|
|
240
254
|
|
|
241
|
-
.IncodeElectronicSignatureSuccess .IncodePageContent {
|
|
255
|
+
.IncodeElectronicSignature.IncodeElectronicSignatureSuccess .IncodePageContent {
|
|
242
256
|
padding-top: var(--spacing-0, var(--spacing-none, 0px));
|
|
243
257
|
justify-content: center;
|
|
244
258
|
}
|
|
245
259
|
|
|
246
|
-
.IncodeElectronicSignatureSuccessCenter {
|
|
260
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureSuccessCenter {
|
|
247
261
|
justify-content: center;
|
|
248
262
|
align-items: center;
|
|
249
263
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
@@ -252,7 +266,7 @@
|
|
|
252
266
|
display: flex;
|
|
253
267
|
}
|
|
254
268
|
|
|
255
|
-
.IncodeElectronicSignatureSuccessTitle {
|
|
269
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureSuccessTitle {
|
|
256
270
|
text-align: center;
|
|
257
271
|
font-family: var(--typography-headline-family);
|
|
258
272
|
font-size: var(--typography-headline-h3-size);
|
|
@@ -262,7 +276,7 @@
|
|
|
262
276
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
263
277
|
}
|
|
264
278
|
|
|
265
|
-
.IncodeElectronicSignatureDownloadLink {
|
|
279
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDownloadLink {
|
|
266
280
|
text-align: center;
|
|
267
281
|
font-family: var(--typography-button-family);
|
|
268
282
|
font-size: var(--typography-button-m-size);
|
|
@@ -273,33 +287,33 @@
|
|
|
273
287
|
text-decoration-line: underline;
|
|
274
288
|
}
|
|
275
289
|
|
|
276
|
-
.IncodeElectronicSignatureFooter {
|
|
290
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureFooter {
|
|
291
|
+
width: 100%;
|
|
292
|
+
max-width: var(--incode-form-max-w);
|
|
277
293
|
justify-content: center;
|
|
278
294
|
align-items: center;
|
|
279
295
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
280
296
|
flex-direction: column;
|
|
281
297
|
flex-shrink: 0;
|
|
282
298
|
align-self: center;
|
|
283
|
-
width: 100%;
|
|
284
|
-
max-width: 420px;
|
|
285
299
|
display: flex;
|
|
286
300
|
}
|
|
287
301
|
|
|
288
|
-
.IncodeElectronicSignatureDocViewHeader {
|
|
302
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocViewHeader {
|
|
289
303
|
z-index: 10;
|
|
290
304
|
height: var(--page-header-height);
|
|
291
|
-
margin-top:
|
|
305
|
+
margin-top: var(--electronic-signature-doc-view-header-offset);
|
|
292
306
|
align-self: flex-start;
|
|
293
307
|
align-items: center;
|
|
294
308
|
display: flex;
|
|
295
309
|
position: relative;
|
|
296
310
|
}
|
|
297
311
|
|
|
298
|
-
.IncodeElectronicSignatureBackButton {
|
|
312
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureBackButton {
|
|
299
313
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
300
314
|
}
|
|
301
315
|
|
|
302
|
-
.IncodeElectronicSignatureDocViewer {
|
|
316
|
+
.IncodeElectronicSignature .IncodeElectronicSignatureDocViewer {
|
|
303
317
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
304
318
|
border-style: var(--tw-border-style);
|
|
305
319
|
border-width: var(--border-width-none, var(--primitive-border-width-0));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { t as Spinner } from "../spinner-
|
|
5
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
4
|
+
import { t as Spinner } from "../spinner-BMeIEK1d.js";
|
|
5
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
6
6
|
import { createAntifraudManager } from "@incodetech/core/antifraud";
|
|
7
7
|
//#region src/modules/antifraud/antifraud.tsx
|
|
8
8
|
var AntifraudContent = ({ manager: externalManager, onFinish }) => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { n as Capture,
|
|
5
|
-
import {
|
|
2
|
+
import { c as useModuleTerminalCallbacks, s as isTerminalModuleState, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
4
|
+
import { n as Capture, t as Tutorial } from "../tutorial-CCfPuVKX.js";
|
|
5
|
+
import { i as Permissions } from "../capture-CkGvdDNH.js";
|
|
6
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
6
7
|
import { createAuthenticationManager } from "@incodetech/core/authentication";
|
|
7
8
|
//#region src/modules/authentication/authentication.tsx
|
|
8
9
|
var AuthenticationContent = ({ config, authHint, manager: externalManager, onFinish, onError }) => {
|
package/dist/base.css
CHANGED
|
@@ -2694,6 +2694,10 @@
|
|
|
2694
2694
|
justify-content: space-between;
|
|
2695
2695
|
}
|
|
2696
2696
|
|
|
2697
|
+
.rounded {
|
|
2698
|
+
border-radius: .25rem;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2697
2701
|
.border {
|
|
2698
2702
|
border-style: var(--tw-border-style);
|
|
2699
2703
|
border-width: 1px;
|
|
@@ -3136,6 +3140,13 @@
|
|
|
3136
3140
|
flex-shrink: 0;
|
|
3137
3141
|
}
|
|
3138
3142
|
|
|
3143
|
+
.IncodeButton.IncodeButtonInline {
|
|
3144
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
3145
|
+
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
3146
|
+
width: auto;
|
|
3147
|
+
height: auto;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3139
3150
|
.IncodeButton.IncodeButtonPrimary {
|
|
3140
3151
|
background-color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
3141
3152
|
color: var(--color-button-primary-text-default, var(--button-primary-text-default));
|
|
@@ -3258,6 +3269,40 @@
|
|
|
3258
3269
|
fill: var(--surface-brand-400-static);
|
|
3259
3270
|
}
|
|
3260
3271
|
|
|
3272
|
+
.IncodeButton.IncodeButtonLink.IncodeButtonInline {
|
|
3273
|
+
font-family: var(--typography-button-family);
|
|
3274
|
+
font-size: var(--typography-button-m-underlined-size);
|
|
3275
|
+
font-weight: var(--typography-button-m-underlined-weight);
|
|
3276
|
+
line-height: var(--typography-button-m-underlined-line-height);
|
|
3277
|
+
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
3278
|
+
-webkit-text-decoration-skip-ink: none;
|
|
3279
|
+
text-decoration-skip-ink: none;
|
|
3280
|
+
color: var(--color-button-tertiary-text-default, var(--button-tertiary-text-default));
|
|
3281
|
+
text-decoration-line: underline;
|
|
3282
|
+
text-decoration-style: solid;
|
|
3283
|
+
text-decoration-thickness: auto;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
.IncodeButton.IncodeButtonLink.IncodeButtonInline:active {
|
|
3287
|
+
font-family: var(--typography-button-family);
|
|
3288
|
+
font-size: var(--typography-button-m-size);
|
|
3289
|
+
font-weight: var(--typography-button-m-weight);
|
|
3290
|
+
line-height: var(--typography-button-m-line-height);
|
|
3291
|
+
letter-spacing: var(--typography-button-m-letter-spacing);
|
|
3292
|
+
text-decoration-line: none;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
.IncodeButton.IncodeButtonLink.IncodeButtonInline:disabled {
|
|
3296
|
+
cursor: not-allowed;
|
|
3297
|
+
font-family: var(--typography-button-family);
|
|
3298
|
+
font-size: var(--typography-button-m-size);
|
|
3299
|
+
font-weight: var(--typography-button-m-weight);
|
|
3300
|
+
line-height: var(--typography-button-m-line-height);
|
|
3301
|
+
letter-spacing: var(--typography-button-m-letter-spacing);
|
|
3302
|
+
color: var(--color-button-tertiary-text-disabled, var(--button-tertiary-text-disabled));
|
|
3303
|
+
text-decoration-line: none;
|
|
3304
|
+
}
|
|
3305
|
+
|
|
3261
3306
|
.IncodeCheckbox {
|
|
3262
3307
|
flex-direction: column;
|
|
3263
3308
|
display: inline-flex;
|
|
@@ -4639,20 +4684,8 @@
|
|
|
4639
4684
|
display: flex;
|
|
4640
4685
|
}
|
|
4641
4686
|
|
|
4642
|
-
.IncodeOtpInputTimerText {
|
|
4643
|
-
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
4644
|
-
padding-block: var(--spacing-20, var(--spacing-20, 20px));
|
|
4645
|
-
text-align: center;
|
|
4646
|
-
font-family: var(--typography-button-family);
|
|
4647
|
-
font-size: var(--typography-button-m-size);
|
|
4648
|
-
font-weight: var(--typography-button-m-weight);
|
|
4649
|
-
line-height: var(--typography-button-m-line-height);
|
|
4650
|
-
letter-spacing: var(--typography-button-m-letter-spacing);
|
|
4651
|
-
color: var(--color-text-body-secondary, var(--text-body-500-secondary));
|
|
4652
|
-
}
|
|
4653
|
-
|
|
4654
4687
|
.IncodeOtpInputResendText {
|
|
4655
|
-
margin: var(--spacing-
|
|
4688
|
+
margin-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
4656
4689
|
text-align: center;
|
|
4657
4690
|
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
4658
4691
|
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
@@ -4661,33 +4694,12 @@
|
|
|
4661
4694
|
}
|
|
4662
4695
|
|
|
4663
4696
|
.IncodeOtpInputResendTextDisabled {
|
|
4697
|
+
margin-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
4664
4698
|
color: var(--color-button-tertiary-text-disabled, var(--button-tertiary-text-disabled));
|
|
4665
4699
|
}
|
|
4666
4700
|
|
|
4667
|
-
.
|
|
4668
|
-
|
|
4669
|
-
cursor: pointer;
|
|
4670
|
-
border-style: var(--tw-border-style);
|
|
4671
|
-
border-width: var(--border-width-none, var(--primitive-border-width-0));
|
|
4672
|
-
--tw-border-style: none;
|
|
4673
|
-
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
4674
|
-
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
4675
|
-
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
4676
|
-
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
4677
|
-
color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
4678
|
-
background-color: #0000;
|
|
4679
|
-
border-style: none;
|
|
4680
|
-
font-family: inherit;
|
|
4681
|
-
text-decoration-line: underline;
|
|
4682
|
-
}
|
|
4683
|
-
|
|
4684
|
-
.IncodeOtpInputLink:hover {
|
|
4685
|
-
color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
4686
|
-
}
|
|
4687
|
-
|
|
4688
|
-
.IncodeOtpInputLink:disabled {
|
|
4689
|
-
cursor: not-allowed;
|
|
4690
|
-
color: var(--color-button-tertiary-text-disabled, var(--button-tertiary-text-disabled));
|
|
4701
|
+
.IncodeOtpInputLoadingText {
|
|
4702
|
+
color: var(--color-button-tertiary-text-default, var(--button-tertiary-text-default));
|
|
4691
4703
|
}
|
|
4692
4704
|
|
|
4693
4705
|
.IncodeOtpInputComposed {
|
|
@@ -7870,6 +7882,10 @@
|
|
|
7870
7882
|
position: absolute;
|
|
7871
7883
|
}
|
|
7872
7884
|
|
|
7885
|
+
.IncodeCameraView .IncodeCameraViewVideo .IncodeCameraViewVideoElement.IncodeCameraViewVideoMirrored {
|
|
7886
|
+
transform: scaleX(-1);
|
|
7887
|
+
}
|
|
7888
|
+
|
|
7873
7889
|
.IncodeCameraOverlay {
|
|
7874
7890
|
inset: var(--spacing-0, var(--spacing-none, 0px));
|
|
7875
7891
|
z-index: 10;
|
|
@@ -7970,7 +7986,7 @@
|
|
|
7970
7986
|
}
|
|
7971
7987
|
|
|
7972
7988
|
.IncodeCameraFrame.IncodeCameraFrameCapturing, .IncodeCameraFrame.IncodeCameraFrameFocus {
|
|
7973
|
-
--frame-border-color: var(--border-
|
|
7989
|
+
--frame-border-color: var(--border-brand-500);
|
|
7974
7990
|
}
|
|
7975
7991
|
|
|
7976
7992
|
.IncodeCameraFrame.IncodeCameraFrameAnalyzing, .IncodeCameraFrame.IncodeCameraFrameSuccess {
|
|
@@ -8609,44 +8625,56 @@
|
|
|
8609
8625
|
position: relative;
|
|
8610
8626
|
}
|
|
8611
8627
|
|
|
8612
|
-
.
|
|
8613
|
-
pointer-events: none;
|
|
8614
|
-
overflow: hidden;
|
|
8615
|
-
}
|
|
8616
|
-
|
|
8617
|
-
.IncodePdfViewerFull {
|
|
8618
|
-
overflow: auto;
|
|
8619
|
-
}
|
|
8620
|
-
|
|
8621
|
-
.IncodePdfViewerPages {
|
|
8628
|
+
.IncodePdfViewer .IncodePdfViewerPages {
|
|
8622
8629
|
flex-direction: column;
|
|
8623
8630
|
align-items: center;
|
|
8624
8631
|
width: 100%;
|
|
8625
8632
|
display: flex;
|
|
8626
8633
|
}
|
|
8627
8634
|
|
|
8628
|
-
.
|
|
8629
|
-
|
|
8630
|
-
|
|
8635
|
+
.IncodePdfViewer .IncodePdfViewerCanvas {
|
|
8636
|
+
max-width: 100%;
|
|
8637
|
+
display: block;
|
|
8631
8638
|
}
|
|
8632
8639
|
|
|
8633
|
-
.
|
|
8634
|
-
|
|
8635
|
-
|
|
8640
|
+
.IncodePdfViewer .IncodePdfViewerTextLayer {
|
|
8641
|
+
clip-path: inset(50%);
|
|
8642
|
+
white-space: nowrap;
|
|
8643
|
+
border-width: 0;
|
|
8644
|
+
width: 1px;
|
|
8645
|
+
height: 1px;
|
|
8646
|
+
margin: -1px;
|
|
8647
|
+
padding: 0;
|
|
8648
|
+
position: absolute;
|
|
8649
|
+
overflow: hidden;
|
|
8636
8650
|
}
|
|
8637
8651
|
|
|
8638
|
-
.
|
|
8639
|
-
|
|
8640
|
-
|
|
8652
|
+
.IncodePdfViewer.IncodePdfViewerThumbnail {
|
|
8653
|
+
pointer-events: none;
|
|
8654
|
+
overflow: hidden;
|
|
8641
8655
|
}
|
|
8642
8656
|
|
|
8643
|
-
.IncodePdfViewerThumbnail .
|
|
8657
|
+
.IncodePdfViewer.IncodePdfViewerThumbnail .IncodePdfViewerPages {
|
|
8658
|
+
justify-content: center;
|
|
8659
|
+
height: 100%;
|
|
8660
|
+
}
|
|
8661
|
+
|
|
8662
|
+
.IncodePdfViewer.IncodePdfViewerThumbnail .IncodePdfViewerCanvas {
|
|
8644
8663
|
object-fit: cover;
|
|
8645
8664
|
width: 100%;
|
|
8646
8665
|
height: 100%;
|
|
8647
8666
|
}
|
|
8648
8667
|
|
|
8649
|
-
.
|
|
8668
|
+
.IncodePdfViewer.IncodePdfViewerFull {
|
|
8669
|
+
overflow: auto;
|
|
8670
|
+
}
|
|
8671
|
+
|
|
8672
|
+
.IncodePdfViewer.IncodePdfViewerFull .IncodePdfViewerPages {
|
|
8673
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
8674
|
+
padding-block: var(--spacing-4, var(--spacing-4, 4px));
|
|
8675
|
+
}
|
|
8676
|
+
|
|
8677
|
+
.IncodePdfViewer .IncodePdfViewerStatus {
|
|
8650
8678
|
pointer-events: none;
|
|
8651
8679
|
inset: var(--spacing-0, var(--spacing-none, 0px));
|
|
8652
8680
|
justify-content: center;
|
|
@@ -10,7 +10,8 @@ var variantClass = {
|
|
|
10
10
|
var sizeClass = {
|
|
11
11
|
L: "IncodeButtonL",
|
|
12
12
|
M: "IncodeButtonM",
|
|
13
|
-
S: "IncodeButtonS"
|
|
13
|
+
S: "IncodeButtonS",
|
|
14
|
+
inline: "IncodeButtonInline"
|
|
14
15
|
};
|
|
15
16
|
var Button = D((props, ref) => {
|
|
16
17
|
const { isLoading = false, variant = "primary", size = "L", icon, class: className, type = "button", children, disabled, ...rest } = props;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { _ as y, a as D, l as A, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { n as cn } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
+
//#region src/shared/cameraOverlay/cameraFrame.tsx
|
|
4
|
+
var CameraFrame = D(({ variant, aspectRatio, orientation = "horizontal", frameState = "idle", className, children }, ref) => {
|
|
5
|
+
const stateClass = `IncodeCameraFrame${frameState.charAt(0).toUpperCase()}${frameState.slice(1)}`;
|
|
6
|
+
return /* @__PURE__ */ u("div", {
|
|
7
|
+
ref,
|
|
8
|
+
class: cn("IncodeCameraFrame", variant === "fill" && "IncodeCameraFrameFill", variant === "locked" && "IncodeCameraFrameLocked", variant === "locked" && orientation === "horizontal" && "IncodeCameraFrameHorizontal", variant === "locked" && orientation === "vertical" && "IncodeCameraFrameVertical", stateClass, className),
|
|
9
|
+
style: aspectRatio ? { aspectRatio } : void 0,
|
|
10
|
+
"aria-hidden": true,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/shared/cameraOverlay/cameraView.tsx
|
|
16
|
+
var CameraView = ({ stream, children, videoRef: externalVideoRef, onPlaying, className, mirrored, ...rest }) => {
|
|
17
|
+
const internalVideoRef = A(null);
|
|
18
|
+
const setVideoRef = (el) => {
|
|
19
|
+
internalVideoRef.current = el;
|
|
20
|
+
if (typeof externalVideoRef === "function") externalVideoRef(el);
|
|
21
|
+
else if (externalVideoRef) externalVideoRef.current = el;
|
|
22
|
+
};
|
|
23
|
+
y(() => {
|
|
24
|
+
if (internalVideoRef.current && stream) {
|
|
25
|
+
internalVideoRef.current.srcObject = stream;
|
|
26
|
+
internalVideoRef.current.play().catch(() => {});
|
|
27
|
+
}
|
|
28
|
+
}, [stream]);
|
|
29
|
+
return /* @__PURE__ */ u("div", {
|
|
30
|
+
class: cn("IncodeCameraView", className),
|
|
31
|
+
...rest,
|
|
32
|
+
children: [/* @__PURE__ */ u("div", {
|
|
33
|
+
class: "IncodeCameraViewVideo",
|
|
34
|
+
children: /* @__PURE__ */ u("video", {
|
|
35
|
+
ref: setVideoRef,
|
|
36
|
+
autoplay: true,
|
|
37
|
+
playsInline: true,
|
|
38
|
+
muted: true,
|
|
39
|
+
onPlaying,
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
class: cn("IncodeCameraViewVideoElement", mirrored && "IncodeCameraViewVideoMirrored")
|
|
42
|
+
})
|
|
43
|
+
}), children]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { CameraFrame as n, CameraView as t };
|