@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.
Files changed (257) 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/appointment-card-DG3m9yN-.js +504 -0
  4. package/dist/_chunks/{appointment-peek-DZa6xyUb.js → appointment-peek-BK0tDs4C.js} +2 -2
  5. package/dist/_chunks/{appointment-timeline-DQePqpyH.js → appointment-timeline-BiI2riRZ.js} +2 -2
  6. package/dist/_chunks/appointment-tray-ClJCtYQj.js +200 -0
  7. package/dist/_chunks/{appointment-workflow-status-DMjuIK90.js → appointment-workflow-status-S-lx81Yz.js} +2 -2
  8. package/dist/_chunks/ban-CiSCCcOE.js +15 -0
  9. package/dist/_chunks/{calendar-BIoOeBTT.js → calendar-CyLtLBNP.js} +2 -2
  10. package/dist/_chunks/calendar-appointment-editor-dialog-BSkIYGlW.js +13773 -0
  11. package/dist/_chunks/{calendar-event-card-BNEzkjm-.js → calendar-event-card-BJifpYZQ.js} +7 -6
  12. package/dist/_chunks/{care-plan-card-DKScH9Ss.js → care-plan-card-CjHq6PLo.js} +6 -6
  13. package/dist/_chunks/{care-plan-entry-card-AG1y3nyW.js → care-plan-entry-card-DY1toF6E.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-Dx5OMkc9.js → care-plan-header-CeFXUDnL.js} +6 -6
  15. package/dist/_chunks/check-in-documents-CEVcgcYZ.js +136 -0
  16. package/dist/_chunks/{clinical-note-card-pPaeWWnu.js → clinical-note-card-D--IwbZa.js} +2 -2
  17. package/dist/_chunks/document-preview-DLVIrOYV.js +385 -0
  18. package/dist/_chunks/{entity-card-fpm-KUKc.js → entity-card-p-LANpYt.js} +18 -17
  19. package/dist/_chunks/{error-page-B0fGNTRB.js → error-page-WLhmWUTq.js} +100 -115
  20. package/dist/_chunks/finished-terminal-unDnXT4j.js +191 -0
  21. package/dist/_chunks/house-DGCypGTo.js +21 -0
  22. package/dist/_chunks/is-safe-url-CEy9CEml.js +8 -0
  23. package/dist/_chunks/keypad-DBH_keVs.js +152 -0
  24. package/dist/_chunks/keypad-button-mOaPQRrH.js +114 -0
  25. package/dist/_chunks/{message-card-BG3_3nN1.js → message-card-Bw_q1qKx.js} +2 -2
  26. package/dist/_chunks/{message-tray-BjZv0Fsk.js → message-tray-pLGgLmoG.js} +2 -2
  27. package/dist/_chunks/{note-attachment-MNTIqdSz.js → note-attachment-JTIy9iXN.js} +2 -2
  28. package/dist/_chunks/{note-timeline-BQeW0VZY.js → note-timeline-BbjHMhkL.js} +2 -2
  29. package/dist/_chunks/{notes-panel-Cm-_pCRJ.js → notes-panel-BAyPOr8N.js} +2 -2
  30. package/dist/_chunks/{operator-hero-CnfWckNQ.js → operator-hero-D4wfVu2l.js} +2 -2
  31. package/dist/_chunks/otp-input-BNOTlxq3.js +342 -0
  32. package/dist/_chunks/patient-account-settings-BkAtIxJW.js +546 -0
  33. package/dist/_chunks/patient-card-DTh3QTyS.js +125 -0
  34. package/dist/_chunks/patient-check-in-resume-xhqjC6gf.js +742 -0
  35. package/dist/_chunks/patient-sign-in-pin-CDBqV254.js +432 -0
  36. package/dist/_chunks/patient-sign-in-steps-C2JSqlok.js +199 -0
  37. package/dist/_chunks/{patient-summary-card-BUcZ-gaL.js → patient-summary-card-Bl2NknPe.js} +2 -2
  38. package/dist/_chunks/{payment-request-card-Dv4WbRBe.js → payment-request-card-CNW00DCx.js} +6 -6
  39. package/dist/_chunks/{pdf-viewer-BnBKdx0y.js → pdf-viewer-TRC5jEm5.js} +472 -425
  40. package/dist/_chunks/pin-entry-BugWQMOS.js +219 -0
  41. package/dist/_chunks/pin-indicator-Cb-n40UI.js +124 -0
  42. package/dist/_chunks/portal-details-CTEsm705.js +478 -0
  43. package/dist/_chunks/portal-documents-D8skew0h.js +902 -0
  44. package/dist/_chunks/portal-parts-BdR29P7z.js +285 -0
  45. package/dist/_chunks/{privacy-mask-DJ1gee4c.js → privacy-mask-C19dJFMk.js} +5 -5
  46. package/dist/_chunks/{product-hub-panel-a8wdVOUt.js → product-hub-panel-K4QbULG7.js} +2 -2
  47. package/dist/_chunks/{registration-form-CwbhtKcy.js → registration-form-DS3RuKHu.js} +2 -2
  48. package/dist/_chunks/{reserved.agent-W8mR179D.js → reserved.agent-DOzOBUW7.js} +2 -2
  49. package/dist/_chunks/session-countdown-DOx1IBUB.js +232 -0
  50. package/dist/_chunks/{sign-document-CQZVzfpk.js → sign-document-DDZbmYHu.js} +2 -2
  51. package/dist/_chunks/{signature-field-DjabvRZm.js → signature-field-BjlY_yXH.js} +39 -34
  52. package/dist/_chunks/{signature-request-4pGq3YBe.js → signature-request-CHsM_iWi.js} +2 -2
  53. package/dist/_chunks/{signature-status-chip-pIoQjvH8.js → signature-status-chip-DS9hHwIt.js} +66 -69
  54. package/dist/_chunks/signing-end-screen-an9P8DOT.js +1041 -0
  55. package/dist/_chunks/sms-code-entry-Dgp4GwlM.js +316 -0
  56. package/dist/_chunks/step-up-dialog-C2JqJmCA.js +132 -0
  57. package/dist/_chunks/{task-editor-BL2hHxNz.js → task-editor-g1AGfxhr.js} +38 -38
  58. package/dist/_chunks/{use-appointment-details-read-_b7FRB1x.js → use-appointment-details-read-Dzc6fEzG.js} +6 -6
  59. package/dist/_chunks/use-zoom-drilldown-Cr1baU5X.js +221 -0
  60. package/dist/_chunks/{user-x-DYszNtIg.js → user-x-BJZg4kaP.js} +8 -19
  61. package/dist/_chunks/{verify-identity-types-CxtrBXsZ.js → verify-identity-types-C6Bam8v6.js} +2 -2
  62. package/dist/agent-catalog.json +723 -364
  63. package/dist/agent-i18n/en.json +75 -18
  64. package/dist/browser-support.js +1 -1
  65. package/dist/components/_shared/is-safe-url.d.ts +3 -1
  66. package/dist/components/agenda-card/index.js +2 -2
  67. package/dist/components/agenda-tray/index.js +1 -1
  68. package/dist/components/appointment-card/appointment-card.d.ts +45 -0
  69. package/dist/components/appointment-card/appointment-tray.d.ts +11 -0
  70. package/dist/components/appointment-card/index.js +3 -3
  71. package/dist/components/appointment-details-panel/index.js +1 -1
  72. package/dist/components/appointment-peek/index.js +1 -1
  73. package/dist/components/appointment-timeline/index.js +1 -1
  74. package/dist/components/booking/index.js +1 -1
  75. package/dist/components/calendar/index.js +1 -1
  76. package/dist/components/calendar-event-card/index.js +1 -1
  77. package/dist/components/care-plan-card/index.js +1 -1
  78. package/dist/components/care-plan-entry-card/index.js +1 -1
  79. package/dist/components/care-plan-header/index.js +1 -1
  80. package/dist/components/clinical-note-card/index.js +1 -1
  81. package/dist/components/document-preview/document-preview.d.ts +61 -7
  82. package/dist/components/document-preview/index.js +1 -1
  83. package/dist/components/finished-terminal/finished-terminal.d.ts +63 -6
  84. package/dist/components/finished-terminal/index.d.ts +1 -1
  85. package/dist/components/finished-terminal/index.js +1 -1
  86. package/dist/components/index.d.ts +12 -0
  87. package/dist/components/keypad/index.d.ts +3 -0
  88. package/dist/components/keypad/index.js +6 -0
  89. package/dist/components/keypad/keypad.d.ts +54 -0
  90. package/dist/components/keypad-button/index.d.ts +3 -0
  91. package/dist/components/keypad-button/index.js +6 -0
  92. package/dist/components/keypad-button/keypad-button.d.ts +33 -0
  93. package/dist/components/message-card/index.js +2 -2
  94. package/dist/components/message-tray/index.js +1 -1
  95. package/dist/components/note-timeline/index.js +1 -1
  96. package/dist/components/notes-panel/index.js +1 -1
  97. package/dist/components/operator-hero/index.js +1 -1
  98. package/dist/components/otp-input/index.js +1 -1
  99. package/dist/components/otp-input/otp-input.d.ts +11 -0
  100. package/dist/components/patient-summary-card/index.js +1 -1
  101. package/dist/components/payment-card/index.js +1 -1
  102. package/dist/components/pdf-viewer/index.js +1 -1
  103. package/dist/components/pdf-viewer/pdf-viewer.d.ts +7 -0
  104. package/dist/components/pin-entry/index.d.ts +3 -0
  105. package/dist/components/pin-entry/index.js +5 -0
  106. package/dist/components/pin-entry/pin-entry.agent.d.ts +4 -0
  107. package/dist/components/pin-entry/pin-entry.d.ts +64 -0
  108. package/dist/components/pin-indicator/index.d.ts +3 -0
  109. package/dist/components/pin-indicator/index.js +9 -0
  110. package/dist/components/pin-indicator/pin-indicator.d.ts +34 -0
  111. package/dist/components/product-hub-tray/index.js +2 -2
  112. package/dist/components/session-countdown/index.js +1 -1
  113. package/dist/components/session-countdown/session-countdown.d.ts +19 -0
  114. package/dist/components/sign-document/index.js +1 -1
  115. package/dist/components/signature-field/index.js +1 -1
  116. package/dist/components/signature-field/signature-field.d.ts +17 -6
  117. package/dist/components/signature-status-chip/index.js +1 -1
  118. package/dist/components/signature-status-chip/signature-status-chip.d.ts +3 -2
  119. package/dist/components/sms-code-entry/index.d.ts +3 -0
  120. package/dist/components/sms-code-entry/index.js +5 -0
  121. package/dist/components/sms-code-entry/sms-code-entry.agent.d.ts +4 -0
  122. package/dist/components/sms-code-entry/sms-code-entry.d.ts +156 -0
  123. package/dist/components/step-up-dialog/index.d.ts +3 -0
  124. package/dist/components/step-up-dialog/index.js +5 -0
  125. package/dist/components/step-up-dialog/step-up-dialog.d.ts +108 -0
  126. package/dist/components/task-editor/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/hooks/index.js +1 -1
  130. package/dist/hooks/use-signing-session.d.ts +7 -2
  131. package/dist/host-compat.css +10 -1
  132. package/dist/i18n/locales/ar.d.ts +514 -1
  133. package/dist/i18n/locales/ar.js +512 -4
  134. package/dist/i18n/locales/de.d.ts +514 -1
  135. package/dist/i18n/locales/de.js +520 -5
  136. package/dist/i18n/locales/el.d.ts +514 -1
  137. package/dist/i18n/locales/el.js +515 -5
  138. package/dist/i18n/locales/en.d.ts +516 -1
  139. package/dist/i18n/locales/en.js +522 -4
  140. package/dist/i18n/locales/es.d.ts +514 -1
  141. package/dist/i18n/locales/es.js +513 -5
  142. package/dist/i18n/locales/fr.d.ts +514 -1
  143. package/dist/i18n/locales/fr.js +513 -5
  144. package/dist/i18n/locales/hi.d.ts +514 -1
  145. package/dist/i18n/locales/hi.js +513 -5
  146. package/dist/i18n/locales/it.d.ts +514 -1
  147. package/dist/i18n/locales/it.js +520 -5
  148. package/dist/i18n/locales/ja.d.ts +514 -1
  149. package/dist/i18n/locales/ja.js +513 -5
  150. package/dist/i18n/locales/nl.d.ts +514 -1
  151. package/dist/i18n/locales/nl.js +520 -5
  152. package/dist/i18n/locales/pl.d.ts +514 -1
  153. package/dist/i18n/locales/pl.js +520 -5
  154. package/dist/i18n/locales/pt.d.ts +514 -1
  155. package/dist/i18n/locales/pt.js +520 -5
  156. package/dist/i18n/locales/ro.d.ts +514 -1
  157. package/dist/i18n/locales/ro.js +520 -5
  158. package/dist/i18n/locales/ru.d.ts +514 -1
  159. package/dist/i18n/locales/ru.js +512 -4
  160. package/dist/i18n/locales/sq.d.ts +514 -1
  161. package/dist/i18n/locales/sq.js +513 -5
  162. package/dist/i18n/locales/sv.d.ts +514 -1
  163. package/dist/i18n/locales/sv.js +513 -5
  164. package/dist/i18n/locales/tr.d.ts +514 -1
  165. package/dist/i18n/locales/tr.js +515 -5
  166. package/dist/i18n/locales/zh.d.ts +514 -1
  167. package/dist/i18n/locales/zh.js +513 -5
  168. package/dist/index.js +1271 -1204
  169. package/dist/locales/ar.json +516 -3
  170. package/dist/locales/de.json +517 -4
  171. package/dist/locales/el.json +517 -4
  172. package/dist/locales/en.json +516 -3
  173. package/dist/locales/es.json +517 -4
  174. package/dist/locales/fr.json +517 -4
  175. package/dist/locales/hi.json +517 -4
  176. package/dist/locales/it.json +517 -4
  177. package/dist/locales/ja.json +517 -4
  178. package/dist/locales/nl.json +517 -4
  179. package/dist/locales/pl.json +517 -4
  180. package/dist/locales/pt.json +517 -4
  181. package/dist/locales/ro.json +517 -4
  182. package/dist/locales/ru.json +516 -3
  183. package/dist/locales/sq.json +517 -4
  184. package/dist/locales/sv.json +517 -4
  185. package/dist/locales/tr.json +517 -4
  186. package/dist/locales/zh.json +517 -4
  187. package/dist/patterns/calendar/calendar.journey.d.ts +4 -0
  188. package/dist/patterns/calendar/calendar.surface.d.ts +15 -1
  189. package/dist/patterns/calendar/calendar.types.d.ts +4 -0
  190. package/dist/patterns/calendar/index.js +1 -1
  191. package/dist/patterns/check-in-documents/check-in-documents.d.ts +61 -0
  192. package/dist/patterns/check-in-documents/check-in-signable-document.d.ts +32 -0
  193. package/dist/patterns/check-in-documents/index.d.ts +4 -0
  194. package/dist/patterns/check-in-documents/index.js +5 -0
  195. package/dist/patterns/error-page/index.js +1 -1
  196. package/dist/patterns/patient-account-settings/index.d.ts +4 -0
  197. package/dist/patterns/patient-account-settings/index.js +5 -0
  198. package/dist/patterns/patient-account-settings/patient-account-settings-panels.d.ts +36 -0
  199. package/dist/patterns/patient-account-settings/patient-account-settings.d.ts +94 -0
  200. package/dist/patterns/patient-account-settings/patient-account-settings.types.d.ts +91 -0
  201. package/dist/patterns/patient-check-in/index.d.ts +20 -0
  202. package/dist/patterns/patient-check-in/index.js +13 -0
  203. package/dist/patterns/patient-check-in/patient-check-in-changed.d.ts +33 -0
  204. package/dist/patterns/patient-check-in/patient-check-in-connection-notice.d.ts +29 -0
  205. package/dist/patterns/patient-check-in/patient-check-in-done.d.ts +25 -0
  206. package/dist/patterns/patient-check-in/patient-check-in-entry.d.ts +29 -0
  207. package/dist/patterns/patient-check-in/patient-check-in-hub-empty.d.ts +23 -0
  208. package/dist/patterns/patient-check-in/patient-check-in-hub.d.ts +61 -0
  209. package/dist/patterns/patient-check-in/patient-check-in-personal-data.d.ts +73 -0
  210. package/dist/patterns/patient-check-in/patient-check-in-privacy.d.ts +9 -0
  211. package/dist/patterns/patient-check-in/patient-check-in-resume.d.ts +29 -0
  212. package/dist/patterns/patient-check-in/patient-check-in-shell.d.ts +60 -0
  213. package/dist/patterns/patient-check-in/patient-check-in-types.d.ts +92 -0
  214. package/dist/patterns/patient-portal/index.d.ts +12 -0
  215. package/dist/patterns/patient-portal/index.js +13 -0
  216. package/dist/patterns/patient-portal/portal-appointments.d.ts +70 -0
  217. package/dist/patterns/patient-portal/portal-details.d.ts +148 -0
  218. package/dist/patterns/patient-portal/portal-documents.d.ts +74 -0
  219. package/dist/patterns/patient-portal/portal-format.d.ts +14 -0
  220. package/dist/patterns/patient-portal/portal-home.d.ts +71 -0
  221. package/dist/patterns/patient-portal/portal-parts.d.ts +107 -0
  222. package/dist/patterns/patient-portal/portal-shell.d.ts +84 -0
  223. package/dist/patterns/patient-portal/portal-types.d.ts +157 -0
  224. package/dist/patterns/patient-sign-in/index.d.ts +7 -0
  225. package/dist/patterns/patient-sign-in/index.js +15 -0
  226. package/dist/patterns/patient-sign-in/patient-card.d.ts +74 -0
  227. package/dist/patterns/patient-sign-in/patient-sign-in-email.d.ts +109 -0
  228. package/dist/patterns/patient-sign-in/patient-sign-in-pin.d.ts +157 -0
  229. package/dist/patterns/patient-sign-in/patient-sign-in-steps.d.ts +143 -0
  230. package/dist/patterns/registration-form/index.js +1 -1
  231. package/dist/patterns/signature-request/index.js +1 -1
  232. package/dist/patterns/signing/index.d.ts +25 -0
  233. package/dist/patterns/signing/index.js +16 -0
  234. package/dist/patterns/signing/multi-field-signer.d.ts +117 -0
  235. package/dist/patterns/signing/signing-awaiting-screen.d.ts +25 -0
  236. package/dist/patterns/signing/signing-chrome.d.ts +30 -0
  237. package/dist/patterns/signing/signing-document-screen.d.ts +87 -0
  238. package/dist/patterns/signing/signing-end-screen.d.ts +27 -0
  239. package/dist/patterns/signing/signing-finished-screen.d.ts +34 -0
  240. package/dist/patterns/signing/signing-footer.d.ts +56 -0
  241. package/dist/patterns/signing/signing-handoff-screen.d.ts +37 -0
  242. package/dist/patterns/signing/signing-message-dialog.d.ts +29 -0
  243. package/dist/patterns/signing/signing-progress-chip.d.ts +27 -0
  244. package/dist/patterns/signing/signing-roster.d.ts +44 -0
  245. package/dist/patterns/signing/signing-staff-id-confirmation.d.ts +49 -0
  246. package/dist/patterns/verify-identity/index.js +1 -1
  247. package/dist/tokens.css +1 -1
  248. package/package.json +49 -1
  249. package/dist/_chunks/appointment-card-OAOur8lH.js +0 -434
  250. package/dist/_chunks/appointment-tray-DSFqO5Rm.js +0 -193
  251. package/dist/_chunks/calendar-appointment-editor-dialog-WW6V1SGh.js +0 -13663
  252. package/dist/_chunks/document-preview-_kQ9QvZV.js +0 -291
  253. package/dist/_chunks/finished-terminal-FR8uc_Ws.js +0 -122
  254. package/dist/_chunks/is-safe-url-DkETxeHz.js +0 -7
  255. package/dist/_chunks/otp-input-gV1446Dw.js +0 -301
  256. package/dist/_chunks/session-countdown-C4tzbJVc.js +0 -223
  257. package/dist/_chunks/use-zoom-drilldown-qCX34w9I.js +0 -210
