@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.
Files changed (285) hide show
  1. package/dist/_chunks/{agenda-card-B8hV3dZV.js → agenda-card-B9wgX_Ed.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-Bu46s3dI.js → agenda-tray-CGcS_qoM.js} +2 -2
  3. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
  4. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
  5. package/dist/_chunks/appointment-card-BT1cMZIX.js +504 -0
  6. package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BP_ACFz5.js} +3 -3
  7. package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/appointment-tray-B3gSHL1j.js +200 -0
  9. package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
  10. package/dist/_chunks/ban-CiSCCcOE.js +15 -0
  11. package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-BHx6kUhX.js → calendar-appointment-editor-dialog-I5PfWudy.js} +15 -15
  13. package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
  14. package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
  15. package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
  16. package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
  17. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  18. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
  19. package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
  20. package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
  21. package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
  22. package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
  23. package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
  24. package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
  25. package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
  26. package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
  27. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  28. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  29. package/dist/_chunks/house-DGCypGTo.js +21 -0
  30. package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
  31. package/dist/_chunks/keypad-DBH_keVs.js +152 -0
  32. package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
  33. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  34. package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
  35. package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
  36. package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
  37. package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
  38. package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BvjAo4RQ.js} +6 -5
  39. package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
  40. package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
  41. package/dist/_chunks/patient-account-settings-B2XbN_Fe.js +546 -0
  42. package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
  43. package/dist/_chunks/patient-check-in-resume-B7NY-6KI.js +742 -0
  44. package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
  45. package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
  46. package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
  47. package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
  48. package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
  49. package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
  50. package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
  51. package/dist/_chunks/portal-details-DCIiGkHA.js +478 -0
  52. package/dist/_chunks/portal-documents-DJOH8pZx.js +902 -0
  53. package/dist/_chunks/portal-parts-Br8wuala.js +285 -0
  54. package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
  55. package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
  56. package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
  57. package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
  58. package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
  59. package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
  60. package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
  61. package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
  62. package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
  63. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  64. package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
  65. package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
  66. package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-DvwqPfFR.js} +40 -39
  67. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
  68. package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-6_OmOwUs.js} +115 -114
  69. package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
  70. package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
  71. package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
  72. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  73. package/dist/agent-catalog.json +933 -324
  74. package/dist/agent-i18n/en.json +103 -18
  75. package/dist/browser-support.js +1 -1
  76. package/dist/components/_shared/is-safe-url.d.ts +3 -1
  77. package/dist/components/_shared/sms-segments.d.ts +43 -0
  78. package/dist/components/agenda-card/index.js +2 -2
  79. package/dist/components/agenda-tray/index.js +1 -1
  80. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  81. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
  82. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  83. package/dist/components/ai-summary-panel/index.js +6 -0
  84. package/dist/components/appointment-card/appointment-card.d.ts +45 -0
  85. package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
  86. package/dist/components/appointment-card/index.js +3 -3
  87. package/dist/components/appointment-details-panel/index.js +1 -1
  88. package/dist/components/appointment-peek/index.js +1 -1
  89. package/dist/components/appointment-timeline/index.js +1 -1
  90. package/dist/components/booking/index.js +1 -1
  91. package/dist/components/calendar/index.js +1 -1
  92. package/dist/components/calendar-event-card/index.js +1 -1
  93. package/dist/components/care-plan-card/index.js +1 -1
  94. package/dist/components/care-plan-entry-card/index.js +1 -1
  95. package/dist/components/care-plan-header/index.js +1 -1
  96. package/dist/components/chat-container/chat-container.d.ts +7 -0
  97. package/dist/components/chat-container/index.js +1 -1
  98. package/dist/components/chat-input/chat-input.d.ts +3 -0
  99. package/dist/components/chat-input/index.js +1 -1
  100. package/dist/components/clinical-note-card/index.js +1 -1
  101. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  102. package/dist/components/communications-panel/communications-panel.d.ts +136 -0
  103. package/dist/components/communications-panel/index.d.ts +6 -0
  104. package/dist/components/communications-panel/index.js +7 -0
  105. package/dist/components/document-preview/document-preview.d.ts +61 -7
  106. package/dist/components/document-preview/index.js +1 -1
  107. package/dist/components/entity-summary/entity-summary.d.ts +8 -0
  108. package/dist/components/entity-summary/index.js +1 -1
  109. package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
  110. package/dist/components/finished-terminal/index.d.ts +1 -1
  111. package/dist/components/finished-terminal/index.js +1 -1
  112. package/dist/components/index.d.ts +14 -0
  113. package/dist/components/keypad/index.d.ts +3 -0
  114. package/dist/components/keypad/index.js +6 -0
  115. package/dist/components/keypad/keypad.d.ts +54 -0
  116. package/dist/components/keypad-button/index.d.ts +3 -0
  117. package/dist/components/keypad-button/index.js +6 -0
  118. package/dist/components/keypad-button/keypad-button.d.ts +33 -0
  119. package/dist/components/message-card/index.js +2 -2
  120. package/dist/components/message-tray/index.js +1 -1
  121. package/dist/components/note-timeline/index.js +1 -1
  122. package/dist/components/notes-panel/index.js +1 -1
  123. package/dist/components/operator-hero/index.js +1 -1
  124. package/dist/components/otp-input/index.js +1 -1
  125. package/dist/components/otp-input/otp-input.d.ts +11 -0
  126. package/dist/components/patient-summary-card/index.js +1 -1
  127. package/dist/components/payment-card/index.js +1 -1
  128. package/dist/components/pdf-viewer/index.js +1 -1
  129. package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
  130. package/dist/components/pin-entry/index.d.ts +3 -0
  131. package/dist/components/pin-entry/index.js +5 -0
  132. package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
  133. package/dist/components/pin-entry/pin-entry.d.ts +64 -0
  134. package/dist/components/pin-indicator/index.d.ts +3 -0
  135. package/dist/components/pin-indicator/index.js +9 -0
  136. package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
  137. package/dist/components/product-hub-tray/index.js +2 -2
  138. package/dist/components/session-countdown/index.js +1 -1
  139. package/dist/components/session-countdown/session-countdown.d.ts +19 -0
  140. package/dist/components/sign-document/index.js +1 -1
  141. package/dist/components/signature-field/index.js +1 -1
  142. package/dist/components/signature-field/signature-field.d.ts +17 -6
  143. package/dist/components/signature-status-chip/index.js +1 -1
  144. package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
  145. package/dist/components/sms-code-entry/index.d.ts +3 -0
  146. package/dist/components/sms-code-entry/index.js +5 -0
  147. package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
  148. package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
  149. package/dist/components/step-up-dialog/index.d.ts +3 -0
  150. package/dist/components/step-up-dialog/index.js +5 -0
  151. package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
  152. package/dist/components/task-editor/index.js +1 -1
  153. package/dist/components/tasks-panel/index.js +1 -1
  154. package/dist/components/workflow-status/index.js +2 -2
  155. package/dist/core.css +1 -1
  156. package/dist/hooks/index.js +1 -1
  157. package/dist/hooks/use-signing-session.d.ts +7 -2
  158. package/dist/host-compat.css +18 -3
  159. package/dist/i18n/locales/ar.d.ts +605 -1
  160. package/dist/i18n/locales/ar.js +603 -3
  161. package/dist/i18n/locales/de.d.ts +605 -1
  162. package/dist/i18n/locales/de.js +611 -4
  163. package/dist/i18n/locales/el.d.ts +605 -1
  164. package/dist/i18n/locales/el.js +606 -4
  165. package/dist/i18n/locales/en.d.ts +607 -1
  166. package/dist/i18n/locales/en.js +614 -4
  167. package/dist/i18n/locales/es.d.ts +605 -1
  168. package/dist/i18n/locales/es.js +604 -4
  169. package/dist/i18n/locales/fr.d.ts +605 -1
  170. package/dist/i18n/locales/fr.js +604 -4
  171. package/dist/i18n/locales/hi.d.ts +605 -1
  172. package/dist/i18n/locales/hi.js +604 -4
  173. package/dist/i18n/locales/it.d.ts +605 -1
  174. package/dist/i18n/locales/it.js +611 -4
  175. package/dist/i18n/locales/ja.d.ts +605 -1
  176. package/dist/i18n/locales/ja.js +604 -4
  177. package/dist/i18n/locales/nl.d.ts +605 -1
  178. package/dist/i18n/locales/nl.js +611 -4
  179. package/dist/i18n/locales/pl.d.ts +605 -1
  180. package/dist/i18n/locales/pl.js +611 -4
  181. package/dist/i18n/locales/pt.d.ts +605 -1
  182. package/dist/i18n/locales/pt.js +611 -4
  183. package/dist/i18n/locales/ro.d.ts +605 -1
  184. package/dist/i18n/locales/ro.js +611 -4
  185. package/dist/i18n/locales/ru.d.ts +605 -1
  186. package/dist/i18n/locales/ru.js +603 -3
  187. package/dist/i18n/locales/sq.d.ts +605 -1
  188. package/dist/i18n/locales/sq.js +604 -4
  189. package/dist/i18n/locales/sv.d.ts +605 -1
  190. package/dist/i18n/locales/sv.js +604 -4
  191. package/dist/i18n/locales/tr.d.ts +605 -1
  192. package/dist/i18n/locales/tr.js +606 -4
  193. package/dist/i18n/locales/zh.d.ts +605 -1
  194. package/dist/i18n/locales/zh.js +604 -4
  195. package/dist/index.js +1305 -1231
  196. package/dist/locales/ar.json +606 -2
  197. package/dist/locales/de.json +607 -3
  198. package/dist/locales/el.json +607 -3
  199. package/dist/locales/en.json +607 -3
  200. package/dist/locales/es.json +607 -3
  201. package/dist/locales/fr.json +607 -3
  202. package/dist/locales/hi.json +607 -3
  203. package/dist/locales/it.json +607 -3
  204. package/dist/locales/ja.json +607 -3
  205. package/dist/locales/nl.json +607 -3
  206. package/dist/locales/pl.json +607 -3
  207. package/dist/locales/pt.json +607 -3
  208. package/dist/locales/ro.json +607 -3
  209. package/dist/locales/ru.json +606 -2
  210. package/dist/locales/sq.json +607 -3
  211. package/dist/locales/sv.json +607 -3
  212. package/dist/locales/tr.json +607 -3
  213. package/dist/locales/zh.json +607 -3
  214. package/dist/patterns/alia-assistant/index.js +1 -1
  215. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  216. package/dist/patterns/calendar/index.js +1 -1
  217. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  218. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  219. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  220. package/dist/patterns/check-in-documents/index.js +5 -0
  221. package/dist/patterns/error-page/index.js +1 -1
  222. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  223. package/dist/patterns/patient-account-settings/index.js +5 -0
  224. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  225. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  226. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  227. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  228. package/dist/patterns/patient-check-in/index.js +13 -0
  229. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  230. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  231. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  232. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  233. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  234. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  235. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  236. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  237. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  238. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  239. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  240. package/dist/patterns/patient-portal/index.d.ts +12 -0
  241. package/dist/patterns/patient-portal/index.js +13 -0
  242. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  243. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  244. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  245. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  246. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  247. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  248. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  249. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  250. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  251. package/dist/patterns/patient-sign-in/index.js +15 -0
  252. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  253. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  254. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  255. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  256. package/dist/patterns/registration-form/index.js +1 -1
  257. package/dist/patterns/signature-request/index.js +1 -1
  258. package/dist/patterns/signing/index.d.ts +26 -0
  259. package/dist/patterns/signing/index.js +16 -0
  260. package/dist/patterns/signing/multi-field-signer.d.ts +138 -0
  261. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  262. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  263. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  264. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  265. package/dist/patterns/signing/signing-document-screen.d.ts +104 -0
  266. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  267. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  268. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  269. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  270. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  271. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  272. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  273. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  274. package/dist/patterns/verify-identity/index.js +1 -1
  275. package/dist/tokens.css +1 -1
  276. package/package.json +57 -1
  277. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  278. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  279. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  280. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  281. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  282. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  283. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  284. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  285. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -1,20 +1,20 @@
