@incodetech/web 0.0.0-dev-20260518-2d0ef651 → 0.0.0-dev-20260519-904c1c74

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 (2) hide show
  1. package/dist/id/id.es.js +240 -228
  2. package/package.json +2 -2
package/dist/id/id.es.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { n as e } from "../i18n-DQ49aghC.js";
2
- import { _ as t, c as n, d as r, l as i, o as a, p as o, v as s } from "../vendor-preact-D6SntenC.js";
3
- import { o as c } from "../hooks-BVnGysT7.js";
4
- import { t as l } from "../incodeComponent-Dx2l4chW.js";
5
- import { n as u } from "../loadingIcon-BN5YRQUb.js";
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 ee, s as te, t as g } from "../extensibility-BEX3WegI.js";
8
- import { t as _ } from "../spinner-CKnjVHxw.js";
2
+ import { _ as t, c as n, d as r, h as i, l as a, o, p as s, v as c } from "../vendor-preact-D6SntenC.js";
3
+ import { o as l } from "../hooks-BVnGysT7.js";
4
+ import { t as u } from "../incodeComponent-Dx2l4chW.js";
5
+ import { n as d } from "../loadingIcon-BN5YRQUb.js";
6
+ import { t as f } from "../page-C1yT4DLb.js";
7
+ import { a as p, i as m, n as ee, o as h, r as g, s as _, t as v } from "../extensibility-BEX3WegI.js";
8
+ import { t as y } from "../spinner-CKnjVHxw.js";
9
9
  import "../spinner-B4dcie2T.js";
10
- import { t as v } from "../transitionSpinner-D_N_MiDY.js";
11
- import { t as y } from "../processing-CO4IWfYV.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-C0s7rqxv.js";
10
+ import { t as b } from "../transitionSpinner-D_N_MiDY.js";
11
+ import { t as x } from "../processing-CO4IWfYV.js";
12
+ import { t as S } from "../button-DcCUEn2n.js";
13
+ import { g as C, s as w } from "../icons-Cc7zwchP.js";
14
+ import { t as T } from "../successIcon-DbILeIz_.js";
15
+ import { a as E, o as te, r as ne } from "../tutorial-C0s7rqxv.js";
16
16
  import { t as D } from "../pdfViewer-BGBNL1Ea.js";
17
- import { t as ne } from "../incodeModule-BqCjVgEI.js";
18
- import { t as re } from "../id-laser-v-CrFg4bcJ.js";
17
+ import { t as re } from "../incodeModule-BqCjVgEI.js";
18
+ import { t as ie } from "../id-laser-v-CrFg4bcJ.js";
19
19
  import { t as O } from "../tabs-DaPyP71c.js";
20
20
  import { createIdCaptureManager as k } from "@incodetech/core/id";
21
21
  //#region src/shared/fonts/preloadDisplayFont.ts
@@ -46,35 +46,35 @@ var N = [
46
46
  imageUrl: "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20viewBox='0%200%2096%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='id'%3e%3crect%20width='96'%20height='64'%20rx='4'%20fill='var(--fill-0,%20%23E5F0FF)'/%3e%3cpath%20id='bg-white'%20d='M9%2012C9%2010.3431%2010.3431%209%2012%209H83.9996C85.6564%209%2086.9996%2010.3431%2086.9996%2012V37H9V12Z'%20fill='var(--fill-0,%20%23C9C9C9)'%20fill-opacity='0.8'/%3e%3cpath%20id='bg'%20d='M10.4336%2012.4297C10.4336%2011.3251%2011.329%2010.4297%2012.4336%2010.4297L83.1836%2010.4297C84.2882%2010.4297%2085.1836%2011.3251%2085.1836%2012.4297V37.0005H10.4336L10.4336%2012.4297Z'%20fill='var(--fill-0,%20white)'/%3e%3cpath%20id='Line%202%20(Stroke)'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.4204%2021.3907C14.4206%2020.8405%2014.8668%2020.3945%2015.417%2020.3945L80.1999%2020.3945C80.7504%2020.3945%2081.1966%2020.8408%2081.1966%2021.3912C81.1966%2021.9416%2080.7504%2022.3879%2080.1999%2022.3879L15.417%2022.3879C14.8664%2022.3879%2014.4201%2021.9414%2014.4204%2021.3907Z'%20fill='var(--fill-0,%20%23C9C9C9)'%20fill-opacity='0.5'/%3e%3cpath%20id='shapes'%20d='M56.2803%2035.3457L38.3398%2035.3457V32.3555L56.2803%2032.3555V35.3457ZM56.2803%2029.3652H38.3398V26.375H56.2803V29.3652Z'%20fill='var(--fill-0,%20%23C9C9C9)'%20fill-opacity='0.5'/%3e%3crect%20id='shapes_2'%20x='14.4199'%20y='13.418'%20width='30.8967'%20height='3.98667'%20rx='1'%20fill='var(--fill-0,%20%23C9C9C9)'%20fill-opacity='0.5'/%3e%3crect%20id='shapes_3'%20x='74.833'%20y='13.4902'%20width='5.98'%20height='3.93138'%20fill='var(--fill-0,%20%23EAF0F6)'/%3e%3crect%20id='Rectangle%2039983'%20x='18'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039995'%20x='13'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039984'%20x='23'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039985'%20x='28'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039986'%20x='33'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039987'%20x='38'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039988'%20x='43'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039989'%20x='49'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039990'%20x='54'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039991'%20x='59'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039992'%20x='64'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039993'%20x='69'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039994'%20x='74'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3crect%20id='Rectangle%2039996'%20x='79'%20y='37'%20width='3'%20height='15'%20fill='var(--fill-0,%20white)'/%3e%3c/g%3e%3c/svg%3e"
47
47
  }
