@alfadocs/ui-kit 1.0.0 → 1.2.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-DaL80uqL.js → actions-cell-renderer-ClGCSQnA.js} +600 -565
- package/dist/_chunks/{ai-consent-banner-BXD7W6FI.js → ai-consent-banner-DKgFfSzc.js} +2 -2
- package/dist/_chunks/{alert-Cxaqd-QO.js → alert-DS22ha1n.js} +103 -98
- package/dist/_chunks/{annotation-marker-qt5R9WZX.js → annotation-marker-CsUJGZjQ.js} +7 -5
- package/dist/_chunks/{audio-recorder-BjnB7V8n.js → audio-recorder-sRsGS-0V.js} +2 -2
- package/dist/_chunks/{booking-DSOK-bnR.js → booking-D8fCzcUd.js} +2 -2
- package/dist/_chunks/{care-plan-card-BrwhyIJI.js → care-plan-card-DjjVnBYz.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DWEdCQM3.js → care-plan-entry-card-BVhpvd-P.js} +2 -2
- package/dist/_chunks/{collapsible-BrnRiCC6.js → collapsible-CGL9ontS.js} +65 -61
- package/dist/_chunks/{document-preview-DXsCEj4U.js → document-preview-DAczwybt.js} +2 -2
- package/dist/_chunks/{document-scanner-cS_ispQs.js → document-scanner-BRYIc3A-.js} +2 -2
- package/dist/_chunks/{entity-summary-BILN4wEG.js → entity-summary-BS6n7Iah.js} +2 -2
- package/dist/_chunks/{face-scheme-CjQAHvSP.js → face-scheme-Cou2efl7.js} +2 -2
- package/dist/_chunks/{file-manager-B9LZzT5E.js → file-manager-CNSLiuLo.js} +2 -2
- package/dist/_chunks/{freemium-paywall-Dr2342_S.js → freemium-paywall-DsT7MaLd.js} +2 -2
- package/dist/_chunks/link-cell-renderer-_DlEZHLI.js +772 -0
- package/dist/_chunks/{marketplace-app-shell-pCHBp8bo.js → marketplace-app-shell-DQC9Gpm0.js} +2 -2
- package/dist/_chunks/{muscle-scheme-kgCX5qfO.js → muscle-scheme-yfzP_xoJ.js} +2 -2
- package/dist/_chunks/notes-panel-CCz0J140.js +370 -0
- package/dist/_chunks/{patient-details-UmNcxL0c.js → patient-details-l7pnsUq9.js} +2 -2
- package/dist/_chunks/{patient-search-vtRTSdf6.js → patient-search-H54Utav2.js} +2 -2
- package/dist/_chunks/{patient-table-QEVsFvwq.js → patient-table-DXk0wW8Q.js} +243 -239
- package/dist/_chunks/payment-automation-upsell-C4LIw1iQ.js +305 -0
- package/dist/_chunks/{payment-form-BoGxEmGn.js → payment-form-CyKT20xZ.js} +2 -2
- package/dist/_chunks/{payment-request-card-CygO1anM.js → payment-request-card-CN30J6yM.js} +107 -138
- package/dist/_chunks/{pdf-viewer-CcOuR2wj.js → pdf-viewer-DHg8SfUI.js} +2 -2
- package/dist/_chunks/{practice-results-yKbwIxqa.js → practice-results-qvJRkvLn.js} +2 -2
- package/dist/_chunks/receipt-euro-C6k4Gzhr.js +36 -0
- package/dist/_chunks/{reviews-panel-DmOjvmyH.js → reviews-panel-BfUJhx3m.js} +2 -2
- package/dist/_chunks/{sign-document-cH9CboWB.js → sign-document-D70TEUw9.js} +2 -2
- package/dist/_chunks/{signature-request-BzXTV_RH.js → signature-request-BlNCXpRN.js} +2 -2
- package/dist/_chunks/sparkline-DJtZBe7O.js +501 -0
- package/dist/_chunks/{warning-stack-DKeAfj5M.js → warning-stack-IVf0oxh2.js} +2 -2
- package/dist/_chunks/{workflow-map-SIfAhmWz.js → workflow-map-ByyBYj6Y.js} +2 -2
- package/dist/agent-catalog.json +237 -7
- package/dist/agent-i18n/en.json +17 -5
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/alert/alert.d.ts +20 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/annotation-marker/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/data-table/filters/select-filter.d.ts +6 -0
- package/dist/components/data-table/hooks/use-presentational-aria-fix.d.ts +19 -0
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- 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/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +45 -2
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/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/reviews-panel/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/sparkline/index.d.ts +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +60 -3
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +13 -1
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.js +3 -0
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.js +3 -0
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.js +3 -0
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.js +3 -0
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.js +3 -0
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.js +3 -0
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.js +3 -0
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.js +3 -0
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.js +3 -0
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.js +3 -0
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.js +3 -0
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.js +3 -0
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.js +3 -0
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.js +3 -0
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.js +3 -0
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.js +3 -0
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.js +3 -0
- package/dist/index.js +974 -1268
- package/dist/locales/ar.json +3 -0
- package/dist/locales/de.json +3 -0
- package/dist/locales/el.json +3 -0
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +3 -0
- package/dist/locales/fr.json +3 -0
- package/dist/locales/hi.json +3 -0
- package/dist/locales/it.json +3 -0
- package/dist/locales/ja.json +3 -0
- package/dist/locales/nl.json +3 -0
- package/dist/locales/pl.json +3 -0
- package/dist/locales/pt.json +3 -0
- package/dist/locales/ro.json +3 -0
- package/dist/locales/ru.json +3 -0
- package/dist/locales/sq.json +3 -0
- package/dist/locales/sv.json +3 -0
- package/dist/locales/tr.json +3 -0
- package/dist/locales/zh.json +3 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +5 -0
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/link-cell-renderer-Bt-mXeQY.js +0 -728
- package/dist/_chunks/notes-panel-CTcOLLVo.js +0 -324
- package/dist/_chunks/sparkline-DcXqRZoq.js +0 -283
|
@@ -1,54 +1,25 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as B, useId as G, useMemo as z } from "react";
|
|
3
|
+
import { c as K } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as M } from "react-i18next";
|
|
5
5
|
import { B as O } from "./badge-DCOqV9mI.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as D } from "./card-DPmk26CL.js";
|
|
7
7
|
import { D as d } from "./description-list-ClNLdRMy.js";
|
|
8
8
|
import { K as Y, a as H } from "./key-value-pair-LHKfDT_9.js";
|
|
9
|
-
import { T as j, A as
|
|
9
|
+
import { T as j, A as ae } from "./transaction-chip-DJCstquX.js";
|
|
10
10
|
import { u as W } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { H as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import { F as
|
|
11
|
+
import { H as te } from "./hash-CSQ9SChR.js";
|
|
12
|
+
import { C as re } from "./calendar-days-BGWklvE-.js";
|
|
13
|
+
import { R as ne, C as $ } from "./receipt-euro-C6k4Gzhr.js";
|
|
14
|
+
import { F as J } from "./file-text-5yv6r2ls.js";
|
|
15
15
|
import { U as ie } from "./user-B12p7bVF.js";
|
|
16
16
|
import { U as le } from "./user-cog-BTn98Arm.js";
|
|
17
|
-
import { e as
|
|
17
|
+
import { e as Q } from "./entity-card-9_62gY7l.js";
|
|
18
18
|
import { A as de } from "./arrow-up-right-C2v_MKsK.js";
|
|
19
19
|
import { L as oe } from "./link-CPb_pZPr.js";
|
|
20
20
|
import { C as se } from "./calendar-clock-hbObjfGY.js";
|
|
21
21
|
import { i as ce } from "./is-safe-url-DkETxeHz.js";
|
|
22
|
-
|
|
23
|
-
* @license lucide-react v1.22.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
const me = [
|
|
29
|
-
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
30
|
-
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
31
|
-
], $ = J("credit-card", me);
|
|
32
|
-
/**
|
|
33
|
-
* @license lucide-react v1.22.0 - ISC
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the ISC license.
|
|
36
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/
|
|
38
|
-
const ue = [
|
|
39
|
-
[
|
|
40
|
-
"path",
|
|
41
|
-
{ d: "M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0", key: "16zdw4" }
|
|
42
|
-
],
|
|
43
|
-
[
|
|
44
|
-
"path",
|
|
45
|
-
{
|
|
46
|
-
d: "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",
|
|
47
|
-
key: "ycz6yz"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
["path", { d: "M8 12h5", key: "1g6qi8" }]
|
|
51
|
-
], pe = J("receipt-euro", ue), he = {
|
|
22
|
+
const me = {
|
|
52
23
|
id: "payment-card",
|
|
53
24
|
capabilities: [],
|
|
54
25
|
state: {
|
|
@@ -78,22 +49,22 @@ const ue = [
|
|
|
78
49
|
description: "Sourced from the id prop. Addresses a specific card."
|
|
79
50
|
}
|
|
80
51
|
}
|
|
81
|
-
},
|
|
52
|
+
}, ue = {
|
|
82
53
|
full: "success",
|
|
83
54
|
partial: "warning",
|
|
84
55
|
credit: "info",
|
|
85
56
|
proforma: "neutral",
|
|
86
57
|
other: "neutral"
|
|
87
|
-
},
|
|
58
|
+
}, pe = "EUR", fe = {
|
|
88
59
|
full: "Full payment",
|
|
89
60
|
partial: "Partial payment",
|
|
90
61
|
credit: "Credit note",
|
|
91
62
|
proforma: "Proforma",
|
|
92
63
|
other: "Other"
|
|
93
|
-
},
|
|
64
|
+
}, he = {
|
|
94
65
|
incoming: "Incoming",
|
|
95
66
|
outgoing: "Outgoing"
|
|
96
|
-
},
|
|
67
|
+
}, ye = K("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
97
68
|
variants: {
|
|
98
69
|
surface: {
|
|
99
70
|
flat: "",
|
|
@@ -102,7 +73,7 @@ const ue = [
|
|
|
102
73
|
},
|
|
103
74
|
defaultVariants: { surface: "elevated" }
|
|
104
75
|
});
|
|
105
|
-
function
|
|
76
|
+
function w(a, i, r) {
|
|
106
77
|
try {
|
|
107
78
|
return new Intl.NumberFormat(r, {
|
|
108
79
|
style: "currency",
|
|
@@ -112,7 +83,7 @@ function T(a, i, r) {
|
|
|
112
83
|
return (a / 100).toFixed(2);
|
|
113
84
|
}
|
|
114
85
|
}
|
|
115
|
-
function
|
|
86
|
+
function ve(a, i) {
|
|
116
87
|
const r = new Date(a);
|
|
117
88
|
if (Number.isNaN(r.getTime())) return a;
|
|
118
89
|
try {
|
|
@@ -125,10 +96,10 @@ function Ce(a, i) {
|
|
|
125
96
|
return a;
|
|
126
97
|
}
|
|
127
98
|
}
|
|
128
|
-
function
|
|
99
|
+
function be(a, i, r, p) {
|
|
129
100
|
return p ? "settled" : r != null && r > 0 ? "debt" : a === "proforma" && (i == null || i === 0) ? "to-invoice" : "settled";
|
|
130
101
|
}
|
|
131
|
-
const
|
|
102
|
+
const ge = B(
|
|
132
103
|
({
|
|
133
104
|
id: a,
|
|
134
105
|
number: i,
|
|
@@ -136,24 +107,24 @@ const xe = M(
|
|
|
136
107
|
type: p,
|
|
137
108
|
direction: v,
|
|
138
109
|
grossCents: n,
|
|
139
|
-
paidCents:
|
|
110
|
+
paidCents: f,
|
|
140
111
|
unpaidCents: m,
|
|
141
|
-
writtenOff:
|
|
112
|
+
writtenOff: q = !1,
|
|
142
113
|
relations: l,
|
|
143
114
|
lineItems: b,
|
|
144
|
-
locale:
|
|
145
|
-
currency: u =
|
|
146
|
-
surface:
|
|
147
|
-
"aria-label":
|
|
148
|
-
className:
|
|
115
|
+
locale: L,
|
|
116
|
+
currency: u = pe,
|
|
117
|
+
surface: P = "elevated",
|
|
118
|
+
"aria-label": k,
|
|
119
|
+
className: h,
|
|
149
120
|
...S
|
|
150
|
-
},
|
|
151
|
-
const { t, i18n:
|
|
121
|
+
}, x) => {
|
|
122
|
+
const { t, i18n: A } = M(), R = G(), o = L ?? A.language ?? "en", E = k ?? t("paymentCard.regionLabel", {
|
|
152
123
|
number: i,
|
|
153
124
|
defaultValue: "Payment {{number}}"
|
|
154
|
-
}), N =
|
|
125
|
+
}), N = be(p, f, m, q), U = N === "debt" && m != null ? m : n ?? f ?? m ?? 0;
|
|
155
126
|
W(
|
|
156
|
-
|
|
127
|
+
me,
|
|
157
128
|
{
|
|
158
129
|
getNumber: () => i,
|
|
159
130
|
getState: () => N
|
|
@@ -161,33 +132,33 @@ const xe = M(
|
|
|
161
132
|
a
|
|
162
133
|
);
|
|
163
134
|
const g = t(`paymentCard.type.${p}`, {
|
|
164
|
-
defaultValue:
|
|
165
|
-
}),
|
|
166
|
-
defaultValue:
|
|
135
|
+
defaultValue: fe[p]
|
|
136
|
+
}), T = v === "incoming" ? /* @__PURE__ */ e(ae, { "aria-hidden": "true" }) : /* @__PURE__ */ e(de, { "aria-hidden": "true" }), C = t(`paymentCard.direction.${v}`, {
|
|
137
|
+
defaultValue: he[v]
|
|
167
138
|
}), y = [];
|
|
168
139
|
y.push({
|
|
169
140
|
key: "number",
|
|
170
|
-
icon: /* @__PURE__ */ e(
|
|
141
|
+
icon: /* @__PURE__ */ e(te, { "aria-hidden": "true" }),
|
|
171
142
|
label: t("paymentCard.label.number", "Number"),
|
|
172
143
|
value: i
|
|
173
144
|
}), r && y.push({
|
|
174
145
|
key: "date",
|
|
175
|
-
icon: /* @__PURE__ */ e(
|
|
146
|
+
icon: /* @__PURE__ */ e(re, { "aria-hidden": "true" }),
|
|
176
147
|
label: t("paymentCard.label.date", "Date"),
|
|
177
|
-
value:
|
|
148
|
+
value: ve(r, o)
|
|
178
149
|
}), y.push({
|
|
179
150
|
key: "type",
|
|
180
|
-
icon: /* @__PURE__ */ e(
|
|
151
|
+
icon: /* @__PURE__ */ e(ne, { "aria-hidden": "true" }),
|
|
181
152
|
label: t("paymentCard.label.type", "Type"),
|
|
182
|
-
value: /* @__PURE__ */ e(O, { variant:
|
|
153
|
+
value: /* @__PURE__ */ e(O, { variant: ue[p], children: g })
|
|
183
154
|
}), y.push({
|
|
184
155
|
key: "direction",
|
|
185
|
-
icon:
|
|
156
|
+
icon: T,
|
|
186
157
|
label: t("paymentCard.label.direction", "Direction"),
|
|
187
158
|
value: C
|
|
188
159
|
}), l != null && l.carePlanNumber && y.push({
|
|
189
160
|
key: "carePlan",
|
|
190
|
-
icon: /* @__PURE__ */ e(
|
|
161
|
+
icon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
|
|
191
162
|
label: t("paymentCard.label.carePlan", "Care plan"),
|
|
192
163
|
value: l.carePlanNumber
|
|
193
164
|
}), l != null && l.patientName && y.push({
|
|
@@ -201,21 +172,21 @@ const xe = M(
|
|
|
201
172
|
label: t("paymentCard.label.operator", "Operator"),
|
|
202
173
|
value: l.operatorName
|
|
203
174
|
});
|
|
204
|
-
const
|
|
205
|
-
() => n != null ?
|
|
175
|
+
const V = z(
|
|
176
|
+
() => n != null ? w(n, u, o) : void 0,
|
|
206
177
|
[n, u, o]
|
|
207
|
-
),
|
|
208
|
-
() =>
|
|
209
|
-
[
|
|
210
|
-
),
|
|
211
|
-
() => m != null ?
|
|
178
|
+
), F = z(
|
|
179
|
+
() => f != null ? w(f, u, o) : void 0,
|
|
180
|
+
[f, u, o]
|
|
181
|
+
), I = z(
|
|
182
|
+
() => m != null ? w(m, u, o) : void 0,
|
|
212
183
|
[m, u, o]
|
|
213
|
-
),
|
|
184
|
+
), X = V != null || F != null || I != null, Z = !!b && b.length > 0, _ = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
214
185
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
215
186
|
/* @__PURE__ */ e(
|
|
216
187
|
"h3",
|
|
217
188
|
{
|
|
218
|
-
id:
|
|
189
|
+
id: R,
|
|
219
190
|
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
220
191
|
children: t("paymentCard.heading", {
|
|
221
192
|
number: i,
|
|
@@ -227,7 +198,7 @@ const xe = M(
|
|
|
227
198
|
j,
|
|
228
199
|
{
|
|
229
200
|
state: N,
|
|
230
|
-
amount:
|
|
201
|
+
amount: U / 100,
|
|
231
202
|
currency: u,
|
|
232
203
|
locale: o,
|
|
233
204
|
size: "lg"
|
|
@@ -243,21 +214,21 @@ const xe = M(
|
|
|
243
214
|
},
|
|
244
215
|
s.key
|
|
245
216
|
)) }),
|
|
246
|
-
|
|
247
|
-
|
|
217
|
+
X ? /* @__PURE__ */ c(d, { layout: "inline", density: "compact", labelWidth: "fixed", children: [
|
|
218
|
+
V != null ? /* @__PURE__ */ c(d.Row, { children: [
|
|
248
219
|
/* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.gross", "Gross total") }),
|
|
249
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
220
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: V })
|
|
250
221
|
] }) : null,
|
|
251
|
-
|
|
222
|
+
F != null ? /* @__PURE__ */ c(d.Row, { children: [
|
|
252
223
|
/* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.paid", "Paid") }),
|
|
253
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
224
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: F })
|
|
254
225
|
] }) : null,
|
|
255
|
-
|
|
226
|
+
I != null ? /* @__PURE__ */ c(d.Row, { children: [
|
|
256
227
|
/* @__PURE__ */ e(d.Term, { children: t("paymentCard.label.unpaid", "Outstanding") }),
|
|
257
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
228
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: I })
|
|
258
229
|
] }) : null
|
|
259
230
|
] }) : null,
|
|
260
|
-
|
|
231
|
+
Z ? /* @__PURE__ */ c(
|
|
261
232
|
"section",
|
|
262
233
|
{
|
|
263
234
|
"aria-label": t("paymentCard.lineItems.heading", "Line items"),
|
|
@@ -270,14 +241,14 @@ const xe = M(
|
|
|
270
241
|
layout: "inline",
|
|
271
242
|
density: "compact",
|
|
272
243
|
labelWidth: "auto",
|
|
273
|
-
children: b.map((s,
|
|
244
|
+
children: b.map((s, ee) => /* @__PURE__ */ c(d.Row, { children: [
|
|
274
245
|
/* @__PURE__ */ e(d.Term, { children: s.vatPercentage != null ? t("paymentCard.lineItems.withVat", {
|
|
275
246
|
description: s.description,
|
|
276
247
|
vat: s.vatPercentage,
|
|
277
248
|
defaultValue: "{{description}} (VAT {{vat}}%)"
|
|
278
249
|
}) : s.description }),
|
|
279
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
280
|
-
] }, `${s.description}-${
|
|
250
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: w(s.amountCents, u, o) })
|
|
251
|
+
] }, `${s.description}-${ee}`))
|
|
281
252
|
}
|
|
282
253
|
)
|
|
283
254
|
]
|
|
@@ -287,25 +258,25 @@ const xe = M(
|
|
|
287
258
|
return /* @__PURE__ */ e(
|
|
288
259
|
"div",
|
|
289
260
|
{
|
|
290
|
-
ref:
|
|
261
|
+
ref: x,
|
|
291
262
|
role: "region",
|
|
292
|
-
"aria-label":
|
|
293
|
-
"aria-labelledby":
|
|
263
|
+
"aria-label": E,
|
|
264
|
+
"aria-labelledby": R,
|
|
294
265
|
"data-component": "payment-card",
|
|
295
266
|
"data-component-id": a,
|
|
296
267
|
"data-state": N,
|
|
297
268
|
"data-type": p,
|
|
298
269
|
"data-direction": v,
|
|
299
270
|
id: a,
|
|
300
|
-
className:
|
|
271
|
+
className: ye({ surface: P, className: h }),
|
|
301
272
|
...S,
|
|
302
|
-
children:
|
|
273
|
+
children: P === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: _ }) }) : /* @__PURE__ */ e("div", { className: Q({ surface: "flat" }), children: _ })
|
|
303
274
|
}
|
|
304
275
|
);
|
|
305
276
|
}
|
|
306
277
|
);
|
|
307
|
-
|
|
308
|
-
const
|
|
278
|
+
ge.displayName = "PaymentCard";
|
|
279
|
+
const Ce = {
|
|
309
280
|
id: "payment-request-card",
|
|
310
281
|
capabilities: [],
|
|
311
282
|
state: {
|
|
@@ -329,21 +300,21 @@ const Pe = {
|
|
|
329
300
|
description: "Sourced from the id prop. Addresses a specific request card."
|
|
330
301
|
}
|
|
331
302
|
}
|
|
332
|
-
},
|
|
303
|
+
}, Ne = {
|
|
333
304
|
new: "info",
|
|
334
305
|
authorization_requested: "warning",
|
|
335
306
|
authorized: "info",
|
|
336
307
|
paid: "success",
|
|
337
308
|
failed: "error",
|
|
338
309
|
cancelled: "neutral"
|
|
339
|
-
},
|
|
310
|
+
}, Pe = "EUR", xe = {
|
|
340
311
|
new: "New",
|
|
341
312
|
authorization_requested: "Authorization requested",
|
|
342
313
|
authorized: "Authorized",
|
|
343
314
|
paid: "Paid",
|
|
344
315
|
failed: "Failed",
|
|
345
316
|
cancelled: "Cancelled"
|
|
346
|
-
},
|
|
317
|
+
}, Ae = K("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
347
318
|
variants: {
|
|
348
319
|
surface: {
|
|
349
320
|
flat: "",
|
|
@@ -352,7 +323,7 @@ const Pe = {
|
|
|
352
323
|
},
|
|
353
324
|
defaultVariants: { surface: "elevated" }
|
|
354
325
|
});
|
|
355
|
-
function
|
|
326
|
+
function Re(a, i) {
|
|
356
327
|
const r = new Date(a);
|
|
357
328
|
if (Number.isNaN(r.getTime())) return a;
|
|
358
329
|
try {
|
|
@@ -365,7 +336,7 @@ function ke(a, i) {
|
|
|
365
336
|
return a;
|
|
366
337
|
}
|
|
367
338
|
}
|
|
368
|
-
const
|
|
339
|
+
const Te = B(
|
|
369
340
|
({
|
|
370
341
|
id: a,
|
|
371
342
|
title: i,
|
|
@@ -373,49 +344,49 @@ const De = M(
|
|
|
373
344
|
amountCents: p,
|
|
374
345
|
dueDateIso: v,
|
|
375
346
|
status: n,
|
|
376
|
-
paymentUrl:
|
|
347
|
+
paymentUrl: f,
|
|
377
348
|
carePlanNumber: m,
|
|
378
|
-
locale:
|
|
379
|
-
currency: l =
|
|
349
|
+
locale: q,
|
|
350
|
+
currency: l = Pe,
|
|
380
351
|
surface: b = "elevated",
|
|
381
|
-
"aria-label":
|
|
352
|
+
"aria-label": L,
|
|
382
353
|
className: u,
|
|
383
|
-
...
|
|
384
|
-
},
|
|
385
|
-
const { t:
|
|
354
|
+
...P
|
|
355
|
+
}, k) => {
|
|
356
|
+
const { t: h, i18n: S } = M(), x = G(), t = q ?? S.language ?? "en", A = i ?? h("paymentRequestCard.heading", "Payment request"), R = L ?? A;
|
|
386
357
|
W(
|
|
387
|
-
|
|
358
|
+
Ce,
|
|
388
359
|
{ getStatus: () => n },
|
|
389
360
|
a
|
|
390
361
|
);
|
|
391
|
-
const o =
|
|
392
|
-
defaultValue:
|
|
393
|
-
}),
|
|
362
|
+
const o = h(`paymentRequestCard.status.${n}`, {
|
|
363
|
+
defaultValue: xe[n]
|
|
364
|
+
}), E = n === "paid" ? "settled" : n === "failed" || n === "cancelled" ? "debt" : "to-invoice", U = (n === "new" || n === "authorization_requested" || n === "authorized") && !!f && ce(f), g = [];
|
|
394
365
|
g.push({
|
|
395
366
|
key: "status",
|
|
396
367
|
icon: /* @__PURE__ */ e($, { "aria-hidden": "true" }),
|
|
397
|
-
label:
|
|
398
|
-
value: /* @__PURE__ */ e(O, { variant:
|
|
368
|
+
label: h("paymentRequestCard.label.status", "Status"),
|
|
369
|
+
value: /* @__PURE__ */ e(O, { variant: Ne[n], children: o })
|
|
399
370
|
}), v && g.push({
|
|
400
371
|
key: "dueDate",
|
|
401
372
|
icon: /* @__PURE__ */ e(se, { "aria-hidden": "true" }),
|
|
402
|
-
label:
|
|
403
|
-
value:
|
|
373
|
+
label: h("paymentRequestCard.label.dueDate", "Due date"),
|
|
374
|
+
value: Re(v, t)
|
|
404
375
|
}), m && g.push({
|
|
405
376
|
key: "carePlan",
|
|
406
|
-
icon: /* @__PURE__ */ e(
|
|
407
|
-
label:
|
|
377
|
+
icon: /* @__PURE__ */ e(J, { "aria-hidden": "true" }),
|
|
378
|
+
label: h("paymentRequestCard.label.carePlan", "Care plan"),
|
|
408
379
|
value: m
|
|
409
380
|
});
|
|
410
|
-
const
|
|
381
|
+
const T = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
411
382
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
412
383
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
413
384
|
/* @__PURE__ */ e(
|
|
414
385
|
"h3",
|
|
415
386
|
{
|
|
416
|
-
id:
|
|
387
|
+
id: x,
|
|
417
388
|
className: "type-title-card ds:m-0 ds:text-[color:var(--foreground)]",
|
|
418
|
-
children:
|
|
389
|
+
children: A
|
|
419
390
|
}
|
|
420
391
|
),
|
|
421
392
|
r ? /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: r }) : null
|
|
@@ -423,7 +394,7 @@ const De = M(
|
|
|
423
394
|
/* @__PURE__ */ e("span", { className: "ds:ms-auto ds:shrink-0", children: /* @__PURE__ */ e(
|
|
424
395
|
j,
|
|
425
396
|
{
|
|
426
|
-
state:
|
|
397
|
+
state: E,
|
|
427
398
|
amount: p / 100,
|
|
428
399
|
currency: l,
|
|
429
400
|
locale: t,
|
|
@@ -440,33 +411,31 @@ const De = M(
|
|
|
440
411
|
},
|
|
441
412
|
C.key
|
|
442
413
|
)) }),
|
|
443
|
-
|
|
414
|
+
U ? /* @__PURE__ */ e("div", { className: "ds:flex", children: /* @__PURE__ */ e(oe, { href: f, external: !0, startIcon: /* @__PURE__ */ e($, {}), children: h("paymentRequestCard.pay", "Pay now") }) }) : null
|
|
444
415
|
] });
|
|
445
416
|
return /* @__PURE__ */ e(
|
|
446
417
|
"div",
|
|
447
418
|
{
|
|
448
|
-
ref:
|
|
419
|
+
ref: k,
|
|
449
420
|
role: "region",
|
|
450
|
-
"aria-label":
|
|
451
|
-
"aria-labelledby":
|
|
421
|
+
"aria-label": R,
|
|
422
|
+
"aria-labelledby": x,
|
|
452
423
|
"data-component": "payment-request-card",
|
|
453
424
|
"data-component-id": a,
|
|
454
425
|
"data-status": n,
|
|
455
426
|
id: a,
|
|
456
|
-
className:
|
|
457
|
-
...
|
|
458
|
-
children: b === "elevated" ? /* @__PURE__ */ e(
|
|
427
|
+
className: Ae({ surface: b, className: u }),
|
|
428
|
+
...P,
|
|
429
|
+
children: b === "elevated" ? /* @__PURE__ */ e(D, { variant: "elevated", children: /* @__PURE__ */ e(D.Body, { children: T }) }) : /* @__PURE__ */ e("div", { className: Q({ surface: "flat" }), children: T })
|
|
459
430
|
}
|
|
460
431
|
);
|
|
461
432
|
}
|
|
462
433
|
);
|
|
463
|
-
|
|
434
|
+
Te.displayName = "PaymentRequestCard";
|
|
464
435
|
export {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
Pe as b,
|
|
470
|
-
he as p
|
|
436
|
+
ge as P,
|
|
437
|
+
Te as a,
|
|
438
|
+
Ce as b,
|
|
439
|
+
me as p
|
|
471
440
|
};
|
|
472
|
-
//# sourceMappingURL=payment-request-card-
|
|
441
|
+
//# sourceMappingURL=payment-request-card-CN30J6yM.js.map
|
|
@@ -6,7 +6,7 @@ import { useTranslation as me } from "react-i18next";
|
|
|
6
6
|
import * as re from "@radix-ui/react-popover";
|
|
7
7
|
import De from "pdfjs-dist/legacy/build/pdf.worker.min.mjs?url";
|
|
8
8
|
import { S as _e } from "./spinner-hbwuKwMf.js";
|
|
9
|
-
import { A as ke } from "./alert-
|
|
9
|
+
import { A as ke } from "./alert-DS22ha1n.js";
|
|
10
10
|
import { u as qe } from "./registry-DvAUVLHh.js";
|
|
11
11
|
import { X as Be } from "./x-B5YnXwCz.js";
|
|
12
12
|
import { C as He } from "./chevron-left-B8cOyH-V.js";
|
|
@@ -1002,4 +1002,4 @@ export {
|
|
|
1002
1002
|
nt as P,
|
|
1003
1003
|
$e as p
|
|
1004
1004
|
};
|
|
1005
|
-
//# sourceMappingURL=pdf-viewer-
|
|
1005
|
+
//# sourceMappingURL=pdf-viewer-DHg8SfUI.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as m, Fragment as Ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as Ze, useState as pe, useRef as _, useMemo as D, useImperativeHandle as Qe, useCallback as K, 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-DS22ha1n.js";
|
|
6
6
|
import { A as ke } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { B as G } from "./button-CPGiR_bH.js";
|
|
8
8
|
import { D as $ } from "./dropdown-menu-DU-Hrf33.js";
|
|
@@ -1606,4 +1606,4 @@ export {
|
|
|
1606
1606
|
Ct as P,
|
|
1607
1607
|
rt as p
|
|
1608
1608
|
};
|
|
1609
|
-
//# sourceMappingURL=practice-results-
|
|
1609
|
+
//# sourceMappingURL=practice-results-qvJRkvLn.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { c as a } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.22.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 e = [
|
|
9
|
+
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
10
|
+
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
11
|
+
], o = a("credit-card", e);
|
|
12
|
+
/**
|
|
13
|
+
* @license lucide-react v1.22.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
const t = [
|
|
19
|
+
[
|
|
20
|
+
"path",
|
|
21
|
+
{ d: "M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0", key: "16zdw4" }
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
d: "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",
|
|
27
|
+
key: "ycz6yz"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
["path", { d: "M8 12h5", key: "1g6qi8" }]
|
|
31
|
+
], l = a("receipt-euro", t);
|
|
32
|
+
export {
|
|
33
|
+
o as C,
|
|
34
|
+
l as R
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=receipt-euro-C6k4Gzhr.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as E } from "react-i18next";
|
|
|
5
5
|
import { u as X } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { R as k } from "./rating-BYbUowdK.js";
|
|
7
7
|
import { C as A } from "./card-DPmk26CL.js";
|
|
8
|
-
import { C as Y, b as Z, a as ee } from "./collapsible-
|
|
8
|
+
import { C as Y, b as Z, a as ee } from "./collapsible-CGL9ontS.js";
|
|
9
9
|
import { D as l } from "./description-list-ClNLdRMy.js";
|
|
10
10
|
import { E as te } from "./empty-state-CrLsi0XI.js";
|
|
11
11
|
import { S as T } from "./skeleton-CZbwyJAA.js";
|
|
@@ -556,4 +556,4 @@ export {
|
|
|
556
556
|
me as R,
|
|
557
557
|
ie as r
|
|
558
558
|
};
|
|
559
|
-
//# sourceMappingURL=reviews-panel-
|
|
559
|
+
//# sourceMappingURL=reviews-panel-BfUJhx3m.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as ce, useId as le, useMemo as M, useRef as R, useState as x, useEffect as V, useCallback as l, useImperativeHandle as ue } from "react";
|
|
3
3
|
import { c as i } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as me } from "react-i18next";
|
|
5
|
-
import { P as ge } from "./pdf-viewer-
|
|
5
|
+
import { P as ge } from "./pdf-viewer-DHg8SfUI.js";
|
|
6
6
|
import { S as pe } from "./signature-capture-D6ut9_IR.js";
|
|
7
7
|
import { u as fe } from "./registry-DvAUVLHh.js";
|
|
8
8
|
import { C as Z } from "./circle-check-BN6rz4NV.js";
|
|
@@ -367,4 +367,4 @@ export {
|
|
|
367
367
|
je as S,
|
|
368
368
|
ve as s
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=sign-document-
|
|
370
|
+
//# sourceMappingURL=sign-document-D70TEUw9.js.map
|
|
@@ -8,7 +8,7 @@ import { C as K } from "./checkbox-BuZ1u__2.js";
|
|
|
8
8
|
import { a as fe } from "./whatsapp-button-BIy6NaJK.js";
|
|
9
9
|
import { S as Q } from "./select-BW5ecXlX.js";
|
|
10
10
|
import { S as xe } from "./switch-OILsBLWo.js";
|
|
11
|
-
import { A as y } from "./alert-
|
|
11
|
+
import { A as y } from "./alert-DS22ha1n.js";
|
|
12
12
|
import { I as Re } from "./info-tip-Bxk3w6UM.js";
|
|
13
13
|
import { S as be } from "./separator-CYU_bGFn.js";
|
|
14
14
|
import { A as Y } from "./avatar-BNQNhoyL.js";
|
|
@@ -400,4 +400,4 @@ Oe.displayName = "SignatureRequestModal";
|
|
|
400
400
|
export {
|
|
401
401
|
Oe as S
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=signature-request-
|
|
403
|
+
//# sourceMappingURL=signature-request-BlNCXpRN.js.map
|