odontogram-view 0.1.2 → 0.1.3
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/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +533 -546
- package/dist/index.js.map +1 -1
- package/dist/lib/components/Quadrant/Quadrant.d.ts +1 -1
- package/dist/lib/components/Tooth/Tooth.d.ts +1 -1
- package/dist/lib/components/Tooth/ToothSurface.d.ts +0 -3
- package/dist/lib/types.d.ts +1 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import fe, { memo as
|
|
2
|
-
const be = ".ov-
|
|
3
|
-
let
|
|
4
|
-
function xe(
|
|
5
|
-
if (
|
|
1
|
+
import fe, { memo as D, useMemo as L, useCallback as Q, useState as ie } from "react";
|
|
2
|
+
const be = ".ov-m-0{margin:0}.ov-mx-auto{margin-left:auto;margin-right:auto}.ov-mb-3{margin-bottom:.75rem}.ov-mt-3{margin-top:.75rem}.ov-flex{display:flex}.ov-grid{display:grid}.ov-h-3{height:.75rem}.ov-h-\\[116px\\]{height:116px}.ov-h-\\[124px\\]{height:124px}.ov-h-\\[138px\\]{height:138px}.ov-h-\\[68px\\]{height:68px}.ov-min-h-screen{min-height:100vh}.ov-w-3{width:.75rem}.ov-w-\\[34px\\]{width:34px}.ov-w-\\[58px\\]{width:58px}.ov-w-\\[62px\\]{width:62px}.ov-w-\\[72px\\]{width:72px}.ov-w-full{width:100%}.ov-min-w-0{min-width:0px}.ov-min-w-\\[56px\\]{min-width:56px}.ov-min-w-\\[60px\\]{min-width:60px}.ov-min-w-\\[64px\\]{min-width:64px}.ov-min-w-\\[74px\\]{min-width:74px}.ov-min-w-max{min-width:-moz-max-content;min-width:max-content}.ov-max-w-3xl{max-width:48rem}.ov-max-w-7xl{max-width:80rem}.ov-max-w-full{max-width:100%}.ov-cursor-pointer{cursor:pointer}.ov-flex-col{flex-direction:column}.ov-flex-wrap{flex-wrap:wrap}.ov-items-center{align-items:center}.ov-justify-center{justify-content:center}.ov-justify-between{justify-content:space-between}.ov-gap-0\\.5{gap:.125rem}.ov-gap-2{gap:.5rem}.ov-gap-3{gap:.75rem}.ov-gap-4{gap:1rem}.ov-gap-5{gap:1.25rem}.ov-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.ov-overflow-hidden{overflow:hidden}.ov-overflow-x-auto{overflow-x:auto}.ov-overflow-x-hidden{overflow-x:hidden}.ov-overflow-y-hidden{overflow-y:hidden}.ov-rounded-2xl{border-radius:1rem}.ov-rounded-3xl{border-radius:1.5rem}.ov-rounded-\\[24px\\]{border-radius:24px}.ov-rounded-\\[28px\\]{border-radius:28px}.ov-rounded-full{border-radius:9999px}.ov-border{border-width:1px}.ov-border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.ov-border-clinic-700{--tw-border-opacity: 1;border-color:rgb(46 91 105 / var(--tw-border-opacity, 1))}.ov-border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.ov-border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.ov-border-sky-100{--tw-border-opacity: 1;border-color:rgb(224 242 254 / var(--tw-border-opacity, 1))}.ov-border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.ov-border-white\\/40{border-color:#fff6}.ov-border-white\\/80{border-color:#fffc}.ov-bg-clinic-50{--tw-bg-opacity: 1;background-color:rgb(246 251 252 / var(--tw-bg-opacity, 1))}.ov-bg-clinic-900{--tw-bg-opacity: 1;background-color:rgb(41 63 72 / var(--tw-bg-opacity, 1))}.ov-bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.ov-bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.ov-bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.ov-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ov-bg-white\\/80{background-color:#fffc}.ov-bg-white\\/85{background-color:#ffffffd9}.ov-bg-\\[linear-gradient\\(180deg\\,_\\#f7fbfc_0\\%\\,_\\#e2eef1_55\\%\\,_\\#d4e5ea_100\\%\\)\\]{background-image:linear-gradient(180deg,#f7fbfc,#e2eef1 55%,#d4e5ea)}.ov-bg-\\[radial-gradient\\(circle_at_top_left\\,_rgba\\(255\\,255\\,255\\,0\\.98\\)\\,_rgba\\(240\\,248\\,249\\,0\\.98\\)_40\\%\\,_rgba\\(229\\,239\\,241\\,1\\)_100\\%\\)\\]{background-image:radial-gradient(circle at top left,#fffffffa,#f0f8f9fa 40%,#e5eff1)}.ov-p-3{padding:.75rem}.ov-p-4{padding:1rem}.ov-px-3{padding-left:.75rem;padding-right:.75rem}.ov-py-1{padding-top:.25rem;padding-bottom:.25rem}.ov-py-2{padding-top:.5rem;padding-bottom:.5rem}.ov-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.ov-pb-1{padding-bottom:.25rem}.ov-text-2xl{font-size:1.5rem;line-height:2rem}.ov-text-\\[10px\\]{font-size:10px}.ov-text-\\[11px\\]{font-size:11px}.ov-text-lg{font-size:1.125rem;line-height:1.75rem}.ov-text-sm{font-size:.875rem;line-height:1.25rem}.ov-text-xs{font-size:.75rem;line-height:1rem}.ov-font-medium{font-weight:500}.ov-font-semibold{font-weight:600}.ov-uppercase{text-transform:uppercase}.ov-leading-6{line-height:1.5rem}.ov-tracking-\\[0\\.22em\\]{letter-spacing:.22em}.ov-tracking-\\[0\\.3em\\]{letter-spacing:.3em}.ov-text-clinic-600{--tw-text-opacity: 1;color:rgb(51 111 128 / var(--tw-text-opacity, 1))}.ov-text-clinic-700{--tw-text-opacity: 1;color:rgb(46 91 105 / var(--tw-text-opacity, 1))}.ov-text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.ov-text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.ov-text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.ov-text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.ov-text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.ov-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ov-shadow-panel{--tw-shadow: 0 16px 40px rgba(22, 56, 68, .14);--tw-shadow-colored: 0 16px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ov-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ov-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ov-odontogram,.ov-odontogram *{box-sizing:border-box}.ov-odontogram{color-scheme:light;font-family:IBM Plex Sans,Segoe UI,sans-serif}.ov-odontogram button,.ov-odontogram svg,.ov-odontogram polygon,.ov-odontogram text{-webkit-tap-highlight-color:transparent}.hover\\:ov-border-clinic-400:hover{--tw-border-opacity: 1;border-color:rgb(99 175 188 / var(--tw-border-opacity, 1))}.hover\\:ov-bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\\:ov-text-clinic-700:hover{--tw-text-opacity: 1;color:rgb(46 91 105 / var(--tw-text-opacity, 1))}.hover\\:ov-opacity-85:hover{opacity:.85}@media(min-width:640px){.sm\\:ov-w-auto{width:auto}.sm\\:ov-flex-row{flex-direction:row}.sm\\:ov-items-center{align-items:center}.sm\\:ov-justify-between{justify-content:space-between}.sm\\:ov-gap-6{gap:1.5rem}.sm\\:ov-rounded-\\[28px\\]{border-radius:28px}.sm\\:ov-rounded-\\[32px\\]{border-radius:32px}.sm\\:ov-p-4{padding:1rem}.sm\\:ov-p-5{padding:1.25rem}.sm\\:ov-p-6{padding:1.5rem}.sm\\:ov-px-4{padding-left:1rem;padding-right:1rem}.sm\\:ov-py-8{padding-top:2rem;padding-bottom:2rem}.sm\\:ov-text-3xl{font-size:1.875rem;line-height:2.25rem}}@media(min-width:768px){.md\\:ov-p-6{padding:1.5rem}.md\\:ov-px-8{padding-left:2rem;padding-right:2rem}.md\\:ov-text-4xl{font-size:2.25rem;line-height:2.5rem}.md\\:ov-text-base{font-size:1rem;line-height:1.5rem}}@media(min-width:1024px){.lg\\:ov-grid-cols-\\[1\\.25fr_0\\.75fr\\]{grid-template-columns:1.25fr .75fr}}";
|
|
3
|
+
let se = !1;
|
|
4
|
+
function xe(r) {
|
|
5
|
+
if (se || typeof document > "u")
|
|
6
6
|
return;
|
|
7
7
|
const o = document.createElement("style");
|
|
8
|
-
o.setAttribute("data-odontogram-view", "true"), o.textContent =
|
|
8
|
+
o.setAttribute("data-odontogram-view", "true"), o.textContent = r, document.head.appendChild(o), se = !0;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var Y = { exports: {} }, P = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.js
|
|
@@ -17,29 +17,29 @@ var z = { exports: {} }, C = {};
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
var
|
|
20
|
+
var le;
|
|
21
21
|
function he() {
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function a(
|
|
22
|
+
if (le) return P;
|
|
23
|
+
le = 1;
|
|
24
|
+
var r = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
25
|
+
function a(t, n, s) {
|
|
26
26
|
var p = null;
|
|
27
|
-
if (
|
|
28
|
-
|
|
27
|
+
if (s !== void 0 && (p = "" + s), n.key !== void 0 && (p = "" + n.key), "key" in n) {
|
|
28
|
+
s = {};
|
|
29
29
|
for (var v in n)
|
|
30
|
-
v !== "key" && (
|
|
31
|
-
} else
|
|
32
|
-
return n =
|
|
33
|
-
$$typeof:
|
|
34
|
-
type:
|
|
30
|
+
v !== "key" && (s[v] = n[v]);
|
|
31
|
+
} else s = n;
|
|
32
|
+
return n = s.ref, {
|
|
33
|
+
$$typeof: r,
|
|
34
|
+
type: t,
|
|
35
35
|
key: p,
|
|
36
36
|
ref: n !== void 0 ? n : null,
|
|
37
|
-
props:
|
|
37
|
+
props: s
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
return
|
|
40
|
+
return P.Fragment = o, P.jsx = a, P.jsxs = a, P;
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var I = {};
|
|
43
43
|
/**
|
|
44
44
|
* @license React
|
|
45
45
|
* react-jsx-runtime.development.js
|
|
@@ -52,44 +52,44 @@ var P = {};
|
|
|
52
52
|
var ce;
|
|
53
53
|
function ge() {
|
|
54
54
|
return ce || (ce = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
55
|
-
function
|
|
55
|
+
function r(e) {
|
|
56
56
|
if (e == null) return null;
|
|
57
57
|
if (typeof e == "function")
|
|
58
58
|
return e.$$typeof === q ? null : e.displayName || e.name || null;
|
|
59
59
|
if (typeof e == "string") return e;
|
|
60
60
|
switch (e) {
|
|
61
|
-
case
|
|
61
|
+
case x:
|
|
62
62
|
return "Fragment";
|
|
63
|
-
case
|
|
63
|
+
case g:
|
|
64
64
|
return "Profiler";
|
|
65
|
-
case
|
|
65
|
+
case N:
|
|
66
66
|
return "StrictMode";
|
|
67
|
-
case
|
|
67
|
+
case R:
|
|
68
68
|
return "Suspense";
|
|
69
|
-
case
|
|
69
|
+
case B:
|
|
70
70
|
return "SuspenseList";
|
|
71
|
-
case
|
|
71
|
+
case O:
|
|
72
72
|
return "Activity";
|
|
73
73
|
}
|
|
74
74
|
if (typeof e == "object")
|
|
75
75
|
switch (typeof e.tag == "number" && console.error(
|
|
76
76
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
77
77
|
), e.$$typeof) {
|
|
78
|
-
case
|
|
78
|
+
case C:
|
|
79
79
|
return "Portal";
|
|
80
|
-
case
|
|
80
|
+
case b:
|
|
81
81
|
return e.displayName || "Context";
|
|
82
|
-
case
|
|
82
|
+
case S:
|
|
83
83
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
84
|
-
case
|
|
85
|
-
var
|
|
86
|
-
return e = e.displayName, e || (e =
|
|
87
|
-
case
|
|
88
|
-
return
|
|
89
|
-
case
|
|
90
|
-
|
|
84
|
+
case E:
|
|
85
|
+
var i = e.render;
|
|
86
|
+
return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
87
|
+
case G:
|
|
88
|
+
return i = e.displayName || null, i !== null ? i : r(e.type) || "Memo";
|
|
89
|
+
case u:
|
|
90
|
+
i = e._payload, e = e._init;
|
|
91
91
|
try {
|
|
92
|
-
return
|
|
92
|
+
return r(e(i));
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,74 +101,74 @@ function ge() {
|
|
|
101
101
|
function a(e) {
|
|
102
102
|
try {
|
|
103
103
|
o(e);
|
|
104
|
-
var
|
|
104
|
+
var i = !1;
|
|
105
105
|
} catch {
|
|
106
|
-
|
|
106
|
+
i = !0;
|
|
107
107
|
}
|
|
108
|
-
if (
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
return
|
|
112
|
-
|
|
108
|
+
if (i) {
|
|
109
|
+
i = console;
|
|
110
|
+
var d = i.error, m = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
111
|
+
return d.call(
|
|
112
|
+
i,
|
|
113
113
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
114
|
-
|
|
114
|
+
m
|
|
115
115
|
), o(e);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
if (e ===
|
|
120
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
118
|
+
function t(e) {
|
|
119
|
+
if (e === x) return "<>";
|
|
120
|
+
if (typeof e == "object" && e !== null && e.$$typeof === u)
|
|
121
121
|
return "<...>";
|
|
122
122
|
try {
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var i = r(e);
|
|
124
|
+
return i ? "<" + i + ">" : "<...>";
|
|
125
125
|
} catch {
|
|
126
126
|
return "<...>";
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function n() {
|
|
130
|
-
var e =
|
|
130
|
+
var e = H.A;
|
|
131
131
|
return e === null ? null : e.getOwner();
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function s() {
|
|
134
134
|
return Error("react-stack-top-frame");
|
|
135
135
|
}
|
|
136
136
|
function p(e) {
|
|
137
137
|
if (ee.call(e, "key")) {
|
|
138
|
-
var
|
|
139
|
-
if (
|
|
138
|
+
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
139
|
+
if (i && i.isReactWarning) return !1;
|
|
140
140
|
}
|
|
141
141
|
return e.key !== void 0;
|
|
142
142
|
}
|
|
143
|
-
function v(e,
|
|
144
|
-
function
|
|
143
|
+
function v(e, i) {
|
|
144
|
+
function d() {
|
|
145
145
|
oe || (oe = !0, console.error(
|
|
146
146
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
147
|
-
|
|
147
|
+
i
|
|
148
148
|
));
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
get:
|
|
150
|
+
d.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
151
|
+
get: d,
|
|
152
152
|
configurable: !0
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
var e =
|
|
157
|
-
return
|
|
155
|
+
function y() {
|
|
156
|
+
var e = r(this.type);
|
|
157
|
+
return re[e] || (re[e] = !0, console.error(
|
|
158
158
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
159
159
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
var
|
|
161
|
+
function T(e, i, d, m, z, X) {
|
|
162
|
+
var f = d.ref;
|
|
163
163
|
return e = {
|
|
164
164
|
$$typeof: M,
|
|
165
165
|
type: e,
|
|
166
|
-
key:
|
|
167
|
-
props:
|
|
168
|
-
_owner:
|
|
169
|
-
}, (
|
|
166
|
+
key: i,
|
|
167
|
+
props: d,
|
|
168
|
+
_owner: m
|
|
169
|
+
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
170
170
|
enumerable: !1,
|
|
171
|
-
get:
|
|
171
|
+
get: y
|
|
172
172
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
173
173
|
configurable: !1,
|
|
174
174
|
enumerable: !1,
|
|
@@ -183,106 +183,106 @@ function ge() {
|
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: z
|
|
187
187
|
}), Object.defineProperty(e, "_debugTask", {
|
|
188
188
|
configurable: !1,
|
|
189
189
|
enumerable: !1,
|
|
190
190
|
writable: !0,
|
|
191
|
-
value:
|
|
191
|
+
value: X
|
|
192
192
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
var
|
|
196
|
-
if (
|
|
197
|
-
if (
|
|
198
|
-
if (ve(
|
|
199
|
-
for (
|
|
200
|
-
|
|
201
|
-
Object.freeze && Object.freeze(
|
|
194
|
+
function h(e, i, d, m, z, X) {
|
|
195
|
+
var f = i.children;
|
|
196
|
+
if (f !== void 0)
|
|
197
|
+
if (m)
|
|
198
|
+
if (ve(f)) {
|
|
199
|
+
for (m = 0; m < f.length; m++)
|
|
200
|
+
w(f[m]);
|
|
201
|
+
Object.freeze && Object.freeze(f);
|
|
202
202
|
} else
|
|
203
203
|
console.error(
|
|
204
204
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
205
205
|
);
|
|
206
|
-
else
|
|
207
|
-
if (ee.call(
|
|
208
|
-
|
|
209
|
-
var
|
|
206
|
+
else w(f);
|
|
207
|
+
if (ee.call(i, "key")) {
|
|
208
|
+
f = r(e);
|
|
209
|
+
var A = Object.keys(i).filter(function(me) {
|
|
210
210
|
return me !== "key";
|
|
211
211
|
});
|
|
212
|
-
|
|
212
|
+
m = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", ne[f + m] || (A = 0 < A.length ? "{" + A.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
213
213
|
`A props object containing a "key" prop is being spread into JSX:
|
|
214
214
|
let props = %s;
|
|
215
215
|
<%s {...props} />
|
|
216
216
|
React keys must be passed directly to JSX without using spread:
|
|
217
217
|
let props = %s;
|
|
218
218
|
<%s key={someKey} {...props} />`,
|
|
219
|
+
m,
|
|
219
220
|
f,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
), ne[b + f] = !0);
|
|
221
|
+
A,
|
|
222
|
+
f
|
|
223
|
+
), ne[f + m] = !0);
|
|
224
224
|
}
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
for (var Z in
|
|
228
|
-
Z !== "key" && (
|
|
229
|
-
} else
|
|
230
|
-
return
|
|
231
|
-
|
|
225
|
+
if (f = null, d !== void 0 && (a(d), f = "" + d), p(i) && (a(i.key), f = "" + i.key), "key" in i) {
|
|
226
|
+
d = {};
|
|
227
|
+
for (var Z in i)
|
|
228
|
+
Z !== "key" && (d[Z] = i[Z]);
|
|
229
|
+
} else d = i;
|
|
230
|
+
return f && v(
|
|
231
|
+
d,
|
|
232
232
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
233
|
-
),
|
|
233
|
+
), T(
|
|
234
234
|
e,
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
f,
|
|
236
|
+
d,
|
|
237
237
|
n(),
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
z,
|
|
239
|
+
X
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
242
|
+
function w(e) {
|
|
243
|
+
_(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === u && (e._payload.status === "fulfilled" ? _(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function _(e) {
|
|
246
246
|
return typeof e == "object" && e !== null && e.$$typeof === M;
|
|
247
247
|
}
|
|
248
|
-
var
|
|
248
|
+
var k = fe, M = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), b = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), H = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ve = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
249
249
|
return null;
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
k = {
|
|
252
252
|
react_stack_bottom_frame: function(e) {
|
|
253
253
|
return e();
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
|
-
var oe,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
)(), ae =
|
|
260
|
-
|
|
261
|
-
var
|
|
262
|
-
return
|
|
256
|
+
var oe, re = {}, te = k.react_stack_bottom_frame.bind(
|
|
257
|
+
k,
|
|
258
|
+
s
|
|
259
|
+
)(), ae = J(t(s)), ne = {};
|
|
260
|
+
I.Fragment = x, I.jsx = function(e, i, d) {
|
|
261
|
+
var m = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
262
|
+
return h(
|
|
263
263
|
e,
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
i,
|
|
265
|
+
d,
|
|
266
266
|
!1,
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
m ? Error("react-stack-top-frame") : te,
|
|
268
|
+
m ? J(t(e)) : ae
|
|
269
269
|
);
|
|
270
|
-
},
|
|
271
|
-
var
|
|
272
|
-
return
|
|
270
|
+
}, I.jsxs = function(e, i, d) {
|
|
271
|
+
var m = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
272
|
+
return h(
|
|
273
273
|
e,
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
i,
|
|
275
|
+
d,
|
|
276
276
|
!0,
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
m ? Error("react-stack-top-frame") : te,
|
|
278
|
+
m ? J(t(e)) : ae
|
|
279
279
|
);
|
|
280
280
|
};
|
|
281
|
-
})()),
|
|
281
|
+
})()), I;
|
|
282
282
|
}
|
|
283
283
|
var pe;
|
|
284
284
|
function we() {
|
|
285
|
-
return pe || (pe = 1, process.env.NODE_ENV === "production" ?
|
|
285
|
+
return pe || (pe = 1, process.env.NODE_ENV === "production" ? Y.exports = he() : Y.exports = ge()), Y.exports;
|
|
286
286
|
}
|
|
287
287
|
var c = we();
|
|
288
288
|
const ye = {
|
|
@@ -353,76 +353,76 @@ const ye = {
|
|
|
353
353
|
83: 1,
|
|
354
354
|
84: 2,
|
|
355
355
|
85: 2
|
|
356
|
-
}, ke = (
|
|
357
|
-
const
|
|
356
|
+
}, ke = (r, o, a) => {
|
|
357
|
+
const t = _e[r] ?? 1;
|
|
358
358
|
return o === "incisor" ? {
|
|
359
359
|
centerLabel: "I",
|
|
360
|
-
roots:
|
|
360
|
+
roots: t,
|
|
361
361
|
surfaces: 5,
|
|
362
362
|
crownWidth: 32,
|
|
363
363
|
crownHeight: 42,
|
|
364
364
|
rootStyle: "single"
|
|
365
365
|
} : o === "canine" ? {
|
|
366
366
|
centerLabel: "I",
|
|
367
|
-
roots:
|
|
367
|
+
roots: t,
|
|
368
368
|
surfaces: 5,
|
|
369
369
|
crownWidth: 36,
|
|
370
370
|
crownHeight: 44,
|
|
371
371
|
rootStyle: "singleLong"
|
|
372
372
|
} : o === "premolar" ? {
|
|
373
373
|
centerLabel: "O",
|
|
374
|
-
roots:
|
|
374
|
+
roots: t,
|
|
375
375
|
surfaces: 5,
|
|
376
376
|
crownWidth: 42,
|
|
377
377
|
crownHeight: 42,
|
|
378
|
-
rootStyle:
|
|
378
|
+
rootStyle: t === 2 ? "double" : "single"
|
|
379
379
|
} : {
|
|
380
380
|
centerLabel: "O",
|
|
381
|
-
roots:
|
|
381
|
+
roots: t,
|
|
382
382
|
surfaces: 5,
|
|
383
383
|
crownWidth: 48,
|
|
384
384
|
crownHeight: 42,
|
|
385
|
-
rootStyle:
|
|
385
|
+
rootStyle: t === 3 || a === "upper" ? "triple" : "double"
|
|
386
386
|
};
|
|
387
|
-
}, j = (
|
|
388
|
-
const n =
|
|
389
|
-
return o.map((
|
|
390
|
-
const p = n[
|
|
387
|
+
}, j = (r, o, a, t) => {
|
|
388
|
+
const n = t === "permanent" ? ye : Qe;
|
|
389
|
+
return o.map((s) => {
|
|
390
|
+
const p = n[s], v = `${r}${s}`;
|
|
391
391
|
return {
|
|
392
392
|
id: v,
|
|
393
393
|
type: p,
|
|
394
394
|
arch: a,
|
|
395
|
-
dentition:
|
|
395
|
+
dentition: t,
|
|
396
396
|
label: v,
|
|
397
397
|
visual: ke(v, p, a)
|
|
398
398
|
};
|
|
399
399
|
});
|
|
400
|
-
},
|
|
401
|
-
upper: [...
|
|
400
|
+
}, Te = j(1, [8, 7, 6, 5, 4, 3, 2, 1], "upper", "permanent"), Ee = j(2, [1, 2, 3, 4, 5, 6, 7, 8], "upper", "permanent"), Re = j(4, [8, 7, 6, 5, 4, 3, 2, 1], "lower", "permanent"), je = j(3, [1, 2, 3, 4, 5, 6, 7, 8], "lower", "permanent"), Oe = j(5, [5, 4, 3, 2, 1], "upper", "primary"), Me = j(6, [1, 2, 3, 4, 5], "upper", "primary"), Ne = j(8, [5, 4, 3, 2, 1], "lower", "primary"), Se = j(7, [1, 2, 3, 4, 5], "lower", "primary"), $ = {
|
|
401
|
+
upper: [...Te, ...Ee],
|
|
402
402
|
lower: [...Re, ...je]
|
|
403
|
-
},
|
|
404
|
-
upper: [...Oe, ...
|
|
405
|
-
lower: [...
|
|
403
|
+
}, F = {
|
|
404
|
+
upper: [...Oe, ...Me],
|
|
405
|
+
lower: [...Ne, ...Se]
|
|
406
406
|
}, Ae = [
|
|
407
407
|
{
|
|
408
408
|
id: "upper-permanent",
|
|
409
409
|
label: "Superior permanente",
|
|
410
|
-
teeth:
|
|
410
|
+
teeth: $.upper
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
id: "upper-primary",
|
|
414
414
|
label: "Superior temporal",
|
|
415
|
-
teeth:
|
|
415
|
+
teeth: F.upper
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
id: "lower-primary",
|
|
419
419
|
label: "Inferior temporal",
|
|
420
|
-
teeth:
|
|
420
|
+
teeth: F.lower
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
id: "lower-permanent",
|
|
424
424
|
label: "Inferior permanente",
|
|
425
|
-
teeth:
|
|
425
|
+
teeth: $.lower
|
|
426
426
|
}
|
|
427
427
|
], K = [
|
|
428
428
|
{ id: "CARIES", label: "Caries", color: "#ef4444", scope: "both" },
|
|
@@ -435,203 +435,188 @@ const ye = {
|
|
|
435
435
|
{ id: "MISSING", label: "Ausente", color: "#64748b", scope: "both" },
|
|
436
436
|
{ id: "SEALANT", label: "Sellante", color: "#14b8a6", scope: "both" }
|
|
437
437
|
], Ce = new Map(
|
|
438
|
-
K.map((
|
|
439
|
-
),
|
|
438
|
+
K.map((r) => [r.id, r])
|
|
439
|
+
), U = (r = []) => Array.from(new Set(r)), W = (r) => [...r].sort((o, a) => o.localeCompare(a)), ue = (r = []) => {
|
|
440
440
|
const o = {};
|
|
441
|
-
return
|
|
441
|
+
return r.forEach((a) => {
|
|
442
442
|
o[a.tooth] = {
|
|
443
443
|
tooth: a.tooth,
|
|
444
|
-
conditions: a.conditions ? W(
|
|
444
|
+
conditions: a.conditions ? W(U(a.conditions)) : void 0,
|
|
445
445
|
surfaces: a.surfaces ? Object.fromEntries(
|
|
446
|
-
Object.entries(a.surfaces).map(([
|
|
447
|
-
|
|
448
|
-
n != null && n.length ? W(
|
|
449
|
-
]).filter(([,
|
|
446
|
+
Object.entries(a.surfaces).map(([t, n]) => [
|
|
447
|
+
t,
|
|
448
|
+
n != null && n.length ? W(U(n)) : void 0
|
|
449
|
+
]).filter(([, t]) => !!(t != null && t.length))
|
|
450
450
|
) : void 0
|
|
451
451
|
};
|
|
452
452
|
}), o;
|
|
453
|
-
}, Pe = (
|
|
454
|
-
var
|
|
453
|
+
}, Pe = (r) => Object.values(r).filter(Boolean).map((o) => {
|
|
454
|
+
var t;
|
|
455
455
|
const a = { tooth: o.tooth };
|
|
456
|
-
return (
|
|
456
|
+
return (t = o == null ? void 0 : o.conditions) != null && t.length && (a.conditions = o.conditions), o != null && o.surfaces && Object.keys(o.surfaces).length > 0 && (a.surfaces = o.surfaces), a;
|
|
457
457
|
}).filter((o) => {
|
|
458
458
|
var a;
|
|
459
459
|
return ((a = o.conditions) == null ? void 0 : a.length) || Object.keys(o.surfaces ?? {}).length;
|
|
460
|
-
}).sort((o, a) => o.tooth.localeCompare(a.tooth)),
|
|
460
|
+
}).sort((o, a) => o.tooth.localeCompare(a.tooth)), V = (r) => {
|
|
461
461
|
var n;
|
|
462
|
-
const o =
|
|
463
|
-
Object.entries(
|
|
464
|
-
) : void 0, a = !!((n =
|
|
465
|
-
if (!(!a && !
|
|
462
|
+
const o = r.surfaces ? Object.fromEntries(
|
|
463
|
+
Object.entries(r.surfaces).filter(([, s]) => !!(s != null && s.length))
|
|
464
|
+
) : void 0, a = !!((n = r.conditions) != null && n.length), t = !!(o && Object.keys(o).length > 0);
|
|
465
|
+
if (!(!a && !t))
|
|
466
466
|
return {
|
|
467
|
-
tooth:
|
|
468
|
-
conditions: a ?
|
|
469
|
-
surfaces:
|
|
467
|
+
tooth: r.tooth,
|
|
468
|
+
conditions: a ? r.conditions : void 0,
|
|
469
|
+
surfaces: t ? o : void 0
|
|
470
470
|
};
|
|
471
|
-
}, Ie = (
|
|
472
|
-
var
|
|
473
|
-
if (!Ce.get(
|
|
474
|
-
return
|
|
475
|
-
const
|
|
471
|
+
}, Ie = (r, o, a, t) => {
|
|
472
|
+
var y;
|
|
473
|
+
if (!Ce.get(t))
|
|
474
|
+
return r;
|
|
475
|
+
const s = r[o] ?? {}, p = ((y = s.surfaces) == null ? void 0 : y[a]) ?? [], v = {
|
|
476
476
|
tooth: o,
|
|
477
|
-
conditions:
|
|
477
|
+
conditions: s.conditions,
|
|
478
478
|
surfaces: {
|
|
479
|
-
...
|
|
480
|
-
[a]: W(
|
|
479
|
+
...s.surfaces ?? {},
|
|
480
|
+
[a]: W(U([...p, t]))
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
return {
|
|
484
|
-
...
|
|
485
|
-
[o]:
|
|
484
|
+
...r,
|
|
485
|
+
[o]: V(v)
|
|
486
486
|
};
|
|
487
|
-
}, Le = (
|
|
488
|
-
const
|
|
487
|
+
}, Le = (r, o, a) => {
|
|
488
|
+
const t = r[o] ?? {}, n = {
|
|
489
489
|
tooth: o,
|
|
490
|
-
surfaces:
|
|
491
|
-
conditions: W(
|
|
490
|
+
surfaces: t.surfaces,
|
|
491
|
+
conditions: W(U([...t.conditions ?? [], a]))
|
|
492
492
|
};
|
|
493
493
|
return {
|
|
494
|
-
...
|
|
495
|
-
[o]:
|
|
494
|
+
...r,
|
|
495
|
+
[o]: V(n)
|
|
496
496
|
};
|
|
497
|
-
}, De = (
|
|
498
|
-
var
|
|
499
|
-
const
|
|
500
|
-
if (!((p = (
|
|
501
|
-
return
|
|
502
|
-
const n = { ...
|
|
497
|
+
}, De = (r, o, a) => {
|
|
498
|
+
var s, p;
|
|
499
|
+
const t = r[o];
|
|
500
|
+
if (!((p = (s = t == null ? void 0 : t.surfaces) == null ? void 0 : s[a]) != null && p.length))
|
|
501
|
+
return r;
|
|
502
|
+
const n = { ...t.surfaces ?? {} };
|
|
503
503
|
return delete n[a], {
|
|
504
|
-
...
|
|
505
|
-
[o]:
|
|
504
|
+
...r,
|
|
505
|
+
[o]: V({
|
|
506
506
|
tooth: o,
|
|
507
|
-
conditions:
|
|
507
|
+
conditions: t.conditions,
|
|
508
508
|
surfaces: n
|
|
509
509
|
})
|
|
510
510
|
};
|
|
511
|
-
}, ze = (
|
|
512
|
-
if (!
|
|
513
|
-
return
|
|
514
|
-
const
|
|
511
|
+
}, ze = (r, o) => {
|
|
512
|
+
if (!r[o])
|
|
513
|
+
return r;
|
|
514
|
+
const t = V({
|
|
515
515
|
tooth: o,
|
|
516
516
|
conditions: void 0,
|
|
517
517
|
surfaces: void 0
|
|
518
518
|
});
|
|
519
|
-
if (!
|
|
520
|
-
const n = { ...
|
|
519
|
+
if (!t) {
|
|
520
|
+
const n = { ...r };
|
|
521
521
|
return delete n[o], n;
|
|
522
522
|
}
|
|
523
523
|
return {
|
|
524
|
-
...
|
|
525
|
-
[o]:
|
|
524
|
+
...r,
|
|
525
|
+
[o]: t
|
|
526
526
|
};
|
|
527
|
-
},
|
|
527
|
+
}, de = (r) => {
|
|
528
528
|
var o;
|
|
529
|
-
return ((o = K.find((a) => a.id ===
|
|
530
|
-
}, Ye =
|
|
529
|
+
return ((o = K.find((a) => a.id === r)) == null ? void 0 : o.color) ?? "#dbe4ea";
|
|
530
|
+
}, Ye = D(function({
|
|
531
531
|
surface: o,
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
onApply: v,
|
|
538
|
-
onClear: g,
|
|
539
|
-
disabled: y
|
|
532
|
+
path: a,
|
|
533
|
+
condition: t,
|
|
534
|
+
onApply: n,
|
|
535
|
+
onClear: s,
|
|
536
|
+
disabled: p
|
|
540
537
|
}) {
|
|
541
|
-
return /* @__PURE__ */ c.
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
x.preventDefault(), g(o);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
),
|
|
557
|
-
/* @__PURE__ */ c.jsx(
|
|
558
|
-
"text",
|
|
559
|
-
{
|
|
560
|
-
x: n,
|
|
561
|
-
y: i,
|
|
562
|
-
textAnchor: "middle",
|
|
563
|
-
className: "ov-pointer-events-none ov-select-none ov-fill-slate-700 ov-text-[10px] ov-font-semibold",
|
|
564
|
-
children: a
|
|
538
|
+
return /* @__PURE__ */ c.jsx("g", { children: /* @__PURE__ */ c.jsx(
|
|
539
|
+
"path",
|
|
540
|
+
{
|
|
541
|
+
d: a,
|
|
542
|
+
fill: de(t),
|
|
543
|
+
stroke: "#1f2937",
|
|
544
|
+
strokeWidth: 1.4,
|
|
545
|
+
strokeLinejoin: "round",
|
|
546
|
+
className: p ? "" : "ov-cursor-pointer ov-transition-opacity hover:ov-opacity-85",
|
|
547
|
+
onClick: p ? void 0 : () => n(o),
|
|
548
|
+
onContextMenu: p ? void 0 : (v) => {
|
|
549
|
+
v.preventDefault(), s(o);
|
|
565
550
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
}),
|
|
569
|
-
const o =
|
|
570
|
-
"M
|
|
571
|
-
"Q 31 13
|
|
572
|
-
"Q
|
|
573
|
-
"Q
|
|
574
|
-
"Q
|
|
575
|
-
"Q
|
|
551
|
+
}
|
|
552
|
+
) });
|
|
553
|
+
}), l = (...r) => `${r.join(" ")} Z`, $e = (r) => {
|
|
554
|
+
const o = l(
|
|
555
|
+
"M 19 20",
|
|
556
|
+
"Q 31 13 43 20",
|
|
557
|
+
"Q 49 27 47 38",
|
|
558
|
+
"Q 45 50 31 55",
|
|
559
|
+
"Q 17 50 15 38",
|
|
560
|
+
"Q 13 27 19 20"
|
|
576
561
|
), a = [
|
|
577
562
|
{
|
|
578
563
|
key: "V",
|
|
579
564
|
label: "V",
|
|
580
|
-
path:
|
|
581
|
-
"M
|
|
582
|
-
"Q 31 14
|
|
583
|
-
"Q
|
|
584
|
-
"Q 31 32
|
|
585
|
-
"Q
|
|
565
|
+
path: l(
|
|
566
|
+
"M 19 20",
|
|
567
|
+
"Q 31 14 43 20",
|
|
568
|
+
"Q 40 26 37 30",
|
|
569
|
+
"Q 31 32 25 30",
|
|
570
|
+
"Q 22 26 19 20"
|
|
586
571
|
),
|
|
587
572
|
text: { x: 31, y: 25 }
|
|
588
573
|
},
|
|
589
574
|
{
|
|
590
575
|
key: "M",
|
|
591
576
|
label: "M",
|
|
592
|
-
path:
|
|
593
|
-
"M
|
|
594
|
-
"Q
|
|
595
|
-
"Q
|
|
596
|
-
"Q
|
|
597
|
-
"Q
|
|
577
|
+
path: l(
|
|
578
|
+
"M 15 38",
|
|
579
|
+
"Q 15 28 19 20",
|
|
580
|
+
"Q 22 26 25 30",
|
|
581
|
+
"Q 24 38 25 44",
|
|
582
|
+
"Q 18 43 15 38"
|
|
598
583
|
),
|
|
599
|
-
text: { x:
|
|
584
|
+
text: { x: 21, y: 38 }
|
|
600
585
|
},
|
|
601
586
|
{
|
|
602
|
-
key:
|
|
603
|
-
label:
|
|
604
|
-
path:
|
|
605
|
-
"M
|
|
606
|
-
"Q 31 26
|
|
607
|
-
"Q
|
|
608
|
-
"Q 31
|
|
609
|
-
"Q
|
|
587
|
+
key: r,
|
|
588
|
+
label: r,
|
|
589
|
+
path: l(
|
|
590
|
+
"M 25 30",
|
|
591
|
+
"Q 31 26 37 30",
|
|
592
|
+
"Q 40 37 37 44",
|
|
593
|
+
"Q 31 49 25 44",
|
|
594
|
+
"Q 22 38 25 30"
|
|
610
595
|
),
|
|
611
596
|
text: { x: 31, y: 40 }
|
|
612
597
|
},
|
|
613
598
|
{
|
|
614
599
|
key: "D",
|
|
615
600
|
label: "D",
|
|
616
|
-
path:
|
|
617
|
-
"M
|
|
618
|
-
"Q
|
|
619
|
-
"Q
|
|
620
|
-
"Q
|
|
621
|
-
"Q
|
|
601
|
+
path: l(
|
|
602
|
+
"M 47 38",
|
|
603
|
+
"Q 47 28 43 20",
|
|
604
|
+
"Q 40 26 37 30",
|
|
605
|
+
"Q 38 38 37 44",
|
|
606
|
+
"Q 44 43 47 38"
|
|
622
607
|
),
|
|
623
|
-
text: { x:
|
|
608
|
+
text: { x: 41, y: 38 }
|
|
624
609
|
},
|
|
625
610
|
{
|
|
626
611
|
key: "L",
|
|
627
612
|
label: "L",
|
|
628
|
-
path:
|
|
629
|
-
"M
|
|
630
|
-
"Q 31
|
|
631
|
-
"Q 42 47
|
|
632
|
-
"Q
|
|
633
|
-
"Q
|
|
634
|
-
"Q 20
|
|
613
|
+
path: l(
|
|
614
|
+
"M 25 44",
|
|
615
|
+
"Q 31 50 37 44",
|
|
616
|
+
"Q 42 45 47 38",
|
|
617
|
+
"Q 45 50 31 55",
|
|
618
|
+
"Q 17 50 15 38",
|
|
619
|
+
"Q 20 45 25 44"
|
|
635
620
|
),
|
|
636
621
|
text: { x: 31, y: 55 }
|
|
637
622
|
}
|
|
@@ -640,105 +625,105 @@ const ye = {
|
|
|
640
625
|
crownOutline: o,
|
|
641
626
|
crownCap: o,
|
|
642
627
|
rootPaths: [
|
|
643
|
-
|
|
644
|
-
"M
|
|
645
|
-
"Q 31 58
|
|
646
|
-
"Q
|
|
647
|
-
"Q 34
|
|
648
|
-
"Q 28
|
|
649
|
-
"Q
|
|
628
|
+
l(
|
|
629
|
+
"M 26 54",
|
|
630
|
+
"Q 31 58 36 54",
|
|
631
|
+
"Q 39 65 37 81",
|
|
632
|
+
"Q 34 95 31 106",
|
|
633
|
+
"Q 28 95 25 81",
|
|
634
|
+
"Q 23 65 26 54"
|
|
650
635
|
)
|
|
651
636
|
],
|
|
652
637
|
surfaces: a
|
|
653
638
|
};
|
|
654
639
|
}, Fe = () => {
|
|
655
|
-
const
|
|
656
|
-
"M
|
|
657
|
-
"Q 31 12
|
|
658
|
-
"Q
|
|
659
|
-
"Q
|
|
660
|
-
"Q
|
|
661
|
-
"Q
|
|
640
|
+
const r = l(
|
|
641
|
+
"M 22 23",
|
|
642
|
+
"Q 31 12 40 23",
|
|
643
|
+
"Q 46 31 44 41",
|
|
644
|
+
"Q 42 52 31 58",
|
|
645
|
+
"Q 20 52 18 41",
|
|
646
|
+
"Q 16 31 22 23"
|
|
662
647
|
), o = [
|
|
663
648
|
{
|
|
664
649
|
key: "V",
|
|
665
650
|
label: "V",
|
|
666
|
-
path:
|
|
667
|
-
"M
|
|
668
|
-
"Q 31 13
|
|
669
|
-
"Q
|
|
670
|
-
"Q 31 34
|
|
671
|
-
"Q
|
|
651
|
+
path: l(
|
|
652
|
+
"M 22 23",
|
|
653
|
+
"Q 31 13 40 23",
|
|
654
|
+
"Q 37 29 36 31",
|
|
655
|
+
"Q 31 34 26 31",
|
|
656
|
+
"Q 25 29 22 23"
|
|
672
657
|
),
|
|
673
658
|
text: { x: 31, y: 26 }
|
|
674
659
|
},
|
|
675
660
|
{
|
|
676
661
|
key: "M",
|
|
677
662
|
label: "M",
|
|
678
|
-
path:
|
|
679
|
-
"M
|
|
680
|
-
"Q
|
|
681
|
-
"Q
|
|
682
|
-
"Q
|
|
683
|
-
"Q
|
|
663
|
+
path: l(
|
|
664
|
+
"M 18 41",
|
|
665
|
+
"Q 18 31 22 23",
|
|
666
|
+
"Q 25 29 26 31",
|
|
667
|
+
"Q 25 39 26 46",
|
|
668
|
+
"Q 20 44 18 41"
|
|
684
669
|
),
|
|
685
|
-
text: { x:
|
|
670
|
+
text: { x: 22, y: 40 }
|
|
686
671
|
},
|
|
687
672
|
{
|
|
688
673
|
key: "I",
|
|
689
674
|
label: "I",
|
|
690
|
-
path:
|
|
691
|
-
"M
|
|
692
|
-
"Q 31 28
|
|
693
|
-
"Q
|
|
694
|
-
"Q 31
|
|
695
|
-
"Q
|
|
675
|
+
path: l(
|
|
676
|
+
"M 26 31",
|
|
677
|
+
"Q 31 28 36 31",
|
|
678
|
+
"Q 38 39 36 46",
|
|
679
|
+
"Q 31 51 26 46",
|
|
680
|
+
"Q 24 40 26 31"
|
|
696
681
|
),
|
|
697
682
|
text: { x: 31, y: 40 }
|
|
698
683
|
},
|
|
699
684
|
{
|
|
700
685
|
key: "D",
|
|
701
686
|
label: "D",
|
|
702
|
-
path:
|
|
703
|
-
"M
|
|
704
|
-
"Q
|
|
705
|
-
"Q
|
|
706
|
-
"Q
|
|
707
|
-
"Q
|
|
687
|
+
path: l(
|
|
688
|
+
"M 44 41",
|
|
689
|
+
"Q 44 31 40 23",
|
|
690
|
+
"Q 37 29 36 31",
|
|
691
|
+
"Q 37 39 36 46",
|
|
692
|
+
"Q 42 44 44 41"
|
|
708
693
|
),
|
|
709
|
-
text: { x:
|
|
694
|
+
text: { x: 40, y: 40 }
|
|
710
695
|
},
|
|
711
696
|
{
|
|
712
697
|
key: "L",
|
|
713
698
|
label: "L",
|
|
714
|
-
path:
|
|
715
|
-
"M
|
|
716
|
-
"Q 31
|
|
717
|
-
"Q 40
|
|
718
|
-
"Q
|
|
719
|
-
"Q
|
|
720
|
-
"Q 22
|
|
699
|
+
path: l(
|
|
700
|
+
"M 26 46",
|
|
701
|
+
"Q 31 52 36 46",
|
|
702
|
+
"Q 40 47 44 41",
|
|
703
|
+
"Q 42 52 31 58",
|
|
704
|
+
"Q 20 52 18 41",
|
|
705
|
+
"Q 22 47 26 46"
|
|
721
706
|
),
|
|
722
707
|
text: { x: 31, y: 55 }
|
|
723
708
|
}
|
|
724
709
|
];
|
|
725
710
|
return {
|
|
726
|
-
crownOutline:
|
|
727
|
-
crownCap:
|
|
711
|
+
crownOutline: r,
|
|
712
|
+
crownCap: r,
|
|
728
713
|
rootPaths: [
|
|
729
|
-
|
|
730
|
-
"M
|
|
731
|
-
"Q 31 62
|
|
732
|
-
"Q
|
|
733
|
-
"Q 35
|
|
734
|
-
"Q 27
|
|
735
|
-
"Q
|
|
714
|
+
l(
|
|
715
|
+
"M 26 58",
|
|
716
|
+
"Q 31 62 36 58",
|
|
717
|
+
"Q 40 71 38 88",
|
|
718
|
+
"Q 35 106 31 116",
|
|
719
|
+
"Q 27 106 24 88",
|
|
720
|
+
"Q 22 71 26 58"
|
|
736
721
|
)
|
|
737
722
|
],
|
|
738
723
|
surfaces: o
|
|
739
724
|
};
|
|
740
|
-
},
|
|
741
|
-
const
|
|
725
|
+
}, Ue = () => {
|
|
726
|
+
const r = l(
|
|
742
727
|
"M 20 20",
|
|
743
728
|
"Q 31 15 42 20",
|
|
744
729
|
"Q 48 28 46 39",
|
|
@@ -749,7 +734,7 @@ const ye = {
|
|
|
749
734
|
{
|
|
750
735
|
key: "V",
|
|
751
736
|
label: "V",
|
|
752
|
-
path:
|
|
737
|
+
path: l(
|
|
753
738
|
"M 20 20",
|
|
754
739
|
"Q 31 14 42 20",
|
|
755
740
|
"Q 39 28 36 31",
|
|
@@ -761,23 +746,23 @@ const ye = {
|
|
|
761
746
|
{
|
|
762
747
|
key: "M",
|
|
763
748
|
label: "M",
|
|
764
|
-
path:
|
|
749
|
+
path: l(
|
|
765
750
|
"M 16 39",
|
|
766
751
|
"Q 15 29 20 20",
|
|
767
752
|
"Q 23 28 26 31",
|
|
768
|
-
"Q 24
|
|
769
|
-
"Q 20
|
|
753
|
+
"Q 24 39 26 46",
|
|
754
|
+
"Q 20 45 16 39"
|
|
770
755
|
),
|
|
771
756
|
text: { x: 22, y: 40 }
|
|
772
757
|
},
|
|
773
758
|
{
|
|
774
759
|
key: "O",
|
|
775
760
|
label: "O",
|
|
776
|
-
path:
|
|
761
|
+
path: l(
|
|
777
762
|
"M 26 31",
|
|
778
763
|
"Q 31 27 36 31",
|
|
779
|
-
"Q 39
|
|
780
|
-
"Q 31
|
|
764
|
+
"Q 39 38 36 46",
|
|
765
|
+
"Q 31 50 26 46",
|
|
781
766
|
"Q 23 39 26 31"
|
|
782
767
|
),
|
|
783
768
|
text: { x: 31, y: 40 }
|
|
@@ -785,54 +770,54 @@ const ye = {
|
|
|
785
770
|
{
|
|
786
771
|
key: "D",
|
|
787
772
|
label: "D",
|
|
788
|
-
path:
|
|
773
|
+
path: l(
|
|
789
774
|
"M 46 39",
|
|
790
775
|
"Q 47 29 42 20",
|
|
791
776
|
"Q 39 28 36 31",
|
|
792
|
-
"Q 38
|
|
793
|
-
"Q 42
|
|
777
|
+
"Q 38 39 36 46",
|
|
778
|
+
"Q 42 45 46 39"
|
|
794
779
|
),
|
|
795
780
|
text: { x: 40, y: 40 }
|
|
796
781
|
},
|
|
797
782
|
{
|
|
798
783
|
key: "L",
|
|
799
784
|
label: "L",
|
|
800
|
-
path:
|
|
801
|
-
"M
|
|
802
|
-
"Q 31
|
|
803
|
-
"Q
|
|
804
|
-
"Q 44
|
|
805
|
-
"Q 18
|
|
806
|
-
"Q
|
|
785
|
+
path: l(
|
|
786
|
+
"M 26 46",
|
|
787
|
+
"Q 31 51 36 46",
|
|
788
|
+
"Q 41 47 46 39",
|
|
789
|
+
"Q 44 52 31 57",
|
|
790
|
+
"Q 18 52 16 39",
|
|
791
|
+
"Q 21 47 26 46"
|
|
807
792
|
),
|
|
808
793
|
text: { x: 31, y: 56 }
|
|
809
794
|
}
|
|
810
795
|
];
|
|
811
796
|
return {
|
|
812
|
-
crownOutline:
|
|
813
|
-
crownCap:
|
|
797
|
+
crownOutline: r,
|
|
798
|
+
crownCap: r,
|
|
814
799
|
rootPaths: [
|
|
815
|
-
|
|
800
|
+
l(
|
|
816
801
|
"M 22 57",
|
|
817
802
|
"Q 25 60 28 57",
|
|
818
|
-
"Q 28
|
|
819
|
-
"Q 23
|
|
820
|
-
"Q 17
|
|
803
|
+
"Q 28 70 25 86",
|
|
804
|
+
"Q 23 96 20 104",
|
|
805
|
+
"Q 17 94 17 82",
|
|
821
806
|
"Q 17 71 22 57"
|
|
822
807
|
),
|
|
823
|
-
|
|
808
|
+
l(
|
|
824
809
|
"M 34 57",
|
|
825
810
|
"Q 37 60 40 57",
|
|
826
|
-
"Q 45
|
|
827
|
-
"Q 45
|
|
828
|
-
"Q 39
|
|
811
|
+
"Q 45 70 45 82",
|
|
812
|
+
"Q 45 94 42 104",
|
|
813
|
+
"Q 39 96 37 86",
|
|
829
814
|
"Q 34 71 34 57"
|
|
830
815
|
)
|
|
831
816
|
],
|
|
832
817
|
surfaces: o
|
|
833
818
|
};
|
|
834
|
-
},
|
|
835
|
-
const o =
|
|
819
|
+
}, We = (r) => {
|
|
820
|
+
const o = l(
|
|
836
821
|
"M 16 22",
|
|
837
822
|
"Q 31 13 46 22",
|
|
838
823
|
"Q 52 32 49 43",
|
|
@@ -843,7 +828,7 @@ const ye = {
|
|
|
843
828
|
{
|
|
844
829
|
key: "V",
|
|
845
830
|
label: "V",
|
|
846
|
-
path:
|
|
831
|
+
path: l(
|
|
847
832
|
"M 16 22",
|
|
848
833
|
"Q 31 12 46 22",
|
|
849
834
|
"Q 42 31 38 34",
|
|
@@ -855,23 +840,23 @@ const ye = {
|
|
|
855
840
|
{
|
|
856
841
|
key: "M",
|
|
857
842
|
label: "M",
|
|
858
|
-
path:
|
|
843
|
+
path: l(
|
|
859
844
|
"M 13 43",
|
|
860
845
|
"Q 11 32 16 22",
|
|
861
846
|
"Q 20 31 24 34",
|
|
862
|
-
"Q 22
|
|
863
|
-
"Q 17
|
|
847
|
+
"Q 22 43 24 49",
|
|
848
|
+
"Q 17 48 13 43"
|
|
864
849
|
),
|
|
865
850
|
text: { x: 21, y: 43 }
|
|
866
851
|
},
|
|
867
852
|
{
|
|
868
853
|
key: "O",
|
|
869
854
|
label: "O",
|
|
870
|
-
path:
|
|
855
|
+
path: l(
|
|
871
856
|
"M 24 34",
|
|
872
857
|
"Q 31 29 38 34",
|
|
873
|
-
"Q 41
|
|
874
|
-
"Q 31
|
|
858
|
+
"Q 41 42 38 49",
|
|
859
|
+
"Q 31 54 24 49",
|
|
875
860
|
"Q 21 43 24 34"
|
|
876
861
|
),
|
|
877
862
|
text: { x: 31, y: 43 }
|
|
@@ -879,200 +864,202 @@ const ye = {
|
|
|
879
864
|
{
|
|
880
865
|
key: "D",
|
|
881
866
|
label: "D",
|
|
882
|
-
path:
|
|
867
|
+
path: l(
|
|
883
868
|
"M 49 43",
|
|
884
869
|
"Q 51 32 46 22",
|
|
885
870
|
"Q 42 31 38 34",
|
|
886
|
-
"Q 40
|
|
887
|
-
"Q 45
|
|
871
|
+
"Q 40 43 38 49",
|
|
872
|
+
"Q 45 48 49 43"
|
|
888
873
|
),
|
|
889
874
|
text: { x: 41, y: 43 }
|
|
890
875
|
},
|
|
891
876
|
{
|
|
892
877
|
key: "L",
|
|
893
878
|
label: "L",
|
|
894
|
-
path:
|
|
895
|
-
"M
|
|
896
|
-
"Q 31
|
|
897
|
-
"Q
|
|
898
|
-
"Q 46
|
|
899
|
-
"Q 16
|
|
900
|
-
"Q
|
|
879
|
+
path: l(
|
|
880
|
+
"M 24 49",
|
|
881
|
+
"Q 31 55 38 49",
|
|
882
|
+
"Q 44 50 49 43",
|
|
883
|
+
"Q 46 56 31 61",
|
|
884
|
+
"Q 16 56 13 43",
|
|
885
|
+
"Q 18 50 24 49"
|
|
901
886
|
),
|
|
902
887
|
text: { x: 31, y: 60 }
|
|
903
888
|
}
|
|
904
|
-
],
|
|
905
|
-
|
|
889
|
+
], t = r === "upper" ? [
|
|
890
|
+
l(
|
|
906
891
|
"M 17 61",
|
|
907
892
|
"Q 20 64 23 61",
|
|
908
|
-
"Q 24
|
|
909
|
-
"Q 20
|
|
910
|
-
"Q 14
|
|
893
|
+
"Q 24 72 22 87",
|
|
894
|
+
"Q 20 98 17 106",
|
|
895
|
+
"Q 14 96 14 84",
|
|
911
896
|
"Q 14 73 17 61"
|
|
912
897
|
),
|
|
913
|
-
|
|
898
|
+
l(
|
|
914
899
|
"M 28 61",
|
|
915
900
|
"Q 31 65 34 61",
|
|
916
|
-
"Q 36
|
|
917
|
-
"Q 34
|
|
918
|
-
"Q 28
|
|
919
|
-
"Q 26
|
|
901
|
+
"Q 36 74 35 92",
|
|
902
|
+
"Q 34 105 31 116",
|
|
903
|
+
"Q 28 105 27 92",
|
|
904
|
+
"Q 26 74 28 61"
|
|
920
905
|
),
|
|
921
|
-
|
|
906
|
+
l(
|
|
922
907
|
"M 39 61",
|
|
923
908
|
"Q 42 64 45 61",
|
|
924
|
-
"Q 48
|
|
925
|
-
"Q 48
|
|
926
|
-
"Q 42
|
|
909
|
+
"Q 48 72 48 84",
|
|
910
|
+
"Q 48 96 45 106",
|
|
911
|
+
"Q 42 98 40 87",
|
|
927
912
|
"Q 38 73 39 61"
|
|
928
913
|
)
|
|
929
914
|
] : [
|
|
930
|
-
|
|
915
|
+
l(
|
|
931
916
|
"M 22 61",
|
|
932
917
|
"Q 26 64 29 61",
|
|
933
|
-
"Q 29
|
|
934
|
-
"Q 24
|
|
935
|
-
"Q 17
|
|
936
|
-
"Q 17
|
|
918
|
+
"Q 29 74 26 92",
|
|
919
|
+
"Q 24 103 20 112",
|
|
920
|
+
"Q 17 101 17 88",
|
|
921
|
+
"Q 17 74 22 61"
|
|
937
922
|
),
|
|
938
|
-
|
|
923
|
+
l(
|
|
939
924
|
"M 33 61",
|
|
940
925
|
"Q 36 64 40 61",
|
|
941
|
-
"Q 45
|
|
942
|
-
"Q 45
|
|
943
|
-
"Q 38
|
|
926
|
+
"Q 45 74 45 88",
|
|
927
|
+
"Q 45 101 42 112",
|
|
928
|
+
"Q 38 103 36 92",
|
|
944
929
|
"Q 33 76 33 61"
|
|
945
930
|
)
|
|
946
931
|
];
|
|
947
932
|
return {
|
|
948
933
|
crownOutline: o,
|
|
949
934
|
crownCap: o,
|
|
950
|
-
rootPaths:
|
|
935
|
+
rootPaths: t,
|
|
951
936
|
surfaces: a
|
|
952
937
|
};
|
|
953
|
-
}, Ve = (
|
|
938
|
+
}, Ve = (r) => r.type === "incisor" ? $e(r.visual.centerLabel) : r.type === "canine" ? Fe() : r.type === "premolar" ? Ue() : We(r.arch), Be = {
|
|
939
|
+
xs: {
|
|
940
|
+
wrapper: "ov-min-w-[56px] ov-gap-0.5",
|
|
941
|
+
label: "ov-text-[10px]",
|
|
942
|
+
svg: "ov-h-[68px] ov-w-[34px]"
|
|
943
|
+
},
|
|
954
944
|
sm: {
|
|
945
|
+
wrapper: "ov-min-w-[60px] ov-gap-0.5",
|
|
946
|
+
label: "ov-text-[11px]",
|
|
947
|
+
svg: "ov-h-[116px] ov-w-[58px]"
|
|
948
|
+
},
|
|
949
|
+
md: {
|
|
955
950
|
wrapper: "ov-min-w-[64px] ov-gap-0.5",
|
|
956
951
|
label: "ov-text-[11px]",
|
|
957
952
|
svg: "ov-h-[124px] ov-w-[62px]"
|
|
958
953
|
},
|
|
959
|
-
|
|
954
|
+
lg: {
|
|
960
955
|
wrapper: "ov-min-w-[74px] ov-gap-0.5",
|
|
961
956
|
label: "ov-text-xs",
|
|
962
|
-
svg: "ov-h-[138px] ov-w-[
|
|
963
|
-
},
|
|
964
|
-
lg: {
|
|
965
|
-
wrapper: "ov-min-w-[84px] ov-gap-0.5",
|
|
966
|
-
label: "ov-text-sm",
|
|
967
|
-
svg: "ov-h-[154px] ov-w-[108px]"
|
|
957
|
+
svg: "ov-h-[138px] ov-w-[72px]"
|
|
968
958
|
}
|
|
969
|
-
},
|
|
959
|
+
}, Ge = "8 10 46 114", qe = "matrix(1 0 0 -1 0 134)", He = D(function({
|
|
970
960
|
definition: o,
|
|
971
961
|
record: a,
|
|
972
|
-
editable:
|
|
962
|
+
editable: t,
|
|
973
963
|
selectedCondition: n,
|
|
974
|
-
size:
|
|
964
|
+
size: s,
|
|
975
965
|
onApplySurface: p,
|
|
976
966
|
onApplyTooth: v,
|
|
977
|
-
onClearSurface:
|
|
978
|
-
onClearTooth:
|
|
967
|
+
onClearSurface: y,
|
|
968
|
+
onClearTooth: T
|
|
979
969
|
}) {
|
|
980
|
-
const
|
|
981
|
-
() =>
|
|
982
|
-
[
|
|
983
|
-
), M =
|
|
984
|
-
(
|
|
970
|
+
const h = Be[s], w = L(() => Ve(o), [o]), _ = (a == null ? void 0 : a.conditions) ?? [], k = L(
|
|
971
|
+
() => _.length ? de(_[0]) : "#f8fafc",
|
|
972
|
+
[_]
|
|
973
|
+
), M = o.arch === "upper", C = L(() => o.type === "incisor" ? "ov-border-sky-100" : o.type === "canine" ? "ov-border-amber-100" : o.type === "premolar" ? "ov-border-emerald-100" : "ov-border-rose-100", [o.type]), x = Q(
|
|
974
|
+
(b) => p(o.id, b, n),
|
|
985
975
|
[o.id, p, n]
|
|
986
|
-
),
|
|
987
|
-
(
|
|
988
|
-
[o.id,
|
|
989
|
-
),
|
|
976
|
+
), N = Q(
|
|
977
|
+
(b) => y(o.id, b),
|
|
978
|
+
[o.id, y]
|
|
979
|
+
), g = Q(() => {
|
|
990
980
|
v(o.id, n);
|
|
991
|
-
}, [o.id, v, n]),
|
|
992
|
-
|
|
993
|
-
}, [o.id,
|
|
994
|
-
return /* @__PURE__ */ c.jsxs("div", { className: ["ov-flex ov-flex-col ov-items-center",
|
|
995
|
-
/* @__PURE__ */ c.jsx("span", { className: ["ov-font-semibold ov-text-clinic-700",
|
|
996
|
-
/* @__PURE__ */ c.
|
|
997
|
-
|
|
981
|
+
}, [o.id, v, n]), S = Q(() => {
|
|
982
|
+
T(o.id);
|
|
983
|
+
}, [o.id, T]);
|
|
984
|
+
return /* @__PURE__ */ c.jsxs("div", { className: ["ov-flex ov-flex-col ov-items-center", C, h.wrapper].join(" "), children: [
|
|
985
|
+
/* @__PURE__ */ c.jsx("span", { className: ["ov-font-semibold ov-text-clinic-700", h.label].join(" "), children: o.label }),
|
|
986
|
+
/* @__PURE__ */ c.jsx("svg", { viewBox: Ge, className: h.svg, children: /* @__PURE__ */ c.jsxs("g", { transform: M ? qe : void 0, children: [
|
|
987
|
+
w.rootPaths.map((b, E) => /* @__PURE__ */ c.jsx(
|
|
998
988
|
"path",
|
|
999
989
|
{
|
|
1000
|
-
d:
|
|
1001
|
-
fill:
|
|
990
|
+
d: b,
|
|
991
|
+
fill: k,
|
|
1002
992
|
stroke: "#1f2937",
|
|
1003
993
|
strokeWidth: 1.4,
|
|
1004
994
|
strokeLinejoin: "round",
|
|
1005
|
-
className:
|
|
1006
|
-
onClick:
|
|
1007
|
-
onContextMenu:
|
|
1008
|
-
R.preventDefault(),
|
|
995
|
+
className: t ? "ov-cursor-pointer ov-transition-opacity hover:ov-opacity-85" : "",
|
|
996
|
+
onClick: t ? g : void 0,
|
|
997
|
+
onContextMenu: t ? (R) => {
|
|
998
|
+
R.preventDefault(), S();
|
|
1009
999
|
} : void 0
|
|
1010
1000
|
},
|
|
1011
|
-
`${o.id}-root-${
|
|
1001
|
+
`${o.id}-root-${E}`
|
|
1012
1002
|
)),
|
|
1013
|
-
/* @__PURE__ */ c.jsx("path", { d:
|
|
1014
|
-
|
|
1015
|
-
var
|
|
1003
|
+
/* @__PURE__ */ c.jsx("path", { d: w.crownCap, fill: k, stroke: "#1f2937", strokeWidth: 1.6 }),
|
|
1004
|
+
w.surfaces.map((b) => {
|
|
1005
|
+
var E, R;
|
|
1016
1006
|
return /* @__PURE__ */ c.jsx(
|
|
1017
1007
|
Ye,
|
|
1018
1008
|
{
|
|
1019
|
-
surface:
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
onApply: A,
|
|
1026
|
-
onClear: h,
|
|
1027
|
-
disabled: !r
|
|
1009
|
+
surface: b.key,
|
|
1010
|
+
path: b.path,
|
|
1011
|
+
condition: (R = (E = a == null ? void 0 : a.surfaces) == null ? void 0 : E[b.key]) == null ? void 0 : R[0],
|
|
1012
|
+
onApply: x,
|
|
1013
|
+
onClear: N,
|
|
1014
|
+
disabled: !t
|
|
1028
1015
|
},
|
|
1029
|
-
`${o.id}-${
|
|
1016
|
+
`${o.id}-${b.key}`
|
|
1030
1017
|
);
|
|
1031
1018
|
}),
|
|
1032
1019
|
/* @__PURE__ */ c.jsx(
|
|
1033
1020
|
"path",
|
|
1034
1021
|
{
|
|
1035
|
-
d:
|
|
1022
|
+
d: w.crownOutline,
|
|
1036
1023
|
fill: "none",
|
|
1037
1024
|
stroke: "#0f172a",
|
|
1038
1025
|
strokeWidth: 1.6,
|
|
1039
1026
|
strokeLinejoin: "round",
|
|
1040
|
-
className:
|
|
1041
|
-
onClick:
|
|
1042
|
-
onContextMenu:
|
|
1043
|
-
|
|
1027
|
+
className: t ? "ov-cursor-pointer" : "",
|
|
1028
|
+
onClick: t ? g : void 0,
|
|
1029
|
+
onContextMenu: t ? (b) => {
|
|
1030
|
+
b.preventDefault(), S();
|
|
1044
1031
|
} : void 0
|
|
1045
1032
|
}
|
|
1046
1033
|
)
|
|
1047
|
-
] })
|
|
1034
|
+
] }) })
|
|
1048
1035
|
] });
|
|
1049
|
-
}),
|
|
1036
|
+
}), Je = D(function({
|
|
1050
1037
|
teeth: o,
|
|
1051
1038
|
records: a,
|
|
1052
|
-
editable:
|
|
1039
|
+
editable: t,
|
|
1053
1040
|
selectedCondition: n,
|
|
1054
|
-
size:
|
|
1041
|
+
size: s,
|
|
1055
1042
|
onApplySurface: p,
|
|
1056
1043
|
onApplyTooth: v,
|
|
1057
|
-
onClearSurface:
|
|
1058
|
-
onClearTooth:
|
|
1044
|
+
onClearSurface: y,
|
|
1045
|
+
onClearTooth: T
|
|
1059
1046
|
}) {
|
|
1060
|
-
return /* @__PURE__ */ c.jsx("section", { children: /* @__PURE__ */ c.jsx("div", { className: "ov-overflow-x-auto ov-pb-1", children: /* @__PURE__ */ c.jsx("div", { className: "ov-flex ov-min-w-max ov-justify-center ov-gap-0.5", children: o.map((
|
|
1061
|
-
|
|
1047
|
+
return /* @__PURE__ */ c.jsx("section", { children: /* @__PURE__ */ c.jsx("div", { className: "ov-overflow-x-auto ov-pb-1", children: /* @__PURE__ */ c.jsx("div", { className: "ov-flex ov-min-w-max ov-justify-center ov-gap-0.5", children: o.map((h) => /* @__PURE__ */ c.jsx(
|
|
1048
|
+
He,
|
|
1062
1049
|
{
|
|
1063
|
-
definition:
|
|
1064
|
-
record: a[
|
|
1065
|
-
editable:
|
|
1050
|
+
definition: h,
|
|
1051
|
+
record: a[h.id],
|
|
1052
|
+
editable: t,
|
|
1066
1053
|
selectedCondition: n,
|
|
1067
|
-
size:
|
|
1054
|
+
size: s,
|
|
1068
1055
|
onApplySurface: p,
|
|
1069
1056
|
onApplyTooth: v,
|
|
1070
|
-
onClearSurface:
|
|
1071
|
-
onClearTooth:
|
|
1057
|
+
onClearSurface: y,
|
|
1058
|
+
onClearTooth: T
|
|
1072
1059
|
},
|
|
1073
|
-
|
|
1060
|
+
h.id
|
|
1074
1061
|
)) }) }) });
|
|
1075
|
-
}),
|
|
1062
|
+
}), Xe = D(function({ selectedCondition: o, onSelect: a }) {
|
|
1076
1063
|
return /* @__PURE__ */ c.jsxs("div", { className: "ov-rounded-3xl ov-border ov-border-slate-200 ov-bg-white ov-p-4 ov-shadow-panel", children: [
|
|
1077
1064
|
/* @__PURE__ */ c.jsxs("div", { className: "ov-mb-3 ov-flex ov-items-center ov-justify-between ov-gap-3", children: [
|
|
1078
1065
|
/* @__PURE__ */ c.jsxs("div", { children: [
|
|
@@ -1084,13 +1071,13 @@ const ye = {
|
|
|
1084
1071
|
o
|
|
1085
1072
|
] })
|
|
1086
1073
|
] }),
|
|
1087
|
-
/* @__PURE__ */ c.jsx("div", { className: "ov-flex ov-flex-wrap ov-gap-2", children: K.map((
|
|
1088
|
-
const n =
|
|
1074
|
+
/* @__PURE__ */ c.jsx("div", { className: "ov-flex ov-flex-wrap ov-gap-2", children: K.map((t) => {
|
|
1075
|
+
const n = t.id === o;
|
|
1089
1076
|
return /* @__PURE__ */ c.jsxs(
|
|
1090
1077
|
"button",
|
|
1091
1078
|
{
|
|
1092
1079
|
type: "button",
|
|
1093
|
-
onClick: () => a(
|
|
1080
|
+
onClick: () => a(t.id),
|
|
1094
1081
|
className: [
|
|
1095
1082
|
"ov-flex ov-items-center ov-gap-2 ov-rounded-full ov-border ov-px-3 ov-py-2 ov-text-sm ov-transition",
|
|
1096
1083
|
n ? "ov-border-clinic-700 ov-bg-clinic-900 ov-text-white" : "ov-border-slate-200 ov-bg-slate-50 ov-text-slate-700 hover:ov-border-clinic-400 hover:ov-bg-white"
|
|
@@ -1100,98 +1087,98 @@ const ye = {
|
|
|
1100
1087
|
"span",
|
|
1101
1088
|
{
|
|
1102
1089
|
className: "ov-h-3 ov-w-3 ov-rounded-full ov-border ov-border-white/40",
|
|
1103
|
-
style: { backgroundColor:
|
|
1090
|
+
style: { backgroundColor: t.color }
|
|
1104
1091
|
}
|
|
1105
1092
|
),
|
|
1106
|
-
/* @__PURE__ */ c.jsx("span", { children:
|
|
1093
|
+
/* @__PURE__ */ c.jsx("span", { children: t.label })
|
|
1107
1094
|
]
|
|
1108
1095
|
},
|
|
1109
|
-
|
|
1096
|
+
t.id
|
|
1110
1097
|
);
|
|
1111
1098
|
}) })
|
|
1112
1099
|
] });
|
|
1113
|
-
}),
|
|
1100
|
+
}), Ze = "CARIES", eo = D(function({
|
|
1114
1101
|
value: o,
|
|
1115
1102
|
defaultValue: a,
|
|
1116
|
-
onChange:
|
|
1103
|
+
onChange: t,
|
|
1117
1104
|
dentition: n = "mixed",
|
|
1118
|
-
selectedCondition:
|
|
1105
|
+
selectedCondition: s,
|
|
1119
1106
|
onSelectedConditionChange: p,
|
|
1120
1107
|
editable: v = !0,
|
|
1121
|
-
size:
|
|
1122
|
-
className:
|
|
1123
|
-
theme:
|
|
1108
|
+
size: y = "sm",
|
|
1109
|
+
className: T,
|
|
1110
|
+
theme: h
|
|
1124
1111
|
}) {
|
|
1125
|
-
const
|
|
1126
|
-
() =>
|
|
1127
|
-
), [M,
|
|
1128
|
-
() =>
|
|
1129
|
-
[
|
|
1130
|
-
),
|
|
1131
|
-
(
|
|
1132
|
-
|
|
1112
|
+
const w = typeof o < "u", [_, k] = ie(
|
|
1113
|
+
() => ue(a)
|
|
1114
|
+
), [M, C] = ie(Ze), x = L(
|
|
1115
|
+
() => w ? ue(o) : _,
|
|
1116
|
+
[_, w, o]
|
|
1117
|
+
), N = s ?? M, g = Q(
|
|
1118
|
+
(u) => {
|
|
1119
|
+
w || k(u), t == null || t(Pe(u));
|
|
1133
1120
|
},
|
|
1134
|
-
[
|
|
1135
|
-
),
|
|
1136
|
-
(
|
|
1137
|
-
|
|
1121
|
+
[w, t]
|
|
1122
|
+
), S = Q(
|
|
1123
|
+
(u) => {
|
|
1124
|
+
s || C(u), p == null || p(u);
|
|
1138
1125
|
},
|
|
1139
|
-
[p,
|
|
1140
|
-
),
|
|
1141
|
-
(
|
|
1142
|
-
|
|
1126
|
+
[p, s]
|
|
1127
|
+
), b = Q(
|
|
1128
|
+
(u, O, q) => {
|
|
1129
|
+
g(Ie(x, u, O, q));
|
|
1143
1130
|
},
|
|
1144
|
-
[
|
|
1145
|
-
),
|
|
1146
|
-
(
|
|
1147
|
-
|
|
1131
|
+
[x, g]
|
|
1132
|
+
), E = Q(
|
|
1133
|
+
(u, O) => {
|
|
1134
|
+
g(Le(x, u, O));
|
|
1148
1135
|
},
|
|
1149
|
-
[
|
|
1150
|
-
),
|
|
1151
|
-
(
|
|
1152
|
-
|
|
1136
|
+
[x, g]
|
|
1137
|
+
), R = Q(
|
|
1138
|
+
(u, O) => {
|
|
1139
|
+
g(De(x, u, O));
|
|
1153
1140
|
},
|
|
1154
|
-
[
|
|
1155
|
-
),
|
|
1156
|
-
(
|
|
1157
|
-
|
|
1141
|
+
[x, g]
|
|
1142
|
+
), B = Q(
|
|
1143
|
+
(u) => {
|
|
1144
|
+
g(ze(x, u));
|
|
1158
1145
|
},
|
|
1159
|
-
[
|
|
1160
|
-
),
|
|
1161
|
-
{ id: "permanent-upper", label: "Superior permanente", teeth:
|
|
1162
|
-
{ id: "permanent-lower", label: "Inferior permanente", teeth:
|
|
1146
|
+
[x, g]
|
|
1147
|
+
), G = L(() => n === "permanent" ? [
|
|
1148
|
+
{ id: "permanent-upper", label: "Superior permanente", teeth: $.upper },
|
|
1149
|
+
{ id: "permanent-lower", label: "Inferior permanente", teeth: $.lower }
|
|
1163
1150
|
] : n === "primary" ? [
|
|
1164
|
-
{ id: "primary-upper", label: "Superior temporal", teeth:
|
|
1165
|
-
{ id: "primary-lower", label: "Inferior temporal", teeth:
|
|
1151
|
+
{ id: "primary-upper", label: "Superior temporal", teeth: F.upper },
|
|
1152
|
+
{ id: "primary-lower", label: "Inferior temporal", teeth: F.lower }
|
|
1166
1153
|
] : [...Ae], [n]);
|
|
1167
1154
|
return /* @__PURE__ */ c.jsx(
|
|
1168
1155
|
"div",
|
|
1169
1156
|
{
|
|
1170
1157
|
className: [
|
|
1171
1158
|
"ov-odontogram ov-w-full ov-max-w-full ov-overflow-hidden ov-rounded-[28px] ov-border ov-border-slate-200 ov-bg-[radial-gradient(circle_at_top_left,_rgba(255,255,255,0.98),_rgba(240,248,249,0.98)_40%,_rgba(229,239,241,1)_100%)] ov-p-4 ov-text-slate-900 ov-shadow-panel md:ov-p-6",
|
|
1172
|
-
|
|
1159
|
+
T ?? ""
|
|
1173
1160
|
].join(" "),
|
|
1174
|
-
style:
|
|
1175
|
-
onContextMenu: (
|
|
1176
|
-
|
|
1161
|
+
style: h == null ? void 0 : h.panelStyle,
|
|
1162
|
+
onContextMenu: (u) => {
|
|
1163
|
+
u.preventDefault();
|
|
1177
1164
|
},
|
|
1178
1165
|
children: /* @__PURE__ */ c.jsxs("div", { className: "ov-space-y-5", children: [
|
|
1179
|
-
/* @__PURE__ */ c.jsx(
|
|
1180
|
-
/* @__PURE__ */ c.jsx("div", { className: "ov-overflow-x-auto ov-overflow-y-hidden", children: /* @__PURE__ */ c.jsx("div", { className: "ov-grid ov-min-w-max ov-gap-5", children:
|
|
1181
|
-
|
|
1166
|
+
/* @__PURE__ */ c.jsx(Xe, { selectedCondition: N, onSelect: S }),
|
|
1167
|
+
/* @__PURE__ */ c.jsx("div", { className: "ov-overflow-x-auto ov-overflow-y-hidden", children: /* @__PURE__ */ c.jsx("div", { className: "ov-grid ov-min-w-max ov-gap-5", children: G.map((u) => /* @__PURE__ */ c.jsx(
|
|
1168
|
+
Je,
|
|
1182
1169
|
{
|
|
1183
|
-
label:
|
|
1184
|
-
teeth:
|
|
1185
|
-
records:
|
|
1170
|
+
label: u.label,
|
|
1171
|
+
teeth: u.teeth,
|
|
1172
|
+
records: x,
|
|
1186
1173
|
editable: v,
|
|
1187
|
-
selectedCondition:
|
|
1188
|
-
size:
|
|
1189
|
-
onApplySurface:
|
|
1190
|
-
onApplyTooth:
|
|
1191
|
-
onClearSurface:
|
|
1192
|
-
onClearTooth:
|
|
1174
|
+
selectedCondition: N,
|
|
1175
|
+
size: y,
|
|
1176
|
+
onApplySurface: b,
|
|
1177
|
+
onApplyTooth: E,
|
|
1178
|
+
onClearSurface: R,
|
|
1179
|
+
onClearTooth: B
|
|
1193
1180
|
},
|
|
1194
|
-
|
|
1181
|
+
u.id
|
|
1195
1182
|
)) }) })
|
|
1196
1183
|
] })
|
|
1197
1184
|
}
|
|
@@ -1201,8 +1188,8 @@ xe(be);
|
|
|
1201
1188
|
export {
|
|
1202
1189
|
K as CLINICAL_CONDITIONS,
|
|
1203
1190
|
Ae as MIXED_DENTITION_LAYOUT,
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1191
|
+
eo as Odontogram,
|
|
1192
|
+
$ as PERMANENT_DENTITION_LAYOUT,
|
|
1193
|
+
F as PRIMARY_DENTITION_LAYOUT
|
|
1207
1194
|
};
|
|
1208
1195
|
//# sourceMappingURL=index.js.map
|