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.js CHANGED
@@ -1,13 +1,13 @@
1
- import fe, { memo as L, useMemo as I, useCallback as _, useState as le } from "react";
2
- const be = ".ov-pointer-events-none{pointer-events:none}.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-\\[124px\\]{height:124px}.ov-h-\\[138px\\]{height:138px}.ov-h-\\[154px\\]{height:154px}.ov-min-h-screen{min-height:100vh}.ov-w-3{width:.75rem}.ov-w-\\[108px\\]{width:108px}.ov-w-\\[62px\\]{width:62px}.ov-w-\\[98px\\]{width:98px}.ov-w-full{width:100%}.ov-min-w-0{min-width:0px}.ov-min-w-\\[64px\\]{min-width:64px}.ov-min-w-\\[74px\\]{min-width:74px}.ov-min-w-\\[84px\\]{min-width:84px}.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-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.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-fill-slate-700{fill:#334155}.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 ie = !1;
4
- function xe(t) {
5
- if (ie || typeof document > "u")
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 = t, document.head.appendChild(o), ie = !0;
8
+ o.setAttribute("data-odontogram-view", "true"), o.textContent = r, document.head.appendChild(o), se = !0;
9
9
  }
10
- var z = { exports: {} }, C = {};
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 se;
20
+ var le;
21
21
  function he() {
22
- if (se) return C;
23
- se = 1;
24
- var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
25
- function a(r, n, i) {
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 (i !== void 0 && (p = "" + i), n.key !== void 0 && (p = "" + n.key), "key" in n) {
28
- i = {};
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" && (i[v] = n[v]);
31
- } else i = n;
32
- return n = i.ref, {
33
- $$typeof: t,
34
- type: r,
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: i
37
+ props: s
38
38
  };
39
39
  }
40
- return C.Fragment = o, C.jsx = a, C.jsxs = a, C;
40
+ return P.Fragment = o, P.jsx = a, P.jsxs = a, P;
41
41
  }
42
- var P = {};
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 t(e) {
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 h:
61
+ case x:
62
62
  return "Fragment";
63
- case w:
63
+ case g:
64
64
  return "Profiler";
65
- case O:
65
+ case N:
66
66
  return "StrictMode";
67
- case V:
67
+ case R:
68
68
  return "Suspense";
69
- case G:
69
+ case B:
70
70
  return "SuspenseList";
71
- case N:
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 A:
78
+ case C:
79
79
  return "Portal";
80
- case T:
80
+ case b:
81
81
  return e.displayName || "Context";
82
- case m:
82
+ case S:
83
83
  return (e._context.displayName || "Context") + ".Consumer";
84
- case R:
85
- var l = e.render;
86
- return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
87
- case B:
88
- return l = e.displayName || null, l !== null ? l : t(e.type) || "Memo";
89
- case d:
90
- l = e._payload, e = e._init;
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 t(e(l));
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 l = !1;
104
+ var i = !1;
105
105
  } catch {
106
- l = !0;
106
+ i = !0;
107
107
  }
108
- if (l) {
109
- l = console;
110
- var u = l.error, f = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
111
- return u.call(
112
- l,
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
- f
114
+ m
115
115
  ), o(e);
116
116
  }
117
117
  }
118
- function r(e) {
119
- if (e === h) return "<>";
120
- if (typeof e == "object" && e !== null && e.$$typeof === d)
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 l = t(e);
124
- return l ? "<" + l + ">" : "<...>";
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 = J.A;
130
+ var e = H.A;
131
131
  return e === null ? null : e.getOwner();
132
132
  }
133
- function i() {
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 l = Object.getOwnPropertyDescriptor(e, "key").get;
139
- if (l && l.isReactWarning) return !1;
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, l) {
144
- function u() {
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
- l
147
+ i
148
148
  ));
149
149
  }