48
48
  ], P = ({ manager: t }) => {
49
- let { t: n } = e(), [r, i] = o(!1), a = () => {
49
+ let { t: n } = e(), [r, i] = s(!1), a = () => {
50
50
  i(!0), t.nextStep();
51
51
  };
52
- return /* @__PURE__ */ s(d, {
52
+ return /* @__PURE__ */ c(f, {
53
53
  className: "IncodeAgeVerificationPage",
54
54
  title: n("idv2.ageVerificationPage.ageVerification"),
55
55
  titleId: "id-age-verification-heading",
56
56
  subtitle: n("idv2.ageVerificationPage.weNeedToScanYourIDToKnowYourAge"),
57
57
  "data-testid": "age-verification-container",
58
- children: /* @__PURE__ */ s("div", {
58
+ children: /* @__PURE__ */ c("div", {
59
59
  class: "IncodeAgeVerificationContent",
60
- children: [/* @__PURE__ */ s("ul", {
60
+ children: [/* @__PURE__ */ c("ul", {
61
61
  class: "IncodeAgeVerificationList",
62
62
  "aria-labelledby": "id-age-verification-heading",
63
- children: N.map(({ textKey: e, imageUrl: t }) => /* @__PURE__ */ s("li", {
63
+ children: N.map(({ textKey: e, imageUrl: t }) => /* @__PURE__ */ c("li", {
64
64
  class: "IncodeAgeVerificationItem",
65
- children: [/* @__PURE__ */ s("div", {
65
+ children: [/* @__PURE__ */ c("div", {
66
66
  class: "IncodeAgeVerificationIcon",
67
- children: /* @__PURE__ */ s("img", {
67
+ children: /* @__PURE__ */ c("img", {
68
68
  src: t,
69
69
  alt: "",
70
70
  "aria-hidden": "true"
71
71
  })
72
- }), /* @__PURE__ */ s("p", {
72
+ }), /* @__PURE__ */ c("p", {
73
73
  class: "IncodeAgeVerificationText",
74
74
  children: n(e)
75
75
  })]
76
76
  }, e))
77
- }), /* @__PURE__ */ s(b, {
77
+ }), /* @__PURE__ */ c(S, {
78
78
  class: "IncodeAgeVerificationButton",
79
79
  onClick: a,
80
80
  isLoading: r,
@@ -94,170 +94,180 @@ function F(e) {
94
94
  }
95
95
  //#endregion
96
96
  //#region src/modules/id/digitalIdUpload/analyzingScreen.tsx
97
- var I = ({ state: t }) => {
98
- let { t: n } = e(), r = F(t.file), i = t.phase === "holding" ? n("idv2.digitalIdUpload.successfullyProcessed") : n("idv2.digitalIdUpload.analyzing");
99
- return /* @__PURE__ */ s(d, {
100
- title: i,
101
- subtitle: n("idv2.digitalIdUpload.screenDescription"),
97
+ var I = 5e3, L = ({ state: n }) => {
98
+ let { t: r } = e(), o = F(n.file), s = n.phase === "uploading", l = r(s ? "idv2.digitalIdUpload.analyzing" : "idv2.digitalIdUpload.successfullyProcessed"), u = a(null), d = i((e) => {
99
+ u.current = e;
100
+ }, []);
101
+ return t(() => {
102
+ let e = window.setTimeout(() => {
103
+ u.current?.pause();
104
+ }, I);
105
+ return () => {
106
+ window.clearTimeout(e);
107
+ };
108
+ }, []), /* @__PURE__ */ c(f, {
109
+ title: l,
110
+ subtitle: r("idv2.digitalIdUpload.screenDescription"),
102
111
  className: "IncodeDigitalIdUploadPage",
103
112
  "data-testid": "digital-id-upload-analyzing",
104
113
  children: [
105
- /* @__PURE__ */ s("div", {
114
+ /* @__PURE__ */ c("div", {
106
115
  role: "status",
107
116
  "aria-live": "polite",
108
117
  class: "IncodeSrOnly",
109
- children: i
118
+ children: l
110
119
  }),
111
- /* @__PURE__ */ s("div", {
120
+ /* @__PURE__ */ c("div", {
112
121
  class: "IncodeDigitalIdUploadPreviewBody",
113
- "aria-busy": t.phase !== "holding",
122
+ "aria-busy": s,
114
123
  children: [
115
- /* @__PURE__ */ s("div", {
124
+ /* @__PURE__ */ c("div", {
116
125
  class: "IncodeDigitalIdUploadPreStatusZone",
117
- children: /* @__PURE__ */ s("div", {
126
+ children: s ? /* @__PURE__ */ c("div", {
118
127
  class: "IncodeDigitalIdUploadProgressBar",
119
128
  role: "progressbar",
120
129
  "aria-valuemin": 0,
121
130
  "aria-valuemax": 100,
122
- "aria-valuenow": t.uploadProgress,
123
- "aria-label": n("idv2.digitalIdUpload.analyzing"),
124
- children: /* @__PURE__ */ s("span", { style: { width: `${t.uploadProgress}%` } })
125
- })
131
+ "aria-valuenow": n.uploadProgress,
132
+ "aria-label": r("idv2.digitalIdUpload.analyzing"),
133
+ children: /* @__PURE__ */ c("span", { style: { width: `${n.uploadProgress}%` } })
134
+ }) : null
126
135
  }),
127
- /* @__PURE__ */ s("div", {
136
+ /* @__PURE__ */ c("div", {
128
137
  class: "IncodeDigitalIdUploadDocumentPreview",
129
138
  "aria-hidden": "true",
130
- children: [r ? /* @__PURE__ */ s(D, {
131
- url: r,
139
+ children: [o ? /* @__PURE__ */ c(D, {
140
+ url: o,
132
141
  mode: "thumbnail",
133
142
  className: "IncodeDigitalIdUploadDocumentPreviewPdf"
134
- }) : null, /* @__PURE__ */ s("div", {
143
+ }) : null, /* @__PURE__ */ c("div", {
135
144
  class: "IncodeDigitalIdUploadLaserOverlay",
136
- children: /* @__PURE__ */ s(w, {
137
- animationData: re,
138
- loop: !0
145
+ children: /* @__PURE__ */ c(E, {
146
+ animationData: ie,
147
+ loop: !0,
148
+ onControlsReady: d
139
149
  })
140
150
  })]
141
151
  }),
142
- /* @__PURE__ */ s("div", {
152
+ /* @__PURE__ */ c("div", {
143
153
  class: "IncodeDigitalIdUploadPostCaptionZone",
144
154
  "aria-hidden": "true"
145
155
  })
146
156
  ]
147
157
  }),
148
- /* @__PURE__ */ s("div", {
158
+ /* @__PURE__ */ c("div", {
149
159
  class: "IncodeDigitalIdUploadFooter",
150
160
  "aria-hidden": "true"
151
161
  })
152
162
  ]
153
163
  });
154
- }, L = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]), R = {
164
+ }, R = new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]), z = {
155
165
  DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED: "idv2.digitalIdUpload.errorScreen.thisIdMustBeScanned",
156
166
  ID_TYPE_UNACCEPTABLE: "idv2.digitalIdUpload.wrongDocumentTypeScreen.errorTitle",
157
167
  FILE_CHANGED_ERROR: "idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle",
158
168
  INVALID_FILE_TYPE: "idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle",
159
169
  NETWORK_ERROR: "idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle",
160
170
  GENERIC: "idv2.digitalIdUpload.unknownDocumentTypeScreen.errorTitle"
161
- }, z = ({ manager: t, state: n }) => {
162
- let { t: r } = e(), i = n.failReason ?? "GENERIC", a = n.phase === "exhausted" || L.has(i), o = F(n.file);
163
- return /* @__PURE__ */ s(d, {
164
- title: r(R[i] ?? R.GENERIC),
171
+ }, B = ({ manager: t, state: n }) => {
172
+ let { t: r } = e(), i = n.failReason ?? "GENERIC", a = n.phase === "exhausted" || R.has(i), o = F(n.file);
173
+ return /* @__PURE__ */ c(f, {
174
+ title: r(z[i] ?? z.GENERIC),
165
175
  subtitle: r("idv2.digitalIdUpload.errorScreen.pleaseTryScanning"),
166
176
  className: "IncodeDigitalIdUploadPage",
167
177
  "data-testid": "digital-id-upload-error",
168
- children: [/* @__PURE__ */ s("div", {
178
+ children: [/* @__PURE__ */ c("div", {
169
179
  class: "IncodeDigitalIdUploadBody",
170
- role: "alert",
171
- "aria-live": "assertive",
172
180
  children: [
173
- /* @__PURE__ */ s("div", {
181
+ /* @__PURE__ */ c("div", {
174
182
  class: "IncodeDigitalIdUploadErrorIcon",
175
183
  "aria-hidden": "true",
176
- children: /* @__PURE__ */ s(x, { size: 40 })
184
+ children: /* @__PURE__ */ c(C, { size: 40 })
177
185
  }),
178
- o ? /* @__PURE__ */ s("div", {
186
+ o ? /* @__PURE__ */ c("div", {
179
187
  class: "IncodeDigitalIdUploadErrorPreview",
180
- children: /* @__PURE__ */ s(D, {
188
+ children: /* @__PURE__ */ c(D, {
181
189
  url: o,
182
190
  mode: "thumbnail",
183
- "aria-label": r("idv2.digitalIdUpload.errorScreen.pleaseTryScanning"),
191
+ "aria-label": r("idv2.digitalIdUpload.errorScreen.previewAriaLabel"),
184
192
  className: "IncodeDigitalIdUploadPreviewPdf"
185
193
  })
186
194
  }) : null,
187
- !a && n.attemptsRemaining > 0 ? /* @__PURE__ */ s("p", {
195
+ !a && n.attemptsRemaining > 0 ? /* @__PURE__ */ c("p", {
188
196
  class: "IncodeDigitalIdUploadAttempts",
189
197
  children: r("common.attemptsRemaining", { count: n.attemptsRemaining })
190
198
  }) : null
191
199
  ]
192
- }), /* @__PURE__ */ s("div", {
200
+ }), /* @__PURE__ */ c("div", {
193
201
  class: "IncodeDigitalIdUploadFooter",
194
- children: [a ? null : /* @__PURE__ */ s(b, {
202
+ children: [a ? null : /* @__PURE__ */ c(S, {
195
203
  onClick: () => t.digitalUploadRetry(),
196
204
  children: r("common.tryAgain")
197
- }), /* @__PURE__ */ s(b, {
205
+ }), /* @__PURE__ */ c(S, {
198
206
  variant: a ? "primary" : "secondary",
199
207
  onClick: () => t.digitalUploadScanInstead(),
200
208
  children: r("idv2.digitalIdUpload.errorScreen.scanId")
201
209
  })]
202
210
  })]
203
211
  });
204
- }, B = ({ manager: t, state: n }) => {
205
- let { t: r } = e(), a = i(null), o = F(n.file), c = (e) => {
212
+ }, V = ({ manager: t, state: n }) => {
213
+ let { t: r } = e(), i = a(null), o = F(n.file), s = (e) => {
206
214
  let n = e.currentTarget.files?.[0];
207
215
  n && t.digitalUploadPickFile(n);
208
216
  };
209
- return /* @__PURE__ */ s(d, {
217
+ return /* @__PURE__ */ c(f, {
210
218
  title: r("idv2.digitalIdUpload.reviewScreen.title"),
211
219
  subtitle: r("idv2.digitalIdUpload.reviewScreen.description"),
212
220
  className: "IncodeDigitalIdUploadPage",
213
221
  "data-testid": "digital-id-upload-review",
214
- children: [/* @__PURE__ */ s("div", {
222
+ children: [/* @__PURE__ */ c("div", {
215
223
  class: "IncodeDigitalIdUploadPreviewBody",
216
224
  children: [
217
- /* @__PURE__ */ s("input", {
218
- ref: a,
225
+ /* @__PURE__ */ c("input", {
226
+ ref: i,
219
227
  type: "file",
220
228
  accept: "application/pdf",
221
- onChange: c,
229
+ onChange: s,
222
230
  class: "IncodeDigitalIdUploadHiddenInput",
223
- "aria-label": r("idv2.digitalIdUpload.reviewScreen.replaceButton")
231
+ tabIndex: -1,
232
+ "aria-hidden": "true"
224
233
  }),
225
- /* @__PURE__ */ s("div", {
234
+ /* @__PURE__ */ c("div", {
226
235
  class: "IncodeDigitalIdUploadPreStatusZone",
227
236
  "aria-hidden": "true"
228
237
  }),
229
- /* @__PURE__ */ s("div", {
238
+ /* @__PURE__ */ c("div", {
230
239
  class: "IncodeDigitalIdUploadPreviewCard",
231
- children: o ? /* @__PURE__ */ s(D, {
240
+ children: o ? /* @__PURE__ */ c(D, {
232
241
  url: o,
233
242
  mode: "thumbnail",
234
- "aria-label": r("idv2.digitalIdUpload.reviewScreen.title"),
243
+ "aria-label": r("idv2.digitalIdUpload.reviewScreen.previewAriaLabel"),
235
244
  className: "IncodeDigitalIdUploadPreviewPdf"
236
245
  }) : null
237
246
  }),
238
- /* @__PURE__ */ s("div", {
247
+ /* @__PURE__ */ c("div", {
239
248
  class: "IncodeDigitalIdUploadPostCaptionZone",
240
- children: n.fileName ? /* @__PURE__ */ s("p", {
249
+ children: n.fileName ? /* @__PURE__ */ c("p", {
241
250
  class: "IncodeDigitalIdUploadFileName",
242
251
  children: n.fileName
243
252
  }) : null
244
253
  })
245
254
  ]
246
- }), /* @__PURE__ */ s("div", {
255
+ }), /* @__PURE__ */ c("div", {
247
256
  class: "IncodeDigitalIdUploadFooter",
248
- children: [/* @__PURE__ */ s(b, {
257
+ children: [/* @__PURE__ */ c(S, {
249
258
  onClick: () => t.digitalUploadConfirm(),
250
259
  children: r("idv2.digitalIdUpload.reviewScreen.continue")
251
- }), /* @__PURE__ */ s(b, {
260
+ }), /* @__PURE__ */ c(S, {
252
261
  variant: "secondary",
262
+ "aria-haspopup": "dialog",
253
263
  onClick: () => {
254
- t.digitalUploadReplace(), a.current?.click();
264
+ t.digitalUploadReplace(), i.current?.click();
255
265
  },
256
266
  children: r("idv2.digitalIdUpload.reviewScreen.replaceButton")
257
267
  })]
258
268
  })]
259
269
  });
260
- }, V = (e) => /* @__PURE__ */ s("svg", {
270
+ }, H = (e) => /* @__PURE__ */ c("svg", {
261
271
  viewBox: "0 0 191 266",
262
272
  fill: "none",
263
273
  xmlns: "http://www.w3.org/2000/svg",
@@ -266,19 +276,19 @@ var I = ({ state: t }) => {
266
276
  className: "IncodeUploadIdScreenImage",
267
277
  ...e,
268
278
  children: [
269
- /* @__PURE__ */ s("title", { children: "Upload ID Screen Image" }),
270
- /* @__PURE__ */ s("path", {
279
+ /* @__PURE__ */ c("title", { children: "Upload ID Screen Image" }),
280
+ /* @__PURE__ */ c("path", {
271
281
  d: "M17.5 11.1724C17.5 7.21119 20.7112 4 24.6724 4H166.328C170.289 4 173.5 7.2112 173.5 11.1724V228.138C173.5 232.099 170.289 235.31 166.328 235.31H24.6724C20.7112 235.31 17.5 232.099 17.5 228.138V11.1724Z",
272
282
  fill: "var(--digital-id-illustration-surface, #FFFFFF)"
273
283
  }),
274
- /* @__PURE__ */ s("rect", {
284
+ /* @__PURE__ */ c("rect", {
275
285
  x: 17.5,
276
286
  y: 16.5518,
277
287
  width: 156,
278
288
  height: 10.7586,
279
289
  fill: "var(--digital-id-illustration-strip, #EBECEF)"
280
290
  }),
281
- /* @__PURE__ */ s("rect", {
291
+ /* @__PURE__ */ c("rect", {
282
292
  x: 98.1895,
283
293
  y: 35.3799,
284
294
  width: 68.1379,
@@ -286,67 +296,67 @@ var I = ({ state: t }) => {
286
296
  rx: 7.17241,
287
297
  fill: "var(--digital-id-illustration-photo, #F0F6FF)"
288
298
  }),
289
- /* @__PURE__ */ s("path", {
299
+ /* @__PURE__ */ c("path", {
290
300
  fillRule: "evenodd",
291
301
  clipRule: "evenodd",
292
302
  d: "M124.391 67.5897C124.391 68.725 123.469 69.6497 122.331 69.6497H114.953C113.818 69.6497 112.893 68.725 112.893 67.5897V60.2117C112.893 59.074 113.818 58.1518 114.953 58.1518H122.331C123.469 58.1518 124.391 59.074 124.391 60.2117V67.5897ZM122.331 53.3105H114.953C111.148 53.3105 108.052 56.4065 108.052 60.2117V67.5897C108.052 71.3949 111.148 74.4909 114.953 74.4909H122.331C126.136 74.4909 129.232 71.3949 129.232 67.5897V60.2117C129.232 56.4065 126.136 53.3105 122.331 53.3105Z",
293
303
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
294
304
  }),
295
- /* @__PURE__ */ s("path", {
305
+ /* @__PURE__ */ c("path", {
296
306
  fillRule: "evenodd",
297
307
  clipRule: "evenodd",
298
308
  d: "M118.643 61.4951C117.307 61.4951 116.223 62.5941 116.223 63.9303C116.223 65.2664 117.307 66.3509 118.643 66.3509C119.979 66.3509 121.064 65.2664 121.064 63.9303V63.9012C121.064 62.565 119.979 61.4951 118.643 61.4951Z",
299
309
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
300
310
  }),
301
- /* @__PURE__ */ s("path", {
311
+ /* @__PURE__ */ c("path", {
302
312
  fillRule: "evenodd",
303
313
  clipRule: "evenodd",
304
314
  d: "M118.643 88.7246C117.307 88.7246 116.223 89.8236 116.223 91.1597C116.223 92.4959 117.307 93.5804 118.643 93.5804C119.979 93.5804 121.064 92.4959 121.064 91.1597V91.1307C121.064 89.7945 119.979 88.7246 118.643 88.7246Z",
305
315
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
306
316
  }),
307
- /* @__PURE__ */ s("path", {
317
+ /* @__PURE__ */ c("path", {
308
318
  fillRule: "evenodd",
309
319
  clipRule: "evenodd",
310
320
  d: "M124.391 94.8222C124.391 95.9574 123.469 96.8821 122.331 96.8821H114.953C113.818 96.8821 112.893 95.9574 112.893 94.8222V87.4441C112.893 86.3064 113.818 85.3842 114.953 85.3842H122.331C123.469 85.3842 124.391 86.3064 124.391 87.4441V94.8222ZM122.331 80.543H114.953C111.148 80.543 108.052 83.6389 108.052 87.4441V94.8222C108.052 98.6274 111.148 101.723 114.953 101.723H122.331C126.136 101.723 129.232 98.6274 129.232 94.8222V87.4441C129.232 83.6389 126.136 80.543 122.331 80.543Z",
311
321
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
312
322
  }),
313
- /* @__PURE__ */ s("path", {
323
+ /* @__PURE__ */ c("path", {
314
324
  fillRule: "evenodd",
315
325
  clipRule: "evenodd",
316
326
  d: "M151.623 94.8222C151.623 95.9574 150.701 96.8821 149.563 96.8821H142.185C141.05 96.8821 140.125 95.9574 140.125 94.8222V87.4441C140.125 86.3064 141.05 85.3842 142.185 85.3842H149.563C150.701 85.3842 151.623 86.3064 151.623 87.4441V94.8222ZM149.563 80.543H142.185C138.38 80.543 135.284 83.6389 135.284 87.4441V94.8222C135.284 98.6274 138.38 101.723 142.185 101.723H149.563C153.369 101.723 156.465 98.6274 156.465 94.8222V87.4441C156.465 83.6389 153.369 80.543 149.563 80.543Z",
317
327
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
318
328
  }),
319
- /* @__PURE__ */ s("path", {
329
+ /* @__PURE__ */ c("path", {
320
330
  fillRule: "evenodd",
321
331
  clipRule: "evenodd",
322
332
  d: "M145.876 88.6826C144.54 88.6826 143.455 89.7671 143.455 91.1032V91.1299C143.455 92.466 144.54 93.5359 145.876 93.5359C147.212 93.5359 148.296 92.4394 148.296 91.1032C148.296 89.7671 147.212 88.6826 145.876 88.6826Z",
323
333
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
324
334
  }),
325
- /* @__PURE__ */ s("path", {
335
+ /* @__PURE__ */ c("path", {
326
336
  fillRule: "evenodd",
327
337
  clipRule: "evenodd",
328
338
  d: "M137.705 58.18C139.041 58.18 140.125 57.0955 140.125 55.7594V55.7303C140.125 54.3941 139.041 53.3242 137.705 53.3242C136.369 53.3242 135.284 54.4232 135.284 55.7594C135.284 57.0955 136.369 58.18 137.705 58.18Z",
329
339
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
330
340
  }),
331
- /* @__PURE__ */ s("path", {
341
+ /* @__PURE__ */ c("path", {
332
342
  fillRule: "evenodd",
333
343
  clipRule: "evenodd",
334
344
  d: "M150.487 53.3105H145.876C144.537 53.3105 143.455 54.395 143.455 55.7312C143.455 57.0673 144.537 58.1518 145.876 58.1518H150.487C151.114 58.1518 151.625 58.6625 151.625 59.2919V63.9007C151.625 65.2369 152.707 66.3213 154.045 66.3213C155.381 66.3213 156.466 65.2369 156.466 63.9007V59.2919C156.466 55.9926 153.784 53.3105 150.487 53.3105Z",
335
345
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
336
346
  }),
337
- /* @__PURE__ */ s("path", {
347
+ /* @__PURE__ */ c("path", {
338
348
  fillRule: "evenodd",
339
349
  clipRule: "evenodd",
340
350
  d: "M154.045 69.6514H145.876C144.54 69.6514 143.455 70.7358 143.455 72.072C143.455 73.4081 144.54 74.4925 145.876 74.4925H154.045C155.381 74.4925 156.466 73.4081 156.466 72.072C156.466 70.7358 155.381 69.6514 154.045 69.6514Z",
341
351
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
342
352
  }),
343
- /* @__PURE__ */ s("path", {
353
+ /* @__PURE__ */ c("path", {
344
354
  fillRule: "evenodd",
345
355
  clipRule: "evenodd",
346
356
  d: "M137.705 74.4922C139.041 74.4922 140.125 73.4078 140.125 72.0716V67.4604C140.125 66.8334 140.636 66.3227 141.266 66.3227H145.874C147.211 66.3227 148.295 65.2382 148.295 63.9021C148.295 62.5659 147.211 61.4814 145.874 61.4814H141.266C137.966 61.4814 135.284 64.1635 135.284 67.4604V72.0716C135.284 73.4078 136.369 74.4922 137.705 74.4922Z",
347
357
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
348
358
  }),
349
- /* @__PURE__ */ s("rect", {
359
+ /* @__PURE__ */ c("rect", {
350
360
  x: 29.1553,
351
361
  y: 134,
352
362
  width: 54.6897,
@@ -354,7 +364,7 @@ var I = ({ state: t }) => {
354
364
  rx: 3.58621,
355
365
  fill: "var(--digital-id-illustration-strip, #EBECEF)"
356
366
  }),
357
- /* @__PURE__ */ s("rect", {
367
+ /* @__PURE__ */ c("rect", {
358
368
  x: 29.1553,
359
369
  y: 152.828,
360
370
  width: 54.6897,
@@ -362,7 +372,7 @@ var I = ({ state: t }) => {
362
372
  rx: 3.58621,
363
373
  fill: "var(--digital-id-illustration-strip, #EBECEF)"
364
374
  }),
365
- /* @__PURE__ */ s("rect", {
375
+ /* @__PURE__ */ c("rect", {
366
376
  x: 29.1553,
367
377
  y: 171.655,
368
378
  width: 72.6207,
@@ -370,12 +380,12 @@ var I = ({ state: t }) => {
370
380
  rx: 3.58621,
371
381
  fill: "var(--digital-id-illustration-strip, #EBECEF)"
372
382
  }),
373
- /* @__PURE__ */ s("path", {
383
+ /* @__PURE__ */ c("path", {
374
384
  d: "M24.6729 4.44824H166.327C170.041 4.44824 173.052 7.45921 173.052 11.1729V228.138C173.052 231.851 170.041 234.862 166.327 234.862H24.6729C20.9592 234.862 17.9482 231.851 17.9482 228.138V11.1729C17.9482 7.45921 20.9592 4.44824 24.6729 4.44824Z",
375
385
  stroke: "var(--digital-id-illustration-border, #EBECEF)",
376
386
  strokeWidth: .896552
377
387
  }),
378
- /* @__PURE__ */ s("rect", {
388
+ /* @__PURE__ */ c("rect", {
379
389
  x: 24.6729,
380
390
  y: 35.8066,
381
391
  width: 68.1379,
@@ -383,194 +393,196 @@ var I = ({ state: t }) => {
383
393
  rx: 4.93753,
384
394
  fill: "var(--digital-id-illustration-photo, #F0F6FF)"
385
395
  }),
386
- /* @__PURE__ */ s("path", {
396
+ /* @__PURE__ */ c("path", {
387
397
  d: "M49.36 91.1735V91.2999C49.3251 93.9726 47.0753 95.9823 42.6104 97.3291C47.9904 101.237 53.3707 104.364 58.7507 104.364C64.1307 104.364 69.5111 101.237 74.8911 97.3291C70.4565 95.9808 68.2066 93.968 68.1415 91.2908C68.1415 90.2747 68.145 80.3761 68.1497 79.36C68.4704 79.4052 68.4432 79.3765 68.1497 79.295C68.1585 75.9478 68.1729 80.3294 68.1928 75.7552C68.2128 71.181 49.0493 67.0886 49.3306 79.6487C49.3344 80.9294 49.3421 89.7232 49.36 91.1735Z",
388
398
  fill: "var(--digital-id-illustration-face-highlight, #E0E0E0)"
389
399
  }),
390
- /* @__PURE__ */ s("path", {
400
+ /* @__PURE__ */ c("path", {
391
401
  d: "M92.8103 106.416C92.8103 108.838 92.8103 111.556 92.8103 113.823C92.8103 116.55 90.5997 118.759 87.8728 118.759H29.6104C26.8835 118.759 24.6729 116.55 24.6729 113.823C24.6729 111.669 24.6729 109.075 24.6729 106.609C27.8413 100.94 46.2752 95.6817 46.2752 95.6817C47.9856 98.7716 53.0062 101.59 58.1454 101.716C63.7221 101.853 69.4385 99.0337 71.2165 95.6797C71.2165 95.6797 89.6412 100.745 92.8103 106.416Z",
392
402
  fill: "var(--digital-id-illustration-accent, var(--icon-brand-500-static, #006AFF))"
393
403
  }),
394
- /* @__PURE__ */ s("path", {
404
+ /* @__PURE__ */ c("path", {
395
405
  d: "M49.1074 85.037C56.9841 84.2188 64.4004 87.6292 64.4004 87.6292C64.4004 87.6292 62.9302 95.3516 49.1074 93.1072V85.037Z",
396
406
  fill: "var(--digital-id-illustration-face-shadow, #CDCDCD)"
397
407
  }),
398
- /* @__PURE__ */ s("path", {
408
+ /* @__PURE__ */ c("path", {
399
409
  d: "M42.6488 68.8767C43.699 67.1248 45.009 68.3295 45.5328 69.1509L46.2644 76.9402C46.2387 77.6181 45.8326 78.0487 44.7734 78.1827C43.4493 78.3502 42.5746 74.7442 42.2696 73.3982C41.9645 72.0521 41.336 71.0665 42.6488 68.8767Z",
400
410
  fill: "var(--digital-id-illustration-mask-shadow, #D0D0D0)"
401
411
  }),
402
- /* @__PURE__ */ s("path", {
412
+ /* @__PURE__ */ c("path", {
403
413
  d: "M74.3552 69.3252C73.3216 67.5635 72.0003 68.7558 71.4688 69.5721L70.6635 77.3542C70.6827 78.0322 71.0848 78.4667 72.1427 78.6107C73.4651 78.7907 74.3739 75.1932 74.6917 73.8501C75.0094 72.507 75.6472 71.5273 74.3552 69.3252Z",
404
414
  fill: "var(--digital-id-illustration-mask-shadow, #D0D0D0)"
405
415
  }),
406
- /* @__PURE__ */ s("path", {
416
+ /* @__PURE__ */ c("path", {
407
417
  d: "M73.3109 70.6918C73.3109 81.9566 65.1557 91.0886 58.7907 91.0886C51.829 91.0886 44.2705 81.9566 44.2705 70.6918C44.2705 60.6551 45.0714 49.9307 58.7907 49.9307C72.51 49.9307 73.3109 60.423 73.3109 70.6918Z",
408
418
  fill: "var(--digital-id-illustration-mask, #FAFAFA)"
409
419
  })
410
420
  ]
411
- }), H = ({ size: e = 191 }) => /* @__PURE__ */ s(V, {
421
+ }), U = ({ size: e = 191 }) => /* @__PURE__ */ c(H, {
412
422
  width: e,
413
423
  height: Math.round(e * 266 / 191),
414
424
  "aria-hidden": !0
415
- }), U = ({ manager: n, state: r }) => {
416
- let { t: a } = e(), o = i(null);
425
+ }), W = ({ manager: n, state: r }) => {
426
+ let { t: i } = e(), o = a(null);
417
427
  t(() => {
418
428
  o.current && o.current.click();
419
429
  }, [r.pickerRequestId]);
420
- let c = (e) => {
430
+ let s = (e) => {
421
431
  let t = e.currentTarget.files?.[0];
422
432
  t && n.digitalUploadPickFile(t);
423
433
  };
424
- return /* @__PURE__ */ s(d, {
425
- title: a("idv2.digitalIdUpload.screenTitle"),
426
- subtitle: a("idv2.digitalIdUpload.screenDescription"),
434
+ return /* @__PURE__ */ c(f, {
435
+ title: i("idv2.digitalIdUpload.screenTitle"),
436
+ subtitle: i("idv2.digitalIdUpload.screenDescription"),
427
437
  className: "IncodeDigitalIdUploadPage",
428
438
  "data-testid": "digital-id-upload-selection",
429
- children: [/* @__PURE__ */ s("div", {
439
+ children: [/* @__PURE__ */ c("div", {
430
440
  class: "IncodeDigitalIdUploadBody",
431
- children: [/* @__PURE__ */ s("input", {
441
+ children: [/* @__PURE__ */ c("input", {
432
442
  ref: o,
433
443
  type: "file",
434
444
  accept: "application/pdf",
435
- onChange: c,
445
+ onChange: s,
436
446
  class: "IncodeDigitalIdUploadHiddenInput",
437
- "aria-label": a("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
438
- }), /* @__PURE__ */ s("div", {
447
+ tabIndex: -1,
448
+ "aria-hidden": "true"
449
+ }), /* @__PURE__ */ c("div", {
439
450
  class: "IncodeDigitalIdUploadTutorialIllustration",
440
451
  "aria-hidden": "true",
441
- children: /* @__PURE__ */ s(H, {})
452
+ children: /* @__PURE__ */ c(U, {})
442
453
  })]
443
- }), /* @__PURE__ */ s("div", {
454
+ }), /* @__PURE__ */ c("div", {
444
455
  class: "IncodeDigitalIdUploadFooter",
445
- children: /* @__PURE__ */ s(b, {
456
+ children: /* @__PURE__ */ c(S, {
446
457
  onClick: () => o.current?.click(),
447
- children: a("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
458
+ "aria-haspopup": "dialog",
459
+ children: i("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
448
460
  })
449
461
  })]
450
462
  });
451
- }, ie = ({ manager: t }) => {
463
+ }, G = ({ manager: t }) => {
452
464
  let { t: n } = e();
453
- return /* @__PURE__ */ s(d, {
465
+ return /* @__PURE__ */ c(f, {
454
466
  title: n("idv2.digitalIdUpload.fileTooLargeScreen.title"),
455
467
  subtitle: n("idv2.digitalIdUpload.fileTooLargeScreen.subtitle"),
456
468
  className: "IncodeDigitalIdUploadPage",
457
469
  "data-testid": "digital-id-upload-file-too-large",
458
- children: [/* @__PURE__ */ s("div", { class: "IncodeDigitalIdUploadBody" }), /* @__PURE__ */ s("div", {
470
+ children: [/* @__PURE__ */ c("div", { class: "IncodeDigitalIdUploadBody" }), /* @__PURE__ */ c("div", {
459
471
  class: "IncodeDigitalIdUploadFooter",
460
- children: /* @__PURE__ */ s(b, {
472
+ children: /* @__PURE__ */ c(S, {
461
473
  onClick: () => t.digitalUploadChooseAnother(),
462
474
  children: n("idv2.digitalIdUpload.fileTooLargeScreen.cta")
463
475
  })
464
476
  })]
465
477
  });
466
- }, W = ({ manager: t, state: n }) => {
478
+ }, K = ({ manager: t, state: n }) => {
467
479
  let { t: r } = e(), i = F(n.file);
468
- return /* @__PURE__ */ s(d, {
469
- titleTopSlot: /* @__PURE__ */ s("div", {
480
+ return /* @__PURE__ */ c(f, {
481
+ titleTopSlot: /* @__PURE__ */ c("div", {
470
482
  class: "IncodeDigitalIdUploadSuccessIcon",
471
483
  "aria-hidden": "true",
472
- children: /* @__PURE__ */ s(C, { size: 32 })
484
+ children: /* @__PURE__ */ c(T, { size: 32 })
473
485
  }),
474
486
  title: r("idv2.digitalIdUpload.successfullyProcessed"),
475
487
  subtitle: r("idv2.digitalIdUpload.loadingSuccess.letsContinue"),
476
488
  className: "IncodeDigitalIdUploadPage",
477
489
  "data-testid": "digital-id-upload-success",
478
- children: [/* @__PURE__ */ s("div", {
490
+ children: [/* @__PURE__ */ c("div", {
479
491
  class: "IncodeDigitalIdUploadPreviewBody",
480
492
  children: [
481
- /* @__PURE__ */ s("div", {
493
+ /* @__PURE__ */ c("div", {
482
494
  class: "IncodeDigitalIdUploadPreStatusZone",
483
495
  "aria-hidden": "true"
484
496
  }),
485
- /* @__PURE__ */ s("div", {
497
+ /* @__PURE__ */ c("div", {
486
498
  class: "IncodeDigitalIdUploadDocumentPreview",
487
499
  "aria-hidden": "true",
488
- children: i ? /* @__PURE__ */ s(D, {
500
+ children: i ? /* @__PURE__ */ c(D, {
489
501
  url: i,
490
502
  mode: "thumbnail",
491
503
  className: "IncodeDigitalIdUploadDocumentPreviewPdf"
492
504
  }) : null
493
505
  }),
494
- /* @__PURE__ */ s("div", {
506
+ /* @__PURE__ */ c("div", {
495
507
  class: "IncodeDigitalIdUploadPostCaptionZone",
496
508
  "aria-hidden": "true"
497
509
  })
498
510
  ]
499
- }), /* @__PURE__ */ s("div", {
511
+ }), /* @__PURE__ */ c("div", {
500
512
  class: "IncodeDigitalIdUploadFooter",
501
- children: /* @__PURE__ */ s(b, {
513
+ children: /* @__PURE__ */ c(S, {
502
514
  onClick: () => t.digitalUploadNextStep(),
503
515
  children: r("idv2.digitalIdUpload.continue")
504
516
  })
505
517
  })]
506
518
  });
507
- }, G = ({ manager: t }) => {
519
+ }, q = ({ manager: t }) => {
508
520
  let { t: n } = e();
509
- return /* @__PURE__ */ s(d, {
521
+ return /* @__PURE__ */ c(f, {
510
522
  title: n("idv2.digitalIdUpload.screenTitle"),
511
523
  subtitle: n("idv2.digitalIdUpload.screenDescription"),
512
524
  className: "IncodeDigitalIdUploadPage",
513
525
  "data-testid": "digital-id-upload-tutorial",
514
- children: [/* @__PURE__ */ s("div", {
526
+ children: [/* @__PURE__ */ c("div", {
515
527
  class: "IncodeDigitalIdUploadBody",
516
- children: /* @__PURE__ */ s("div", {
528
+ children: /* @__PURE__ */ c("div", {
517
529
  class: "IncodeDigitalIdUploadTutorialIllustration",
518
530
  "aria-hidden": "true",
519
- children: /* @__PURE__ */ s(H, {})
531
+ children: /* @__PURE__ */ c(U, {})
520
532
  })
521
- }), /* @__PURE__ */ s("div", {
533
+ }), /* @__PURE__ */ c("div", {
522
534
  class: "IncodeDigitalIdUploadFooter",
523
- children: /* @__PURE__ */ s(b, {
535
+ children: /* @__PURE__ */ c(S, {
524
536
  onClick: () => t.digitalUploadNextStep(),
525
537
  children: n("idv2.digitalIdUpload.digitalIdUploadButtonTitle")
526
538
  })
527
539
  })]
528
540
  });
529
- }, K = ({ manager: e, state: t }) => t.phase === "tutorial" ? /* @__PURE__ */ s(G, { manager: e }) : t.phase === "selecting" ? /* @__PURE__ */ s(U, {
541
+ }, J = ({ manager: e, state: t }) => t.phase === "tutorial" ? /* @__PURE__ */ c(q, { manager: e }) : t.phase === "selecting" ? /* @__PURE__ */ c(W, {
530
542
  manager: e,
531
543
  state: t
532
- }) : t.phase === "reviewing" ? /* @__PURE__ */ s(B, {
544
+ }) : t.phase === "reviewing" ? /* @__PURE__ */ c(V, {
533
545
  manager: e,
534
546
  state: t
535
- }) : t.phase === "uploading" || t.phase === "holding" ? /* @__PURE__ */ s(I, { state: t }) : t.phase === "success" ? /* @__PURE__ */ s(W, {
547
+ }) : t.phase === "uploading" || t.phase === "holding" ? /* @__PURE__ */ c(L, { state: t }) : t.phase === "success" ? /* @__PURE__ */ c(K, {
536
548
  manager: e,
537
549
  state: t
538
- }) : t.phase === "fileTooLarge" ? /* @__PURE__ */ s(ie, { manager: e }) : t.phase === "error" || t.phase === "exhausted" ? /* @__PURE__ */ s(z, {
550
+ }) : t.phase === "fileTooLarge" ? /* @__PURE__ */ c(G, { manager: e }) : t.phase === "error" || t.phase === "exhausted" ? /* @__PURE__ */ c(B, {
539
551
  manager: e,
540
552
  state: t
541
- }) : null, q = ({ icon: e, label: t, uploaded: n, uploading: r, disabled: a, testId: o, onFile: c }) => {
542
- let l = i(null), d = a || r, f = () => {
543
- d || l.current?.click();
553
+ }) : null, Y = ({ icon: e, label: t, uploaded: n, uploading: r, disabled: i, testId: o, onFile: s }) => {
554
+ let l = a(null), u = i || r, f = () => {
555
+ u || l.current?.click();
544
556
  }, p = (e) => {
545
557
  let t = e.target, n = t.files?.[0];
546
- n && c(n), t.value = "";
547
- }, m = () => r ? /* @__PURE__ */ s(_, { size: "small" }) : n ? /* @__PURE__ */ s(C, { size: 40 }) : /* @__PURE__ */ s(S, {
558
+ n && s(n), t.value = "";
559
+ }, m = () => r ? /* @__PURE__ */ c(y, { size: "small" }) : n ? /* @__PURE__ */ c(T, { size: 40 }) : /* @__PURE__ */ c(w, {
548
560
  variant: "xs",
549
561
  size: 16
550
562
  });
551
- return /* @__PURE__ */ s("div", {
552
- class: u("IncodeManualUploadSlot", n && "IncodeManualUploadSlot--uploaded", d && "IncodeManualUploadSlot--disabled"),
563
+ return /* @__PURE__ */ c("div", {
564
+ class: d("IncodeManualUploadSlot", n && "IncodeManualUploadSlot--uploaded", u && "IncodeManualUploadSlot--disabled"),
553
565
  children: [
554
- /* @__PURE__ */ s("div", {
566
+ /* @__PURE__ */ c("div", {
555
567
  class: "IncodeManualUploadSlotIcon",
556
568
  "aria-hidden": "true",
557
569
  children: e
558
570
  }),
559
- /* @__PURE__ */ s("div", {
571
+ /* @__PURE__ */ c("div", {
560
572
  class: "IncodeManualUploadSlotLabel",
561
573
  children: t
562
574
  }),
563
- /* @__PURE__ */ s("button", {
575
+ /* @__PURE__ */ c("button", {
564
576
  type: "button",
565
577
  class: "IncodeManualUploadSlotAction",
566
578
  onClick: f,
567
- disabled: d,
579
+ disabled: u,
568
580
  "aria-label": t,
569
581
  "aria-busy": r || void 0,
570
582
  "data-testid": o,
571
583
  children: m()
572
584
  }),
573
- /* @__PURE__ */ s("input", {
585
+ /* @__PURE__ */ c("input", {
574
586
  ref: l,
575
587
  type: "file",
576
588
  accept: "image/*",
@@ -582,47 +594,47 @@ var I = ({ state: t }) => {
582
594
  })
583
595
  ]
584
596
  });
585
- }, J = "IncodeManualUploadSlotIconHighlight", Y = () => /* @__PURE__ */ s("svg", {
597
+ }, ae = "IncodeManualUploadSlotIconHighlight", X = () => /* @__PURE__ */ c("svg", {
586
598
  xmlns: "http://www.w3.org/2000/svg",
587
599
  width: "27",
588
600
  height: "27",
589
601
  viewBox: "0 0 27 27",
590
602
  fill: "none",
591
603
  "aria-hidden": "true",
592
- children: [/* @__PURE__ */ s("path", {
604
+ children: [/* @__PURE__ */ c("path", {
593
605
  d: "M11.4187 12.2343C11.4187 12.557 11.323 12.8724 11.1437 13.1406C10.9645 13.4089 10.7097 13.618 10.4117 13.7414C10.1136 13.8649 9.78559 13.8972 9.46916 13.8343C9.15273 13.7713 8.86207 13.6159 8.63393 13.3878C8.4058 13.1597 8.25044 12.869 8.1875 12.5526C8.12455 12.2362 8.15686 11.9082 8.28032 11.6101C8.40379 11.312 8.61287 11.0573 8.88113 10.878C9.14939 10.6988 9.46477 10.6031 9.7874 10.6031C10.22 10.6031 10.635 10.775 10.9409 11.0809C11.2468 11.3868 11.4187 11.8017 11.4187 12.2343ZM23.653 5.70934V20.3906C23.653 20.8232 23.4812 21.2381 23.1752 21.5441C22.8693 21.85 22.4544 22.0218 22.0218 22.0218H4.07803C3.64539 22.0218 3.23048 21.85 2.92456 21.5441C2.61864 21.2381 2.44678 20.8232 2.44678 20.3906V5.70934C2.44678 5.27671 2.61864 4.8618 2.92456 4.55588C3.23048 4.24996 3.64539 4.07809 4.07803 4.07809H22.0218C22.4544 4.07809 22.8693 4.24996 23.1752 4.55588C23.4812 4.8618 23.653 5.27671 23.653 5.70934ZM20.3905 14.6812C20.3905 14.4649 20.3046 14.2574 20.1516 14.1045C19.9987 13.9515 19.7912 13.8656 19.5749 13.8656H15.4968C15.2805 13.8656 15.073 13.9515 14.92 14.1045C14.7671 14.2574 14.6812 14.4649 14.6812 14.6812C14.6812 14.8975 14.7671 15.105 14.92 15.258C15.073 15.4109 15.2805 15.4968 15.4968 15.4968H19.5749C19.7912 15.4968 19.9987 15.4109 20.1516 15.258C20.3046 15.105 20.3905 14.8975 20.3905 14.6812ZM20.3905 11.4187C20.3905 11.2024 20.3046 10.9949 20.1516 10.842C19.9987 10.689 19.7912 10.6031 19.5749 10.6031H15.4968C15.2805 10.6031 15.073 10.689 14.92 10.842C14.7671 10.9949 14.6812 11.2024 14.6812 11.4187C14.6812 11.635 14.7671 11.8425 14.92 11.9955C15.073 12.1484 15.2805 12.2343 15.4968 12.2343H19.5749C19.7912 12.2343 19.9987 12.1484 20.1516 11.9955C20.3046 11.8425 20.3905 11.635 20.3905 11.4187Z",
594
606
  fill: "currentColor"
595
- }), /* @__PURE__ */ s("path", {
607
+ }), /* @__PURE__ */ c("path", {
596
608
  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",
597
609
  fill: "white"
598
610
  })]
599
- }), ae = () => /* @__PURE__ */ s("svg", {
611
+ }), oe = () => /* @__PURE__ */ c("svg", {
600
612
  viewBox: "0 0 27 27",
601
613
  fill: "none",
602
614
  "aria-hidden": "true",
603
- children: /* @__PURE__ */ s("path", {
615
+ children: /* @__PURE__ */ c("path", {
604
616
  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",
605
617
  fill: "currentColor"
606
618
  })
607
- }), X = () => /* @__PURE__ */ s("svg", {
619
+ }), se = () => /* @__PURE__ */ c("svg", {
608
620
  viewBox: "0 0 27 27",
609
621
  fill: "none",
610
622
  "aria-hidden": "true",
611
623
  children: [
612
- /* @__PURE__ */ s("path", {
624
+ /* @__PURE__ */ c("path", {
613
625
  d: "M14.8498 4.01579L24.7216 4.01579C25.0873 4.01579 25.4379 4.18646 25.6964 4.49026C25.955 4.79406 26.1002 5.20609 26.1002 5.63573L26.1002 21.4689C26.1002 21.8986 25.955 22.3106 25.6964 22.6144C25.4379 22.9182 25.0873 23.0889 24.7216 23.0889L14.8498 23.0889C14.4841 23.0889 14.1335 22.9182 13.875 22.6144C13.6164 22.3106 13.4712 21.8986 13.4712 21.4689L13.4712 5.63573C13.4712 5.20609 13.6164 4.79406 13.875 4.49026C14.1335 4.18646 14.4841 4.01579 14.8498 4.01579ZM21.5868 7.25567C21.404 7.25567 21.2287 7.341 21.0994 7.4929C20.9702 7.6448 20.8975 7.85082 20.8975 8.06564L20.8975 11.1224C20.8975 11.3372 20.9702 11.5433 21.0994 11.6952C21.2287 11.8471 21.404 11.9324 21.5868 11.9324C21.7696 11.9324 21.945 11.8471 22.0742 11.6952C22.2035 11.5433 22.2761 11.3372 22.2761 11.1224L22.2761 8.06564C22.2761 7.85082 22.2035 7.6448 22.0742 7.4929C21.945 7.341 21.7696 7.25567 21.5868 7.25567ZM18.8297 7.25567C18.6469 7.25567 18.4715 7.341 18.3423 7.4929C18.213 7.6448 18.1404 7.85082 18.1404 8.06564L18.1404 11.1224C18.1404 11.3372 18.213 11.5433 18.3423 11.6952C18.4715 11.8471 18.6469 11.9324 18.8297 11.9324C19.0125 11.9324 19.1878 11.8471 19.3171 11.6952C19.4463 11.5433 19.519 11.3372 19.519 11.1224L19.519 8.06564C19.519 7.85082 19.4463 7.6448 19.3171 7.4929C19.1878 7.341 19.0125 7.25567 18.8297 7.25567Z",
614
626
  fill: "currentColor"
615
627
  }),
616
- /* @__PURE__ */ s("path", {
617
- class: J,
628
+ /* @__PURE__ */ c("path", {
629
+ class: ae,
618
630
  d: "M22.1102 19.9907C21.6493 19.6096 21.2864 19.1017 21.0575 18.5174L21.0575 18.5142C20.7934 18.8345 20.448 19.0589 20.0667 19.158C19.6853 19.257 19.2859 19.2261 18.9207 19.0693C18.5555 18.9124 18.2417 18.637 18.0204 18.2792C17.7991 17.9213 17.6807 17.4977 17.6807 17.064C17.6807 16.6303 17.7991 16.2067 18.0204 15.8488C18.2417 15.491 18.5555 15.2155 18.9207 15.0587C19.2859 14.9019 19.6853 14.871 20.0667 14.97C20.448 15.0691 20.7934 15.2935 21.0575 15.6138C21.2864 15.0295 21.6493 14.5216 22.1102 14.1405C22.1679 14.0924 22.2366 14.0631 22.3086 14.0558C22.3805 14.0486 22.4528 14.0637 22.5174 14.0994C22.582 14.1352 22.6364 14.1902 22.6743 14.2582C22.7123 14.3262 22.7323 14.4047 22.7323 14.4846L22.7323 19.6466C22.7323 19.7266 22.7123 19.805 22.6743 19.873C22.6364 19.9411 22.582 19.996 22.5174 20.0318C22.4528 20.0675 22.3805 20.0826 22.3086 20.0754C22.2366 20.0681 22.1679 20.0388 22.1102 19.9907Z"
619
631
  }),
620
- /* @__PURE__ */ s("path", {
632
+ /* @__PURE__ */ c("path", {
621
633
  d: "M1.14809 4.01579L11.4809 4.01579C11.7854 4.01579 12.0775 4.18582 12.2928 4.48848C12.5081 4.79114 12.629 5.20164 12.629 5.62967L12.629 21.475C12.629 21.903 12.5081 22.3135 12.2928 22.6162C12.0775 22.9188 11.7854 23.0889 11.4809 23.0889L1.14809 23.0889C0.843601 23.0889 0.551578 22.9188 0.336269 22.6162C0.12096 22.3135 2.17692e-08 21.903 3.05959e-09 21.475L-7.63166e-07 5.62967C-7.81875e-07 5.20164 0.120959 4.79115 0.336268 4.48849C0.551577 4.18583 0.8436 4.01579 1.14809 4.01579Z",
622
634
  fill: "currentColor"
623
635
  })
624
636
  ]
625
- }), oe = {
637
+ }), ce = {
626
638
  front: {
627
639
  idle: "manualIdUpload.frontId",
628
640
  uploading: "manualIdUpload.uploadingFrontId",
@@ -640,15 +652,15 @@ var I = ({ state: t }) => {
640
652
  }
641
653
  }, Z = ({ mode: t, manager: n, state: r }) => {
642
654
  let { t: i } = e(), a = (e, t, n) => {
643
- let r = oe[e];
655
+ let r = ce[e];
644
656
  return i(t ? r.uploading : n ? r.uploaded : r.idle);
645
657
  };
646
658
  if (t === "passport") {
647
659
  let e = r.uploadingSide === "passport";
648
- return /* @__PURE__ */ s("div", {
660
+ return /* @__PURE__ */ c("div", {
649
661
  class: "IncodeManualUploadTab",
650
- children: /* @__PURE__ */ s(q, {
651
- icon: /* @__PURE__ */ s(X, {}),
662
+ children: /* @__PURE__ */ c(Y, {
663
+ icon: /* @__PURE__ */ c(se, {}),
652
664
  label: a("passport", e, r.passportUploaded),
653
665
  uploaded: r.passportUploaded,
654
666
  uploading: e,
@@ -657,35 +669,35 @@ var I = ({ state: t }) => {
657
669
  })
658
670
  });
659
671
  }
660
- let o = r.uploadingSide === "front", c = r.uploadingSide === "back";
661
- return /* @__PURE__ */ s("div", {
672
+ let o = r.uploadingSide === "front", s = r.uploadingSide === "back";
673
+ return /* @__PURE__ */ c("div", {
662
674
  class: "IncodeManualUploadTab",
663
- children: [/* @__PURE__ */ s(q, {
664
- icon: /* @__PURE__ */ s(Y, {}),
675
+ children: [/* @__PURE__ */ c(Y, {
676
+ icon: /* @__PURE__ */ c(X, {}),
665
677
  label: a("front", o, r.frontUploaded),
666
678
  uploaded: r.frontUploaded,
667
679
  uploading: o,
668
680
  testId: "manual-upload-front",
669
681
  onFile: (e) => n.manualUploadSelectFile("front", e)
670
- }), r.showBackSlot && /* @__PURE__ */ s(q, {
671
- icon: /* @__PURE__ */ s(ae, {}),
672
- label: a("back", c, r.backUploaded),
682
+ }), r.showBackSlot && /* @__PURE__ */ c(Y, {
683
+ icon: /* @__PURE__ */ c(oe, {}),
684
+ label: a("back", s, r.backUploaded),
673
685
  uploaded: r.backUploaded,
674
- uploading: c,
686
+ uploading: s,
675
687
  testId: "manual-upload-back",
676
688
  onFile: (e) => n.manualUploadSelectFile("back", e)
677
689
  })]
678
690
  });
679
- }, se = (e) => e === "id" || e === "passport", ce = ({ manager: t, state: n }) => {
691
+ }, le = (e) => e === "id" || e === "passport", ue = ({ manager: t, state: n }) => {
680
692
  let { t: r } = e();
681
- if (n.phase === "exhausted") return /* @__PURE__ */ s(T, {
693
+ if (n.phase === "exhausted") return /* @__PURE__ */ c(te, {
682
694
  title: r("manualIdUpload.tooManyTries"),
683
695
  description: r("manualIdUpload.contactedByAdmin"),
684
696
  attemptsRemaining: 0,
685
697
  onButtonClick: () => t.manualUploadContinue(),
686
698
  "data-testid": "manual-upload-exhausted"
687
699
  });
688
- if (n.phase === "uploading") return /* @__PURE__ */ s(_, {
700
+ if (n.phase === "uploading") return /* @__PURE__ */ c(y, {
689
701
  fullScreen: !0,
690
702
  size: "large",
691
703
  title: r("manualIdUpload.holdOnASec"),
@@ -693,70 +705,70 @@ var I = ({ state: t }) => {
693
705
  className: "IncodeManualUploadLoading"
694
706
  });
695
707
  let i = n.showIdTab && n.showPassportTab, a = (e) => {
696
- se(e) && t.manualUploadChangeTab(e);
708
+ le(e) && t.manualUploadChangeTab(e);
697
709
  }, o = n.activeTab === "passport" ? ["hintPassportReadable", "hintSharpAndGlareFree"] : ["hintIdReadable", "hintSharpAndGlareFree"];
698
- return /* @__PURE__ */ s(d, {
710
+ return /* @__PURE__ */ c(f, {
699
711
  title: r("manualIdUpload.title"),
700
712
  subtitle: r("manualIdUpload.subtitle"),
701
713
  "data-testid": "manual-upload-page",
702
714
  className: "IncodeManualUploadPage",
703
- children: [/* @__PURE__ */ s("div", {
715
+ children: [/* @__PURE__ */ c("div", {
704
716
  class: "IncodeManualUploadContainer",
705
- children: [i ? /* @__PURE__ */ s(O, {
717
+ children: [i ? /* @__PURE__ */ c(O, {
706
718
  value: n.activeTab,
707
719
  onValueChange: a,
708
720
  listClassName: "IncodeManualUploadTabsList",
709
721
  triggerClassName: "IncodeManualUploadTabTrigger",
710
722
  activeTriggerClassName: "IncodeManualUploadTabTrigger--active",
711
723
  children: [
712
- /* @__PURE__ */ s(O.List, {
724
+ /* @__PURE__ */ c(O.List, {
713
725
  label: r("manualIdUpload.tabsLabel"),
714
- children: [/* @__PURE__ */ s(O.Trigger, {
726
+ children: [/* @__PURE__ */ c(O.Trigger, {
715
727
  value: "id",
716
728
  children: r("manualIdUpload.id")
717
- }), /* @__PURE__ */ s(O.Trigger, {
729
+ }), /* @__PURE__ */ c(O.Trigger, {
718
730
  value: "passport",
719
731
  children: r("manualIdUpload.passport")
720
732
  })]
721
733
  }),
722
- /* @__PURE__ */ s(O.Content, {
734
+ /* @__PURE__ */ c(O.Content, {
723
735
  value: "id",
724
- children: /* @__PURE__ */ s(Z, {
736
+ children: /* @__PURE__ */ c(Z, {
725
737
  mode: "id",
726
738
  manager: t,
727
739
  state: n
728
740
  })
729
741
  }),
730
- /* @__PURE__ */ s(O.Content, {
742
+ /* @__PURE__ */ c(O.Content, {
731
743
  value: "passport",
732
- children: /* @__PURE__ */ s(Z, {
744
+ children: /* @__PURE__ */ c(Z, {
733
745
  mode: "passport",
734
746
  manager: t,
735
747
  state: n
736
748
  })
737
749
  })
738
750
  ]
739
- }) : n.showIdTab ? /* @__PURE__ */ s(Z, {
751
+ }) : n.showIdTab ? /* @__PURE__ */ c(Z, {
740
752
  mode: "id",
741
753
  manager: t,
742
754
  state: n
743
- }) : n.showPassportTab ? /* @__PURE__ */ s(Z, {
755
+ }) : n.showPassportTab ? /* @__PURE__ */ c(Z, {
744
756
  mode: "passport",
745
757
  manager: t,
746
758
  state: n
747
- }) : null, n.errorKey ? /* @__PURE__ */ s("div", {
759
+ }) : null, n.errorKey ? /* @__PURE__ */ c("div", {
748
760
  class: "IncodeManualUploadError",
749
761
  role: "alert",
750
762
  "data-testid": "manual-upload-error",
751
- children: [/* @__PURE__ */ s(x, { size: 16 }), /* @__PURE__ */ s("p", { children: r(n.errorKey) })]
763
+ children: [/* @__PURE__ */ c(C, { size: 16 }), /* @__PURE__ */ c("p", { children: r(n.errorKey) })]
752
764
  }) : null]
753
- }), /* @__PURE__ */ s("div", {
765
+ }), /* @__PURE__ */ c("div", {
754
766
  class: "IncodeManualUploadFooter",
755
- children: [/* @__PURE__ */ s("ul", {
767
+ children: [/* @__PURE__ */ c("ul", {
756
768
  class: "IncodeManualUploadHintCard",
757
769
  "data-testid": "manual-upload-hint-card",
758
- children: o.map((e) => /* @__PURE__ */ s("li", { children: r(`manualIdUpload.${e}`) }, e))
759
- }), /* @__PURE__ */ s(b, {
770
+ children: o.map((e) => /* @__PURE__ */ c("li", { children: r(`manualIdUpload.${e}`) }, e))
771
+ }), /* @__PURE__ */ c(S, {
760
772
  onClick: () => t.manualUploadContinue(),
761
773
  disabled: !n.canContinue,
762
774
  "data-testid": "manual-upload-continue",
@@ -765,68 +777,68 @@ var I = ({ state: t }) => {
765
777
  })]
766
778
  });
767
779
  }, Q = !1;
768
- function le() {
780
+ function de() {
769
781
  Q || (Q = !0, import("../id-tutorial-BCr42Pnn.js"), import("../back-tutorial-1NOQobGO.js"), import("../passport-tutorial-DwRwtPVX.js"));
770
782
  }
771
783
  //#endregion
772
784
  //#region src/modules/id/id.tsx
773
- var ue = n(() => import("../mandatoryConsent-D6YZlHdq.js").then((e) => ({ default: e.MandatoryConsent }))), de = ({ config: n, manager: r, onFinish: i, onError: o }) => {
785
+ var fe = n(() => import("../mandatoryConsent-D6YZlHdq.js").then((e) => ({ default: e.MandatoryConsent }))), pe = ({ config: n, manager: r, onFinish: i, onError: a }) => {
774
786
  M();
775
- let { t: l } = e();
787
+ let { t: s } = e();
776
788
  t(() => {
777
- le();
789
+ de();
778
790
  }, []);
779
- let [u, d] = c(() => {
791
+ let [u, d] = l(() => {
780
792
  if (r) return r;
781
793
  if (!n) throw Error("ID capture config is required when no manager is provided");
782
794
  return k({ config: n });
783
795
  }, { manageLifecycle: !r });
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, {
796
+ return u.status === "idle" ? /* @__PURE__ */ c(b, { hideText: !0 }) : u.status === "loading" ? /* @__PURE__ */ c(b, { spinnerConfig: { subtitle: s("loadingCircle.preparingCamera") } }) : u.status === "chooser" ? /* @__PURE__ */ c(ee, {
785
797
  manager: d,
786
798
  state: u
787
- }) : u.status === "ageVerification" ? /* @__PURE__ */ s(P, { manager: d }) : u.status === "tutorial" ? /* @__PURE__ */ s(ee, {
799
+ }) : u.status === "ageVerification" ? /* @__PURE__ */ c(P, { manager: d }) : u.status === "tutorial" ? /* @__PURE__ */ c(g, {
788
800
  manager: d,
789
801
  state: u
790
- }) : u.status === "permissions" ? /* @__PURE__ */ s(E, {
802
+ }) : u.status === "permissions" ? /* @__PURE__ */ c(ne, {
791
803
  manager: d,
792
804
  permissionStatus: u.permissionStatus
793
- }) : u.status === "frontFinished" ? /* @__PURE__ */ s(g, {
805
+ }) : u.status === "frontFinished" ? /* @__PURE__ */ c(v, {
794
806
  manager: d,
795
807
  direction: "toBack"
796
- }) : u.status === "backFinished" ? /* @__PURE__ */ s(g, {
808
+ }) : u.status === "backFinished" ? /* @__PURE__ */ c(v, {
797
809
  manager: d,
798
810
  direction: "toFront"
799
- }) : u.status === "capture" ? /* @__PURE__ */ s(p, {
811
+ }) : u.status === "capture" ? /* @__PURE__ */ c(m, {
800
812
  manager: d,
801
813
  state: u,
802
814
  onFinish: () => i?.()
803
- }) : u.status === "mandatoryConsent" ? /* @__PURE__ */ s(a, {
815
+ }) : u.status === "mandatoryConsent" ? /* @__PURE__ */ c(o, {
804
816
  fallback: null,
805
- children: /* @__PURE__ */ s(ue, {
817
+ children: /* @__PURE__ */ c(fe, {
806
818
  config: { consentType: u.regulationType },
807
819
  onFinish: () => d.acceptMandatoryConsent(),
808
820
  onError: () => d.cancelMandatoryConsent()
809
821
  })
810
- }) : u.status === "processing" ? /* @__PURE__ */ s(y, {}) : u.status === "expired" ? /* @__PURE__ */ s(h, {
822
+ }) : u.status === "processing" ? /* @__PURE__ */ c(x, {}) : u.status === "expired" ? /* @__PURE__ */ c(h, {
811
823
  manager: d,
812
824
  attemptsRemaining: u.attemptsRemaining
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, {
825
+ }) : u.status === "expiredExhausted" ? /* @__PURE__ */ c(p, { manager: d }) : u.status === "finished" ? (i?.(), null) : u.status === "closed" ? (a?.(void 0), null) : u.status === "error" ? /* @__PURE__ */ c(_, {
814
826
  manager: d,
815
827
  state: u,
816
- onError: o
817
- }) : u.status === "manualUpload" ? /* @__PURE__ */ s(ce, {
828
+ onError: a
829
+ }) : u.status === "manualUpload" ? /* @__PURE__ */ c(ue, {
818
830
  manager: d,
819
831
  state: u
820
- }) : u.status === "digitalIdUpload" ? /* @__PURE__ */ s(K, {
832
+ }) : u.status === "digitalIdUpload" ? /* @__PURE__ */ c(J, {
821
833
  manager: d,
822
834
  state: u
823
835
  }) : null;
824
- }, $ = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ s(l, { children: e || t ? /* @__PURE__ */ s(de, {
836
+ }, $ = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ c(u, { children: e || t ? /* @__PURE__ */ c(pe, {
825
837
  config: e,
826
838
  manager: t,
827
839
  onFinish: n,
828
840
  onError: r
829
841
  }) : null });
830
- ne($, "incode-id");
842
+ re($, "incode-id");
831
843
  //#endregion
832
844
  export { $ as Id };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260518-2d0ef651",
3
+ "version": "0.0.0-dev-20260519-904c1c74",
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-20260518-2d0ef651"
242
+ "@incodetech/core": "0.0.0-dev-20260519-904c1c74"
243
243
  },
244
244
  "devDependencies": {
245
245
  "@microsoft/api-extractor": "^7.53.3",