@incodetech/web 2.0.0 → 2.0.1

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 (178) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +8146 -0
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -0
  50. package/dist/email/styles.css +12 -0
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +1078 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +661 -0
  61. package/dist/flow/styles.css +8478 -0
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -0
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -0
  104. package/dist/phone/styles.css +11 -0
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +43 -0
  115. package/dist/selfie/styles.css +1144 -0
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +1347 -0
  125. package/dist/themes/light.css +1225 -0
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/base.d.ts +1 -0
  132. package/dist/types/consent.d.ts +41 -0
  133. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  134. package/dist/types/cross-document-data-match.d.ts +34 -0
  135. package/dist/types/curp-validation.d.ts +40 -0
  136. package/dist/types/custom-fields/styles.d.ts +1 -0
  137. package/dist/types/dark.d.ts +1 -0
  138. package/dist/types/document-capture/styles.d.ts +1 -0
  139. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  140. package/dist/types/ekyb.d.ts +34 -0
  141. package/dist/types/ekyc.d.ts +34 -0
  142. package/dist/types/electronic-signature.d.ts +43 -0
  143. package/dist/types/email.d.ts +67 -0
  144. package/dist/types/extensibility.d.ts +981 -0
  145. package/dist/types/face-match.d.ts +59 -0
  146. package/dist/types/flow.d.ts +137 -0
  147. package/dist/types/geolocation.d.ts +41 -0
  148. package/dist/types/governmentValidation.d.ts +34 -0
  149. package/dist/types/id-ocr/styles.d.ts +1 -0
  150. package/dist/types/id-verification.d.ts +40 -0
  151. package/dist/types/id.d.ts +41 -0
  152. package/dist/types/identity-reuse.d.ts +43 -0
  153. package/dist/types/index.d.ts +32 -0
  154. package/dist/types/light.d.ts +1 -0
  155. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  156. package/dist/types/phone.d.ts +68 -0
  157. package/dist/types/qe-signature.d.ts +40 -0
  158. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  159. package/dist/types/selfie.d.ts +41 -0
  160. package/dist/types/signature.d.ts +40 -0
  161. package/dist/types/styles.d.ts +1 -0
  162. package/dist/types/themes/dark.d.ts +1 -0
  163. package/dist/types/themes/light.d.ts +1 -0
  164. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  165. package/dist/types/watchlist.d.ts +40 -0
  166. package/dist/types/workflow.d.ts +91 -0
  167. package/dist/typography-CxjaknHN.js +28 -0
  168. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  169. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  170. package/dist/vendor-preact-D6SntenC.js +958 -0
  171. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  172. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  173. package/dist/watchlist/watchlist.es.js +33 -0
  174. package/dist/watchlist-for-business/styles.css +18 -0
  175. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  176. package/dist/workflow/styles.css +7480 -0
  177. package/dist/workflow/workflow.es.js +244 -0
  178. package/package.json +2 -2
