@incodetech/web 0.0.0-dev-20260515-d3b786f → 0.0.0-dev-20260515-901da9a
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/id/id.es.js +102 -69
- package/package.json +2 -2
package/dist/id/id.es.js
CHANGED
|
@@ -4,15 +4,15 @@ import { o as c } from "../hooks-BVnGysT7.js";
|
|
|
4
4
|
import { t as l } from "../incodeComponent-Daiq9rHs.js";
|
|
5
5
|
import { n as u } from "../loadingIcon-BN5YRQUb.js";
|
|
6
6
|
import { t as d } from "../page-C1yT4DLb.js";
|
|
7
|
-
import { a as f, i as p, n as m, o as h, r as
|
|
8
|
-
import { t as
|
|
7
|
+
import { a as f, i as p, n as m, o as h, r as ee, s as te, t as g } from "../extensibility-13QgMjhf.js";
|
|
8
|
+
import { t as _ } from "../spinner-CKnjVHxw.js";
|
|
9
9
|
import "../spinner-B4dcie2T.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { g as
|
|
14
|
-
import { t as
|
|
15
|
-
import { a as
|
|
10
|
+
import { t as v } from "../transitionSpinner-Dr4DShjh.js";
|
|
11
|
+
import { t as y } from "../processing-BYfs2GoV.js";
|
|
12
|
+
import { t as b } from "../button-DcCUEn2n.js";
|
|
13
|
+
import { g as x, s as S } from "../icons-Cc7zwchP.js";
|
|
14
|
+
import { t as C } from "../successIcon-DbILeIz_.js";
|
|
15
|
+
import { a as w, o as T, r as E } from "../tutorial-DEXE3Q8-.js";
|
|
16
16
|
import { t as D } from "../pdfViewer-DwAXjYrY.js";
|
|
17
17
|
import { t as ne } from "../incodeModule-CHzKl22Y.js";
|
|
18
18
|
import { t as re } from "../id-laser-v-CTSbH2dU.js";
|
|
@@ -74,7 +74,7 @@ var N = [
|
|
|
74
74
|
children: n(e)
|
|
75
75
|
})]
|
|
76
76
|
}, e))
|
|
77
|
-
}), /* @__PURE__ */ s(
|
|
77
|
+
}), /* @__PURE__ */ s(b, {
|
|
78
78
|
class: "IncodeAgeVerificationButton",
|
|
79
79
|
onClick: a,
|
|
80
80
|
isLoading: r,
|
|
@@ -133,7 +133,7 @@ var I = ({ state: t }) => {
|
|
|
133
133
|
className: "IncodeDigitalIdUploadDocumentPreviewPdf"
|
|
134
134
|
}) : null, /* @__PURE__ */ s("div", {
|
|
135
135
|
class: "IncodeDigitalIdUploadLaserOverlay",
|
|
136
|
-
children: /* @__PURE__ */ s(
|
|
136
|
+
children: /* @__PURE__ */ s(w, {
|
|
137
137
|
animationData: re,
|
|
138
138
|
loop: !0
|
|
139
139
|
})
|
|
@@ -173,7 +173,7 @@ var I = ({ state: t }) => {
|
|
|
173
173
|
/* @__PURE__ */ s("div", {
|
|
174
174
|
class: "IncodeDigitalIdUploadErrorIcon",
|
|
175
175
|
"aria-hidden": "true",
|
|
176
|
-
children: /* @__PURE__ */ s(
|
|
176
|
+
children: /* @__PURE__ */ s(x, { size: 40 })
|
|
177
177
|
}),
|
|
178
178
|
o ? /* @__PURE__ */ s("div", {
|
|
179
179
|
class: "IncodeDigitalIdUploadErrorPreview",
|
|
@@ -191,10 +191,10 @@ var I = ({ state: t }) => {
|
|
|
191
191
|
]
|
|
192
192
|
}), /* @__PURE__ */ s("div", {
|
|
193
193
|
class: "IncodeDigitalIdUploadFooter",
|
|
194
|
-
children: [a ? null : /* @__PURE__ */ s(
|
|
194
|
+
children: [a ? null : /* @__PURE__ */ s(b, {
|
|
195
195
|
onClick: () => t.digitalUploadRetry(),
|
|
196
196
|
children: r("common.tryAgain")
|
|
197
|
-
}), /* @__PURE__ */ s(
|
|
197
|
+
}), /* @__PURE__ */ s(b, {
|
|
198
198
|
variant: a ? "primary" : "secondary",
|
|
199
199
|
onClick: () => t.digitalUploadScanInstead(),
|
|
200
200
|
children: r("idv2.digitalIdUpload.errorScreen.scanId")
|
|
@@ -245,10 +245,10 @@ var I = ({ state: t }) => {
|
|
|
245
245
|
]
|
|
246
246
|
}), /* @__PURE__ */ s("div", {
|
|
247
247
|
class: "IncodeDigitalIdUploadFooter",
|
|
248
|
-
children: [/* @__PURE__ */ s(
|
|
248
|
+
children: [/* @__PURE__ */ s(b, {
|
|
249
249
|
onClick: () => t.digitalUploadConfirm(),
|
|
250
250
|
children: r("idv2.digitalIdUpload.reviewScreen.continue")
|
|
251
|
-
}), /* @__PURE__ */ s(
|
|
251
|
+
}), /* @__PURE__ */ s(b, {
|
|
252
252
|
variant: "secondary",
|
|
253
253
|
onClick: () => {
|
|
254
254
|
t.digitalUploadReplace(), a.current?.click();
|
|
@@ -442,7 +442,7 @@ var I = ({ state: t }) => {
|
|
|
442
442
|
})]
|
|
443
443
|
}), /* @__PURE__ */ s("div", {
|
|
444
444
|
class: "IncodeDigitalIdUploadFooter",
|
|
445
|
-
children: /* @__PURE__ */ s(
|
|
445
|
+
children: /* @__PURE__ */ s(b, {
|
|
446
446
|
onClick: () => o.current?.click(),
|
|
447
447
|
children: a("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
|
|
448
448
|
})
|
|
@@ -457,7 +457,7 @@ var I = ({ state: t }) => {
|
|
|
457
457
|
"data-testid": "digital-id-upload-file-too-large",
|
|
458
458
|
children: [/* @__PURE__ */ s("div", { class: "IncodeDigitalIdUploadBody" }), /* @__PURE__ */ s("div", {
|
|
459
459
|
class: "IncodeDigitalIdUploadFooter",
|
|
460
|
-
children: /* @__PURE__ */ s(
|
|
460
|
+
children: /* @__PURE__ */ s(b, {
|
|
461
461
|
onClick: () => t.digitalUploadChooseAnother(),
|
|
462
462
|
children: n("idv2.digitalIdUpload.fileTooLargeScreen.cta")
|
|
463
463
|
})
|
|
@@ -469,7 +469,7 @@ var I = ({ state: t }) => {
|
|
|
469
469
|
titleTopSlot: /* @__PURE__ */ s("div", {
|
|
470
470
|
class: "IncodeDigitalIdUploadSuccessIcon",
|
|
471
471
|
"aria-hidden": "true",
|
|
472
|
-
children: /* @__PURE__ */ s(
|
|
472
|
+
children: /* @__PURE__ */ s(C, { size: 32 })
|
|
473
473
|
}),
|
|
474
474
|
title: r("idv2.digitalIdUpload.successfullyProcessed"),
|
|
475
475
|
subtitle: r("idv2.digitalIdUpload.loadingSuccess.letsContinue"),
|
|
@@ -498,7 +498,7 @@ var I = ({ state: t }) => {
|
|
|
498
498
|
]
|
|
499
499
|
}), /* @__PURE__ */ s("div", {
|
|
500
500
|
class: "IncodeDigitalIdUploadFooter",
|
|
501
|
-
children: /* @__PURE__ */ s(
|
|
501
|
+
children: /* @__PURE__ */ s(b, {
|
|
502
502
|
onClick: () => t.digitalUploadNextStep(),
|
|
503
503
|
children: r("idv2.digitalIdUpload.continue")
|
|
504
504
|
})
|
|
@@ -520,7 +520,7 @@ var I = ({ state: t }) => {
|
|
|
520
520
|
})
|
|
521
521
|
}), /* @__PURE__ */ s("div", {
|
|
522
522
|
class: "IncodeDigitalIdUploadFooter",
|
|
523
|
-
children: /* @__PURE__ */ s(
|
|
523
|
+
children: /* @__PURE__ */ s(b, {
|
|
524
524
|
onClick: () => t.digitalUploadNextStep(),
|
|
525
525
|
children: n("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
|
|
526
526
|
})
|
|
@@ -544,7 +544,7 @@ var I = ({ state: t }) => {
|
|
|
544
544
|
}, p = (e) => {
|
|
545
545
|
let t = e.target, n = t.files?.[0];
|
|
546
546
|
n && c(n), t.value = "";
|
|
547
|
-
}, m = () => r ? /* @__PURE__ */ s(
|
|
547
|
+
}, m = () => r ? /* @__PURE__ */ s(_, { size: "small" }) : n ? /* @__PURE__ */ s(C, { size: 40 }) : /* @__PURE__ */ s(S, {
|
|
548
548
|
variant: "xs",
|
|
549
549
|
size: 16
|
|
550
550
|
});
|
|
@@ -566,6 +566,7 @@ var I = ({ state: t }) => {
|
|
|
566
566
|
onClick: f,
|
|
567
567
|
disabled: d,
|
|
568
568
|
"aria-label": t,
|
|
569
|
+
"aria-busy": r || void 0,
|
|
569
570
|
"data-testid": o,
|
|
570
571
|
children: m()
|
|
571
572
|
}),
|
|
@@ -595,7 +596,7 @@ var I = ({ state: t }) => {
|
|
|
595
596
|
d: "M5.02231 16.1109C5.58996 15.3667 6.34651 14.7807 7.21692 14.4111H7.22173C6.74461 13.9847 6.41033 13.4271 6.26277 12.8114C6.11521 12.1957 6.16125 11.5507 6.39486 10.9611C6.62847 10.3715 7.03873 9.86478 7.5718 9.50748C8.10487 9.15018 8.73583 8.95898 9.3819 8.95898C10.028 8.95898 10.6589 9.15018 11.192 9.50748C11.7251 9.86478 12.1353 10.3715 12.3689 10.9611C12.6025 11.5507 12.6486 12.1957 12.501 12.8114C12.3535 13.4271 12.0192 13.9847 11.5421 14.4111C12.4125 14.7807 13.169 15.3667 13.7367 16.1109C13.8083 16.2041 13.852 16.315 13.8628 16.4311C13.8736 16.5472 13.8511 16.664 13.7979 16.7683C13.7446 16.8727 13.6627 16.9604 13.5614 17.0217C13.46 17.0829 13.3432 17.1153 13.2241 17.1152H5.53492C5.41579 17.1153 5.29898 17.0829 5.19762 17.0217C5.09626 16.9604 5.01436 16.8727 4.96111 16.7683C4.90787 16.664 4.88539 16.5472 4.8962 16.4311C4.90701 16.315 4.95068 16.2041 5.02231 16.1109Z",
|
|
596
597
|
fill: "white"
|
|
597
598
|
})]
|
|
598
|
-
}),
|
|
599
|
+
}), ae = () => /* @__PURE__ */ s("svg", {
|
|
599
600
|
viewBox: "0 0 27 27",
|
|
600
601
|
fill: "none",
|
|
601
602
|
"aria-hidden": "true",
|
|
@@ -603,7 +604,7 @@ var I = ({ state: t }) => {
|
|
|
603
604
|
d: "M22.022 4.07812C22.4545 4.07818 22.8694 4.24985 23.1753 4.55566C23.4811 4.86149 23.6527 5.27649 23.6528 5.70898V20.3906C23.6528 20.8232 23.4811 21.238 23.1753 21.5439C22.8694 21.8498 22.4545 22.0214 22.022 22.0215H4.07764C3.64514 22.0214 3.23014 21.8498 2.92432 21.5439C2.61852 21.238 2.44678 20.8232 2.44678 20.3906V5.70898C2.44688 5.27649 2.61849 4.86149 2.92432 4.55566C3.23014 4.24984 3.64514 4.07823 4.07764 4.07812H22.022ZM5.49658 17C5.28034 17.0001 5.07332 17.0863 4.92041 17.2393C4.7675 17.3922 4.6812 17.5992 4.68115 17.8154C4.68115 18.0317 4.76745 18.2396 4.92041 18.3926C5.0733 18.5453 5.28047 18.6308 5.49658 18.6309H11.9995C12.2158 18.6309 12.4237 18.5455 12.5767 18.3926C12.7296 18.2396 12.8159 18.0317 12.8159 17.8154C12.8159 17.5993 12.7295 17.3922 12.5767 17.2393C12.4237 17.0863 12.2158 17 11.9995 17H5.49658ZM5.49658 7.60352C5.28047 7.60357 5.0733 7.68907 4.92041 7.8418C4.76745 7.99476 4.68115 8.20263 4.68115 8.41895C4.68116 8.46917 4.68462 10.4372 4.69189 10.5498C4.71927 10.9728 5.05459 11.289 5.49658 11.2891H20.1841C20.5995 11.2891 20.9497 10.9654 20.981 10.5498C20.9934 10.3844 20.9995 8.48197 20.9995 8.41895C20.9995 8.20263 20.9142 7.99476 20.7612 7.8418C20.6083 7.68884 20.4004 7.60352 20.1841 7.60352H5.49658Z",
|
|
604
605
|
fill: "currentColor"
|
|
605
606
|
})
|
|
606
|
-
}),
|
|
607
|
+
}), X = () => /* @__PURE__ */ s("svg", {
|
|
607
608
|
viewBox: "0 0 27 27",
|
|
608
609
|
fill: "none",
|
|
609
610
|
"aria-hidden": "true",
|
|
@@ -621,46 +622,70 @@ var I = ({ state: t }) => {
|
|
|
621
622
|
fill: "currentColor"
|
|
622
623
|
})
|
|
623
624
|
]
|
|
624
|
-
}),
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
625
|
+
}), oe = {
|
|
626
|
+
front: {
|
|
627
|
+
idle: "manualIdUpload.frontId",
|
|
628
|
+
uploading: "manualIdUpload.uploadingFrontId",
|
|
629
|
+
uploaded: "manualIdUpload.frontIdUploaded"
|
|
630
|
+
},
|
|
631
|
+
back: {
|
|
632
|
+
idle: "manualIdUpload.backId",
|
|
633
|
+
uploading: "manualIdUpload.uploadingBackId",
|
|
634
|
+
uploaded: "manualIdUpload.backIdUploaded"
|
|
635
|
+
},
|
|
636
|
+
passport: {
|
|
637
|
+
idle: "manualIdUpload.passport",
|
|
638
|
+
uploading: "manualIdUpload.uploadingPassport",
|
|
639
|
+
uploaded: "manualIdUpload.passportUploaded"
|
|
640
|
+
}
|
|
641
|
+
}, Z = ({ mode: t, manager: n, state: r }) => {
|
|
642
|
+
let { t: i } = e(), a = (e, t, n) => {
|
|
643
|
+
let r = oe[e];
|
|
644
|
+
return i(t ? r.uploading : n ? r.uploaded : r.idle);
|
|
645
|
+
};
|
|
646
|
+
if (t === "passport") {
|
|
647
|
+
let e = r.uploadingSide === "passport";
|
|
648
|
+
return /* @__PURE__ */ s("div", {
|
|
649
|
+
class: "IncodeManualUploadTab",
|
|
650
|
+
children: /* @__PURE__ */ s(q, {
|
|
651
|
+
icon: /* @__PURE__ */ s(X, {}),
|
|
652
|
+
label: a("passport", e, r.passportUploaded),
|
|
653
|
+
uploaded: r.passportUploaded,
|
|
654
|
+
uploading: e,
|
|
655
|
+
testId: "manual-upload-passport",
|
|
656
|
+
onFile: (e) => n.manualUploadSelectFile("passport", e)
|
|
657
|
+
})
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
let o = r.uploadingSide === "front", c = r.uploadingSide === "back";
|
|
661
|
+
return /* @__PURE__ */ s("div", {
|
|
637
662
|
class: "IncodeManualUploadTab",
|
|
638
663
|
children: [/* @__PURE__ */ s(q, {
|
|
639
664
|
icon: /* @__PURE__ */ s(Y, {}),
|
|
640
|
-
label:
|
|
665
|
+
label: a("front", o, r.frontUploaded),
|
|
641
666
|
uploaded: r.frontUploaded,
|
|
642
|
-
uploading:
|
|
667
|
+
uploading: o,
|
|
643
668
|
testId: "manual-upload-front",
|
|
644
669
|
onFile: (e) => n.manualUploadSelectFile("front", e)
|
|
645
670
|
}), r.showBackSlot && /* @__PURE__ */ s(q, {
|
|
646
|
-
icon: /* @__PURE__ */ s(
|
|
647
|
-
label:
|
|
671
|
+
icon: /* @__PURE__ */ s(ae, {}),
|
|
672
|
+
label: a("back", c, r.backUploaded),
|
|
648
673
|
uploaded: r.backUploaded,
|
|
649
|
-
uploading:
|
|
674
|
+
uploading: c,
|
|
650
675
|
testId: "manual-upload-back",
|
|
651
676
|
onFile: (e) => n.manualUploadSelectFile("back", e)
|
|
652
677
|
})]
|
|
653
678
|
});
|
|
654
|
-
},
|
|
679
|
+
}, se = (e) => e === "id" || e === "passport", ce = ({ manager: t, state: n }) => {
|
|
655
680
|
let { t: r } = e();
|
|
656
|
-
if (n.phase === "exhausted") return /* @__PURE__ */ s(
|
|
681
|
+
if (n.phase === "exhausted") return /* @__PURE__ */ s(T, {
|
|
657
682
|
title: r("manualIdUpload.tooManyTries"),
|
|
658
683
|
description: r("manualIdUpload.contactedByAdmin"),
|
|
659
684
|
attemptsRemaining: 0,
|
|
660
685
|
onButtonClick: () => t.manualUploadContinue(),
|
|
661
686
|
"data-testid": "manual-upload-exhausted"
|
|
662
687
|
});
|
|
663
|
-
if (n.phase === "uploading") return /* @__PURE__ */ s(
|
|
688
|
+
if (n.phase === "uploading") return /* @__PURE__ */ s(_, {
|
|
664
689
|
fullScreen: !0,
|
|
665
690
|
size: "large",
|
|
666
691
|
title: r("manualIdUpload.holdOnASec"),
|
|
@@ -668,7 +693,7 @@ var I = ({ state: t }) => {
|
|
|
668
693
|
className: "IncodeManualUploadLoading"
|
|
669
694
|
});
|
|
670
695
|
let i = n.showIdTab && n.showPassportTab, a = (e) => {
|
|
671
|
-
|
|
696
|
+
se(e) && t.manualUploadChangeTab(e);
|
|
672
697
|
}, o = n.activeTab === "passport" ? ["hintPassportReadable", "hintSharpAndGlareFree"] : ["hintIdReadable", "hintSharpAndGlareFree"];
|
|
673
698
|
return /* @__PURE__ */ s(d, {
|
|
674
699
|
title: r("manualIdUpload.title"),
|
|
@@ -677,14 +702,14 @@ var I = ({ state: t }) => {
|
|
|
677
702
|
className: "IncodeManualUploadPage",
|
|
678
703
|
children: [/* @__PURE__ */ s("div", {
|
|
679
704
|
class: "IncodeManualUploadContainer",
|
|
680
|
-
children: [/* @__PURE__ */ s(O, {
|
|
705
|
+
children: [i ? /* @__PURE__ */ s(O, {
|
|
681
706
|
value: n.activeTab,
|
|
682
707
|
onValueChange: a,
|
|
683
|
-
listClassName:
|
|
708
|
+
listClassName: "IncodeManualUploadTabsList",
|
|
684
709
|
triggerClassName: "IncodeManualUploadTabTrigger",
|
|
685
710
|
activeTriggerClassName: "IncodeManualUploadTabTrigger--active",
|
|
686
711
|
children: [
|
|
687
|
-
|
|
712
|
+
/* @__PURE__ */ s(O.List, {
|
|
688
713
|
label: r("manualIdUpload.tabsLabel"),
|
|
689
714
|
children: [/* @__PURE__ */ s(O.Trigger, {
|
|
690
715
|
value: "id",
|
|
@@ -693,29 +718,37 @@ var I = ({ state: t }) => {
|
|
|
693
718
|
value: "passport",
|
|
694
719
|
children: r("manualIdUpload.passport")
|
|
695
720
|
})]
|
|
696
|
-
})
|
|
697
|
-
|
|
721
|
+
}),
|
|
722
|
+
/* @__PURE__ */ s(O.Content, {
|
|
698
723
|
value: "id",
|
|
699
724
|
children: /* @__PURE__ */ s(Z, {
|
|
700
725
|
mode: "id",
|
|
701
726
|
manager: t,
|
|
702
727
|
state: n
|
|
703
728
|
})
|
|
704
|
-
})
|
|
705
|
-
|
|
729
|
+
}),
|
|
730
|
+
/* @__PURE__ */ s(O.Content, {
|
|
706
731
|
value: "passport",
|
|
707
732
|
children: /* @__PURE__ */ s(Z, {
|
|
708
733
|
mode: "passport",
|
|
709
734
|
manager: t,
|
|
710
735
|
state: n
|
|
711
736
|
})
|
|
712
|
-
})
|
|
737
|
+
})
|
|
713
738
|
]
|
|
714
|
-
})
|
|
739
|
+
}) : n.showIdTab ? /* @__PURE__ */ s(Z, {
|
|
740
|
+
mode: "id",
|
|
741
|
+
manager: t,
|
|
742
|
+
state: n
|
|
743
|
+
}) : n.showPassportTab ? /* @__PURE__ */ s(Z, {
|
|
744
|
+
mode: "passport",
|
|
745
|
+
manager: t,
|
|
746
|
+
state: n
|
|
747
|
+
}) : null, n.errorKey ? /* @__PURE__ */ s("div", {
|
|
715
748
|
class: "IncodeManualUploadError",
|
|
716
749
|
role: "alert",
|
|
717
750
|
"data-testid": "manual-upload-error",
|
|
718
|
-
children: [/* @__PURE__ */ s(
|
|
751
|
+
children: [/* @__PURE__ */ s(x, { size: 16 }), /* @__PURE__ */ s("p", { children: r(n.errorKey) })]
|
|
719
752
|
}) : null]
|
|
720
753
|
}), /* @__PURE__ */ s("div", {
|
|
721
754
|
class: "IncodeManualUploadFooter",
|
|
@@ -723,7 +756,7 @@ var I = ({ state: t }) => {
|
|
|
723
756
|
class: "IncodeManualUploadHintCard",
|
|
724
757
|
"data-testid": "manual-upload-hint-card",
|
|
725
758
|
children: o.map((e) => /* @__PURE__ */ s("li", { children: r(`manualIdUpload.${e}`) }, e))
|
|
726
|
-
}), /* @__PURE__ */ s(
|
|
759
|
+
}), /* @__PURE__ */ s(b, {
|
|
727
760
|
onClick: () => t.manualUploadContinue(),
|
|
728
761
|
disabled: !n.canContinue,
|
|
729
762
|
"data-testid": "manual-upload-continue",
|
|
@@ -732,35 +765,35 @@ var I = ({ state: t }) => {
|
|
|
732
765
|
})]
|
|
733
766
|
});
|
|
734
767
|
}, Q = !1;
|
|
735
|
-
function
|
|
768
|
+
function le() {
|
|
736
769
|
Q || (Q = !0, import("../id-tutorial-DGcHGLSH.js"), import("../back-tutorial-CRhanZzU.js"), import("../passport-tutorial-WZtTidDg.js"));
|
|
737
770
|
}
|
|
738
771
|
//#endregion
|
|
739
772
|
//#region src/modules/id/id.tsx
|
|
740
|
-
var
|
|
773
|
+
var ue = n(() => import("../mandatoryConsent-XDDP9kUS.js").then((e) => ({ default: e.MandatoryConsent }))), de = ({ config: n, manager: r, onFinish: i, onError: o }) => {
|
|
741
774
|
M();
|
|
742
775
|
let { t: l } = e();
|
|
743
776
|
t(() => {
|
|
744
|
-
|
|
777
|
+
le();
|
|
745
778
|
}, []);
|
|
746
779
|
let [u, d] = c(() => {
|
|
747
780
|
if (r) return r;
|
|
748
781
|
if (!n) throw Error("ID capture config is required when no manager is provided");
|
|
749
782
|
return k({ config: n });
|
|
750
783
|
}, { manageLifecycle: !r });
|
|
751
|
-
return u.status === "idle" ? /* @__PURE__ */ s(
|
|
784
|
+
return u.status === "idle" ? /* @__PURE__ */ s(v, { hideText: !0 }) : u.status === "loading" ? /* @__PURE__ */ s(v, { spinnerConfig: { subtitle: l("loadingCircle.preparingCamera") } }) : u.status === "chooser" ? /* @__PURE__ */ s(m, {
|
|
752
785
|
manager: d,
|
|
753
786
|
state: u
|
|
754
|
-
}) : u.status === "ageVerification" ? /* @__PURE__ */ s(P, { manager: d }) : u.status === "tutorial" ? /* @__PURE__ */ s(
|
|
787
|
+
}) : u.status === "ageVerification" ? /* @__PURE__ */ s(P, { manager: d }) : u.status === "tutorial" ? /* @__PURE__ */ s(ee, {
|
|
755
788
|
manager: d,
|
|
756
789
|
state: u
|
|
757
|
-
}) : u.status === "permissions" ? /* @__PURE__ */ s(
|
|
790
|
+
}) : u.status === "permissions" ? /* @__PURE__ */ s(E, {
|
|
758
791
|
manager: d,
|
|
759
792
|
permissionStatus: u.permissionStatus
|
|
760
|
-
}) : u.status === "frontFinished" ? /* @__PURE__ */ s(
|
|
793
|
+
}) : u.status === "frontFinished" ? /* @__PURE__ */ s(g, {
|
|
761
794
|
manager: d,
|
|
762
795
|
direction: "toBack"
|
|
763
|
-
}) : u.status === "backFinished" ? /* @__PURE__ */ s(
|
|
796
|
+
}) : u.status === "backFinished" ? /* @__PURE__ */ s(g, {
|
|
764
797
|
manager: d,
|
|
765
798
|
direction: "toFront"
|
|
766
799
|
}) : u.status === "capture" ? /* @__PURE__ */ s(p, {
|
|
@@ -769,26 +802,26 @@ var le = n(() => import("../mandatoryConsent-XDDP9kUS.js").then((e) => ({ defaul
|
|
|
769
802
|
onFinish: () => i?.()
|
|
770
803
|
}) : u.status === "mandatoryConsent" ? /* @__PURE__ */ s(a, {
|
|
771
804
|
fallback: null,
|
|
772
|
-
children: /* @__PURE__ */ s(
|
|
805
|
+
children: /* @__PURE__ */ s(ue, {
|
|
773
806
|
config: { consentType: u.regulationType },
|
|
774
807
|
onFinish: () => d.acceptMandatoryConsent(),
|
|
775
808
|
onError: () => d.cancelMandatoryConsent()
|
|
776
809
|
})
|
|
777
|
-
}) : u.status === "processing" ? /* @__PURE__ */ s(
|
|
810
|
+
}) : u.status === "processing" ? /* @__PURE__ */ s(y, {}) : u.status === "expired" ? /* @__PURE__ */ s(h, {
|
|
778
811
|
manager: d,
|
|
779
812
|
attemptsRemaining: u.attemptsRemaining
|
|
780
|
-
}) : u.status === "expiredExhausted" ? /* @__PURE__ */ s(f, { manager: d }) : u.status === "finished" ? (i?.(), null) : u.status === "closed" ? (o?.(void 0), null) : u.status === "error" ? /* @__PURE__ */ s(
|
|
813
|
+
}) : u.status === "expiredExhausted" ? /* @__PURE__ */ s(f, { manager: d }) : u.status === "finished" ? (i?.(), null) : u.status === "closed" ? (o?.(void 0), null) : u.status === "error" ? /* @__PURE__ */ s(te, {
|
|
781
814
|
manager: d,
|
|
782
815
|
state: u,
|
|
783
816
|
onError: o
|
|
784
|
-
}) : u.status === "manualUpload" ? /* @__PURE__ */ s(
|
|
817
|
+
}) : u.status === "manualUpload" ? /* @__PURE__ */ s(ce, {
|
|
785
818
|
manager: d,
|
|
786
819
|
state: u
|
|
787
820
|
}) : u.status === "digitalIdUpload" ? /* @__PURE__ */ s(K, {
|
|
788
821
|
manager: d,
|
|
789
822
|
state: u
|
|
790
823
|
}) : null;
|
|
791
|
-
}, $ = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ s(l, { children: e || t ? /* @__PURE__ */ s(
|
|
824
|
+
}, $ = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ s(l, { children: e || t ? /* @__PURE__ */ s(de, {
|
|
792
825
|
config: e,
|
|
793
826
|
manager: t,
|
|
794
827
|
onFinish: n,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260515-
|
|
3
|
+
"version": "0.0.0-dev-20260515-901da9a",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"qrcode": "^1.5.4",
|
|
240
240
|
"signature_pad": "^5.1.3",
|
|
241
241
|
"tailwindcss": "^4.1.17",
|
|
242
|
-
"@incodetech/core": "0.0.0-dev-20260515-
|
|
242
|
+
"@incodetech/core": "0.0.0-dev-20260515-901da9a"
|
|
243
243
|
},
|
|
244
244
|
"devDependencies": {
|
|
245
245
|
"@microsoft/api-extractor": "^7.53.3",
|