@alfadocs/ui-kit 1.149.1 → 1.150.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 (183) hide show
  1. package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
  2. package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
  3. package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
  4. package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
  5. package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
  6. package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
  7. package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
  8. package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-fQleWmJE.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
  11. package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
  12. package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
  13. package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
  14. package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
  15. package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
  16. package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
  17. package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
  18. package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
  19. package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
  20. package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
  21. package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
  22. package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
  23. package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
  24. package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
  25. package/dist/_chunks/folder-CH9PJHou.js +36 -0
  26. package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
  27. package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
  28. package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
  29. package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
  30. package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
  31. package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
  32. package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
  33. package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
  34. package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
  35. package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
  36. package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
  37. package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
  38. package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
  39. package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
  40. package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
  41. package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
  42. package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
  43. package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
  44. package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
  45. package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
  46. package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
  47. package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-CIHQQRtP.js} +5 -5
  48. package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
  49. package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
  50. package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
  51. package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
  52. package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
  53. package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
  54. package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
  55. package/dist/agent-catalog.json +15 -1
  56. package/dist/appointment-editor-panel/index.js +4 -4
  57. package/dist/booking-tools-data/index.js +1 -1
  58. package/dist/browser-support.js +1 -1
  59. package/dist/calendar-action-buttons/index.js +1 -1
  60. package/dist/components/_shared/appointment-format.d.ts +4 -0
  61. package/dist/components/_shared/patient-field-row.d.ts +5 -1
  62. package/dist/components/ai-summary-panel/index.js +1 -1
  63. package/dist/components/appointment-card/index.js +2 -2
  64. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
  65. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
  66. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
  67. package/dist/components/appointment-details-panel/index.js +2 -2
  68. package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
  69. package/dist/components/appointment-peek/index.js +1 -1
  70. package/dist/components/appointment-timeline/index.js +1 -1
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calls-panel/index.js +1 -1
  73. package/dist/components/care-plan-card/index.js +1 -1
  74. package/dist/components/care-plan-entry-card/index.js +1 -1
  75. package/dist/components/communications-panel/index.js +1 -1
  76. package/dist/components/control-room-rail/index.js +1 -1
  77. package/dist/components/document-preview/index.js +1 -1
  78. package/dist/components/editable-description/editable-description.d.ts +7 -0
  79. package/dist/components/editable-description/index.js +1 -1
  80. package/dist/components/entity-summary/index.js +1 -1
  81. package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
  82. package/dist/components/feature-preview-switch/index.d.ts +2 -0
  83. package/dist/components/feature-preview-switch/index.js +5 -0
  84. package/dist/components/file-manager/index.js +1 -1
  85. package/dist/components/index.d.ts +1 -0
  86. package/dist/components/notes-panel/index.js +1 -1
  87. package/dist/components/notes-panel/notes-panel.d.ts +20 -0
  88. package/dist/components/optical-prescription/index.js +1 -1
  89. package/dist/components/panel-header/index.js +1 -1
  90. package/dist/components/panel-header/panel-header.d.ts +8 -0
  91. package/dist/components/panel-subview/index.js +1 -1
  92. package/dist/components/patient-details/index.js +1 -1
  93. package/dist/components/patient-summary-card/index.js +1 -1
  94. package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
  95. package/dist/components/patient-table/index.js +1 -1
  96. package/dist/components/payment-card/index.js +1 -1
  97. package/dist/components/radiograph-panel/index.js +1 -1
  98. package/dist/components/registry-connection-panel/index.js +1 -1
  99. package/dist/components/reviews-panel/index.js +1 -1
  100. package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
  101. package/dist/components/rich-text-editor/index.js +1 -1
  102. package/dist/components/task-editor/index.js +1 -1
  103. package/dist/components/tasks-panel/index.js +1 -1
  104. package/dist/components/text-area/index.js +1 -1
  105. package/dist/components/text-area/text-area.d.ts +15 -0
  106. package/dist/components/tool-rail/index.js +1 -1
  107. package/dist/components/tool-rail/tool-rail.d.ts +12 -1
  108. package/dist/components/transaction-chip/index.js +1 -1
  109. package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
  110. package/dist/components/transcript-panel/index.js +1 -1
  111. package/dist/components/treatment-receipt/index.js +1 -1
  112. package/dist/core.css +1 -1
  113. package/dist/find-free-slots-panel/index.js +1 -1
  114. package/dist/host-legacy.css +51 -4
  115. package/dist/i18n/locales/ar.d.ts +9 -0
  116. package/dist/i18n/locales/ar.js +8 -2
  117. package/dist/i18n/locales/de.d.ts +9 -0
  118. package/dist/i18n/locales/de.js +8 -2
  119. package/dist/i18n/locales/el.d.ts +9 -0
  120. package/dist/i18n/locales/el.js +10 -1
  121. package/dist/i18n/locales/en.d.ts +9 -0
  122. package/dist/i18n/locales/en.js +11 -2
  123. package/dist/i18n/locales/es.d.ts +9 -0
  124. package/dist/i18n/locales/es.js +10 -1
  125. package/dist/i18n/locales/fr.d.ts +9 -0
  126. package/dist/i18n/locales/fr.js +10 -1
  127. package/dist/i18n/locales/hi.d.ts +9 -0
  128. package/dist/i18n/locales/hi.js +8 -2
  129. package/dist/i18n/locales/it.d.ts +19 -10
  130. package/dist/i18n/locales/it.js +20 -11
  131. package/dist/i18n/locales/ja.d.ts +9 -0
  132. package/dist/i18n/locales/ja.js +8 -2
  133. package/dist/i18n/locales/nl.d.ts +9 -0
  134. package/dist/i18n/locales/nl.js +8 -2
  135. package/dist/i18n/locales/pl.d.ts +9 -0
  136. package/dist/i18n/locales/pl.js +10 -1
  137. package/dist/i18n/locales/pt.d.ts +9 -0
  138. package/dist/i18n/locales/pt.js +10 -1
  139. package/dist/i18n/locales/ro.d.ts +9 -0
  140. package/dist/i18n/locales/ro.js +10 -1
  141. package/dist/i18n/locales/ru.d.ts +9 -0
  142. package/dist/i18n/locales/ru.js +8 -2
  143. package/dist/i18n/locales/sq.d.ts +9 -0
  144. package/dist/i18n/locales/sq.js +10 -1
  145. package/dist/i18n/locales/sv.d.ts +9 -0
  146. package/dist/i18n/locales/sv.js +8 -2
  147. package/dist/i18n/locales/tr.d.ts +9 -0
  148. package/dist/i18n/locales/tr.js +8 -2
  149. package/dist/i18n/locales/zh.d.ts +9 -0
  150. package/dist/i18n/locales/zh.js +8 -2
  151. package/dist/index.js +775 -773
  152. package/dist/locales/ar.json +10 -1
  153. package/dist/locales/de.json +10 -1
  154. package/dist/locales/el.json +10 -1
  155. package/dist/locales/en.json +11 -2
  156. package/dist/locales/es.json +10 -1
  157. package/dist/locales/fr.json +10 -1
  158. package/dist/locales/hi.json +10 -1
  159. package/dist/locales/it.json +20 -11
  160. package/dist/locales/ja.json +10 -1
  161. package/dist/locales/nl.json +10 -1
  162. package/dist/locales/pl.json +10 -1
  163. package/dist/locales/pt.json +10 -1
  164. package/dist/locales/ro.json +10 -1
  165. package/dist/locales/ru.json +10 -1
  166. package/dist/locales/sq.json +10 -1
  167. package/dist/locales/sv.json +10 -1
  168. package/dist/locales/tr.json +10 -1
  169. package/dist/locales/zh.json +10 -1
  170. package/dist/online-bookings-panel/index.js +2 -2
  171. package/dist/patterns/anamnesis/index.js +1 -1
  172. package/dist/patterns/calendar/index.js +4 -4
  173. package/dist/patterns/help-me-write-templates/index.js +1 -1
  174. package/dist/patterns/patient-account-settings/index.js +1 -1
  175. package/dist/patterns/patient-check-in/index.js +1 -1
  176. package/dist/patterns/patient-portal/index.js +2 -2
  177. package/dist/tokens.css +1 -1
  178. package/dist/waiting-list-panel/index.js +3 -3
  179. package/package.json +5 -1
  180. package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
  181. package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
  182. package/dist/_chunks/folder-BghC8_S2.js +0 -20
  183. package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
