@alfadocs/ui-kit 1.142.0 → 1.143.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 (165) hide show
  1. package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
  2. package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
  3. package/dist/_chunks/{alia-sidebar-uxTsUbIt.js → alia-sidebar-AKz42_XE.js} +2 -2
  4. package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
  5. package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-wUl7oXBO.js} +2 -2
  6. package/dist/_chunks/{appointment-card-C0UFYFLZ.js → appointment-card-HOZrABrQ.js} +2 -2
  7. package/dist/_chunks/{appointment-details-panel.history-BUXwhill.js → appointment-details-panel.history-B8R8XfGe.js} +36 -29
  8. package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
  9. package/dist/_chunks/{appointment-tray-dfgScPcC.js → appointment-tray-D8k5YKLU.js} +2 -2
  10. package/dist/_chunks/{balance-badge-cell-CXi6moSa.js → balance-badge-cell-10BdaOQ8.js} +4 -4
  11. package/dist/_chunks/{calendar-appointment-editor-dialog-BDc8Q4Ji.js → calendar-appointment-editor-dialog-9kVppi9f.js} +8 -8
  12. package/dist/_chunks/{calendar-waiting-list-panel-js-0KEh8.js → calendar-waiting-list-panel-CSFJw5np.js} +2 -2
  13. package/dist/_chunks/{calendar.sheets-sBWH7Jxn.js → calendar.sheets-DZh3p8HE.js} +4 -4
  14. package/dist/_chunks/{care-plan-card-TZH6C60K.js → care-plan-card-CkRqA58O.js} +3 -3
  15. package/dist/_chunks/{care-plan-entry-card-CufvXAWa.js → care-plan-entry-card-DurPuYAP.js} +2 -2
  16. package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
  17. package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
  18. package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
  19. package/dist/_chunks/{communications-panel-EP27FN7e.js → communications-panel-MgAuWYBy.js} +3 -3
  20. package/dist/_chunks/{control-room-rail-7SidoPJH.js → control-room-rail-DBmNpbDE.js} +2 -2
  21. package/dist/_chunks/{data-table-Bq1FRBGB.js → data-table-Huk4CNHs.js} +115 -115
  22. package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
  23. package/dist/_chunks/{file-manager-ChQSjfU8.js → file-manager-kdPsJq_k.js} +2 -2
  24. package/dist/_chunks/{heatmap-D0OGx-70.js → heatmap-Cb4JSpv_.js} +2 -2
  25. package/dist/_chunks/{link-cell-renderer-ByOAy2Sb.js → link-cell-renderer-Bt_sl4iP.js} +3 -3
  26. package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
  27. package/dist/_chunks/{message-tray-g6dp_AAt.js → message-tray-BHaE254g.js} +2 -2
  28. package/dist/_chunks/{notes-panel-CtMLUJOe.js → notes-panel-DCKbuZqS.js} +399 -397
  29. package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
  30. package/dist/_chunks/{notification-tray-DqCYs9Bw.js → notification-tray-CnPV8jDA.js} +2 -2
  31. package/dist/_chunks/{patient-account-settings-e8Wp2g-F.js → patient-account-settings-BQ9bMsJS.js} +2 -2
  32. package/dist/_chunks/{patient-check-in-resume-_nwf9gpx.js → patient-check-in-resume-v5lYhMsh.js} +4 -4
  33. package/dist/_chunks/{portal-details-D9oF6FUV.js → portal-details-CwX3VNxh.js} +2 -2
  34. package/dist/_chunks/{portal-documents-DSiLSave.js → portal-documents-BWdXhWpZ.js} +2 -2
  35. package/dist/_chunks/{portal-parts-8qrUM-uK.js → portal-parts-DbCMuZVl.js} +2 -2
  36. package/dist/_chunks/{prescription-history-DFcPXYdF.js → prescription-history-DPjqflwJ.js} +2 -2
  37. package/dist/_chunks/{product-hub-panel-BPpmVDm5.js → product-hub-panel-DiWjSIR2.js} +2 -2
  38. package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
  39. package/dist/_chunks/{registration-form-DRGMzq9V.js → registration-form-BEsIjznv.js} +2 -2
  40. package/dist/_chunks/{rich-text-editor-CQ54ybTB.js → rich-text-editor-DoCaj0qc.js} +2 -2
  41. package/dist/_chunks/{sync-tray-BTmveFGE.js → sync-tray-BgrO4QjH.js} +55 -53
  42. package/dist/_chunks/{tasks-panel-Dmp49cBo.js → tasks-panel-CDFHAHrN.js} +137 -137
  43. package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
  44. package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
  45. package/dist/_chunks/{tool-rail-CKOuVHUQ.js → tool-rail-mWmYNRCV.js} +56 -56
  46. package/dist/_chunks/{use-appointment-details-read-DIRHedaM.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
  47. package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
  48. package/dist/_chunks/{voice-control-panel-CfBUrzhJ.js → voice-control-panel-DqvvZN2A.js} +2 -2
  49. package/dist/_chunks/{workflow-map-CsfRHhlz.js → workflow-map-CwfLHuiD.js} +2 -2
  50. package/dist/agent-catalog.json +10 -7
  51. package/dist/agent-i18n/en.json +3 -3
  52. package/dist/appointment-editor-panel/index.js +1 -1
  53. package/dist/browser-support.js +1 -1
  54. package/dist/components/ai-permission-notice/index.js +1 -1
  55. package/dist/components/ai-summary-panel/index.js +1 -1
  56. package/dist/components/anamnesis-card/index.js +1 -1
  57. package/dist/components/appointment-card/index.js +2 -2
  58. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
  59. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
  60. package/dist/components/appointment-details-panel/index.js +1 -1
  61. package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
  62. package/dist/components/appointment-timeline/index.js +1 -1
  63. package/dist/components/care-plan-card/index.js +1 -1
  64. package/dist/components/care-plan-entry-card/index.js +1 -1
  65. package/dist/components/care-plan-header/index.js +1 -1
  66. package/dist/components/chat-message/index.js +1 -1
  67. package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
  68. package/dist/components/clinical-note-card/index.js +1 -1
  69. package/dist/components/communications-panel/index.js +1 -1
  70. package/dist/components/control-room-rail/index.js +1 -1
  71. package/dist/components/data-table/index.js +2 -2
  72. package/dist/components/entity-summary/index.js +1 -1
  73. package/dist/components/file-manager/index.js +1 -1
  74. package/dist/components/heatmap/index.js +1 -1
  75. package/dist/components/message-card/index.js +1 -1
  76. package/dist/components/message-tray/index.js +1 -1
  77. package/dist/components/notes-panel/index.js +1 -1
  78. package/dist/components/notes-panel/notes-panel.d.ts +5 -4
  79. package/dist/components/notification-card/index.js +1 -1
  80. package/dist/components/notification-tray/index.js +1 -1
  81. package/dist/components/patient-table/index.js +1 -1
  82. package/dist/components/product-hub-tray/index.js +1 -1
  83. package/dist/components/recaptcha-widget/index.js +1 -1
  84. package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
  85. package/dist/components/rich-text-editor/index.js +1 -1
  86. package/dist/components/sync-tray/index.js +1 -1
  87. package/dist/components/tasks-panel/index.js +1 -1
  88. package/dist/components/timeline/index.js +1 -1
  89. package/dist/components/timestamp/index.js +1 -1
  90. package/dist/components/timestamp/timestamp.d.ts +6 -0
  91. package/dist/components/tool-rail/index.js +1 -1
  92. package/dist/components/voice-control-panel/index.js +1 -1
  93. package/dist/components/workflow/index.js +1 -1
  94. package/dist/find-free-slots-panel/index.js +1 -1
  95. package/dist/hooks/index.d.ts +2 -0
  96. package/dist/hooks/index.js +58 -56
  97. package/dist/hooks/use-resolved-theme.d.ts +20 -0
  98. package/dist/i18n/locales/ar.d.ts +5 -0
  99. package/dist/i18n/locales/ar.js +5 -0
  100. package/dist/i18n/locales/de.d.ts +5 -0
  101. package/dist/i18n/locales/de.js +5 -0
  102. package/dist/i18n/locales/el.d.ts +5 -0
  103. package/dist/i18n/locales/el.js +5 -0
  104. package/dist/i18n/locales/en.d.ts +5 -0
  105. package/dist/i18n/locales/en.js +5 -0
  106. package/dist/i18n/locales/es.d.ts +5 -0
  107. package/dist/i18n/locales/es.js +5 -0
  108. package/dist/i18n/locales/fr.d.ts +5 -0
  109. package/dist/i18n/locales/fr.js +5 -0
  110. package/dist/i18n/locales/hi.d.ts +5 -0
  111. package/dist/i18n/locales/hi.js +5 -0
  112. package/dist/i18n/locales/it.d.ts +5 -0
  113. package/dist/i18n/locales/it.js +5 -0
  114. package/dist/i18n/locales/ja.d.ts +5 -0
  115. package/dist/i18n/locales/ja.js +5 -0
  116. package/dist/i18n/locales/nl.d.ts +5 -0
  117. package/dist/i18n/locales/nl.js +5 -0
  118. package/dist/i18n/locales/pl.d.ts +5 -0
  119. package/dist/i18n/locales/pl.js +5 -0
  120. package/dist/i18n/locales/pt.d.ts +5 -0
  121. package/dist/i18n/locales/pt.js +5 -0
  122. package/dist/i18n/locales/ro.d.ts +5 -0
  123. package/dist/i18n/locales/ro.js +5 -0
  124. package/dist/i18n/locales/ru.d.ts +5 -0
  125. package/dist/i18n/locales/ru.js +5 -0
  126. package/dist/i18n/locales/sq.d.ts +5 -0
  127. package/dist/i18n/locales/sq.js +5 -0
  128. package/dist/i18n/locales/sv.d.ts +5 -0
  129. package/dist/i18n/locales/sv.js +5 -0
  130. package/dist/i18n/locales/tr.d.ts +5 -0
  131. package/dist/i18n/locales/tr.js +5 -0
  132. package/dist/i18n/locales/zh.d.ts +5 -0
  133. package/dist/i18n/locales/zh.js +5 -0
  134. package/dist/index.js +44 -44
  135. package/dist/locales/ar.json +5 -0
  136. package/dist/locales/de.json +5 -0
  137. package/dist/locales/el.json +5 -0
  138. package/dist/locales/en.json +5 -0
  139. package/dist/locales/es.json +5 -0
  140. package/dist/locales/fr.json +5 -0
  141. package/dist/locales/hi.json +5 -0
  142. package/dist/locales/it.json +5 -0
  143. package/dist/locales/ja.json +5 -0
  144. package/dist/locales/nl.json +5 -0
  145. package/dist/locales/pl.json +5 -0
  146. package/dist/locales/pt.json +5 -0
  147. package/dist/locales/ro.json +5 -0
  148. package/dist/locales/ru.json +5 -0
  149. package/dist/locales/sq.json +5 -0
  150. package/dist/locales/sv.json +5 -0
  151. package/dist/locales/tr.json +5 -0
  152. package/dist/locales/zh.json +5 -0
  153. package/dist/online-bookings-panel/index.js +1 -1
  154. package/dist/patterns/alia-assistant/index.js +1 -1
  155. package/dist/patterns/anamnesis/index.js +1 -1
  156. package/dist/patterns/calendar/index.js +2 -2
  157. package/dist/patterns/patient-account-settings/index.js +1 -1
  158. package/dist/patterns/patient-check-in/index.js +1 -1
  159. package/dist/patterns/patient-portal/index.js +2 -2
  160. package/dist/patterns/prescription/index.js +1 -1
  161. package/dist/patterns/registration-form/index.js +1 -1
  162. package/dist/waiting-list-panel/index.js +2 -2
  163. package/package.json +1 -1
  164. package/dist/_chunks/appointment-timeline-BK68CCBl.js +0 -689
  165. package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
@@ -1,4 +1,4 @@
1
- import { jsxs as d, Fragment as q, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as q, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as xe, useId as be, useMemo as w, useState as we, useRef as c, useCallback as Te, useImperativeHandle as Ne } from "react";
3
3
  import * as T from "@radix-ui/react-popover";
4
4
  import { c as Z } from "./index-D2ZczOXr.js";
@@ -9,13 +9,13 @@ import { u as Re } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
9
  import { u as Ae } from "./registry-DvAUVLHh.js";
10
10
  import { B as ze } from "./badge-BUk4RjTS.js";
11
11
  import { B as V } from "./button-DohK_Ak_.js";
12
- import { I as je } from "./icon-button-S8_weU3g.js";
13
- import { C as De } from "./counter-WsvRuum1.js";
14
- import { S as Be } from "./scroll-area-CY5SLYNw.js";
15
- import { S as Ee } from "./separator-Bdc9bqoJ.js";
12
+ import { I as Oe } from "./icon-button-S8_weU3g.js";
13
+ import { C as je } from "./counter-WsvRuum1.js";
14
+ import { S as De } from "./scroll-area-CY5SLYNw.js";
15
+ import { S as Be } from "./separator-Bdc9bqoJ.js";
16
16
  import { S as G } from "./skeleton-tTWJpvAq.js";
17
- import { T as j } from "./timestamp-DPLDWdxA.js";
18
- import { f as Oe } from "./intl-locale-FWh-Y5_3.js";
17
+ import { T as O } from "./timestamp-UMF1llBs.js";
18
+ import { f as Ee } from "./intl-locale-FWh-Y5_3.js";
19
19
  import { C as Ke } from "./calendar-clock-hbObjfGY.js";
20
20
  import { C as Me } from "./circle-alert-rGDZ73Wh.js";
21
21
  import { L as $e } from "./loader-circle-BECIU_8N.js";
@@ -78,8 +78,8 @@ const U = {
78
78
  examples: [{ args: { id: "item-1" } }],
79
79
  descriptionKey: "ui.agent.syncTray.actions.retry",
80
80
  description: "Ask the host to send a failed item again to its destination. Does nothing for an item that has not failed.",
81
- invoke: (r, i) => {
82
- r.retry(i.id);
81
+ invoke: (r, d) => {
82
+ r.retry(d.id);
83
83
  }
84
84
  },
85
85
  open_item: {
@@ -91,8 +91,8 @@ const U = {
91
91
  examples: [{ args: { id: "item-1" } }],
92
92
  descriptionKey: "ui.agent.syncTray.actions.openItem",
93
93
  description: "Activate an item, as a click would. The host opens its detail.",
94
- invoke: (r, i) => {
95
- r.openItem(i.id);
94
+ invoke: (r, d) => {
95
+ r.openItem(d.id);
96
96
  }
97
97
  }
98
98
  },
@@ -166,12 +166,12 @@ const U = {
166
166
  scheduled: { variant: "neutral", icon: Ke }
167
167
  };
168
168
  function Q(r) {
169
- const i = r ? Date.parse(r) : NaN;
170
- return Number.isNaN(i) ? -1 / 0 : i;
169
+ const d = r ? Date.parse(r) : NaN;
170
+ return Number.isNaN(d) ? -1 / 0 : d;
171
171
  }
172
172
  const X = 720 * 60 * 1e3;
173
173
  function Y() {
174
- return /* @__PURE__ */ d(
174
+ return /* @__PURE__ */ i(
175
175
  "div",
176
176
  {
177
177
  "aria-hidden": "true",
@@ -186,7 +186,7 @@ function Y() {
186
186
  const Ue = xe(
187
187
  ({
188
188
  id: r,
189
- destinations: i,
189
+ destinations: d,
190
190
  items: l,
191
191
  variant: ee = "popover",
192
192
  open: se,
@@ -194,25 +194,25 @@ const Ue = xe(
194
194
  onOpenChange: ae,
195
195
  onOpenItem: f,
196
196
  onRetry: N,
197
- onViewAll: D,
197
+ onViewAll: j,
198
198
  maxItemsPerDestination: re = 5,
199
- loading: B = !1,
199
+ loading: D = !1,
200
200
  title: ne,
201
- headingLevel: E = 2,
202
- className: O,
201
+ headingLevel: B = 2,
202
+ className: E,
203
203
  ...K
204
204
  }, oe) => {
205
- const { t: o, i18n: ie } = Ce("ui"), C = Oe(ie.language), de = (e) => o(e === "sent" ? "syncTray.status.sent" : e === "pending" ? "syncTray.status.pending" : e === "failed" ? "syncTray.status.failed" : "syncTray.status.scheduled"), M = be(), [ce, m] = ke({
205
+ const { t: o, i18n: de } = Ce("ui"), C = Ee(de.language), ie = (e) => o(e === "sent" ? "syncTray.status.sent" : e === "pending" ? "syncTray.status.pending" : e === "failed" ? "syncTray.status.failed" : "syncTray.status.scheduled"), M = be(), [ce, m] = ke({
206
206
  value: se,
207
207
  defaultValue: te,
208
208
  onChange: ae
209
- }), v = ee === "inline", S = v ? !0 : ce ?? !1, le = ne ?? o("syncTray.title"), ue = `h${E}`, pe = `h${E + 1}`, $ = w(
210
- () => new Set(i.map((e) => e.id)),
211
- [i]
209
+ }), v = ee === "inline", S = v ? !0 : ce ?? !1, le = ne ?? o("syncTray.title"), ue = `h${B}`, pe = `h${B + 1}`, $ = w(
210
+ () => new Set(d.map((e) => e.id)),
211
+ [d]
212
212
  ), fe = w(() => {
213
213
  var n;
214
214
  const e = /* @__PURE__ */ new Map(), a = new Map(l.map((s, p) => [s.id, p]));
215
- for (const s of i) e.set(s.id, []);
215
+ for (const s of d) e.set(s.id, []);
216
216
  for (const s of l) (n = e.get(s.destinationId)) == null || n.push(s);
217
217
  for (const [s, p] of e)
218
218
  e.set(
@@ -223,7 +223,7 @@ const Ue = xe(
223
223
  })
224
224
  );
225
225
  return e;
226
- }, [i, l]), u = w(
226
+ }, [d, l]), u = w(
227
227
  () => l.filter(
228
228
  (e) => e.status === "failed" && $.has(e.destinationId)
229
229
  ).length,
@@ -297,8 +297,8 @@ const Ue = xe(
297
297
  getAnchor: Ie,
298
298
  onReturnToTrigger: () => m(!1)
299
299
  });
300
- if (i.length === 0) return null;
301
- const A = `${M}-title`, _ = /* @__PURE__ */ d(q, { children: [
300
+ if (d.length === 0) return null;
301
+ const A = `${M}-title`, _ = /* @__PURE__ */ i(q, { children: [
302
302
  /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
303
303
  ue,
304
304
  {
@@ -308,18 +308,18 @@ const Ue = xe(
308
308
  children: le
309
309
  }
310
310
  ) }),
311
- /* @__PURE__ */ t(Ee, {}),
311
+ /* @__PURE__ */ t(Be, {}),
312
312
  /* @__PURE__ */ t(
313
- Be,
313
+ De,
314
314
  {
315
315
  orientation: "vertical",
316
316
  className: v ? "ds:flex-1" : "ds:flex-1 ds:sm:flex-none ds:sm:[max-block-size:var(--sync-tray-max-block-size,28rem)]",
317
- children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-sm)]", children: i.map((e) => {
317
+ children: /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:pt-[var(--spacing-sm)]", children: d.map((e) => {
318
318
  const a = (fe.get(e.id) ?? []).slice(
319
319
  0,
320
320
  Math.max(0, re)
321
321
  ), n = `${M}-dest-${e.id}`;
322
- return /* @__PURE__ */ d(
322
+ return /* @__PURE__ */ i(
323
323
  "div",
324
324
  {
325
325
  role: "group",
@@ -327,7 +327,7 @@ const Ue = xe(
327
327
  "data-sync-destination-id": e.id,
328
328
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
329
329
  children: [
330
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]", children: [
330
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]", children: [
331
331
  /* @__PURE__ */ t(
332
332
  pe,
333
333
  {
@@ -345,22 +345,23 @@ const Ue = xe(
345
345
  children: e.description
346
346
  }
347
347
  ) : null,
348
- /* @__PURE__ */ d("dl", { className: "ds:m-0 ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
349
- /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
348
+ /* @__PURE__ */ i("dl", { className: "ds:m-0 ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] type-meta ds:text-[color:var(--muted-foreground)]", children: [
349
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
350
350
  /* @__PURE__ */ t("dt", { children: o("syncTray.lastSent") }),
351
351
  /* @__PURE__ */ t("dd", { className: "ds:m-0", children: e.lastSentAt ? /* @__PURE__ */ t(
352
- j,
352
+ O,
353
353
  {
354
354
  locale: C,
355
355
  value: e.lastSentAt,
356
+ pastOnly: !0,
356
357
  relativeWindow: X
357
358
  }
358
359
  ) : o("syncTray.neverSent") })
359
360
  ] }),
360
- e.nextDueAt ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
361
+ e.nextDueAt ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-wrap ds:gap-x-[var(--spacing-xs)]", children: [
361
362
  /* @__PURE__ */ t("dt", { children: o("syncTray.nextDue") }),
362
363
  /* @__PURE__ */ t("dd", { className: "ds:m-0", children: /* @__PURE__ */ t(
363
- j,
364
+ O,
364
365
  {
365
366
  locale: C,
366
367
  value: e.nextDueAt,
@@ -371,7 +372,7 @@ const Ue = xe(
371
372
  ] }) : null
372
373
  ] })
373
374
  ] }),
374
- B ? /* @__PURE__ */ d(q, { children: [
375
+ D ? /* @__PURE__ */ i(q, { children: [
375
376
  /* @__PURE__ */ t(Y, {}),
376
377
  /* @__PURE__ */ t(Y, {})
377
378
  ] }) : a.length === 0 ? /* @__PURE__ */ t("p", { className: "ds:m-0 ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-body-sm ds:text-[color:var(--muted-foreground)]", children: o("syncTray.empty") }) : /* @__PURE__ */ t("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0", children: a.map((s) => {
@@ -383,7 +384,7 @@ const Ue = xe(
383
384
  children: s.title
384
385
  }
385
386
  );
386
- return /* @__PURE__ */ d(
387
+ return /* @__PURE__ */ i(
387
388
  "li",
388
389
  {
389
390
  "data-sync-item-id": s.id,
@@ -393,7 +394,7 @@ const Ue = xe(
393
394
  interactive: !!f
394
395
  }),
395
396
  children: [
396
- /* @__PURE__ */ d("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
397
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
397
398
  f ? /* @__PURE__ */ t(
398
399
  "button",
399
400
  {
@@ -411,21 +412,22 @@ const Ue = xe(
411
412
  children: s.detail
412
413
  }
413
414
  ) : null,
414
- /* @__PURE__ */ d("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
415
+ /* @__PURE__ */ i("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
415
416
  /* @__PURE__ */ t(
416
417
  ze,
417
418
  {
418
419
  variant: p.variant,
419
420
  size: "sm",
420
421
  leading: /* @__PURE__ */ t(b, { "aria-hidden": "true" }),
421
- children: de(s.status)
422
+ children: ie(s.status)
422
423
  }
423
424
  ),
424
425
  s.at ? /* @__PURE__ */ t(
425
- j,
426
+ O,
426
427
  {
427
428
  locale: C,
428
429
  value: s.at,
430
+ pastOnly: s.status !== "scheduled",
429
431
  relativeWindow: X
430
432
  }
431
433
  ) : null
@@ -460,14 +462,14 @@ const Ue = xe(
460
462
  s.id
461
463
  );
462
464
  }) }),
463
- D ? /* @__PURE__ */ t("div", { className: "ds:ps-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
465
+ j ? /* @__PURE__ */ t("div", { className: "ds:ps-[var(--spacing-xs)]", children: /* @__PURE__ */ t(
464
466
  V,
465
467
  {
466
468
  type: "button",
467
469
  intent: "outline",
468
470
  size: "sm",
469
471
  "aria-describedby": n,
470
- onClick: () => D(e),
472
+ onClick: () => j(e),
471
473
  children: o("syncTray.viewAll")
472
474
  }
473
475
  ) }) : null
@@ -478,15 +480,15 @@ const Ue = xe(
478
480
  }) })
479
481
  }
480
482
  )
481
- ] }), H = /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: B ? o("syncTray.loading") : "" });
483
+ ] }), H = /* @__PURE__ */ t("span", { role: "status", className: "ds:sr-only", children: D ? o("syncTray.loading") : "" });
482
484
  if (v)
483
- return /* @__PURE__ */ d(
485
+ return /* @__PURE__ */ i(
484
486
  "div",
485
487
  {
486
488
  ref: R,
487
489
  "data-component": "sync-tray",
488
490
  "data-component-id": r,
489
- className: [J(), "ds:w-full", O].filter(Boolean).join(" "),
491
+ className: [J(), "ds:w-full", E].filter(Boolean).join(" "),
490
492
  ...K,
491
493
  children: [
492
494
  /* @__PURE__ */ t(
@@ -512,11 +514,11 @@ const Ue = xe(
512
514
  ref: R,
513
515
  "data-component": "sync-tray",
514
516
  "data-component-id": r,
515
- className: [J(), O].filter(Boolean).join(" "),
517
+ className: [J(), E].filter(Boolean).join(" "),
516
518
  ...K,
517
- children: /* @__PURE__ */ d(T.Root, { open: S, onOpenChange: m, children: [
519
+ children: /* @__PURE__ */ i(T.Root, { open: S, onOpenChange: m, children: [
518
520
  /* @__PURE__ */ t(T.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
519
- je,
521
+ Oe,
520
522
  {
521
523
  icon: /* @__PURE__ */ t(Pe, {}),
522
524
  intent: "outline",
@@ -525,7 +527,7 @@ const Ue = xe(
525
527
  }
526
528
  ) }),
527
529
  u > 0 ? /* @__PURE__ */ t(
528
- De,
530
+ je,
529
531
  {
530
532
  variant: "notification",
531
533
  size: "md",
@@ -564,4 +566,4 @@ export {
564
566
  J as a,
565
567
  We as s
566
568
  };
567
- //# sourceMappingURL=sync-tray-BTmveFGE.js.map
569
+ //# sourceMappingURL=sync-tray-BgrO4QjH.js.map