@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4580f1c

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.
Files changed (162) hide show
  1. package/dist/AsYouType-DPWqJvFu.js +2482 -0
  2. package/dist/addressAutocomplete-B3f6PGTT.js +108 -0
  3. package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
  4. package/dist/antifraud/antifraud.es.js +17 -18
  5. package/dist/antifraud/styles.css +1 -1
  6. package/dist/authentication/authentication.es.js +28 -50
  7. package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
  8. package/dist/back-tutorial-BNTyW-1N.js +14584 -0
  9. package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
  10. package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
  11. package/dist/base.css +327 -67
  12. package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
  13. package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
  14. package/dist/button-DhL5eRT3.js +123 -0
  15. package/dist/checkbox-l8NxPf4o.js +85 -0
  16. package/dist/consent/consent.es.js +82 -89
  17. package/dist/consent/styles.css +1 -1
  18. package/dist/countries-y2ydYDhN.js +8323 -0
  19. package/dist/curp-validation/curp-validation.es.js +271 -313
  20. package/dist/curp-validation/styles.css +1 -1
  21. package/dist/dateInputComposed-B9WqdYx9.js +2 -0
  22. package/dist/dateInputComposed-ndsGHX1M.js +94 -0
  23. package/dist/defineProperty-brqHEHA_.js +39 -0
  24. package/dist/document-capture/styles.css +1 -1
  25. package/dist/documentCapture-wDgRLdon.js +784 -0
  26. package/dist/dropdownComposed-_Ey7wJNG.js +258 -0
  27. package/dist/ekyb/ekyb.es.js +2 -0
  28. package/dist/ekyb/styles.css +1 -1
  29. package/dist/ekybModule-BBOm1y49.js +2 -0
  30. package/dist/ekybModule-fz6i9ZRt.js +286 -0
  31. package/dist/ekyc/ekyc.es.js +2 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-SeTFG3AJ.js +233 -0
  34. package/dist/ekycModule-hxIcNX8n.js +2 -0
  35. package/dist/email/email.es.js +110 -154
  36. package/dist/email/styles.css +1 -1
  37. package/dist/extensibility-DJihqIzM.js +2248 -0
  38. package/dist/extensibility.es.js +22 -150
  39. package/dist/face-match/styles.css +147 -73
  40. package/dist/faceMatch-DH8sLx34.js +191 -0
  41. package/dist/flip-animation-DOJzdXB-.js +6983 -0
  42. package/dist/flow/flow.es.js +2273 -2613
  43. package/dist/flow/styles.css +432 -73
  44. package/dist/formField-BRTbY8w9.js +100 -0
  45. package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
  46. package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
  47. package/dist/frontdevicelottie-DadDp6be.js +17302 -0
  48. package/dist/geolocation/geolocation.es.js +852 -832
  49. package/dist/geolocation/styles.css +1 -1
  50. package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
  51. package/dist/governmentValidation/governmentValidation.es.js +100 -106
  52. package/dist/governmentValidation/styles.css +1 -1
  53. package/dist/i18n-DZOHbK9q.js +1916 -0
  54. package/dist/icons-BHbofCgJ.js +245 -0
  55. package/dist/id/id.es.js +53 -59
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BWyU3VgL.js +467 -0
  58. package/dist/id-laser-v-JiWXUlv0.js +467 -0
  59. package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
  60. package/dist/incodeModule-Bf6yJ8RB.js +18 -0
  61. package/dist/index.es.js +4 -25
  62. package/dist/inputComposed-BhbfD8Ru.js +77 -0
  63. package/dist/loadingIcon-CeQt7Zgb.js +146 -0
  64. package/dist/mandatoryConsent-LBS8E0rj.js +101 -0
  65. package/dist/numberedStep-CQVRixRP.js +11 -0
  66. package/dist/otpInput-CDIG9el7.js +143 -0
  67. package/dist/page-SvlJWUfz.js +61 -0
  68. package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
  69. package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
  70. package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
  71. package/dist/phone/phone.es.js +87 -121
  72. package/dist/phone/styles.css +1 -1
  73. package/dist/phoneInput-C9T_8FJt.js +138 -0
  74. package/dist/phoneInputComposed-B-0zieIW.js +407 -0
  75. package/dist/processing-B5zhNH6I.js +15 -0
  76. package/dist/redirect-to-mobile/styles.css +1 -1
  77. package/dist/richText-Db0PfpkE.js +1973 -0
  78. package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
  79. package/dist/selfie/selfie.es.js +29 -50
  80. package/dist/selfie/styles.css +170 -66
  81. package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
  82. package/dist/setup-Dq2bzNKH.js +15 -0
  83. package/dist/signature/signature.es.js +557 -707
  84. package/dist/signature/styles.css +1 -1
  85. package/dist/spacer-DCljE53A.js +59 -0
  86. package/dist/spinner-Bk0YuoLu.js +1 -0
  87. package/dist/spinner-snIGzmm8.js +41 -0
  88. package/dist/successIcon-AHrfmJvv.js +17 -0
  89. package/dist/tutorial-DNOd11tg.js +2780 -0
  90. package/dist/types/ekyb.d.ts +29 -0
  91. package/dist/types/ekyc.d.ts +29 -0
  92. package/dist/types/index.d.ts +0 -8
  93. package/dist/typography-BNbFNFek.js +1 -0
  94. package/dist/typography-DvHeVWfY.js +29 -0
  95. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  96. package/dist/vendor-preact-D6SntenC.js +958 -0
  97. package/dist/warningIcon-Cvj-ayg1.js +17 -0
  98. package/package.json +8 -11
  99. package/dist/AsYouType-D1H_js4X.js +0 -2607
  100. package/dist/Trans-aTzdT_SA.js +0 -55
  101. package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
  102. package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
  103. package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
  104. package/dist/back-tutorial-An9AcMSe.js +0 -29
  105. package/dist/back-vertical-hint-CNieqiCr.js +0 -5
  106. package/dist/backdevicelottie-B4NgyWmX.js +0 -29
  107. package/dist/blurdevicelottie-_BZRug1c.js +0 -29
  108. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  109. package/dist/button-CE9kRlem.js +0 -184
  110. package/dist/cameraView-C2X7klNb.js +0 -55
  111. package/dist/captureOverlay-tCb4R4WE.js +0 -592
  112. package/dist/checkbox-B5X-mfqq.js +0 -137
  113. package/dist/chevronDown-DSHaPKbi.js +0 -23
  114. package/dist/closeIcon-9Hc97omv.js +0 -28
  115. package/dist/countries-DfLkrF0x.js +0 -616
  116. package/dist/dateInputComposed-C7PCzh-U.js +0 -173
  117. package/dist/documentCapture-C0mO-RGE.js +0 -692
  118. package/dist/dropdownComposed-BpinYlrx.js +0 -367
  119. package/dist/ekybModule-Dr6LJUg-.js +0 -357
  120. package/dist/ekycModule-C3mswduI.js +0 -291
  121. package/dist/errorContent-Cb8nmQAE.js +0 -44
  122. package/dist/errorIcon-DEARBrGx.js +0 -26
  123. package/dist/faceMatch-DbDp7D3d.js +0 -237
  124. package/dist/fileIcon-CCSvS10T.js +0 -52
  125. package/dist/flip-animation-COR596wy.js +0 -29
  126. package/dist/flipAnimation-BqV462TA.js +0 -2059
  127. package/dist/formField-CP6wDdfA.js +0 -106
  128. package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
  129. package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
  130. package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
  131. package/dist/glaredevicelottie-DLuIStvb.js +0 -29
  132. package/dist/id-laser-h-BBV3r3rz.js +0 -29
  133. package/dist/id-laser-v-BTHJaSfx.js +0 -29
  134. package/dist/id-tutorial-B-F5Q28m.js +0 -29
  135. package/dist/incodeModule-C4XIllao.js +0 -96
  136. package/dist/inputComposed-fUbAGrDy.js +0 -103
  137. package/dist/instance-BWYzq8dk.js +0 -2163
  138. package/dist/loadingIcon-DmuPXh70.js +0 -195
  139. package/dist/mandatoryConsent-5xPI0cor.js +0 -94
  140. package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
  141. package/dist/numberedStep-DwUB__mh.js +0 -5
  142. package/dist/otpInput-BFXhqFRT.js +0 -156
  143. package/dist/page-SrUl0qtN.js +0 -69
  144. package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
  145. package/dist/passport-tutorial-CaYBFTqt.js +0 -29
  146. package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
  147. package/dist/permissions-DT4Fz9MR.js +0 -709
  148. package/dist/phoneInput-CGr8TxOO.js +0 -158
  149. package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
  150. package/dist/processing-szVOCQwZ.js +0 -19
  151. package/dist/richText-cspvNz2a.js +0 -1807
  152. package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
  153. package/dist/spinner-DygONskw.js +0 -60
  154. package/dist/successIcon-Bjsdc4lF.js +0 -26
  155. package/dist/tutorial-Cdz1025D.js +0 -473
  156. package/dist/types/ekyb/styles.d.ts +0 -1
  157. package/dist/types/ekyc/styles.d.ts +0 -1
  158. package/dist/typography-BDACYR5i.js +0 -14
  159. package/dist/uiConfig-Dnt-2YWB.js +0 -23
  160. package/dist/useMediaQuery-lJdQBmC2.js +0 -18
  161. package/dist/vendor-preact-BoMmvSgn.js +0 -694
  162. package/dist/warningIcon-DQq_MrOB.js +0 -26
