@undp/data-viz 2.5.1 → 2.5.3
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.
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +297 -289
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +307 -299
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +281 -279
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +4 -4
- package/dist/CsvDownloadButton.cjs.map +1 -1
- package/dist/CsvDownloadButton.js +268 -266
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +277 -269
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.cjs.map +1 -1
- package/dist/ExcelDownloadButton.js +21 -19
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +299 -291
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.cjs.map +1 -1
- package/dist/ImageDownloadButton.js +19 -17
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.cjs.map +1 -1
- package/dist/SVGDownloadButton.js +20 -18
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +1 -1
- package/dist/ScatterPlot.js +107 -107
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { j as J, c as Ae } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
1
|
+
import { j as J, c as Ae, m as je } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
2
|
import Te from "react";
|
|
3
|
-
import { d as
|
|
4
|
-
const
|
|
3
|
+
import { d as $e, u as Ie } from "./index-ApTBN0kp.js";
|
|
4
|
+
const ke = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Se = ((r) => Array.isArray(r) && r.every(
|
|
5
5
|
(e) => typeof e == "object" && !(e instanceof Array)
|
|
6
|
-
)),
|
|
6
|
+
)), Me = ((r) => Array.isArray(r) && r.every(
|
|
7
7
|
(e) => Array.isArray(e)
|
|
8
|
-
)),
|
|
8
|
+
)), Fe = ((r) => Array.from(
|
|
9
9
|
r.map((e) => Object.keys(e)).reduce((e, i) => /* @__PURE__ */ new Set([...e, ...i]), [])
|
|
10
|
-
)),
|
|
11
|
-
e = e ||
|
|
12
|
-
let i = e,
|
|
13
|
-
Se(e) && (i = e.map((c) => c.label),
|
|
14
|
-
const u = r.map((c) =>
|
|
10
|
+
)), De = (r, e) => {
|
|
11
|
+
e = e || Fe(r);
|
|
12
|
+
let i = e, o = e;
|
|
13
|
+
Se(e) && (i = e.map((c) => c.label), o = e.map((c) => c.key));
|
|
14
|
+
const u = r.map((c) => o.map((l) => Le(l, c)));
|
|
15
15
|
return [i, ...u];
|
|
16
|
-
},
|
|
17
|
-
const i = r.replace(/\[([^\]]+)]/g, ".$1").split(".").reduce(function(
|
|
18
|
-
const f =
|
|
16
|
+
}, Le = (r, e) => {
|
|
17
|
+
const i = r.replace(/\[([^\]]+)]/g, ".$1").split(".").reduce(function(o, u, c, l) {
|
|
18
|
+
const f = o[u];
|
|
19
19
|
if (f == null)
|
|
20
20
|
l.splice(1);
|
|
21
21
|
else
|
|
22
22
|
return f;
|
|
23
23
|
}, e);
|
|
24
24
|
return i === void 0 ? r in e ? e[r] : "" : i;
|
|
25
|
-
},
|
|
26
|
-
(
|
|
25
|
+
}, qe = (r) => typeof r > "u" || r === null ? "" : r, Ce = ((r, e = ",", i = '"') => r.filter((o) => o).map(
|
|
26
|
+
(o) => o.map((u) => qe(u)).map((u) => `${i}${u}${i}`).join(e)
|
|
27
27
|
).join(`
|
|
28
|
-
`)),
|
|
29
|
-
${r}` : r.replace(/"/g, '""')), Oe = (r, e, i,
|
|
30
|
-
if (Se(r)) return
|
|
31
|
-
if (
|
|
32
|
-
if (typeof r == "string") return
|
|
28
|
+
`)), Ye = ((r, e, i, o) => Ce(e ? [e, ...r] : r, i, o)), Ue = ((r, e, i, o) => Ce(De(r, e), i, o)), We = ((r, e, i, o) => e ? `${e.join(i)}
|
|
29
|
+
${r}` : r.replace(/"/g, '""')), Oe = (r, e, i, o) => {
|
|
30
|
+
if (Se(r)) return Ue(r, e, i, o);
|
|
31
|
+
if (Me(r)) return Ye(r, e, i, o);
|
|
32
|
+
if (typeof r == "string") return We(r, e, i);
|
|
33
33
|
throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ');
|
|
34
|
-
}, Re = ((r, e, i,
|
|
35
|
-
const c = Oe(r, i,
|
|
36
|
-
return typeof
|
|
34
|
+
}, Re = ((r, e, i, o, u) => {
|
|
35
|
+
const c = Oe(r, i, o, u), l = ke() ? "application/csv" : "text/csv", f = new Blob([e ? "\uFEFF" : "", c], { type: l }), g = `data:${l};charset=utf-8,${e ? "\uFEFF" : ""}${c}`, y = window.URL || window.webkitURL;
|
|
36
|
+
return typeof y.createObjectURL > "u" ? g : y.createObjectURL(f);
|
|
37
37
|
});
|
|
38
38
|
var N = { exports: {} }, H = { exports: {} }, O = {};
|
|
39
39
|
var le;
|
|
40
|
-
function
|
|
40
|
+
function ze() {
|
|
41
41
|
if (le) return O;
|
|
42
42
|
le = 1;
|
|
43
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106,
|
|
44
|
-
function
|
|
45
|
-
if (typeof
|
|
46
|
-
var Y =
|
|
43
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
44
|
+
function A(n) {
|
|
45
|
+
if (typeof n == "object" && n !== null) {
|
|
46
|
+
var Y = n.$$typeof;
|
|
47
47
|
switch (Y) {
|
|
48
48
|
case e:
|
|
49
|
-
switch (
|
|
49
|
+
switch (n = n.type, n) {
|
|
50
50
|
case g:
|
|
51
|
-
case
|
|
52
|
-
case
|
|
51
|
+
case y:
|
|
52
|
+
case o:
|
|
53
53
|
case c:
|
|
54
54
|
case u:
|
|
55
55
|
case C:
|
|
56
|
-
return
|
|
56
|
+
return n;
|
|
57
57
|
default:
|
|
58
|
-
switch (
|
|
58
|
+
switch (n = n && n.$$typeof, n) {
|
|
59
59
|
case f:
|
|
60
60
|
case d:
|
|
61
61
|
case I:
|
|
62
62
|
case j:
|
|
63
63
|
case l:
|
|
64
|
-
return
|
|
64
|
+
return n;
|
|
65
65
|
default:
|
|
66
66
|
return Y;
|
|
67
67
|
}
|
|
@@ -71,56 +71,56 @@ function We() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function x(n) {
|
|
75
|
+
return A(n) === y;
|
|
76
76
|
}
|
|
77
|
-
return O.AsyncMode = g, O.ConcurrentMode =
|
|
78
|
-
return
|
|
79
|
-
}, O.isConcurrentMode =
|
|
80
|
-
return
|
|
81
|
-
}, O.isContextProvider = function(
|
|
82
|
-
return
|
|
83
|
-
}, O.isElement = function(
|
|
84
|
-
return typeof
|
|
85
|
-
}, O.isForwardRef = function(
|
|
86
|
-
return
|
|
87
|
-
}, O.isFragment = function(
|
|
88
|
-
return
|
|
89
|
-
}, O.isLazy = function(
|
|
90
|
-
return
|
|
91
|
-
}, O.isMemo = function(
|
|
92
|
-
return
|
|
93
|
-
}, O.isPortal = function(
|
|
94
|
-
return
|
|
95
|
-
}, O.isProfiler = function(
|
|
96
|
-
return
|
|
97
|
-
}, O.isStrictMode = function(
|
|
98
|
-
return
|
|
99
|
-
}, O.isSuspense = function(
|
|
100
|
-
return
|
|
101
|
-
}, O.isValidElementType = function(
|
|
102
|
-
return typeof
|
|
103
|
-
}, O.typeOf =
|
|
77
|
+
return O.AsyncMode = g, O.ConcurrentMode = y, O.ContextConsumer = f, O.ContextProvider = l, O.Element = e, O.ForwardRef = d, O.Fragment = o, O.Lazy = I, O.Memo = j, O.Portal = i, O.Profiler = c, O.StrictMode = u, O.Suspense = C, O.isAsyncMode = function(n) {
|
|
78
|
+
return x(n) || A(n) === g;
|
|
79
|
+
}, O.isConcurrentMode = x, O.isContextConsumer = function(n) {
|
|
80
|
+
return A(n) === f;
|
|
81
|
+
}, O.isContextProvider = function(n) {
|
|
82
|
+
return A(n) === l;
|
|
83
|
+
}, O.isElement = function(n) {
|
|
84
|
+
return typeof n == "object" && n !== null && n.$$typeof === e;
|
|
85
|
+
}, O.isForwardRef = function(n) {
|
|
86
|
+
return A(n) === d;
|
|
87
|
+
}, O.isFragment = function(n) {
|
|
88
|
+
return A(n) === o;
|
|
89
|
+
}, O.isLazy = function(n) {
|
|
90
|
+
return A(n) === I;
|
|
91
|
+
}, O.isMemo = function(n) {
|
|
92
|
+
return A(n) === j;
|
|
93
|
+
}, O.isPortal = function(n) {
|
|
94
|
+
return A(n) === i;
|
|
95
|
+
}, O.isProfiler = function(n) {
|
|
96
|
+
return A(n) === c;
|
|
97
|
+
}, O.isStrictMode = function(n) {
|
|
98
|
+
return A(n) === u;
|
|
99
|
+
}, O.isSuspense = function(n) {
|
|
100
|
+
return A(n) === C;
|
|
101
|
+
}, O.isValidElementType = function(n) {
|
|
102
|
+
return typeof n == "string" || typeof n == "function" || n === o || n === y || n === c || n === u || n === C || n === w || typeof n == "object" && n !== null && (n.$$typeof === I || n.$$typeof === j || n.$$typeof === l || n.$$typeof === f || n.$$typeof === d || n.$$typeof === $ || n.$$typeof === k || n.$$typeof === F || n.$$typeof === P);
|
|
103
|
+
}, O.typeOf = A, O;
|
|
104
104
|
}
|
|
105
105
|
var R = {};
|
|
106
106
|
var pe;
|
|
107
|
-
function
|
|
107
|
+
function Ve() {
|
|
108
108
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
109
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106,
|
|
110
|
-
function
|
|
111
|
-
return typeof
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
function
|
|
115
|
-
if (typeof
|
|
116
|
-
var q =
|
|
109
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = r ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = r ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, u = r ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, c = r ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = r ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = r ? /* @__PURE__ */ Symbol.for("react.context") : 60110, g = r ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = r ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = r ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, C = r ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = r ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, j = r ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, I = r ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, P = r ? /* @__PURE__ */ Symbol.for("react.block") : 60121, $ = r ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, k = r ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = r ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
110
|
+
function A(a) {
|
|
111
|
+
return typeof a == "string" || typeof a == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
112
|
+
a === o || a === y || a === c || a === u || a === C || a === w || typeof a == "object" && a !== null && (a.$$typeof === I || a.$$typeof === j || a.$$typeof === l || a.$$typeof === f || a.$$typeof === d || a.$$typeof === $ || a.$$typeof === k || a.$$typeof === F || a.$$typeof === P);
|
|
113
|
+
}
|
|
114
|
+
function x(a) {
|
|
115
|
+
if (typeof a == "object" && a !== null) {
|
|
116
|
+
var q = a.$$typeof;
|
|
117
117
|
switch (q) {
|
|
118
118
|
case e:
|
|
119
|
-
var B =
|
|
119
|
+
var B = a.type;
|
|
120
120
|
switch (B) {
|
|
121
121
|
case g:
|
|
122
|
-
case
|
|
123
|
-
case
|
|
122
|
+
case y:
|
|
123
|
+
case o:
|
|
124
124
|
case c:
|
|
125
125
|
case u:
|
|
126
126
|
case C:
|
|
@@ -143,59 +143,59 @@ function ze() {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
var
|
|
147
|
-
function te(
|
|
148
|
-
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(
|
|
146
|
+
var n = g, Y = y, K = f, X = l, G = e, Z = d, z = o, Q = I, ee = j, W = i, re = c, L = u, U = C, V = !1;
|
|
147
|
+
function te(a) {
|
|
148
|
+
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), t(a) || x(a) === g;
|
|
149
149
|
}
|
|
150
|
-
function t(
|
|
151
|
-
return
|
|
150
|
+
function t(a) {
|
|
151
|
+
return x(a) === y;
|
|
152
152
|
}
|
|
153
|
-
function s(
|
|
154
|
-
return
|
|
153
|
+
function s(a) {
|
|
154
|
+
return x(a) === f;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function h(a) {
|
|
157
|
+
return x(a) === l;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
return typeof
|
|
159
|
+
function b(a) {
|
|
160
|
+
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
161
161
|
}
|
|
162
|
-
function p(
|
|
163
|
-
return
|
|
162
|
+
function p(a) {
|
|
163
|
+
return x(a) === d;
|
|
164
164
|
}
|
|
165
|
-
function E(
|
|
166
|
-
return
|
|
165
|
+
function E(a) {
|
|
166
|
+
return x(a) === o;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
168
|
+
function v(a) {
|
|
169
|
+
return x(a) === I;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
171
|
+
function m(a) {
|
|
172
|
+
return x(a) === j;
|
|
173
173
|
}
|
|
174
|
-
function T(
|
|
175
|
-
return
|
|
174
|
+
function T(a) {
|
|
175
|
+
return x(a) === i;
|
|
176
176
|
}
|
|
177
|
-
function _(
|
|
178
|
-
return
|
|
177
|
+
function _(a) {
|
|
178
|
+
return x(a) === c;
|
|
179
179
|
}
|
|
180
|
-
function S(
|
|
181
|
-
return
|
|
180
|
+
function S(a) {
|
|
181
|
+
return x(a) === u;
|
|
182
182
|
}
|
|
183
|
-
function M(
|
|
184
|
-
return
|
|
183
|
+
function M(a) {
|
|
184
|
+
return x(a) === C;
|
|
185
185
|
}
|
|
186
|
-
R.AsyncMode =
|
|
186
|
+
R.AsyncMode = n, R.ConcurrentMode = Y, R.ContextConsumer = K, R.ContextProvider = X, R.Element = G, R.ForwardRef = Z, R.Fragment = z, R.Lazy = Q, R.Memo = ee, R.Portal = W, R.Profiler = re, R.StrictMode = L, R.Suspense = U, R.isAsyncMode = te, R.isConcurrentMode = t, R.isContextConsumer = s, R.isContextProvider = h, R.isElement = b, R.isForwardRef = p, R.isFragment = E, R.isLazy = v, R.isMemo = m, R.isPortal = T, R.isProfiler = _, R.isStrictMode = S, R.isSuspense = M, R.isValidElementType = A, R.typeOf = x;
|
|
187
187
|
})()), R;
|
|
188
188
|
}
|
|
189
189
|
var de;
|
|
190
190
|
function _e() {
|
|
191
|
-
return de || (de = 1, process.env.NODE_ENV === "production" ? H.exports =
|
|
191
|
+
return de || (de = 1, process.env.NODE_ENV === "production" ? H.exports = ze() : H.exports = Ve()), H.exports;
|
|
192
192
|
}
|
|
193
193
|
var ne, ye;
|
|
194
|
-
function
|
|
194
|
+
function Be() {
|
|
195
195
|
if (ye) return ne;
|
|
196
196
|
ye = 1;
|
|
197
197
|
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
198
|
-
function
|
|
198
|
+
function o(c) {
|
|
199
199
|
if (c == null)
|
|
200
200
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
201
201
|
return Object(c);
|
|
@@ -214,23 +214,23 @@ function Ve() {
|
|
|
214
214
|
});
|
|
215
215
|
if (g.join("") !== "0123456789")
|
|
216
216
|
return !1;
|
|
217
|
-
var
|
|
217
|
+
var y = {};
|
|
218
218
|
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
219
|
-
|
|
220
|
-
}), Object.keys(Object.assign({},
|
|
219
|
+
y[d] = d;
|
|
220
|
+
}), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
|
|
221
221
|
} catch {
|
|
222
222
|
return !1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
return ne = u() ? Object.assign : function(c, l) {
|
|
226
|
-
for (var f, g =
|
|
226
|
+
for (var f, g = o(c), y, d = 1; d < arguments.length; d++) {
|
|
227
227
|
f = Object(arguments[d]);
|
|
228
228
|
for (var C in f)
|
|
229
229
|
e.call(f, C) && (g[C] = f[C]);
|
|
230
230
|
if (r) {
|
|
231
|
-
|
|
232
|
-
for (var w = 0; w <
|
|
233
|
-
i.call(f,
|
|
231
|
+
y = r(f);
|
|
232
|
+
for (var w = 0; w < y.length; w++)
|
|
233
|
+
i.call(f, y[w]) && (g[y[w]] = f[y[w]]);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
return g;
|
|
@@ -247,14 +247,14 @@ var ae, be;
|
|
|
247
247
|
function Pe() {
|
|
248
248
|
return be || (be = 1, ae = Function.call.bind(Object.prototype.hasOwnProperty)), ae;
|
|
249
249
|
}
|
|
250
|
-
var ie,
|
|
251
|
-
function
|
|
252
|
-
if (
|
|
253
|
-
|
|
250
|
+
var ie, me;
|
|
251
|
+
function Ne() {
|
|
252
|
+
if (me) return ie;
|
|
253
|
+
me = 1;
|
|
254
254
|
var r = function() {
|
|
255
255
|
};
|
|
256
256
|
if (process.env.NODE_ENV !== "production") {
|
|
257
|
-
var e = /* @__PURE__ */ ue(), i = {},
|
|
257
|
+
var e = /* @__PURE__ */ ue(), i = {}, o = /* @__PURE__ */ Pe();
|
|
258
258
|
r = function(c) {
|
|
259
259
|
var l = "Warning: " + c;
|
|
260
260
|
typeof console < "u" && console.error(l);
|
|
@@ -264,10 +264,10 @@ function Be() {
|
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function u(c, l, f, g,
|
|
267
|
+
function u(c, l, f, g, y) {
|
|
268
268
|
if (process.env.NODE_ENV !== "production") {
|
|
269
269
|
for (var d in c)
|
|
270
|
-
if (
|
|
270
|
+
if (o(c, d)) {
|
|
271
271
|
var C;
|
|
272
272
|
try {
|
|
273
273
|
if (typeof c[d] != "function") {
|
|
@@ -284,7 +284,7 @@ function Be() {
|
|
|
284
284
|
(g || "React class") + ": type specification of " + f + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
285
285
|
), C instanceof Error && !(C.message in i)) {
|
|
286
286
|
i[C.message] = !0;
|
|
287
|
-
var j =
|
|
287
|
+
var j = y ? y() : "";
|
|
288
288
|
r(
|
|
289
289
|
"Failed " + f + " type: " + C.message + (j ?? "")
|
|
290
290
|
);
|
|
@@ -296,11 +296,11 @@ function Be() {
|
|
|
296
296
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
297
297
|
}, ie = u, ie;
|
|
298
298
|
}
|
|
299
|
-
var se,
|
|
300
|
-
function
|
|
301
|
-
if (
|
|
302
|
-
|
|
303
|
-
var r = _e(), e =
|
|
299
|
+
var se, he;
|
|
300
|
+
function He() {
|
|
301
|
+
if (he) return se;
|
|
302
|
+
he = 1;
|
|
303
|
+
var r = _e(), e = Be(), i = /* @__PURE__ */ ue(), o = /* @__PURE__ */ Pe(), u = /* @__PURE__ */ Ne(), c = function() {
|
|
304
304
|
};
|
|
305
305
|
process.env.NODE_ENV !== "production" && (c = function(f) {
|
|
306
306
|
var g = "Warning: " + f;
|
|
@@ -314,9 +314,9 @@ function Ne() {
|
|
|
314
314
|
return null;
|
|
315
315
|
}
|
|
316
316
|
return se = function(f, g) {
|
|
317
|
-
var
|
|
317
|
+
var y = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
318
318
|
function C(t) {
|
|
319
|
-
var s = t && (
|
|
319
|
+
var s = t && (y && t[y] || t[d]);
|
|
320
320
|
if (typeof s == "function")
|
|
321
321
|
return s;
|
|
322
322
|
}
|
|
@@ -330,9 +330,9 @@ function Ne() {
|
|
|
330
330
|
string: k("string"),
|
|
331
331
|
symbol: k("symbol"),
|
|
332
332
|
any: F(),
|
|
333
|
-
arrayOf:
|
|
334
|
-
element:
|
|
335
|
-
elementType:
|
|
333
|
+
arrayOf: A,
|
|
334
|
+
element: x(),
|
|
335
|
+
elementType: n(),
|
|
336
336
|
instanceOf: Y,
|
|
337
337
|
node: Z(),
|
|
338
338
|
objectOf: X,
|
|
@@ -350,34 +350,34 @@ function Ne() {
|
|
|
350
350
|
P.prototype = Error.prototype;
|
|
351
351
|
function $(t) {
|
|
352
352
|
if (process.env.NODE_ENV !== "production")
|
|
353
|
-
var s = {},
|
|
354
|
-
function
|
|
355
|
-
if (T = T || w, S = S ||
|
|
353
|
+
var s = {}, h = 0;
|
|
354
|
+
function b(E, v, m, T, _, S, M) {
|
|
355
|
+
if (T = T || w, S = S || m, M !== i) {
|
|
356
356
|
if (g) {
|
|
357
|
-
var
|
|
357
|
+
var a = new Error(
|
|
358
358
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
359
359
|
);
|
|
360
|
-
throw
|
|
360
|
+
throw a.name = "Invariant Violation", a;
|
|
361
361
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
362
|
-
var q = T + ":" +
|
|
362
|
+
var q = T + ":" + m;
|
|
363
363
|
!s[q] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
364
|
-
|
|
364
|
+
h < 3 && (c(
|
|
365
365
|
"You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
366
|
-
), s[q] = !0,
|
|
366
|
+
), s[q] = !0, h++);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return v[m] == null ? E ? v[m] === null ? new P("The " + _ + " `" + S + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new P("The " + _ + " `" + S + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : t(v, m, T, _, S);
|
|
370
370
|
}
|
|
371
|
-
var p =
|
|
372
|
-
return p.isRequired =
|
|
371
|
+
var p = b.bind(null, !1);
|
|
372
|
+
return p.isRequired = b.bind(null, !0), p;
|
|
373
373
|
}
|
|
374
374
|
function k(t) {
|
|
375
|
-
function s(
|
|
376
|
-
var T =
|
|
375
|
+
function s(h, b, p, E, v, m) {
|
|
376
|
+
var T = h[b], _ = L(T);
|
|
377
377
|
if (_ !== t) {
|
|
378
378
|
var S = U(T);
|
|
379
379
|
return new P(
|
|
380
|
-
"Invalid " + E + " `" +
|
|
380
|
+
"Invalid " + E + " `" + v + "` of type " + ("`" + S + "` supplied to `" + p + "`, expected ") + ("`" + t + "`."),
|
|
381
381
|
{ expectedType: t }
|
|
382
382
|
);
|
|
383
383
|
}
|
|
@@ -388,17 +388,17 @@ function Ne() {
|
|
|
388
388
|
function F() {
|
|
389
389
|
return $(l);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
function s(
|
|
391
|
+
function A(t) {
|
|
392
|
+
function s(h, b, p, E, v) {
|
|
393
393
|
if (typeof t != "function")
|
|
394
|
-
return new P("Property `" +
|
|
395
|
-
var
|
|
396
|
-
if (!Array.isArray(
|
|
397
|
-
var T = L(
|
|
398
|
-
return new P("Invalid " + E + " `" +
|
|
394
|
+
return new P("Property `" + v + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
|
|
395
|
+
var m = h[b];
|
|
396
|
+
if (!Array.isArray(m)) {
|
|
397
|
+
var T = L(m);
|
|
398
|
+
return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an array."));
|
|
399
399
|
}
|
|
400
|
-
for (var _ = 0; _ <
|
|
401
|
-
var S = t(
|
|
400
|
+
for (var _ = 0; _ < m.length; _++) {
|
|
401
|
+
var S = t(m, _, p, E, v + "[" + _ + "]", i);
|
|
402
402
|
if (S instanceof Error)
|
|
403
403
|
return S;
|
|
404
404
|
}
|
|
@@ -406,33 +406,33 @@ function Ne() {
|
|
|
406
406
|
}
|
|
407
407
|
return $(s);
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
function t(s,
|
|
411
|
-
var
|
|
412
|
-
if (!f(
|
|
413
|
-
var
|
|
414
|
-
return new P("Invalid " + p + " `" + E + "` of type " + ("`" +
|
|
409
|
+
function x() {
|
|
410
|
+
function t(s, h, b, p, E) {
|
|
411
|
+
var v = s[h];
|
|
412
|
+
if (!f(v)) {
|
|
413
|
+
var m = L(v);
|
|
414
|
+
return new P("Invalid " + p + " `" + E + "` of type " + ("`" + m + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
415
415
|
}
|
|
416
416
|
return null;
|
|
417
417
|
}
|
|
418
418
|
return $(t);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
function t(s,
|
|
422
|
-
var
|
|
423
|
-
if (!r.isValidElementType(
|
|
424
|
-
var
|
|
425
|
-
return new P("Invalid " + p + " `" + E + "` of type " + ("`" +
|
|
420
|
+
function n() {
|
|
421
|
+
function t(s, h, b, p, E) {
|
|
422
|
+
var v = s[h];
|
|
423
|
+
if (!r.isValidElementType(v)) {
|
|
424
|
+
var m = L(v);
|
|
425
|
+
return new P("Invalid " + p + " `" + E + "` of type " + ("`" + m + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
426
426
|
}
|
|
427
427
|
return null;
|
|
428
428
|
}
|
|
429
429
|
return $(t);
|
|
430
430
|
}
|
|
431
431
|
function Y(t) {
|
|
432
|
-
function s(
|
|
433
|
-
if (!(
|
|
434
|
-
var
|
|
435
|
-
return new P("Invalid " + E + " `" +
|
|
432
|
+
function s(h, b, p, E, v) {
|
|
433
|
+
if (!(h[b] instanceof t)) {
|
|
434
|
+
var m = t.name || w, T = te(h[b]);
|
|
435
|
+
return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected ") + ("instance of `" + m + "`."));
|
|
436
436
|
}
|
|
437
437
|
return null;
|
|
438
438
|
}
|
|
@@ -443,28 +443,28 @@ function Ne() {
|
|
|
443
443
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? c(
|
|
444
444
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
445
445
|
) : c("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
446
|
-
function s(
|
|
447
|
-
for (var
|
|
448
|
-
if (I(
|
|
446
|
+
function s(h, b, p, E, v) {
|
|
447
|
+
for (var m = h[b], T = 0; T < t.length; T++)
|
|
448
|
+
if (I(m, t[T]))
|
|
449
449
|
return null;
|
|
450
|
-
var _ = JSON.stringify(t, function(M,
|
|
451
|
-
var q = U(
|
|
452
|
-
return q === "symbol" ? String(
|
|
450
|
+
var _ = JSON.stringify(t, function(M, a) {
|
|
451
|
+
var q = U(a);
|
|
452
|
+
return q === "symbol" ? String(a) : a;
|
|
453
453
|
});
|
|
454
|
-
return new P("Invalid " + E + " `" +
|
|
454
|
+
return new P("Invalid " + E + " `" + v + "` of value `" + String(m) + "` " + ("supplied to `" + p + "`, expected one of " + _ + "."));
|
|
455
455
|
}
|
|
456
456
|
return $(s);
|
|
457
457
|
}
|
|
458
458
|
function X(t) {
|
|
459
|
-
function s(
|
|
459
|
+
function s(h, b, p, E, v) {
|
|
460
460
|
if (typeof t != "function")
|
|
461
|
-
return new P("Property `" +
|
|
462
|
-
var
|
|
461
|
+
return new P("Property `" + v + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
|
|
462
|
+
var m = h[b], T = L(m);
|
|
463
463
|
if (T !== "object")
|
|
464
|
-
return new P("Invalid " + E + " `" +
|
|
465
|
-
for (var _ in
|
|
466
|
-
if (
|
|
467
|
-
var S = t(
|
|
464
|
+
return new P("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + p + "`, expected an object."));
|
|
465
|
+
for (var _ in m)
|
|
466
|
+
if (o(m, _)) {
|
|
467
|
+
var S = t(m, _, p, E, v + "." + _, i);
|
|
468
468
|
if (S instanceof Error)
|
|
469
469
|
return S;
|
|
470
470
|
}
|
|
@@ -476,45 +476,45 @@ function Ne() {
|
|
|
476
476
|
if (!Array.isArray(t))
|
|
477
477
|
return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
478
478
|
for (var s = 0; s < t.length; s++) {
|
|
479
|
-
var
|
|
480
|
-
if (typeof
|
|
479
|
+
var h = t[s];
|
|
480
|
+
if (typeof h != "function")
|
|
481
481
|
return c(
|
|
482
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(
|
|
482
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(h) + " at index " + s + "."
|
|
483
483
|
), l;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function b(p, E, v, m, T) {
|
|
486
486
|
for (var _ = [], S = 0; S < t.length; S++) {
|
|
487
|
-
var M = t[S],
|
|
488
|
-
if (
|
|
487
|
+
var M = t[S], a = M(p, E, v, m, T, i);
|
|
488
|
+
if (a == null)
|
|
489
489
|
return null;
|
|
490
|
-
|
|
490
|
+
a.data && o(a.data, "expectedType") && _.push(a.data.expectedType);
|
|
491
491
|
}
|
|
492
492
|
var q = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
493
|
-
return new P("Invalid " +
|
|
493
|
+
return new P("Invalid " + m + " `" + T + "` supplied to " + ("`" + v + "`" + q + "."));
|
|
494
494
|
}
|
|
495
|
-
return $(
|
|
495
|
+
return $(b);
|
|
496
496
|
}
|
|
497
497
|
function Z() {
|
|
498
|
-
function t(s,
|
|
499
|
-
return W(s[
|
|
498
|
+
function t(s, h, b, p, E) {
|
|
499
|
+
return W(s[h]) ? null : new P("Invalid " + p + " `" + E + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
500
500
|
}
|
|
501
501
|
return $(t);
|
|
502
502
|
}
|
|
503
|
-
function z(t, s,
|
|
503
|
+
function z(t, s, h, b, p) {
|
|
504
504
|
return new P(
|
|
505
|
-
(t || "React class") + ": " + s + " type `" +
|
|
505
|
+
(t || "React class") + ": " + s + " type `" + h + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
508
|
function Q(t) {
|
|
509
|
-
function s(
|
|
510
|
-
var
|
|
509
|
+
function s(h, b, p, E, v) {
|
|
510
|
+
var m = h[b], T = L(m);
|
|
511
511
|
if (T !== "object")
|
|
512
|
-
return new P("Invalid " + E + " `" +
|
|
512
|
+
return new P("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
513
513
|
for (var _ in t) {
|
|
514
514
|
var S = t[_];
|
|
515
515
|
if (typeof S != "function")
|
|
516
|
-
return z(p, E,
|
|
517
|
-
var M = S(
|
|
516
|
+
return z(p, E, v, _, U(S));
|
|
517
|
+
var M = S(m, _, p, E, v + "." + _, i);
|
|
518
518
|
if (M)
|
|
519
519
|
return M;
|
|
520
520
|
}
|
|
@@ -523,23 +523,23 @@ function Ne() {
|
|
|
523
523
|
return $(s);
|
|
524
524
|
}
|
|
525
525
|
function ee(t) {
|
|
526
|
-
function s(
|
|
527
|
-
var
|
|
526
|
+
function s(h, b, p, E, v) {
|
|
527
|
+
var m = h[b], T = L(m);
|
|
528
528
|
if (T !== "object")
|
|
529
|
-
return new P("Invalid " + E + " `" +
|
|
530
|
-
var _ = e({},
|
|
529
|
+
return new P("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
530
|
+
var _ = e({}, h[b], t);
|
|
531
531
|
for (var S in _) {
|
|
532
532
|
var M = t[S];
|
|
533
|
-
if (
|
|
534
|
-
return z(p, E,
|
|
533
|
+
if (o(t, S) && typeof M != "function")
|
|
534
|
+
return z(p, E, v, S, U(M));
|
|
535
535
|
if (!M)
|
|
536
536
|
return new P(
|
|
537
|
-
"Invalid " + E + " `" +
|
|
537
|
+
"Invalid " + E + " `" + v + "` key `" + S + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(h[b], null, " ") + `
|
|
538
538
|
Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
|
|
539
539
|
);
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
542
|
-
return
|
|
540
|
+
var a = M(m, S, p, E, v + "." + S, i);
|
|
541
|
+
if (a)
|
|
542
|
+
return a;
|
|
543
543
|
}
|
|
544
544
|
return null;
|
|
545
545
|
}
|
|
@@ -560,14 +560,14 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
|
|
|
560
560
|
return !0;
|
|
561
561
|
var s = C(t);
|
|
562
562
|
if (s) {
|
|
563
|
-
var
|
|
563
|
+
var h = s.call(t), b;
|
|
564
564
|
if (s !== t.entries) {
|
|
565
|
-
for (; !(
|
|
566
|
-
if (!W(
|
|
565
|
+
for (; !(b = h.next()).done; )
|
|
566
|
+
if (!W(b.value))
|
|
567
567
|
return !1;
|
|
568
568
|
} else
|
|
569
|
-
for (; !(
|
|
570
|
-
var p =
|
|
569
|
+
for (; !(b = h.next()).done; ) {
|
|
570
|
+
var p = b.value;
|
|
571
571
|
if (p && !W(p[1]))
|
|
572
572
|
return !1;
|
|
573
573
|
}
|
|
@@ -618,7 +618,7 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
|
|
|
618
618
|
}, se;
|
|
619
619
|
}
|
|
620
620
|
var ce, ge;
|
|
621
|
-
function
|
|
621
|
+
function Je() {
|
|
622
622
|
if (ge) return ce;
|
|
623
623
|
ge = 1;
|
|
624
624
|
var r = /* @__PURE__ */ ue();
|
|
@@ -627,7 +627,7 @@ function He() {
|
|
|
627
627
|
function i() {
|
|
628
628
|
}
|
|
629
629
|
return i.resetWarningCache = e, ce = function() {
|
|
630
|
-
function
|
|
630
|
+
function o(l, f, g, y, d, C) {
|
|
631
631
|
if (C !== r) {
|
|
632
632
|
var w = new Error(
|
|
633
633
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -635,25 +635,25 @@ function He() {
|
|
|
635
635
|
throw w.name = "Invariant Violation", w;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
o.isRequired = o;
|
|
639
639
|
function u() {
|
|
640
|
-
return
|
|
640
|
+
return o;
|
|
641
641
|
}
|
|
642
642
|
var c = {
|
|
643
|
-
array:
|
|
644
|
-
bigint:
|
|
645
|
-
bool:
|
|
646
|
-
func:
|
|
647
|
-
number:
|
|
648
|
-
object:
|
|
649
|
-
string:
|
|
650
|
-
symbol:
|
|
651
|
-
any:
|
|
643
|
+
array: o,
|
|
644
|
+
bigint: o,
|
|
645
|
+
bool: o,
|
|
646
|
+
func: o,
|
|
647
|
+
number: o,
|
|
648
|
+
object: o,
|
|
649
|
+
string: o,
|
|
650
|
+
symbol: o,
|
|
651
|
+
any: o,
|
|
652
652
|
arrayOf: u,
|
|
653
|
-
element:
|
|
654
|
-
elementType:
|
|
653
|
+
element: o,
|
|
654
|
+
elementType: o,
|
|
655
655
|
instanceOf: u,
|
|
656
|
-
node:
|
|
656
|
+
node: o,
|
|
657
657
|
objectOf: u,
|
|
658
658
|
oneOf: u,
|
|
659
659
|
oneOfType: u,
|
|
@@ -666,16 +666,16 @@ function He() {
|
|
|
666
666
|
}, ce;
|
|
667
667
|
}
|
|
668
668
|
var Ee;
|
|
669
|
-
function
|
|
669
|
+
function Ke() {
|
|
670
670
|
if (Ee) return N.exports;
|
|
671
671
|
if (Ee = 1, process.env.NODE_ENV !== "production") {
|
|
672
672
|
var r = _e(), e = !0;
|
|
673
|
-
N.exports = /* @__PURE__ */
|
|
673
|
+
N.exports = /* @__PURE__ */ He()(r.isElement, e);
|
|
674
674
|
} else
|
|
675
|
-
N.exports = /* @__PURE__ */
|
|
675
|
+
N.exports = /* @__PURE__ */ Je()();
|
|
676
676
|
return N.exports;
|
|
677
677
|
}
|
|
678
|
-
var D = /* @__PURE__ */
|
|
678
|
+
var D = /* @__PURE__ */ Ke();
|
|
679
679
|
const we = {
|
|
680
680
|
data: D.oneOfType([D.string, D.array, D.func]).isRequired,
|
|
681
681
|
headers: D.array,
|
|
@@ -692,13 +692,13 @@ const we = {
|
|
|
692
692
|
uFEFF: !0,
|
|
693
693
|
asyncOnClick: !1,
|
|
694
694
|
enclosingCharacter: '"'
|
|
695
|
-
},
|
|
695
|
+
}, Xe = {
|
|
696
696
|
target: "_blank"
|
|
697
697
|
};
|
|
698
|
-
class
|
|
698
|
+
class nr extends Te.Component {
|
|
699
699
|
static defaultProps = Object.assign(
|
|
700
700
|
xe,
|
|
701
|
-
|
|
701
|
+
Xe
|
|
702
702
|
);
|
|
703
703
|
static propTypes = we;
|
|
704
704
|
constructor(e) {
|
|
@@ -708,9 +708,9 @@ class tr extends Te.Component {
|
|
|
708
708
|
return Re(...arguments);
|
|
709
709
|
}
|
|
710
710
|
componentDidMount() {
|
|
711
|
-
const { data: e, headers: i, separator:
|
|
711
|
+
const { data: e, headers: i, separator: o, enclosingCharacter: u, uFEFF: c, target: l, specs: f, replace: g } = this.props;
|
|
712
712
|
this.state.page = window.open(
|
|
713
|
-
this.buildURI(e, c, i,
|
|
713
|
+
this.buildURI(e, c, i, o, u),
|
|
714
714
|
l,
|
|
715
715
|
f,
|
|
716
716
|
g
|
|
@@ -723,7 +723,7 @@ class tr extends Te.Component {
|
|
|
723
723
|
return null;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
let
|
|
726
|
+
let Ge = class extends Te.Component {
|
|
727
727
|
static defaultProps = xe;
|
|
728
728
|
static propTypes = we;
|
|
729
729
|
constructor(e) {
|
|
@@ -739,20 +739,20 @@ let Xe = class extends Te.Component {
|
|
|
739
739
|
if (window.navigator.msSaveOrOpenBlob) {
|
|
740
740
|
e.preventDefault();
|
|
741
741
|
const {
|
|
742
|
-
data:
|
|
742
|
+
data: o,
|
|
743
743
|
headers: u,
|
|
744
744
|
separator: c,
|
|
745
745
|
filename: l,
|
|
746
746
|
enclosingCharacter: f,
|
|
747
747
|
uFEFF: g
|
|
748
|
-
} = this.props,
|
|
749
|
-
let d = new Blob([g ? "\uFEFF" : "", Oe(
|
|
748
|
+
} = this.props, y = i && typeof o == "function" ? o() : o;
|
|
749
|
+
let d = new Blob([g ? "\uFEFF" : "", Oe(y, u, c, f)]);
|
|
750
750
|
return window.navigator.msSaveBlob(d, l), !1;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
handleAsyncClick(e) {
|
|
754
|
-
const i = (
|
|
755
|
-
if (
|
|
754
|
+
const i = (o) => {
|
|
755
|
+
if (o === !1) {
|
|
756
756
|
e.preventDefault();
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
@@ -778,15 +778,15 @@ let Xe = class extends Te.Component {
|
|
|
778
778
|
const {
|
|
779
779
|
data: e,
|
|
780
780
|
headers: i,
|
|
781
|
-
separator:
|
|
781
|
+
separator: o,
|
|
782
782
|
filename: u,
|
|
783
783
|
uFEFF: c,
|
|
784
784
|
children: l,
|
|
785
785
|
onClick: f,
|
|
786
786
|
asyncOnClick: g,
|
|
787
|
-
enclosingCharacter:
|
|
787
|
+
enclosingCharacter: y,
|
|
788
788
|
...d
|
|
789
|
-
} = this.props, w = typeof window > "u" ? "" : this.buildURI(e, c, i,
|
|
789
|
+
} = this.props, w = typeof window > "u" ? "" : this.buildURI(e, c, i, o, y);
|
|
790
790
|
return /* @__PURE__ */ J.jsx(
|
|
791
791
|
"a",
|
|
792
792
|
{
|
|
@@ -801,42 +801,44 @@ let Xe = class extends Te.Component {
|
|
|
801
801
|
);
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
const
|
|
804
|
+
const Ze = Ge, Qe = (r) => r ? r.map((e) => {
|
|
805
805
|
const i = {
|
|
806
806
|
...e
|
|
807
807
|
};
|
|
808
|
-
return Object.entries(i).forEach(([
|
|
809
|
-
Array.isArray(u) && (i[
|
|
808
|
+
return Object.entries(i).forEach(([o, u]) => {
|
|
809
|
+
Array.isArray(u) && (i[o] = `${u.join(",")}`), typeof u == "string" && (i[o] = `${u.replaceAll('"', "'")}`);
|
|
810
810
|
}), i;
|
|
811
811
|
}) : {};
|
|
812
|
-
function
|
|
813
|
-
const e = Ae.c(
|
|
812
|
+
function ar(r) {
|
|
813
|
+
const e = Ae.c(18), {
|
|
814
814
|
buttonContent: i,
|
|
815
|
-
buttonType:
|
|
815
|
+
buttonType: o,
|
|
816
816
|
csvData: u,
|
|
817
817
|
fileName: c,
|
|
818
818
|
headers: l,
|
|
819
819
|
separator: f,
|
|
820
820
|
buttonSmall: g,
|
|
821
|
-
className:
|
|
822
|
-
} = r, d =
|
|
821
|
+
className: y
|
|
822
|
+
} = r, d = o === void 0 ? "tertiary" : o, C = c === void 0 ? "data" : c, w = f === void 0 ? "," : f, j = g === void 0 ? !1 : g;
|
|
823
823
|
let I;
|
|
824
|
-
e[0] !== u ? (I =
|
|
824
|
+
e[0] !== u ? (I = Qe(u), e[0] = u, e[1] = I) : I = e[1];
|
|
825
825
|
const P = `${C}.csv`;
|
|
826
826
|
let $;
|
|
827
827
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
|
|
828
828
|
backgroundImage: "none",
|
|
829
829
|
textDecoration: "none"
|
|
830
830
|
}, e[2] = $) : $ = e[2];
|
|
831
|
-
const k =
|
|
831
|
+
const k = j ? "p-2" : "py-4 px-6";
|
|
832
832
|
let F;
|
|
833
|
-
e[3] !==
|
|
834
|
-
let x;
|
|
835
|
-
e[5] !== d || e[6] !== k || e[7] !== F ? (x = /* @__PURE__ */ J.jsx($e, { variant: d, className: k, children: F }), e[5] = d, e[6] = k, e[7] = F, e[8] = x) : x = e[8];
|
|
833
|
+
e[3] !== y || e[4] !== k ? (F = je("undp-viz-download-button no-underline border border-primary-gray-400 dark:border-primary-gray-550", k, y), e[3] = y, e[4] = k, e[5] = F) : F = e[5];
|
|
836
834
|
let A;
|
|
837
|
-
|
|
835
|
+
e[6] !== i ? (A = i || /* @__PURE__ */ J.jsx($e, {}), e[6] = i, e[7] = A) : A = e[7];
|
|
836
|
+
let x;
|
|
837
|
+
e[8] !== d || e[9] !== F || e[10] !== A ? (x = /* @__PURE__ */ J.jsx(Ie, { variant: d, className: F, children: A }), e[8] = d, e[9] = F, e[10] = A, e[11] = x) : x = e[11];
|
|
838
|
+
let n;
|
|
839
|
+
return e[12] !== l || e[13] !== w || e[14] !== x || e[15] !== I || e[16] !== P ? (n = /* @__PURE__ */ J.jsx(Ze, { headers: l, enclosingCharacter: '"', separator: w, data: I, filename: P, asyncOnClick: !0, target: "_blank", style: $, "aria-label": "Click to download the data as csv", children: x }), e[12] = l, e[13] = w, e[14] = x, e[15] = I, e[16] = P, e[17] = n) : n = e[17], n;
|
|
838
840
|
}
|
|
839
841
|
export {
|
|
840
|
-
|
|
842
|
+
ar as CsvDownloadButton
|
|
841
843
|
};
|
|
842
844
|
//# sourceMappingURL=CsvDownloadButton.js.map
|