@alfadocs/ui-kit 0.37.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 (196) 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-D1RwVZFj.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-DqXsd1Mv.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  9. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  10. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  11. package/dist/_chunks/{date-picker-CXFpu-qY.js → date-picker-CvQfs6Xh.js} +2 -2
  12. package/dist/_chunks/{date-range-picker-I-q5rifj.js → date-range-picker-U9fn1g9d.js} +3 -3
  13. package/dist/_chunks/{date-time-picker-CqpGPlcH.js → date-time-picker-Cva0ZCWw.js} +2 -2
  14. package/dist/_chunks/{de-HTQ4b4-J.js → de-BMM2H7Bs.js} +2 -2
  15. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  16. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  17. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  18. package/dist/_chunks/{editable-currency-cell-renderer-DnjwZNZP.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  19. package/dist/_chunks/{el-Dr1pjuDq.js → el-BYPonAaK.js} +2 -2
  20. package/dist/_chunks/{es-CvyTjLS0.js → es-CMkVCQ4F.js} +2 -2
  21. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  22. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  23. package/dist/_chunks/{fr-CS7aqaFR.js → fr-BcuWxqft.js} +2 -2
  24. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  25. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  26. package/dist/_chunks/heart-C0faivFf.js +20 -0
  27. package/dist/_chunks/{hi-3uy8KpsH.js → hi-wkq_rQAh.js} +2 -2
  28. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  29. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  30. package/dist/_chunks/{isSameWeek-DRpMibi9.js → isSameWeek-Bim5ftRd.js} +2 -2
  31. package/dist/_chunks/{it-B_RF5VSw.js → it-GiQrQ9p4.js} +3 -3
  32. package/dist/_chunks/{ja-C1mEYy35.js → ja-qfYg3Rua.js} +2 -2
  33. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  34. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  35. package/dist/_chunks/{nl-Dl7lO2t3.js → nl-xOogO4sZ.js} +2 -2
  36. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  37. package/dist/_chunks/{pl-Dgsogljx.js → pl-GnOW6eGK.js} +3 -3
  38. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  39. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  40. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  41. package/dist/_chunks/{pt-Dm2JF4bc.js → pt-_bV5b5RW.js} +2 -2
  42. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  43. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  44. package/dist/_chunks/{react-day-picker-DYDdR8Vv.js → react-day-picker-CdtIiKjx.js} +24 -24
  45. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  46. package/dist/_chunks/{ro-BXFZ_xIX.js → ro-BEcyh5Nj.js} +2 -2
  47. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  48. package/dist/_chunks/{ru-BPQkNRRV.js → ru-Bi86hqMf.js} +3 -3
  49. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  50. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  51. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  52. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  53. package/dist/_chunks/{sq-ChTlGFcJ.js → sq-BujHSAWu.js} +2 -2
  54. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  55. package/dist/_chunks/{sv-Do_gs6ir.js → sv-C8AeDrTA.js} +2 -2
  56. package/dist/_chunks/{tr-da_UnkYH.js → tr-CMSs_Vgf.js} +2 -2
  57. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  58. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  59. package/dist/_chunks/{zh-CN-C9qi5oak.js → zh-CN-eXB-PFu4.js} +3 -3
  60. package/dist/agent-catalog.json +203 -1
  61. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  62. package/dist/brand/provider-marks/apple.d.ts +12 -0
  63. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  64. package/dist/brand/provider-marks/google.d.ts +13 -0
  65. package/dist/components/_shared/insert-result.d.ts +47 -0
  66. package/dist/components/bmi-calculator/bmi-calculator.d.ts +3 -0
  67. package/dist/components/bmi-calculator/index.js +6 -5
  68. package/dist/components/booking/index.js +1 -1
  69. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  70. package/dist/components/calculator-dialog/index.d.ts +3 -0
  71. package/dist/components/calculator-dialog/index.js +5 -0
  72. package/dist/components/chat-message/index.js +1 -1
  73. package/dist/components/contact-profile-card/index.js +1 -1
  74. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  75. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  76. package/dist/components/cycle-calculator/index.d.ts +4 -0
  77. package/dist/components/cycle-calculator/index.js +7 -0
  78. package/dist/components/data-table/index.js +1 -1
  79. package/dist/components/date-picker/index.js +1 -1
  80. package/dist/components/date-range-picker/index.js +1 -1
  81. package/dist/components/date-time-picker/index.js +1 -1
  82. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  83. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  84. package/dist/components/dependent-selector/index.d.ts +4 -0
  85. package/dist/components/dependent-selector/index.js +6 -0
  86. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  87. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  88. package/dist/components/document-scanner/index.d.ts +4 -0
  89. package/dist/components/document-scanner/index.js +6 -0
  90. package/dist/components/due-date-calculator/due-date-calculator.d.ts +3 -0
  91. package/dist/components/due-date-calculator/gestation.d.ts +16 -0
  92. package/dist/components/due-date-calculator/index.d.ts +1 -1
  93. package/dist/components/due-date-calculator/index.js +10 -7
  94. package/dist/components/file-upload/index.js +1 -1
  95. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  96. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  97. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  98. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  99. package/dist/components/fiscal-code-input/index.js +11 -0
  100. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  101. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  102. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  103. package/dist/components/gestational-age-calculator/index.js +5 -0
  104. package/dist/components/index.d.ts +13 -0
  105. package/dist/components/logo/index.js +1 -1
  106. package/dist/components/practice-results/index.js +1 -1
  107. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  108. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  109. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  110. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  111. package/dist/components/privacy-lock/index.js +1 -1
  112. package/dist/components/public-footer/index.js +1 -1
  113. package/dist/components/qr-code/index.d.ts +5 -0
  114. package/dist/components/qr-code/index.js +8 -0
  115. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  116. package/dist/components/qr-code/qr-code.d.ts +59 -0
  117. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  118. package/dist/components/rich-text-editor/index.js +1 -1
  119. package/dist/components/session-countdown/index.d.ts +4 -0
  120. package/dist/components/session-countdown/index.js +6 -0
  121. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  122. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  123. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  124. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  125. package/dist/components/social-sign-in-button/index.js +5 -0
  126. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  127. package/dist/components/unit-converter/index.d.ts +4 -0
  128. package/dist/components/unit-converter/index.js +9 -0
  129. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  130. package/dist/components/unit-converter/units.d.ts +18 -0
  131. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  132. package/dist/components/wallet-pay-button/index.js +5 -0
  133. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  134. package/dist/i18n/locales/ar.d.ts +252 -0
  135. package/dist/i18n/locales/ar.js +249 -0
  136. package/dist/i18n/locales/de.d.ts +252 -0
  137. package/dist/i18n/locales/de.js +249 -0
  138. package/dist/i18n/locales/el.d.ts +252 -0
  139. package/dist/i18n/locales/el.js +249 -0
  140. package/dist/i18n/locales/en.d.ts +252 -0
  141. package/dist/i18n/locales/en.js +252 -0
  142. package/dist/i18n/locales/es.d.ts +252 -0
  143. package/dist/i18n/locales/es.js +249 -0
  144. package/dist/i18n/locales/fr.d.ts +252 -0
  145. package/dist/i18n/locales/fr.js +249 -0
  146. package/dist/i18n/locales/hi.d.ts +252 -0
  147. package/dist/i18n/locales/hi.js +249 -0
  148. package/dist/i18n/locales/it.d.ts +252 -0
  149. package/dist/i18n/locales/it.js +249 -0
  150. package/dist/i18n/locales/ja.d.ts +252 -0
  151. package/dist/i18n/locales/ja.js +245 -0
  152. package/dist/i18n/locales/nl.d.ts +252 -0
  153. package/dist/i18n/locales/nl.js +249 -0
  154. package/dist/i18n/locales/pl.d.ts +252 -0
  155. package/dist/i18n/locales/pl.js +249 -0
  156. package/dist/i18n/locales/pt.d.ts +252 -0
  157. package/dist/i18n/locales/pt.js +252 -0
  158. package/dist/i18n/locales/ro.d.ts +252 -0
  159. package/dist/i18n/locales/ro.js +249 -0
  160. package/dist/i18n/locales/ru.d.ts +252 -0
  161. package/dist/i18n/locales/ru.js +249 -0
  162. package/dist/i18n/locales/sq.d.ts +252 -0
  163. package/dist/i18n/locales/sq.js +249 -0
  164. package/dist/i18n/locales/sv.d.ts +252 -0
  165. package/dist/i18n/locales/sv.js +249 -0
  166. package/dist/i18n/locales/tr.d.ts +252 -0
  167. package/dist/i18n/locales/tr.js +249 -0
  168. package/dist/i18n/locales/zh.d.ts +252 -0
  169. package/dist/i18n/locales/zh.js +245 -0
  170. package/dist/index.js +587 -535
  171. package/dist/locales/ar.json +252 -0
  172. package/dist/locales/de.json +252 -0
  173. package/dist/locales/el.json +252 -0
  174. package/dist/locales/en.json +252 -0
  175. package/dist/locales/es.json +252 -0
  176. package/dist/locales/fr.json +252 -0
  177. package/dist/locales/hi.json +252 -0
  178. package/dist/locales/it.json +252 -0
  179. package/dist/locales/ja.json +252 -0
  180. package/dist/locales/nl.json +252 -0
  181. package/dist/locales/pl.json +252 -0
  182. package/dist/locales/pt.json +252 -0
  183. package/dist/locales/ro.json +252 -0
  184. package/dist/locales/ru.json +252 -0
  185. package/dist/locales/sq.json +252 -0
  186. package/dist/locales/sv.json +252 -0
  187. package/dist/locales/tr.json +252 -0
  188. package/dist/locales/zh.json +252 -0
  189. package/dist/patterns/alia-assistant/index.js +1 -1
  190. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  191. package/dist/patterns/patient-shell/index.js +1 -1
  192. package/dist/tokens.css +1 -1
  193. package/package.json +49 -1
  194. package/dist/_chunks/bmi-calculator-DQD5_nE-.js +0 -214
  195. package/dist/_chunks/due-date-calculator-kf9U_g7O.js +0 -173
  196. package/dist/_chunks/subDays-D-WYRpdW.js +0 -8
@@ -0,0 +1,56 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ const s = e((t, o) => /* @__PURE__ */ a(
4
+ "svg",
5
+ {
6
+ ref: o,
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 148 148",
9
+ fill: "currentColor",
10
+ ...t,
11
+ children: [
12
+ /* @__PURE__ */ r(
13
+ "rect",
14
+ {
15
+ x: "53.04",
16
+ y: "2.54",
17
+ width: "33.99",
18
+ height: "49.34",
19
+ rx: "4.56",
20
+ ry: "4.56",
21
+ transform: "translate(-4.66 19.05) rotate(-15)"
22
+ }
23
+ ),
24
+ /* @__PURE__ */ r(
25
+ "rect",
26
+ {
27
+ x: "96.12",
28
+ y: "53.04",
29
+ width: "49.34",
30
+ height: "33.99",
31
+ rx: "4.56",
32
+ ry: "4.56",
33
+ transform: "translate(-14.01 33.65) rotate(-15)"
34
+ }
35
+ ),
36
+ /* @__PURE__ */ r("path", { d: "M47.82,59.56c-.65-2.43-3.15-3.87-5.58-3.22L3.38,66.75c-2.43.65-3.87,3.15-3.22,5.58l6.44,24.03c.65,2.43,3.15,3.87,5.58,3.22l38.86-10.41c2.43-.65,3.87-3.15,3.22-5.58l-6.44-24.03Z" }),
37
+ /* @__PURE__ */ r(
38
+ "rect",
39
+ {
40
+ x: "60.97",
41
+ y: "96.12",
42
+ width: "33.99",
43
+ height: "49.34",
44
+ rx: "4.56",
45
+ ry: "4.56",
46
+ transform: "translate(-28.61 24.29) rotate(-15)"
47
+ }
48
+ )
49
+ ]
50
+ }
51
+ ));
52
+ s.displayName = "AlfadocsLogoMark";
53
+ export {
54
+ s as A
55
+ };
56
+ //# sourceMappingURL=Alfadocs_Logo_Mark-7o3L3WBI.js.map
@@ -10,7 +10,7 @@ import { S as P } from "./sparkles-CuYXqQLg.js";
10
10
  import { A as k } from "./avatar-BNQNhoyL.js";
11
11
  import { B as D } from "./button-DD_0Xdmr.js";
12
12
  import { C as de } from "./chat-container-ogB4OskO.js";
13
- import { C as ie } from "./chat-message-D53_fH2w.js";
13
+ import { C as ie } from "./chat-message-ASgGtj-L.js";
14
14
  import { C as re } from "./chat-input-CQe7nR_v.js";
15
15
  import { S as le } from "./streaming-text-GH07yIYh.js";
16
16
  import { a as O, S as Q } from "./suggestion-chip-C4kxWUIs.js";
@@ -739,4 +739,4 @@ export {
739
739
  ze as b,
740
740
  Ce as c
741
741
  };
742
- //# sourceMappingURL=alia-sidebar-BEoMl6UL.js.map
742
+ //# sourceMappingURL=alia-sidebar-DXsYPinm.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as r, r as i, v as d } from "./react-day-picker-DYDdR8Vv.js";
1
+ import { o as s, q as r, r as i, v as d } from "./react-day-picker-CdtIiKjx.js";
2
2
  const h = {
3
3
  lessThanXSeconds: {
4
4
  one: "أقل من ثانية",
@@ -396,4 +396,4 @@ const h = {
396
396
  export {
397
397
  z as ar
398
398
  };
399
- //# sourceMappingURL=ar-D1RwVZFj.js.map
399
+ //# sourceMappingURL=ar-Cn_NxqkN.js.map
@@ -0,0 +1,32 @@
1
+ const r = 0.45359237, e = 2.54, s = 12, f = (n) => n * r, l = (n) => n / r, u = (n) => n * e, a = (n) => n / e;
2
+ function _(n) {
3
+ const t = a(n), o = Math.floor(t / s);
4
+ return { ft: o, in: t - o * s };
5
+ }
6
+ const I = (n, t) => u(n * s + t);
7
+ function M(n, t) {
8
+ if (n === null || t === null || !Number.isFinite(n) || !Number.isFinite(t) || n <= 0 || t <= 0)
9
+ return null;
10
+ const o = t / 100;
11
+ return n / (o * o);
12
+ }
13
+ function m(n) {
14
+ return n < 18.5 ? "underweight" : n < 25 ? "normal" : n < 30 ? "overweight" : "obese";
15
+ }
16
+ const c = 12, i = 40;
17
+ function T(n) {
18
+ const t = (n - c) / (i - c) * 100;
19
+ return Math.min(100, Math.max(0, t));
20
+ }
21
+ export {
22
+ T as a,
23
+ m as b,
24
+ _ as c,
25
+ a as d,
26
+ M as e,
27
+ I as f,
28
+ u as i,
29
+ l as k,
30
+ f as l
31
+ };
32
+ //# sourceMappingURL=bmi-BxD-tFzU.js.map
@@ -0,0 +1,213 @@
1
+ import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as z, useId as U, useState as r, useMemo as O, useEffect as P } from "react";
3
+ import { c as R } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Y } from "react-i18next";
5
+ import { R as I } from "./radio-TWf9Q-mp.js";
6
+ import { R as _ } from "./radio-group-BcF92GEF.js";
7
+ import { F as T } from "./form-field-BOm9hK35.js";
8
+ import { N as h } from "./number-input-Dj5L3pXK.js";
9
+ import { C as q } from "./chart-DnHvmiDX.js";
10
+ import { B as J } from "./badge-zsf5i5bH.js";
11
+ import { I as Q } from "./insert-result-yJ0QavoN.js";
12
+ import { a as X, b as Z, e as aa, c as la, f as S, l as G, k as ea } from "./bmi-BxD-tFzU.js";
13
+ const ta = R("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
14
+ variants: {
15
+ width: {
16
+ full: "ds:w-full",
17
+ auto: "ds:inline-flex"
18
+ }
19
+ },
20
+ defaultVariants: { width: "full" }
21
+ }), ia = {
22
+ underweight: "info",
23
+ normal: "success",
24
+ overweight: "warning",
25
+ obese: "error"
26
+ }, p = (f) => Math.round(f * 10) / 10, ra = z(
27
+ ({
28
+ defaultUnitSystem: f = "metric",
29
+ onResultChange: u,
30
+ onInsert: y,
31
+ id: k,
32
+ width: A,
33
+ className: H
34
+ }, K) => {
35
+ const { t: a, i18n: v } = Y(), x = U(), [s, V] = r(f), [d, N] = r(null), [g, w] = r(null), [o, F] = r(null), [n, $] = r(null), [m, B] = r(null), D = (M) => {
36
+ const C = M;
37
+ if (C !== s) {
38
+ if (C === "imperial") {
39
+ if (d !== null) {
40
+ const { ft: W, in: j } = la(d);
41
+ F(W), $(p(j));
42
+ }
43
+ g !== null && B(p(ea(g)));
44
+ } else
45
+ (o !== null || n !== null) && N(p(S(o ?? 0, n ?? 0))), m !== null && w(p(G(m)));
46
+ V(C);
47
+ }
48
+ }, E = s === "metric" ? d : o !== null || n !== null ? S(o ?? 0, n ?? 0) : null, L = s === "metric" ? g : m !== null ? G(m) : null, t = aa(L, E), e = t !== null ? Z(t) : null, b = O(
49
+ () => new Intl.NumberFormat(v.language, {
50
+ minimumFractionDigits: 1,
51
+ maximumFractionDigits: 1
52
+ }),
53
+ [v.language]
54
+ );
55
+ P(() => {
56
+ u == null || u(
57
+ t !== null && e !== null ? { bmi: t, category: e } : null
58
+ );
59
+ }, [t, e, u]);
60
+ const c = s === "metric";
61
+ return /* @__PURE__ */ i(
62
+ "div",
63
+ {
64
+ ref: K,
65
+ "data-component": "bmi-calculator",
66
+ "data-component-id": k,
67
+ className: ta({ width: A, className: H }),
68
+ children: [
69
+ /* @__PURE__ */ i(
70
+ _,
71
+ {
72
+ label: a("bmiCalculator.unitSystem.label"),
73
+ variant: "horizontal",
74
+ value: s,
75
+ onValueChange: D,
76
+ children: [
77
+ /* @__PURE__ */ l(I, { label: a("bmiCalculator.unitSystem.metric"), value: "metric" }),
78
+ /* @__PURE__ */ l(
79
+ I,
80
+ {
81
+ label: a("bmiCalculator.unitSystem.imperial"),
82
+ value: "imperial"
83
+ }
84
+ )
85
+ ]
86
+ }
87
+ ),
88
+ /* @__PURE__ */ i("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
89
+ c ? /* @__PURE__ */ l(
90
+ T,
91
+ {
92
+ label: `${a("bmiCalculator.height")} (${a("bmiCalculator.units.cm")})`,
93
+ children: /* @__PURE__ */ l(
94
+ h,
95
+ {
96
+ mode: "decimal",
97
+ min: 0,
98
+ step: 0.5,
99
+ value: d,
100
+ onChange: N
101
+ }
102
+ )
103
+ }
104
+ ) : /* @__PURE__ */ i("div", { role: "group", "aria-labelledby": x, children: [
105
+ /* @__PURE__ */ l(
106
+ "span",
107
+ {
108
+ id: x,
109
+ className: "type-label ds:mb-[var(--spacing-xs)] ds:block ds:text-foreground",
110
+ children: a("bmiCalculator.height")
111
+ }
112
+ ),
113
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
114
+ /* @__PURE__ */ l(
115
+ h,
116
+ {
117
+ mode: "integer",
118
+ min: 0,
119
+ value: o,
120
+ onChange: F,
121
+ "aria-label": a("bmiCalculator.feet")
122
+ }
123
+ ),
124
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.units.ft") }),
125
+ /* @__PURE__ */ l(
126
+ h,
127
+ {
128
+ mode: "decimal",
129
+ min: 0,
130
+ max: 11.9,
131
+ step: 0.5,
132
+ value: n,
133
+ onChange: $,
134
+ "aria-label": a("bmiCalculator.inches")
135
+ }
136
+ ),
137
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.units.in") })
138
+ ] })
139
+ ] }),
140
+ /* @__PURE__ */ l(
141
+ T,
142
+ {
143
+ label: `${a("bmiCalculator.weight")} (${a(
144
+ c ? "bmiCalculator.units.kg" : "bmiCalculator.units.lb"
145
+ )})`,
146
+ children: /* @__PURE__ */ l(
147
+ h,
148
+ {
149
+ mode: "decimal",
150
+ min: 0,
151
+ step: c ? 0.1 : 0.5,
152
+ value: c ? g : m,
153
+ onChange: c ? w : B
154
+ }
155
+ )
156
+ }
157
+ )
158
+ ] }),
159
+ /* @__PURE__ */ l("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: t !== null && e !== null ? a("bmiCalculator.gaugeAria", {
160
+ bmi: b.format(t),
161
+ category: a(`bmiCalculator.category.${e}`)
162
+ }) : "" }),
163
+ t !== null && e !== null ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-md)]", children: [
164
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
165
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.category.label") }),
166
+ /* @__PURE__ */ l(J, { variant: ia[e], size: "lg", children: a(`bmiCalculator.category.${e}`) }),
167
+ /* @__PURE__ */ l("p", { className: "type-body ds:text-muted-foreground", children: a(`bmiCalculator.range.${e}`) })
168
+ ] }),
169
+ /* @__PURE__ */ l("div", { className: "ds:w-[240px] ds:max-w-full", children: /* @__PURE__ */ l(
170
+ q,
171
+ {
172
+ type: "radialBar",
173
+ title: a("bmiCalculator.gaugeAria", {
174
+ bmi: b.format(t),
175
+ category: a(`bmiCalculator.category.${e}`)
176
+ }),
177
+ series: [X(t)],
178
+ labels: [a(`bmiCalculator.category.${e}`)],
179
+ radialValueFormatter: () => b.format(t),
180
+ height: 240
181
+ }
182
+ ) }),
183
+ y ? /* @__PURE__ */ l(
184
+ Q,
185
+ {
186
+ onInsert: y,
187
+ card: {
188
+ title: a("insert.title.bmi"),
189
+ highlight: a(`bmiCalculator.category.${e}`),
190
+ fields: [
191
+ {
192
+ label: a("insert.title.bmi"),
193
+ value: b.format(t)
194
+ },
195
+ {
196
+ label: a("bmiCalculator.category.label"),
197
+ value: a(`bmiCalculator.category.${e}`)
198
+ }
199
+ ]
200
+ }
201
+ }
202
+ ) : null
203
+ ] }) : /* @__PURE__ */ l("p", { className: "type-body ds:text-muted-foreground", children: a("bmiCalculator.empty") })
204
+ ]
205
+ }
206
+ );
207
+ }
208
+ );
209
+ ra.displayName = "BmiCalculator";
210
+ export {
211
+ ra as B
212
+ };
213
+ //# sourceMappingURL=bmi-calculator-BRUru9QX.js.map
@@ -7,7 +7,7 @@ import { A as z } from "./alert-ywPR59NE.js";
7
7
  import { B as ie } from "./button-DD_0Xdmr.js";
