@oliasoft-open-source/charts-library 5.2.1-beta-3 → 5.2.1-beta-5

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 (29) hide show
  1. package/dist/assets/{Color-64QXVMR3-B1MqwVmC.js → Color-64QXVMR3-Cb9LVV1P.js} +1 -1
  2. package/dist/assets/{DocsRenderer-HT7GNKAR-B5EfaRzZ.js → DocsRenderer-HT7GNKAR-BrFbo8V5.js} +2 -2
  3. package/dist/assets/WithTooltip-SK46ZJ2J-Askn-n1s.js +1 -0
  4. package/dist/assets/{bar-chart.stories-B9q5xhbQ.js → bar-chart.stories-urThb0Rj.js} +1 -1
  5. package/dist/assets/client-CmqLmbYz.js +1 -0
  6. package/dist/assets/{components-CetimBDC.js → components-Dxo8rSD_.js} +1 -1
  7. package/dist/assets/formatter-OMEEQ6HG-DHbwcxh9.js +1 -0
  8. package/dist/assets/{get-draggableData-S7e203pk.js → get-draggableData-ZlyIW7oc.js} +1 -1
  9. package/dist/assets/{iframe-B7H0zEqt.js → iframe-DtQAdYlq.js} +54 -54
  10. package/dist/assets/{legend-D3MbJ1Ue.js → legend-C0dwByWM.js} +1 -1
  11. package/dist/assets/{legend-context-DCJK-k1e.js → legend-context-CcpBvtZZ.js} +1 -1
  12. package/dist/assets/{line-chart-BihuMd7j.js → line-chart-Cxok9YCs.js} +1 -1
  13. package/dist/assets/{line-chart.stories-CtAPApyw.js → line-chart.stories-phqAKGWE.js} +1 -1
  14. package/dist/assets/{line-chart.test-case.stories-Corx6hCH.js → line-chart.test-case.stories-DWhmhSmR.js} +1 -1
  15. package/dist/assets/{pie-chart.stories-blndszYB.js → pie-chart.stories-Bbu8IbTV.js} +1 -1
  16. package/dist/assets/{react-18-DX-tgLUC.js → react-18-6VSElf7_.js} +1 -1
  17. package/dist/assets/{react-DCYwno-b.js → react-ohX_Q0VZ.js} +1 -1
  18. package/dist/assets/{scatter-chart.stories-jLOhJqGP.js → scatter-chart.stories-CDw346lg.js} +1 -1
  19. package/dist/assets/{syntaxhighlighter-DK2ODWXH-BEYX_Mbt.js → syntaxhighlighter-DK2ODWXH-BfKzrV1j.js} +1 -1
  20. package/dist/iframe.html +1 -1
  21. package/dist/index.html +6 -2
  22. package/dist/index.js +140 -1216
  23. package/dist/project.json +1 -1
  24. package/dist/sb-addons/themes-1/manager-bundle.js +3 -0
  25. package/package.json +2 -2
  26. package/dist/assets/WithTooltip-SK46ZJ2J-QHknRFLr.js +0 -1
  27. package/dist/assets/client-Gmcdq2cm.js +0 -1
  28. package/dist/assets/formatter-OMEEQ6HG-Y4g15AKl.js +0 -1
  29. /package/dist/sb-addons/{docs-1 → docs-2}/manager-bundle.js +0 -0
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import React, { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
1
+ import { createContext, forwardRef, useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState } from "react";
2
2
  import { ArcElement, BarElement, CategoryScale, Chart, Filler, Legend, LineElement, LinearScale, LogarithmicScale, PointElement, Title, Tooltip, defaults } from "chart.js";
3
3
  import { Bar, Line, Pie, Scatter } from "react-chartjs-2";
4
4
  import zoomPlugin from "chartjs-plugin-zoom";
@@ -11,37 +11,14 @@ import cx from "classnames";
11
11
  import { cloneDeep, debounce, defaultTo, find, findIndex, get, has, isArray, isEmpty, isNil, map, noop, set, some, startCase } from "lodash";
12
12
  import { produce } from "immer";
13
13
  import { Button, ButtonGroup, Field, Flex, Icon, InputGroup, InputGroupAddon, Menu, NumberInput, Popover, Portal, Select, Spacer, Text, Tooltip as Tooltip$1 } from "@oliasoft-open-source/react-ui-library";
14
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
15
  import { useMeasure } from "react-use";
16
+ import { TbArrowsMove, TbBan, TbCircleFilled, TbHandStop, TbList, TbRuler, TbSquareFilled, TbX, TbZoomIn } from "react-icons/tb";
15
17
  import { toPng } from "html-to-image";
16
18
  import { triggerBase64Download } from "react-base64-downloader";
17
19
  import hash from "object-hash";
18
20
  import isEqual from "fast-deep-equal";
19
21
  import dragDataPlugin from "chartjs-plugin-dragdata";
20
- var __create = Object.create;
21
- var __defProp = Object.defineProperty;
22
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
23
- var __getOwnPropNames = Object.getOwnPropertyNames;
24
- var __getProtoOf = Object.getPrototypeOf;
25
- var __hasOwnProp = Object.prototype.hasOwnProperty;
26
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
27
- var __copyProps = (to, from, except, desc) => {
28
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n$1 = keys.length, key; i < n$1; i++) {
29
- key = keys[i];
30
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
- get: ((k$1) => from[k$1]).bind(null, key),
32
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
- });
34
- }
35
- return to;
36
- };
37
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
38
- value: mod,
39
- enumerable: true
40
- }) : target, mod));
41
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
42
- if (typeof require !== "undefined") return require.apply(this, arguments);
43
- throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
44
- });
45
22
  var MINOR_TICKS_PER_MAJOR = 10;