@@ -1,9 +1,10 @@
1
1
  import { c as t } from "./index-D2ZczOXr.js";
2
- import { U as c, B as s, T as i } from "./user-x-DYszNtIg.js";
2
+ import { U as c, T as s } from "./user-x-BJZg4kaP.js";
3
+ import { B as i } from "./ban-CiSCCcOE.js";
3
4
  import { C as d } from "./check-DrFSN__t.js";
4
5
  import { S as l } from "./stethoscope-sZXGC43m.js";
5
6
  import { C as e } from "./clock-Drd4Wtis.js";
6
- const T = t(
7
+ const _ = t(
7
8
  [
8
9
  "ds:relative ds:rounded-[var(--radius-lg)]",
9
10
  "ds:text-[color:var(--card-foreground)]",
@@ -28,20 +29,20 @@ const T = t(
28
29
  density: "comfortable"
29
30
  }
30
31
  }
31
- ), _ = {
32
+ ), I = {
32
33
  estimate: "info",
33
34
  accepted: "success",
34
35
  discarded: "error",
35
36
  closed: "neutral"
36
37
  }, v = {
37
- confirmed: { tone: "success", Icon: i },
38
+ confirmed: { tone: "success", Icon: s },
38
39
  waiting: { tone: "info", Icon: e },
39
40
  in_care: { tone: "accent", Icon: l },
40
41
  done: { tone: "success", Icon: d },
41
- cancelled: { tone: "error", Icon: s },
42
+ cancelled: { tone: "error", Icon: i },
42
43
  absent: { tone: "warning", Icon: c }
43
44
  };
44
- function I(r) {
45
+ function O(r) {
45
46
  return v[r] ?? { tone: "neutral", Icon: e };
46
47
  }
47
48
  const a = [
@@ -55,7 +56,7 @@ const a = [
55
56
  "var(--color-indigo-500)",
56
57
  "var(--color-orange-500)",
57
58
  "var(--color-fuchsia-500)"
58
- ], u = "var(--color-grey-700)", f = [
59
+ ], u = "var(--color-grey-700)", m = [
59
60
  "var(--color-violet-700)",
60
61
  "var(--color-purple-700)",
61
62
  "var(--color-magenta-700)",
@@ -66,26 +67,26 @@ const a = [
66
67
  "var(--color-indigo-700)",
67
68
  "var(--color-orange-700)",
68
69
  "var(--color-fuchsia-700)"
69
- ], m = "var(--color-grey-900)";
70
+ ], f = "var(--color-grey-900)";
70
71
  function n(r) {
71
72
  if (r == null) return -1;
72
73
  const o = typeof r == "number" ? r : Number.parseInt(r, 10);
73
74
  return Number.isFinite(o) ? (Math.trunc(o) % a.length + a.length) % a.length : -1;
74
75
  }
75
- function O(r) {
76
+ function C(r) {
76
77
  const o = n(r);
77
78
  return o < 0 ? u : a[o];
78
79
  }
79
- function C(r) {
80
+ function w(r) {
80
81
  const o = n(r);
81
- return o < 0 ? m : f[o];
82
+ return o < 0 ? f : m[o];
82
83
  }
83
84
  export {
84
85
  v as A,
85
- _ as C,
86
- I as a,
87
- C as b,
88
- O as c,
89
- T as e
86
+ I as C,
87
+ O as a,
88
+ w as b,
89
+ C as c,
90
+ _ as e
90
91
  };
91
- //# sourceMappingURL=entity-card-fpm-KUKc.js.map
92
+ //# sourceMappingURL=entity-card-p-LANpYt.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
@@ -0,0 +1,191 @@
1
+ import { jsx as s, jsxs as z } from "react/jsx-runtime";
2
+ import { forwardRef as K, useState as P, useRef as m, useId as Q, useEffect as h, useCallback as E } from "react";
3
+ import { useTranslation as X } from "react-i18next";
4
+ import { c as L } from "./index-D2ZczOXr.js";
5
+ import { C as D } from "./card-n6W6LW-N.js";
6
+ import { B as p } from "./button-DohK_Ak_.js";
7
+ import { u as Y } from "./use-countdown-Yd6ts0_a.js";
8
+ import { i as Z } from "./is-development-CLUAnsU7.js";
9
+ import { i as $ } from "./safe-href-5dbsfbQn.js";
10
+ import { C as ee } from "./circle-check-BN6rz4NV.js";
11
+ function I(t) {
12
+ const n = globalThis.window !== void 0 && globalThis;
13
+ return !!(n && (/Chromatic/.test(n.navigator.userAgent) || /chromatic=true/.test(n.location.href)));
14
+ }
15
+ const se = "https://www.alfadocs.com", te = 10, ne = L(
16
+ "ds:flex ds:flex-1 ds:flex-col ds:items-center ds:overflow-y-auto ds:p-[var(--spacing-lg)]"
17
+ ), _ = L("ds:size-12", {
18
+ variants: {
19
+ tone: {
20
+ success: "ds:text-[var(--success)]",
21
+ neutral: "ds:inline-flex ds:items-center ds:justify-center ds:text-[color:var(--muted-foreground)] ds:[&>svg]:size-full"
22
+ }
23
+ },
24
+ defaultVariants: { tone: "success" }
25
+ });
26
+ function B(t) {
27
+ if (typeof t != "string" || t.length === 0 || t.startsWith("//")) return !1;
28
+ if (t.startsWith("/")) return !0;
29
+ try {
30
+ const { protocol: n } = new URL(t, window.location.origin);
31
+ return n === "https:" || n === "http:";
32
+ } catch {
33
+ return !1;
34
+ }
35
+ }
36
+ const oe = K(
37
+ ({
38
+ title: t,
39
+ body: n,
40
+ icon: a,
41
+ action: e,
42
+ autoCloseSeconds: g,
43
+ redirectUrl: r,
44
+ brandUrl: l = se,
45
+ onClose: c,
46
+ countdownLabel: w,
47
+ closeNowLabel: j,
48
+ redirectingLabel: V,
49
+ focusOnMount: H = !0,
50
+ className: O,
51
+ ...W
52
+ }, M) => {
53
+ const { t: u } = X("ui"), [v, U] = P(!1), x = m(!1), y = m(null), C = Q(), f = e ? 0 : g ?? te, o = f > 0;
54
+ h(() => {
55
+ var A;
56
+ H && ((A = y.current) == null || A.focus({ preventScroll: !0 }));
57
+ }, []);
58
+ const T = E(() => {
59
+ if (!x.current) {
60
+ if (x.current = !0, U(!0), c) {
61
+ c();
62
+ return;
63
+ }
64
+ r ? B(r) && window.location.assign(r) : (window.close(), B(l) && window.location.assign(l));
65
+ }
66
+ }, [c, r, l]), { remaining: b, start: q, reset: G } = Y(f, {
67
+ autoStart: o && !I(),
68
+ onElapsed: o ? T : void 0
69
+ }), N = m(!1);
70
+ h(() => {
71
+ if (!N.current) {
72
+ N.current = !0;
73
+ return;
74
+ }
75
+ o ? I() || q() : G();
76
+ }, [f]);
77
+ const J = w ? w(b) : u("finishedTerminal.autoClose", { seconds: b }), i = e == null ? void 0 : e.onClick, k = E(() => {
78
+ i == null || i();
79
+ }, [i]), d = (e == null ? void 0 : e.href) !== void 0 && $(e.href) ? e.href : void 0, F = (e == null ? void 0 : e.href) !== void 0 && d === void 0, R = e !== void 0 && i === void 0 && d === void 0, S = e !== void 0 && g !== void 0;
80
+ return h(() => {
81
+ Z() && (F && console.warn(
82
+ "FinishedTerminal: `action.href` is not an http(s), mailto: or tel: address or a path on this site, so the button is not a link."
83
+ ), S && console.warn(
84
+ "FinishedTerminal: `autoCloseSeconds` is ignored when `action` is given; the button stands alone with no countdown."
85
+ ), R && console.warn(
86
+ "FinishedTerminal: `action` has no `onClick` and no usable `href`, so its button does nothing."
87
+ ));
88
+ }, [F, R, S]), /* @__PURE__ */ s(
89
+ "div",
90
+ {
91
+ ref: M,
92
+ "data-component": "finished-terminal",
93
+ className: ne({ className: O }),
94
+ ...W,
95
+ children: /* @__PURE__ */ s(
96
+ D,
97
+ {
98
+ variant: "elevated",
99
+ className: "ds:my-auto ds:min-w-0 ds:[inline-size:100%] ds:max-w-[28rem] ds:text-center",
100
+ children: /* @__PURE__ */ s(D.Body, { children: /* @__PURE__ */ z("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-md)]", children: [
101
+ a === void 0 ? /* @__PURE__ */ s(
102
+ ee,
103
+ {
104
+ "aria-hidden": "true",
105
+ className: _({ tone: "success" })
106
+ }
107
+ ) : a ? /* @__PURE__ */ s(
108
+ "span",
109
+ {
110
+ "aria-hidden": "true",
111
+ className: _({ tone: "neutral" }),
112
+ children: a
113
+ }
114
+ ) : null,
115
+ /* @__PURE__ */ s(
116
+ "h1",
117
+ {
118
+ ref: y,
119
+ tabIndex: -1,
120
+ "aria-describedby": o && !v ? C : void 0,
121
+ className: "type-title-card ds:m-0 ds:outline-none",
122
+ children: t
123
+ }
124
+ ),
125
+ /* @__PURE__ */ s("p", { className: "type-body ds:m-0 ds:text-[var(--muted-foreground)]", children: n }),
126
+ e && d !== void 0 ? /* @__PURE__ */ s(
127
+ p,
128
+ {
129
+ asChild: !0,
130
+ intent: "primary",
131
+ size: "lg",
132
+ loading: e.loading,
133
+ "data-action": "next-step",
134
+ children: /* @__PURE__ */ s("a", { href: d, onClick: k, children: e.label })
135
+ }
136
+ ) : e ? /* @__PURE__ */ s(
137
+ p,
138
+ {
139
+ type: "button",
140
+ intent: "primary",
141
+ size: "lg",
142
+ loading: e.loading,
143
+ "data-action": "next-step",
144
+ onClick: k,
145
+ children: e.label
146
+ }
147
+ ) : null,
148
+ o && v ? (
149
+ // Mounts once when closing begins → role="status" announces the
150
+ // hand-off exactly once (no churn).
151
+ /* @__PURE__ */ s(
152
+ "p",
153
+ {
154
+ role: "status",
155
+ className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
156
+ children: V ?? u("finishedTerminal.redirecting")
157
+ }
158
+ )
159
+ ) : o ? /* @__PURE__ */ z("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
160
+ /* @__PURE__ */ s(
161
+ "p",
162
+ {
163
+ id: C,
164
+ className: "type-body-sm ds:m-0 ds:text-[var(--muted-foreground)]",
165
+ children: J
166
+ }
167
+ ),
168
+ /* @__PURE__ */ s(
169
+ p,
170
+ {
171
+ intent: "secondary",
172
+ size: "lg",
173
+ type: "button",
174
+ "data-action": "close-now",
175
+ onClick: T,
176
+ children: j ?? u("finishedTerminal.closeNow")
177
+ }
178
+ )
179
+ ] }) : null
180
+ ] }) })
181
+ }
182
+ )
183
+ }
184
+ );
185
+ }
186
+ );
187
+ oe.displayName = "FinishedTerminal";
188
+ export {
189
+ oe as F
190
+ };
191
+ //# sourceMappingURL=finished-terminal-unDnXT4j.js.map