@alfadocs/ui-kit 0.25.0 → 0.25.2
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-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
- package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
- package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
- package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
- package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
- package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
- package/dist/_chunks/booking-CXngC-1u.js +1743 -0
- package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-9eOXumpH.js} +113 -142
- package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
- package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
- package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
- package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
- package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
- package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-CeEfEAxh.js} +2 -2
- package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
- package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
- package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
- package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
- package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
- package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
- package/dist/_chunks/eye-LHlSU38h.js +21 -0
- package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
- package/dist/_chunks/{header-DqmKROIY.js → header-B8V_sNPy.js} +2 -2
- package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
- package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
- package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
- package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
- package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
- package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
- package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
- package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
- package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
- package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
- package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
- package/dist/_chunks/patient-shell-Bq8CjRYF.js +173 -0
- package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
- package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
- package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
- package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
- package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
- package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
- package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
- package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
- package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
- package/dist/_chunks/{slot-grid-CgpYgBkW.js → slot-grid-DoodeQGZ.js} +4 -4
- package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
- package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
- package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
- package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
- package/dist/_chunks/stethoscope-B8kpbtjh.js +35 -0
- package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
- package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
- package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
- package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
- package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
- package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
- package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
- package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
- package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
- package/dist/agent-catalog.json +56 -51
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/booking.agent.d.ts +4 -0
- package/dist/components/booking/booking.d.ts +91 -0
- package/dist/components/booking/index.d.ts +4 -0
- package/dist/components/booking/index.js +6 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +60 -48
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/password-input/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/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +4 -3
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/i18n/config.js +1090 -46
- package/dist/i18n/locales/ar.d.ts +58 -0
- package/dist/i18n/locales/de.d.ts +58 -0
- package/dist/i18n/locales/el.d.ts +58 -0
- package/dist/i18n/locales/es.d.ts +58 -0
- package/dist/i18n/locales/fr.d.ts +58 -0
- package/dist/i18n/locales/hi.d.ts +58 -0
- package/dist/i18n/locales/ja.d.ts +58 -0
- package/dist/i18n/locales/nl.d.ts +58 -0
- package/dist/i18n/locales/pl.d.ts +58 -0
- package/dist/i18n/locales/pt.d.ts +58 -0
- package/dist/i18n/locales/ro.d.ts +58 -0
- package/dist/i18n/locales/ru.d.ts +58 -0
- package/dist/i18n/locales/sq.d.ts +58 -0
- package/dist/i18n/locales/sv.d.ts +58 -0
- package/dist/i18n/locales/tr.d.ts +58 -0
- package/dist/i18n/locales/zh.d.ts +58 -0
- package/dist/i18n/resources.d.ts +116 -0
- package/dist/index.js +270 -269
- package/dist/locales/ar.json +59 -1
- package/dist/locales/de.json +59 -1
- package/dist/locales/el.json +59 -1
- package/dist/locales/en.json +59 -1
- package/dist/locales/es.json +59 -1
- package/dist/locales/fr.json +59 -1
- package/dist/locales/hi.json +59 -1
- package/dist/locales/it.json +59 -1
- package/dist/locales/ja.json +59 -1
- package/dist/locales/nl.json +59 -1
- package/dist/locales/pl.json +59 -1
- package/dist/locales/pt.json +59 -1
- package/dist/locales/ro.json +59 -1
- package/dist/locales/ru.json +59 -1
- package/dist/locales/sq.json +59 -1
- package/dist/locales/sv.json +59 -1
- package/dist/locales/tr.json +59 -1
- package/dist/locales/zh.json +59 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
- package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
- package/dist/_chunks/patient-shell-B164drIa.js +0 -173
- package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
- package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
- package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
- package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
- package/dist/components/stepper-calendar/index.d.ts +0 -4
- package/dist/components/stepper-calendar/index.js +0 -6
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
|
@@ -1540,35 +1540,35 @@ function me() {
|
|
|
1540
1540
|
// itself paints on, so the map blends with the card chrome.
|
|
1541
1541
|
{
|
|
1542
1542
|
elementType: "geometry",
|
|
1543
|
-
stylers: [{ color: e || "
|
|
1543
|
+
stylers: [{ color: e || "" }]
|
|
1544
1544
|
},
|
|
1545
1545
|
// All label text → kit foreground.
|
|
1546
1546
|
{
|
|
1547
1547
|
elementType: "labels.text.fill",
|
|
1548
|
-
stylers: [{ color: n || "
|
|
1548
|
+
stylers: [{ color: n || "" }]
|
|
1549
1549
|
},
|
|
1550
1550
|
// Label outlines / strokes pulled from the muted surface so text
|
|
1551
1551
|
// stays legible without painting solid white halos in dark themes.
|
|
1552
1552
|
{
|
|
1553
1553
|
elementType: "labels.text.stroke",
|
|
1554
|
-
stylers: [{ color: o || "
|
|
1554
|
+
stylers: [{ color: o || "" }]
|
|
1555
1555
|
},
|
|
1556
1556
|
// Roads + administrative boundaries → border token. This is the
|
|
1557
1557
|
// strongest visual cue tying map geometry to kit chrome.
|
|
1558
1558
|
{
|
|
1559
1559
|
featureType: "administrative",
|
|
1560
1560
|
elementType: "geometry",
|
|
1561
|
-
stylers: [{ color: t || "
|
|
1561
|
+
stylers: [{ color: t || "" }]
|
|
1562
1562
|
},
|
|
1563
1563
|
{
|
|
1564
1564
|
featureType: "road",
|
|
1565
1565
|
elementType: "geometry",
|
|
1566
|
-
stylers: [{ color: r || "
|
|
1566
|
+
stylers: [{ color: r || "" }]
|
|
1567
1567
|
},
|
|
1568
1568
|
{
|
|
1569
1569
|
featureType: "road",
|
|
1570
1570
|
elementType: "labels.text.fill",
|
|
1571
|
-
stylers: [{ color: n || "
|
|
1571
|
+
stylers: [{ color: n || "" }]
|
|
1572
1572
|
},
|
|
1573
1573
|
// Highways get a slight emphasis via the primary accent — a
|
|
1574
1574
|
// single-pixel cue that helps the eye when zoomed out.
|
|
@@ -1585,14 +1585,14 @@ function me() {
|
|
|
1585
1585
|
{
|
|
1586
1586
|
featureType: "water",
|
|
1587
1587
|
elementType: "geometry",
|
|
1588
|
-
stylers: [{ color: o || "
|
|
1588
|
+
stylers: [{ color: o || "" }]
|
|
1589
1589
|
},
|
|
1590
1590
|
// Parks → muted-foreground at low opacity feel via a softer
|
|
1591
1591
|
// tint; same family as the border so the palette stays tight.
|
|
1592
1592
|
{
|
|
1593
1593
|
featureType: "poi.park",
|
|
1594
1594
|
elementType: "geometry",
|
|
1595
|
-
stylers: [{ color: t || "
|
|
1595
|
+
stylers: [{ color: t || "" }]
|
|
1596
1596
|
},
|
|
1597
1597
|
// Transit lines (rail, bus) — kit primary, subtle.
|
|
1598
1598
|
{
|
|
@@ -1939,4 +1939,4 @@ Zt.displayName = "MapView";
|
|
|
1939
1939
|
export {
|
|
1940
1940
|
Zt as M
|
|
1941
1941
|
};
|
|
1942
|
-
//# sourceMappingURL=map-view-
|
|
1942
|
+
//# sourceMappingURL=map-view-DyB8tr6c.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useRef as q, useMemo as ee, useEffect as te } from "react";
|
|
3
3
|
import { c as ne } from "./index-D2ZczOXr.js";
|
|
4
|
-
const
|
|
5
|
-
katakana:
|
|
6
|
-
hex:
|
|
4
|
+
const re = 'ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワ0123456789:・."=*+-<>¦|', ae = "0123456789ABCDEF{}[]<>/\\;:=$#@!*+-", oe = "01", se = "!@#$%^&*()_+-=[]{}|;:,.<>?/", I = {
|
|
5
|
+
katakana: re,
|
|
6
|
+
hex: ae,
|
|
7
7
|
binary: oe,
|
|
8
8
|
symbols: se
|
|
9
9
|
}, ie = ne(
|
|
@@ -15,12 +15,12 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
15
15
|
// Built-in surface so the rain has somewhere to read against
|
|
16
16
|
// without the consumer wrapping it themselves.
|
|
17
17
|
// `transparent` (default) lets the parent provide the background.
|
|
18
|
-
// `solid` paints
|
|
19
|
-
//
|
|
20
|
-
//
|
|
18
|
+
// `solid` paints the theme background — already a dark step in
|
|
19
|
+
// dark theme — so the rain's brightest glyphs read clean against
|
|
20
|
+
// it without locking in a specific palette step.
|
|
21
21
|
background: {
|
|
22
22
|
transparent: "",
|
|
23
|
-
solid: "ds:bg-[var(--
|
|
23
|
+
solid: "ds:bg-[var(--background)]"
|
|
24
24
|
},
|
|
25
25
|
vibe: {
|
|
26
26
|
// No overlay, no canvas filter — just the rain.
|
|
@@ -30,9 +30,9 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
30
30
|
// the draw loop).
|
|
31
31
|
terminal: [
|
|
32
32
|
"ds:before:pointer-events-none ds:before:absolute ds:before:inset-0 ds:before:z-[2] ds:before:content-['']",
|
|
33
|
-
"ds:before:bg-[radial-gradient(closest-side,transparent_55%,
|
|
33
|
+
"ds:before:bg-[radial-gradient(closest-side,transparent_55%,color-mix(in_srgb,var(--foreground)_55%,transparent)_100%)]",
|
|
34
34
|
"ds:after:pointer-events-none ds:after:absolute ds:after:inset-0 ds:after:z-[1] ds:after:content-['']",
|
|
35
|
-
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_2px,
|
|
35
|
+
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_2px,color-mix(in_srgb,var(--foreground)_32%,transparent)_2px,color-mix(in_srgb,var(--foreground)_32%,transparent)_3px)]",
|
|
36
36
|
"ds:after:mix-blend-multiply",
|
|
37
37
|
"ds:[&>canvas]:[filter:blur(0.55px)_brightness(1.25)_contrast(1.1)_saturate(1.3)]"
|
|
38
38
|
].join(" "),
|
|
@@ -40,7 +40,7 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
40
40
|
// per-glyph glow. No vignette.
|
|
41
41
|
hologram: [
|
|
42
42
|
"ds:after:pointer-events-none ds:after:absolute ds:after:inset-0 ds:after:z-[1] ds:after:content-['']",
|
|
43
|
-
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_3px,
|
|
43
|
+
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_3px,color-mix(in_srgb,var(--foreground)_18%,transparent)_3px,color-mix(in_srgb,var(--foreground)_18%,transparent)_4px)]",
|
|
44
44
|
"ds:after:mix-blend-multiply",
|
|
45
45
|
"ds:[&>canvas]:[filter:blur(0.4px)_brightness(1.15)_contrast(1.05)]",
|
|
46
46
|
"ds:[&>canvas]:[animation:matrix-rain-hologram-pulse_3s_ease-in-out_infinite]"
|
|
@@ -50,7 +50,7 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
50
50
|
// the draw loop (accent → info gradient).
|
|
51
51
|
synthwave: [
|
|
52
52
|
"ds:after:pointer-events-none ds:after:absolute ds:after:inset-x-0 ds:after:bottom-0 ds:after:h-[30%] ds:after:z-[1] ds:after:content-['']",
|
|
53
|
-
"ds:after:bg-[linear-gradient(to_top,var(--
|
|
53
|
+
"ds:after:bg-[linear-gradient(to_top,color-mix(in_srgb,var(--info)_60%,transparent),transparent)]",
|
|
54
54
|
"ds:after:opacity-50",
|
|
55
55
|
"ds:[&>canvas]:[filter:blur(0.7px)_brightness(1.3)_contrast(1.15)_saturate(1.5)]"
|
|
56
56
|
].join(" "),
|
|
@@ -59,7 +59,7 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
59
59
|
oscilloscope: [
|
|
60
60
|
// Scanlines (denser, alpha-heavier than terminal)
|
|
61
61
|
"ds:after:pointer-events-none ds:after:absolute ds:after:inset-0 ds:after:z-[1] ds:after:content-['']",
|
|
62
|
-
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_1px,
|
|
62
|
+
"ds:after:bg-[repeating-linear-gradient(to_bottom,transparent_0,transparent_1px,color-mix(in_srgb,var(--foreground)_40%,transparent)_1px,color-mix(in_srgb,var(--foreground)_40%,transparent)_2px)]",
|
|
63
63
|
"ds:after:mix-blend-multiply",
|
|
64
64
|
// Sweep beam — thin highlight bar scrolling top → bottom
|
|
65
65
|
"ds:before:pointer-events-none ds:before:absolute ds:before:inset-x-0 ds:before:top-0 ds:before:z-[2] ds:before:h-[4px] ds:before:content-['']",
|
|
@@ -144,64 +144,64 @@ const ae = 'ヲァィゥェォャュョッーアイウエオカキクケコサ
|
|
|
144
144
|
if (!e) return;
|
|
145
145
|
const t = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
146
146
|
if (t != null && t.matches) return;
|
|
147
|
-
const A = v || (typeof window > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(de[P]).trim() || getComputedStyle(o).color), Q = typeof window > "u" ? "monospace" : getComputedStyle(document.documentElement).getPropertyValue("--font-mono").trim() || "monospace",
|
|
148
|
-
let l = 0,
|
|
147
|
+
const A = v || (typeof window > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(de[P]).trim() || getComputedStyle(o).color), Q = typeof window > "u" ? "monospace" : getComputedStyle(document.documentElement).getPropertyValue("--font-mono").trim() || "monospace", g = window.devicePixelRatio || 1;
|
|
148
|
+
let l = 0, h = [], m = [], E = [];
|
|
149
149
|
const R = () => {
|
|
150
150
|
const n = o.getBoundingClientRect();
|
|
151
|
-
if (o.width = Math.max(1, Math.floor(n.width *
|
|
151
|
+
if (o.width = Math.max(1, Math.floor(n.width * g)), o.height = Math.max(1, Math.floor(n.height * g)), e.setTransform(g, 0, 0, g, 0, 0), l = Math.max(1, Math.floor(n.width / d)), h = new Array(l).fill(0).map(
|
|
152
152
|
() => (
|
|
153
153
|
// Random initial offset so columns never start in sync.
|
|
154
154
|
Math.floor(Math.random() * (n.height / d))
|
|
155
155
|
)
|
|
156
156
|
), s === "synthwave") {
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
const w =
|
|
160
|
-
return
|
|
161
|
-
}), document.documentElement.removeChild(
|
|
157
|
+
const a = document.createElement("span");
|
|
158
|
+
a.style.display = "none", document.documentElement.appendChild(a), m = new Array(l).fill("").map((L, r) => {
|
|
159
|
+
const w = r / Math.max(1, l - 1) * 100;
|
|
160
|
+
return a.style.color = `color-mix(in oklch, var(--accent) ${100 - w}%, var(--info) ${w}%)`, getComputedStyle(a).color || A;
|
|
161
|
+
}), document.documentElement.removeChild(a);
|
|
162
162
|
} else
|
|
163
163
|
m = [];
|
|
164
164
|
u ? E = new Array(l).fill(0).map(() => 0.6 + Math.random() * 0.8) : E = [];
|
|
165
165
|
};
|
|
166
|
-
let
|
|
166
|
+
let k = 0, c = 0, C = !0, S = !0;
|
|
167
167
|
const B = (n) => {
|
|
168
|
-
if (n -
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
y !== null && (e.globalCompositeOperation = "destination-out", e.globalAlpha = y, e.fillStyle = "black", e.fillRect(0, 0,
|
|
168
|
+
if (n - k >= z) {
|
|
169
|
+
k = n;
|
|
170
|
+
const a = o.getBoundingClientRect();
|
|
171
|
+
y !== null && (e.globalCompositeOperation = "destination-out", e.globalAlpha = y, e.fillStyle = "black", e.fillRect(0, 0, a.width, a.height), e.globalAlpha = 1), e.globalCompositeOperation = "source-over", e.font = `${d}px ${Q}`, e.textBaseline = "top";
|
|
172
172
|
const L = s === "terminal" || s === "hologram" || s === "synthwave";
|
|
173
173
|
L ? (e.shadowColor = A, e.shadowBlur = Math.max(4, d * 0.6)) : e.shadowBlur = 0, s !== "synthwave" && (e.fillStyle = A);
|
|
174
|
-
for (let
|
|
174
|
+
for (let r = 0; r < l; r += 1) {
|
|
175
175
|
const w = x.charAt(
|
|
176
176
|
Math.floor(Math.random() * x.length)
|
|
177
|
-
), N = u ? (Math.random() - 0.5) * 2 : 0, U =
|
|
178
|
-
s === "synthwave" && m[
|
|
177
|
+
), N = u ? (Math.random() - 0.5) * 2 : 0, U = r * d + N, T = h[r] * d;
|
|
178
|
+
s === "synthwave" && m[r] && (e.fillStyle = m[r], L && (e.shadowColor = m[r])), e.fillText(w, U, T), T > a.height && Math.random() > 0.97 && (h[r] = 0), h[r] += u && E[r] || 1;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
c = window.requestAnimationFrame(B);
|
|
182
|
-
},
|
|
183
|
-
c || !
|
|
182
|
+
}, b = () => {
|
|
183
|
+
c || !C || !S || (k = window.performance ? window.performance.now() : 0, c = window.requestAnimationFrame(B));
|
|
184
184
|
}, _ = () => {
|
|
185
185
|
c && (window.cancelAnimationFrame(c), c = 0);
|
|
186
186
|
};
|
|
187
|
-
R(),
|
|
187
|
+
R(), b();
|
|
188
188
|
const i = typeof ResizeObserver < "u" ? new ResizeObserver(R) : null;
|
|
189
189
|
i == null || i.observe(o);
|
|
190
190
|
const Y = () => R();
|
|
191
191
|
i || window.addEventListener("resize", Y);
|
|
192
192
|
const j = () => {
|
|
193
|
-
|
|
193
|
+
C = !document.hidden, C ? b() : _();
|
|
194
194
|
};
|
|
195
195
|
document.addEventListener("visibilitychange", j);
|
|
196
196
|
const f = typeof IntersectionObserver < "u" ? new IntersectionObserver(
|
|
197
197
|
(n) => {
|
|
198
|
-
|
|
198
|
+
S = n.some((a) => a.isIntersecting), S ? b() : _();
|
|
199
199
|
},
|
|
200
200
|
{ threshold: 0 }
|
|
201
201
|
) : null;
|
|
202
202
|
f == null || f.observe(o);
|
|
203
203
|
const F = () => {
|
|
204
|
-
t != null && t.matches ? _() :
|
|
204
|
+
t != null && t.matches ? _() : b();
|
|
205
205
|
};
|
|
206
206
|
return (H = t == null ? void 0 : t.addEventListener) == null || H.call(t, "change", F), () => {
|
|
207
207
|
var n;
|
|
@@ -241,4 +241,4 @@ me.displayName = "MatrixRain";
|
|
|
241
241
|
export {
|
|
242
242
|
me as M
|
|
243
243
|
};
|
|
244
|
-
//# sourceMappingURL=matrix-rain-
|
|
244
|
+
//# sourceMappingURL=matrix-rain-sDOUUwZp.js.map
|
|
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as B, useMemo as L, useState as U, useRef as W, useCallback as _ } from "react";
|
|
3
3
|
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
|
-
import { I as H } from "./icon-button-
|
|
5
|
+
import { I as H } from "./icon-button-BRHSSFmZ.js";
|
|
6
6
|
import { B as k } from "./button-DD_0Xdmr.js";
|
|
7
|
-
import { A as X } from "./avatar-
|
|
7
|
+
import { A as X } from "./avatar-D_H4emLo.js";
|
|
8
8
|
import { T as q } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { X as G } from "./x-CCcI3eJp.js";
|
|
10
10
|
const J = D(
|
|
@@ -277,4 +277,4 @@ export {
|
|
|
277
277
|
Q as M,
|
|
278
278
|
O as i
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=message-card-
|
|
280
|
+
//# sourceMappingURL=message-card-DjRtA8GG.js.map
|
|
@@ -4,11 +4,11 @@ import * as x from "@radix-ui/react-popover";
|
|
|
4
4
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as q } from "react-i18next";
|
|
6
6
|
import { u as le } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
-
import { I as me } from "./icon-button-
|
|
7
|
+
import { I as me } from "./icon-button-BRHSSFmZ.js";
|
|
8
8
|
import { B as E } from "./button-DD_0Xdmr.js";
|
|
9
9
|
import { S as L } from "./separator-CYU_bGFn.js";
|
|
10
10
|
import { S as f } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { M as pe } from "./message-card-
|
|
11
|
+
import { M as pe } from "./message-card-DjRtA8GG.js";
|
|
12
12
|
import { u as ue } from "./registry-C9nwlNyL.js";
|
|
13
13
|
import { M as F } from "./mail-C8irm52s.js";
|
|
14
14
|
const ge = {
|
|
@@ -411,4 +411,4 @@ export {
|
|
|
411
411
|
be as M,
|
|
412
412
|
ge as m
|
|
413
413
|
};
|
|
414
|
-
//# sourceMappingURL=message-tray-
|
|
414
|
+
//# sourceMappingURL=message-tray-DfsAMncP.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as e } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const o = [
|
|
9
|
+
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
10
|
+
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
11
|
+
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
12
|
+
], t = e("monitor", o);
|
|
13
|
+
export {
|
|
14
|
+
t as M
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=monitor-D-SFdbrU.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as M, useMemo as P, useState as R, useRef as B, useCallback as L } from "react";
|
|
3
3
|
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as U } from "react-i18next";
|
|
5
|
-
import { I as W } from "./icon-button-
|
|
5
|
+
import { I as W } from "./icon-button-BRHSSFmZ.js";
|
|
6
6
|
import { B as N } from "./button-DD_0Xdmr.js";
|
|
7
7
|
import { T as E } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { X as H } from "./x-CCcI3eJp.js";
|
|
@@ -29,7 +29,7 @@ const X = D(
|
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
31
|
compact: "ds:items-start",
|
|
32
|
-
dashboard: "ds:flex-col ds:sm:flex-row ds:items-stretch ds:sm:items-start ds:shadow-[var(--shadow-md)] ds:bg-[color:var(--card)]"
|
|
32
|
+
dashboard: "ds:flex-col ds:sm:flex-row ds:items-stretch ds:sm:items-start ds:border ds:border-[color:var(--border)] ds:shadow-[var(--shadow-md)] ds:bg-[color:var(--card)]"
|
|
33
33
|
},
|
|
34
34
|
size: {
|
|
35
35
|
sm: "ds:p-[var(--spacing-sm)]",
|
|
@@ -251,4 +251,4 @@ export {
|
|
|
251
251
|
G as N,
|
|
252
252
|
q as i
|
|
253
253
|
};
|
|
254
|
-
//# sourceMappingURL=notification-card-
|
|
254
|
+
//# sourceMappingURL=notification-card-B_847w5g.js.map
|
|
@@ -4,11 +4,11 @@ import * as y from "@radix-ui/react-popover";
|
|
|
4
4
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as F } from "react-i18next";
|
|
6
6
|
import { u as le } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
-
import { I as fe } from "./icon-button-
|
|
7
|
+
import { I as fe } from "./icon-button-BRHSSFmZ.js";
|
|
8
8
|
import { B as E } from "./button-DD_0Xdmr.js";
|
|
9
9
|
import { S as q } from "./separator-CYU_bGFn.js";
|
|
10
10
|
import { S as x } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { N as pe } from "./notification-card-
|
|
11
|
+
import { N as pe } from "./notification-card-B_847w5g.js";
|
|
12
12
|
import { u as ue } from "./registry-C9nwlNyL.js";
|
|
13
13
|
import { c as me } from "./createLucideIcon-CrFbzy84.js";
|
|
14
14
|
/**
|
|
@@ -127,10 +127,13 @@ const ge = [
|
|
|
127
127
|
[
|
|
128
128
|
"ds:flex ds:flex-col",
|
|
129
129
|
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
|
|
130
|
+
// Subtle tokenized border pairs with the drop-shadow so the panel's
|
|
131
|
+
// edge stays legible in dark themes (where the shadow alone reads as a
|
|
132
|
+
// faint halo). `--card-border` is alpha-based (32% in dark, lighter in
|
|
133
|
+
// light) so the edge cue stays soft rather than turning into a heavy
|
|
134
|
+
// outline. The forced-colors override below upgrades the border to
|
|
135
|
+
// `CanvasText` so HCM repaints a fully visible edge.
|
|
136
|
+
"ds:border ds:border-[color:var(--card-border)]",
|
|
134
137
|
"ds:rounded-[var(--radius-md)]",
|
|
135
138
|
"ds:shadow-[var(--shadow-lg)]",
|
|
136
139
|
"ds:z-[var(--z-popover)]",
|
|
@@ -179,7 +182,7 @@ const ge = [
|
|
|
179
182
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
180
183
|
].join(" ")
|
|
181
184
|
);
|
|
182
|
-
function
|
|
185
|
+
function be(i, a) {
|
|
183
186
|
return i > 99 ? a : String(i);
|
|
184
187
|
}
|
|
185
188
|
function z() {
|
|
@@ -199,7 +202,7 @@ function z() {
|
|
|
199
202
|
}
|
|
200
203
|
);
|
|
201
204
|
}
|
|
202
|
-
function
|
|
205
|
+
function Ne() {
|
|
203
206
|
const { t: i } = F();
|
|
204
207
|
return /* @__PURE__ */ c(
|
|
205
208
|
"div",
|
|
@@ -229,7 +232,7 @@ const Te = ne(
|
|
|
229
232
|
({
|
|
230
233
|
id: i,
|
|
231
234
|
items: a,
|
|
232
|
-
unseenCount:
|
|
235
|
+
unseenCount: b,
|
|
233
236
|
open: U,
|
|
234
237
|
onOpenChange: W,
|
|
235
238
|
onItemClick: p,
|
|
@@ -242,7 +245,7 @@ const Te = ne(
|
|
|
242
245
|
onViewAll: G,
|
|
243
246
|
align: J = "end",
|
|
244
247
|
side: M = "bottom",
|
|
245
|
-
size:
|
|
248
|
+
size: N = "md",
|
|
246
249
|
className: Q,
|
|
247
250
|
...X
|
|
248
251
|
}, Z) => {
|
|
@@ -296,16 +299,16 @@ const Te = ne(
|
|
|
296
299
|
}
|
|
297
300
|
I.current = e;
|
|
298
301
|
}, [a, r]);
|
|
299
|
-
const h =
|
|
302
|
+
const h = b ?? 0, D = h > 0 ? r("notificationTray.triggerLabel", {
|
|
300
303
|
count: h,
|
|
301
304
|
defaultValue: "Notifications, {{count}} unread"
|
|
302
|
-
}) : r("notificationTray.triggerLabelNone", "Notifications, none unread"), ee =
|
|
305
|
+
}) : r("notificationTray.triggerLabelNone", "Notifications, none unread"), ee = be(
|
|
303
306
|
h,
|
|
304
307
|
r("notificationTray.badgeCountOverflow", "99+")
|
|
305
|
-
), te = ye({ size:
|
|
308
|
+
), te = ye({ size: N }), l = f(a);
|
|
306
309
|
l.current = a;
|
|
307
|
-
const V = f(
|
|
308
|
-
V.current =
|
|
310
|
+
const V = f(b);
|
|
311
|
+
V.current = b;
|
|
309
312
|
const K = f(T);
|
|
310
313
|
K.current = T;
|
|
311
314
|
const ie = de(
|
|
@@ -336,7 +339,7 @@ const Te = ne(
|
|
|
336
339
|
ref: A,
|
|
337
340
|
"data-component": "notification-tray",
|
|
338
341
|
"data-component-id": i,
|
|
339
|
-
className: [he({ size:
|
|
342
|
+
className: [he({ size: N }), Q].filter(Boolean).join(" "),
|
|
340
343
|
...X,
|
|
341
344
|
children: /* @__PURE__ */ c(y.Root, { open: T, onOpenChange: v, children: [
|
|
342
345
|
/* @__PURE__ */ t(y.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -344,7 +347,7 @@ const Te = ne(
|
|
|
344
347
|
{
|
|
345
348
|
icon: /* @__PURE__ */ t(H, {}),
|
|
346
349
|
intent: "outline",
|
|
347
|
-
size:
|
|
350
|
+
size: N === "sm" ? "sm" : "md",
|
|
348
351
|
"aria-label": D,
|
|
349
352
|
"aria-haspopup": "dialog"
|
|
350
353
|
}
|
|
@@ -402,7 +405,7 @@ const Te = ne(
|
|
|
402
405
|
/* @__PURE__ */ t(z, {}),
|
|
403
406
|
/* @__PURE__ */ t(z, {}),
|
|
404
407
|
/* @__PURE__ */ t(z, {})
|
|
405
|
-
] }) : m.length === 0 ? /* @__PURE__ */ t(
|
|
408
|
+
] }) : m.length === 0 ? /* @__PURE__ */ t(Ne, {}) : m.map(({ item: e, leaving: n }) => /* @__PURE__ */ t(
|
|
406
409
|
pe,
|
|
407
410
|
{
|
|
408
411
|
item: e,
|
|
@@ -442,4 +445,4 @@ export {
|
|
|
442
445
|
Te as N,
|
|
443
446
|
ve as n
|
|
444
447
|
};
|
|
445
|
-
//# sourceMappingURL=notification-tray-
|
|
448
|
+
//# sourceMappingURL=notification-tray-6f7smmT1.js.map
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useState as k } from "react";
|
|
3
|
+
import { useTranslation as m } from "react-i18next";
|
|
4
|
+
import { A } from "./app-frame-BYx1gcV7.js";
|
|
5
|
+
import { I as H } from "./icon-button-BRHSSFmZ.js";
|
|
6
|
+
import { D as i } from "./dropdown-menu-DZxwF23X.js";
|
|
7
|
+
import { H as x, g as C, f as B, e as M, a as N, c as T, d as O } from "./header-B8V_sNPy.js";
|
|
8
|
+
import { L as P } from "./logo-_Z-jLq80.js";
|
|
9
|
+
import { S as W, a as j, h as R, j as _, k as z, i as D } from "./sidebar-DkyC6GvS.js";
|
|
10
|
+
import { T as E } from "./theme-root-BOO73p5t.js";
|
|
11
|
+
import { a as q } from "./tooltip-DHik5yRI.js";
|
|
12
|
+
import { u as F } from "./use-theme-C2dHKUAN.js";
|
|
13
|
+
import { S as U } from "./settings-ca2Yi9R8.js";
|
|
14
|
+
import { c as G } from "./createLucideIcon-CrFbzy84.js";
|
|
15
|
+
import { L as J } from "./log-out-616hnn2-.js";
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v1.8.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
const K = [
|
|
23
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
24
|
+
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
25
|
+
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
26
|
+
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
27
|
+
], Q = G("maximize-2", K);
|
|
28
|
+
function V(r) {
|
|
29
|
+
return r > 99 ? "99+" : String(r);
|
|
30
|
+
}
|
|
31
|
+
function X(r) {
|
|
32
|
+
if (r.startsWith("/") || r.startsWith("#") || r.startsWith("?"))
|
|
33
|
+
return !0;
|
|
34
|
+
try {
|
|
35
|
+
const t = new URL(r, window.location.origin);
|
|
36
|
+
return t.protocol === "http:" || t.protocol === "https:";
|
|
37
|
+
} catch {
|
|
38
|
+
return !1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function Y({
|
|
42
|
+
logoutHref: r,
|
|
43
|
+
onToggleFullscreen: t
|
|
44
|
+
}) {
|
|
45
|
+
const { t: a } = m();
|
|
46
|
+
return /* @__PURE__ */ n(i.Root, { children: [
|
|
47
|
+
/* @__PURE__ */ e(i.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
48
|
+
H,
|
|
49
|
+
{
|
|
50
|
+
icon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
|
|
51
|
+
"aria-label": a("patientShell.settings.triggerAria"),
|
|
52
|
+
tooltip: a("patientShell.settings.triggerAria"),
|
|
53
|
+
"data-testid": "patient-shell-settings-trigger"
|
|
54
|
+
}
|
|
55
|
+
) }),
|
|
56
|
+
/* @__PURE__ */ n(i.Content, { align: "end", children: [
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
i.Item,
|
|
59
|
+
{
|
|
60
|
+
startIcon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
61
|
+
onSelect: t,
|
|
62
|
+
"data-testid": "patient-shell-fullscreen",
|
|
63
|
+
children: a("patientShell.settings.fullscreen")
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ e(i.Separator, {}),
|
|
67
|
+
/* @__PURE__ */ e(
|
|
68
|
+
i.Item,
|
|
69
|
+
{
|
|
70
|
+
startIcon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
|
|
71
|
+
onSelect: () => {
|
|
72
|
+
typeof window > "u" || X(r) && window.location.assign(r);
|
|
73
|
+
},
|
|
74
|
+
"data-testid": "patient-shell-logout",
|
|
75
|
+
children: a("patientShell.settings.logout")
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] })
|
|
79
|
+
] });
|
|
80
|
+
}
|
|
81
|
+
function Z({ menuItems: r }) {
|
|
82
|
+
return /* @__PURE__ */ e(j, { children: r.map((t) => {
|
|
83
|
+
const a = typeof t.badgeCount == "number" && t.badgeCount > 0 ? t.badgeCount : void 0;
|
|
84
|
+
return /* @__PURE__ */ n(
|
|
85
|
+
R,
|
|
86
|
+
{
|
|
87
|
+
href: t.href,
|
|
88
|
+
"aria-label": t.label,
|
|
89
|
+
isActive: t.isActive,
|
|
90
|
+
children: [
|
|
91
|
+
t.icon ? /* @__PURE__ */ e(_, { children: t.icon }) : null,
|
|
92
|
+
/* @__PURE__ */ e(z, { children: t.label }),
|
|
93
|
+
a !== void 0 ? /* @__PURE__ */ e(D, { children: V(a) }) : null
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
t.id
|
|
97
|
+
);
|
|
98
|
+
}) });
|
|
99
|
+
}
|
|
100
|
+
const $ = w(
|
|
101
|
+
({
|
|
102
|
+
menuItems: r,
|
|
103
|
+
logoutHref: t,
|
|
104
|
+
onToggleFullscreen: a,
|
|
105
|
+
brandLogo: p,
|
|
106
|
+
brandHref: u = "/",
|
|
107
|
+
mainAriaLabel: f,
|
|
108
|
+
sidebarState: o,
|
|
109
|
+
children: g,
|
|
110
|
+
// `userName` and `userAvatarSrc` are declared on the public API
|
|
111
|
+
// for forward-compatibility (future profile-pill work) — they are
|
|
112
|
+
// intentionally unused today because the legacy patient chrome
|
|
113
|
+
// carries no profile pill.
|
|
114
|
+
userName: ee,
|
|
115
|
+
userAvatarSrc: te
|
|
116
|
+
}, s) => {
|
|
117
|
+
const { t: d } = m(), { theme: S, accessibility: b, resolvedTheme: l } = F(), v = S !== "system" || b !== "system", y = l.startsWith("dark") ? "dark" : "light", I = l.endsWith("-accessible"), [L, c] = k(!1), h = /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(
|
|
118
|
+
A,
|
|
119
|
+
{
|
|
120
|
+
mainAriaLabel: f,
|
|
121
|
+
header: /* @__PURE__ */ n(x, { children: [
|
|
122
|
+
/* @__PURE__ */ n(C, { children: [
|
|
123
|
+
/* @__PURE__ */ e(B, { href: "#main-content" }),
|
|
124
|
+
/* @__PURE__ */ e(M, { onMenuOpen: () => c(!0) }),
|
|
125
|
+
/* @__PURE__ */ e(
|
|
126
|
+
N,
|
|
127
|
+
{
|
|
128
|
+
logo: p ?? /* @__PURE__ */ e(P, { variant: "monochrome", size: "md", decorative: !0 }),
|
|
129
|
+
href: u,
|
|
130
|
+
"aria-label": d("patientShell.brand.homeAria")
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ e(T, {}),
|
|
135
|
+
/* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
|
|
136
|
+
Y,
|
|
137
|
+
{
|
|
138
|
+
logoutHref: t,
|
|
139
|
+
onToggleFullscreen: a
|
|
140
|
+
}
|
|
141
|
+
) })
|
|
142
|
+
] }),
|
|
143
|
+
sidebar: /* @__PURE__ */ e(
|
|
144
|
+
W,
|
|
145
|
+
{
|
|
146
|
+
...o !== void 0 ? { state: o } : { defaultState: "expanded" },
|
|
147
|
+
open: L,
|
|
148
|
+
onOpenChange: c,
|
|
149
|
+
"aria-label": d("patientShell.sidebar.panelLabel"),
|
|
150
|
+
"data-testid": "patient-shell-sidebar",
|
|
151
|
+
children: /* @__PURE__ */ e(Z, { menuItems: r })
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
children: g
|
|
155
|
+
}
|
|
156
|
+
) });
|
|
157
|
+
return v ? /* @__PURE__ */ e(
|
|
158
|
+
E,
|
|
159
|
+
{
|
|
160
|
+
ref: s,
|
|
161
|
+
theme: y,
|
|
162
|
+
accessible: I,
|
|
163
|
+
className: "ds:contents",
|
|
164
|
+
children: h
|
|
165
|
+
}
|
|
166
|
+
) : /* @__PURE__ */ e("div", { ref: s, className: "ds:contents", children: h });
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
$.displayName = "PatientShell";
|
|
170
|
+
export {
|
|
171
|
+
$ as P
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=patient-shell-Bq8CjRYF.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as m, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo as j, useImperativeHandle as ae, useId as oe, useCallback as ie } from "react";
|
|
3
3
|
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
|
-
import { S as J } from "./spinner-
|
|
5
|
+
import { S as J } from "./spinner-CCByyvcb.js";
|
|
6
6
|
import { A as W } from "./alert-ywPR59NE.js";
|
|
7
7
|
import { loadStripe as de } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
|
|
@@ -587,4 +587,4 @@ export {
|
|
|
587
587
|
ye as p,
|
|
588
588
|
ee as s
|
|
589
589
|
};
|
|
590
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-Ds3rxvad.js.map
|
|
@@ -5,7 +5,7 @@ import { c as J } from "./index-D2ZczOXr.js";
|
|
|
5
5
|
import { useTranslation as pe } from "react-i18next";
|
|
6
6
|
import * as ee from "@radix-ui/react-popover";
|
|
7
7
|
import Me from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
|
8
|
-
import { S as Le } from "./spinner-
|
|
8
|
+
import { S as Le } from "./spinner-CCByyvcb.js";
|
|
9
9
|
import { A as we } from "./alert-ywPR59NE.js";
|
|
10
10
|
import { u as Ze } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { X as Be } from "./x-CCcI3eJp.js";
|
|
@@ -917,4 +917,4 @@ export {
|
|
|
917
917
|
nt as P,
|
|
918
918
|
Xe as p
|
|
919
919
|
};
|
|
920
|
-
//# sourceMappingURL=pdf-viewer-
|
|
920
|
+
//# sourceMappingURL=pdf-viewer-CIuaocnq.js.map
|