@burdenoff/microfe-planmagnet 2026.930.21 → 2026.930.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  2. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  3. package/dist/node_modules/lodash/_assignValue.js +17 -0
  4. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  5. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  6. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  7. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  8. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  9. package/dist/node_modules/lodash/_baseClone.js +64 -0
  10. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  11. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  12. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  13. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  14. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  15. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  16. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  17. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  18. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  19. package/dist/node_modules/lodash/_baseSum.js +17 -0
  20. package/dist/node_modules/lodash/_baseSum.js.map +1 -0
  21. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  22. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  23. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  24. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  25. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  26. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  27. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  28. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  29. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  30. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  31. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  32. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  33. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  34. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  35. package/dist/node_modules/lodash/_copyArray.js +15 -0
  36. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  37. package/dist/node_modules/lodash/_copyObject.js +22 -0
  38. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  39. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  40. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  41. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  42. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  43. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  44. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  45. package/dist/node_modules/lodash/_flatRest.js +17 -0
  46. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  47. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  48. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  49. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  50. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  51. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  52. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  53. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  54. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  55. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  56. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  57. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  58. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  59. package/dist/node_modules/lodash/_parent.js +16 -0
  60. package/dist/node_modules/lodash/_parent.js.map +1 -0
  61. package/dist/node_modules/lodash/flatten.js +15 -0
  62. package/dist/node_modules/lodash/flatten.js.map +1 -0
  63. package/dist/node_modules/lodash/isMap.js +14 -0
  64. package/dist/node_modules/lodash/isMap.js.map +1 -0
  65. package/dist/node_modules/lodash/isSet.js +14 -0
  66. package/dist/node_modules/lodash/isSet.js.map +1 -0
  67. package/dist/node_modules/lodash/keysIn.js +17 -0
  68. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  69. package/dist/node_modules/lodash/maxBy.js +17 -0
  70. package/dist/node_modules/lodash/maxBy.js.map +1 -0
  71. package/dist/node_modules/lodash/omit.js +28 -0
  72. package/dist/node_modules/lodash/omit.js.map +1 -0
  73. package/dist/node_modules/lodash/sumBy.js +16 -0
  74. package/dist/node_modules/lodash/sumBy.js.map +1 -0
  75. package/dist/node_modules/recharts/es6/chart/Sankey.js +556 -0
  76. package/dist/node_modules/recharts/es6/chart/Sankey.js.map +1 -0
  77. package/dist/node_modules/recharts/es6/chart/Treemap.js +545 -0
  78. package/dist/node_modules/recharts/es6/chart/Treemap.js.map +1 -0
  79. package/dist/node_modules/recharts/es6/shape/Polygon.js +112 -0
  80. package/dist/node_modules/recharts/es6/shape/Polygon.js.map +1 -0
  81. package/dist/node_modules/recharts/es6/util/Constants.js +31 -0
  82. package/dist/node_modules/recharts/es6/util/Constants.js.map +1 -0
  83. package/dist/node_modules/recharts/es6/util/ReactUtils.js +15 -10
  84. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  85. package/dist/planmagnet/controls/AutomationRuleControls.js +10 -10
  86. package/dist/planmagnet/controls/CompetitorControls.js +7 -7
  87. package/dist/planmagnet/controls/FeatureControls.js +38 -38
  88. package/dist/planmagnet/controls/ProgramControls.js +8 -8
  89. package/dist/planmagnet/dependency/DependencyGraph.d.ts.map +1 -1
  90. package/dist/planmagnet/dependency/DependencyGraph.js +13 -10
  91. package/dist/planmagnet/dependency/DependencyGraph.js.map +1 -1
  92. package/dist/planmagnet/dependency/DependencyPanel.js +13 -13
  93. package/dist/planmagnet/dependency/GanttChart.d.ts.map +1 -1
  94. package/dist/planmagnet/dependency/GanttChart.js +11 -5
  95. package/dist/planmagnet/dependency/GanttChart.js.map +1 -1
  96. package/dist/planmagnet/pages/ActivityActivityPagePage.js +16 -16
  97. package/dist/planmagnet/pages/ActivityActivityPagePage.js.map +1 -1
  98. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
  99. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +91 -73
  100. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
  101. package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +6 -6
  102. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +4 -4
  103. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +11 -11
  104. package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.js +5 -5
  105. package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.js +5 -5
  106. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js +6 -6
  107. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js.map +1 -1
  108. package/dist/planmagnet/pages/IntegrationsSyncsPagePage.js +8 -8
  109. package/dist/planmagnet/pages/ProjectsBudgetsPagePage.js +10 -10
  110. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +6 -6
  111. package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +5 -5
  112. package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
  113. package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +4 -4
  114. package/dist/planmagnet/pages/analytics/StatusFlowCard.d.ts +8 -0
  115. package/dist/planmagnet/pages/analytics/StatusFlowCard.d.ts.map +1 -0
  116. package/dist/planmagnet/pages/analytics/StatusFlowCard.js +234 -0
  117. package/dist/planmagnet/pages/analytics/StatusFlowCard.js.map +1 -0
  118. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.d.ts +6 -0
  119. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.d.ts.map +1 -0
  120. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js +367 -0
  121. package/dist/planmagnet/pages/analytics/WorkBreakdownCard.js.map +1 -0
  122. package/dist/planmagnet/roadmaps/RoadmapControls.js +17 -17
  123. package/dist/planmagnet/utils/statusColor.d.ts +8 -9
  124. package/dist/planmagnet/utils/statusColor.d.ts.map +1 -1
  125. package/dist/planmagnet/utils/statusColor.js +8 -40
  126. package/dist/planmagnet/utils/statusColor.js.map +1 -1
  127. package/package.json +1 -1
