@adiba-banking-cloud/backoffice 0.0.33 → 0.0.35

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.
@@ -1,11 +1,12 @@
1
+ import { modals } from '@mantine/modals';
2
+ import React, { useRef, useMemo, useEffect } from 'react';
3
+ import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table } from '@mantine/core';
1
4
  import _extends from '@babel/runtime/helpers/extends';
2
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
- import React, { useRef, useMemo, useEffect } from 'react';
4
6
  import HighchartsReact from 'highcharts-react-official';
5
7
  import HighchartsRounded from 'highcharts-rounded-corners';
6
8
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
7
9
  import * as IconSax from 'iconsax-react';
8
- import { Center, Image, Space, Popover, Button, Stack, Divider, Group, Text, Menu, Avatar, Badge, NavLink, Card, TextInput, ActionIcon, Box, Title, createTheme, SegmentedControl, Breadcrumbs, Anchor, ColorSwatch, AspectRatio, Overlay, rem, SimpleGrid, Indicator, Table } from '@mantine/core';
9
10
  import { Link } from 'react-router-dom';
10
11
  import { useDisclosure } from '@mantine/hooks';
11
12
  import '@fontsource/poppins/100.css';
@@ -44,7 +45,16 @@ function requireHighcharts() {
44
45
  if (hasRequiredHighcharts) return highcharts$1.exports;
45
46
  hasRequiredHighcharts = 1;
46
47
  (function (module, exports) {
47
- !function (t, e) {
48
+ !
49
+ /**
50
+ * Highcharts JS v12.3.0 (2025-06-21)
51
+ * @module highcharts/highcharts
52
+ *
53
+ * (c) 2009-2025 Torstein Honsi
54
+ *
55
+ * License: www.highcharts.com/license
56
+ */
57
+ function (t, e) {
48
58
  (t._Highcharts = e(), module.exports = t._Highcharts) ;
49
59
  }("undefined" == typeof window ? highcharts : window, () => (() => {
50
60
 
@@ -78,7 +88,7 @@ function requireHighcharts() {
78
88
  v.d(k, {
79
89
  default: () => lE
80
90
  }), function (t) {
81
- t.SVG_NS = "http://www.w3.org/2000/svg", t.product = "Highcharts", t.version = "12.2.0", t.win = "undefined" != typeof window ? window : {}, t.doc = t.win.document, t.svg = !!t.doc?.createElementNS?.(t.SVG_NS, "svg")?.createSVGRect, t.pageLang = t.doc?.documentElement?.closest("[lang]")?.lang, t.userAgent = t.win.navigator?.userAgent || "", t.isChrome = t.win.chrome, t.isFirefox = -1 !== t.userAgent.indexOf("Firefox"), t.isMS = /(edge|msie|trident)/i.test(t.userAgent) && !t.win.opera, t.isSafari = !t.isChrome && -1 !== t.userAgent.indexOf("Safari"), t.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(t.userAgent), t.isWebKit = -1 !== t.userAgent.indexOf("AppleWebKit"), t.deg2rad = 2 * Math.PI / 360, t.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], t.noop = function () {}, t.supportsPassiveEvents = function () {
91
+ t.SVG_NS = "http://www.w3.org/2000/svg", t.product = "Highcharts", t.version = "12.3.0", t.win = "undefined" != typeof window ? window : {}, t.doc = t.win.document, t.svg = !!t.doc?.createElementNS?.(t.SVG_NS, "svg")?.createSVGRect, t.pageLang = t.doc?.documentElement?.closest("[lang]")?.lang, t.userAgent = t.win.navigator?.userAgent || "", t.isChrome = t.win.chrome, t.isFirefox = -1 !== t.userAgent.indexOf("Firefox"), t.isMS = /(edge|msie|trident)/i.test(t.userAgent) && !t.win.opera, t.isSafari = !t.isChrome && -1 !== t.userAgent.indexOf("Safari"), t.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(t.userAgent), t.isWebKit = -1 !== t.userAgent.indexOf("AppleWebKit"), t.deg2rad = 2 * Math.PI / 360, t.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], t.noop = function () {}, t.supportsPassiveEvents = function () {
82
92
  let e = false;
83
93
  if (!t.isMS) {
84
94
  let i = Object.defineProperty({}, "passive", {
@@ -524,11 +534,12 @@ function requireHighcharts() {
524
534
  this.dTLCache = {}, this.options = t = ti(true, this.options, t);
525
535
  let {
526
536
  timezoneOffset: e,
527
- useUTC: i
537
+ useUTC: i,
538
+ locale: s
528
539
  } = t;
529
540
  this.Date = t.Date || _.Date || Date;
530
- let s = t.timezone;
531
- q(i) && (s = i ? "UTC" : void 0), e && e % 60 == 0 && (s = "Etc/GMT" + (e > 0 ? "+" : "") + e / 60), this.variableTimezone = "UTC" !== s && s?.indexOf("Etc/GMT") !== 0, this.timezone = s, ["months", "shortMonths", "weekdays", "shortWeekdays"].forEach(t => {
541
+ let o = t.timezone;
542
+ q(i) && (o = i ? "UTC" : void 0), e && e % 60 == 0 && (o = "Etc/GMT" + (e > 0 ? "+" : "") + e / 60), this.variableTimezone = "UTC" !== o && o?.indexOf("Etc/GMT") !== 0, this.timezone = o, this.lang && s && (this.lang.locale = s), ["months", "shortMonths", "weekdays", "shortWeekdays"].forEach(t => {
532
543
  let e = /months/i.test(t),
533
544
  i = /short/.test(t),
534
545
  s = {
@@ -547,7 +558,7 @@ function requireHighcharts() {
547
558
  minute: "numeric",
548
559
  second: "numeric"
549
560
  }, t, "es").split(/(?:, | |\/|:)/g);
550
- return [o, +s - 1, i, r, a, n, Math.floor(Number(t) || 0) % 1e3, "DLMXJVS".indexOf(e)].map(Number);
561
+ return [o, s - 1, i, r, a, n, Math.floor(Number(t) || 0) % 1e3, "DLMXJVS".indexOf(e)].map(Number);
551
562
  }
552
563
  dateTimeFormat(t, e, i = this.options.locale || Z) {
553
564
  let s = JSON.stringify(t) + i;
@@ -642,7 +653,7 @@ function requireHighcharts() {
642
653
  let [e, i, s, o, r = 0] = this.dateTimeFormat({
643
654
  timeZoneName: "shortOffset"
644
655
  }, t, "en").split(/(GMT|:)/).map(Number),
645
- a = -(36e5 * (s + r / 60));
656
+ a = -(60 * (s + r / 60) * 6e4);
646
657
  if (Q(a)) return a;
647
658
  }
648
659
  return 0;
@@ -952,6 +963,7 @@ function requireHighcharts() {
952
963
  y: 0,
953
964
  title: {
954
965
  style: {
966
+ color: "#333333",
955
967
  fontSize: "0.8em",
956
968
  fontWeight: "bold"
957
969
  }
@@ -1084,9 +1096,7 @@ function requireHighcharts() {
1084
1096
  let e = this.rgba;
1085
1097
  if (this.stops) this.stops.forEach(function (e) {
1086
1098
  e.brighten(t);
1087
- });else if (tw(t) && 0 !== t) {
1088
- if (tw(e[0])) for (let i = 0; i < 3; i++) e[i] += tT(255 * t), e[i] < 0 && (e[i] = 0), e[i] > 255 && (e[i] = 255);else tL.useColorMix && tP(this.input) && (this.output = tA(this.input, t > 0 ? "white" : "black", Math.abs(t)));
1089
- }
1099
+ });else if (tw(t) && 0 !== t) if (tw(e[0])) for (let i = 0; i < 3; i++) e[i] += tT(255 * t), e[i] < 0 && (e[i] = 0), e[i] > 255 && (e[i] = 255);else tL.useColorMix && tP(this.input) && (this.output = tA(this.input, t > 0 ? "white" : "black", Math.abs(t)));
1090
1100
  return this;
1091
1101
  }
1092
1102
  setOpacity(t) {
@@ -1229,19 +1239,15 @@ function requireHighcharts() {
1229
1239
  }
1230
1240
  }
1231
1241
  if (s && o && o.length) {
1232
- for (c = 0; c < s.length; c++) {
1233
- if (s[c] === o[0]) {
1234
- l = c;
1235
- break;
1236
- }
1237
- if (s[0] === o[o.length - s.length + c]) {
1238
- l = c, p = true;
1239
- break;
1240
- }
1241
- if (s[s.length - 1] === o[o.length - s.length + c]) {
1242
- l = s.length - c;
1243
- break;
1244
- }
1242
+ for (c = 0; c < s.length; c++) if (s[c] === o[0]) {
1243
+ l = c;
1244
+ break;
1245
+ } else if (s[0] === o[o.length - s.length + c]) {
1246
+ l = c, p = true;
1247
+ break;
1248
+ } else if (s[s.length - 1] === o[o.length - s.length + c]) {
1249
+ l = s.length - c;
1250
+ break;
1245
1251
  }
1246
1252
  void 0 === l && (g = []);
1247
1253
  }
@@ -1363,18 +1369,16 @@ function requireHighcharts() {
1363
1369
  r = e.tagName,
1364
1370
  a = e.textContent ? w.doc.createTextNode(e.textContent) : void 0,
1365
1371
  n = t6.bypassHTMLFiltering;
1366
- if (r) {
1367
- if ("#text" === r) o = a;else if (-1 !== t6.allowedTags.indexOf(r) || n) {
1368
- let s = "svg" === r ? t$ : i.namespaceURI || t$,
1369
- h = w.doc.createElementNS(s, r),
1370
- l = e.attributes || {};
1371
- t0(e, function (t, e) {
1372
- "tagName" !== e && "attributes" !== e && "children" !== e && "style" !== e && "textContent" !== e && (l[e] = t);
1373
- }), tZ(h, n ? l : t6.filterUserAttributes(l)), e.style && tq(h, e.style), a && h.appendChild(a), t(e.children || [], h), o = h;
1374
- } else tK(33, false, void 0, {
1375
- "Invalid tagName in config": r
1376
- });
1377
- }
1372
+ if (r) if ("#text" === r) o = a;else if (-1 !== t6.allowedTags.indexOf(r) || n) {
1373
+ let s = "svg" === r ? t$ : i.namespaceURI || t$,
1374
+ h = w.doc.createElementNS(s, r),
1375
+ l = e.attributes || {};
1376
+ t0(e, function (t, e) {
1377
+ "tagName" !== e && "attributes" !== e && "children" !== e && "style" !== e && "textContent" !== e && (l[e] = t);
1378
+ }), tZ(h, n ? l : t6.filterUserAttributes(l)), e.style && tq(h, e.style), a && h.appendChild(a), t(e.children || [], h), o = h;
1379
+ } else tK(33, false, void 0, {
1380
+ "Invalid tagName in config": r
1381
+ });
1378
1382
  o && i.appendChild(o), s = o;
1379
1383
  }), s;
1380
1384
  }(this.nodes, t);
@@ -1416,7 +1420,7 @@ function requireHighcharts() {
1416
1420
  return [].forEach.call(e.body.childNodes, t => s(t, i)), i;
1417
1421
  }
1418
1422
  }
1419
- t6.allowedAttributes = ["alt", "aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-hidden", "aria-label", "aria-labelledby", "aria-live", "aria-pressed", "aria-readonly", "aria-roledescription", "aria-selected", "class", "clip-path", "color", "colspan", "cx", "cy", "d", "dx", "dy", "disabled", "fill", "filterUnits", "flood-color", "flood-opacity", "height", "href", "id", "in", "in2", "markerHeight", "markerWidth", "offset", "opacity", "operator", "orient", "padding", "paddingLeft", "paddingRight", "patternUnits", "r", "radius", "refX", "refY", "role", "scope", "slope", "src", "startOffset", "stdDeviation", "stroke", "stroke-linecap", "stroke-width", "style", "tableValues", "result", "rowspan", "summary", "target", "tabindex", "text-align", "text-anchor", "textAnchor", "textLength", "title", "type", "valign", "width", "x", "x1", "x2", "xlink:href", "y", "y1", "y2", "zIndex"], t6.allowedReferences = ["https://", "http://", "mailto:", "/", "../", "./", "#"], t6.allowedTags = ["a", "abbr", "b", "br", "button", "caption", "circle", "clipPath", "code", "dd", "defs", "div", "dl", "dt", "em", "feComponentTransfer", "feComposite", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feMorphology", "feOffset", "feMerge", "feMergeNode", "filter", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "li", "linearGradient", "marker", "ol", "p", "path", "pattern", "pre", "rect", "small", "span", "stop", "strong", "style", "sub", "sup", "svg", "table", "text", "textPath", "thead", "title", "tbody", "tspan", "td", "th", "tr", "u", "ul", "#text"], t6.emptyHTML = t5, t6.bypassHTMLFiltering = false;
1423
+ t6.allowedAttributes = ["alt", "aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-hidden", "aria-label", "aria-labelledby", "aria-live", "aria-pressed", "aria-readonly", "aria-roledescription", "aria-selected", "class", "clip-path", "color", "colspan", "cx", "cy", "d", "disabled", "dx", "dy", "fill", "filterUnits", "flood-color", "flood-opacity", "height", "href", "id", "in", "in2", "markerHeight", "markerWidth", "offset", "opacity", "operator", "orient", "padding", "paddingLeft", "paddingRight", "patternUnits", "r", "radius", "refX", "refY", "result", "role", "rowspan", "scope", "slope", "src", "startOffset", "stdDeviation", "stroke-linecap", "stroke-width", "stroke", "style", "summary", "tabindex", "tableValues", "target", "text-align", "text-anchor", "textAnchor", "textLength", "title", "type", "valign", "width", "x", "x1", "x2", "xlink:href", "y", "y1", "y2", "zIndex"], t6.allowedReferences = ["https://", "http://", "mailto:", "/", "../", "./", "#"], t6.allowedTags = ["#text", "a", "abbr", "b", "br", "button", "caption", "circle", "clipPath", "code", "dd", "defs", "div", "dl", "dt", "em", "feComponentTransfer", "feComposite", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feMerge", "feMergeNode", "feMorphology", "feOffset", "filter", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "i", "img", "li", "linearGradient", "marker", "ol", "p", "path", "pattern", "pre", "rect", "small", "span", "stop", "strong", "style", "sub", "sup", "svg", "table", "tbody", "td", "text", "textPath", "th", "thead", "title", "tr", "tspan", "u", "ul"], t6.emptyHTML = t5, t6.bypassHTMLFiltering = false;
1420
1424
  let {
1421
1425
  defaultOptions: t9,
1422
1426
  defaultTime: t4
@@ -1469,7 +1473,7 @@ function requireHighcharts() {
1469
1473
  n = /\.(\d)/,
1470
1474
  h = i?.options?.lang || t9.lang,
1471
1475
  l = i?.time || t4,
1472
- d = i?.numberFormatter || ec,
1476
+ d = i?.numberFormatter || ec.bind(i),
1473
1477
  c = (t = "") => {
1474
1478
  let i;
1475
1479
  return "true" === t || "false" !== t && ((i = Number(t)).toString() === t ? i : el(t) ? t.slice(1, -1) : et(t, e));
@@ -1524,13 +1528,14 @@ function requireHighcharts() {
1524
1528
  for (p = en[m].length; p--;) t.unshift(c(o[p + 1]));
1525
1529
  r = en[m].apply(e, t), s.isBlock && "boolean" == typeof r && (r = ed(r ? g : u, e, i));
1526
1530
  } else {
1527
- let t = el(f) ? [f] : f.split(":");
1528
- if (r = c(t.shift() || ""), t.length && "number" == typeof r) {
1529
- let e = t.join(":");
1530
- if (a.test(e)) {
1531
- let t = parseInt((e.match(n) || ["", "-1"])[1], 10);
1532
- null !== r && (r = d(r, t, h.decimalPoint, e.indexOf(",") > -1 ? h.thousandsSep : ""));
1533
- } else r = l.dateFormat(e, r);
1531
+ let t = el(f) ? [f] : f.split(":"),
1532
+ e = (r = c(t.shift() || "")) % 1 != 0;
1533
+ if ("number" == typeof r && (t.length || e)) {
1534
+ let i = t.join(":");
1535
+ if (a.test(i) || e) {
1536
+ let t = parseInt((i.match(n) || ["", "-1"])[1], 10);
1537
+ null !== r && (r = d(r, t, h.decimalPoint, i.indexOf(",") > -1 ? h.thousandsSep : ""));
1538
+ } else r = l.dateFormat(i, r);
1534
1539
  }
1535
1540
  o.lastIndex = 0, o.test(s.find) && eo(r) && (r = `"${r}"`);
1536
1541
  }
@@ -2588,7 +2593,7 @@ function requireHighcharts() {
2588
2593
  class: "highcharts-root"
2589
2594
  }),
2590
2595
  d = l.element;
2591
- a || l.css(this.getStyle(s || {})), t.appendChild(d), iL(t, "dir", "ltr"), -1 === t.innerHTML.indexOf("xmlns") && iL(d, "xmlns", this.SVG_NS), this.box = d, this.boxWrapper = l, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(iv.createTextNode("Created with Highcharts 12.2.0")), this.defs = this.createElement("defs").add(), this.allowHTML = r, this.forExport = o, this.styledMode = a, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.rootFontSize = l.getStyle("font-size"), this.setSize(e, i, false), ik && t.getBoundingClientRect && ((n = function () {
2596
+ a || l.css(this.getStyle(s || {})), t.appendChild(d), iL(t, "dir", "ltr"), -1 === t.innerHTML.indexOf("xmlns") && iL(d, "xmlns", this.SVG_NS), this.box = d, this.boxWrapper = l, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(iv.createTextNode("Created with Highcharts 12.3.0")), this.defs = this.createElement("defs").add(), this.allowHTML = r, this.forExport = o, this.styledMode = a, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.rootFontSize = l.getStyle("font-size"), this.setSize(e, i, false), ik && t.getBoundingClientRect && ((n = function () {
2592
2597
  iI(t, {
2593
2598
  left: 0,
2594
2599
  top: 0
@@ -2710,6 +2715,7 @@ function requireHighcharts() {
2710
2715
  new im(t).buildSVG();
2711
2716
  }
2712
2717
  getContrast(t) {
2718
+ if ("transparent" === t) return "#000000";
2713
2719
  let e = tL.parse(t).rgba,
2714
2720
  i = " clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";
2715
2721
  if (iR(e[0]) || !tL.useColorMix) {
@@ -2993,8 +2999,8 @@ function requireHighcharts() {
2993
2999
  pushUnique: i2
2994
3000
  } = V;
2995
3001
  function i3(t, e, i) {
2996
- let s = this.div?.style || i.style;
2997
- eJ.prototype[`${e}Setter`].call(this, t, e, i), s && (s[e] = t);
3002
+ let s = this.div?.style;
3003
+ eJ.prototype[`${e}Setter`].call(this, t, e, i), s && (i.style[e] = s[e] = t);
2998
3004
  }
2999
3005
  let i5 = (t, e) => {
3000
3006
  if (!t.div) {
@@ -3015,6 +3021,8 @@ function requireHighcharts() {
3015
3021
  i.setAttribute("class", t), o.className = t;
3016
3022
  }, t.translateXSetter = t.translateYSetter = (e, i) => {
3017
3023
  t[i] = e, o.style["translateX" === i ? "left" : "top"] = `${e}px`, t.doTransform = true;
3024
+ }, t.scaleXSetter = t.scaleYSetter = (e, i) => {
3025
+ t[i] = e, t.doTransform = true;
3018
3026
  }, t.opacitySetter = t.visibilitySetter = i3, t.css = e => (s.call(t, e), e.cursor && (o.style.cursor = e.cursor), e.pointerEvents && (o.style.pointerEvents = e.pointerEvents), t), t.on = function () {
3019
3027
  return eJ.prototype.on.apply({
3020
3028
  element: o,
@@ -3369,7 +3377,7 @@ function requireHighcharts() {
3369
3377
  m,
3370
3378
  x,
3371
3379
  y = this.parameters.category || (o ? su(o[n], a[n], n) : n);
3372
- r && sc(y) && (y = sr(r.lin2log(y))), e.dateTime && (g ? f = (m = s.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid && g.higherRanks[n] || g.unitName])).main : sc(y) && (f = e.dateTime.getXDateFormat(y, i.dateTimeLabelFormats || {}))), t.isFirst = d, t.isLast = c;
3380
+ r && sc(y) && (y = sr(r.lin2log(y))), e.dateTime && (g ? f = (m = s.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid?.enabled && g.higherRanks[n] || g.unitName])).main : sc(y) && (f = e.dateTime.getXDateFormat(y, i.dateTimeLabelFormats || {}))), t.isFirst = d, t.isLast = c;
3373
3381
  let b = {
3374
3382
  axis: e,
3375
3383
  chart: s,
@@ -3536,7 +3544,7 @@ function requireHighcharts() {
3536
3544
  d = s["minor" !== r ? "tickColor" : "minorTickColor"],
3537
3545
  c = this.mark,
3538
3546
  p = !c;
3539
- a && (i.opposite && (a[0] = -a[0]), c || (this.mark = c = o.path().addClass("highcharts-" + (r ? r + "-" : "") + "tick").add(i.axisGroup), i.chart.styledMode || c.attr({
3547
+ a && (i.opposite && (a[0] = -a[0]), !c && (this.mark = c = o.path().addClass("highcharts-" + (r ? r + "-" : "") + "tick").add(i.axisGroup), i.chart.styledMode || c.attr({
3540
3548
  stroke: d,
3541
3549
  "stroke-width": l
3542
3550
  })), c[p ? "attr" : "animate"]({
@@ -3888,7 +3896,7 @@ function requireHighcharts() {
3888
3896
  A,
3889
3897
  P;
3890
3898
  if (r || e || y || this.getTickAmount(), A = sF(this.userMin, d.parse(h.min)), P = sF(this.userMax, d.parse(h.max)), y ? (this.linkedParent = y, M = y.getExtremes(), this.min = sF(M.min, M.dataMin), this.max = sF(M.max, M.dataMax), this.type !== y.type && sL(11, true, i)) : (l && sC(c) && sN(s) && sN(o) && (o >= c ? (T = c, k = 0) : s <= c && (C = c, v = 0)), this.min = sF(A, T, o), this.max = sF(P, C, s)), sN(this.max) && sN(this.min) && (n && (this.positiveValuesOnly && !t && 0 >= Math.min(this.min, sF(o, this.min)) && sL(10, true, i), this.min = sT(n.log2lin(this.min), 16), this.max = sT(n.log2lin(this.max), 16)), this.range && sN(o) && (this.userMin = this.min = A = Math.max(o, this.minFromRange() || 0), this.userMax = P = this.max, this.range = void 0)), sE(this, "foundExtremes"), this.adjustForMinRange(), sN(this.min) && sN(this.max)) {
3891
- if (!sN(this.userMin) && sN(x) && x < this.min && (this.min = A = x), !sN(this.userMax) && sN(m) && m > this.max && (this.max = P = m), e || this.axisPointRange || this.stacking?.usePercentage || y || !(w = this.max - this.min) || (!sC(A) && k && (this.min -= w * k), sC(P) || !v || (this.max += w * v)), !sN(this.userMin) && sN(u) && (this.min = Math.max(this.min, u)), !sN(this.userMax) && sN(g) && (this.max = Math.min(this.max, g)), l && sN(o) && sN(s)) {
3899
+ if (!sN(this.userMin) && sN(x) && x < this.min && (this.min = A = x), !sN(this.userMax) && sN(m) && m > this.max && (this.max = P = m), e || this.axisPointRange || this.stacking?.usePercentage || y || (w = this.max - this.min) && (!sC(A) && k && (this.min -= w * k), !sC(P) && v && (this.max += w * v)), !sN(this.userMin) && sN(u) && (this.min = Math.max(this.min, u)), !sN(this.userMax) && sN(g) && (this.max = Math.min(this.max, g)), l && sN(o) && sN(s)) {
3892
3900
  let t = c || 0;
3893
3901
  !sC(A) && this.min < t && o >= t ? this.min = h.minRange ? Math.min(t, this.max - p) : t : !sC(P) && this.max > t && s <= t && (this.max = h.minRange ? Math.max(t, this.min + p) : t);
3894
3902
  }
@@ -4132,7 +4140,7 @@ function requireHighcharts() {
4132
4140
  let e = this.chart,
4133
4141
  i = this.horiz,
4134
4142
  s = this.options.labels,
4135
- o = Math.max(this.tickPositions.length - +!this.categories, 1),
4143
+ o = Math.max(this.tickPositions.length - !this.categories, 1),
4136
4144
  r = e.margin[3];
4137
4145
  if (t && sN(t.slotWidth)) return t.slotWidth;
4138
4146
  if (i && s.step < 2 && !this.isRadial) return s.rotation ? 0 : (this.staggerLines || 1) * this.len / o;
@@ -4278,7 +4286,7 @@ function requireHighcharts() {
4278
4286
  return i && (t *= -1), e.renderer.crispLine([["M", o ? this.left : r, o ? a : this.top], ["L", o ? e.chartWidth - this.right : r, o ? a : e.chartHeight - this.bottom]], t);
4279
4287
  }
4280
4288
  renderLine() {
4281
- this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({
4289
+ !this.axisLine && (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({
4282
4290
  stroke: this.options.lineColor,
4283
4291
  "stroke-width": this.options.lineWidth,
4284
4292
  zIndex: 7
@@ -4440,10 +4448,7 @@ function requireHighcharts() {
4440
4448
  chartX: t?.chartX,
4441
4449
  chartY: t?.chartY,
4442
4450
  point: e
4443
- }), r = this.getPlotLinePath(l) || null), !sC(r)) {
4444
- this.hideCrosshair();
4445
- return;
4446
- }
4451
+ }), r = this.getPlotLinePath(l) || null), !sC(r)) return void this.hideCrosshair();
4447
4452
  n = this.categories && !this.isRadial, h || (this.cross = h = o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (n ? "category " : "thin ") + (i.className || "")).attr({
4448
4453
  zIndex: sF(i.zIndex, 2)
4449
4454
  }).add(), !o.styledMode && (h.attr({
@@ -4790,6 +4795,7 @@ function requireHighcharts() {
4790
4795
  class: "highcharts-plot-" + (i ? "band" : "line") + "-label " + (t.className || ""),
4791
4796
  zIndex: s
4792
4797
  }), o.chart.styledMode || n.css(os({
4798
+ color: o.chart.options.title?.style.color,
4793
4799
  fontSize: "0.8em",
4794
4800
  textOverflow: i && !a ? "" : "ellipsis"
4795
4801
  }, t.style)), n.add());
@@ -4889,7 +4895,11 @@ function requireHighcharts() {
4889
4895
  e && (s += e[0], o += e[1]);
4890
4896
  }), s /= t.length, o /= t.length, this.shared && t.length > 1 && e && (r ? s = e.chartX : o = e.chartY), i = [s - n, o - a];
4891
4897
  }
4892
- return i.map(Math.round);
4898
+ let h = {
4899
+ point: t[0],
4900
+ ret: i
4901
+ };
4902
+ return ob(this, "getAnchor", h), h.ret.map(Math.round);
4893
4903
  }
4894
4904
  getClassName(t, e, i) {
4895
4905
  let s = this.options,
@@ -5098,7 +5108,8 @@ function requireHighcharts() {
5098
5108
  if (this.split && this.allowShared) this.renderSplit(f, a);else {
5099
5109
  let t = g,
5100
5110
  r = u;
5101
- if (e && o.isDirectTouch && (t = e.chartX - i.plotLeft, r = e.chartY - i.plotTop), i.polar || false === m.options.clip || a.some(e => o.isDirectTouch || e.series.shouldShowTooltip(t, r))) {
5111
+ if (e && o.isDirectTouch && (t = e.chartX - i.plotLeft, r = e.chartY - i.plotTop), !(i.polar || false === m.options.clip || a.some(e => o.isDirectTouch || e.series.shouldShowTooltip(t, r)))) return void this.hide();
5112
+ {
5102
5113
  let t = this.getLabel(c && this.tt || {});
5103
5114
  (!s.style.width || d) && t.css({
5104
5115
  width: (this.outside ? this.getPlayingField() : i.spacingBox).width + "px"
@@ -5117,9 +5128,6 @@ function requireHighcharts() {
5117
5128
  series: m,
5118
5129
  h: p[2] || 0
5119
5130
  });
5120
- } else {
5121
- this.hide();
5122
- return;
5123
5131
  }
5124
5132
  }
5125
5133
  this.isHidden && this.label && this.label.attr({
@@ -5541,7 +5549,7 @@ function requireHighcharts() {
5541
5549
  }), r;
5542
5550
  }
5543
5551
  getNestedProperty(t) {
5544
- return t ? 0 === t.indexOf("custom.") ? oF(t, this.options) : this[t] : void 0;
5552
+ if (t) return 0 === t.indexOf("custom.") ? oF(t, this.options) : this[t];
5545
5553
  }
5546
5554
  getZone() {
5547
5555
  let t = this.series,
@@ -5830,7 +5838,7 @@ function requireHighcharts() {
5830
5838
  shapeType: r,
5831
5839
  attrs: l
5832
5840
  } = this.getSelectionMarkerAttrs(g, u);
5833
- (e.hasCartesianSeries || e.mapView) && this.hasZoom && f && !p && !m && (this.selectionMarker = m = e.renderer[r](), m.attr({
5841
+ this.hasZoom && f && !p && !m && (this.selectionMarker = m = e.renderer[r](), m.attr({
5834
5842
  class: "highcharts-selection-marker",
5835
5843
  zIndex: 7
5836
5844
  }).add(), e.styledMode || m.attr({
@@ -6038,7 +6046,7 @@ function requireHighcharts() {
6038
6046
  let e = this.chart,
6039
6047
  i = e.tooltip,
6040
6048
  s = this.normalize(t);
6041
- this.setHoverChartIndex(t), ("mousedown" === e.mouseIsDown || this.touchSelect(s)) && this.drag(s), !e.openMenu && (this.inClass(s.target, "highcharts-tracker") || e.isInsidePlot(s.chartX - e.plotLeft, s.chartY - e.plotTop, {
6049
+ this.setHoverChartIndex(t), ("mousedown" === e.mouseIsDown || this.touchSelect(s)) && this.drag(s), !e.exporting?.openMenu && (this.inClass(s.target, "highcharts-tracker") || e.isInsidePlot(s.chartX - e.plotLeft, s.chartY - e.plotTop, {
6042
6050
  visiblePlotOnly: true
6043
6051
  })) && !i?.shouldStickOnContact(s) && (this.inClass(s.target, "highcharts-no-tooltip") ? this.reset(false, 0) : this.runPointActions(s));
6044
6052
  }
@@ -6150,7 +6158,7 @@ function requireHighcharts() {
6150
6158
  this.unDocMouseMove || (this.unDocMouseMove = o2(s.container.ownerDocument, "mousemove", t => oQ[rr.hoverChartIndex ?? -1]?.pointer?.onDocumentMouseMove(t)), this.eventsToUnbind.push(this.unDocMouseMove)), s.axes.forEach(function (e) {
6151
6159
  let i,
6152
6160
  o = e.crosshair?.snap ?? true;
6153
- !o || (i = s.hoverPoint) && i.series[e.coll] === e || (i = o9(c, t => t.series?.[e.coll] === e)), i || !o ? e.drawCrosshair(t, i) : e.hideCrosshair();
6161
+ o && ((i = s.hoverPoint) && i.series[e.coll] === e || (i = o9(c, t => t.series?.[e.coll] === e))), i || !o ? e.drawCrosshair(t, i) : e.hideCrosshair();
6154
6162
  });
6155
6163
  }
6156
6164
  setDOMEvents() {
@@ -6207,7 +6215,7 @@ function requireHighcharts() {
6207
6215
  } = this;
6208
6216
  this.setHoverChartIndex(), 1 === (t = this.normalize(t)).touches.length ? s.isInsidePlot(t.chartX - s.plotLeft, t.chartY - s.plotTop, {
6209
6217
  visiblePlotOnly: true
6210
- }) && !s.openMenu ? (e && this.runPointActions(t), "touchmove" === t.type && (i = !!o[0] && Math.pow(o[0].chartX - t.chartX, 2) + Math.pow(o[0].chartY - t.chartY, 2) >= 16), ri(i, true) && this.pinch(t)) : e && this.reset() : 2 === t.touches.length && this.pinch(t);
6218
+ }) && !s.exporting?.openMenu ? (e && this.runPointActions(t), "touchmove" === t.type && (i = !!o[0] && Math.pow(o[0].chartX - t.chartX, 2) + Math.pow(o[0].chartY - t.chartY, 2) >= 16), ri(i, true) && this.pinch(t)) : e && this.reset() : 2 === t.touches.length && this.pinch(t);
6211
6219
  }
6212
6220
  touchSelect(t) {
6213
6221
  return !!(this.chart.zooming.singleTouch && t.touches && 1 === t.touches.length);
@@ -6337,7 +6345,7 @@ function requireHighcharts() {
6337
6345
  f,
6338
6346
  m = r.marker,
6339
6347
  x = 0;
6340
- if (o.styledMode || (u["stroke-width"] = Math.min(r.lineWidth || 0, 24), r.dashStyle ? u.dashstyle = r.dashStyle : "square" === r.linecap || (u["stroke-linecap"] = "round")), s.line = c.path().addClass("highcharts-graph").attr(u).add(p), i && (s.area = c.path().addClass("highcharts-area").add(p)), u["stroke-linecap"] && (x = Math.min(s.line.strokeWidth(), n) / 2), n) {
6348
+ if (o.styledMode || (u["stroke-width"] = Math.min(r.lineWidth || 0, 24), r.dashStyle ? u.dashstyle = r.dashStyle : "square" !== r.linecap && (u["stroke-linecap"] = "round")), s.line = c.path().addClass("highcharts-graph").attr(u).add(p), i && (s.area = c.path().addClass("highcharts-area").add(p)), u["stroke-linecap"] && (x = Math.min(s.line.strokeWidth(), n) / 2), n) {
6341
6349
  let t = [["M", x, g], ["L", n - x, g]];
6342
6350
  s.line.attr({
6343
6351
  d: t
@@ -6649,7 +6657,7 @@ function requireHighcharts() {
6649
6657
  let k = (t = v || t || []).length;
6650
6658
  if (h?.enabled && (t = this.sortData(t)), n.options.chart.allowMutatingData && false !== s && k && r && !this.cropped && !this.hasGroupedData && this.visible && !this.boosted && (x = this.updateData(t, i)), !x) {
6651
6659
  this.xIncrement = null, this.colorCounter = 0;
6652
- let e = d && k > d;
6660
+ let e = d && !a.relativeXValue && k > d;
6653
6661
  if (e) {
6654
6662
  let i = this.getFirstValidPoint(t),
6655
6663
  s = this.getFirstValidPoint(t, k - 1, -1),
@@ -6907,9 +6915,9 @@ function requireHighcharts() {
6907
6915
  plotX: o,
6908
6916
  plotY: r
6909
6917
  } = t;
6910
- return !!((i || !t.isNull && rV(r)) && (!e || s.isInsidePlot(o, r, {
6918
+ return (!!i || !t.isNull && !!rV(r)) && (!e || !!s.isInsidePlot(o, r, {
6911
6919
  inverted: s.inverted
6912
- }))) && false !== t.visible;
6920
+ })) && false !== t.visible;
6913
6921
  });
6914
6922
  }
6915
6923
  getSharedClipKey() {
@@ -7145,14 +7153,27 @@ function requireHighcharts() {
7145
7153
  i = this.yAxis,
7146
7154
  s = this.chart,
7147
7155
  o = s.inverted && !s.polar && e && this.invertible && "series" === t;
7148
- return s.inverted && (e = i, i = this.xAxis), {
7156
+ s.inverted && (e = i, i = this.xAxis);
7157
+ let r = {
7158
+ scale: 1,
7149
7159
  translateX: e ? e.left : s.plotLeft,
7150
7160
  translateY: i ? i.top : s.plotTop,
7161
+ name: t
7162
+ };
7163
+ rG(this, "getPlotBox", r);
7164
+ let {
7165
+ scale: a,
7166
+ translateX: n,
7167
+ translateY: h
7168
+ } = r;
7169
+ return {
7170
+ translateX: n,
7171
+ translateY: h,
7151
7172
  rotation: 90 * !!o,
7152
- rotationOriginX: o ? (e.len - i.len) / 2 : 0,
7153
- rotationOriginY: o ? (e.len + i.len) / 2 : 0,
7154
- scaleX: o ? -1 : 1,
7155
- scaleY: 1
7173
+ rotationOriginX: o ? a * (e.len - i.len) / 2 : 0,
7174
+ rotationOriginY: o ? a * (e.len + i.len) / 2 : 0,
7175
+ scaleX: o ? -a : a,
7176
+ scaleY: a
7156
7177
  };
7157
7178
  }
7158
7179
  removeEvents(t) {
@@ -7384,12 +7405,10 @@ function requireHighcharts() {
7384
7405
  });
7385
7406
  let f = false;
7386
7407
  if (rP[g]) {
7387
- if (f = g !== i.type, i.remove(false, false, false, true), f) {
7388
- if (s.propFromSeries(), Object.setPrototypeOf) Object.setPrototypeOf(i, rP[g].prototype);else {
7389
- let t = Object.hasOwnProperty.call(i, "hcEvents") && i.hcEvents;
7390
- for (c in n) i[c] = void 0;
7391
- rF(i, rP[g].prototype), t ? i.hcEvents = t : delete i.hcEvents;
7392
- }
7408
+ if (f = g !== i.type, i.remove(false, false, false, true), f) if (s.propFromSeries(), Object.setPrototypeOf) Object.setPrototypeOf(i, rP[g].prototype);else {
7409
+ let t = Object.hasOwnProperty.call(i, "hcEvents") && i.hcEvents;
7410
+ for (c in n) i[c] = void 0;
7411
+ rF(i, rP[g].prototype), t ? i.hcEvents = t : delete i.hcEvents;
7393
7412
  }
7394
7413
  } else rH(17, true, s, {
7395
7414
  missingModuleFor: g
@@ -8395,7 +8414,7 @@ function requireHighcharts() {
8395
8414
  let l = aL("div", {
8396
8415
  id: o
8397
8416
  }, t, r);
8398
- this.container = l, this.getChartSize(), h === this.chartWidth || (h = this.chartWidth, this.styledMode || aO(l, {
8417
+ this.container = l, this.getChartSize(), h !== this.chartWidth && (h = this.chartWidth, this.styledMode || aO(l, {
8399
8418
  width: aV(i.style?.width, h + "px")
8400
8419
  })), this.containerBox = this.getContainerBox(), this._cursor = l.style.cursor;
8401
8420
  let d = i.renderer || !aS ? eg.getRendererType(i.renderer) : iU;
@@ -8431,7 +8450,7 @@ function requireHighcharts() {
8431
8450
  let e = this,
8432
8451
  i = e.containerBox,
8433
8452
  s = e.getContainerBox();
8434
- delete e.pointer?.chartPosition, !e.isPrinting && !e.isResizing && i && s.width && ((s.width !== i.width || s.height !== i.height) && (V.clearTimeout(e.reflowTimeout), e.reflowTimeout = aJ(function () {
8453
+ delete e.pointer?.chartPosition, !e.exporting?.isPrinting && !e.isResizing && i && s.width && ((s.width !== i.width || s.height !== i.height) && (V.clearTimeout(e.reflowTimeout), e.reflowTimeout = aJ(function () {
8435
8454
  e.container && e.setSize(void 0, void 0, false);
8436
8455
  }, 100 * !!t)), e.containerBox = s);
8437
8456
  }
@@ -8635,7 +8654,9 @@ function requireHighcharts() {
8635
8654
  }
8636
8655
  this.drawChartBox(), this.hasCartesianSeries ? o(t) : e?.length && o(e), this.seriesGroup || (this.seriesGroup = i.g("series-group").attr({
8637
8656
  zIndex: 3
8638
- }).shadow(this.options.chart.seriesGroupShadow).add()), this.renderSeries(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = true;
8657
+ }).shadow(this.options.chart.seriesGroupShadow).add()), this.dataLabelsGroup || (this.dataLabelsGroup = i.g("datalabels-group").attr({
8658
+ zIndex: 6
8659
+ }).add()), this.renderSeries(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = true;
8639
8660
  }
8640
8661
  addCredits(t) {
8641
8662
  let e = this,
@@ -8683,7 +8704,7 @@ function requireHighcharts() {
8683
8704
  options: t,
8684
8705
  title: e
8685
8706
  } = this;
8686
- !t || this.accessibility || (this.renderer.boxWrapper.attr({
8707
+ t && !this.accessibility && (this.renderer.boxWrapper.attr({
8687
8708
  role: "img",
8688
8709
  "aria-label": (e?.element.textContent || "").replace(/</g, "&lt;")
8689
8710
  }), t.accessibility && false === t.accessibility.enabled || aN('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.', false, this));
@@ -8735,7 +8756,7 @@ function requireHighcharts() {
8735
8756
  className: "highcharts-loading highcharts-loading-hidden"
8736
8757
  }, null, e.container)), a || (e.loadingSpan = a = aL("span", {
8737
8758
  className: "highcharts-loading-inner"
8738
- }, null, r), aA(e, "redraw", o)), r.className = "highcharts-loading", t6.setElementHTML(a, aV(t, i.lang.loading, "")), e.styledMode || (aO(r, az(s.style, {
8759
+ }, null, r), aA(e, "redraw", o)), r.className = "highcharts-loading", t6.setElementHTML(a, aV(t, i.lang.loading, "")), !e.styledMode && (aO(r, az(s.style, {
8739
8760
  zIndex: 10
8740
8761
  })), aO(a, s.labelStyle), e.loadingShown || (aO(r, {
8741
8762
  opacity: 0,
@@ -8778,7 +8799,7 @@ function requireHighcharts() {
8778
8799
  }), l || n.setResponsive(false, true), t = aI(t, n.options), n.userOptions = aU(n.userOptions, t);
8779
8800
  let c = t.chart;
8780
8801
  c && (aU(true, n.options.chart, c), this.setZoomOptions(), "className" in c && n.setClassName(c.className), ("inverted" in c || "polar" in c || "type" in c) && (n.propFromSeries(), o = true), "alignTicks" in c && (o = true), "events" in c && av(this, c), a$(c, function (t, e) {
8781
- -1 !== n.propsRequireUpdateSeries.indexOf("chart." + e) && (r = true), -1 !== n.propsRequireDirtyBox.indexOf(e) && (n.isDirtyBox = true), -1 === n.propsRequireReflow.indexOf(e) || (n.isDirtyBox = true, l || (a = true));
8802
+ -1 !== n.propsRequireUpdateSeries.indexOf("chart." + e) && (r = true), -1 !== n.propsRequireDirtyBox.indexOf(e) && (n.isDirtyBox = true), -1 !== n.propsRequireReflow.indexOf(e) && (n.isDirtyBox = true, l || (a = true));
8782
8803
  }), !n.styledMode && c.style && n.renderer.setStyle(n.options.chart.style || {})), !n.styledMode && t.colors && (this.options.colors = t.colors), a$(t, function (e, i) {
8783
8804
  n[i] && "function" == typeof n[i].update ? n[i].update(e, false) : "function" == typeof n[h[i]] ? n[h[i]](e) : "colors" !== i && -1 === n.collectionsWithUpdate.indexOf(i) && aU(true, n.options[i], t[i]), "chart" !== i && -1 !== n.propsRequireUpdateSeries.indexOf(i) && (r = true);
8784
8805
  }), this.collectionsWithUpdate.forEach(function (e) {
@@ -8876,11 +8897,12 @@ function requireHighcharts() {
8876
8897
  {
8877
8898
  inverted: h,
8878
8899
  time: l
8879
- } = this,
8880
- d = false,
8900
+ } = this;
8901
+ this.hoverPoints?.forEach(t => t.setState()), aW(this, "transform", t);
8902
+ let d = t.hasZoomed || false,
8881
8903
  c,
8882
8904
  p;
8883
- for (let t of (this.hoverPoints?.forEach(t => t.setState()), e)) {
8905
+ for (let t of e) {
8884
8906
  let {
8885
8907
  horiz: e,
8886
8908
  len: g,
@@ -8897,45 +8919,52 @@ function requireHighcharts() {
8897
8919
  M = w - ((a[y] ?? t.pos) + b / 2 - t.pos) / k,
8898
8920
  S = m && !h || !m && h ? -1 : 1;
8899
8921
  if (!o && (w < 0 || w > t.len)) continue;
8900
- let T = t.toValue(M, true) + (r || t.isOrdinal ? 0 : u * S),
8901
- C = t.toValue(M + g / k, true) - (r || t.isOrdinal ? 0 : u * S || 0),
8902
- A = t.allExtremes;
8903
- if (T > C && ([T, C] = [C, T]), 1 === k && !o && "yAxis" === t.coll && !A) {
8922
+ let T = t.chart.polar || t.isOrdinal ? 0 : u * S || 0,
8923
+ C = t.toValue(M, true),
8924
+ A = t.toValue(M + g / k, true),
8925
+ P = C + T,
8926
+ L = A - T,
8927
+ O = t.allExtremes;
8928
+ if (r && r[t.coll].push({
8929
+ axis: t,
8930
+ min: Math.min(C, A),
8931
+ max: Math.max(C, A)
8932
+ }), P > L && ([P, L] = [L, P]), 1 === k && !o && "yAxis" === t.coll && !O) {
8904
8933
  for (let e of t.series) {
8905
8934
  let t = e.getExtremes(e.getProcessedData(true).modified.getColumn("y") || [], true);
8906
- A ?? (A = {
8935
+ O ?? (O = {
8907
8936
  dataMin: Number.MAX_VALUE,
8908
8937
  dataMax: -Number.MAX_VALUE
8909
- }), aG(t.dataMin) && aG(t.dataMax) && (A.dataMin = Math.min(t.dataMin, A.dataMin), A.dataMax = Math.max(t.dataMax, A.dataMax));
8938
+ }), aG(t.dataMin) && aG(t.dataMax) && (O.dataMin = Math.min(t.dataMin, O.dataMin), O.dataMax = Math.max(t.dataMax, O.dataMax));
8910
8939
  }
8911
- t.allExtremes = A;
8940
+ t.allExtremes = O;
8912
8941
  }
8913
8942
  let {
8914
- dataMin: P,
8915
- dataMax: L,
8916
- min: O,
8917
- max: E
8918
- } = az(t.getExtremes(), A || {}),
8919
- I = l.parse(f.min),
8920
- D = l.parse(f.max),
8921
- B = P ?? I,
8922
- N = L ?? D,
8923
- z = C - T,
8924
- R = t.categories ? 0 : Math.min(z, N - B),
8925
- W = B - R * (aE(I) ? 0 : f.minPadding),
8926
- H = N + R * (aE(D) ? 0 : f.maxPadding),
8927
- F = t.allowZoomOutside || 1 === k || "zoom" !== n && k > 1,
8928
- X = Math.min(I ?? W, W, F ? O : W),
8929
- G = Math.max(D ?? H, H, F ? E : H);
8930
- (!t.isOrdinal || t.options.overscroll || 1 !== k || o) && (T < X && (T = X, k >= 1 && (C = T + z)), C > G && (C = G, k >= 1 && (T = C - z)), (o || t.series.length && (T !== O || C !== E) && T >= X && C <= G) && (r ? r[t.coll].push({
8943
+ dataMin: E,
8944
+ dataMax: I,
8945
+ min: D,
8946
+ max: B
8947
+ } = az(t.getExtremes(), O || {}),
8948
+ N = l.parse(f.min),
8949
+ z = l.parse(f.max),
8950
+ R = E ?? N,
8951
+ W = I ?? z,
8952
+ H = L - P,
8953
+ F = t.categories ? 0 : Math.min(H, W - R),
8954
+ X = R - F * (aE(N) ? 0 : f.minPadding),
8955
+ G = W + F * (aE(z) ? 0 : f.maxPadding),
8956
+ j = t.allowZoomOutside || 1 === k || "zoom" !== n && k > 1,
8957
+ Y = Math.min(N ?? X, X, j ? D : X),
8958
+ U = Math.max(z ?? G, G, j ? B : G);
8959
+ (!t.isOrdinal || 1 !== k || o) && (P < Y && (P = Y, k >= 1 && (L = P + H)), L > U && (L = U, k >= 1 && (P = L - H)), (o || t.series.length && (P !== D || L !== B) && P >= Y && L <= U) && (r ? r[t.coll].push({
8931
8960
  axis: t,
8932
- min: T,
8933
- max: C
8934
- }) : (t.isPanning = "zoom" !== n, t.isPanning && (p = true), t.setExtremes(o ? void 0 : T, o ? void 0 : C, false, false, {
8961
+ min: P,
8962
+ max: L
8963
+ }) : (t.isPanning = "zoom" !== n, t.isPanning && (p = true), t.setExtremes(o ? void 0 : P, o ? void 0 : L, false, false, {
8935
8964
  move: M,
8936
8965
  trigger: n,
8937
8966
  scale: k
8938
- }), !o && (T > X || C < G) && "mousewheel" !== n && (c = true)), d = true), i && (this[e ? "mouseDownX" : "mouseDownY"] = i[e ? "chartX" : "chartY"]));
8967
+ }), !o && (P > Y || L < U) && "mousewheel" !== n && (c = true)), d = true), this.hasCartesianSeries || o || "mousewheel" === n || (c = true), i && (this[e ? "mouseDownX" : "mouseDownY"] = i[e ? "chartX" : "chartY"]));
8939
8968
  }
8940
8969
  return d && (r ? aW(this, "selection", r, () => {
8941
8970
  delete t.selection, t.trigger = "zoom", this.transform(t);
@@ -9103,7 +9132,7 @@ function requireHighcharts() {
9103
9132
  } = this.chart,
9104
9133
  r = this.fixedRenderer,
9105
9134
  a = ni.fixedSelectors;
9106
- if (s && !i ? t = ".highcharts-yaxis" : s && i ? t = ".highcharts-xaxis" : o && !i ? t = ".highcharts-xaxis" : o && i && (t = ".highcharts-yaxis"), t && !(this.chart.hasParallelCoordinates && ".highcharts-yaxis" === t)) for (let e of [`${t}:not(.highcharts-radial-axis)`, `${t}-labels:not(.highcharts-radial-axis-labels)`]) a7(a, e);else for (let t of [".highcharts-xaxis", ".highcharts-yaxis"]) for (let e of [`${t}:not(.highcharts-radial-axis)`, `${t}-labels:not(.highcharts-radial-axis-labels)`]) a4(a, e);
9135
+ if (s && !i ? t = ".highcharts-yaxis" : s && i || o && !i ? t = ".highcharts-xaxis" : o && i && (t = ".highcharts-yaxis"), t && !(this.chart.hasParallelCoordinates && ".highcharts-yaxis" === t)) for (let e of [`${t}:not(.highcharts-radial-axis)`, `${t}-labels:not(.highcharts-radial-axis-labels)`]) a7(a, e);else for (let t of [".highcharts-xaxis", ".highcharts-yaxis"]) for (let e of [`${t}:not(.highcharts-radial-axis)`, `${t}-labels:not(.highcharts-radial-axis-labels)`]) a4(a, e);
9107
9136
  for (let t of a) [].forEach.call(e.querySelectorAll(t), t => {
9108
9137
  (t.namespaceURI === r.SVG_NS ? r.box : r.box.parentNode).appendChild(t), t.style.pointerEvents = "auto";
9109
9138
  });
@@ -9525,7 +9554,7 @@ function requireHighcharts() {
9525
9554
  }));
9526
9555
  };
9527
9556
  t = t || this.points, a && (t = this.getStackPoints(t));
9528
- for (let o = 0, r = t.length; o < r; ++o) a || (t[o].leftCliff = t[o].rightCliff = t[o].leftNull = t[o].rightNull = void 0), i = t[o].isNull, e = nH(t[o].rectPlotX, t[o].plotX), s = a ? nH(t[o].yBottom, g) : g, i && !u || (u || f(o, o - 1, "left"), i && !a && u || (l.push(t[o]), h.push({
9557
+ for (let o = 0, r = t.length; o < r; ++o) a || (t[o].leftCliff = t[o].rightCliff = t[o].leftNull = t[o].rightNull = void 0), i = t[o].isNull, e = nH(t[o].rectPlotX, t[o].plotX), s = a ? nH(t[o].yBottom, g) : g, (!i || u) && (u || f(o, o - 1, "left"), i && !a && u || (l.push(t[o]), h.push({
9529
9558
  x: o,
9530
9559
  plotX: e,
9531
9560
  plotY: s
@@ -10007,7 +10036,7 @@ function requireHighcharts() {
10007
10036
  o && a && (e.placed = false), g || a && !p ? (e.show(), e.placed = true) : (e.hide(), e.placed = false);
10008
10037
  }
10009
10038
  function s() {
10010
- return this.plotGroup("dataLabelsGroup", "data-labels", this.hasRendered ? "inherit" : "hidden", this.options.dataLabels.zIndex || 6);
10039
+ return this.plotGroup("dataLabelsGroup", "data-labels", this.hasRendered ? "inherit" : "hidden", this.options.dataLabels.zIndex || 6, this.chart.dataLabelsGroup);
10011
10040
  }
10012
10041
  function o(t) {
10013
10042
  let e = this.hasRendered || 0,
@@ -10075,7 +10104,7 @@ function requireHighcharts() {
10075
10104
  zIndex: 1
10076
10105
  }, s.styledMode || (b.fill = "auto" === p ? t.color : p, b.stroke = "auto" === g ? t.color : g, b["stroke-width"] = n.borderWidth), hc(b, (t, e) => {
10077
10106
  void 0 === t && delete b[e];
10078
- })), !v || c && ho(x) && !!(v.div || v.text?.foreignObject) == !!n.useHTML && (v.rotation && n.rotation || v.rotation === n.rotation) || (v = void 0, k = true), c && ho(x) && (v ? b.text = x : (v = r.label(x, 0, 0, n.shape, void 0, void 0, n.useHTML, void 0, "data-label")).addClass(" highcharts-data-label-color-" + t.colorIndex + " " + (n.className || "") + (n.useHTML ? " highcharts-tracker" : "")), v && (v.options = n, v.attr(b), s.styledMode ? f.width && v.css({
10107
+ })), !v || c && ho(x) && !!(v.div || v.text?.foreignObject) == !!n.useHTML && (v.rotation && n.rotation || v.rotation === n.rotation) || (v = void 0, k = true), c && ho(x) && "" !== x && (v ? b.text = x : (v = r.label(x, 0, 0, n.shape, void 0, void 0, n.useHTML, void 0, "data-label")).addClass(" highcharts-data-label-color-" + t.colorIndex + " " + (n.className || "") + (n.useHTML ? " highcharts-tracker" : "")), v && (v.options = n, v.attr(b), s.styledMode ? f.width && v.css({
10079
10108
  width: f.width,
10080
10109
  textOverflow: f.textOverflow,
10081
10110
  whiteSpace: f.whiteSpace
@@ -11127,7 +11156,7 @@ function requireHighcharts() {
11127
11156
  let a = lA(...o.map(t => lC(i?.rules || [], e => e._id === t)).map(t => t?.chartOptions));
11128
11157
  a.isResponsiveOptions = true, o = o.toString() || void 0;
11129
11158
  let n = s?.ruleIds;
11130
- o === n || (s && (this.currentResponsive = void 0, this.updatingResponsive = true, this.update(s.undoOptions, t, true), this.updatingResponsive = false), o ? ((r = lS(a, this.options, true, this.collectionsWithUpdate)).isResponsiveOptions = true, this.currentResponsive = {
11159
+ o !== n && (s && (this.currentResponsive = void 0, this.updatingResponsive = true, this.update(s.undoOptions, t, true), this.updatingResponsive = false), o ? ((r = lS(a, this.options, true, this.collectionsWithUpdate)).isResponsiveOptions = true, this.currentResponsive = {
11131
11160
  ruleIds: o,
11132
11161
  mergedOptions: a,
11133
11162
  undoOptions: r
@@ -13008,4 +13037,142 @@ const File = _ref => {
13008
13037
  }, /*#__PURE__*/React.createElement(Icons, rightsection === null || rightsection === void 0 ? void 0 : rightsection.icon)) : undefined)));
13009
13038
  };
13010
13039
 
13011
- export { ApplicationMenu, ApplicationPanel, AvatarLabelPanel, ConnectionPanel, DonutChart, DynamicLogo, DynamicShigaLogo, EqualizerColumn, File, Icons, LabelPanel, PageTitle, PaymentMethod, PaymentMethodAdd, SearchPanel, SideMenu, SimpleArea, SimpleColumn, SimplePanel, SimpleTable, SimpleText, StackedColumn, SubscriptionPlans, TitleWithIndex, TitledPanel, UserMenu, theme };
13040
+ const ErrorModal = _ref => {
13041
+ let {
13042
+ context,
13043
+ id,
13044
+ innerProps
13045
+ } = _ref;
13046
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13047
+ size: "sm"
13048
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13049
+ fullWidth: true,
13050
+ mt: "md",
13051
+ onClick: () => context.closeModal(id)
13052
+ }, "Close modal"));
13053
+ };
13054
+
13055
+ const InfoModal = _ref => {
13056
+ let {
13057
+ context,
13058
+ id,
13059
+ innerProps
13060
+ } = _ref;
13061
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13062
+ size: "sm"
13063
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13064
+ fullWidth: true,
13065
+ mt: "md",
13066
+ onClick: () => context.closeModal(id)
13067
+ }, "Close modal"));
13068
+ };
13069
+
13070
+ const SimpleModal = _ref => {
13071
+ let {
13072
+ context,
13073
+ id,
13074
+ innerProps
13075
+ } = _ref;
13076
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13077
+ size: "sm"
13078
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13079
+ fullWidth: true,
13080
+ mt: "md",
13081
+ onClick: () => context.closeModal(id)
13082
+ }, "Close modal"));
13083
+ };
13084
+
13085
+ const SuccessModal = _ref => {
13086
+ let {
13087
+ context,
13088
+ id,
13089
+ innerProps
13090
+ } = _ref;
13091
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13092
+ size: "sm"
13093
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13094
+ fullWidth: true,
13095
+ mt: "md",
13096
+ onClick: () => context.closeModal(id)
13097
+ }, "Close modal"));
13098
+ };
13099
+
13100
+ const TwoFactorVerificationModal = _ref => {
13101
+ let {
13102
+ context,
13103
+ id,
13104
+ innerProps
13105
+ } = _ref;
13106
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13107
+ size: "sm"
13108
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(Button, {
13109
+ fullWidth: true,
13110
+ mt: "md",
13111
+ onClick: () => context.closeModal(id)
13112
+ }, "Close modal"));
13113
+ };
13114
+
13115
+ const useModal = () => {
13116
+ const ConfirmationModal = () => modals.openConfirmModal({
13117
+ title: 'Confirmation',
13118
+ children: 'This is a confirmation modal',
13119
+ onConfirm: () => {
13120
+ console.log('Confirmed');
13121
+ }
13122
+ });
13123
+ const ErrorModal = () => modals.openContextModal({
13124
+ modal: 'ErrorModal',
13125
+ title: 'Error',
13126
+ innerProps: {
13127
+ modalBody: 'This is an error modal'
13128
+ }
13129
+ });
13130
+ const InfoModal = () => modals.openContextModal({
13131
+ modal: 'InfoModal',
13132
+ title: 'Info',
13133
+ innerProps: {
13134
+ modalBody: 'This is an info modal'
13135
+ }
13136
+ });
13137
+ const SimpleModal = () => modals.openContextModal({
13138
+ modal: 'SimpleModal',
13139
+ title: 'Simple',
13140
+ innerProps: {
13141
+ modalBody: 'This is a simple modal'
13142
+ }
13143
+ });
13144
+ const SuccessModal = () => modals.openContextModal({
13145
+ modal: 'SuccessModal',
13146
+ title: 'Success',
13147
+ innerProps: {
13148
+ modalBody: 'This is a success modal'
13149
+ }
13150
+ });
13151
+ const TwoFactorVerificationModal = () => modals.openContextModal({
13152
+ modal: 'TwoFactorVerificationModal',
13153
+ title: 'Two Factor Verification',
13154
+ innerProps: {
13155
+ modalBody: 'This is a two factor verification modal'
13156
+ }
13157
+ });
13158
+ return {
13159
+ ConfirmationModal,
13160
+ ErrorModal,
13161
+ InfoModal,
13162
+ SimpleModal,
13163
+ SuccessModal,
13164
+ TwoFactorVerificationModal
13165
+ };
13166
+ };
13167
+
13168
+ const useManagedModals = () => {
13169
+ return {
13170
+ ErrorModal: ErrorModal,
13171
+ InfoModal: InfoModal,
13172
+ SimpleModal: SimpleModal,
13173
+ SuccessModal: SuccessModal,
13174
+ TwoFactorVerificationModal: TwoFactorVerificationModal
13175
+ };
13176
+ };
13177
+
13178
+ export { ApplicationMenu, ApplicationPanel, AvatarLabelPanel, ConnectionPanel, DonutChart, DynamicLogo, DynamicShigaLogo, EqualizerColumn, ErrorModal, File, Icons, InfoModal, LabelPanel, PageTitle, PaymentMethod, PaymentMethodAdd, SearchPanel, SideMenu, SimpleArea, SimpleColumn, SimpleModal, SimplePanel, SimpleTable, SimpleText, StackedColumn, SubscriptionPlans, SuccessModal, TitleWithIndex, TitledPanel, TwoFactorVerificationModal, UserMenu, theme, useManagedModals, useModal };