mango-ui-v2/components/charting_library/bundles/52.f16eebc4252d4d1a3b19.js

529 lines
16 KiB
JavaScript

(window.webpackJsonp = window.webpackJsonp || []).push([
[52],
{
'6KyJ': function (e, t, n) {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 }),
n('mrSG').__exportStar(n('COH4'), t);
},
AVTG: function (e, t, n) {
'use strict';
var r = n('q1tI'),
a = n('TSYQ'),
o = n('kgsH'),
s = n('uo4K'),
i = n('Iivm');
function c(e) {
var t = e.hideIcon
? null
: r.createElement(i.Icon, {
className: o.close,
icon: s,
onClick: e.onClose,
});
return r.createElement(
'div',
{
className: a(o.header, e.className),
'data-dragg-area': !0,
ref: e.reference,
},
e.children,
t,
);
}
n('kQXJ');
var l = n('XYXm');
function u(e) {
return r.createElement(
'div',
{ className: a(l.body, e.className), ref: e.reference },
e.children,
);
}
var d = n('8Rai'),
p = n('cJj4');
function m(e) {
var t, n;
e.text
? (n = r.createElement('span', null, e.text))
: e.html &&
(n = r.createElement('span', {
dangerouslySetInnerHTML: { __html: e.html },
}));
var o = Object(d.a)({
mouseDown: !0,
touchStart: !0,
handler: e.onClickOutside,
});
if (!n) return null;
var s = a(p.message, e.className, (((t = {})[p.error] = e.isError), t));
return r.createElement(
'div',
{ className: s, key: '0' },
r.createElement('span', { ref: o }, n),
);
}
n.d(t, 'b', function () {
return c;
}),
n.d(t, 'a', function () {
return u;
}),
n.d(t, 'c', function () {
return m;
});
},
Ald9: function (e, t) {
e.exports =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 95.939 95.939" width="95.939" height="95.939"><path d="M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z"/></svg>';
},
COH4: function (e, t, n) {
'use strict';
Object.defineProperty(t, '__esModule', { value: !0 });
var r,
a = n('mrSG'),
o = n('q1tI'),
s = n('TSYQ'),
i = n('K9GE'),
c = n('YZ9j');
n('O7m7'),
(function (e) {
(e[(e.Initial = 0)] = 'Initial'),
(e[(e.Appear = 1)] = 'Appear'),
(e[(e.Active = 2)] = 'Active');
})(r || (r = {}));
var l = (function (e) {
function t(t) {
var n = e.call(this, t) || this;
return (
(n._stateChangeTimeout = null), (n.state = { state: r.Initial }), n
);
}
return (
a.__extends(t, e),
(t.prototype.render = function () {
var e,
t = this.props,
n = t.className,
r = t.color,
a = void 0 === r ? 'black' : r,
i = s(c.item, (((e = {})[c[a]] = Boolean(a)), e));
return o.createElement(
'span',
{ className: s(c.loader, n, this._getStateClass()) },
o.createElement('span', { className: i }),
o.createElement('span', { className: i }),
o.createElement('span', { className: i }),
);
}),
(t.prototype.componentDidMount = function () {
var e = this;
this.setState({ state: r.Appear }),
(this._stateChangeTimeout = setTimeout(function () {
e.setState({ state: r.Active });
}, 2 * i.dur));
}),
(t.prototype.componentWillUnmount = function () {
this._stateChangeTimeout &&
(clearTimeout(this._stateChangeTimeout),
(this._stateChangeTimeout = null));
}),
(t.prototype._getStateClass = function () {
switch (this.state.state) {
case r.Initial:
return c['loader-initial'];
case r.Appear:
return c['loader-appear'];
default:
return '';
}
}),
t
);
})(o.PureComponent);
t.Loader = l;
},
'D/i5': function (e, t, n) {
e.exports = {
inputWrapper: 'inputWrapper-6bNZbTW4',
textInput: 'textInput-3WRWEmm7',
error: 'error-v0663AtN',
success: 'success-7iP8kTY5',
textInputLeftDirection: 'textInputLeftDirection-mlAXPh8V',
xsmall: 'xsmall-3Ah_Or2-',
small: 'small-2bmxiJCE',
large: 'large-1JDowW2I',
iconed: 'iconed-3ZQvxTot',
inputIcon: 'inputIcon-W_Bse-a1',
clearable: 'clearable-2tabt_rj',
clearIcon: 'clearIcon-389FR5J4',
};
},
L0Sj: function (e, t, n) {
'use strict';
n.d(t, 'a', function () {
return l;
}),
n.d(t, 'b', function () {
return u;
});
var r = n('mrSG'),
a = n('q1tI'),
o = n('TSYQ'),
s = n('Iivm'),
i = n('Ald9'),
c = n('D/i5'),
l = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this;
}
return (
Object(r.__extends)(t, e),
(t.prototype.render = function () {
var e,
t,
n = this.props,
s = n.theme,
i = n.error,
l = n.success,
u = n.sizeMode,
d = n.leftComponent,
p = n.rightComponent,
m = n.grouped,
f = n.columnGrouped,
h = n.fontSize,
v = n.reference,
g = n.className,
b =
(n.strictLeftDirectionInput,
Object(r.__rest)(n, [
'theme',
'error',
'success',
'sizeMode',
'leftComponent',
'rightComponent',
'grouped',
'columnGrouped',
'fontSize',
'reference',
'className',
'strictLeftDirectionInput',
])),
y = { fontSize: h },
w = o(
s.textInput,
this.props.strictLeftDirectionInput &&
c.textInputLeftDirection,
(((e = {})[s.error] = i),
(e[s.success] = l),
(e[s[u]] = Boolean(u)),
e),
),
I = o(
s.inputWrapper,
(((t = {})[g] = Boolean(g)),
(t[s.grouped] = m),
(t[s.column] = f),
t),
),
x = [],
_ = a.createElement(
'input',
Object(r.__assign)(
{ ref: v, className: w, key: 'textInput', style: y },
b,
),
);
if (d) {
var C = {
className: o(s.leftComponent, d.props.className),
key: 'leftComponent',
};
x.push(a.cloneElement(d, C));
}
if ((x.push(_), p)) {
var N = {
className: o(s.rightComponent, p.props.className),
key: 'rightComponent',
};
x.push(a.cloneElement(p, N));
}
return a.createElement('div', { className: I }, x);
}),
t
);
})(a.PureComponent);
function u(e) {
var t,
n = e.className,
u = e.icon,
d = e.clearable,
p = e.onClear,
m = e.size,
f = e.strictLeftDirectionInput,
h = Object(r.__rest)(e, [
'className',
'icon',
'clearable',
'onClear',
'size',
'strictLeftDirectionInput',
]),
v = o(
c.inputWrapper,
(((t = {})[n] = Boolean(n)),
(t[c.iconed] = Boolean(u)),
(t[c.clearable] = d),
t),
);
return a.createElement(
l,
Object(r.__assign)(
{
theme: c,
className: v,
leftComponent: u
? a.createElement(s.Icon, {
key: 'inputIcon',
icon: u,
className: c.inputIcon,
})
: void 0,
rightComponent: d
? a.createElement(s.Icon, {
className: c.clearIcon,
icon: i,
key: 'clearIcon',
onClick: p,
})
: void 0,
sizeMode: m,
strictLeftDirectionInput: f,
},
h,
),
);
}
},
O7m7: function (e, t, n) {},
XYXm: function (e, t, n) {
e.exports = { body: 'body-2N-vuwQW' };
},
YZ9j: function (e) {
e.exports = JSON.parse(
'{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}',
);
},
cJj4: function (e, t, n) {
e.exports = { message: 'message-2o-rtQm0', error: 'error-2EW0C6z-' };
},
kQXJ: function (e, t, n) {
e.exports = { footer: 'footer-2Zoji8zg' };
},
kgsH: function (e, t, n) {
e.exports = { header: 'header-dpl-vtN_', close: 'close-3kPn4OTV' };
},
oj21: function (e, t, n) {
'use strict';
n.d(t, 'a', function () {
return c;
});
var r = n('mrSG'),
a = n('q1tI'),
o = n('TSYQ'),
s = n('qsaw'),
i = n('6KyJ');
function c(e) {
var t,
n = e.active,
c = void 0 === n || n,
l = e.children,
u = e.className,
d = void 0 === u ? '' : u,
p = e.disabled,
m = void 0 !== p && p,
f = e.grouped,
h = void 0 !== f && f,
v = e.growable,
g = void 0 !== v && v,
b = e.onClick,
y = e.reference,
w = e.size,
I = e.theme,
x = e.type,
_ = void 0 === x ? 'default' : x,
C = e.loading,
N = void 0 !== C && C,
k = e.withPadding,
E = void 0 === k || k,
S = e.title,
L = void 0 === S ? '' : S,
O = e.disabledClassName,
T = e.tabIndex,
D = void 0 === T ? 0 : T,
j = e.target,
W = void 0 === j ? '' : j,
z = e.href,
A = void 0 === z ? '' : z,
J = e.rounded,
M = void 0 !== J && J,
P = e.name,
q = o(
(((t = {})[d] = Boolean(d)),
(t[s.button] = !0),
(t[s.active] = c && !m),
(t[O || s.disabled] = m),
(t[s.grouped] = h),
(t[s.growable] = g),
(t[s.withPadding] = E),
(t[
(function (e) {
switch (e) {
case 'xsmall':
return s.xsmall;
case 'small':
return s.small;
case 'large':
return s.large;
default:
return '';
}
})(w)
] = Boolean(w)),
(t[
(function (e) {
switch (e) {
case 'ghost':
return s.ghost;
default:
return '';
}
})(I)
] = Boolean(I)),
(t[
(function (e) {
switch (e) {
case 'default':
return s.base;
case 'primary':
return s.primary;
case 'secondary':
return s.secondary;
case 'secondary-script':
return s.secondaryScript;
case 'success':
return s.success;
case 'warning':
return s.warning;
case 'danger':
return s.danger;
case 'link':
return s.link;
default:
return '';
}
})(_)
] = !0),
(t[s.rounded] = M),
t),
),
B = 'default' === _ ? 'black' : 'white',
Q = { disabled: m, title: L, target: W, href: A };
return a.createElement(
'button',
Object(r.__assign)(
{
name: P,
className: q,
tabIndex: D,
onClick: N ? void 0 : b,
ref: y,
},
Q,
),
a.createElement('span', { className: s.hiddenText }, l),
N
? a.createElement(
'span',
{ className: s.loader },
a.createElement(i.Loader, { color: B }),
)
: a.createElement('span', { className: s.text }, l),
);
}
},
qsaw: function (e, t, n) {
e.exports = {
ghost: 'ghost-3yO24wIn',
primary: 'primary-1rSzOFdX',
success: 'success-1qQ3_tEI',
danger: 'danger-jKTO4wDd',
warning: 'warning-2uDfz7Zc',
secondary: 'secondary-3ll81brZ',
button: 'button-2O-nMUcz',
withPadding: 'withPadding-_5CJoO5q',
hiddenText: 'hiddenText-3qcN5Wif',
text: 'text-2KOWx3rB',
loader: 'loader-1CC-1F8J',
base: 'base-2d4XFcnI',
secondaryScript: 'secondaryScript-2iIeFIWW',
link: 'link-2sR0CShp',
xsmall: 'xsmall-1aiWe3Hs',
rounded: 'rounded-3qEdyiAz',
small: 'small-2-nQtW8O',
large: 'large-33HYhX8D',
grouped: 'grouped-1WsMjajI',
growable: 'growable-F6tv8R_j',
active: 'active-2UxWxOgk',
disabled: 'disabled-3u0ULovv',
};
},
uo4K: function (e, t) {
e.exports =
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="currentColor" d="M5.18 6.6L1.3 2.7.6 2 2 .59l.7.7 3.9 3.9 3.89-3.9.7-.7L12.61 2l-.71.7L8 6.6l3.89 3.89.7.7-1.4 1.42-.71-.71L6.58 8 2.72 11.9l-.71.7-1.41-1.4.7-.71 3.9-3.9z"/></svg>';
},
'ycI/': function (e, t, n) {
'use strict';
n.d(t, 'a', function () {
return o;
});
var r = n('mrSG'),
a = n('q1tI'),
o = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this;
return (
(t._handleKeyDown = function (e) {
e.keyCode === t.props.keyCode && t.props.handler(e);
}),
t
);
}
return (
Object(r.__extends)(t, e),
(t.prototype.componentDidMount = function () {
document.addEventListener(
this.props.eventType || 'keydown',
this._handleKeyDown,
!1,
);
}),
(t.prototype.componentWillUnmount = function () {
document.removeEventListener(
this.props.eventType || 'keydown',
this._handleKeyDown,
!1,
);
}),
(t.prototype.render = function () {
return null;
}),
t
);
})(a.PureComponent);
},
},
]);