@alfadocs/ui-kit 1.134.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 (125) hide show
  1. package/dist/_chunks/ai-summary-panel-B70S2lgC.js +455 -0
  2. package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CtwhdASP.js} +3 -3
  3. package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
  4. package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
  5. package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
  6. package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
  7. package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-I5PfWudy.js} +8 -8
  8. package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
  9. package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-CX4dxBq7.js} +85 -84
  10. package/dist/_chunks/communications-panel-BKPHCiMB.js +973 -0
  11. package/dist/_chunks/{entity-summary-KHM0PnSI.js → entity-summary-CpNk6ybN.js} +70 -69
  12. package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
  13. package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
  14. package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
  15. package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
  16. package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-B2XbN_Fe.js} +2 -2
  17. package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-B7NY-6KI.js} +4 -4
  18. package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
  19. package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DJOH8pZx.js} +2 -2
  20. package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
  21. package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
  22. package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-DvwqPfFR.js} +3 -2
  23. package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-6EzdnwT8.js} +155 -171
  24. package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-6_OmOwUs.js} +110 -109
  25. package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
  26. package/dist/agent-catalog.json +251 -1
  27. package/dist/agent-i18n/en.json +28 -0
  28. package/dist/browser-support.js +1 -1
  29. package/dist/components/_shared/sms-segments.d.ts +43 -0
  30. package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
  31. package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +71 -0
  32. package/dist/components/ai-summary-panel/index.d.ts +4 -0
  33. package/dist/components/ai-summary-panel/index.js +6 -0
  34. package/dist/components/appointment-card/index.js +2 -2
  35. package/dist/components/appointment-details-panel/index.js +1 -1
  36. package/dist/components/appointment-peek/index.js +1 -1
  37. package/dist/components/appointment-timeline/index.js +1 -1
  38. package/dist/components/chat-container/chat-container.d.ts +7 -0
  39. package/dist/components/chat-container/index.js +1 -1
  40. package/dist/components/chat-input/chat-input.d.ts +3 -0
  41. package/dist/components/chat-input/index.js +1 -1
  42. package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
  43. package/dist/components/communications-panel/communications-panel.d.ts +136 -0
  44. package/dist/components/communications-panel/index.d.ts +6 -0
  45. package/dist/components/communications-panel/index.js +7 -0
  46. package/dist/components/entity-summary/entity-summary.d.ts +8 -0
  47. package/dist/components/entity-summary/index.js +1 -1
  48. package/dist/components/index.d.ts +2 -0
  49. package/dist/components/notes-panel/index.js +1 -1
  50. package/dist/components/task-editor/index.js +1 -1
  51. package/dist/components/tasks-panel/index.js +1 -1
  52. package/dist/components/workflow-status/index.js +1 -1
  53. package/dist/core.css +1 -1
  54. package/dist/host-compat.css +10 -4
  55. package/dist/i18n/locales/ar.d.ts +93 -0
  56. package/dist/i18n/locales/ar.js +94 -0
  57. package/dist/i18n/locales/de.d.ts +93 -0
  58. package/dist/i18n/locales/de.js +94 -0
  59. package/dist/i18n/locales/el.d.ts +93 -0
  60. package/dist/i18n/locales/el.js +94 -0
  61. package/dist/i18n/locales/en.d.ts +93 -0
  62. package/dist/i18n/locales/en.js +94 -0
  63. package/dist/i18n/locales/es.d.ts +93 -0
  64. package/dist/i18n/locales/es.js +94 -0
  65. package/dist/i18n/locales/fr.d.ts +93 -0
  66. package/dist/i18n/locales/fr.js +94 -0
  67. package/dist/i18n/locales/hi.d.ts +93 -0
  68. package/dist/i18n/locales/hi.js +94 -0
  69. package/dist/i18n/locales/it.d.ts +93 -0
  70. package/dist/i18n/locales/it.js +94 -0
  71. package/dist/i18n/locales/ja.d.ts +93 -0
  72. package/dist/i18n/locales/ja.js +94 -0
  73. package/dist/i18n/locales/nl.d.ts +93 -0
  74. package/dist/i18n/locales/nl.js +94 -0
  75. package/dist/i18n/locales/pl.d.ts +93 -0
  76. package/dist/i18n/locales/pl.js +94 -0
  77. package/dist/i18n/locales/pt.d.ts +93 -0
  78. package/dist/i18n/locales/pt.js +94 -0
  79. package/dist/i18n/locales/ro.d.ts +93 -0
  80. package/dist/i18n/locales/ro.js +94 -0
  81. package/dist/i18n/locales/ru.d.ts +93 -0
  82. package/dist/i18n/locales/ru.js +94 -0
  83. package/dist/i18n/locales/sq.d.ts +93 -0
  84. package/dist/i18n/locales/sq.js +94 -0
  85. package/dist/i18n/locales/sv.d.ts +93 -0
  86. package/dist/i18n/locales/sv.js +94 -0
  87. package/dist/i18n/locales/tr.d.ts +93 -0
  88. package/dist/i18n/locales/tr.js +94 -0
  89. package/dist/i18n/locales/zh.d.ts +93 -0
  90. package/dist/i18n/locales/zh.js +94 -0
  91. package/dist/index.js +893 -886
  92. package/dist/locales/ar.json +93 -0
  93. package/dist/locales/de.json +93 -0
  94. package/dist/locales/el.json +93 -0
  95. package/dist/locales/en.json +93 -0
  96. package/dist/locales/es.json +93 -0
  97. package/dist/locales/fr.json +93 -0
  98. package/dist/locales/hi.json +93 -0
  99. package/dist/locales/it.json +93 -0
  100. package/dist/locales/ja.json +93 -0
  101. package/dist/locales/nl.json +93 -0
  102. package/dist/locales/pl.json +93 -0
  103. package/dist/locales/pt.json +93 -0
  104. package/dist/locales/ro.json +93 -0
  105. package/dist/locales/ru.json +93 -0
  106. package/dist/locales/sq.json +93 -0
  107. package/dist/locales/sv.json +93 -0
  108. package/dist/locales/tr.json +93 -0
  109. package/dist/locales/zh.json +93 -0
  110. package/dist/patterns/alia-assistant/index.js +1 -1
  111. package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
  112. package/dist/patterns/calendar/index.js +1 -1
  113. package/dist/patterns/patient-account-settings/index.js +1 -1
  114. package/dist/patterns/patient-check-in/index.js +1 -1
  115. package/dist/patterns/patient-portal/index.js +2 -2
  116. package/dist/patterns/signing/index.d.ts +1 -0
  117. package/dist/patterns/signing/index.js +1 -1
  118. package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
  119. package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
  120. package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
  121. package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
  122. package/dist/tokens.css +1 -1
  123. package/package.json +9 -1
  124. package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
  125. package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
