@alfadocs/ui-kit 1.133.0 → 1.135.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/ai-summary-panel-B70S2lgC.js +455 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
- package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
- package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
- package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/appointment-tray-B3gSHL1j.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-I5PfWudy.js} +15 -15
- 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/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
- 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/communications-panel-BKPHCiMB.js +973 -0
- 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/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
- 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/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -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/megaphone-CzeTT9B3.js +22 -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-BvjAo4RQ.js} +6 -5
- 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-B2XbN_Fe.js +546 -0
- package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
- package/dist/_chunks/patient-check-in-resume-B7NY-6KI.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-DCIiGkHA.js +478 -0
- package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
- package/dist/_chunks/portal-parts-Br8wuala.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-BdhbkPKO.js +1355 -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-DvwqPfFR.js} +40 -39
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
- package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
- 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/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +933 -324
- package/dist/agent-i18n/en.json +103 -18
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +3 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/agenda-card/index.js +2 -2
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- 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/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +136 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/document-preview/document-preview.d.ts +61 -7
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +8 -0
- package/dist/components/entity-summary/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 +14 -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/tasks-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- 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 +18 -3
- package/dist/i18n/locales/ar.d.ts +605 -1
- package/dist/i18n/locales/ar.js +603 -3
- package/dist/i18n/locales/de.d.ts +605 -1
- package/dist/i18n/locales/de.js +611 -4
- package/dist/i18n/locales/el.d.ts +605 -1
- package/dist/i18n/locales/el.js +606 -4
- package/dist/i18n/locales/en.d.ts +607 -1
- package/dist/i18n/locales/en.js +614 -4
- package/dist/i18n/locales/es.d.ts +605 -1
- package/dist/i18n/locales/es.js +604 -4
- package/dist/i18n/locales/fr.d.ts +605 -1
- package/dist/i18n/locales/fr.js +604 -4
- package/dist/i18n/locales/hi.d.ts +605 -1
- package/dist/i18n/locales/hi.js +604 -4
- package/dist/i18n/locales/it.d.ts +605 -1
- package/dist/i18n/locales/it.js +611 -4
- package/dist/i18n/locales/ja.d.ts +605 -1
- package/dist/i18n/locales/ja.js +604 -4
- package/dist/i18n/locales/nl.d.ts +605 -1
- package/dist/i18n/locales/nl.js +611 -4
- package/dist/i18n/locales/pl.d.ts +605 -1
- package/dist/i18n/locales/pl.js +611 -4
- package/dist/i18n/locales/pt.d.ts +605 -1
- package/dist/i18n/locales/pt.js +611 -4
- package/dist/i18n/locales/ro.d.ts +605 -1
- package/dist/i18n/locales/ro.js +611 -4
- package/dist/i18n/locales/ru.d.ts +605 -1
- package/dist/i18n/locales/ru.js +603 -3
- package/dist/i18n/locales/sq.d.ts +605 -1
- package/dist/i18n/locales/sq.js +604 -4
- package/dist/i18n/locales/sv.d.ts +605 -1
- package/dist/i18n/locales/sv.js +604 -4
- package/dist/i18n/locales/tr.d.ts +605 -1
- package/dist/i18n/locales/tr.js +606 -4
- package/dist/i18n/locales/zh.d.ts +605 -1
- package/dist/i18n/locales/zh.js +604 -4
- package/dist/index.js +1305 -1231
- package/dist/locales/ar.json +606 -2
- package/dist/locales/de.json +607 -3
- package/dist/locales/el.json +607 -3
- package/dist/locales/en.json +607 -3
- package/dist/locales/es.json +607 -3
- package/dist/locales/fr.json +607 -3
- package/dist/locales/hi.json +607 -3
- package/dist/locales/it.json +607 -3
- package/dist/locales/ja.json +607 -3
- package/dist/locales/nl.json +607 -3
- package/dist/locales/pl.json +607 -3
- package/dist/locales/pt.json +607 -3
- package/dist/locales/ro.json +607 -3
- package/dist/locales/ru.json +606 -2
- package/dist/locales/sq.json +607 -3
- package/dist/locales/sv.json +607 -3
- package/dist/locales/tr.json +607 -3
- package/dist/locales/zh.json +607 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -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 +26 -0
- package/dist/patterns/signing/index.js +16 -0
- package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
- package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-chrome.d.ts +30 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +104 -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 +57 -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/handled-rejection-6gqCf5vt.js +0 -13
- 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
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as D, useId as C, useRef as f, useImperativeHandle as _, useMemo as $ } from "react";
|
|
3
|
+
import { useTranslation as q } from "react-i18next";
|
|
4
4
|
import { A as I } from "./alert-C4WKViaS.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import { B as
|
|
7
|
-
import { I as
|
|
8
|
-
import { C } from "./card-n6W6LW-N.js";
|
|
9
|
-
import { L as
|
|
10
|
-
import { P as
|
|
11
|
-
import { T as
|
|
12
|
-
import { u as
|
|
13
|
-
import { C as
|
|
14
|
-
import { R as
|
|
15
|
-
import { X as
|
|
16
|
-
import { C as
|
|
17
|
-
const
|
|
5
|
+
import { A as H } from "./avatar-Dp5apm1d.js";
|
|
6
|
+
import { B as O } from "./button-DohK_Ak_.js";
|
|
7
|
+
import { I as F } from "./icon-button-S8_weU3g.js";
|
|
8
|
+
import { C as E } from "./card-n6W6LW-N.js";
|
|
9
|
+
import { L as G } from "./link-CeV7FoI6.js";
|
|
10
|
+
import { P as W } from "./panel-header-CbtlTe85.js";
|
|
11
|
+
import { T as X } from "./timestamp-DPLDWdxA.js";
|
|
12
|
+
import { u as J } from "./registry-DvAUVLHh.js";
|
|
13
|
+
import { C as Q } from "./clock-Drd4Wtis.js";
|
|
14
|
+
import { R as U } from "./refresh-cw-DnI0cLFC.js";
|
|
15
|
+
import { X as Y } from "./x-B5YnXwCz.js";
|
|
16
|
+
import { C as Z } from "./contact-round-DiSvB3LP.js";
|
|
17
|
+
const ee = {
|
|
18
18
|
id: "entity-summary",
|
|
19
19
|
// 'close' backs close; regenerate is a host-driven refresh with no
|
|
20
20
|
// dedicated capability in the closed vocabulary.
|
|
@@ -67,42 +67,43 @@ const Z = {
|
|
|
67
67
|
description: "Sourced from the id prop. Required to address a specific summary panel from the agent."
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, te = "ds:flex ds:size-7 ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-md)] ds:[&_svg]:size-4 ds:bg-primary/10 ds:text-[color:var(--primary)]", w = "ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] ds:break-words type-body-sm", xe = D(
|
|
71
71
|
function({
|
|
72
72
|
id: n,
|
|
73
73
|
title: i,
|
|
74
74
|
entityName: s,
|
|
75
75
|
entityHref: y,
|
|
76
|
-
entityAvatarSrc:
|
|
76
|
+
entityAvatarSrc: z,
|
|
77
77
|
generatedAtIso: d,
|
|
78
78
|
stats: o,
|
|
79
79
|
sections: g,
|
|
80
80
|
onRegenerate: l,
|
|
81
|
-
regenerateLabel:
|
|
81
|
+
regenerateLabel: R,
|
|
82
82
|
onClose: c,
|
|
83
|
-
disclaimer:
|
|
84
|
-
locale:
|
|
85
|
-
|
|
83
|
+
disclaimer: j,
|
|
84
|
+
locale: B,
|
|
85
|
+
showHeader: v = !0,
|
|
86
|
+
className: T,
|
|
86
87
|
"aria-label": h,
|
|
87
|
-
...
|
|
88
|
-
},
|
|
89
|
-
const { t: m } =
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
88
|
+
...L
|
|
89
|
+
}, V) {
|
|
90
|
+
const { t: m } = q("ui"), x = C(), K = i ?? m("entitySummary.title", { defaultValue: "AI summary" }), b = f(g);
|
|
91
|
+
b.current = g;
|
|
92
|
+
const S = f(d);
|
|
93
|
+
S.current = d;
|
|
93
94
|
const u = f(l);
|
|
94
95
|
u.current = l;
|
|
95
96
|
const p = f(c);
|
|
96
97
|
p.current = c;
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
98
|
+
const N = f(null);
|
|
99
|
+
_(V, () => N.current, []);
|
|
100
|
+
const M = $(
|
|
100
101
|
() => ({
|
|
101
102
|
// Structural only — section headings are fixed category labels, never
|
|
102
103
|
// the entity name or the bullet items (both PHI).
|
|
103
104
|
getState: () => ({
|
|
104
|
-
generatedAtIso:
|
|
105
|
-
sections:
|
|
105
|
+
generatedAtIso: S.current,
|
|
106
|
+
sections: b.current.map((r) => ({
|
|
106
107
|
id: r.id,
|
|
107
108
|
heading: r.heading,
|
|
108
109
|
tone: r.tone ?? "default",
|
|
@@ -122,49 +123,49 @@ const Z = {
|
|
|
122
123
|
}),
|
|
123
124
|
[]
|
|
124
125
|
);
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
/* @__PURE__ */ e(
|
|
126
|
+
J(ee, M, n);
|
|
127
|
+
const k = d ? /* @__PURE__ */ a("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
|
|
128
|
+
/* @__PURE__ */ e(Q, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
|
|
128
129
|
/* @__PURE__ */ e("span", { children: m("entitySummary.generatedAt", { defaultValue: "Generated" }) }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
130
|
+
/* @__PURE__ */ e(X, { value: d, format: "absolute", locale: B })
|
|
130
131
|
] }) : null;
|
|
131
132
|
return /* @__PURE__ */ a(
|
|
132
133
|
"section",
|
|
133
134
|
{
|
|
134
|
-
ref:
|
|
135
|
+
ref: N,
|
|
135
136
|
"data-component": "entity-summary",
|
|
136
137
|
"data-component-id": n,
|
|
137
|
-
"aria-labelledby": h ? void 0 :
|
|
138
|
+
"aria-labelledby": h || !v ? void 0 : x,
|
|
138
139
|
"aria-label": h,
|
|
139
|
-
className: ["ds:flex ds:flex-col",
|
|
140
|
-
...
|
|
140
|
+
className: ["ds:flex ds:flex-col", T].filter(Boolean).join(" "),
|
|
141
|
+
...L,
|
|
141
142
|
children: [
|
|
142
|
-
/* @__PURE__ */ e(
|
|
143
|
-
|
|
143
|
+
v ? /* @__PURE__ */ e(
|
|
144
|
+
W,
|
|
144
145
|
{
|
|
145
|
-
title:
|
|
146
|
-
icon: /* @__PURE__ */ e(
|
|
147
|
-
headingId: h ? void 0 :
|
|
146
|
+
title: K,
|
|
147
|
+
icon: /* @__PURE__ */ e(Z, { "aria-hidden": "true" }),
|
|
148
|
+
headingId: h ? void 0 : x,
|
|
148
149
|
sticky: !0,
|
|
149
150
|
divider: !0,
|
|
150
|
-
actions: l || c ? /* @__PURE__ */ a(
|
|
151
|
+
actions: l || c ? /* @__PURE__ */ a(P, { children: [
|
|
151
152
|
l ? /* @__PURE__ */ e(
|
|
152
|
-
|
|
153
|
+
O,
|
|
153
154
|
{
|
|
154
155
|
type: "button",
|
|
155
156
|
size: "sm",
|
|
156
157
|
intent: "ghost",
|
|
157
|
-
startIcon: /* @__PURE__ */ e(
|
|
158
|
+
startIcon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
158
159
|
onClick: l,
|
|
159
|
-
children:
|
|
160
|
+
children: R ?? m("entitySummary.regenerate", {
|
|
160
161
|
defaultValue: "Regenerate"
|
|
161
162
|
})
|
|
162
163
|
}
|
|
163
164
|
) : null,
|
|
164
165
|
c ? /* @__PURE__ */ e(
|
|
165
|
-
|
|
166
|
+
F,
|
|
166
167
|
{
|
|
167
|
-
icon: /* @__PURE__ */ e(
|
|
168
|
+
icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
|
|
168
169
|
size: "sm",
|
|
169
170
|
intent: "ghost",
|
|
170
171
|
"aria-label": m("common.close", { defaultValue: "Close" }),
|
|
@@ -173,32 +174,32 @@ const Z = {
|
|
|
173
174
|
) : null
|
|
174
175
|
] }) : void 0
|
|
175
176
|
}
|
|
176
|
-
),
|
|
177
|
+
) : null,
|
|
177
178
|
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
178
179
|
s || d || o && o.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
179
180
|
s ? /* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
180
181
|
/* @__PURE__ */ e(
|
|
181
|
-
|
|
182
|
+
H,
|
|
182
183
|
{
|
|
183
184
|
name: s,
|
|
184
|
-
src:
|
|
185
|
+
src: z,
|
|
185
186
|
size: "sm",
|
|
186
187
|
className: "ds:shrink-0"
|
|
187
188
|
}
|
|
188
189
|
),
|
|
189
190
|
/* @__PURE__ */ a("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
190
191
|
y ? /* @__PURE__ */ e(
|
|
191
|
-
|
|
192
|
+
G,
|
|
192
193
|
{
|
|
193
194
|
href: y,
|
|
194
195
|
className: "type-body-sm ds:font-semibold",
|
|
195
196
|
children: s
|
|
196
197
|
}
|
|
197
198
|
) : /* @__PURE__ */ e("span", { className: "type-body-sm ds:font-semibold ds:text-[color:var(--foreground)]", children: s }),
|
|
198
|
-
|
|
199
|
+
k
|
|
199
200
|
] })
|
|
200
|
-
] }) :
|
|
201
|
-
o && o.length > 0 ? /* @__PURE__ */ e(
|
|
201
|
+
] }) : k,
|
|
202
|
+
o && o.length > 0 ? /* @__PURE__ */ e(E, { variant: "elevated", children: /* @__PURE__ */ e(
|
|
202
203
|
"ul",
|
|
203
204
|
{
|
|
204
205
|
role: "list",
|
|
@@ -220,8 +221,8 @@ const Z = {
|
|
|
220
221
|
}
|
|
221
222
|
) }) : null
|
|
222
223
|
] }) : null,
|
|
223
|
-
g.map((r) => /* @__PURE__ */ e(
|
|
224
|
-
/* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children:
|
|
224
|
+
g.map((r) => /* @__PURE__ */ e(re, { section: r }, r.id)),
|
|
225
|
+
/* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children: j ?? m("entitySummary.disclaimer", {
|
|
225
226
|
defaultValue: "Does not replace clinical judgement · verify accuracy before clinical use · BETA"
|
|
226
227
|
}) })
|
|
227
228
|
] })
|
|
@@ -230,8 +231,8 @@ const Z = {
|
|
|
230
231
|
);
|
|
231
232
|
}
|
|
232
233
|
);
|
|
233
|
-
function
|
|
234
|
-
const n =
|
|
234
|
+
function re({ section: t }) {
|
|
235
|
+
const n = C();
|
|
235
236
|
return t.tone === "attention" ? /* @__PURE__ */ a(
|
|
236
237
|
I,
|
|
237
238
|
{
|
|
@@ -241,12 +242,12 @@ function te({ section: t }) {
|
|
|
241
242
|
className: "ds:shadow-[var(--shadow-card)]",
|
|
242
243
|
children: [
|
|
243
244
|
/* @__PURE__ */ e(I.Title, { as: "h3", children: t.heading }),
|
|
244
|
-
/* @__PURE__ */ e("ul", { className:
|
|
245
|
+
/* @__PURE__ */ e("ul", { className: w, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
|
|
245
246
|
]
|
|
246
247
|
}
|
|
247
|
-
) : /* @__PURE__ */ e(
|
|
248
|
+
) : /* @__PURE__ */ e(E, { variant: "elevated", "aria-labelledby": n, children: /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]", children: [
|
|
248
249
|
/* @__PURE__ */ a("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
249
|
-
t.icon ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className:
|
|
250
|
+
t.icon ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: te, children: t.icon }) : null,
|
|
250
251
|
/* @__PURE__ */ e(
|
|
251
252
|
"h3",
|
|
252
253
|
{
|
|
@@ -256,10 +257,10 @@ function te({ section: t }) {
|
|
|
256
257
|
}
|
|
257
258
|
)
|
|
258
259
|
] }),
|
|
259
|
-
/* @__PURE__ */ e("ul", { className: `${
|
|
260
|
+
/* @__PURE__ */ e("ul", { className: `${w} ds:text-[color:var(--foreground)]`, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
|
|
260
261
|
] }) });
|
|
261
262
|
}
|
|
262
263
|
export {
|
|
263
|
-
|
|
264
|
+
xe as E
|
|
264
265
|
};
|
|
265
|
-
//# sourceMappingURL=entity-summary-
|
|
266
|
+
//# sourceMappingURL=entity-summary-CpNk6ybN.js.map
|
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
import { jsx as t, jsxs as L } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as me, useMemo as ue, useState as M, useEffect as I, useRef as Y, useId as ge } from "react";
|
|
3
3
|
import { useTranslation as fe } from "react-i18next";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as he } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { B as S } from "./button-DohK_Ak_.js";
|
|
6
|
-
import { L as
|
|
7
|
-
import { i as
|
|
8
|
-
import { i as
|
|
9
|
-
import { a as
|
|
10
|
-
import { loadLocale as
|
|
11
|
-
import { R as
|
|
12
|
-
import { L as
|
|
13
|
-
import {
|
|
6
|
+
import { L as pe } from "./logo-hIsyVE96.js";
|
|
7
|
+
import { i as ye } from "./is-development-CLUAnsU7.js";
|
|
8
|
+
import { i as be } from "./safe-href-5dbsfbQn.js";
|
|
9
|
+
import { a as ve } from "./error-page-illustration-BdJLuMdV.js";
|
|
10
|
+
import { loadLocale as ke, LOCALES_WITH_BUNDLES as we } from "../i18n/config.js";
|
|
11
|
+
import { R as Pe } from "./rotate-ccw-BBQnIVTr.js";
|
|
12
|
+
import { L as xe } from "./log-in-OQUEoGhX.js";
|
|
13
|
+
import { H as Ee } from "./house-DGCypGTo.js";
|
|
14
|
+
import { c as Le } from "./createLucideIcon-DhHxpK9K.js";
|
|
14
15
|
/**
|
|
15
16
|
* @license lucide-react v1.22.0 - ISC
|
|
16
17
|
*
|
|
17
18
|
* This source code is licensed under the ISC license.
|
|
18
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
20
|
*/
|
|
20
|
-
const
|
|
21
|
+
const Se = [
|
|
21
22
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
22
23
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
23
24
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
24
|
-
],
|
|
25
|
-
/**
|
|
26
|
-
* @license lucide-react v1.22.0 - ISC
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the ISC license.
|
|
29
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
const Ne = [
|
|
32
|
-
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
33
|
-
[
|
|
34
|
-
"path",
|
|
35
|
-
{
|
|
36
|
-
d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
|
|
37
|
-
key: "r6nss1"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
], Re = V("house", Ne), Te = [
|
|
25
|
+
], Ne = Le("circle-question-mark", Se), Re = [
|
|
41
26
|
400,
|
|
42
27
|
401,
|
|
43
28
|
403,
|
|
@@ -69,10 +54,10 @@ const Ne = [
|
|
|
69
54
|
maintenance: { key: "maintenance", mood: "rebuild", primary: "retry" },
|
|
70
55
|
generic: { key: "generic", mood: "puzzled", primary: "home" }
|
|
71
56
|
};
|
|
72
|
-
function
|
|
73
|
-
return
|
|
57
|
+
function Te(e) {
|
|
58
|
+
return Re.includes(e) ? j[e] : j.generic;
|
|
74
59
|
}
|
|
75
|
-
const
|
|
60
|
+
const Ce = {
|
|
76
61
|
statusLabel: "Error {{status}}",
|
|
77
62
|
reference: "Reference: {{id}}",
|
|
78
63
|
referenceHint: "If you contact support, quote this reference.",
|
|
@@ -141,32 +126,32 @@ const Ie = {
|
|
|
141
126
|
message: "Please try again, or go to the home page."
|
|
142
127
|
}
|
|
143
128
|
}
|
|
144
|
-
},
|
|
129
|
+
}, Ie = "alfadocs-ui.locale", _e = "it", ze = (e) => {
|
|
145
130
|
if (!e) return;
|
|
146
|
-
const
|
|
147
|
-
return
|
|
148
|
-
},
|
|
131
|
+
const o = e.toLowerCase().replaceAll("_", "-").split("-")[0], n = o === "cn" ? "zh" : o;
|
|
132
|
+
return we.includes(n) ? n : void 0;
|
|
133
|
+
}, $e = () => {
|
|
149
134
|
try {
|
|
150
|
-
return window.localStorage.getItem(
|
|
135
|
+
return window.localStorage.getItem(Ie);
|
|
151
136
|
} catch {
|
|
152
137
|
return null;
|
|
153
138
|
}
|
|
154
139
|
};
|
|
155
|
-
function
|
|
156
|
-
var
|
|
157
|
-
const
|
|
140
|
+
function Be(e = {}) {
|
|
141
|
+
var h;
|
|
142
|
+
const o = typeof window < "u", n = e.saved !== void 0 ? e.saved : o ? $e() : null, m = e.browser ?? (o && typeof navigator < "u" ? (h = navigator.languages) != null && h.length ? navigator.languages : [navigator.language] : []), f = e.document ?? (typeof document < "u" ? document.documentElement.lang : ""), b = [
|
|
158
143
|
e.locale,
|
|
159
144
|
n,
|
|
160
145
|
...m,
|
|
161
|
-
e.hostLocaleIsDefault ? void 0 :
|
|
146
|
+
e.hostLocaleIsDefault ? void 0 : f
|
|
162
147
|
];
|
|
163
148
|
for (const v of b) {
|
|
164
|
-
const p =
|
|
149
|
+
const p = ze(v);
|
|
165
150
|
if (p) return p;
|
|
166
151
|
}
|
|
167
|
-
return
|
|
152
|
+
return _e;
|
|
168
153
|
}
|
|
169
|
-
const H = (e,
|
|
154
|
+
const H = (e, o) => ke(e, o), De = he(
|
|
170
155
|
"ds:flex ds:flex-col ds:items-center ds:justify-center ds:bg-[var(--background)] ds:text-[var(--foreground)] ds:px-[var(--spacing-md)] ds:py-[var(--spacing-2xl)]",
|
|
171
156
|
{
|
|
172
157
|
variants: {
|
|
@@ -186,97 +171,97 @@ const H = (e, a) => we(e, a), Fe = pe(
|
|
|
186
171
|
},
|
|
187
172
|
defaultVariants: { layout: "page", surface: "background" }
|
|
188
173
|
}
|
|
189
|
-
),
|
|
190
|
-
function
|
|
174
|
+
), Fe = /* @__PURE__ */ new Set(["ar"]), Ge = 1500;
|
|
175
|
+
function qe(e, o) {
|
|
191
176
|
const n = e instanceof Date ? e : new Date(e);
|
|
192
177
|
if (Number.isNaN(n.getTime())) return;
|
|
193
|
-
const m = /* @__PURE__ */ new Date(),
|
|
178
|
+
const m = /* @__PURE__ */ new Date(), f = m.toDateString() === n.toDateString() ? {} : {
|
|
194
179
|
day: "numeric",
|
|
195
180
|
month: "short",
|
|
196
181
|
...m.getFullYear() === n.getFullYear() ? {} : { year: "numeric" }
|
|
197
182
|
};
|
|
198
|
-
return new Intl.DateTimeFormat(
|
|
199
|
-
...
|
|
183
|
+
return new Intl.DateTimeFormat(o === "en" ? "en-GB" : o, {
|
|
184
|
+
...f,
|
|
200
185
|
hour: "2-digit",
|
|
201
186
|
minute: "2-digit"
|
|
202
187
|
}).format(n);
|
|
203
188
|
}
|
|
204
|
-
const _ = (e,
|
|
189
|
+
const _ = (e, o) => !!e.getResource(o, "ui", "errorPage"), O = (e) => be(e) ? e : "#", Ae = me(
|
|
205
190
|
({
|
|
206
191
|
status: e,
|
|
207
|
-
homeHref:
|
|
192
|
+
homeHref: o = "/",
|
|
208
193
|
loginHref: n,
|
|
209
194
|
supportHref: m,
|
|
210
|
-
onRetry:
|
|
195
|
+
onRetry: f,
|
|
211
196
|
requestId: b,
|
|
212
|
-
backAt:
|
|
197
|
+
backAt: h,
|
|
213
198
|
locale: v,
|
|
214
199
|
hostLocaleIsDefault: p = !1,
|
|
215
|
-
title:
|
|
216
|
-
message:
|
|
200
|
+
title: V,
|
|
201
|
+
message: U,
|
|
217
202
|
primaryAction: s,
|
|
218
|
-
showHomeLink:
|
|
219
|
-
mood:
|
|
220
|
-
showStatusLabel:
|
|
221
|
-
showLogo:
|
|
222
|
-
as:
|
|
203
|
+
showHomeLink: K = !0,
|
|
204
|
+
mood: Q,
|
|
205
|
+
showStatusLabel: J = !0,
|
|
206
|
+
showLogo: X = !0,
|
|
207
|
+
as: Z,
|
|
223
208
|
focusHeading: z = !0,
|
|
224
|
-
focusKey:
|
|
209
|
+
focusKey: ee,
|
|
225
210
|
scrollOnFocus: $ = !1,
|
|
226
|
-
headingLevel:
|
|
227
|
-
layout:
|
|
211
|
+
headingLevel: te = 1,
|
|
212
|
+
layout: re,
|
|
228
213
|
surface: B,
|
|
229
214
|
className: oe,
|
|
230
|
-
...
|
|
231
|
-
},
|
|
232
|
-
const { i18n: d } = fe("ui", { useSuspense: !1 }),
|
|
233
|
-
() =>
|
|
215
|
+
...ae
|
|
216
|
+
}, ne) => {
|
|
217
|
+
const { i18n: d } = fe("ui", { useSuspense: !1 }), a = ue(
|
|
218
|
+
() => Be({ locale: v, hostLocaleIsDefault: p }),
|
|
234
219
|
[v, p]
|
|
235
|
-
), [k, D] =
|
|
236
|
-
for:
|
|
237
|
-
shown: _(d,
|
|
238
|
-
})), i = k.shown, [,
|
|
220
|
+
), [k, D] = M(() => ({
|
|
221
|
+
for: a,
|
|
222
|
+
shown: _(d, a) ? a : null
|
|
223
|
+
})), i = k.shown, [, se] = M(0);
|
|
239
224
|
I(() => {
|
|
240
225
|
let r = !0;
|
|
241
|
-
const P = _(d,
|
|
242
|
-
(C) => C.for ===
|
|
226
|
+
const P = _(d, a), x = (l) => D(
|
|
227
|
+
(C) => C.for === a && C.shown === l ? C : { for: a, shown: l }
|
|
243
228
|
), E = () => D(
|
|
244
|
-
(l) => l.for ===
|
|
229
|
+
(l) => l.for === a && l.shown ? l : { for: a, shown: "en" }
|
|
245
230
|
);
|
|
246
|
-
x(P ?
|
|
231
|
+
x(P ? a : null), _(d, "en") || d.addResourceBundle(
|
|
247
232
|
"en",
|
|
248
233
|
"ui",
|
|
249
|
-
{ errorPage:
|
|
234
|
+
{ errorPage: Ce },
|
|
250
235
|
!0,
|
|
251
236
|
!1
|
|
252
237
|
);
|
|
253
|
-
const
|
|
254
|
-
H("en", d).then(
|
|
238
|
+
const W = () => r && se((l) => l + 1);
|
|
239
|
+
H("en", d).then(W).catch(() => {
|
|
255
240
|
});
|
|
256
|
-
const
|
|
257
|
-
return H(
|
|
258
|
-
r && (x(
|
|
241
|
+
const le = P ? void 0 : setTimeout(() => r && E(), Ge);
|
|
242
|
+
return H(a, d).then(() => {
|
|
243
|
+
r && (x(a), W());
|
|
259
244
|
}).catch(() => r && E()), () => {
|
|
260
|
-
r = !1, clearTimeout(
|
|
245
|
+
r = !1, clearTimeout(le);
|
|
261
246
|
};
|
|
262
|
-
}, [d,
|
|
247
|
+
}, [d, a]);
|
|
263
248
|
const c = d.getFixedT(
|
|
264
249
|
i && i !== "en" ? [i, "en"] : "en",
|
|
265
250
|
"ui"
|
|
266
|
-
), u =
|
|
251
|
+
), u = Te(e), N = u.key === "maintenance" && h ? qe(h, i ?? "en") : void 0, F = Y(null), y = ge(), R = `${String(e)}:${ee ?? ""}`, G = Y(null);
|
|
267
252
|
I(() => {
|
|
268
|
-
if (!z || !k.shown || k.for !==
|
|
253
|
+
if (!z || !k.shown || k.for !== a || G.current === R) return;
|
|
269
254
|
G.current = R;
|
|
270
255
|
const r = F.current;
|
|
271
256
|
r == null || r.focus({ preventScroll: !0 }), $ && (r == null || r.scrollIntoView({ block: "nearest" }));
|
|
272
|
-
}, [k,
|
|
273
|
-
const
|
|
257
|
+
}, [k, a, z, R, $]);
|
|
258
|
+
const ie = ["h1", "h2", "h3"][te - 1], q = s !== void 0 && (typeof s.label != "string" || s.label.trim() === "");
|
|
274
259
|
I(() => {
|
|
275
|
-
|
|
260
|
+
q && ye() && console.warn(
|
|
276
261
|
"ErrorPage: `primaryAction.label` is empty, so its button has no accessible name. Pass the label, already translated."
|
|
277
262
|
);
|
|
278
|
-
}, [
|
|
279
|
-
const
|
|
263
|
+
}, [q]);
|
|
264
|
+
const A = B === "card", de = Z ?? (A ? "div" : "main"), ce = f ?? (() => window.location.reload()), w = u.primary === "login" && !n ? "retry" : u.primary, T = (r, P, x, E) => /* @__PURE__ */ t(
|
|
280
265
|
S,
|
|
281
266
|
{
|
|
282
267
|
intent: E,
|
|
@@ -326,61 +311,61 @@ const _ = (e, a) => !!e.getResource(a, "ui", "errorPage"), O = (e) => ve(e) ? e
|
|
|
326
311
|
{
|
|
327
312
|
intent: "primary",
|
|
328
313
|
size: "lg",
|
|
329
|
-
startIcon: /* @__PURE__ */ t(
|
|
330
|
-
onClick:
|
|
314
|
+
startIcon: /* @__PURE__ */ t(Pe, { "aria-hidden": "true" }),
|
|
315
|
+
onClick: ce,
|
|
331
316
|
"data-action": "retry",
|
|
332
317
|
children: c("errorPage.actions.retry")
|
|
333
318
|
},
|
|
334
319
|
"retry"
|
|
335
320
|
)
|
|
336
321
|
) : w === "login" && n && g.push(
|
|
337
|
-
T("login", n, /* @__PURE__ */ t(
|
|
338
|
-
),
|
|
322
|
+
T("login", n, /* @__PURE__ */ t(xe, { "aria-hidden": "true" }), "primary")
|
|
323
|
+
), K && e !== "offline" && u.key !== "maintenance" && !(s && w === "home") && g.push(
|
|
339
324
|
T(
|
|
340
325
|
"home",
|
|
341
|
-
|
|
342
|
-
/* @__PURE__ */ t(
|
|
326
|
+
o,
|
|
327
|
+
/* @__PURE__ */ t(Ee, { "aria-hidden": "true" }),
|
|
343
328
|
w === "home" ? "primary" : "secondary"
|
|
344
329
|
)
|
|
345
330
|
), m && g.push(
|
|
346
331
|
T(
|
|
347
332
|
"support",
|
|
348
333
|
m,
|
|
349
|
-
/* @__PURE__ */ t(
|
|
334
|
+
/* @__PURE__ */ t(Ne, { "aria-hidden": "true" }),
|
|
350
335
|
"ghost"
|
|
351
336
|
)
|
|
352
337
|
), /* @__PURE__ */ t(
|
|
353
|
-
|
|
338
|
+
de,
|
|
354
339
|
{
|
|
355
|
-
ref:
|
|
340
|
+
ref: ne,
|
|
356
341
|
"data-component": "error-page",
|
|
357
342
|
"data-status": String(e),
|
|
358
343
|
lang: i ?? void 0,
|
|
359
344
|
"aria-busy": i ? void 0 : !0,
|
|
360
|
-
dir: i &&
|
|
361
|
-
className:
|
|
362
|
-
layout:
|
|
345
|
+
dir: i && Fe.has(i) ? "rtl" : "ltr",
|
|
346
|
+
className: De({
|
|
347
|
+
layout: re ?? (A ? "embedded" : void 0),
|
|
363
348
|
surface: B,
|
|
364
349
|
className: oe
|
|
365
350
|
}),
|
|
366
|
-
...
|
|
351
|
+
...ae,
|
|
367
352
|
children: /* @__PURE__ */ L(
|
|
368
353
|
"div",
|
|
369
354
|
{
|
|
370
355
|
className: i ? "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center ds:[max-inline-size:32rem]" : "ds:invisible",
|
|
371
356
|
children: [
|
|
372
|
-
/* @__PURE__ */ t(
|
|
357
|
+
/* @__PURE__ */ t(ve, { mood: Q ?? u.mood }),
|
|
373
358
|
/* @__PURE__ */ L("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
374
359
|
/* @__PURE__ */ L(
|
|
375
|
-
|
|
360
|
+
ie,
|
|
376
361
|
{
|
|
377
362
|
ref: F,
|
|
378
363
|
tabIndex: -1,
|
|
379
364
|
"aria-describedby": N ? `${y}-message ${y}-back` : `${y}-message`,
|
|
380
365
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:outline-none",
|
|
381
366
|
children: [
|
|
382
|
-
|
|
383
|
-
/* @__PURE__ */ t("span", { className: "type-title-page", children:
|
|
367
|
+
J && typeof e == "number" && /* @__PURE__ */ t("span", { className: "type-label ds:text-[var(--muted-foreground)]", children: c("errorPage.statusLabel", { status: e }) }),
|
|
368
|
+
/* @__PURE__ */ t("span", { className: "type-title-page", children: V ?? c(`errorPage.status.${u.key}.title`) })
|
|
384
369
|
]
|
|
385
370
|
}
|
|
386
371
|
),
|
|
@@ -389,7 +374,7 @@ const _ = (e, a) => !!e.getResource(a, "ui", "errorPage"), O = (e) => ve(e) ? e
|
|
|
389
374
|
{
|
|
390
375
|
id: `${y}-message`,
|
|
391
376
|
className: "type-body ds:text-[var(--muted-foreground)]",
|
|
392
|
-
children:
|
|
377
|
+
children: U ?? c(`errorPage.status.${u.key}.message`)
|
|
393
378
|
}
|
|
394
379
|
),
|
|
395
380
|
N && /* @__PURE__ */ t("p", { id: `${y}-back`, className: "type-body ds:font-semibold", children: c("errorPage.backAt", { time: N }) })
|
|
@@ -400,7 +385,7 @@ const _ = (e, a) => !!e.getResource(a, "ui", "errorPage"), O = (e) => ve(e) ? e
|
|
|
400
385
|
/* @__PURE__ */ t("br", {}),
|
|
401
386
|
c("errorPage.referenceHint")
|
|
402
387
|
] }),
|
|
403
|
-
|
|
388
|
+
X && /* @__PURE__ */ t(pe, { decorative: !0, size: "sm", className: "ds:opacity-70" })
|
|
404
389
|
]
|
|
405
390
|
}
|
|
406
391
|
)
|
|
@@ -408,12 +393,12 @@ const _ = (e, a) => !!e.getResource(a, "ui", "errorPage"), O = (e) => ve(e) ? e
|
|
|
408
393
|
);
|
|
409
394
|
}
|
|
410
395
|
);
|
|
411
|
-
|
|
396
|
+
Ae.displayName = "ErrorPage";
|
|
412
397
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
398
|
+
_e as E,
|
|
399
|
+
Re as a,
|
|
400
|
+
Ae as b,
|
|
401
|
+
Te as e,
|
|
402
|
+
Be as r
|
|
418
403
|
};
|
|
419
|
-
//# sourceMappingURL=error-page-
|
|
404
|
+
//# sourceMappingURL=error-page-WLhmWUTq.js.map
|