@hybridcore/ui 1.6.18 → 1.6.19

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.
Files changed (53) hide show
  1. package/dist/{AccordionSummary-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
  2. package/dist/Add-CB4mPrke.js +77 -0
  3. package/dist/Alert-BsT46Tgd.js +334 -0
  4. package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
  5. package/dist/ButtonBase-DG5J0YgP.js +823 -0
  6. package/dist/Delete-ofipLwkd.js +23 -0
  7. package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
  8. package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
  9. package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
  10. package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
  11. package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
  12. package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
  13. package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
  14. package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
  15. package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
  16. package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
  17. package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
  18. package/dist/components/button/styled.js +1 -1
  19. package/dist/components/charts/forecast-cone/index.js +108 -48
  20. package/dist/components/charts/forecast-cone/logic.js +271 -191
  21. package/dist/components/charts/forecast-cone/styled.js +26 -5
  22. package/dist/components/collapsible-card/index.js +2 -2
  23. package/dist/components/collapsible-card/styled.js +1 -1
  24. package/dist/components/color-picker/index.js +5 -5
  25. package/dist/components/color-picker/styled.js +1 -1
  26. package/dist/components/confirm/dialog.js +2 -2
  27. package/dist/components/confirm/index.js +1 -1
  28. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  29. package/dist/components/duration-select/index.js +1 -1
  30. package/dist/components/duration-select/styled.js +1 -1
  31. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  32. package/dist/components/sortable-list/index.js +3 -3
  33. package/dist/components/template-form/components/property-list/index.js +30 -28
  34. package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
  35. package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
  36. package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
  37. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
  38. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  39. package/dist/components/tree-select/index.js +1 -1
  40. package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
  41. package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
  42. package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
  43. package/dist/main.d.ts +28 -1
  44. package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
  45. package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
  46. package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
  47. package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
  48. package/dist/useTimeout-CM6EsHyp.js +60 -0
  49. package/package.json +1 -1
  50. package/dist/Add-Bk8R160M.js +0 -403
  51. package/dist/ButtonBase-DObmf4Q_.js +0 -886
  52. package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
  53. package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
@@ -1,20 +1,21 @@
1
- import { a as i, _ as X } from "./extends-C3382pL0.js";
1
+ import { a as i, _ as X } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as s from "react";
3
3
  import { P as e } from "./index-CblbdqjE.js";
4
4
  import { c as de } from "./clsx-OuTLNxxd.js";
5
5
  import { r as to } from "./index-DH6qsPBn.js";
6
6
  import { jsx as N, jsxs as Ee } from "react/jsx-runtime";
7
- import { g as ce, a as pe, s as _, u as ye, c as fe, r as ve, b as we, n as qo, o as wo, m as Go, T as Xo, p as ro } from "./generateUtilityClasses-Cc-owZ4J.js";
8
- import { g as Yo, e as Zo, a as So, M as Jo, u as ze, H as eo } from "./Modal-BVYydOr5.js";
9
- import { u as Qo, T as en, b as on, g as ho, P as nn, i as oo, c as tn } from "./Paper-B1HV8GyO.js";
10
- import { a as Ve, u as Se, e as rn, r as Ie, c as sn, f as Io, b as an } from "./TransitionGroupContext-Ja2CgIob.js";
7
+ import { g as ce, a as pe, s as _, u as ye, c as fe, r as ve, b as we, n as qo, o as wo, m as Go, T as Xo, p as ro } from "./styled-Ckq8ALHh.js";
8
+ import { g as Yo, e as Zo, a as So, M as Jo, u as ze, H as eo } from "./Modal-Djf5pMjD.js";
9
+ import { u as Qo, T as en, b as on, g as ho, P as nn, i as oo, c as tn } from "./Paper-BFDcMa0t.js";
10
+ import { a as Ve, u as Se, b as rn, c as sn } from "./useTimeout-CM6EsHyp.js";
11
11
  import { o as _e, a as Ue } from "./ownerWindow-wg6foiOE.js";
12
- import { d as No } from "./debounce-46wSf_lW.js";
12
+ import { d as Io } from "./debounce-46wSf_lW.js";
13
+ import { r as Ie, c as an, e as No } from "./TransitionGroupContext-C_aW1Tei.js";
13
14
  import { u as go } from "./useControlled-BYdyS7Pn.js";
14
15
  import { u as ln } from "./useId-BW-oWmul.js";
15
16
  import { f as so } from "./formControlState-vgaj2ksH.js";
16
17
  import { u as io, F as un } from "./useFormControl-CatNKXAi.js";
17
- import { c as dn } from "./createSvgIcon-D7U1nd99.js";
18
+ import { c as dn } from "./createSvgIcon-Bx0mTP6n.js";
18
19
  import { GlobalStyles as cn } from "@mui/system";
19
20
  const Mo = /* @__PURE__ */ s.createContext({});
20
21
  process.env.NODE_ENV !== "production" && (Mo.displayName = "ListContext");
@@ -624,7 +625,7 @@ const Tn = (o) => {
624
625
  } : null, [m, ee]), s.useEffect(() => {
625
626
  if (!m)
626
627
  return;
627
- const L = No(() => {
628
+ const L = Io(() => {
628
629
  ee();
629
630
  }), A = Ue(g);
630
631
  return A.addEventListener("resize", L), () => {
@@ -697,7 +698,7 @@ process.env.NODE_ENV !== "production" && (Lo.propTypes = {
697
698
  * or a function that returns either.
698
699
  * It's used to set the position of the popover.
699
700
  */
700
- anchorEl: sn(e.oneOfType([eo, e.func]), (o) => {
701
+ anchorEl: an(e.oneOfType([eo, e.func]), (o) => {
701
702
  if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
702
703
  const n = We(o.anchorEl);
703
704
  if (n && n.nodeType === 1) {
@@ -796,7 +797,7 @@ process.env.NODE_ENV !== "production" && (Lo.propTypes = {
796
797
  * @default {}
797
798
  */
798
799
  PaperProps: e.shape({
799
- component: Io
800
+ component: No
800
801
  }),
801
802
  /**
802
803
  * The extra props for the slot components.
@@ -1297,7 +1298,7 @@ function xo(o) {
1297
1298
  function Wo(o, n = !1) {
1298
1299
  return o && (xo(o.value) && o.value !== "" || n && xo(o.defaultValue) && o.defaultValue !== "");
1299
1300
  }
1300
- function Ut(o) {
1301
+ function Ht(o) {
1301
1302
  return o.startAdornment;
1302
1303
  }
1303
1304
  function Wn(o) {
@@ -1827,7 +1828,7 @@ const Vo = /* @__PURE__ */ s.forwardRef(function(n, t) {
1827
1828
  outerHeightStyle: B,
1828
1829
  overflowing: Z
1829
1830
  };
1830
- }, [u, d, n.placeholder]), S = an(() => {
1831
+ }, [u, d, n.placeholder]), S = sn(() => {
1831
1832
  const l = y.current, r = w();
1832
1833
  if (!l || !r || To(r))
1833
1834
  return !1;
@@ -1841,7 +1842,7 @@ const Vo = /* @__PURE__ */ s.forwardRef(function(n, t) {
1841
1842
  v.current !== b && (v.current = b, l.style.height = `${b}px`), l.style.overflow = r.overflowing ? "hidden" : "";
1842
1843
  }, [w]), m = s.useRef(-1);
1843
1844
  Ve(() => {
1844
- const l = No(E), r = y == null ? void 0 : y.current;
1845
+ const l = Io(E), r = y == null ? void 0 : y.current;
1845
1846
  if (!r)
1846
1847
  return;
1847
1848
  const b = Ue(r);
@@ -2371,7 +2372,7 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
2371
2372
  * Either a string to use a HTML element or a component.
2372
2373
  * @default 'input'
2373
2374
  */
2374
- inputComponent: Io,
2375
+ inputComponent: No,
2375
2376
  /**
2376
2377
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
2377
2378
  * @default {}
@@ -3910,5 +3911,5 @@ export {
3910
3911
  po as O,
3911
3912
  Ko as S,
3912
3913
  Wo as a,
3913
- Ut as i
3914
+ Ht as i
3914
3915
  };
@@ -1,13 +1,13 @@
1
- import { a as c, _ as M } from "./extends-C3382pL0.js";
1
+ import { a as c, _ as M } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as D from "react";
3
3
  import { P as e } from "./index-CblbdqjE.js";
4
4
  import { c as V } from "./clsx-OuTLNxxd.js";
5
- import { a as W, g as $, s as F, r as A, b as G, c as H } from "./generateUtilityClasses-Cc-owZ4J.js";
5
+ import { a as W, g as $, s as F, r as A, b as G, c as H } from "./styled-Ckq8ALHh.js";
6
6
  import { u as J } from "./useFormControl-CatNKXAi.js";
7
7
  import { jsxs as K, jsx as Q } from "react/jsx-runtime";
8
- import { B as X } from "./ButtonBase-DObmf4Q_.js";
8
+ import { B as X } from "./ButtonBase-DG5J0YgP.js";
9
9
  import { u as Y } from "./useControlled-BYdyS7Pn.js";
10
- import { r as Z } from "./TransitionGroupContext-Ja2CgIob.js";
10
+ import { r as Z } from "./TransitionGroupContext-C_aW1Tei.js";
11
11
  function ee(o) {
12
12
  return W("PrivateSwitchBase", o);
13
13
  }
@@ -1,17 +1,17 @@
1
1
  import { createBox as de } from "@mui/system";
2
2
  import { P as e } from "./index-CblbdqjE.js";
3
- import { g as W, h as ce, T as ue, C as pe, a as V, s as A, b as q, u as k, c as G } from "./generateUtilityClasses-Cc-owZ4J.js";
4
- import { a as i, _ as J } from "./extends-C3382pL0.js";
3
+ import { g as W, j as ce, T as ue, C as pe, a as V, s as A, b as q, u as k, c as G } from "./styled-Ckq8ALHh.js";
4
+ import { a as i, _ as J } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
5
5
  import * as p from "react";
6
6
  import { c as K } from "./clsx-OuTLNxxd.js";
7
7
  import { jsx as y, jsxs as fe } from "react/jsx-runtime";
8
- import { i as me, a as ee, S as be, I as ge, F as he, O as Te } from "./Select-Bfhvigsx.js";
8
+ import { i as me, a as ee, S as be, I as ge, F as he, O as Te } from "./Select-nL91eUH9.js";
9
9
  import { F as ye, u as xe } from "./useFormControl-CatNKXAi.js";
10
- import { i as U } from "./createSvgIcon-BghzB2Y9.js";
10
+ import { i as U } from "./createSvgIcon-jKAqRXE2.js";
11
11
  import { u as Fe } from "./useId-BW-oWmul.js";
12
- import { I as ve } from "./InputLabel-CjD30ZHz.js";
12
+ import { I as ve } from "./InputLabel-jPm6Xuco.js";
13
13
  import { f as Ce } from "./formControlState-vgaj2ksH.js";
14
- import { r as Oe } from "./TransitionGroupContext-Ja2CgIob.js";
14
+ import { r as Oe } from "./TransitionGroupContext-C_aW1Tei.js";
15
15
  const Ne = W("MuiBox", ["root"]), Ie = ce(), Re = de({
16
16
  themeId: ue,
17
17
  defaultTheme: Ie,
@@ -41,7 +41,7 @@ function we(o) {
41
41
  return V("MuiFormControl", o);
42
42
  }
43
43
  W("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
44
- const Pe = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Se = (o) => {
44
+ const Pe = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], je = (o) => {
45
45
  const {
46
46
  classes: r,
47
47
  margin: s,
@@ -50,7 +50,7 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
50
50
  root: ["root", s !== "none" && `margin${q(s)}`, t && "fullWidth"]
51
51
  };
52
52
  return G(l, we, r);
53
- }, je = A("div", {
53
+ }, Se = A("div", {
54
54
  name: "MuiFormControl",
55
55
  slot: "Root",
56
56
  overridesResolver: ({
@@ -94,7 +94,7 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
94
94
  required: x = !1,
95
95
  size: N = "medium",
96
96
  variant: h = "outlined"
97
- } = t, B = J(t, Pe), S = i({}, t, {
97
+ } = t, B = J(t, Pe), j = i({}, t, {
98
98
  color: c,
99
99
  component: m,
100
100
  disabled: a,
@@ -105,7 +105,7 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
105
105
  required: x,
106
106
  size: N,
107
107
  variant: h
108
- }), _ = Se(S), [T, H] = p.useState(() => {
108
+ }), _ = je(j), [T, H] = p.useState(() => {
109
109
  let d = !1;
110
110
  return l && p.Children.forEach(l, (u) => {
111
111
  if (!U(u, ["Input", "Select"]))
@@ -113,7 +113,7 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
113
113
  const F = U(u, ["Select"]) ? u.props.input : u;
114
114
  F && me(F.props) && (d = !0);
115
115
  }), d;
116
- }), [j, I] = p.useState(() => {
116
+ }), [S, I] = p.useState(() => {
117
117
  let d = !1;
118
118
  return l && p.Children.forEach(l, (u) => {
119
119
  U(u, ["Input", "Select"]) && (ee(u.props, !0) || ee(u.props.inputProps, !0)) && (d = !0);
@@ -135,7 +135,7 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
135
135
  color: c,
136
136
  disabled: a,
137
137
  error: n,
138
- filled: j,
138
+ filled: S,
139
139
  focused: M,
140
140
  fullWidth: g,
141
141
  hiddenLabel: C,
@@ -155,12 +155,12 @@ const Pe = ["children", "className", "color", "component", "disabled", "error",
155
155
  registerEffect: w,
156
156
  required: x,
157
157
  variant: h
158
- }), [T, c, a, n, j, M, g, C, w, x, N, h]);
158
+ }), [T, c, a, n, S, M, g, C, w, x, N, h]);
159
159
  return /* @__PURE__ */ y(ye.Provider, {
160
160
  value: $,
161
- children: /* @__PURE__ */ y(je, i({
161
+ children: /* @__PURE__ */ y(Se, i({
162
162
  as: m,
163
- ownerState: S,
163
+ ownerState: j,
164
164
  className: K(_.root, f),
165
165
  ref: s
166
166
  }, B, {
@@ -432,11 +432,11 @@ const Be = ["autoComplete", "autoFocus", "children", "className", "color", "defa
432
432
  id: N,
433
433
  InputLabelProps: h,
434
434
  inputProps: B,
435
- InputProps: S,
435
+ InputProps: j,
436
436
  inputRef: _,
437
437
  label: T,
438
438
  maxRows: H,
439
- minRows: j,
439
+ minRows: S,
440
440
  multiline: I = !1,
441
441
  name: E,
442
442
  onBlur: R,
@@ -474,7 +474,7 @@ const Be = ["autoComplete", "autoFocus", "children", "className", "color", "defa
474
474
  name: E,
475
475
  rows: u,
476
476
  maxRows: H,
477
- minRows: j,
477
+ minRows: S,
478
478
  type: se,
479
479
  value: Q,
480
480
  id: v,
@@ -484,7 +484,7 @@ const Be = ["autoComplete", "autoFocus", "children", "className", "color", "defa
484
484
  onFocus: w,
485
485
  placeholder: $,
486
486
  inputProps: B
487
- }, P, S));
487
+ }, P, j));
488
488
  return /* @__PURE__ */ fe($e, i({
489
489
  className: K(ie.root, m),
490
490
  disabled: b,
@@ -0,0 +1,37 @@
1
+ import { P as o } from "./index-CblbdqjE.js";
2
+ import { _ as s } from "./setPrototypeOf-NPgp4cYc.js";
3
+ import u from "react";
4
+ function f(e, t) {
5
+ return process.env.NODE_ENV === "production" ? () => null : function(...n) {
6
+ return e(...n) || t(...n);
7
+ };
8
+ }
9
+ function l(e) {
10
+ const {
11
+ prototype: t = {}
12
+ } = e;
13
+ return !!t.isReactComponent;
14
+ }
15
+ function d(e, t, p, n, c) {
16
+ const r = e[t], a = c || t;
17
+ if (r == null || // When server-side rendering React doesn't warn either.
18
+ // This is not an accurate check for SSR.
19
+ // This is only in place for emotion compat.
20
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
21
+ typeof window > "u")
22
+ return null;
23
+ let i;
24
+ return typeof r == "function" && !l(r) && (i = "Did you accidentally provide a plain function component instead?"), i !== void 0 ? new Error(`Invalid ${n} \`${a}\` supplied to \`${p}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
25
+ }
26
+ const _ = f(o.elementType, d), h = o.oneOfType([o.func, o.object]);
27
+ function v(e, t) {
28
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, s(e, t);
29
+ }
30
+ const w = u.createContext(null);
31
+ export {
32
+ w as T,
33
+ v as _,
34
+ f as c,
35
+ _ as e,
36
+ h as r
37
+ };
@@ -1,8 +1,8 @@
1
- import { a as s, _ as B } from "./extends-C3382pL0.js";
1
+ import { a as s, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
2
  import * as W from "react";
3
3
  import { P as t } from "./index-CblbdqjE.js";
4
4
  import { c as C } from "./clsx-OuTLNxxd.js";
5
- import { a as M, g as O, s as j, b as f, u as P, e as N, c as R } from "./generateUtilityClasses-Cc-owZ4J.js";
5
+ import { a as M, g as O, s as j, b as f, u as P, e as N, c as R } from "./styled-Ckq8ALHh.js";
6
6
  import { jsx as _ } from "react/jsx-runtime";
7
7
  function U(a) {
8
8
  return M("MuiTypography", a);
@@ -1,5 +1,5 @@
1
1
  import { styled as o } from "@mui/material";
2
- import { B as t } from "../../Button-Cem3nbwc.js";
2
+ import { B as t } from "../../Button-BMUZn0cT.js";
3
3
  const n = o(t, {
4
4
  name: "HCButton",
5
5
  slot: "root"
@@ -1,52 +1,112 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { useForecastConeChartLogic as h } from "./logic.js";
3
- import { ForecastConeChartRoot as f } from "./styled.js";
4
- const x = (o) => {
5
- const { chartDivRef: r, data: n, chartId: i, loading: t, emptyMessage: s, sx: a, other: c, ownerState: l } = h(o);
6
- return /* @__PURE__ */ d(f, { ownerState: l, sx: a, ...c, children: [
7
- /* @__PURE__ */ e(
8
- "div",
9
- {
10
- ref: r,
11
- id: i,
12
- style: { width: "100%", height: "100%" }
13
- }
14
- ),
15
- t && /* @__PURE__ */ e(
16
- "div",
17
- {
18
- style: {
19
- position: "absolute",
20
- inset: 0,
21
- background: "rgba(255,255,255,0.8)",
22
- display: "flex",
23
- alignItems: "center",
24
- justifyContent: "center",
25
- fontSize: "1.2rem",
26
- color: "#555",
27
- zIndex: 10
28
- },
29
- children: "Loading..."
30
- }
31
- ),
32
- !t && n.length === 0 && /* @__PURE__ */ e(
33
- "div",
34
- {
35
- style: {
36
- position: "absolute",
37
- inset: 0,
38
- display: "flex",
39
- alignItems: "center",
40
- justifyContent: "center",
41
- color: "#999",
42
- fontSize: "1.1rem",
43
- zIndex: 10
44
- },
45
- children: s
46
- }
47
- )
1
+ import c, { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { i as h } from "../../../styled-Ckq8ALHh.js";
3
+ import { r as u } from "../../../createSvgIcon-jKAqRXE2.js";
4
+ import { IconButton as s, Typography as d } from "@mui/material";
5
+ import { useForecastConeChartLogic as z } from "./logic.js";
6
+ import { ForecastConeChartRoot as I, ForecastConeChartCanvas as R, ForecastConeChartPager as $ } from "./styled.js";
7
+ var a = {}, S = h;
8
+ Object.defineProperty(a, "__esModule", {
9
+ value: !0
10
+ });
11
+ var f = a.default = void 0, F = S(u()), L = c;
12
+ f = a.default = (0, F.default)(/* @__PURE__ */ (0, L.jsx)("path", {
13
+ d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
14
+ }), "ChevronLeft");
15
+ var i = {}, M = h;
16
+ Object.defineProperty(i, "__esModule", {
17
+ value: !0
18
+ });
19
+ var v = i.default = void 0, q = M(u()), D = c;
20
+ v = i.default = (0, q.default)(/* @__PURE__ */ (0, D.jsx)("path", {
21
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
22
+ }), "ChevronRight");
23
+ const N = (p) => {
24
+ const {
25
+ chartDivRef: g,
26
+ data: m,
27
+ chartId: C,
28
+ loading: n,
29
+ emptyMessage: x,
30
+ isMulti: y,
31
+ origins: r,
32
+ selectedOriginIndex: t,
33
+ onOriginChange: l,
34
+ sx: _,
35
+ other: b,
36
+ ownerState: j
37
+ } = z(p);
38
+ return /* @__PURE__ */ o(I, { ownerState: j, sx: _, ...b, children: [
39
+ /* @__PURE__ */ o(R, { children: [
40
+ /* @__PURE__ */ e(
41
+ "div",
42
+ {
43
+ ref: g,
44
+ id: C,
45
+ style: { width: "100%", height: "100%" }
46
+ }
47
+ ),
48
+ n && /* @__PURE__ */ e(
49
+ "div",
50
+ {
51
+ style: {
52
+ position: "absolute",
53
+ inset: 0,
54
+ background: "rgba(255,255,255,0.8)",
55
+ display: "flex",
56
+ alignItems: "center",
57
+ justifyContent: "center",
58
+ fontSize: "1.2rem",
59
+ color: "#555",
60
+ zIndex: 10
61
+ },
62
+ children: "Loading..."
63
+ }
64
+ ),
65
+ !n && m.length === 0 && /* @__PURE__ */ e(
66
+ "div",
67
+ {
68
+ style: {
69
+ position: "absolute",
70
+ inset: 0,
71
+ display: "flex",
72
+ alignItems: "center",
73
+ justifyContent: "center",
74
+ color: "#999",
75
+ fontSize: "1.1rem",
76
+ zIndex: 10
77
+ },
78
+ children: x
79
+ }
80
+ )
81
+ ] }),
82
+ y && r.length > 1 && /* @__PURE__ */ o($, { children: [
83
+ /* @__PURE__ */ e(
84
+ s,
85
+ {
86
+ size: "small",
87
+ "aria-label": "Previous forecast",
88
+ disabled: t <= 0,
89
+ onClick: () => l(t - 1),
90
+ children: /* @__PURE__ */ e(f, { fontSize: "small" })
91
+ }
92
+ ),
93
+ /* @__PURE__ */ o(d, { variant: "caption", color: "text.secondary", component: "div", children: [
94
+ `Forecast origin: ${r[t] ?? ""}`,
95
+ /* @__PURE__ */ e(d, { variant: "caption", color: "text.disabled", component: "span", children: ` (${t + 1} / ${r.length})` })
96
+ ] }),
97
+ /* @__PURE__ */ e(
98
+ s,
99
+ {
100
+ size: "small",
101
+ "aria-label": "Next forecast",
102
+ disabled: t >= r.length - 1,
103
+ onClick: () => l(t + 1),
104
+ children: /* @__PURE__ */ e(v, { fontSize: "small" })
105
+ }
106
+ )
107
+ ] })
48
108
  ] });
49
109
  };
50
110
  export {
51
- x as ForecastConeChart
111
+ N as ForecastConeChart
52
112
  };