@alfadocs/ui-kit 1.134.0 → 1.136.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 (205) hide show
  1. package/dist/_chunks/{ai-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
  2. package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
  3. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
  4. package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
  5. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  9. package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
  11. package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
  12. package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
  13. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
  14. package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
  15. package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
  16. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  17. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
  18. package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
  19. package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
  20. package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
  21. package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
  22. package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
  23. package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
  24. package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
  25. package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
  26. package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
  27. package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
  28. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  29. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  30. package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
  31. package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
  32. package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
  33. package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
  34. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  35. package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
  36. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  37. package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
  38. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
  39. package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
  40. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
  41. package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
  42. package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
  43. package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
  44. package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
  45. package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
  46. package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
  47. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  48. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
  49. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  50. package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
  51. package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
  52. package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
  53. package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
  54. package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
  55. package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
  56. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  57. package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
  58. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
  59. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
  60. package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
  61. package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
  62. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
  63. package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
  64. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  65. package/dist/agent-catalog.json +528 -2
  66. package/dist/agent-i18n/en.json +51 -1
  67. package/dist/browser-support.js +1 -1
  68. package/dist/components/_shared/sms-segments.d.ts +43 -0
  69. package/dist/components/ai-prompt-input/index.js +1 -1
  70. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  71. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
  72. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  73. package/dist/components/ai-summary-panel/index.js +6 -0
  74. package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
  75. package/dist/components/appointment-card/index.js +2 -2
  76. package/dist/components/appointment-details-panel/index.js +1 -1
  77. package/dist/components/appointment-peek/index.js +1 -1
  78. package/dist/components/appointment-timeline/index.js +1 -1
  79. package/dist/components/audio-recorder/index.js +1 -1
  80. package/dist/components/bill-line-table/index.js +1 -1
  81. package/dist/components/bill-table/index.js +1 -1
  82. package/dist/components/bishop-score/index.js +1 -1
  83. package/dist/components/booking/index.js +1 -1
  84. package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
  85. package/dist/components/call-status-chip/index.d.ts +3 -0
  86. package/dist/components/call-status-chip/index.js +5 -0
  87. package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
  88. package/dist/components/calls-panel/calls-panel.d.ts +153 -0
  89. package/dist/components/calls-panel/index.d.ts +4 -0
  90. package/dist/components/calls-panel/index.js +6 -0
  91. package/dist/components/chat-container/chat-container.d.ts +7 -0
  92. package/dist/components/chat-container/index.js +1 -1
  93. package/dist/components/chat-input/chat-input.d.ts +20 -0
  94. package/dist/components/chat-input/index.js +1 -1
  95. package/dist/components/chat-message/index.js +1 -1
  96. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  97. package/dist/components/communications-panel/communications-panel.d.ts +148 -0
  98. package/dist/components/communications-panel/index.d.ts +6 -0
  99. package/dist/components/communications-panel/index.js +7 -0
  100. package/dist/components/data-grid/index.js +2 -2
  101. package/dist/components/data-table/index.js +2 -2
  102. package/dist/components/document-preview/index.js +1 -1
  103. package/dist/components/entity-summary/entity-summary.d.ts +37 -1
  104. package/dist/components/entity-summary/index.js +1 -1
  105. package/dist/components/file-manager/index.js +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/heatmap/index.js +1 -1
  108. package/dist/components/index.d.ts +4 -0
  109. package/dist/components/invoice-upload-list/index.js +1 -1
  110. package/dist/components/muscle-scheme/index.js +1 -1
  111. package/dist/components/notes-panel/index.js +1 -1
  112. package/dist/components/optical-prescription/index.js +1 -1
  113. package/dist/components/patient-details/index.js +1 -1
  114. package/dist/components/patient-summary-card/index.js +1 -1
  115. package/dist/components/patient-table/index.js +1 -1
  116. package/dist/components/pregnancy-dating/index.js +1 -1
  117. package/dist/components/rich-text-editor/index.js +1 -1
  118. package/dist/components/select/index.js +1 -1
  119. package/dist/components/select/select.d.ts +8 -0
  120. package/dist/components/session-countdown/index.js +1 -1
  121. package/dist/components/skeleton-scheme/index.js +1 -1
  122. package/dist/components/tabs/index.js +1 -1
  123. package/dist/components/task-editor/index.js +1 -1
  124. package/dist/components/tasks-panel/index.js +1 -1
  125. package/dist/components/unit-converter/index.js +1 -1
  126. package/dist/components/voice-control-panel/index.js +1 -1
  127. package/dist/components/workflow-status/index.js +1 -1
  128. package/dist/core.css +1 -1
  129. package/dist/host-compat.css +13 -4
  130. package/dist/i18n/locales/ar.d.ts +162 -0
  131. package/dist/i18n/locales/ar.js +163 -0
  132. package/dist/i18n/locales/de.d.ts +162 -0
  133. package/dist/i18n/locales/de.js +163 -0
  134. package/dist/i18n/locales/el.d.ts +162 -0
  135. package/dist/i18n/locales/el.js +163 -0
  136. package/dist/i18n/locales/en.d.ts +162 -0
  137. package/dist/i18n/locales/en.js +163 -0
  138. package/dist/i18n/locales/es.d.ts +162 -0
  139. package/dist/i18n/locales/es.js +163 -0
  140. package/dist/i18n/locales/fr.d.ts +162 -0
  141. package/dist/i18n/locales/fr.js +163 -0
  142. package/dist/i18n/locales/hi.d.ts +162 -0
  143. package/dist/i18n/locales/hi.js +163 -0
  144. package/dist/i18n/locales/it.d.ts +162 -0
  145. package/dist/i18n/locales/it.js +163 -0
  146. package/dist/i18n/locales/ja.d.ts +162 -0
  147. package/dist/i18n/locales/ja.js +163 -0
  148. package/dist/i18n/locales/nl.d.ts +162 -0
  149. package/dist/i18n/locales/nl.js +163 -0
  150. package/dist/i18n/locales/pl.d.ts +162 -0
  151. package/dist/i18n/locales/pl.js +163 -0
  152. package/dist/i18n/locales/pt.d.ts +162 -0
  153. package/dist/i18n/locales/pt.js +163 -0
  154. package/dist/i18n/locales/ro.d.ts +162 -0
  155. package/dist/i18n/locales/ro.js +163 -0
  156. package/dist/i18n/locales/ru.d.ts +162 -0
  157. package/dist/i18n/locales/ru.js +163 -0
  158. package/dist/i18n/locales/sq.d.ts +162 -0
  159. package/dist/i18n/locales/sq.js +163 -0
  160. package/dist/i18n/locales/sv.d.ts +162 -0
  161. package/dist/i18n/locales/sv.js +163 -0
  162. package/dist/i18n/locales/tr.d.ts +162 -0
  163. package/dist/i18n/locales/tr.js +163 -0
  164. package/dist/i18n/locales/zh.d.ts +162 -0
  165. package/dist/i18n/locales/zh.js +163 -0
  166. package/dist/index.js +905 -893
  167. package/dist/locales/ar.json +162 -0
  168. package/dist/locales/de.json +162 -0
  169. package/dist/locales/el.json +162 -0
  170. package/dist/locales/en.json +162 -0
  171. package/dist/locales/es.json +162 -0
  172. package/dist/locales/fr.json +162 -0
  173. package/dist/locales/hi.json +162 -0
  174. package/dist/locales/it.json +162 -0
  175. package/dist/locales/ja.json +162 -0
  176. package/dist/locales/nl.json +162 -0
  177. package/dist/locales/pl.json +162 -0
  178. package/dist/locales/pt.json +162 -0
  179. package/dist/locales/ro.json +162 -0
  180. package/dist/locales/ru.json +162 -0
  181. package/dist/locales/sq.json +162 -0
  182. package/dist/locales/sv.json +162 -0
  183. package/dist/locales/tr.json +162 -0
  184. package/dist/locales/zh.json +162 -0
  185. package/dist/patterns/alia-assistant/index.js +1 -1
  186. package/dist/patterns/anamnesis/index.js +1 -1
  187. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  188. package/dist/patterns/calendar/index.js +1 -1
  189. package/dist/patterns/patient-account-settings/index.js +1 -1
  190. package/dist/patterns/patient-check-in/index.js +1 -1
  191. package/dist/patterns/patient-portal/index.js +2 -2
  192. package/dist/patterns/patient-sign-in/index.js +2 -2
  193. package/dist/patterns/registration-form/index.js +1 -1
  194. package/dist/patterns/signature-request/index.js +1 -1
  195. package/dist/patterns/signing/index.d.ts +1 -0
  196. package/dist/patterns/signing/index.js +1 -1
  197. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  198. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  199. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  200. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  201. package/dist/tokens.css +1 -1
  202. package/package.json +17 -1
  203. package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
  204. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  205. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -1,35 +1,25 @@
1
1
  import { jsxs as R, jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as W, useEffect as h, useMemo as v, useRef as j, useState as nn } from "react";
3
- import { c as on } from "./index-D2ZczOXr.js";
4
- import { useTranslation as en } from "react-i18next";
2
+ import { forwardRef as E, useEffect as h, useMemo as v, useRef as j, useState as W } from "react";
3
+ import { c as nn } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as on } from "react-i18next";
5
5
  import { B as rn } from "./button-DohK_Ak_.js";
