@alfadocs/ui-kit 1.133.0 → 1.134.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/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
- package/dist/_chunks/appointment-card-DG3m9yN-.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
- package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
- package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
- package/dist/_chunks/ban-CiSCCcOE.js +15 -0
- package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-BSkIYGlW.js} +13 -13
- package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
- package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
- package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
- package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
- package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
- package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
- package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
- package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
- package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
- package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
- package/dist/_chunks/house-DGCypGTo.js +21 -0
- package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
- package/dist/_chunks/keypad-DBH_keVs.js +152 -0
- package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
- package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
- package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
- package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
- package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
- package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
- package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
- package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
- package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
- package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
- package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
- package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
- package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
- package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
- package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
- package/dist/_chunks/portal-details-CTEsm705.js +478 -0
- package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
- package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
- package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
- package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
- package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
- package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
- package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
- package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
- package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
- package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
- package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
- package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
- package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
- package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
- package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
- package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
- package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
- package/dist/agent-catalog.json +723 -364
- package/dist/agent-i18n/en.json +75 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +45 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
- package/dist/components/appointment-card/index.js +3 -3
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
- package/dist/components/finished-terminal/index.d.ts +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/index.d.ts +12 -0
- package/dist/components/keypad/index.d.ts +3 -0
- package/dist/components/keypad/index.js +6 -0
- package/dist/components/keypad/keypad.d.ts +54 -0
- package/dist/components/keypad-button/index.d.ts +3 -0
- package/dist/components/keypad-button/index.js +6 -0
- package/dist/components/keypad-button/keypad-button.d.ts +33 -0
- package/dist/components/message-card/index.js +2 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.d.ts +11 -0
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
- package/dist/components/pin-entry/index.d.ts +3 -0
- package/dist/components/pin-entry/index.js +5 -0
- package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
- package/dist/components/pin-entry/pin-entry.d.ts +64 -0
- package/dist/components/pin-indicator/index.d.ts +3 -0
- package/dist/components/pin-indicator/index.js +9 -0
- package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
- package/dist/components/product-hub-tray/index.js +2 -2
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/session-countdown/session-countdown.d.ts +19 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +17 -6
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
- package/dist/components/sms-code-entry/index.d.ts +3 -0
- package/dist/components/sms-code-entry/index.js +5 -0
- package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
- package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
- package/dist/components/step-up-dialog/index.d.ts +3 -0
- package/dist/components/step-up-dialog/index.js +5 -0
- package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-signing-session.d.ts +7 -2
- package/dist/host-compat.css +10 -1
- package/dist/i18n/locales/ar.d.ts +512 -1
- package/dist/i18n/locales/ar.js +509 -3
- package/dist/i18n/locales/de.d.ts +512 -1
- package/dist/i18n/locales/de.js +517 -4
- package/dist/i18n/locales/el.d.ts +512 -1
- package/dist/i18n/locales/el.js +512 -4
- package/dist/i18n/locales/en.d.ts +514 -1
- package/dist/i18n/locales/en.js +520 -4
- package/dist/i18n/locales/es.d.ts +512 -1
- package/dist/i18n/locales/es.js +510 -4
- package/dist/i18n/locales/fr.d.ts +512 -1
- package/dist/i18n/locales/fr.js +510 -4
- package/dist/i18n/locales/hi.d.ts +512 -1
- package/dist/i18n/locales/hi.js +510 -4
- package/dist/i18n/locales/it.d.ts +512 -1
- package/dist/i18n/locales/it.js +517 -4
- package/dist/i18n/locales/ja.d.ts +512 -1
- package/dist/i18n/locales/ja.js +510 -4
- package/dist/i18n/locales/nl.d.ts +512 -1
- package/dist/i18n/locales/nl.js +517 -4
- package/dist/i18n/locales/pl.d.ts +512 -1
- package/dist/i18n/locales/pl.js +517 -4
- package/dist/i18n/locales/pt.d.ts +512 -1
- package/dist/i18n/locales/pt.js +517 -4
- package/dist/i18n/locales/ro.d.ts +512 -1
- package/dist/i18n/locales/ro.js +517 -4
- package/dist/i18n/locales/ru.d.ts +512 -1
- package/dist/i18n/locales/ru.js +509 -3
- package/dist/i18n/locales/sq.d.ts +512 -1
- package/dist/i18n/locales/sq.js +510 -4
- package/dist/i18n/locales/sv.d.ts +512 -1
- package/dist/i18n/locales/sv.js +510 -4
- package/dist/i18n/locales/tr.d.ts +512 -1
- package/dist/i18n/locales/tr.js +512 -4
- package/dist/i18n/locales/zh.d.ts +512 -1
- package/dist/i18n/locales/zh.js +510 -4
- package/dist/index.js +1271 -1204
- package/dist/locales/ar.json +513 -2
- package/dist/locales/de.json +514 -3
- package/dist/locales/el.json +514 -3
- package/dist/locales/en.json +514 -3
- package/dist/locales/es.json +514 -3
- package/dist/locales/fr.json +514 -3
- package/dist/locales/hi.json +514 -3
- package/dist/locales/it.json +514 -3
- package/dist/locales/ja.json +514 -3
- package/dist/locales/nl.json +514 -3
- package/dist/locales/pl.json +514 -3
- package/dist/locales/pt.json +514 -3
- package/dist/locales/ro.json +514 -3
- package/dist/locales/ru.json +513 -2
- package/dist/locales/sq.json +514 -3
- package/dist/locales/sv.json +514 -3
- package/dist/locales/tr.json +514 -3
- package/dist/locales/zh.json +514 -3
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
- package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
- package/dist/patterns/check-in-documents/index.d.ts +4 -0
- package/dist/patterns/check-in-documents/index.js +5 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.d.ts +4 -0
- package/dist/patterns/patient-account-settings/index.js +5 -0
- package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
- package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
- package/dist/patterns/patient-check-in/index.d.ts +20 -0
- package/dist/patterns/patient-check-in/index.js +13 -0
- package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
- package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
- package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
- package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
- package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
- package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
- package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
- package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
- package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
- package/dist/patterns/patient-portal/index.d.ts +12 -0
- package/dist/patterns/patient-portal/index.js +13 -0
- package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
- package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
- package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
- package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
- package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
- package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
- package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
- package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
- package/dist/patterns/patient-sign-in/index.d.ts +7 -0
- package/dist/patterns/patient-sign-in/index.js +15 -0
- package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
- package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +25 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
- package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
- package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
- package/dist/patterns/signing/signing-footer.d.ts +56 -0
- package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
- package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
- package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
- package/dist/patterns/signing/signing-roster.d.ts +44 -0
- package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
- package/dist/patterns/verify-identity/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +49 -1
- package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
- package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
- package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
- package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
- package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
- package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
- package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
- package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as m, useRef as T, useContext as w, useId as A, useState as D, createContext as I } from "react";
|
|
3
|
+
import { useTranslation as v } from "react-i18next";
|
|
4
|
+
import { B as U } from "./button-DohK_Ak_.js";
|
|
5
|
+
import { C as p } from "./card-n6W6LW-N.js";
|
|
6
|
+
import { E as d } from "./empty-state-DwJ5YNzz.js";
|
|
7
|
+
import { S as L } from "./skeleton-tTWJpvAq.js";
|
|
8
|
+
import { S as j } from "./step-up-dialog-C2JqJmCA.js";
|
|
9
|
+
import { i as k } from "./is-development-CLUAnsU7.js";
|
|
10
|
+
import { A as E } from "./appointment-card-DG3m9yN-.js";
|
|
11
|
+
import { c as B } from "./intl-locale-FWh-Y5_3.js";
|
|
12
|
+
function Y(e) {
|
|
13
|
+
const { i18n: t } = v("ui");
|
|
14
|
+
return B(e ?? t.language);
|
|
15
|
+
}
|
|
16
|
+
function h(e, t, a, n) {
|
|
17
|
+
const s = new Date(e);
|
|
18
|
+
if (Number.isNaN(s.getTime())) return e;
|
|
19
|
+
try {
|
|
20
|
+
return new Intl.DateTimeFormat(t, { ...a, timeZone: n }).format(
|
|
21
|
+
s
|
|
22
|
+
);
|
|
23
|
+
} catch {
|
|
24
|
+
return new Intl.DateTimeFormat(t, a).format(s);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function F(e, t, a) {
|
|
28
|
+
return h(
|
|
29
|
+
e,
|
|
30
|
+
t,
|
|
31
|
+
{ weekday: "long", day: "numeric", month: "long", year: "numeric" },
|
|
32
|
+
a
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
function M(e, t, a) {
|
|
36
|
+
return h(
|
|
37
|
+
e,
|
|
38
|
+
t,
|
|
39
|
+
{ day: "numeric", month: "long", year: "numeric" },
|
|
40
|
+
a
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
function ee(e, t) {
|
|
44
|
+
const a = /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T12:00:00Z` : e;
|
|
45
|
+
return M(a, t, "UTC");
|
|
46
|
+
}
|
|
47
|
+
function te(e) {
|
|
48
|
+
if (!e) return null;
|
|
49
|
+
const t = e.replace(/(?!^\+)[^\d]/g, "");
|
|
50
|
+
return /\d/.test(t) ? `tel:${t}` : null;
|
|
51
|
+
}
|
|
52
|
+
const g = (e) => e === 1 ? 2 : 3, x = I(null);
|
|
53
|
+
function R({ message: e }) {
|
|
54
|
+
const [t, a] = D("");
|
|
55
|
+
return m(() => {
|
|
56
|
+
a(e);
|
|
57
|
+
}, [e]), /* @__PURE__ */ r("span", { role: "status", "data-live": "portal", className: "ds:sr-only", children: t });
|
|
58
|
+
}
|
|
59
|
+
function ae({
|
|
60
|
+
component: e,
|
|
61
|
+
title: t,
|
|
62
|
+
description: a,
|
|
63
|
+
headingLevel: n,
|
|
64
|
+
focusOnMount: s,
|
|
65
|
+
privacy: o = !1,
|
|
66
|
+
className: l,
|
|
67
|
+
rootRef: y,
|
|
68
|
+
status: f = "ready",
|
|
69
|
+
loadingLabel: N = "",
|
|
70
|
+
errorLabel: S = "",
|
|
71
|
+
message: P,
|
|
72
|
+
children: b
|
|
73
|
+
}) {
|
|
74
|
+
const u = T(null);
|
|
75
|
+
m(() => {
|
|
76
|
+
var c;
|
|
77
|
+
s && ((c = u.current) == null || c.focus({ preventScroll: !0 }));
|
|
78
|
+
}, []);
|
|
79
|
+
const C = n === 1 ? "h1" : "h2";
|
|
80
|
+
return /* @__PURE__ */ i(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
ref: y,
|
|
84
|
+
"data-component": e,
|
|
85
|
+
"data-privacy": o ? "masked" : void 0,
|
|
86
|
+
className: l,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ r(R, { message: f === "loading" ? N : f === "error" ? S : P ?? "" }),
|
|
89
|
+
/* @__PURE__ */ r(p, { variant: "elevated", className: "ds:w-full", children: /* @__PURE__ */ r(p.Body, { children: /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", children: [
|
|
90
|
+
/* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
91
|
+
/* @__PURE__ */ r(
|
|
92
|
+
C,
|
|
93
|
+
{
|
|
94
|
+
ref: u,
|
|
95
|
+
tabIndex: -1,
|
|
96
|
+
className: n === 1 ? "type-title-page ds:m-0 ds:text-foreground ds:outline-none" : "type-title-card ds:m-0 ds:text-foreground ds:outline-none",
|
|
97
|
+
children: t
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
a ? /* @__PURE__ */ r("div", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: a }) : null
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ r(
|
|
103
|
+
x.Provider,
|
|
104
|
+
{
|
|
105
|
+
value: () => {
|
|
106
|
+
var c;
|
|
107
|
+
return (c = u.current) == null ? void 0 : c.focus({ preventScroll: !0 });
|
|
108
|
+
},
|
|
109
|
+
children: b
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }) }) })
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function re({
|
|
118
|
+
title: e,
|
|
119
|
+
headingLevel: t,
|
|
120
|
+
section: a,
|
|
121
|
+
sectionId: n,
|
|
122
|
+
children: s
|
|
123
|
+
}) {
|
|
124
|
+
const o = A(), l = g(t) === 2 ? "h2" : "h3";
|
|
125
|
+
return /* @__PURE__ */ i(
|
|
126
|
+
"section",
|
|
127
|
+
{
|
|
128
|
+
"aria-labelledby": o,
|
|
129
|
+
"data-section": a,
|
|
130
|
+
"data-section-id": n,
|
|
131
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ r(
|
|
134
|
+
l,
|
|
135
|
+
{
|
|
136
|
+
id: o,
|
|
137
|
+
tabIndex: -1,
|
|
138
|
+
className: "type-title-card ds:m-0 ds:outline-none",
|
|
139
|
+
children: e
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
s
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function ne({ children: e }) {
|
|
148
|
+
return /* @__PURE__ */ r("p", { className: "type-meta ds:m-0 ds:break-words ds:text-[color:var(--muted-foreground)]", children: e });
|
|
149
|
+
}
|
|
150
|
+
function se() {
|
|
151
|
+
return /* @__PURE__ */ r("div", { "aria-hidden": "true", "data-state": "loading", children: /* @__PURE__ */ r(L, { variant: "text", lines: 4 }) });
|
|
152
|
+
}
|
|
153
|
+
function oe({
|
|
154
|
+
kind: e,
|
|
155
|
+
title: t,
|
|
156
|
+
body: a,
|
|
157
|
+
headingLevel: n,
|
|
158
|
+
onRetry: s
|
|
159
|
+
}) {
|
|
160
|
+
const { t: o } = v("ui"), l = w(x);
|
|
161
|
+
return /* @__PURE__ */ r("div", { "data-state": e, children: /* @__PURE__ */ i(
|
|
162
|
+
d,
|
|
163
|
+
{
|
|
164
|
+
variant: e === "error" ? "error" : "first-use",
|
|
165
|
+
size: "sm",
|
|
166
|
+
headingLevel: g(n),
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ r(d.Title, { children: t }),
|
|
169
|
+
a ? /* @__PURE__ */ r(d.Description, { children: a }) : null,
|
|
170
|
+
e === "error" && s ? /* @__PURE__ */ r(d.Actions, { children: /* @__PURE__ */ r(
|
|
171
|
+
U,
|
|
172
|
+
{
|
|
173
|
+
type: "button",
|
|
174
|
+
intent: "secondary",
|
|
175
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
176
|
+
"data-action": "retry",
|
|
177
|
+
onClick: () => {
|
|
178
|
+
s(), l == null || l();
|
|
179
|
+
},
|
|
180
|
+
children: o("patientSignIn.tryAgain")
|
|
181
|
+
}
|
|
182
|
+
) }) : null
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
) });
|
|
186
|
+
}
|
|
187
|
+
function le({
|
|
188
|
+
config: e,
|
|
189
|
+
privacy: t,
|
|
190
|
+
defaultSubject: a
|
|
191
|
+
}) {
|
|
192
|
+
const n = !!e && !(e != null && e.onCancel);
|
|
193
|
+
return m(() => {
|
|
194
|
+
n && k() && console.warn(
|
|
195
|
+
"PortalStepUp: `stepUp.onCancel` is not set, so Cancel, Escape and the scrim cannot close the SMS dialog (WCAG 2.1.2). Give `onCancel` and set `stepUp` back to null in it."
|
|
196
|
+
);
|
|
197
|
+
}, [n]), e ? /* @__PURE__ */ r(
|
|
198
|
+
j,
|
|
199
|
+
{
|
|
200
|
+
...e,
|
|
201
|
+
open: !0,
|
|
202
|
+
subject: e.subject ?? a,
|
|
203
|
+
privacy: t || e.privacy === !0
|
|
204
|
+
}
|
|
205
|
+
) : null;
|
|
206
|
+
}
|
|
207
|
+
const Z = {
|
|
208
|
+
upcoming: "confirmed",
|
|
209
|
+
cancelled: "cancelled",
|
|
210
|
+
past: "done"
|
|
211
|
+
};
|
|
212
|
+
function H(e, t = !1) {
|
|
213
|
+
return {
|
|
214
|
+
id: e.id,
|
|
215
|
+
startIso: e.startIso,
|
|
216
|
+
durationMin: e.durationMin,
|
|
217
|
+
state: Z[e.status],
|
|
218
|
+
type: e.type ?? "inPractice",
|
|
219
|
+
practiceName: e.practice.name,
|
|
220
|
+
operator: e.providerName ? { name: e.providerName } : void 0,
|
|
221
|
+
// The card masks only what belongs to the patient it shows; here the
|
|
222
|
+
// patient is implied, so the care name is dropped under privacy.
|
|
223
|
+
treatments: e.careName && !t ? [{ careName: e.careName }] : void 0,
|
|
224
|
+
dimmed: e.status === "past" ? !0 : void 0
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function ie({ children: e }) {
|
|
228
|
+
return /* @__PURE__ */ r("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0", children: e });
|
|
229
|
+
}
|
|
230
|
+
function ce({
|
|
231
|
+
appointment: e,
|
|
232
|
+
locale: t,
|
|
233
|
+
privacy: a,
|
|
234
|
+
standalone: n = !1,
|
|
235
|
+
children: s
|
|
236
|
+
}) {
|
|
237
|
+
return /* @__PURE__ */ i(
|
|
238
|
+
n ? "div" : "li",
|
|
239
|
+
{
|
|
240
|
+
"data-appointment-id": e.id,
|
|
241
|
+
tabIndex: -1,
|
|
242
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:outline-none",
|
|
243
|
+
children: [
|
|
244
|
+
/* @__PURE__ */ r("p", { className: "type-label ds:m-0 ds:text-[color:var(--muted-foreground)]", children: F(
|
|
245
|
+
e.startIso,
|
|
246
|
+
t,
|
|
247
|
+
e.practice.timeZone
|
|
248
|
+
) }),
|
|
249
|
+
/* @__PURE__ */ r(
|
|
250
|
+
E,
|
|
251
|
+
{
|
|
252
|
+
role: "presentation",
|
|
253
|
+
item: H(e, a),
|
|
254
|
+
showPatient: !1,
|
|
255
|
+
surface: "elevated",
|
|
256
|
+
hideDefaultStatus: !0,
|
|
257
|
+
locale: t,
|
|
258
|
+
timeZone: e.practice.timeZone,
|
|
259
|
+
privacy: a,
|
|
260
|
+
wrapText: !0
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
s
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
export {
|
|
269
|
+
ae as P,
|
|
270
|
+
x as S,
|
|
271
|
+
se as a,
|
|
272
|
+
oe as b,
|
|
273
|
+
ne as c,
|
|
274
|
+
le as d,
|
|
275
|
+
re as e,
|
|
276
|
+
ee as f,
|
|
277
|
+
R as g,
|
|
278
|
+
ie as h,
|
|
279
|
+
ce as i,
|
|
280
|
+
F as j,
|
|
281
|
+
M as k,
|
|
282
|
+
te as t,
|
|
283
|
+
Y as u
|
|
284
|
+
};
|
|
285
|
+
//# sourceMappingURL=portal-parts-BdR29P7z.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as t } from "react-i18next";
|
|
3
3
|
import { E as c } from "./empty-state-DwJ5YNzz.js";
|
|
4
4
|
import { P as o } from "./panel-header-CbtlTe85.js";
|
|
@@ -70,9 +70,9 @@ function E({
|
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
u as P,
|
|
74
|
+
f as a,
|
|
75
|
+
b,
|
|
76
76
|
E as c
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=privacy-mask-
|
|
78
|
+
//# sourceMappingURL=privacy-mask-C19dJFMk.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as L } from "react-i18next";
|
|
|
5
5
|
import { E as re } from "./empty-state-DwJ5YNzz.js";
|
|
6
6
|
import { L as X } from "./link-CeV7FoI6.js";
|
|
7
7
|
import { S as E } from "./separator-Bdc9bqoJ.js";
|
|
8
|
-
import { i as W } from "./is-safe-url-
|
|
8
|
+
import { i as W } from "./is-safe-url-CEy9CEml.js";
|
|
9
9
|
import { u as J } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import * as j from "@radix-ui/react-popover";
|
|
11
11
|
import { u as te, f as de } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
@@ -682,4 +682,4 @@ export {
|
|
|
682
682
|
me as b,
|
|
683
683
|
Ne as p
|
|
684
684
|
};
|
|
685
|
-
//# sourceMappingURL=product-hub-panel-
|
|
685
|
+
//# sourceMappingURL=product-hub-panel-K4QbULG7.js.map
|
|
@@ -25,7 +25,7 @@ import { a as Vr, i as qn } from "./safe-href-5dbsfbQn.js";
|
|
|
25
25
|
import { u as Mr } from "./use-field-match-C8ug3sdQ.js";
|
|
26
26
|
import { B as Tn } from "./brand-mark-DLk9kD8g.js";
|
|
27
27
|
import { u as Dn, b as Bn, a as Mn } from "./use-registration-submit-CLGHxwoT.js";
|
|
28
|
-
import { O as On } from "./otp-input-
|
|
28
|
+
import { O as On } from "./otp-input-BNOTlxq3.js";
|
|
29
29
|
import { C as _n } from "./circle-check-BN6rz4NV.js";
|
|
30
30
|
import { P as en } from "./pencil-B1sKKyuT.js";
|
|
31
31
|
import { L as jn } from "./log-in-OQUEoGhX.js";
|
|
@@ -1350,4 +1350,4 @@ export {
|
|
|
1350
1350
|
Kr as R,
|
|
1351
1351
|
ls as a
|
|
1352
1352
|
};
|
|
1353
|
-
//# sourceMappingURL=registration-form-
|
|
1353
|
+
//# sourceMappingURL=registration-form-DS3RuKHu.js.map
|
|
@@ -21,7 +21,7 @@ import { a as an } from "./format-price-CIX0YJZn.js";
|
|
|
21
21
|
import { C as Ar } from "./credit-card-D9XZsHGA.js";
|
|
22
22
|
import { m as gn } from "./motion-is-off-BvAuNV5O.js";
|
|
23
23
|
import { C as Mr } from "./card-n6W6LW-N.js";
|
|
24
|
-
import { O as Rr } from "./otp-input-
|
|
24
|
+
import { O as Rr } from "./otp-input-BNOTlxq3.js";
|
|
25
25
|
import { i as Or } from "./safe-href-5dbsfbQn.js";
|
|
26
26
|
import { B as zn } from "./badge-BUk4RjTS.js";
|
|
27
27
|
import { I as Rn } from "./icon-button-S8_weU3g.js";
|
|
@@ -4602,4 +4602,4 @@ export {
|
|
|
4602
4602
|
bs as b,
|
|
4603
4603
|
Ro as c
|
|
4604
4604
|
};
|
|
4605
|
-
//# sourceMappingURL=reserved.agent-
|
|
4605
|
+
//# sourceMappingURL=reserved.agent-DOzOBUW7.js.map
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { jsxs as R, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as W, useEffect as h, useMemo as v, useRef as j, useState as nn } from "react";
|
|
3
|
+
import { c as on } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as en } from "react-i18next";
|
|
5
|
+
import { B as rn } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { P as tn } from "./progress-D_g_Sl2g.js";
|
|
7
|
+
import { L as sn } from "./live-region-C41SO3cA.js";
|
|
8
|
+
import { u as an } from "./registry-DvAUVLHh.js";
|
|
9
|
+
import { c as z } from "./createLucideIcon-DhHxpK9K.js";
|
|
10
|
+
import { T as dn } from "./triangle-alert-CBnO6nq_.js";
|
|
11
|
+
/**
|
|
12
|
+
* @license lucide-react v1.22.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
const cn = [
|
|
18
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
19
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
20
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
21
|
+
], ln = z("circle-x", cn);
|
|
22
|
+
/**
|
|
23
|
+
* @license lucide-react v1.22.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/
|
|
28
|
+
const un = [
|
|
29
|
+
["line", { x1: "10", x2: "14", y1: "2", y2: "2", key: "14vaq8" }],
|
|
30
|
+
["line", { x1: "12", x2: "15", y1: "14", y2: "11", key: "17fdiu" }],
|
|
31
|
+
["circle", { cx: "12", cy: "14", r: "8", key: "1e1u0o" }]
|
|
32
|
+
], mn = z("timer", un), fn = {
|
|
33
|
+
id: "session-countdown",
|
|
34
|
+
capabilities: [],
|
|
35
|
+
state: {},
|
|
36
|
+
actions: {},
|
|
37
|
+
domHooks: {
|
|
38
|
+
root: {
|
|
39
|
+
attr: "data-component",
|
|
40
|
+
value: "session-countdown",
|
|
41
|
+
description: 'Marks the element as a kit SessionCountdown banner. The root also emits `data-tone="running" | "warning" | "expired"` (derived from the remaining time). When the session has expired and the host passes onRestart, the only button carries data-action="restart-session"; it only calls the host. The accessible remaining-time announcement is surfaced via the region\'s aria-label and a nested polite live region.'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, b = 1e3, C = 60 * b, wn = 15 * C, pn = 2 * C, gn = on(
|
|
45
|
+
[
|
|
46
|
+
"ds:break-words",
|
|
47
|
+
"ds:flex ds:w-full ds:flex-col",
|
|
48
|
+
"ds:rounded-[var(--radius-md)]",
|
|
49
|
+
"ds:border ds:border-[length:var(--border-width-sm)]"
|
|
50
|
+
].join(" "),
|
|
51
|
+
{
|
|
52
|
+
variants: {
|
|
53
|
+
size: {
|
|
54
|
+
sm: "ds:p-[var(--spacing-sm)] ds:gap-[var(--spacing-xs)]",
|
|
55
|
+
md: "ds:p-[var(--spacing-md)] ds:gap-[var(--spacing-sm)]",
|
|
56
|
+
lg: "ds:p-[var(--spacing-lg)] ds:gap-[var(--spacing-sm)]"
|
|
57
|
+
},
|
|
58
|
+
// Internal-only — derived from remaining time, never surfaced to Controls.
|
|
59
|
+
tone: {
|
|
60
|
+
running: [
|
|
61
|
+
"ds:border-[color:var(--info)]",
|
|
62
|
+
"ds:bg-[color-mix(in_srgb,var(--info)_10%,transparent)]",
|
|
63
|
+
"ds:text-[color:var(--info-foreground)]"
|
|
64
|
+
].join(" "),
|
|
65
|
+
warning: [
|
|
66
|
+
"ds:border-[color:var(--warning)]",
|
|
67
|
+
"ds:bg-[color-mix(in_srgb,var(--warning)_10%,transparent)]",
|
|
68
|
+
"ds:text-[color:var(--warning-foreground)]"
|
|
69
|
+
].join(" "),
|
|
70
|
+
expired: [
|
|
71
|
+
"ds:border-[color:var(--error)]",
|
|
72
|
+
"ds:bg-[color-mix(in_srgb,var(--error)_10%,transparent)]",
|
|
73
|
+
"ds:text-[color:var(--error-foreground)]",
|
|
74
|
+
// The tonal Restart button inherits the error tint via the
|
|
75
|
+
// established Alert child-selector trick — contrast-validated.
|
|
76
|
+
"ds:[&_[data-intent=tonal]]:bg-[color:var(--error-foreground)]",
|
|
77
|
+
"ds:[&_[data-intent=tonal]]:text-[color:var(--background)]"
|
|
78
|
+
].join(" ")
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
defaultVariants: {
|
|
82
|
+
size: "md",
|
|
83
|
+
tone: "running"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
), vn = {
|
|
87
|
+
sm: "ds:size-4",
|
|
88
|
+
md: "ds:size-5",
|
|
89
|
+
lg: "ds:size-6"
|
|
90
|
+
};
|
|
91
|
+
function hn(n, o) {
|
|
92
|
+
return n <= 0 ? "expired" : n <= o ? "warning" : "running";
|
|
93
|
+
}
|
|
94
|
+
function bn(n) {
|
|
95
|
+
return n <= 0 ? 0 : n <= 30 * b ? 10 : n <= 60 * b ? 30 : Math.floor(n / C) * 60;
|
|
96
|
+
}
|
|
97
|
+
function xn(n) {
|
|
98
|
+
return n instanceof Date ? n.getTime() : typeof n == "number" ? n : new Date(n).getTime();
|
|
99
|
+
}
|
|
100
|
+
function yn(n, o, u) {
|
|
101
|
+
const [x, i] = nn(() => Date.now()), m = n !== void 0;
|
|
102
|
+
return h(() => {
|
|
103
|
+
if (m || o === void 0 || (i(Date.now()), o - Date.now() <= 0)) return;
|
|
104
|
+
const c = window.setInterval(
|
|
105
|
+
() => {
|
|
106
|
+
const f = Date.now();
|
|
107
|
+
i(f), o - f <= 0 && window.clearInterval(c);
|
|
108
|
+
},
|
|
109
|
+
Math.max(1, u)
|
|
110
|
+
);
|
|
111
|
+
return () => window.clearInterval(c);
|
|
112
|
+
}, [m, o, u]), m ? Math.max(0, n) : o === void 0 ? 0 : Math.max(0, o - x);
|
|
113
|
+
}
|
|
114
|
+
const Cn = W(
|
|
115
|
+
({
|
|
116
|
+
remainingMs: n,
|
|
117
|
+
expiresAt: o,
|
|
118
|
+
totalMs: u = wn,
|
|
119
|
+
warnAtMs: x = pn,
|
|
120
|
+
size: i = "md",
|
|
121
|
+
showProgress: m = !1,
|
|
122
|
+
onExpire: c,
|
|
123
|
+
onRestart: f,
|
|
124
|
+
restarting: A = !1,
|
|
125
|
+
tickMs: F = 1e3,
|
|
126
|
+
locale: B,
|
|
127
|
+
label: O,
|
|
128
|
+
messages: e,
|
|
129
|
+
restartLabel: $,
|
|
130
|
+
announceWarning: p = !1,
|
|
131
|
+
className: U,
|
|
132
|
+
id: _,
|
|
133
|
+
...q
|
|
134
|
+
}, P) => {
|
|
135
|
+
var I;
|
|
136
|
+
const { t: r, i18n: V } = en("ui"), N = B ?? V.language ?? "en";
|
|
137
|
+
h(() => {
|
|
138
|
+
}, [n, o]);
|
|
139
|
+
const H = v(
|
|
140
|
+
() => n === void 0 && o !== void 0 ? xn(o) : void 0,
|
|
141
|
+
[n, o]
|
|
142
|
+
), l = yn(n, H, F), t = hn(l, x), s = t === "expired", g = j(!1);
|
|
143
|
+
h(() => {
|
|
144
|
+
l <= 0 && !g.current && (g.current = !0, c == null || c()), l > 0 && g.current && (g.current = !1);
|
|
145
|
+
}, [l, c]);
|
|
146
|
+
const y = v(
|
|
147
|
+
() => new Intl.NumberFormat(N, { maximumFractionDigits: 0 }),
|
|
148
|
+
[N]
|
|
149
|
+
), S = Math.ceil(l / b), T = Math.floor(S / 60), k = S % 60, L = T > 0 ? r("sessionCountdown.timeMinutesSeconds", {
|
|
150
|
+
minutes: y.format(T),
|
|
151
|
+
seconds: y.format(k)
|
|
152
|
+
}) : r("sessionCountdown.timeSecondsOnly", {
|
|
153
|
+
seconds: y.format(k)
|
|
154
|
+
}), a = bn(l), w = v(() => a <= 0 ? r("sessionCountdown.expiredAnnouncement") : a < 60 ? r("sessionCountdown.secondsRemaining", { count: a }) : r("sessionCountdown.minutesRemaining", { count: a / 60 }), [a, r]), K = r("sessionCountdown.expiredAnnouncement"), X = O ?? (s ? void 0 : r("sessionCountdown.ariaLabel", { time: w })), Z = gn({
|
|
155
|
+
size: i,
|
|
156
|
+
tone: t,
|
|
157
|
+
className: U
|
|
158
|
+
}), G = s ? "alert" : "timer";
|
|
159
|
+
an(fn, null, _);
|
|
160
|
+
const J = s ? ln : t === "warning" ? dn : mn, Q = Math.min(u, Math.max(0, u - l)), Y = s ? "sessionCountdown.expired" : t === "warning" ? "sessionCountdown.warning" : "sessionCountdown.remainingBanner", M = (s ? e == null ? void 0 : e.expired : t === "warning" ? e == null ? void 0 : e.warning : (I = e == null ? void 0 : e.running) == null ? void 0 : I.call(e, L)) ?? r(Y, { time: L }), D = j(!1);
|
|
161
|
+
h(() => {
|
|
162
|
+
p && (D.current = t === "warning" && a > 0);
|
|
163
|
+
}, [p, t, a]);
|
|
164
|
+
const E = v(() => s ? "" : p ? t === "running" ? "" : D.current ? w : `${M} ${w}` : w, [s, p, t, a, w]);
|
|
165
|
+
return /* @__PURE__ */ R(
|
|
166
|
+
"div",
|
|
167
|
+
{
|
|
168
|
+
ref: P,
|
|
169
|
+
id: _,
|
|
170
|
+
role: G,
|
|
171
|
+
"aria-label": X,
|
|
172
|
+
"data-component": "session-countdown",
|
|
173
|
+
"data-tone": t,
|
|
174
|
+
className: Z,
|
|
175
|
+
...q,
|
|
176
|
+
children: [
|
|
177
|
+
s ? /* @__PURE__ */ d("span", { className: "ds:sr-only", children: K }) : null,
|
|
178
|
+
/* @__PURE__ */ R("div", { className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
179
|
+
/* @__PURE__ */ d("span", { className: `ds:shrink-0 ${vn[i]}`, children: /* @__PURE__ */ d(J, { "aria-hidden": "true", className: "ds:size-full" }) }),
|
|
180
|
+
/* @__PURE__ */ d(
|
|
181
|
+
"p",
|
|
182
|
+
{
|
|
183
|
+
className: [
|
|
184
|
+
"ds:min-w-0 ds:flex-1",
|
|
185
|
+
i === "lg" ? "type-body" : "type-body-sm"
|
|
186
|
+
].join(" "),
|
|
187
|
+
"aria-hidden": "true",
|
|
188
|
+
children: M
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
s && f ? /* @__PURE__ */ d(
|
|
192
|
+
rn,
|
|
193
|
+
{
|
|
194
|
+
type: "button",
|
|
195
|
+
intent: "tonal",
|
|
196
|
+
size: i === "lg" ? "lg" : "md",
|
|
197
|
+
loading: A,
|
|
198
|
+
"data-action": "restart-session",
|
|
199
|
+
onClick: f,
|
|
200
|
+
className: "ds:min-h-[var(--min-target-size)] ds:shrink-0",
|
|
201
|
+
children: $ ?? r("sessionCountdown.restart")
|
|
202
|
+
}
|
|
203
|
+
) : null
|
|
204
|
+
] }),
|
|
205
|
+
m && !s ? (
|
|
206
|
+
// Elapsed fraction flows through the existing Progress API
|
|
207
|
+
// (value/max) — never a hand-rolled inline-width bar. The bar
|
|
208
|
+
// is aria-hidden: the timer region already conveys remaining
|
|
209
|
+
// time, so a second progressbar would double-announce.
|
|
210
|
+
/* @__PURE__ */ d("div", { "aria-hidden": "true", className: "ds:w-full", children: /* @__PURE__ */ d(
|
|
211
|
+
tn,
|
|
212
|
+
{
|
|
213
|
+
value: Q,
|
|
214
|
+
max: u,
|
|
215
|
+
shape: "bar",
|
|
216
|
+
size: i,
|
|
217
|
+
ariaLabel: r("sessionCountdown.progressLabel")
|
|
218
|
+
}
|
|
219
|
+
) })
|
|
220
|
+
) : null,
|
|
221
|
+
/* @__PURE__ */ d(sn, { politeness: "polite", atomic: !0, children: E })
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
Cn.displayName = "SessionCountdown";
|
|
228
|
+
export {
|
|
229
|
+
Cn as S,
|
|
230
|
+
fn as s
|
|
231
|
+
};
|
|
232
|
+
//# sourceMappingURL=session-countdown-DOx1IBUB.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ce, useId as le, useMemo as M, useRef as R, useState as x, useEffect as V, useCallback as l, useImperativeHandle as ue } from "react";
|
|
3
3
|
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as me } from "react-i18next";
|
|
5
|
-
import { P as ge } from "./pdf-viewer-
|
|
5
|
+
import { P as ge } from "./pdf-viewer-TRC5jEm5.js";
|
|
6
6
|
import { S as pe } from "./signature-capture-BJc7kfqi.js";
|
|
7
7
|
import { u as fe } from "./registry-DvAUVLHh.js";
|
|
8
8
|
import { C as Z } from "./circle-check-BN6rz4NV.js";
|
|
@@ -367,4 +367,4 @@ export {
|
|
|
367
367
|
je as S,
|
|
368
368
|
ve as s
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=sign-document-
|
|
370
|
+
//# sourceMappingURL=sign-document-DDZbmYHu.js.map
|