150
- u.isReactWarning = !0, Object.defineProperty(e, "key", {
151
- get: u,
150
+ d.isReactWarning = !0, Object.defineProperty(e, "key", {
151
+ get: d,
152
152
  configurable: !0
153
153
  });
154
154
  }
155
- function g() {
156
- var e = t(this.type);
157
- return te[e] || (te[e] = !0, console.error(
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 y(e, l, u, f, D, H) {
162
- var b = u.ref;
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: l,
167
- props: u,
168
- _owner: f
169
- }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(e, "ref", {
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: g
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: D
186
+ value: z
187
187
  }), Object.defineProperty(e, "_debugTask", {
188
188
  configurable: !1,
189
189
  enumerable: !1,
190
190
  writable: !0,
191
- value: H
191
+ value: X
192
192
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
193
193
  }
194
- function x(e, l, u, f, D, H) {
195
- var b = l.children;
196
- if (b !== void 0)
197
- if (f)
198
- if (ve(b)) {
199
- for (f = 0; f < b.length; f++)
200
- Q(b[f]);
201
- Object.freeze && Object.freeze(b);
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 Q(b);
207
- if (ee.call(l, "key")) {
208
- b = t(e);
209
- var S = Object.keys(l).filter(function(me) {
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
- f = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", ne[b + f] || (S = 0 < S.length ? "{" + S.join(": ..., ") + ": ...}" : "{}", console.error(
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
- b,
221
- S,
222
- b
223
- ), ne[b + f] = !0);
221
+ A,
222
+ f
223
+ ), ne[f + m] = !0);
224
224
  }
225
- if (b = null, u !== void 0 && (a(u), b = "" + u), p(l) && (a(l.key), b = "" + l.key), "key" in l) {
226
- u = {};
227
- for (var Z in l)
228
- Z !== "key" && (u[Z] = l[Z]);
229
- } else u = l;
230
- return b && v(
231
- u,
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
- ), y(
233
+ ), T(
234
234
  e,
235
- b,
236
- u,
235
+ f,
236
+ d,
237
237
  n(),
238
- D,
239
- H
238
+ z,
239
+ X
240
240
  );
241
241
  }
242
- function Q(e) {
243
- k(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === d && (e._payload.status === "fulfilled" ? k(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
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 k(e) {
245
+ function _(e) {
246
246
  return typeof e == "object" && e !== null && e.$$typeof === M;
247
247
  }
248
- var E = fe, M = Symbol.for("react.transitional.element"), A = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), T = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), N = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), J = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ve = Array.isArray, X = console.createTask ? console.createTask : function() {
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
- E = {
251
+ k = {
252
252
  react_stack_bottom_frame: function(e) {
253
253
  return e();
254
254
  }
255
255
  };
256
- var oe, te = {}, re = E.react_stack_bottom_frame.bind(
257
- E,
258
- i
259
- )(), ae = X(r(i)), ne = {};
260
- P.Fragment = h, P.jsx = function(e, l, u) {
261
- var f = 1e4 > J.recentlyCreatedOwnerStacks++;
262
- return x(
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
- l,
265
- u,
264
+ i,
265
+ d,
266
266
  !1,
267
- f ? Error("react-stack-top-frame") : re,
268
- f ? X(r(e)) : ae
267
+ m ? Error("react-stack-top-frame") : te,
268
+ m ? J(t(e)) : ae
269
269
  );
270
- }, P.jsxs = function(e, l, u) {
271
- var f = 1e4 > J.recentlyCreatedOwnerStacks++;
272
- return x(
270
+ }, I.jsxs = function(e, i, d) {
271
+ var m = 1e4 > H.recentlyCreatedOwnerStacks++;
272
+ return h(
273
273
  e,
274
- l,
275
- u,
274
+ i,
275
+ d,
276
276
  !0,
277
- f ? Error("react-stack-top-frame") : re,
278
- f ? X(r(e)) : ae
277
+ m ? Error("react-stack-top-frame") : te,
278
+ m ? J(t(e)) : ae
279
279
  );
280
280
  };
281
- })()), P;
281
+ })()), I;
282
282
  }
283
283
  var pe;
284
284
  function we() {
285
- return pe || (pe = 1, process.env.NODE_ENV === "production" ? z.exports = he() : z.exports = ge()), z.exports;
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 = (t, o, a) => {
357
- const r = _e[t] ?? 1;
356
+ }, ke = (r, o, a) => {
357
+ const t = _e[r] ?? 1;
358
358
  return o === "incisor" ? {
359
359
  centerLabel: "I",
360
- roots: r,
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: r,
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: r,
374
+ roots: t,
375
375
  surfaces: 5,
376
376
  crownWidth: 42,
377
377
  crownHeight: 42,
378
- rootStyle: r === 2 ? "double" : "single"
378
+ rootStyle: t === 2 ? "double" : "single"
379
379
  } : {
380
380
  centerLabel: "O",
381
- roots: r,
381
+ roots: t,
382
382
  surfaces: 5,
383
383
  crownWidth: 48,
384
384
  crownHeight: 42,
385
- rootStyle: r === 3 || a === "upper" ? "triple" : "double"
385
+ rootStyle: t === 3 || a === "upper" ? "triple" : "double"
386
386
  };
387
- }, j = (t, o, a, r) => {
388
- const n = r === "permanent" ? ye : Qe;
389
- return o.map((i) => {
390
- const p = n[i], v = `${t}${i}`;
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: r,
395
+ dentition: t,
396
396
  label: v,
397
397
  visual: ke(v, p, a)
398
398
  };
399
399
  });
400
- }, Ee = j(1, [8, 7, 6, 5, 4, 3, 2, 1], "upper", "permanent"), Te = 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"), Ne = j(6, [1, 2, 3, 4, 5], "upper", "primary"), Me = j(8, [5, 4, 3, 2, 1], "lower", "primary"), Se = j(7, [1, 2, 3, 4, 5], "lower", "primary"), Y = {
401
- upper: [...Ee, ...Te],
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, ...Ne],
405
- lower: [...Me, ...Se]
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: Y.upper
410
+ teeth: $.upper
411
411
  },