8
8
  import { C as Ke } from "./checkbox-DRcOdmXv.js";
9
9
  import { C as Bt } from "./checkbox-group-CpUwlHug.js";
10
- import { D as Et } from "./date-picker-CXFpu-qY.js";
10
+ import { D as Et } from "./date-picker-CvQfs6Xh.js";
11
11
  import { E as Vt } from "./email-input-lQivsFrw.js";
12
12
  import { F as Z } from "./form-field-BOm9hK35.js";
13
13
  import { P as Lt } from "./phone-input-DfZbPPvh.js";
@@ -24,8 +24,8 @@ import { S as $t } from "./stepper-accordion-BfS6lUB9.js";
24
24
  import { S as zt } from "./stepper-progress-DDjq5nei.js";
25
25
  import { p as F, S as Kt } from "./slot-grid-BlHHP9Qy.js";
26
26
  import { s as le, i as at } from "./isSameDay-DUEiAT0G.js";
27
- import { w as lt, n as ce, a as je, m as jt, h as ye, f as qt, i as _e, x as Me } from "./react-day-picker-DYDdR8Vv.js";
28
- import { s as Ht } from "./subDays-D-WYRpdW.js";
27
+ import { w as lt, i as ce, a as je, n as jt, h as ye, f as qt, j as _e, x as Me } from "./react-day-picker-CdtIiKjx.js";
28
+ import { s as Ht } from "./subDays-_T9YeKPX.js";
29
29
  import { C as Gt } from "./chevron-left-CX1jqD2M.js";
