@alfadocs/ui-kit 1.128.0 → 1.130.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 (173) hide show
  1. package/dist/_chunks/{appointment-card-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
  2. package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
  3. package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
  4. package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
  5. package/dist/_chunks/calendar-appointment-editor-dialog-CXch4Pmu.js +13663 -0
  6. package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
  7. package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
  8. package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
  9. package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
  10. package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
  11. package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
  12. package/dist/_chunks/contact-round-DiSvB3LP.js +18 -0
  13. package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
  14. package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-KHM0PnSI.js} +56 -68
  15. package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
  16. package/dist/_chunks/{header-settings-DsvheAOt.js → header-settings-ZGvYAuKF.js} +101 -97
  17. package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
  18. package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
  19. package/dist/_chunks/{marketplace-app-shell-BOBWmzoT.js → marketplace-app-shell-D_HA8CKx.js} +2 -2
  20. package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
  21. package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
  22. package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
  23. package/dist/_chunks/{notes-panel-n1JFNQ5u.js → notes-panel-DIY7eNsq.js} +2 -2
  24. package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
  25. package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
  26. package/dist/_chunks/{patient-search-D_S7joff.js → patient-search-OAwFgOW3.js} +2 -2
  27. package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
  28. package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
  29. package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
  30. package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
  31. package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
  32. package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
  33. package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
  34. package/dist/_chunks/{toast-BNoN8Qjh.js → toast-DQ1Zu1kk.js} +264 -251
  35. package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
  36. package/dist/_chunks/use-appointment-details-read-BrykoTOR.js +2475 -0
  37. package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
  38. package/dist/agent-catalog.json +49 -16
  39. package/dist/agent-i18n/en.json +5 -5
  40. package/dist/browser-support.js +1 -1
  41. package/dist/components/_shared/patient-picker.d.ts +10 -0
  42. package/dist/components/appointment-card/index.js +2 -2
  43. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +30 -1
  44. package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +15 -0
  45. package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
  46. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +12 -3
  47. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
  48. package/dist/components/appointment-details-panel/index.d.ts +2 -1
  49. package/dist/components/appointment-details-panel/index.js +5 -4
  50. package/dist/components/appointment-timeline/index.js +1 -1
  51. package/dist/components/bill-table/index.js +1 -1
  52. package/dist/components/calendar/calendar.d.ts +22 -0
  53. package/dist/components/calendar/index.js +1 -1
  54. package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
  55. package/dist/components/calendar-event-card/index.js +1 -1
  56. package/dist/components/care-plan-card/index.js +1 -1
  57. package/dist/components/care-plan-header/index.js +1 -1
  58. package/dist/components/clinical-note-card/index.js +1 -1
  59. package/dist/components/contact-card/index.js +1 -1
  60. package/dist/components/contact-profile-card/index.js +1 -1
  61. package/dist/components/entity-summary/index.js +1 -1
  62. package/dist/components/header-settings/index.js +1 -1
  63. package/dist/components/info-tip/index.js +1 -1
  64. package/dist/components/link/index.js +1 -1
  65. package/dist/components/nav-grid/index.js +1 -1
  66. package/dist/components/note-timeline/index.js +1 -1
  67. package/dist/components/notes-panel/index.js +1 -1
  68. package/dist/components/patient-details/index.js +1 -1
  69. package/dist/components/patient-search/index.js +1 -1
  70. package/dist/components/patient-summary-card/index.js +1 -1
  71. package/dist/components/payment-card/index.js +1 -1
  72. package/dist/components/product-hub-tray/index.js +1 -1
  73. package/dist/components/public-footer/index.js +1 -1
  74. package/dist/components/task-editor/index.js +1 -1
  75. package/dist/components/toast/index.js +1 -1
  76. package/dist/components/treatment-receipt/index.d.ts +2 -2
  77. package/dist/components/treatment-receipt/index.js +2 -1
  78. package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
  79. package/dist/components/whatsapp-button/index.js +1 -1
  80. package/dist/core.css +1 -1
  81. package/dist/fullcalendar.css +5 -1
  82. package/dist/host-compat.css +4 -1
  83. package/dist/i18n/locales/ar.d.ts +119 -4
  84. package/dist/i18n/locales/ar.js +130 -15
  85. package/dist/i18n/locales/de.d.ts +119 -4
  86. package/dist/i18n/locales/de.js +130 -15
  87. package/dist/i18n/locales/el.d.ts +119 -4
  88. package/dist/i18n/locales/el.js +130 -15
  89. package/dist/i18n/locales/en.d.ts +119 -4
  90. package/dist/i18n/locales/en.js +122 -10
  91. package/dist/i18n/locales/es.d.ts +119 -4
  92. package/dist/i18n/locales/es.js +130 -15
  93. package/dist/i18n/locales/fr.d.ts +119 -4
  94. package/dist/i18n/locales/fr.js +130 -15
  95. package/dist/i18n/locales/hi.d.ts +119 -4
  96. package/dist/i18n/locales/hi.js +130 -15
  97. package/dist/i18n/locales/it.d.ts +119 -4
  98. package/dist/i18n/locales/it.js +130 -15
  99. package/dist/i18n/locales/ja.d.ts +119 -4
  100. package/dist/i18n/locales/ja.js +130 -15
  101. package/dist/i18n/locales/nl.d.ts +119 -4
  102. package/dist/i18n/locales/nl.js +130 -15
  103. package/dist/i18n/locales/pl.d.ts +119 -4
  104. package/dist/i18n/locales/pl.js +130 -15
  105. package/dist/i18n/locales/pt.d.ts +119 -4
  106. package/dist/i18n/locales/pt.js +130 -15
  107. package/dist/i18n/locales/ro.d.ts +119 -4
  108. package/dist/i18n/locales/ro.js +130 -15
  109. package/dist/i18n/locales/ru.d.ts +119 -4
  110. package/dist/i18n/locales/ru.js +130 -15
  111. package/dist/i18n/locales/sq.d.ts +119 -4
  112. package/dist/i18n/locales/sq.js +130 -15
  113. package/dist/i18n/locales/sv.d.ts +119 -4
  114. package/dist/i18n/locales/sv.js +130 -15
  115. package/dist/i18n/locales/tr.d.ts +119 -4
  116. package/dist/i18n/locales/tr.js +130 -15
  117. package/dist/i18n/locales/zh.d.ts +119 -4
  118. package/dist/i18n/locales/zh.js +130 -15
  119. package/dist/index.js +1112 -1107
  120. package/dist/locales/ar.json +130 -15
  121. package/dist/locales/de.json +130 -15
  122. package/dist/locales/el.json +130 -15
  123. package/dist/locales/en.json +122 -7
  124. package/dist/locales/es.json +130 -15
  125. package/dist/locales/fr.json +130 -15
  126. package/dist/locales/hi.json +130 -15
  127. package/dist/locales/it.json +130 -15
  128. package/dist/locales/ja.json +130 -15
  129. package/dist/locales/nl.json +130 -15
  130. package/dist/locales/pl.json +130 -15
  131. package/dist/locales/pt.json +130 -15
  132. package/dist/locales/ro.json +130 -15
  133. package/dist/locales/ru.json +130 -15
  134. package/dist/locales/sq.json +130 -15
  135. package/dist/locales/sv.json +130 -15
  136. package/dist/locales/tr.json +130 -15
  137. package/dist/locales/zh.json +130 -15
  138. package/dist/patterns/calendar/calendar-appointment-details.d.ts +83 -2
  139. package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
  140. package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
  141. package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
  142. package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
  143. package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
  144. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
  145. package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
  146. package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
  147. package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
  148. package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
  149. package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
  150. package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
  151. package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
  152. package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
  153. package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
  154. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
  155. package/dist/patterns/calendar/calendar-workspace.d.ts +285 -6
  156. package/dist/patterns/calendar/calendar-workspace.model.d.ts +103 -17
  157. package/dist/patterns/calendar/calendar.data.d.ts +9 -3
  158. package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
  159. package/dist/patterns/calendar/calendar.model.d.ts +129 -22
  160. package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
  161. package/dist/patterns/calendar/calendar.sheets.d.ts +129 -18
  162. package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
  163. package/dist/patterns/calendar/calendar.types.d.ts +231 -6
  164. package/dist/patterns/calendar/index.d.ts +9 -6
  165. package/dist/patterns/calendar/index.js +18 -15
  166. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  167. package/dist/patterns/signature-request/index.js +1 -1
  168. package/dist/patterns/signed-out-frame/index.js +1 -1
  169. package/dist/tokens.css +5 -1
  170. package/package.json +1 -1
  171. package/dist/_chunks/calendar-appointment-editor-dialog-CGDDGMdo.js +0 -10974
  172. package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
  173. package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