@@ -0,0 +1,546 @@
1
+ import { n as e } from "../i18n-9s4OSqwi.js";
2
+ import { _ as t, a as n, h as r, l as i, p as a, u 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-C1o4M0ZK.js";
5
+ import { r as u } from "../loadingIcon-BN5YRQUb.js";
6
+ import { t as d } from "../page-C1yT4DLb.js";
7
+ import "../extensibility-CzEJfRwo.js";
8
+ import { t as f } from "../button-DcCUEn2n.js";
9
+ import { t as p } from "../verificationResult-BrVbUJ4U.js";
10
+ import { t as m } from "../incodeModule-BqCjVgEI.js";
11
+ import { t as h } from "../defineProperty-Dh8nSJpJ.js";
12
+ import { createSignatureManager as g } from "@incodetech/core/signature";
13
+ //#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
14
+ var _ = class {
15
+ constructor(e, t, n, r) {
16
+ if (h(this, "x", void 0), h(this, "y", void 0), h(this, "pressure", void 0), h(this, "time", void 0), isNaN(e) || isNaN(t)) throw Error(`Point is invalid: (${e}, ${t})`);
17
+ this.x = +e, this.y = +t, this.pressure = n || 0, this.time = r || Date.now();
18
+ }
19
+ distanceTo(e) {
20
+ return Math.sqrt((this.x - e.x) ** 2 + (this.y - e.y) ** 2);
21
+ }
22
+ equals(e) {
23
+ return this.x === e.x && this.y === e.y && this.pressure === e.pressure && this.time === e.time;
24
+ }
25
+ velocityFrom(e) {
26
+ return this.time === e.time ? 0 : this.distanceTo(e) / (this.time - e.time);
27
+ }
28
+ }, v = class e {
29
+ constructor(e, t, n, r, i, a) {
30
+ this.startPoint = e, this.control2 = t, this.control1 = n, this.endPoint = r, this.startWidth = i, this.endWidth = a;
31
+ }
32
+ static fromPoints(t, n) {
33
+ let r = this.calculateControlPoints(t[0], t[1], t[2]).c2, i = this.calculateControlPoints(t[1], t[2], t[3]).c1;
34
+ return new e(t[1], r, i, t[2], n.start, n.end);
35
+ }
36
+ static calculateControlPoints(e, t, n) {
37
+ let r = e.x - t.x, i = e.y - t.y, a = t.x - n.x, o = t.y - n.y, s = {
38
+ x: (e.x + t.x) / 2,
39
+ y: (e.y + t.y) / 2
40
+ }, c = {
41
+ x: (t.x + n.x) / 2,
42
+ y: (t.y + n.y) / 2
43
+ }, l = Math.sqrt(r * r + i * i), u = Math.sqrt(a * a + o * o), d = s.x - c.x, f = s.y - c.y, p = l + u == 0 ? 0 : u / (l + u), m = {
44
+ x: c.x + d * p,
45
+ y: c.y + f * p
46
+ }, h = t.x - m.x, g = t.y - m.y;
47
+ return {
48
+ c1: new _(s.x + h, s.y + g),
49
+ c2: new _(c.x + h, c.y + g)
50
+ };
51
+ }
52
+ length() {
53
+ let e = 0, t, n;
54
+ for (let r = 0; r <= 10; r += 1) {
55
+ let i = r / 10, a = this.point(i, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), o = this.point(i, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
56
+ if (r > 0) {
57
+ let r = a - t, i = o - n;
58
+ e += Math.sqrt(r * r + i * i);
59
+ }
60
+ t = a, n = o;
61
+ }
62
+ return e;
63
+ }
64
+ point(e, t, n, r, i) {
65
+ return t * (1 - e) * (1 - e) * (1 - e) + 3 * n * (1 - e) * (1 - e) * e + 3 * r * (1 - e) * e * e + i * e * e * e;
66
+ }
67
+ }, y = class {
68
+ constructor() {
69
+ h(this, "_et", void 0);
70
+ try {
71
+ this._et = new EventTarget();
72
+ } catch {
73
+ this._et = document;
74
+ }
75
+ }
76
+ addEventListener(e, t, n) {
77
+ this._et.addEventListener(e, t, n);
78
+ }
79
+ dispatchEvent(e) {
80
+ return this._et.dispatchEvent(e);
81
+ }
82
+ removeEventListener(e, t, n) {
83
+ this._et.removeEventListener(e, t, n);
84
+ }
85
+ };
86
+ function b(e, t = 250) {
87
+ let n = 0, r = null, i, a, o, s = () => {
88
+ n = Date.now(), r = null, i = e.apply(a, o), r || (a = null, o = []);
89
+ };
90
+ return function(...c) {
91
+ let l = Date.now(), u = t - (l - n);
92
+ return a = this, o = c, u <= 0 || u > t ? (r &&= (clearTimeout(r), null), n = l, i = e.apply(a, o), r || (a = null, o = [])) : r ||= window.setTimeout(s, u), i;
93
+ };
94
+ }
95
+ var x = class e extends y {
96
+ constructor(t, n = {}) {
97
+ super(), h(this, "dotSize", void 0), h(this, "minWidth", void 0), h(this, "maxWidth", void 0), h(this, "penColor", void 0), h(this, "minDistance", void 0), h(this, "velocityFilterWeight", void 0), h(this, "compositeOperation", void 0), h(this, "backgroundColor", void 0), h(this, "throttle", void 0), h(this, "canvasContextOptions", void 0), h(this, "_ctx", void 0), h(this, "_drawingStroke", !1), h(this, "_isEmpty", !0), h(this, "_dataUrl", void 0), h(this, "_dataUrlOptions", void 0), h(this, "_lastPoints", []), h(this, "_data", []), h(this, "_lastVelocity", 0), h(this, "_lastWidth", 0), h(this, "_strokeMoveUpdate", void 0), h(this, "_strokePointerId", void 0), this.canvas = t, this.velocityFilterWeight = n.velocityFilterWeight || .7, this.minWidth = n.minWidth || .5, this.maxWidth = n.maxWidth || 2.5, this.throttle = n.throttle ?? 16, this.minDistance = n.minDistance ?? 5, this.dotSize = n.dotSize || 0, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this.compositeOperation = n.compositeOperation || "source-over", this.canvasContextOptions = n.canvasContextOptions ?? {}, this._strokeMoveUpdate = this.throttle ? b(e.prototype._strokeUpdate, this.throttle) : e.prototype._strokeUpdate, this._handleMouseDown = this._handleMouseDown.bind(this), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this._handleTouchStart = this._handleTouchStart.bind(this), this._handleTouchMove = this._handleTouchMove.bind(this), this._handleTouchEnd = this._handleTouchEnd.bind(this), this._handlePointerDown = this._handlePointerDown.bind(this), this._handlePointerMove = this._handlePointerMove.bind(this), this._handlePointerUp = this._handlePointerUp.bind(this), this._handlePointerCancel = this._handlePointerCancel.bind(this), this._handleTouchCancel = this._handleTouchCancel.bind(this), this._ctx = t.getContext("2d", this.canvasContextOptions), this.clear(), this.on();
98
+ }
99
+ clear() {
100
+ let { _ctx: e, canvas: t } = this;
101
+ e.fillStyle = this.backgroundColor, e.clearRect(0, 0, t.width, t.height), e.fillRect(0, 0, t.width, t.height), this._data = [], this._reset(this._getPointGroupOptions()), this._isEmpty = !0, this._dataUrl = void 0, this._dataUrlOptions = void 0, this._strokePointerId = void 0;
102
+ }
103
+ redraw() {
104
+ let e = this._data, t = this._dataUrl, n = this._dataUrlOptions;
105
+ this.clear(), t && this.fromDataURL(t, n), this.fromData(e, { clear: !1 });
106
+ }
107
+ fromDataURL(e, t = {}) {
108
+ return new Promise((n, r) => {
109
+ let i = new Image(), a = t.ratio || window.devicePixelRatio || 1, o = t.width || this.canvas.width / a, s = t.height || this.canvas.height / a, c = t.xOffset || 0, l = t.yOffset || 0;
110
+ this._reset(this._getPointGroupOptions()), i.onload = () => {
111
+ this._ctx.drawImage(i, c, l, o, s), n();
112
+ }, i.onerror = (e) => {
113
+ r(e);
114
+ }, i.crossOrigin = "anonymous", i.src = e, this._isEmpty = !1, this._dataUrl = e, this._dataUrlOptions = { ...t };
115
+ });
116
+ }
117
+ toDataURL(e = "image/png", t) {
118
+ switch (e) {
119
+ case "image/svg+xml": return typeof t != "object" && (t = void 0), `data:image/svg+xml;base64,${btoa(this.toSVG(t))}`;
120
+ default: return typeof t != "number" && (t = void 0), this.canvas.toDataURL(e, t);
121
+ }
122
+ }
123
+ on() {
124
+ this.canvas.style.touchAction = "none", this.canvas.style.msTouchAction = "none", this.canvas.style.userSelect = "none", this.canvas.style.webkitUserSelect = "none";
125
+ let e = /Macintosh/.test(navigator.userAgent) && "ontouchstart" in document;
126
+ window.PointerEvent && !e ? this._handlePointerEvents() : (this._handleMouseEvents(), "ontouchstart" in window && this._handleTouchEvents());
127
+ }
128
+ off() {
129
+ this.canvas.style.touchAction = "auto", this.canvas.style.msTouchAction = "auto", this.canvas.style.userSelect = "auto", this.canvas.style.webkitUserSelect = "auto", this.canvas.removeEventListener("pointerdown", this._handlePointerDown), this.canvas.removeEventListener("mousedown", this._handleMouseDown), this.canvas.removeEventListener("touchstart", this._handleTouchStart), this._removeMoveUpEventListeners();
130
+ }
131
+ _getListenerFunctions() {
132
+ let e = window.document === this.canvas.ownerDocument ? window : this.canvas.ownerDocument.defaultView ?? this.canvas.ownerDocument;
133
+ return {
134
+ addEventListener: e.addEventListener.bind(e),
135
+ removeEventListener: e.removeEventListener.bind(e)
136
+ };
137
+ }
138
+ _removeMoveUpEventListeners() {
139
+ let { removeEventListener: e } = this._getListenerFunctions();
140
+ e("pointermove", this._handlePointerMove), e("pointerup", this._handlePointerUp), e("pointercancel", this._handlePointerCancel), e("mousemove", this._handleMouseMove), e("mouseup", this._handleMouseUp), e("touchmove", this._handleTouchMove), e("touchend", this._handleTouchEnd), e("touchcancel", this._handleTouchCancel);
141
+ }
142
+ isEmpty() {
143
+ return this._isEmpty;
144
+ }
145
+ fromData(e, { clear: t = !0 } = {}) {
146
+ t && this.clear(), this._fromData(e, this._drawCurve.bind(this), this._drawDot.bind(this)), this._data = this._data.concat(e);
147
+ }
148
+ toData() {
149
+ return this._data;
150
+ }
151
+ _isLeftButtonPressed(e, t) {
152
+ return t ? e.buttons === 1 : (e.buttons & 1) == 1;
153
+ }
154
+ _pointerEventToSignatureEvent(e) {
155
+ return {
156
+ event: e,
157
+ type: e.type,
158
+ x: e.clientX,
159
+ y: e.clientY,
160
+ pressure: "pressure" in e ? e.pressure : 0
161
+ };
162
+ }
163
+ _touchEventToSignatureEvent(e) {
164
+ let t = e.changedTouches[0];
165
+ return {
166
+ event: e,
167
+ type: e.type,
168
+ x: t.clientX,
169
+ y: t.clientY,
170
+ pressure: t.force
171
+ };
172
+ }
173
+ _handleMouseDown(e) {
174
+ !this._isLeftButtonPressed(e, !0) || this._drawingStroke || this._strokeBegin(this._pointerEventToSignatureEvent(e));
175
+ }
176
+ _handleMouseMove(e) {
177
+ if (!this._isLeftButtonPressed(e, !0) || !this._drawingStroke) {
178
+ this._strokeEnd(this._pointerEventToSignatureEvent(e), !1);
179
+ return;
180
+ }
181
+ this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e));
182
+ }
183
+ _handleMouseUp(e) {
184
+ this._isLeftButtonPressed(e) || this._strokeEnd(this._pointerEventToSignatureEvent(e));
185
+ }
186
+ _handleTouchStart(e) {
187
+ e.targetTouches.length !== 1 || this._drawingStroke || (e.cancelable && e.preventDefault(), this._strokeBegin(this._touchEventToSignatureEvent(e)));
188
+ }
189
+ _handleTouchMove(e) {
190
+ if (e.targetTouches.length === 1) {
191
+ if (e.cancelable && e.preventDefault(), !this._drawingStroke) {
192
+ this._strokeEnd(this._touchEventToSignatureEvent(e), !1);
193
+ return;
194
+ }
195
+ this._strokeMoveUpdate(this._touchEventToSignatureEvent(e));
196
+ }
197
+ }
198
+ _handleTouchEnd(e) {
199
+ e.targetTouches.length === 0 && (e.cancelable && e.preventDefault(), this._strokeEnd(this._touchEventToSignatureEvent(e)));
200
+ }
201
+ _handlePointerCancel(e) {
202
+ this._allowPointerId(e) && (e.preventDefault(), this._strokeEnd(this._pointerEventToSignatureEvent(e), !1));
203
+ }
204
+ _handleTouchCancel(e) {
205
+ e.cancelable && e.preventDefault(), this._strokeEnd(this._touchEventToSignatureEvent(e), !1);
206
+ }
207
+ _getPointerId(e) {
208
+ return e.persistentDeviceId || e.pointerId;
209
+ }
210
+ _allowPointerId(e, t = !1) {
211
+ return this._strokePointerId === void 0 ? t : this._getPointerId(e) === this._strokePointerId;
212
+ }
213
+ _handlePointerDown(e) {
214
+ this._drawingStroke || !this._isLeftButtonPressed(e) || !this._allowPointerId(e, !0) || (this._strokePointerId = this._getPointerId(e), e.preventDefault(), this._strokeBegin(this._pointerEventToSignatureEvent(e)));
215
+ }
216
+ _handlePointerMove(e) {
217
+ if (this._allowPointerId(e)) {
218
+ if (!this._isLeftButtonPressed(e, !0) || !this._drawingStroke) {
219
+ this._strokeEnd(this._pointerEventToSignatureEvent(e), !1);
220
+ return;
221
+ }
222
+ e.preventDefault(), this._strokeMoveUpdate(this._pointerEventToSignatureEvent(e));
223
+ }
224
+ }
225
+ _handlePointerUp(e) {
226
+ this._isLeftButtonPressed(e) || !this._allowPointerId(e) || (e.preventDefault(), this._strokeEnd(this._pointerEventToSignatureEvent(e)));
227
+ }
228
+ _getPointGroupOptions(e) {
229
+ return {
230
+ penColor: e && "penColor" in e ? e.penColor : this.penColor,
231
+ dotSize: e && "dotSize" in e ? e.dotSize : this.dotSize,
232
+ minWidth: e && "minWidth" in e ? e.minWidth : this.minWidth,
233
+ maxWidth: e && "maxWidth" in e ? e.maxWidth : this.maxWidth,
234
+ velocityFilterWeight: e && "velocityFilterWeight" in e ? e.velocityFilterWeight : this.velocityFilterWeight,
235
+ compositeOperation: e && "compositeOperation" in e ? e.compositeOperation : this.compositeOperation
236
+ };
237
+ }
238
+ _strokeBegin(e) {
239
+ if (!this.dispatchEvent(new CustomEvent("beginStroke", {
240
+ detail: e,
241
+ cancelable: !0
242
+ }))) return;
243
+ let { addEventListener: t } = this._getListenerFunctions();
244
+ switch (e.event.type) {
245
+ case "mousedown":
246
+ t("mousemove", this._handleMouseMove, { passive: !1 }), t("mouseup", this._handleMouseUp, { passive: !1 });
247
+ break;
248
+ case "touchstart":
249
+ t("touchmove", this._handleTouchMove, { passive: !1 }), t("touchend", this._handleTouchEnd, { passive: !1 }), t("touchcancel", this._handleTouchCancel, { passive: !1 });
250
+ break;
251
+ case "pointerdown":
252
+ t("pointermove", this._handlePointerMove, { passive: !1 }), t("pointerup", this._handlePointerUp, { passive: !1 }), t("pointercancel", this._handlePointerCancel, { passive: !1 });
253
+ break;
254
+ default:
255
+ }
256
+ this._drawingStroke = !0;
257
+ let n = this._getPointGroupOptions(), r = {
258
+ ...n,
259
+ points: []
260
+ };
261
+ this._data.push(r), this._reset(n), this._strokeUpdate(e);
262
+ }
263
+ _strokeUpdate(e) {
264
+ if (!this._drawingStroke) return;
265
+ if (this._data.length === 0) {
266
+ this._strokeBegin(e);
267
+ return;
268
+ }
269
+ this.dispatchEvent(new CustomEvent("beforeUpdateStroke", { detail: e }));
270
+ let t = this._createPoint(e.x, e.y, e.pressure), n = this._data[this._data.length - 1], r = n.points, i = r.length > 0 && r[r.length - 1], a = i ? t.distanceTo(i) <= this.minDistance : !1, o = this._getPointGroupOptions(n);
271
+ if (!i || !(i && a)) {
272
+ let e = this._addPoint(t, o);
273
+ i ? e && this._drawCurve(e, o) : this._drawDot(t, o), r.push({
274
+ time: t.time,
275
+ x: t.x,
276
+ y: t.y,
277
+ pressure: t.pressure
278
+ });
279
+ }
280
+ this.dispatchEvent(new CustomEvent("afterUpdateStroke", { detail: e }));
281
+ }
282
+ _strokeEnd(e, t = !0) {
283
+ this._removeMoveUpEventListeners(), this._drawingStroke && (t && this._strokeUpdate(e), this._drawingStroke = !1, this._strokePointerId = void 0, this.dispatchEvent(new CustomEvent("endStroke", { detail: e })));
284
+ }
285
+ _handlePointerEvents() {
286
+ this._drawingStroke = !1, this.canvas.addEventListener("pointerdown", this._handlePointerDown, { passive: !1 });
287
+ }
288
+ _handleMouseEvents() {
289
+ this._drawingStroke = !1, this.canvas.addEventListener("mousedown", this._handleMouseDown, { passive: !1 });
290
+ }
291
+ _handleTouchEvents() {
292
+ this.canvas.addEventListener("touchstart", this._handleTouchStart, { passive: !1 });
293
+ }
294
+ _reset(e) {
295
+ this._lastPoints = [], this._lastVelocity = 0, this._lastWidth = (e.minWidth + e.maxWidth) / 2, this._ctx.fillStyle = e.penColor, this._ctx.globalCompositeOperation = e.compositeOperation;
296
+ }
297
+ _createPoint(e, t, n) {
298
+ let r = this.canvas.getBoundingClientRect();
299
+ return new _(e - r.left, t - r.top, n, (/* @__PURE__ */ new Date()).getTime());
300
+ }
301
+ _addPoint(e, t) {
302
+ let { _lastPoints: n } = this;
303
+ if (n.push(e), n.length > 2) {
304
+ n.length === 3 && n.unshift(n[0]);
305
+ let e = this._calculateCurveWidths(n[1], n[2], t), r = v.fromPoints(n, e);
306
+ return n.shift(), r;
307
+ }
308
+ return null;
309
+ }
310
+ _calculateCurveWidths(e, t, n) {
311
+ let r = n.velocityFilterWeight * t.velocityFrom(e) + (1 - n.velocityFilterWeight) * this._lastVelocity, i = this._strokeWidth(r, n), a = {
312
+ end: i,
313
+ start: this._lastWidth
314
+ };
315
+ return this._lastVelocity = r, this._lastWidth = i, a;
316
+ }
317
+ _strokeWidth(e, t) {
318
+ return Math.max(t.maxWidth / (e + 1), t.minWidth);
319
+ }
320
+ _drawCurveSegment(e, t, n) {
321
+ let r = this._ctx;
322
+ r.moveTo(e, t), r.arc(e, t, n, 0, 2 * Math.PI, !1), this._isEmpty = !1;
323
+ }
324
+ _drawCurve(e, t) {
325
+ let n = this._ctx, r = e.endWidth - e.startWidth, i = Math.ceil(e.length()) * 2;
326
+ n.beginPath(), n.fillStyle = t.penColor;
327
+ for (let n = 0; n < i; n += 1) {
328
+ let a = n / i, o = a * a, s = o * a, c = 1 - a, l = c * c, u = l * c, d = u * e.startPoint.x;
329
+ d += 3 * l * a * e.control1.x, d += 3 * c * o * e.control2.x, d += s * e.endPoint.x;
330
+ let f = u * e.startPoint.y;
331
+ f += 3 * l * a * e.control1.y, f += 3 * c * o * e.control2.y, f += s * e.endPoint.y;
332
+ let p = Math.min(e.startWidth + s * r, t.maxWidth);
333
+ this._drawCurveSegment(d, f, p);
334
+ }
335
+ n.closePath(), n.fill();
336
+ }
337
+ _drawDot(e, t) {
338
+ let n = this._ctx, r = t.dotSize > 0 ? t.dotSize : (t.minWidth + t.maxWidth) / 2;
339
+ n.beginPath(), this._drawCurveSegment(e.x, e.y, r), n.closePath(), n.fillStyle = t.penColor, n.fill();
340
+ }
341
+ _fromData(e, t, n) {
342
+ for (let r of e) {
343
+ let { points: e } = r, i = this._getPointGroupOptions(r);
344
+ if (e.length > 1) for (let n = 0; n < e.length; n += 1) {
345
+ let r = e[n], a = new _(r.x, r.y, r.pressure, r.time);
346
+ n === 0 && this._reset(i);
347
+ let o = this._addPoint(a, i);
348
+ o && t(o, i);
349
+ }
350
+ else this._reset(i), n(e[0], i);
351
+ }
352
+ }
353
+ toSVG({ includeBackgroundColor: e = !1, includeDataUrl: t = !1 } = {}) {
354
+ let n = this._data, r = Math.max(window.devicePixelRatio || 1, 1), i = this.canvas.width / r, a = this.canvas.height / r, o = document.createElementNS("http://www.w3.org/2000/svg", "svg");
355
+ if (o.setAttribute("xmlns", "http://www.w3.org/2000/svg"), o.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), o.setAttribute("viewBox", `0 0 ${i} ${a}`), o.setAttribute("width", i.toString()), o.setAttribute("height", a.toString()), e && this.backgroundColor) {
356
+ let e = document.createElement("rect");
357
+ e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", this.backgroundColor), o.appendChild(e);
358
+ }
359
+ if (t && this._dataUrl) {
360
+ let e = this._dataUrlOptions?.ratio || window.devicePixelRatio || 1, t = this._dataUrlOptions?.width || this.canvas.width / e, n = this._dataUrlOptions?.height || this.canvas.height / e, r = this._dataUrlOptions?.xOffset || 0, i = this._dataUrlOptions?.yOffset || 0, a = document.createElement("image");
361
+ a.setAttribute("x", r.toString()), a.setAttribute("y", i.toString()), a.setAttribute("width", t.toString()), a.setAttribute("height", n.toString()), a.setAttribute("preserveAspectRatio", "none"), a.setAttribute("href", this._dataUrl), o.appendChild(a);
362
+ }
363
+ return this._fromData(n, (e, { penColor: t }) => {
364
+ let n = document.createElement("path");
365
+ if (!isNaN(e.control1.x) && !isNaN(e.control1.y) && !isNaN(e.control2.x) && !isNaN(e.control2.y)) {
366
+ let r = `M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;
367
+ n.setAttribute("d", r), n.setAttribute("stroke-width", (e.endWidth * 2.25).toFixed(3)), n.setAttribute("stroke", t), n.setAttribute("fill", "none"), n.setAttribute("stroke-linecap", "round"), o.appendChild(n);
368
+ }
369
+ }, (e, { penColor: t, dotSize: n, minWidth: r, maxWidth: i }) => {
370
+ let a = document.createElement("circle"), s = n > 0 ? n : (r + i) / 2;
371
+ a.setAttribute("r", s.toString()), a.setAttribute("cx", e.x.toString()), a.setAttribute("cy", e.y.toString()), a.setAttribute("fill", t), o.appendChild(a);
372
+ }), o.outerHTML;
373
+ }
374
+ }, S = (e) => {
375
+ if (typeof document > "u") return null;
376
+ let t = document.createElement("div");
377
+ t.style.color = e, t.style.position = "absolute", t.style.visibility = "hidden", document.body.appendChild(t);
378
+ let n = getComputedStyle(t).color;
379
+ if (document.body.removeChild(t), !n || n === "transparent") return null;
380
+ let r = n.match(/\d+/g);
381
+ if (r && r.length >= 3) {
382
+ let e = Number.parseInt(r[0], 10), t = Number.parseInt(r[1], 10), n = Number.parseInt(r[2], 10), i = (e) => {
383
+ let t = e.toString(16);
384
+ return t.length === 1 ? `0${t}` : t;
385
+ };
386
+ return `#${i(e)}${i(t)}${i(n)}`;
387
+ }
388
+ return null;
389
+ }, C = "var(--icon-neutral-800)", w = "#ffffff", T = (e) => {
390
+ let t = document.createElement("canvas");
391
+ t.width = e.width, t.height = e.height;
392
+ let n = t.getContext("2d");
393
+ if (!n) throw Error("Canvas 2D context is not available");
394
+ return n.fillStyle = w, n.fillRect(0, 0, t.width, t.height), n.drawImage(e, 0, 0), t;
395
+ }, E = (e, t, n) => new Promise((r, i) => {
396
+ e.toBlob((e) => {
397
+ e ? r(e) : i(/* @__PURE__ */ Error("Canvas toBlob() returned null"));
398
+ }, t, t === "image/jpeg" || t === "image/webp" ? n : void 0);
399
+ }), D = n(({ onBeginStroke: e, hasDrawing: n, placeholder: a, customPenColor: c, customPenStrokeWidth: l, customBackgroundColor: u, customBorderColor: d }, f) => {
400
+ let p = i(null), m = i(null), h = i(null), g = i(e);
401
+ g.current = e;
402
+ let _ = r(() => {
403
+ let e = p.current, t = m.current, n = h.current;
404
+ if (!e || !t || !n) return;
405
+ let r = Math.max(window.devicePixelRatio || 1, 1), i = t.getContext("2d"), { width: a, height: o } = e.getBoundingClientRect();
406
+ if (a === 0 || o === 0 || !i) return;
407
+ let s = n.isEmpty() ? null : n.toData();
408
+ t.width = Math.floor(a * r), t.height = Math.floor(o * r), i.setTransform(r, 0, 0, r, 0, 0), s ? n.fromData(s, { clear: !0 }) : n.clear();
409
+ }, []);
410
+ return o(f, () => ({
411
+ clear: () => {
412
+ h.current?.clear();
413
+ },
414
+ isEmpty: () => h.current?.isEmpty() ?? !0,
415
+ toDataURL: (e = "image/png", t) => h.current?.toDataURL(e, t) ?? "",
416
+ getCanvas: () => m.current,
417
+ getSignaturePad: () => h.current,
418
+ on: () => h.current?.on(),
419
+ off: () => h.current?.off(),
420
+ getSignatureWithWhiteBackground: () => {
421
+ let e = m.current;
422
+ return e ? T(e) : null;
423
+ },
424
+ getBlob: (e = m.current ?? void 0, t = "image/jpeg", n = .92) => e ? E(e, t, n) : Promise.reject(/* @__PURE__ */ Error("No canvas available for getBlob"))
425
+ }), []), t(() => {
426
+ let e = p.current, t = m.current;
427
+ if (!e || !t) return;
428
+ let n = null, r = () => {
429
+ n === null && (n = requestAnimationFrame(() => {
430
+ n = null, _();
431
+ }));
432
+ }, i = c ?? S(C), a = new x(t, {
433
+ ...i ? { penColor: i } : {},
434
+ ...l ? { maxWidth: l } : {}
435
+ });
436
+ h.current = a;
437
+ let o = () => g.current?.();
438
+ a.addEventListener("beginStroke", o), _();
439
+ let s = new ResizeObserver(() => {
440
+ r();
441
+ });
442
+ return s.observe(e), () => {
443
+ n !== null && cancelAnimationFrame(n), s.disconnect(), a.removeEventListener("beginStroke", o), a.off(), h.current = null;
444
+ };
445
+ }, [
446
+ _,
447
+ c,
448
+ l
449
+ ]), /* @__PURE__ */ s("div", {
450
+ class: "SignatureCanvasContainer",
451
+ style: u || d ? {
452
+ ...u ? { backgroundColor: u } : {},
453
+ ...d ? { borderColor: d } : {}
454
+ } : void 0,
455
+ ref: p,
456
+ children: [/* @__PURE__ */ s("canvas", {
457
+ class: "SignatureCanvas",
458
+ ref: m,
459
+ "aria-label": a
460
+ }), !n && /* @__PURE__ */ s("p", {
461
+ class: "SignatureCanvasPlaceholder",
462
+ children: a
463
+ })]
464
+ });
465
+ });
466
+ D.displayName = "SignatureCanvas";
467
+ //#endregion
468
+ //#region src/modules/signature/signature.tsx
469
+ var O = ({ config: n, onFinish: o, onError: l }) => {
470
+ let { t: m } = e(), [h, _] = c(() => g({ config: n }), { autoLoad: !0 }), [v, y] = a(!1), b = i(null), x = h.status === "error" ? h.error : void 0, S = h.status === "submitting", C = h.status === "capture" && h.canContinue && !S, w = r(() => {
471
+ b.current && (b.current.on(), b.current.clear(), y(!1), _.setSignatureValid(!1));
472
+ }, [_]);
473
+ t(() => {
474
+ h.status === "finished" && o?.();
475
+ }, [h.status, o]), t(() => {
476
+ x && (l?.(x), b.current?.on());
477
+ }, [x, l]);
478
+ let T = () => n.title?.trim() || m("signature.fullSignatureTitle"), E = () => n.subTitle?.trim() || m("signature.subtitle"), O = async () => {
479
+ let e = b.current;
480
+ if (!e) return;
481
+ let t = e.getSignatureWithWhiteBackground();
482
+ if (t) return n.sendBase64 ?? !1 ? t.toDataURL("image/png").replace(/^data:image\/png;base64,/, "") : e.getBlob(t);
483
+ };
484
+ return h.status === "idle" || h.status === "finished" || h.status === "error" ? null : h.status === "success" ? /* @__PURE__ */ s(p, {
485
+ status: "success",
486
+ successTitle: m("signature.successTitle")
487
+ }) : /* @__PURE__ */ s(d, {
488
+ className: "IncodeSignature IncodeSignatureFadeIn",
489
+ title: T(),
490
+ subtitle: E(),
491
+ children: [/* @__PURE__ */ s("div", {
492
+ class: "IncodeSignatureContent",
493
+ children: [
494
+ /* @__PURE__ */ s(D, {
495
+ ref: b,
496
+ hasDrawing: v,
497
+ onBeginStroke: () => {
498
+ y(!0), _.setSignatureValid(!0);
499
+ },
500
+ placeholder: m("signature.fullSignaturePlaceholder"),
501
+ customBackgroundColor: n.canvasBackgroundColor,
502
+ customBorderColor: n.canvasBorderColor,
503
+ customPenColor: n.penColor,
504
+ customPenStrokeWidth: n.penStrokeWidth
505
+ }),
506
+ /* @__PURE__ */ s(u, { size: 8 }),
507
+ /* @__PURE__ */ s(f, {
508
+ variant: "link",
509
+ disabled: !v || S,
510
+ onClick: w,
511
+ children: m("signature.clear")
512
+ })
513
+ ]
514
+ }), /* @__PURE__ */ s("div", {
515
+ class: "IncodeSignatureButtonContainer",
516
+ children: /* @__PURE__ */ s(f, {
517
+ disabled: !C,
518
+ isLoading: S,
519
+ onClick: async () => {
520
+ let e = b.current;
521
+ if (!(!e || h.status !== "capture" || e.isEmpty())) {
522
+ e.off();
523
+ try {
524
+ let t = await O();
525
+ if (!t) {
526
+ e.on();
527
+ return;
528
+ }
529
+ _.submit(t);
530
+ } catch {
531
+ e.on();
532
+ }
533
+ }
534
+ },
535
+ children: m("signature.done")
536
+ })
537
+ })]
538
+ });
539
+ }, k = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(l, { children: e ? /* @__PURE__ */ s(O, {
540
+ config: e,
541
+ onFinish: t,
542
+ onError: n
543
+ }) : null });
544
+ m(k, "incode-signature");
545
+ //#endregion
546
+ export { k as Signature };
@@ -0,0 +1,14 @@
1
+ import { v as e } from "./vendor-preact-D6SntenC.js";
2
+ import { n as t } from "./loadingIcon-BN5YRQUb.js";
3
+ //#region src/shared/snackbar/snackbar.tsx
4
+ var n = ({ variant: n = "neutral", children: r, className: i, ariaLive: a = "polite" }) => /* @__PURE__ */ e("div", {
5
+ role: "status",
6
+ "aria-live": a,
7
+ class: t("IncodeSnackbar", `IncodeSnackbar--${n}`, i),
8
+ children: /* @__PURE__ */ e("span", {
9
+ class: "IncodeSnackbarContent",
10
+ children: r
11
+ })
12
+ });
13
+ //#endregion
14
+ export { n as t };
@@ -0,0 +1 @@
1
+ import "./spinner-CKnjVHxw.js";
@@ -0,0 +1,39 @@
1
+ import { S as e, _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
2
+ import { n as i, r as a, t as o } from "./loadingIcon-BN5YRQUb.js";
3
+ import { t as s } from "./typography-CxjaknHN.js";
4
+ //#region src/shared/spinner/spinner.tsx
5
+ var c = {
6
+ small: 24,
7
+ medium: 48,
8
+ large: 64
9
+ }, l = ({ title: l, subtitle: u, size: d = "medium", fullScreen: f = !0, className: p }) => {
10
+ let m = c[d], h = n(null);
11
+ return t(() => {
12
+ l && h.current?.focus();
13
+ }, [l]), /* @__PURE__ */ r("div", {
14
+ class: i("IncodeSpinner", f && "IncodeSpinnerFullScreen", p),
15
+ "data-testid": "spinner",
16
+ "data-title": l,
17
+ "data-subtitle": u,
18
+ "data-size": d,
19
+ role: "status",
20
+ "aria-live": "polite",
21
+ children: /* @__PURE__ */ r("div", {
22
+ class: "IncodeSpinnerContent",
23
+ children: [/* @__PURE__ */ r(o, { size: m }), (l || u) && /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r(a, { size: 16 }), /* @__PURE__ */ r("div", {
24
+ class: "IncodeSpinnerText",
25
+ children: [l && /* @__PURE__ */ r(s, {
26
+ ref: h,
27
+ tabIndex: -1,
28
+ className: "IncodeSpinnerTitle",
29
+ children: l
30
+ }), u && /* @__PURE__ */ r(e, { children: [l && /* @__PURE__ */ r(a, { size: 12 }), /* @__PURE__ */ r("p", {
31
+ class: "IncodeSpinnerSubtitle",
32
+ children: u
33
+ })] })]
34
+ })] })]
35
+ })
36
+ });
37
+ };
38
+ //#endregion
39
+ export { l as t };
@@ -0,0 +1,28 @@
1
+ import { v as e } from "./vendor-preact-D6SntenC.js";
2
+ import { r as t } from "./loadingIcon-BN5YRQUb.js";
3
+ import { t as n } from "./page-C1yT4DLb.js";
4
+ import { t as r } from "./typography-CxjaknHN.js";
5
+ //#region src/shared/statusPage/statusPage.tsx
6
+ var i = ({ variant: i, icon: a, title: o, subtitle: s, titleRef: c, hideFooterBranding: l }) => /* @__PURE__ */ e(n, {
7
+ className: `IncodeStatusPage IncodeStatusPage--${i}`,
8
+ hideFooterBranding: l,
9
+ children: /* @__PURE__ */ e("div", {
10
+ class: "IncodeStatusPageContainer",
11
+ children: [
12
+ a,
13
+ /* @__PURE__ */ e(t, { size: 16 }),
14
+ /* @__PURE__ */ e(r, {
15
+ ref: c,
16
+ className: "IncodeStatusPageTitle",
17
+ tabIndex: c ? -1 : void 0,
18
+ children: o
19
+ }),
20
+ s && /* @__PURE__ */ e("p", {
21
+ class: "IncodeStatusPageSubtitle",
22
+ children: s
23
+ })
24
+ ]
25
+ })
26
+ });
27
+ //#endregion
28
+ export { i as t };
@@ -0,0 +1,28 @@
1
+ import { v as e } from "./vendor-preact-D6SntenC.js";
2
+ //#region src/shared/icons/successIcon.tsx
3
+ var t = ({ size: t = 64 }) => /* @__PURE__ */ e("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ width: t,
6
+ height: t,
7
+ viewBox: "0 0 64 64",
8
+ fill: "none",
9
+ class: "IncodeSuccessIcon",
10
+ "aria-hidden": "true",
11
+ children: [
12
+ /* @__PURE__ */ e("title", { children: "status" }),
13
+ /* @__PURE__ */ e("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M32 6.66669C18.032 6.66669 6.66663 18.032 6.66663 32C6.66663 45.9707 18.032 57.3334 32 57.3334C45.968 57.3334 57.3333 45.9707 57.3333 32C57.3333 18.032 45.968 6.66669 32 6.66669Z",
17
+ fill: "var(--icon-status-positive)"
18
+ }),
19
+ /* @__PURE__ */ e("path", {
20
+ "fill-rule": "evenodd",
21
+ "clip-rule": "evenodd",
22
+ d: "M42.648 27.2587L30.3333 39.5733C29.9413 39.9653 29.432 40.16 28.92 40.16C28.4053 40.16 27.896 39.9653 27.504 39.5733L21.3466 33.416C20.5653 32.6347 20.5653 31.368 21.3466 30.5867C22.128 29.8053 23.392 29.8053 24.1733 30.5867L28.92 35.3307L39.8186 24.4293C40.6 23.648 41.8666 23.648 42.648 24.4293C43.4293 25.2107 43.4293 26.4773 42.648 27.2587Z",
23
+ fill: "var(--icon-neutral-0)"
24
+ })
25
+ ]
26
+ });
27
+ //#endregion
28
+ export { t };