mango-ui-v3/public/charting_library/bundles/21.1f4811e7eed8baa70e5c.js

520 lines
14 KiB
JavaScript

(window.webpackJsonp = window.webpackJsonp || []).push([
[21],
{
HSjo: function (e, n, t) {
'use strict';
var r = t('mrSG');
function i(e, n) {
return Object(r.__assign)({ propType: 'checkable', properties: e }, n);
}
function o(e, n, t) {
return Object(r.__assign)(
{ propType: 'checkableSet', properties: e, childrenDefinitions: t },
n,
);
}
function u(e, n) {
return Object(r.__assign)(
{ propType: 'color', properties: e, noAlpha: !1 },
n,
);
}
var s = t('a7Ha'),
c = t('8Uy/'),
a = [c.LINESTYLE_SOLID, c.LINESTYLE_DOTTED, c.LINESTYLE_DASHED],
p = [1, 2, 3, 4],
l = [s.LineEnd.Normal, s.LineEnd.Arrow];
function f(e, n) {
var t = Object(r.__assign)({ propType: 'line', properties: e }, n);
return (
void 0 !== t.properties.style && (t.styleValues = a),
void 0 !== t.properties.width && (t.widthValues = p),
(void 0 === t.properties.leftEnd &&
void 0 === t.properties.rightEnd) ||
void 0 !== t.endsValues ||
(t.endsValues = l),
void 0 !== t.properties.value &&
void 0 === t.valueType &&
(t.valueType = 1),
t
);
}
var d = [c.LINESTYLE_SOLID, c.LINESTYLE_DOTTED, c.LINESTYLE_DASHED],
v = [1, 2, 3, 4];
function b(e, n) {
var t = Object(r.__assign)(
{ propType: 'leveledLine', properties: e },
n,
);
return (
void 0 !== t.properties.style && (t.styleValues = d),
void 0 !== t.properties.width && (t.widthValues = v),
t
);
}
function g(e, n) {
return Object(r.__assign)(
{ propType: 'number', properties: e, type: 1 },
n,
);
}
function y(e, n) {
return Object(r.__assign)({ propType: 'options', properties: e }, n);
}
function w(e, n) {
return Object(r.__assign)({ propType: 'twoOptions', properties: e }, n);
}
t('YFKU');
var T = [
{ value: 'bottom', title: window.t('Top') },
{ value: 'middle', title: window.t('Middle') },
{ value: 'top', title: window.t('Bottom') },
],
_ = [
{ value: 'left', title: window.t('Left') },
{ value: 'center', title: window.t('Center') },
{ value: 'right', title: window.t('Right') },
],
m = [
{ value: 'horizontal', title: window.t('Horizontal') },
{ value: 'vertical', title: window.t('Vertical') },
],
h = [10, 11, 12, 14, 16, 20, 24, 28, 32, 40].map(function (e) {
return { title: String(e), value: e };
}),
O = [1, 2, 3, 4],
E = window.t('Text alignment'),
j = window.t('Text orientation');
function V(e, n) {
var t = Object(r.__assign)(
Object(r.__assign)({ propType: 'text', properties: e }, n),
{ isEditable: n.isEditable || !1 },
);
return (
void 0 !== t.properties.size &&
void 0 === t.sizeItems &&
(t.sizeItems = h),
void 0 !== t.properties.alignmentVertical &&
void 0 === t.alignmentVerticalItems &&
(t.alignmentVerticalItems = T),
void 0 !== t.properties.alignmentHorizontal &&
void 0 === t.alignmentHorizontalItems &&
(t.alignmentHorizontalItems = _),
(t.alignmentVerticalItems || t.alignmentHorizontalItems) &&
void 0 === t.alignmentTitle &&
(t.alignmentTitle = E),
void 0 !== t.properties.orientation &&
(void 0 === t.orientationItems && (t.orientationItems = m),
void 0 === t.orientationTitle && (t.orientationTitle = j)),
void 0 !== t.properties.borderWidth &&
void 0 === t.borderWidthItems &&
(t.borderWidthItems = O),
t
);
}
function S(e, n) {
return Object(r.__assign)(
{ propType: 'twoColors', properties: e, noAlpha1: !1, noAlpha2: !1 },
n,
);
}
function I(e, n) {
return Object(r.__assign)(
{ propType: 'coordinates', properties: e },
n,
);
}
function L(e, n) {
return Object(r.__assign)({ propType: 'range', properties: e }, n);
}
function A(e, n) {
return Object(r.__assign)(
{ propType: 'transparency', properties: e },
n,
);
}
function D(e, n) {
return Object(r.__assign)({ propType: 'symbol', properties: e }, n);
}
function H(e, n) {
return Object(r.__assign)({ propType: 'session', properties: e }, n);
}
var z = t('hY0g'),
Y = t.n(z);
function k(e, n, t) {
return {
id: n,
title: t,
groupType: 'general',
definitions: new Y.a(e),
};
}
function N(e, n, t) {
return {
id: n,
title: t,
groupType: 'leveledLines',
definitions: new Y.a(e),
};
}
function P(e, n) {
var t = new Map(),
r =
void 0 !== n
? n[0]
: function (e) {
return e;
},
i =
void 0 !== n
? void 0 !== n[1]
? n[1]
: n[0]
: function (e) {
return e;
},
o = {
value: function () {
return r(e.value());
},
setValue: function (n) {
e.setValue(i(n));
},
subscribe: function (n, r) {
var i = function (e) {
r(o);
};
t.set(r, i), e.subscribe(n, i);
},
unsubscribe: function (n, r) {
var i = t.get(r);
i && (e.unsubscribe(n, i), t.delete(r));
},
unsubscribeAll: function (n) {
e.unsubscribeAll(n), t.clear();
},
};
return o;
}
function M(e, n, t, r) {
var i = P(n, r),
o =
void 0 !== r
? void 0 !== r[1]
? r[1]
: r[0]
: function (e) {
return e;
};
return (
(i.setValue = function (r) {
return e.setProperty(n, o(r), t);
}),
i
);
}
function x(e, n, t, r) {
var i = (function (e, n) {
var t = new Map(),
r =
void 0 !== n
? n[0]
: function (e) {
return e;
},
i =
void 0 !== n
? void 0 !== n[1]
? n[1]
: n[0]
: function (e) {
return e;
},
o = {
value: function () {
return r(e.value());
},
setValue: function (n) {
e.setValue(i(n));
},
subscribe: function (n, r) {
var i = function () {
r(o);
},
u = t.get(n);
void 0 === u
? ((u = new Map()).set(r, i), t.set(n, u))
: u.set(r, i),
e.subscribe(i);
},
unsubscribe: function (n, r) {
var i = t.get(n);
if (void 0 !== i) {
var o = i.get(r);
void 0 !== o && (e.unsubscribe(o), i.delete(r));
}
},
unsubscribeAll: function (n) {
var r = t.get(n);
void 0 !== r &&
(r.forEach(function (n, t) {
e.unsubscribe(n);
}),
r.clear());
},
};
return o;
})(n, r),
o =
void 0 !== r
? void 0 !== r[1]
? r[1]
: r[0]
: function (e) {
return e;
};
return (
(i.setValue = function (r) {
return e.undoHistory().setWatchedValue(n, o(r), t);
}),
i
);
}
function W(e, n) {
var t = P(n);
return (
(t.setValue = function (n) {
return e.setPriceScaleSelectionStrategy(n);
}),
t
);
}
function C(e, n, t, r) {
var i = P(n);
return (
(i.setValue = function (n) {
var i = { lockScale: n };
e.setPriceScaleMode(i, t, r);
}),
i
);
}
function J(e, n, t, r) {
var i = P(n, r);
return (
(i.setValue = function (r) {
e.setScaleRatioProperty(n, r, t);
}),
i
);
}
var R = t('eJTA'),
U = t('Tmoa');
t('+DwS'), t('tc+8');
var q = t('m/cY');
function B(e, n) {
if (Object(U.isHexColor)(e)) {
var t = Object(R.parseRgb)(e);
return Object(R.rgbaToString)(Object(R.rgba)(t, (100 - n) / 100));
}
return e;
}
function F(e, n, t, r) {
var i;
null !== t
? (i = (function (e) {
var n = P(e);
return (
(n.destroy = function () {
e.destroy();
}),
n
);
})(
(function (e) {
for (var n = [], t = 1; t < arguments.length; t++)
n[t - 1] = arguments[t];
for (
var r = function () {
return e.apply(
void 0,
n.map(function (e) {
return e.value();
}),
);
},
i = Object(q.a)(r()),
o = function () {
return i.setValue(r());
},
u = {},
s = 0,
c = n;
s < c.length;
s++
) {
var a = c[s];
a.subscribe(u, o);
}
return (
(i.destroy = function () {
n.forEach(function (e) {
return e.unsubscribeAll(u);
});
}),
i
);
})(B, n, t),
))
: (i = P(n, [
function () {
return B(n.value(), 0);
},
function (e) {
return e;
},
]));
return (
(i.setValue = function (t) {
e.setProperty(n, t, r);
}),
i
);
}
function G(e, n, t, r, i) {
var o,
u,
s = M(e, n, i, [
((o = t),
(u = n),
function (e) {
var n = o(u);
if (e === u.value() && null !== n) {
var t = n.ticker || n.full_name;
if (t) return t;
}
return e;
}),
function (e) {
return e;
},
]),
c = new Map();
(s.subscribe = function (e, t) {
var r = function (e) {
t(s);
};
c.set(t, r), n.subscribe(e, r);
}),
(s.unsubscribe = function (e, t) {
var r = c.get(t);
r && (n.unsubscribe(e, r), c.delete(t));
});
var a = {};
return (
r.subscribe(a, function () {
c.forEach(function (e, n) {
e(s);
});
}),
(s.destroy = function () {
r.unsubscribeAll(a), c.clear();
}),
s
);
}
function K(e) {
return e.hasOwnProperty('groupType');
}
function Q(e) {
e.forEach(function (e) {
e.hasOwnProperty('propType')
? Object.keys(e.properties).forEach(function (n) {
var t = e.properties[n];
void 0 !== t && void 0 !== t.destroy && t.destroy();
})
: Q(e.definitions.value());
});
}
t.d(n, 'z', function () {
return K;
}),
t.d(n, 't', function () {
return Q;
}),
t.d(n, 'c', function () {
return i;
}),
t.d(n, 'd', function () {
return o;
}),
t.d(n, 'e', function () {
return u;
}),
t.d(n, 'h', function () {
return f;
}),
t.d(n, 'g', function () {
return b;
}),
t.d(n, 'i', function () {
return g;
}),
t.d(n, 'j', function () {
return y;
}),
t.d(n, 's', function () {
return w;
}),
t.d(n, 'p', function () {
return V;
}),
t.d(n, 'r', function () {
return S;
}),
t.d(n, 'f', function () {
return I;
}),
t.d(n, 'm', function () {
return L;
}),
t.d(n, 'q', function () {
return A;
}),
t.d(n, 'o', function () {
return D;
}),
t.d(n, 'n', function () {
return H;
}),
t.d(n, 'k', function () {
return k;
}),
t.d(n, 'l', function () {
return N;
}),
t.d(n, 'b', function () {
return M;
}),
t.d(n, 'a', function () {
return x;
}),
t.d(n, 'w', function () {
return W;
}),
t.d(n, 'v', function () {
return C;
}),
t.d(n, 'x', function () {
return J;
}),
t.d(n, 'u', function () {
return F;
}),
t.d(n, 'y', function () {
return G;
});
},
},
]);