@@ -1,10 +1,10 @@
1
- import { jsx as t, jsxs as p, Fragment as X } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as m, Fragment as X } from "react/jsx-runtime";
2
2
  import { forwardRef as le, useRef as d, useImperativeHandle as de, useState as ue, useCallback as pe, useMemo as me } from "react";
3
3
  import { c as A } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ee } from "react-i18next";
5
5
  import { B as ge } from "./button-DohK_Ak_.js";
6
6
  import { I as he } from "./icon-button-S8_weU3g.js";
7
- import { D as s } from "./dropdown-menu-Dw6sgQwJ.js";
7
+ import { D as n } from "./dropdown-menu-Dw6sgQwJ.js";
8
8
  import { u as fe, p as ye, d as S, r as be, b as te } from "./locale-picker-C86h8Yt1.js";
9
9
  import { u as we } from "./use-media-query-CcAx5SMM.js";
10
10
  import { u as ve } from "./use-locale-BExNy9Dl.js";
@@ -143,7 +143,7 @@ function Ke(a) {
143
143
  const i = document.documentElement;
144
144
  i.lang = a, i.dir = S[a].dir;
145
145
  }
146
- const Ne = A("ds:inline-flex ds:items-center", {
146
+ const _e = A("ds:inline-flex ds:items-center", {
147
147
  variants: {
148
148
  align: {
149
149
  start: "",
@@ -151,7 +151,7 @@ const Ne = A("ds:inline-flex ds:items-center", {
151
151
  }
152
152
  },
153
153
  defaultVariants: { align: "end" }
154
- }), Pe = A("", {
154
+ }), ze = A("", {
155
155
  variants: {
156
156
  size: {
157
157
  // Button sm is 44px tall on phones; IconButton sm is only 32px wide.
@@ -163,27 +163,29 @@ const Ne = A("ds:inline-flex ds:items-center", {
163
163
  }
164
164
  },
165
165
  defaultVariants: { size: "md" }
166
- }), Ee = "ds:w-[var(--popover-size-md)]", xe = A("", {
166
+ }), Ne = "ds:w-[var(--popover-size-md)]", Pe = A("", {
167
167
  variants: {
168
- language: {
169
- true: "ds:[inline-size:var(--popover-size-md)] ds:[min-inline-size:0] ds:[max-inline-size:calc(100vw_-_2_*_var(--spacing-lg))] ds:[&_input]:min-w-0",
170
- false: ""
168
+ width: {
169
+ content: "",
170
+ language: "ds:[inline-size:var(--popover-size-md)] ds:[min-inline-size:0] ds:[max-inline-size:calc(100vw_-_2_*_var(--spacing-lg))] ds:[&_input]:min-w-0",
171
+ phone: "ds:[inline-size:calc(100vw_-_2_*_var(--spacing-lg))] ds:[min-inline-size:0] ds:[max-inline-size:none] ds:[&_input]:min-w-0"
171
172
  }
172
- }
173
- }), He = A(
173
+ },
174
+ defaultVariants: { width: "content" }
175
+ }), xe = A(
174
176
  "ds:flex ds:flex-1 ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
175
177
  );
176
178
  function R({
177
179
  label: a,
178
180
  value: i,
179
- lang: m
181
+ lang: g
180
182
  }) {
181
- return /* @__PURE__ */ p("span", { className: He(), children: [
183
+ return /* @__PURE__ */ m("span", { className: xe(), children: [
182
184
  /* @__PURE__ */ t("span", { className: "ds:truncate", children: a }),
183
185
  /* @__PURE__ */ t(
184
186
  "span",
185
187
  {
186
- lang: m,
188
+ lang: g,
187
189
  className: "ds:shrink-0 ds:text-muted-foreground ds:[[data-highlighted]_&]:text-current",
188
190
  children: i
189
191
  }
@@ -193,91 +195,91 @@ function R({
193
195
  function ae(a) {
194
196
  return Object.prototype.hasOwnProperty.call(S, a);
195
197
  }
196
- function ze({
198
+ function Ee({
197
199
  locale: a,
198
200
  onLocaleChange: i
199
201
  }) {
200
- const { t: m } = ee("ui"), g = S[ae(a) ? a : "en"], D = (n) => {
202
+ const { t: g } = ee("ui"), h = S[ae(a) ? a : "en"], D = (s) => {
201
203
  var o;
202
- n.target === n.currentTarget && ((o = n.currentTarget.querySelector("input")) == null || o.focus({ preventScroll: !0 }));
203
- }, I = (n) => {
204
- const o = n.target;
204
+ s.target === s.currentTarget && ((o = s.currentTarget.querySelector("input")) == null || o.focus({ preventScroll: !0 }));
205
+ }, I = (s) => {
206
+ const o = s.target;
205
207
  if (o instanceof HTMLInputElement) {
206
- if (n.nativeEvent.isComposing) {
207
- n.stopPropagation();
208
+ if (s.nativeEvent.isComposing) {
209
+ s.stopPropagation();
208
210
  return;
209
211
  }
210
- n.key !== "ArrowLeft" && n.key !== "ArrowRight" || (o.selectionStart !== 0 || o.selectionEnd !== 0) && n.stopPropagation();
212
+ s.key !== "ArrowLeft" && s.key !== "ArrowRight" || (o.selectionStart !== 0 || o.selectionEnd !== 0) && s.stopPropagation();
211
213
  }
212
214
  };
213
- return /* @__PURE__ */ p(s.Sub, { children: [
214
- /* @__PURE__ */ t(s.SubTrigger, { "aria-haspopup": "dialog", "data-value": g.code, children: /* @__PURE__ */ p("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
215
- /* @__PURE__ */ t("span", { className: "ds:truncate", children: m("navigation.headerSettings.language.label") }),
215
+ return /* @__PURE__ */ m(n.Sub, { children: [
216
+ /* @__PURE__ */ t(n.SubTrigger, { "aria-haspopup": "dialog", "data-value": h.code, children: /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
217
+ /* @__PURE__ */ t("span", { className: "ds:truncate", children: g("navigation.headerSettings.language.label") }),
216
218
  /* @__PURE__ */ t(
217
219
  "span",
218
220
  {
219
- lang: g.code,
221
+ lang: h.code,
220
222
  className: "ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:[[data-highlighted]_&]:text-current",
221
- children: g.nativeName
223
+ children: h.nativeName
222
224
  }
223
225
  )
224
226
  ] }) }),
225
227
  /* @__PURE__ */ t(
226
- s.SubContent,
228
+ n.SubContent,
227
229
  {
228
230
  role: "dialog",
229
231
  "aria-orientation": void 0,
230
- className: Ee,
232
+ className: Ne,
231
233
  onFocus: D,
232
234
  onKeyDownCapture: I,
233
- onEscapeKeyDown: (n) => {
234
- n.isComposing && n.preventDefault();
235
+ onEscapeKeyDown: (s) => {
236
+ s.isComposing && s.preventDefault();
235
237
  },
236
238
  children: /* @__PURE__ */ t(te.SearchList, { onLocaleChange: i })
237
239
  }
238
240
  )
239
241
  ] });
240
242
  }
241
- const _e = le(
243
+ const He = le(
242
244
  (a, i) => {
243
245
  var G;
244
246
  const {
245
- align: m = "end",
246
- size: g = "md",
247
+ align: g = "end",
248
+ size: h = "md",
247
249
  disabled: D = !1,
248
250
  initialLocaleFromHtmlLang: I = !1,
249
- followHtmlLang: n = !1,
251
+ followHtmlLang: s = !1,
250
252
  onLocaleChange: o,
251
- className: se,
252
- id: _,
253
- ...ne
253
+ className: ne,
254
+ id: H,
255
+ ...se
254
256
  } = a, { t: u } = ee("ui"), c = Se(), { locale: w, setLocale: M } = ve();
255
- fe(I, n);
256
- const F = d(o);
257
- F.current = o;
257
+ fe(I, s);
258
+ const V = d(o);
259
+ V.current = o;
258
260
  const K = d(null);
259
261
  de(i, () => K.current, []);
260
- const h = we("(width < 48rem)"), V = Le(), [L, f] = ue("main"), l = h ? L : "main", k = d(null), j = d(null), q = d(null), y = d(null), T = d("keyboard");
262
+ const p = we("(width < 48rem)"), F = Le(), [L, f] = ue("main"), l = p ? L : "main", k = d(null), j = d(null), q = d(null), y = d(null), T = d("keyboard");
261
263
  ke(() => {
262
264
  var e, r, v, Q, W;
263
- if (!h && L !== "main" && (y.current = L, f("main")), l === "language")
265
+ if (!p && L !== "main" && (y.current = L, f("main")), l === "language")
264
266
  (r = (e = k.current) == null ? void 0 : e.querySelector(
265
267
  T.current === "keyboard" ? "input" : "button"
266
268
  )) == null || r.focus({ preventScroll: !0 });
267
269
  else if (l === "appearance")
268
270
  (Q = (v = k.current) == null ? void 0 : v.querySelector('[role="menuitem"]')) == null || Q.focus({ preventScroll: !0 });
269
271
  else if (y.current) {
270
- const J = y.current, z = h ? (J === "language" ? j : q).current : (W = k.current) == null ? void 0 : W.querySelector(
272
+ const J = y.current, E = p ? (J === "language" ? j : q).current : (W = k.current) == null ? void 0 : W.querySelector(
271
273
  `[role="menuitem"][aria-haspopup="${J === "language" ? "dialog" : "menu"}"]`
272
274
  );
273
- z == null || z.focus({ preventScroll: !0 }), y.current = null;
275
+ E == null || E.focus({ preventScroll: !0 }), y.current = null;
274
276
  }
275
- }, [h, L, l]);
277
+ }, [p, L, l]);
276
278
  const O = (e, r) => {
277
279
  if (e.nativeEvent.isComposing) return;
278
- const v = V === "rtl" ? "ArrowLeft" : "ArrowRight";
280
+ const v = F === "rtl" ? "ArrowLeft" : "ArrowRight";
279
281
  (e.key === "Enter" || e.key === " " || e.key === v) && (T.current = "keyboard"), e.key === v && (e.preventDefault(), f(r));
280
- }, N = () => {
282
+ }, _ = () => {
281
283
  l !== "main" && (y.current = l, f("main"));
282
284
  }, re = (e) => {
283
285
  if (l === "main") return;
@@ -285,10 +287,10 @@ const _e = le(
285
287
  e.stopPropagation();
286
288
  return;
287
289
  }
288
- if (e.key !== (V === "rtl" ? "ArrowRight" : "ArrowLeft"))
290
+ if (e.key !== (F === "rtl" ? "ArrowRight" : "ArrowLeft"))
289
291
  return;
290
292
  const r = e.target;
291
- r instanceof HTMLInputElement && (r.selectionStart !== 0 || r.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(), N());
293
+ r instanceof HTMLInputElement && (r.selectionStart !== 0 || r.selectionEnd !== 0) || (e.preventDefault(), e.stopPropagation(), _());
292
294
  }, B = pe(
293
295
  (e) => {
294
296
  M(e), Ke(e), ye(e);
@@ -296,17 +298,17 @@ const _e = le(
296
298
  [M]
297
299
  ), $ = d(B);
298
300
  $.current = B;
299
- const P = d(w);
300
- P.current = w;
301
+ const z = d(w);
302
+ z.current = w;
301
303
  const b = d(c);
302
304
  b.current = c;
303
305
  const ie = me(
304
306
  () => ({
305
307
  setLocale: (e) => {
306
308
  if (Object.prototype.hasOwnProperty.call(S, e)) {
307
- const r = P.current;
309
+ const r = z.current;
308
310
  $.current(e), be(
309
- F.current,
311
+ V.current,
310
312
  e,
311
313
  r
312
314
  );
@@ -319,15 +321,15 @@ const _e = le(
319
321
  // class, so `theme: 'system'` and `theme: 'light'` both paint
320
322
  // `.theme-light`. Without these an agent cannot tell a switch
321
323
  // that landed from one that was dropped.
322
- getLocale: () => P.current,
324
+ getLocale: () => z.current,
323
325
  getTheme: () => b.current.theme,
324
326
  getAccessibility: () => b.current.accessibility,
325
327
  getResolvedTheme: () => b.current.resolvedTheme
326
328
  }),
327
329
  []
328
330
  );
329
- Te(Ie, ie, _);
330
- const oe = c.accessibility === "accessible", ce = Ce("--spacing-lg", K, 24), E = u("navigation.headerSettings.language.label"), C = u("navigation.headerSettings.appearance.label"), x = S[ae(w) ? w : "en"], H = [
331
+ Te(Ie, ie, H);
332
+ const oe = c.accessibility === "accessible", ce = Ce("--spacing-lg", K, 24), N = u("navigation.headerSettings.language.label"), C = u("navigation.headerSettings.appearance.label"), P = S[ae(w) ? w : "en"], x = [
331
333
  {
332
334
  value: "light",
333
335
  label: u("navigation.headerSettings.appearance.light")
@@ -343,44 +345,46 @@ const _e = le(
343
345
  {
344
346
  ref: K,
345
347
  "data-component": "header-settings",
346
- "data-component-id": _,
347
- className: Ne({ align: m, className: se }),
348
- ...ne,
349
- children: /* @__PURE__ */ p(
350
- s.Root,
348
+ "data-component-id": H,
349
+ className: _e({ align: g, className: ne }),
350
+ ...se,
351
+ children: /* @__PURE__ */ m(
352
+ n.Root,
351
353
  {
352
354
  onOpenChange: (e) => {
353
355
  e || (y.current = null, f("main"));
354
356
  },
355
357
  children: [
356
- /* @__PURE__ */ t(s.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
358
+ /* @__PURE__ */ t(n.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
357
359
  he,
358
360
  {
359
- size: g,
360
- className: Pe({ size: g }),
361
+ size: h,
362
+ className: ze({ size: h }),
361
363
  disabled: D,
362
364
  icon: /* @__PURE__ */ t(De, { "aria-hidden": !0 }),
363
365
  "aria-label": u("navigation.headerSettings.trigger")
364
366
  }
365
367
  ) }),
366
368
  /* @__PURE__ */ t(
367
- s.Content,
369
+ n.Content,
368
370
  {
369
371
  ref: k,
370
- align: m,
372
+ align: g,
371
373
  collisionPadding: ce,
372
- className: xe({ language: l === "language" }),
374
+ className: Pe({
375
+ width: p ? "phone" : l === "language" ? "language" : "content"
376
+ }),
373
377
  ...l === "language" ? {
374
378
  role: "dialog",
375
379
  "aria-orientation": void 0,
376
- "aria-label": E,
380
+ "aria-label": N,
377
381
  "aria-labelledby": void 0
378
382
  } : {},
379
383
  onKeyDownCapture: re,
380
384
  onEscapeKeyDown: (e) => {
381
385
  e.isComposing && e.preventDefault();
382
386
  },
383
- children: l === "language" ? /* @__PURE__ */ p(
387
+ children: l === "language" ? /* @__PURE__ */ m(
384
388
  "div",
385
389
  {
386
390
  role: "presentation",
@@ -399,17 +403,17 @@ const _e = le(
399
403
  className: "ds:w-full ds:justify-start ds:text-start ds:font-normal ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:gap-[var(--spacing-sm)] ds:[&>span:last-child]:flex-1",
400
404
  startIcon: /* @__PURE__ */ t(Y, { "aria-hidden": !0, className: "ds:size-4" }),
401
405
  flipIconInRtl: !0,
402
- onClick: N,
403
- children: /* @__PURE__ */ t(R, { label: U, value: E })
406
+ onClick: _,
407
+ children: /* @__PURE__ */ t(R, { label: U, value: N })
404
408
  }
405
409
  ),
406
- /* @__PURE__ */ t(s.Separator, {}),
410
+ /* @__PURE__ */ t(n.Separator, {}),
407
411
  /* @__PURE__ */ t(te.SearchList, { onLocaleChange: o })
408
412
  ]
409
413
  }
410
- ) : l === "appearance" ? /* @__PURE__ */ p(X, { children: [
414
+ ) : l === "appearance" ? /* @__PURE__ */ m(X, { children: [
411
415
  /* @__PURE__ */ t(
412
- s.Item,
416
+ n.Item,
413
417
  {
414
418
  startIcon: /* @__PURE__ */ t(
415
419
  Y,
@@ -419,20 +423,20 @@ const _e = le(
419
423
  }
420
424
  ),
421
425
  onSelect: (e) => {
422
- e.preventDefault(), N();
426
+ e.preventDefault(), _();
423
427
  },
424
428
  children: /* @__PURE__ */ t(R, { label: U, value: C })
425
429
  }
426
430
  ),
427
- /* @__PURE__ */ t(s.Separator, {}),
431
+ /* @__PURE__ */ t(n.Separator, {}),
428
432
  /* @__PURE__ */ t(
429
- s.RadioGroup,
433
+ n.RadioGroup,
430
434
  {
431
435
  "aria-label": C,
432
436
  value: c.theme,
433
437
  onValueChange: (e) => c.setTheme(e),
434
- children: H.map((e) => /* @__PURE__ */ t(
435
- s.RadioItem,
438
+ children: x.map((e) => /* @__PURE__ */ t(
439
+ n.RadioItem,
436
440
  {
437
441
  value: e.value,
438
442
  onSelect: (r) => r.preventDefault(),
@@ -442,13 +446,13 @@ const _e = le(
442
446
  ))
443
447
  }
444
448
  )
445
- ] }) : /* @__PURE__ */ p(X, { children: [
446
- h ? /* @__PURE__ */ t(
447
- s.Item,
449
+ ] }) : /* @__PURE__ */ m(X, { children: [
450
+ p ? /* @__PURE__ */ t(
451
+ n.Item,
448
452
  {
449
453
  ref: j,
450
454
  "aria-haspopup": "dialog",
451
- "data-value": x.code,
455
+ "data-value": P.code,
452
456
  endIcon: /* @__PURE__ */ t(
453
457
  Z,
454
458
  {
@@ -466,22 +470,22 @@ const _e = le(
466
470
  children: /* @__PURE__ */ t(
467
471
  R,
468
472
  {
469
- label: E,
470
- value: x.nativeName,
471
- lang: x.code
473
+ label: N,
474
+ value: P.nativeName,
475
+ lang: P.code
472
476
  }
473
477
  )
474
478
  }
475
479
  ) : /* @__PURE__ */ t(
476
- ze,
480
+ Ee,
477
481
  {
478
482
  locale: w,
479
483
  onLocaleChange: o
480
484
  }
481
485
  ),
482
- /* @__PURE__ */ t(s.Separator, {}),
483
- h ? /* @__PURE__ */ t(
484
- s.Item,
486
+ /* @__PURE__ */ t(n.Separator, {}),
487
+ p ? /* @__PURE__ */ t(
488
+ n.Item,
485
489
  {
486
490
  ref: q,
487
491
  "aria-haspopup": "menu",
@@ -504,23 +508,23 @@ const _e = le(
504
508
  R,
505
509
  {
506
510
  label: C,
507
- value: ((G = H.find(
511
+ value: ((G = x.find(
508
512
  (e) => e.value === c.theme
509
513
  )) == null ? void 0 : G.label) ?? ""
510
514
  }
511
515
  )
512
516
  }
513
517
  ) : /* @__PURE__ */ t(
514
- s.ChoiceSub,
518
+ n.ChoiceSub,
515
519
  {
516
520
  label: C,
517
521
  value: c.theme,
518
522
  onValueChange: c.setTheme,
519
- options: H
523
+ options: x
520
524
  }
521
525
  ),
522
526
  /* @__PURE__ */ t(
523
- s.SwitchItem,
527
+ n.SwitchItem,
524
528
  {
525
529
  checked: oe,
526
530
  onCheckedChange: (e) => c.setAccessibility(e ? "accessible" : "default"),
@@ -537,8 +541,8 @@ const _e = le(
537
541
  );
538
542
  }
539
543
  );
540
- _e.displayName = "HeaderSettings";
544
+ He.displayName = "HeaderSettings";
541
545
  export {
542
- _e as H
546
+ He as H
543
547
  };
544
- //# sourceMappingURL=header-settings-DsvheAOt.js.map
548
+ //# sourceMappingURL=header-settings-ZGvYAuKF.js.map
@@ -3,7 +3,7 @@ import { forwardRef as E, useState as F, useRef as i, useEffect as M, useMemo as
3
3
  import { c as _ } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as H } from "react-i18next";
5
5
  import { P as f } from "./popover-CN5IsOeS.js";
6
- import { L as V } from "./link-DtCfnLnF.js";
6
+ import { L as V } from "./link-CeV7FoI6.js";
7
7
  import { S as q } from "./scroll-area-CY5SLYNw.js";
8
8
  import { c as $ } from "./compose-refs-C0k0tdqF.js";
9
9
  import { u as G } from "./registry-DvAUVLHh.js";
@@ -263,4 +263,4 @@ export {
263
263
  Z as I,
264
264
  Q as i
265
265
  };
266
- //# sourceMappingURL=info-tip-C-MPkShR.js.map
266
+ //# sourceMappingURL=info-tip-B3cn3fY2.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as j } from "react/jsx-runtime";
2
2
  import { forwardRef as B } from "react";
3
3
  import { c as u } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as D } from "react-i18next";
5
- import { a as G } from "./whatsapp-button-DV9JFmtq.js";
5
+ import { a as G } from "./whatsapp-button-XbozeDl_.js";
6
6
  import { G as O } from "./globe-sHBW1JN5.js";
7
7
  import { E as P } from "./external-link-CY6zAXXU.js";
8
8
  const o = {
@@ -329,4 +329,4 @@ export {
329
329
  d1 as L,
330
330
  n1 as S
331
331
  };
332
- //# sourceMappingURL=link-DtCfnLnF.js.map
332
+ //# sourceMappingURL=link-CeV7FoI6.js.map
@@ -9,7 +9,7 @@ import { C as U } from "./card-n6W6LW-N.js";
9
9
  import { D as u } from "./dropdown-menu-Dw6sgQwJ.js";
10
10
  import { T as ke } from "./tab-bar-CF8R38Og.js";
11
11
  import { a as Y, H as we, g as Ne, f as G, e as ye, c as Se, d as Ce } from "./header-l_B8MV0g.js";
12
- import { H as Ae } from "./header-settings-DsvheAOt.js";
12
+ import { H as Ae } from "./header-settings-ZGvYAuKF.js";
13
13
  import { S as Te } from "./sign-in-with-alfadocs-button-DzrNgbWv.js";
14
14
  import { S as Ee, a as ee, v as ze, h as Ie, c as Me, r as Le, b as He, l as Ve, m as Be, k as Re, j as J } from "./sidebar-D5DFYN5K.js";
15
15
  import { N as De } from "./navigation-dismiss-B1mcW1CT.js";
@@ -656,4 +656,4 @@ export {
656
656
  na as M,
657
657
  y as P
658
658
  };
659
- //# sourceMappingURL=marketplace-app-shell-BOBWmzoT.js.map
659
+ //# sourceMappingURL=marketplace-app-shell-D_HA8CKx.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as w, Fragment as x } from "react/jsx-runtime";
2
2
  import { forwardRef as N, useMemo as l } from "react";
3
3
  import { c as p } from "./index-D2ZczOXr.js";
4
- import { L as C } from "./link-DtCfnLnF.js";
4
+ import { L as C } from "./link-CeV7FoI6.js";
5
5
  import { u as G } from "./registry-DvAUVLHh.js";
6
6
  const I = {
7
7
  id: "nav-grid",
@@ -165,4 +165,4 @@ export {
165
165
  I as n,
166
166
  c as t
167
167
  };
168
- //# sourceMappingURL=nav-grid-D2xVcHTO.js.map
168
+ //# sourceMappingURL=nav-grid-dEgDAri3.js.map
@@ -3,7 +3,7 @@ import { e as m } from "./escape-html-Cn9Fao6a.js";
3
3
  import { jsx as a } from "react/jsx-runtime";
4
4
  import { useTranslation as h } from "react-i18next";
5
5
  import { B as u } from "./badge-BUk4RjTS.js";
6
- import { L as g } from "./link-DtCfnLnF.js";
6
+ import { L as g } from "./link-CeV7FoI6.js";
7
7
  import { i as b } from "./is-safe-url-DkETxeHz.js";
8
8
  import { S as y } from "./scan-line-CNseIHQ0.js";
9
9
  import { L as N } from "./layers-DcAENmsZ.js";
@@ -119,4 +119,4 @@ export {
119
119
  U as P,
120
120
  I as n
121
121
  };
122
- //# sourceMappingURL=note-attachment-cnj2JRrg.js.map
122
+ //# sourceMappingURL=note-attachment-MNTIqdSz.js.map
@@ -4,7 +4,7 @@ import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as L } from "react-i18next";
5
5
  import { SafeHtml as A } from "../safe-html/index.js";
6
6
  import { C as P, S as b } from "./skeleton-tTWJpvAq.js";
7
- import { n as B, P as K, F as O, N as q } from "./note-attachment-cnj2JRrg.js";
7
+ import { n as B, P as K, F as O, N as q } from "./note-attachment-MNTIqdSz.js";
8
8
  import { u as G } from "./registry-DvAUVLHh.js";
9
9
  const J = {
10
10
  id: "note-timeline",
@@ -330,4 +330,4 @@ export {
330
330
  X as N,
331
331
  J as n
332
332
  };
333
- //# sourceMappingURL=note-timeline-BrjHBQfx.js.map
333
+ //# sourceMappingURL=note-timeline-BQeW0VZY.js.map
@@ -4,7 +4,7 @@ import { c as Et } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as kn } from "react-i18next";
5
5
  import { g as mt, h as Rt } from "./handled-rejection-6gqCf5vt.js";
6
6
  import { u as zn } from "./registry-DvAUVLHh.js";
7
- import { C as Hn } from "./clinical-note-card-DHn5W_bv.js";
7
+ import { C as Hn } from "./clinical-note-card-pPaeWWnu.js";
8
8
  import { R as Mn } from "./rich-text-editor-TnX0SYdq.js";
9
9
  import { T as Wn } from "./text-area-COMVJ1yE.js";
10
10
  import { A as j } from "./alert-C4WKViaS.js";
@@ -1109,4 +1109,4 @@ const jr = qn(
1109
1109
  export {
1110
1110
  jr as N
1111
1111
  };
1112
- //# sourceMappingURL=notes-panel-n1JFNQ5u.js.map
1112
+ //# sourceMappingURL=notes-panel-DIY7eNsq.js.map
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
8
8
  import { D as ae } from "./description-list-BxzDN9o2.js";
9
9
  import { P as de } from "./panel-header-CbtlTe85.js";
10
10
  import { u as re } from "./registry-DvAUVLHh.js";
11
- import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-CtDihADs.js";
11
+ import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-a5d4QijH.js";
12
12
  import { C as pe } from "./clipboard-list-rSzfIYZB.js";
13
13
  const me = {
14
14
  id: "patient-details",
@@ -368,4 +368,4 @@ export {
368
368
  ue as P,
369
369
  me as p
370
370
  };
371
- //# sourceMappingURL=patient-details-Cba9HQj_.js.map
371
+ //# sourceMappingURL=patient-details-DBtEITfE.js.map
@@ -11,7 +11,7 @@ import { S as ae } from "./settings-d25ju_6L.js";
11
11
  import { G as re } from "./grip-vertical-onSb1JXO.js";
12
12
  import { D as j } from "./description-list-BxzDN9o2.js";
13
13
  import { B as q } from "./badge-BUk4RjTS.js";
14
- import { L as se } from "./link-DtCfnLnF.js";
14
+ import { L as se } from "./link-CeV7FoI6.js";
15
15
  import { T as ne } from "./transaction-chip-CkYd-3ky.js";
16
16
  import { H as ie } from "./hash-CSQ9SChR.js";
17
17
  import { C as oe } from "./calendar-days-BGWklvE-.js";
@@ -805,4 +805,4 @@ export {
805
805
  Dt as r,
806
806
  St as u
807
807
  };
808
- //# sourceMappingURL=patient-field-row-CtDihADs.js.map
808
+ //# sourceMappingURL=patient-field-row-a5d4QijH.js.map
@@ -6,7 +6,7 @@ import { A as Se } from "./autocomplete-D10ydpgi.js";
6
6
  import { B as Fe } from "./button-DohK_Ak_.js";
7
7
  import { C as te } from "./card-n6W6LW-N.js";
8
8
  import { S as Ie } from "./slider-pZ95bEm7.js";
9
- import { a as Oe } from "./toast-BNoN8Qjh.js";
9
+ import { a as Oe } from "./toast-DQ1Zu1kk.js";
10
10
  import { D as Y } from "./dropdown-menu-Dw6sgQwJ.js";
11
11
  import { u as Be } from "./registry-DvAUVLHh.js";
12
12
  import { S as ke } from "./search-QbWPlY5f.js";
@@ -1273,4 +1273,4 @@ export {
1273
1273
  nt as P,
1274
1274
  He as p
1275
1275
  };
1276
- //# sourceMappingURL=patient-search-D_S7joff.js.map
1276
+ //# sourceMappingURL=patient-search-OAwFgOW3.js.map
@@ -7,14 +7,14 @@ import { B as D } from "./badge-BUk4RjTS.js";
7
7
  import { I as Ue } from "./icon-button-S8_weU3g.js";
8
8
  import { C as le } from "./card-n6W6LW-N.js";
9
9
  import { K as Be, a as Re } from "./key-value-pair-DOTl68_U.js";
10
- import { L as V } from "./link-DtCfnLnF.js";
10
+ import { L as V } from "./link-CeV7FoI6.js";
11
11
  import { S as k } from "./skeleton-tTWJpvAq.js";
12
12
  import { T as oe } from "./tag-BNlcEJfE.js";
13
13
  import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
14
14
  import { T as je } from "./tooltip-uEBdD1-5.js";
15
15
  import { H as G } from "./hover-card-CuRIA4wN.js";
16
16
  import { i as de } from "./is-safe-url-DkETxeHz.js";
17
- import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-CtDihADs.js";
17
+ import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-a5d4QijH.js";
18
18
  import { u as Oe } from "./registry-DvAUVLHh.js";
19
19
  import { M as ea } from "./mail-BqXVF2zH.js";
20
20
  import { P as aa } from "./phone-FceYcIFQ.js";
@@ -548,4 +548,4 @@ export {
548
548
  Ca as P,
549
549
  ma as p
550
550
  };
551
- //# sourceMappingURL=patient-summary-card-DnLdbtsw.js.map
551
+ //# sourceMappingURL=patient-summary-card-BUcZ-gaL.js.map
@@ -17,7 +17,7 @@ import { U as ie } from "./user-cog-BTn98Arm.js";
17
17
  import { e as Q } from "./entity-card-fpm-KUKc.js";
18
18
  import { A as le } from "./arrow-down-left-DECv-dJt.js";
19
19
  import { A as de } from "./arrow-up-right-C2v_MKsK.js";
20
- import { L as oe } from "./link-DtCfnLnF.js";
20
+ import { L as oe } from "./link-CeV7FoI6.js";
21
21
  import { C as $ } from "./credit-card-D9XZsHGA.js";
22
22
  import { C as se } from "./calendar-clock-hbObjfGY.js";
23
23
  import { i as ce } from "./is-safe-url-DkETxeHz.js";
@@ -440,4 +440,4 @@ export {
440
440
  Ce as b,
441
441
  me as p
442
442
  };
443
- //# sourceMappingURL=payment-request-card-CEIalOtr.js.map
443
+ //# sourceMappingURL=payment-request-card-Dv4WbRBe.js.map