@@ -0,0 +1,784 @@
1
+ import { n as e } from "./i18n-DZOHbK9q.js";
2
+ import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
+ import { c, n as l, r as u } from "./loadingIcon-CeQt7Zgb.js";
4
+ import { t as d } from "./spacer-DCljE53A.js";
5
+ import { t as f } from "./button-DhL5eRT3.js";
6
+ import { t as p } from "./page-SvlJWUfz.js";
7
+ import { _ as m, c as h, d as g, f as _, l as v, u as y, v as b } from "./extensibility-DJihqIzM.js";
8
+ import { t as x } from "./spinner-snIGzmm8.js";
9
+ import { a as S, d as C, r as w } from "./icons-BHbofCgJ.js";
10
+ import { s as T } from "./tutorial-DNOd11tg.js";
11
+ import { t as E } from "./successIcon-AHrfmJvv.js";
12
+ import { t as D } from "./incodeModule-Bf6yJ8RB.js";
13
+ import { createDocumentCaptureManager as O } from "@incodetech/core/document-capture";
14
+ //#region src/modules/document-capture/documentCameraView.tsx
15
+ function k(e) {
16
+ if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
17
+ let t = document.createElement("canvas");
18
+ t.width = e.videoWidth, t.height = e.videoHeight;
19
+ let n = t.getContext("2d");
20
+ return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
21
+ }
22
+ var A = ({ stream: t, manager: n, onOpenHelp: a }) => {
23
+ let { t: o } = e(), c = i(null), l = r(() => {
24
+ let e = c.current;
25
+ if (!e) return;
26
+ let t = k(e);
27
+ if (!t) return;
28
+ let r = new Blob([Uint8Array.from(atob(t), (e) => e.charCodeAt(0))], { type: "image/jpeg" }), i = new File([r], "document.jpg", { type: "image/jpeg" });
29
+ n.setFile(i, `data:image/jpeg;base64,${t}`);
30
+ }, [n]);
31
+ return /* @__PURE__ */ s(v, {
32
+ stream: t,
33
+ videoRef: c,
34
+ "data-testid": "document-capture-camera",
35
+ children: /* @__PURE__ */ s(g, { children: [
36
+ /* @__PURE__ */ s(y, {
37
+ title: o("documentCapture.camera.title"),
38
+ subtitle: o("documentCapture.camera.subtitle")
39
+ }),
40
+ /* @__PURE__ */ s(d, { size: 16 }),
41
+ /* @__PURE__ */ s(_, { variant: "fill" }),
42
+ /* @__PURE__ */ s(h, {
43
+ onOpenHelp: a,
44
+ onCapture: l,
45
+ isManualCapture: !0,
46
+ captureAriaLabel: o("manualCapture.ariaLabel"),
47
+ helpAriaLabel: o("documentCapture.needHelp.open"),
48
+ encryptionLabel: o("encryptionLabel.encryptedPhotos")
49
+ })
50
+ ] })
51
+ });
52
+ }, j = [
53
+ {
54
+ titleKey: "documentCapture.commonIssues.farPresent",
55
+ bodyKey: "documentCapture.commonIssues.farPresentDescription",
56
+ Icon: () => /* @__PURE__ */ s("svg", {
57
+ width: "24",
58
+ height: "24",
59
+ viewBox: "0 0 24 24",
60
+ fill: "none",
61
+ "aria-hidden": !0,
62
+ children: [
63
+ /* @__PURE__ */ s("path", {
64
+ "fill-rule": "evenodd",
65
+ "clip-rule": "evenodd",
66
+ d: "M17.1072 2.54785H15.8492C15.4352 2.54785 15.0992 2.88385 15.0992 3.29785C15.0992 3.71185 15.4352 4.04785 15.8492 4.04785H17.1072C18.8392 4.04785 20.2502 5.45785 20.2502 7.19085V8.76785C20.2502 9.18185 20.5862 9.51785 21.0002 9.51785C21.4142 9.51785 21.7502 9.18185 21.7502 8.76785V7.19085C21.7502 4.63085 19.6672 2.54785 17.1072 2.54785Z",
67
+ fill: "currentColor"
68
+ }),
69
+ /* @__PURE__ */ s("path", {
70
+ "fill-rule": "evenodd",
71
+ "clip-rule": "evenodd",
72
+ d: "M2.99976 9.51785C3.41376 9.51785 3.74976 9.18185 3.74976 8.76785V7.19085C3.74976 5.45785 5.15976 4.04785 6.89276 4.04785H8.18176C8.59576 4.04785 8.93176 3.71185 8.93176 3.29785C8.93176 2.88385 8.59576 2.54785 8.18176 2.54785H6.89276C4.33276 2.54785 2.24976 4.63085 2.24976 7.19085V8.76785C2.24976 9.18185 2.58576 9.51785 2.99976 9.51785Z",
73
+ fill: "currentColor"
74
+ }),
75
+ /* @__PURE__ */ s("path", {
76
+ "fill-rule": "evenodd",
77
+ "clip-rule": "evenodd",
78
+ d: "M8.15012 20.553H6.89212C5.16012 20.553 3.75012 19.143 3.75012 17.411V15.834C3.75012 15.42 3.41412 15.084 3.00012 15.084C2.58612 15.084 2.25012 15.42 2.25012 15.834V17.411C2.25012 19.97 4.33312 22.053 6.89212 22.053H8.15012C8.56412 22.053 8.90012 21.717 8.90012 21.303C8.90012 20.889 8.56412 20.553 8.15012 20.553Z",
79
+ fill: "currentColor"
80
+ }),
81
+ /* @__PURE__ */ s("path", {
82
+ "fill-rule": "evenodd",
83
+ "clip-rule": "evenodd",
84
+ d: "M20.9997 15.083C20.5857 15.083 20.2497 15.419 20.2497 15.833V17.41C20.2497 19.143 18.8397 20.552 17.1067 20.552H15.8177C15.4037 20.552 15.0677 20.888 15.0677 21.302C15.0677 21.716 15.4037 22.052 15.8177 22.052H17.1067C19.6667 22.052 21.7497 19.97 21.7497 17.41V15.833C21.7497 15.419 21.4137 15.083 20.9997 15.083Z",
85
+ fill: "currentColor"
86
+ }),
87
+ /* @__PURE__ */ s("path", {
88
+ "fill-rule": "evenodd",
89
+ "clip-rule": "evenodd",
90
+ d: "M17.0984 12.2984C17.0984 10.7004 15.7974 9.40039 14.1994 9.40039H9.80037C8.20237 9.40039 6.90137 10.7004 6.90137 12.2984C6.90137 13.8974 8.20237 15.1974 9.80037 15.1974H14.1994C15.7974 15.1974 17.0984 13.8974 17.0984 12.2984Z",
91
+ fill: "currentColor"
92
+ })
93
+ ]
94
+ })
95
+ },
96
+ {
97
+ titleKey: "documentCapture.commonIssues.foldedIdPresent",
98
+ bodyKey: "documentCapture.commonIssues.foldedIdPresentDescription",
99
+ Icon: () => /* @__PURE__ */ s("svg", {
100
+ width: "24",
101
+ height: "24",
102
+ viewBox: "0 0 24 24",
103
+ fill: "none",
104
+ "aria-hidden": !0,
105
+ children: [
106
+ /* @__PURE__ */ s("path", {
107
+ "fill-rule": "evenodd",
108
+ "clip-rule": "evenodd",
109
+ d: "M3.20994 9.27056H18.8829C19.0379 9.27056 19.1849 9.20144 19.2789 9.08239C19.3739 8.96431 19.4059 8.81071 19.3659 8.66671L18.3169 4.90447C18.0499 3.94831 17.4109 3.1496 16.5179 2.65424C15.6249 2.15984 14.5849 2.02736 13.5879 2.28464L5.45694 4.37552C3.40094 4.90544 2.17694 6.94159 2.72694 8.9144C2.78594 9.12464 2.98294 9.27056 3.20994 9.27056Z",
110
+ fill: "currentColor"
111
+ }),
112
+ /* @__PURE__ */ s("path", {
113
+ "fill-rule": "evenodd",
114
+ "clip-rule": "evenodd",
115
+ d: "M20.5679 14.3484H4.89485C4.73985 14.3484 4.59285 14.4175 4.49885 14.5365C4.40385 14.6546 4.37185 14.8082 4.41185 14.9522L5.46085 18.7135C5.92185 20.3676 7.48585 21.461 9.19185 21.461C9.52085 21.461 9.85585 21.4207 10.1899 21.3343L18.3209 19.2425C19.3169 18.9871 20.1499 18.3737 20.6649 17.5164C21.1809 16.6591 21.3179 15.6597 21.0509 14.7045C20.9919 14.4943 20.7949 14.3484 20.5679 14.3484Z",
116
+ fill: "currentColor"
117
+ }),
118
+ /* @__PURE__ */ s("path", {
119
+ "fill-rule": "evenodd",
120
+ "clip-rule": "evenodd",
121
+ d: "M13.603 11.0906C13.189 11.0906 12.853 11.4131 12.853 11.8106C12.853 12.208 13.189 12.5306 13.603 12.5306H15.7C16.114 12.5306 16.45 12.208 16.45 11.8106C16.45 11.4131 16.114 11.0906 15.7 11.0906H13.603Z",
122
+ fill: "currentColor"
123
+ }),
124
+ /* @__PURE__ */ s("path", {
125
+ "fill-rule": "evenodd",
126
+ "clip-rule": "evenodd",
127
+ d: "M20.9999 11.0906H18.9029C18.4889 11.0906 18.1529 11.4131 18.1529 11.8106C18.1529 12.208 18.4889 12.5306 18.9029 12.5306H20.9999C21.4139 12.5306 21.7499 12.208 21.7499 11.8106C21.7499 11.4131 21.4139 11.0906 20.9999 11.0906Z",
128
+ fill: "currentColor"
129
+ }),
130
+ /* @__PURE__ */ s("path", {
131
+ "fill-rule": "evenodd",
132
+ "clip-rule": "evenodd",
133
+ d: "M8.29977 11.0906C7.88577 11.0906 7.54977 11.4131 7.54977 11.8106C7.54977 12.208 7.88577 12.5306 8.29977 12.5306H10.3968C10.8108 12.5306 11.1468 12.208 11.1468 11.8106C11.1468 11.4131 10.8108 11.0906 10.3968 11.0906H8.29977Z",
134
+ fill: "currentColor"
135
+ }),
136
+ /* @__PURE__ */ s("path", {
137
+ "fill-rule": "evenodd",
138
+ "clip-rule": "evenodd",
139
+ d: "M5.84709 11.8106C5.84709 11.4131 5.51109 11.0906 5.09709 11.0906H3.00009C2.58609 11.0906 2.25009 11.4131 2.25009 11.8106C2.25009 12.208 2.58609 12.5306 3.00009 12.5306H5.09709C5.51109 12.5306 5.84709 12.208 5.84709 11.8106Z",
140
+ fill: "currentColor"
141
+ })
142
+ ]
143
+ })
144
+ },
145
+ {
146
+ titleKey: "documentCapture.commonIssues.shadowPresent",
147
+ bodyKey: "documentCapture.commonIssues.shadowPresentDescription",
148
+ Icon: () => /* @__PURE__ */ s("svg", {
149
+ width: "24",
150
+ height: "24",
151
+ viewBox: "0 0 24 24",
152
+ fill: "none",
153
+ "aria-hidden": !0,
154
+ children: [/* @__PURE__ */ s("path", {
155
+ "fill-rule": "evenodd",
156
+ "clip-rule": "evenodd",
157
+ d: "M20.2262 14.0884C20.2153 14.0934 20.2052 14.0984 20.1943 14.1044C17.2803 15.6594 13.6082 15.1114 11.2653 12.7724C8.92225 10.4234 8.36725 6.75042 9.92525 3.82142C10.0192 3.62542 9.99525 3.39742 9.86125 3.22742C9.73525 3.06742 9.46825 2.97642 9.27125 3.03442C5.22925 4.19442 2.40625 7.94142 2.40625 12.1454C2.40625 17.3724 6.65725 21.6254 11.8833 21.6254C16.0913 21.6254 19.8372 18.7984 20.9963 14.7464C21.0473 14.5604 20.9672 14.3004 20.8202 14.1754C20.6742 14.0494 20.4012 14.0094 20.2262 14.0884Z",
158
+ fill: "currentColor"
159
+ }), /* @__PURE__ */ s("path", {
160
+ "fill-rule": "evenodd",
161
+ "clip-rule": "evenodd",
162
+ d: "M11.8748 2.375C11.4608 2.375 11.1248 2.711 11.1248 3.125C11.1248 3.539 11.4608 3.875 11.8748 3.875C16.4068 3.875 20.0938 7.562 20.0938 12.095C20.0938 12.509 20.4298 12.845 20.8438 12.845C21.2578 12.845 21.5938 12.509 21.5938 12.095C21.5938 6.735 17.2338 2.375 11.8748 2.375Z",
163
+ fill: "currentColor"
164
+ })]
165
+ })
166
+ },
167
+ {
168
+ titleKey: "documentCapture.commonIssues.dirtyPresent",
169
+ bodyKey: "documentCapture.commonIssues.dirtyPresentDescription",
170
+ Icon: () => /* @__PURE__ */ s("svg", {
171
+ width: "24",
172
+ height: "24",
173
+ viewBox: "0 0 24 24",
174
+ fill: "none",
175
+ "aria-hidden": !0,
176
+ children: /* @__PURE__ */ s("path", {
177
+ "fill-rule": "evenodd",
178
+ "clip-rule": "evenodd",
179
+ d: "M14.314 13.9858C14.607 14.2671 14.607 14.7231 14.314 15.0043C14.168 15.1445 13.976 15.2146 13.784 15.2146C13.592 15.2146 13.4 15.1445 13.253 15.0043L12 13.8005L10.744 15.0063C10.597 15.1474 10.405 15.2175 10.213 15.2175C10.022 15.2175 9.83 15.1474 9.683 15.0063C9.39 14.7259 9.39 14.269 9.683 13.9887L10.939 12.7829L9.683 11.5771C9.39 11.2959 9.39 10.8408 9.683 10.5595C9.976 10.2783 10.451 10.2783 10.744 10.5595L12 11.7653L13.253 10.5624C13.546 10.2811 14.021 10.2811 14.314 10.5624C14.607 10.8437 14.607 11.2997 14.314 11.581L13.061 12.7829L14.314 13.9858ZM17.957 6.57747C17.594 6.56403 17.255 6.41811 17.013 6.17427C16.968 6.12723 16.791 5.91507 16.376 5.16819C15.898 4.31187 14.974 3.78003 13.964 3.78003H10.053C9.058 3.78003 8.142 4.29939 7.661 5.13459C7.224 5.89395 7.043 6.11763 6.995 6.16947C6.744 6.42195 6.405 6.56787 6.062 6.58227C4.1 6.58227 2.502 8.11443 2.5 9.99795V15.4143C2.5 17.8527 4.566 19.837 7.106 19.837H16.894C19.433 19.837 21.5 17.8527 21.5 15.4143V9.99603C21.5 8.11059 19.902 6.57747 17.957 6.57747Z",
180
+ fill: "currentColor"
181
+ })
182
+ })
183
+ }
184
+ ], M = ({ onClose: t }) => {
185
+ let { t: n } = e();
186
+ return /* @__PURE__ */ s(b, {
187
+ "aria-labelledby": "document-common-issues-title",
188
+ children: [
189
+ /* @__PURE__ */ s("h2", {
190
+ id: "document-common-issues-title",
191
+ class: "IncodeDocumentCommonIssuesTitle",
192
+ children: n("commonIssues.commonIssues")
193
+ }),
194
+ /* @__PURE__ */ s(d, { size: 32 }),
195
+ /* @__PURE__ */ s("div", {
196
+ class: "IncodeDocumentCommonIssuesCards",
197
+ children: j.map((e) => /* @__PURE__ */ s("div", {
198
+ class: "IncodeDocumentCommonIssuesCard",
199
+ children: [/* @__PURE__ */ s("div", {
200
+ class: "IncodeDocumentCommonIssuesCardIcon",
201
+ children: /* @__PURE__ */ s(e.Icon, {})
202
+ }), /* @__PURE__ */ s("div", {
203
+ class: "IncodeDocumentCommonIssuesCardText",
204
+ children: [/* @__PURE__ */ s("h5", {
205
+ class: "IncodeDocumentCommonIssuesCardTitle",
206
+ children: n(e.titleKey)
207
+ }), /* @__PURE__ */ s("p", {
208
+ class: "IncodeDocumentCommonIssuesCardBody",
209
+ children: n(e.bodyKey)
210
+ })]
211
+ })]
212
+ }, e.titleKey))
213
+ }),
214
+ /* @__PURE__ */ s("div", {
215
+ class: "IncodeDocumentCommonIssuesButtons",
216
+ children: /* @__PURE__ */ s(f, {
217
+ onClick: t,
218
+ children: n("commonIssues.tryAgain")
219
+ })
220
+ })
221
+ ]
222
+ });
223
+ }, N = ({ manager: t }) => {
224
+ let { t: n } = e();
225
+ return /* @__PURE__ */ s("div", {
226
+ class: "IncodeDocumentCaptureActionRow",
227
+ children: [/* @__PURE__ */ s(f, {
228
+ variant: "secondary",
229
+ onClick: () => t.retake(),
230
+ "data-testid": "document-capture-retake-button",
231
+ children: n("documentCapture.review.replace")
232
+ }), /* @__PURE__ */ s(f, {
233
+ onClick: () => t.accept(),
234
+ "data-testid": "document-capture-accept-button",
235
+ children: n("documentCapture.review.continue")
236
+ })]
237
+ });
238
+ }, P = ({ isFilePdf: n }) => {
239
+ let { t: r } = e();
240
+ return /* @__PURE__ */ s(t, { children: [
241
+ /* @__PURE__ */ s("h2", {
242
+ class: "IncodeDocumentCaptureReviewTitle",
243
+ children: r(n ? "documentCapture.review.titlePdfUpload" : "documentCapture.review.titleCaptured")
244
+ }),
245
+ /* @__PURE__ */ s(d, { size: 12 }),
246
+ /* @__PURE__ */ s("p", {
247
+ class: "IncodeDocumentCaptureReviewSubtitle",
248
+ children: r(n ? "documentCapture.review.subtitlePdfUpload" : "documentCapture.review.subtitleCaptured")
249
+ })
250
+ ] });
251
+ }, F = ({ manager: t }) => {
252
+ let { t: n } = e();
253
+ return /* @__PURE__ */ s(f, {
254
+ onClick: () => t.continue(),
255
+ "data-testid": "document-capture-continue-button",
256
+ children: n("documentCapture.review.continue")
257
+ });
258
+ }, I = () => {
259
+ let { t: n } = e();
260
+ return /* @__PURE__ */ s(t, { children: [
261
+ /* @__PURE__ */ s(E, { size: 30 }),
262
+ /* @__PURE__ */ s(d, { size: 16 }),
263
+ /* @__PURE__ */ s("h2", {
264
+ class: "IncodeDocumentCaptureReviewTitle",
265
+ children: n("documentCapture.review.successTitle")
266
+ })
267
+ ] });
268
+ }, L = ({ progress: n, isFilePdf: r }) => {
269
+ let { t: i } = e(), a = i(r ? "documentCapture.review.uploading" : "documentCapture.review.analyzing");
270
+ return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(d, { size: 8 }), /* @__PURE__ */ s(m, {
271
+ progress: n,
272
+ label: a
273
+ })] });
274
+ }, R = ({ state: n, manager: r }) => {
275
+ let { t: i } = e();
276
+ if (n.status === "failure") return /* @__PURE__ */ s(T, {
277
+ "data-testid": "document-capture-error",
278
+ title: i("documentCapture.review.error.title"),
279
+ description: n.attemptsRemaining <= 0 ? i("notifications.noTries") : i("documentCapture.review.error.description"),
280
+ attemptsRemaining: n.attemptsRemaining,
281
+ onButtonClick: () => r.retry()
282
+ });
283
+ let a = n.fileType === "application/pdf" || n.imageBase64.startsWith("data:application/pdf"), { fileName: o } = n, c = n.status === "preview", u = n.status === "uploading", f = n.status === "success", m = n.status === "nextPage", h = f || m;
284
+ return /* @__PURE__ */ s(p, {
285
+ hideHeader: !0,
286
+ hideFooterBranding: !0,
287
+ className: "IncodeDocumentCapturePage IncodeDocumentCaptureReviewPage",
288
+ "data-testid": "document-capture-review",
289
+ children: /* @__PURE__ */ s("div", {
290
+ class: "IncodeDocumentCaptureReviewLayout",
291
+ children: [
292
+ /* @__PURE__ */ s("div", {
293
+ class: "IncodeDocumentCaptureReviewHeader",
294
+ children: [
295
+ c ? /* @__PURE__ */ s(P, { isFilePdf: a }) : null,
296
+ u ? /* @__PURE__ */ s(L, {
297
+ progress: n.progress,
298
+ isFilePdf: a
299
+ }) : null,
300
+ h ? /* @__PURE__ */ s(I, {}) : null
301
+ ]
302
+ }),
303
+ /* @__PURE__ */ s("div", {
304
+ class: l("IncodeDocumentCaptureReviewPreview", a && "IncodeDocumentCaptureReviewPreviewPdf"),
305
+ children: [
306
+ a ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("div", {
307
+ class: "IncodeDocumentCapturePdfCard",
308
+ children: [/* @__PURE__ */ s("div", {
309
+ class: "ImageDocumentCapturePdfPreviewContainer",
310
+ children: /* @__PURE__ */ s("object", {
311
+ data: n.imageBase64,
312
+ type: "application/pdf",
313
+ class: "ImageDocumentCapturePdfPreview"
314
+ })
315
+ }), /* @__PURE__ */ s("p", {
316
+ class: "IncodeDocumentCapturePdfFileName",
317
+ children: o
318
+ })]
319
+ }), /* @__PURE__ */ s(d, { size: 16 })] }) : n.imageBase64 ? /* @__PURE__ */ s("div", {
320
+ class: "IncodeDocumentCaptureReviewImageContainer",
321
+ children: /* @__PURE__ */ s("img", {
322
+ src: n.imageBase64,
323
+ alt: "",
324
+ class: l("IncodeDocumentCaptureReviewImage", h && "IncodeDocumentCaptureSuccessBorder"),
325
+ "data-testid": "document-capture-review-image"
326
+ })
327
+ }) : null,
328
+ /* @__PURE__ */ s(d, { size: 8 }),
329
+ /* @__PURE__ */ s("div", {
330
+ class: "IncodeCaptureEncryptionLabel",
331
+ children: [/* @__PURE__ */ s(w, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ s("span", { children: [" ", i("encryptionLabel.encryptedPhotos")] })]
332
+ }),
333
+ /* @__PURE__ */ s(d, { size: 8 })
334
+ ]
335
+ }),
336
+ /* @__PURE__ */ s(d, { size: 24 }),
337
+ /* @__PURE__ */ s("div", {
338
+ class: l("IncodeDocumentCaptureReviewFooter", u && "IncodeDocumentCaptureReviewFooterEmpty"),
339
+ children: [c ? /* @__PURE__ */ s(N, { manager: r }) : null, f ? /* @__PURE__ */ s(F, { manager: r }) : null]
340
+ })
341
+ ]
342
+ })
343
+ });
344
+ }, z = (e) => /* @__PURE__ */ s("svg", {
345
+ viewBox: "0 0 292 305",
346
+ fill: "none",
347
+ xmlns: "http://www.w3.org/2000/svg",
348
+ ...e,
349
+ children: [
350
+ /* @__PURE__ */ s("circle", {
351
+ cx: 145.743,
352
+ cy: 152.074,
353
+ r: 139.295,
354
+ fill: "#E5F0FF"
355
+ }),
356
+ /* @__PURE__ */ s("g", {
357
+ filter: "url(#filter0_d_4533_6792)",
358
+ children: [/* @__PURE__ */ s("path", {
359
+ d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z",
360
+ fill: "white"
361
+ }), /* @__PURE__ */ s("path", {
362
+ d: "M58.6299 32.6143C58.6299 29.8528 60.8685 27.6143 63.6299 27.6143H227.017C229.779 27.6143 232.017 29.8528 232.017 32.6143V248.24C232.017 251.002 229.779 253.24 227.017 253.24H63.6299C60.8685 253.24 58.6299 251.002 58.6299 248.24V32.6143Z",
363
+ fill: "black",
364
+ fillOpacity: .01
365
+ })]
366
+ }),
367
+ /* @__PURE__ */ s("g", {
368
+ opacity: .5,
369
+ children: [
370
+ /* @__PURE__ */ s("path", {
371
+ fillRule: "evenodd",
372
+ clipRule: "evenodd",
373
+ d: "M73.4139 60.0905C73.4139 59.62 73.7953 59.2385 74.2658 59.2385H216.865C217.336 59.2385 217.717 59.62 217.717 60.0905V62.7331C217.717 63.2036 217.336 63.585 216.865 63.585H74.2658C73.7953 63.585 73.4139 63.2036 73.4139 62.7331V60.0905Z",
374
+ fill: "#C6C8D2"
375
+ }),
376
+ /* @__PURE__ */ s("path", {
377
+ fillRule: "evenodd",
378
+ clipRule: "evenodd",
379
+ d: "M73.4139 220.911C73.4139 220.44 73.7953 220.059 74.2658 220.059H216.865C217.336 220.059 217.717 220.44 217.717 220.911V223.553C217.717 224.024 217.336 224.405 216.865 224.405H74.2658C73.7953 224.405 73.4139 224.024 73.4139 223.553V220.911Z",
380
+ fill: "#C6C8D2"
381
+ }),
382
+ /* @__PURE__ */ s("path", {
383
+ d: "M73.4139 83.5619C73.4139 83.0914 73.7953 82.7099 74.2658 82.7099H130.805C131.275 82.7099 131.657 83.0914 131.657 83.5619V91.4202C131.657 91.8907 131.275 92.2722 130.805 92.2722H74.2658C73.7953 92.2722 73.4139 91.8907 73.4139 91.4202L73.4139 83.5619Z",
384
+ fill: "#C6C8D2"
385
+ }),
386
+ /* @__PURE__ */ s("path", {
387
+ d: "M73.4138 101.817C73.4138 101.347 73.7953 100.965 74.2658 100.965H130.805C131.275 100.965 131.657 101.347 131.657 101.817V109.676C131.657 110.146 131.275 110.528 130.805 110.528H74.2658C73.7953 110.528 73.4138 110.146 73.4138 109.676L73.4138 101.817Z",
388
+ fill: "#C6C8D2"
389
+ }),
390
+ /* @__PURE__ */ s("path", {
391
+ d: "M73.399 120.072C73.4072 119.601 73.7952 119.227 74.2657 119.235L154.263 120.631C154.734 120.639 155.109 121.028 155.1 121.498L154.963 129.355C154.955 129.826 154.567 130.2 154.097 130.192L74.0988 128.796C73.6284 128.787 73.2536 128.399 73.2619 127.929L73.399 120.072Z",
392
+ fill: "#C6C8D2"
393
+ }),
394
+ /* @__PURE__ */ s("path", {
395
+ d: "M73.399 138.327C73.4072 137.857 73.7952 137.482 74.2657 137.49L97.7678 137.9C98.2383 137.909 98.613 138.297 98.6048 138.767L98.498 144.886C98.4897 145.356 98.1017 145.731 97.6313 145.723L74.1292 145.313C73.6587 145.304 73.284 144.916 73.2922 144.446L73.399 138.327Z",
396
+ fill: "#C6C8D2"
397
+ }),
398
+ /* @__PURE__ */ s("path", {
399
+ d: "M73.4139 38.3582C73.4139 37.8877 73.7953 37.5063 74.2658 37.5063H180.355C180.825 37.5063 181.207 37.8877 181.207 38.3582V47.0859C181.207 47.5564 180.825 47.9378 180.355 47.9378H74.2658C73.7953 47.9378 73.4139 47.5564 73.4139 47.0859V38.3582Z",
400
+ fill: "#C6C8D2"
401
+ }),
402
+ /* @__PURE__ */ s("path", {
403
+ d: "M195.985 37.4887C195.985 37.0182 196.366 36.6367 196.837 36.6367H216.865C217.336 36.6367 217.717 37.0182 217.717 37.4887V46.2163C217.717 46.6868 217.336 47.0683 216.865 47.0683H196.837C196.366 47.0683 195.985 46.6868 195.985 46.2163V37.4887Z",
404
+ fill: "#C6C8D2"
405
+ })
406
+ ]
407
+ }),
408
+ /* @__PURE__ */ s("mask", {
409
+ id: "path-4-inside-1_4533_6792",
410
+ fill: "white",
411
+ children: /* @__PURE__ */ s("path", { d: "M63.8701 255.593C60.0041 255.593 56.8701 252.459 56.8701 248.593L56.8701 32.5516C56.8701 28.6856 60.0041 25.5516 63.8701 25.5516L227.68 25.5516C231.546 25.5516 234.68 28.6856 234.68 32.5516V248.593C234.68 252.459 231.546 255.593 227.68 255.593L63.8701 255.593Z" })
412
+ }),
413
+ /* @__PURE__ */ s("g", {
414
+ clipPath: "url(#paint0_diamond_4533_6792_clip_path)",
415
+ "data-figma-skip-parse": "true",
416
+ mask: "url(#path-4-inside-1_4533_6792)",
417
+ children: /* @__PURE__ */ s("g", {
418
+ transform: "matrix(0.0908399 -0.0986632 0.220271 0.965929 54.935 239.235)",
419
+ children: [
420
+ /* @__PURE__ */ s("rect", {
421
+ x: 0,
422
+ y: 0,
423
+ width: 2037.51,
424
+ height: 179.024,
425
+ fill: "url(#paint0_diamond_4533_6792)",
426
+ opacity: 1,
427
+ shapeRendering: "crispEdges"
428
+ }),
429
+ /* @__PURE__ */ s("rect", {
430
+ x: 0,
431
+ y: 0,
432
+ width: 2037.51,
433
+ height: 179.024,
434
+ transform: "scale(1 -1)",
435
+ fill: "url(#paint0_diamond_4533_6792)",
436
+ opacity: 1,
437
+ shapeRendering: "crispEdges"
438
+ }),
439
+ /* @__PURE__ */ s("rect", {
440
+ x: 0,
441
+ y: 0,
442
+ width: 2037.51,
443
+ height: 179.024,
444
+ transform: "scale(-1 1)",
445
+ fill: "url(#paint0_diamond_4533_6792)",
446
+ opacity: 1,
447
+ shapeRendering: "crispEdges"
448
+ }),
449
+ /* @__PURE__ */ s("rect", {
450
+ x: 0,
451
+ y: 0,
452
+ width: 2037.51,
453
+ height: 179.024,
454
+ transform: "scale(-1)",
455
+ fill: "url(#paint0_diamond_4533_6792)",
456
+ opacity: 1,
457
+ shapeRendering: "crispEdges"
458
+ })
459
+ ]
460
+ })
461
+ }),
462
+ /* @__PURE__ */ s("path", {
463
+ d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
464
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_DIAMOND\",\"stops\":[{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":0.0},\"position\":1.0},{\"color\":{\"r\":1.0,\"g\":1.0,\"b\":1.0,\"a\":0.54000002145767212},\"position\":1.0}],\"stopsVar\":[],\"transform\":{\"m00\":181.67984008789062,\"m01\":440.54235839843750,\"m02\":-256.17605590820312,\"m10\":-197.32632446289062,\"m11\":1931.8571777343750,\"m12\":-628.03063964843750},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}",
465
+ mask: "url(#path-4-inside-1_4533_6792)"
466
+ }),
467
+ /* @__PURE__ */ s("path", {
468
+ d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
469
+ fill: "white",
470
+ fillOpacity: .5,
471
+ mask: "url(#path-4-inside-1_4533_6792)"
472
+ }),
473
+ /* @__PURE__ */ s("defs", { children: [
474
+ /* @__PURE__ */ s("filter", {
475
+ id: "filter0_d_4533_6792",
476
+ x: 34.6299,
477
+ y: 6.61426,
478
+ width: 221.387,
479
+ height: 273.626,
480
+ filterUnits: "userSpaceOnUse",
481
+ colorInterpolationFilters: "sRGB",
482
+ children: [
483
+ /* @__PURE__ */ s("feFlood", {
484
+ floodOpacity: 0,
485
+ result: "BackgroundImageFix"
486
+ }),
487
+ /* @__PURE__ */ s("feColorMatrix", {
488
+ in: "SourceAlpha",
489
+ type: "matrix",
490
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
491
+ result: "hardAlpha"
492
+ }),
493
+ /* @__PURE__ */ s("feOffset", { dy: 3 }),
494
+ /* @__PURE__ */ s("feGaussianBlur", { stdDeviation: 12 }),
495
+ /* @__PURE__ */ s("feColorMatrix", {
496
+ type: "matrix",
497
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"
498
+ }),
499
+ /* @__PURE__ */ s("feBlend", {
500
+ mode: "normal",
501
+ in2: "BackgroundImageFix",
502
+ result: "effect1_dropShadow_4533_6792"
503
+ }),
504
+ /* @__PURE__ */ s("feBlend", {
505
+ mode: "normal",
506
+ in: "SourceGraphic",
507
+ in2: "effect1_dropShadow_4533_6792",
508
+ result: "shape"
509
+ })
510
+ ]
511
+ }),
512
+ /* @__PURE__ */ s("clipPath", {
513
+ id: "paint0_diamond_4533_6792_clip_path",
514
+ children: /* @__PURE__ */ s("path", {
515
+ d: "M56.8701 248.593H58.8701L58.8701 32.5516H56.8701H54.8701L54.8701 248.593H56.8701ZM63.8701 25.5516V27.5516L227.68 27.5516V25.5516L227.68 23.5516L63.8701 23.5516V25.5516ZM234.68 32.5516H232.68V248.593H234.68H236.68V32.5516H234.68ZM227.68 255.593V253.593L63.8701 253.593V255.593V257.593H227.68V255.593ZM234.68 248.593H232.68C232.68 251.354 230.441 253.593 227.68 253.593V255.593V257.593C232.65 257.593 236.68 253.563 236.68 248.593H234.68ZM227.68 25.5516V27.5516C230.441 27.5516 232.68 29.7901 232.68 32.5516H234.68H236.68C236.68 27.581 232.65 23.5516 227.68 23.5516L227.68 25.5516ZM56.8701 32.5516H58.8701C58.8701 29.7902 61.1087 27.5516 63.8701 27.5516V25.5516V23.5516C58.8996 23.5516 54.8701 27.581 54.8701 32.5516H56.8701ZM56.8701 248.593H54.8701C54.8701 253.563 58.8996 257.593 63.8701 257.593V255.593V253.593C61.1087 253.593 58.8701 251.354 58.8701 248.593H56.8701Z",
516
+ mask: "url(#path-4-inside-1_4533_6792)"
517
+ })
518
+ }),
519
+ /* @__PURE__ */ s("linearGradient", {
520
+ id: "paint0_diamond_4533_6792",
521
+ x1: 0,
522
+ y1: 0,
523
+ x2: 500,
524
+ y2: 500,
525
+ gradientUnits: "userSpaceOnUse",
526
+ children: [
527
+ /* @__PURE__ */ s("stop", { stopColor: "white" }),
528
+ /* @__PURE__ */ s("stop", {
529
+ offset: 1,
530
+ stopColor: "white",
531
+ stopOpacity: 0
532
+ }),
533
+ /* @__PURE__ */ s("stop", {
534
+ offset: 1,
535
+ stopColor: "white",
536
+ stopOpacity: .54
537
+ })
538
+ ]
539
+ })
540
+ ] })
541
+ ]
542
+ }), B = ({ isOpen: t, onClose: r, onCameraClick: i, onUploadClick: o, cameraOptionTestId: c, uploadOptionTestId: l }) => {
543
+ let { t: u } = e(), d = a();
544
+ return n(() => {
545
+ if (!t) return;
546
+ let e = (e) => {
547
+ e.key === "Escape" && r();
548
+ };
549
+ return document.addEventListener("keydown", e), document.body.style.overflow = "hidden", () => {
550
+ document.removeEventListener("keydown", e), document.body.style.overflow = "";
551
+ };
552
+ }, [t, r]), t ? /* @__PURE__ */ s("div", {
553
+ class: "IncodeDocumentCaptureOverlay",
554
+ role: "dialog",
555
+ "aria-modal": !0,
556
+ "aria-labelledby": d,
557
+ onClick: (e) => {
558
+ e.target === e.currentTarget && r();
559
+ },
560
+ children: /* @__PURE__ */ s("div", {
561
+ class: "IncodeDocumentCaptureBottomSheetContainer",
562
+ onClick: r,
563
+ children: /* @__PURE__ */ s("div", {
564
+ class: "IncodeDocumentCaptureBottomSheet",
565
+ onClick: (e) => e.stopPropagation(),
566
+ children: [/* @__PURE__ */ s("div", {
567
+ class: "IncodeDocumentCaptureBottomSheetHandle",
568
+ "aria-hidden": !0
569
+ }), /* @__PURE__ */ s("div", {
570
+ class: "IncodeDocumentCaptureBottomSheetOptions",
571
+ children: [/* @__PURE__ */ s("button", {
572
+ type: "button",
573
+ class: "IncodeDocumentCaptureBottomSheetOption",
574
+ onClick: i,
575
+ "data-testid": `document-capture-${c}`,
576
+ children: [/* @__PURE__ */ s(C, {}), /* @__PURE__ */ s("span", {
577
+ id: d,
578
+ children: u("documentCapture.tutorial.takePhoto")
579
+ })]
580
+ }), /* @__PURE__ */ s("button", {
581
+ type: "button",
582
+ class: "IncodeDocumentCaptureBottomSheetOption",
583
+ onClick: o,
584
+ "data-testid": `document-capture-${l}`,
585
+ children: [/* @__PURE__ */ s(S, {}), /* @__PURE__ */ s("span", { children: u("documentCapture.tutorial.uploadDocument") })]
586
+ })]
587
+ })]
588
+ })
589
+ })
590
+ }) : null;
591
+ };
592
+ //#endregion
593
+ //#region src/modules/document-capture/documentCapture.helpers.ts
594
+ function V(e) {
595
+ return new Promise((t, n) => {
596
+ let r = new FileReader();
597
+ r.onload = () => t(r.result), r.onerror = n, r.readAsDataURL(e);
598
+ });
599
+ }
600
+ //#endregion
601
+ //#region src/modules/document-capture/documentTutorial.tsx
602
+ var H = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: l, captureMode: u, error: d, pageNumber: m }) => {
603
+ let { t: h } = e(), g = i(null), [_, v] = o(!1), y = m > 1 ? "documentCapture.tutorial.multiPageDocument" : "documentCapture.tutorial", b = a?.trim() ? a : h(`${y}.title`), x = c?.trim() ? c : h(`${y}.subtitle`), S = u === "camera", C = r(() => v(!1), []), w = () => {
604
+ g.current?.click();
605
+ }, T = () => {
606
+ S ? v(!0) : w();
607
+ }, E = async (e) => {
608
+ let t = e.target, r = t.files?.[0];
609
+ if (r) {
610
+ let e = await V(r);
611
+ n.setFile(r, e), S && C();
612
+ }
613
+ t.value = "";
614
+ }, D = () => {
615
+ C(), n.capture();
616
+ };
617
+ return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(p, {
618
+ className: "IncodeDocumentCapturePageTutorial",
619
+ title: b,
620
+ subtitle: x,
621
+ "data-testid": "document-capture-tutorial",
622
+ children: [
623
+ /* @__PURE__ */ s("input", {
624
+ ref: g,
625
+ type: "file",
626
+ accept: "image/*,application/pdf",
627
+ onChange: E,
628
+ "aria-hidden": !0,
629
+ tabIndex: -1,
630
+ class: "IncodeDocumentCaptureFileInput"
631
+ }),
632
+ /* @__PURE__ */ s("div", {
633
+ class: "IncodeDocumentCaptureTutorialContent",
634
+ children: /* @__PURE__ */ s("div", {
635
+ class: "IncodeDocumentCaptureTutorialIllustration",
636
+ "aria-hidden": !0,
637
+ children: /* @__PURE__ */ s(z, { class: "IncodeDocumentCaptureTutorialImage" })
638
+ })
639
+ }),
640
+ d ? /* @__PURE__ */ s("p", {
641
+ class: "IncodeDocumentCaptureError",
642
+ role: "alert",
643
+ children: h("nativeCamera.maximumSize")
644
+ }) : null,
645
+ /* @__PURE__ */ s("div", {
646
+ class: "IncodeDocumentCaptureActions",
647
+ children: [/* @__PURE__ */ s(f, {
648
+ onClick: T,
649
+ "data-testid": "document-capture-continue-button",
650
+ children: h("documentCapture.tutorial.continue")
651
+ }), l ? /* @__PURE__ */ s("div", {
652
+ class: "IncodeDocumentCaptureSkipWrapper",
653
+ children: /* @__PURE__ */ s(f, {
654
+ variant: "link",
655
+ onClick: () => n.skip(),
656
+ "data-testid": "document-capture-skip-button",
657
+ children: h("documentCapture.tutorial.skipButton")
658
+ })
659
+ }) : null]
660
+ })
661
+ ]
662
+ }), S ? /* @__PURE__ */ s(B, {
663
+ isOpen: _,
664
+ onClose: C,
665
+ onCameraClick: D,
666
+ onUploadClick: w,
667
+ cameraOptionTestId: "camera-option",
668
+ uploadOptionTestId: "file-option"
669
+ }) : null] });
670
+ }, U = ({ manager: n, nextPageType: a, captureMode: c }) => {
671
+ let { t: l } = e(), u = i(null), [m, h] = o(!1), g = "documentCapture.tutorial.multiPageDocument", _ = l(a === "optional" ? `${g}.optionalPage.subtitle` : `${g}.subtitle`), v = c === "camera", y = r(() => h(!1), []), b = () => {
672
+ u.current?.click();
673
+ }, x = () => {
674
+ v ? h(!0) : b();
675
+ }, S = async (e) => {
676
+ let t = e.target, r = t.files?.[0];
677
+ if (r) {
678
+ y();
679
+ let e = await V(r);
680
+ n.captureNextPageFromFile(), n.setFile(r, e);
681
+ }
682
+ t.value = "";
683
+ }, C = () => {
684
+ y(), n.captureNextPageFromCamera();
685
+ };
686
+ return /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(p, {
687
+ className: "IncodeDocumentCapturePageTutorial",
688
+ title: l("documentCapture.tutorial.multiPageDocument.title"),
689
+ subtitle: _,
690
+ "data-testid": "document-capture-tutorial",
691
+ children: [
692
+ /* @__PURE__ */ s("input", {
693
+ ref: u,
694
+ type: "file",
695
+ accept: "image/*",
696
+ onChange: S,
697
+ "aria-hidden": !0,
698
+ tabIndex: -1,
699
+ class: "IncodeDocumentCaptureFileInput"
700
+ }),
701
+ /* @__PURE__ */ s("div", {
702
+ class: "IncodeDocumentCaptureTutorialContent",
703
+ children: /* @__PURE__ */ s("div", {
704
+ class: "IncodeDocumentCaptureTutorialIllustration",
705
+ "aria-hidden": !0,
706
+ children: /* @__PURE__ */ s(z, { class: "IncodeDocumentCaptureTutorialImage" })
707
+ })
708
+ }),
709
+ /* @__PURE__ */ s(f, {
710
+ onClick: x,
711
+ "data-testid": "document-capture-add-next-page-button",
712
+ children: l("documentCapture.button.nextPage")
713
+ }),
714
+ /* @__PURE__ */ s(d, { size: 12 }),
715
+ a === "optional" && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(f, {
716
+ variant: "link",
717
+ onClick: () => n.finishPageCapture(),
718
+ "data-testid": "document-capture-finish-pages-button",
719
+ children: l("documentCapture.button.allPagesCaptured")
720
+ }), /* @__PURE__ */ s(d, { size: 16 })] })
721
+ ]
722
+ }), v ? /* @__PURE__ */ s(B, {
723
+ isOpen: m,
724
+ onClose: y,
725
+ onCameraClick: C,
726
+ onUploadClick: b,
727
+ cameraOptionTestId: "next-page-camera-option",
728
+ uploadOptionTestId: "next-page-upload-document-option"
729
+ }) : null] });
730
+ }, W = ({ title: e }) => /* @__PURE__ */ s(p, {
731
+ hideHeader: !0,
732
+ hideFooterBranding: !0,
733
+ className: "IncodeDocumentCapturePage",
734
+ children: /* @__PURE__ */ s("div", {
735
+ class: "IncodeDocumentCaptureCentered",
736
+ children: /* @__PURE__ */ s(x, {
737
+ size: "large",
738
+ title: e
739
+ })
740
+ })
741
+ }), G = ({ config: r, onFinish: i, onError: a }) => {
742
+ let [l, u] = c(() => O({ config: r })), [d, f] = o(!1), { t: p } = e();
743
+ return n(() => {
744
+ l.status === "finished" && i?.(), l.status === "closed" && a?.(void 0);
745
+ }, [
746
+ l.status,
747
+ i,
748
+ a
749
+ ]), l.status === "tutorial" ? /* @__PURE__ */ s(H, {
750
+ manager: u,
751
+ title: l.title,
752
+ text: l.text,
753
+ allowSkipDocumentCapture: l.allowSkipDocumentCapture,
754
+ captureMode: l.captureMode,
755
+ error: l.error,
756
+ pageNumber: l.pageNumber
757
+ }) : l.status === "nextPage" ? /* @__PURE__ */ s(U, {
758
+ manager: u,
759
+ nextPageType: l.nextPageType,
760
+ captureMode: l.captureMode
761
+ }) : l.status === "capturing" && l.captureMode === "file" ? /* @__PURE__ */ s(H, {
762
+ manager: u,
763
+ title: r.title,
764
+ text: r.text,
765
+ allowSkipDocumentCapture: !1,
766
+ captureMode: "file",
767
+ error: l.error,
768
+ pageNumber: l.pageNumber
769
+ }) : l.status === "initializingCamera" ? /* @__PURE__ */ s(W, {}) : l.status === "capturing" && l.captureMode === "camera" ? l.stream ? /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s(A, {
770
+ stream: l.stream,
771
+ manager: u,
772
+ onOpenHelp: () => f(!0)
773
+ }), d ? /* @__PURE__ */ s(M, { onClose: () => f(!1) }) : null] }) : /* @__PURE__ */ s(W, {}) : l.status === "finalizing" ? /* @__PURE__ */ s(W, { title: p("common.processing") }) : l.status === "preview" || l.status === "uploading" || l.status === "success" || l.status === "failure" ? /* @__PURE__ */ s(R, {
774
+ state: l,
775
+ manager: u
776
+ }) : null;
777
+ }, K = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(G, {
778
+ config: e,
779
+ onFinish: t,
780
+ onError: n
781
+ }) : null });
782
+ D(K, "incode-document-capture");
783
+ //#endregion
784
+ export { K as DocumentCapture };