@alfadocs/ui-kit 0.36.0 → 0.38.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 (201) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  3. package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
  4. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  5. package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
  6. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  9. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  10. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  11. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  12. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
  13. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
  14. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
  15. package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
  16. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  17. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  18. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  20. package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
  21. package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
  22. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  23. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  24. package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
  25. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  26. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  27. package/dist/_chunks/heart-C0faivFf.js +20 -0
  28. package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
  29. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  30. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  31. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
  32. package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
  33. package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
  34. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  35. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  36. package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
  37. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  38. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
  39. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  40. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  41. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  42. package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
  43. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  44. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  45. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
  46. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  47. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
  48. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  49. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
  50. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  51. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  52. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  53. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  54. package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
  55. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  56. package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
  57. package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
  58. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  59. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  60. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
  61. package/dist/agent-catalog.json +203 -1
  62. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  63. package/dist/brand/provider-marks/apple.d.ts +12 -0
  64. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  65. package/dist/brand/provider-marks/google.d.ts +13 -0
  66. package/dist/components/_shared/insert-result.d.ts +47 -0
  67. package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
  68. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  69. package/dist/components/bmi-calculator/index.d.ts +4 -0
  70. package/dist/components/bmi-calculator/index.js +15 -0
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  73. package/dist/components/calculator-dialog/index.d.ts +3 -0
  74. package/dist/components/calculator-dialog/index.js +5 -0
  75. package/dist/components/chart/chart.d.ts +7 -0
  76. package/dist/components/chart/index.js +1 -1
  77. package/dist/components/chat-message/index.js +1 -1
  78. package/dist/components/contact-profile-card/index.js +1 -1
  79. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  80. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  81. package/dist/components/cycle-calculator/index.d.ts +4 -0
  82. package/dist/components/cycle-calculator/index.js +7 -0
  83. package/dist/components/data-table/index.js +1 -1
  84. package/dist/components/date-picker/index.js +1 -1
  85. package/dist/components/date-range-picker/index.js +1 -1
  86. package/dist/components/date-time-picker/index.js +1 -1
  87. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  88. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  89. package/dist/components/dependent-selector/index.d.ts +4 -0
  90. package/dist/components/dependent-selector/index.js +6 -0
  91. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  92. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  93. package/dist/components/document-scanner/index.d.ts +4 -0
  94. package/dist/components/document-scanner/index.js +6 -0
  95. package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
  96. package/dist/components/due-date-calculator/gestation.d.ts +60 -0
  97. package/dist/components/due-date-calculator/index.d.ts +4 -0
  98. package/dist/components/due-date-calculator/index.js +13 -0
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  101. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  102. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  103. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  104. package/dist/components/fiscal-code-input/index.js +11 -0
  105. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  106. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  107. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  108. package/dist/components/gestational-age-calculator/index.js +5 -0
  109. package/dist/components/index.d.ts +15 -0
  110. package/dist/components/logo/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  113. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  114. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  115. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  116. package/dist/components/privacy-lock/index.js +1 -1
  117. package/dist/components/public-footer/index.js +1 -1
  118. package/dist/components/qr-code/index.d.ts +5 -0
  119. package/dist/components/qr-code/index.js +8 -0
  120. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  121. package/dist/components/qr-code/qr-code.d.ts +59 -0
  122. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  123. package/dist/components/rich-text-editor/index.js +1 -1
  124. package/dist/components/session-countdown/index.d.ts +4 -0
  125. package/dist/components/session-countdown/index.js +6 -0
  126. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  127. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  128. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  129. package/dist/components/skeleton/skeleton.d.ts +1 -1
  130. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  131. package/dist/components/social-sign-in-button/index.js +5 -0
  132. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  133. package/dist/components/unit-converter/index.d.ts +4 -0
  134. package/dist/components/unit-converter/index.js +9 -0
  135. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  136. package/dist/components/unit-converter/units.d.ts +18 -0
  137. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  138. package/dist/components/wallet-pay-button/index.js +5 -0
  139. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  140. package/dist/i18n/locales/ar.d.ts +316 -0
  141. package/dist/i18n/locales/ar.js +307 -0
  142. package/dist/i18n/locales/de.d.ts +316 -0
  143. package/dist/i18n/locales/de.js +307 -0
  144. package/dist/i18n/locales/el.d.ts +316 -0
  145. package/dist/i18n/locales/el.js +307 -0
  146. package/dist/i18n/locales/en.d.ts +316 -0
  147. package/dist/i18n/locales/en.js +310 -0
  148. package/dist/i18n/locales/es.d.ts +316 -0
  149. package/dist/i18n/locales/es.js +307 -0
  150. package/dist/i18n/locales/fr.d.ts +316 -0
  151. package/dist/i18n/locales/fr.js +307 -0
  152. package/dist/i18n/locales/hi.d.ts +316 -0
  153. package/dist/i18n/locales/hi.js +307 -0
  154. package/dist/i18n/locales/it.d.ts +316 -0
  155. package/dist/i18n/locales/it.js +307 -0
  156. package/dist/i18n/locales/ja.d.ts +316 -0
  157. package/dist/i18n/locales/ja.js +303 -0
  158. package/dist/i18n/locales/nl.d.ts +316 -0
  159. package/dist/i18n/locales/nl.js +307 -0
  160. package/dist/i18n/locales/pl.d.ts +316 -0
  161. package/dist/i18n/locales/pl.js +307 -0
  162. package/dist/i18n/locales/pt.d.ts +316 -0
  163. package/dist/i18n/locales/pt.js +310 -0
  164. package/dist/i18n/locales/ro.d.ts +316 -0
  165. package/dist/i18n/locales/ro.js +307 -0
  166. package/dist/i18n/locales/ru.d.ts +316 -0
  167. package/dist/i18n/locales/ru.js +307 -0
  168. package/dist/i18n/locales/sq.d.ts +316 -0
  169. package/dist/i18n/locales/sq.js +307 -0
  170. package/dist/i18n/locales/sv.d.ts +316 -0
  171. package/dist/i18n/locales/sv.js +307 -0
  172. package/dist/i18n/locales/tr.d.ts +316 -0
  173. package/dist/i18n/locales/tr.js +307 -0
  174. package/dist/i18n/locales/zh.d.ts +316 -0
  175. package/dist/i18n/locales/zh.js +303 -0
  176. package/dist/index.js +597 -527
  177. package/dist/locales/ar.json +316 -0
  178. package/dist/locales/de.json +316 -0
  179. package/dist/locales/el.json +316 -0
  180. package/dist/locales/en.json +316 -0
  181. package/dist/locales/es.json +316 -0
  182. package/dist/locales/fr.json +316 -0
  183. package/dist/locales/hi.json +316 -0
  184. package/dist/locales/it.json +316 -0
  185. package/dist/locales/ja.json +316 -0
  186. package/dist/locales/nl.json +316 -0
  187. package/dist/locales/pl.json +316 -0
  188. package/dist/locales/pt.json +316 -0
  189. package/dist/locales/ro.json +316 -0
  190. package/dist/locales/ru.json +316 -0
  191. package/dist/locales/sq.json +316 -0
  192. package/dist/locales/sv.json +316 -0
  193. package/dist/locales/tr.json +316 -0
  194. package/dist/locales/zh.json +316 -0
  195. package/dist/patterns/alia-assistant/index.js +1 -1
  196. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  197. package/dist/patterns/patient-shell/index.js +1 -1
  198. package/dist/tokens.css +1 -1
  199. package/package.json +57 -1
  200. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  201. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