412
412
  {
413
413
  id: "upper-primary",
414
414
  label: "Superior temporal",
415
- teeth: $.upper
415
+ teeth: F.upper
416
416
  },
417
417
  {
418
418
  id: "lower-primary",
419
419
  label: "Inferior temporal",
420
- teeth: $.lower
420
+ teeth: F.lower
421
421
  },
422
422
  {
423
423
  id: "lower-permanent",
424
424
  label: "Inferior permanente",
425
- teeth: Y.lower
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((t) => [t.id, t])
439
- ), F = (t = []) => Array.from(new Set(t)), W = (t) => [...t].sort((o, a) => o.localeCompare(a)), de = (t = []) => {
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 t.forEach((a) => {
441
+ return r.forEach((a) => {
442
442
  o[a.tooth] = {
443
443
  tooth: a.tooth,
444
- conditions: a.conditions ? W(F(a.conditions)) : void 0,
444
+ conditions: a.conditions ? W(U(a.conditions)) : void 0,
445
445
  surfaces: a.surfaces ? Object.fromEntries(
446
- Object.entries(a.surfaces).map(([r, n]) => [
447
- r,
448
- n != null && n.length ? W(F(n)) : void 0
449
- ]).filter(([, r]) => !!(r != null && r.length))
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 = (t) => Object.values(t).filter(Boolean).map((o) => {
454
- var r;
453
+ }, Pe = (r) => Object.values(r).filter(Boolean).map((o) => {
454
+ var t;
455
455
  const a = { tooth: o.tooth };
456
- return (r = o == null ? void 0 : o.conditions) != null && r.length && (a.conditions = o.conditions), o != null && o.surfaces && Object.keys(o.surfaces).length > 0 && (a.surfaces = o.surfaces), a;
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)), U = (t) => {
460
+ }).sort((o, a) => o.tooth.localeCompare(a.tooth)), V = (r) => {
461
461
  var n;
462
- const o = t.surfaces ? Object.fromEntries(
463
- Object.entries(t.surfaces).filter(([, i]) => !!(i != null && i.length))
464
- ) : void 0, a = !!((n = t.conditions) != null && n.length), r = !!(o && Object.keys(o).length > 0);
465
- if (!(!a && !r))
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: t.tooth,
468
- conditions: a ? t.conditions : void 0,
469
- surfaces: r ? o : void 0
467
+ tooth: r.tooth,
468
+ conditions: a ? r.conditions : void 0,
469
+ surfaces: t ? o : void 0
470
470
  };
471
- }, Ie = (t, o, a, r) => {
472
- var g;
473
- if (!Ce.get(r))
474
- return t;
475
- const i = t[o] ?? {}, p = ((g = i.surfaces) == null ? void 0 : g[a]) ?? [], v = {
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: i.conditions,
477
+ conditions: s.conditions,
478
478
  surfaces: {
479
- ...i.surfaces ?? {},
480
- [a]: W(F([...p, r]))
479
+ ...s.surfaces ?? {},
480
+ [a]: W(U([...p, t]))
481
481
  }
482
482
  };
483
483
  return {
484
- ...t,
485
- [o]: U(v)
484
+ ...r,
485
+ [o]: V(v)
486
486
  };
487
- }, Le = (t, o, a) => {
488
- const r = t[o] ?? {}, n = {
487
+ }, Le = (r, o, a) => {
488
+ const t = r[o] ?? {}, n = {
489
489
  tooth: o,
490
- surfaces: r.surfaces,
491
- conditions: W(F([...r.conditions ?? [], a]))
490
+ surfaces: t.surfaces,
491
+ conditions: W(U([...t.conditions ?? [], a]))
492
492
  };
493
493
  return {
494
- ...t,
495
- [o]: U(n)
494
+ ...r,
495
+ [o]: V(n)
496
496
  };
497
- }, De = (t, o, a) => {
498
- var i, p;
499
- const r = t[o];
500
- if (!((p = (i = r == null ? void 0 : r.surfaces) == null ? void 0 : i[a]) != null && p.length))
501
- return t;
502
- const n = { ...r.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
503
  return delete n[a], {
504
- ...t,
505
- [o]: U({
504
+ ...r,
505
+ [o]: V({
506
506
  tooth: o,
507
- conditions: r.conditions,
507
+ conditions: t.conditions,
508
508
  surfaces: n
509
509
  })
510
510
  };
511
- }, ze = (t, o) => {
512
- if (!t[o])
513
- return t;
514
- const r = U({
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 (!r) {
520
- const n = { ...t };
519
+ if (!t) {
520
+ const n = { ...r };
521
521
  return delete n[o], n;
522
522
  }
523
523
  return {
524
- ...t,
525
- [o]: r
524
+ ...r,
525
+ [o]: t
526
526
  };
527
- }, ue = (t) => {
527
+ }, de = (r) => {
528
528
  var o;
529
- return ((o = K.find((a) => a.id === t)) == null ? void 0 : o.color) ?? "#dbe4ea";
530
- }, Ye = L(function({
529
+ return ((o = K.find((a) => a.id === r)) == null ? void 0 : o.color) ?? "#dbe4ea";
530
+ }, Ye = D(function({
531
531
  surface: o,
532
- label: a,
533
- path: r,
534
- textX: n,
535
- textY: i,
536
- condition: p,
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.jsxs("g", { children: [
542
- /* @__PURE__ */ c.jsx(
543
- "path",
544
- {
545
- d: r,
546
- fill: ue(p),
547
- stroke: "#1f2937",
548
- strokeWidth: 1.4,
549
- strokeLinejoin: "round",
550
- className: y ? "" : "ov-cursor-pointer ov-transition-opacity hover:ov-opacity-85",
551
- onClick: y ? void 0 : () => v(o),
552
- onContextMenu: y ? void 0 : (x) => {
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
- }), s = (...t) => `${t.join(" ")} Z`, $e = (t) => {
569
- const o = s(
570
- "M 21 20",
571
- "Q 31 13 41 20",
572
- "Q 47 27 45 38",
573
- "Q 43 50 31 55",
574
- "Q 19 50 17 38",
575
- "Q 15 27 21 20"
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: s(
581
- "M 21 20",
582
- "Q 31 14 41 20",
583
- "Q 39 26 36 30",
584
- "Q 31 32 26 30",
585
- "Q 23 26 21 20"
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: s(
593
- "M 17 38",
594
- "Q 17 28 21 20",
595
- "Q 23 26 26 30",
596
- "Q 25 39 26 47",
597
- "Q 20 46 17 38"
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: 22, y: 38 }
584
+ text: { x: 21, y: 38 }
600
585
  },
601
586
  {
602
- key: t,
603
- label: t,
604
- path: s(
605
- "M 26 30",
606
- "Q 31 26 36 30",
607
- "Q 39 38 36 46",
608
- "Q 31 51 26 46",
609
- "Q 23 38 26 30"
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: s(
617
- "M 45 38",
618
- "Q 45 28 41 20",
619
- "Q 39 26 36 30",
620
- "Q 37 39 36 47",
621
- "Q 42 46 45 38"
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: 40, y: 38 }
608
+ text: { x: 41, y: 38 }
624
609
  },
625
610
  {
626
611
  key: "L",
627
612
  label: "L",
628
- path: s(
629
- "M 24 45",
630
- "Q 31 54 38 45",
631
- "Q 42 47 45 38",
632
- "Q 43 54 31 59",
633
- "Q 19 54 17 38",
634
- "Q 20 47 24 45"
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
- s(
644
- "M 27 54",
645
- "Q 31 58 35 54",
646
- "Q 38 65 36 84",
647
- "Q 34 100 31 112",
648
- "Q 28 100 26 84",
649
- "Q 24 65 27 54"
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 t = s(
656
- "M 24 23",
657
- "Q 31 12 38 23",
658
- "Q 44 31 42 41",
659
- "Q 40 52 31 58",
660
- "Q 22 52 20 41",
661
- "Q 18 31 24 23"
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: s(
667
- "M 24 23",
668
- "Q 31 13 38 23",
669
- "Q 36 29 35 31",
670
- "Q 31 34 27 31",
671
- "Q 26 29 24 23"
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: s(
679
- "M 20 41",
680
- "Q 20 31 24 23",
681
- "Q 26 29 27 31",
682
- "Q 26 40 27 49",
683
- "Q 22 47 20 41"
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: 23, y: 40 }
670
+ text: { x: 22, y: 40 }
686
671
  },
687
672
  {
688
673
  key: "I",
689
674
  label: "I",
690
- path: s(
691
- "M 27 31",
692
- "Q 31 28 35 31",
693
- "Q 37 40 35 48",
694
- "Q 31 53 27 48",
695
- "Q 25 40 27 31"
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: s(
703
- "M 42 41",
704
- "Q 42 31 38 23",
705
- "Q 36 29 35 31",
706
- "Q 36 40 35 49",
707
- "Q 40 47 42 41"
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: 39, y: 40 }
694
+ text: { x: 40, y: 40 }
710
695
  },
711
696
  {
712
697
  key: "L",
713
698
  label: "L",
714
- path: s(
715
- "M 25 47",
716
- "Q 31 56 37 47",
717
- "Q 40 49 42 41",
718
- "Q 40 54 31 60",
719
- "Q 22 54 20 41",
720
- "Q 22 49 25 47"
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: t,
727
- crownCap: t,
711
+ crownOutline: r,
712
+ crownCap: r,
728
713
  rootPaths: [
729
- s(
730
- "M 27 58",
731
- "Q 31 62 35 58",
732
- "Q 39 73 37 92",
733
- "Q 35 112 31 122",
734
- "Q 27 112 25 92",
735
- "Q 23 73 27 58"
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
- }, We = () => {
741
- const t = s(
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: s(
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: s(
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 40 26 49",
769
- "Q 20 48 16 39"
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: s(
761
+ path: l(
777
762
  "M 26 31",
778
763
  "Q 31 27 36 31",
779
- "Q 39 39 36 48",
780
- "Q 31 52 26 48",
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: s(
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 40 36 49",
793
- "Q 42 48 46 39"
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: s(
801
- "M 24 47",
802
- "Q 31 56 38 47",
803
- "Q 43 49 46 39",
804
- "Q 44 54 31 59",
805
- "Q 18 54 16 39",
806
- "Q 19 49 24 47"
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: t,
813
- crownCap: t,
797
+ crownOutline: r,
798
+ crownCap: r,
814
799
  rootPaths: [
815
- s(
800
+ l(
816
801
  "M 22 57",
817
802
  "Q 25 60 28 57",
818
- "Q 28 71 25 90",
819
- "Q 23 101 20 109",
820
- "Q 17 99 17 86",
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
- s(
808
+ l(
824
809
  "M 34 57",
825
810
  "Q 37 60 40 57",
826
- "Q 45 71 45 86",
827
- "Q 45 99 42 109",
828
- "Q 39 101 37 90",
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
- }, Ue = (t) => {
835
- const o = s(
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: s(
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: s(
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 44 24 53",
863
- "Q 17 52 13 43"
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: s(
855
+ path: l(
871
856
  "M 24 34",
872
857
  "Q 31 29 38 34",
873
- "Q 41 43 38 52",
874
- "Q 31 56 24 52",
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: s(
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 44 38 53",
887
- "Q 45 52 49 43"
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: s(
895
- "M 22 51",
896
- "Q 31 62 40 51",
897
- "Q 46 52 49 43",
898
- "Q 46 58 31 64",
899
- "Q 16 58 13 43",
900
- "Q 16 52 22 51"
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
- ], r = t === "upper" ? [
905
- s(
889
+ ], t = r === "upper" ? [
890
+ l(
906
891
  "M 17 61",
907
892
  "Q 20 64 23 61",
908
- "Q 24 73 22 91",
909
- "Q 20 103 17 111",
910
- "Q 14 101 14 88",
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
- s(
898
+ l(
914
899
  "M 28 61",
915
900
  "Q 31 65 34 61",
916
- "Q 36 76 35 96",
917
- "Q 34 111 31 122",
918
- "Q 28 111 27 96",
919
- "Q 26 76 28 61"
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
- s(
906
+ l(
922
907
  "M 39 61",
923
908
  "Q 42 64 45 61",
924
- "Q 48 73 48 88",
925
- "Q 48 101 45 111",
926
- "Q 42 103 40 91",
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
- s(
915
+ l(
931
916
  "M 22 61",
932
917
  "Q 26 64 29 61",
933
- "Q 29 76 26 96",
934
- "Q 24 109 20 118",
935
- "Q 17 107 17 92",
936
- "Q 17 75 22 61"
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
- s(
923
+ l(
939
924
  "M 33 61",
940
925
  "Q 36 64 40 61",
941
- "Q 45 75 45 92",
942
- "Q 45 107 42 118",
943
- "Q 38 109 36 96",
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: r,
935
+ rootPaths: t,
951
936
  surfaces: a
952
937
  };
953
- }, Ve = (t) => t.type === "incisor" ? $e(t.visual.centerLabel) : t.type === "canine" ? Fe() : t.type === "premolar" ? We() : Ue(t.arch), Ge = {
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
- md: {
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-[98px]"
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
- }, Be = L(function({
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: r,
962
+ editable: t,
973
963
  selectedCondition: n,
974
- size: i,
964
+ size: s,
975
965
  onApplySurface: p,
976
966
  onApplyTooth: v,
977
- onClearSurface: g,
978
- onClearTooth: y
967
+ onClearSurface: y,
968
+ onClearTooth: T
979
969
  }) {
980
- const x = Ge[i], Q = I(() => Ve(o), [o]), k = (a == null ? void 0 : a.conditions) ?? [], E = I(
981
- () => k.length ? ue(k[0]) : "#f8fafc",
982
- [k]
983
- ), M = I(() => 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]), A = _(
984
- (m) => p(o.id, m, n),
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
- ), h = _(
987
- (m) => g(o.id, m),
988
- [o.id, g]
989
- ), O = _(() => {
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]), w = _(() => {
992
- y(o.id);
993
- }, [o.id, y]);
994
- return /* @__PURE__ */ c.jsxs("div", { className: ["ov-flex ov-flex-col ov-items-center", M, x.wrapper].join(" "), children: [
995
- /* @__PURE__ */ c.jsx("span", { className: ["ov-font-semibold ov-text-clinic-700", x.label].join(" "), children: o.label }),
996
- /* @__PURE__ */ c.jsxs("svg", { viewBox: "0 0 62 128", className: x.svg, children: [
997
- Q.rootPaths.map((m, T) => /* @__PURE__ */ c.jsx(
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: m,
1001
- fill: E,
990
+ d: b,
991
+ fill: k,
1002
992
  stroke: "#1f2937",
1003
993
  strokeWidth: 1.4,
1004
994
  strokeLinejoin: "round",
1005
- className: r ? "ov-cursor-pointer ov-transition-opacity hover:ov-opacity-85" : "",
1006
- onClick: r ? O : void 0,
1007
- onContextMenu: r ? (R) => {
1008
- R.preventDefault(), w();
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-${T}`
1001
+ `${o.id}-root-${E}`
1012
1002
  )),
1013
- /* @__PURE__ */ c.jsx("path", { d: Q.crownCap, fill: E, stroke: "#1f2937", strokeWidth: 1.6 }),
1014
- Q.surfaces.map((m) => {
1015
- var T, R;
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: m.key,
1020
- label: m.label,
1021
- path: m.path,
1022
- textX: m.text.x,
1023
- textY: m.text.y,
1024
- condition: (R = (T = a == null ? void 0 : a.surfaces) == null ? void 0 : T[m.key]) == null ? void 0 : R[0],
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}-${m.key}`
1016
+ `${o.id}-${b.key}`
1030
1017
  );
1031
1018
  }),
1032
1019
  /* @__PURE__ */ c.jsx(
1033
1020
  "path",
1034
1021
  {
1035
- d: Q.crownOutline,
1022
+ d: w.crownOutline,
1036
1023
  fill: "none",
1037
1024
  stroke: "#0f172a",
1038
1025
  strokeWidth: 1.6,
1039
1026
  strokeLinejoin: "round",
1040
- className: r ? "ov-cursor-pointer" : "",
1041
- onClick: r ? O : void 0,
1042
- onContextMenu: r ? (m) => {
1043
- m.preventDefault(), w();
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
- }), qe = L(function({
1036
+ }), Je = D(function({
1050
1037
  teeth: o,
1051
1038
  records: a,
1052
- editable: r,
1039
+ editable: t,
1053
1040
  selectedCondition: n,
1054
- size: i,
1041
+ size: s,
1055
1042
  onApplySurface: p,
1056
1043
  onApplyTooth: v,
1057
- onClearSurface: g,
1058
- onClearTooth: y
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((x) => /* @__PURE__ */ c.jsx(
1061
- Be,
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: x,
1064
- record: a[x.id],
1065
- editable: r,
1050
+ definition: h,
1051
+ record: a[h.id],
1052
+ editable: t,
1066
1053
  selectedCondition: n,
1067
- size: i,
1054
+ size: s,
1068
1055
  onApplySurface: p,
1069
1056
  onApplyTooth: v,
1070
- onClearSurface: g,
1071
- onClearTooth: y
1057
+ onClearSurface: y,
1058
+ onClearTooth: T
1072
1059
  },
1073
- x.id
1060
+ h.id
1074
1061
  )) }) }) });
1075
- }), Je = L(function({ selectedCondition: o, onSelect: a }) {
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((r) => {
1088
- const n = r.id === o;
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(r.id),
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: r.color }
1090
+ style: { backgroundColor: t.color }
1104
1091
  }
1105
1092
  ),
1106
- /* @__PURE__ */ c.jsx("span", { children: r.label })
1093
+ /* @__PURE__ */ c.jsx("span", { children: t.label })
1107
1094
  ]
1108
1095
  },
1109
- r.id
1096
+ t.id
1110
1097
  );
1111
1098
  }) })
1112
1099
  ] });
1113
- }), Xe = "CARIES", Ze = L(function({
1100
+ }), Ze = "CARIES", eo = D(function({
1114
1101
  value: o,
1115
1102
  defaultValue: a,
1116
- onChange: r,
1103
+ onChange: t,
1117
1104
  dentition: n = "mixed",
1118
- selectedCondition: i,
1105
+ selectedCondition: s,
1119
1106
  onSelectedConditionChange: p,
1120
1107
  editable: v = !0,
1121
- size: g = "md",
1122
- className: y,
1123
- theme: x
1108
+ size: y = "sm",
1109
+ className: T,
1110
+ theme: h
1124
1111
  }) {
1125
- const Q = typeof o < "u", [k, E] = le(
1126
- () => de(a)
1127
- ), [M, A] = le(Xe), h = I(
1128
- () => Q ? de(o) : k,
1129
- [k, Q, o]
1130
- ), O = i ?? M, w = _(
1131
- (d) => {
1132
- Q || E(d), r == null || r(Pe(d));
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
- [Q, r]
1135
- ), m = _(
1136
- (d) => {
1137
- i || A(d), p == null || p(d);
1121
+ [w, t]
1122
+ ), S = Q(
1123
+ (u) => {
1124
+ s || C(u), p == null || p(u);
1138
1125
  },
1139
- [p, i]
1140
- ), T = _(
1141
- (d, N, q) => {
1142
- w(Ie(h, d, N, q));
1126
+ [p, s]
1127
+ ), b = Q(
1128
+ (u, O, q) => {
1129
+ g(Ie(x, u, O, q));
1143
1130
  },
1144
- [h, w]
1145
- ), R = _(
1146
- (d, N) => {
1147
- w(Le(h, d, N));
1131
+ [x, g]
1132
+ ), E = Q(
1133
+ (u, O) => {
1134
+ g(Le(x, u, O));
1148
1135
  },
1149
- [h, w]
1150
- ), V = _(
1151
- (d, N) => {
1152
- w(De(h, d, N));
1136
+ [x, g]
1137
+ ), R = Q(
1138
+ (u, O) => {
1139
+ g(De(x, u, O));
1153
1140
  },
1154
- [h, w]
1155
- ), G = _(
1156
- (d) => {
1157
- w(ze(h, d));
1141
+ [x, g]
1142
+ ), B = Q(
1143
+ (u) => {
1144
+ g(ze(x, u));
1158
1145
  },
1159
- [h, w]
1160
- ), B = I(() => n === "permanent" ? [
1161
- { id: "permanent-upper", label: "Superior permanente", teeth: Y.upper },
1162
- { id: "permanent-lower", label: "Inferior permanente", teeth: Y.lower }
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: $.upper },
1165
- { id: "primary-lower", label: "Inferior temporal", teeth: $.lower }
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
- y ?? ""
1159
+ T ?? ""
1173
1160
  ].join(" "),
1174
- style: x == null ? void 0 : x.panelStyle,
1175
- onContextMenu: (d) => {
1176
- d.preventDefault();
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(Je, { selectedCondition: O, onSelect: m }),
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: B.map((d) => /* @__PURE__ */ c.jsx(
1181
- qe,
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: d.label,
1184
- teeth: d.teeth,
1185
- records: h,
1170
+ label: u.label,
1171
+ teeth: u.teeth,
1172
+ records: x,
1186
1173
  editable: v,
1187
- selectedCondition: O,
1188
- size: g,
1189
- onApplySurface: T,
1190
- onApplyTooth: R,
1191
- onClearSurface: V,
1192
- onClearTooth: G
1174
+ selectedCondition: N,
1175
+ size: y,
1176
+ onApplySurface: b,
1177
+ onApplyTooth: E,
1178
+ onClearSurface: R,
1179
+ onClearTooth: B
1193
1180
  },
1194
- d.id
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
- Ze as Odontogram,
1205
- Y as PERMANENT_DENTITION_LAYOUT,
1206
- $ as PRIMARY_DENTITION_LAYOUT
1191
+ eo as Odontogram,
1192
+ $ as PERMANENT_DENTITION_LAYOUT,
1193
+ F as PRIMARY_DENTITION_LAYOUT
1207
1194
  };
1208
1195
  //# sourceMappingURL=index.js.map