@@ -1,48 +1,49 @@
1
1
  import { jsx as c, jsxs as b, Fragment as we } from "react/jsx-runtime";
2
- import { forwardRef as Ls, useId as Rt, useMemo as z, useState as R, useCallback as Ie, useRef as v, useEffect as G, useImperativeHandle as Is } from "react";
2
+ import { forwardRef as Ms, useId as Rt, useMemo as z, useState as R, useCallback as Me, useRef as v, useEffect as G, useImperativeHandle as Is } from "react";
3
3
  import { c as Hs } from "./index-D2ZczOXr.js";
4
- import { useTranslation as qs } from "react-i18next";
5
- import { A as He } from "./alert-C4WKViaS.js";
4
+ import { useTranslation as Ws } from "react-i18next";
5
+ import { A as Ie } from "./alert-C4WKViaS.js";
6
6
  import { B as $s } from "./badge-BUk4RjTS.js";
7
7
  import { B as Pe } from "./button-DohK_Ak_.js";
8
- import { I as qe } from "./icon-button-S8_weU3g.js";
8
+ import { I as He } from "./icon-button-S8_weU3g.js";
9
9
  import { B as Et } from "./button-group-DuQuuulC.js";
10
- import { P as Ws } from "./panel-header-CbtlTe85.js";
10
+ import { P as qs } from "./panel-header-CbtlTe85.js";
11
11
  import { S as Ot } from "./select-uESzXTX6.js";
12
12
  import { S as Ks } from "./switch-DO6uC4HJ.js";
13
13
  import { S as Vs } from "./skeleton-tTWJpvAq.js";
14
- import { E as $e } from "./empty-state-DwJ5YNzz.js";
14
+ import { E as We } from "./empty-state-DwJ5YNzz.js";
15
15
  import { T as Cs } from "./task-card-BNbkwIYM.js";
16
16
  import { V as Gs } from "./visually-hidden-BHxEUGyT.js";
17
17
  import { u as Us } from "./use-check-animation--I3cS00X.js";
18
- import { a as Ys, u as Dt, R as jt } from "./use-list-reflow-C7O4Uqnl.js";
18
+ import { a as Ys, u as Dt, R as At } from "./use-list-reflow-C7O4Uqnl.js";
19
19
  import { u as Fs } from "./use-theme-CYGyzFgZ.js";
20
- import { u as We } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
20
+ import { u as $e } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
21
21
  import { u as Qs } from "./registry-DvAUVLHh.js";
22
22
  import { P as Xs } from "./plus-DzMQ_c6b.js";
23
23
  import { C as Js } from "./clipboard-check-BeAGxDVT.js";
24
24
  import { P as Zs } from "./pencil-B1sKKyuT.js";
25
25
  import { X as en } from "./x-B5YnXwCz.js";
26
- import { c as Se } from "./createLucideIcon-DhHxpK9K.js";
26
+ import { c as Ke } from "./createLucideIcon-DhHxpK9K.js";
27
+ import { M as tn } from "./megaphone-CzeTT9B3.js";
27
28
  /**
28
29
  * @license lucide-react v1.22.0 - ISC
29
30
  *
30
31
  * This source code is licensed under the ISC license.
31
32
  * See the LICENSE file in the root directory of this source tree.
32
33
  */
33
- const tn = [
34
+ const sn = [
34
35
  ["path", { d: "M13.744 17.736a6 6 0 1 1-7.48-7.48", key: "bq4yh3" }],
35
36
  ["path", { d: "M15 6h1v4", key: "11y1tn" }],
36
37
  ["path", { d: "m6.134 14.768.866-.5 2 3.464", key: "17snzx" }],
37
38
  ["circle", { cx: "16", cy: "8", r: "6", key: "14bfc9" }]
38
- ], sn = Se("coins", tn);
39
+ ], nn = Ke("coins", sn);
39
40
  /**
40
41
  * @license lucide-react v1.22.0 - ISC
41
42
  *
42
43
  * This source code is licensed under the ISC license.
43
44
  * See the LICENSE file in the root directory of this source tree.
44
45
  */
45
- const nn = [
46
+ const rn = [
46
47
  ["path", { d: "M10.5 3 8 9l4 13 4-13-2.5-6", key: "b3dvk1" }],
47
48
  [
48
49
  "path",
@@ -52,31 +53,14 @@ const nn = [
52
53
  }
53
54
  ],
54
55
  ["path", { d: "M2 9h20", key: "16fsjt" }]
55
- ], rn = Se("gem", nn);
56
+ ], on = Ke("gem", rn);
56
57
  /**
57
58
  * @license lucide-react v1.22.0 - ISC
58
59
  *
59
60
  * This source code is licensed under the ISC license.
60
61
  * See the LICENSE file in the root directory of this source tree.
61
62
  */