@@ -0,0 +1,312 @@
1
+ import { jsxs as T, jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as Q, useId as X, useMemo as d, useRef as tt, useState as E, useEffect as P, useImperativeHandle as et } from "react";
3
+ import { c as ot } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as at } from "react-i18next";
5
+ import rt from "react-apexcharts";
6
+ import $ from "apexcharts";
7
+ import { u as nt, g as k } from "./apexcharts-theme-BJigns_V.js";
8
+ import { u as st } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
+ import { u as it } from "./registry-nPAVE19X.js";
10
+ const ct = {
11
+ id: "chart",
12
+ capabilities: [],
13
+ state: {},
14
+ actions: {
15
+ update_series: {
16
+ safety: "read",
17
+ argsType: "series",
18
+ description: "Replace the chart series without remounting.",
19
+ invoke: (r, l) => {
20
+ r.updateSeries(l.series);
21
+ }
22
+ },
23
+ export_png: {
24
+ safety: "read",
25
+ description: "Return a PNG data URI of the chart for export or screenshotting.",
26
+ invoke: (r) => r.dataURI()
27
+ }
28
+ },
29
+ domHooks: {
30
+ root: { attr: "data-component", value: "chart" },
31
+ instanceId: {
32
+ attr: "data-component-id",
33
+ sourceProp: "id",
34
+ description: "Sourced from the id prop."
35
+ }
36
+ }
37
+ }, dt = ot("ds:relative ds:block ds:w-full", {
38
+ variants: {
39
+ density: {
40
+ compact: "ds:min-h-[var(--chart-min-height-compact)]",
41
+ comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]"
42
+ }
43
+ },
44
+ defaultVariants: { density: "comfortable" }
45
+ }), lt = [
46
+ "verticalLines",
47
+ "horizontalLines",
48
+ "slantedLines",
49
+ "squares",
50
+ "circles"
51
+ ], mt = ["line", "bar", "area"], ut = ["pie", "donut", "radialBar"];
52
+ function x(r) {
53
+ return ut.includes(r);
54
+ }
55
+ function ht(r) {
56
+ return mt.includes(r);
57
+ }
58
+ function pt(r, l) {
59
+ return x(l) ? [
60
+ {
61
+ name: "",
62
+ data: r
63
+ }
64
+ ] : r;
65
+ }
66
+ const ft = Q(
67
+ ({
68
+ title: r,
69
+ id: l,
70
+ type: o,
71
+ series: p,
72
+ categories: g,
73
+ labels: v,
74
+ height: G,
75
+ width: H,
76
+ patterns: L = !1,
77
+ toolbar: R = !1,
78
+ locale: _,
79
+ radialValueFormatter: m,
80
+ density: M,
81
+ className: U
82
+ }, D) => {
83
+ const { t: a, i18n: W } = at(), O = X(), u = d(
84
+ () => `chart-${O.replace(/[^a-zA-Z0-9-_]/g, "")}`,
85
+ [O]
86
+ ), S = `${u}-summary`, y = tt(null), [A, Y] = E(0);
87
+ nt(y);
88
+ const h = _ ?? W.language ?? "en", [z, Z] = E(
89
+ () => {
90
+ try {
91
+ return k();
92
+ } catch {
93
+ return {};
94
+ }
95
+ }
96
+ );
97
+ P(() => {
98
+ if (typeof document > "u") return;
99
+ let t;
100
+ const e = new MutationObserver(() => {
101
+ clearTimeout(t), t = setTimeout(() => {
102
+ try {
103
+ Z(k());
104
+ } catch {
105
+ }
106
+ }, 50);
107
+ });
108
+ return e.observe(document.documentElement, {
109
+ attributes: !0,
110
+ attributeFilter: ["class"]
111
+ }), () => {
112
+ clearTimeout(t), e.disconnect();
113
+ };
114
+ }, []), P(() => {
115
+ const t = y.current;
116
+ if (!t || typeof ResizeObserver > "u") return;
117
+ const e = new ResizeObserver((n) => {
118
+ const s = n[0];
119
+ s && Y(Math.floor(s.contentRect.width));
120
+ });
121
+ return e.observe(t), () => e.disconnect();
122
+ }, []);
123
+ const I = d(
124
+ () => ({
125
+ async dataURI() {
126
+ const t = $.getChartByID(u);
127
+ return t ? (await t.dataURI()).imgURI : "";
128
+ },
129
+ updateSeries(t) {
130
+ const e = $.getChartByID(u);
131
+ e && (x(o), e.updateSeries(t));
132
+ }
133
+ }),
134
+ [u, o]
135
+ );
136
+ et(D, () => I, [I]), it(ct, I, l);
137
+ const C = typeof document < "u" && document.documentElement.dir === "rtl", N = d(
138
+ () => pt(p, o),
139
+ [p, o]
140
+ ), f = d(
141
+ () => new Intl.NumberFormat(h),
142
+ [h]
143
+ ), B = d(
144
+ () => ({
145
+ name: h,
146
+ options: {
147
+ toolbar: {
148
+ download: a("chart.toolbar.download"),
149
+ selection: a("chart.toolbar.selection"),
150
+ selectionZoom: a("chart.toolbar.selectionZoom"),
151
+ zoomIn: a("chart.toolbar.zoomIn"),
152
+ zoomOut: a("chart.toolbar.zoomOut"),
153
+ pan: a("chart.toolbar.pan"),
154
+ reset: a("chart.toolbar.reset"),
155
+ exportToSVG: a("chart.toolbar.exportToSVG"),
156
+ exportToPNG: a("chart.toolbar.exportToPNG"),
157
+ exportToCSV: a("chart.toolbar.exportToCSV")
158
+ }
159
+ }
160
+ }),
161
+ [h, a]
162
+ ), w = st(), j = d(() => {
163
+ var n, s, b;
164
+ const t = z, e = {
165
+ ...t,
166
+ chart: {
167
+ ...t.chart,
168
+ id: u,
169
+ toolbar: { show: R },
170
+ zoom: { enabled: R },
171
+ animations: {
172
+ enabled: !w,
173
+ dynamicAnimation: { enabled: !w }
174
+ },
175
+ locales: [B],
176
+ defaultLocale: h,
177
+ parentHeightOffset: 0
178
+ },
179
+ labels: v,
180
+ legend: {
181
+ ...t.legend,
182
+ position: "bottom",
183
+ // ApexCharts legend.horizontalAlign is a physical prop mapped internally
184
+ // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
185
+ // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
186
+ // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
187
+ horizontalAlign: C ? "right" : "left",
188
+ fontFamily: "inherit"
189
+ },
190
+ tooltip: {
191
+ ...t.tooltip,
192
+ y: {
193
+ formatter: (i) => f.format(i)
194
+ }
195
+ },
196
+ noData: {
197
+ text: a("chart.noData")
198
+ }
199
+ };
200
+ if (ht(o) && (e.xaxis = {
201
+ ...t.xaxis,
202
+ categories: g ?? []
203
+ }, e.yaxis = {
204
+ ...t.yaxis,
205
+ opposite: C,
206
+ labels: {
207
+ formatter: (i) => f.format(i)
208
+ }
209
+ }, e.stroke = {
210
+ curve: "smooth",
211
+ width: o === "bar" ? 0 : 2
212
+ }, e.dataLabels = { enabled: !1 }), o === "radialBar" && m) {
213
+ const i = t.plotOptions ?? {};
214
+ e.plotOptions = {
215
+ ...i,
216
+ radialBar: {
217
+ ...i.radialBar ?? {},
218
+ dataLabels: {
219
+ ...((n = i.radialBar) == null ? void 0 : n.dataLabels) ?? {},
220
+ value: {
221
+ ...((b = (s = i.radialBar) == null ? void 0 : s.dataLabels) == null ? void 0 : b.value) ?? {},
222
+ formatter: (K) => m(Number(K))
223
+ }
224
+ }
225
+ }
226
+ };
227
+ }
228
+ return L ? e.fill = {
229
+ type: "pattern",
230
+ opacity: o === "area" ? 0.3 : 1,
231
+ pattern: {
232
+ style: [...lt],
233
+ strokeWidth: 2
234
+ }
235
+ } : o === "area" && (e.fill = {
236
+ type: "gradient",
237
+ opacity: 0.3
238
+ }), e;
239
+ }, [
240
+ z,
241
+ u,
242
+ R,
243
+ w,
244
+ B,
245
+ h,
246
+ v,
247
+ f,
248
+ a,
249
+ o,
250
+ g,
251
+ C,
252
+ L,
253
+ m
254
+ ]), q = H ?? (A > 0 ? A : "100%"), V = G ?? 320, F = d(() => {
255
+ const t = x(o) ? v ?? [] : g ?? [], e = N;
256
+ return /* @__PURE__ */ T("table", { id: S, className: "ds:sr-only", children: [
257
+ /* @__PURE__ */ c("caption", { children: r }),
258
+ /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ T("tr", { children: [
259
+ /* @__PURE__ */ c("th", { scope: "col", children: a("chart.table.series") }),
260
+ t.map((n, s) => /* @__PURE__ */ c("th", { scope: "col", children: n }, `${n}-${s}`))
261
+ ] }) }),
262
+ /* @__PURE__ */ c("tbody", { children: e.map((n, s) => /* @__PURE__ */ T("tr", { children: [
263
+ /* @__PURE__ */ c("th", { scope: "row", children: n.name || a("chart.table.value") }),
264
+ n.data.map((b, i) => /* @__PURE__ */ c("td", { children: o === "radialBar" && m ? m(b) : f.format(b) }, `${s}-${i}`))
265
+ ] }, `${n.name}-${s}`)) })
266
+ ] });
267
+ }, [
268
+ o,
269
+ N,
270
+ v,
271
+ g,
272
+ S,
273
+ r,
274
+ a,
275
+ f,
276
+ m
277
+ ]), J = d(() => (x(o), p), [p, o]);
278
+ return /* @__PURE__ */ T(
279
+ "div",
280
+ {
281
+ ref: y,
282
+ role: "img",
283
+ "aria-label": r,
284
+ "aria-describedby": S,
285
+ className: dt({ density: M, className: U }),
286
+ "data-component": "chart",
287
+ "data-component-id": l,
288
+ children: [
289
+ F,
290
+ /* @__PURE__ */ c(
291
+ rt,
292
+ {
293
+ type: o,
294
+ series: J,
295
+ options: j,
296
+ width: q,
297
+ height: V,
298
+ "aria-hidden": "true"
299
+ }
300
+ )
301
+ ]
302
+ }
303
+ );
304
+ }
305
+ );
306
+ ft.displayName = "Chart";
307
+ export {
308
+ ft as C,
309
+ dt as a,
310
+ ct as c
311
+ };
312
+ //# sourceMappingURL=chart-DnHvmiDX.js.map
@@ -1,25 +1,16 @@
1
1
  import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as C, useMemo as j, Fragment as g } from "react";