@@ -1,37 +1,38 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { forwardRef as $e, useId as Ie, useMemo as De } from "react";
3
- import { c as Ge } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Le } from "react-i18next";
2
+ import { forwardRef as $e, useId as De, useMemo as Ge } from "react";
3
+ import { c as Le } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Ue } from "react-i18next";
5
5
  import { A as re } from "./avatar-Dp5apm1d.js";
6
6
  import { B as D } from "./badge-BUk4RjTS.js";
7
- import { I as Ue } from "./icon-button-u9VMQn3x.js";
7
+ import { I as Be } from "./icon-button-u9VMQn3x.js";
8
8
  import { C as le } from "./card-n6W6LW-N.js";
9
- import { K as Be, a as Re } from "./key-value-pair-BykhMTcP.js";
9
+ import { K as Re, a as Ke } from "./key-value-pair-BykhMTcP.js";
10
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
- import { T as Ke } from "./transaction-chip-CkYd-3ky.js";
14
- import { T as je } from "./tooltip-uEBdD1-5.js";
13
+ import { T as je } from "./transaction-chip-6jToArJn.js";
14
+ import { T as We } from "./tooltip-uEBdD1-5.js";
15
15
  import { H as G } from "./hover-card-CS8ulBf9.js";
16
16
  import { i as de } from "./is-safe-url-CEy9CEml.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-DDjsUsc_.js";
