@alfadocs/ui-kit 1.4.17 → 1.6.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/{booking-CGKof8QU.js → booking-D84O6H2X.js} +553 -546
- package/dist/_chunks/{care-plan-card-C83Hb9EE.js → care-plan-card-CehAU7F_.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CHMPSTCz.js → care-plan-entry-card-ChWRMfMw.js} +2 -2
- package/dist/_chunks/{periodontal-chart-brakjj0s.js → periodontal-chart-C0nNQKKK.js} +121 -121
- package/dist/_chunks/practice-profile-hero-Bdd0bFqC.js +187 -0
- package/dist/_chunks/{practice-results-DWUZRm2x.js → practice-results-CKoLD_x5.js} +220 -206
- package/dist/_chunks/tooth-data-DR8Kdnup.js +903 -0
- package/dist/_chunks/tooth-finding-palette-vqC-D2Ye.js +708 -0
- package/dist/_chunks/tooth-scheme-BPXE1_3N.js +2051 -0
- package/dist/agent-catalog.json +497 -56
- package/dist/agent-i18n/en.json +29 -11
- package/dist/components/booking/booking-types.d.ts +9 -0
- 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/index.d.ts +2 -0
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.d.ts +4 -0
- package/dist/components/practice-profile-hero/index.js +6 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.agent.d.ts +4 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +60 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +15 -1
- package/dist/components/tooth-finding-palette/index.d.ts +4 -0
- package/dist/components/tooth-finding-palette/index.js +9 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.agent.d.ts +4 -0
- package/dist/components/tooth-finding-palette/tooth-finding-palette.d.ts +89 -0
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +57 -30
- package/dist/components/tooth-scheme/tooth-data.d.ts +279 -10
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +30 -3
- package/dist/host-compat.css +1 -4
- package/dist/i18n/locales/ar.d.ts +41 -1
- package/dist/i18n/locales/ar.js +42 -2
- package/dist/i18n/locales/de.d.ts +41 -1
- package/dist/i18n/locales/de.js +42 -2
- package/dist/i18n/locales/el.d.ts +41 -1
- package/dist/i18n/locales/el.js +42 -2
- package/dist/i18n/locales/en.d.ts +41 -1
- package/dist/i18n/locales/en.js +42 -2
- package/dist/i18n/locales/es.d.ts +41 -1
- package/dist/i18n/locales/es.js +42 -2
- package/dist/i18n/locales/fr.d.ts +41 -1
- package/dist/i18n/locales/fr.js +42 -2
- package/dist/i18n/locales/hi.d.ts +41 -1
- package/dist/i18n/locales/hi.js +42 -2
- package/dist/i18n/locales/it.d.ts +41 -1
- package/dist/i18n/locales/it.js +42 -2
- package/dist/i18n/locales/ja.d.ts +41 -1
- package/dist/i18n/locales/ja.js +42 -2
- package/dist/i18n/locales/nl.d.ts +41 -1
- package/dist/i18n/locales/nl.js +42 -2
- package/dist/i18n/locales/pl.d.ts +41 -1
- package/dist/i18n/locales/pl.js +42 -2
- package/dist/i18n/locales/pt.d.ts +41 -1
- package/dist/i18n/locales/pt.js +42 -2
- package/dist/i18n/locales/ro.d.ts +41 -1
- package/dist/i18n/locales/ro.js +42 -2
- package/dist/i18n/locales/ru.d.ts +41 -1
- package/dist/i18n/locales/ru.js +42 -2
- package/dist/i18n/locales/sq.d.ts +41 -1
- package/dist/i18n/locales/sq.js +42 -2
- package/dist/i18n/locales/sv.d.ts +41 -1
- package/dist/i18n/locales/sv.js +42 -2
- package/dist/i18n/locales/tr.d.ts +41 -1
- package/dist/i18n/locales/tr.js +42 -2
- package/dist/i18n/locales/zh.d.ts +41 -1
- package/dist/i18n/locales/zh.js +42 -2
- package/dist/index.js +561 -525
- package/dist/locales/ar.json +42 -2
- package/dist/locales/de.json +42 -2
- package/dist/locales/el.json +42 -2
- package/dist/locales/en.json +42 -2
- package/dist/locales/es.json +42 -2
- package/dist/locales/fr.json +42 -2
- package/dist/locales/hi.json +42 -2
- package/dist/locales/it.json +42 -2
- package/dist/locales/ja.json +42 -2
- package/dist/locales/nl.json +42 -2
- package/dist/locales/pl.json +42 -2
- package/dist/locales/pt.json +42 -2
- package/dist/locales/ro.json +42 -2
- package/dist/locales/ru.json +42 -2
- package/dist/locales/sq.json +42 -2
- package/dist/locales/sv.json +42 -2
- package/dist/locales/tr.json +42 -2
- package/dist/locales/zh.json +42 -2
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/tooth-data-BwuoKFf4.js +0 -660
- package/dist/_chunks/tooth-scheme-s0ipC0-Z.js +0 -1483
|
@@ -3,9 +3,9 @@ import { forwardRef as et, useRef as Re, useState as tt, useCallback as O, useMe
|
|
|
3
3
|
import { c as qe } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as rt } from "react-i18next";
|
|
5
5
|
import { u as nt } from "./registry-DvAUVLHh.js";
|
|
6
|
-
import { P as ve,
|
|
7
|
-
import { P as
|
|
8
|
-
const
|
|
6
|
+
import { P as ve, i as ye, h as at, g as it, f as ot, Y as lt } from "./tooth-data-DR8Kdnup.js";
|
|
7
|
+
import { P as je } from "./periodontal-chart-card-Bz-ebteE.js";
|
|
8
|
+
const j = {
|
|
9
9
|
type: "string",
|
|
10
10
|
description: "FDI tooth id ('11'–'48' permanent, '51'–'85' primary)."
|
|
11
11
|
}, $ = {
|
|
@@ -30,7 +30,7 @@ const F = {
|
|
|
30
30
|
items: {
|
|
31
31
|
type: "object",
|
|
32
32
|
properties: {
|
|
33
|
-
fdi:
|
|
33
|
+
fdi: j,
|
|
34
34
|
status: {
|
|
35
35
|
enum: ["present", "missing", "implant"],
|
|
36
36
|
description: "Structural status of the tooth."
|
|
@@ -109,7 +109,7 @@ const pt = {
|
|
|
109
109
|
argsSchema: {
|
|
110
110
|
type: "object",
|
|
111
111
|
properties: {
|
|
112
|
-
fdi:
|
|
112
|
+
fdi: j,
|
|
113
113
|
site: $,
|
|
114
114
|
field: { enum: ["pocketDepthMm", "recessionMm"] }
|
|
115
115
|
},
|
|
@@ -127,7 +127,7 @@ const pt = {
|
|
|
127
127
|
argsType: "{ fdi: string }",
|
|
128
128
|
argsSchema: {
|
|
129
129
|
type: "object",
|
|
130
|
-
properties: { fdi:
|
|
130
|
+
properties: { fdi: j },
|
|
131
131
|
required: ["fdi"]
|
|
132
132
|
},
|
|
133
133
|
returns: "object | null",
|
|
@@ -164,7 +164,7 @@ const pt = {
|
|
|
164
164
|
argsType: "{ fdi: string; site: PeriodontalSiteId; mm: number }",
|
|
165
165
|
argsSchema: {
|
|
166
166
|
type: "object",
|
|
167
|
-
properties: { fdi:
|
|
167
|
+
properties: { fdi: j, site: $, mm: fe },
|
|
168
168
|
required: ["fdi", "site", "mm"]
|
|
169
169
|
},
|
|
170
170
|
idempotent: !0,
|
|
@@ -181,7 +181,7 @@ const pt = {
|
|
|
181
181
|
argsType: "{ fdi: string; site: PeriodontalSiteId; mm: number }",
|
|
182
182
|
argsSchema: {
|
|
183
183
|
type: "object",
|
|
184
|
-
properties: { fdi:
|
|
184
|
+
properties: { fdi: j, site: $, mm: fe },
|
|
185
185
|
required: ["fdi", "site", "mm"]
|
|
186
186
|
},
|
|
187
187
|
idempotent: !0,
|
|
@@ -197,7 +197,7 @@ const pt = {
|
|
|
197
197
|
argsSchema: {
|
|
198
198
|
type: "object",
|
|
199
199
|
properties: {
|
|
200
|
-
fdi:
|
|
200
|
+
fdi: j,
|
|
201
201
|
site: $,
|
|
202
202
|
value: { type: "boolean" }
|
|
203
203
|
},
|
|
@@ -216,7 +216,7 @@ const pt = {
|
|
|
216
216
|
argsSchema: {
|
|
217
217
|
type: "object",
|
|
218
218
|
properties: {
|
|
219
|
-
fdi:
|
|
219
|
+
fdi: j,
|
|
220
220
|
site: $,
|
|
221
221
|
value: { type: "boolean" }
|
|
222
222
|
},
|
|
@@ -235,7 +235,7 @@ const pt = {
|
|
|
235
235
|
argsSchema: {
|
|
236
236
|
type: "object",
|
|
237
237
|
properties: {
|
|
238
|
-
fdi:
|
|
238
|
+
fdi: j,
|
|
239
239
|
grade: { enum: [0, 1, 2, 3] }
|
|
240
240
|
},
|
|
241
241
|
required: ["fdi", "grade"]
|
|
@@ -252,7 +252,7 @@ const pt = {
|
|
|
252
252
|
argsType: "{ fdi: string; value: boolean }",
|
|
253
253
|
argsSchema: {
|
|
254
254
|
type: "object",
|
|
255
|
-
properties: { fdi:
|
|
255
|
+
properties: { fdi: j, value: { type: "boolean" } },
|
|
256
256
|
required: ["fdi", "value"]
|
|
257
257
|
},
|
|
258
258
|
idempotent: !0,
|
|
@@ -267,7 +267,7 @@ const pt = {
|
|
|
267
267
|
argsType: "{ fdi: string }",
|
|
268
268
|
argsSchema: {
|
|
269
269
|
type: "object",
|
|
270
|
-
properties: { fdi:
|
|
270
|
+
properties: { fdi: j },
|
|
271
271
|
required: ["fdi"]
|
|
272
272
|
},
|
|
273
273
|
idempotent: !0,
|
|
@@ -298,8 +298,8 @@ const pt = {
|
|
|
298
298
|
function Ae(s) {
|
|
299
299
|
return s === "buccal" ? be : mt;
|
|
300
300
|
}
|
|
301
|
-
const xe = 4,
|
|
302
|
-
function
|
|
301
|
+
const xe = 4, oe = 6, ht = 20, gt = 5;
|
|
302
|
+
function Fe(s, t = xe, h = oe) {
|
|
303
303
|
return s == null || !Number.isFinite(s) ? "normal" : s >= h ? "severe" : s >= t ? "moderate" : "normal";
|
|
304
304
|
}
|
|
305
305
|
const ft = {
|
|
@@ -332,9 +332,9 @@ function Oe(s) {
|
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
334
|
function _e(s, t) {
|
|
335
|
-
return t === "universal" ? at[s] ?? s : t === "palmer" ?
|
|
335
|
+
return t === "universal" ? at[s] ?? s : t === "palmer" ? it[s] ?? s : s;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function ie(s) {
|
|
338
338
|
const t = Math.round(s * 10) / 10;
|
|
339
339
|
return t === 0 ? 0 : t;
|
|
340
340
|
}
|
|
@@ -345,7 +345,7 @@ function Le(s) {
|
|
|
345
345
|
for (const P of Object.values(L.sites)) {
|
|
346
346
|
if (!P) continue;
|
|
347
347
|
const y = P.pocketDepthMm;
|
|
348
|
-
y == null || !Number.isFinite(y) || (d += 1, t += y, h += y + (P.recessionMm ?? 0), y >=
|
|
348
|
+
y == null || !Number.isFinite(y) || (d += 1, t += y, h += y + (P.recessionMm ?? 0), y >= oe && (S += 1), P.bleeding && (f += 1), P.plaque && (E += 1));
|
|
349
349
|
}
|
|
350
350
|
return d === 0 ? {
|
|
351
351
|
meanPocketDepthMm: null,
|
|
@@ -355,10 +355,10 @@ function Le(s) {
|
|
|
355
355
|
scoredSiteCount: 0,
|
|
356
356
|
deepPocketCount: 0
|
|
357
357
|
} : {
|
|
358
|
-
meanPocketDepthMm:
|
|
359
|
-
meanAttachmentLevelMm:
|
|
360
|
-
plaquePercent:
|
|
361
|
-
bleedingPercent:
|
|
358
|
+
meanPocketDepthMm: ie(t / d),
|
|
359
|
+
meanAttachmentLevelMm: ie(h / d),
|
|
360
|
+
plaquePercent: ie(E / d * 100),
|
|
361
|
+
bleedingPercent: ie(f / d * 100),
|
|
362
362
|
scoredSiteCount: d,
|
|
363
363
|
deepPocketCount: S
|
|
364
364
|
};
|
|
@@ -366,7 +366,7 @@ function Le(s) {
|
|
|
366
366
|
const Mt = [...ve, ...ye];
|
|
367
367
|
function kt(s, t) {
|
|
368
368
|
var L, P;
|
|
369
|
-
const h = (t == null ? void 0 : t.moderate) ?? xe, d = (t == null ? void 0 : t.severe) ??
|
|
369
|
+
const h = (t == null ? void 0 : t.moderate) ?? xe, d = (t == null ? void 0 : t.severe) ?? oe, f = /* @__PURE__ */ new Map();
|
|
370
370
|
Mt.forEach((y, C) => f.set(y, C));
|
|
371
371
|
const E = Object.keys(s).sort(
|
|
372
372
|
(y, C) => (f.get(y) ?? Number.MAX_SAFE_INTEGER) - (f.get(C) ?? Number.MAX_SAFE_INTEGER)
|
|
@@ -392,26 +392,26 @@ function kt(s, t) {
|
|
|
392
392
|
}
|
|
393
393
|
const G = C.implant ? "implant" : "present", q = [], Z = [], te = [], z = [];
|
|
394
394
|
let Y = null, X = null;
|
|
395
|
-
for (const M of
|
|
395
|
+
for (const M of je) {
|
|
396
396
|
const V = (L = C.sites) == null ? void 0 : L[M];
|
|
397
397
|
if (!V) continue;
|
|
398
398
|
const { pocketDepthMm: K, recessionMm: B, bleeding: b, plaque: H, suppuration: D } = V;
|
|
399
399
|
if (K != null && Number.isFinite(K)) {
|
|
400
400
|
Y = Y == null ? K : Math.max(Y, K);
|
|
401
|
-
const
|
|
402
|
-
|
|
401
|
+
const F = Fe(K, h, d);
|
|
402
|
+
F !== "normal" && q.push({ site: M, pocketDepthMm: K, severity: F });
|
|
403
403
|
}
|
|
404
404
|
B != null && Number.isFinite(B) && B > 0 && (X = X == null ? B : Math.max(X, B)), b && Z.push(M), H && te.push(M), D && z.push(M);
|
|
405
405
|
}
|
|
406
406
|
q.sort((M, V) => V.pocketDepthMm - M.pocketDepthMm);
|
|
407
|
-
const se = C.mobility != null && C.mobility >= 1 ? C.mobility : null,
|
|
407
|
+
const se = C.mobility != null && C.mobility >= 1 ? C.mobility : null, i = [];
|
|
408
408
|
if (C.furcation)
|
|
409
409
|
for (const M of ["buccal", "lingual"])
|
|
410
|
-
(P = C.furcation[M]) != null && P.some(Boolean) &&
|
|
410
|
+
(P = C.furcation[M]) != null && P.some(Boolean) && i.push(M);
|
|
411
411
|
const le = q.some(
|
|
412
412
|
(M) => M.severity === "severe"
|
|
413
413
|
) ? "severe" : q.length > 0 ? "moderate" : "normal";
|
|
414
|
-
(G === "implant" || q.length > 0 || Z.length > 0 || z.length > 0 || se != null ||
|
|
414
|
+
(G === "implant" || q.length > 0 || Z.length > 0 || z.length > 0 || se != null || i.length > 0) && S.push({
|
|
415
415
|
fdi: y,
|
|
416
416
|
status: G,
|
|
417
417
|
severity: le,
|
|
@@ -422,12 +422,12 @@ function kt(s, t) {
|
|
|
422
422
|
suppurationSites: z,
|
|
423
423
|
maxRecessionMm: X,
|
|
424
424
|
mobility: se,
|
|
425
|
-
furcation:
|
|
425
|
+
furcation: i
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
return S;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Ft(s = "permanent") {
|
|
431
431
|
const { upper: t, lower: h } = Oe(s), d = {};
|
|
432
432
|
for (const f of [...t, ...h]) d[f] = {};
|
|
433
433
|
return d;
|
|
@@ -436,7 +436,7 @@ function Ot(s) {
|
|
|
436
436
|
const t = [];
|
|
437
437
|
for (const [h, d] of Object.entries(s))
|
|
438
438
|
if (!(d.missing || !d.sites))
|
|
439
|
-
for (const f of
|
|
439
|
+
for (const f of je) {
|
|
440
440
|
const E = d.sites[f];
|
|
441
441
|
if (!E) continue;
|
|
442
442
|
const { pocketDepthMm: S, recessionMm: L, bleeding: P, suppuration: y } = E;
|
|
@@ -519,39 +519,39 @@ const Et = {
|
|
|
519
519
|
showCurves: y = !0,
|
|
520
520
|
showIndices: C = !0,
|
|
521
521
|
moderatePocketMm: G = xe,
|
|
522
|
-
severePocketMm: q =
|
|
522
|
+
severePocketMm: q = oe,
|
|
523
523
|
locale: Z,
|
|
524
524
|
"aria-label": te,
|
|
525
525
|
id: z,
|
|
526
526
|
className: Y,
|
|
527
527
|
...X
|
|
528
528
|
}, se) => {
|
|
529
|
-
const { t:
|
|
529
|
+
const { t: i, i18n: le } = rt(), ce = Z ?? le.language ?? "en", M = Re(null), V = s !== void 0, [K, B] = tt(
|
|
530
530
|
() => t ?? {}
|
|
531
531
|
), b = V ? s : K, H = d === "display", D = Re(b);
|
|
532
532
|
D.current = b;
|
|
533
|
-
const
|
|
533
|
+
const F = O(
|
|
534
534
|
(e) => {
|
|
535
535
|
D.current = e, V || B(e), h == null || h(e);
|
|
536
536
|
},
|
|
537
537
|
[V, h]
|
|
538
538
|
), re = O(
|
|
539
|
-
(e, r, a) =>
|
|
540
|
-
[
|
|
539
|
+
(e, r, a) => F(Pt(D.current, e, r, a)),
|
|
540
|
+
[F]
|
|
541
541
|
), Q = O(
|
|
542
|
-
(e, r) =>
|
|
543
|
-
[
|
|
542
|
+
(e, r) => F(St(D.current, e, r)),
|
|
543
|
+
[F]
|
|
544
544
|
), Ne = O(
|
|
545
545
|
(e) => {
|
|
546
546
|
const r = { ...D.current };
|
|
547
|
-
delete r[e],
|
|
547
|
+
delete r[e], F(r);
|
|
548
548
|
},
|
|
549
|
-
[
|
|
549
|
+
[F]
|
|
550
550
|
), Me = O(
|
|
551
551
|
(e, r, a) => {
|
|
552
|
-
var
|
|
552
|
+
var o, l;
|
|
553
553
|
try {
|
|
554
|
-
(l = (
|
|
554
|
+
(l = (o = M.current) == null ? void 0 : o.querySelector(
|
|
555
555
|
`[data-perio-input][data-fdi="${e}"][data-site="${r}"][data-field="${a}"]`
|
|
556
556
|
)) == null || l.focus();
|
|
557
557
|
} catch {
|
|
@@ -586,7 +586,7 @@ const Et = {
|
|
|
586
586
|
]
|
|
587
587
|
);
|
|
588
588
|
st(se, () => de, [de]), nt(pt, de, z);
|
|
589
|
-
const ke = Oe(E), $e = te ??
|
|
589
|
+
const ke = Oe(E), $e = te ?? i("periodontalChart.ariaLabel", "Periodontal chart"), ee = O(
|
|
590
590
|
(e) => {
|
|
591
591
|
try {
|
|
592
592
|
return new Intl.NumberFormat(ce, {
|
|
@@ -598,10 +598,10 @@ const Et = {
|
|
|
598
598
|
},
|
|
599
599
|
[ce]
|
|
600
600
|
), Ce = O(
|
|
601
|
-
(e) =>
|
|
601
|
+
(e) => i(`periodontalChart.site.${e}`, {
|
|
602
602
|
defaultValue: Et[e]
|
|
603
603
|
}),
|
|
604
|
-
[
|
|
604
|
+
[i]
|
|
605
605
|
), U = O(
|
|
606
606
|
(e) => _e(e, S),
|
|
607
607
|
[S]
|
|
@@ -610,7 +610,7 @@ const Et = {
|
|
|
610
610
|
{
|
|
611
611
|
"aria-hidden": "true",
|
|
612
612
|
className: "ds:text-[color:var(--muted-foreground)]",
|
|
613
|
-
children:
|
|
613
|
+
children: i("periodontalChart.cell.empty", "–")
|
|
614
614
|
}
|
|
615
615
|
), Ve = O((e) => {
|
|
616
616
|
var k;
|
|
@@ -620,36 +620,36 @@ const Et = {
|
|
|
620
620
|
if (a !== "ArrowLeft" && a !== "ArrowRight" && a !== "ArrowUp" && a !== "ArrowDown")
|
|
621
621
|
return;
|
|
622
622
|
e.preventDefault();
|
|
623
|
-
const
|
|
624
|
-
if (!
|
|
623
|
+
const o = M.current;
|
|
624
|
+
if (!o) return;
|
|
625
625
|
if (a === "ArrowUp" || a === "ArrowDown") {
|
|
626
|
-
const v = r.getAttribute("data-fdi"), A = r.getAttribute("data-site"), N = r.getAttribute("data-field") === "pocketDepthMm" ? "recessionMm" : "pocketDepthMm", _ =
|
|
626
|
+
const v = r.getAttribute("data-fdi"), A = r.getAttribute("data-site"), N = r.getAttribute("data-field") === "pocketDepthMm" ? "recessionMm" : "pocketDepthMm", _ = o.querySelector(
|
|
627
627
|
`[data-perio-input][data-fdi="${v}"][data-site="${A}"][data-field="${N}"]`
|
|
628
628
|
);
|
|
629
629
|
_ == null || _.focus(), _ == null || _.select();
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
632
|
const l = Array.from(
|
|
633
|
-
|
|
633
|
+
o.querySelectorAll("[data-perio-input]")
|
|
634
634
|
), p = l.indexOf(r);
|
|
635
635
|
if (p === -1) return;
|
|
636
636
|
const c = l[p + (a === "ArrowRight" ? 1 : -1)];
|
|
637
637
|
c == null || c.focus(), c == null || c.select();
|
|
638
638
|
}, []), T = "ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)] ds:text-center ds:border-b ds:border-[color:var(--border)]", W = "ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs)] ds:text-start ds:font-medium ds:border-b ds:border-[color:var(--border)] ds:whitespace-nowrap", Ke = (e, r, a) => {
|
|
639
639
|
var c, k, v;
|
|
640
|
-
const
|
|
640
|
+
const o = (v = (k = (c = b[e]) == null ? void 0 : c.sites) == null ? void 0 : k[r]) == null ? void 0 : v[a], l = a === "pocketDepthMm" ? Fe(o, G, q) : "normal", p = i(`periodontalChart.input.${a}`, {
|
|
641
641
|
tooth: U(e),
|
|
642
642
|
site: Ce(r),
|
|
643
643
|
defaultValue: a === "pocketDepthMm" ? "Tooth {{tooth}} {{site}} pocket depth, millimetres" : "Tooth {{tooth}} {{site}} recession, millimetres"
|
|
644
|
-
}), g = l === "severe" ?
|
|
645
|
-
return H ?
|
|
644
|
+
}), g = l === "severe" ? i("periodontalChart.flag.severe", "severe pocket") : l === "moderate" ? i("periodontalChart.flag.moderate", "moderate pocket") : "";
|
|
645
|
+
return H ? o == null || !Number.isFinite(o) ? /* @__PURE__ */ n("span", { className: "ds:inline-block ds:w-[3.5ch]", children: I }) : /* @__PURE__ */ m(
|
|
646
646
|
"span",
|
|
647
647
|
{
|
|
648
648
|
className: `ds:inline-block ds:w-[3.5ch] ds:tabular-nums ds:[font-variant-numeric:var(--font-feature-tabular)] ${Tt(
|
|
649
649
|
l
|
|
650
650
|
)}`,
|
|
651
651
|
children: [
|
|
652
|
-
/* @__PURE__ */ n("span", { children: ee(
|
|
652
|
+
/* @__PURE__ */ n("span", { children: ee(o) }),
|
|
653
653
|
g ? /* @__PURE__ */ m("span", { className: "ds:sr-only", children: [
|
|
654
654
|
" ",
|
|
655
655
|
g
|
|
@@ -668,7 +668,7 @@ const Et = {
|
|
|
668
668
|
"data-fdi": e,
|
|
669
669
|
"data-site": r,
|
|
670
670
|
"data-field": a,
|
|
671
|
-
value:
|
|
671
|
+
value: o == null ? "" : String(o),
|
|
672
672
|
onFocus: (A) => A.currentTarget.select(),
|
|
673
673
|
onChange: (A) => {
|
|
674
674
|
const x = A.target.value.trim();
|
|
@@ -691,12 +691,12 @@ const Et = {
|
|
|
691
691
|
);
|
|
692
692
|
}, He = (e, r, a) => {
|
|
693
693
|
var g, c, k;
|
|
694
|
-
const
|
|
694
|
+
const o = !!((k = (c = (g = b[e]) == null ? void 0 : g.sites) == null ? void 0 : c[r]) != null && k[a]), l = i(`periodontalChart.toggle.${a}`, {
|
|
695
695
|
tooth: U(e),
|
|
696
696
|
site: Ce(r),
|
|
697
697
|
defaultValue: a === "bleeding" ? "Tooth {{tooth}} {{site}} bleeding on probing" : "Tooth {{tooth}} {{site}} plaque"
|
|
698
698
|
}), p = a === "bleeding" ? "ds:accent-[var(--destructive)]" : "ds:accent-[var(--warning)]";
|
|
699
|
-
return H ?
|
|
699
|
+
return H ? o ? /* @__PURE__ */ n(
|
|
700
700
|
"span",
|
|
701
701
|
{
|
|
702
702
|
role: "img",
|
|
@@ -710,7 +710,7 @@ const Et = {
|
|
|
710
710
|
{
|
|
711
711
|
type: "checkbox",
|
|
712
712
|
disabled: f,
|
|
713
|
-
checked:
|
|
713
|
+
checked: o,
|
|
714
714
|
onChange: (v) => re(
|
|
715
715
|
e,
|
|
716
716
|
r,
|
|
@@ -722,13 +722,13 @@ const Et = {
|
|
|
722
722
|
] });
|
|
723
723
|
}, ze = (e, r) => {
|
|
724
724
|
var p;
|
|
725
|
-
const a = b[e],
|
|
726
|
-
if (a != null && a.missing ||
|
|
725
|
+
const a = b[e], o = bt(e, r);
|
|
726
|
+
if (a != null && a.missing || o === 0) return I;
|
|
727
727
|
const l = ((p = a == null ? void 0 : a.furcation) == null ? void 0 : p[r]) ?? [];
|
|
728
|
-
return /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Array.from({ length:
|
|
729
|
-
const k = !!l[c], v =
|
|
728
|
+
return /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Array.from({ length: o }, (g, c) => {
|
|
729
|
+
const k = !!l[c], v = i("periodontalChart.toggle.furcation", {
|
|
730
730
|
tooth: U(e),
|
|
731
|
-
side:
|
|
731
|
+
side: i(`periodontalChart.side.${r}`, {
|
|
732
732
|
defaultValue: r === "buccal" ? "buccal" : "lingual"
|
|
733
733
|
}),
|
|
734
734
|
n: c + 1,
|
|
@@ -764,7 +764,7 @@ const Et = {
|
|
|
764
764
|
onChange: (A) => {
|
|
765
765
|
var N;
|
|
766
766
|
const x = [...((N = a == null ? void 0 : a.furcation) == null ? void 0 : N[r]) ?? []];
|
|
767
|
-
for (; x.length <
|
|
767
|
+
for (; x.length < o; ) x.push(!1);
|
|
768
768
|
x[c] = A.target.checked, Q(e, {
|
|
769
769
|
furcation: { ...a == null ? void 0 : a.furcation, [r]: x }
|
|
770
770
|
});
|
|
@@ -777,30 +777,30 @@ const Et = {
|
|
|
777
777
|
c
|
|
778
778
|
);
|
|
779
779
|
}) });
|
|
780
|
-
}, ne = (e, r, a,
|
|
781
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
780
|
+
}, ne = (e, r, a, o, l) => /* @__PURE__ */ m("tr", { children: [
|
|
781
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i(r, a) }),
|
|
782
782
|
e.map((p) => {
|
|
783
783
|
var g;
|
|
784
|
-
return /* @__PURE__ */ n("td", { className: T, children: (g = b[p]) != null && g.missing ? I : /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Ae(
|
|
784
|
+
return /* @__PURE__ */ n("td", { className: T, children: (g = b[p]) != null && g.missing ? I : /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Ae(o).map((c) => /* @__PURE__ */ n("span", { children: Ke(p, c, l) }, c)) }) }, p);
|
|
785
785
|
})
|
|
786
|
-
] }), ae = (e, r, a,
|
|
787
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
786
|
+
] }), ae = (e, r, a, o, l) => /* @__PURE__ */ m("tr", { children: [
|
|
787
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i(r, a) }),
|
|
788
788
|
e.map((p) => {
|
|
789
789
|
var g;
|
|
790
|
-
return /* @__PURE__ */ n("td", { className: T, children: (g = b[p]) != null && g.missing ? I : /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Ae(
|
|
790
|
+
return /* @__PURE__ */ n("td", { className: T, children: (g = b[p]) != null && g.missing ? I : /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-2xs)]", children: Ae(o).map((c) => /* @__PURE__ */ n("span", { children: He(p, c, l) }, c)) }) }, p);
|
|
791
791
|
})
|
|
792
792
|
] }), we = (e, r) => /* @__PURE__ */ m("tr", { children: [
|
|
793
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
793
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i("periodontalChart.row.furcation", "Furcation") }),
|
|
794
794
|
e.map((a) => /* @__PURE__ */ n("td", { className: T, children: ze(a, r) }, a))
|
|
795
|
-
] }), Se = (e, r, a,
|
|
796
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
795
|
+
] }), Se = (e, r, a, o) => /* @__PURE__ */ m("tr", { children: [
|
|
796
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i(r, a) }),
|
|
797
797
|
e.map((l) => {
|
|
798
798
|
var c, k;
|
|
799
|
-
if (
|
|
799
|
+
if (o === "implant" && ((c = b[l]) != null && c.missing))
|
|
800
800
|
return /* @__PURE__ */ n("td", { className: T, children: I }, l);
|
|
801
|
-
const p = !!((k = b[l]) != null && k[
|
|
801
|
+
const p = !!((k = b[l]) != null && k[o]), g = i(`periodontalChart.flag.${o}Label`, {
|
|
802
802
|
tooth: U(l),
|
|
803
|
-
defaultValue:
|
|
803
|
+
defaultValue: o === "missing" ? "Tooth {{tooth}} missing" : "Tooth {{tooth}} implant"
|
|
804
804
|
});
|
|
805
805
|
return /* @__PURE__ */ n("td", { className: T, children: H ? p ? /* @__PURE__ */ n(
|
|
806
806
|
"span",
|
|
@@ -808,7 +808,7 @@ const Et = {
|
|
|
808
808
|
role: "img",
|
|
809
809
|
"aria-label": g,
|
|
810
810
|
className: "type-meta ds:font-semibold",
|
|
811
|
-
children:
|
|
811
|
+
children: o === "missing" ? i("periodontalChart.flag.missingShort", "×") : i("periodontalChart.flag.implantShort", "I")
|
|
812
812
|
}
|
|
813
813
|
) : I : /* @__PURE__ */ m("label", { className: "ds:inline-flex ds:size-6 ds:cursor-pointer ds:items-center ds:justify-center", children: [
|
|
814
814
|
/* @__PURE__ */ n("span", { className: "ds:sr-only", children: g }),
|
|
@@ -820,7 +820,7 @@ const Et = {
|
|
|
820
820
|
checked: p,
|
|
821
821
|
onChange: (v) => Q(
|
|
822
822
|
l,
|
|
823
|
-
|
|
823
|
+
o === "missing" ? { missing: v.target.checked } : { implant: v.target.checked }
|
|
824
824
|
),
|
|
825
825
|
className: "ds:size-4 ds:accent-[var(--primary)] 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)] ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
826
826
|
}
|
|
@@ -828,27 +828,27 @@ const Et = {
|
|
|
828
828
|
] }) }, l);
|
|
829
829
|
})
|
|
830
830
|
] }), Be = (e) => /* @__PURE__ */ m("tr", { children: [
|
|
831
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
831
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i("periodontalChart.row.mobility", "Mobility") }),
|
|
832
832
|
e.map((r) => {
|
|
833
833
|
var l, p;
|
|
834
834
|
if ((l = b[r]) != null && l.missing)
|
|
835
835
|
return /* @__PURE__ */ n("td", { className: T, children: I }, r);
|
|
836
|
-
const a = (p = b[r]) == null ? void 0 : p.mobility,
|
|
836
|
+
const a = (p = b[r]) == null ? void 0 : p.mobility, o = i("periodontalChart.mobility.label", {
|
|
837
837
|
tooth: U(r),
|
|
838
838
|
defaultValue: "Tooth {{tooth}} mobility grade"
|
|
839
839
|
});
|
|
840
|
-
return H ? /* @__PURE__ */ n("td", { className: T, children: a == null ? I : /* @__PURE__ */ n("span", { role: "img", "aria-label":
|
|
840
|
+
return H ? /* @__PURE__ */ n("td", { className: T, children: a == null ? I : /* @__PURE__ */ n("span", { role: "img", "aria-label": o, className: "type-meta", children: a }) }, r) : /* @__PURE__ */ n("td", { className: T, children: /* @__PURE__ */ m(
|
|
841
841
|
"select",
|
|
842
842
|
{
|
|
843
843
|
disabled: f,
|
|
844
|
-
"aria-label":
|
|
844
|
+
"aria-label": o,
|
|
845
845
|
value: a == null ? "" : String(a),
|
|
846
846
|
onChange: (g) => Q(r, {
|
|
847
847
|
mobility: g.target.value === "" ? void 0 : Number(g.target.value)
|
|
848
848
|
}),
|
|
849
849
|
className: "ds:h-6 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--input)] ds:bg-[var(--background)] ds:text-[color:var(--foreground)] ds:text-center ds:outline-none 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)] ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
850
850
|
children: [
|
|
851
|
-
/* @__PURE__ */ n("option", { value: "", children:
|
|
851
|
+
/* @__PURE__ */ n("option", { value: "", children: i("periodontalChart.mobility.none", "–") }),
|
|
852
852
|
/* @__PURE__ */ n("option", { value: "0", children: "0" }),
|
|
853
853
|
/* @__PURE__ */ n("option", { value: "1", children: "1" }),
|
|
854
854
|
/* @__PURE__ */ n("option", { value: "2", children: "2" }),
|
|
@@ -858,12 +858,12 @@ const Et = {
|
|
|
858
858
|
) }, r);
|
|
859
859
|
})
|
|
860
860
|
] }), Ue = (e) => /* @__PURE__ */ m("tr", { children: [
|
|
861
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
861
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i("periodontalChart.row.note", "Note") }),
|
|
862
862
|
e.map((r) => {
|
|
863
863
|
var l, p;
|
|
864
864
|
if ((l = b[r]) != null && l.missing)
|
|
865
865
|
return /* @__PURE__ */ n("td", { className: T, children: I }, r);
|
|
866
|
-
const a = ((p = b[r]) == null ? void 0 : p.note) ?? "",
|
|
866
|
+
const a = ((p = b[r]) == null ? void 0 : p.note) ?? "", o = i("periodontalChart.note.label", {
|
|
867
867
|
tooth: U(r),
|
|
868
868
|
defaultValue: "Tooth {{tooth}} note"
|
|
869
869
|
});
|
|
@@ -872,7 +872,7 @@ const Et = {
|
|
|
872
872
|
{
|
|
873
873
|
type: "text",
|
|
874
874
|
disabled: f,
|
|
875
|
-
"aria-label":
|
|
875
|
+
"aria-label": o,
|
|
876
876
|
value: a,
|
|
877
877
|
onChange: (g) => Q(r, { note: g.target.value }),
|
|
878
878
|
className: "ds:h-6 ds:w-[6ch] ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--input)] ds:bg-[var(--background)] ds:text-[color:var(--foreground)] ds:px-[var(--spacing-2xs)] ds:outline-none 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)] ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
@@ -880,16 +880,16 @@ const Et = {
|
|
|
880
880
|
) }, r);
|
|
881
881
|
})
|
|
882
882
|
] }), We = (e) => /* @__PURE__ */ m("tr", { children: [
|
|
883
|
-
/* @__PURE__ */ n("th", { scope: "row", className: W, children:
|
|
883
|
+
/* @__PURE__ */ n("th", { scope: "row", className: W, children: i("periodontalChart.row.tooth", "Tooth") }),
|
|
884
884
|
e.map((r) => {
|
|
885
|
-
const a = b[r],
|
|
886
|
-
if (a != null && a.missing || !
|
|
885
|
+
const a = b[r], o = ot[r];
|
|
886
|
+
if (a != null && a.missing || !o)
|
|
887
887
|
return /* @__PURE__ */ n("td", { className: T, children: I }, r);
|
|
888
888
|
const l = a != null && a.implant ? "implant" : "default";
|
|
889
889
|
return /* @__PURE__ */ n("td", { className: T, children: /* @__PURE__ */ n(
|
|
890
890
|
"img",
|
|
891
891
|
{
|
|
892
|
-
src: lt(
|
|
892
|
+
src: lt(o, P, l, "side"),
|
|
893
893
|
alt: "",
|
|
894
894
|
"aria-hidden": "true",
|
|
895
895
|
loading: "lazy",
|
|
@@ -1015,35 +1015,35 @@ const Et = {
|
|
|
1015
1015
|
tabIndex: 0,
|
|
1016
1016
|
role: "group",
|
|
1017
1017
|
dir: "ltr",
|
|
1018
|
-
"aria-label":
|
|
1018
|
+
"aria-label": i(r, a),
|
|
1019
1019
|
className: "ds:overflow-x-auto ds:rounded-[var(--radius-sm)] ds:outline-none 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)]",
|
|
1020
1020
|
children: [
|
|
1021
1021
|
/* @__PURE__ */ m("table", { className: "type-body-sm ds:w-full ds:border-collapse", children: [
|
|
1022
|
-
/* @__PURE__ */ n("caption", { className: "type-label ds:text-start ds:mb-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]", children:
|
|
1022
|
+
/* @__PURE__ */ n("caption", { className: "type-label ds:text-start ds:mb-[var(--spacing-2xs)] ds:text-[color:var(--muted-foreground)]", children: i(r, a) }),
|
|
1023
1023
|
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ m("tr", { children: [
|
|
1024
1024
|
/* @__PURE__ */ n(
|
|
1025
1025
|
"th",
|
|
1026
1026
|
{
|
|
1027
1027
|
scope: "col",
|
|
1028
1028
|
className: "ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs)] ds:text-start ds:border-b ds:border-[color:var(--border)]",
|
|
1029
|
-
children:
|
|
1029
|
+
children: i("periodontalChart.column.measure", "Measurement")
|
|
1030
1030
|
}
|
|
1031
1031
|
),
|
|
1032
|
-
e.map((
|
|
1032
|
+
e.map((o) => /* @__PURE__ */ m(
|
|
1033
1033
|
"th",
|
|
1034
1034
|
{
|
|
1035
1035
|
scope: "col",
|
|
1036
|
-
"data-fdi":
|
|
1036
|
+
"data-fdi": o,
|
|
1037
1037
|
className: "ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)] ds:text-center ds:border-b ds:border-[color:var(--border)] ds:tabular-nums ds:[font-variant-numeric:var(--font-feature-tabular)]",
|
|
1038
1038
|
children: [
|
|
1039
|
-
/* @__PURE__ */ n("span", { className: "ds:sr-only", children:
|
|
1040
|
-
tooth: U(
|
|
1039
|
+
/* @__PURE__ */ n("span", { className: "ds:sr-only", children: i("periodontalChart.toothHeader", {
|
|
1040
|
+
tooth: U(o),
|
|
1041
1041
|
defaultValue: "Tooth {{tooth}}"
|
|
1042
1042
|
}) }),
|
|
1043
|
-
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: _e(
|
|
1043
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: _e(o, S) })
|
|
1044
1044
|
]
|
|
1045
1045
|
},
|
|
1046
|
-
|
|
1046
|
+
o
|
|
1047
1047
|
))
|
|
1048
1048
|
] }) }),
|
|
1049
1049
|
/* @__PURE__ */ m("tbody", { children: [
|
|
@@ -1126,8 +1126,8 @@ const Et = {
|
|
|
1126
1126
|
"figure",
|
|
1127
1127
|
{
|
|
1128
1128
|
className: "ds:m-0 ds:mt-[var(--spacing-2xs)]",
|
|
1129
|
-
"aria-label":
|
|
1130
|
-
arch:
|
|
1129
|
+
"aria-label": i("periodontalChart.curve.label", {
|
|
1130
|
+
arch: i(r, a),
|
|
1131
1131
|
defaultValue: "{{arch}} probing depth and recession profile"
|
|
1132
1132
|
}),
|
|
1133
1133
|
children: Ge(e)
|
|
@@ -1139,8 +1139,8 @@ const Et = {
|
|
|
1139
1139
|
const e = [
|
|
1140
1140
|
{
|
|
1141
1141
|
key: "meanPd",
|
|
1142
|
-
label:
|
|
1143
|
-
value: R.meanPocketDepthMm == null ? "–" :
|
|
1142
|
+
label: i("periodontalChart.index.meanPocketDepth", "Mean PD"),
|
|
1143
|
+
value: R.meanPocketDepthMm == null ? "–" : i("periodontalChart.unit.mm", {
|
|
1144
1144
|
value: ee(R.meanPocketDepthMm),
|
|
1145
1145
|
defaultValue: "{{value}} mm"
|
|
1146
1146
|
}),
|
|
@@ -1148,8 +1148,8 @@ const Et = {
|
|
|
1148
1148
|
},
|
|
1149
1149
|
{
|
|
1150
1150
|
key: "meanCal",
|
|
1151
|
-
label:
|
|
1152
|
-
value: R.meanAttachmentLevelMm == null ? "–" :
|
|
1151
|
+
label: i("periodontalChart.index.meanAttachment", "Mean CAL"),
|
|
1152
|
+
value: R.meanAttachmentLevelMm == null ? "–" : i("periodontalChart.unit.mm", {
|
|
1153
1153
|
value: ee(R.meanAttachmentLevelMm),
|
|
1154
1154
|
defaultValue: "{{value}} mm"
|
|
1155
1155
|
}),
|
|
@@ -1157,8 +1157,8 @@ const Et = {
|
|
|
1157
1157
|
},
|
|
1158
1158
|
{
|
|
1159
1159
|
key: "plaque",
|
|
1160
|
-
label:
|
|
1161
|
-
value: R.plaquePercent == null ? "–" :
|
|
1160
|
+
label: i("periodontalChart.index.plaque", "Plaque"),
|
|
1161
|
+
value: R.plaquePercent == null ? "–" : i("periodontalChart.unit.percent", {
|
|
1162
1162
|
value: ee(R.plaquePercent),
|
|
1163
1163
|
defaultValue: "{{value}}%"
|
|
1164
1164
|
}),
|
|
@@ -1166,8 +1166,8 @@ const Et = {
|
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
1168
|
key: "bleeding",
|
|
1169
|
-
label:
|
|
1170
|
-
value: R.bleedingPercent == null ? "–" :
|
|
1169
|
+
label: i("periodontalChart.index.bleeding", "BoP"),
|
|
1170
|
+
value: R.bleedingPercent == null ? "–" : i("periodontalChart.unit.percent", {
|
|
1171
1171
|
value: ee(R.bleedingPercent),
|
|
1172
1172
|
defaultValue: "{{value}}%"
|
|
1173
1173
|
}),
|
|
@@ -1178,7 +1178,7 @@ const Et = {
|
|
|
1178
1178
|
"dl",
|
|
1179
1179
|
{
|
|
1180
1180
|
className: "type-body-sm ds:flex ds:flex-wrap ds:gap-[var(--spacing-lg)] ds:m-0",
|
|
1181
|
-
"aria-label":
|
|
1181
|
+
"aria-label": i("periodontalChart.index.label", "Summary indices"),
|
|
1182
1182
|
children: e.map((r) => /* @__PURE__ */ m(
|
|
1183
1183
|
"div",
|
|
1184
1184
|
{
|
|
@@ -1193,7 +1193,7 @@ const Et = {
|
|
|
1193
1193
|
/* @__PURE__ */ n("span", { children: r.value }),
|
|
1194
1194
|
r.elevated ? /* @__PURE__ */ m("span", { className: "ds:sr-only", children: [
|
|
1195
1195
|
" ",
|
|
1196
|
-
|
|
1196
|
+
i("periodontalChart.index.elevated", "elevated")
|
|
1197
1197
|
] }) : null
|
|
1198
1198
|
]
|
|
1199
1199
|
}
|
|
@@ -1208,7 +1208,7 @@ const Et = {
|
|
|
1208
1208
|
"div",
|
|
1209
1209
|
{
|
|
1210
1210
|
role: "group",
|
|
1211
|
-
"aria-label":
|
|
1211
|
+
"aria-label": i("periodontalChart.legend.label", "Chart legend"),
|
|
1212
1212
|
className: "type-meta ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-md)] ds:text-[color:var(--muted-foreground)]",
|
|
1213
1213
|
children: [
|
|
1214
1214
|
/* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
@@ -1219,7 +1219,7 @@ const Et = {
|
|
|
1219
1219
|
className: "ds:inline-block ds:h-[2px] ds:w-4 ds:bg-[var(--success)]"
|
|
1220
1220
|
}
|
|
1221
1221
|
),
|
|
1222
|
-
|
|
1222
|
+
i("periodontalChart.legend.depth", "Pocket depth")
|
|
1223
1223
|
] }),
|
|
1224
1224
|
/* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
1225
1225
|
/* @__PURE__ */ n(
|
|
@@ -1229,7 +1229,7 @@ const Et = {
|
|
|
1229
1229
|
className: "ds:inline-block ds:h-[2px] ds:w-4 ds:bg-[var(--accent)]"
|
|
1230
1230
|
}
|
|
1231
1231
|
),
|
|
1232
|
-
|
|
1232
|
+
i("periodontalChart.legend.recession", "Recession")
|
|
1233
1233
|
] }),
|
|
1234
1234
|
/* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
1235
1235
|
/* @__PURE__ */ n(
|
|
@@ -1239,7 +1239,7 @@ const Et = {
|
|
|
1239
1239
|
className: "ds:inline-block ds:size-2 ds:rounded-[var(--radius-full)] ds:bg-[var(--destructive)]"
|
|
1240
1240
|
}
|
|
1241
1241
|
),
|
|
1242
|
-
|
|
1242
|
+
i("periodontalChart.legend.bleeding", "Bleeding on probing")
|
|
1243
1243
|
] }),
|
|
1244
1244
|
/* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
1245
1245
|
/* @__PURE__ */ n(
|
|
@@ -1249,7 +1249,7 @@ const Et = {
|
|
|
1249
1249
|
className: "ds:inline-block ds:size-2 ds:rounded-[var(--radius-full)] ds:bg-[var(--warning)]"
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
|
|
1252
|
+
i("periodontalChart.legend.plaque", "Plaque")
|
|
1253
1253
|
] })
|
|
1254
1254
|
]
|
|
1255
1255
|
}
|
|
@@ -1285,21 +1285,21 @@ export {
|
|
|
1285
1285
|
gt as B,
|
|
1286
1286
|
xe as M,
|
|
1287
1287
|
be as P,
|
|
1288
|
-
|
|
1288
|
+
oe as S,
|
|
1289
1289
|
ft as a,
|
|
1290
1290
|
mt as b,
|
|
1291
1291
|
ht as c,
|
|
1292
1292
|
Dt as d,
|
|
1293
1293
|
kt as e,
|
|
1294
1294
|
Le as f,
|
|
1295
|
-
|
|
1295
|
+
Ft as g,
|
|
1296
1296
|
bt as h,
|
|
1297
1297
|
pt as i,
|
|
1298
1298
|
_e as j,
|
|
1299
|
-
|
|
1299
|
+
Fe as k,
|
|
1300
1300
|
Ot as l,
|
|
1301
1301
|
Oe as p,
|
|
1302
1302
|
Ae as s,
|
|
1303
1303
|
$t as t
|
|
1304
1304
|
};
|
|
1305
|
-
//# sourceMappingURL=periodontal-chart-
|
|
1305
|
+
//# sourceMappingURL=periodontal-chart-C0nNQKKK.js.map
|