3
- import { c as h } from "./index-D2ZczOXr.js";
3
+ import { c as v } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as T } from "react-i18next";
5
5
  import { B as z } from "./button-DD_0Xdmr.js";
6
- import { A as M } from "./avatar-BNQNhoyL.js";
7
- import { T as I } from "./timestamp-BV2lC-wV.js";
8
- import { s as A } from "./safe-image-src-DstKgCo7.js";
9
- import { c as F } from "./createLucideIcon-CrFbzy84.js";
10
- import { C as L } from "./clock-21AGPWJ5.js";
11
- import { C as S } from "./check-DPdL_Sm7.js";
12
- import { C as V } from "./circle-alert-ChA9opNA.js";
13
- /**
14
- * @license lucide-react v1.8.0 - ISC
15
- *
16
- * This source code is licensed under the ISC license.
17
- * See the LICENSE file in the root directory of this source tree.
18
- */
19
- const _ = [
20
- ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
21
- ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
22
- ], B = F("rotate-ccw", _), D = h(
6
+ import { A } from "./avatar-BNQNhoyL.js";
7
+ import { T as F } from "./timestamp-BV2lC-wV.js";
8
+ import { s as I } from "./safe-image-src-DstKgCo7.js";
9
+ import { R as M } from "./rotate-ccw-BWANpitO.js";
10
+ import { C as S } from "./clock-21AGPWJ5.js";
11
+ import { C as V } from "./check-DPdL_Sm7.js";
12
+ import { C as B } from "./circle-alert-ChA9opNA.js";
13
+ const D = v(
23
14
  "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]",
24
15
  {
25
16
  variants: {
@@ -31,7 +22,7 @@ const _ = [
31
22
  },
32
23
  defaultVariants: { role: "assistant" }
33
24
  }
34
- ), E = h(
25
+ ), E = v(
35
26
  [
36
27
  // Cap at 42rem on wide surfaces; on narrow docks (Alia sidebar ≈22rem)
37
28
  // leave room for the avatar column (size-8 = 32px = --spacing-xl) +
@@ -53,8 +44,8 @@ const _ = [
53
44
  },
54
45
  defaultVariants: { role: "assistant" }
55
46
  }
56
- ), k = /^(https?:|mailto:)/i;
57
- function $(t) {
47
+ ), L = /^(https?:|mailto:)/i;
48
+ function R(t) {
58
49
  const e = [];
59
50
  let r = t;
60
51
  const n = /\*\*([^*]+)\*\*|`([^`]+)`|\[([^\]]+)\]\(([^)]+)\)|\n/;
@@ -68,8 +59,8 @@ function $(t) {
68
59
  }
69
60
  return e;
70
61
  }
71
- function q(t) {
72
- return $(t).map((e, r) => e.type === "bold" ? /* @__PURE__ */ a("strong", { children: e.value }, r) : e.type === "code" ? /* @__PURE__ */ a(
62
+ function _(t) {
63
+ return R(t).map((e, r) => e.type === "bold" ? /* @__PURE__ */ a("strong", { children: e.value }, r) : e.type === "code" ? /* @__PURE__ */ a(
73
64
  "code",
74
65
  {
75
66
  dir: "ltr",
@@ -77,7 +68,7 @@ function q(t) {
77
68
  children: e.value
78
69
  },
79
70
  r
80
- ) : e.type === "br" ? /* @__PURE__ */ a("br", {}, r) : e.type === "link" ? k.test(e.href) ? /* @__PURE__ */ a(
71
+ ) : e.type === "br" ? /* @__PURE__ */ a("br", {}, r) : e.type === "link" ? L.test(e.href) ? /* @__PURE__ */ a(
81
72
  "a",
82
73
  {
83
74
  href: e.href,
@@ -89,17 +80,17 @@ function q(t) {
89
80
  r
90
81
  ) : /* @__PURE__ */ a(g, { children: e.label }, r) : /* @__PURE__ */ a(g, { children: e.value }, r));
91
82
  }
92
- const H = C(
83
+ const $ = C(
93
84
  ({
94
85
  role: t,
95
86
  content: e,
96
87
  avatar: r,
97
88
  timestamp: n,
98
89
  status: s,
99
- renderMarkdown: v = !1,
90
+ renderMarkdown: h = !1,
100
91
  onRetry: l,
101
- className: x,
102
- ...b
92
+ className: b,
93
+ ...x
103
94
  }, y) => {
104
95
  const { t: i, i18n: m } = T(), o = j(() => {
105
96
  if (!n) return null;
@@ -108,8 +99,8 @@ const H = C(
108
99
  hour: "2-digit",
109
100
  minute: "2-digit"
110
101
  }).format(p);
111
- }, [n, m.language]), c = i(`chat.message.role.${t}`), N = o ? i("chat.message.label", { role: c, time: o }) : i("chat.message.labelNoTime", { role: c }), w = v ? q(e) : e, u = !s || s === "edited" ? null : s === "sending" ? /* @__PURE__ */ a(L, { "aria-hidden": "true", className: "ds:size-3.5" }) : s === "sent" ? /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }) : /* @__PURE__ */ a(
112
- V,
102
+ }, [n, m.language]), c = i(`chat.message.role.${t}`), N = o ? i("chat.message.label", { role: c, time: o }) : i("chat.message.labelNoTime", { role: c }), w = h ? _(e) : e, u = !s || s === "edited" ? null : s === "sending" ? /* @__PURE__ */ a(S, { "aria-hidden": "true", className: "ds:size-3.5" }) : s === "sent" ? /* @__PURE__ */ a(V, { "aria-hidden": "true", className: "ds:size-3.5" }) : /* @__PURE__ */ a(
103
+ B,
113
104
  {
114
105
  "aria-hidden": "true",
115
106
  className: "ds:size-3.5 ds:text-[color:var(--destructive)]"
@@ -122,14 +113,14 @@ const H = C(
122
113
  "aria-label": N,
123
114
  "data-component": "chat-message",
124
115
  className: [
125
- D({ role: t, className: x }),
116
+ D({ role: t, className: b }),
126
117
  // Entrance: fade + slide up on mount. `--animation-duration` is 0ms
127
118
  // under `prefers-reduced-motion` and `.theme-accessible`, so both
128
119
  // collapse the animation to an instant state change automatically.
129
120
  "ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:slide-in-from-bottom-2",
130
121
  "ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
131
122
  ].join(" "),
132
- ...b,
123
+ ...x,
133
124
  children: [
134
125
  t !== "system" && r ? r.slot ? (
135
126
  // Consumer-supplied avatar node (e.g. Alia's Sparkles tile).
@@ -139,10 +130,10 @@ const H = C(
139
130
  // `javascript:` / `data:text/html` / `data:image/svg+xml` and so
140
131
  // are scrubbed here before reaching <Avatar>. Fallback to initials.
141
132
  /* @__PURE__ */ a(
142
- M,
133
+ A,
143
134
  {
144
135
  name: r.name,
145
- src: A(r.src),
136
+ src: I(r.src),
146
137
  size: "sm"
147
138
  }
148
139
  )
@@ -183,7 +174,7 @@ const H = C(
183
174
  ].join(" "),
184
175
  children: [
185
176
  n ? /* @__PURE__ */ a(
186
- I,
177
+ F,
187
178
  {
188
179
  value: n,
189
180
  format: "absolute",
@@ -217,7 +208,7 @@ const H = C(
217
208
  intent: "ghost",
218
209
  size: "sm",
219
210
  onClick: l,
220
- startIcon: /* @__PURE__ */ a(B, {}),
211
+ startIcon: /* @__PURE__ */ a(M, {}),
221
212
  children: i("chat.message.retry")
222
213
  }
223
214
  ) : null
@@ -232,8 +223,8 @@ const H = C(
232
223
  );
233
224
  }
234
225
  );
235
- H.displayName = "ChatMessage";
226
+ $.displayName = "ChatMessage";
236
227
  export {
237
- H as C
228
+ $ as C
238
229
  };
239
- //# sourceMappingURL=chat-message-D53_fH2w.js.map
230
+ //# sourceMappingURL=chat-message-ASgGtj-L.js.map
@@ -8,8 +8,9 @@ import { K as fe, a as me } from "./key-value-pair-CkQIb9EG.js";
8
8
  import { L as d } from "./link-DrD_cRUg.js";
9
9
  import { u as he } from "./registry-nPAVE19X.js";
10
10
  import { S as T } from "./stethoscope-DT5qCW8Y.js";
11
- import { H, S as V, L as z } from "./shield-check-BhHyReu8.js";
12
- import { c as O } from "./createLucideIcon-CrFbzy84.js";
11
+ import { H } from "./heart-C0faivFf.js";
12
+ import { c as V } from "./createLucideIcon-CrFbzy84.js";
13
+ import { S as z, L as O } from "./shield-check-C73ma9Cs.js";
13
14
  import { G as E } from "./globe-BkEFMNSg.js";
14
15
  import { M as K } from "./mail-C8irm52s.js";
15
16
  import { M as L } from "./message-circle-C23eicgb.js";
@@ -24,7 +25,7 @@ const ge = [
24
25
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
25
26
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
26
27
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
27
- ], j = O("banknote", ge);
28
+ ], j = V("banknote", ge);
28
29
  /**
29
30
  * @license lucide-react v1.8.0 - ISC
30
31
  *
@@ -39,7 +40,7 @@ const ve = [
39
40
  key: "9njp5v"
40
41
  }
41
42
  ]
42
- ], B = O("phone", ve), xe = {
43
+ ], B = V("phone", ve), xe = {
43
44
  id: "contact-profile-card",
44
45
  capabilities: ["view_change"],
45
46
  state: {
@@ -225,14 +226,14 @@ const $e = ce(
225
226
  };
226
227
  o.push({
227
228
  key: "languages",
228
- icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
229
+ icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
229
230
  label: n("contactProfileCard.label.languages"),
230
231
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(S, { variant: "neutral", children: i(l) }, l)) })
231
232
  });
232
233
  }
233
234
  v && v.length > 0 && o.push({
234
235
  key: "insurances",
235
- icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
236
+ icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
236
237
  label: n("contactProfileCard.label.insurances"),
237
238
  value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(S, { variant: "info", children: i }, i)) })
238
239
  }), N && o.push({
@@ -311,7 +312,7 @@ const $e = ce(
311
312
  }
312
313
  );
313
314
  $e.displayName = "ContactProfileCard";
314
- const Be = [
315
+ const Ge = [
315
316
  "address",
316
317
  "phone",
317
318
  "whatsapp",
@@ -322,22 +323,22 @@ const Be = [
322
323
  "firstVisitPrice",
323
324
  "expertForAnxiousPatients",
324
325
  "profession"
325
- ], Ge = {
326
+ ], qe = {
326
327
  address: U,
327
328
  phone: B,
328
329
  whatsapp: L,
329
330
  email: K,
330
331
  website: E,
331
- languages: z,
332
- insurances: V,
332
+ languages: O,
333
+ insurances: z,
333
334
  firstVisitPrice: j,
334
335
  expertForAnxiousPatients: H,
335
336
  profession: T
336
337
  };
337
338
  export {
338
- Ge as C,
339
- Be as a,
339
+ qe as C,
340
+ Ge as a,
340
341
  $e as b,
341
342
  xe as c
342
343
  };
343
- //# sourceMappingURL=contact-profile-card-BA6fgS45.js.map
344
+ //# sourceMappingURL=contact-profile-card-DHyuAPXM.js.map