@alfadocs/ui-kit 1.149.0 → 1.150.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/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-D-RNe-_n.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CE-i9j-s.js} +2 -2
- package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-BO31ZFQp.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-C9kWtC6m.js} +90 -78
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +213 -0
- package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-ynFqcw0S.js} +3 -3
- package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-Dx5VDREk.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-DiyJQcmA.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-Dx9_KIWA.js → calendar-appointment-editor-dialog-BfoEpFVx.js} +360 -356
- package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-DO506cJu.js} +4 -4
- package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-CyMTv2y3.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-X3aXbDTo.js} +2 -2
- package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-C8x8kPb4.js} +10 -10
- package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-Bpemmnpd.js} +4 -4
- package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
- package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-Cd0TBEhL.js} +2 -2
- package/dist/_chunks/{control-room-rail-BQvaYowi.js → control-room-rail-4W1MFY-g.js} +3 -3
- package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-Zws6CHhK.js} +3 -3
- package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
- package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
- package/dist/_chunks/feature-preview-switch-PKeLaFry.js +75 -0
- package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DzOCQBAO.js} +163 -178
- package/dist/_chunks/folder-CH9PJHou.js +36 -0
- package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-B_wMJ82X.js} +2 -2
- package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
- package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-BguRX8VC.js} +374 -341
- package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-BzGnlIjq.js} +2 -2
- package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
- package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-Om_yZvFG.js} +2 -2
- package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-YKnBzmwE.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-DERfQbp5.js} +5 -5
- package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-BUD0UbmT.js} +3 -3
- package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-DytaHdGw.js} +201 -200
- package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-7Werxl48.js} +126 -139
- package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BF3rakTQ.js} +2 -2
- package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-C1QQGPQf.js} +3 -3
- package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-CzEuCaqv.js} +3 -3
- package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-BMW4t57s.js} +2 -2
- package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CrjD5PYW.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-Kl1M0dtT.js} +3 -3
- package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-kdKbGQE6.js} +3 -3
- package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-CW0frsMv.js} +2 -2
- package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-54AFY6uy.js} +2 -2
- package/dist/_chunks/{rich-text-editor-eGdYDPK2.js → rich-text-editor-DCQEpaIv.js} +1398 -1280
- package/dist/_chunks/{task-editor-4zFL10oM.js → task-editor-CIHQQRtP.js} +219 -210
- package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-Bc_odkQN.js} +2 -2
- package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
- package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-CJBtqzMs.js} +337 -320
- package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
- package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
- package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-B6m47Jie.js} +44 -46
- package/dist/_chunks/{use-appointment-details-read-Bl1DHXQ2.js → use-appointment-details-read-HVHbR0Zl.js} +769 -745
- package/dist/agent-catalog.json +15 -1
- package/dist/appointment-editor-panel/index.js +4 -4
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/appointment-format.d.ts +4 -0
- package/dist/components/_shared/patient-field-row.d.ts +5 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +5 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +3 -0
- package/dist/components/appointment-details-panel/index.js +2 -2
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/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/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +7 -0
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
- package/dist/components/feature-preview-switch/index.d.ts +2 -0
- package/dist/components/feature-preview-switch/index.js +5 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +20 -0
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +8 -0
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +9 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +4 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts +15 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +12 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-legacy.css +51 -4
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +8 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +8 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +10 -1
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +11 -2
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +10 -1
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +10 -1
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +8 -2
- package/dist/i18n/locales/it.d.ts +19 -10
- package/dist/i18n/locales/it.js +20 -11
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +8 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +8 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +10 -1
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +10 -1
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +10 -1
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +8 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +10 -1
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +8 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +8 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +8 -2
- package/dist/index.js +775 -773
- package/dist/locales/ar.json +10 -1
- package/dist/locales/de.json +10 -1
- package/dist/locales/el.json +10 -1
- package/dist/locales/en.json +11 -2
- package/dist/locales/es.json +10 -1
- package/dist/locales/fr.json +10 -1
- package/dist/locales/hi.json +10 -1
- package/dist/locales/it.json +20 -11
- package/dist/locales/ja.json +10 -1
- package/dist/locales/nl.json +10 -1
- package/dist/locales/pl.json +10 -1
- package/dist/locales/pt.json +10 -1
- package/dist/locales/ro.json +10 -1
- package/dist/locales/ru.json +10 -1
- package/dist/locales/sq.json +10 -1
- package/dist/locales/sv.json +10 -1
- package/dist/locales/tr.json +10 -1
- package/dist/locales/zh.json +10 -1
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +5 -1
- package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
- package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
- package/dist/_chunks/folder-BghC8_S2.js +0 -20
- package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as A, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C } from "react";
|
|
3
|
+
import { c as l } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as E } from "react-i18next";
|
|
5
5
|
import { c as I } from "./createLucideIcon-DhHxpK9K.js";
|
|
6
6
|
import { C as k } from "./check-DrFSN__t.js";
|
|
7
|
-
import { C as
|
|
8
|
-
import { F as
|
|
9
|
-
import { A as
|
|
7
|
+
import { C as L } from "./calendar-clock-hbObjfGY.js";
|
|
8
|
+
import { F as R } from "./file-text-5yv6r2ls.js";
|
|
9
|
+
import { A as _ } from "./arrow-up-right-C2v_MKsK.js";
|
|
10
10
|
import { A as S } from "./arrow-down-left-DECv-dJt.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v1.22.0 - ISC
|
|
@@ -14,7 +14,7 @@ import { A as S } from "./arrow-down-left-DECv-dJt.js";
|
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
17
|
+
const F = [
|
|
18
18
|
[
|
|
19
19
|
"path",
|
|
20
20
|
{
|
|
@@ -25,7 +25,7 @@ const _ = [
|
|
|
25
25
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
26
26
|
["path", { d: "M9 9h.01", key: "1q5me6" }],
|
|
27
27
|
["path", { d: "M15 15h.01", key: "lqbp3k" }]
|
|
28
|
-
],
|
|
28
|
+
], U = I("badge-percent", F), D = {
|
|
29
29
|
debt: "debt",
|
|
30
30
|
credit: "credit",
|
|
31
31
|
"to-invoice": "toInvoice",
|
|
@@ -34,26 +34,26 @@ const _ = [
|
|
|
34
34
|
discount: "discount"
|
|
35
35
|
}, M = {
|
|
36
36
|
debt: S,
|
|
37
|
-
credit:
|
|
38
|
-
"to-invoice":
|
|
39
|
-
"to-deliver":
|
|
37
|
+
credit: _,
|
|
38
|
+
"to-invoice": R,
|
|
39
|
+
"to-deliver": L,
|
|
40
40
|
settled: k,
|
|
41
|
-
discount:
|
|
42
|
-
},
|
|
41
|
+
discount: U
|
|
42
|
+
}, V = {
|
|
43
43
|
debt: "−",
|
|
44
44
|
credit: "+",
|
|
45
45
|
"to-invoice": "",
|
|
46
46
|
"to-deliver": "",
|
|
47
47
|
settled: "",
|
|
48
48
|
discount: "−"
|
|
49
|
-
},
|
|
49
|
+
}, j = {
|
|
50
50
|
debt: -1,
|
|
51
51
|
credit: 1,
|
|
52
52
|
"to-invoice": 1,
|
|
53
53
|
"to-deliver": 1,
|
|
54
54
|
settled: 1,
|
|
55
55
|
discount: -1
|
|
56
|
-
},
|
|
56
|
+
}, q = "EUR", B = l(
|
|
57
57
|
[
|
|
58
58
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
59
59
|
"ds:rounded-[var(--radius-full)] ds:border",
|
|
@@ -110,7 +110,7 @@ const _ = [
|
|
|
110
110
|
{ state: "settled", class: "ds:font-medium" }
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
|
-
), G =
|
|
113
|
+
), G = l("ds:shrink-0 ds:[&>svg]:block", {
|
|
114
114
|
variants: {
|
|
115
115
|
size: {
|
|
116
116
|
sm: "ds:[&>svg]:size-2.5",
|
|
@@ -125,49 +125,51 @@ const _ = [
|
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
defaultVariants: { size: "md", directional: !1 }
|
|
128
|
-
}), P =
|
|
128
|
+
}), O = "ds:!bg-muted ds:!text-muted-foreground ds:!border-[color:var(--border)]", P = C(
|
|
129
129
|
({
|
|
130
130
|
state: e,
|
|
131
|
-
amount:
|
|
132
|
-
currency: r =
|
|
133
|
-
locale:
|
|
131
|
+
amount: u,
|
|
132
|
+
currency: r = q,
|
|
133
|
+
locale: m,
|
|
134
134
|
size: t = "md",
|
|
135
|
-
showLabel:
|
|
136
|
-
label:
|
|
137
|
-
showIcon:
|
|
135
|
+
showLabel: f = !1,
|
|
136
|
+
label: v,
|
|
137
|
+
showIcon: g = !0,
|
|
138
|
+
tone: o = "state",
|
|
138
139
|
className: p,
|
|
139
|
-
"aria-label":
|
|
140
|
-
...
|
|
141
|
-
},
|
|
142
|
-
const { t:
|
|
140
|
+
"aria-label": b,
|
|
141
|
+
...h
|
|
142
|
+
}, x) => {
|
|
143
|
+
const { t: a, i18n: y } = E("ui"), d = m ?? y.language ?? "en", z = M[e], i = V[e], n = Math.abs(u), N = new Intl.NumberFormat(d, {
|
|
143
144
|
style: "currency",
|
|
144
145
|
currency: r,
|
|
145
146
|
signDisplay: "never"
|
|
146
|
-
}).format(
|
|
147
|
+
}).format(n), c = v ?? a(`financial.state.${D[e]}`), T = new Intl.NumberFormat(d, {
|
|
147
148
|
style: "currency",
|
|
148
149
|
currency: r,
|
|
149
150
|
signDisplay: e === "debt" ? "always" : "auto"
|
|
150
|
-
}).format(
|
|
151
|
-
state:
|
|
152
|
-
amount:
|
|
151
|
+
}).format(n * j[e]), w = b ?? a("financial.aria.label", {
|
|
152
|
+
state: c,
|
|
153
|
+
amount: T
|
|
153
154
|
});
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ A(
|
|
155
156
|
"span",
|
|
156
157
|
{
|
|
157
|
-
ref:
|
|
158
|
+
ref: x,
|
|
158
159
|
role: "img",
|
|
159
|
-
"aria-label":
|
|
160
|
+
"aria-label": w,
|
|
160
161
|
"data-component": "transaction-chip",
|
|
161
162
|
"data-state": e,
|
|
162
|
-
|
|
163
|
+
"data-tone": o === "neutral" ? "neutral" : void 0,
|
|
164
|
+
className: B({
|
|
163
165
|
state: e,
|
|
164
166
|
size: t,
|
|
165
167
|
bold: e !== "settled",
|
|
166
|
-
className: p
|
|
168
|
+
className: [o === "neutral" ? O : "", p].filter(Boolean).join(" ")
|
|
167
169
|
}),
|
|
168
|
-
...
|
|
170
|
+
...h,
|
|
169
171
|
children: [
|
|
170
|
-
|
|
172
|
+
g && /* @__PURE__ */ s(
|
|
171
173
|
"span",
|
|
172
174
|
{
|
|
173
175
|
"aria-hidden": "true",
|
|
@@ -175,10 +177,10 @@ const _ = [
|
|
|
175
177
|
size: t,
|
|
176
178
|
directional: e === "debt" || e === "credit"
|
|
177
179
|
}),
|
|
178
|
-
children: /* @__PURE__ */ s(
|
|
180
|
+
children: /* @__PURE__ */ s(z, {})
|
|
179
181
|
}
|
|
180
182
|
),
|
|
181
|
-
|
|
183
|
+
f && /* @__PURE__ */ s("span", { "aria-hidden": "true", className: "type-eyebrow", children: c }),
|
|
182
184
|
i && /* @__PURE__ */ s(
|
|
183
185
|
"span",
|
|
184
186
|
{
|
|
@@ -192,7 +194,7 @@ const _ = [
|
|
|
192
194
|
{
|
|
193
195
|
"aria-hidden": "true",
|
|
194
196
|
className: "ds:[font-variant-numeric:var(--font-feature-tabular)]",
|
|
195
|
-
children:
|
|
197
|
+
children: N
|
|
196
198
|
}
|
|
197
199
|
)
|
|
198
200
|
]
|
|
@@ -204,4 +206,4 @@ P.displayName = "TransactionChip";
|
|
|
204
206
|
export {
|
|
205
207
|
P as T
|
|
206
208
|
};
|
|
207
|
-
//# sourceMappingURL=transaction-chip-
|
|
209
|
+
//# sourceMappingURL=transaction-chip-6jToArJn.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
|
|
|
5
5
|
import { u as D } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { u as B } from "./index-Bze5jCG_.js";
|
|
7
7
|
import { S as U } from "./search-input-CRAMo1CA.js";
|
|
8
|
-
import { P as G } from "./panel-header-
|
|
8
|
+
import { P as G } from "./panel-header-DTc5OFUg.js";
|
|
9
9
|
import { u as Q } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
10
|
import { F as W } from "./file-text-5yv6r2ls.js";
|
|
11
11
|
const Y = {
|
|
@@ -371,4 +371,4 @@ export {
|
|
|
371
371
|
ae as T,
|
|
372
372
|
Y as t
|
|
373
373
|
};
|
|
374
|
-
//# sourceMappingURL=transcript-panel-
|
|
374
|
+
//# sourceMappingURL=transcript-panel-Dc0fK4WO.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as z, useRef as L } from "react";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as B } from "react-i18next";
|
|
5
5
|
import { B as n } from "./badge-BUk4RjTS.js";
|
|
6
|
-
import { M as
|
|
7
|
-
import { C as S, S as
|
|
6
|
+
import { M as f } from "./money-OE6_oDPH.js";
|
|
7
|
+
import { C as S, S as v } from "./skeleton-tTWJpvAq.js";
|
|
8
8
|
import { T as E } from "./tag-BNlcEJfE.js";
|
|
9
|
-
const
|
|
9
|
+
const h = "type-label ds:text-[color:var(--muted-foreground)]", b = g(
|
|
10
10
|
[
|
|
11
11
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
12
12
|
"ds:py-[var(--spacing-xs)]",
|
|
@@ -15,7 +15,7 @@ const g = "type-label ds:text-[color:var(--muted-foreground)]", x = N(
|
|
|
15
15
|
"ds:border-b ds:border-dashed ds:border-[color:var(--border)]",
|
|
16
16
|
"ds:last:border-b-0"
|
|
17
17
|
].join(" ")
|
|
18
|
-
), M =
|
|
18
|
+
), M = g(
|
|
19
19
|
[
|
|
20
20
|
"ds:mt-[var(--spacing-xs)] ds:flex ds:items-baseline ds:justify-between",
|
|
21
21
|
"ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)]",
|
|
@@ -30,15 +30,15 @@ const _ = z(
|
|
|
30
30
|
lines: t,
|
|
31
31
|
locale: i,
|
|
32
32
|
currency: c,
|
|
33
|
-
totalLabel:
|
|
33
|
+
totalLabel: x,
|
|
34
34
|
loading: d = !1,
|
|
35
|
-
loadingLines:
|
|
35
|
+
loadingLines: N = 2,
|
|
36
36
|
className: o,
|
|
37
37
|
...m
|
|
38
38
|
}, p) => {
|
|
39
|
-
const { t:
|
|
39
|
+
const { t: r } = B("ui"), u = L(!1);
|
|
40
40
|
d && (u.current = !0);
|
|
41
|
-
const
|
|
41
|
+
const y = u.current ? S : "", R = t.length > 0 && t.every((e) => e.priceCents !== void 0), w = t.reduce(
|
|
42
42
|
(e, a) => e + (a.priceCents ?? 0),
|
|
43
43
|
0
|
|
44
44
|
);
|
|
@@ -56,9 +56,9 @@ const _ = z(
|
|
|
56
56
|
{
|
|
57
57
|
"aria-hidden": "true",
|
|
58
58
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0",
|
|
59
|
-
children: Array.from({ length: Math.max(1,
|
|
59
|
+
children: Array.from({ length: Math.max(1, N) }, (e, a) => /* @__PURE__ */ s("li", { className: b(), children: /* @__PURE__ */ l("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
60
60
|
/* @__PURE__ */ s(
|
|
61
|
-
|
|
61
|
+
v,
|
|
62
62
|
{
|
|
63
63
|
variant: "text",
|
|
64
64
|
size: "sm",
|
|
@@ -67,7 +67,7 @@ const _ = z(
|
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ s(
|
|
70
|
-
|
|
70
|
+
v,
|
|
71
71
|
{
|
|
72
72
|
variant: "text",
|
|
73
73
|
size: "sm",
|
|
@@ -80,7 +80,7 @@ const _ = z(
|
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
}
|
|
83
|
-
) : /* @__PURE__ */
|
|
83
|
+
) : /* @__PURE__ */ l(
|
|
84
84
|
"div",
|
|
85
85
|
{
|
|
86
86
|
ref: p,
|
|
@@ -92,19 +92,19 @@ const _ = z(
|
|
|
92
92
|
/* @__PURE__ */ s(
|
|
93
93
|
"ul",
|
|
94
94
|
{
|
|
95
|
-
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${
|
|
95
|
+
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${y}`.trim(),
|
|
96
96
|
children: t.map((e) => {
|
|
97
|
-
const a = e.phases ?? [],
|
|
98
|
-
return /* @__PURE__ */
|
|
97
|
+
const a = e.phases ?? [], T = k(e), C = e.billing === "reversed", j = a.length > 0;
|
|
98
|
+
return /* @__PURE__ */ l(
|
|
99
99
|
"li",
|
|
100
100
|
{
|
|
101
101
|
"data-treatment-receipt-line": "",
|
|
102
|
-
className:
|
|
102
|
+
className: b(),
|
|
103
103
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ l("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
|
|
105
|
+
/* @__PURE__ */ l("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm", children: [
|
|
106
106
|
e.name,
|
|
107
|
-
e.code ? /* @__PURE__ */ s("span", { className: `${
|
|
107
|
+
e.code ? /* @__PURE__ */ s("span", { className: `${h} ds:tabular-nums`, children: e.code }) : null,
|
|
108
108
|
e.elementsLabel ? /* @__PURE__ */ s(
|
|
109
109
|
E,
|
|
110
110
|
{
|
|
@@ -112,10 +112,24 @@ const _ = z(
|
|
|
112
112
|
variant: "info",
|
|
113
113
|
label: e.elementsLabel
|
|
114
114
|
}
|
|
115
|
+
) : null,
|
|
116
|
+
e.done ? /* @__PURE__ */ s(n, { variant: "success", size: "sm", withDot: !0, children: r("treatmentReceipt.done") }) : null,
|
|
117
|
+
T ? /* @__PURE__ */ s(n, { variant: "neutral", size: "sm", children: r("treatmentReceipt.billed") }) : null,
|
|
118
|
+
C ? /* @__PURE__ */ l(
|
|
119
|
+
n,
|
|
120
|
+
{
|
|
121
|
+
variant: "warning",
|
|
122
|
+
size: "sm",
|
|
123
|
+
title: r("treatmentReceipt.billReversed"),
|
|
124
|
+
children: [
|
|
125
|
+
r("treatmentReceipt.unbilled"),
|
|
126
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: `, ${r("treatmentReceipt.billReversed")}` })
|
|
127
|
+
]
|
|
128
|
+
}
|
|
115
129
|
) : null
|
|
116
130
|
] }),
|
|
117
131
|
e.priceCents !== void 0 ? /* @__PURE__ */ s(
|
|
118
|
-
|
|
132
|
+
f,
|
|
119
133
|
{
|
|
120
134
|
value: e.priceCents,
|
|
121
135
|
locale: i,
|
|
@@ -125,25 +139,9 @@ const _ = z(
|
|
|
125
139
|
}
|
|
126
140
|
) : null
|
|
127
141
|
] }),
|
|
128
|
-
j ? /* @__PURE__ */
|
|
129
|
-
a.
|
|
130
|
-
|
|
131
|
-
}) }) : null,
|
|
132
|
-
e.done ? /* @__PURE__ */ s(n, { variant: "success", size: "sm", withDot: !0, children: l("treatmentReceipt.done") }) : null,
|
|
133
|
-
f ? /* @__PURE__ */ s(n, { variant: "neutral", size: "sm", children: l("treatmentReceipt.billed") }) : null,
|
|
134
|
-
v ? /* @__PURE__ */ r(
|
|
135
|
-
n,
|
|
136
|
-
{
|
|
137
|
-
variant: "warning",
|
|
138
|
-
size: "sm",
|
|
139
|
-
title: l("treatmentReceipt.billReversed"),
|
|
140
|
-
children: [
|
|
141
|
-
l("treatmentReceipt.unbilled"),
|
|
142
|
-
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: `, ${l("treatmentReceipt.billReversed")}` })
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
) : null
|
|
146
|
-
] }) : null
|
|
142
|
+
j ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: a.length > 0 ? /* @__PURE__ */ s("span", { className: h, children: r("treatmentReceipt.phases", {
|
|
143
|
+
phases: a.join(", ")
|
|
144
|
+
}) }) : null }) : null
|
|
147
145
|
]
|
|
148
146
|
},
|
|
149
147
|
e.id
|
|
@@ -151,12 +149,12 @@ const _ = z(
|
|
|
151
149
|
})
|
|
152
150
|
}
|
|
153
151
|
),
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children:
|
|
152
|
+
R ? /* @__PURE__ */ l("div", { "data-treatment-receipt-total": "", className: M(), children: [
|
|
153
|
+
/* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: x ?? r("treatmentReceipt.total") }),
|
|
156
154
|
/* @__PURE__ */ s(
|
|
157
|
-
|
|
155
|
+
f,
|
|
158
156
|
{
|
|
159
|
-
value:
|
|
157
|
+
value: w,
|
|
160
158
|
locale: i,
|
|
161
159
|
currency: c,
|
|
162
160
|
decimals: "muted",
|
|
@@ -174,4 +172,4 @@ export {
|
|
|
174
172
|
_ as T,
|
|
175
173
|
k as i
|
|
176
174
|
};
|
|
177
|
-
//# sourceMappingURL=treatment-receipt-
|
|
175
|
+
//# sourceMappingURL=treatment-receipt-B6m47Jie.js.map
|