46
23
  const getLargestMajorTickWidth = (majorTickPositions) => {
47
24
  return majorTickPositions?.reduce((acc, curr, index) => {
@@ -547,656 +524,15 @@ var initialState = ({ options, persistenceId }) => {
547
524
  };
548
525
  };
549
526
  var initial_state_default = initialState;
550
- var require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJSMin(((exports) => {
551
- var f = __require("react"), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = {
552
- key: !0,
553
- ref: !0,
554
- __self: !0,
555
- __source: !0
556
- };
557
- function q(c, a, g) {
558
- var b, d = {}, e = null, h = null;
559
- void 0 !== g && (e = "" + g);
560
- void 0 !== a.key && (e = "" + a.key);
561
- void 0 !== a.ref && (h = a.ref);
562
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
563
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
564
- return {
565
- $$typeof: k,
566
- type: c,
567
- key: e,
568
- ref: h,
569
- props: d,
570
- _owner: n.current
571
- };
572
- }
573
- exports.Fragment = l;
574
- exports.jsx = q;
575
- exports.jsxs = q;
576
- }));
577
- var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
578
- if (process.env.NODE_ENV !== "production") (function() {
579
- var React$1 = __require("react");
580
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
581
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
582
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
583
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
584
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
585
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
586
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
587
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
588
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
589
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
590
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
591
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
592
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
593
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
594
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
595
- function getIteratorFn(maybeIterable) {
596
- if (maybeIterable === null || typeof maybeIterable !== "object") return null;
597
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
598
- if (typeof maybeIterator === "function") return maybeIterator;
599
- return null;
600
- }
601
- var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
602
- function error(format) {
603
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
604
- printWarning("error", format, args);
605
- }
606
- function printWarning(level, format, args) {
607
- var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
608
- if (stack !== "") {
609
- format += "%s";
610
- args = args.concat([stack]);
611
- }
612
- var argsWithFormat = args.map(function(item) {
613
- return String(item);
614
- });
615
- argsWithFormat.unshift("Warning: " + format);
616
- Function.prototype.apply.call(console[level], console, argsWithFormat);
617
- }
618
- var enableScopeAPI = false;
619
- var enableCacheElement = false;
620
- var enableTransitionTracing = false;
621
- var enableLegacyHidden = false;
622
- var enableDebugTracing = false;
623
- var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
624
- function isValidElementType(type) {
625
- if (typeof type === "string" || typeof type === "function") return true;
626
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
627
- if (typeof type === "object" && type !== null) {
628
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) return true;
629
- }
630
- return false;
631
- }
632
- function getWrappedName(outerType, innerType, wrapperName) {
633
- var displayName = outerType.displayName;
634
- if (displayName) return displayName;
635
- var functionName = innerType.displayName || innerType.name || "";
636
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
637
- }
638
- function getContextName(type) {
639
- return type.displayName || "Context";
640
- }
641
- function getComponentNameFromType(type) {
642
- if (type == null) return null;
643
- if (typeof type.tag === "number") error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
644
- if (typeof type === "function") return type.displayName || type.name || null;
645
- if (typeof type === "string") return type;
646
- switch (type) {
647
- case REACT_FRAGMENT_TYPE: return "Fragment";
648
- case REACT_PORTAL_TYPE: return "Portal";
649
- case REACT_PROFILER_TYPE: return "Profiler";
650
- case REACT_STRICT_MODE_TYPE: return "StrictMode";
651
- case REACT_SUSPENSE_TYPE: return "Suspense";
652
- case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
653
- }
654
- if (typeof type === "object") switch (type.$$typeof) {
655
- case REACT_CONTEXT_TYPE: return getContextName(type) + ".Consumer";
656
- case REACT_PROVIDER_TYPE: return getContextName(type._context) + ".Provider";
657
- case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef");
658
- case REACT_MEMO_TYPE:
659
- var outerName = type.displayName || null;
660
- if (outerName !== null) return outerName;
661
- return getComponentNameFromType(type.type) || "Memo";
662
- case REACT_LAZY_TYPE:
663
- var lazyComponent = type;
664
- var payload = lazyComponent._payload;
665
- var init = lazyComponent._init;
666
- try {
667
- return getComponentNameFromType(init(payload));
668
- } catch (x) {
669
- return null;
670
- }
671
- }
672
- return null;
673
- }
674
- var assign = Object.assign;
675
- var disabledDepth = 0;
676
- var prevLog;
677
- var prevInfo;
678
- var prevWarn;
679
- var prevError;
680
- var prevGroup;
681
- var prevGroupCollapsed;
682
- var prevGroupEnd;
683
- function disabledLog() {}
684
- disabledLog.__reactDisabledLog = true;
685
- function disableLogs() {
686
- if (disabledDepth === 0) {
687
- prevLog = console.log;
688
- prevInfo = console.info;
689
- prevWarn = console.warn;
690
- prevError = console.error;
691
- prevGroup = console.group;
692
- prevGroupCollapsed = console.groupCollapsed;
693
- prevGroupEnd = console.groupEnd;
694
- var props = {
695
- configurable: true,
696
- enumerable: true,
697
- value: disabledLog,
698
- writable: true
699
- };
700
- Object.defineProperties(console, {
701
- info: props,
702
- log: props,
703
- warn: props,
704
- error: props,
705
- group: props,
706
- groupCollapsed: props,
707
- groupEnd: props
708
- });
709
- }
710
- disabledDepth++;
711
- }
712
- function reenableLogs() {
713
- disabledDepth--;
714
- if (disabledDepth === 0) {
715
- var props = {
716
- configurable: true,
717
- enumerable: true,
718
- writable: true
719
- };
720
- Object.defineProperties(console, {
721
- log: assign({}, props, { value: prevLog }),
722
- info: assign({}, props, { value: prevInfo }),
723
- warn: assign({}, props, { value: prevWarn }),
724
- error: assign({}, props, { value: prevError }),
725
- group: assign({}, props, { value: prevGroup }),
726
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
727
- groupEnd: assign({}, props, { value: prevGroupEnd })
728
- });
729
- }
730
- if (disabledDepth < 0) error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
731
- }
732
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
733
- var prefix;
734
- function describeBuiltInComponentFrame(name, source, ownerFn) {
735
- if (prefix === void 0) try {
736
- throw Error();
737
- } catch (x) {
738
- var match = x.stack.trim().match(/\n( *(at )?)/);
739
- prefix = match && match[1] || "";
740
- }
741
- return "\n" + prefix + name;
742
- }
743
- var reentry = false;
744
- var componentFrameCache = new (typeof WeakMap === "function" ? WeakMap : Map)();
745
- function describeNativeComponentFrame(fn, construct) {
746
- if (!fn || reentry) return "";
747
- var frame = componentFrameCache.get(fn);
748
- if (frame !== void 0) return frame;
749
- var control;
750
- reentry = true;
751
- var previousPrepareStackTrace = Error.prepareStackTrace;
752
- Error.prepareStackTrace = void 0;
753
- var previousDispatcher = ReactCurrentDispatcher.current;
754
- ReactCurrentDispatcher.current = null;
755
- disableLogs();
756
- try {
757
- if (construct) {
758
- var Fake = function() {
759
- throw Error();
760
- };
761
- Object.defineProperty(Fake.prototype, "props", { set: function() {
762
- throw Error();
763
- } });
764
- if (typeof Reflect === "object" && Reflect.construct) {
765
- try {
766
- Reflect.construct(Fake, []);
767
- } catch (x) {
768
- control = x;
769
- }
770
- Reflect.construct(fn, [], Fake);
771
- } else {
772
- try {
773
- Fake.call();
774
- } catch (x) {
775
- control = x;
776
- }
777
- fn.call(Fake.prototype);
778
- }
779
- } else {
780
- try {
781
- throw Error();
782
- } catch (x) {
783
- control = x;
784
- }
785
- fn();
786
- }
787
- } catch (sample) {
788
- if (sample && control && typeof sample.stack === "string") {
789
- var sampleLines = sample.stack.split("\n");
790
- var controlLines = control.stack.split("\n");
791
- var s = sampleLines.length - 1;
792
- var c = controlLines.length - 1;
793
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) c--;
794
- for (; s >= 1 && c >= 0; s--, c--) if (sampleLines[s] !== controlLines[c]) {
795
- if (s !== 1 || c !== 1) do {
796
- s--;
797
- c--;
798
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
799
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
800
- if (fn.displayName && _frame.includes("<anonymous>")) _frame = _frame.replace("<anonymous>", fn.displayName);
801
- if (typeof fn === "function") componentFrameCache.set(fn, _frame);
802
- return _frame;
803
- }
804
- } while (s >= 1 && c >= 0);
805
- break;
806
- }
807
- }
808
- } finally {
809
- reentry = false;
810
- ReactCurrentDispatcher.current = previousDispatcher;
811
- reenableLogs();
812
- Error.prepareStackTrace = previousPrepareStackTrace;
813
- }
814
- var name = fn ? fn.displayName || fn.name : "";
815
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
816
- if (typeof fn === "function") componentFrameCache.set(fn, syntheticFrame);
817
- return syntheticFrame;
818
- }
819
- function describeFunctionComponentFrame(fn, source, ownerFn) {
820
- return describeNativeComponentFrame(fn, false);
821
- }
822
- function shouldConstruct(Component) {
823
- var prototype = Component.prototype;
824
- return !!(prototype && prototype.isReactComponent);
825
- }
826
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
827
- if (type == null) return "";
828
- if (typeof type === "function") return describeNativeComponentFrame(type, shouldConstruct(type));
829
- if (typeof type === "string") return describeBuiltInComponentFrame(type);
830
- switch (type) {
831
- case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame("Suspense");
832
- case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame("SuspenseList");
833
- }
834
- if (typeof type === "object") switch (type.$$typeof) {
835
- case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render);
836
- case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
837
- case REACT_LAZY_TYPE:
838
- var lazyComponent = type;
839
- var payload = lazyComponent._payload;
840
- var init = lazyComponent._init;
841
- try {
842
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
843
- } catch (x) {}
844
- }
845
- return "";
846
- }
847
- var hasOwnProperty = Object.prototype.hasOwnProperty;
848
- var loggedTypeFailures = {};
849
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
850
- function setCurrentlyValidatingElement(element) {
851
- if (element) {
852
- var owner = element._owner;
853
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
854
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
855
- } else ReactDebugCurrentFrame.setExtraStackFrame(null);
856
- }
857
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
858
- var has$1 = Function.call.bind(hasOwnProperty);
859
- for (var typeSpecName in typeSpecs) if (has$1(typeSpecs, typeSpecName)) {
860
- var error$1 = void 0;
861
- try {
862
- if (typeof typeSpecs[typeSpecName] !== "function") {
863
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
864
- err.name = "Invariant Violation";
865
- throw err;
866
- }
867
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
868
- } catch (ex) {
869
- error$1 = ex;
870
- }
871
- if (error$1 && !(error$1 instanceof Error)) {
872
- setCurrentlyValidatingElement(element);
873
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
874
- setCurrentlyValidatingElement(null);
875
- }
876
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
877
- loggedTypeFailures[error$1.message] = true;
878
- setCurrentlyValidatingElement(element);
879
- error("Failed %s type: %s", location, error$1.message);
880
- setCurrentlyValidatingElement(null);
881
- }
882
- }
883
- }
884
- var isArrayImpl = Array.isArray;
885
- function isArray$1(a) {
886
- return isArrayImpl(a);
887
- }
888
- function typeName(value) {
889
- return typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
890
- }
891
- function willCoercionThrow(value) {
892
- try {
893
- testStringCoercion(value);
894
- return false;
895
- } catch (e) {
896
- return true;
897
- }
898
- }
899
- function testStringCoercion(value) {
900
- return "" + value;
901
- }
902
- function checkKeyStringCoercion(value) {
903
- if (willCoercionThrow(value)) {
904
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
905
- return testStringCoercion(value);
906
- }
907
- }
908
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
909
- var RESERVED_PROPS = {
910
- key: true,
911
- ref: true,
912
- __self: true,
913
- __source: true
914
- };
915
- var specialPropKeyWarningShown;
916
- var specialPropRefWarningShown;
917
- var didWarnAboutStringRefs = {};
918
- function hasValidRef(config$1) {
919
- if (hasOwnProperty.call(config$1, "ref")) {
920
- var getter = Object.getOwnPropertyDescriptor(config$1, "ref").get;
921
- if (getter && getter.isReactWarning) return false;
922
- }
923
- return config$1.ref !== void 0;
924
- }
925
- function hasValidKey(config$1) {
926
- if (hasOwnProperty.call(config$1, "key")) {
927
- var getter = Object.getOwnPropertyDescriptor(config$1, "key").get;
928
- if (getter && getter.isReactWarning) return false;
929
- }
930
- return config$1.key !== void 0;
931
- }
932
- function warnIfStringRefCannotBeAutoConverted(config$1, self) {
933
- if (typeof config$1.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
934
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
935
- if (!didWarnAboutStringRefs[componentName]) {
936
- error("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config$1.ref);
937
- didWarnAboutStringRefs[componentName] = true;
938
- }
939
- }
940
- }
941
- function defineKeyPropWarningGetter(props, displayName) {
942
- var warnAboutAccessingKey = function() {
943
- if (!specialPropKeyWarningShown) {
944
- specialPropKeyWarningShown = true;
945
- error("%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://reactjs.org/link/special-props)", displayName);
946
- }
947
- };
948
- warnAboutAccessingKey.isReactWarning = true;
949
- Object.defineProperty(props, "key", {
950
- get: warnAboutAccessingKey,
951
- configurable: true
952
- });
953
- }
954
- function defineRefPropWarningGetter(props, displayName) {
955
- var warnAboutAccessingRef = function() {
956
- if (!specialPropRefWarningShown) {
957
- specialPropRefWarningShown = true;
958
- error("%s: `ref` 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://reactjs.org/link/special-props)", displayName);
959
- }
960
- };
961
- warnAboutAccessingRef.isReactWarning = true;
962
- Object.defineProperty(props, "ref", {
963
- get: warnAboutAccessingRef,
964
- configurable: true
965
- });
966
- }
967
- var ReactElement = function(type, key, ref, self, source, owner, props) {
968
- var element = {
969
- $$typeof: REACT_ELEMENT_TYPE,
970
- type,
971
- key,
972
- ref,
973
- props,
974
- _owner: owner
975
- };
976
- element._store = {};
977
- Object.defineProperty(element._store, "validated", {
978
- configurable: false,
979
- enumerable: false,
980
- writable: true,
981
- value: false
982
- });
983
- Object.defineProperty(element, "_self", {
984
- configurable: false,
985
- enumerable: false,
986
- writable: false,
987
- value: self
988
- });
989
- Object.defineProperty(element, "_source", {
990
- configurable: false,
991
- enumerable: false,
992
- writable: false,
993
- value: source
994
- });
995
- if (Object.freeze) {
996
- Object.freeze(element.props);
997
- Object.freeze(element);
998
- }
999
- return element;
1000
- };
1001
- function jsxDEV(type, config$1, maybeKey, source, self) {
1002
- var propName;
1003
- var props = {};
1004
- var key = null;
1005
- var ref = null;
1006
- if (maybeKey !== void 0) {
1007
- checkKeyStringCoercion(maybeKey);
1008
- key = "" + maybeKey;
1009
- }
1010
- if (hasValidKey(config$1)) {
1011
- checkKeyStringCoercion(config$1.key);
1012
- key = "" + config$1.key;
1013
- }
1014
- if (hasValidRef(config$1)) {
1015
- ref = config$1.ref;
1016
- warnIfStringRefCannotBeAutoConverted(config$1, self);
1017
- }
1018
- for (propName in config$1) if (hasOwnProperty.call(config$1, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) props[propName] = config$1[propName];
1019
- if (type && type.defaultProps) {
1020
- var defaultProps = type.defaultProps;
1021
- for (propName in defaultProps) if (props[propName] === void 0) props[propName] = defaultProps[propName];
1022
- }
1023
- if (key || ref) {
1024
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
1025
- if (key) defineKeyPropWarningGetter(props, displayName);
1026
- if (ref) defineRefPropWarningGetter(props, displayName);
1027
- }
1028
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1029
- }
1030
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1031
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1032
- function setCurrentlyValidatingElement$1(element) {
1033
- if (element) {
1034
- var owner = element._owner;
1035
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1036
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1037
- } else ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1038
- }
1039
- var propTypesMisspellWarningShown = false;
1040
- function isValidElement(object) {
1041
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1042
- }
1043
- function getDeclarationErrorAddendum() {
1044
- if (ReactCurrentOwner$1.current) {
1045
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1046
- if (name) return "\n\nCheck the render method of `" + name + "`.";
1047
- }
1048
- return "";
1049
- }
1050
- function getSourceInfoErrorAddendum(source) {
1051
- if (source !== void 0) {
1052
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1053
- var lineNumber = source.lineNumber;
1054
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1055
- }
1056
- return "";
1057
- }
1058
- var ownerHasKeyUseWarning = {};
1059
- function getCurrentComponentErrorInfo(parentType) {
1060
- var info = getDeclarationErrorAddendum();
1061
- if (!info) {
1062
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1063
- if (parentName) info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1064
- }
1065
- return info;
1066
- }
1067
- function validateExplicitKey(element, parentType) {
1068
- if (!element._store || element._store.validated || element.key != null) return;
1069
- element._store.validated = true;
1070
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1071
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) return;
1072
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1073
- var childOwner = "";
1074
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1075
- setCurrentlyValidatingElement$1(element);
1076
- error("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
1077
- setCurrentlyValidatingElement$1(null);
1078
- }
1079
- function validateChildKeys(node, parentType) {
1080
- if (typeof node !== "object") return;
1081
- if (isArray$1(node)) for (var i = 0; i < node.length; i++) {
1082
- var child = node[i];
1083
- if (isValidElement(child)) validateExplicitKey(child, parentType);
1084
- }
1085
- else if (isValidElement(node)) {
1086
- if (node._store) node._store.validated = true;
1087
- } else if (node) {
1088
- var iteratorFn = getIteratorFn(node);
1089
- if (typeof iteratorFn === "function") {
1090
- if (iteratorFn !== node.entries) {
1091
- var iterator = iteratorFn.call(node);
1092
- var step;
1093
- while (!(step = iterator.next()).done) if (isValidElement(step.value)) validateExplicitKey(step.value, parentType);
1094
- }
1095
- }
1096
- }
1097
- }
1098
- function validatePropTypes(element) {
1099
- var type = element.type;
1100
- if (type === null || type === void 0 || typeof type === "string") return;
1101
- var propTypes;
1102
- if (typeof type === "function") propTypes = type.propTypes;
1103
- else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) propTypes = type.propTypes;
1104
- else return;
1105
- if (propTypes) {
1106
- var name = getComponentNameFromType(type);
1107
- checkPropTypes(propTypes, element.props, "prop", name, element);
1108
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1109
- propTypesMisspellWarningShown = true;
1110
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", getComponentNameFromType(type) || "Unknown");
1111
- }
1112
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1113
- }
1114
- function validateFragmentProps(fragment) {
1115
- var keys = Object.keys(fragment.props);
1116
- for (var i = 0; i < keys.length; i++) {
1117
- var key = keys[i];
1118
- if (key !== "children" && key !== "key") {
1119
- setCurrentlyValidatingElement$1(fragment);
1120
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1121
- setCurrentlyValidatingElement$1(null);
1122
- break;
1123
- }
1124
- }
1125
- if (fragment.ref !== null) {
1126
- setCurrentlyValidatingElement$1(fragment);
1127
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1128
- setCurrentlyValidatingElement$1(null);
1129
- }
1130
- }
1131
- var didWarnAboutKeySpread = {};
1132
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1133
- var validType = isValidElementType(type);
1134
- if (!validType) {
1135
- var info = "";
1136
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1137
- var sourceInfo = getSourceInfoErrorAddendum(source);
1138
- if (sourceInfo) info += sourceInfo;
1139
- else info += getDeclarationErrorAddendum();
1140
- var typeString;
1141
- if (type === null) typeString = "null";
1142
- else if (isArray$1(type)) typeString = "array";
1143
- else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1144
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1145
- info = " Did you accidentally export a JSX literal instead of a component?";
1146
- } else typeString = typeof type;
1147
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1148
- }
1149
- var element = jsxDEV(type, props, key, source, self);
1150
- if (element == null) return element;
1151
- if (validType) {
1152
- var children = props.children;
1153
- if (children !== void 0) if (isStaticChildren) if (isArray$1(children)) {
1154
- for (var i = 0; i < children.length; i++) validateChildKeys(children[i], type);
1155
- if (Object.freeze) Object.freeze(children);
1156
- } else error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1157
- else validateChildKeys(children, type);
1158
- }
1159
- if (hasOwnProperty.call(props, "key")) {
1160
- var componentName = getComponentNameFromType(type);
1161
- var keys = Object.keys(props).filter(function(k$1) {
1162
- return k$1 !== "key";
1163
- });
1164
- var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1165
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1166
- error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", beforeExample, componentName, keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}", componentName);
1167
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1168
- }
1169
- }
1170
- if (type === REACT_FRAGMENT_TYPE) validateFragmentProps(element);
1171
- else validatePropTypes(element);
1172
- return element;
1173
- }
1174
- function jsxWithValidationStatic(type, props, key) {
1175
- return jsxWithValidation(type, props, key, true);
1176
- }
1177
- function jsxWithValidationDynamic(type, props, key) {
1178
- return jsxWithValidation(type, props, key, false);
1179
- }
1180
- var jsx = jsxWithValidationDynamic;
1181
- var jsxs = jsxWithValidationStatic;
1182
- exports.Fragment = REACT_FRAGMENT_TYPE;
1183
- exports.jsx = jsx;
1184
- exports.jsxs = jsxs;
1185
- })();
1186
- }));
1187
- var import_jsx_runtime = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1188
- if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production_min();
1189
- else module.exports = require_react_jsx_runtime_development();
1190
- })))(), 1);
1191
527
  var ControlsPortal = ({ children, controlsPortalId }) => {
1192
- if (controlsPortalId) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Portal, {
528
+ if (controlsPortalId) return /* @__PURE__ */ jsx(Portal, {
1193
529
  id: controlsPortalId,
1194
530
  children
1195
531
  });
1196
532
  return children;
1197
533
  };
1198
534
  var controls_portal_default = ControlsPortal;
1199
- var SvgLineOnly = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
535
+ var SvgLineOnly = (props) => /* @__PURE__ */ jsxs("svg", {
1200
536
  fill: "currentColor",
1201
537
  height: "1em",
1202
538
  viewBox: "0 0 12 12",
@@ -1204,30 +540,30 @@ var SvgLineOnly = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg",
1204
540
  xmlns: "http://www.w3.org/2000/svg",
1205
541
  xmlnsXlink: "http://www.w3.org/1999/xlink",
1206
542
  ...props,
1207
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", {
543
+ children: [/* @__PURE__ */ jsx("clipPath", {
1208
544
  id: "a",
1209
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m0 0h12v12h-12z" })
1210
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", {
545
+ children: /* @__PURE__ */ jsx("path", { d: "m0 0h12v12h-12z" })
546
+ }), /* @__PURE__ */ jsx("g", {
1211
547
  clipPath: "url(#a)",
1212
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m.5 6.5v-1h11v1c-4.16104 0-6.63549 0-11 0z" })
548
+ children: /* @__PURE__ */ jsx("path", { d: "m.5 6.5v-1h11v1c-4.16104 0-6.63549 0-11 0z" })
1213
549
  })]
1214
550
  });
1215
551
  var line_only_default = SvgLineOnly;
1216
- var SvgPointOnly = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
552
+ var SvgPointOnly = (props) => /* @__PURE__ */ jsx("svg", {
1217
553
  fill: "currentColor",
1218
554
  height: "1em",
1219
555
  viewBox: "0 0 12 12",
1220
556
  width: "1em",
1221
557
  xmlns: "http://www.w3.org/2000/svg",
1222
558
  ...props,
1223
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
559
+ children: /* @__PURE__ */ jsx("circle", {
1224
560
  cx: 6,
1225
561
  cy: 6,
1226
562
  r: 2
1227
563
  })
1228
564
  });
1229
565
  var point_only_default = SvgPointOnly;
1230
- var SvgLineAndPoint = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
566
+ var SvgLineAndPoint = (props) => /* @__PURE__ */ jsxs("svg", {
1231
567
  fill: "currentColor",
1232
568
  height: "1em",
1233
569
  viewBox: "0 0 12 12",
@@ -1235,12 +571,12 @@ var SvgLineAndPoint = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("s
1235
571
  xmlns: "http://www.w3.org/2000/svg",
1236
572
  xmlnsXlink: "http://www.w3.org/1999/xlink",
1237
573
  ...props,
1238
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("clipPath", {
574
+ children: [/* @__PURE__ */ jsx("clipPath", {
1239
575
  id: "a",
1240
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m0 0h12v12h-12z" })
1241
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", {
576
+ children: /* @__PURE__ */ jsx("path", { d: "m0 0h12v12h-12z" })
577
+ }), /* @__PURE__ */ jsx("g", {
1242
578
  clipPath: "url(#a)",
1243
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m7.937 6.5c-.11122.42912-.36179.80916-.71237 1.08047-.35058.2713-.78133.4185-1.22463.4185s-.87405-.1472-1.22463-.4185c-.35058-.27131-.60115-.65135-.71237-1.08047h-3.563v-1h3.563c.11122-.42912.36179-.80916.71237-1.08046s.78133-.41851 1.22463-.41851.87405.14721 1.22463.41851.60115.65134.71237 1.08046h3.563v1z" })
579
+ children: /* @__PURE__ */ jsx("path", { d: "m7.937 6.5c-.11122.42912-.36179.80916-.71237 1.08047-.35058.2713-.78133.4185-1.22463.4185s-.87405-.1472-1.22463-.4185c-.35058-.27131-.60115-.65135-.71237-1.08047h-3.563v-1h3.563c.11122-.42912.36179-.80916.71237-1.08046s.78133-.41851 1.22463-.41851.87405.14721 1.22463.41851.60115.65134.71237 1.08046h3.563v1z" })
1244
580
  })]
1245
581
  });
1246
582
  var line_and_point_default = SvgLineAndPoint;
@@ -1249,7 +585,7 @@ function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabl
1249
585
  {
1250
586
  type: "Option",
1251
587
  label: translations.pointsLines,
1252
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(line_and_point_default, {}) }),
588
+ icon: /* @__PURE__ */ jsx(Icon, { icon: /* @__PURE__ */ jsx(line_and_point_default, {}) }),
1253
589
  selected: pointsEnabled && lineEnabled,
1254
590
  onClick: () => {
1255
591
  if (!pointsEnabled) onTogglePoints();
@@ -1259,7 +595,7 @@ function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabl
1259
595
  {
1260
596
  type: "Option",
1261
597
  label: translations.linesOnly,
1262
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(line_only_default, {}) }),
598
+ icon: /* @__PURE__ */ jsx(Icon, { icon: /* @__PURE__ */ jsx(line_only_default, {}) }),
1263
599
  selected: !pointsEnabled && lineEnabled,
1264
600
  onClick: () => {
1265
601
  if (pointsEnabled) onTogglePoints();
@@ -1269,7 +605,7 @@ function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabl
1269
605
  {
1270
606
  type: "Option",
1271
607
  label: translations.pointsOnly,
1272
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(point_only_default, {}) }),
608
+ icon: /* @__PURE__ */ jsx(Icon, { icon: /* @__PURE__ */ jsx(point_only_default, {}) }),
1273
609
  selected: pointsEnabled && !lineEnabled,
1274
610
  onClick: () => {
1275
611
  if (!pointsEnabled) onTogglePoints();
@@ -1281,18 +617,18 @@ function getLineOptions({ lineEnabled, onToggleLine, onTogglePoints, pointsEnabl
1281
617
  const LineOptions = ({ options }) => {
1282
618
  const [menuOpen, setMenuOpen] = useState(false);
1283
619
  const selectedOption = options.find((option) => option.selected);
1284
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Menu, {
620
+ return /* @__PURE__ */ jsx(Menu, {
1285
621
  open: menuOpen,
1286
622
  setOpen: setMenuOpen,
1287
623
  menu: {
1288
624
  sections: options,
1289
625
  trigger: "Component",
1290
- component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$1, {
626
+ component: /* @__PURE__ */ jsx(Tooltip$1, {
1291
627
  display: "inline-flex",
1292
628
  text: selectedOption?.label,
1293
629
  placement: "bottom-start",
1294
630
  enabled: !menuOpen,
1295
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
631
+ children: /* @__PURE__ */ jsx(Button, {
1296
632
  colored: "muted",
1297
633
  basic: true,
1298
634
  small: true,
@@ -1303,424 +639,12 @@ const LineOptions = ({ options }) => {
1303
639
  }
1304
640
  });
1305
641
  };
1306
- var DefaultContext = {
1307
- color: void 0,
1308
- size: void 0,
1309
- className: void 0,
1310
- style: void 0,
1311
- attr: void 0
1312
- };
1313
- var IconContext = React.createContext && React.createContext(DefaultContext);
1314
- var __assign = function() {
1315
- __assign = Object.assign || function(t) {
1316
- for (var s, i = 1, n$1 = arguments.length; i < n$1; i++) {
1317
- s = arguments[i];
1318
- for (var p$1 in s) if (Object.prototype.hasOwnProperty.call(s, p$1)) t[p$1] = s[p$1];
1319
- }
1320
- return t;
1321
- };
1322
- return __assign.apply(this, arguments);
1323
- };
1324
- var __rest = function(s, e) {
1325
- var t = {};
1326
- for (var p$1 in s) if (Object.prototype.hasOwnProperty.call(s, p$1) && e.indexOf(p$1) < 0) t[p$1] = s[p$1];
1327
- if (s != null && typeof Object.getOwnPropertySymbols === "function") {
1328
- for (var i = 0, p$1 = Object.getOwnPropertySymbols(s); i < p$1.length; i++) if (e.indexOf(p$1[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p$1[i])) t[p$1[i]] = s[p$1[i]];
1329
- }
1330
- return t;
1331
- };
1332
- function Tree2Element(tree) {
1333
- return tree && tree.map(function(node, i) {
1334
- return React.createElement(node.tag, __assign({ key: i }, node.attr), Tree2Element(node.child));
1335
- });
1336
- }
1337
- function GenIcon(data) {
1338
- return function(props) {
1339
- return React.createElement(IconBase, __assign({ attr: __assign({}, data.attr) }, props), Tree2Element(data.child));
1340
- };
1341
- }
1342
- function IconBase(props) {
1343
- var elem = function(conf) {
1344
- var attr = props.attr, size = props.size, title = props.title, svgProps = __rest(props, [
1345
- "attr",
1346
- "size",
1347
- "title"
1348
- ]);
1349
- var computedSize = size || conf.size || "1em";
1350
- var className;
1351
- if (conf.className) className = conf.className;
1352
- if (props.className) className = (className ? className + " " : "") + props.className;
1353
- return React.createElement("svg", __assign({
1354
- stroke: "currentColor",
1355
- fill: "currentColor",
1356
- strokeWidth: "0"
1357
- }, conf.attr, attr, svgProps, {
1358
- className,
1359
- style: __assign(__assign({ color: props.color || conf.color }, conf.style), props.style),
1360
- height: computedSize,
1361
- width: computedSize,
1362
- xmlns: "http://www.w3.org/2000/svg"
1363
- }), title && React.createElement("title", null, title), props.children);
1364
- };
1365
- return IconContext !== void 0 ? React.createElement(IconContext.Consumer, null, function(conf) {
1366
- return elem(conf);
1367
- }) : elem(DefaultContext);
1368
- }
1369
- function TbArrowsMove(props) {
1370
- return GenIcon({
1371
- "tag": "svg",
1372
- "attr": {
1373
- "viewBox": "0 0 24 24",
1374
- "strokeWidth": "2",
1375
- "stroke": "currentColor",
1376
- "fill": "none",
1377
- "strokeLinecap": "round",
1378
- "strokeLinejoin": "round"
1379
- },
1380
- "child": [
1381
- {
1382
- "tag": "path",
1383
- "attr": {
1384
- "stroke": "none",
1385
- "d": "M0 0h24v24H0z",
1386
- "fill": "none"
1387
- }
1388
- },
1389
- {
1390
- "tag": "path",
1391
- "attr": { "d": "M18 9l3 3l-3 3" }
1392
- },
1393
- {
1394
- "tag": "path",
1395
- "attr": { "d": "M15 12h6" }
1396
- },
1397
- {
1398
- "tag": "path",
1399
- "attr": { "d": "M6 9l-3 3l3 3" }
1400
- },
1401
- {
1402
- "tag": "path",
1403
- "attr": { "d": "M3 12h6" }
1404
- },
1405
- {
1406
- "tag": "path",
1407
- "attr": { "d": "M9 18l3 3l3 -3" }
1408
- },
1409
- {
1410
- "tag": "path",
1411
- "attr": { "d": "M12 15v6" }
1412
- },
1413
- {
1414
- "tag": "path",
1415
- "attr": { "d": "M15 6l-3 -3l-3 3" }
1416
- },
1417
- {
1418
- "tag": "path",
1419
- "attr": { "d": "M12 3v6" }
1420
- }
1421
- ]
1422
- })(props);
1423
- }
1424
- function TbBan(props) {
1425
- return GenIcon({
1426
- "tag": "svg",
1427
- "attr": {
1428
- "viewBox": "0 0 24 24",
1429
- "strokeWidth": "2",
1430
- "stroke": "currentColor",
1431
- "fill": "none",
1432
- "strokeLinecap": "round",
1433
- "strokeLinejoin": "round"
1434
- },
1435
- "child": [
1436
- {
1437
- "tag": "path",
1438
- "attr": {
1439
- "stroke": "none",
1440
- "d": "M0 0h24v24H0z",
1441
- "fill": "none"
1442
- }
1443
- },
1444
- {
1445
- "tag": "path",
1446
- "attr": { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }
1447
- },
1448
- {
1449
- "tag": "path",
1450
- "attr": { "d": "M5.7 5.7l12.6 12.6" }
1451
- }
1452
- ]
1453
- })(props);
1454
- }
1455
- function TbCircleFilled(props) {
1456
- return GenIcon({
1457
- "tag": "svg",
1458
- "attr": {
1459
- "viewBox": "0 0 24 24",
1460
- "strokeWidth": "2",
1461
- "stroke": "currentColor",
1462
- "fill": "none",
1463
- "strokeLinecap": "round",
1464
- "strokeLinejoin": "round"
1465
- },
1466
- "child": [{
1467
- "tag": "path",
1468
- "attr": {
1469
- "stroke": "none",
1470
- "d": "M0 0h24v24H0z",
1471
- "fill": "none"
1472
- }
1473
- }, {
1474
- "tag": "path",
1475
- "attr": {
1476
- "d": "M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",
1477
- "strokeWidth": "0",
1478
- "fill": "currentColor"
1479
- }
1480
- }]
1481
- })(props);
1482
- }
1483
- function TbHandStop(props) {
1484
- return GenIcon({
1485
- "tag": "svg",
1486
- "attr": {
1487
- "viewBox": "0 0 24 24",
1488
- "strokeWidth": "2",
1489
- "stroke": "currentColor",
1490
- "fill": "none",
1491
- "strokeLinecap": "round",
1492
- "strokeLinejoin": "round"
1493
- },
1494
- "child": [
1495
- {
1496
- "tag": "path",
1497
- "attr": {
1498
- "stroke": "none",
1499
- "d": "M0 0h24v24H0z",
1500
- "fill": "none"
1501
- }
1502
- },
1503
- {
1504
- "tag": "path",
1505
- "attr": { "d": "M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5" }
1506
- },
1507
- {
1508
- "tag": "path",
1509
- "attr": { "d": "M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5" }
1510
- },
1511
- {
1512
- "tag": "path",
1513
- "attr": { "d": "M14 5.5a1.5 1.5 0 0 1 3 0v6.5" }
1514
- },
1515
- {
1516
- "tag": "path",
1517
- "attr": { "d": "M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47" }
1518
- }
1519
- ]
1520
- })(props);
1521
- }
1522
- function TbList(props) {
1523
- return GenIcon({
1524
- "tag": "svg",
1525
- "attr": {
1526
- "viewBox": "0 0 24 24",
1527
- "strokeWidth": "2",
1528
- "stroke": "currentColor",
1529
- "fill": "none",
1530
- "strokeLinecap": "round",
1531
- "strokeLinejoin": "round"
1532
- },
1533
- "child": [
1534
- {
1535
- "tag": "path",
1536
- "attr": {
1537
- "stroke": "none",
1538
- "d": "M0 0h24v24H0z",
1539
- "fill": "none"
1540
- }
1541
- },
1542
- {
1543
- "tag": "path",
1544
- "attr": { "d": "M9 6l11 0" }
1545
- },
1546
- {
1547
- "tag": "path",
1548
- "attr": { "d": "M9 12l11 0" }
1549
- },
1550
- {
1551
- "tag": "path",
1552
- "attr": { "d": "M9 18l11 0" }
1553
- },
1554
- {
1555
- "tag": "path",
1556
- "attr": { "d": "M5 6l0 .01" }
1557
- },
1558
- {
1559
- "tag": "path",
1560
- "attr": { "d": "M5 12l0 .01" }
1561
- },
1562
- {
1563
- "tag": "path",
1564
- "attr": { "d": "M5 18l0 .01" }
1565
- }
1566
- ]
1567
- })(props);
1568
- }
1569
- function TbRuler(props) {
1570
- return GenIcon({
1571
- "tag": "svg",
1572
- "attr": {
1573
- "viewBox": "0 0 24 24",
1574
- "strokeWidth": "2",
1575
- "stroke": "currentColor",
1576
- "fill": "none",
1577
- "strokeLinecap": "round",
1578
- "strokeLinejoin": "round"
1579
- },
1580
- "child": [
1581
- {
1582
- "tag": "path",
1583
- "attr": {
1584
- "stroke": "none",
1585
- "d": "M0 0h24v24H0z",
1586
- "fill": "none"
1587
- }
1588
- },
1589
- {
1590
- "tag": "path",
1591
- "attr": { "d": "M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" }
1592
- },
1593
- {
1594
- "tag": "path",
1595
- "attr": { "d": "M4 8l2 0" }
1596
- },
1597
- {
1598
- "tag": "path",
1599
- "attr": { "d": "M4 12l3 0" }
1600
- },
1601
- {
1602
- "tag": "path",
1603
- "attr": { "d": "M4 16l2 0" }
1604
- },
1605
- {
1606
- "tag": "path",
1607
- "attr": { "d": "M8 4l0 2" }
1608
- },
1609
- {
1610
- "tag": "path",
1611
- "attr": { "d": "M12 4l0 3" }
1612
- },
1613
- {
1614
- "tag": "path",
1615
- "attr": { "d": "M16 4l0 2" }
1616
- }
1617
- ]
1618
- })(props);
1619
- }
1620
- function TbSquareFilled(props) {
1621
- return GenIcon({
1622
- "tag": "svg",
1623
- "attr": {
1624
- "viewBox": "0 0 24 24",
1625
- "strokeWidth": "2",
1626
- "stroke": "currentColor",
1627
- "fill": "none",
1628
- "strokeLinecap": "round",
1629
- "strokeLinejoin": "round"
1630
- },
1631
- "child": [{
1632
- "tag": "path",
1633
- "attr": {
1634
- "stroke": "none",
1635
- "d": "M0 0h24v24H0z",
1636
- "fill": "none"
1637
- }
1638
- }, {
1639
- "tag": "path",
1640
- "attr": {
1641
- "d": "M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z",
1642
- "strokeWidth": "0",
1643
- "fill": "currentColor"
1644
- }
1645
- }]
1646
- })(props);
1647
- }
1648
- function TbX(props) {
1649
- return GenIcon({
1650
- "tag": "svg",
1651
- "attr": {
1652
- "viewBox": "0 0 24 24",
1653
- "strokeWidth": "2",
1654
- "stroke": "currentColor",
1655
- "fill": "none",
1656
- "strokeLinecap": "round",
1657
- "strokeLinejoin": "round"
1658
- },
1659
- "child": [
1660
- {
1661
- "tag": "path",
1662
- "attr": {
1663
- "stroke": "none",
1664
- "d": "M0 0h24v24H0z",
1665
- "fill": "none"
1666
- }
1667
- },
1668
- {
1669
- "tag": "path",
1670
- "attr": { "d": "M18 6l-12 12" }
1671
- },
1672
- {
1673
- "tag": "path",
1674
- "attr": { "d": "M6 6l12 12" }
1675
- }
1676
- ]
1677
- })(props);
1678
- }
1679
- function TbZoomIn(props) {
1680
- return GenIcon({
1681
- "tag": "svg",
1682
- "attr": {
1683
- "viewBox": "0 0 24 24",
1684
- "strokeWidth": "2",
1685
- "stroke": "currentColor",
1686
- "fill": "none",
1687
- "strokeLinecap": "round",
1688
- "strokeLinejoin": "round"
1689
- },
1690
- "child": [
1691
- {
1692
- "tag": "path",
1693
- "attr": {
1694
- "stroke": "none",
1695
- "d": "M0 0h24v24H0z",
1696
- "fill": "none"
1697
- }
1698
- },
1699
- {
1700
- "tag": "path",
1701
- "attr": { "d": "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" }
1702
- },
1703
- {
1704
- "tag": "path",
1705
- "attr": { "d": "M7 10l6 0" }
1706
- },
1707
- {
1708
- "tag": "path",
1709
- "attr": { "d": "M10 7l0 6" }
1710
- },
1711
- {
1712
- "tag": "path",
1713
- "attr": { "d": "M21 21l-6 -6" }
1714
- }
1715
- ]
1716
- })(props);
1717
- }
1718
642
  function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, enableDragPoints, enableDragAnnotation, isDragDataAllowed, isDragAnnotationAllowed, onToggleDragAnnotation, onToggleDragPoints, onDisableDragOptions, translations: { dragToZoom, doubleClickToReset, dragToPan, dragToMovePoints, dragDisabled, dragToMoveAnnotation } }) {
1719
643
  return [
1720
644
  {
1721
645
  label: dragToZoom,
1722
646
  description: doubleClickToReset,
1723
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbZoomIn, {}),
647
+ icon: /* @__PURE__ */ jsx(TbZoomIn, {}),
1724
648
  selected: zoomEnabled,
1725
649
  type: "Option",
1726
650
  onClick: () => {
@@ -1730,7 +654,7 @@ function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, en
1730
654
  {
1731
655
  label: dragToPan,
1732
656
  description: doubleClickToReset,
1733
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbArrowsMove, {}),
657
+ icon: /* @__PURE__ */ jsx(TbArrowsMove, {}),
1734
658
  selected: panEnabled,
1735
659
  type: "Option",
1736
660
  onClick: () => {
@@ -1739,7 +663,7 @@ function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, en
1739
663
  },
1740
664
  ...isDragDataAllowed ? [{
1741
665
  label: dragToMovePoints,
1742
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbHandStop, {}),
666
+ icon: /* @__PURE__ */ jsx(TbHandStop, {}),
1743
667
  selected: enableDragPoints,
1744
668
  type: "Option",
1745
669
  onClick: () => {
@@ -1748,7 +672,7 @@ function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, en
1748
672
  }] : [],
1749
673
  ...isDragAnnotationAllowed ? [{
1750
674
  label: dragToMoveAnnotation,
1751
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbHandStop, {}),
675
+ icon: /* @__PURE__ */ jsx(TbHandStop, {}),
1752
676
  selected: enableDragAnnotation,
1753
677
  type: "Option",
1754
678
  onClick: () => {
@@ -1757,7 +681,7 @@ function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, en
1757
681
  }] : [],
1758
682
  {
1759
683
  label: dragDisabled,
1760
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbBan, {}),
684
+ icon: /* @__PURE__ */ jsx(TbBan, {}),
1761
685
  selected: !zoomEnabled && !panEnabled && !enableDragPoints && !enableDragAnnotation,
1762
686
  type: "Option",
1763
687
  onClick: onDisableDragOptions
@@ -1766,10 +690,10 @@ function getDragOptions({ onTogglePan, onToggleZoom, panEnabled, zoomEnabled, en
1766
690
  }
1767
691
  const DragOptions = ({ options }) => {
1768
692
  const selectedOption = options.find((option) => option.selected);
1769
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Menu, { menu: {
693
+ return /* @__PURE__ */ jsx(Menu, { menu: {
1770
694
  sections: options,
1771
695
  trigger: "Component",
1772
- component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
696
+ component: /* @__PURE__ */ jsx(Button, {
1773
697
  colored: "muted",
1774
698
  basic: true,
1775
699
  small: true,
@@ -2068,19 +992,19 @@ var AxesOptionsPopover = (optionsPopover) => {
2068
992
  close?.();
2069
993
  };
2070
994
  const handleInputFocus = (e) => e.target.select();
2071
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
995
+ return /* @__PURE__ */ jsxs("form", {
2072
996
  onSubmit: onDone,
2073
997
  children: [
2074
998
  formState.localAxes.map((axis) => {
2075
999
  const axisLabel = controlsAxesLabels.find((el) => el.id === axis.id)?.label || startCase(axis.id);
2076
1000
  const axisErrors = errors.find((err) => err.id === axis.id);
2077
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
1001
+ return /* @__PURE__ */ jsx(Field, {
2078
1002
  label: axisLabel,
2079
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InputGroup, {
1003
+ children: /* @__PURE__ */ jsxs(InputGroup, {
2080
1004
  small: true,
2081
1005
  width: "300px",
2082
1006
  children: [
2083
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NumberInput, {
1007
+ /* @__PURE__ */ jsx(NumberInput, {
2084
1008
  name: "min",
2085
1009
  value: axis.min,
2086
1010
  error: axisErrors?.min?.[0] ? translations[axisErrors.min[0]] : null,
@@ -2092,8 +1016,8 @@ var AxesOptionsPopover = (optionsPopover) => {
2092
1016
  }),
2093
1017
  onFocus: handleInputFocus
2094
1018
  }),
2095
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupAddon, { children: "to" }),
2096
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NumberInput, {
1019
+ /* @__PURE__ */ jsx(InputGroupAddon, { children: "to" }),
1020
+ /* @__PURE__ */ jsx(NumberInput, {
2097
1021
  name: "max",
2098
1022
  value: axis.max,
2099
1023
  error: axisErrors?.max?.[0] ? translations[axisErrors.max[0]] : null,
@@ -2105,7 +1029,7 @@ var AxesOptionsPopover = (optionsPopover) => {
2105
1029
  }),
2106
1030
  onFocus: handleInputFocus
2107
1031
  }),
2108
- axis.unit ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Select, {
1032
+ axis.unit ? /* @__PURE__ */ jsx(Select, {
2109
1033
  name: "selectedUnit",
2110
1034
  options: typeof axis.unit !== "string" ? axis.unit.options : [],
2111
1035
  value: typeof axis.unit !== "string" ? axis.unit.selectedUnit : void 0,
@@ -2121,7 +1045,7 @@ var AxesOptionsPopover = (optionsPopover) => {
2121
1045
  })
2122
1046
  }, axis.id);
2123
1047
  }),
2124
- depthType?.options?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonGroup, {
1048
+ depthType?.options?.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ButtonGroup, {
2125
1049
  items: depthType.options.map((depth, i) => ({
2126
1050
  key: i,
2127
1051
  label: depth
@@ -2135,25 +1059,25 @@ var AxesOptionsPopover = (optionsPopover) => {
2135
1059
  },
2136
1060
  small: true,
2137
1061
  value: depthType.options.indexOf(formState.depthType)
2138
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Spacer, {})] }),
2139
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Flex, {
1062
+ }), /* @__PURE__ */ jsx(Spacer, {})] }),
1063
+ /* @__PURE__ */ jsxs(Flex, {
2140
1064
  gap: "8px",
2141
1065
  alignItems: "center",
2142
1066
  children: [
2143
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1067
+ /* @__PURE__ */ jsx(Button, {
2144
1068
  type: "submit",
2145
1069
  small: true,
2146
1070
  colored: true,
2147
1071
  label: translations.done,
2148
1072
  disabled: !valid || !formState.edited
2149
1073
  }),
2150
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1074
+ /* @__PURE__ */ jsx(Button, {
2151
1075
  small: true,
2152
1076
  name: "resetAxes",
2153
1077
  label: translations.resetAxes,
2154
1078
  onClick: onReset
2155
1079
  }),
2156
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
1080
+ /* @__PURE__ */ jsx(Text, {
2157
1081
  small: true,
2158
1082
  muted: true,
2159
1083
  children: translations.orDoubleClickToCanvas
@@ -2164,20 +1088,20 @@ var AxesOptionsPopover = (optionsPopover) => {
2164
1088
  });
2165
1089
  };
2166
1090
  const AxesOptions = (optionsPopover) => {
2167
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Popover, {
1091
+ return /* @__PURE__ */ jsx(Popover, {
2168
1092
  placement: "bottom-start",
2169
1093
  overflowContainer: true,
2170
- content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AxesOptionsPopover, { ...optionsPopover }),
2171
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$1, {
1094
+ content: /* @__PURE__ */ jsx(AxesOptionsPopover, { ...optionsPopover }),
1095
+ children: /* @__PURE__ */ jsx(Tooltip$1, {
2172
1096
  text: optionsPopover.translations.axesOptions,
2173
1097
  placement: "bottom-start",
2174
1098
  display: "inline-flex",
2175
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1099
+ children: /* @__PURE__ */ jsx(Button, {
2176
1100
  small: true,
2177
1101
  basic: true,
2178
1102
  colored: "muted",
2179
1103
  round: true,
2180
- icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbRuler, {})
1104
+ icon: /* @__PURE__ */ jsx(TbRuler, {})
2181
1105
  })
2182
1106
  })
2183
1107
  });
@@ -2222,20 +1146,20 @@ var Controls = ({ table: table$1, headerComponent, subheaderComponent, chartRef,
2222
1146
  dragData?.enableDragData,
2223
1147
  annotations?.enableDragAnnotation
2224
1148
  ]);
2225
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1149
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
2226
1150
  className: controls_module_default.controls,
2227
1151
  children: [
2228
- !!options.title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, {
1152
+ !!options.title && /* @__PURE__ */ jsx(Text, {
2229
1153
  bold: true,
2230
1154
  children: options.title
2231
1155
  }),
2232
1156
  headerComponent,
2233
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(controls_portal_default, {
1157
+ /* @__PURE__ */ jsx(controls_portal_default, {
2234
1158
  controlsPortalId: controlsPortalId ?? "",
2235
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1159
+ children: /* @__PURE__ */ jsxs("div", {
2236
1160
  className: controls_module_default.buttons,
2237
1161
  ref: measureRef,
2238
- children: [!showTable && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AxesOptions, {
1162
+ children: [!showTable && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AxesOptions, {
2239
1163
  chartRef,
2240
1164
  state,
2241
1165
  controlsAxesLabels,
@@ -2244,7 +1168,7 @@ var Controls = ({ table: table$1, headerComponent, subheaderComponent, chartRef,
2244
1168
  onUpdateEdited,
2245
1169
  depthType,
2246
1170
  translations
2247
- }), isNarrow ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Menu, { menu: {
1171
+ }), isNarrow ? /* @__PURE__ */ jsx(Menu, { menu: {
2248
1172
  placement: "bottom-end",
2249
1173
  sections: [
2250
1174
  ...lineOptions,
@@ -2259,20 +1183,20 @@ var Controls = ({ table: table$1, headerComponent, subheaderComponent, chartRef,
2259
1183
  }
2260
1184
  ],
2261
1185
  trigger: "Component",
2262
- component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1186
+ component: /* @__PURE__ */ jsx(Button, {
2263
1187
  colored: "muted",
2264
1188
  basic: true,
2265
1189
  small: true,
2266
1190
  round: true,
2267
1191
  icon: "menu"
2268
1192
  })
2269
- } }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
2270
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LineOptions, { options: lineOptions }),
2271
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$1, {
1193
+ } }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1194
+ /* @__PURE__ */ jsx(LineOptions, { options: lineOptions }),
1195
+ /* @__PURE__ */ jsx(Tooltip$1, {
2272
1196
  display: "inline-flex",
2273
1197
  text: translations.downloadAsPNG,
2274
1198
  placement: "bottom-end",
2275
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1199
+ children: /* @__PURE__ */ jsx(Button, {
2276
1200
  small: true,
2277
1201
  basic: true,
2278
1202
  colored: "muted",
@@ -2281,12 +1205,12 @@ var Controls = ({ table: table$1, headerComponent, subheaderComponent, chartRef,
2281
1205
  onClick: handleDownload
2282
1206
  })
2283
1207
  }),
2284
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DragOptions, { options: dragOptions })
2285
- ] })] }), table$1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$1, {
1208
+ /* @__PURE__ */ jsx(DragOptions, { options: dragOptions })
1209
+ ] })] }), table$1 ? /* @__PURE__ */ jsx(Tooltip$1, {
2286
1210
  display: "inline-flex",
2287
1211
  text: showTable ? translations.showChart : translations.showTable,
2288
1212
  placement: "bottom-end",
2289
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
1213
+ children: /* @__PURE__ */ jsx(Button, {
2290
1214
  small: true,
2291
1215
  basic: true,
2292
1216
  colored: "muted",
@@ -3163,7 +2087,7 @@ const LegendProvider = ({ children, options, datasets }) => {
3163
2087
  dispatch
3164
2088
  ]);
3165
2089
  useUpdateAnnotations(options, dispatch);
3166
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendContext.Provider, {
2090
+ return /* @__PURE__ */ jsx(LegendContext.Provider, {
3167
2091
  value: contextValue,
3168
2092
  children
3169
2093
  });
@@ -3838,13 +2762,13 @@ var legend_module_default = {
3838
2762
  isActive: "_isActive_wpro0_173",
3839
2763
  resizeContainer: "_resizeContainer_wpro0_176"
3840
2764
  };
3841
- var SvgCircle = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2765
+ var SvgCircle = (props) => /* @__PURE__ */ jsx("svg", {
3842
2766
  xmlns: "http://www.w3.org/2000/svg",
3843
2767
  viewBox: "0 0 24 24",
3844
2768
  width: "1em",
3845
2769
  height: "1em",
3846
2770
  ...props,
3847
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
2771
+ children: /* @__PURE__ */ jsx("circle", {
3848
2772
  cx: 12,
3849
2773
  cy: 12,
3850
2774
  r: 12,
@@ -3864,13 +2788,13 @@ let ChartDirection = /* @__PURE__ */ function(ChartDirection$2) {
3864
2788
  ChartDirection$2["HORIZONTAL"] = "horizontal";
3865
2789
  return ChartDirection$2;
3866
2790
  }({});
3867
- var SvgRect = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2791
+ var SvgRect = (props) => /* @__PURE__ */ jsx("svg", {
3868
2792
  xmlns: "http://www.w3.org/2000/svg",
3869
2793
  viewBox: "0 0 24 24",
3870
2794
  width: "1em",
3871
2795
  height: "1em",
3872
2796
  ...props,
3873
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
2797
+ children: /* @__PURE__ */ jsx("rect", {
3874
2798
  x: 2,
3875
2799
  y: 2,
3876
2800
  width: 20,
@@ -3879,13 +2803,13 @@ var SvgRect = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
3879
2803
  })
3880
2804
  });
3881
2805
  var rect_default = SvgRect;
3882
- var SvgRectRot = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2806
+ var SvgRectRot = (props) => /* @__PURE__ */ jsx("svg", {
3883
2807
  xmlns: "http://www.w3.org/2000/svg",
3884
2808
  viewBox: "0 0 24 24",
3885
2809
  width: "1em",
3886
2810
  height: "1em",
3887
2811
  ...props,
3888
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
2812
+ children: /* @__PURE__ */ jsx("rect", {
3889
2813
  x: 3,
3890
2814
  y: 3,
3891
2815
  width: 18,
@@ -3895,14 +2819,14 @@ var SvgRectRot = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
3895
2819
  })
3896
2820
  });
3897
2821
  var rectRot_default = SvgRectRot;
3898
- var SvgTriangle = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2822
+ var SvgTriangle = (props) => /* @__PURE__ */ jsx("svg", {
3899
2823
  height: "1em",
3900
2824
  viewBox: "0 0 24 24",
3901
2825
  width: "1em",
3902
2826
  xmlns: "http://www.w3.org/2000/svg",
3903
2827
  xmlnsXlink: "http://www.w3.org/1999/xlink",
3904
2828
  ...props,
3905
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
2829
+ children: /* @__PURE__ */ jsx("path", {
3906
2830
  d: "m22.7998 22.0623h-21.5996c-.21066.0001-.417617-.0554-.600067-.1607-.182451-.1053-.333965-.2567-.439311-.4392-.1053464-.1824-.16081228-.3893-.160822-.6s.0554372-.4176.160767-.6l10.799833-18.70518c.1139-.17137.2684-.31191.4497-.40913.1814-.09722.3839-.14809.5897-.14809s.4083.05087.5897.14809c.1813.09722.3358.23776.4497.40913l10.7998 18.70518c.1054.1824.1608.3893.1608.6s-.0555.4176-.1608.6c-.1054.1825-.2569.3339-.4393.4392-.1825.1053-.3894.1608-.6001.1607z",
3907
2831
  fill: "currentColor"
3908
2832
  })
@@ -3914,14 +2838,14 @@ var LineItem = ({ dataset }) => {
3914
2838
  const [dash0, dash1] = borderDash ?? [];
3915
2839
  const offset = dash0 && dash1 ? (LEGEND_SYMBOL_SIZE$1 - dash0) / 2 % (dash0 + dash1) * -1 : 0;
3916
2840
  const borderDashString = dataset?.borderDash?.join(" ") || "";
3917
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2841
+ return /* @__PURE__ */ jsx("span", {
3918
2842
  className: legend_module_default.legendItemLine,
3919
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
2843
+ children: /* @__PURE__ */ jsx("svg", {
3920
2844
  xmlns: "http://www.w3.org/2000/svg",
3921
2845
  viewBox: `0 0 ${LEGEND_SYMBOL_SIZE$1} ${LEGEND_SYMBOL_SIZE$1}`,
3922
2846
  width: "100%",
3923
2847
  height: "100%",
3924
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("line", {
2848
+ children: /* @__PURE__ */ jsx("line", {
3925
2849
  x1: "0",
3926
2850
  y1: "50%",
3927
2851
  x2: "100%",
@@ -3939,15 +2863,15 @@ var PointItem = ({ dataset }) => {
3939
2863
  if (!pointRadius) return null;
3940
2864
  const size = pointRadius * 2;
3941
2865
  const icons = {
3942
- circle: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(circle_default, {}),
3943
- triangle: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(triangle_default, {}),
3944
- rectRot: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(rectRot_default, {}),
3945
- rect: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(rect_default, {})
2866
+ circle: /* @__PURE__ */ jsx(circle_default, {}),
2867
+ triangle: /* @__PURE__ */ jsx(triangle_default, {}),
2868
+ rectRot: /* @__PURE__ */ jsx(rectRot_default, {}),
2869
+ rect: /* @__PURE__ */ jsx(rect_default, {})
3946
2870
  };
3947
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2871
+ return /* @__PURE__ */ jsx("span", {
3948
2872
  className: legend_module_default.legendItemPoint,
3949
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
3950
- icon: icons?.[pointStyle] ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(circle_default, {}),
2873
+ children: /* @__PURE__ */ jsx(Icon, {
2874
+ icon: icons?.[pointStyle] ?? /* @__PURE__ */ jsx(circle_default, {}),
3951
2875
  size,
3952
2876
  color: pointBackgroundColor
3953
2877
  })
@@ -3956,7 +2880,7 @@ var PointItem = ({ dataset }) => {
3956
2880
  var BoxItem = ({ dataset }) => {
3957
2881
  const { backgroundColor } = dataset ?? {};
3958
2882
  const style = { backgroundColor };
3959
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2883
+ return /* @__PURE__ */ jsx("span", {
3960
2884
  className: legend_module_default.legendItemBox,
3961
2885
  style
3962
2886
  });
@@ -3965,47 +2889,47 @@ const LegendItemLine = ({ dataset }) => {
3965
2889
  const { annotationType, showLine } = dataset ?? {};
3966
2890
  switch (annotationType) {
3967
2891
  case AnnotationType.Box:
3968
- case AnnotationType.Ellipse: return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxItem, { dataset });
3969
- case AnnotationType.Line: return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LineItem, { dataset });
3970
- default: return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [showLine && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LineItem, { dataset }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PointItem, { dataset })] });
2892
+ case AnnotationType.Ellipse: return /* @__PURE__ */ jsx(BoxItem, { dataset });
2893
+ case AnnotationType.Line: return /* @__PURE__ */ jsx(LineItem, { dataset });
2894
+ default: return /* @__PURE__ */ jsxs(Fragment, { children: [showLine && /* @__PURE__ */ jsx(LineItem, { dataset }), /* @__PURE__ */ jsx(PointItem, { dataset })] });
3971
2895
  }
3972
2896
  };
3973
2897
  var LEGEND_SYMBOL_SIZE = 16;
3974
2898
  var renderLegendItemSymbol = (dataset, chartType, index) => {
3975
2899
  switch (chartType) {
3976
- case ChartType.LINE: return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendItemLine, { dataset });
2900
+ case ChartType.LINE: return /* @__PURE__ */ jsx(LegendItemLine, { dataset });
3977
2901
  case ChartType.BAR: {
3978
2902
  const { backgroundColor } = dataset ?? {};
3979
2903
  const color = backgroundColor instanceof Array ? backgroundColor?.[index] : backgroundColor;
3980
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2904
+ return /* @__PURE__ */ jsx("span", {
3981
2905
  className: legend_module_default.legendItemBox,
3982
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbSquareFilled, { color })
2906
+ children: /* @__PURE__ */ jsx(TbSquareFilled, { color })
3983
2907
  });
3984
2908
  }
3985
- case ChartType.PIE: return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2909
+ case ChartType.PIE: return /* @__PURE__ */ jsx("span", {
3986
2910
  className: legend_module_default.legendItemPoint,
3987
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(circle_default, {}) })
2911
+ children: /* @__PURE__ */ jsx(Icon, { icon: /* @__PURE__ */ jsx(circle_default, {}) })
3988
2912
  });
3989
2913
  case ChartType.SCATTER: {
3990
2914
  const { backgroundColor, borderColor } = dataset ?? {};
3991
2915
  const color = backgroundColor instanceof Array ? backgroundColor?.[index] : backgroundColor;
3992
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2916
+ return /* @__PURE__ */ jsx("span", {
3993
2917
  className: legend_module_default.legendItemPoint,
3994
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbCircleFilled, { color: color ?? borderColor })
2918
+ children: /* @__PURE__ */ jsx(TbCircleFilled, { color: color ?? borderColor })
3995
2919
  });
3996
2920
  }
3997
2921
  default: return null;
3998
2922
  }
3999
2923
  };
4000
2924
  var LegendItem = ({ hidden, dataset, handleClick, chartType, index }) => {
4001
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2925
+ return /* @__PURE__ */ jsxs("div", {
4002
2926
  className: cx(legend_module_default?.legendItem, hidden && legend_module_default?.isHidden),
4003
2927
  onClick: handleClick,
4004
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2928
+ children: [/* @__PURE__ */ jsx("span", {
4005
2929
  className: legend_module_default.legendItemSymbol,
4006
2930
  style: { width: LEGEND_SYMBOL_SIZE },
4007
2931
  children: renderLegendItemSymbol(dataset, chartType, index)
4008
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2932
+ }), /* @__PURE__ */ jsx("span", {
4009
2933
  className: legend_module_default.legendItemText,
4010
2934
  children: dataset?.label
4011
2935
  })]
@@ -4068,12 +2992,12 @@ const createLegendStyle = (legendPosition, chart$4) => {
4068
2992
  margin: 4
4069
2993
  };
4070
2994
  };
4071
- var LegendItems = ({ items, legendState, datasets, legendClick, chartType }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2995
+ var LegendItems = ({ items, legendState, datasets, legendClick, chartType }) => /* @__PURE__ */ jsx("div", {
4072
2996
  className: legend_module_default.legendItems,
4073
2997
  children: items?.map((item, index) => {
4074
2998
  if (datasets?.[item?.datasetIndex]?.hideLegend) return null;
4075
2999
  const isHidden$1 = legendState?.datasets?.[item?.datasetIndex]?.hidden;
4076
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_item_default, {
3000
+ return /* @__PURE__ */ jsx(legend_item_default, {
4077
3001
  index,
4078
3002
  hidden: isHidden$1 ?? item?.hidden,
4079
3003
  dataset: datasets?.[item?.datasetIndex],
@@ -4094,19 +3018,19 @@ var legend_panel_default = forwardRef(({ legendPosition, chartRef, isDragging: i
4094
3018
  const [legendEnabled, setLegendEnabled] = useState(legend$1?.display ?? true);
4095
3019
  const items = useGeneratedLabels(chartRef, generatedDatasets);
4096
3020
  const style = createLegendStyle(legendPosition, chart$4);
4097
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3021
+ return /* @__PURE__ */ jsxs("div", {
4098
3022
  ref,
4099
3023
  className: cx(legend_module_default.legend, !legendEnabled && legend_module_default.isHidden, isDragging$1 && legend_module_default.isDragging),
4100
3024
  style,
4101
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3025
+ children: [/* @__PURE__ */ jsx("div", {
4102
3026
  className: legend_module_default.legendToggle,
4103
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
3027
+ children: /* @__PURE__ */ jsx(Button, {
4104
3028
  onClick: () => setLegendEnabled(!legendEnabled),
4105
3029
  small: true,
4106
3030
  round: true,
4107
- icon: legendEnabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbX, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TbList, {})
3031
+ icon: legendEnabled ? /* @__PURE__ */ jsx(TbX, {}) : /* @__PURE__ */ jsx(TbList, {})
4108
3032
  })
4109
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendItems, {
3033
+ }), /* @__PURE__ */ jsx(LegendItems, {
4110
3034
  items,
4111
3035
  legendState,
4112
3036
  datasets,
@@ -4126,10 +3050,10 @@ var LegendDropZone = (legendDropZoneProps) => {
4126
3050
  })
4127
3051
  }));
4128
3052
  const isActive$1 = isOver && canDrop;
4129
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3053
+ return /* @__PURE__ */ jsx("div", {
4130
3054
  ref: dropRef,
4131
3055
  className: cx(legend_module_default.dropzone, isActive$1 && legend_module_default.isActive, position?.includes("left") && legend_module_default.left, position?.includes("right") && legend_module_default.right, position?.includes("top") && legend_module_default.top, position?.includes("bottom") && legend_module_default.bottom),
4132
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3056
+ children: /* @__PURE__ */ jsx("div", {
4133
3057
  className: legend_module_default.dropzonePlaceholder,
4134
3058
  style: {
4135
3059
  ...placeholderSize,
@@ -4147,7 +3071,7 @@ var LegendDropZones = (legendDropZonesProps) => {
4147
3071
  Position.BottomRight
4148
3072
  ];
4149
3073
  const { top: top$1, left: left$1, width, height } = chartArea ?? {};
4150
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3074
+ return /* @__PURE__ */ jsx("div", {
4151
3075
  className: legend_module_default.dropzoneContainer,
4152
3076
  style: {
4153
3077
  top: top$1,
@@ -4156,7 +3080,7 @@ var LegendDropZones = (legendDropZonesProps) => {
4156
3080
  height,
4157
3081
  zIndex: isDragging$1 ? 0 : -1
4158
3082
  },
4159
- children: positions?.map((position) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendDropZone, {
3083
+ children: positions?.map((position) => /* @__PURE__ */ jsx(LegendDropZone, {
4160
3084
  position,
4161
3085
  onDrop: () => setLegendPosition(position),
4162
3086
  placeholderSize
@@ -4187,12 +3111,12 @@ var Legend$1 = ({ chartRef, legendConfig }) => {
4187
3111
  }, 20);
4188
3112
  return () => clearTimeout(timeout);
4189
3113
  }, [measureRect]);
4190
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
4191
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3114
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3115
+ /* @__PURE__ */ jsx("div", {
4192
3116
  ref: resizeRef,
4193
3117
  className: legend_module_default.resizeContainer
4194
3118
  }),
4195
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_panel_default, {
3119
+ /* @__PURE__ */ jsx(legend_panel_default, {
4196
3120
  chartRef,
4197
3121
  legendPosition,
4198
3122
  isDragging: isDragging$1,
@@ -4202,7 +3126,7 @@ var Legend$1 = ({ chartRef, legendConfig }) => {
4202
3126
  },
4203
3127
  legendConfig
4204
3128
  }),
4205
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_dropzone_default, {
3129
+ /* @__PURE__ */ jsx(legend_dropzone_default, {
4206
3130
  chartArea,
4207
3131
  setLegendPosition: (position) => setLegendPosition(position),
4208
3132
  isDragging: isDragging$1,
@@ -4257,7 +3181,7 @@ var LineChart = (props) => {
4257
3181
  options,
4258
3182
  resetZoom
4259
3183
  });
4260
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3184
+ return /* @__PURE__ */ jsxs("div", {
4261
3185
  className: getClassName(chartStyling, line_chart_module_default),
4262
3186
  style: {
4263
3187
  width: chartStyling.width || "auto",
@@ -4267,7 +3191,7 @@ var LineChart = (props) => {
4267
3191
  onKeyDown: handleKeyDown,
4268
3192
  onKeyUp: handleKeyUp,
4269
3193
  "data-testid": testId,
4270
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(controls_default, {
3194
+ children: [/* @__PURE__ */ jsx(controls_default, {
4271
3195
  table: table$1,
4272
3196
  headerComponent,
4273
3197
  subheaderComponent,
@@ -4278,21 +3202,21 @@ var LineChart = (props) => {
4278
3202
  generatedDatasets,
4279
3203
  translations,
4280
3204
  controlsPortalId
4281
- }), table$1 && state.showTable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3205
+ }), table$1 && state.showTable ? /* @__PURE__ */ jsx("div", {
4282
3206
  className: line_chart_module_default.table,
4283
3207
  children: table$1
4284
- }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DndProvider, {
3208
+ }) : /* @__PURE__ */ jsx(DndProvider, {
4285
3209
  backend: HTML5Backend,
4286
3210
  context: window,
4287
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3211
+ children: /* @__PURE__ */ jsxs("div", {
4288
3212
  className: line_chart_module_default.canvas,
4289
3213
  id: "canvas",
4290
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Line, {
3214
+ children: [/* @__PURE__ */ jsx(Line, {
4291
3215
  ref: chartRef,
4292
3216
  data: { datasets: generatedDatasets },
4293
3217
  options: useOptions,
4294
3218
  plugins: usePlugins
4295
- }), showCustomLegend && !!generatedDatasets.length && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_default, {
3219
+ }), showCustomLegend && !!generatedDatasets.length && /* @__PURE__ */ jsx(legend_default, {
4296
3220
  chartRef,
4297
3221
  legendConfig: {
4298
3222
  options,
@@ -4306,10 +3230,10 @@ var LineChart = (props) => {
4306
3230
  };
4307
3231
  var LineChartWithLegend = (props) => {
4308
3232
  const { options, data: { datasets = [] } = {} } = getDefaultProps$3(props);
4309
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendProvider, {
3233
+ return /* @__PURE__ */ jsx(LegendProvider, {
4310
3234
  options,
4311
3235
  datasets,
4312
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LineChart, { ...props })
3236
+ children: /* @__PURE__ */ jsx(LineChart, { ...props })
4313
3237
  });
4314
3238
  };
4315
3239
  const initializeLineChart = ({ languageKey = "en",...options }) => {
@@ -4540,14 +3464,14 @@ var PieChart = (props) => {
4540
3464
  const chartRef = useRef(null);
4541
3465
  const { data, options, testId } = chart$4;
4542
3466
  const { generatedDatasets, getTitle: getTitle$1, onClick, onHover, getDatalabels, getLegend: getLegend$1, getToolTips } = usePieChartConfig(chart$4);
4543
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3467
+ return /* @__PURE__ */ jsx("div", {
4544
3468
  className: cx(pie_chart_module_default.chart, !options.chartStyling.width || !options.chartStyling.height ? options.chartStyling.staticChartHeight ? pie_chart_module_default.fixedHeight : pie_chart_module_default.stretchHeight : ""),
4545
3469
  style: {
4546
3470
  width: options.chartStyling.width || "auto",
4547
3471
  height: options.chartStyling.height || "auto"
4548
3472
  },
4549
3473
  "data-testid": testId,
4550
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pie, {
3474
+ children: /* @__PURE__ */ jsx(Pie, {
4551
3475
  ref: chartRef,
4552
3476
  data: {
4553
3477
  datasets: generatedDatasets,
@@ -4577,9 +3501,9 @@ var PieChart = (props) => {
4577
3501
  };
4578
3502
  var PieChartWithLegend = (props) => {
4579
3503
  const { options } = getDefaultProps$2(props);
4580
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendProvider, {
3504
+ return /* @__PURE__ */ jsx(LegendProvider, {
4581
3505
  options,
4582
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PieChart, { ...props })
3506
+ children: /* @__PURE__ */ jsx(PieChart, { ...props })
4583
3507
  });
4584
3508
  };
4585
3509
  const useBarChartConfig = (chartRef, chart$4) => {
@@ -4978,21 +3902,21 @@ var BarChart = (props) => {
4978
3902
  chartRef
4979
3903
  });
4980
3904
  const showCustomLegend = !options?.legend?.customLegend?.customLegendContainerID;
4981
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3905
+ return /* @__PURE__ */ jsxs("div", {
4982
3906
  className: getClassName(chartStyling, bar_chart_module_default),
4983
3907
  style: {
4984
3908
  width: chartStyling.width || "auto",
4985
3909
  height: chartStyling.height || "auto"
4986
3910
  },
4987
3911
  "data-testid": testId,
4988
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(controls_portal_default, {
3912
+ children: [/* @__PURE__ */ jsx(controls_portal_default, {
4989
3913
  controlsPortalId,
4990
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
3914
+ children: /* @__PURE__ */ jsx("div", {
4991
3915
  className: bar_chart_module_default.actions,
4992
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip$1, {
3916
+ children: /* @__PURE__ */ jsx(Tooltip$1, {
4993
3917
  text: translations.downloadAsPNG,
4994
3918
  placement: "bottom-end",
4995
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
3919
+ children: /* @__PURE__ */ jsx(Button, {
4996
3920
  small: true,
4997
3921
  basic: true,
4998
3922
  colored: "muted",
@@ -5002,13 +3926,13 @@ var BarChart = (props) => {
5002
3926
  })
5003
3927
  })
5004
3928
  })
5005
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DndProvider, {
3929
+ }), /* @__PURE__ */ jsx(DndProvider, {
5006
3930
  backend: HTML5Backend,
5007
3931
  context: window,
5008
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3932
+ children: /* @__PURE__ */ jsxs("div", {
5009
3933
  className: bar_chart_module_default.canvas,
5010
3934
  id: "canvas",
5011
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Bar, {
3935
+ children: [/* @__PURE__ */ jsx(Bar, {
5012
3936
  ref: chartRef,
5013
3937
  data: {
5014
3938
  labels: chart$4?.data?.labels?.length ? chart$4.data.labels : [""],
@@ -5016,7 +3940,7 @@ var BarChart = (props) => {
5016
3940
  },
5017
3941
  options: barChartOptions,
5018
3942
  plugins: getPlugins(graph, options.legend)
5019
- }), showCustomLegend && !!generatedDatasets.length && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_default, {
3943
+ }), showCustomLegend && !!generatedDatasets.length && /* @__PURE__ */ jsx(legend_default, {
5020
3944
  chartRef,
5021
3945
  legendConfig: {
5022
3946
  options,
@@ -5030,9 +3954,9 @@ var BarChart = (props) => {
5030
3954
  };
5031
3955
  var BarChartWithLegend = (props) => {
5032
3956
  const { options } = getDefaultProps$1(props);
5033
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendProvider, {
3957
+ return /* @__PURE__ */ jsx(LegendProvider, {
5034
3958
  options,
5035
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BarChart, { ...props })
3959
+ children: /* @__PURE__ */ jsx(BarChart, { ...props })
5036
3960
  });
5037
3961
  };
5038
3962
  const customFormatNumber = (labelNumber, scientificNotation) => {
@@ -5383,25 +4307,25 @@ var ScatterChart = (props) => {
5383
4307
  const chart$4 = getDefaultProps(props);
5384
4308
  const { options, testId } = chart$4;
5385
4309
  const { scatterOptions, generatedDatasets } = useScatterChartConfig(chart$4, chartRef);
5386
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
4310
+ return /* @__PURE__ */ jsx("div", {
5387
4311
  className: getClassName(options.chartStyling, scatter_chart_module_default),
5388
4312
  style: {
5389
4313
  width: options.chartStyling.width,
5390
4314
  height: options.chartStyling.height
5391
4315
  },
5392
4316
  "data-testid": testId,
5393
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DndProvider, {
4317
+ children: /* @__PURE__ */ jsx(DndProvider, {
5394
4318
  backend: HTML5Backend,
5395
4319
  context: window,
5396
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
4320
+ children: /* @__PURE__ */ jsxs("div", {
5397
4321
  className: scatter_chart_module_default.canvas,
5398
4322
  id: "canvas",
5399
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Scatter, {
4323
+ children: [/* @__PURE__ */ jsx(Scatter, {
5400
4324
  ref: chartRef,
5401
4325
  data: { datasets: generatedDatasets },
5402
4326
  options: scatterOptions,
5403
4327
  plugins: getPlugins(options.graph, options.legend)
5404
- }), !!generatedDatasets.length && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(legend_default, {
4328
+ }), !!generatedDatasets.length && /* @__PURE__ */ jsx(legend_default, {
5405
4329
  chartRef,
5406
4330
  legendConfig: {
5407
4331
  options,
@@ -5415,9 +4339,9 @@ var ScatterChart = (props) => {
5415
4339
  };
5416
4340
  var ScatterChartWithLegend = (props) => {
5417
4341
  const { options } = getDefaultProps(props);
5418
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LegendProvider, {
4342
+ return /* @__PURE__ */ jsx(LegendProvider, {
5419
4343
  options,
5420
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScatterChart, { ...props })
4344
+ children: /* @__PURE__ */ jsx(ScatterChart, { ...props })
5421
4345
  });
5422
4346
  };
5423
4347
  export { AlignOptions, AnnotationType, BarChartWithLegend as BarChart, LineChartWithLegend as LineChart, PieChartWithLegend as PieChart, PointStyle, Position, ScatterChartWithLegend as ScatterChart, initializeLineChart };