@alfadocs/ui-kit 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{accordion-bSU21uTV.js → accordion-9lJSMMsZ.js} +6 -6
- package/dist/_chunks/{agenda-tray-By_asPN9.js → agenda-tray-Dyj9ChHC.js} +22 -21
- package/dist/_chunks/{bmi-calculator-BRUru9QX.js → bmi-calculator-DnEr513I.js} +2 -2
- package/dist/_chunks/{booking-DK_BPHnQ.js → booking-4mCw3Mpl.js} +2 -2
- package/dist/_chunks/{chart-DnHvmiDX.js → chart-Cbt0_sKv.js} +46 -37
- package/dist/_chunks/{collapsible-CERONory.js → collapsible-X3oaLPU3.js} +5 -5
- package/dist/_chunks/{document-scanner-CdHQ6lTN.js → document-scanner-CqS_klIr.js} +56 -55
- package/dist/_chunks/{editable-currency-cell-renderer-DGKuRNVG.js → editable-currency-cell-renderer-DgkCIIcO.js} +2 -2
- package/dist/_chunks/{file-upload-CnzRcErt.js → file-upload-BosbPDb1.js} +2 -2
- package/dist/_chunks/{freemium-paywall-D1N02Oam.js → freemium-paywall-BAk3a6er.js} +7 -7
- package/dist/_chunks/header-settings-CBLwUK6t.js +244 -0
- package/dist/_chunks/{map-view-vD5pvWs9.js → map-view-qJLybrmN.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +296 -0
- package/dist/_chunks/{message-card-BbRhZkDI.js → message-card-DSPw5ghw.js} +20 -19
- package/dist/_chunks/{message-tray-B762TKuv.js → message-tray-hSQff9u4.js} +3 -3
- package/dist/_chunks/{notification-card-DMdO4g54.js → notification-card-CObnGdJu.js} +22 -21
- package/dist/_chunks/{notification-tray-Dl3FTleW.js → notification-tray-BWHDIjgd.js} +2 -2
- package/dist/_chunks/{otp-input-CDTWT5EK.js → otp-input-CMphfBxZ.js} +70 -71
- package/dist/_chunks/{patient-shell-Bz3CdO84.js → patient-shell-DF81lALv.js} +36 -35
- package/dist/_chunks/{payment-form-D5rgnZu7.js → payment-form-Dy3WIIsC.js} +18 -18
- package/dist/_chunks/{pdf-viewer-DvtEHcEP.js → pdf-viewer-Cy6Ul3hZ.js} +2 -2
- package/dist/_chunks/{practice-results-C8ciLQap.js → practice-results-C0d4IL5E.js} +2 -2
- package/dist/_chunks/{public-footer.agent-zw1vFin_.js → public-footer.agent-okt8ZRc5.js} +2 -2
- package/dist/_chunks/{reviews-panel-Dow8Dzoa.js → reviews-panel-CPrXu5TX.js} +2 -2
- package/dist/_chunks/{sidebar-BbR8f6oe.js → sidebar-_vJXI9rB.js} +2 -2
- package/dist/_chunks/sign-document-CpLDZ6Db.js +316 -0
- package/dist/_chunks/{signature-capture-C-fF71xI.js → signature-capture-DoiBd6i3.js} +138 -143
- package/dist/_chunks/{sparkline-DEROcSl0.js → sparkline-DGhCSw8M.js} +55 -46
- package/dist/_chunks/{stepper-accordion-BfS6lUB9.js → stepper-accordion-Dki6r9ZE.js} +2 -2
- package/dist/_chunks/{tag-CyoaEmf_.js → tag-CdA0s_VV.js} +16 -16
- package/dist/_chunks/{task-card-BUVMh6HN.js → task-card-CPyQ5AXC.js} +6 -5
- package/dist/_chunks/{task-tray-DRK0b0Qb.js → task-tray-B8jFv5FV.js} +36 -35
- package/dist/_chunks/{transcript-panel-DyhTpAP7.js → transcript-panel-CR7VY1uw.js} +8 -7
- package/dist/_chunks/{warning-stack-bDicCvxs.js → warning-stack-DNR3-IbP.js} +17 -16
- package/dist/_chunks/{workflow-map-uSiHbOWQ.js → workflow-map-C3gB0FvB.js} +3 -2
- package/dist/agent-catalog.json +39 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts +4 -0
- package/dist/components/header-settings/header-settings.d.ts +36 -0
- package/dist/components/header-settings/index.d.ts +2 -0
- package/dist/components/header-settings/index.js +2 -241
- package/dist/components/index.d.ts +1 -0
- package/dist/components/locale-picker/locale-picker.agent.d.ts +4 -0
- package/dist/components/locale-picker/locale-picker.d.ts +80 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/otp-input/index.d.ts +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.d.ts +4 -0
- package/dist/components/sign-document/index.js +6 -0
- package/dist/components/sign-document/sign-document.agent.d.ts +4 -0
- package/dist/components/sign-document/sign-document.d.ts +47 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locale-meta.d.ts +56 -0
- package/dist/i18n/locales/ar.d.ts +22 -0
- package/dist/i18n/locales/ar.js +22 -0
- package/dist/i18n/locales/de.d.ts +22 -0
- package/dist/i18n/locales/de.js +22 -0
- package/dist/i18n/locales/el.d.ts +22 -0
- package/dist/i18n/locales/el.js +22 -0
- package/dist/i18n/locales/en.d.ts +22 -0
- package/dist/i18n/locales/en.js +22 -0
- package/dist/i18n/locales/es.d.ts +22 -0
- package/dist/i18n/locales/es.js +22 -0
- package/dist/i18n/locales/fr.d.ts +22 -0
- package/dist/i18n/locales/fr.js +22 -0
- package/dist/i18n/locales/hi.d.ts +22 -0
- package/dist/i18n/locales/hi.js +22 -0
- package/dist/i18n/locales/it.d.ts +22 -0
- package/dist/i18n/locales/it.js +22 -0
- package/dist/i18n/locales/ja.d.ts +22 -0
- package/dist/i18n/locales/ja.js +22 -0
- package/dist/i18n/locales/nl.d.ts +22 -0
- package/dist/i18n/locales/nl.js +22 -0
- package/dist/i18n/locales/pl.d.ts +22 -0
- package/dist/i18n/locales/pl.js +22 -0
- package/dist/i18n/locales/pt.d.ts +22 -0
- package/dist/i18n/locales/pt.js +22 -0
- package/dist/i18n/locales/ro.d.ts +22 -0
- package/dist/i18n/locales/ro.js +22 -0
- package/dist/i18n/locales/ru.d.ts +22 -0
- package/dist/i18n/locales/ru.js +22 -0
- package/dist/i18n/locales/sq.d.ts +22 -0
- package/dist/i18n/locales/sq.js +22 -0
- package/dist/i18n/locales/sv.d.ts +22 -0
- package/dist/i18n/locales/sv.js +22 -0
- package/dist/i18n/locales/tr.d.ts +22 -0
- package/dist/i18n/locales/tr.js +22 -0
- package/dist/i18n/locales/zh.d.ts +22 -0
- package/dist/i18n/locales/zh.js +22 -0
- package/dist/index.js +110 -107
- package/dist/locales/ar.json +22 -0
- package/dist/locales/de.json +22 -0
- package/dist/locales/el.json +22 -0
- package/dist/locales/en.json +22 -0
- package/dist/locales/es.json +22 -0
- package/dist/locales/fr.json +22 -0
- package/dist/locales/hi.json +22 -0
- package/dist/locales/it.json +22 -0
- package/dist/locales/ja.json +22 -0
- package/dist/locales/nl.json +22 -0
- package/dist/locales/pl.json +22 -0
- package/dist/locales/pt.json +22 -0
- package/dist/locales/ro.json +22 -0
- package/dist/locales/ru.json +22 -0
- package/dist/locales/sq.json +22 -0
- package/dist/locales/sv.json +22 -0
- package/dist/locales/tr.json +22 -0
- package/dist/locales/zh.json +22 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +12 -8
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/marketplace-app-shell-BnClrL2B.js +0 -295
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ie, useId as oe, useMemo as M, useRef as k, useState as b, useEffect as L, useCallback as c, useImperativeHandle as de } from "react";
|
|
3
|
+
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ce } from "react-i18next";
|
|
5
|
+
import { P as le } from "./pdf-viewer-Cy6Ul3hZ.js";
|
|
6
|
+
import { S as ge } from "./signature-capture-DoiBd6i3.js";
|
|
7
|
+
import { u as me } from "./registry-nPAVE19X.js";
|
|
8
|
+
import { C as O } from "./circle-check-9AeSgJD_.js";
|
|
9
|
+
const ue = {
|
|
10
|
+
id: "sign-document",
|
|
11
|
+
capabilities: ["submit"],
|
|
12
|
+
state: {
|
|
13
|
+
isReadComplete: {
|
|
14
|
+
type: "boolean",
|
|
15
|
+
descriptionKey: "signDocument.agent.state.isReadComplete",
|
|
16
|
+
description: "True when the reader has reached the last page (or read-gating is off).",
|
|
17
|
+
read: (n) => n.isReadComplete()
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
actions: {
|
|
21
|
+
submit: {
|
|
22
|
+
safety: "write",
|
|
23
|
+
descriptionKey: "signDocument.agent.actions.confirm",
|
|
24
|
+
description: "Confirm the current signature, emitting it via onSign. No-op if unsigned.",
|
|
25
|
+
invoke: (n) => n.confirm()
|
|
26
|
+
},
|
|
27
|
+
reset: {
|
|
28
|
+
safety: "destructive",
|
|
29
|
+
descriptionKey: "signDocument.agent.actions.reset",
|
|
30
|
+
description: "Clear the captured signature and return to unsigned.",
|
|
31
|
+
invoke: (n) => {
|
|
32
|
+
n.reset();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
domHooks: {
|
|
37
|
+
root: {
|
|
38
|
+
attr: "data-component",
|
|
39
|
+
value: "sign-document",
|
|
40
|
+
description: "Marks the SignDocument wrapper."
|
|
41
|
+
},
|
|
42
|
+
instanceId: {
|
|
43
|
+
attr: "data-component-id",
|
|
44
|
+
sourceProp: "id",
|
|
45
|
+
description: "Sourced from the id prop."
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, pe = i(
|
|
49
|
+
[
|
|
50
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
51
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--card-border)]",
|
|
52
|
+
"ds:shadow-[var(--shadow-card)] ds:[.theme-accessible_&]:border-2",
|
|
53
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
54
|
+
"ds:p-[var(--spacing-md)]",
|
|
55
|
+
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
56
|
+
].join(" ")
|
|
57
|
+
), fe = i(
|
|
58
|
+
["type-heading-sm ds:text-[var(--foreground)]"].join(" ")
|
|
59
|
+
), ve = i(
|
|
60
|
+
["ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"].join(" ")
|
|
61
|
+
), be = i(
|
|
62
|
+
["type-body-sm ds:font-medium ds:text-[var(--foreground)]"].join(" ")
|
|
63
|
+
), he = i(
|
|
64
|
+
[
|
|
65
|
+
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
66
|
+
"type-body-sm ds:text-[var(--muted-foreground)]"
|
|
67
|
+
].join(" ")
|
|
68
|
+
), ye = i(
|
|
69
|
+
[
|
|
70
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
71
|
+
"type-body-sm",
|
|
72
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
73
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
74
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
75
|
+
"ds:bg-[color-mix(in_srgb,var(--info)_10%,transparent)]",
|
|
76
|
+
"ds:text-[var(--foreground)]",
|
|
77
|
+
"ds:border ds:border-[color:color-mix(in_srgb,var(--info)_40%,transparent)]"
|
|
78
|
+
].join(" ")
|
|
79
|
+
), xe = i(
|
|
80
|
+
[
|
|
81
|
+
"ds:inline-flex ds:inline-size-full ds:items-center ds:justify-center",
|
|
82
|
+
"ds:min-block-size-[var(--min-target-size)]",
|
|
83
|
+
"ds:min-inline-size-[var(--min-target-size)]",
|
|
84
|
+
"ds:gap-[var(--spacing-xs)]",
|
|
85
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
86
|
+
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
87
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
88
|
+
"ds:bg-[var(--primary)] ds:text-[var(--primary-foreground)]",
|
|
89
|
+
"ds:text-[length:var(--font-size-base)] ds:font-medium",
|
|
90
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
91
|
+
"ds:hover:bg-[var(--primary-hover)]",
|
|
92
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
93
|
+
"ds:focus-visible:outline-solid",
|
|
94
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
95
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
96
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
97
|
+
"ds:disabled:opacity-[var(--opacity-50)] ds:disabled:cursor-not-allowed",
|
|
98
|
+
"ds:disabled:hover:bg-[var(--primary)]"
|
|
99
|
+
].join(" ")
|
|
100
|
+
), De = i(
|
|
101
|
+
[
|
|
102
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
103
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
104
|
+
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
105
|
+
"ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
|
|
106
|
+
"ds:bg-[color-mix(in_srgb,var(--success)_12%,transparent)]",
|
|
107
|
+
"ds:text-[var(--foreground)]",
|
|
108
|
+
"ds:border ds:border-[color:color-mix(in_srgb,var(--success)_45%,transparent)]"
|
|
109
|
+
].join(" ")
|
|
110
|
+
);
|
|
111
|
+
function Z(n, m) {
|
|
112
|
+
const a = new Date(n);
|
|
113
|
+
if (Number.isNaN(a.getTime())) return n;
|
|
114
|
+
try {
|
|
115
|
+
return new Intl.DateTimeFormat(m, {
|
|
116
|
+
dateStyle: "long",
|
|
117
|
+
timeStyle: "short"
|
|
118
|
+
}).format(a);
|
|
119
|
+
} catch {
|
|
120
|
+
return a.toISOString();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const Se = ie(
|
|
124
|
+
({
|
|
125
|
+
id: n,
|
|
126
|
+
src: m,
|
|
127
|
+
documentTitle: a,
|
|
128
|
+
requireReadToEnd: _ = !0,
|
|
129
|
+
onSign: h,
|
|
130
|
+
onError: y,
|
|
131
|
+
signedAt: x = null,
|
|
132
|
+
disabled: D = !1,
|
|
133
|
+
readOnly: S = !1,
|
|
134
|
+
ariaLabel: N,
|
|
135
|
+
className: G
|
|
136
|
+
}, J) => {
|
|
137
|
+
const { t: s, i18n: z } = ce(), V = oe(), u = M(
|
|
138
|
+
() => `sign-doc-${V.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
139
|
+
[V]
|
|
140
|
+
), R = `${u}-doc-heading`, H = `${u}-sign-label`, Q = `${u}-live`, C = `${u}-gate-hint`, p = k(null), [E, w] = b(0), [U, $] = b(1), [W, j] = b(!1), [T, l] = b(!1), g = x != null, X = D || S || g, f = k(h), v = k(y);
|
|
141
|
+
L(() => {
|
|
142
|
+
f.current = h, v.current = y;
|
|
143
|
+
}, [h, y]), L(() => {
|
|
144
|
+
j(!1), w(0), $(1), l(!1);
|
|
145
|
+
}, [m]);
|
|
146
|
+
const Y = c(
|
|
147
|
+
(e) => {
|
|
148
|
+
w(e.numPages), e.numPages <= 1 && j(!0);
|
|
149
|
+
},
|
|
150
|
+
[]
|
|
151
|
+
), q = c((e) => {
|
|
152
|
+
$(e), w((t) => (t > 0 && e >= t && j(!0), t));
|
|
153
|
+
}, []), ee = c((e) => {
|
|
154
|
+
var t;
|
|
155
|
+
(t = v.current) == null || t.call(v, e);
|
|
156
|
+
}, []), B = !g && !S;
|
|
157
|
+
L(() => {
|
|
158
|
+
if (!B) return;
|
|
159
|
+
const e = () => {
|
|
160
|
+
const F = p.current;
|
|
161
|
+
F && l(!F.isEmpty());
|
|
162
|
+
};
|
|
163
|
+
e();
|
|
164
|
+
const t = window.setInterval(e, 200);
|
|
165
|
+
return () => window.clearInterval(t);
|
|
166
|
+
}, [B]);
|
|
167
|
+
const o = !_ || W, K = !(!X && o) || !T, se = c((e) => {
|
|
168
|
+
var t;
|
|
169
|
+
(t = f.current) == null || t.call(f, e);
|
|
170
|
+
}, []), I = c(async () => {
|
|
171
|
+
const e = p.current;
|
|
172
|
+
return e ? e.confirm() : null;
|
|
173
|
+
}, []), A = c(() => {
|
|
174
|
+
var e;
|
|
175
|
+
(e = p.current) == null || e.clear(), l(!1);
|
|
176
|
+
}, []), P = M(
|
|
177
|
+
() => ({
|
|
178
|
+
reset: A,
|
|
179
|
+
confirm: I,
|
|
180
|
+
isReadComplete: () => o
|
|
181
|
+
}),
|
|
182
|
+
[A, I, o]
|
|
183
|
+
);
|
|
184
|
+
de(J, () => P, [P]), me(ue, P, n);
|
|
185
|
+
const ne = N ?? (a ? s("signDocument.regionLabelNamed", { title: a }) : s("signDocument.regionLabel")), ae = a ?? s("signDocument.documentLabel"), te = g ? s("signDocument.signedOn", {
|
|
186
|
+
date: Z(x, z.language)
|
|
187
|
+
}) : o ? s("signDocument.readyToSign") : "", re = o ? T ? "" : s("signDocument.signToEnable") : s("signDocument.scrollToEnd");
|
|
188
|
+
return /* @__PURE__ */ d(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
role: "group",
|
|
192
|
+
"aria-labelledby": !N && a ? R : void 0,
|
|
193
|
+
"aria-label": N || !a ? ne : void 0,
|
|
194
|
+
"aria-disabled": D || void 0,
|
|
195
|
+
className: [pe(), G].filter(Boolean).join(" "),
|
|
196
|
+
"data-component": "sign-document",
|
|
197
|
+
"data-component-id": n,
|
|
198
|
+
"data-signed": g || void 0,
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ r(
|
|
201
|
+
"span",
|
|
202
|
+
{
|
|
203
|
+
role: "status",
|
|
204
|
+
"aria-live": "polite",
|
|
205
|
+
"aria-atomic": "true",
|
|
206
|
+
className: "ds:sr-only",
|
|
207
|
+
"data-testid": "sign-document-live",
|
|
208
|
+
id: Q,
|
|
209
|
+
children: te
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ r("span", { className: "ds:sr-only", id: C, children: re }),
|
|
213
|
+
a ? /* @__PURE__ */ r("h2", { id: R, className: fe(), children: a }) : null,
|
|
214
|
+
/* @__PURE__ */ r(
|
|
215
|
+
le,
|
|
216
|
+
{
|
|
217
|
+
src: m,
|
|
218
|
+
ariaLabel: ae,
|
|
219
|
+
onLoadComplete: Y,
|
|
220
|
+
onPageChange: q,
|
|
221
|
+
onError: ee
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
g ? (
|
|
225
|
+
/* ---- Already-signed, read-only ---- */
|
|
226
|
+
/* @__PURE__ */ d(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
className: De(),
|
|
230
|
+
"data-testid": "sign-document-signed",
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ r(
|
|
233
|
+
O,
|
|
234
|
+
{
|
|
235
|
+
"aria-hidden": "true",
|
|
236
|
+
className: "ds:size-5 ds:text-[var(--success)] ds:shrink-0"
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ d("span", { className: "type-body-sm", children: [
|
|
240
|
+
/* @__PURE__ */ r("strong", { className: "ds:font-semibold", children: s("signDocument.signed") }),
|
|
241
|
+
" — ",
|
|
242
|
+
s("signDocument.signedOn", {
|
|
243
|
+
date: Z(x, z.language)
|
|
244
|
+
})
|
|
245
|
+
] })
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
) : S ? null : (
|
|
250
|
+
/* ---- Sign surface ---- */
|
|
251
|
+
/* @__PURE__ */ d(
|
|
252
|
+
"div",
|
|
253
|
+
{
|
|
254
|
+
className: ve(),
|
|
255
|
+
role: "group",
|
|
256
|
+
"aria-labelledby": H,
|
|
257
|
+
"aria-describedby": C,
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
260
|
+
/* @__PURE__ */ r("span", { id: H, className: be(), children: s("signDocument.signatureSection") }),
|
|
261
|
+
E > 0 ? /* @__PURE__ */ r(
|
|
262
|
+
"span",
|
|
263
|
+
{
|
|
264
|
+
className: he(),
|
|
265
|
+
"data-testid": "sign-document-progress",
|
|
266
|
+
children: s("signDocument.pageProgress", {
|
|
267
|
+
current: U,
|
|
268
|
+
total: E
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
) : null
|
|
272
|
+
] }),
|
|
273
|
+
_ && !o ? /* @__PURE__ */ r("p", { className: ye(), "data-testid": "sign-document-hint", children: s("signDocument.scrollToEnd") }) : null,
|
|
274
|
+
/* @__PURE__ */ r(
|
|
275
|
+
ge,
|
|
276
|
+
{
|
|
277
|
+
ref: p,
|
|
278
|
+
ariaLabel: s("signDocument.signatureSection"),
|
|
279
|
+
disabled: D || !o,
|
|
280
|
+
onStart: () => l(!0),
|
|
281
|
+
onClear: () => l(!1),
|
|
282
|
+
onConfirm: se
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ d(
|
|
286
|
+
"button",
|
|
287
|
+
{
|
|
288
|
+
type: "button",
|
|
289
|
+
onClick: () => {
|
|
290
|
+
K || I();
|
|
291
|
+
},
|
|
292
|
+
disabled: K,
|
|
293
|
+
"aria-describedby": C,
|
|
294
|
+
className: xe(),
|
|
295
|
+
"data-testid": "sign-document-confirm",
|
|
296
|
+
children: [
|
|
297
|
+
/* @__PURE__ */ r(O, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
298
|
+
s("signDocument.confirm")
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
)
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
Se.displayName = "SignDocument";
|
|
312
|
+
export {
|
|
313
|
+
Se as S,
|
|
314
|
+
ue as s
|
|
315
|
+
};
|
|
316
|
+
//# sourceMappingURL=sign-document-CpLDZ6Db.js.map
|