@alfadocs/ui-kit 1.132.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-BSkIYGlW.js +13773 -0
- 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 +514 -1
- package/dist/i18n/locales/ar.js +512 -4
- package/dist/i18n/locales/de.d.ts +514 -1
- package/dist/i18n/locales/de.js +520 -5
- package/dist/i18n/locales/el.d.ts +514 -1
- package/dist/i18n/locales/el.js +515 -5
- package/dist/i18n/locales/en.d.ts +516 -1
- package/dist/i18n/locales/en.js +522 -4
- package/dist/i18n/locales/es.d.ts +514 -1
- package/dist/i18n/locales/es.js +513 -5
- package/dist/i18n/locales/fr.d.ts +514 -1
- package/dist/i18n/locales/fr.js +513 -5
- package/dist/i18n/locales/hi.d.ts +514 -1
- package/dist/i18n/locales/hi.js +513 -5
- package/dist/i18n/locales/it.d.ts +514 -1
- package/dist/i18n/locales/it.js +520 -5
- package/dist/i18n/locales/ja.d.ts +514 -1
- package/dist/i18n/locales/ja.js +513 -5
- package/dist/i18n/locales/nl.d.ts +514 -1
- package/dist/i18n/locales/nl.js +520 -5
- package/dist/i18n/locales/pl.d.ts +514 -1
- package/dist/i18n/locales/pl.js +520 -5
- package/dist/i18n/locales/pt.d.ts +514 -1
- package/dist/i18n/locales/pt.js +520 -5
- package/dist/i18n/locales/ro.d.ts +514 -1
- package/dist/i18n/locales/ro.js +520 -5
- package/dist/i18n/locales/ru.d.ts +514 -1
- package/dist/i18n/locales/ru.js +512 -4
- package/dist/i18n/locales/sq.d.ts +514 -1
- package/dist/i18n/locales/sq.js +513 -5
- package/dist/i18n/locales/sv.d.ts +514 -1
- package/dist/i18n/locales/sv.js +513 -5
- package/dist/i18n/locales/tr.d.ts +514 -1
- package/dist/i18n/locales/tr.js +515 -5
- package/dist/i18n/locales/zh.d.ts +514 -1
- package/dist/i18n/locales/zh.js +513 -5
- package/dist/index.js +1271 -1204
- package/dist/locales/ar.json +516 -3
- package/dist/locales/de.json +517 -4
- package/dist/locales/el.json +517 -4
- package/dist/locales/en.json +516 -3
- package/dist/locales/es.json +517 -4
- package/dist/locales/fr.json +517 -4
- package/dist/locales/hi.json +517 -4
- package/dist/locales/it.json +517 -4
- package/dist/locales/ja.json +517 -4
- package/dist/locales/nl.json +517 -4
- package/dist/locales/pl.json +517 -4
- package/dist/locales/pt.json +517 -4
- package/dist/locales/ro.json +517 -4
- package/dist/locales/ru.json +516 -3
- package/dist/locales/sq.json +517 -4
- package/dist/locales/sv.json +517 -4
- package/dist/locales/tr.json +517 -4
- package/dist/locales/zh.json +517 -4
- package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
- package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
- package/dist/patterns/calendar/calendar.types.d.ts +4 -0
- 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/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
- 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,432 @@
|
|
|
1
|
+
import { jsx as n, jsxs as w, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useId as _, useEffect as $ } from "react";
|
|
3
|
+
import { useTranslation as E, Trans as J } from "react-i18next";
|
|
4
|
+
import { A as f } from "./alert-C4WKViaS.js";
|
|
5
|
+
import { B as K } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { E as Q } from "./email-input-DxwbREpx.js";
|
|
7
|
+
import { F as U } from "./form-field-CyHfOVKF.js";
|
|
8
|
+
import { u as H } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
+
import { P as R, a as T, b as nn, c as G, u as O } from "./patient-card-DTh3QTyS.js";
|
|
10
|
+
import { c as en } from "./createLucideIcon-DhHxpK9K.js";
|
|
11
|
+
import { P as W } from "./pin-entry-BugWQMOS.js";
|
|
12
|
+
import { r as X } from "./pin-indicator-Cb-n40UI.js";
|
|
13
|
+
import { a as tn } from "./format-number-DdzqwMs1.js";
|
|
14
|
+
/**
|
|
15
|
+
* @license lucide-react v1.22.0 - ISC
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the ISC license.
|
|
18
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/
|
|
20
|
+
const an = [
|
|
21
|
+
["path", { d: "M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8", key: "12jkf8" }],
|
|
22
|
+
["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }],
|
|
23
|
+
["path", { d: "m16 19 2 2 4-4", key: "1b14m6" }]
|
|
24
|
+
], ln = en("mail-check", an);
|
|
25
|
+
function Y({
|
|
26
|
+
email: e,
|
|
27
|
+
defaultEmail: p,
|
|
28
|
+
onEmailChange: h,
|
|
29
|
+
onSubmit: m,
|
|
30
|
+
submitting: o,
|
|
31
|
+
error: t,
|
|
32
|
+
errorText: i,
|
|
33
|
+
challenge: a,
|
|
34
|
+
submitLabel: r,
|
|
35
|
+
action: I
|
|
36
|
+
}) {
|
|
37
|
+
const { t: c } = E("ui"), d = x(null), S = _(), [v, u] = H({
|
|
38
|
+
value: e,
|
|
39
|
+
defaultValue: p ?? "",
|
|
40
|
+
onChange: h
|
|
41
|
+
}), C = v ?? "", l = C.trim() === "", s = t !== null && !o;
|
|
42
|
+
return O(t, o, () => {
|
|
43
|
+
var g;
|
|
44
|
+
return (g = d.current) == null ? void 0 : g.focus();
|
|
45
|
+
}), /* @__PURE__ */ w(
|
|
46
|
+
"form",
|
|
47
|
+
{
|
|
48
|
+
noValidate: !0,
|
|
49
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]",
|
|
50
|
+
onSubmit: (g) => {
|
|
51
|
+
g.preventDefault(), !l && !o && m(C.trim());
|
|
52
|
+
},
|
|
53
|
+
children: [
|
|
54
|
+
s && t === "no-account" ? /* @__PURE__ */ n(f, { variant: "error", id: S, children: /* @__PURE__ */ n(f.Description, { children: i ?? c("patientSignIn.email.noAccount") }) }) : null,
|
|
55
|
+
s && t === "slowed" ? /* @__PURE__ */ w(f, { variant: "warning", id: S, children: [
|
|
56
|
+
/* @__PURE__ */ n(f.Title, { as: "h2", children: c("patientSignIn.email.slowedTitle") }),
|
|
57
|
+
/* @__PURE__ */ n(f.Description, { children: i ?? c("patientSignIn.email.slowedBody") })
|
|
58
|
+
] }) : null,
|
|
59
|
+
/* @__PURE__ */ n(U, { label: c("patientSignIn.email.label"), children: /* @__PURE__ */ n(
|
|
60
|
+
Q,
|
|
61
|
+
{
|
|
62
|
+
ref: d,
|
|
63
|
+
autoComplete: "username",
|
|
64
|
+
disableBuiltInValidation: !0,
|
|
65
|
+
errorMessage: null,
|
|
66
|
+
"aria-invalid": t === "no-account" && !o ? !0 : void 0,
|
|
67
|
+
"aria-describedby": s ? S : void 0,
|
|
68
|
+
value: C,
|
|
69
|
+
onChange: (g) => u(g.target.value),
|
|
70
|
+
"data-field": "email"
|
|
71
|
+
}
|
|
72
|
+
) }),
|
|
73
|
+
a,
|
|
74
|
+
/* @__PURE__ */ n(
|
|
75
|
+
K,
|
|
76
|
+
{
|
|
77
|
+
type: "submit",
|
|
78
|
+
intent: "primary",
|
|
79
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
80
|
+
"data-action": I,
|
|
81
|
+
disabled: l,
|
|
82
|
+
loading: o,
|
|
83
|
+
children: r
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function Sn({
|
|
91
|
+
email: e,
|
|
92
|
+
defaultEmail: p,
|
|
93
|
+
onEmailChange: h,
|
|
94
|
+
onSubmit: m,
|
|
95
|
+
submitting: o = !1,
|
|
96
|
+
error: t = null,
|
|
97
|
+
errorText: i,
|
|
98
|
+
challenge: a,
|
|
99
|
+
languageSlot: r,
|
|
100
|
+
passkeySlot: I,
|
|
101
|
+
title: c,
|
|
102
|
+
description: d,
|
|
103
|
+
focusOnMount: S = !1,
|
|
104
|
+
className: v
|
|
105
|
+
}) {
|
|
106
|
+
const { t: u } = E("ui");
|
|
107
|
+
return /* @__PURE__ */ n(
|
|
108
|
+
R,
|
|
109
|
+
{
|
|
110
|
+
component: "patient-sign-in-email",
|
|
111
|
+
className: v,
|
|
112
|
+
title: c ?? u("patientSignIn.email.title"),
|
|
113
|
+
description: d ?? u("patientSignIn.email.intro"),
|
|
114
|
+
headerAction: r ? /* @__PURE__ */ n("div", { role: "group", "aria-label": u("patientSignIn.email.languageLabel"), children: r }) : void 0,
|
|
115
|
+
focusOnMount: S,
|
|
116
|
+
footer: /* @__PURE__ */ w("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
117
|
+
/* @__PURE__ */ n(G, { children: u("patientSignIn.email.twoChecks") }),
|
|
118
|
+
/* @__PURE__ */ n(G, { children: u("patientSignIn.email.passkeyNote") }),
|
|
119
|
+
I
|
|
120
|
+
] }),
|
|
121
|
+
children: /* @__PURE__ */ n(
|
|
122
|
+
Y,
|
|
123
|
+
{
|
|
124
|
+
email: e,
|
|
125
|
+
defaultEmail: p,
|
|
126
|
+
onEmailChange: h,
|
|
127
|
+
onSubmit: m,
|
|
128
|
+
submitting: o,
|
|
129
|
+
error: t,
|
|
130
|
+
errorText: i,
|
|
131
|
+
challenge: a,
|
|
132
|
+
submitLabel: u("patientSignIn.email.submit"),
|
|
133
|
+
action: "sign-in-email"
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function vn({
|
|
140
|
+
email: e,
|
|
141
|
+
defaultEmail: p,
|
|
142
|
+
onEmailChange: h,
|
|
143
|
+
onSubmit: m,
|
|
144
|
+
submitting: o = !1,
|
|
145
|
+
error: t = null,
|
|
146
|
+
errorText: i,
|
|
147
|
+
challenge: a,
|
|
148
|
+
onBack: r,
|
|
149
|
+
focusOnMount: I = !1,
|
|
150
|
+
className: c
|
|
151
|
+
}) {
|
|
152
|
+
const { t: d } = E("ui");
|
|
153
|
+
return /* @__PURE__ */ n(
|
|
154
|
+
R,
|
|
155
|
+
{
|
|
156
|
+
component: "patient-forgot-pin",
|
|
157
|
+
className: c,
|
|
158
|
+
title: d("patientSignIn.forgot.title"),
|
|
159
|
+
description: d("patientSignIn.forgot.body"),
|
|
160
|
+
focusOnMount: I,
|
|
161
|
+
footer: r ? /* @__PURE__ */ n(T, { action: "back", onClick: r, children: d("patientSignIn.forgot.back") }) : void 0,
|
|
162
|
+
children: /* @__PURE__ */ n(
|
|
163
|
+
Y,
|
|
164
|
+
{
|
|
165
|
+
email: e,
|
|
166
|
+
defaultEmail: p,
|
|
167
|
+
onEmailChange: h,
|
|
168
|
+
onSubmit: m,
|
|
169
|
+
submitting: o,
|
|
170
|
+
error: t,
|
|
171
|
+
errorText: i,
|
|
172
|
+
challenge: a,
|
|
173
|
+
submitLabel: d("patientSignIn.forgot.send"),
|
|
174
|
+
action: "send-link"
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
function yn({
|
|
181
|
+
email: e,
|
|
182
|
+
onBack: p,
|
|
183
|
+
focusOnMount: h = !1,
|
|
184
|
+
privacy: m = !1,
|
|
185
|
+
className: o
|
|
186
|
+
}) {
|
|
187
|
+
const { t } = E("ui");
|
|
188
|
+
return /* @__PURE__ */ n(
|
|
189
|
+
nn,
|
|
190
|
+
{
|
|
191
|
+
component: "patient-forgot-pin-sent",
|
|
192
|
+
className: o,
|
|
193
|
+
focusOnMount: h,
|
|
194
|
+
privacy: m,
|
|
195
|
+
icon: /* @__PURE__ */ n(ln, {}),
|
|
196
|
+
title: t("patientSignIn.forgot.sentTitle"),
|
|
197
|
+
body: m ? t("patientSignIn.forgot.sentBodyPrivate") : (
|
|
198
|
+
// A bdi element, so an address that starts with digits keeps its
|
|
199
|
+
// order in right-to-left text. No invisible marks (R23).
|
|
200
|
+
/* @__PURE__ */ n(
|
|
201
|
+
J,
|
|
202
|
+
{
|
|
203
|
+
t,
|
|
204
|
+
ns: "ui",
|
|
205
|
+
i18nKey: "patientSignIn.forgot.sentBody",
|
|
206
|
+
values: { email: e },
|
|
207
|
+
components: { email: /* @__PURE__ */ n("bdi", { dir: "ltr" }) }
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
),
|
|
211
|
+
action: p ? { label: t("patientSignIn.forgot.back"), onClick: p } : void 0
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
function Pn({
|
|
216
|
+
email: e,
|
|
217
|
+
value: p,
|
|
218
|
+
defaultValue: h,
|
|
219
|
+
onValueChange: m,
|
|
220
|
+
length: o,
|
|
221
|
+
onSubmit: t,
|
|
222
|
+
submitting: i = !1,
|
|
223
|
+
error: a = null,
|
|
224
|
+
errorText: r,
|
|
225
|
+
onForgot: I,
|
|
226
|
+
onChangeEmail: c,
|
|
227
|
+
footer: d,
|
|
228
|
+
focusOnMount: S = !1,
|
|
229
|
+
privacy: v = !1,
|
|
230
|
+
maskClassName: u,
|
|
231
|
+
className: C
|
|
232
|
+
}) {
|
|
233
|
+
const { t: l } = E("ui"), s = X(o), g = x(null), B = x(null), D = x(null), N = _(), [F, M] = H({
|
|
234
|
+
value: p,
|
|
235
|
+
defaultValue: h ?? "",
|
|
236
|
+
onChange: m
|
|
237
|
+
}), L = F ?? "", y = a === "paused", k = L.length === s, V = a !== null && !i;
|
|
238
|
+
return O(a, i, () => {
|
|
239
|
+
var P, b, j;
|
|
240
|
+
a === "wrong" && ((P = g.current) == null || P.clear(), (b = g.current) == null || b.focus()), a === "paused" && ((j = B.current) == null || j.focus());
|
|
241
|
+
}), /* @__PURE__ */ n(
|
|
242
|
+
R,
|
|
243
|
+
{
|
|
244
|
+
component: "patient-sign-in-pin",
|
|
245
|
+
className: C,
|
|
246
|
+
title: l("patientSignIn.pin.title"),
|
|
247
|
+
description: v ? l("patientSignIn.pin.introPrivate") : /* @__PURE__ */ n(
|
|
248
|
+
J,
|
|
249
|
+
{
|
|
250
|
+
t: l,
|
|
251
|
+
ns: "ui",
|
|
252
|
+
i18nKey: "patientSignIn.pin.intro",
|
|
253
|
+
values: { email: e },
|
|
254
|
+
components: { email: /* @__PURE__ */ n("bdi", { dir: "ltr" }) }
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
focusOnMount: S,
|
|
258
|
+
privacy: v,
|
|
259
|
+
footer: d,
|
|
260
|
+
children: /* @__PURE__ */ w(
|
|
261
|
+
"form",
|
|
262
|
+
{
|
|
263
|
+
noValidate: !0,
|
|
264
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]",
|
|
265
|
+
onSubmit: (P) => {
|
|
266
|
+
var b;
|
|
267
|
+
P.preventDefault(), k && !y && !i && ((b = D.current) == null || b.focus(), t(L));
|
|
268
|
+
},
|
|
269
|
+
children: [
|
|
270
|
+
V && a === "wrong" ? /* @__PURE__ */ n(f, { variant: "error", id: N, children: /* @__PURE__ */ n(f.Description, { children: r ?? l("patientSignIn.pin.wrong") }) }) : null,
|
|
271
|
+
V && y ? /* @__PURE__ */ w(f, { variant: "warning", id: N, children: [
|
|
272
|
+
/* @__PURE__ */ n(f.Title, { as: "h2", children: l("patientSignIn.pin.pausedTitle") }),
|
|
273
|
+
/* @__PURE__ */ n(f.Description, { children: r ?? l("patientSignIn.pin.pausedBody") })
|
|
274
|
+
] }) : null,
|
|
275
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:justify-center", children: /* @__PURE__ */ n(
|
|
276
|
+
W,
|
|
277
|
+
{
|
|
278
|
+
ref: g,
|
|
279
|
+
length: s,
|
|
280
|
+
label: l("patientSignIn.pin.label"),
|
|
281
|
+
hideLabel: !0,
|
|
282
|
+
value: L,
|
|
283
|
+
onChange: M,
|
|
284
|
+
error: a === "wrong" && L.length === 0,
|
|
285
|
+
disabled: y || i,
|
|
286
|
+
autoComplete: "current-password",
|
|
287
|
+
"aria-describedby": V ? N : void 0,
|
|
288
|
+
maskClassName: u
|
|
289
|
+
}
|
|
290
|
+
) }),
|
|
291
|
+
y ? /* @__PURE__ */ n(
|
|
292
|
+
K,
|
|
293
|
+
{
|
|
294
|
+
ref: B,
|
|
295
|
+
type: "button",
|
|
296
|
+
intent: "primary",
|
|
297
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
298
|
+
"data-action": "paused-reset",
|
|
299
|
+
onClick: I,
|
|
300
|
+
children: l("patientSignIn.pin.pausedReset")
|
|
301
|
+
}
|
|
302
|
+
) : /* @__PURE__ */ n(
|
|
303
|
+
K,
|
|
304
|
+
{
|
|
305
|
+
ref: D,
|
|
306
|
+
type: "submit",
|
|
307
|
+
intent: "primary",
|
|
308
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
309
|
+
"data-action": "sign-in-submit",
|
|
310
|
+
disabled: !k,
|
|
311
|
+
loading: i,
|
|
312
|
+
children: l("patientSignIn.pin.submit")
|
|
313
|
+
}
|
|
314
|
+
),
|
|
315
|
+
/* @__PURE__ */ w("div", { className: "ds:flex ds:flex-wrap ds:justify-center ds:gap-x-[var(--spacing-lg)] ds:gap-y-[var(--spacing-sm)]", children: [
|
|
316
|
+
y ? null : /* @__PURE__ */ n(T, { action: "forgot-pin", onClick: I, children: l("patientSignIn.pin.forgot") }),
|
|
317
|
+
c ? /* @__PURE__ */ n(T, { action: "change-email", onClick: c, children: l("patientSignIn.pin.changeEmail") }) : null
|
|
318
|
+
] })
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
)
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
function wn({
|
|
326
|
+
phase: e,
|
|
327
|
+
value: p,
|
|
328
|
+
defaultValue: h,
|
|
329
|
+
onValueChange: m,
|
|
330
|
+
length: o,
|
|
331
|
+
onSubmit: t,
|
|
332
|
+
submitting: i = !1,
|
|
333
|
+
error: a = null,
|
|
334
|
+
errorText: r,
|
|
335
|
+
note: I,
|
|
336
|
+
email: c = null,
|
|
337
|
+
step: d,
|
|
338
|
+
headingLevel: S = 1,
|
|
339
|
+
focusOnMount: v = !1,
|
|
340
|
+
privacy: u = !1,
|
|
341
|
+
maskClassName: C,
|
|
342
|
+
className: l
|
|
343
|
+
}) {
|
|
344
|
+
const { t: s, i18n: g } = E("ui"), B = X(o), D = tn(B, g.language), N = x(null), F = x(null), M = _(), [L, y] = H({
|
|
345
|
+
value: p,
|
|
346
|
+
defaultValue: h ?? "",
|
|
347
|
+
onChange: m
|
|
348
|
+
}), k = L ?? "", V = k.length === B, P = e === "choose", b = (r == null ? void 0 : r.trim()) || (a === "mobile" ? s("patientSignIn.setPin.reason.mobile") : void 0), j = !!b && !i, q = x(e);
|
|
349
|
+
return $(() => {
|
|
350
|
+
q.current !== e && (q.current = e, y(""));
|
|
351
|
+
}, [e]), O(b ? a ?? r : null, i, () => {
|
|
352
|
+
var z, A;
|
|
353
|
+
(z = N.current) == null || z.clear(), (A = N.current) == null || A.focus();
|
|
354
|
+
}), /* @__PURE__ */ n(
|
|
355
|
+
R,
|
|
356
|
+
{
|
|
357
|
+
component: "patient-set-pin",
|
|
358
|
+
className: l,
|
|
359
|
+
headingLevel: S,
|
|
360
|
+
eyebrow: d,
|
|
361
|
+
title: s(P ? "patientSignIn.setPin.title" : "patientSignIn.setPin.confirmTitle"),
|
|
362
|
+
description: /* @__PURE__ */ w(Z, { children: [
|
|
363
|
+
P ? s("patientSignIn.setPin.body", { length: D }) : s("patientSignIn.setPin.confirmBody", { length: D }),
|
|
364
|
+
I ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-xs)]", children: I }) : null
|
|
365
|
+
] }),
|
|
366
|
+
focusOnMount: v,
|
|
367
|
+
focusKey: e,
|
|
368
|
+
privacy: u,
|
|
369
|
+
children: /* @__PURE__ */ w(
|
|
370
|
+
"form",
|
|
371
|
+
{
|
|
372
|
+
noValidate: !0,
|
|
373
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
374
|
+
onSubmit: (z) => {
|
|
375
|
+
var A;
|
|
376
|
+
z.preventDefault(), V && !i && ((A = F.current) == null || A.focus(), t(k, e));
|
|
377
|
+
},
|
|
378
|
+
children: [
|
|
379
|
+
j ? /* @__PURE__ */ n(f, { variant: "error", id: M, children: /* @__PURE__ */ n(f.Description, { children: b }) }) : null,
|
|
380
|
+
c && !u ? /* @__PURE__ */ n(U, { label: s("patientSignIn.setPin.usernameLabel"), children: /* @__PURE__ */ n(
|
|
381
|
+
Q,
|
|
382
|
+
{
|
|
383
|
+
readOnly: !0,
|
|
384
|
+
disableBuiltInValidation: !0,
|
|
385
|
+
errorMessage: null,
|
|
386
|
+
autoComplete: "username",
|
|
387
|
+
value: c
|
|
388
|
+
}
|
|
389
|
+
) }) : null,
|
|
390
|
+
/* @__PURE__ */ n("div", { className: "ds:flex ds:justify-center", children: /* @__PURE__ */ n(
|
|
391
|
+
W,
|
|
392
|
+
{
|
|
393
|
+
ref: N,
|
|
394
|
+
length: B,
|
|
395
|
+
label: s(P ? "patientSignIn.setPin.newLabel" : "patientSignIn.setPin.confirmLabel"),
|
|
396
|
+
autoComplete: "new-password",
|
|
397
|
+
"aria-describedby": j ? M : void 0,
|
|
398
|
+
value: k,
|
|
399
|
+
onChange: y,
|
|
400
|
+
error: !!b && k.length === 0,
|
|
401
|
+
disabled: i,
|
|
402
|
+
maskClassName: C
|
|
403
|
+
},
|
|
404
|
+
e
|
|
405
|
+
) }),
|
|
406
|
+
/* @__PURE__ */ n(
|
|
407
|
+
K,
|
|
408
|
+
{
|
|
409
|
+
ref: F,
|
|
410
|
+
type: "submit",
|
|
411
|
+
intent: "primary",
|
|
412
|
+
className: "ds:min-h-[var(--min-target-size)] ds:w-full",
|
|
413
|
+
"data-action": "set-pin-continue",
|
|
414
|
+
disabled: !V,
|
|
415
|
+
loading: i,
|
|
416
|
+
children: s("patientSignIn.setPin.submit")
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
]
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
export {
|
|
426
|
+
vn as P,
|
|
427
|
+
yn as a,
|
|
428
|
+
wn as b,
|
|
429
|
+
Sn as c,
|
|
430
|
+
Pn as d
|
|
431
|
+
};
|
|
432
|
+
//# sourceMappingURL=patient-sign-in-pin-CDBqV254.js.map
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { jsx as n, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as l } from "react-i18next";
|
|
3
|
+
import { A as m } from "./alert-C4WKViaS.js";
|
|
4
|
+
import { B as y } from "./button-DohK_Ak_.js";
|
|
5
|
+
import { S as k } from "./session-countdown-DOx1IBUB.js";
|
|
6
|
+
import { S as v } from "./sms-code-entry-Dgp4GwlM.js";
|
|
7
|
+
import { a as u } from "./format-number-DdzqwMs1.js";
|
|
8
|
+
import { b as p, P as M, a as P } from "./patient-card-DTh3QTyS.js";
|
|
9
|
+
import { c as f } from "./createLucideIcon-DhHxpK9K.js";
|
|
10
|
+
import { S as x } from "./shield-check-DCJALLVh.js";
|
|
11
|
+
import { L as b } from "./log-out-oDS6zO5d.js";
|
|
12
|
+
/**
|
|
13
|
+
* @license lucide-react v1.22.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
const C = [
|
|
19
|
+
[
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",
|
|
23
|
+
key: "1wngk7"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
["path", { d: "M22 2 2 22", key: "y4kqgn" }],
|
|
27
|
+
[
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
d: "M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",
|
|
31
|
+
key: "10hv5p"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
], O = f("phone-off", C);
|
|
35
|
+
/**
|
|
36
|
+
* @license lucide-react v1.22.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
const w = [
|
|
42
|
+
["path", { d: "M10 2h4", key: "n1abiw" }],
|
|
43
|
+
["path", { d: "M4.6 11a8 8 0 0 0 1.7 8.7 8 8 0 0 0 8.7 1.7", key: "10he05" }],
|
|
44
|
+
["path", { d: "M7.4 7.4a8 8 0 0 1 10.3 1 8 8 0 0 1 .9 10.2", key: "15f7sh" }],
|
|
45
|
+
["path", { d: "m2 2 20 20", key: "1ooewy" }],
|
|
46
|
+
["path", { d: "M12 12v-2", key: "fwoke6" }]
|
|
47
|
+
], A = f("timer-off", w);
|
|
48
|
+
function H({
|
|
49
|
+
title: t,
|
|
50
|
+
description: i,
|
|
51
|
+
onBack: o,
|
|
52
|
+
headingLevel: a = 1,
|
|
53
|
+
focusOnMount: e = !1,
|
|
54
|
+
className: d,
|
|
55
|
+
...r
|
|
56
|
+
}) {
|
|
57
|
+
const { t: s } = l("ui");
|
|
58
|
+
return /* @__PURE__ */ n(
|
|
59
|
+
M,
|
|
60
|
+
{
|
|
61
|
+
component: "patient-sign-in-code",
|
|
62
|
+
className: d,
|
|
63
|
+
headingLevel: a,
|
|
64
|
+
title: t ?? s("patientSignIn.code.title"),
|
|
65
|
+
description: i,
|
|
66
|
+
focusOnMount: e,
|
|
67
|
+
privacy: r.privacy,
|
|
68
|
+
footer: o ? /* @__PURE__ */ n(P, { action: "back", onClick: o, children: s("patientSignIn.code.back") }) : void 0,
|
|
69
|
+
children: /* @__PURE__ */ n(v, { ...r })
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
function $({
|
|
74
|
+
context: t,
|
|
75
|
+
onBack: i,
|
|
76
|
+
focusOnMount: o = !1,
|
|
77
|
+
className: a
|
|
78
|
+
}) {
|
|
79
|
+
const { t: e } = l("ui");
|
|
80
|
+
return /* @__PURE__ */ n(
|
|
81
|
+
p,
|
|
82
|
+
{
|
|
83
|
+
component: "patient-no-mobile",
|
|
84
|
+
className: a,
|
|
85
|
+
focusOnMount: o,
|
|
86
|
+
icon: /* @__PURE__ */ n(O, {}),
|
|
87
|
+
title: e("patientSignIn.noMobile.title"),
|
|
88
|
+
body: e(t === "reset" ? "patientSignIn.noMobile.resetBody" : "patientSignIn.noMobile.body"),
|
|
89
|
+
action: i ? { label: e("patientSignIn.noMobile.back"), onClick: i } : void 0
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function F({
|
|
94
|
+
onContinue: t,
|
|
95
|
+
noticeSent: i = !0,
|
|
96
|
+
focusOnMount: o = !1,
|
|
97
|
+
className: a
|
|
98
|
+
}) {
|
|
99
|
+
const { t: e } = l("ui");
|
|
100
|
+
return /* @__PURE__ */ n(
|
|
101
|
+
p,
|
|
102
|
+
{
|
|
103
|
+
component: "patient-pin-changed",
|
|
104
|
+
className: a,
|
|
105
|
+
focusOnMount: o,
|
|
106
|
+
icon: /* @__PURE__ */ n(x, {}),
|
|
107
|
+
title: e("patientSignIn.forgot.doneTitle"),
|
|
108
|
+
body: e("patientSignIn.forgot.doneBody"),
|
|
109
|
+
action: t ? { label: e("patientSignIn.forgot.back"), onClick: t } : void 0,
|
|
110
|
+
below: i ? /* @__PURE__ */ n(m, { variant: "info", announce: "polite", children: /* @__PURE__ */ n(m.Description, { children: e("patientSignIn.forgot.notice") }) }) : void 0
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function G({
|
|
115
|
+
remainingMs: t,
|
|
116
|
+
totalMs: i,
|
|
117
|
+
warnAtMs: o,
|
|
118
|
+
label: a,
|
|
119
|
+
onSignOut: e,
|
|
120
|
+
signOutLabel: d,
|
|
121
|
+
onExpire: r,
|
|
122
|
+
onRestart: s,
|
|
123
|
+
restartLabel: g,
|
|
124
|
+
className: S
|
|
125
|
+
}) {
|
|
126
|
+
const { t: c } = l("ui");
|
|
127
|
+
return /* @__PURE__ */ I(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
"data-component": "patient-session-bar",
|
|
131
|
+
className: [
|
|
132
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
133
|
+
S
|
|
134
|
+
].filter(Boolean).join(" "),
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ n("div", { className: "ds:min-w-0 ds:flex-1 ds:basis-[16rem] ds:[&_button]:min-h-[var(--min-target-size)]", children: /* @__PURE__ */ n(
|
|
137
|
+
k,
|
|
138
|
+
{
|
|
139
|
+
remainingMs: t,
|
|
140
|
+
totalMs: i,
|
|
141
|
+
warnAtMs: o,
|
|
142
|
+
label: a,
|
|
143
|
+
messages: {
|
|
144
|
+
running: (h) => c("patientSignIn.session.bannerLabel", { time: h }),
|
|
145
|
+
warning: c("patientSignIn.session.bannerWarning"),
|
|
146
|
+
expired: c("patientSignIn.session.bannerExpired")
|
|
147
|
+
},
|
|
148
|
+
restartLabel: g ?? c("patientSignIn.session.signInAgain"),
|
|
149
|
+
announceWarning: !0,
|
|
150
|
+
onExpire: r,
|
|
151
|
+
onRestart: s
|
|
152
|
+
}
|
|
153
|
+
) }),
|
|
154
|
+
/* @__PURE__ */ n(
|
|
155
|
+
y,
|
|
156
|
+
{
|
|
157
|
+
type: "button",
|
|
158
|
+
intent: "outline",
|
|
159
|
+
className: "ds:min-h-[var(--min-target-size)]",
|
|
160
|
+
startIcon: /* @__PURE__ */ n(b, { "aria-hidden": "true" }),
|
|
161
|
+
"data-action": "sign-out",
|
|
162
|
+
onClick: e,
|
|
163
|
+
children: d ?? c("patientSignIn.session.signOut")
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function J(t) {
|
|
171
|
+
const { t: i, i18n: o } = l("ui"), { actionLabel: a, onSignIn: e, focusOnMount: d = !1, className: r } = t, s = t.reason === "signed-out", g = t.reason === "signed-out" ? i("patientSignIn.session.signedOutBody") : t.reason === "timed-out" ? i("patientSignIn.session.timedOutBody", {
|
|
172
|
+
minutes: u(t.idleMinutes, o.language)
|
|
173
|
+
}) : i("patientSignIn.session.maxAgeBody", {
|
|
174
|
+
hours: u(t.maxAgeHours, o.language)
|
|
175
|
+
});
|
|
176
|
+
return /* @__PURE__ */ n(
|
|
177
|
+
p,
|
|
178
|
+
{
|
|
179
|
+
component: "patient-session-ended",
|
|
180
|
+
className: r,
|
|
181
|
+
focusOnMount: d,
|
|
182
|
+
icon: s ? /* @__PURE__ */ n(b, {}) : /* @__PURE__ */ n(A, {}),
|
|
183
|
+
title: i(s ? "patientSignIn.session.signedOutTitle" : "patientSignIn.session.timedOutTitle"),
|
|
184
|
+
body: g,
|
|
185
|
+
action: {
|
|
186
|
+
label: a ?? i("patientSignIn.session.signInAgain"),
|
|
187
|
+
onClick: e
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
export {
|
|
193
|
+
$ as P,
|
|
194
|
+
F as a,
|
|
195
|
+
G as b,
|
|
196
|
+
J as c,
|
|
197
|
+
H as d
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=patient-sign-in-steps-C2JSqlok.js.map
|
|
@@ -13,7 +13,7 @@ import { T as oe } from "./tag-BNlcEJfE.js";
|
|
|
13
13
|
import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
|
|
14
14
|
import { T as je } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { H as G } from "./hover-card-CuRIA4wN.js";
|
|
16
|
-
import { i as de } from "./is-safe-url-
|
|
16
|
+
import { i as de } from "./is-safe-url-CEy9CEml.js";
|
|
17
17
|
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-a5d4QijH.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
@@ -548,4 +548,4 @@ export {
|
|
|
548
548
|
Ca as P,
|
|
549
549
|
ma as p
|
|
550
550
|
};
|
|
551
|
-
//# sourceMappingURL=patient-summary-card-
|
|
551
|
+
//# sourceMappingURL=patient-summary-card-Bl2NknPe.js.map
|
|
@@ -14,13 +14,13 @@ import { R as re } from "./receipt-euro-B1cLM_TN.js";
|
|
|
14
14
|
import { F as J } from "./file-text-5yv6r2ls.js";
|
|
15
15
|
import { U as ne } from "./user-B12p7bVF.js";
|
|
16
16
|
import { U as ie } from "./user-cog-BTn98Arm.js";
|
|
17
|
-
import { e as Q } from "./entity-card-
|
|
17
|
+
import { e as Q } from "./entity-card-p-LANpYt.js";
|
|
18
18
|
import { A as le } from "./arrow-down-left-DECv-dJt.js";
|
|
19
19
|
import { A as de } from "./arrow-up-right-C2v_MKsK.js";
|
|
20
20
|
import { L as oe } from "./link-CeV7FoI6.js";
|
|
21
|
+
import { i as se } from "./is-safe-url-CEy9CEml.js";
|
|
21
22
|
import { C as $ } from "./credit-card-D9XZsHGA.js";
|
|
22
|
-
import { C as
|
|
23
|
-
import { i as ce } from "./is-safe-url-DkETxeHz.js";
|
|
23
|
+
import { C as ce } from "./calendar-clock-hbObjfGY.js";
|
|
24
24
|
const me = {
|
|
25
25
|
id: "payment-card",
|
|
26
26
|
capabilities: [],
|
|
@@ -363,7 +363,7 @@ const Te = B(
|
|
|
363
363
|
);
|
|
364
364
|
const o = h(`paymentRequestCard.status.${n}`, {
|
|
365
365
|
defaultValue: xe[n]
|
|
366
|
-
}), E = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", U = (n === "new" || n === "authorization_requested" || n === "authorized") && !!f &&
|
|
366
|
+
}), E = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", U = (n === "new" || n === "authorization_requested" || n === "authorized") && !!f && se(f), g = [];
|
|
367
367
|
g.push({
|
|
368
368
|
key: "status",
|
|
369
369
|
icon: /* @__PURE__ */ e($, { "aria-hidden": "true" }),
|
|
@@ -371,7 +371,7 @@ const Te = B(
|
|
|
371
371
|
value: /* @__PURE__ */ e(O, { variant: Ne[n], children: o })
|
|
372
372
|
}), v && g.push({
|
|
373
373
|
key: "dueDate",
|
|
374
|
-
icon: /* @__PURE__ */ e(
|
|
374
|
+
icon: /* @__PURE__ */ e(ce, { "aria-hidden": "true" }),
|
|
375
375
|
label: h("paymentRequestCard.label.dueDate", "Due date"),
|
|
376
376
|
value: Re(v, t)
|
|
377
377
|
}), m && g.push({
|
|
@@ -440,4 +440,4 @@ export {
|
|
|
440
440
|
Ce as b,
|
|
441
441
|
me as p
|
|
442
442
|
};
|
|
443
|
-
//# sourceMappingURL=payment-request-card-
|
|
443
|
+
//# sourceMappingURL=payment-request-card-CNW00DCx.js.map
|