18
- import { u as Oe } from "./registry-DvAUVLHh.js";
19
- import { M as ea } from "./mail-BqXVF2zH.js";
20
- import { P as aa } from "./phone-FceYcIFQ.js";
21
- import { M as ta } from "./map-pin-BaY37-Km.js";
22
- import { S as na } from "./shield-check-DCJALLVh.js";
23
- import { A as ia } from "./astroid-BN4f5VXU.js";
24
- import { U as sa } from "./users-BjS_Gg1E.js";
25
- import { c as ce } from "./createLucideIcon-DhHxpK9K.js";
26
- import { A as ra } from "./arrow-up-right-C2v_MKsK.js";
27
- import { C as la } from "./calendar-days-BGWklvE-.js";
17
+ import { u as qe, r as He, a as Je, b as Qe, F as Xe, S as Ye, A as Ze, N as Oe } from "./patient-field-row-DytaHdGw.js";
18
+ import { u as ea } from "./registry-DvAUVLHh.js";
19
+ import { M as aa } from "./mail-BqXVF2zH.js";
20
+ import { P as ta } from "./phone-FceYcIFQ.js";
21
+ import { M as na } from "./map-pin-BaY37-Km.js";
22
+ import { S as ia } from "./shield-check-DCJALLVh.js";
23
+ import { A as sa } from "./astroid-BN4f5VXU.js";
24
+ import { U as ra } from "./users-BjS_Gg1E.js";
25
+ import { c as la } from "./createLucideIcon-DhHxpK9K.js";
26
+ import { M as oa } from "./message-square-warning-DsGGfd0K.js";
27
+ import { A as da } from "./arrow-up-right-C2v_MKsK.js";
28
+ import { C as ca } from "./calendar-days-BGWklvE-.js";
28
29
  /**
29
30
  * @license lucide-react v1.22.0 - ISC
30
31
  *
31
32
  * This source code is licensed under the ISC license.
32
33
  * See the LICENSE file in the root directory of this source tree.
33
34
  */
