@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,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ var modals = require('@mantine/modals');
4
+ var React = require('react');
5
+ var core = require('@mantine/core');
3
6
  var _extends = require('@babel/runtime/helpers/extends');
4
7
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
- var React = require('react');
6
8
  var HighchartsReact = require('highcharts-react-official');
7
9
  var HighchartsRounded = require('highcharts-rounded-corners');
8
10
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
9
11
  var IconSax = require('iconsax-react');
10
- var core = require('@mantine/core');
11
12
  var reactRouterDom = require('react-router-dom');
12
13
  var hooks = require('@mantine/hooks');
13
14
  require('@fontsource/poppins/100.css');
@@ -65,7 +66,16 @@ function requireHighcharts() {
65
66
  if (hasRequiredHighcharts) return highcharts$1.exports;
66
67
  hasRequiredHighcharts = 1;
67
68
  (function (module, exports) {
68
- !function (t, e) {
69
+ !
70
+ /**
71
+ * Highcharts JS v12.3.0 (2025-06-21)
72
+ * @module highcharts/highcharts
73
+ *
74
+ * (c) 2009-2025 Torstein Honsi
75
+ *
76
+ * License: www.highcharts.com/license
77
+ */
78
+ function (t, e) {
69
79
  (t._Highcharts = e(), module.exports = t._Highcharts) ;
70
80
  }("undefined" == typeof window ? highcharts : window, () => (() => {
71
81
 
@@ -99,7 +109,7 @@ function requireHighcharts() {
99
109
  v.d(k, {
100
110
  default: () => lE
101
111
  }), function (t) {
102
- 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 () {
112
+ 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 () {
103
113
  let e = false;
104
114
  if (!t.isMS) {
105
115
  let i = Object.defineProperty({}, "passive", {
@@ -545,11 +555,12 @@ function requireHighcharts() {
545
555
  this.dTLCache = {}, this.options = t = ti(true, this.options, t);
546
556
  let {
547
557
  timezoneOffset: e,
548
- useUTC: i
558
+ useUTC: i,
559
+ locale: s
549
560
  } = t;
550
561
  this.Date = t.Date || _.Date || Date;
551
- let s = t.timezone;
552
- 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 => {
562
+ let o = t.timezone;
563
+ 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 => {
553
564
  let e = /months/i.test(t),
554
565
  i = /short/.test(t),
555
566
  s = {
@@ -568,7 +579,7 @@ function requireHighcharts() {
568
579
  minute: "numeric",
569
580
  second: "numeric"
570
581
  }, t, "es").split(/(?:, | |\/|:)/g);
571
- return [o, +s - 1, i, r, a, n, Math.floor(Number(t) || 0) % 1e3, "DLMXJVS".indexOf(e)].map(Number);
582
+ return [o, s - 1, i, r, a, n, Math.floor(Number(t) || 0) % 1e3, "DLMXJVS".indexOf(e)].map(Number);
572
583
  }
573
584
  dateTimeFormat(t, e, i = this.options.locale || Z) {
574
585
  let s = JSON.stringify(t) + i;
@@ -663,7 +674,7 @@ function requireHighcharts() {
663
674
  let [e, i, s, o, r = 0] = this.dateTimeFormat({
664
675
  timeZoneName: "shortOffset"
665
676
  }, t, "en").split(/(GMT|:)/).map(Number),
666
- a = -(36e5 * (s + r / 60));
677
+ a = -(60 * (s + r / 60) * 6e4);
667
678
  if (Q(a)) return a;
668
679
  }
669
680
  return 0;
@@ -973,6 +984,7 @@ function requireHighcharts() {
973
984
  y: 0,
974
985
  title: {
975
986
  style: {
987
+ color: "#333333",
976
988
  fontSize: "0.8em",
977
989
  fontWeight: "bold"
978
990
  }
@@ -1105,9 +1117,7 @@ function requireHighcharts() {
1105
1117
  let e = this.rgba;
1106
1118
  if (this.stops) this.stops.forEach(function (e) {
1107
1119
  e.brighten(t);
1108
- });else if (tw(t) && 0 !== t) {
1109
- 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)));
1110
- }
1120
+ });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)));
1111
1121
  return this;
1112
1122
  }
1113
1123
  setOpacity(t) {
@@ -1250,19 +1260,15 @@ function requireHighcharts() {
1250
1260
  }
1251
1261
  }
1252
1262
  if (s && o && o.length) {
1253
- for (c = 0; c < s.length; c++) {
1254
- if (s[c] === o[0]) {
1255
- l = c;
1256
- break;
1257
- }
1258
- if (s[0] === o[o.length - s.length + c]) {
1259
- l = c, p = true;
1260
- break;
1261
- }
1262
- if (s[s.length - 1] === o[o.length - s.length + c]) {
1263
- l = s.length - c;
1264
- break;
1265
- }
1263
+ for (c = 0; c < s.length; c++) if (s[c] === o[0]) {
1264
+ l = c;
1265
+ break;
1266
+ } else if (s[0] === o[o.length - s.length + c]) {
1267
+ l = c, p = true;
1268
+ break;
1269
+ } else if (s[s.length - 1] === o[o.length - s.length + c]) {
1270
+ l = s.length - c;
1271
+ break;
1266
1272
  }
1267
1273
  void 0 === l && (g = []);
1268
1274
  }
@@ -1384,18 +1390,16 @@ function requireHighcharts() {
1384
1390
  r = e.tagName,
1385
1391
  a = e.textContent ? w.doc.createTextNode(e.textContent) : void 0,
1386
1392
  n = t6.bypassHTMLFiltering;
1387
- if (r) {
1388
- if ("#text" === r) o = a;else if (-1 !== t6.allowedTags.indexOf(r) || n) {
1389
- let s = "svg" === r ? t$ : i.namespaceURI || t$,
1390
- h = w.doc.createElementNS(s, r),
1391
- l = e.attributes || {};
1392
- t0(e, function (t, e) {
1393
- "tagName" !== e && "attributes" !== e && "children" !== e && "style" !== e && "textContent" !== e && (l[e] = t);
1394
- }), tZ(h, n ? l : t6.filterUserAttributes(l)), e.style && tq(h, e.style), a && h.appendChild(a), t(e.children || [], h), o = h;
1395
- } else tK(33, false, void 0, {
1396
- "Invalid tagName in config": r
1397
- });
1398
- }
1393
+ if (r) if ("#text" === r) o = a;else if (-1 !== t6.allowedTags.indexOf(r) || n) {
1394
+ let s = "svg" === r ? t$ : i.namespaceURI || t$,
1395
+ h = w.doc.createElementNS(s, r),
1396
+ l = e.attributes || {};
1397
+ t0(e, function (t, e) {
1398
+ "tagName" !== e && "attributes" !== e && "children" !== e && "style" !== e && "textContent" !== e && (l[e] = t);
1399
+ }), tZ(h, n ? l : t6.filterUserAttributes(l)), e.style && tq(h, e.style), a && h.appendChild(a), t(e.children || [], h), o = h;
1400
+ } else tK(33, false, void 0, {
1401
+ "Invalid tagName in config": r
1402
+ });
1399
1403
  o && i.appendChild(o), s = o;
1400
1404
  }), s;
1401
1405
  }(this.nodes, t);
@@ -1437,7 +1441,7 @@ function requireHighcharts() {
1437
1441
  return [].forEach.call(e.body.childNodes, t => s(t, i)), i;
1438
1442
  }
1439
1443
  }
1440
- 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;
1444
+ 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;
1441
1445
  let {
1442
1446
  defaultOptions: t9,
1443
1447
  defaultTime: t4
@@ -1490,7 +1494,7 @@ function requireHighcharts() {
1490
1494
  n = /\.(\d)/,
1491
1495
  h = i?.options?.lang || t9.lang,
1492
1496
  l = i?.time || t4,
1493
- d = i?.numberFormatter || ec,
1497
+ d = i?.numberFormatter || ec.bind(i),
1494
1498
  c = (t = "") => {
1495
1499
  let i;
1496
1500
  return "true" === t || "false" !== t && ((i = Number(t)).toString() === t ? i : el(t) ? t.slice(1, -1) : et(t, e));
@@ -1545,13 +1549,14 @@ function requireHighcharts() {
1545
1549
  for (p = en[m].length; p--;) t.unshift(c(o[p + 1]));
1546
1550
  r = en[m].apply(e, t), s.isBlock && "boolean" == typeof r && (r = ed(r ? g : u, e, i));
1547
1551
  } else {
1548
- let t = el(f) ? [f] : f.split(":");
1549
- if (r = c(t.shift() || ""), t.length && "number" == typeof r) {
1550
- let e = t.join(":");
1551
- if (a.test(e)) {
1552
- let t = parseInt((e.match(n) || ["", "-1"])[1], 10);
1553
- null !== r && (r = d(r, t, h.decimalPoint, e.indexOf(",") > -1 ? h.thousandsSep : ""));
1554
- } else r = l.dateFormat(e, r);
1552
+ let t = el(f) ? [f] : f.split(":"),
1553
+ e = (r = c(t.shift() || "")) % 1 != 0;
1554
+ if ("number" == typeof r && (t.length || e)) {
1555
+ let i = t.join(":");
1556
+ if (a.test(i) || e) {
1557
+ let t = parseInt((i.match(n) || ["", "-1"])[1], 10);
1558
+ null !== r && (r = d(r, t, h.decimalPoint, i.indexOf(",") > -1 ? h.thousandsSep : ""));
1559
+ } else r = l.dateFormat(i, r);
1555
1560
  }
1556
1561
  o.lastIndex = 0, o.test(s.find) && eo(r) && (r = `"${r}"`);
1557
1562
  }
@@ -2609,7 +2614,7 @@ function requireHighcharts() {
2609
2614
  class: "highcharts-root"
2610
2615
  }),
2611
2616
  d = l.element;
2612
- 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 () {
2617
+ 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 () {
2613
2618
  iI(t, {
2614
2619
  left: 0,
2615
2620
  top: 0
@@ -2731,6 +2736,7 @@ function requireHighcharts() {
2731
2736
  new im(t).buildSVG();
2732
2737
  }
2733
2738
  getContrast(t) {
2739
+ if ("transparent" === t) return "#000000";
2734
2740
  let e = tL.parse(t).rgba,
2735
2741
  i = " clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";
2736
2742
  if (iR(e[0]) || !tL.useColorMix) {
@@ -3014,8 +3020,8 @@ function requireHighcharts() {
3014
3020
  pushUnique: i2
3015
3021
  } = V;
3016
3022
  function i3(t, e, i) {
3017
- let s = this.div?.style || i.style;
3018
- eJ.prototype[`${e}Setter`].call(this, t, e, i), s && (s[e] = t);
3023
+ let s = this.div?.style;
3024
+ eJ.prototype[`${e}Setter`].call(this, t, e, i), s && (i.style[e] = s[e] = t);
3019
3025
  }
3020
3026
  let i5 = (t, e) => {
3021
3027
  if (!t.div) {
@@ -3036,6 +3042,8 @@ function requireHighcharts() {
3036
3042
  i.setAttribute("class", t), o.className = t;
3037
3043
  }, t.translateXSetter = t.translateYSetter = (e, i) => {
3038
3044
  t[i] = e, o.style["translateX" === i ? "left" : "top"] = `${e}px`, t.doTransform = true;
3045
+ }, t.scaleXSetter = t.scaleYSetter = (e, i) => {
3046
+ t[i] = e, t.doTransform = true;
3039
3047
  }, 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 () {
3040
3048
  return eJ.prototype.on.apply({
3041
3049
  element: o,
@@ -3390,7 +3398,7 @@ function requireHighcharts() {
3390
3398
  m,
3391
3399
  x,
3392
3400
  y = this.parameters.category || (o ? su(o[n], a[n], n) : n);
3393
- 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;
3401
+ 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;
3394
3402
  let b = {
3395
3403
  axis: e,
3396
3404
  chart: s,
@@ -3557,7 +3565,7 @@ function requireHighcharts() {
3557
3565
  d = s["minor" !== r ? "tickColor" : "minorTickColor"],
3558
3566
  c = this.mark,
3559
3567
  p = !c;
3560
- 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({
3568
+ 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({
3561
3569
  stroke: d,
3562
3570
  "stroke-width": l
3563
3571
  })), c[p ? "attr" : "animate"]({
@@ -3909,7 +3917,7 @@ function requireHighcharts() {
3909
3917
  A,
3910
3918
  P;
3911
3919
  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)) {
3912
- 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)) {
3920
+ 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)) {
3913
3921
  let t = c || 0;
3914
3922
  !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);
3915
3923
  }
@@ -4153,7 +4161,7 @@ function requireHighcharts() {
4153
4161
  let e = this.chart,
4154
4162
  i = this.horiz,
4155
4163
  s = this.options.labels,
4156
- o = Math.max(this.tickPositions.length - +!this.categories, 1),
4164
+ o = Math.max(this.tickPositions.length - !this.categories, 1),
4157
4165
  r = e.margin[3];
4158
4166
  if (t && sN(t.slotWidth)) return t.slotWidth;
4159
4167
  if (i && s.step < 2 && !this.isRadial) return s.rotation ? 0 : (this.staggerLines || 1) * this.len / o;
@@ -4299,7 +4307,7 @@ function requireHighcharts() {
4299
4307
  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);
4300
4308
  }
4301
4309
  renderLine() {
4302
- this.axisLine || (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({
4310
+ !this.axisLine && (this.axisLine = this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup), this.chart.styledMode || this.axisLine.attr({
4303
4311
  stroke: this.options.lineColor,
4304
4312
  "stroke-width": this.options.lineWidth,
4305
4313
  zIndex: 7
@@ -4461,10 +4469,7 @@ function requireHighcharts() {
4461
4469
  chartX: t?.chartX,
4462
4470
  chartY: t?.chartY,
4463
4471
  point: e
4464
- }), r = this.getPlotLinePath(l) || null), !sC(r)) {
4465
- this.hideCrosshair();
4466
- return;
4467
- }
4472
+ }), r = this.getPlotLinePath(l) || null), !sC(r)) return void this.hideCrosshair();
4468
4473
  n = this.categories && !this.isRadial, h || (this.cross = h = o.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (n ? "category " : "thin ") + (i.className || "")).attr({
4469
4474
  zIndex: sF(i.zIndex, 2)
4470
4475
  }).add(), !o.styledMode && (h.attr({
@@ -4811,6 +4816,7 @@ function requireHighcharts() {
4811
4816
  class: "highcharts-plot-" + (i ? "band" : "line") + "-label " + (t.className || ""),
4812
4817
  zIndex: s
4813
4818
  }), o.chart.styledMode || n.css(os({
4819
+ color: o.chart.options.title?.style.color,
4814
4820
  fontSize: "0.8em",
4815
4821
  textOverflow: i && !a ? "" : "ellipsis"
4816
4822
  }, t.style)), n.add());
@@ -4910,7 +4916,11 @@ function requireHighcharts() {
4910
4916
  e && (s += e[0], o += e[1]);
4911
4917
  }), s /= t.length, o /= t.length, this.shared && t.length > 1 && e && (r ? s = e.chartX : o = e.chartY), i = [s - n, o - a];
4912
4918
  }
4913
- return i.map(Math.round);
4919
+ let h = {
4920
+ point: t[0],
4921
+ ret: i
4922
+ };
4923
+ return ob(this, "getAnchor", h), h.ret.map(Math.round);
4914
4924
  }
4915
4925
  getClassName(t, e, i) {
4916
4926
  let s = this.options,
@@ -5119,7 +5129,8 @@ function requireHighcharts() {
5119
5129
  if (this.split && this.allowShared) this.renderSplit(f, a);else {
5120
5130
  let t = g,
5121
5131
  r = u;
5122
- 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))) {
5132
+ 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();
5133
+ {
5123
5134
  let t = this.getLabel(c && this.tt || {});
5124
5135
  (!s.style.width || d) && t.css({
5125
5136
  width: (this.outside ? this.getPlayingField() : i.spacingBox).width + "px"
@@ -5138,9 +5149,6 @@ function requireHighcharts() {
5138
5149
  series: m,
5139
5150
  h: p[2] || 0
5140
5151
  });
5141
- } else {
5142
- this.hide();
5143
- return;
5144
5152
  }
5145
5153
  }
5146
5154
  this.isHidden && this.label && this.label.attr({
@@ -5562,7 +5570,7 @@ function requireHighcharts() {
5562
5570
  }), r;
5563
5571
  }
5564
5572
  getNestedProperty(t) {
5565
- return t ? 0 === t.indexOf("custom.") ? oF(t, this.options) : this[t] : void 0;
5573
+ if (t) return 0 === t.indexOf("custom.") ? oF(t, this.options) : this[t];
5566
5574
  }
5567
5575
  getZone() {
5568
5576
  let t = this.series,
@@ -5851,7 +5859,7 @@ function requireHighcharts() {
5851
5859
  shapeType: r,
5852
5860
  attrs: l
5853
5861
  } = this.getSelectionMarkerAttrs(g, u);
5854
- (e.hasCartesianSeries || e.mapView) && this.hasZoom && f && !p && !m && (this.selectionMarker = m = e.renderer[r](), m.attr({
5862
+ this.hasZoom && f && !p && !m && (this.selectionMarker = m = e.renderer[r](), m.attr({
5855
5863
  class: "highcharts-selection-marker",
5856
5864
  zIndex: 7
5857
5865
  }).add(), e.styledMode || m.attr({
@@ -6059,7 +6067,7 @@ function requireHighcharts() {
6059
6067
  let e = this.chart,
6060
6068
  i = e.tooltip,
6061
6069
  s = this.normalize(t);
6062
- 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, {
6070
+ 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, {
6063
6071
  visiblePlotOnly: true
6064
6072
  })) && !i?.shouldStickOnContact(s) && (this.inClass(s.target, "highcharts-no-tooltip") ? this.reset(false, 0) : this.runPointActions(s));
6065
6073
  }
@@ -6171,7 +6179,7 @@ function requireHighcharts() {
6171
6179
  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) {
6172
6180
  let i,
6173
6181
  o = e.crosshair?.snap ?? true;
6174
- !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();
6182
+ 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();
6175
6183
  });
6176
6184
  }
6177
6185
  setDOMEvents() {
@@ -6228,7 +6236,7 @@ function requireHighcharts() {
6228
6236
  } = this;
6229
6237
  this.setHoverChartIndex(), 1 === (t = this.normalize(t)).touches.length ? s.isInsidePlot(t.chartX - s.plotLeft, t.chartY - s.plotTop, {
6230
6238
  visiblePlotOnly: true
6231
- }) && !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);
6239
+ }) && !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);
6232
6240
  }
6233
6241
  touchSelect(t) {
6234
6242
  return !!(this.chart.zooming.singleTouch && t.touches && 1 === t.touches.length);
@@ -6358,7 +6366,7 @@ function requireHighcharts() {
6358
6366
  f,
6359
6367
  m = r.marker,
6360
6368
  x = 0;
6361
- 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) {
6369
+ 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) {
6362
6370
  let t = [["M", x, g], ["L", n - x, g]];
6363
6371
  s.line.attr({
6364
6372
  d: t
@@ -6670,7 +6678,7 @@ function requireHighcharts() {
6670
6678
  let k = (t = v || t || []).length;
6671
6679
  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) {
6672
6680
  this.xIncrement = null, this.colorCounter = 0;
6673
- let e = d && k > d;
6681
+ let e = d && !a.relativeXValue && k > d;
6674
6682
  if (e) {
6675
6683
  let i = this.getFirstValidPoint(t),
6676
6684
  s = this.getFirstValidPoint(t, k - 1, -1),
@@ -6928,9 +6936,9 @@ function requireHighcharts() {
6928
6936
  plotX: o,
6929
6937
  plotY: r
6930
6938
  } = t;
6931
- return !!((i || !t.isNull && rV(r)) && (!e || s.isInsidePlot(o, r, {
6939
+ return (!!i || !t.isNull && !!rV(r)) && (!e || !!s.isInsidePlot(o, r, {
6932
6940
  inverted: s.inverted
6933
- }))) && false !== t.visible;
6941
+ })) && false !== t.visible;
6934
6942
  });
6935
6943
  }
6936
6944
  getSharedClipKey() {
@@ -7166,14 +7174,27 @@ function requireHighcharts() {
7166
7174
  i = this.yAxis,
7167
7175
  s = this.chart,
7168
7176
  o = s.inverted && !s.polar && e && this.invertible && "series" === t;
7169
- return s.inverted && (e = i, i = this.xAxis), {
7177
+ s.inverted && (e = i, i = this.xAxis);
7178
+ let r = {
7179
+ scale: 1,
7170
7180
  translateX: e ? e.left : s.plotLeft,
7171
7181
  translateY: i ? i.top : s.plotTop,
7182
+ name: t
7183
+ };
7184
+ rG(this, "getPlotBox", r);
7185
+ let {
7186
+ scale: a,
7187
+ translateX: n,
7188
+ translateY: h
7189
+ } = r;
7190
+ return {
7191
+ translateX: n,
7192
+ translateY: h,
7172
7193
  rotation: 90 * !!o,
7173
- rotationOriginX: o ? (e.len - i.len) / 2 : 0,
7174
- rotationOriginY: o ? (e.len + i.len) / 2 : 0,
7175
- scaleX: o ? -1 : 1,
7176
- scaleY: 1
7194
+ rotationOriginX: o ? a * (e.len - i.len) / 2 : 0,
7195
+ rotationOriginY: o ? a * (e.len + i.len) / 2 : 0,
7196
+ scaleX: o ? -a : a,
7197
+ scaleY: a
7177
7198
  };
7178
7199
  }
7179
7200
  removeEvents(t) {
@@ -7405,12 +7426,10 @@ function requireHighcharts() {
7405
7426
  });
7406
7427
  let f = false;
7407
7428
  if (rP[g]) {
7408
- if (f = g !== i.type, i.remove(false, false, false, true), f) {
7409
- if (s.propFromSeries(), Object.setPrototypeOf) Object.setPrototypeOf(i, rP[g].prototype);else {
7410
- let t = Object.hasOwnProperty.call(i, "hcEvents") && i.hcEvents;
7411
- for (c in n) i[c] = void 0;
7412
- rF(i, rP[g].prototype), t ? i.hcEvents = t : delete i.hcEvents;
7413
- }
7429
+ if (f = g !== i.type, i.remove(false, false, false, true), f) if (s.propFromSeries(), Object.setPrototypeOf) Object.setPrototypeOf(i, rP[g].prototype);else {
7430
+ let t = Object.hasOwnProperty.call(i, "hcEvents") && i.hcEvents;
7431
+ for (c in n) i[c] = void 0;
7432
+ rF(i, rP[g].prototype), t ? i.hcEvents = t : delete i.hcEvents;
7414
7433
  }
7415
7434
  } else rH(17, true, s, {
7416
7435
  missingModuleFor: g
@@ -8416,7 +8435,7 @@ function requireHighcharts() {
8416
8435
  let l = aL("div", {
8417
8436
  id: o
8418
8437
  }, t, r);
8419
- this.container = l, this.getChartSize(), h === this.chartWidth || (h = this.chartWidth, this.styledMode || aO(l, {
8438
+ this.container = l, this.getChartSize(), h !== this.chartWidth && (h = this.chartWidth, this.styledMode || aO(l, {
8420
8439
  width: aV(i.style?.width, h + "px")
8421
8440
  })), this.containerBox = this.getContainerBox(), this._cursor = l.style.cursor;
8422
8441
  let d = i.renderer || !aS ? eg.getRendererType(i.renderer) : iU;
@@ -8452,7 +8471,7 @@ function requireHighcharts() {
8452
8471
  let e = this,
8453
8472
  i = e.containerBox,
8454
8473
  s = e.getContainerBox();
8455
- 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 () {
8474
+ 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 () {
8456
8475
  e.container && e.setSize(void 0, void 0, false);
8457
8476
  }, 100 * !!t)), e.containerBox = s);
8458
8477
  }
@@ -8656,7 +8675,9 @@ function requireHighcharts() {
8656
8675
  }
8657
8676
  this.drawChartBox(), this.hasCartesianSeries ? o(t) : e?.length && o(e), this.seriesGroup || (this.seriesGroup = i.g("series-group").attr({
8658
8677
  zIndex: 3
8659
- }).shadow(this.options.chart.seriesGroupShadow).add()), this.renderSeries(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = true;
8678
+ }).shadow(this.options.chart.seriesGroupShadow).add()), this.dataLabelsGroup || (this.dataLabelsGroup = i.g("datalabels-group").attr({
8679
+ zIndex: 6
8680
+ }).add()), this.renderSeries(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = true;
8660
8681
  }
8661
8682
  addCredits(t) {
8662
8683
  let e = this,
@@ -8704,7 +8725,7 @@ function requireHighcharts() {
8704
8725
  options: t,
8705
8726
  title: e
8706
8727
  } = this;
8707
- !t || this.accessibility || (this.renderer.boxWrapper.attr({
8728
+ t && !this.accessibility && (this.renderer.boxWrapper.attr({
8708
8729
  role: "img",
8709
8730
  "aria-label": (e?.element.textContent || "").replace(/</g, "&lt;")
8710
8731
  }), 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));
@@ -8756,7 +8777,7 @@ function requireHighcharts() {
8756
8777
  className: "highcharts-loading highcharts-loading-hidden"
8757
8778
  }, null, e.container)), a || (e.loadingSpan = a = aL("span", {
8758
8779
  className: "highcharts-loading-inner"
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, {
8780
+ }, 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, {
8760
8781
  zIndex: 10
8761
8782
  })), aO(a, s.labelStyle), e.loadingShown || (aO(r, {
8762
8783
  opacity: 0,
@@ -8799,7 +8820,7 @@ function requireHighcharts() {
8799
8820
  }), l || n.setResponsive(false, true), t = aI(t, n.options), n.userOptions = aU(n.userOptions, t);
8800
8821
  let c = t.chart;
8801
8822
  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) {
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));
8823
+ -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));
8803
8824
  }), !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) {
8804
8825
  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);
8805
8826
  }), this.collectionsWithUpdate.forEach(function (e) {
@@ -8897,11 +8918,12 @@ function requireHighcharts() {
8897
8918
  {
8898
8919
  inverted: h,
8899
8920
  time: l
8900
- } = this,
8901
- d = false,
8921
+ } = this;
8922
+ this.hoverPoints?.forEach(t => t.setState()), aW(this, "transform", t);
8923
+ let d = t.hasZoomed || false,
8902
8924
  c,
8903
8925
  p;
8904
- for (let t of (this.hoverPoints?.forEach(t => t.setState()), e)) {
8926
+ for (let t of e) {
8905
8927
  let {
8906
8928
  horiz: e,
8907
8929
  len: g,
@@ -8918,45 +8940,52 @@ function requireHighcharts() {
8918
8940
  M = w - ((a[y] ?? t.pos) + b / 2 - t.pos) / k,
8919
8941
  S = m && !h || !m && h ? -1 : 1;
8920
8942
  if (!o && (w < 0 || w > t.len)) continue;
8921
- let T = t.toValue(M, true) + (r || t.isOrdinal ? 0 : u * S),
8922
- C = t.toValue(M + g / k, true) - (r || t.isOrdinal ? 0 : u * S || 0),
8923
- A = t.allExtremes;
8924
- if (T > C && ([T, C] = [C, T]), 1 === k && !o && "yAxis" === t.coll && !A) {
8943
+ let T = t.chart.polar || t.isOrdinal ? 0 : u * S || 0,
8944
+ C = t.toValue(M, true),
8945
+ A = t.toValue(M + g / k, true),
8946
+ P = C + T,
8947
+ L = A - T,
8948
+ O = t.allExtremes;
8949
+ if (r && r[t.coll].push({
8950
+ axis: t,
8951
+ min: Math.min(C, A),
8952
+ max: Math.max(C, A)
8953
+ }), P > L && ([P, L] = [L, P]), 1 === k && !o && "yAxis" === t.coll && !O) {
8925
8954
  for (let e of t.series) {
8926
8955
  let t = e.getExtremes(e.getProcessedData(true).modified.getColumn("y") || [], true);
8927
- A ?? (A = {
8956
+ O ?? (O = {
8928
8957
  dataMin: Number.MAX_VALUE,
8929
8958
  dataMax: -Number.MAX_VALUE
8930
- }), aG(t.dataMin) && aG(t.dataMax) && (A.dataMin = Math.min(t.dataMin, A.dataMin), A.dataMax = Math.max(t.dataMax, A.dataMax));
8959
+ }), aG(t.dataMin) && aG(t.dataMax) && (O.dataMin = Math.min(t.dataMin, O.dataMin), O.dataMax = Math.max(t.dataMax, O.dataMax));
8931
8960
  }
8932
- t.allExtremes = A;
8961
+ t.allExtremes = O;
8933
8962
  }
8934
8963
  let {
8935
- dataMin: P,
8936
- dataMax: L,
8937
- min: O,
8938
- max: E
8939
- } = az(t.getExtremes(), A || {}),
8940
- I = l.parse(f.min),
8941
- D = l.parse(f.max),
8942
- B = P ?? I,
8943
- N = L ?? D,
8944
- z = C - T,
8945
- R = t.categories ? 0 : Math.min(z, N - B),
8946
- W = B - R * (aE(I) ? 0 : f.minPadding),
8947
- H = N + R * (aE(D) ? 0 : f.maxPadding),
8948
- F = t.allowZoomOutside || 1 === k || "zoom" !== n && k > 1,
8949
- X = Math.min(I ?? W, W, F ? O : W),
8950
- G = Math.max(D ?? H, H, F ? E : H);
8951
- (!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({
8964
+ dataMin: E,
8965
+ dataMax: I,
8966
+ min: D,
8967
+ max: B
8968
+ } = az(t.getExtremes(), O || {}),
8969
+ N = l.parse(f.min),
8970
+ z = l.parse(f.max),
8971
+ R = E ?? N,
8972
+ W = I ?? z,
8973
+ H = L - P,
8974
+ F = t.categories ? 0 : Math.min(H, W - R),
8975
+ X = R - F * (aE(N) ? 0 : f.minPadding),
8976
+ G = W + F * (aE(z) ? 0 : f.maxPadding),
8977
+ j = t.allowZoomOutside || 1 === k || "zoom" !== n && k > 1,
8978
+ Y = Math.min(N ?? X, X, j ? D : X),
8979
+ U = Math.max(z ?? G, G, j ? B : G);
8980
+ (!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({
8952
8981
  axis: t,
8953
- min: T,
8954
- max: C
8955
- }) : (t.isPanning = "zoom" !== n, t.isPanning && (p = true), t.setExtremes(o ? void 0 : T, o ? void 0 : C, false, false, {
8982
+ min: P,
8983
+ max: L
8984
+ }) : (t.isPanning = "zoom" !== n, t.isPanning && (p = true), t.setExtremes(o ? void 0 : P, o ? void 0 : L, false, false, {
8956
8985
  move: M,
8957
8986
  trigger: n,
8958
8987
  scale: k
8959
- }), !o && (T > X || C < G) && "mousewheel" !== n && (c = true)), d = true), i && (this[e ? "mouseDownX" : "mouseDownY"] = i[e ? "chartX" : "chartY"]));
8988
+ }), !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"]));
8960
8989
  }
8961
8990
  return d && (r ? aW(this, "selection", r, () => {
8962
8991
  delete t.selection, t.trigger = "zoom", this.transform(t);
@@ -9124,7 +9153,7 @@ function requireHighcharts() {
9124
9153
  } = this.chart,
9125
9154
  r = this.fixedRenderer,
9126
9155
  a = ni.fixedSelectors;
9127
- 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);
9156
+ 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);
9128
9157
  for (let t of a) [].forEach.call(e.querySelectorAll(t), t => {
9129
9158
  (t.namespaceURI === r.SVG_NS ? r.box : r.box.parentNode).appendChild(t), t.style.pointerEvents = "auto";
9130
9159
  });
@@ -9546,7 +9575,7 @@ function requireHighcharts() {
9546
9575
  }));
9547
9576
  };
9548
9577
  t = t || this.points, a && (t = this.getStackPoints(t));
9549
- 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({
9578
+ 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({
9550
9579
  x: o,
9551
9580
  plotX: e,
9552
9581
  plotY: s
@@ -10028,7 +10057,7 @@ function requireHighcharts() {
10028
10057
  o && a && (e.placed = false), g || a && !p ? (e.show(), e.placed = true) : (e.hide(), e.placed = false);
10029
10058
  }
10030
10059
  function s() {
10031
- return this.plotGroup("dataLabelsGroup", "data-labels", this.hasRendered ? "inherit" : "hidden", this.options.dataLabels.zIndex || 6);
10060
+ return this.plotGroup("dataLabelsGroup", "data-labels", this.hasRendered ? "inherit" : "hidden", this.options.dataLabels.zIndex || 6, this.chart.dataLabelsGroup);
10032
10061
  }
10033
10062
  function o(t) {
10034
10063
  let e = this.hasRendered || 0,
@@ -10096,7 +10125,7 @@ function requireHighcharts() {
10096
10125
  zIndex: 1
10097
10126
  }, 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) => {
10098
10127
  void 0 === t && delete b[e];
10099
- })), !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({
10128
+ })), !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({
10100
10129
  width: f.width,
10101
10130
  textOverflow: f.textOverflow,
10102
10131
  whiteSpace: f.whiteSpace
@@ -11148,7 +11177,7 @@ function requireHighcharts() {
11148
11177
  let a = lA(...o.map(t => lC(i?.rules || [], e => e._id === t)).map(t => t?.chartOptions));
11149
11178
  a.isResponsiveOptions = true, o = o.toString() || void 0;
11150
11179
  let n = s?.ruleIds;
11151
- 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 = {
11180
+ 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 = {
11152
11181
  ruleIds: o,
11153
11182
  mergedOptions: a,
11154
11183
  undoOptions: r
@@ -13029,6 +13058,144 @@ const File = _ref => {
13029
13058
  }, /*#__PURE__*/React.createElement(Icons, rightsection === null || rightsection === void 0 ? void 0 : rightsection.icon)) : undefined)));
13030
13059
  };
13031
13060
 
13061
+ const ErrorModal = _ref => {
13062
+ let {
13063
+ context,
13064
+ id,
13065
+ innerProps
13066
+ } = _ref;
13067
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13068
+ size: "sm"
13069
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13070
+ fullWidth: true,
13071
+ mt: "md",
13072
+ onClick: () => context.closeModal(id)
13073
+ }, "Close modal"));
13074
+ };
13075
+
13076
+ const InfoModal = _ref => {
13077
+ let {
13078
+ context,
13079
+ id,
13080
+ innerProps
13081
+ } = _ref;
13082
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13083
+ size: "sm"
13084
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13085
+ fullWidth: true,
13086
+ mt: "md",
13087
+ onClick: () => context.closeModal(id)
13088
+ }, "Close modal"));
13089
+ };
13090
+
13091
+ const SimpleModal = _ref => {
13092
+ let {
13093
+ context,
13094
+ id,
13095
+ innerProps
13096
+ } = _ref;
13097
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13098
+ size: "sm"
13099
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13100
+ fullWidth: true,
13101
+ mt: "md",
13102
+ onClick: () => context.closeModal(id)
13103
+ }, "Close modal"));
13104
+ };
13105
+
13106
+ const SuccessModal = _ref => {
13107
+ let {
13108
+ context,
13109
+ id,
13110
+ innerProps
13111
+ } = _ref;
13112
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13113
+ size: "sm"
13114
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13115
+ fullWidth: true,
13116
+ mt: "md",
13117
+ onClick: () => context.closeModal(id)
13118
+ }, "Close modal"));
13119
+ };
13120
+
13121
+ const TwoFactorVerificationModal = _ref => {
13122
+ let {
13123
+ context,
13124
+ id,
13125
+ innerProps
13126
+ } = _ref;
13127
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(core.Text, {
13128
+ size: "sm"
13129
+ }, innerProps.modalBody), /*#__PURE__*/React.createElement(core.Button, {
13130
+ fullWidth: true,
13131
+ mt: "md",
13132
+ onClick: () => context.closeModal(id)
13133
+ }, "Close modal"));
13134
+ };
13135
+
13136
+ const useModal = () => {
13137
+ const ConfirmationModal = () => modals.modals.openConfirmModal({
13138
+ title: 'Confirmation',
13139
+ children: 'This is a confirmation modal',
13140
+ onConfirm: () => {
13141
+ console.log('Confirmed');
13142
+ }
13143
+ });
13144
+ const ErrorModal = () => modals.modals.openContextModal({
13145
+ modal: 'ErrorModal',
13146
+ title: 'Error',
13147
+ innerProps: {
13148
+ modalBody: 'This is an error modal'
13149
+ }
13150
+ });
13151
+ const InfoModal = () => modals.modals.openContextModal({
13152
+ modal: 'InfoModal',
13153
+ title: 'Info',
13154
+ innerProps: {
13155
+ modalBody: 'This is an info modal'
13156
+ }
13157
+ });
13158
+ const SimpleModal = () => modals.modals.openContextModal({
13159
+ modal: 'SimpleModal',
13160
+ title: 'Simple',
13161
+ innerProps: {
13162
+ modalBody: 'This is a simple modal'
13163
+ }
13164
+ });
13165
+ const SuccessModal = () => modals.modals.openContextModal({
13166
+ modal: 'SuccessModal',
13167
+ title: 'Success',
13168
+ innerProps: {
13169
+ modalBody: 'This is a success modal'
13170
+ }
13171
+ });
13172
+ const TwoFactorVerificationModal = () => modals.modals.openContextModal({
13173
+ modal: 'TwoFactorVerificationModal',
13174
+ title: 'Two Factor Verification',
13175
+ innerProps: {
13176
+ modalBody: 'This is a two factor verification modal'
13177
+ }
13178
+ });
13179
+ return {
13180
+ ConfirmationModal,
13181
+ ErrorModal,
13182
+ InfoModal,
13183
+ SimpleModal,
13184
+ SuccessModal,
13185
+ TwoFactorVerificationModal
13186
+ };
13187
+ };
13188
+
13189
+ const useManagedModals = () => {
13190
+ return {
13191
+ ErrorModal: ErrorModal,
13192
+ InfoModal: InfoModal,
13193
+ SimpleModal: SimpleModal,
13194
+ SuccessModal: SuccessModal,
13195
+ TwoFactorVerificationModal: TwoFactorVerificationModal
13196
+ };
13197
+ };
13198
+
13032
13199
  exports.ApplicationMenu = ApplicationMenu;
13033
13200
  exports.ApplicationPanel = ApplicationPanel;
13034
13201
  exports.AvatarLabelPanel = AvatarLabelPanel;
@@ -13037,8 +13204,10 @@ exports.DonutChart = DonutChart;
13037
13204
  exports.DynamicLogo = DynamicLogo;
13038
13205
  exports.DynamicShigaLogo = DynamicShigaLogo;
13039
13206
  exports.EqualizerColumn = EqualizerColumn;
13207
+ exports.ErrorModal = ErrorModal;
13040
13208
  exports.File = File;
13041
13209
  exports.Icons = Icons;
13210
+ exports.InfoModal = InfoModal;
13042
13211
  exports.LabelPanel = LabelPanel;
13043
13212
  exports.PageTitle = PageTitle;
13044
13213
  exports.PaymentMethod = PaymentMethod;
@@ -13047,12 +13216,17 @@ exports.SearchPanel = SearchPanel;
13047
13216
  exports.SideMenu = SideMenu;
13048
13217
  exports.SimpleArea = SimpleArea;
13049
13218
  exports.SimpleColumn = SimpleColumn;
13219
+ exports.SimpleModal = SimpleModal;
13050
13220
  exports.SimplePanel = SimplePanel;
13051
13221
  exports.SimpleTable = SimpleTable;
13052
13222
  exports.SimpleText = SimpleText;
13053
13223
  exports.StackedColumn = StackedColumn;
13054
13224
  exports.SubscriptionPlans = SubscriptionPlans;
13225
+ exports.SuccessModal = SuccessModal;
13055
13226
  exports.TitleWithIndex = TitleWithIndex;
13056
13227
  exports.TitledPanel = TitledPanel;
13228
+ exports.TwoFactorVerificationModal = TwoFactorVerificationModal;
13057
13229
  exports.UserMenu = UserMenu;
13058
13230
  exports.theme = theme;
13231
+ exports.useManagedModals = useManagedModals;
13232
+ exports.useModal = useModal;