30
30
  import { C as Ut } from "./chevron-right-BrpYejk0.js";
31
31
  import { c as V } from "./createLucideIcon-CrFbzy84.js";
@@ -2697,4 +2697,4 @@ export {
2697
2697
  X as O,
2698
2698
  Da as b
2699
2699
  };
2700
- //# sourceMappingURL=booking-DqXsd1Mv.js.map
2700
+ //# sourceMappingURL=booking-DK_BPHnQ.js.map
@@ -0,0 +1,40 @@
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { D as r } from "./dialog-Cee13rHU.js";
4
+ const u = p(
5
+ ({
6
+ trigger: i,
7
+ title: e,
8
+ description: o,
9
+ children: t,
10
+ size: n = "lg",
11
+ open: c,
12
+ defaultOpen: d,
13
+ onOpenChange: m,
14
+ id: s,
15
+ className: g
16
+ }, h) => /* @__PURE__ */ a(
17
+ r,
18
+ {
19
+ open: c,
20
+ defaultOpen: d,
21
+ onOpenChange: m,
22
+ id: s,
23
+ children: [
24
+ /* @__PURE__ */ l(r.Trigger, { asChild: !0, children: i }),
25
+ /* @__PURE__ */ a(r.Content, { ref: h, size: n, children: [
26
+ /* @__PURE__ */ a(r.Header, { children: [
27
+ /* @__PURE__ */ l(r.Title, { children: e }),
28
+ o ? /* @__PURE__ */ l(r.Description, { children: o }) : null
29
+ ] }),
30
+ /* @__PURE__ */ l("div", { "data-component": "calculator-dialog", className: g, children: t })
31
+ ] })
32
+ ]
33
+ }
34
+ )
35
+ );
36
+ u.displayName = "CalculatorDialog";
37
+ export {
38
+ u as C
39
+ };
40
+ //# sourceMappingURL=calculator-dialog-B74fqpFZ.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