34
- const oa = [
35
+ const ua = [
35
36
  [
36
37
  "path",
37
38
  {
@@ -41,24 +42,7 @@ const oa = [
41
42
  ],
42
43
  ["path", { d: "M12 9v4", key: "juzpu7" }],
43
44
  ["path", { d: "M12 17h.01", key: "p32p05" }]
44
- ], da = ce("file-exclamation-point", oa);
45
- /**
46
- * @license lucide-react v1.22.0 - ISC
47
- *
48
- * This source code is licensed under the ISC license.
49
- * See the LICENSE file in the root directory of this source tree.
50
- */
51
- const ca = [
52
- [
53
- "path",
54
- {
55
- d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
56
- key: "18887p"
57
- }
58
- ],
59
- ["path", { d: "M12 15h.01", key: "q59x07" }],
60
- ["path", { d: "M12 7v4", key: "xawao1" }]
61
- ], ua = ce("message-square-warning", ca), ma = {
45
+ ], ma = la("file-exclamation-point", ua), pa = {
62
46
  id: "patient-summary-card",
63
47
  // The agent surface is a structural snapshot only — the single handle method
64
48
  // is a getSummary projection. The card MAY be human-customized (the optional
@@ -87,7 +71,7 @@ const ca = [
87
71
  description: "Sourced from the id prop."
88
72
  }
89
73
  }
90
- }, pa = [], ha = Ge("ds:w-full ds:text-[color:var(--foreground)]", {
74
+ }, fa = [], ha = Le("ds:w-full ds:text-[color:var(--foreground)]", {
91
75
  variants: {
92
76
  // Matches the kit's other `surface` props (ContactProfileCard,
93
77
  // OperatorHero). `'elevated'` wraps the content in `<Card>`.
@@ -107,67 +91,69 @@ const ca = [
107
91
  density: "comfortable"
108
92
  }
109
93
  });
110
- function fa(o) {
94
+ function ga(o) {
111
95
  return o.replace(/[^\d+]/g, "");
112
96
  }
113
- const ga = {
114
- highlightedAnamnesis: ua,
115
- unsignedDocuments: da
116
- }, va = {
117
- highlightedAnamnesis: "warning",
118
- unsignedDocuments: "error"
97
+ const va = {
98
+ highlightedAnamnesis: oa,
99
+ unsignedDocuments: ma
119
100
  }, ya = {
101
+ highlightedAnamnesis: "warning",
102
+ unsignedDocuments: "info"
103
+ }, ba = {
120
104
  highlightedAnamnesis: "{{count}} highlighted anamnesis answers",
121
105
  unsignedDocuments: "{{count}} unsigned documents"
122
- }, ba = {
106
+ }, Ca = {
123
107
  yes: "Yes",
124
108
  no: "No",
125
109
  not_specified: "Not specified"
126
- }, Ca = $e(
110
+ }, xa = $e(
127
111
  ({
128
112
  name: o,
129
113
  title: P,
130
114
  ageYears: L,
131
115
  dateOfBirth: U,
132
116
  gender: B,
133
- avatarUrl: ue,
134
- patientUrl: M,
117
+ avatarUrl: ce,
118
+ patientUrl: T,
135
119
  sections: u,
136
120
  visibleFieldOrder: R,
137
121
  onVisibleFieldsChange: K,
138
122
  email: b,
139
- emailEnabled: me = !1,
123
+ emailEnabled: ue = !1,
140
124
  phone: p,
141
125
  cityProvince: j,
142
- marketingConsent: h,
126
+ marketingConsent: f,
143
127
  aiConsent: d,
144
128
  flags: i,
145
- familyRelations: T,
129
+ familyRelations: M,
146
130
  assignedTo: C,
147
- currency: pe = "EUR",
148
- locale: q,
131
+ currency: me = "EUR",
132
+ locale: W,
149
133
  loading: x = !1,
150
- actionSlot: W,
134
+ actionSlot: q,
151
135
  onFlagActivate: w,
152
136
  flagHover: F,
153
137
  flagOpenLabel: S,
154
138
  extraChips: H,
155
- editable: he = !1,
139
+ editable: pe = !1,
156
140
  onFieldSave: fe,
157
- validateField: ge,
141
+ validateField: he,
158
142
  onActivate: J,
159
143
  surface: Q = "elevated",
160
- density: f = "comfortable",
144
+ density: h = "comfortable",
145
+ fieldColumns: ge = "auto",
146
+ wrapFieldValues: ve = !1,
161
147
  "aria-label": E,
162
148
  id: g,
163
- className: ve,
164
- ...ye
165
- }, be) => {
166
- const { t, i18n: Ce } = Le("ui"), _ = Ie(), xe = q ?? Ce.language ?? "en", z = i == null ? void 0 : i.unpaidAmountCents, N = (i == null ? void 0 : i.unsignedDocumentsCount) ?? 0, A = (i == null ? void 0 : i.highlightedAnamnesisCount) ?? 0, $ = z != null && z > 0, Se = De(
149
+ className: ye,
150
+ ...be
151
+ }, Ce) => {
152
+ const { t, i18n: xe } = Ue("ui"), z = De(), Se = W ?? xe.language ?? "en", I = i == null ? void 0 : i.unpaidAmountCents, N = (i == null ? void 0 : i.unsignedDocumentsCount) ?? 0, A = (i == null ? void 0 : i.highlightedAnamnesisCount) ?? 0, _ = I != null && I > 0, Ne = Ge(
167
153
  () => ({
168
154
  getSummary: () => ({
169
155
  id: g,
170
- hasUnpaid: $,
156
+ hasUnpaid: _,
171
157
  unsignedDocumentsCount: N,
172
158
  highlightedAnamnesisCount: A,
173
159
  aiConsentGranted: d != null
@@ -175,35 +161,35 @@ const ga = {
175
161
  }),
176
162
  [
177
163
  g,
178
- $,
164
+ _,
179
165
  N,
180
166
  A,
181
167
  d
182
168
  ]
183
169
  );
184
- Oe(ma, Se, g);
185
- const X = !!u && !!K, m = qe(u ?? pa, {
170
+ ea(pa, Ne, g);
171
+ const X = !!u && !!K, m = qe(u ?? fa, {
186
172
  value: R,
187
173
  onChange: K
188
- }), Ne = E ?? t("patientSummaryCard.regionLabel", { defaultValue: "Patient overview" }), Ae = {
174
+ }), Ae = E ?? t("patientSummaryCard.regionLabel", { defaultValue: "Patient overview" }), Ve = {
189
175
  mr: "Mr.",
190
176
  ms: "Ms."
191
177
  }, Y = P ? t(`patientSummaryCard.title.${P}`, {
192
- defaultValue: Ae[P]
178
+ defaultValue: Ve[P]
193
179
  }) : void 0, Z = Y ? t("patientSummaryCard.nameWithHonorific", {
194
180
  honorific: Y,
195
181
  name: o,
196
182
  defaultValue: "{{honorific}} {{name}}"
197
183
  }) : o, v = [];
198
- B && v.push(/* @__PURE__ */ e(Xe, { code: B }, "sex")), L != null && v.push(/* @__PURE__ */ e(Ye, { years: L }, "age")), U && v.push(
199
- /* @__PURE__ */ e(Ze, { icon: /* @__PURE__ */ e(la, {}), children: U }, "dob")
184
+ B && v.push(/* @__PURE__ */ e(Ye, { code: B }, "sex")), L != null && v.push(/* @__PURE__ */ e(Ze, { years: L }, "age")), U && v.push(
185
+ /* @__PURE__ */ e(Oe, { icon: /* @__PURE__ */ e(ca, {}), children: U }, "dob")
200
186
  );
201
- const Ve = !!M && de(M), ke = f === "comfortable" ? "xl" : "lg", O = f === "comfortable" ? "type-title-card" : "type-title-item", ee = f === "comfortable" ? "ds:gap-[var(--spacing-md)]" : "ds:gap-[var(--spacing-sm)]", c = [];
187
+ const ke = !!T && de(T), Pe = h === "comfortable" ? "xl" : "lg", O = h === "comfortable" ? "type-title-card" : "type-title-item", ee = h === "comfortable" ? "ds:gap-[var(--spacing-md)]" : "ds:gap-[var(--spacing-sm)]", c = [];
202
188
  b && c.push({
203
189
  key: "email",
204
- icon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
190
+ icon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
205
191
  label: t("patientSummaryCard.label.email", { defaultValue: "Email" }),
206
- value: me ? /* @__PURE__ */ e(
192
+ value: ue ? /* @__PURE__ */ e(
207
193
  V,
208
194
  {
209
195
  href: `mailto:${b}`,
@@ -215,13 +201,13 @@ const ga = {
215
201
  ) : /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", dir: "ltr", children: b })
216
202
  }), p && c.push({
217
203
  key: "phone",
218
- icon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
204
+ icon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
219
205
  label: p.label ?? t("patientSummaryCard.label.phone", { defaultValue: "Phone" }),
220
206
  value: /* @__PURE__ */ n("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
221
207
  /* @__PURE__ */ e(
222
208
  V,
223
209
  {
224
- href: `tel:${fa(p.prefixAndNumber)}`,
210
+ href: `tel:${ga(p.prefixAndNumber)}`,
225
211
  intent: "default",
226
212
  dir: "ltr",
227
213
  children: p.prefixAndNumber
@@ -233,31 +219,31 @@ const ga = {
233
219
  ] })
234
220
  }), j && c.push({
235
221
  key: "cityProvince",
236
- icon: /* @__PURE__ */ e(ta, { "aria-hidden": "true" }),
222
+ icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
237
223
  label: t("patientSummaryCard.label.cityProvince", {
238
224
  defaultValue: "City / province"
239
225
  }),
240
226
  value: j
241
- }), h && c.push({
227
+ }), f && c.push({
242
228
  key: "marketingConsent",
243
- icon: /* @__PURE__ */ e(na, { "aria-hidden": "true" }),
229
+ icon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
244
230
  label: t("patientSummaryCard.label.marketingConsent", {
245
231
  defaultValue: "Marketing consent"
246
232
  }),
247
233
  value: /* @__PURE__ */ e(
248
234
  D,
249
235
  {
250
- variant: h === "yes" ? "success" : h === "no" ? "error" : "neutral",
236
+ variant: f === "yes" ? "success" : f === "no" ? "error" : "neutral",
251
237
  size: "sm",
252
238
  withDot: !0,
253
- children: t(`patientSummaryCard.marketingConsent.${h}`, {
254
- defaultValue: ba[h]
239
+ children: t(`patientSummaryCard.marketingConsent.${f}`, {
240
+ defaultValue: Ca[f]
255
241
  })
256
242
  }
257
243
  )
258
244
  }), d && c.push({
259
245
  key: "aiConsent",
260
- icon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
246
+ icon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
261
247
  label: t("patientSummaryCard.label.aiConsent", {
262
248
  defaultValue: "AI consent"
263
249
  }),
@@ -271,7 +257,7 @@ const ga = {
271
257
  })
272
258
  }), C && c.push({
273
259
  key: "assignedTo",
274
- icon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
260
+ icon: /* @__PURE__ */ e(ra, { "aria-hidden": "true" }),
275
261
  label: t("patientSummaryCard.label.assignedTo", {
276
262
  defaultValue: "Assigned to"
277
263
  }),
@@ -287,11 +273,11 @@ const ga = {
287
273
  /* @__PURE__ */ e("span", { children: C.name })
288
274
  ] })
289
275
  });
290
- const I = [];
291
- A > 0 && I.push({
276
+ const $ = [];
277
+ A > 0 && $.push({
292
278
  key: "highlightedAnamnesis",
293
279
  count: A
294
- }), N > 0 && I.push({
280
+ }), N > 0 && $.push({
295
281
  key: "unsignedDocuments",
296
282
  count: N
297
283
  });
@@ -322,7 +308,7 @@ const ga = {
322
308
  },
323
309
  a
324
310
  );
325
- return typeof l == "string" ? /* @__PURE__ */ e(je, { label: l, side: "bottom", children: se }, a) : /* @__PURE__ */ n(G, { children: [
311
+ return typeof l == "string" ? /* @__PURE__ */ e(We, { label: l, side: "bottom", children: se }, a) : /* @__PURE__ */ n(G, { children: [
326
312
  /* @__PURE__ */ e(G.Trigger, { asChild: !0, children: se }),
327
313
  /* @__PURE__ */ e(
328
314
  G.Content,
@@ -331,9 +317,9 @@ const ga = {
331
317
  align: "start",
332
318
  size: "sm",
333
319
  headerAction: s && (S != null && S[a]) ? /* @__PURE__ */ e(
334
- Ue,
320
+ Be,
335
321
  {
336
- icon: /* @__PURE__ */ e(ra, {}),
322
+ icon: /* @__PURE__ */ e(da, {}),
337
323
  intent: "outline",
338
324
  background: "surface",
339
325
  size: "sm",
@@ -346,36 +332,36 @@ const ga = {
346
332
  )
347
333
  ] }, a);
348
334
  }, y = [];
349
- $ && y.push(
335
+ _ && y.push(
350
336
  ae(
351
337
  "unpaid",
352
338
  /* @__PURE__ */ e(
353
- Ke,
339
+ je,
354
340
  {
355
341
  state: "debt",
356
- amount: z / 100,
357
- currency: pe,
358
- locale: xe,
342
+ amount: I / 100,
343
+ currency: me,
344
+ locale: Se,
359
345
  size: "md",
360
346
  showLabel: !0
361
347
  },
362
348
  "unpaid"
363
349
  )
364
350
  )
365
- ), I.forEach(({ key: a, count: r }) => {
366
- const s = ga[a];
351
+ ), $.forEach(({ key: a, count: r }) => {
352
+ const s = va[a];
367
353
  y.push(
368
354
  ae(
369
355
  a,
370
356
  /* @__PURE__ */ e(
371
357
  D,
372
358
  {
373
- variant: va[a],
359
+ variant: ya[a],
374
360
  size: "md",
375
361
  leading: /* @__PURE__ */ e(s, { "aria-hidden": "true" }),
376
362
  children: t(`patientSummaryCard.flag.${a}`, {
377
363
  count: r,
378
- defaultValue: ya[a]
364
+ defaultValue: ba[a]
379
365
  })
380
366
  },
381
367
  a
@@ -383,7 +369,7 @@ const ga = {
383
369
  )
384
370
  );
385
371
  }), H && y.push(H);
386
- const Pe = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${ee}`, children: [
372
+ const Te = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${ee}`, children: [
387
373
  /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-md)]", children: [
388
374
  /* @__PURE__ */ e(k, { variant: "circular", size: "lg" }),
389
375
  /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
@@ -392,30 +378,30 @@ const ga = {
392
378
  ] })
393
379
  ] }),
394
380
  /* @__PURE__ */ e(k, { variant: "text", lines: 3 })
395
- ] }), Me = Ve ? /* @__PURE__ */ e(
381
+ ] }), Me = ke ? /* @__PURE__ */ e(
396
382
  V,
397
383
  {
398
- href: M,
384
+ href: T,
399
385
  intent: "default",
400
386
  weight: "strong",
401
387
  onClick: J,
402
388
  className: `${O} ds:no-underline`,
403
- children: /* @__PURE__ */ e("span", { id: _, children: Z })
389
+ children: /* @__PURE__ */ e("span", { id: z, children: Z })
404
390
  }
405
391
  ) : /* @__PURE__ */ e(
406
392
  "span",
407
393
  {
408
- id: _,
394
+ id: z,
409
395
  className: `${O} ds:text-[color:var(--foreground)]`,
410
396
  children: Z
411
397
  }
412
- ), Te = /* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
398
+ ), we = /* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
413
399
  /* @__PURE__ */ e(
414
400
  re,
415
401
  {
416
- size: ke,
402
+ size: Pe,
417
403
  name: o,
418
- src: ue,
404
+ src: ce,
419
405
  className: "ds:shrink-0"
420
406
  }
421
407
  ),
@@ -426,9 +412,9 @@ const ga = {
426
412
  v
427
413
  ] }) : null
428
414
  ] }),
429
- X || W ? /* @__PURE__ */ n("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: [
415
+ X || q ? /* @__PURE__ */ n("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: [
430
416
  X && u ? /* @__PURE__ */ e(
431
- Qe,
417
+ Xe,
432
418
  {
433
419
  sections: u,
434
420
  visible: m.visible,
@@ -438,13 +424,13 @@ const ga = {
438
424
  onReset: m.reset
439
425
  }
440
426
  ) : null,
441
- W
427
+ q
442
428
  ] }) : null
443
- ] }), we = T && T.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
429
+ ] }), Fe = M && M.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
444
430
  /* @__PURE__ */ e("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: t("patientSummaryCard.label.familyRelations", {
445
431
  defaultValue: "Family relations"
446
432
  }) }),
447
- /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T.map((a, r) => {
433
+ /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: M.map((a, r) => {
448
434
  const s = !!a.relatedPatient.url && de(a.relatedPatient.url), l = t("patientSummaryCard.value.familyRelation", {
449
435
  relation: a.relation,
450
436
  name: a.relatedPatient.name,
@@ -468,18 +454,18 @@ const ga = {
468
454
  `${a.relation}-${r}`
469
455
  );
470
456
  }) })
471
- ] }) : null, Fe = c.map((a) => ({
457
+ ] }) : null, Ee = c.map((a) => ({
472
458
  id: a.key,
473
459
  label: a.label,
474
460
  value: a.value,
475
461
  icon: a.icon
476
- })), Ee = u ?? [
477
- { id: "contact", heading: "", fields: Fe }
478
- ], _e = u ? m.visible : R, te = We(
479
- Ee,
480
- _e
481
- ).flatMap((a) => a.fields), ze = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${ee}`, children: [
482
- Te,
462
+ })), ze = u ?? [
463
+ { id: "contact", heading: "", fields: Ee }
464
+ ], Ie = u ? m.visible : R, te = He(
465
+ ze,
466
+ Ie
467
+ ).flatMap((a) => a.fields), _e = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${ee}`, children: [
468
+ we,
483
469
  te.length > 0 ? (
484
470
  // Container-queried so the fields flow into two columns when the
485
471
  // card is wide enough (the banner spans the full folder width), and
@@ -494,26 +480,27 @@ const ga = {
494
480
  // label wraps instead of squeezing its value, as KeyValueList's
495
481
  // single-column cap does at 40%.
496
482
  /* @__PURE__ */ e("div", { className: "ds:@container/pfields", children: /* @__PURE__ */ e(
497
- Be,
483
+ Re,
498
484
  {
499
485
  rowGap: "sm",
500
- className: "ds:@[672px]/pfields:grid-cols-[repeat(2,auto_fit-content(20%)_minmax(0,1fr))]",
486
+ className: ge === "auto" ? "ds:@[672px]/pfields:grid-cols-[repeat(2,auto_fit-content(20%)_minmax(0,1fr))]" : void 0,
501
487
  children: te.map((a) => /* @__PURE__ */ e(
502
- Re,
488
+ Ke,
503
489
  {
504
490
  icon: a.icon ?? void 0,
505
491
  label: a.label,
506
- labelNode: /* @__PURE__ */ e(Je, { field: a }),
492
+ labelNode: /* @__PURE__ */ e(Qe, { field: a }),
507
493
  className: "ds:group",
508
494
  "data-field-id": a.id,
509
495
  value: /* @__PURE__ */ e(
510
- He,
496
+ Je,
511
497
  {
512
498
  field: a,
513
- editable: he,
499
+ editable: pe,
514
500
  onFieldSave: fe,
515
- validate: ge,
516
- locale: q
501
+ validate: he,
502
+ locale: W,
503
+ wrap: ve
517
504
  }
518
505
  )
519
506
  },
@@ -522,30 +509,30 @@ const ga = {
522
509
  }
523
510
  ) })
524
511
  ) : null,
525
- we
526
- ] }), ne = x ? Pe : ze;
512
+ Fe
513
+ ] }), ne = x ? Te : _e;
527
514
  return /* @__PURE__ */ e(
528
515
  "div",
529
516
  {
530
- ref: be,
517
+ ref: Ce,
531
518
  role: "region",
532
- "aria-label": x || E ? Ne : void 0,
533
- "aria-labelledby": x || E ? void 0 : _,
519
+ "aria-label": x || E ? Ae : void 0,
520
+ "aria-labelledby": x || E ? void 0 : z,
534
521
  "aria-busy": x || void 0,
535
522
  "data-component": "patient-summary-card",
536
523
  "data-component-id": g,
537
- "data-density": f,
524
+ "data-density": h,
538
525
  id: g,
539
- className: ha({ surface: Q, density: f, className: ve }),
540
- ...ye,
526
+ className: ha({ surface: Q, density: h, className: ye }),
527
+ ...be,
541
528
  children: Q === "elevated" ? /* @__PURE__ */ e(le, { variant: "elevated", children: /* @__PURE__ */ e(le.Body, { children: ne }) }) : ne
542
529
  }
543
530
  );
