@alfadocs/ui-kit 0.50.1 → 0.52.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-BaSfVfrL.js → agenda-card-Bl-SBiCh.js} +55 -45
- package/dist/_chunks/agenda-tray-DA6qj8BL.js +203 -0
- package/dist/_chunks/{ai-consent-banner-F2md5JD3.js → ai-consent-banner-DBKV27je.js} +2 -2
- package/dist/_chunks/ai-tools-rail-7tC3GT4h.js +340 -0
- package/dist/_chunks/{alert-CUTxnym2.js → alert-_mUKLmwA.js} +54 -44
- package/dist/_chunks/{audio-recorder-DVJXV7_k.js → audio-recorder-D6OVfNiZ.js} +2 -2
- package/dist/_chunks/{booking-DljH0JkS.js → booking-BUV9fspj.js} +2 -2
- package/dist/_chunks/{document-scanner-Cxqvq7GR.js → document-scanner-biBS_f6c.js} +2 -2
- package/dist/_chunks/dropdown-menu-DwwPovMZ.js +354 -0
- package/dist/_chunks/{editable-currency-cell-renderer-Bh48OHRv.js → editable-currency-cell-renderer-D5C5tCfu.js} +3 -3
- package/dist/_chunks/{freemium-paywall-BWaLWje-.js → freemium-paywall-gHGA44dW.js} +2 -2
- package/dist/_chunks/{header-settings-Bx0Biimh.js → header-settings-D5Z2B_Yz.js} +3 -3
- package/dist/_chunks/{logo-yituK7sE.js → logo-1FuSGx0n.js} +2 -1
- package/dist/_chunks/marketplace-app-shell-C4OYAC22.js +513 -0
- package/dist/_chunks/maximize-2-Cm9OUQ2m.js +17 -0
- package/dist/_chunks/{patient-search-BJOmTmDA.js → patient-search-CArmRKeg.js} +3 -3
- package/dist/_chunks/patient-shell-Coarf346.js +162 -0
- package/dist/_chunks/{payment-form-xmeCkxas.js → payment-form-DJ9vnzrT.js} +2 -2
- package/dist/_chunks/{pdf-viewer-q1D3Uion.js → pdf-viewer-4odMFuFW.js} +2 -2
- package/dist/_chunks/{practice-results-Cq1y8JFD.js → practice-results-CtfciF2v.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-DT_244bG.js → pregnancy-dating-BA37LSkF.js} +15 -15
- package/dist/_chunks/{privacy-lock-BmX_gkvt.js → privacy-lock-BN3L-alb.js} +2 -2
- package/dist/_chunks/{public-footer.agent-okt8ZRc5.js → public-footer.agent-CfXuW1x6.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-CFYyLSEX.js → recaptcha-widget-BCNHsgqt.js} +2 -2
- package/dist/_chunks/{sidebar-h78cTNLh.js → sidebar-DPEHzxLZ.js} +397 -346
- package/dist/_chunks/{sign-document-CZkAf28g.js → sign-document-Bzld9jVM.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-CuYn_kKP.js → sign-in-with-alfadocs-button-BpAjVmsI.js} +2 -2
- package/dist/_chunks/{task-card-CPyQ5AXC.js → task-card-BwY9jaV1.js} +48 -42
- package/dist/_chunks/task-tray-Cb_hK4yb.js +234 -0
- package/dist/_chunks/{theme-toggle-ClATnY4Q.js → theme-toggle-DAW7uC0B.js} +3 -3
- package/dist/_chunks/use-edge-resize-ZnGG7gyO.js +139 -0
- package/dist/_chunks/use-theme-CAuo6EYT.js +159 -0
- package/dist/_chunks/{warning-stack-CXfoAT-_.js → warning-stack-Cv4fr5zo.js} +2 -2
- package/dist/_chunks/{workflow-map-DzX_LI4y.js → workflow-map-BJDUNYlX.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/brand/product-lockup/product-lockup.d.ts +47 -12
- package/dist/components/agenda-card/agenda-card.d.ts +19 -2
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/agenda-tray.d.ts +24 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +8 -0
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -0
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +15 -15
- package/dist/components/key-value-pair/key-value-pair.d.ts +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/separator/separator.d.ts +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +8 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +15 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/task-tray/task-tray.d.ts +24 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow/workflow-map.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +12 -10
- package/dist/hooks/use-edge-resize.d.ts +78 -0
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.js +7 -3
- package/dist/i18n/locales/de.d.ts +4 -0
- package/dist/i18n/locales/de.js +7 -3
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.js +7 -3
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.js +7 -3
- package/dist/i18n/locales/es.d.ts +4 -0
- package/dist/i18n/locales/es.js +7 -3
- package/dist/i18n/locales/fr.d.ts +4 -0
- package/dist/i18n/locales/fr.js +7 -3
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.js +7 -3
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.js +7 -3
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.js +7 -3
- package/dist/i18n/locales/nl.d.ts +4 -0
- package/dist/i18n/locales/nl.js +7 -3
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.js +7 -3
- package/dist/i18n/locales/pt.d.ts +4 -0
- package/dist/i18n/locales/pt.js +7 -3
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.js +7 -3
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.js +7 -3
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.js +7 -3
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.js +7 -3
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.js +7 -3
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.js +7 -3
- package/dist/index.js +31 -31
- package/dist/locales/ar.json +7 -3
- package/dist/locales/de.json +7 -3
- package/dist/locales/el.json +7 -3
- package/dist/locales/en.json +7 -3
- package/dist/locales/es.json +7 -3
- package/dist/locales/fr.json +7 -3
- package/dist/locales/hi.json +7 -3
- package/dist/locales/it.json +7 -3
- package/dist/locales/ja.json +7 -3
- package/dist/locales/nl.json +7 -3
- package/dist/locales/pl.json +7 -3
- package/dist/locales/pt.json +7 -3
- package/dist/locales/ro.json +7 -3
- package/dist/locales/ru.json +7 -3
- package/dist/locales/sq.json +7 -3
- package/dist/locales/sv.json +7 -3
- package/dist/locales/tr.json +7 -3
- package/dist/locales/zh.json +7 -3
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +8 -6
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-tray-DQayYmQ0.js +0 -165
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +0 -280
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +0 -16
- package/dist/_chunks/dropdown-menu-CUEXqKis.js +0 -299
- package/dist/_chunks/marketplace-app-shell-UKSLx9K_.js +0 -428
- package/dist/_chunks/patient-shell-DUmhXnFq.js +0 -174
- package/dist/_chunks/task-tray-B8jFv5FV.js +0 -196
- package/dist/_chunks/use-theme-C2dHKUAN.js +0 -145
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useState as C } from "react";
|
|
3
|
+
import { useTranslation as m } from "react-i18next";
|
|
4
|
+
import { A as y } from "./app-frame-BYx1gcV7.js";
|
|
5
|
+
import { I as H } from "./icon-button-CKEOrN37.js";
|
|
6
|
+
import { D as n } from "./dropdown-menu-DwwPovMZ.js";
|
|
7
|
+
import { H as B, g as N, f as T, e as k, a as x, c as M, d as O } from "./header-Ce1Br27u.js";
|
|
8
|
+
import { L as P } from "./logo-1FuSGx0n.js";
|
|
9
|
+
import { S as W, a as R, h as j, j as z, k as D, i as E } from "./sidebar-DPEHzxLZ.js";
|
|
10
|
+
import { T as _ } from "./theme-root-BOO73p5t.js";
|
|
11
|
+
import { a as F } from "./tooltip-DvmfrNvB.js";
|
|
12
|
+
import { u as U } from "./use-theme-CAuo6EYT.js";
|
|
13
|
+
import { S as q } from "./settings-ca2Yi9R8.js";
|
|
14
|
+
import { M as G } from "./maximize-2-Cm9OUQ2m.js";
|
|
15
|
+
import { L as J } from "./log-out-616hnn2-.js";
|
|
16
|
+
function K(r) {
|
|
17
|
+
return r > 99 ? "99+" : String(r);
|
|
18
|
+
}
|
|
19
|
+
function Q(r) {
|
|
20
|
+
if (r.startsWith("/") || r.startsWith("#") || r.startsWith("?"))
|
|
21
|
+
return !0;
|
|
22
|
+
try {
|
|
23
|
+
const t = new URL(r, window.location.origin);
|
|
24
|
+
return t.protocol === "http:" || t.protocol === "https:";
|
|
25
|
+
} catch {
|
|
26
|
+
return !1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function V({
|
|
30
|
+
logoutHref: r,
|
|
31
|
+
onToggleFullscreen: t
|
|
32
|
+
}) {
|
|
33
|
+
const { t: a } = m();
|
|
34
|
+
return /* @__PURE__ */ i(n.Root, { children: [
|
|
35
|
+
/* @__PURE__ */ e(n.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
36
|
+
H,
|
|
37
|
+
{
|
|
38
|
+
icon: /* @__PURE__ */ e(q, { "aria-hidden": "true" }),
|
|
39
|
+
"aria-label": a("patientShell.settings.triggerAria"),
|
|
40
|
+
tooltip: a("patientShell.settings.triggerAria"),
|
|
41
|
+
"data-testid": "patient-shell-settings-trigger"
|
|
42
|
+
}
|
|
43
|
+
) }),
|
|
44
|
+
/* @__PURE__ */ i(n.Content, { align: "end", children: [
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
n.Item,
|
|
47
|
+
{
|
|
48
|
+
startIcon: /* @__PURE__ */ e(G, { "aria-hidden": "true" }),
|
|
49
|
+
onSelect: t,
|
|
50
|
+
"data-testid": "patient-shell-fullscreen",
|
|
51
|
+
children: a("patientShell.settings.fullscreen")
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e(n.Separator, {}),
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
n.Item,
|
|
57
|
+
{
|
|
58
|
+
startIcon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
|
|
59
|
+
onSelect: () => {
|
|
60
|
+
typeof window > "u" || Q(r) && window.location.assign(r);
|
|
61
|
+
},
|
|
62
|
+
"data-testid": "patient-shell-logout",
|
|
63
|
+
children: a("patientShell.settings.logout")
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] })
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
function X({ menuItems: r }) {
|
|
70
|
+
return /* @__PURE__ */ e(R, { children: r.map((t) => {
|
|
71
|
+
const a = typeof t.badgeCount == "number" && t.badgeCount > 0 ? t.badgeCount : void 0;
|
|
72
|
+
return /* @__PURE__ */ i(
|
|
73
|
+
j,
|
|
74
|
+
{
|
|
75
|
+
href: t.href,
|
|
76
|
+
"aria-label": t.label,
|
|
77
|
+
isActive: t.isActive,
|
|
78
|
+
children: [
|
|
79
|
+
t.icon ? /* @__PURE__ */ e(z, { children: t.icon }) : null,
|
|
80
|
+
/* @__PURE__ */ e(D, { children: t.label }),
|
|
81
|
+
a !== void 0 ? /* @__PURE__ */ e(E, { children: K(a) }) : null
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
t.id
|
|
85
|
+
);
|
|
86
|
+
}) });
|
|
87
|
+
}
|
|
88
|
+
const Y = w(
|
|
89
|
+
({
|
|
90
|
+
menuItems: r,
|
|
91
|
+
logoutHref: t,
|
|
92
|
+
onToggleFullscreen: a,
|
|
93
|
+
brandLogo: p,
|
|
94
|
+
brandHref: u = "/",
|
|
95
|
+
mainAriaLabel: f,
|
|
96
|
+
sidebarState: o,
|
|
97
|
+
children: g,
|
|
98
|
+
// `userName` and `userAvatarSrc` are declared on the public API
|
|
99
|
+
// for forward-compatibility (future profile-pill work) — they are
|
|
100
|
+
// intentionally unused today because the legacy patient chrome
|
|
101
|
+
// carries no profile pill.
|
|
102
|
+
userName: Z,
|
|
103
|
+
userAvatarSrc: $
|
|
104
|
+
}, s) => {
|
|
105
|
+
const { t: l } = m(), { theme: b, accessibility: S, resolvedTheme: d } = U(), v = b !== "system" || S !== "system", I = d.startsWith("dark") ? "dark" : "light", L = d.endsWith("-accessible"), [A, c] = C(!1), h = /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(
|
|
106
|
+
y,
|
|
107
|
+
{
|
|
108
|
+
mainAriaLabel: f,
|
|
109
|
+
mainClassName: "ds:bg-[color:var(--app-shell-background)]",
|
|
110
|
+
header: /* @__PURE__ */ i(B, { children: [
|
|
111
|
+
/* @__PURE__ */ i(N, { children: [
|
|
112
|
+
/* @__PURE__ */ e(T, { href: "#main-content" }),
|
|
113
|
+
/* @__PURE__ */ e(k, { onMenuOpen: () => c(!0) }),
|
|
114
|
+
/* @__PURE__ */ e(
|
|
115
|
+
x,
|
|
116
|
+
{
|
|
117
|
+
logo: p ?? /* @__PURE__ */ e(P, { variant: "monochrome", size: "md", decorative: !0 }),
|
|
118
|
+
href: u,
|
|
119
|
+
"aria-label": l("patientShell.brand.homeAria")
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ e(M, {}),
|
|
124
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
|
|
125
|
+
V,
|
|
126
|
+
{
|
|
127
|
+
logoutHref: t,
|
|
128
|
+
onToggleFullscreen: a
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
] }),
|
|
132
|
+
sidebar: /* @__PURE__ */ e(
|
|
133
|
+
W,
|
|
134
|
+
{
|
|
135
|
+
...o !== void 0 ? { state: o } : { defaultState: "expanded" },
|
|
136
|
+
open: A,
|
|
137
|
+
onOpenChange: c,
|
|
138
|
+
"aria-label": l("patientShell.sidebar.panelLabel"),
|
|
139
|
+
"data-testid": "patient-shell-sidebar",
|
|
140
|
+
children: /* @__PURE__ */ e(X, { menuItems: r })
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
children: g
|
|
144
|
+
}
|
|
145
|
+
) });
|
|
146
|
+
return v ? /* @__PURE__ */ e(
|
|
147
|
+
_,
|
|
148
|
+
{
|
|
149
|
+
ref: s,
|
|
150
|
+
theme: I,
|
|
151
|
+
accessible: L,
|
|
152
|
+
className: "ds:contents",
|
|
153
|
+
children: h
|
|
154
|
+
}
|
|
155
|
+
) : /* @__PURE__ */ e("div", { ref: s, className: "ds:contents", children: h });
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
Y.displayName = "PatientShell";
|
|
159
|
+
export {
|
|
160
|
+
Y as P
|
|
161
|
+
};
|
|
162
|
+
//# sourceMappingURL=patient-shell-Coarf346.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as de, useState as _, useEffect as D, useRef as G, useMemo a
|
|
|
3
3
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as W } from "react-i18next";
|
|
5
5
|
import { S as te } from "./spinner-OjQNn8oN.js";
|
|
6
|
-
import { A as ee } from "./alert-
|
|
6
|
+
import { A as ee } from "./alert-_mUKLmwA.js";
|
|
7
7
|
import { loadStripe as ue } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as pe, useStripe as fe, useElements as be, PaymentElement as ye, AddressElement as ge } from "@stripe/react-stripe-js";
|
|
9
9
|
import { u as ve } from "./registry-nPAVE19X.js";
|
|
@@ -668,4 +668,4 @@ export {
|
|
|
668
668
|
we as p,
|
|
669
669
|
se as s
|
|
670
670
|
};
|
|
671
|
-
//# sourceMappingURL=payment-form-
|
|
671
|
+
//# sourceMappingURL=payment-form-DJ9vnzrT.js.map
|
|
@@ -6,7 +6,7 @@ import { useTranslation as pe } from "react-i18next";
|
|
|
6
6
|
import * as ee from "@radix-ui/react-popover";
|
|
7
7
|
import Ce from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
8
|
import { S as Ze } from "./spinner-OjQNn8oN.js";
|
|
9
|
-
import { A as we } from "./alert-
|
|
9
|
+
import { A as we } from "./alert-_mUKLmwA.js";
|
|
10
10
|
import { u as Ke } from "./registry-nPAVE19X.js";
|
|
11
11
|
import { X as Be } from "./x-CCcI3eJp.js";
|
|
12
12
|
import { C as He } from "./chevron-left-CX1jqD2M.js";
|
|
@@ -957,4 +957,4 @@ export {
|
|
|
957
957
|
at as P,
|
|
958
958
|
Ge as p
|
|
959
959
|
};
|
|
960
|
-
//# sourceMappingURL=pdf-viewer-
|
|
960
|
+
//# sourceMappingURL=pdf-viewer-4odMFuFW.js.map
|
|
@@ -2,10 +2,10 @@ import { jsx as t, jsxs as p, Fragment as Ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Ze, useState as me, useRef as I, useMemo as D, useImperativeHandle as Qe, useCallback as B, useEffect as J } from "react";
|
|
3
3
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as C } from "react-i18next";
|
|
5
|
-
import { A as Y } from "./alert-
|
|
5
|
+
import { A as Y } from "./alert-_mUKLmwA.js";
|
|
6
6
|
import { A as ke } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { B as G } from "./button-DD_0Xdmr.js";
|
|
8
|
-
import { D as H } from "./dropdown-menu-
|
|
8
|
+
import { D as H } from "./dropdown-menu-DwwPovMZ.js";
|
|
9
9
|
import { E as Je } from "./empty-state-BLy7tigq.js";
|
|
10
10
|
import { M as We } from "./map-view-Tb5VfK9Y.js";
|
|
11
11
|
import { R as Ce } from "./rating-BRD7O74e.js";
|
|
@@ -1570,4 +1570,4 @@ export {
|
|
|
1570
1570
|
Ct as P,
|
|
1571
1571
|
rt as p
|
|
1572
1572
|
};
|
|
1573
|
-
//# sourceMappingURL=practice-results-
|
|
1573
|
+
//# sourceMappingURL=practice-results-CtfciF2v.js.map
|
|
@@ -12,7 +12,7 @@ import { S as Ne } from "./switch-BJ6HD3Mn.js";
|
|
|
12
12
|
import { C as M } from "./card-DPmk26CL.js";
|
|
13
13
|
import { B as j } from "./badge-zsf5i5bH.js";
|
|
14
14
|
import { I as Se } from "./insert-result-njqBthzT.js";
|
|
15
|
-
import { D as k, r as Ae, c as Le, g as ke, e as Ce, f as
|
|
15
|
+
import { D as k, r as Ae, c as Le, g as ke, e as Ce, f as we, A as Te, h as Ee, i as Re, j as P, G as Fe } from "./antenatal-schedule-timeline-CdiqkF05.js";
|
|
16
16
|
import { s as C } from "./subDays-Bs00akhK.js";
|
|
17
17
|
import { i as Ie } from "./date-picker-variants-CXEAx3O_.js";
|
|
18
18
|
const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
@@ -35,7 +35,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
35
35
|
onCopy: K,
|
|
36
36
|
onError: U,
|
|
37
37
|
insertBrand: q,
|
|
38
|
-
showSchedule:
|
|
38
|
+
showSchedule: w = !1,
|
|
39
39
|
defaultPlurality: J = "singleton",
|
|
40
40
|
defaultChorionicity: Q = "unknown",
|
|
41
41
|
defaultRhNegative: W = !1,
|
|
@@ -47,7 +47,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
47
47
|
}, te) => {
|
|
48
48
|
const { t: e, i18n: f } = be(), [s, ne] = i(z), [d, le] = i(
|
|
49
49
|
Y
|
|
50
|
-
), [
|
|
50
|
+
), [T, se] = i(
|
|
51
51
|
k
|
|
52
52
|
), [E, ie] = i(5), [D, re] = i(null), [v, de] = i(void 0), [b, ce] = i(
|
|
53
53
|
null
|
|
@@ -56,7 +56,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
56
56
|
), G = o(() => /* @__PURE__ */ new Date(), []), c = o(() => s !== "lmp" || !d || D === null || !v ? null : Ae({ lmp: d, scanDate: v, crlMm: D }), [s, d, D, v]), p = o(() => {
|
|
57
57
|
if (!d) return null;
|
|
58
58
|
let t, u = k;
|
|
59
|
-
s === "lmp" ? (t = d, u =
|
|
59
|
+
s === "lmp" ? (t = d, u = T ?? k) : s === "conception" ? t = C(d, P) : s === "ivf" ? t = C(d, E + P) : t = C(d, Fe), s === "lmp" && (c != null && c.redated) ? (t = c.gestationalStart, u = k) : b && (t = C(t, b));
|
|
60
60
|
const h = Le(
|
|
61
61
|
{ method: "lmp", date: t, cycleLength: u },
|
|
62
62
|
m
|
|
@@ -73,12 +73,12 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
73
73
|
}, [
|
|
74
74
|
s,
|
|
75
75
|
d,
|
|
76
|
-
|
|
76
|
+
T,
|
|
77
77
|
E,
|
|
78
78
|
c,
|
|
79
79
|
b,
|
|
80
80
|
m
|
|
81
|
-
]), n = (p == null ? void 0 : p.result) ?? null, S = o(() => !
|
|
81
|
+
]), n = (p == null ? void 0 : p.result) ?? null, S = o(() => !w || !n ? null : Ce(n.gestationalStart, {
|
|
82
82
|
...V,
|
|
83
83
|
today: m,
|
|
84
84
|
plurality: x,
|
|
@@ -86,7 +86,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
86
86
|
rhNegative: F,
|
|
87
87
|
gdmRisk: N === "none" ? void 0 : N
|
|
88
88
|
}), [
|
|
89
|
-
|
|
89
|
+
w,
|
|
90
90
|
n,
|
|
91
91
|
m,
|
|
92
92
|
V,
|
|
@@ -168,7 +168,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
168
168
|
mode: "integer",
|
|
169
169
|
min: 20,
|
|
170
170
|
max: 45,
|
|
171
|
-
value:
|
|
171
|
+
value: T,
|
|
172
172
|
onChange: se
|
|
173
173
|
}
|
|
174
174
|
)
|
|
@@ -252,7 +252,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
252
252
|
c.crlInRange ? null : /* @__PURE__ */ a("span", { className: "type-meta ds:text-muted-foreground", children: e("pregnancyDating.crlOutOfRange") })
|
|
253
253
|
] }) : null
|
|
254
254
|
] }) : null,
|
|
255
|
-
|
|
255
|
+
w ? /* @__PURE__ */ l(ye, { children: [
|
|
256
256
|
/* @__PURE__ */ l(
|
|
257
257
|
L,
|
|
258
258
|
{
|
|
@@ -328,8 +328,8 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
328
328
|
n.gestationalAge
|
|
329
329
|
)}.` : "" }),
|
|
330
330
|
p && n ? /* @__PURE__ */ a(M, { variant: "elevated", children: /* @__PURE__ */ l(M.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
331
|
-
/* @__PURE__ */ l("dl", { className: "ds:
|
|
332
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
331
|
+
/* @__PURE__ */ l("dl", { className: "ds:flex ds:flex-wrap ds:items-start ds:gap-x-[var(--spacing-xl)] ds:gap-y-[var(--spacing-md)]", children: [
|
|
332
|
+
/* @__PURE__ */ l("div", { className: "ds:basis-full ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
333
333
|
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.dueDateLabel") }),
|
|
334
334
|
/* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: A.format(n.dueDate) })
|
|
335
335
|
] }),
|
|
@@ -337,12 +337,12 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
337
337
|
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.gestationLabel") }),
|
|
338
338
|
/* @__PURE__ */ a("dd", { className: "type-body ds:text-foreground", children: I(n.gestationalAge) })
|
|
339
339
|
] }),
|
|
340
|
-
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-
|
|
340
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
341
341
|
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyDating.result.trimesterLabel") }),
|
|
342
342
|
/* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
|
|
343
343
|
j,
|
|
344
344
|
{
|
|
345
|
-
variant:
|
|
345
|
+
variant: we[n.trimester],
|
|
346
346
|
size: "lg",
|
|
347
347
|
children: e(`pregnancyDating.trimester.${n.trimester}`)
|
|
348
348
|
}
|
|
@@ -370,7 +370,7 @@ const Oe = ve("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
370
370
|
}) })
|
|
371
371
|
] })
|
|
372
372
|
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyDating.empty") }),
|
|
373
|
-
S ? /* @__PURE__ */ a(
|
|
373
|
+
S ? /* @__PURE__ */ a(Te, { events: S }) : null,
|
|
374
374
|
n && (B === "copy" || $) ? /* @__PURE__ */ a(
|
|
375
375
|
Se,
|
|
376
376
|
{
|
|
@@ -418,4 +418,4 @@ je.displayName = "PregnancyDating";
|
|
|
418
418
|
export {
|
|
419
419
|
je as P
|
|
420
420
|
};
|
|
421
|
-
//# sourceMappingURL=pregnancy-dating-
|
|
421
|
+
//# sourceMappingURL=pregnancy-dating-BA37LSkF.js.map
|
|
@@ -4,7 +4,7 @@ import { useTranslation as V } from "react-i18next";
|
|
|
4
4
|
import * as i from "@radix-ui/react-dialog";
|
|
5
5
|
import { B as u } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { I as W } from "./icon-button-CKEOrN37.js";
|
|
7
|
-
import { L as X } from "./logo-
|
|
7
|
+
import { L as X } from "./logo-1FuSGx0n.js";
|
|
8
8
|
import { u as Y } from "./registry-nPAVE19X.js";
|
|
9
9
|
import { E as h } from "./eye-off-xEXDAh5z.js";
|
|
10
10
|
import { U as Z } from "./user-CPxpqFjJ.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ee as P,
|
|
191
191
|
$ as p
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=privacy-lock-
|
|
193
|
+
//# sourceMappingURL=privacy-lock-BN3L-alb.js.map
|
|
@@ -4,7 +4,7 @@ import { c as R } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as S } from "react-i18next";
|
|
5
5
|
import { L as f } from "./link-DrD_cRUg.js";
|
|
6
6
|
import { S as m } from "./separator-CYU_bGFn.js";
|
|
7
|
-
import { L as T } from "./logo-
|
|
7
|
+
import { L as T } from "./logo-1FuSGx0n.js";
|
|
8
8
|
import { A as D, b as G, c as U, a as O } from "./accordion-9lJSMMsZ.js";
|
|
9
9
|
const L = "https://www.alfadocs.com", F = {
|
|
10
10
|
privacy: "/privacy-prenotazione-online",
|
|
@@ -588,4 +588,4 @@ export {
|
|
|
588
588
|
W as c,
|
|
589
589
|
ye as p
|
|
590
590
|
};
|
|
591
|
-
//# sourceMappingURL=public-footer.agent-
|
|
591
|
+
//# sourceMappingURL=public-footer.agent-CfXuW1x6.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as G, jsx as F } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as U, useRef as m, useState as q, useEffect as C, useMemo as J, useImperativeHandle as K } from "react";
|
|
3
3
|
import { useTranslation as Q } from "react-i18next";
|
|
4
4
|
import { u as X } from "./form-field-context-B3APVHKx.js";
|
|
5
|
-
import { u as Y } from "./use-theme-
|
|
5
|
+
import { u as Y } from "./use-theme-CAuo6EYT.js";
|
|
6
6
|
import { u as Z } from "./registry-nPAVE19X.js";
|
|
7
7
|
const z = {
|
|
8
8
|
id: "recaptcha-widget",
|
|
@@ -218,4 +218,4 @@ export {
|
|
|
218
218
|
ae as R,
|
|
219
219
|
z as r
|
|
220
220
|
};
|
|
221
|
-
//# sourceMappingURL=recaptcha-widget-
|
|
221
|
+
//# sourceMappingURL=recaptcha-widget-BCNHsgqt.js.map
|