@incodetech/web 0.0.0-dev-20260323-d29613f → 0.0.0-dev-20260324-90ddcfd

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.
@@ -3247,6 +3247,42 @@
3247
3247
  }
3248
3248
  }
3249
3249
 
3250
+ @media (min-width: 40rem) {
3251
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3252
+ max-width: 40rem;
3253
+ }
3254
+ }
3255
+
3256
+ @media (min-width: 48rem) {
3257
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3258
+ max-width: 48rem;
3259
+ }
3260
+ }
3261
+
3262
+ @media (min-width: 64rem) {
3263
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3264
+ max-width: 64rem;
3265
+ }
3266
+ }
3267
+
3268
+ @media (min-width: 80rem) {
3269
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3270
+ max-width: 80rem;
3271
+ }
3272
+ }
3273
+
3274
+ @media (min-width: 96rem) {
3275
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3276
+ max-width: 96rem;
3277
+ }
3278
+ }
3279
+
3280
+ @media (min-width: 48rem) {
3281
+ .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3282
+ height: 840px;
3283
+ }
3284
+ }
3285
+
3250
3286
  .IncodeCommonIssuesModal .IncodeCommonIssuesModalContent {
3251
3287
  width: 100%;
3252
3288
  }
@@ -6132,6 +6168,10 @@
6132
6168
  width: var(--width-finished-subtitle);
6133
6169
  }
6134
6170
 
6171
+ .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup {
6172
+ display: inline;
6173
+ }
6174
+
6135
6175
  .IncodeConsentPage {
6136
6176
  height: 100%;
6137
6177
  }
@@ -6187,6 +6227,10 @@
6187
6227
  color: var(--color-text-body-primary, var(--text-body-800-primary));
6188
6228
  }
6189
6229
 
6230
+ .IncodeConsentPage .IncodeConsentSubtitle {
6231
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
6232
+ }
6233
+
6190
6234
  .IncodeConsentPage .IncodeConsentCheckboxList {
6191
6235
  gap: var(--spacing-12, var(--spacing-12, 12px));
6192
6236
  flex-direction: column;
@@ -6245,6 +6289,14 @@
6245
6289
  width: 100%;
6246
6290
  }
6247
6291
 