544
531
  }
545
532
  );
546
- Ca.displayName = "PatientSummaryCard";
533
+ xa.displayName = "PatientSummaryCard";
547
534
  export {
548
- Ca as P,
549
- ma as p
535
+ xa as P,
536
+ pa as p
550
537
  };
551
- //# sourceMappingURL=patient-summary-card-roM9Esfb.js.map
538
+ //# sourceMappingURL=patient-summary-card-7Werxl48.js.map
@@ -6,7 +6,7 @@ import { B as O } from "./badge-BUk4RjTS.js";
6
6
  import { C as D } from "./card-n6W6LW-N.js";
7
7
  import { D as d } from "./description-list-DA4TgL_I.js";
8
8
  import { K as Y, a as H } from "./key-value-pair-BykhMTcP.js";
9
- import { T as j } from "./transaction-chip-CkYd-3ky.js";
9
+ import { T as j } from "./transaction-chip-6jToArJn.js";
10
10
  import { u as W } from "./registry-DvAUVLHh.js";
11
11
  import { H as ae } from "./hash-CSQ9SChR.js";
12
12
  import { C as te } from "./calendar-days-BGWklvE-.js";
@@ -440,4 +440,4 @@ export {
440
440
  Ce as b,
441
441
  me as p
442
442
  };