6
- import { P as tn } from "./progress-D_g_Sl2g.js";
7
- import { L as sn } from "./live-region-C41SO3cA.js";
8
- import { u as an } from "./registry-DvAUVLHh.js";
9
- import { c as z } from "./createLucideIcon-DhHxpK9K.js";
6
+ import { P as en } from "./progress-D_g_Sl2g.js";
7
+ import { L as tn } from "./live-region-C41SO3cA.js";
8
+ import { u as sn } from "./registry-DvAUVLHh.js";
9
+ import { C as an } from "./circle-x-W8Enq3i4.js";
10
10
  import { T as dn } from "./triangle-alert-CBnO6nq_.js";
11
+ import { c as cn } from "./createLucideIcon-DhHxpK9K.js";
11
12
  /**
12
13
  * @license lucide-react v1.22.0 - ISC
13
14
  *
14
15
  * This source code is licensed under the ISC license.
15
16
  * See the LICENSE file in the root directory of this source tree.
16
17
  */
17
- const cn = [
18
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
19
- ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
20
- ["path", { d: "m9 9 6 6", key: "z0biqf" }]
21
- ], ln = z("circle-x", cn);
22
- /**
23
- * @license lucide-react v1.22.0 - ISC
24
- *
25
- * This source code is licensed under the ISC license.
26
- * See the LICENSE file in the root directory of this source tree.
27
- */
28
- const un = [
18
+ const ln = [
29
19
  ["line", { x1: "10", x2: "14", y1: "2", y2: "2", key: "14vaq8" }],
30
20
  ["line", { x1: "12", x2: "15", y1: "14", y2: "11", key: "17fdiu" }],
31
21
  ["circle", { cx: "12", cy: "14", r: "8", key: "1e1u0o" }]
32
- ], mn = z("timer", un), fn = {
22
+ ], un = cn("timer", ln), mn = {
33
23
  id: "session-countdown",
34
24
  capabilities: [],
35
25
  state: {},
@@ -41,7 +31,7 @@ const un = [
41
31
  description: 'Marks the element as a kit SessionCountdown banner. The root also emits `data-tone="running" | "warning" | "expired"` (derived from the remaining time). When the session has expired and the host passes onRestart, the only button carries data-action="restart-session"; it only calls the host. The accessible remaining-time announcement is surfaced via the region\'s aria-label and a nested polite live region.'
42
32
  }
43
33
  }
44
- }, b = 1e3, C = 60 * b, wn = 15 * C, pn = 2 * C, gn = on(
34
+ }, b = 1e3, y = 60 * b, fn = 15 * y, wn = 2 * y, pn = nn(
45
35
  [
46
36
  "ds:break-words",
47
37
  "ds:flex ds:w-full ds:flex-col",
@@ -83,22 +73,22 @@ const un = [
83
73
  tone: "running"
84
74
  }
85
75
  }
86
- ), vn = {
76
+ ), gn = {
87
77
  sm: "ds:size-4",
88
78
  md: "ds:size-5",
89
79
  lg: "ds:size-6"
90
80
  };
