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