443
- //# sourceMappingURL=payment-request-card-C9VglWsV.js.map
443
+ //# sourceMappingURL=payment-request-card-BF3rakTQ.js.map
@@ -11,9 +11,9 @@ import { E as ct } from "./email-input-DxwbREpx.js";
11
11
  import { F as v } from "./form-field-CyHfOVKF.js";
12
12
  import { T as S } from "./text-input-B6iAgCr3.js";
13
13
  import { V as mt } from "./visually-hidden-BHxEUGyT.js";
14
- import { a as pt } from "./privacy-mask-zVh0ntm0.js";
14
+ import { a as pt } from "./privacy-mask-CrjD5PYW.js";
15
15
  import { u as W } from "./use-controllable-state-BiY4xTzM.js";
16
- import { u as Y, P as dt, a as ut, b as ht, c as gt, d as Pt, f as bt } from "./portal-parts-Cvu4PfIY.js";
16
+ import { u as Y, P as dt, a as ut, b as ht, c as gt, d as Pt, f as bt } from "./portal-parts-BMW4t57s.js";
17
17
  import { p as V } from "./privacy-mask-text-B8YfzB7L.js";
18
18
  const Z = (n, u) => `${n}-${u}`;
19
19
  function Nt({
@@ -475,4 +475,4 @@ export {
475
475
  Ct as b,
476
476
  Z as p
477
477
  };
478
- //# sourceMappingURL=portal-details-CKF4yFHs.js.map
478
+ //# sourceMappingURL=portal-details-C1QQGPQf.js.map
@@ -5,7 +5,7 @@ import { B as C } from "./button-Dp4j9ygh.js";
5
5
  import { T as se } from "./tab-bar-C6tPDq9s.js";
6
6
  import { p as ae } from "./privacy-mask-text-B8YfzB7L.js";
7
7
  import { c as D, b as de } from "./patient-sign-in-steps-kS2ktytw.js";
8
- import { g as ce, a as W, S as pe, b as F, u as G, P as J, e as $, h as V, i as R, j as me, t as Z, c as E, d as ne, k as _ } from "./portal-parts-Cvu4PfIY.js";
8
+ import { g as ce, a as W, S as pe, b as F, u as G, P as J, e as $, h as V, i as R, j as me, t as Z, c as E, d as ne, k as _ } from "./portal-parts-BMW4t57s.js";
9
9
  import { H as ue } from "./house-DGCypGTo.js";
10
10
  import { C as he } from "./calendar-days-BGWklvE-.js";
11
11
  import { F as re } from "./file-text-5yv6r2ls.js";
@@ -18,7 +18,7 @@ import { D as H } from "./dialog-239Geb7Z.js";
18
18
  import { V as ye } from "./visually-hidden-BHxEUGyT.js";
19
19
  import { u as ve } from "./use-controllable-state-BiY4xTzM.js";
20
20
  import { A as ee } from "./alert-C4WKViaS.js";
21
- import { D as xe } from "./document-preview-oSuJsJ3k.js";
21
+ import { D as xe } from "./document-preview-Zws6CHhK.js";
22
22
  import { D as ke } from "./download-CfYKJO_j.js";
23
23
  function _e({
24
24
  activeTab: p,
@@ -899,4 +899,4 @@ export {
899
899
  we as c,
900
900
  _e as d
901
901
  };
902
- //# sourceMappingURL=portal-documents-DvpAwmSI.js.map
902
+ //# sourceMappingURL=portal-documents-CzEuCaqv.js.map
@@ -7,7 +7,7 @@ import { E as d } from "./empty-state-5REM7oDM.js";
7
7
  import { S as L } from "./skeleton-tTWJpvAq.js";
8
8
  import { S as j } from "./step-up-dialog-NkVLEV9z.js";
9
9
  import { i as k } from "./is-development-CLUAnsU7.js";
10
- import { A as E } from "./appointment-card-HOZrABrQ.js";
10
+ import { A as E } from "./appointment-card-BPZggqck.js";
11
11
  import { c as B } from "./intl-locale-FWh-Y5_3.js";
12
12
  function Y(e) {
13
13
  const { i18n: t } = v("ui");
@@ -282,4 +282,4 @@ export {
282
282
  te as t,
283
283
  Y as u
284
284
  };
285
- //# sourceMappingURL=portal-parts-Cvu4PfIY.js.map
285
+ //# sourceMappingURL=portal-parts-BMW4t57s.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { useTranslation as t } from "react-i18next";
3
3
  import { E as c } from "./empty-state-5REM7oDM.js";
4
- import { P as o } from "./panel-header-CbtlTe85.js";
4
+ import { P as o } from "./panel-header-DTc5OFUg.js";
5
5
  import { S as p } from "./section-card-CYfeQ6EQ.js";
6
6
  import { V as l } from "./visually-hidden-BHxEUGyT.js";
7
7
  import { p as m } from "./privacy-mask-text-B8YfzB7L.js";
@@ -75,4 +75,4 @@ export {
75
75
  f as b,
76
76
  b as c
77
77
  };
78
- //# sourceMappingURL=privacy-mask-zVh0ntm0.js.map
78
+ //# sourceMappingURL=privacy-mask-CrjD5PYW.js.map