@alfadocs/ui-kit 1.45.0 → 1.47.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/{actions-cell-renderer-BXBy9c0f.js → actions-cell-renderer-B5m9lwgC.js} +2 -2
- package/dist/_chunks/ai-credits-notice-xszqOZTC.js +90 -0
- package/dist/_chunks/ai-credits-notice.agent-C9L7orrP.js +17 -0
- package/dist/_chunks/{ai-consent-banner-D7I2U-cz.js → ai-permission-notice-D7I2U-cz.js} +1 -1
- package/dist/_chunks/ai-sparkle-D23NT8Z_.js +45 -0
- package/dist/_chunks/{anamnesis-summary-rows-DQUqwWc1.js → anamnesis-summary-rows-DI-UX5r6.js} +2 -2
- package/dist/_chunks/{appointment-card-TgR_2GKS.js → appointment-card-DluZy8Iv.js} +2 -2
- package/dist/_chunks/{appointment-peek-abiR0T9e.js → appointment-peek-BsfCpiJs.js} +3 -3
- package/dist/_chunks/{appointment-timeline-CCnyUYKz.js → appointment-timeline-Cs5f9viN.js} +3 -3
- package/dist/_chunks/{appointment-tray-N0yEI8UF.js → appointment-tray-CLrGGnKR.js} +2 -2
- package/dist/_chunks/baby-Dku-Xvg9.js +23 -0
- package/dist/_chunks/{balance-badge-cell-o6LldMUA.js → balance-badge-cell-YGrYdrvR.js} +3 -3
- package/dist/_chunks/booking-C4MwImkS.js +3362 -0
- package/dist/_chunks/button-group-CA1tmu39.js +325 -0
- package/dist/_chunks/{calendar-U6N0F99w.js → calendar-OzSeTb4V.js} +2 -2
- package/dist/_chunks/{calendar-event-card-DKUnT9Be.js → calendar-event-card-B6N5h1dO.js} +57 -48
- package/dist/_chunks/calendar-workspace-DDnQmiIL.js +12427 -0
- package/dist/_chunks/{chart-PF2krCZC.js → chart-D8ucl8hH.js} +2 -2
- package/dist/_chunks/{data-table-CcAx_I1w.js → data-table-DnKOmEVw.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-Psb6XKHR.js → editable-currency-cell-renderer-OUkUv7U4.js} +2 -2
- package/dist/_chunks/{face-scheme-Bm6pe7R8.js → face-scheme-mIhwrQXt.js} +3 -3
- package/dist/_chunks/{file-manager-BfLQxF5t.js → file-manager-DOcJGIx2.js} +4 -4
- package/dist/_chunks/{freemium-paywall-Cz-O9lQD.js → freemium-paywall-BaW5ODc9.js} +2 -2
- package/dist/_chunks/{header-settings-CTe45iDy.js → header-settings-BEfx_-TF.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-GUeEn3Ff.js → help-me-write-templates-DHIwa4xR.js} +205 -199
- package/dist/_chunks/{hover-card-BMJBVqIf.js → hover-card-nUae8NPJ.js} +67 -62
- package/dist/_chunks/{icon-button-group-DkkdIygu.js → icon-button-group-DZKC6KGf.js} +181 -168
- package/dist/_chunks/kit-extensions-DuoFF1R3.js +94 -0
- package/dist/_chunks/{marketplace-app-shell-DdwPj03y.js → marketplace-app-shell-PB89Dkk_.js} +2 -2
- package/dist/_chunks/{notes-panel-Dkk9QPPX.js → notes-panel-CHbDDMx8.js} +83 -73
- package/dist/_chunks/{patient-details-C8ImUrVg.js → patient-details-yrgkSeEY.js} +2 -2
- package/dist/_chunks/{patient-field-row-BRSOKvme.js → patient-field-row-DCMkFGqI.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BhmKB2KR.js → patient-summary-card-CmEFflGS.js} +59 -45
- package/dist/_chunks/payment-form-DqJFiplX.js +881 -0
- package/dist/_chunks/{phone-input-BsZIoE36.js → phone-input-IWrGOCwm.js} +40 -39
- package/dist/_chunks/rich-text-editor-BwDV2XkZ.js +4153 -0
- package/dist/_chunks/{stepper-accordion-DmVykr5F.js → stepper-accordion-jMR8NaOB.js} +2 -1
- package/dist/_chunks/{tasks-panel-CpcikOeY.js → tasks-panel-DncuBPIZ.js} +2 -2
- package/dist/_chunks/{theme-toggle-bI0pgDDv.js → theme-toggle-BP0XRGMM.js} +2 -2
- package/dist/_chunks/use-ai-sparkle-Cf4yVTLB.js +76 -0
- package/dist/_chunks/{workflow-status-xeaJTzD3.js → workflow-status-CuJAOuKL.js} +43 -42
- package/dist/agent-catalog.json +36 -7
- package/dist/agent-i18n/en.json +3 -3
- package/dist/components/ai-credits-notice/ai-credits-notice.agent.d.ts +3 -0
- package/dist/components/ai-credits-notice/ai-credits-notice.d.ts +48 -0
- package/dist/components/ai-credits-notice/index.d.ts +4 -0
- package/dist/components/ai-credits-notice/index.js +7 -0
- package/dist/components/{ai-consent-banner/ai-consent-banner.agent.d.ts → ai-permission-notice/ai-permission-notice.agent.d.ts} +2 -2
- package/dist/components/{ai-consent-banner/ai-consent-banner.d.ts → ai-permission-notice/ai-permission-notice.d.ts} +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +4 -0
- package/dist/components/{ai-consent-banner → ai-permission-notice}/index.js +1 -1
- package/dist/components/ai-sparkle/ai-sparkle.d.ts +3 -3
- package/dist/components/ai-sparkle/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +60 -1
- package/dist/components/booking/booking.d.ts +1 -1
- package/dist/components/booking/details-form.d.ts +5 -1
- package/dist/components/booking/index.d.ts +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/payment.d.ts +9 -0
- package/dist/components/booking/use-booking-payment.d.ts +14 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts +4 -0
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +3 -2
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +10 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +35 -3
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/rich-text-editor/editor-extensions.d.ts +54 -0
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +2 -1
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +4 -0
- package/dist/components/rich-text-editor/index.d.ts +2 -0
- package/dist/components/rich-text-editor/index.js +6 -4
- package/dist/components/rich-text-editor/kit-extensions.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +18 -2
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +51 -53
- package/dist/hooks/use-ai-sparkle.d.ts +7 -25
- package/dist/host-compat.css +2 -2
- package/dist/i18n/locales/ar.d.ts +67 -1
- package/dist/i18n/locales/ar.js +69 -3
- package/dist/i18n/locales/de.d.ts +67 -1
- package/dist/i18n/locales/de.js +69 -3
- package/dist/i18n/locales/el.d.ts +67 -1
- package/dist/i18n/locales/el.js +69 -3
- package/dist/i18n/locales/en.d.ts +67 -1
- package/dist/i18n/locales/en.js +69 -3
- package/dist/i18n/locales/es.d.ts +67 -1
- package/dist/i18n/locales/es.js +69 -3
- package/dist/i18n/locales/fr.d.ts +67 -1
- package/dist/i18n/locales/fr.js +69 -3
- package/dist/i18n/locales/hi.d.ts +67 -1
- package/dist/i18n/locales/hi.js +69 -3
- package/dist/i18n/locales/it.d.ts +67 -1
- package/dist/i18n/locales/it.js +69 -3
- package/dist/i18n/locales/ja.d.ts +67 -1
- package/dist/i18n/locales/ja.js +69 -3
- package/dist/i18n/locales/nl.d.ts +67 -1
- package/dist/i18n/locales/nl.js +69 -3
- package/dist/i18n/locales/pl.d.ts +67 -1
- package/dist/i18n/locales/pl.js +69 -3
- package/dist/i18n/locales/pt.d.ts +67 -1
- package/dist/i18n/locales/pt.js +69 -3
- package/dist/i18n/locales/ro.d.ts +67 -1
- package/dist/i18n/locales/ro.js +69 -3
- package/dist/i18n/locales/ru.d.ts +67 -1
- package/dist/i18n/locales/ru.js +69 -3
- package/dist/i18n/locales/sq.d.ts +67 -1
- package/dist/i18n/locales/sq.js +69 -3
- package/dist/i18n/locales/sv.d.ts +67 -1
- package/dist/i18n/locales/sv.js +69 -3
- package/dist/i18n/locales/tr.d.ts +67 -1
- package/dist/i18n/locales/tr.js +69 -3
- package/dist/i18n/locales/zh.d.ts +67 -1
- package/dist/i18n/locales/zh.js +69 -3
- package/dist/index.js +648 -641
- package/dist/locales/ar.json +69 -3
- package/dist/locales/de.json +69 -3
- package/dist/locales/el.json +69 -3
- package/dist/locales/en.json +69 -3
- package/dist/locales/es.json +69 -3
- package/dist/locales/fr.json +69 -3
- package/dist/locales/hi.json +69 -3
- package/dist/locales/it.json +69 -3
- package/dist/locales/ja.json +69 -3
- package/dist/locales/nl.json +69 -3
- package/dist/locales/pl.json +69 -3
- package/dist/locales/pt.json +69 -3
- package/dist/locales/ro.json +69 -3
- package/dist/locales/ru.json +69 -3
- package/dist/locales/sq.json +69 -3
- package/dist/locales/sv.json +69 -3
- package/dist/locales/tr.json +69 -3
- package/dist/locales/zh.json +69 -3
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-editor-fields.d.ts +33 -0
- package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +6 -4
- package/dist/patterns/calendar/calendar.data.d.ts +26 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts +16 -5
- package/dist/patterns/calendar/calendar.types.d.ts +25 -9
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +11 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +14 -4
- package/dist/_chunks/ai-sparkle-DXeP_6a0.js +0 -52
- package/dist/_chunks/booking-D43ASl8y.js +0 -3034
- package/dist/_chunks/button-group-R32U7SyV.js +0 -307
- package/dist/_chunks/calendar-workspace-B7KvZ1_D.js +0 -12161
- package/dist/_chunks/payment-form-BHMDqW9C.js +0 -767
- package/dist/_chunks/rich-text-editor-BrAvNajV.js +0 -3779
- package/dist/_chunks/use-ai-sparkle-CyQSRTCe.js +0 -103
- package/dist/components/ai-consent-banner/index.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as $e, useId as Ie, useMemo as De } from "react";
|
|
3
3
|
import { c as Ge } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as Le } from "react-i18next";
|
|
5
5
|
import { A as re } from "./avatar-CkDeQOSI.js";
|
|
@@ -12,16 +12,16 @@ import { S as k } from "./skeleton-B1KTdJ4N.js";
|
|
|
12
12
|
import { T as oe } from "./tag-Ci3xJPcH.js";
|
|
13
13
|
import { T as Ke } from "./transaction-chip-CwgcJiqF.js";
|
|
14
14
|
import { T as je } from "./tooltip-Cp-PLePW.js";
|
|
15
|
-
import { H as G } from "./hover-card-
|
|
15
|
+
import { H as G } from "./hover-card-nUae8NPJ.js";
|
|
16
16
|
import { i as de } from "./is-safe-url-DkETxeHz.js";
|
|
17
|
-
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-
|
|
17
|
+
import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-DCMkFGqI.js";
|
|
18
18
|
import { u as Oe } from "./registry-DvAUVLHh.js";
|
|
19
19
|
import { M as ea } from "./mail-BqXVF2zH.js";
|
|
20
20
|
import { P as aa } from "./phone-FceYcIFQ.js";
|
|
21
21
|
import { M as ta } from "./map-pin-BaY37-Km.js";
|
|
22
22
|
import { S as na } from "./shield-check-DCJALLVh.js";
|
|
23
|
-
import { A as
|
|
24
|
-
import { U as
|
|
23
|
+
import { A as ia } from "./astroid-BN4f5VXU.js";
|
|
24
|
+
import { U as sa } from "./users-BjS_Gg1E.js";
|
|
25
25
|
import { c as ce } from "./createLucideIcon-DhHxpK9K.js";
|
|
26
26
|
import { A as ra } from "./arrow-up-right-C2v_MKsK.js";
|
|
27
27
|
import { C as la } from "./calendar-days-BGWklvE-.js";
|
|
@@ -123,7 +123,7 @@ const ga = {
|
|
|
123
123
|
yes: "Yes",
|
|
124
124
|
no: "No",
|
|
125
125
|
not_specified: "Not specified"
|
|
126
|
-
}, Ca =
|
|
126
|
+
}, Ca = $e(
|
|
127
127
|
({
|
|
128
128
|
name: o,
|
|
129
129
|
title: P,
|
|
@@ -141,7 +141,7 @@ const ga = {
|
|
|
141
141
|
cityProvince: j,
|
|
142
142
|
marketingConsent: h,
|
|
143
143
|
aiConsent: d,
|
|
144
|
-
flags:
|
|
144
|
+
flags: i,
|
|
145
145
|
familyRelations: T,
|
|
146
146
|
assignedTo: C,
|
|
147
147
|
currency: pe = "EUR",
|
|
@@ -158,16 +158,16 @@ const ga = {
|
|
|
158
158
|
onActivate: J,
|
|
159
159
|
surface: Q = "elevated",
|
|
160
160
|
density: f = "comfortable",
|
|
161
|
-
"aria-label":
|
|
161
|
+
"aria-label": E,
|
|
162
162
|
id: g,
|
|
163
163
|
className: ve,
|
|
164
164
|
...ye
|
|
165
165
|
}, be) => {
|
|
166
|
-
const { t, i18n: Ce } = Le("ui"),
|
|
166
|
+
const { t, i18n: Ce } = Le("ui"), _ = Ie(), xe = q ?? Ce.language ?? "en", z = i == null ? void 0 : i.unpaidAmountCents, N = (i == null ? void 0 : i.unsignedDocumentsCount) ?? 0, A = (i == null ? void 0 : i.highlightedAnamnesisCount) ?? 0, $ = z != null && z > 0, Se = De(
|
|
167
167
|
() => ({
|
|
168
168
|
getSummary: () => ({
|
|
169
169
|
id: g,
|
|
170
|
-
hasUnpaid:
|
|
170
|
+
hasUnpaid: $,
|
|
171
171
|
unsignedDocumentsCount: N,
|
|
172
172
|
highlightedAnamnesisCount: A,
|
|
173
173
|
aiConsentGranted: d != null
|
|
@@ -175,7 +175,7 @@ const ga = {
|
|
|
175
175
|
}),
|
|
176
176
|
[
|
|
177
177
|
g,
|
|
178
|
-
|
|
178
|
+
$,
|
|
179
179
|
N,
|
|
180
180
|
A,
|
|
181
181
|
d
|
|
@@ -185,12 +185,16 @@ const ga = {
|
|
|
185
185
|
const X = !!u && !!K, m = qe(u ?? pa, {
|
|
186
186
|
value: R,
|
|
187
187
|
onChange: K
|
|
188
|
-
}), Ne =
|
|
188
|
+
}), Ne = E ?? t("patientSummaryCard.regionLabel", { defaultValue: "Patient overview" }), Ae = {
|
|
189
189
|
mr: "Mr.",
|
|
190
190
|
ms: "Ms."
|
|
191
191
|
}, Y = P ? t(`patientSummaryCard.title.${P}`, {
|
|
192
192
|
defaultValue: Ae[P]
|
|
193
|
-
}) : void 0, Z = Y ?
|
|
193
|
+
}) : void 0, Z = Y ? t("patientSummaryCard.nameWithHonorific", {
|
|
194
|
+
honorific: Y,
|
|
195
|
+
name: o,
|
|
196
|
+
defaultValue: "{{honorific}} {{name}}"
|
|
197
|
+
}) : o, v = [];
|
|
194
198
|
B && v.push(/* @__PURE__ */ e(Xe, { code: B }, "sex")), L != null && v.push(/* @__PURE__ */ e(Ye, { years: L }, "age")), U && v.push(
|
|
195
199
|
/* @__PURE__ */ e(Ze, { icon: /* @__PURE__ */ e(la, {}), children: U }, "dob")
|
|
196
200
|
);
|
|
@@ -199,7 +203,16 @@ const ga = {
|
|
|
199
203
|
key: "email",
|
|
200
204
|
icon: /* @__PURE__ */ e(ea, { "aria-hidden": "true" }),
|
|
201
205
|
label: t("patientSummaryCard.label.email", { defaultValue: "Email" }),
|
|
202
|
-
value: me ? /* @__PURE__ */ e(
|
|
206
|
+
value: me ? /* @__PURE__ */ e(
|
|
207
|
+
V,
|
|
208
|
+
{
|
|
209
|
+
href: `mailto:${b}`,
|
|
210
|
+
intent: "default",
|
|
211
|
+
onClick: J,
|
|
212
|
+
dir: "ltr",
|
|
213
|
+
children: b
|
|
214
|
+
}
|
|
215
|
+
) : /* @__PURE__ */ e("span", { className: "ds:text-[color:var(--muted-foreground)]", dir: "ltr", children: b })
|
|
203
216
|
}), p && c.push({
|
|
204
217
|
key: "phone",
|
|
205
218
|
icon: /* @__PURE__ */ e(aa, { "aria-hidden": "true" }),
|
|
@@ -210,6 +223,7 @@ const ga = {
|
|
|
210
223
|
{
|
|
211
224
|
href: `tel:${fa(p.prefixAndNumber)}`,
|
|
212
225
|
intent: "default",
|
|
226
|
+
dir: "ltr",
|
|
213
227
|
children: p.prefixAndNumber
|
|
214
228
|
}
|
|
215
229
|
),
|
|
@@ -243,7 +257,7 @@ const ga = {
|
|
|
243
257
|
)
|
|
244
258
|
}), d && c.push({
|
|
245
259
|
key: "aiConsent",
|
|
246
|
-
icon: /* @__PURE__ */ e(
|
|
260
|
+
icon: /* @__PURE__ */ e(ia, { "aria-hidden": "true" }),
|
|
247
261
|
label: t("patientSummaryCard.label.aiConsent", {
|
|
248
262
|
defaultValue: "AI consent"
|
|
249
263
|
}),
|
|
@@ -257,7 +271,7 @@ const ga = {
|
|
|
257
271
|
})
|
|
258
272
|
}), C && c.push({
|
|
259
273
|
key: "assignedTo",
|
|
260
|
-
icon: /* @__PURE__ */ e(
|
|
274
|
+
icon: /* @__PURE__ */ e(sa, { "aria-hidden": "true" }),
|
|
261
275
|
label: t("patientSummaryCard.label.assignedTo", {
|
|
262
276
|
defaultValue: "Assigned to"
|
|
263
277
|
}),
|
|
@@ -282,41 +296,41 @@ const ga = {
|
|
|
282
296
|
count: N
|
|
283
297
|
});
|
|
284
298
|
const ae = (a, r) => {
|
|
285
|
-
const
|
|
286
|
-
if (l == null && !
|
|
287
|
-
const
|
|
299
|
+
const s = w == null ? void 0 : w[a], l = F == null ? void 0 : F[a];
|
|
300
|
+
if (l == null && !s) return r;
|
|
301
|
+
const ie = "ds:inline-flex ds:cursor-pointer ds:rounded-[var(--radius-full)] ds:p-0 ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]";
|
|
288
302
|
if (l == null)
|
|
289
303
|
return /* @__PURE__ */ e(
|
|
290
304
|
"button",
|
|
291
305
|
{
|
|
292
306
|
type: "button",
|
|
293
307
|
"data-flag-action": a,
|
|
294
|
-
onClick:
|
|
295
|
-
className:
|
|
308
|
+
onClick: s,
|
|
309
|
+
className: ie,
|
|
296
310
|
children: r
|
|
297
311
|
},
|
|
298
312
|
a
|
|
299
313
|
);
|
|
300
|
-
const
|
|
314
|
+
const se = /* @__PURE__ */ e(
|
|
301
315
|
"button",
|
|
302
316
|
{
|
|
303
317
|
type: "button",
|
|
304
|
-
"data-flag-action":
|
|
318
|
+
"data-flag-action": s ? a : void 0,
|
|
305
319
|
"data-flag-hover": a,
|
|
306
|
-
className:
|
|
320
|
+
className: ie,
|
|
307
321
|
children: r
|
|
308
322
|
},
|
|
309
323
|
a
|
|
310
324
|
);
|
|
311
|
-
return typeof l == "string" ? /* @__PURE__ */ e(je, { label: l, side: "bottom", children:
|
|
312
|
-
/* @__PURE__ */ e(G.Trigger, { asChild: !0, children:
|
|
325
|
+
return typeof l == "string" ? /* @__PURE__ */ e(je, { label: l, side: "bottom", children: se }, a) : /* @__PURE__ */ n(G, { children: [
|
|
326
|
+
/* @__PURE__ */ e(G.Trigger, { asChild: !0, children: se }),
|
|
313
327
|
/* @__PURE__ */ e(
|
|
314
328
|
G.Content,
|
|
315
329
|
{
|
|
316
330
|
side: "bottom",
|
|
317
331
|
align: "start",
|
|
318
332
|
size: "sm",
|
|
319
|
-
headerAction:
|
|
333
|
+
headerAction: s && (S != null && S[a]) ? /* @__PURE__ */ e(
|
|
320
334
|
Ue,
|
|
321
335
|
{
|
|
322
336
|
icon: /* @__PURE__ */ e(ra, {}),
|
|
@@ -324,7 +338,7 @@ const ga = {
|
|
|
324
338
|
background: "surface",
|
|
325
339
|
size: "sm",
|
|
326
340
|
"aria-label": S[a],
|
|
327
|
-
onClick:
|
|
341
|
+
onClick: s
|
|
328
342
|
}
|
|
329
343
|
) : void 0,
|
|
330
344
|
children: l
|
|
@@ -332,14 +346,14 @@ const ga = {
|
|
|
332
346
|
)
|
|
333
347
|
] }, a);
|
|
334
348
|
}, y = [];
|
|
335
|
-
|
|
349
|
+
$ && y.push(
|
|
336
350
|
ae(
|
|
337
351
|
"unpaid",
|
|
338
352
|
/* @__PURE__ */ e(
|
|
339
353
|
Ke,
|
|
340
354
|
{
|
|
341
355
|
state: "debt",
|
|
342
|
-
amount:
|
|
356
|
+
amount: z / 100,
|
|
343
357
|
currency: pe,
|
|
344
358
|
locale: xe,
|
|
345
359
|
size: "md",
|
|
@@ -349,7 +363,7 @@ const ga = {
|
|
|
349
363
|
)
|
|
350
364
|
)
|
|
351
365
|
), I.forEach(({ key: a, count: r }) => {
|
|
352
|
-
const
|
|
366
|
+
const s = ga[a];
|
|
353
367
|
y.push(
|
|
354
368
|
ae(
|
|
355
369
|
a,
|
|
@@ -358,7 +372,7 @@ const ga = {
|
|
|
358
372
|
{
|
|
359
373
|
variant: va[a],
|
|
360
374
|
size: "md",
|
|
361
|
-
leading: /* @__PURE__ */ e(
|
|
375
|
+
leading: /* @__PURE__ */ e(s, { "aria-hidden": "true" }),
|
|
362
376
|
children: t(`patientSummaryCard.flag.${a}`, {
|
|
363
377
|
count: r,
|
|
364
378
|
defaultValue: ya[a]
|
|
@@ -386,12 +400,12 @@ const ga = {
|
|
|
386
400
|
weight: "strong",
|
|
387
401
|
onClick: J,
|
|
388
402
|
className: `${O} ds:no-underline`,
|
|
389
|
-
children: /* @__PURE__ */ e("span", { id:
|
|
403
|
+
children: /* @__PURE__ */ e("span", { id: _, children: Z })
|
|
390
404
|
}
|
|
391
405
|
) : /* @__PURE__ */ e(
|
|
392
406
|
"span",
|
|
393
407
|
{
|
|
394
|
-
id:
|
|
408
|
+
id: _,
|
|
395
409
|
className: `${O} ds:text-[color:var(--foreground)]`,
|
|
396
410
|
children: Z
|
|
397
411
|
}
|
|
@@ -431,12 +445,12 @@ const ga = {
|
|
|
431
445
|
defaultValue: "Family relations"
|
|
432
446
|
}) }),
|
|
433
447
|
/* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: T.map((a, r) => {
|
|
434
|
-
const
|
|
448
|
+
const s = !!a.relatedPatient.url && de(a.relatedPatient.url), l = t("patientSummaryCard.value.familyRelation", {
|
|
435
449
|
relation: a.relation,
|
|
436
450
|
name: a.relatedPatient.name,
|
|
437
451
|
defaultValue: "{{relation}}: {{name}}"
|
|
438
452
|
});
|
|
439
|
-
return
|
|
453
|
+
return s ? /* @__PURE__ */ e(
|
|
440
454
|
V,
|
|
441
455
|
{
|
|
442
456
|
href: a.relatedPatient.url,
|
|
@@ -459,12 +473,12 @@ const ga = {
|
|
|
459
473
|
label: a.label,
|
|
460
474
|
value: a.value,
|
|
461
475
|
icon: a.icon
|
|
462
|
-
})),
|
|
476
|
+
})), Ee = u ?? [
|
|
463
477
|
{ id: "contact", heading: "", fields: Fe }
|
|
464
|
-
],
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
).flatMap((a) => a.fields),
|
|
478
|
+
], _e = u ? m.visible : R, te = We(
|
|
479
|
+
Ee,
|
|
480
|
+
_e
|
|
481
|
+
).flatMap((a) => a.fields), ze = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${ee}`, children: [
|
|
468
482
|
Te,
|
|
469
483
|
te.length > 0 ? (
|
|
470
484
|
// Container-queried so the fields flow into two columns when the
|
|
@@ -505,14 +519,14 @@ const ga = {
|
|
|
505
519
|
) })
|
|
506
520
|
) : null,
|
|
507
521
|
we
|
|
508
|
-
] }), ne = x ? Pe :
|
|
522
|
+
] }), ne = x ? Pe : ze;
|
|
509
523
|
return /* @__PURE__ */ e(
|
|
510
524
|
"div",
|
|
511
525
|
{
|
|
512
526
|
ref: be,
|
|
513
527
|
role: "region",
|
|
514
|
-
"aria-label": x ||
|
|
515
|
-
"aria-labelledby": x ||
|
|
528
|
+
"aria-label": x || E ? Ne : void 0,
|
|
529
|
+
"aria-labelledby": x || E ? void 0 : _,
|
|
516
530
|
"aria-busy": x || void 0,
|
|
517
531
|
"data-component": "patient-summary-card",
|
|
518
532
|
"data-component-id": g,
|
|
@@ -530,4 +544,4 @@ export {
|
|
|
530
544
|
Ca as P,
|
|
531
545
|
ma as p
|
|
532
546
|
};
|
|
533
|
-
//# sourceMappingURL=patient-summary-card-
|
|
547
|
+
//# sourceMappingURL=patient-summary-card-CmEFflGS.js.map
|