1
- import { jsxs as a, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import { forwardRef as P, useId as w, useRef as f, useImperativeHandle as D, useMemo as H } from "react";
3
- import { useTranslation as _ } from "react-i18next";
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 $ } from "./avatar-Dp5apm1d.js";
6
- import { B as q } from "./button-DohK_Ak_.js";
7
- import { I as O } from "./icon-button-S8_weU3g.js";
8
- import { C } from "./card-n6W6LW-N.js";
9
- import { L as F } from "./link-CeV7FoI6.js";
10
- import { P as G } from "./panel-header-CbtlTe85.js";
11
- import { T as W } from "./timestamp-DPLDWdxA.js";
12
- import { u as X } from "./registry-DvAUVLHh.js";
13
- import { C as J } from "./clock-Drd4Wtis.js";
14
- import { R as Q } from "./refresh-cw-DnI0cLFC.js";
15
- import { X as U } from "./x-B5YnXwCz.js";
16
- import { C as Y } from "./contact-round-DiSvB3LP.js";
17
- const Z = {
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
- }, ee = "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)]", k = "ds:m-0 ds:flex ds:list-disc ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-md)] type-body-sm", ve = P(
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: E,
76
+ entityAvatarSrc: z,
77
77
  generatedAtIso: d,
78
78
  stats: o,
79
79
  sections: g,
80
80
  onRegenerate: l,
81
- regenerateLabel: z,
81
+ regenerateLabel: R,
82
82
  onClose: c,
83
- disclaimer: R,
84
- locale: j,
85
- className: B,
83
+ disclaimer: j,
84
+ locale: B,
85
+ showHeader: v = !0,
86
+ className: T,
86
87
  "aria-label": h,
87
- ...T
88
- }, L) {
89
- const { t: m } = _("ui"), v = w(), V = i ?? m("entitySummary.title", { defaultValue: "AI summary" }), x = f(g);
90
- x.current = g;
91
- const b = f(d);
92
- b.current = d;
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 S = f(null);
98
- D(L, () => S.current, []);
99
- const K = H(
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: b.current,
105
- sections: x.current.map((r) => ({
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
- X(Z, K, n);
126
- const N = 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: [
127
- /* @__PURE__ */ e(J, { "aria-hidden": "true", className: "ds:size-3.5 ds:shrink-0" }),
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(W, { value: d, format: "absolute", locale: j })
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: S,
135
+ ref: N,
135
136
  "data-component": "entity-summary",
136
137
  "data-component-id": n,
137
- "aria-labelledby": h ? void 0 : v,
138
+ "aria-labelledby": h || !v ? void 0 : x,
138
139
  "aria-label": h,
139
- className: ["ds:flex ds:flex-col", B].filter(Boolean).join(" "),
140
- ...T,
140
+ className: ["ds:flex ds:flex-col", T].filter(Boolean).join(" "),
141
+ ...L,
141
142
  children: [
142
- /* @__PURE__ */ e(
143
- G,
143
+ v ? /* @__PURE__ */ e(
144
+ W,
144
145
  {
145
- title: V,
146
- icon: /* @__PURE__ */ e(Y, { "aria-hidden": "true" }),
147
- headingId: h ? void 0 : v,
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(M, { children: [
151
+ actions: l || c ? /* @__PURE__ */ a(P, { children: [
151
152
  l ? /* @__PURE__ */ e(
152
- q,
153
+ O,
153
154
  {
154
155
  type: "button",
155
156
  size: "sm",
156
157
  intent: "ghost",
157
- startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
158
+ startIcon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
158
159
  onClick: l,
159
- children: z ?? m("entitySummary.regenerate", {
160
+ children: R ?? m("entitySummary.regenerate", {
160
161
  defaultValue: "Regenerate"
161
162
  })
162
163
  }
163
164
  ) : null,
164
165
  c ? /* @__PURE__ */ e(
165
- O,
166
+ F,
166
167
  {
167
- icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
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: E,
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
- F,
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
- N
199
+ k
199
200
  ] })
200
- ] }) : N,
201
- o && o.length > 0 ? /* @__PURE__ */ e(C, { variant: "elevated", children: /* @__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(te, { section: r }, r.id)),
224
- /* @__PURE__ */ e("p", { className: "ds:m-0 type-meta ds:text-[color:var(--muted-foreground)]", children: R ?? m("entitySummary.disclaimer", {
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 te({ section: t }) {
234
- const n = w();
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: k, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
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(C, { 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
+ ) : /* @__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: ee, children: t.icon }) : null,
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: `${k} ds:text-[color:var(--foreground)]`, children: t.items.map((i, s) => /* @__PURE__ */ e("li", { children: i }, s)) })
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
- ve as E
264
+ xe as E
264
265
  };
265
- //# sourceMappingURL=entity-summary-KHM0PnSI.js.map
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 ue, useMemo as ge, useState as W, useEffect as I, useRef as Y, useId as he } from "react";
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 pe } from "./index-D2ZczOXr.js";
4
+ import { c as he } from "./index-D2ZczOXr.js";
5
5
  import { B as S } from "./button-DohK_Ak_.js";
6
- import { L as ye } from "./logo-hIsyVE96.js";
7
- import { i as be } from "./is-development-CLUAnsU7.js";
8
- import { i as ve } from "./safe-href-5dbsfbQn.js";
9
- import { a as ke } from "./error-page-illustration-BdJLuMdV.js";
10
- import { loadLocale as we, LOCALES_WITH_BUNDLES as Pe } from "../i18n/config.js";
11
- import { R as xe } from "./rotate-ccw-BBQnIVTr.js";
12
- import { L as Ee } from "./log-in-OQUEoGhX.js";
13
- import { c as V } from "./createLucideIcon-DhHxpK9K.js";
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 Le = [
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
- ], Se = V("circle-question-mark", Le);
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 Ce(e) {
73
- return Te.includes(e) ? j[e] : j.generic;
57
+ function Te(e) {
58
+ return Re.includes(e) ? j[e] : j.generic;
74
59
  }
75
- const Ie = {
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
- }, _e = "alfadocs-ui.locale", ze = "it", $e = (e) => {
129
+ }, Ie = "alfadocs-ui.locale", _e = "it", ze = (e) => {
145
130
  if (!e) return;
146
- const a = e.toLowerCase().replaceAll("_", "-").split("-")[0], n = a === "cn" ? "zh" : a;
147
- return Pe.includes(n) ? n : void 0;
148
- }, Be = () => {
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(_e);
135
+ return window.localStorage.getItem(Ie);
151
136
  } catch {
152
137
  return null;
153
138
  }
154
139
  };
155
- function De(e = {}) {
156
- var f;
157
- const a = typeof window < "u", n = e.saved !== void 0 ? e.saved : a ? Be() : null, m = e.browser ?? (a && typeof navigator < "u" ? (f = navigator.languages) != null && f.length ? navigator.languages : [navigator.language] : []), h = e.document ?? (typeof document < "u" ? document.documentElement.lang : ""), b = [
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 : h
146
+ e.hostLocaleIsDefault ? void 0 : f
162
147
  ];
163
148
  for (const v of b) {
164
- const p = $e(v);
149
+ const p = ze(v);
165
150
  if (p) return p;
166
151
  }
167
- return ze;
152
+ return _e;
168
153
  }
169
- const H = (e, a) => we(e, a), Fe = pe(
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
- ), Ge = /* @__PURE__ */ new Set(["ar"]), Ae = 1500;
190
- function Me(e, a) {
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(), h = m.toDateString() === n.toDateString() ? {} : {
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(a === "en" ? "en-GB" : a, {
199
- ...h,
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, a) => !!e.getResource(a, "ui", "errorPage"), O = (e) => ve(e) ? e : "#", qe = ue(
189
+ const _ = (e, o) => !!e.getResource(o, "ui", "errorPage"), O = (e) => be(e) ? e : "#", Ae = me(
205
190
  ({
206
191
  status: e,
207
- homeHref: a = "/",
192
+ homeHref: o = "/",
208
193
  loginHref: n,
209
194
  supportHref: m,
210
- onRetry: h,
195
+ onRetry: f,
211
196
  requestId: b,
212
- backAt: f,
197
+ backAt: h,
213
198
  locale: v,
214
199
  hostLocaleIsDefault: p = !1,
215
- title: U,
216
- message: K,
200
+ title: V,
201
+ message: U,
217
202
  primaryAction: s,
218
- showHomeLink: Q = !0,
219
- mood: J,
220
- showStatusLabel: X = !0,
221
- showLogo: Z = !0,
222
- as: ee,
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: te,
209
+ focusKey: ee,
225
210
  scrollOnFocus: $ = !1,
226
- headingLevel: re = 1,
227
- layout: ae,
211
+ headingLevel: te = 1,
212
+ layout: re,
228
213
  surface: B,
229
214
  className: oe,
230
- ...ne
231
- }, se) => {
232
- const { i18n: d } = fe("ui", { useSuspense: !1 }), o = ge(
233
- () => De({ locale: v, hostLocaleIsDefault: p }),
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] = W(() => ({
236
- for: o,
237
- shown: _(d, o) ? o : null
238
- })), i = k.shown, [, ie] = W(0);
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, o), x = (l) => D(
242
- (C) => C.for === o && C.shown === l ? C : { for: o, shown: l }
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 === o && l.shown ? l : { for: o, shown: "en" }
229
+ (l) => l.for === a && l.shown ? l : { for: a, shown: "en" }
245
230
  );
246
- x(P ? o : null), _(d, "en") || d.addResourceBundle(
231
+ x(P ? a : null), _(d, "en") || d.addResourceBundle(
247
232
  "en",
248
233
  "ui",
249
- { errorPage: Ie },
234
+ { errorPage: Ce },
250
235
  !0,
251
236
  !1
252
237
  );
253
- const q = () => r && ie((l) => l + 1);
254
- H("en", d).then(q).catch(() => {
238
+ const W = () => r && se((l) => l + 1);
239
+ H("en", d).then(W).catch(() => {
255
240
  });
256
- const me = P ? void 0 : setTimeout(() => r && E(), Ae);
257
- return H(o, d).then(() => {
258
- r && (x(o), q());
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(me);
245
+ r = !1, clearTimeout(le);
261
246
  };
262
- }, [d, o]);
247
+ }, [d, a]);
263
248
  const c = d.getFixedT(
264
249
  i && i !== "en" ? [i, "en"] : "en",
265
250
  "ui"
266
- ), u = Ce(e), N = u.key === "maintenance" && f ? Me(f, i ?? "en") : void 0, F = Y(null), y = he(), R = `${String(e)}:${te ?? ""}`, G = Y(null);
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 !== o || G.current === R) return;
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, o, z, R, $]);
273
- const de = ["h1", "h2", "h3"][re - 1], A = s !== void 0 && (typeof s.label != "string" || s.label.trim() === "");
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
- A && be() && console.warn(
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
- }, [A]);
279
- const M = B === "card", ce = ee ?? (M ? "div" : "main"), le = h ?? (() => window.location.reload()), w = u.primary === "login" && !n ? "retry" : u.primary, T = (r, P, x, E) => /* @__PURE__ */ t(
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(xe, { "aria-hidden": "true" }),
330
- onClick: le,
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(Ee, { "aria-hidden": "true" }), "primary")
338
- ), Q && e !== "offline" && u.key !== "maintenance" && !(s && w === "home") && g.push(
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
- a,
342
- /* @__PURE__ */ t(Re, { "aria-hidden": "true" }),
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(Se, { "aria-hidden": "true" }),
334
+ /* @__PURE__ */ t(Ne, { "aria-hidden": "true" }),
350
335
  "ghost"
351
336
  )
352
337
  ), /* @__PURE__ */ t(
353
- ce,
338
+ de,
354
339
  {
355
- ref: se,
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 && Ge.has(i) ? "rtl" : "ltr",
361
- className: Fe({
362
- layout: ae ?? (M ? "embedded" : void 0),
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
- ...ne,
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(ke, { mood: J ?? u.mood }),
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
- de,
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
- X && typeof e == "number" && /* @__PURE__ */ t("span", { className: "type-label ds:text-[var(--muted-foreground)]", children: c("errorPage.statusLabel", { status: e }) }),
383
- /* @__PURE__ */ t("span", { className: "type-title-page", children: U ?? c(`errorPage.status.${u.key}.title`) })
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: K ?? c(`errorPage.status.${u.key}.message`)
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
- Z && /* @__PURE__ */ t(ye, { decorative: !0, size: "sm", className: "ds:opacity-70" })
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
- qe.displayName = "ErrorPage";
396
+ Ae.displayName = "ErrorPage";
412
397
  export {
413
- ze as E,
414
- Te as a,
415
- qe as b,
416
- Ce as e,
417
- De as r
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-B0fGNTRB.js.map
404
+ //# sourceMappingURL=error-page-WLhmWUTq.js.map