91
- function hn(n, o) {
81
+ function vn(n, o) {
92
82
  return n <= 0 ? "expired" : n <= o ? "warning" : "running";
93
83
  }
94
- function bn(n) {
95
- return n <= 0 ? 0 : n <= 30 * b ? 10 : n <= 60 * b ? 30 : Math.floor(n / C) * 60;
84
+ function hn(n) {
85
+ return n <= 0 ? 0 : n <= 30 * b ? 10 : n <= 60 * b ? 30 : Math.floor(n / y) * 60;
96
86
  }
97
- function xn(n) {
87
+ function bn(n) {
98
88
  return n instanceof Date ? n.getTime() : typeof n == "number" ? n : new Date(n).getTime();
99
89
  }
100
- function yn(n, o, u) {
101
- const [x, i] = nn(() => Date.now()), m = n !== void 0;
90
+ function xn(n, o, u) {
91
+ const [x, i] = W(() => Date.now()), m = n !== void 0;
102
92
  return h(() => {
103
93
  if (m || o === void 0 || (i(Date.now()), o - Date.now() <= 0)) return;
104
94
  const c = window.setInterval(
@@ -111,72 +101,72 @@ function yn(n, o, u) {
111
101
  return () => window.clearInterval(c);
112
102
  }, [m, o, u]), m ? Math.max(0, n) : o === void 0 ? 0 : Math.max(0, o - x);
113
103
  }
114
- const Cn = W(
104
+ const Cn = E(
115
105
  ({
116
106
  remainingMs: n,
117
107
  expiresAt: o,
118
- totalMs: u = wn,
119
- warnAtMs: x = pn,
108
+ totalMs: u = fn,
109
+ warnAtMs: x = wn,
120
110
  size: i = "md",
121
111
  showProgress: m = !1,
122
112
  onExpire: c,
123
113
  onRestart: f,
124
114
  restarting: A = !1,
125
115
  tickMs: F = 1e3,
126
- locale: B,
127
- label: O,
128
- messages: e,
129
- restartLabel: $,
116
+ locale: z,
117
+ label: B,
118
+ messages: r,
119
+ restartLabel: O,
130
120
  announceWarning: p = !1,
131
121
  className: U,
132
122
  id: _,
133
- ...q
123
+ ...$
134
124
  }, P) => {
135
125
  var I;
136
- const { t: r, i18n: V } = en("ui"), N = B ?? V.language ?? "en";
126
+ const { t: e, i18n: V } = on("ui"), S = z ?? V.language ?? "en";
137
127
  h(() => {
138
128
  }, [n, o]);
139
- const H = v(
140
- () => n === void 0 && o !== void 0 ? xn(o) : void 0,
129
+ const q = v(
130
+ () => n === void 0 && o !== void 0 ? bn(o) : void 0,
141
131
  [n, o]
142
- ), l = yn(n, H, F), t = hn(l, x), s = t === "expired", g = j(!1);
132
+ ), l = xn(n, q, F), t = vn(l, x), s = t === "expired", g = j(!1);
143
133
  h(() => {
144
134
  l <= 0 && !g.current && (g.current = !0, c == null || c()), l > 0 && g.current && (g.current = !1);
145
135
  }, [l, c]);
146
- const y = v(
147
- () => new Intl.NumberFormat(N, { maximumFractionDigits: 0 }),
148
- [N]
149
- ), S = Math.ceil(l / b), T = Math.floor(S / 60), k = S % 60, L = T > 0 ? r("sessionCountdown.timeMinutesSeconds", {
150
- minutes: y.format(T),
151
- seconds: y.format(k)
152
- }) : r("sessionCountdown.timeSecondsOnly", {
153
- seconds: y.format(k)
154
- }), a = bn(l), w = v(() => a <= 0 ? r("sessionCountdown.expiredAnnouncement") : a < 60 ? r("sessionCountdown.secondsRemaining", { count: a }) : r("sessionCountdown.minutesRemaining", { count: a / 60 }), [a, r]), K = r("sessionCountdown.expiredAnnouncement"), X = O ?? (s ? void 0 : r("sessionCountdown.ariaLabel", { time: w })), Z = gn({
136
+ const C = v(
137
+ () => new Intl.NumberFormat(S, { maximumFractionDigits: 0 }),
138
+ [S]
139
+ ), T = Math.ceil(l / b), N = Math.floor(T / 60), k = T % 60, L = N > 0 ? e("sessionCountdown.timeMinutesSeconds", {
140
+ minutes: C.format(N),
141
+ seconds: C.format(k)
142
+ }) : e("sessionCountdown.timeSecondsOnly", {
143
+ seconds: C.format(k)
144
+ }), a = hn(l), w = v(() => a <= 0 ? e("sessionCountdown.expiredAnnouncement") : a < 60 ? e("sessionCountdown.secondsRemaining", { count: a }) : e("sessionCountdown.minutesRemaining", { count: a / 60 }), [a, e]), H = e("sessionCountdown.expiredAnnouncement"), K = B ?? (s ? void 0 : e("sessionCountdown.ariaLabel", { time: w })), X = pn({
155
145
  size: i,
156
146
  tone: t,
157
147
  className: U
158
- }), G = s ? "alert" : "timer";
159
- an(fn, null, _);
160
- const J = s ? ln : t === "warning" ? dn : mn, Q = Math.min(u, Math.max(0, u - l)), Y = s ? "sessionCountdown.expired" : t === "warning" ? "sessionCountdown.warning" : "sessionCountdown.remainingBanner", M = (s ? e == null ? void 0 : e.expired : t === "warning" ? e == null ? void 0 : e.warning : (I = e == null ? void 0 : e.running) == null ? void 0 : I.call(e, L)) ?? r(Y, { time: L }), D = j(!1);
148
+ }), Z = s ? "alert" : "timer";
149
+ sn(mn, null, _);
150
+ const G = s ? an : t === "warning" ? dn : un, J = Math.min(u, Math.max(0, u - l)), Q = s ? "sessionCountdown.expired" : t === "warning" ? "sessionCountdown.warning" : "sessionCountdown.remainingBanner", M = (s ? r == null ? void 0 : r.expired : t === "warning" ? r == null ? void 0 : r.warning : (I = r == null ? void 0 : r.running) == null ? void 0 : I.call(r, L)) ?? e(Q, { time: L }), D = j(!1);
161
151
  h(() => {
162
152
  p && (D.current = t === "warning" && a > 0);
163
153
  }, [p, t, a]);
164
- const E = v(() => s ? "" : p ? t === "running" ? "" : D.current ? w : `${M} ${w}` : w, [s, p, t, a, w]);
154
+ const Y = v(() => s ? "" : p ? t === "running" ? "" : D.current ? w : `${M} ${w}` : w, [s, p, t, a, w]);
165
155
  return /* @__PURE__ */ R(
166
156
  "div",
167
157
  {
168
158
  ref: P,
169
159
  id: _,
170
- role: G,
171
- "aria-label": X,
160
+ role: Z,
161
+ "aria-label": K,
172
162
  "data-component": "session-countdown",
173
163
  "data-tone": t,
174
- className: Z,
175
- ...q,
164
+ className: X,
165
+ ...$,
176
166
  children: [
177
- s ? /* @__PURE__ */ d("span", { className: "ds:sr-only", children: K }) : null,
167
+ s ? /* @__PURE__ */ d("span", { className: "ds:sr-only", children: H }) : null,
178
168
  /* @__PURE__ */ R("div", { className: "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]", children: [
179
- /* @__PURE__ */ d("span", { className: `ds:shrink-0 ${vn[i]}`, children: /* @__PURE__ */ d(J, { "aria-hidden": "true", className: "ds:size-full" }) }),
169
+ /* @__PURE__ */ d("span", { className: `ds:shrink-0 ${gn[i]}`, children: /* @__PURE__ */ d(G, { "aria-hidden": "true", className: "ds:size-full" }) }),
180
170
  /* @__PURE__ */ d(
181
171
  "p",
182
172
  {
@@ -198,7 +188,7 @@ const Cn = W(
198
188
  "data-action": "restart-session",
199
189
  onClick: f,
200
190
  className: "ds:min-h-[var(--min-target-size)] ds:shrink-0",
201
- children: $ ?? r("sessionCountdown.restart")
191
+ children: O ?? e("sessionCountdown.restart")
202
192
  }
203
193
  ) : null
204
194
  ] }),
@@ -208,17 +198,17 @@ const Cn = W(
208
198
  // is aria-hidden: the timer region already conveys remaining
209
199
  // time, so a second progressbar would double-announce.
210
200
  /* @__PURE__ */ d("div", { "aria-hidden": "true", className: "ds:w-full", children: /* @__PURE__ */ d(
211
- tn,
201
+ en,
212
202
  {
213
- value: Q,
203
+ value: J,
214
204
  max: u,
215
205
  shape: "bar",
216
206
  size: i,
217
- ariaLabel: r("sessionCountdown.progressLabel")
207
+ ariaLabel: e("sessionCountdown.progressLabel")
218
208
  }
219
209
  ) })
220
210
  ) : null,
221
- /* @__PURE__ */ d(sn, { politeness: "polite", atomic: !0, children: E })
211
+ /* @__PURE__ */ d(tn, { politeness: "polite", atomic: !0, children: Y })
222
212
  ]
223
213
  }
224
214
  );
@@ -227,6 +217,6 @@ const Cn = W(
227
217
  Cn.displayName = "SessionCountdown";
228
218
  export {
229
219
  Cn as S,
230
- fn as s
220
+ mn as s
231
221
  };
232
- //# sourceMappingURL=session-countdown-DOx1IBUB.js.map
222
+ //# sourceMappingURL=session-countdown-StcyUU5O.js.map
@@ -7,7 +7,7 @@ import { S as zi } from "./spinner-CoflYlEx.js";
7
7
  import { S as Ie } from "./skeleton-tTWJpvAq.js";
8
8
  import { B as L } from "./button-DohK_Ak_.js";
9
9
  import { I as xn } from "./icon-button-S8_weU3g.js";
10
- import { s as Fi, S as Ue } from "./select-uESzXTX6.js";
10
+ import { s as Fi, S as Ue } from "./select-CIXKyUMw.js";
11
11
  import { S as ba } from "./switch-DO6uC4HJ.js";
12
12
  import { A as j } from "./alert-C4WKViaS.js";
13
13
  import { S as Ra } from "./separator-Bdc9bqoJ.js";
@@ -2787,4 +2787,4 @@ Or.displayName = "SignatureRequestModal";
2787
2787
  export {
2788
2788
  Or as S
2789
2789
  };
2790
- //# sourceMappingURL=signature-request-CHsM_iWi.js.map
2790
+ //# sourceMappingURL=signature-request-vJDSHZld.js.map