6292
+ .IncodeConsentPage .IncodeConsentActions {
6293
+ align-items: center;
6294
+ gap: var(--spacing-8, var(--spacing-8, 8px));
6295
+ flex-direction: column;
6296
+ width: 100%;
6297
+ display: flex;
6298
+ }
6299
+
6248
6300
  .IncodeVerificationResult .IncodePageContent {
6249
6301
  gap: var(--spacing-16, var(--spacing-16, 16px));
6250
6302
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
package/dist/id/id.es.js CHANGED
@@ -1,40 +1,51 @@
1
- import { u as r, I as u, a as m } from "../button-Yr39X4SE.js";
2
- import { createIdCaptureManager as d } from "@incodetech/core/id";
3
- import "../vendor-preact--mDTxXnt.js";
1
+ import { u as r, I as u, a as d } from "../button-Yr39X4SE.js";
2
+ import { createIdCaptureManager as m } from "@incodetech/core/id";
3
+ import { z as c, P as l } from "../vendor-preact--mDTxXnt.js";
4
4
  import "@incodetech/core";
5
5
  import { P as p } from "../manualCaptureButton-CtHbJjgz.js";
6
6
  import { r as f } from "../incodeModule-Bxzkb7nW.js";
7
- import { P as c } from "../processing-BGKugkCh.js";
8
- import { c as l, b as I, F as a, C as g, d as h, I as C } from "../flipAnimation-C5DtSdAY.js";
7
+ import { P as C } from "../processing-BGKugkCh.js";
8
+ import { c as g, b as h, F as a, C as I, d as y, I as F } from "../flipAnimation-C5DtSdAY.js";
9
9
  import "../uiConfig-CKJmKRCo.js";
10
10
  import "../spinner-Djok6FY8.js";
11
- const F = ({
12
- config: e,
13
- manager: i,
14
- onFinish: n,
15
- onError: o
11
+ const M = c(
12
+ () => import("../mandatoryConsent-z0Ci8SDN.js").then((s) => ({
13
+ default: s.MandatoryConsent
14
+ }))
15
+ ), P = ({
16
+ config: s,
17
+ manager: e,
18
+ onFinish: o,
19
+ onError: i
16
20
  }) => {
17
- const [t, s] = m(
18
- () => i ?? d({ config: e }),
19
- { manageLifecycle: !i }
21
+ const [t, n] = d(
22
+ () => e ?? m({ config: s }),
23
+ { manageLifecycle: !e }
20
24
  );
21
- return t.status === "idle" || t.status === "loading" ? null : t.status === "chooser" ? /* @__PURE__ */ r(l, { manager: s, state: t }) : t.status === "tutorial" ? /* @__PURE__ */ r(I, { manager: s, state: t }) : t.status === "permissions" ? /* @__PURE__ */ r(
25
+ return t.status === "idle" || t.status === "loading" ? null : t.status === "chooser" ? /* @__PURE__ */ r(g, { manager: n, state: t }) : t.status === "tutorial" ? /* @__PURE__ */ r(h, { manager: n, state: t }) : t.status === "permissions" ? /* @__PURE__ */ r(
22
26
  p,
23
27
  {
24
- manager: s,
28
+ manager: n,
25
29
  permissionStatus: t.permissionStatus
26
30
  }
27
- ) : t.status === "frontFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toBack" }) : t.status === "backFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toFront" }) : t.status === "capture" ? /* @__PURE__ */ r(g, { manager: s, state: t, onFinish: () => n?.() }) : t.status === "processing" ? /* @__PURE__ */ r(c, {}) : t.status === "expired" ? /* @__PURE__ */ r(h, { manager: s }) : t.status === "finished" ? (n?.(), null) : t.status === "closed" ? (o?.(void 0), null) : t.status === "error" ? /* @__PURE__ */ r(C, { manager: s, state: t, onError: o }) : null;
28
- }, P = ({ config: e, manager: i, onFinish: n, onError: o }) => /* @__PURE__ */ r(u, { children: e ? /* @__PURE__ */ r(
29
- F,
31
+ ) : t.status === "frontFinished" ? /* @__PURE__ */ r(a, { manager: n, direction: "toBack" }) : t.status === "backFinished" ? /* @__PURE__ */ r(a, { manager: n, direction: "toFront" }) : t.status === "capture" ? /* @__PURE__ */ r(I, { manager: n, state: t, onFinish: () => o?.() }) : t.status === "mandatoryConsent" ? /* @__PURE__ */ r(l, { fallback: null, children: /* @__PURE__ */ r(
32
+ M,
33
+ {
34
+ config: { consentType: t.regulationType },
35
+ onFinish: () => n.acceptMandatoryConsent(),
36
+ onError: () => n.cancelMandatoryConsent()
37
+ }
38
+ ) }) : t.status === "processing" ? /* @__PURE__ */ r(C, {}) : t.status === "expired" ? /* @__PURE__ */ r(y, { manager: n }) : t.status === "finished" ? (o?.(), null) : t.status === "closed" ? (i?.(void 0), null) : t.status === "error" ? /* @__PURE__ */ r(F, { manager: n, state: t, onError: i }) : null;
39
+ }, b = ({ config: s, manager: e, onFinish: o, onError: i }) => /* @__PURE__ */ r(u, { children: s ? /* @__PURE__ */ r(
40
+ P,
30
41
  {
31
- config: e,
32
- manager: i,
33
- onFinish: n,
34
- onError: o
42
+ config: s,
43
+ manager: e,
44
+ onFinish: o,
45
+ onError: i
35
46
  }
36
47
  ) : null });
37
- f(P, "incode-id");
48
+ f(b, "incode-id");
38
49
  export {
39
- P as Id
50
+ b as Id
40
51
  };
@@ -0,0 +1,93 @@
1
+ import { u as n, I as u, b as C, a as h, B as d } from "./button-Yr39X4SE.js";
2
+ import { createMandatoryConsentManager as b } from "@incodetech/core/mandatory-consent";
3
+ import { y as g } from "./vendor-preact--mDTxXnt.js";
4
+ import "@incodetech/core";
5
+ import "./uiConfig-CKJmKRCo.js";
6
+ import { C as p } from "./checkbox-BkW6ZbEQ.js";
7
+ import { P as l } from "./page-DO2rYslN.js";
8
+ import { R as f } from "./richText-CfMkKIUg.js";
9
+ import { S as I } from "./spinner-Djok6FY8.js";
10
+ import { r as y } from "./incodeModule-Bxzkb7nW.js";
11
+ const k = ({
12
+ config: o,
13
+ manager: s,
14
+ onFinish: i,
15
+ onError: e
16
+ }) => {
17
+ const { t: c } = C(), [t, r] = h(
18
+ () => s ?? b({ config: o }),
19
+ { manageLifecycle: !s }
20
+ );
21
+ if (g(() => {
22
+ if (t.status === "finished") {
23
+ i?.();
24
+ return;
25
+ }
26
+ if (t.status === "closed") {
27
+ e?.(void 0);
28
+ return;
29
+ }
30
+ t.status === "error" && e?.(t.error);
31
+ }, [t, i, e]), t.status === "finished" || t.status === "closed" || t.status === "error")
32
+ return null;
33
+ if (t.status === "idle" || t.status === "loading")
34
+ return /* @__PURE__ */ n(l, { className: "IncodeConsentPage", children: /* @__PURE__ */ n("div", { class: "IncodeConsentCentered", children: /* @__PURE__ */ n(I, {}) }) });
35
+ const m = t.text.split(`
36
+ `).filter((a) => a.trim().length > 0).join(" ");
37
+ return /* @__PURE__ */ n(l, { className: "IncodeConsentPage", hideFooterBranding: !0, hideHeader: !0, children: /* @__PURE__ */ n("div", { class: "IncodeConsentContent", children: [
38
+ /* @__PURE__ */ n("div", { class: "IncodeConsentBody", children: [
39
+ /* @__PURE__ */ n("h1", { id: "mandatory-consent-title", class: "IncodeConsentTitle", children: t.title }),
40
+ /* @__PURE__ */ n("p", { class: "IncodeConsentSubtitle", children: c("biometricConsent.subtitle") }),
41
+ /* @__PURE__ */ n("div", { class: "IncodeConsentCheckboxList", children: /* @__PURE__ */ n(
42
+ p,
43
+ {
44
+ id: "mandatory-consent-checkbox",
45
+ class: "IncodeConsentCheckbox",
46
+ checked: t.isSigned,
47
+ onChange: () => r.toggle(),
48
+ label: /* @__PURE__ */ n(
49
+ "span",
50
+ {
51
+ class: "IncodeConsentCheckboxLabel",
52
+ onClick: (a) => {
53
+ a.target.closest("a") && a.stopPropagation();
54
+ },
55
+ children: /* @__PURE__ */ n(f, { content: m, class: "IncodeRichText" })
56
+ }
57
+ )
58
+ }
59
+ ) })
60
+ ] }),
61
+ /* @__PURE__ */ n("div", { class: "IncodeConsentActions", children: [
62
+ /* @__PURE__ */ n(
63
+ d,
64
+ {
65
+ "data-testid": "mandatory-consent-submit",
66
+ class: "IncodeConsentButton",
67
+ onClick: () => r.submit(),
68
+ disabled: !t.canSubmit,
69
+ isLoading: t.status === "submitting",
70
+ children: c("biometricConsent.button.continue")
71
+ }
72
+ ),
73
+ /* @__PURE__ */ n(d, { variant: "link", onClick: () => r.cancel(), children: c("biometricConsent.button.cancel") })
74
+ ] })
75
+ ] }) });
76
+ }, x = ({
77
+ config: o,
78
+ manager: s,
79
+ onFinish: i,
80
+ onError: e
81
+ }) => /* @__PURE__ */ n(u, { children: o ? /* @__PURE__ */ n(
82
+ k,
83
+ {
84
+ config: o,
85
+ manager: s,
86
+ onFinish: i,
87
+ onError: e
88
+ }
89
+ ) : null });
90
+ y(x, "incode-mandatory-consent");
91
+ export {
92
+ x as MandatoryConsent
93
+ };