@@ -0,0 +1,545 @@
1
+ import { __toESM as e } from "../../../../_virtual/_rolldown/runtime.js";
2
+ import t from "../../../clsx/dist/clsx.js";
3
+ import { require_isFunction as n } from "../../../lodash/isFunction.js";
4
+ import { require_get as r } from "../../../lodash/get.js";
5
+ import { require_isNaN as i } from "../../../lodash/isNaN.js";
6
+ import { uniqueId as a } from "../util/DataUtils.js";
7
+ import { filterProps as o, filterSvgElements as s, findChildByType as c, validateWidthHeight as l } from "../util/ReactUtils.js";
8
+ import { Surface as u } from "../container/Surface.js";
9
+ import { Layer as d } from "../container/Layer.js";
10
+ import { Global as f } from "../util/Global.js";
11
+ import { Tooltip as p } from "../component/Tooltip.js";
12
+ import { getStringSize as m } from "../util/DOMUtils.js";
13
+ import { getValueByDataKey as h } from "../util/ChartUtils.js";
14
+ import g from "../../../react-smooth/es6/index.js";
15
+ import { Rectangle as _ } from "../shape/Rectangle.js";
16
+ import { Polygon as v } from "../shape/Polygon.js";
17
+ import { require_omit as y } from "../../../lodash/omit.js";
18
+ import { COLOR_PANEL as b } from "../util/Constants.js";
19
+ import x, { PureComponent as S } from "react";
20
+ //#region node_modules/recharts/es6/chart/Treemap.js
21
+ var C = /* @__PURE__ */ e(i()), w = /* @__PURE__ */ e(n()), T = /* @__PURE__ */ e(y()), E = /* @__PURE__ */ e(r()), D = [
22
+ "width",
23
+ "height",
24
+ "className",
25
+ "style",
26
+ "children",
27
+ "type"
28
+ ];
29
+ function O(e) {
30
+ "@babel/helpers - typeof";
31
+ return O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
32
+ return typeof e;
33
+ } : function(e) {
34
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
35
+ }, O(e);
36
+ }
37
+ function k() {
38
+ return k = Object.assign ? Object.assign.bind() : function(e) {
39
+ for (var t = 1; t < arguments.length; t++) {
40
+ var n = arguments[t];
41
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
42
+ }
43
+ return e;
44
+ }, k.apply(this, arguments);
45
+ }
46
+ function A(e, t) {
47
+ if (e == null) return {};
48
+ var n = j(e, t), r, i;
49
+ if (Object.getOwnPropertySymbols) {
50
+ var a = Object.getOwnPropertySymbols(e);
51
+ for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
52
+ }
53
+ return n;
54
+ }
55
+ function j(e, t) {
56
+ if (e == null) return {};
57
+ var n = {};
58
+ for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) {
59
+ if (t.indexOf(r) >= 0) continue;
60
+ n[r] = e[r];
61
+ }
62
+ return n;
63
+ }
64
+ function ee(e, t) {
65
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
66
+ }
67
+ function M(e, t) {
68
+ for (var n = 0; n < t.length; n++) {
69
+ var r = t[n];
70
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, W(r.key), r);
71
+ }
72
+ }
73
+ function N(e, t, n) {
74
+ return t && M(e.prototype, t), n && M(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
75
+ }
76
+ function P(e, t, n) {
77
+ return t = R(t), F(e, L() ? Reflect.construct(t, n || [], R(e).constructor) : t.apply(e, n));
78
+ }
79
+ function F(e, t) {
80
+ if (t && (O(t) === "object" || typeof t == "function")) return t;
81
+ if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
82
+ return I(e);
83
+ }
84
+ function I(e) {
85
+ if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
86
+ return e;
87
+ }
88
+ function L() {
89
+ try {
90
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
91
+ } catch {}
92
+ return (L = function() {
93
+ return !!e;
94
+ })();
95
+ }
96
+ function R(e) {
97
+ return R = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
98
+ return e.__proto__ || Object.getPrototypeOf(e);
99
+ }, R(e);
100
+ }
101
+ function z(e, t) {
102
+ if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
103
+ e.prototype = Object.create(t && t.prototype, { constructor: {
104
+ value: e,
105
+ writable: !0,
106
+ configurable: !0
107
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && B(e, t);
108
+ }
109
+ function B(e, t) {
110
+ return B = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
111
+ return e.__proto__ = t, e;
112
+ }, B(e, t);
113
+ }
114
+ function V(e, t) {
115
+ var n = Object.keys(e);
116
+ if (Object.getOwnPropertySymbols) {
117
+ var r = Object.getOwnPropertySymbols(e);
118
+ t && (r = r.filter(function(t) {
119
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
120
+ })), n.push.apply(n, r);
121
+ }
122
+ return n;
123
+ }
124
+ function H(e) {
125
+ for (var t = 1; t < arguments.length; t++) {
126
+ var n = arguments[t] == null ? {} : arguments[t];
127
+ t % 2 ? V(Object(n), !0).forEach(function(t) {
128
+ U(e, t, n[t]);
129
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V(Object(n)).forEach(function(t) {
130
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
131
+ });
132
+ }
133
+ return e;
134
+ }
135
+ function U(e, t, n) {
136
+ return t = W(t), t in e ? Object.defineProperty(e, t, {
137
+ value: n,
138
+ enumerable: !0,
139
+ configurable: !0,
140
+ writable: !0
141
+ }) : e[t] = n, e;
142
+ }
143
+ function W(e) {
144
+ var t = G(e, "string");
145
+ return O(t) == "symbol" ? t : t + "";
146
+ }
147
+ function G(e, t) {
148
+ if (O(e) != "object" || !e) return e;
149
+ var n = e[Symbol.toPrimitive];
150
+ if (n !== void 0) {
151
+ var r = n.call(e, t || "default");
152
+ if (O(r) != "object") return r;
153
+ throw TypeError("@@toPrimitive must return a primitive value.");
154
+ }
155
+ return (t === "string" ? String : Number)(e);
156
+ }
157
+ var K = "value", q = function e(t) {
158
+ var n = t.depth, r = t.node, i = t.index, a = t.valueKey, o = r.children, s = n + 1, c = o && o.length ? o.map(function(t, n) {
159
+ return e({
160
+ depth: s,
161
+ node: t,
162
+ index: n,
163
+ valueKey: a
164
+ });
165
+ }) : null, l = o && o.length ? c.reduce(function(e, t) {
166
+ return e + t[K];
167
+ }, 0) : (0, C.default)(r[a]) || r[a] <= 0 ? 0 : r[a];
168
+ return H(H({}, r), {}, U(U(U({ children: c }, K, l), "depth", n), "index", i));
169
+ }, J = function(e) {
170
+ return {
171
+ x: e.x,
172
+ y: e.y,
173
+ width: e.width,
174
+ height: e.height
175
+ };
176
+ }, Y = function(e, t) {
177
+ var n = t < 0 ? 0 : t;
178
+ return e.map(function(e) {
179
+ var t = e[K] * n;
180
+ return H(H({}, e), {}, { area: (0, C.default)(t) || t <= 0 ? 0 : t });
181
+ });
182
+ }, X = function(e, t, n) {
183
+ var r = t * t, i = e.area * e.area, a = e.reduce(function(e, t) {
184
+ return {
185
+ min: Math.min(e.min, t.area),
186
+ max: Math.max(e.max, t.area)
187
+ };
188
+ }, {
189
+ min: Infinity,
190
+ max: 0
191
+ }), o = a.min, s = a.max;
192
+ return i ? Math.max(r * s * n / i, i / (r * o * n)) : Infinity;
193
+ }, te = function(e, t, n, r) {
194
+ var i = t ? Math.round(e.area / t) : 0;
195
+ (r || i > n.height) && (i = n.height);
196
+ for (var a = n.x, o, s = 0, c = e.length; s < c; s++) o = e[s], o.x = a, o.y = n.y, o.height = i, o.width = Math.min(i ? Math.round(o.area / i) : 0, n.x + n.width - a), a += o.width;
197
+ return o.width += n.x + n.width - a, H(H({}, n), {}, {
198
+ y: n.y + i,
199
+ height: n.height - i
200
+ });
201
+ }, ne = function(e, t, n, r) {
202
+ var i = t ? Math.round(e.area / t) : 0;
203
+ (r || i > n.width) && (i = n.width);
204
+ for (var a = n.y, o, s = 0, c = e.length; s < c; s++) o = e[s], o.x = n.x, o.y = a, o.width = i, o.height = Math.min(i ? Math.round(o.area / i) : 0, n.y + n.height - a), a += o.height;
205
+ return o && (o.height += n.y + n.height - a), H(H({}, n), {}, {
206
+ x: n.x + i,
207
+ width: n.width - i
208
+ });
209
+ }, Z = function(e, t, n, r) {
210
+ return t === n.width ? te(e, t, n, r) : ne(e, t, n, r);
211
+ }, Q = function e(t, n) {
212
+ var r = t.children;
213
+ if (r && r.length) {
214
+ var i = J(t), a = [], o = Infinity, s, c, l = Math.min(i.width, i.height), u = Y(r, i.width * i.height / t[K]), d = u.slice();
215
+ for (a.area = 0; d.length > 0;) a.push(s = d[0]), a.area += s.area, c = X(a, l, n), c <= o ? (d.shift(), o = c) : (a.area -= a.pop().area, i = Z(a, l, i, !1), l = Math.min(i.width, i.height), a.length = a.area = 0, o = Infinity);
216
+ return a.length &&= (i = Z(a, l, i, !0), a.area = 0), H(H({}, t), {}, { children: u.map(function(t) {
217
+ return e(t, n);
218
+ }) });
219
+ }
220
+ return t;
221
+ }, re = {
222
+ isTooltipActive: !1,
223
+ isAnimationFinished: !1,
224
+ activeNode: null,
225
+ formatRoot: null,
226
+ currentRoot: null,
227
+ nestIndex: []
228
+ }, $ = /* @__PURE__ */ function(e) {
229
+ function n() {
230
+ var e;
231
+ ee(this, n);
232
+ var t = [...arguments];
233
+ return e = P(this, n, [].concat(t)), U(e, "state", H({}, re)), U(e, "handleAnimationEnd", function() {
234
+ var t = e.props.onAnimationEnd;
235
+ e.setState({ isAnimationFinished: !0 }), (0, w.default)(t) && t();
236
+ }), U(e, "handleAnimationStart", function() {
237
+ var t = e.props.onAnimationStart;
238
+ e.setState({ isAnimationFinished: !1 }), (0, w.default)(t) && t();
239
+ }), e;
240
+ }
241
+ return z(n, e), N(n, [
242
+ {
243
+ key: "handleMouseEnter",
244
+ value: function(e, t) {
245
+ t.persist();
246
+ var n = this.props, r = n.onMouseEnter, i = n.children;
247
+ c(i, p) ? this.setState({
248
+ isTooltipActive: !0,
249
+ activeNode: e
250
+ }, function() {
251
+ r && r(e, t);
252
+ }) : r && r(e, t);
253
+ }
254
+ },
255
+ {
256
+ key: "handleMouseLeave",
257
+ value: function(e, t) {
258
+ t.persist();
259
+ var n = this.props, r = n.onMouseLeave, i = n.children;
260
+ c(i, p) ? this.setState({
261
+ isTooltipActive: !1,
262
+ activeNode: null
263
+ }, function() {
264
+ r && r(e, t);
265
+ }) : r && r(e, t);
266
+ }
267
+ },
268
+ {
269
+ key: "handleClick",
270
+ value: function(e) {
271
+ var t = this.props, n = t.onClick;
272
+ if (t.type === "nest" && e.children) {
273
+ var r = this.props, i = r.width, a = r.height, o = r.dataKey, s = r.aspectRatio, c = q({
274
+ depth: 0,
275
+ node: H(H({}, e), {}, {
276
+ x: 0,
277
+ y: 0,
278
+ width: i,
279
+ height: a
280
+ }),
281
+ index: 0,
282
+ valueKey: o
283
+ }), l = Q(c, s), u = this.state.nestIndex;
284
+ u.push(e), this.setState({
285
+ formatRoot: l,
286
+ currentRoot: c,
287
+ nestIndex: u
288
+ });
289
+ }
290
+ n && n(e);
291
+ }
292
+ },
293
+ {
294
+ key: "handleNestIndex",
295
+ value: function(e, t) {
296
+ var n = this.state.nestIndex, r = this.props, i = r.width, a = r.height, o = r.dataKey, s = r.aspectRatio, c = Q(q({
297
+ depth: 0,
298
+ node: H(H({}, e), {}, {
299
+ x: 0,
300
+ y: 0,
301
+ width: i,
302
+ height: a
303
+ }),
304
+ index: 0,
305
+ valueKey: o
306
+ }), s);
307
+ n = n.slice(0, t + 1), this.setState({
308
+ formatRoot: c,
309
+ currentRoot: e,
310
+ nestIndex: n
311
+ });
312
+ }
313
+ },
314
+ {
315
+ key: "renderItem",
316
+ value: function(e, t, n) {
317
+ var r = this, i = this.props, a = i.isAnimationActive, o = i.animationBegin, s = i.animationDuration, c = i.animationEasing, l = i.isUpdateAnimationActive, u = i.type, f = i.animationId, p = i.colorPanel, m = this.state.isAnimationFinished, h = t.width, _ = t.height, v = t.x, y = t.y, b = t.depth, S = parseInt(`${(Math.random() * 2 - 1) * h}`, 10), C = {};
318
+ return (n || u === "nest") && (C = {
319
+ onMouseEnter: this.handleMouseEnter.bind(this, t),
320
+ onMouseLeave: this.handleMouseLeave.bind(this, t),
321
+ onClick: this.handleClick.bind(this, t)
322
+ }), a ? /* @__PURE__ */ x.createElement(g, {
323
+ begin: o,
324
+ duration: s,
325
+ isActive: a,
326
+ easing: c,
327
+ key: `treemap-${f}`,
328
+ from: {
329
+ x: v,
330
+ y,
331
+ width: h,
332
+ height: _
333
+ },
334
+ to: {
335
+ x: v,
336
+ y,
337
+ width: h,
338
+ height: _
339
+ },
340
+ onAnimationStart: this.handleAnimationStart,
341
+ onAnimationEnd: this.handleAnimationEnd
342
+ }, function(n) {
343
+ var i = n.x, f = n.y, h = n.width, _ = n.height;
344
+ return /* @__PURE__ */ x.createElement(g, {
345
+ from: `translate(${S}px, ${S}px)`,
346
+ to: "translate(0, 0)",
347
+ attributeName: "transform",
348
+ begin: o,
349
+ easing: c,
350
+ isActive: a,
351
+ duration: s
352
+ }, /* @__PURE__ */ x.createElement(d, C, function() {
353
+ return b > 2 && !m ? null : r.constructor.renderContentItem(e, H(H({}, t), {}, {
354
+ isAnimationActive: a,
355
+ isUpdateAnimationActive: !l,
356
+ width: h,
357
+ height: _,
358
+ x: i,
359
+ y: f
360
+ }), u, p);
361
+ }()));
362
+ }) : /* @__PURE__ */ x.createElement(d, C, this.constructor.renderContentItem(e, H(H({}, t), {}, {
363
+ isAnimationActive: !1,
364
+ isUpdateAnimationActive: !1,
365
+ width: h,
366
+ height: _,
367
+ x: v,
368
+ y
369
+ }), u, p));
370
+ }
371
+ },
372
+ {
373
+ key: "renderNode",
374
+ value: function(e, t) {
375
+ var n = this, r = this.props, i = r.content, a = r.type, s = H(H(H({}, o(this.props, !1)), t), {}, { root: e }), c = !t.children || !t.children.length;
376
+ return !(this.state.currentRoot.children || []).filter(function(e) {
377
+ return e.depth === t.depth && e.name === t.name;
378
+ }).length && e.depth && a === "nest" ? null : /* @__PURE__ */ x.createElement(d, {
379
+ key: `recharts-treemap-node-${s.x}-${s.y}-${s.name}`,
380
+ className: `recharts-treemap-depth-${t.depth}`
381
+ }, this.renderItem(i, s, c), t.children && t.children.length ? t.children.map(function(e) {
382
+ return n.renderNode(t, e);
383
+ }) : null);
384
+ }
385
+ },
386
+ {
387
+ key: "renderAllNodes",
388
+ value: function() {
389
+ var e = this.state.formatRoot;
390
+ return e ? this.renderNode(e, e) : null;
391
+ }
392
+ },
393
+ {
394
+ key: "renderTooltip",
395
+ value: function() {
396
+ var e = this.props, t = e.children, n = e.nameKey, r = c(t, p);
397
+ if (!r) return null;
398
+ var i = this.props, a = i.width, o = i.height, s = this.state, l = s.isTooltipActive, u = s.activeNode, d = {
399
+ x: 0,
400
+ y: 0,
401
+ width: a,
402
+ height: o
403
+ }, f = u ? {
404
+ x: u.x + u.width / 2,
405
+ y: u.y + u.height / 2
406
+ } : null, m = l && u ? [{
407
+ payload: u,
408
+ name: h(u, n, ""),
409
+ value: h(u, K)
410
+ }] : [];
411
+ return /* @__PURE__ */ x.cloneElement(r, {
412
+ viewBox: d,
413
+ active: l,
414
+ coordinate: f,
415
+ label: "",
416
+ payload: m
417
+ });
418
+ }
419
+ },
420
+ {
421
+ key: "renderNestIndex",
422
+ value: function() {
423
+ var e = this, t = this.props, n = t.nameKey, r = t.nestIndexContent, i = this.state.nestIndex;
424
+ return /* @__PURE__ */ x.createElement("div", {
425
+ className: "recharts-treemap-nest-index-wrapper",
426
+ style: {
427
+ marginTop: "8px",
428
+ textAlign: "center"
429
+ }
430
+ }, i.map(function(t, i) {
431
+ var o = (0, E.default)(t, n, "root"), s = null;
432
+ return /* @__PURE__ */ x.isValidElement(r) && (s = /* @__PURE__ */ x.cloneElement(r, t, i)), s = (0, w.default)(r) ? r(t, i) : o, /* @__PURE__ */ x.createElement("div", {
433
+ onClick: e.handleNestIndex.bind(e, t, i),
434
+ key: `nest-index-${a()}`,
435
+ className: "recharts-treemap-nest-index-box",
436
+ style: {
437
+ cursor: "pointer",
438
+ display: "inline-block",
439
+ padding: "0 7px",
440
+ background: "#000",
441
+ color: "#fff",
442
+ marginRight: "3px"
443
+ }
444
+ }, s);
445
+ }));
446
+ }
447
+ },
448
+ {
449
+ key: "render",
450
+ value: function() {
451
+ if (!l(this)) return null;
452
+ var e = this.props, n = e.width, r = e.height, i = e.className, a = e.style, c = e.children, d = e.type, f = o(A(e, D), !1);
453
+ return /* @__PURE__ */ x.createElement("div", {
454
+ className: t("recharts-wrapper", i),
455
+ style: H(H({}, a), {}, {
456
+ position: "relative",
457
+ cursor: "default",
458
+ width: n,
459
+ height: r
460
+ }),
461
+ role: "region"
462
+ }, /* @__PURE__ */ x.createElement(u, k({}, f, {
463
+ width: n,
464
+ height: d === "nest" ? r - 30 : r
465
+ }), this.renderAllNodes(), s(c)), this.renderTooltip(), d === "nest" && this.renderNestIndex());
466
+ }
467
+ }
468
+ ], [{
469
+ key: "getDerivedStateFromProps",
470
+ value: function(e, t) {
471
+ if (e.data !== t.prevData || e.type !== t.prevType || e.width !== t.prevWidth || e.height !== t.prevHeight || e.dataKey !== t.prevDataKey || e.aspectRatio !== t.prevAspectRatio) {
472
+ var n = q({
473
+ depth: 0,
474
+ node: {
475
+ children: e.data,
476
+ x: 0,
477
+ y: 0,
478
+ width: e.width,
479
+ height: e.height
480
+ },
481
+ index: 0,
482
+ valueKey: e.dataKey
483
+ }), r = Q(n, e.aspectRatio);
484
+ return H(H({}, t), {}, {
485
+ formatRoot: r,
486
+ currentRoot: n,
487
+ nestIndex: [n],
488
+ prevAspectRatio: e.aspectRatio,
489
+ prevData: e.data,
490
+ prevWidth: e.width,
491
+ prevHeight: e.height,
492
+ prevDataKey: e.dataKey,
493
+ prevType: e.type
494
+ });
495
+ }
496
+ return null;
497
+ }
498
+ }, {
499
+ key: "renderContentItem",
500
+ value: function(e, t, n, r) {
501
+ if (/* @__PURE__ */ x.isValidElement(e)) return /* @__PURE__ */ x.cloneElement(e, t);
502
+ if ((0, w.default)(e)) return e(t);
503
+ var i = t.x, a = t.y, o = t.width, s = t.height, c = t.index, l = null;
504
+ o > 10 && s > 10 && t.children && n === "nest" && (l = /* @__PURE__ */ x.createElement(v, { points: [
505
+ {
506
+ x: i + 2,
507
+ y: a + s / 2
508
+ },
509
+ {
510
+ x: i + 6,
511
+ y: a + s / 2 + 3
512
+ },
513
+ {
514
+ x: i + 2,
515
+ y: a + s / 2 + 6
516
+ }
517
+ ] }));
518
+ var u = null, d = m(t.name);
519
+ o > 20 && s > 20 && d.width < o && d.height < s && (u = /* @__PURE__ */ x.createElement("text", {
520
+ x: i + 8,
521
+ y: a + s / 2 + 7,
522
+ fontSize: 14
523
+ }, t.name));
524
+ var f = r || b;
525
+ return /* @__PURE__ */ x.createElement("g", null, /* @__PURE__ */ x.createElement(_, k({
526
+ fill: t.depth < 2 ? f[c % f.length] : "rgba(255,255,255,0)",
527
+ stroke: "#fff"
528
+ }, (0, T.default)(t, "children"), { role: "img" })), l, u);
529
+ }
530
+ }]);
531
+ }(S);
532
+ U($, "displayName", "Treemap"), U($, "defaultProps", {
533
+ aspectRatio: .5 * (1 + Math.sqrt(5)),
534
+ dataKey: "value",
535
+ type: "flat",
536
+ isAnimationActive: !f.isSsr,
537
+ isUpdateAnimationActive: !f.isSsr,
538
+ animationBegin: 0,
539
+ animationDuration: 1500,
540
+ animationEasing: "linear"
541
+ });
542
+ //#endregion
543
+ export { $ as Treemap };
544
+
545
+ //# sourceMappingURL=Treemap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Treemap.js","names":["Smooth"],"sources":["../../../../../node_modules/recharts/es6/chart/Treemap.js"],"sourcesContent":["var _excluded = [\"width\", \"height\", \"className\", \"style\", \"children\", \"type\"];\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport isNan from 'lodash/isNaN';\nimport isFunction from 'lodash/isFunction';\nimport omit from 'lodash/omit';\nimport get from 'lodash/get';\nimport clsx from 'clsx';\n/**\n * @fileOverview TreemapChart\n */\nimport React, { PureComponent } from 'react';\nimport Smooth from 'react-smooth';\nimport { Tooltip } from '../component/Tooltip';\nimport { Layer } from '../container/Layer';\nimport { Surface } from '../container/Surface';\nimport { Polygon } from '../shape/Polygon';\nimport { Rectangle } from '../shape/Rectangle';\nimport { getValueByDataKey } from '../util/ChartUtils';\nimport { COLOR_PANEL } from '../util/Constants';\nimport { uniqueId } from '../util/DataUtils';\nimport { getStringSize } from '../util/DOMUtils';\nimport { Global } from '../util/Global';\nimport { filterSvgElements, findChildByType, validateWidthHeight, filterProps } from '../util/ReactUtils';\nvar NODE_VALUE_KEY = 'value';\nvar computeNode = function computeNode(_ref) {\n var depth = _ref.depth,\n node = _ref.node,\n index = _ref.index,\n valueKey = _ref.valueKey;\n var children = node.children;\n var childDepth = depth + 1;\n var computedChildren = children && children.length ? children.map(function (child, i) {\n return computeNode({\n depth: childDepth,\n node: child,\n index: i,\n valueKey: valueKey\n });\n }) : null;\n var nodeValue;\n if (children && children.length) {\n nodeValue = computedChildren.reduce(function (result, child) {\n return result + child[NODE_VALUE_KEY];\n }, 0);\n } else {\n // TODO need to verify valueKey\n nodeValue = isNan(node[valueKey]) || node[valueKey] <= 0 ? 0 : node[valueKey];\n }\n return _objectSpread(_objectSpread({}, node), {}, _defineProperty(_defineProperty(_defineProperty({\n children: computedChildren\n }, NODE_VALUE_KEY, nodeValue), \"depth\", depth), \"index\", index));\n};\nvar filterRect = function filterRect(node) {\n return {\n x: node.x,\n y: node.y,\n width: node.width,\n height: node.height\n };\n};\n\n// Compute the area for each child based on value & scale.\nvar getAreaOfChildren = function getAreaOfChildren(children, areaValueRatio) {\n var ratio = areaValueRatio < 0 ? 0 : areaValueRatio;\n return children.map(function (child) {\n var area = child[NODE_VALUE_KEY] * ratio;\n return _objectSpread(_objectSpread({}, child), {}, {\n area: isNan(area) || area <= 0 ? 0 : area\n });\n });\n};\n\n// Computes the score for the specified row, as the worst aspect ratio.\nvar getWorstScore = function getWorstScore(row, parentSize, aspectRatio) {\n var parentArea = parentSize * parentSize;\n var rowArea = row.area * row.area;\n var _row$reduce = row.reduce(function (result, child) {\n return {\n min: Math.min(result.min, child.area),\n max: Math.max(result.max, child.area)\n };\n }, {\n min: Infinity,\n max: 0\n }),\n min = _row$reduce.min,\n max = _row$reduce.max;\n return rowArea ? Math.max(parentArea * max * aspectRatio / rowArea, rowArea / (parentArea * min * aspectRatio)) : Infinity;\n};\nvar horizontalPosition = function horizontalPosition(row, parentSize, parentRect, isFlush) {\n var rowHeight = parentSize ? Math.round(row.area / parentSize) : 0;\n if (isFlush || rowHeight > parentRect.height) {\n rowHeight = parentRect.height;\n }\n var curX = parentRect.x;\n var child;\n for (var i = 0, len = row.length; i < len; i++) {\n child = row[i];\n child.x = curX;\n child.y = parentRect.y;\n child.height = rowHeight;\n child.width = Math.min(rowHeight ? Math.round(child.area / rowHeight) : 0, parentRect.x + parentRect.width - curX);\n curX += child.width;\n }\n // add the remain x to the last one of row\n child.width += parentRect.x + parentRect.width - curX;\n return _objectSpread(_objectSpread({}, parentRect), {}, {\n y: parentRect.y + rowHeight,\n height: parentRect.height - rowHeight\n });\n};\nvar verticalPosition = function verticalPosition(row, parentSize, parentRect, isFlush) {\n var rowWidth = parentSize ? Math.round(row.area / parentSize) : 0;\n if (isFlush || rowWidth > parentRect.width) {\n rowWidth = parentRect.width;\n }\n var curY = parentRect.y;\n var child;\n for (var i = 0, len = row.length; i < len; i++) {\n child = row[i];\n child.x = parentRect.x;\n child.y = curY;\n child.width = rowWidth;\n child.height = Math.min(rowWidth ? Math.round(child.area / rowWidth) : 0, parentRect.y + parentRect.height - curY);\n curY += child.height;\n }\n if (child) {\n child.height += parentRect.y + parentRect.height - curY;\n }\n return _objectSpread(_objectSpread({}, parentRect), {}, {\n x: parentRect.x + rowWidth,\n width: parentRect.width - rowWidth\n });\n};\nvar position = function position(row, parentSize, parentRect, isFlush) {\n if (parentSize === parentRect.width) {\n return horizontalPosition(row, parentSize, parentRect, isFlush);\n }\n return verticalPosition(row, parentSize, parentRect, isFlush);\n};\n\n// Recursively arranges the specified node's children into squarified rows.\nvar squarify = function squarify(node, aspectRatio) {\n var children = node.children;\n if (children && children.length) {\n var rect = filterRect(node);\n // maybe a bug\n var row = [];\n var best = Infinity; // the best row score so far\n var child, score; // the current row score\n var size = Math.min(rect.width, rect.height); // initial orientation\n var scaleChildren = getAreaOfChildren(children, rect.width * rect.height / node[NODE_VALUE_KEY]);\n var tempChildren = scaleChildren.slice();\n row.area = 0;\n while (tempChildren.length > 0) {\n // row first\n // eslint-disable-next-line prefer-destructuring\n row.push(child = tempChildren[0]);\n row.area += child.area;\n score = getWorstScore(row, size, aspectRatio);\n if (score <= best) {\n // continue with this orientation\n tempChildren.shift();\n best = score;\n } else {\n // abort, and try a different orientation\n row.area -= row.pop().area;\n rect = position(row, size, rect, false);\n size = Math.min(rect.width, rect.height);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n if (row.length) {\n rect = position(row, size, rect, true);\n row.length = row.area = 0;\n }\n return _objectSpread(_objectSpread({}, node), {}, {\n children: scaleChildren.map(function (c) {\n return squarify(c, aspectRatio);\n })\n });\n }\n return node;\n};\nvar defaultState = {\n isTooltipActive: false,\n isAnimationFinished: false,\n activeNode: null,\n formatRoot: null,\n currentRoot: null,\n nestIndex: []\n};\nexport var Treemap = /*#__PURE__*/function (_PureComponent) {\n function Treemap() {\n var _this;\n _classCallCheck(this, Treemap);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Treemap, [].concat(args));\n _defineProperty(_this, \"state\", _objectSpread({}, defaultState));\n _defineProperty(_this, \"handleAnimationEnd\", function () {\n var onAnimationEnd = _this.props.onAnimationEnd;\n _this.setState({\n isAnimationFinished: true\n });\n if (isFunction(onAnimationEnd)) {\n onAnimationEnd();\n }\n });\n _defineProperty(_this, \"handleAnimationStart\", function () {\n var onAnimationStart = _this.props.onAnimationStart;\n _this.setState({\n isAnimationFinished: false\n });\n if (isFunction(onAnimationStart)) {\n onAnimationStart();\n }\n });\n return _this;\n }\n _inherits(Treemap, _PureComponent);\n return _createClass(Treemap, [{\n key: \"handleMouseEnter\",\n value: function handleMouseEnter(node, e) {\n e.persist();\n var _this$props = this.props,\n onMouseEnter = _this$props.onMouseEnter,\n children = _this$props.children;\n var tooltipItem = findChildByType(children, Tooltip);\n if (tooltipItem) {\n this.setState({\n isTooltipActive: true,\n activeNode: node\n }, function () {\n if (onMouseEnter) {\n onMouseEnter(node, e);\n }\n });\n } else if (onMouseEnter) {\n onMouseEnter(node, e);\n }\n }\n }, {\n key: \"handleMouseLeave\",\n value: function handleMouseLeave(node, e) {\n e.persist();\n var _this$props2 = this.props,\n onMouseLeave = _this$props2.onMouseLeave,\n children = _this$props2.children;\n var tooltipItem = findChildByType(children, Tooltip);\n if (tooltipItem) {\n this.setState({\n isTooltipActive: false,\n activeNode: null\n }, function () {\n if (onMouseLeave) {\n onMouseLeave(node, e);\n }\n });\n } else if (onMouseLeave) {\n onMouseLeave(node, e);\n }\n }\n }, {\n key: \"handleClick\",\n value: function handleClick(node) {\n var _this$props3 = this.props,\n onClick = _this$props3.onClick,\n type = _this$props3.type;\n if (type === 'nest' && node.children) {\n var _this$props4 = this.props,\n width = _this$props4.width,\n height = _this$props4.height,\n dataKey = _this$props4.dataKey,\n aspectRatio = _this$props4.aspectRatio;\n var root = computeNode({\n depth: 0,\n node: _objectSpread(_objectSpread({}, node), {}, {\n x: 0,\n y: 0,\n width: width,\n height: height\n }),\n index: 0,\n valueKey: dataKey\n });\n var formatRoot = squarify(root, aspectRatio);\n var nestIndex = this.state.nestIndex;\n nestIndex.push(node);\n this.setState({\n formatRoot: formatRoot,\n currentRoot: root,\n nestIndex: nestIndex\n });\n }\n if (onClick) {\n onClick(node);\n }\n }\n }, {\n key: \"handleNestIndex\",\n value: function handleNestIndex(node, i) {\n var nestIndex = this.state.nestIndex;\n var _this$props5 = this.props,\n width = _this$props5.width,\n height = _this$props5.height,\n dataKey = _this$props5.dataKey,\n aspectRatio = _this$props5.aspectRatio;\n var root = computeNode({\n depth: 0,\n node: _objectSpread(_objectSpread({}, node), {}, {\n x: 0,\n y: 0,\n width: width,\n height: height\n }),\n index: 0,\n valueKey: dataKey\n });\n var formatRoot = squarify(root, aspectRatio);\n nestIndex = nestIndex.slice(0, i + 1);\n this.setState({\n formatRoot: formatRoot,\n currentRoot: node,\n nestIndex: nestIndex\n });\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(content, nodeProps, isLeaf) {\n var _this2 = this;\n var _this$props6 = this.props,\n isAnimationActive = _this$props6.isAnimationActive,\n animationBegin = _this$props6.animationBegin,\n animationDuration = _this$props6.animationDuration,\n animationEasing = _this$props6.animationEasing,\n isUpdateAnimationActive = _this$props6.isUpdateAnimationActive,\n type = _this$props6.type,\n animationId = _this$props6.animationId,\n colorPanel = _this$props6.colorPanel;\n var isAnimationFinished = this.state.isAnimationFinished;\n var width = nodeProps.width,\n height = nodeProps.height,\n x = nodeProps.x,\n y = nodeProps.y,\n depth = nodeProps.depth;\n var translateX = parseInt(\"\".concat((Math.random() * 2 - 1) * width), 10);\n var event = {};\n if (isLeaf || type === 'nest') {\n event = {\n onMouseEnter: this.handleMouseEnter.bind(this, nodeProps),\n onMouseLeave: this.handleMouseLeave.bind(this, nodeProps),\n onClick: this.handleClick.bind(this, nodeProps)\n };\n }\n if (!isAnimationActive) {\n return /*#__PURE__*/React.createElement(Layer, event, this.constructor.renderContentItem(content, _objectSpread(_objectSpread({}, nodeProps), {}, {\n isAnimationActive: false,\n isUpdateAnimationActive: false,\n width: width,\n height: height,\n x: x,\n y: y\n }), type, colorPanel));\n }\n return /*#__PURE__*/React.createElement(Smooth, {\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n key: \"treemap-\".concat(animationId),\n from: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n to: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n onAnimationStart: this.handleAnimationStart,\n onAnimationEnd: this.handleAnimationEnd\n }, function (_ref2) {\n var currX = _ref2.x,\n currY = _ref2.y,\n currWidth = _ref2.width,\n currHeight = _ref2.height;\n return /*#__PURE__*/React.createElement(Smooth, {\n from: \"translate(\".concat(translateX, \"px, \").concat(translateX, \"px)\"),\n to: \"translate(0, 0)\",\n attributeName: \"transform\",\n begin: animationBegin,\n easing: animationEasing,\n isActive: isAnimationActive,\n duration: animationDuration\n }, /*#__PURE__*/React.createElement(Layer, event, function () {\n // when animation Duration , only render depth=1 nodes\n if (depth > 2 && !isAnimationFinished) {\n return null;\n }\n return _this2.constructor.renderContentItem(content, _objectSpread(_objectSpread({}, nodeProps), {}, {\n isAnimationActive: isAnimationActive,\n isUpdateAnimationActive: !isUpdateAnimationActive,\n width: currWidth,\n height: currHeight,\n x: currX,\n y: currY\n }), type, colorPanel);\n }()));\n });\n }\n }, {\n key: \"renderNode\",\n value: function renderNode(root, node) {\n var _this3 = this;\n var _this$props7 = this.props,\n content = _this$props7.content,\n type = _this$props7.type;\n var nodeProps = _objectSpread(_objectSpread(_objectSpread({}, filterProps(this.props, false)), node), {}, {\n root: root\n });\n var isLeaf = !node.children || !node.children.length;\n var currentRoot = this.state.currentRoot;\n var isCurrentRootChild = (currentRoot.children || []).filter(function (item) {\n return item.depth === node.depth && item.name === node.name;\n });\n if (!isCurrentRootChild.length && root.depth && type === 'nest') {\n return null;\n }\n return /*#__PURE__*/React.createElement(Layer, {\n key: \"recharts-treemap-node-\".concat(nodeProps.x, \"-\").concat(nodeProps.y, \"-\").concat(nodeProps.name),\n className: \"recharts-treemap-depth-\".concat(node.depth)\n }, this.renderItem(content, nodeProps, isLeaf), node.children && node.children.length ? node.children.map(function (child) {\n return _this3.renderNode(node, child);\n }) : null);\n }\n }, {\n key: \"renderAllNodes\",\n value: function renderAllNodes() {\n var formatRoot = this.state.formatRoot;\n if (!formatRoot) {\n return null;\n }\n return this.renderNode(formatRoot, formatRoot);\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n var _this$props8 = this.props,\n children = _this$props8.children,\n nameKey = _this$props8.nameKey;\n var tooltipItem = findChildByType(children, Tooltip);\n if (!tooltipItem) {\n return null;\n }\n var _this$props9 = this.props,\n width = _this$props9.width,\n height = _this$props9.height;\n var _this$state = this.state,\n isTooltipActive = _this$state.isTooltipActive,\n activeNode = _this$state.activeNode;\n var viewBox = {\n x: 0,\n y: 0,\n width: width,\n height: height\n };\n var coordinate = activeNode ? {\n x: activeNode.x + activeNode.width / 2,\n y: activeNode.y + activeNode.height / 2\n } : null;\n var payload = isTooltipActive && activeNode ? [{\n payload: activeNode,\n name: getValueByDataKey(activeNode, nameKey, ''),\n value: getValueByDataKey(activeNode, NODE_VALUE_KEY)\n }] : [];\n return /*#__PURE__*/React.cloneElement(tooltipItem, {\n viewBox: viewBox,\n active: isTooltipActive,\n coordinate: coordinate,\n label: '',\n payload: payload\n });\n }\n\n // render nest treemap\n }, {\n key: \"renderNestIndex\",\n value: function renderNestIndex() {\n var _this4 = this;\n var _this$props10 = this.props,\n nameKey = _this$props10.nameKey,\n nestIndexContent = _this$props10.nestIndexContent;\n var nestIndex = this.state.nestIndex;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"recharts-treemap-nest-index-wrapper\",\n style: {\n marginTop: '8px',\n textAlign: 'center'\n }\n }, nestIndex.map(function (item, i) {\n // TODO need to verify nameKey type\n var name = get(item, nameKey, 'root');\n var content = null;\n if ( /*#__PURE__*/React.isValidElement(nestIndexContent)) {\n content = /*#__PURE__*/React.cloneElement(nestIndexContent, item, i);\n }\n if (isFunction(nestIndexContent)) {\n content = nestIndexContent(item, i);\n } else {\n content = name;\n }\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n onClick: _this4.handleNestIndex.bind(_this4, item, i),\n key: \"nest-index-\".concat(uniqueId()),\n className: \"recharts-treemap-nest-index-box\",\n style: {\n cursor: 'pointer',\n display: 'inline-block',\n padding: '0 7px',\n background: '#000',\n color: '#fff',\n marginRight: '3px'\n }\n }, content)\n );\n }));\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!validateWidthHeight(this)) {\n return null;\n }\n var _this$props11 = this.props,\n width = _this$props11.width,\n height = _this$props11.height,\n className = _this$props11.className,\n style = _this$props11.style,\n children = _this$props11.children,\n type = _this$props11.type,\n others = _objectWithoutProperties(_this$props11, _excluded);\n var attrs = filterProps(others, false);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx('recharts-wrapper', className),\n style: _objectSpread(_objectSpread({}, style), {}, {\n position: 'relative',\n cursor: 'default',\n width: width,\n height: height\n }),\n role: \"region\"\n }, /*#__PURE__*/React.createElement(Surface, _extends({}, attrs, {\n width: width,\n height: type === 'nest' ? height - 30 : height\n }), this.renderAllNodes(), filterSvgElements(children)), this.renderTooltip(), type === 'nest' && this.renderNestIndex());\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.data !== prevState.prevData || nextProps.type !== prevState.prevType || nextProps.width !== prevState.prevWidth || nextProps.height !== prevState.prevHeight || nextProps.dataKey !== prevState.prevDataKey || nextProps.aspectRatio !== prevState.prevAspectRatio) {\n var root = computeNode({\n depth: 0,\n node: {\n children: nextProps.data,\n x: 0,\n y: 0,\n width: nextProps.width,\n height: nextProps.height\n },\n index: 0,\n valueKey: nextProps.dataKey\n });\n var formatRoot = squarify(root, nextProps.aspectRatio);\n return _objectSpread(_objectSpread({}, prevState), {}, {\n formatRoot: formatRoot,\n currentRoot: root,\n nestIndex: [root],\n prevAspectRatio: nextProps.aspectRatio,\n prevData: nextProps.data,\n prevWidth: nextProps.width,\n prevHeight: nextProps.height,\n prevDataKey: nextProps.dataKey,\n prevType: nextProps.type\n });\n }\n return null;\n }\n }, {\n key: \"renderContentItem\",\n value: function renderContentItem(content, nodeProps, type, colorPanel) {\n if ( /*#__PURE__*/React.isValidElement(content)) {\n return /*#__PURE__*/React.cloneElement(content, nodeProps);\n }\n if (isFunction(content)) {\n return content(nodeProps);\n }\n // optimize default shape\n var x = nodeProps.x,\n y = nodeProps.y,\n width = nodeProps.width,\n height = nodeProps.height,\n index = nodeProps.index;\n var arrow = null;\n if (width > 10 && height > 10 && nodeProps.children && type === 'nest') {\n arrow = /*#__PURE__*/React.createElement(Polygon, {\n points: [{\n x: x + 2,\n y: y + height / 2\n }, {\n x: x + 6,\n y: y + height / 2 + 3\n }, {\n x: x + 2,\n y: y + height / 2 + 6\n }]\n });\n }\n var text = null;\n var nameSize = getStringSize(nodeProps.name);\n if (width > 20 && height > 20 && nameSize.width < width && nameSize.height < height) {\n text = /*#__PURE__*/React.createElement(\"text\", {\n x: x + 8,\n y: y + height / 2 + 7,\n fontSize: 14\n }, nodeProps.name);\n }\n var colors = colorPanel || COLOR_PANEL;\n return /*#__PURE__*/React.createElement(\"g\", null, /*#__PURE__*/React.createElement(Rectangle, _extends({\n fill: nodeProps.depth < 2 ? colors[index % colors.length] : 'rgba(255,255,255,0)',\n stroke: \"#fff\"\n }, omit(nodeProps, 'children'), {\n role: \"img\"\n })), arrow, text);\n }\n }]);\n}(PureComponent);\n_defineProperty(Treemap, \"displayName\", 'Treemap');\n_defineProperty(Treemap, \"defaultProps\", {\n aspectRatio: 0.5 * (1 + Math.sqrt(5)),\n dataKey: 'value',\n type: 'flat',\n isAnimationActive: !Global.isSsr,\n isUpdateAnimationActive: !Global.isSsr,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'linear'\n});"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;oHAAI,IAAY;CAAC;CAAS;CAAU;CAAa;CAAS;CAAY;CAAO;AAC7E,SAAS,EAAQ,GAAG;AAAE;AAA2B,QAAO,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAU,GAAG;AAAE,SAAO,OAAO;KAAO,SAAU,GAAG;AAAE,SAAO,KAAmB,OAAO,UAArB,cAA+B,EAAE,gBAAgB,UAAU,MAAM,OAAO,YAAY,WAAW,OAAO;IAAM,EAAQ,EAAE;;AAC3T,SAAS,IAAW;AAAsR,QAApR,IAAW,OAAO,SAAS,OAAO,OAAO,MAAM,GAAG,SAAU,GAAQ;AAAE,OAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;GAAE,IAAI,IAAS,UAAU;AAAI,QAAK,IAAI,KAAO,EAAU,CAAI,OAAO,UAAU,eAAe,KAAK,GAAQ,EAAI,KAAI,EAAO,KAAO,EAAO;;AAAY,SAAO;IAAkB,EAAS,MAAM,MAAM,UAAU;;AAChV,SAAS,EAAyB,GAAQ,GAAU;AAAE,KAAI,K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