62
- const on = [
63
- [
64
- "path",
65
- {
66
- d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",
67
- key: "q8bfy3"
68
- }
69
- ],
70
- ["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14", key: "1853fq" }],
71
- ["path", { d: "M8 6v8", key: "15ugcq" }]
72
- ], an = Se("megaphone", on);
73
- /**
74
- * @license lucide-react v1.22.0 - ISC
75
- *
76
- * This source code is licensed under the ISC license.
77
- * See the LICENSE file in the root directory of this source tree.
78
- */
79
- const cn = [
63
+ const an = [
80
64
  [
81
65
  "path",
82
66
  {
@@ -85,7 +69,7 @@ const cn = [
85
69
  }
86
70
  ],
87
71
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
88
- ], _t = Se("tag", cn), dn = {
72
+ ], _t = Ke("tag", an), cn = {
89
73
  id: "tasks-panel",
90
74
  // 'pick' backs select_item (non-persisting activation, matching
91
75
  // AppointmentTimeline); 'dismiss' backs dismiss; 'scroll' backs
@@ -225,19 +209,19 @@ const cn = [
225
209
  description: "Stable task id emitted on each rendered TaskCard inside the panel."
226
210
  }
227
211
  }
228
- }, ln = 96, un = {
212
+ }, dn = 96, ln = {
229
213
  status: "todo",
230
214
  type: null,
231
215
  assignee: null,
232
216
  overdueOnly: !1
233
- }, Nt = /* @__PURE__ */ new Map(), At = /* @__PURE__ */ new Set();
234
- function Ke(a) {
217
+ }, Nt = /* @__PURE__ */ new Map(), jt = /* @__PURE__ */ new Set();
218
+ function qe(a) {
235
219
  return a.map((o) => `${o.id}:${o.status ?? "open"}`).join("|");
236
220
  }
237
- function fn(a, o) {
221
+ function un(a, o) {
238
222
  return a.status === o.status && a.type === o.type && a.assignee === o.assignee && a.overdueOnly === o.overdueOnly;
239
223
  }
240
- function pn(a, o) {
224
+ function fn(a, o) {
241
225
  return a.status === o.status && (a.type || null) === (o.type || null) && (a.assignee || null) === (o.assignee || null) && a.overdueOnly === o.overdueOnly;
242
226
  }
243
227
  function xe(a) {
@@ -245,19 +229,19 @@ function xe(a) {
245
229
  return o.catch(() => {
246
230
  }), o;
247
231
  }
248
- function mn(a) {
232
+ function pn(a) {
249
233
  try {
250
234
  return new Intl.NumberFormat(a);
251
235
  } catch {
252
236
  return new Intl.NumberFormat();
253
237
  }
254
238
  }
255
- function vn(a) {
239
+ function mn(a) {
256
240
  const o = Promise.resolve(a);
257
241
  return o.catch(() => {
258
242
  }), o;
259
243
  }
260
- const hn = Hs(
244
+ const vn = Hs(
261
245
  [
262
246
  "ds:flex ds:flex-col ds:h-full ds:min-h-0",
263
247
  "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
@@ -266,7 +250,7 @@ const hn = Hs(
266
250
  variants: { size: { xs: "", sm: "", md: "" } },
267
251
  defaultVariants: { size: "sm" }
268
252
  }
269
- ), gn = [
253
+ ), hn = [
270
254
  "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
271
255
  "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
272
256
  "ds:px-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
@@ -279,14 +263,14 @@ const hn = Hs(
279
263
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
280
264
  "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
281
265
  "ds:forced-colors:focus-visible:outline-[CanvasText]"
282
- ].join(" "), yn = [
266
+ ].join(" "), gn = [
283
267
  "ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]",
284
268
  // Declared at rest, not only while leaving: a transition added at the
285
269
  // same moment as the value it animates has nothing to move from.
286
270
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
287
271
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
288
- ].join(" "), zt = "ds:opacity-0", kn = 12;
289
- function bn({
272
+ ].join(" "), zt = "ds:opacity-0", yn = 12;
273
+ function kn({
290
274
  item: a,
291
275
  checked: o,
292
276
  pending: h,
@@ -357,7 +341,7 @@ function bn({
357
341
  "path",
358
342
  {
359
343
  d: "M5 9.25 L7.75 12 L13 6.25",
360
- strokeDashoffset: f ? 0 : kn,
344
+ strokeDashoffset: f ? 0 : yn,
361
345
  className: "ds:fill-none ds:stroke-current ds:[stroke-width:2] ds:[stroke-linecap:round] ds:[stroke-linejoin:round] ds:[stroke-dasharray:12] ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
362
346
  }
363
347
  )
@@ -367,12 +351,12 @@ function bn({
367
351
  }
368
352
  );
369
353
  }
370
- const wn = {
371
- recall: { variant: "info", Icon: an },
372
- payment: { variant: "warning", Icon: rn },
373
- collection: { variant: "error", Icon: sn },
354
+ const bn = {
355
+ recall: { variant: "info", Icon: tn },
356
+ payment: { variant: "warning", Icon: on },
357
+ collection: { variant: "error", Icon: nn },
374
358
  other: { variant: "neutral", Icon: _t }
375
- }, Pn = [
359
+ }, wn = [
376
360
  "overdue",
377
361
  "today",
378
362
  "tomorrow",
@@ -380,11 +364,11 @@ const wn = {
380
364
  "later",
381
365
  "done"
382
366
  ];
383
- function xn(a) {
367
+ function Pn(a) {
384
368
  return new Date(a.getFullYear(), a.getMonth(), a.getDate());
385
369
  }
386
370
  function Bt(a) {
387
- const o = xn(a), h = new Date(o);
371
+ const o = Pn(a), h = new Date(o);
388
372
  h.setDate(o.getDate() + 1);
389
373
  const g = new Date(o);
390
374
  g.setDate(o.getDate() + 2);
@@ -396,28 +380,28 @@ function Bt(a) {
396
380
  startOfNextWeek: +u
397
381
  };
398
382
  }
399
- function Sn(a, o, h) {
383
+ function xn(a, o, h) {
400
384
  if (o) return "done";
401
385
  const { startOfToday: g, startOfTomorrow: k, startOfDayAfter: u, startOfNextWeek: f } = Bt(h), y = +new Date(a.dueIso);
402
386
  return y < g ? "overdue" : y < k ? "today" : y < u ? "tomorrow" : y < f ? "thisWeek" : "later";
403
387
  }
404
- function Tn(a, o) {
388
+ function Sn(a, o) {
405
389
  return a.status === "done" ? !1 : +new Date(a.dueIso) < Bt(o).startOfTomorrow;
406
390
  }
407
- function Rn(a, o, h) {
391
+ function Tn(a, o, h) {
408
392
  const g = /* @__PURE__ */ new Map();
409
393
  for (const u of a) {
410
- const f = Sn(u, h(u), o), y = g.get(f);
394
+ const f = xn(u, h(u), o), y = g.get(f);
411
395
  y ? y.push(u) : g.set(f, [u]);
412
396
  }
413
397
  const k = [];
414
- for (const u of Pn) {
398
+ for (const u of wn) {
415
399
  const f = g.get(u);
416
400
  !f || f.length === 0 || (f.sort((y, E) => +new Date(y.dueIso) - +new Date(E.dueIso)), k.push({ key: u, items: f }));
417
401
  }
418
402
  return k;
419
403
  }
420
- const En = Ls(
404
+ const Rn = Ms(
421
405
  ({
422
406
  id: a,
423
407
  items: o,
@@ -433,45 +417,45 @@ const En = Ls(
433
417
  onDismissTask: N,
434
418
  onAddTask: U,
435
419
  readOnly: S = !1,
436
- renderItemActions: Te,
437
- renderItemExtraActions: Re,
438
- scope: Ee,
439
- defaultScope: Mt,
420
+ renderItemActions: Se,
421
+ renderItemExtraActions: Te,
422
+ scope: Re,
423
+ defaultScope: Lt,
440
424
  onScopeChange: oe,
441
425
  availableScopes: B,
442
426
  onLoadMore: H,
443
- hasMore: Oe,
427
+ hasMore: Ee,
444
428
  loadingMore: Y = !1,
445
429
  loading: w = !1,
446
430
  error: P = !1,
447
431
  onRetry: ae,
448
- showFilters: Lt = !0,
432
+ showFilters: Mt = !0,
449
433
  defaultFilters: It,
450
- onFiltersChange: M,
434
+ onFiltersChange: L,
451
435
  statusFilter: Ve,
452
436
  defaultStatusFilter: Ht,
453
437
  onStatusFilterChange: ie,
454
438
  typeOptions: ce,
455
- typeFilter: De,
439
+ typeFilter: Oe,
456
440
  onTypeFilterChange: de,
457
441
  assigneeOptions: le,
458
- assigneeFilter: Ne,
442
+ assigneeFilter: De,
459
443
  onAssigneeFilterChange: ue,
460
444
  overdueOnly: Ce,
461
- defaultOverdueOnly: qt,
445
+ defaultOverdueOnly: Wt,
462
446
  onOverdueOnlyChange: fe,
463
447
  emptyTitle: $t,
464
- emptyDescription: Wt,
448
+ emptyDescription: qt,
465
449
  emptyAction: Kt,
466
450
  className: Vt,
467
451
  "aria-label": Ge,
468
452
  ...Ct
469
453
  }, Gt) => {
470
- const { t: d, i18n: Ue } = qs("ui"), Ye = Rt(), Ut = Rt(), Ae = g ?? d("tasksPanel.title"), p = y === "server", q = {
471
- status: !p || !!M || !!ie,
472
- type: !p || !!M || !!de,
473
- assignee: !p || !!M || !!ue,
474
- overdueOnly: !p || !!M || !!fe
454
+ const { t: d, i18n: Ue } = Ws("ui"), Ye = Rt(), Ut = Rt(), Ne = g ?? d("tasksPanel.title"), p = y === "server", W = {
455
+ status: !p || !!L || !!ie,
456
+ type: !p || !!L || !!de,
457
+ assignee: !p || !!L || !!ue,
458
+ overdueOnly: !p || !!L || !!fe
475
459
  }, Yt = {
476
460
  todo: d("tasksPanel.status.todo"),
477
461
  done: d("tasksPanel.status.done"),
@@ -495,44 +479,44 @@ const En = Ls(
495
479
  () => h ? new Date(h) : /* @__PURE__ */ new Date(),
496
480
  [h]
497
481
  ), Fe = z(
498
- () => mn(Ue.language),
482
+ () => pn(Ue.language),
499
483
  [Ue.language]
500
484
  ), Qe = (e) => d("tasksPanel.bracketedCount", { value: Fe.format(e) }), [Jt, Zt] = R(
501
- Mt ?? (B == null ? void 0 : B[0]) ?? "patient"
502
- ), es = Ee ?? Jt, Xe = Ie(
485
+ Lt ?? (B == null ? void 0 : B[0]) ?? "patient"
486
+ ), es = Re ?? Jt, Xe = Me(
503
487
  (e) => {
504
- Ee === void 0 && Zt(e), oe == null || oe(e);
488
+ Re === void 0 && Zt(e), oe == null || oe(e);
505
489
  },
506
- [Ee, oe]
507
- ), A = It ?? un, [ts, ss] = R(
508
- Ht ?? A.status
509
- ), [ns, rs] = R(A.type), [os, as] = R(
510
- A.assignee
490
+ [Re, oe]
491
+ ), j = It ?? ln, [ts, ss] = R(
492
+ Ht ?? j.status
493
+ ), [ns, rs] = R(j.type), [os, as] = R(
494
+ j.assignee
511
495
  ), [is, cs] = R(
512
- qt ?? A.overdueOnly
513
- ), O = Ve ?? ts, L = De !== void 0 ? De : ns, I = Ne !== void 0 ? Ne : os, $ = Ce ?? is, Je = p ? $ && O !== "done" : $, me = v({
496
+ Wt ?? j.overdueOnly
497
+ ), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os, $ = Ce ?? is, Je = p ? $ && O !== "done" : $, me = v({
514
498
  status: O,
515
- type: L,
499
+ type: M,
516
500
  assignee: I,
517
501
  overdueOnly: $
518
502
  });
519
503
  me.current = {
520
504
  status: O,
521
- type: L,
505
+ type: M,
522
506
  assignee: I,
523
507
  overdueOnly: $
524
508
  };
525
- const W = (e) => {
509
+ const q = (e) => {
526
510
  const t = Object.fromEntries(
527
511
  Object.entries(e).filter(
528
- ([l]) => q[l]
512
+ ([l]) => W[l]
529
513
  )
530
514
  );
531
515
  if (Object.keys(e).length > 0 && Object.keys(t).length === 0)
532
516
  return;
533
517
  const s = me.current, r = p && s.status === "done" && s.overdueOnly ? { ...s, overdueOnly: !1 } : s, n = { ...r, ...t }, i = new Set(Object.keys(t));
534
- r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = A.status === "done" ? "todo" : A.status, i.add("status"))), me.current = n, Ve === void 0 && ss(n.status), De === void 0 && rs(n.type), Ne === void 0 && as(n.assignee), Ce === void 0 && cs(n.overdueOnly), i.has("status") && (ie == null || ie(n.status)), i.has("type") && (de == null || de(n.type)), i.has("assignee") && (ue == null || ue(n.assignee)), i.has("overdueOnly") && (fe == null || fe(n.overdueOnly)), fn(s, n) || M == null || M(n);
535
- }, ds = () => W({ ...A }), [F, ls] = R(Nt), T = v(Nt), [Ze, us] = R(At), Q = v(At), X = v(!0), je = v(/* @__PURE__ */ new Set());
518
+ r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = j.status === "done" ? "todo" : j.status, i.add("status"))), me.current = n, Ve === void 0 && ss(n.status), Oe === void 0 && rs(n.type), De === void 0 && as(n.assignee), Ce === void 0 && cs(n.overdueOnly), i.has("status") && (ie == null || ie(n.status)), i.has("type") && (de == null || de(n.type)), i.has("assignee") && (ue == null || ue(n.assignee)), i.has("overdueOnly") && (fe == null || fe(n.overdueOnly)), un(s, n) || L == null || L(n);
519
+ }, ds = () => q({ ...j }), [F, ls] = R(Nt), T = v(Nt), [Ze, us] = R(jt), Q = v(jt), X = v(!0), je = v(/* @__PURE__ */ new Set());
536
520
  G(() => {
537
521
  X.current = !0;
538
522
  const e = je.current;
@@ -542,51 +526,51 @@ const En = Ls(
542
526
  ), e.clear();
543
527
  };
544
528
  }, []);
545
- const j = (e) => {
529
+ const A = (e) => {
546
530
  const t = new Map(T.current);
547
531
  e(t), T.current = t, ls(t);
548
- }, _e = (e) => {
532
+ }, Ae = (e) => {
549
533
  const t = new Set(Q.current);
550
534
  e(t), Q.current = t, us(t);
551
535
  }, K = z(() => p ? o.filter((e) => !Ze.has(e.id)) : o.filter((e) => {
552
536
  const t = e.status === "done";
553
- return !(O === "todo" && t || O === "done" && !t || L && e.type !== L || I && (e.assignee ?? "") !== I || $ && !Tn(e, pe));
537
+ return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I || $ && !Sn(e, pe));
554
538
  }), [
555
539
  p,
556
540
  Ze,
557
541
  o,
558
542
  O,
559
- L,
543
+ M,
560
544
  I,
561
545
  $,
562
546
  pe
563
- ]), ve = z(() => Rn(K, pe, (t) => {
547
+ ]), ve = z(() => Tn(K, pe, (t) => {
564
548
  if (p) {
565
549
  const s = F.get(t.id);
566
550
  if ((s == null ? void 0 : s.kind) === "done" && s.next !== void 0 && !s.leaves)
567
551
  return s.next;
568
552
  }
569
553
  return t.status === "done";
570
- }), [K, pe, p, F]), ze = z(
554
+ }), [K, pe, p, F]), _e = z(
571
555
  () => ve.flatMap((e) => e.items.map((t) => t.id)),
572
556
  [ve]
573
- ), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z = Ie(() => {
557
+ ), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z = Me(() => {
574
558
  const e = J.current;
575
559
  if (!e) return;
576
560
  const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
577
561
  ps(t > 1), vs(t + r < s - 1);
578
562
  }, []);
579
- We(() => {
563
+ $e(() => {
580
564
  Z();
581
- }, [ve, Z]), We(() => {
565
+ }, [ve, Z]), $e(() => {
582
566
  const e = J.current;
583
567
  if (!e || typeof ResizeObserver > "u") return;
584
568
  const t = new ResizeObserver(Z);
585
569
  return t.observe(e), () => t.disconnect();
586
570
  }, [Z]);
587
- const tt = p ? Oe === !0 : Oe ?? !!H, _ = v(o);
571
+ const tt = p ? Ee === !0 : Ee ?? !!H, _ = v(o);
588
572
  _.current = o;
589
- const hs = z(() => Ke(o), [o]), he = z(
573
+ const hs = z(() => qe(o), [o]), he = z(
590
574
  () => o.map((e) => e.id).join("|"),
591
575
  [o]
592
576
  ), st = v(he);
@@ -595,7 +579,7 @@ const En = Ls(
595
579
  G(() => {
596
580
  nt.current && !w && !P && (ee.current += 1), nt.current = w;
597
581
  }, [w, P]);
598
- const ge = v(!0), rt = v(""), ot = v(0), Be = () => {
582
+ const ge = v(!0), rt = v(""), ot = v(0), ze = () => {
599
583
  ge.current = !1, rt.current = st.current, ot.current = ee.current, H == null || H();
600
584
  };
601
585
  G(() => {
@@ -606,17 +590,17 @@ const En = Ls(
606
590
  const e = J.current;
607
591
  if (!e) return;
608
592
  const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
609
- H && tt && !w && !Y && ge.current && s - t - r <= ln && Be();
593
+ H && tt && !w && !Y && ge.current && s - t - r <= dn && ze();
610
594
  }, { resolvedTheme: ys } = Fs(), ye = ys.endsWith("-accessible") || void 0, { containerRef: ks } = Ys({
611
- key: ze.join(),
595
+ key: _e.join(),
612
596
  reduceMotion: ye
613
- }), te = Dt({ delayMs: 200, reduceMotion: ye }), se = Dt({ reduceMotion: ye }), Me = (e) => te.isLeaving(e) || se.isLeaving(e), bs = (e) => {
597
+ }), te = Dt({ delayMs: 200, reduceMotion: ye }), se = Dt({ reduceMotion: ye }), Be = (e) => te.isLeaving(e) || se.isLeaving(e), bs = (e) => {
614
598
  const { status: t, overdueOnly: s } = me.current;
615
599
  return t === "todo" && e || t === "done" && !e || (p ? s && t !== "done" : s) && e;
616
600
  }, at = (e) => {
617
- T.current.has(e) && j((t) => t.delete(e)), Q.current.has(e) && _e((t) => t.delete(e)), te.cancel(e), se.cancel(e);
601
+ T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)), te.cancel(e), se.cancel(e);
618
602
  }, it = () => {
619
- const e = _.current, t = Ke(e), s = new Map(e.map((i) => [i.id, i])), r = [], n = [];
603
+ const e = _.current, t = qe(e), s = new Map(e.map((i) => [i.id, i])), r = [], n = [];
620
604
  T.current.forEach((i, l) => {
621
605
  const m = s.get(l);
622
606
  if (!m) {
@@ -624,19 +608,19 @@ const En = Ls(
624
608
  return;
625
609
  }
626
610
  if (!i.settled) return;
627
- const Bs = i.kind === "done" && m.status === "done" === i.next, Ms = ee.current > i.edgeAtSettle || t !== i.sigAtSettle;
628
- (Bs || Ms) && (r.push(l), n.push(l));
629
- }), r.length !== 0 && (j((i) => r.forEach((l) => i.delete(l))), r.some((i) => Q.current.has(i)) && _e((i) => r.forEach((l) => i.delete(l))), n.forEach((i) => {
611
+ const Bs = i.kind === "done" && m.status === "done" === i.next, Ls = ee.current > i.edgeAtSettle || t !== i.sigAtSettle;
612
+ (Bs || Ls) && (r.push(l), n.push(l));
613
+ }), r.length !== 0 && (A((i) => r.forEach((l) => i.delete(l))), r.some((i) => Q.current.has(i)) && Ae((i) => r.forEach((l) => i.delete(l))), n.forEach((i) => {
630
614
  te.cancel(i), se.cancel(i);
631
615
  }));
632
616
  }, ws = (e) => {
633
617
  const t = T.current.get(e);
634
- t && (j(
618
+ t && (A(
635
619
  (s) => s.set(e, {
636
620
  ...t,
637
621
  settled: !0,
638
622
  edgeAtSettle: ee.current,
639
- sigAtSettle: Ke(_.current)
623
+ sigAtSettle: qe(_.current)
640
624
  })
641
625
  ), it());
642
626
  };
@@ -645,7 +629,7 @@ const En = Ls(
645
629
  }, [p, hs, w, P]);
646
630
  const ct = (e, t, s, r) => {
647
631
  const n = e.id;
648
- j((m) => m.set(n, t));
632
+ A((m) => m.set(n, t));
649
633
  let i;
650
634
  try {
651
635
  i = s();
@@ -653,7 +637,7 @@ const En = Ls(
653
637
  return at(n), { started: !1, result: xe(m) };
654
638
  }
655
639
  t.leaves && r.leave(n, () => {
656
- T.current.has(n) && _e((m) => m.add(n));
640
+ T.current.has(n) && Ae((m) => m.add(n));
657
641
  });
658
642
  const l = Promise.resolve(i);
659
643
  return l.then(
@@ -668,7 +652,7 @@ const En = Ls(
668
652
  started: !1,
669
653
  result: xe(new Error(`TasksPanel: ${e}`))
670
654
  }), ne = (e) => {
671
- X.current && T.current.has(e) && j((t) => t.delete(e));
655
+ X.current && T.current.has(e) && A((t) => t.delete(e));
672
656
  }, dt = (e, t, s) => {
673
657
  let r, n;
674
658
  const i = new Promise((l, m) => {
@@ -721,7 +705,7 @@ const En = Ls(
721
705
  } catch (l) {
722
706
  return { started: !1, result: xe(l) };
723
707
  }
724
- return i instanceof Promise && (j(
708
+ return i instanceof Promise && (A(
725
709
  (l) => l.set(s, {
726
710
  kind: "done",
727
711
  leaves: n,
@@ -732,9 +716,9 @@ const En = Ls(
732
716
  ), i.then(
733
717
  () => ne(s),
734
718
  () => ne(s)
735
- )), { started: !0, result: vn(i) };
719
+ )), { started: !0, result: mn(i) };
736
720
  }
737
- return j(
721
+ return A(
738
722
  (i) => i.set(s, {
739
723
  kind: "done",
740
724
  next: r,
@@ -765,11 +749,11 @@ const En = Ls(
765
749
  s,
766
750
  () => N(e),
767
751
  se
768
- ) : (j((r) => r.set(t, s)), {
752
+ ) : (A((r) => r.set(t, s)), {
769
753
  started: !0,
770
754
  result: dt(t, se, () => N(e))
771
755
  });
772
- }, ft = Ie(() => {
756
+ }, ft = Me(() => {
773
757
  const e = J.current, t = et.current;
774
758
  if (!e || !t) {
775
759
  e == null || e.scrollTo({ top: 0 });
@@ -779,8 +763,8 @@ const En = Ls(
779
763
  e.scrollTo({ top: e.scrollTop + s });
780
764
  }, []), ke = v(null);
781
765
  Is(Gt, () => ke.current, []);
782
- const C = v(null), be = v(ze);
783
- be.current = ze, G(() => {
766
+ const C = v(null), be = v(_e);
767
+ be.current = _e, G(() => {
784
768
  const e = ke.current;
785
769
  if (!e) return;
786
770
  const t = (r) => {
@@ -809,7 +793,7 @@ const En = Ls(
809
793
  return e.addEventListener("focusin", t), e.addEventListener("focusout", s), () => {
810
794
  e.removeEventListener("focusin", t), e.removeEventListener("focusout", s);
811
795
  };
812
- }, []), We(() => {
796
+ }, []), $e(() => {
813
797
  const e = C.current, t = ke.current;
814
798
  if (!e || !t) return;
815
799
  if (e.el.isConnected) {
@@ -831,9 +815,9 @@ const En = Ls(
831
815
  toggleDone: (e) => lt(e),
832
816
  dismiss: (e) => ut(e),
833
817
  onOpenTask: E,
834
- loadMore: Be,
818
+ loadMore: ze,
835
819
  changeScope: Xe,
836
- commitFilters: W,
820
+ commitFilters: q,
837
821
  serverMode: p
838
822
  };
839
823
  const Ps = z(() => {
@@ -868,10 +852,10 @@ const En = Ls(
868
852
  loadMore: () => e().loadMore()
869
853
  };
870
854
  }, [ft]);
871
- Qs(dn, Ps, a);
855
+ Qs(cn, Ps, a);
872
856
  const xs = (e) => {
873
857
  if (!e.type) return null;
874
- const t = wn[e.type], s = (t == null ? void 0 : t.variant) ?? "neutral", r = (t == null ? void 0 : t.Icon) ?? _t, n = e.typeLabel || Xt[e.type] || d("tasksPanel.types.other");
858
+ const t = bn[e.type], s = (t == null ? void 0 : t.variant) ?? "neutral", r = (t == null ? void 0 : t.Icon) ?? _t, n = e.typeLabel || Xt[e.type] || d("tasksPanel.types.other");
875
859
  return /* @__PURE__ */ c(
876
860
  $s,
877
861
  {
@@ -883,7 +867,7 @@ const En = Ls(
883
867
  );
884
868
  }, Ss = (e) => S ? null : /* @__PURE__ */ b(we, { children: [
885
869
  re ? /* @__PURE__ */ c(
886
- qe,
870
+ He,
887
871
  {
888
872
  icon: /* @__PURE__ */ c(Zs, {}),
889
873
  intent: "ghost",
@@ -894,7 +878,7 @@ const En = Ls(
894
878
  }
895
879
  ) : null,
896
880
  N ? /* @__PURE__ */ c(
897
- qe,
881
+ He,
898
882
  {
899
883
  icon: /* @__PURE__ */ c(en, {}),
900
884
  intent: "ghost",
@@ -907,7 +891,7 @@ const En = Ls(
907
891
  }
908
892
  ) : null
909
893
  ] }), Ts = (e) => {
910
- const t = (Re == null ? void 0 : Re(e)) ?? null, r = (S ? null : Te == null ? void 0 : Te(e)) ?? Ss(e), n = xs(e);
894
+ const t = (Te == null ? void 0 : Te(e)) ?? null, r = (S ? null : Se == null ? void 0 : Se(e)) ?? Ss(e), n = xs(e);
911
895
  if (!(!n && !t && !r))
912
896
  return /* @__PURE__ */ b(we, { children: [
913
897
  n,
@@ -923,7 +907,7 @@ const En = Ls(
923
907
  },
924
908
  e
925
909
  ), vt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: typeof P == "boolean" ? /* @__PURE__ */ c(
926
- $e,
910
+ We,
927
911
  {
928
912
  variant: "error",
929
913
  size: "sm",
@@ -932,16 +916,16 @@ const En = Ls(
932
916
  primaryAction: ae ? { label: d("emptyState.error.cta"), onClick: ae } : void 0
933
917
  }
934
918
  ) : P }), Le = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3].map((e) => mt(`skeleton-${e}`)) }), ht = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
935
- $e,
919
+ We,
936
920
  {
937
921
  variant: "first-use",
938
922
  size: "sm",
939
923
  title: $t ?? d("tasksPanel.empty.title"),
940
- description: Wt ?? d("tasksPanel.empty.description"),
924
+ description: qt ?? d("tasksPanel.empty.description"),
941
925
  primaryAction: Kt
942
926
  }
943
- ) }), Es = Object.values(q).some(Boolean), gt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
944
- $e,
927
+ ) }), Es = Object.values(W).some(Boolean), gt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
928
+ We,
945
929
  {
946
930
  variant: "no-results",
947
931
  size: "sm",
@@ -952,9 +936,9 @@ const En = Ls(
952
936
  onClick: ds
953
937
  } : void 0
954
938
  }
955
- ) }), Os = p && P ? /* @__PURE__ */ c("div", { className: "ds:shrink-0 ds:px-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]", children: typeof P == "boolean" ? /* @__PURE__ */ b(He, { variant: "error", children: [
956
- /* @__PURE__ */ c(He.Title, { as: "p", children: d("tasksPanel.error.title") }),
957
- ae ? /* @__PURE__ */ c(He.Action, { children: /* @__PURE__ */ c(Pe, { intent: "outline", size: "sm", onClick: ae, children: d("emptyState.error.cta") }) }) : null
939
+ ) }), Os = p && P ? /* @__PURE__ */ c("div", { className: "ds:shrink-0 ds:px-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]", children: typeof P == "boolean" ? /* @__PURE__ */ b(Ie, { variant: "error", children: [
940
+ /* @__PURE__ */ c(Ie.Title, { as: "p", children: d("tasksPanel.error.title") }),
941
+ ae ? /* @__PURE__ */ c(Ie.Action, { children: /* @__PURE__ */ c(Pe, { intent: "outline", size: "sm", onClick: ae, children: d("emptyState.error.cta") }) }) : null
958
942
  ] }) : P }) : null, yt = /* @__PURE__ */ b(we, { children: [
959
943
  Os,
960
944
  /* @__PURE__ */ b(
@@ -968,7 +952,7 @@ const En = Ls(
968
952
  "data-tasks-panel-region": "",
969
953
  "data-fade-top": fs ? "true" : void 0,
970
954
  "data-fade-bottom": ms ? "true" : void 0,
971
- className: gn,
955
+ className: hn,
972
956
  children: [
973
957
  /* @__PURE__ */ c(
974
958
  "ol",
@@ -981,15 +965,15 @@ const En = Ls(
981
965
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
982
966
  children: [
983
967
  /* @__PURE__ */ c(
984
- On,
968
+ En,
985
969
  {
986
970
  bucketKey: e.key,
987
971
  countLabel: Qe(e.items.length),
988
- showCount: !(p && Oe === !0),
972
+ showCount: !(p && Ee === !0),
989
973
  label: Qt[e.key],
990
974
  headerRef: e.key === "overdue" ? et : void 0,
991
975
  reflowId: `bucket-${e.key}`,
992
- leaving: e.items.every((t) => Me(t.id))
976
+ leaving: e.items.every((t) => Be(t.id))
993
977
  }
994
978
  ),
995
979
  /* @__PURE__ */ c("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: e.items.map((t) => {
@@ -1002,7 +986,7 @@ const En = Ls(
1002
986
  onActivate: E ? () => E(t) : void 0,
1003
987
  actions: Ts(t),
1004
988
  leading: D && !S ? /* @__PURE__ */ c(
1005
- bn,
989
+ kn,
1006
990
  {
1007
991
  item: t,
1008
992
  checked: ((s = F.get(t.id)) == null ? void 0 : s.next) ?? t.status === "done",
@@ -1014,8 +998,8 @@ const En = Ls(
1014
998
  onToggle: Rs
1015
999
  }
1016
1000
  ) : void 0,
1017
- className: `${yn} ${jt}${Me(t.id) ? ` ${zt}` : ""}`,
1018
- "data-leaving": Me(t.id) ? "" : void 0,
1001
+ className: `${gn} ${At}${Be(t.id) ? ` ${zt}` : ""}`,
1002
+ "data-leaving": Be(t.id) ? "" : void 0,
1019
1003
  "data-reflow-id": t.id,
1020
1004
  "data-task-id": t.id
1021
1005
  },
@@ -1037,7 +1021,7 @@ const En = Ls(
1037
1021
  "aria-busy": Y || void 0,
1038
1022
  "aria-disabled": Y || void 0,
1039
1023
  onClick: () => {
1040
- Y || Be();
1024
+ Y || ze();
1041
1025
  },
1042
1026
  children: d("tasksPanel.loadMore")
1043
1027
  }
@@ -1048,14 +1032,14 @@ const En = Ls(
1048
1032
  ] });
1049
1033
  let x;
1050
1034
  if (p) {
1051
- const e = [...F.values()].some((s) => !s.settled), t = !pn(
1035
+ const e = [...F.values()].some((s) => !s.settled), t = !fn(
1052
1036
  {
1053
1037
  status: O,
1054
- type: L,
1038
+ type: M,
1055
1039
  assignee: I,
1056
1040
  overdueOnly: Je
1057
1041
  },
1058
- A
1042
+ j
1059
1043
  );
1060
1044
  P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ? gt : ht : x = yt;
1061
1045
  } else P ? x = vt : w ? x = Le : o.length === 0 ? x = ht : K.length === 0 ? x = gt : x = yt;
@@ -1063,8 +1047,8 @@ const En = Ls(
1063
1047
  G(() => {
1064
1048
  Ns(kt);
1065
1049
  }, [kt]);
1066
- const As = u === void 0 ? Ae : /* @__PURE__ */ b(we, { children: [
1067
- Ae,
1050
+ const js = u === void 0 ? Ne : /* @__PURE__ */ b(we, { children: [
1051
+ Ne,
1068
1052
  /* @__PURE__ */ c(
1069
1053
  "span",
1070
1054
  {
@@ -1075,8 +1059,8 @@ const En = Ls(
1075
1059
  }
1076
1060
  ),
1077
1061
  /* @__PURE__ */ c(Gs, { children: ` ${d("tasksPanel.totalCount", { count: u })}` })
1078
- ] }), bt = ((B == null ? void 0 : B.length) ?? 0) > 1, js = ["todo", "done", "all"], _s = U && !S ? /* @__PURE__ */ c(
1079
- qe,
1062
+ ] }), bt = ((B == null ? void 0 : B.length) ?? 0) > 1, As = ["todo", "done", "all"], _s = U && !S ? /* @__PURE__ */ c(
1063
+ He,
1080
1064
  {
1081
1065
  icon: /* @__PURE__ */ c(Xs, {}),
1082
1066
  intent: "outline",
@@ -1085,7 +1069,7 @@ const En = Ls(
1085
1069
  "data-action": "add-task",
1086
1070
  onClick: U
1087
1071
  }
1088
- ) : void 0, wt = q.status, Pt = !!(ce != null && ce.length) && q.type, xt = !!(le != null && le.length) && q.assignee, St = q.overdueOnly, Tt = Lt && (wt || Pt || xt || St), zs = bt || Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1072
+ ) : void 0, wt = W.status, Pt = !!(ce != null && ce.length) && W.type, xt = !!(le != null && le.length) && W.assignee, St = W.overdueOnly, Tt = Mt && (wt || Pt || xt || St), zs = bt || Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
1089
1073
  bt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.scope.label"), children: B.map((e) => {
1090
1074
  const t = es === e;
1091
1075
  return /* @__PURE__ */ c(
@@ -1101,7 +1085,7 @@ const En = Ls(
1101
1085
  );
1102
1086
  }) }) : null,
1103
1087
  Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
1104
- wt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.status.label"), children: js.map((e) => {
1088
+ wt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.status.label"), children: As.map((e) => {
1105
1089
  const t = O === e;
1106
1090
  return /* @__PURE__ */ c(
1107
1091
  Pe,
@@ -1110,7 +1094,7 @@ const En = Ls(
1110
1094
  size: "sm",
1111
1095
  "aria-pressed": t,
1112
1096
  "data-status-filter": e,
1113
- onClick: () => W({ status: e }),
1097
+ onClick: () => q({ status: e }),
1114
1098
  children: Yt[e]
1115
1099
  },
1116
1100
  e
@@ -1124,8 +1108,8 @@ const En = Ls(
1124
1108
  "aria-label": d("tasksPanel.type.label"),
1125
1109
  placeholder: d("tasksPanel.type.placeholder"),
1126
1110
  options: ce,
1127
- value: L ?? "",
1128
- onValueChange: (e) => W({ type: e || null })
1111
+ value: M ?? "",
1112
+ onValueChange: (e) => q({ type: e || null })
1129
1113
  }
1130
1114
  ) : null,
1131
1115
  xt ? /* @__PURE__ */ c(
@@ -1137,7 +1121,7 @@ const En = Ls(
1137
1121
  placeholder: d("tasksPanel.assignee.placeholder"),
1138
1122
  options: le,
1139
1123
  value: I ?? "",
1140
- onValueChange: (e) => W({ assignee: e || null })
1124
+ onValueChange: (e) => q({ assignee: e || null })
1141
1125
  }
1142
1126
  ) : null,
1143
1127
  St ? /* @__PURE__ */ c(
@@ -1148,7 +1132,7 @@ const En = Ls(
1148
1132
  label: d("tasksPanel.overdueOnly"),
1149
1133
  checked: Je,
1150
1134
  disabled: p && O === "done",
1151
- onCheckedChange: (e) => W({ overdueOnly: e })
1135
+ onCheckedChange: (e) => q({ overdueOnly: e })
1152
1136
  }
1153
1137
  ) : null
1154
1138
  ] }) : null
@@ -1161,15 +1145,15 @@ const En = Ls(
1161
1145
  "data-component-id": a,
1162
1146
  "aria-labelledby": Ge ? void 0 : Ye,
1163
1147
  "aria-label": Ge,
1164
- className: hn({ size: f, className: Vt }),
1148
+ className: vn({ size: f, className: Vt }),
1165
1149
  ...Ct,
1166
1150
  children: [
1167
1151
  /* @__PURE__ */ c(
1168
- Ws,
1152
+ qs,
1169
1153
  {
1170
- title: As,
1154
+ title: js,
1171
1155
  titleTooltip: u === void 0 ? void 0 : d("tasksPanel.titleWithCount", {
1172
- title: Ae,
1156
+ title: Ne,
1173
1157
  value: Fe.format(u)
1174
1158
  }),
1175
1159
  icon: k ?? /* @__PURE__ */ c(Js, {}),
@@ -1185,8 +1169,8 @@ const En = Ls(
1185
1169
  );
1186
1170
  }
1187
1171
  );
1188
- En.displayName = "TasksPanel";
1189
- function On({
1172
+ Rn.displayName = "TasksPanel";
1173
+ function En({
1190
1174
  bucketKey: a,
1191
1175
  countLabel: o,
1192
1176
  showCount: h = !0,
@@ -1208,7 +1192,7 @@ function On({
1208
1192
  // A header travels with its bucket, and leaves with it: a heading
1209
1193
  // left standing over nothing, or snapping while its rows glide,
1210
1194
  // reads as two lists rather than one.
1211
- jt,
1195
+ At,
1212
1196
  "ds:transition-opacity ds:duration-[var(--animation-duration)]",
1213
1197
  "ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
1214
1198
  f ? zt : "",
@@ -1236,7 +1220,7 @@ function On({
1236
1220
  );
1237
1221
  }
1238
1222
  export {
1239
- En as T,
1240
- dn as t
1223
+ Rn as T,
1224
+ cn as t
1241
1225
  };
1242
- //# sourceMappingURL=tasks-panel-BE3zaayj.js.map
1226
+ //# sourceMappingURL=tasks-panel-6EzdnwT8.js.map