@alfadocs/ui-kit 0.47.0 → 0.48.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.
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/ai-consent-banner-DO5ingMq.js +169 -0
- package/dist/_chunks/ai-tools-rail-CxYG04cw.js +280 -0
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-WV2GSru5.js} +291 -303
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/{cycle-calculator-KxA8dqDf.js → cycle-calculator-DYvGm_m1.js} +2 -2
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/{due-date-calculator-mFxpHLml.js → due-date-calculator-BXd3ANj7.js} +2 -2
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/{gestational-age-calculator-gWI_uRA1.js → gestational-age-calculator-Crj6FgZw.js} +2 -2
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-G8SU6Azw.js} +3 -3
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-BFL_mcDW.js} +3 -2
- package/dist/_chunks/{pregnancy-weight-gain-BtEHaSqy.js → pregnancy-weight-gain-C7dK89jE.js} +2 -2
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-DPI2pY9V.js} +2 -2
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-ZXw-zsZ8.js} +138 -156
- package/dist/agent-catalog.json +324 -1
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +351 -0
- package/dist/i18n/locales/ar.js +351 -0
- package/dist/i18n/locales/de.d.ts +351 -0
- package/dist/i18n/locales/de.js +351 -0
- package/dist/i18n/locales/el.d.ts +351 -0
- package/dist/i18n/locales/el.js +351 -0
- package/dist/i18n/locales/en.d.ts +351 -0
- package/dist/i18n/locales/en.js +351 -0
- package/dist/i18n/locales/es.d.ts +351 -0
- package/dist/i18n/locales/es.js +351 -0
- package/dist/i18n/locales/fr.d.ts +351 -0
- package/dist/i18n/locales/fr.js +351 -0
- package/dist/i18n/locales/hi.d.ts +351 -0
- package/dist/i18n/locales/hi.js +351 -0
- package/dist/i18n/locales/it.d.ts +351 -0
- package/dist/i18n/locales/it.js +351 -0
- package/dist/i18n/locales/ja.d.ts +351 -0
- package/dist/i18n/locales/ja.js +351 -0
- package/dist/i18n/locales/nl.d.ts +351 -0
- package/dist/i18n/locales/nl.js +351 -0
- package/dist/i18n/locales/pl.d.ts +351 -0
- package/dist/i18n/locales/pl.js +351 -0
- package/dist/i18n/locales/pt.d.ts +351 -0
- package/dist/i18n/locales/pt.js +351 -0
- package/dist/i18n/locales/ro.d.ts +351 -0
- package/dist/i18n/locales/ro.js +351 -0
- package/dist/i18n/locales/ru.d.ts +351 -0
- package/dist/i18n/locales/ru.js +351 -0
- package/dist/i18n/locales/sq.d.ts +351 -0
- package/dist/i18n/locales/sq.js +351 -0
- package/dist/i18n/locales/sv.d.ts +351 -0
- package/dist/i18n/locales/sv.js +351 -0
- package/dist/i18n/locales/tr.d.ts +351 -0
- package/dist/i18n/locales/tr.js +351 -0
- package/dist/i18n/locales/zh.d.ts +351 -0
- package/dist/i18n/locales/zh.js +351 -0
- package/dist/index.js +527 -491
- package/dist/locales/ar.json +351 -0
- package/dist/locales/de.json +351 -0
- package/dist/locales/el.json +351 -0
- package/dist/locales/en.json +351 -0
- package/dist/locales/es.json +351 -0
- package/dist/locales/fr.json +351 -0
- package/dist/locales/hi.json +351 -0
- package/dist/locales/it.json +351 -0
- package/dist/locales/ja.json +351 -0
- package/dist/locales/nl.json +351 -0
- package/dist/locales/pl.json +351 -0
- package/dist/locales/pt.json +351 -0
- package/dist/locales/ro.json +351 -0
- package/dist/locales/ru.json +351 -0
- package/dist/locales/sq.json +351 -0
- package/dist/locales/sv.json +351 -0
- package/dist/locales/tr.json +351 -0
- package/dist/locales/zh.json +351 -0
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +42 -1
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
1
|
+
import { jsxs as f, jsx as e, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as le, useId as ce, useMemo as se } from "react";
|
|
3
|
+
import { c as de } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as pe } from "react-i18next";
|
|
5
|
+
import { B as _ } from "./badge-zsf5i5bH.js";
|
|
6
6
|
import { C as F } from "./card-DPmk26CL.js";
|
|
7
|
-
import { K as fe, a as
|
|
7
|
+
import { K as fe, a as ue } from "./key-value-pair-CkQIb9EG.js";
|
|
8
8
|
import { L as d } from "./link-DrD_cRUg.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as me } from "./registry-nPAVE19X.js";
|
|
10
10
|
import { S as T } from "./stethoscope-DT5qCW8Y.js";
|
|
11
11
|
import { H } from "./heart-C0faivFf.js";
|
|
12
|
-
import { c as
|
|
13
|
-
import { S as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { M as
|
|
12
|
+
import { c as he } from "./createLucideIcon-CrFbzy84.js";
|
|
13
|
+
import { S as V } from "./shield-check-BjCGH_Sr.js";
|
|
14
|
+
import { L as z } from "./languages-DsVf_WzT.js";
|
|
15
|
+
import { G as O } from "./globe-BkEFMNSg.js";
|
|
16
|
+
import { M as E } from "./mail-C8irm52s.js";
|
|
17
|
+
import { M as K } from "./message-circle-C23eicgb.js";
|
|
18
|
+
import { P as L } from "./phone-Bi5yUm4I.js";
|
|
17
19
|
import { M as U } from "./map-pin-B8STOPMJ.js";
|
|
18
20
|
/**
|
|
19
21
|
* @license lucide-react v1.8.0 - ISC
|
|
@@ -25,22 +27,7 @@ const ge = [
|
|
|
25
27
|
["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
|
|
26
28
|
["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
|
|
27
29
|
["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
|
|
28
|
-
],
|
|
29
|
-
/**
|
|
30
|
-
* @license lucide-react v1.8.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/
|
|
35
|
-
const ve = [
|
|
36
|
-
[
|
|
37
|
-
"path",
|
|
38
|
-
{
|
|
39
|
-
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
40
|
-
key: "9njp5v"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
], B = V("phone", ve), xe = {
|
|
30
|
+
], B = he("banknote", ge), ve = {
|
|
44
31
|
id: "contact-profile-card",
|
|
45
32
|
capabilities: ["view_change"],
|
|
46
33
|
state: {
|
|
@@ -64,7 +51,7 @@ const ve = [
|
|
|
64
51
|
description: "Sourced from the id prop."
|
|
65
52
|
}
|
|
66
53
|
}
|
|
67
|
-
},
|
|
54
|
+
}, xe = de(
|
|
68
55
|
"ds:w-full ds:text-[color:var(--foreground)] ds:[--key-value-pair-icon-color:var(--accent)]",
|
|
69
56
|
{
|
|
70
57
|
variants: {
|
|
@@ -87,10 +74,10 @@ function be(t, r) {
|
|
|
87
74
|
const a = `https://wa.me/${t}`;
|
|
88
75
|
return r ? `${a}?text=${encodeURIComponent(r)}` : a;
|
|
89
76
|
}
|
|
90
|
-
function
|
|
77
|
+
function ye(t) {
|
|
91
78
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t.line)}`;
|
|
92
79
|
}
|
|
93
|
-
function
|
|
80
|
+
function Pe(t, r, a) {
|
|
94
81
|
try {
|
|
95
82
|
return new Intl.NumberFormat(a, {
|
|
96
83
|
style: "currency",
|
|
@@ -100,17 +87,17 @@ function ke(t, r, a) {
|
|
|
100
87
|
return (t / 100).toFixed(2);
|
|
101
88
|
}
|
|
102
89
|
}
|
|
103
|
-
function
|
|
90
|
+
function ke() {
|
|
104
91
|
if (typeof document > "u") return "4945a3";
|
|
105
92
|
const t = getComputedStyle(document.documentElement).getPropertyValue("--map-marker-color").trim(), r = /^#?([0-9a-fA-F]{6})$/.exec(t);
|
|
106
93
|
return r ? r[1] : "4945a3";
|
|
107
94
|
}
|
|
108
|
-
function
|
|
109
|
-
const s =
|
|
95
|
+
function we({ apiKey: t, center: r, zoom: a, altText: c }) {
|
|
96
|
+
const s = ke(), u = `https://maps.googleapis.com/maps/api/staticmap?center=${r.lat},${r.lng}&zoom=${a}&size=640x192&scale=2&markers=color:0x${s}%7C${r.lat},${r.lng}&key=${encodeURIComponent(t)}`;
|
|
110
97
|
return /* @__PURE__ */ e(
|
|
111
98
|
"img",
|
|
112
99
|
{
|
|
113
|
-
src:
|
|
100
|
+
src: u,
|
|
114
101
|
alt: c,
|
|
115
102
|
loading: "lazy",
|
|
116
103
|
decoding: "async",
|
|
@@ -120,157 +107,157 @@ function Me({ apiKey: t, center: r, zoom: a, altText: c }) {
|
|
|
120
107
|
}
|
|
121
108
|
);
|
|
122
109
|
}
|
|
123
|
-
const
|
|
110
|
+
const Me = le(
|
|
124
111
|
({
|
|
125
112
|
heading: t,
|
|
126
113
|
description: r,
|
|
127
114
|
address: a,
|
|
128
115
|
phone: c,
|
|
129
116
|
whatsappNumber: s,
|
|
130
|
-
whatsappMessage:
|
|
117
|
+
whatsappMessage: u,
|
|
131
118
|
email: m,
|
|
132
119
|
website: h,
|
|
133
120
|
languages: g,
|
|
134
121
|
languageLabels: p,
|
|
135
122
|
insurances: v,
|
|
136
123
|
firstVisitPriceCents: x,
|
|
137
|
-
currencyCode:
|
|
138
|
-
profession:
|
|
124
|
+
currencyCode: y = "EUR",
|
|
125
|
+
profession: C,
|
|
139
126
|
specializedInFearPatients: G,
|
|
140
127
|
googleMapsApiKey: P,
|
|
141
|
-
mapZoom:
|
|
142
|
-
onPhoneClick:
|
|
143
|
-
onWhatsAppClick:
|
|
144
|
-
onMapClick:
|
|
145
|
-
onEmailClick:
|
|
146
|
-
headerSlot:
|
|
147
|
-
footerSlot:
|
|
148
|
-
mapSlot:
|
|
128
|
+
mapZoom: j = 14,
|
|
129
|
+
onPhoneClick: q,
|
|
130
|
+
onWhatsAppClick: W,
|
|
131
|
+
onMapClick: D,
|
|
132
|
+
onEmailClick: Y,
|
|
133
|
+
headerSlot: J,
|
|
134
|
+
footerSlot: Q,
|
|
135
|
+
mapSlot: X,
|
|
149
136
|
surface: k = "elevated",
|
|
150
|
-
"aria-label":
|
|
151
|
-
id:
|
|
152
|
-
className:
|
|
153
|
-
...
|
|
154
|
-
},
|
|
155
|
-
const { t: n, i18n: w } =
|
|
137
|
+
"aria-label": Z,
|
|
138
|
+
id: b,
|
|
139
|
+
className: ee,
|
|
140
|
+
...ae
|
|
141
|
+
}, te) => {
|
|
142
|
+
const { t: n, i18n: w } = pe(), M = ce(), $ = w.language ?? "en", N = t ?? n("contactProfileCard.heading"), re = Z ?? N, A = se(() => {
|
|
156
143
|
if (x != null)
|
|
157
|
-
return
|
|
158
|
-
}, [x,
|
|
144
|
+
return Pe(x, y, $);
|
|
145
|
+
}, [x, y, $]), o = [];
|
|
159
146
|
if (a && o.push({
|
|
160
147
|
key: "address",
|
|
161
148
|
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
162
149
|
label: n("contactProfileCard.label.address"),
|
|
163
|
-
value: /* @__PURE__ */
|
|
150
|
+
value: /* @__PURE__ */ f("span", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
164
151
|
/* @__PURE__ */ e("span", { children: a.line }),
|
|
165
152
|
a.lat != null && a.lng != null ? /* @__PURE__ */ e(
|
|
166
153
|
d,
|
|
167
154
|
{
|
|
168
|
-
href:
|
|
155
|
+
href: ye(a),
|
|
169
156
|
external: !0,
|
|
170
157
|
intent: "default",
|
|
171
|
-
onClick:
|
|
158
|
+
onClick: D,
|
|
172
159
|
children: n("contactProfileCard.openInGoogleMaps")
|
|
173
160
|
}
|
|
174
161
|
) : null
|
|
175
162
|
] })
|
|
176
163
|
}), c && o.push({
|
|
177
164
|
key: "phone",
|
|
178
|
-
icon: /* @__PURE__ */ e(
|
|
165
|
+
icon: /* @__PURE__ */ e(L, { "aria-hidden": "true" }),
|
|
179
166
|
label: n("contactProfileCard.label.phone"),
|
|
180
167
|
value: /* @__PURE__ */ e(
|
|
181
168
|
d,
|
|
182
169
|
{
|
|
183
170
|
href: `tel:${Ce(c)}`,
|
|
184
171
|
intent: "default",
|
|
185
|
-
onClick:
|
|
172
|
+
onClick: q,
|
|
186
173
|
children: c
|
|
187
174
|
}
|
|
188
175
|
)
|
|
189
176
|
}), s && o.push({
|
|
190
177
|
key: "whatsapp",
|
|
191
|
-
icon: /* @__PURE__ */ e(
|
|
178
|
+
icon: /* @__PURE__ */ e(K, { "aria-hidden": "true" }),
|
|
192
179
|
label: n("contactProfileCard.label.whatsapp"),
|
|
193
180
|
value: /* @__PURE__ */ e(
|
|
194
181
|
d,
|
|
195
182
|
{
|
|
196
|
-
href: be(s,
|
|
183
|
+
href: be(s, u),
|
|
197
184
|
external: !0,
|
|
198
185
|
intent: "default",
|
|
199
|
-
onClick:
|
|
186
|
+
onClick: W,
|
|
200
187
|
children: s
|
|
201
188
|
}
|
|
202
189
|
)
|
|
203
190
|
}), m && o.push({
|
|
204
191
|
key: "email",
|
|
205
|
-
icon: /* @__PURE__ */ e(
|
|
192
|
+
icon: /* @__PURE__ */ e(E, { "aria-hidden": "true" }),
|
|
206
193
|
label: n("contactProfileCard.label.email"),
|
|
207
194
|
value: /* @__PURE__ */ e(
|
|
208
195
|
d,
|
|
209
196
|
{
|
|
210
197
|
href: `mailto:${m}`,
|
|
211
198
|
intent: "default",
|
|
212
|
-
onClick:
|
|
199
|
+
onClick: Y,
|
|
213
200
|
children: m
|
|
214
201
|
}
|
|
215
202
|
)
|
|
216
203
|
}), h && o.push({
|
|
217
204
|
key: "website",
|
|
218
|
-
icon: /* @__PURE__ */ e(
|
|
205
|
+
icon: /* @__PURE__ */ e(O, { "aria-hidden": "true" }),
|
|
219
206
|
label: n("contactProfileCard.label.website"),
|
|
220
207
|
value: /* @__PURE__ */ e(d, { href: h, external: !0, intent: "default", children: h })
|
|
221
208
|
}), g && g.length > 0) {
|
|
222
209
|
const i = (l) => {
|
|
223
210
|
if (p != null && p[l]) return p[l];
|
|
224
|
-
const
|
|
225
|
-
return w.exists(
|
|
211
|
+
const R = `languages.${l}`;
|
|
212
|
+
return w.exists(R) ? n(R) : l.toUpperCase();
|
|
226
213
|
};
|
|
227
214
|
o.push({
|
|
228
215
|
key: "languages",
|
|
229
|
-
icon: /* @__PURE__ */ e(
|
|
216
|
+
icon: /* @__PURE__ */ e(z, { "aria-hidden": "true" }),
|
|
230
217
|
label: n("contactProfileCard.label.languages"),
|
|
231
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(
|
|
218
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: g.map((l) => /* @__PURE__ */ e(_, { variant: "neutral", children: i(l) }, l)) })
|
|
232
219
|
});
|
|
233
220
|
}
|
|
234
221
|
v && v.length > 0 && o.push({
|
|
235
222
|
key: "insurances",
|
|
236
|
-
icon: /* @__PURE__ */ e(
|
|
223
|
+
icon: /* @__PURE__ */ e(V, { "aria-hidden": "true" }),
|
|
237
224
|
label: n("contactProfileCard.label.insurances"),
|
|
238
|
-
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(
|
|
239
|
-
}),
|
|
225
|
+
value: /* @__PURE__ */ e("span", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: v.map((i) => /* @__PURE__ */ e(_, { variant: "info", children: i }, i)) })
|
|
226
|
+
}), A && o.push({
|
|
240
227
|
key: "firstVisitPrice",
|
|
241
|
-
icon: /* @__PURE__ */ e(
|
|
228
|
+
icon: /* @__PURE__ */ e(B, { "aria-hidden": "true" }),
|
|
242
229
|
label: n("contactProfileCard.label.firstVisitPrice"),
|
|
243
|
-
value:
|
|
230
|
+
value: A
|
|
244
231
|
}), G && o.push({
|
|
245
232
|
key: "expertForAnxiousPatients",
|
|
246
233
|
icon: /* @__PURE__ */ e(H, { "aria-hidden": "true" }),
|
|
247
234
|
label: n("contactProfileCard.label.expertForAnxiousPatients"),
|
|
248
235
|
value: n("contactProfileCard.value.yesShort")
|
|
249
|
-
}),
|
|
236
|
+
}), C && o.push({
|
|
250
237
|
key: "profession",
|
|
251
238
|
icon: /* @__PURE__ */ e(T, { "aria-hidden": "true" }),
|
|
252
239
|
label: n("contactProfileCard.label.profession"),
|
|
253
|
-
value:
|
|
254
|
-
}),
|
|
255
|
-
|
|
256
|
-
{ getProfession: () =>
|
|
257
|
-
|
|
240
|
+
value: C
|
|
241
|
+
}), me(
|
|
242
|
+
ve,
|
|
243
|
+
{ getProfession: () => C },
|
|
244
|
+
b
|
|
258
245
|
);
|
|
259
|
-
const
|
|
260
|
-
|
|
246
|
+
const ne = !!P && (a == null ? void 0 : a.lat) !== void 0 && (a == null ? void 0 : a.lng) !== void 0 ? /* @__PURE__ */ e(
|
|
247
|
+
we,
|
|
261
248
|
{
|
|
262
249
|
apiKey: P,
|
|
263
250
|
center: { lat: a.lat, lng: a.lng },
|
|
264
|
-
zoom:
|
|
251
|
+
zoom: j,
|
|
265
252
|
altText: n("contactProfileCard.map.alt", {
|
|
266
253
|
address: a.line,
|
|
267
254
|
defaultValue: "Map showing {{address}}"
|
|
268
255
|
})
|
|
269
256
|
}
|
|
270
|
-
) : null,
|
|
257
|
+
) : null, oe = X ?? ne, ie = /* @__PURE__ */ f(S, { children: [
|
|
271
258
|
r ? /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:whitespace-pre-line", children: r }) : null,
|
|
272
259
|
o.length > 0 ? /* @__PURE__ */ e(fe, { rowGap: "md", children: o.map((i) => /* @__PURE__ */ e(
|
|
273
|
-
|
|
260
|
+
ue,
|
|
274
261
|
{
|
|
275
262
|
icon: i.icon,
|
|
276
263
|
label: i.label,
|
|
@@ -278,41 +265,41 @@ const $e = ce(
|
|
|
278
265
|
},
|
|
279
266
|
i.key
|
|
280
267
|
)) }) : null,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
] }),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
|
|
268
|
+
oe,
|
|
269
|
+
Q
|
|
270
|
+
] }), I = /* @__PURE__ */ f(S, { children: [
|
|
271
|
+
/* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
272
|
+
J,
|
|
286
273
|
/* @__PURE__ */ e(
|
|
287
274
|
"h2",
|
|
288
275
|
{
|
|
289
276
|
id: M,
|
|
290
277
|
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
291
|
-
children:
|
|
278
|
+
children: N
|
|
292
279
|
}
|
|
293
280
|
)
|
|
294
281
|
] }),
|
|
295
|
-
|
|
282
|
+
ie
|
|
296
283
|
] });
|
|
297
284
|
return /* @__PURE__ */ e(
|
|
298
285
|
"div",
|
|
299
286
|
{
|
|
300
|
-
ref:
|
|
287
|
+
ref: te,
|
|
301
288
|
role: "region",
|
|
302
|
-
"aria-label":
|
|
289
|
+
"aria-label": re,
|
|
303
290
|
"aria-labelledby": M,
|
|
304
291
|
"data-component": "contact-profile-card",
|
|
305
|
-
"data-component-id":
|
|
306
|
-
id:
|
|
307
|
-
className:
|
|
308
|
-
...
|
|
309
|
-
children: k === "elevated" ? /* @__PURE__ */ e(F, { variant: "elevated", children: /* @__PURE__ */ e(F.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children:
|
|
292
|
+
"data-component-id": b,
|
|
293
|
+
id: b,
|
|
294
|
+
className: xe({ surface: k, className: ee }),
|
|
295
|
+
...ae,
|
|
296
|
+
children: k === "elevated" ? /* @__PURE__ */ e(F, { variant: "elevated", children: /* @__PURE__ */ e(F.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: I }) }) : /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: I })
|
|
310
297
|
}
|
|
311
298
|
);
|
|
312
299
|
}
|
|
313
300
|
);
|
|
314
|
-
|
|
315
|
-
const
|
|
301
|
+
Me.displayName = "ContactProfileCard";
|
|
302
|
+
const qe = [
|
|
316
303
|
"address",
|
|
317
304
|
"phone",
|
|
318
305
|
"whatsapp",
|
|
@@ -323,22 +310,22 @@ const Ge = [
|
|
|
323
310
|
"firstVisitPrice",
|
|
324
311
|
"expertForAnxiousPatients",
|
|
325
312
|
"profession"
|
|
326
|
-
],
|
|
313
|
+
], We = {
|
|
327
314
|
address: U,
|
|
328
|
-
phone:
|
|
329
|
-
whatsapp:
|
|
330
|
-
email:
|
|
331
|
-
website:
|
|
332
|
-
languages:
|
|
333
|
-
insurances:
|
|
334
|
-
firstVisitPrice:
|
|
315
|
+
phone: L,
|
|
316
|
+
whatsapp: K,
|
|
317
|
+
email: E,
|
|
318
|
+
website: O,
|
|
319
|
+
languages: z,
|
|
320
|
+
insurances: V,
|
|
321
|
+
firstVisitPrice: B,
|
|
335
322
|
expertForAnxiousPatients: H,
|
|
336
323
|
profession: T
|
|
337
324
|
};
|
|
338
325
|
export {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
326
|
+
We as C,
|
|
327
|
+
qe as a,
|
|
328
|
+
Me as b,
|
|
329
|
+
ve as c
|
|
343
330
|
};
|
|
344
|
-
//# sourceMappingURL=contact-profile-card-
|
|
331
|
+
//# sourceMappingURL=contact-profile-card-DvvVfAA2.js.map
|
|
@@ -7,7 +7,7 @@ import { D as I } from "./date-picker-Bq7xhMA-.js";
|
|
|
7
7
|
import { N as S } from "./number-input-Dj5L3pXK.js";
|
|
8
8
|
import { C as P } from "./card-DPmk26CL.js";
|
|
9
9
|
import { B as v } from "./badge-zsf5i5bH.js";
|
|
10
|
-
import { I as k } from "./insert-result-
|
|
10
|
+
import { I as k } from "./insert-result-DNdi_JYW.js";
|
|
11
11
|
import { a as s } from "./date-picker-variants-DLi1Va_e.js";
|
|
12
12
|
import { C as z } from "./check-DPdL_Sm7.js";
|
|
13
13
|
import { H as B } from "./heart-C0faivFf.js";
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
M as L,
|
|
209
209
|
K as p
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=cycle-calculator-
|
|
211
|
+
//# sourceMappingURL=cycle-calculator-DYvGm_m1.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as j, useEffect as O, useMemo as T, forwardRef as i, useContext as x, createContext as B } from "react";
|
|
3
3
|
import * as s from "@radix-ui/react-dialog";
|
|
4
4
|
import { c as k } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { X as
|
|
9
|
-
const
|
|
5
|
+
import { useTranslation as H } from "react-i18next";
|
|
6
|
+
import { u as S } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
+
import { u as w } from "./registry-nPAVE19X.js";
|
|
8
|
+
import { X as A } from "./x-CCcI3eJp.js";
|
|
9
|
+
const E = {
|
|
10
10
|
id: "dialog",
|
|
11
11
|
capabilities: ["open", "close", "dismiss"],
|
|
12
12
|
state: {
|
|
@@ -68,48 +68,48 @@ const H = {
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
defaultVariants: { size: "md" }
|
|
71
|
-
}),
|
|
71
|
+
}), D = B(void 0), u = ({
|
|
72
72
|
children: e,
|
|
73
73
|
id: o,
|
|
74
74
|
open: a,
|
|
75
|
-
defaultOpen:
|
|
75
|
+
defaultOpen: l,
|
|
76
76
|
onOpenChange: c,
|
|
77
77
|
...m
|
|
78
78
|
}) => {
|
|
79
|
-
const [p, n] =
|
|
79
|
+
const [p, n] = S({
|
|
80
80
|
value: a,
|
|
81
|
-
defaultValue:
|
|
81
|
+
defaultValue: l ?? !1,
|
|
82
82
|
onChange: c
|
|
83
|
-
}), d = p ?? !1,
|
|
83
|
+
}), d = p ?? !1, r = j(d);
|
|
84
84
|
O(() => {
|
|
85
|
-
|
|
85
|
+
r.current = d;
|
|
86
86
|
}, [d]);
|
|
87
|
-
const
|
|
87
|
+
const g = T(
|
|
88
88
|
() => ({
|
|
89
|
-
getIsOpen: () =>
|
|
89
|
+
getIsOpen: () => r.current,
|
|
90
90
|
open: () => n(!0),
|
|
91
91
|
close: () => n(!1)
|
|
92
92
|
}),
|
|
93
93
|
[n]
|
|
94
94
|
);
|
|
95
|
-
return
|
|
95
|
+
return w(E, g, o), /* @__PURE__ */ t(D.Provider, { value: o, children: /* @__PURE__ */ t(s.Root, { open: d, onOpenChange: n, ...m, children: e }) });
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
const
|
|
97
|
+
u.displayName = "Dialog.Root";
|
|
98
|
+
const y = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Trigger, { ref: a, ...o, children: e }));
|
|
99
|
+
y.displayName = "Dialog.Trigger";
|
|
100
|
+
const v = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Close, { ref: a, ...o, children: e }));
|
|
101
|
+
v.displayName = "Dialog.Close";
|
|
102
|
+
const C = i(
|
|
103
103
|
({
|
|
104
104
|
size: e = "md",
|
|
105
105
|
variant: o = "default",
|
|
106
|
-
hideCloseButton: a
|
|
107
|
-
className:
|
|
106
|
+
hideCloseButton: a,
|
|
107
|
+
className: l,
|
|
108
108
|
children: c,
|
|
109
109
|
...m
|
|
110
110
|
}, p) => {
|
|
111
|
-
const { t: n } =
|
|
112
|
-
return /* @__PURE__ */
|
|
111
|
+
const { t: n } = H(), d = x(D), r = o === "alert" ? { role: "alertdialog" } : {}, g = a ?? o !== "default";
|
|
112
|
+
return /* @__PURE__ */ f(s.Portal, { children: [
|
|
113
113
|
/* @__PURE__ */ t(
|
|
114
114
|
s.Overlay,
|
|
115
115
|
{
|
|
@@ -117,18 +117,18 @@ const v = i(
|
|
|
117
117
|
className: I
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ f(
|
|
121
121
|
s.Content,
|
|
122
122
|
{
|
|
123
123
|
ref: p,
|
|
124
|
-
...
|
|
124
|
+
...r,
|
|
125
125
|
"data-component": "dialog",
|
|
126
126
|
"data-component-id": d,
|
|
127
|
-
className: F({ size: e, className:
|
|
127
|
+
className: F({ size: e, className: l }),
|
|
128
128
|
...m,
|
|
129
129
|
children: [
|
|
130
130
|
c,
|
|
131
|
-
!
|
|
131
|
+
!g && // The close is a plain button carrying the `ds-dialog__close`
|
|
132
132
|
// contract class — the SAME class a vanilla host renders. The CSS
|
|
133
133
|
// (src/styles.css) owns its position, sizing, glyph size, hover
|
|
134
134
|
// wash, and focus ring from tokens, so the React and non-React
|
|
@@ -139,7 +139,7 @@ const v = i(
|
|
|
139
139
|
type: "button",
|
|
140
140
|
className: "ds-dialog__close",
|
|
141
141
|
"aria-label": n("common.close", "Close"),
|
|
142
|
-
children: /* @__PURE__ */ t(
|
|
142
|
+
children: /* @__PURE__ */ t(A, { "aria-hidden": "true" })
|
|
143
143
|
}
|
|
144
144
|
)
|
|
145
145
|
]
|
|
@@ -148,8 +148,8 @@ const v = i(
|
|
|
148
148
|
] });
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
|
-
|
|
152
|
-
const
|
|
151
|
+
C.displayName = "Dialog.Content";
|
|
152
|
+
const _ = i(
|
|
153
153
|
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
@@ -159,8 +159,8 @@ const C = i(
|
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
);
|
|
162
|
-
|
|
163
|
-
const
|
|
162
|
+
_.displayName = "Dialog.Header";
|
|
163
|
+
const b = i(
|
|
164
164
|
({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
165
165
|
"div",
|
|
166
166
|
{
|
|
@@ -170,8 +170,8 @@ const _ = i(
|
|
|
170
170
|
}
|
|
171
171
|
)
|
|
172
172
|
);
|
|
173
|
-
|
|
174
|
-
const
|
|
173
|
+
b.displayName = "Dialog.Body";
|
|
174
|
+
const h = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
175
175
|
s.Title,
|
|
176
176
|
{
|
|
177
177
|
ref: a,
|
|
@@ -179,8 +179,8 @@ const b = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
|
179
179
|
...o
|
|
180
180
|
}
|
|
181
181
|
));
|
|
182
|
-
|
|
183
|
-
const
|
|
182
|
+
h.displayName = "Dialog.Title";
|
|
183
|
+
const N = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
184
184
|
s.Description,
|
|
185
185
|
{
|
|
186
186
|
ref: a,
|
|
@@ -188,12 +188,12 @@ const h = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
|
|
|
188
188
|
...o
|
|
189
189
|
}
|
|
190
190
|
));
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
({ className: e, divider: o = !1, ...a },
|
|
191
|
+
N.displayName = "Dialog.Description";
|
|
192
|
+
const R = i(
|
|
193
|
+
({ className: e, divider: o = !1, ...a }, l) => /* @__PURE__ */ t(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
|
-
ref:
|
|
196
|
+
ref: l,
|
|
197
197
|
className: [
|
|
198
198
|
"ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
|
|
199
199
|
"ds:mt-[var(--spacing-md)]",
|
|
@@ -204,20 +204,20 @@ const N = i(
|
|
|
204
204
|
}
|
|
205
205
|
)
|
|
206
206
|
);
|
|
207
|
-
|
|
208
|
-
const $ = Object.assign(
|
|
209
|
-
Root:
|
|
210
|
-
Trigger:
|
|
211
|
-
Content:
|
|
212
|
-
Header:
|
|
213
|
-
Title:
|
|
214
|
-
Description:
|
|
215
|
-
Body:
|
|
216
|
-
Footer:
|
|
217
|
-
Close:
|
|
207
|
+
R.displayName = "Dialog.Footer";
|
|
208
|
+
const $ = Object.assign(u, {
|
|
209
|
+
Root: u,
|
|
210
|
+
Trigger: y,
|
|
211
|
+
Content: C,
|
|
212
|
+
Header: _,
|
|
213
|
+
Title: h,
|
|
214
|
+
Description: N,
|
|
215
|
+
Body: b,
|
|
216
|
+
Footer: R,
|
|
217
|
+
Close: v
|
|
218
218
|
});
|
|
219
219
|
export {
|
|
220
220
|
$ as D,
|
|
221
|
-
|
|
221
|
+
E as d
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=dialog-
|
|
223
|
+
//# sourceMappingURL=dialog-DMGnSelc.js.map
|
|
@@ -9,7 +9,7 @@ import { D as S } from "./date-picker-Bq7xhMA-.js";
|
|
|
9
9
|
import { N as M } from "./number-input-Dj5L3pXK.js";
|
|
10
10
|
import { C } from "./card-DPmk26CL.js";
|
|
11
11
|
import { B as z } from "./badge-zsf5i5bH.js";
|
|
12
|
-
import { I as V } from "./insert-result-
|
|
12
|
+
import { I as V } from "./insert-result-DNdi_JYW.js";
|
|
13
13
|
import { D as y, c as j } from "./gestation-mWF4AXea.js";
|
|
14
14
|
const K = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
15
15
|
variants: {
|
|
@@ -213,4 +213,4 @@ q.displayName = "DueDateCalculator";
|
|
|
213
213
|
export {
|
|
214
214
|
q as D
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=due-date-calculator-
|
|
216
|
+
//# sourceMappingURL=due-date-calculator-BXd3ANj7.js.map
|