. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute',
),
w
? Object(r.cloneElement)(v, {
ref: function(S) {
o(w, S), o(E, S);
},
})
: Object(r.cloneElement)(v, { ref: E })
);
}
function t(v) {
if (typeof v.type == 'string') return;
var E = v.type.displayName || v.type.name || 'the component';
throw new Error(
'Only native element nodes can now be passed to React DnD connectors.' +
'You can either wrap '.concat(E, ' into a
, or turn it into a ') +
'drag source or a drop target itself.',
);
}
function e(v) {
return function() {
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null,
w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
if (!Object(r.isValidElement)(E)) {
var L = E;
return v(L, w), L;
}
var S = E;
t(S);
var R = w
? function(O) {
return v(O, w);
}
: v;
return a(S, R);
};
}
function g(v) {
var E = {};
return (
Object.keys(v).forEach(function(w) {
var L = v[w];
if (w.endsWith('Ref')) E[w] = v[w];
else {
var S = e(L);
E[w] = function() {
return S;
};
}
}),
E
);
}
},
mIlM: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = t(n('q1tI')),
d = o(n('TSYQ'));
function o(b) {
return b && b.__esModule ? b : { default: b };
}
function a() {
if (typeof WeakMap != 'function') return null;
var b = new WeakMap();
return (
(a = function() {
return b;
}),
b
);
}
function t(b) {
if (b && b.__esModule) return b;
if (b === null || (e(b) !== 'object' && typeof b != 'function')) return { default: b };
var C = a();
if (C && C.has(b)) return C.get(b);
var h = {},
u = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var m in b)
if (Object.prototype.hasOwnProperty.call(b, m)) {
var T = u ? Object.getOwnPropertyDescriptor(b, m) : null;
T && (T.get || T.set) ? Object.defineProperty(h, m, T) : (h[m] = b[m]);
}
return (h.default = b), C && C.set(b, h), h;
}
function e(b) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (e = function(h) {
return typeof h;
})
: (e = function(h) {
return h &&
typeof Symbol == 'function' &&
h.constructor === Symbol &&
h !== Symbol.prototype
? 'symbol'
: typeof h;
}),
e(b)
);
}
function g() {
return (
(g =
Object.assign ||
function(b) {
for (var C = 1; C < arguments.length; C++) {
var h = arguments[C];
for (var u in h) Object.prototype.hasOwnProperty.call(h, u) && (b[u] = h[u]);
}
return b;
}),
g.apply(this, arguments)
);
}
function v(b, C, h) {
return (
C in b
? Object.defineProperty(b, C, {
value: h,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (b[C] = h),
b
);
}
function E(b, C) {
if (b == null) return {};
var h = w(b, C),
u,
m;
if (Object.getOwnPropertySymbols) {
var T = Object.getOwnPropertySymbols(b);
for (m = 0; m < T.length; m++) {
if (((u = T[m]), C.indexOf(u) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(b, u)) continue;
h[u] = b[u];
}
}
return h;
}
function w(b, C) {
if (b == null) return {};
var h = {},
u = Object.keys(b),
m,
T;
for (T = 0; T < u.length; T++) {
if (((m = u[T]), C.indexOf(m) >= 0)) continue;
h[m] = b[m];
}
return h;
}
function L(b, C) {
if (!(b instanceof C)) throw new TypeError('Cannot call a class as a function');
}
function S(b, C) {
for (var h = 0; h < C.length; h++) {
var u = C[h];
(u.enumerable = u.enumerable || !1),
(u.configurable = !0),
'value' in u && (u.writable = !0),
Object.defineProperty(b, u.key, u);
}
}
function R(b, C, h) {
return C && S(b.prototype, C), h && S(b, h), b;
}
function O(b, C) {
return C && (e(C) === 'object' || typeof C == 'function') ? C : M(b);
}
function M(b) {
if (b === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return b;
}
function A(b) {
return (
(A = Object.setPrototypeOf
? Object.getPrototypeOf
: function(h) {
return h.__proto__ || Object.getPrototypeOf(h);
}),
A(b)
);
}
function I(b, C) {
if (typeof C != 'function' && C !== null)
throw new TypeError('Super expression must either be null or a function');
(b.prototype = Object.create(C && C.prototype, {
constructor: { value: b, writable: !0, configurable: !0 },
})),
C && B(b, C);
}
function B(b, C) {
return (
(B =
Object.setPrototypeOf ||
function(u, m) {
return (u.__proto__ = m), u;
}),
B(b, C)
);
}
var N = (function(b) {
I(C, b);
function C() {
return L(this, C), O(this, A(C).apply(this, arguments));
}
return (
R(C, [
{
key: 'render',
value: function() {
var u = this.props,
m = u.prefixCls,
T = u.className,
x = u.visible,
F = u.type,
U = E(u, ['prefixCls', 'className', 'visible', 'type']),
H = (0, d.default)(m, T, v({}, ''.concat(m, '--').concat(F), !!F));
return x && r.default.createElement('div', g({ className: H }, U));
},
},
]),
C
);
})(r.PureComponent);
(c.default = N), (N.defaultProps = { prefixCls: 'za-mask', visible: !1, type: 'normal' });
},
'mO/d': function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = d(n('I9Y+'));
function d(a) {
return a && a.__esModule ? a : { default: a };
}
var o = r;
(c.default = o), (W.exports = o);
},
mSe4: function(W, c, n) {
W.exports = {
avatarUploader: 'avatarUploader___1vNfc',
wallBtn: 'wallBtn___1meIq',
imgBox: 'imgBox____BQZH',
imgItem: 'imgItem___1ny5Y',
iconBtn: 'iconBtn___kMY-G',
seleted: 'seleted___3xgDA',
};
},
mTTR: function(W, c, n) {
var r = n('b80T'),
d = n('QcOe'),
o = n('MMmD');
function a(t) {
return o(t) ? r(t, !0) : d(t);
}
W.exports = a;
},
mc0g: function(W, c) {
function n(r) {
return function(d, o, a) {
for (var t = -1, e = Object(d), g = a(d), v = g.length; v--; ) {
var E = g[r ? v : ++t];
if (o(e[E], E, e) === !1) break;
}
return d;
};
}
W.exports = n;
},
mdPL: function(W, c, n) {
(function(r) {
var d = n('WFqU'),
o = c && !c.nodeType && c,
a = o && typeof r == 'object' && r && !r.nodeType && r,
t = a && a.exports === o,
e = t && d.process,
g = (function() {
try {
var v = a && a.require && a.require('util').types;
return v || (e && e.binding && e.binding('util'));
} catch (E) {}
})();
r.exports = g;
}.call(this, n('YuTi')(W)));
},
mjHj: function(W, c, n) {
'use strict';
var r = n('2NuI'),
d = 'NEUTRAL',
o = 'LTR',
a = 'RTL',
t = null;
function e(R) {
return R === o || R === a;
}
function g(R) {
return e(R) || r(!1), R === o ? 'ltr' : 'rtl';
}
function v(R, O) {
return e(R) || r(!1), e(O) || r(!1), R === O ? null : g(R);
}
function E(R) {
t = R;
}
function w() {
E(o);
}
function L() {
return t || this.initGlobalDir(), t || r(!1), t;
}
var S = {
NEUTRAL: d,
LTR: o,
RTL: a,
isStrong: e,
getHTMLDir: g,
getHTMLDirIfDifferent: v,
setGlobalDir: E,
initGlobalDir: w,
getGlobalDir: L,
};
W.exports = S;
},
mpQp: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z',
},
},
],
},
name: 'picture',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'PictureOutlined';
var e = (c.a = r.forwardRef(t));
},
'mv/X': function(W, c, n) {
var r = n('ljhN'),
d = n('MMmD'),
o = n('wJg7'),
a = n('GoyQ');
function t(e, g, v) {
if (!a(v)) return !1;
var E = typeof g;
return (E == 'number' ? d(v) && o(g, v.length) : E == 'string' && g in v) ? r(v[g], e) : !1;
}
W.exports = t;
},
mwIZ: function(W, c, n) {
var r = n('ZWtO');
function d(o, a, t) {
var e = o == null ? void 0 : r(o, a);
return e === void 0 ? t : e;
}
W.exports = d;
},
'n+ZD': function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = e(n('q1tI')),
d = a(n('TSYQ')),
o = a(n('8Bmw'));
function a(h) {
return h && h.__esModule ? h : { default: h };
}
function t() {
if (typeof WeakMap != 'function') return null;
var h = new WeakMap();
return (
(t = function() {
return h;
}),
h
);
}
function e(h) {
if (h && h.__esModule) return h;
if (h === null || (g(h) !== 'object' && typeof h != 'function')) return { default: h };
var u = t();
if (u && u.has(h)) return u.get(h);
var m = {},
T = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var x in h)
if (Object.prototype.hasOwnProperty.call(h, x)) {
var F = T ? Object.getOwnPropertyDescriptor(h, x) : null;
F && (F.get || F.set) ? Object.defineProperty(m, x, F) : (m[x] = h[x]);
}
return (m.default = h), u && u.set(h, m), m;
}
function g(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (g = function(m) {
return typeof m;
})
: (g = function(m) {
return m &&
typeof Symbol == 'function' &&
m.constructor === Symbol &&
m !== Symbol.prototype
? 'symbol'
: typeof m;
}),
g(h)
);
}
function v() {
return (
(v =
Object.assign ||
function(h) {
for (var u = 1; u < arguments.length; u++) {
var m = arguments[u];
for (var T in m) Object.prototype.hasOwnProperty.call(m, T) && (h[T] = m[T]);
}
return h;
}),
v.apply(this, arguments)
);
}
function E(h, u, m) {
return (
u in h
? Object.defineProperty(h, u, {
value: m,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[u] = m),
h
);
}
function w(h, u) {
if (h == null) return {};
var m = L(h, u),
T,
x;
if (Object.getOwnPropertySymbols) {
var F = Object.getOwnPropertySymbols(h);
for (x = 0; x < F.length; x++) {
if (((T = F[x]), u.indexOf(T) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(h, T)) continue;
m[T] = h[T];
}
}
return m;
}
function L(h, u) {
if (h == null) return {};
var m = {},
T = Object.keys(h),
x,
F;
for (F = 0; F < T.length; F++) {
if (((x = T[F]), u.indexOf(x) >= 0)) continue;
m[x] = h[x];
}
return m;
}
function S(h, u) {
if (!(h instanceof u)) throw new TypeError('Cannot call a class as a function');
}
function R(h, u) {
for (var m = 0; m < u.length; m++) {
var T = u[m];
(T.enumerable = T.enumerable || !1),
(T.configurable = !0),
'value' in T && (T.writable = !0),
Object.defineProperty(h, T.key, T);
}
}
function O(h, u, m) {
return u && R(h.prototype, u), m && R(h, m), h;
}
function M(h, u) {
return u && (g(u) === 'object' || typeof u == 'function') ? u : A(h);
}
function A(h) {
if (h === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return h;
}
function I(h) {
return (
(I = Object.setPrototypeOf
? Object.getPrototypeOf
: function(m) {
return m.__proto__ || Object.getPrototypeOf(m);
}),
I(h)
);
}
function B(h, u) {
if (typeof u != 'function' && u !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(u && u.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
u && N(h, u);
}
function N(h, u) {
return (
(N =
Object.setPrototypeOf ||
function(T, x) {
return (T.__proto__ = x), T;
}),
N(h, u)
);
}
var b = function(u, m) {
return typeof u.checked != 'undefined'
? u.checked
: typeof u.defaultChecked != 'undefined'
? u.defaultChecked
: m;
},
C = (function(h) {
B(u, h);
function u() {
var m, T;
S(this, u);
for (var x = arguments.length, F = new Array(x), U = 0; U < x; U++) F[U] = arguments[U];
return (
(T = M(this, (m = I(u)).call.apply(m, [this].concat(F)))),
(T.state = { checked: b(T.props, !1) }),
(T.onValueChange = function(H) {
var Y = T.props,
Z = Y.disabled,
ne = Y.onChange,
ae = T.state.checked;
if (Z) return;
var Ee = !ae;
'checked' in T.props || T.setState({ checked: Ee }),
typeof ne == 'function' && ne(H);
}),
T
);
}
return (
O(
u,
[
{
key: 'render',
value: function() {
var T,
x = this.props,
F = x.prefixCls,
U = x.className,
H = x.type,
Y = x.shape,
Z = x.value,
ne = x.checked,
ae = x.defaultChecked,
Ee = x.disabled,
Ae = x.id,
ue = x.indeterminate,
Q = x.children,
le = x.onChange,
J = w(x, [
'prefixCls',
'className',
'type',
'shape',
'value',
'checked',
'defaultChecked',
'disabled',
'id',
'indeterminate',
'children',
'onChange',
]),
re = this.state.checked,
ce = (0, d.default)(
F,
U,
((T = {}),
E(T, ''.concat(F, '--checked'), re),
E(T, ''.concat(F, '--disabled'), Ee),
E(T, ''.concat(F, '--indeterminate'), ue),
E(T, ''.concat(F, '--untext'), !Q),
T),
),
ye = r.default.createElement('input', {
id: Ae,
type: 'checkbox',
className: ''.concat(F, '__input'),
value: Z,
disabled: Ee,
checked: re,
onChange: this.onValueChange,
}),
De = r.default.createElement(
'span',
v({ className: ce }, J),
r.default.createElement(
'span',
{ className: ''.concat(F, '__widget') },
r.default.createElement('span', { className: ''.concat(F, '__inner') }),
),
Q &&
r.default.createElement('span', { className: ''.concat(F, '__text') }, Q),
ye,
);
return H === 'cell'
? r.default.createElement(
o.default,
v({ disabled: Ee, className: U, onClick: function() {} }, J),
De,
)
: H === 'button'
? r.default.createElement(
'button',
v({ type: 'button', disabled: Ee, className: ce }, J),
Q,
ye,
)
: De;
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(T, x) {
return 'checked' in T && T.checked !== x.prevChecked
? { checked: T.checked, prevChecked: T.checked }
: null;
},
},
],
),
u
);
})(r.PureComponent);
(c.default = C),
(C.Group = void 0),
(C.displayName = 'Checkbox'),
(C.defaultProps = { prefixCls: 'za-checkbox', disabled: !1, indeterminate: !1 });
},
'nO5+': function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }),
(c.getFromHTMLConfig = c.getToHTMLConfig = c.blocks = c.getHexColor = c.defaultFontFamilies = c.namedColors = void 0);
var r =
Object.assign ||
function(F) {
for (var U = 1; U < arguments.length; U++) {
var H = arguments[U];
for (var Y in H) Object.prototype.hasOwnProperty.call(H, Y) && (F[Y] = H[Y]);
}
return F;
},
d = n('q1tI'),
o = a(d);
function a(F) {
return F && F.__esModule ? F : { default: F };
}
function t(F, U) {
var H = {};
for (var Y in F) {
if (U.indexOf(Y) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(F, Y)) continue;
H[Y] = F[Y];
}
return H;
}
var e = (c.namedColors = {
aliceblue: '#f0f8ff',
antiquewhite: '#faebd7',
aqua: '#00ffff',
aquamarine: '#7fffd4',
azure: '#f0ffff',
beige: '#f5f5dc',
bisque: '#ffe4c4',
black: '#000000',
blanchedalmond: '#ffebcd',
blue: '#0000ff',
blueviolet: '#8a2be2',
brown: '#a52a2a',
burlywood: '#deb887',
cadetblue: '#5f9ea0',
chartreuse: '#7fff00',
chocolate: '#d2691e',
coral: '#ff7f50',
cornflowerblue: '#6495ed',
cornsilk: '#fff8dc',
crimson: '#dc143c',
cyan: '#00ffff',
darkblue: '#00008b',
darkcyan: '#008b8b',
darkgoldenrod: '#b8860b',
darkgray: '#a9a9a9',
darkgreen: '#006400',
darkkhaki: '#bdb76b',
darkmagenta: '#8b008b',
darkolivegreen: '#556b2f',
darkorange: '#ff8c00',
darkorchid: '#9932cc',
darkred: '#8b0000',
darksalmon: '#e9967a',
darkseagreen: '#8fbc8f',
darkslateblue: '#483d8b',
darkslategray: '#2f4f4f',
darkturquoise: '#00ced1',
darkviolet: '#9400d3',
deeppink: '#ff1493',
deepskyblue: '#00bfff',
dimgray: '#696969',
dodgerblue: '#1e90ff',
firebrick: '#b22222',
floralwhite: '#fffaf0',
forestgreen: '#228b22',
fuchsia: '#ff00ff',
gainsboro: '#dcdcdc',
ghostwhite: '#f8f8ff',
gold: '#ffd700',
goldenrod: '#daa520',
gray: '#808080',
green: '#008000',
greenyellow: '#adff2f',
honeydew: '#f0fff0',
hotpink: '#ff69b4',
'indianred ': '#cd5c5c',
indigo: '#4b0082',
ivory: '#fffff0',
khaki: '#f0e68c',
lavender: '#e6e6fa',
lavenderblush: '#fff0f5',
lawngreen: '#7cfc00',
lemonchiffon: '#fffacd',
lightblue: '#add8e6',
lightcoral: '#f08080',
lightcyan: '#e0ffff',
lightgoldenrodyellow: '#fafad2',
lightgrey: '#d3d3d3',
lightgreen: '#90ee90',
lightpink: '#ffb6c1',
lightsalmon: '#ffa07a',
lightseagreen: '#20b2aa',
lightskyblue: '#87cefa',
lightslategray: '#778899',
lightsteelblue: '#b0c4de',
lightyellow: '#ffffe0',
lime: '#00ff00',
limegreen: '#32cd32',
linen: '#faf0e6',
magenta: '#ff00ff',
maroon: '#800000',
mediumaquamarine: '#66cdaa',
mediumblue: '#0000cd',
mediumorchid: '#ba55d3',
mediumpurple: '#9370d8',
mediumseagreen: '#3cb371',
mediumslateblue: '#7b68ee',
mediumspringgreen: '#00fa9a',
mediumturquoise: '#48d1cc',
mediumvioletred: '#c71585',
midnightblue: '#191970',
mintcream: '#f5fffa',
mistyrose: '#ffe4e1',
moccasin: '#ffe4b5',
navajowhite: '#ffdead',
navy: '#000080',
oldlace: '#fdf5e6',
olive: '#808000',
olivedrab: '#6b8e23',
orange: '#ffa500',
orangered: '#ff4500',
orchid: '#da70d6',
palegoldenrod: '#eee8aa',
palegreen: '#98fb98',
paleturquoise: '#afeeee',
palevioletred: '#d87093',
papayawhip: '#ffefd5',
peachpuff: '#ffdab9',
peru: '#cd853f',
pink: '#ffc0cb',
plum: '#dda0dd',
powderblue: '#b0e0e6',
purple: '#800080',
rebeccapurple: '#663399',
red: '#ff0000',
rosybrown: '#bc8f8f',
royalblue: '#4169e1',
saddlebrown: '#8b4513',
salmon: '#fa8072',
sandybrown: '#f4a460',
seagreen: '#2e8b57',
seashell: '#fff5ee',
sienna: '#a0522d',
silver: '#c0c0c0',
skyblue: '#87ceeb',
slateblue: '#6a5acd',
slategray: '#708090',
snow: '#fffafa',
springgreen: '#00ff7f',
steelblue: '#4682b4',
tan: '#d2b48c',
teal: '#008080',
thistle: '#d8bfd8',
tomato: '#ff6347',
turquoise: '#40e0d0',
violet: '#ee82ee',
wheat: '#f5deb3',
white: '#ffffff',
whitesmoke: '#f5f5f5',
yellow: '#ffff00',
yellowgreen: '#9acd32',
}),
g = function(U) {
return U.split('-')[1];
},
v = function(U) {
return U + 'px';
},
E = function(U) {
return U.replace('px', '');
},
w = ['style'],
L = [
'style',
'href',
'target',
'alt',
'title',
'id',
'controls',
'autoplay',
'loop',
'poster',
],
S = function(U) {
return Object.keys(U)
.reduce(function(H, Y) {
return H + ' ' + Y + '="' + U[Y] + '"';
}, '')
.replace(/^\s$/, '');
},
R = (c.defaultFontFamilies = [
{ name: 'Araial', family: 'Arial, Helvetica, sans-serif' },
{ name: 'Georgia', family: 'Georgia, serif' },
{ name: 'Impact', family: 'Impact, serif' },
{ name: 'Monospace', family: '"Courier New", Courier, monospace' },
{ name: 'Tahoma', family: "tahoma, arial, 'Hiragino Sans GB', 宋体, sans-serif" },
]),
O = (c.getHexColor = function(U) {
if (
((U = U.replace('color:', '')
.replace(';', '')
.replace(' ', '')),
/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(U))
)
return U;
if (e[U]) return e[U];
if (U.indexOf('rgb') === 0) {
var H = U.split(','),
Y =
H.length < 3
? null
: '#' +
[H[0], H[1], H[2]]
.map(function(Z) {
var ne = parseInt(Z.replace(/\D/g, ''), 10).toString(16);
return ne.length === 1 ? '0' + ne : ne;
})
.join('');
return /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(Y) ? Y : null;
} else return null;
}),
M = (c.blocks = {
'header-one': 'h1',
'header-two': 'h2',
'header-three': 'h3',
'header-four': 'h4',
'header-five': 'h5',
'header-six': 'h6',
unstyled: 'p',
blockquote: 'blockquote',
}),
A = Object.keys(M),
I = A.map(function(F) {
return M[F];
}),
B = function(U, H, Y) {
if (!U || !U.key) return o.default.createElement('p', null);
var Z = H.getBlockForKey(U.key),
ne = Y.class,
ae = t(Y, ['class']);
if (((ae.className = ne), !Z)) return o.default.createElement('p', null);
var Ee = Z.getEntityAt(0);
if (!Ee) return o.default.createElement('p', null);
var Ae = H.getEntity(Ee),
ue = Ae.getType().toLowerCase(),
Q = U.data,
le = Q.float,
J = Q.alignment,
re = Ae.getData(),
ce = re.url,
ye = re.link,
De = re.link_target,
Ne = re.width,
qe = re.height,
Fe = re.meta;
if (ue === 'image') {
var We = {},
Xe = '';
return (
le
? ((We.float = le), (Xe += ' float-' + le))
: J && ((We.textAlign = J), (Xe += ' align-' + J)),
ye
? o.default.createElement(
'div',
{ className: 'media-wrap image-wrap' + Xe, style: We },
o.default.createElement(
'a',
{ style: { display: 'inline-block' }, href: ye, target: De },
o.default.createElement(
'img',
r({}, ae, Fe, {
src: ce,
width: Ne,
height: qe,
style: { width: Ne, height: qe },
}),
),
),
)
: o.default.createElement(
'div',
{ className: 'media-wrap image-wrap' + Xe, style: We },
o.default.createElement(
'img',
r({}, ae, Fe, {
src: ce,
width: Ne,
height: qe,
style: { width: Ne, height: qe },
}),
),
)
);
} else
return ue === 'audio'
? o.default.createElement(
'div',
{ className: 'media-wrap audio-wrap' },
o.default.createElement('audio', r({ controls: !0 }, ae, Fe, { src: ce })),
)
: ue === 'video'
? o.default.createElement(
'div',
{ className: 'media-wrap video-wrap' },
o.default.createElement(
'video',
r({ controls: !0 }, ae, Fe, { src: ce, width: Ne, height: qe }),
),
)
: ue === 'embed'
? o.default.createElement(
'div',
{ className: 'media-wrap embed-wrap' },
o.default.createElement('div', { dangerouslySetInnerHTML: { __html: ce } }),
)
: ue === 'hr'
? o.default.createElement('hr', null)
: o.default.createElement('p', null);
},
N = function(U) {
return function(H, Y) {
var Z = U.entityExportFn,
ne = H.type.toLowerCase();
if (Z) {
var ae = Z(H, Y);
if (ae) return ae;
}
if (ne === 'link') {
var Ee = H.data.nodeAttributes || {},
Ae = Ee.class,
ue = t(Ee, ['class']);
return (
(ue.className = Ae),
o.default.createElement('a', r({ href: H.data.href, target: H.data.target }, ue))
);
}
};
},
b = function(U) {
return function(H) {
var Y = U.unitExportFn || v;
if (U.styleExportFn) {
var Z = U.styleExportFn(H, U);
if (Z) return Z;
}
if (((H = H.toLowerCase()), H === 'strikethrough'))
return o.default.createElement('span', { style: { textDecoration: 'line-through' } });
if (H === 'superscript') return o.default.createElement('sup', null);
if (H === 'subscript') return o.default.createElement('sub', null);
if (H.indexOf('color-') === 0)
return o.default.createElement('span', { style: { color: '#' + g(H) } });
if (H.indexOf('bgcolor-') === 0)
return o.default.createElement('span', { style: { backgroundColor: '#' + g(H) } });
if (H.indexOf('fontsize-') === 0)
return o.default.createElement('span', {
style: { fontSize: Y(g(H), 'font-size', 'html') },
});
if (H.indexOf('lineheight-') === 0)
return o.default.createElement('span', {
style: { lineHeight: Y(g(H), 'line-height', 'html') },
});
if (H.indexOf('letterspacing-') === 0)
return o.default.createElement('span', {
style: { letterSpacing: Y(g(H), 'letter-spacing', 'html') },
});
if (H.indexOf('fontfamily-') === 0) {
var ne = U.fontFamilies.find(function(ae) {
return ae.name.toLowerCase() === g(H);
});
return ne
? o.default.createElement('span', { style: { fontFamily: ne.family } })
: void 0;
}
};
},
C = function(U) {
return function(H) {
var Y = U.blockExportFn,
Z = U.contentState;
if (Y) {
var ne = Y(Z, H);
if (ne) return ne;
}
var ae = '',
Ee = H.type.toLowerCase(),
Ae = H.data,
ue = Ae.textAlign,
Q = Ae.textIndent,
le = Ae.nodeAttributes,
J = le === void 0 ? {} : le,
re = S(J);
if (
((ue || Q) &&
((ae = ' style="'),
ue && (ae += 'text-align:' + ue + ';'),
Q && !isNaN(Q) && Q > 0 && (ae += 'text-indent:' + Q * 2 + 'em;'),
(ae += '"')),
Ee === 'atomic')
)
return B(H, Z, J);
if (Ee === 'code-block') {
var ce = Z.getBlockBefore(H.key),
ye = Z.getBlockAfter(H.key),
De = ce && ce.getType(),
Ne = ye && ye.getType(),
qe = '',
Fe = '';
return (
De !== 'code-block' ? (qe = '
') : (qe = ''),
Ne !== 'code-block' ? (Fe = '
') : (Fe = '
'),
{ start: qe, end: Fe }
);
} else {
if (M[Ee]) return { start: '<' + M[Ee] + ae + re + '>', end: '' + M[Ee] + '>' };
if (Ee === 'unordered-list-item')
return {
start: '
',
end: '',
nest: o.default.createElement('ul', null),
};
if (Ee === 'ordered-list-item')
return {
start: '
',
end: '',
nest: o.default.createElement('ol', null),
};
}
};
},
h = function(U, H) {
return function(Y, Z, ne) {
if (!Z || !Z.style) return ne;
var ae = U.unitImportFn || E,
Ee = ne;
return (
[].forEach.call(Z.style, function(Ae) {
if (Y === 'span' && Ae === 'color') {
var ue = O(Z.style.color);
Ee = ue ? Ee.add('COLOR-' + ue.replace('#', '').toUpperCase()) : Ee;
} else if (Y === 'span' && Ae === 'background-color') {
var Q = O(Z.style.backgroundColor);
Ee = Q ? Ee.add('BGCOLOR-' + Q.replace('#', '').toUpperCase()) : Ee;
} else if (Y === 'span' && Ae === 'font-size')
Ee = Ee.add('FONTSIZE-' + ae(Z.style.fontSize, 'font-size', H));
else if (
Y === 'span' &&
Ae === 'line-height' &&
!isNaN(parseFloat(Z.style.lineHeight, 10))
)
Ee = Ee.add('LINEHEIGHT-' + ae(Z.style.lineHeight, 'line-height', H));
else if (
Y === 'span' &&
Ae === 'letter-spacing' &&
!isNaN(parseFloat(Z.style.letterSpacing, 10))
)
Ee = Ee.add('LETTERSPACING-' + ae(Z.style.letterSpacing, 'letter-spacing', H));
else if (Y === 'span' && Ae === 'text-decoration')
Z.style.textDecoration === 'line-through'
? (Ee = Ee.add('STRIKETHROUGH'))
: Z.style.textDecoration === 'underline' && (Ee = Ee.add('UNDERLINE'));
else if (Y === 'span' && Ae === 'font-family') {
var le = U.fontFamilies.find(function(J) {
return J.family.toLowerCase() === Z.style.fontFamily.toLowerCase();
});
if (!le) return;
Ee = Ee.add('FONTFAMILY-' + le.name.toUpperCase());
}
}),
Y === 'sup'
? (Ee = Ee.add('SUPERSCRIPT'))
: Y === 'sub' && (Ee = Ee.add('SUBSCRIPT')),
U.styleImportFn && (Ee = U.styleImportFn(Y, Z, Ee, H) || Ee),
Ee
);
};
},
u = function(U, H) {
return function(Y, Z, ne) {
if (U && U.entityImportFn) {
var ae = U.entityImportFn(Y, Z, ne, H);
if (ae) return ae;
}
Y = Y.toLowerCase();
var Ee = Z.alt,
Ae = Z.title,
ue = Z.id,
Q = Z.controls,
le = Z.autoplay,
J = Z.loop,
re = Z.poster,
ce = {},
ye = {};
if (
(ue && (ce.id = ue),
Ee && (ce.alt = Ee),
Ae && (ce.title = Ae),
Q && (ce.controls = Q),
le && (ce.autoPlay = le),
J && (ce.loop = J),
re && (ce.poster = re),
Z.attributes &&
Object.keys(Z.attributes).forEach(function(_t) {
var Ft = Z.attributes[_t];
L.indexOf(Ft.name) === -1 && (ye[Ft.name] = Ft.value);
}),
Y === 'a' && !Z.querySelectorAll('img').length)
) {
var De = Z.getAttribute('href'),
Ne = Z.getAttribute('target');
return ne('LINK', 'MUTABLE', { href: De, target: Ne, nodeAttributes: ye });
} else {
if (Y === 'audio')
return ne('AUDIO', 'IMMUTABLE', {
url: Z.getAttribute('src'),
meta: ce,
nodeAttributes: ye,
});
if (Y === 'video')
return ne('VIDEO', 'IMMUTABLE', {
url: Z.getAttribute('src'),
meta: ce,
nodeAttributes: ye,
});
if (Y === 'img') {
var qe = Z.parentNode,
Fe = { meta: ce },
We = Z.style,
Xe = We.width,
ke = We.height;
return (
(Fe.url = Z.getAttribute('src')),
Xe && (Fe.width = Xe),
ke && (Fe.height = ke),
qe.nodeName.toLowerCase() === 'a' &&
((Fe.link = qe.getAttribute('href')),
(Fe.link_target = qe.getAttribute('target'))),
ne('IMAGE', 'IMMUTABLE', Fe)
);
} else {
if (Y === 'hr') return ne('HR', 'IMMUTABLE', {});
if (Z.parentNode && Z.parentNode.classList.contains('embed-wrap')) {
var vt = Z.innerHTML || Z.outerHTML;
if (vt) return ne('EMBED', 'IMMUTABLE', { url: vt });
}
}
}
};
},
m = function(U, H) {
return function(Y, Z) {
if (U && U.blockImportFn) {
var ne = U.blockImportFn(Y, Z, H);
if (ne) return ne;
}
var ae = {},
Ee = Z.style || {};
if (
(Z.attributes &&
Object.keys(Z.attributes).forEach(function(ue) {
var Q = Z.attributes[ue];
w.indexOf(Q.name) === -1 && (ae[Q.name] = Q.value);
}),
Z.classList && Z.classList.contains('media-wrap'))
)
return {
type: 'atomic',
data: { nodeAttributes: ae, float: Ee.float, alignment: Ee.textAlign },
};
if (Y === 'img')
return {
type: 'atomic',
data: { nodeAttributes: ae, float: Ee.float, alignment: Ee.textAlign },
};
if (Y === 'hr') return { type: 'atomic', data: { nodeAttributes: ae } };
if (Y === 'pre')
return (
(Z.innerHTML = Z.innerHTML.replace(/
/g, '').replace(/<\/code>/g, '')),
{ type: 'code-block', data: { nodeAttributes: ae } }
);
if (I.indexOf(Y) !== -1) {
var Ae = { nodeAttributes: ae };
return (
Ee.textAlign && (Ae.textAlign = Ee.textAlign),
Ee.textIndent &&
(Ae.textIndent = /^\d+em$/.test(Ee.textIndent)
? Math.ceil(parseInt(Ee.textIndent, 10) / 2)
: 1),
{ type: A[I.indexOf(Y)], data: Ae }
);
}
};
},
T = (c.getToHTMLConfig = function(U) {
return { styleToHTML: b(U), entityToHTML: N(U), blockToHTML: C(U) };
}),
x = (c.getFromHTMLConfig = function(U) {
var H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'unknow';
return { htmlToStyle: h(U, H), htmlToEntity: u(U, H), htmlToBlock: m(U, H) };
});
},
nPkp: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = { cancelText: '取消', okText: '确定' };
c.default = r;
},
'nW7/': function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.Twitter = void 0);
var r = n('q1tI'),
d = O(r),
o = n('17x9'),
a = O(o),
t = n('/FUP'),
e = O(t),
g = n('3WF5'),
v = O(g),
E = n('QkVN'),
w = O(E),
L = n('p8yl'),
S = O(L),
R = n('TM95');
function O(A) {
return A && A.__esModule ? A : { default: A };
}
var M = (c.Twitter = function(I) {
var B = I.onChange,
N = I.onSwatchHover,
b = I.hex,
C = I.colors,
h = I.width,
u = I.triangle,
m = I.styles,
T = m === void 0 ? {} : m,
x = I.className,
F = x === void 0 ? '' : x,
U = (0, e.default)(
(0, w.default)(
{
default: {
card: {
width: h,
background: '#fff',
border: '0 solid rgba(0,0,0,0.25)',
boxShadow: '0 1px 4px rgba(0,0,0,0.25)',
borderRadius: '4px',
position: 'relative',
},
body: { padding: '15px 9px 9px 15px' },
label: { fontSize: '18px', color: '#fff' },
triangle: {
width: '0px',
height: '0px',
borderStyle: 'solid',
borderWidth: '0 9px 10px 9px',
borderColor: 'transparent transparent #fff transparent',
position: 'absolute',
},
triangleShadow: {
width: '0px',
height: '0px',
borderStyle: 'solid',
borderWidth: '0 9px 10px 9px',
borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
position: 'absolute',
},
hash: {
background: '#F0F0F0',
height: '30px',
width: '30px',
borderRadius: '4px 0 0 4px',
float: 'left',
color: '#98A1A4',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
input: {
width: '100px',
fontSize: '14px',
color: '#666',
border: '0px',
outline: 'none',
height: '28px',
boxShadow: 'inset 0 0 0 1px #F0F0F0',
boxSizing: 'content-box',
borderRadius: '0 4px 4px 0',
float: 'left',
paddingLeft: '8px',
},
swatch: {
width: '30px',
height: '30px',
float: 'left',
borderRadius: '4px',
margin: '0 6px 6px 0',
},
clear: { clear: 'both' },
},
'hide-triangle': {
triangle: { display: 'none' },
triangleShadow: { display: 'none' },
},
'top-left-triangle': {
triangle: { top: '-10px', left: '12px' },
triangleShadow: { top: '-11px', left: '12px' },
},
'top-right-triangle': {
triangle: { top: '-10px', right: '12px' },
triangleShadow: { top: '-11px', right: '12px' },
},
},
T,
),
{
'hide-triangle': u === 'hide',
'top-left-triangle': u === 'top-left',
'top-right-triangle': u === 'top-right',
},
),
H = function(Z, ne) {
S.default.isValidHex(Z) && B({ hex: Z, source: 'hex' }, ne);
};
return d.default.createElement(
'div',
{ style: U.card, className: 'twitter-picker ' + F },
d.default.createElement('div', { style: U.triangleShadow }),
d.default.createElement('div', { style: U.triangle }),
d.default.createElement(
'div',
{ style: U.body },
(0, v.default)(C, function(Y, Z) {
return d.default.createElement(R.Swatch, {
key: Z,
color: Y,
hex: Y,
style: U.swatch,
onClick: H,
onHover: N,
focusStyle: { boxShadow: '0 0 4px ' + Y },
});
}),
d.default.createElement('div', { style: U.hash }, '#'),
d.default.createElement(R.EditableInput, {
label: null,
style: { input: U.input },
value: b.replace('#', ''),
onChange: H,
}),
d.default.createElement('div', { style: U.clear }),
),
);
});
(M.propTypes = {
width: a.default.oneOfType([a.default.string, a.default.number]),
triangle: a.default.oneOf(['hide', 'top-left', 'top-right']),
colors: a.default.arrayOf(a.default.string),
styles: a.default.object,
}),
(M.defaultProps = {
width: 276,
colors: [
'#FF6900',
'#FCB900',
'#7BDCB5',
'#00D084',
'#8ED1FC',
'#0693E3',
'#ABB8C3',
'#EB144C',
'#F78DA7',
'#9900EF',
],
triangle: 'top-left',
styles: {},
}),
(c.default = (0, R.ColorWrap)(M));
},
nXTX: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = 0,
d = (c.UniqueIndex = function() {
return (r += 1);
});
},
nmnc: function(W, c, n) {
var r = n('Kz5y'),
d = r.Symbol;
W.exports = d;
},
'oCl/': function(W, c, n) {
var r = n('CH3K'),
d = n('LcsW'),
o = n('MvSz'),
a = n('0ycA'),
t = Object.getOwnPropertySymbols,
e = t
? function(g) {
for (var v = []; g; ) r(v, o(g)), (g = d(g));
return v;
}
: a;
W.exports = e;
},
oPLb: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.Compact = void 0);
var r = n('q1tI'),
d = B(r),
o = n('17x9'),
a = B(o),
t = n('/FUP'),
e = B(t),
g = n('3WF5'),
v = B(g),
E = n('QkVN'),
w = B(E),
L = n('p8yl'),
S = B(L),
R = n('TM95'),
O = n('ZQT/'),
M = B(O),
A = n('8J/B'),
I = B(A);
function B(b) {
return b && b.__esModule ? b : { default: b };
}
var N = (c.Compact = function(C) {
var h = C.onChange,
u = C.onSwatchHover,
m = C.colors,
T = C.hex,
x = C.rgb,
F = C.styles,
U = F === void 0 ? {} : F,
H = C.className,
Y = H === void 0 ? '' : H,
Z = (0, e.default)(
(0, w.default)(
{
default: {
Compact: { background: '#f6f6f6', radius: '4px' },
compact: {
paddingTop: '5px',
paddingLeft: '5px',
boxSizing: 'initial',
width: '240px',
},
clear: { clear: 'both' },
},
},
U,
),
),
ne = function(Ee, Ae) {
Ee.hex
? S.default.isValidHex(Ee.hex) && h({ hex: Ee.hex, source: 'hex' }, Ae)
: h(Ee, Ae);
};
return d.default.createElement(
R.Raised,
{ style: Z.Compact, styles: U },
d.default.createElement(
'div',
{ style: Z.compact, className: 'compact-picker ' + Y },
d.default.createElement(
'div',
null,
(0, v.default)(m, function(ae) {
return d.default.createElement(M.default, {
key: ae,
color: ae,
active: ae.toLowerCase() === T,
onClick: ne,
onSwatchHover: u,
});
}),
d.default.createElement('div', { style: Z.clear }),
),
d.default.createElement(I.default, { hex: T, rgb: x, onChange: ne }),
),
);
});
(N.propTypes = { colors: a.default.arrayOf(a.default.string), styles: a.default.object }),
(N.defaultProps = {
colors: [
'#4D4D4D',
'#999999',
'#FFFFFF',
'#F44E3B',
'#FE9200',
'#FCDC00',
'#DBDF00',
'#A4DD00',
'#68CCCA',
'#73D8FF',
'#AEA1FF',
'#FDA1FF',
'#333333',
'#808080',
'#cccccc',
'#D33115',
'#E27300',
'#FCC400',
'#B0BC00',
'#68BC00',
'#16A5A5',
'#009CE0',
'#7B64FF',
'#FA28FF',
'#000000',
'#666666',
'#B3B3B3',
'#9F0500',
'#C45100',
'#FB9E00',
'#808900',
'#194D33',
'#0C797D',
'#0062B1',
'#653294',
'#AB149E',
],
styles: {},
}),
(c.default = (0, R.ColorWrap)(N));
},
oPSa: function(W, c, n) {
'use strict';
var r = {
draft_killswitch_allow_nontextnodes: !1,
draft_segmented_entities_behavior: !1,
draft_handlebeforeinput_composed_text: !1,
draft_tree_data_support: !1,
};
W.exports = r;
},
oQVV: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return g;
});
var r = n('khz9'),
d = n('mDht'),
o = n('V5iW');
function a(v, E) {
if (!(v instanceof E)) throw new TypeError('Cannot call a class as a function');
}
function t(v, E) {
for (var w = 0; w < E.length; w++) {
var L = E[w];
(L.enumerable = L.enumerable || !1),
(L.configurable = !0),
'value' in L && (L.writable = !0),
Object.defineProperty(v, L.key, L);
}
}
function e(v, E, w) {
return E && t(v.prototype, E), w && t(v, w), v;
}
var g = (function() {
function v(E) {
var w = this;
a(this, v),
(this.hooks = Object(d.a)({
dropTarget: function(S, R) {
w.clearDropTarget(),
(w.dropTargetOptions = R),
Object(o.a)(S) ? (w.dropTargetRef = S) : (w.dropTargetNode = S),
w.reconnect();
},
})),
(this.handlerId = null),
(this.dropTargetRef = null),
(this.dropTargetOptionsInternal = null),
(this.lastConnectedHandlerId = null),
(this.lastConnectedDropTarget = null),
(this.lastConnectedDropTargetOptions = null),
(this.backend = E);
}
return (
e(v, [
{
key: 'reconnect',
value: function() {
var w =
this.didHandlerIdChange() ||
this.didDropTargetChange() ||
this.didOptionsChange();
w && this.disconnectDropTarget();
var L = this.dropTarget;
if (!this.handlerId) return;
if (!L) {
this.lastConnectedDropTarget = L;
return;
}
w &&
((this.lastConnectedHandlerId = this.handlerId),
(this.lastConnectedDropTarget = L),
(this.lastConnectedDropTargetOptions = this.dropTargetOptions),
(this.unsubscribeDropTarget = this.backend.connectDropTarget(
this.handlerId,
L,
this.dropTargetOptions,
)));
},
},
{
key: 'receiveHandlerId',
value: function(w) {
if (w === this.handlerId) return;
(this.handlerId = w), this.reconnect();
},
},
{
key: 'didHandlerIdChange',
value: function() {
return this.lastConnectedHandlerId !== this.handlerId;
},
},
{
key: 'didDropTargetChange',
value: function() {
return this.lastConnectedDropTarget !== this.dropTarget;
},
},
{
key: 'didOptionsChange',
value: function() {
return !Object(r.a)(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
},
},
{
key: 'disconnectDropTarget',
value: function() {
this.unsubscribeDropTarget &&
(this.unsubscribeDropTarget(), (this.unsubscribeDropTarget = void 0));
},
},
{
key: 'clearDropTarget',
value: function() {
(this.dropTargetRef = null), (this.dropTargetNode = null);
},
},
{
key: 'connectTarget',
get: function() {
return this.dropTarget;
},
},
{
key: 'dropTargetOptions',
get: function() {
return this.dropTargetOptionsInternal;
},
set: function(w) {
this.dropTargetOptionsInternal = w;
},
},
{
key: 'dropTarget',
get: function() {
return this.dropTargetNode || (this.dropTargetRef && this.dropTargetRef.current);
},
},
]),
v
);
})();
},
oWMv: function(W, c) {
W.exports =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAMUElEQVR4Xu2ceXRURRbGv9fr6053p5PgjBuCgstoBoGDQRY1gERAJsJhCSIgQowKqAFDRB0F0REFDLiNI4wom+CoaFARj2jYZQgI0YAgiixOREm600t6735zqpqEbB083a/ajqn3Z5K6qfp+r+rWrVf3CpIkSeBPwiggcCAJw4J2hANJLB4cSILx4EA4kERTIMH6w30IB5JgCiRYd/gM4UASTIEE6w6fIRxIgimQYN3hM4QDSTAFEqw7fIZwIAmmQIJ1h88QDiTBFEiw7vAZwoEkmAIJ1h2mM2TVxx58UOJFz3Q1ZkzQQ6lofvQeHzD7n07s+tqP7EwtZozXQxDiq1QgCJSU+lCy24cDRwM4bQnRDpyXqsA1l6nQL0ODftdpoFKy7RczIK+sdWPpOheUCgHBkIQBPbWYP93QBIrLA0ybZ8dX3/qhFwW4PBJuyxQx576kuEH5YrcPi1a5cPJUkKqdbFDg/Hbht+dUZQg2ZxhO+/OVmD5Oj/4ZGmZUmACphUEG8PIsE55a4sSeg/4mUJwuCVOeceDr7/zI6qXFI5OTKJwDPwTiAoXct3lhtQtvrndDrRIw8mYRw/prcWXHhtPg8LEgPvjCi3c3eeAPSJiYrcODd7CZxbIDeaPYgxdW19C36fU5JvwpVQGPNzwL6kOpcUm492k7Dh4N4JbeWsx7wACFAnCQnz8VhpI3Uo8po3XM3sbFq8IwOl6oxOJCEzpeGGFNPdODYxUh5M+341hFkELJH6eXvW+yA+mXa4XHJ+GDRWakmRWY86oTYwaJ6NxeVQeFrMUVp0M4fCxAB3RFBxWWzjYh2RB2HFa7hFunWaETBXy+JEX2QRODZJmasdBBYaz8RzKMSb/NaTlqJIx/zEahFBUYZV++ZAcy9RkHduz30elfZQtRRzkgQ4vnCwx0pkydZ8feg34q8p3ZBkAAlhc7cdWlYSg6jYCZixzhdj21eP4hg+xAiAMfPr2a+od3FpobzAwi+Pcng+h2lSri/yUzZVRBNfUz7y8yy+roZQdic0rIm2uve/sz0tV4aZYJWg3wqyWEu+facbwiiEnDjUjSa6jjttq8WPmhE+mdVTAbFdi+zwfS7sWHTRC1svPAZ7t8mFnkwO2DdHh4UsNl545HbHS57HG1Go/nGdAhwjL23DIX1mx0Y8EMIwZeL5+Tlx0Ika8+lBE3i3g8Lwk/V4Zw95N2/PRLEHkjjdASQvWeSosXaz5x0p/07qrBogIjhcjiefRFJzZs9+Lt+eYmDrzvRCtq3BLIDVuNWkDucB0mDdNB1WjCEEefU1iNIX21eOYB+WYxEyCNoQy9UYuvvg2g4nQQ9+WYoFKpG+hM9vZlh2rwxW4PbuqhwcIZRqgjrxgxM7otvxo2h4TNrzf1TwQI8WkDeydhzQY7TvwcxGUXq/BEXhK6NlrGbppkhdkkoHixOeY+1RpgBqQWSu4cO46cCDvvaWNNEISGMNQqCXvKXdi610N9xnP5BlnX5OaU6j3BQneBb89PbvLrWiB9upOXQkKV1Yfl651QKQWsKzLjkgvO7sRyCm00dtm5IrV1ADn6U5D6k8rqEPLvSEYQDV97jVrCl/tqsLPMSwcUKXiUbbRnDP1WIEk6CbvKXNhc6qHB4ntFZrQzn92NESBkCd6xvBUAOXIiiHvm2mGxhzB9QjICwaYwtu5xorTcB7KkkR1Pc8Gj3DCIPbJkVdslbFnW/JJ16UVKZF6nw7/fc8DtleiRCQlaSUxV/2lVS9bIAht+OBnEjAnJ8AUaRr5atYRN/3Vi/7c+1Dr95oLHSGdfsUI6l1N3usJHJSSOmjUpqdldVKty6iSw65drQVZvHa68tOG2UtRK2LjNgW+O+Ou2nS+vdSOzh7pB8FgLKlbxm2vf0rb3rifs2HfIj2H9RDw0QR8xYGxV295Nu3woKHI0ceI6jYSPNjtw8MdwYDgqS4RGJWD1Bje6XKHGiqdNdMs8eIqVOtGtb7CJ0lsKDL0+oNoRwp/TIh+jtKrAkAj97LIarN3owazcVNS4w05QJ0p4f5MDR477MX6oDrvL/XXBY6eLw1G6QS8gf74DO8t8yM4UMXdKEosJQm22maMT+uYX2PAziTluT0EoGELZYQ9KSr0IBiVMGa1H3khdg+CRHLc/mpuE6QvCMG7srqHnRI2DMbnptInDRSIaOScih4dSCPAFJAiCgC6XqzAqS0t3VLVP/Yie7GDI0Uq8YJA+tInjdzLQL8v8eH6FC3qdgAEZGtzSW1P3wafxW06gkGWKONJBfbR4eqqB+cxo3Ic//AeqaJYWnx/QNAziozETdZs//CfcqJVp4w2ZnmW1cW2jGj4HEpVs7BpxIOy0jcoyBxKVbOwacSDstI3KMgcSlWzsGnEg7LSNyjIHEpVs7BpxIOy0jcoyBxKVbOwacSDstI3KMgcSlWzsGnEg7LSNyjIHEpVs7BpxIOy0jcoyBxKVbOwacSDstI3KMgcSlWzsGnEg7LSNyjIHEpVs7BrFFQi58vPuZx6s+9yLQAA0BTnnFhGpyb8t4ZKdDGHL5F7YoCnVEf9N3ggd7h3FLiuY/OO4ADleEcKqDW58tMVLr/e3MyugUgk4VRmkaWMkLWzcrSI6X8K4TMI5iJ62SsiZGRnIhGwdJmaLTN8LpkBKywNY+ZEb2/b5ac7elR1VVPjBfbQQFAC5lE1+X/59OMPq+i4ajB8qok/X3/GCFlO5z22cCZCDR4N48l9OepmaXCO9oZsa44bqkJHefOLg/kMBrPyY3P/1IRSSaE4fSRRtKTX53ENr+S/GPGyjV0nleN6cmwydTBOHCZCh91fTVC9yg33yMF3E1OLGYvzv1xBIwZq3P/XAbBDw+dIUZvVOuo+xUPhyPCSlLUknjx9kAqTr6Co6zhSTgmZIjc7SNkkHaywESUUuLvHSNIYTZ4rAbH8zlaYosHhIUpFcT4pJvj4yA3JBOyV9u0kqNEm+IRV0xg4Wm6QWE4dPIBRv9tBKQO3MShiNAn48GQBLILUwfqmS8NjLNUgzKzHkhvAOiiTtkL6Tu8bBIEDu/ZLUbaUS2H/Ih2+O+DA6S0RWL/lzt5kByewRzvHYvMeHNZ94UHognDVFSmjcPlhEqkmBNRs99KY8cfjXXqHBzb30CElKnDodLiIQDyBVdgkDci0wG5UYnx3ON39pdRX0ogKTR6RgV5kbpeUu9O9pwDWdtdhSWoOvv/OgcKIRY4fIX9mAKZDFhca6VeH7E0G89YkHG7Z5aXEa8iiVAm69QcQ1nUU43WdTyGqrOsQDCOlHtxwLRI2A3JHhFLqWgHy6w4nvjnnx7IPJGNSnlc2Q+kBqydidEqY9G66RVTg5FW5P0/U33kB6jbfC65MwdWw437wlIMUlDpyo8GHJE2ZkpMsfN8VthtR3oAVFTmza5cUD49Ka3XrGG0j/u6thsQVxz+hUGqi2BOQ/G234pSqAdUUpuOzilutrRbNp4EAADL2fFMXx487bUmAyKFoEsmI9qZMSxLY30mBkkJPKgQDIKXTg8DEfxgw247xUZYtAlrxjRSAgYe9a+cpp1J9JHAiA3Ced2HPAi2EDTGh/vjoikKs7afHKGgutdLdzOZsceg4EwPQFLpSUujGorxGXd9BEBNKpvQZL37WgXYoKm15rWkkoGp/RuA0TIOTopNIawt8ytRg3pOnRSSSnrhclnLb48d5nTlpeluXRSX0hZr/qRnGJC/0yDEi/XIvVH9ogigJGDDTRHPvyI15c30WHtBQVVq63osOFahQvNsmhfxMbTIA0d7hIqjdcd+ZwsTEQUgbp8FEP1m9x0+IC8ThcrK/EopUeLP+wBr2u1aNHeuTvHacqA3jnUxuu7qTBW/POxlhykmECpLaDkY7fSfGXrXt9mHmXGTu+ctfVy/q9jt+XFfvw4moHuv1Fh77dI5d+PV7hx/oSOzL+KmLJ4wy2WL/XB6r6b1QifKDavCeA/Pk2ukySD2eRHlKhm+ywhvfXY/a9bL4cMp0hjQeWyJ9wH1rowvZ9XviDkU+BFQLQ8SI1Xvu7AWn1Ksu1miVLzo62FVtxnSFtRdRYxsmBxKIeg7YcCANRYzHJgcSiHoO2HAgDUWMxyYHEoh6DthwIA1FjMcmBxKIeg7YcCANRYzHJgcSiHoO2HAgDUWMxyYHEoh6DthwIA1FjMcmBxKIeg7YcCANRYzHJgcSiHoO2HAgDUWMxyYHEoh6Dtv8H7OgjPlFrZIMAAAAASUVORK5CYII=';
},
ocgx: function(W, c, n) {
'use strict';
var r = n('fyOY'),
d = n('3sOJ'),
o = n('DYKh');
function a(t) {
var e = t.getSelection();
if (!e.isCollapsed()) return t;
var g = e.getAnchorOffset();
if (g === 0) return t;
var v = e.getAnchorKey(),
E = t.getCurrentContent(),
w = E.getBlockForKey(v),
L = w.getLength();
if (L <= 1) return t;
var S, R;
g === L
? ((S = e.set('anchorOffset', g - 1)), (R = e))
: ((S = e.set('focusOffset', g + 1)), (R = S.set('anchorOffset', g + 1)));
var O = o(E, S),
M = r.removeRange(E, S, 'backward'),
A = M.getSelectionAfter(),
I = A.getAnchorOffset() - 1,
B = A.merge({ anchorOffset: I, focusOffset: I }),
N = r.replaceWithFragment(M, B, O),
b = d.push(t, N, 'insert-fragment');
return d.acceptSelection(b, R);
}
W.exports = a;
},
ohE5: function(W, c, n) {
'use strict';
function r(o) {
return function() {
return o;
};
}
var d = function() {};
(d.thatReturns = r),
(d.thatReturnsFalse = r(!1)),
(d.thatReturnsTrue = r(!0)),
(d.thatReturnsNull = r(null)),
(d.thatReturnsThis = function() {
return this;
}),
(d.thatReturnsArgument = function(o) {
return o;
}),
(W.exports = d);
},
or5M: function(W, c, n) {
var r = n('1hJj'),
d = n('QoRX'),
o = n('xYSL'),
a = 1,
t = 2;
function e(g, v, E, w, L, S) {
var R = E & a,
O = g.length,
M = v.length;
if (O != M && !(R && M > O)) return !1;
var A = S.get(g),
I = S.get(v);
if (A && I) return A == v && I == g;
var B = -1,
N = !0,
b = E & t ? new r() : void 0;
for (S.set(g, v), S.set(v, g); ++B < O; ) {
var C = g[B],
h = v[B];
if (w) var u = R ? w(h, C, B, v, g, S) : w(C, h, B, g, v, S);
if (u !== void 0) {
if (u) continue;
N = !1;
break;
}
if (b) {
if (
!d(v, function(m, T) {
if (!o(b, T) && (C === m || L(C, m, E, w, S))) return b.push(T);
})
) {
N = !1;
break;
}
} else if (!(C === h || L(C, h, E, w, S))) {
N = !1;
break;
}
}
return S.delete(g), S.delete(v), N;
}
W.exports = e;
},
'otv/': function(W, c, n) {
var r = n('nmnc'),
d = r ? r.prototype : void 0,
o = d ? d.valueOf : void 0;
function a(t) {
return o ? Object(o.call(t)) : {};
}
W.exports = a;
},
p1kU: function(W, c, n) {
'use strict';
var r = n('iatg');
function d(o) {
var a = r(o);
return { x: a.left, y: a.top, width: a.right - a.left, height: a.bottom - a.top };
}
W.exports = d;
},
p8yl: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }),
(c.red = c.getContrastingColor = c.isValidHex = c.toState = c.simpleCheckForValidColor = void 0);
var r = n('xkGU'),
d = t(r),
o = n('Zss7'),
a = t(o);
function t(L) {
return L && L.__esModule ? L : { default: L };
}
var e = (c.simpleCheckForValidColor = function(S) {
var R = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'],
O = 0,
M = 0;
return (
(0, d.default)(R, function(A) {
if (S[A] && ((O += 1), isNaN(S[A]) || (M += 1), A === 's' || A === 'l')) {
var I = /^\d+%$/;
I.test(S[A]) && (M += 1);
}
}),
O === M ? S : !1
);
}),
g = (c.toState = function(S, R) {
var O = S.hex ? (0, a.default)(S.hex) : (0, a.default)(S),
M = O.toHsl(),
A = O.toHsv(),
I = O.toRgb(),
B = O.toHex();
M.s === 0 && ((M.h = R || 0), (A.h = R || 0));
var N = B === '000000' && I.a === 0;
return {
hsl: M,
hex: N ? 'transparent' : '#' + B,
rgb: I,
hsv: A,
oldHue: S.h || R || M.h,
source: S.source,
};
}),
v = (c.isValidHex = function(S) {
var R = String(S).charAt(0) === '#' ? 1 : 0;
return S.length !== 4 + R && S.length < 7 + R && (0, a.default)(S).isValid();
}),
E = (c.getContrastingColor = function(S) {
if (!S) return '#fff';
var R = g(S);
if (R.hex === 'transparent') return 'rgba(0,0,0,0.4)';
var O = (R.rgb.r * 299 + R.rgb.g * 587 + R.rgb.b * 114) / 1e3;
return O >= 128 ? '#000' : '#fff';
}),
w = (c.red = {
hsl: { a: 1, h: 0, l: 0.5, s: 1 },
hex: '#ff0000',
rgb: { r: 255, g: 0, b: 0, a: 1 },
hsv: { h: 0, s: 1, v: 1, a: 1 },
});
c.default = c;
},
'pED+': function(W, c, n) {},
pFRH: function(W, c, n) {
var r = n('cvCv'),
d = n('O0oS'),
o = n('zZ0H'),
a = d
? function(t, e) {
return d(t, 'toString', {
configurable: !0,
enumerable: !1,
value: r(e),
writable: !0,
});
}
: o;
W.exports = a;
},
pSRY: function(W, c, n) {
var r = n('QkVE');
function d(o) {
return r(this, o).has(o);
}
W.exports = d;
},
pdp2: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return e;
});
var r = n('aKzv');
function d(g, v) {
if (!(g instanceof v)) throw new TypeError('Cannot call a class as a function');
}
function o(g, v) {
for (var E = 0; E < v.length; E++) {
var w = v[E];
(w.enumerable = w.enumerable || !1),
(w.configurable = !0),
'value' in w && (w.writable = !0),
Object.defineProperty(g, w.key, w);
}
}
function a(g, v, E) {
return v && o(g.prototype, v), E && o(g, E), g;
}
var t = !1,
e = (function() {
function g(v) {
d(this, g), (this.targetId = null), (this.internalMonitor = v.getMonitor());
}
return (
a(g, [
{
key: 'receiveHandlerId',
value: function(E) {
this.targetId = E;
},
},
{
key: 'getHandlerId',
value: function() {
return this.targetId;
},
},
{
key: 'subscribeToStateChange',
value: function(E, w) {
return this.internalMonitor.subscribeToStateChange(E, w);
},
},
{
key: 'canDrop',
value: function() {
if (!this.targetId) return !1;
Object(r.a)(
!t,
'You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor',
);
try {
return (t = !0), this.internalMonitor.canDropOnTarget(this.targetId);
} finally {
t = !1;
}
},
},
{
key: 'isOver',
value: function(E) {
return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, E) : !1;
},
},
{
key: 'getItemType',
value: function() {
return this.internalMonitor.getItemType();
},
},
{
key: 'getItem',
value: function() {
return this.internalMonitor.getItem();
},
},
{
key: 'getDropResult',
value: function() {
return this.internalMonitor.getDropResult();
},
},
{
key: 'didDrop',
value: function() {
return this.internalMonitor.didDrop();
},
},
{
key: 'getInitialClientOffset',
value: function() {
return this.internalMonitor.getInitialClientOffset();
},
},
{
key: 'getInitialSourceClientOffset',
value: function() {
return this.internalMonitor.getInitialSourceClientOffset();
},
},
{
key: 'getSourceClientOffset',
value: function() {
return this.internalMonitor.getSourceClientOffset();
},
},
{
key: 'getClientOffset',
value: function() {
return this.internalMonitor.getClientOffset();
},
},
{
key: 'getDifferenceFromInitialOffset',
value: function() {
return this.internalMonitor.getDifferenceFromInitialOffset();
},
},
]),
g
);
})();
},
pg4M: function(W, c, n) {
'use strict';
var r = n('3sOJ'),
d = n('CYTE');
function o(a, t) {
var e = a._latestEditorState,
g = e.getSelection();
if (g.getHasFocus()) return;
var v = g.set('hasFocus', !0);
a.props.onFocus && a.props.onFocus(t),
d.isBrowser('Chrome < 60.0.3081.0')
? a.update(r.forceSelection(e, v))
: a.update(r.acceptSelection(e, v));
}
W.exports = o;
},
phbQ: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = g(n('q1tI')),
d = t(n('WDOA')),
o = t(n('uJQd')),
a = t(n('IkEc'));
function t(N) {
return N && N.__esModule ? N : { default: N };
}
function e() {
if (typeof WeakMap != 'function') return null;
var N = new WeakMap();
return (
(e = function() {
return N;
}),
N
);
}
function g(N) {
if (N && N.__esModule) return N;
if (N === null || (v(N) !== 'object' && typeof N != 'function')) return { default: N };
var b = e();
if (b && b.has(N)) return b.get(N);
var C = {},
h = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var u in N)
if (Object.prototype.hasOwnProperty.call(N, u)) {
var m = h ? Object.getOwnPropertyDescriptor(N, u) : null;
m && (m.get || m.set) ? Object.defineProperty(C, u, m) : (C[u] = N[u]);
}
return (C.default = N), b && b.set(N, C), C;
}
function v(N) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (v = function(C) {
return typeof C;
})
: (v = function(C) {
return C &&
typeof Symbol == 'function' &&
C.constructor === Symbol &&
C !== Symbol.prototype
? 'symbol'
: typeof C;
}),
v(N)
);
}
function E() {
return (
(E =
Object.assign ||
function(N) {
for (var b = 1; b < arguments.length; b++) {
var C = arguments[b];
for (var h in C) Object.prototype.hasOwnProperty.call(C, h) && (N[h] = C[h]);
}
return N;
}),
E.apply(this, arguments)
);
}
function w(N, b) {
if (!(N instanceof b)) throw new TypeError('Cannot call a class as a function');
}
function L(N, b) {
for (var C = 0; C < b.length; C++) {
var h = b[C];
(h.enumerable = h.enumerable || !1),
(h.configurable = !0),
'value' in h && (h.writable = !0),
Object.defineProperty(N, h.key, h);
}
}
function S(N, b, C) {
return b && L(N.prototype, b), C && L(N, C), N;
}
function R(N, b) {
return b && (v(b) === 'object' || typeof b == 'function') ? b : O(N);
}
function O(N) {
if (N === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return N;
}
function M(N) {
return (
(M = Object.setPrototypeOf
? Object.getPrototypeOf
: function(C) {
return C.__proto__ || Object.getPrototypeOf(C);
}),
M(N)
);
}
function A(N, b) {
if (typeof b != 'function' && b !== null)
throw new TypeError('Super expression must either be null or a function');
(N.prototype = Object.create(b && b.prototype, {
constructor: { value: N, writable: !0, configurable: !0 },
})),
b && I(N, b);
}
function I(N, b) {
return (
(I =
Object.setPrototypeOf ||
function(h, u) {
return (h.__proto__ = u), h;
}),
I(N, b)
);
}
var B = (function(N) {
A(b, N);
function b() {
var C, h;
w(this, b);
for (var u = arguments.length, m = new Array(u), T = 0; T < u; T++) m[T] = arguments[T];
return (h = R(this, (C = M(b)).call.apply(C, [this].concat(m)))), (h.input = void 0), h;
}
return (
S(b, [
{
key: 'focus',
value: function() {
this.input && this.input.focus();
},
},
{
key: 'blur',
value: function() {
this.input && this.input.blur();
},
},
{
key: 'render',
value: function() {
var h = this,
u = this.props.type;
if (u === 'text' && 'rows' in this.props)
return r.default.createElement(
a.default,
E(
{
type: u,
ref: function(T) {
h.input = T;
},
},
this.props,
),
);
switch (u) {
case 'idcard':
case 'price':
case 'number':
return r.default.createElement(
d.default,
E(
{
type: u,
ref: function(T) {
h.input = T;
},
},
this.props,
),
);
case 'text':
case 'search':
case 'password':
return r.default.createElement(
o.default,
E(
{
type: u,
ref: function(T) {
h.input = T;
},
},
this.props,
),
);
default:
return r.default.createElement(
o.default,
E(
{
type: u,
ref: function(T) {
h.input = T;
},
},
this.props,
),
);
}
},
},
]),
b
);
})(r.PureComponent);
(c.default = B), (B.defaultProps = { type: 'text' });
},
prOm: function(W, c, n) {
'use strict';
function r(o, a) {
return !!a && (o === a.documentElement || o === a.body);
}
var d = {
getTop: function(a) {
var t = a.ownerDocument;
return r(a, t) ? t.body.scrollTop || t.documentElement.scrollTop : a.scrollTop;
},
setTop: function(a, t) {
var e = a.ownerDocument;
r(a, e) ? (e.body.scrollTop = e.documentElement.scrollTop = t) : (a.scrollTop = t);
},
getLeft: function(a) {
var t = a.ownerDocument;
return r(a, t) ? t.body.scrollLeft || t.documentElement.scrollLeft : a.scrollLeft;
},
setLeft: function(a, t) {
var e = a.ownerDocument;
r(a, e) ? (e.body.scrollLeft = e.documentElement.scrollLeft = t) : (a.scrollLeft = t);
},
};
W.exports = d;
},
pwpV: function(W, c, n) {},
pyJN: function(W, c, n) {
W.exports = {
formItemWrap: 'formItemWrap___35WeE',
formTitle: 'formTitle___1EE1S',
editForm: 'editForm___roOZn',
formItem: 'formItem___1OkSo',
common: 'common___3Foqj',
operationBtn: 'operationBtn___3rMCV',
deleteWrap: 'deleteWrap___2Gv2C',
editWrap: 'editWrap___3ydhi',
formAddWrap: 'formAddWrap___btAmI',
formTpl: 'formTpl___3sBow',
disClick: 'disClick___31_9x',
addBtn: 'addBtn___1TyE3',
};
},
pzsr: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }),
Object.defineProperty(c, 'DraggableCore', {
enumerable: !0,
get: function() {
return v.default;
},
}),
(c.default = void 0);
var r = S(n('q1tI')),
d = w(n('17x9')),
o = w(n('i8i4')),
a = w(n('TSYQ')),
t = n('8N4D'),
e = n('fJi3'),
g = n('gbW8'),
v = w(n('R155')),
E = w(n('sS6v'));
function w(Q) {
return Q && Q.__esModule ? Q : { default: Q };
}
function L() {
if (typeof WeakMap != 'function') return null;
var Q = new WeakMap();
return (
(L = function() {
return Q;
}),
Q
);
}
function S(Q) {
if (Q && Q.__esModule) return Q;
if (Q === null || (R(Q) !== 'object' && typeof Q != 'function')) return { default: Q };
var le = L();
if (le && le.has(Q)) return le.get(Q);
var J = {},
re = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var ce in Q)
if (Object.prototype.hasOwnProperty.call(Q, ce)) {
var ye = re ? Object.getOwnPropertyDescriptor(Q, ce) : null;
ye && (ye.get || ye.set) ? Object.defineProperty(J, ce, ye) : (J[ce] = Q[ce]);
}
return (J.default = Q), le && le.set(Q, J), J;
}
function R(Q) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (R = function(J) {
return typeof J;
})
: (R = function(J) {
return J &&
typeof Symbol == 'function' &&
J.constructor === Symbol &&
J !== Symbol.prototype
? 'symbol'
: typeof J;
}),
R(Q)
);
}
function O() {
return (
(O =
Object.assign ||
function(Q) {
for (var le = 1; le < arguments.length; le++) {
var J = arguments[le];
for (var re in J) Object.prototype.hasOwnProperty.call(J, re) && (Q[re] = J[re]);
}
return Q;
}),
O.apply(this, arguments)
);
}
function M(Q, le) {
if (Q == null) return {};
var J = A(Q, le),
re,
ce;
if (Object.getOwnPropertySymbols) {
var ye = Object.getOwnPropertySymbols(Q);
for (ce = 0; ce < ye.length; ce++) {
if (((re = ye[ce]), le.indexOf(re) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(Q, re)) continue;
J[re] = Q[re];
}
}
return J;
}
function A(Q, le) {
if (Q == null) return {};
var J = {},
re = Object.keys(Q),
ce,
ye;
for (ye = 0; ye < re.length; ye++) {
if (((ce = re[ye]), le.indexOf(ce) >= 0)) continue;
J[ce] = Q[ce];
}
return J;
}
function I(Q, le) {
return h(Q) || C(Q, le) || N(Q, le) || B();
}
function B() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function N(Q, le) {
if (!Q) return;
if (typeof Q == 'string') return b(Q, le);
var J = Object.prototype.toString.call(Q).slice(8, -1);
if (
(J === 'Object' && Q.constructor && (J = Q.constructor.name), J === 'Map' || J === 'Set')
)
return Array.from(Q);
if (J === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))
return b(Q, le);
}
function b(Q, le) {
(le == null || le > Q.length) && (le = Q.length);
for (var J = 0, re = new Array(le); J < le; J++) re[J] = Q[J];
return re;
}
function C(Q, le) {
if (typeof Symbol == 'undefined' || !(Symbol.iterator in Object(Q))) return;
var J = [],
re = !0,
ce = !1,
ye = void 0;
try {
for (
var De = Q[Symbol.iterator](), Ne;
!(re = (Ne = De.next()).done) && !(J.push(Ne.value), le && J.length === le);
re = !0
);
} catch (qe) {
(ce = !0), (ye = qe);
} finally {
try {
!re && De.return != null && De.return();
} finally {
if (ce) throw ye;
}
}
return J;
}
function h(Q) {
if (Array.isArray(Q)) return Q;
}
function u(Q, le) {
var J = Object.keys(Q);
if (Object.getOwnPropertySymbols) {
var re = Object.getOwnPropertySymbols(Q);
le &&
(re = re.filter(function(ce) {
return Object.getOwnPropertyDescriptor(Q, ce).enumerable;
})),
J.push.apply(J, re);
}
return J;
}
function m(Q) {
for (var le = 1; le < arguments.length; le++) {
var J = arguments[le] != null ? arguments[le] : {};
le % 2
? u(Object(J), !0).forEach(function(re) {
Ae(Q, re, J[re]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(Q, Object.getOwnPropertyDescriptors(J))
: u(Object(J)).forEach(function(re) {
Object.defineProperty(Q, re, Object.getOwnPropertyDescriptor(J, re));
});
}
return Q;
}
function T(Q, le) {
if (!(Q instanceof le)) throw new TypeError('Cannot call a class as a function');
}
function x(Q, le) {
for (var J = 0; J < le.length; J++) {
var re = le[J];
(re.enumerable = re.enumerable || !1),
(re.configurable = !0),
'value' in re && (re.writable = !0),
Object.defineProperty(Q, re.key, re);
}
}
function F(Q, le, J) {
return le && x(Q.prototype, le), J && x(Q, J), Q;
}
function U(Q, le) {
if (typeof le != 'function' && le !== null)
throw new TypeError('Super expression must either be null or a function');
(Q.prototype = Object.create(le && le.prototype, {
constructor: { value: Q, writable: !0, configurable: !0 },
})),
le && H(Q, le);
}
function H(Q, le) {
return (
(H =
Object.setPrototypeOf ||
function(re, ce) {
return (re.__proto__ = ce), re;
}),
H(Q, le)
);
}
function Y(Q) {
var le = ae();
return function() {
var J = Ee(Q),
re;
if (le) {
var ce = Ee(this).constructor;
re = Reflect.construct(J, arguments, ce);
} else re = J.apply(this, arguments);
return Z(this, re);
};
}
function Z(Q, le) {
return le && (R(le) === 'object' || typeof le == 'function') ? le : ne(Q);
}
function ne(Q) {
if (Q === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return Q;
}
function ae() {
if (typeof Reflect == 'undefined' || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if (typeof Proxy == 'function') return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], function() {})), !0;
} catch (Q) {
return !1;
}
}
function Ee(Q) {
return (
(Ee = Object.setPrototypeOf
? Object.getPrototypeOf
: function(J) {
return J.__proto__ || Object.getPrototypeOf(J);
}),
Ee(Q)
);
}
function Ae(Q, le, J) {
return (
le in Q
? Object.defineProperty(Q, le, {
value: J,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Q[le] = J),
Q
);
}
var ue = (function(Q) {
U(J, Q);
var le = Y(J);
F(J, null, [
{
key: 'getDerivedStateFromProps',
value: function(ce, ye) {
var De = ce.position,
Ne = ye.prevPropsPosition;
return De && (!Ne || De.x !== Ne.x || De.y !== Ne.y)
? ((0, E.default)('Draggable: getDerivedStateFromProps %j', {
position: De,
prevPropsPosition: Ne,
}),
{ x: De.x, y: De.y, prevPropsPosition: m({}, De) })
: null;
},
},
]);
function J(re) {
var ce;
return (
T(this, J),
(ce = le.call(this, re)),
Ae(ne(ce), 'onDragStart', function(ye, De) {
(0, E.default)('Draggable: onDragStart: %j', De);
var Ne = ce.props.onStart(ye, (0, e.createDraggableData)(ne(ce), De));
if (Ne === !1) return !1;
ce.setState({ dragging: !0, dragged: !0 });
}),
Ae(ne(ce), 'onDrag', function(ye, De) {
if (!ce.state.dragging) return !1;
(0, E.default)('Draggable: onDrag: %j', De);
var Ne = (0, e.createDraggableData)(ne(ce), De),
qe = { x: Ne.x, y: Ne.y };
if (ce.props.bounds) {
var Fe = qe.x,
We = qe.y;
(qe.x += ce.state.slackX), (qe.y += ce.state.slackY);
var Xe = (0, e.getBoundPosition)(ne(ce), qe.x, qe.y),
ke = I(Xe, 2),
vt = ke[0],
_t = ke[1];
(qe.x = vt),
(qe.y = _t),
(qe.slackX = ce.state.slackX + (Fe - qe.x)),
(qe.slackY = ce.state.slackY + (We - qe.y)),
(Ne.x = qe.x),
(Ne.y = qe.y),
(Ne.deltaX = qe.x - ce.state.x),
(Ne.deltaY = qe.y - ce.state.y);
}
var Ft = ce.props.onDrag(ye, Ne);
if (Ft === !1) return !1;
ce.setState(qe);
}),
Ae(ne(ce), 'onDragStop', function(ye, De) {
if (!ce.state.dragging) return !1;
var Ne = ce.props.onStop(ye, (0, e.createDraggableData)(ne(ce), De));
if (Ne === !1) return !1;
(0, E.default)('Draggable: onDragStop: %j', De);
var qe = { dragging: !1, slackX: 0, slackY: 0 },
Fe = Boolean(ce.props.position);
if (Fe) {
var We = ce.props.position,
Xe = We.x,
ke = We.y;
(qe.x = Xe), (qe.y = ke);
}
ce.setState(qe);
}),
(ce.state = {
dragging: !1,
dragged: !1,
x: re.position ? re.position.x : re.defaultPosition.x,
y: re.position ? re.position.y : re.defaultPosition.y,
prevPropsPosition: m({}, re.position),
slackX: 0,
slackY: 0,
isElementSVG: !1,
}),
re.position &&
!(re.onDrag || re.onStop) &&
console.warn(
'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.',
),
ce
);
}
return (
F(J, [
{
key: 'componentDidMount',
value: function() {
typeof window.SVGElement != 'undefined' &&
this.findDOMNode() instanceof window.SVGElement &&
this.setState({ isElementSVG: !0 });
},
},
{
key: 'componentWillUnmount',
value: function() {
this.setState({ dragging: !1 });
},
},
{
key: 'findDOMNode',
value: function() {
return this.props.nodeRef
? this.props.nodeRef.current
: o.default.findDOMNode(this);
},
},
{
key: 'render',
value: function() {
var ce,
ye = this.props,
De = ye.axis,
Ne = ye.bounds,
qe = ye.children,
Fe = ye.defaultPosition,
We = ye.defaultClassName,
Xe = ye.defaultClassNameDragging,
ke = ye.defaultClassNameDragged,
vt = ye.position,
_t = ye.positionOffset,
Ft = ye.scale,
Vt = M(ye, [
'axis',
'bounds',
'children',
'defaultPosition',
'defaultClassName',
'defaultClassNameDragging',
'defaultClassNameDragged',
'position',
'positionOffset',
'scale',
]),
Yt = {},
Ge = null,
de = Boolean(vt),
ie = !de || this.state.dragging,
Le = vt || Fe,
Je = {
x: (0, e.canDragX)(this) && ie ? this.state.x : Le.x,
y: (0, e.canDragY)(this) && ie ? this.state.y : Le.y,
};
this.state.isElementSVG
? (Ge = (0, t.createSVGTransform)(Je, _t))
: (Yt = (0, t.createCSSTransform)(Je, _t));
var rt = (0, a.default)(
qe.props.className || '',
We,
((ce = {}), Ae(ce, Xe, this.state.dragging), Ae(ce, ke, this.state.dragged), ce),
);
return r.createElement(
v.default,
O({}, Vt, {
onStart: this.onDragStart,
onDrag: this.onDrag,
onStop: this.onDragStop,
}),
r.cloneElement(r.Children.only(qe), {
className: rt,
style: m(m({}, qe.props.style), Yt),
transform: Ge,
}),
);
},
},
]),
J
);
})(r.Component);
(c.default = ue),
Ae(ue, 'displayName', 'Draggable'),
Ae(
ue,
'propTypes',
m(
m({}, v.default.propTypes),
{},
{
axis: d.default.oneOf(['both', 'x', 'y', 'none']),
bounds: d.default.oneOfType([
d.default.shape({
left: d.default.number,
right: d.default.number,
top: d.default.number,
bottom: d.default.number,
}),
d.default.string,
d.default.oneOf([!1]),
]),
defaultClassName: d.default.string,
defaultClassNameDragging: d.default.string,
defaultClassNameDragged: d.default.string,
defaultPosition: d.default.shape({ x: d.default.number, y: d.default.number }),
positionOffset: d.default.shape({
x: d.default.oneOfType([d.default.number, d.default.string]),
y: d.default.oneOfType([d.default.number, d.default.string]),
}),
position: d.default.shape({ x: d.default.number, y: d.default.number }),
className: g.dontSetMe,
style: g.dontSetMe,
transform: g.dontSetMe,
},
),
),
Ae(
ue,
'defaultProps',
m(
m({}, v.default.defaultProps),
{},
{
axis: 'both',
bounds: !1,
defaultClassName: 'react-draggable',
defaultClassNameDragging: 'react-draggable-dragging',
defaultClassNameDragged: 'react-draggable-dragged',
defaultPosition: { x: 0, y: 0 },
position: null,
scale: 1,
},
),
);
},
q78g: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }),
(c.calcGridColWidth = r),
(c.calcGridItemWHPx = d),
(c.calcGridItemPosition = o),
(c.calcXY = a),
(c.calcWH = t),
(c.clamp = e);
function r(g) {
var v = g.margin,
E = g.containerPadding,
w = g.containerWidth,
L = g.cols;
return (w - v[0] * (L - 1) - E[0] * 2) / L;
}
function d(g, v, E) {
return Number.isFinite(g) ? Math.round(v * g + Math.max(0, g - 1) * E) : g;
}
function o(g, v, E, w, L, S) {
var R = g.margin,
O = g.containerPadding,
M = g.rowHeight,
A = r(g),
I = {};
return (
S && S.resizing
? ((I.width = Math.round(S.resizing.width)), (I.height = Math.round(S.resizing.height)))
: ((I.width = d(w, A, R[0])), (I.height = d(L, M, R[1]))),
S && S.dragging
? ((I.top = Math.round(S.dragging.top)), (I.left = Math.round(S.dragging.left)))
: ((I.top = Math.round((M + R[1]) * E + O[1])),
(I.left = Math.round((A + R[0]) * v + O[0]))),
I
);
}
function a(g, v, E, w, L) {
var S = g.margin,
R = g.cols,
O = g.rowHeight,
M = g.maxRows,
A = r(g),
I = Math.round((E - S[0]) / (A + S[0])),
B = Math.round((v - S[1]) / (O + S[1]));
return (I = e(I, 0, R - w)), (B = e(B, 0, M - L)), { x: I, y: B };
}
function t(g, v, E, w, L) {
var S = g.margin,
R = g.maxRows,
O = g.cols,
M = g.rowHeight,
A = r(g),
I = Math.round((v + S[0]) / (A + S[0])),
B = Math.round((E + S[1]) / (M + S[1]));
return (I = e(I, 0, O - w)), (B = e(B, 0, R - L)), { w: I, h: B };
}
function e(g, v, E) {
return Math.max(Math.min(g, E), v);
}
},
qIC4: function(W, c, n) {
'use strict';
n('1Ywk'), n('OcqW');
},
qJlv: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return qe;
});
var r = {};
n.r(r),
n.d(r, 'FILE', function() {
return C;
}),
n.d(r, 'URL', function() {
return h;
}),
n.d(r, 'TEXT', function() {
return u;
});
function d(Fe) {
var We = null,
Xe = function() {
return We == null && (We = Fe()), We;
};
return Xe;
}
function o(Fe, We) {
return Fe.filter(function(Xe) {
return Xe !== We;
});
}
function a(Fe, We) {
var Xe = new Set(),
ke = function(Ft) {
return Xe.add(Ft);
};
Fe.forEach(ke), We.forEach(ke);
var vt = [];
return (
Xe.forEach(function(_t) {
return vt.push(_t);
}),
vt
);
}
function t(Fe, We) {
if (!(Fe instanceof We)) throw new TypeError('Cannot call a class as a function');
}
function e(Fe, We) {
for (var Xe = 0; Xe < We.length; Xe++) {
var ke = We[Xe];
(ke.enumerable = ke.enumerable || !1),
(ke.configurable = !0),
'value' in ke && (ke.writable = !0),
Object.defineProperty(Fe, ke.key, ke);
}
}
function g(Fe, We, Xe) {
return We && e(Fe.prototype, We), Xe && e(Fe, Xe), Fe;
}
var v = (function() {
function Fe(We) {
t(this, Fe), (this.entered = []), (this.isNodeInDocument = We);
}
return (
g(Fe, [
{
key: 'enter',
value: function(Xe) {
var ke = this,
vt = this.entered.length,
_t = function(Vt) {
return ke.isNodeInDocument(Vt) && (!Vt.contains || Vt.contains(Xe));
};
return (
(this.entered = a(this.entered.filter(_t), [Xe])),
vt === 0 && this.entered.length > 0
);
},
},
{
key: 'leave',
value: function(Xe) {
var ke = this.entered.length;
return (
(this.entered = o(this.entered.filter(this.isNodeInDocument), Xe)),
ke > 0 && this.entered.length === 0
);
},
},
{
key: 'reset',
value: function() {
this.entered = [];
},
},
]),
Fe
);
})(),
E = d(function() {
return /firefox/i.test(navigator.userAgent);
}),
w = d(function() {
return Boolean(window.safari);
});
function L(Fe, We) {
if (!(Fe instanceof We)) throw new TypeError('Cannot call a class as a function');
}
function S(Fe, We) {
for (var Xe = 0; Xe < We.length; Xe++) {
var ke = We[Xe];
(ke.enumerable = ke.enumerable || !1),
(ke.configurable = !0),
'value' in ke && (ke.writable = !0),
Object.defineProperty(Fe, ke.key, ke);
}
}
function R(Fe, We, Xe) {
return We && S(Fe.prototype, We), Xe && S(Fe, Xe), Fe;
}
var O = (function() {
function Fe(We, Xe) {
L(this, Fe);
for (var ke = We.length, vt = [], _t = 0; _t < ke; _t++) vt.push(_t);
vt.sort(function(Hn, Nn) {
return We[Hn] < We[Nn] ? -1 : 1;
});
for (var Ft = [], Vt = [], Yt = [], Ge, de, ie = 0; ie < ke - 1; ie++)
(Ge = We[ie + 1] - We[ie]),
(de = Xe[ie + 1] - Xe[ie]),
Vt.push(Ge),
Ft.push(de),
Yt.push(de / Ge);
for (var Le = [Yt[0]], Je = 0; Je < Vt.length - 1; Je++) {
var rt = Yt[Je],
yt = Yt[Je + 1];
if (rt * yt <= 0) Le.push(0);
else {
Ge = Vt[Je];
var nn = Vt[Je + 1],
Gt = Ge + nn;
Le.push((3 * Gt) / ((Gt + nn) / rt + (Gt + Ge) / yt));
}
}
Le.push(Yt[Yt.length - 1]);
for (var Ct = [], Wt = [], Ht, Zt = 0; Zt < Le.length - 1; Zt++) {
Ht = Yt[Zt];
var Cn = Le[Zt],
Qt = 1 / Vt[Zt],
Sn = Cn + Le[Zt + 1] - Ht - Ht;
Ct.push((Ht - Cn - Sn) * Qt), Wt.push(Sn * Qt * Qt);
}
(this.xs = We), (this.ys = Xe), (this.c1s = Le), (this.c2s = Ct), (this.c3s = Wt);
}
return (
R(Fe, [
{
key: 'interpolate',
value: function(Xe) {
var ke = this.xs,
vt = this.ys,
_t = this.c1s,
Ft = this.c2s,
Vt = this.c3s,
Yt = ke.length - 1;
if (Xe === ke[Yt]) return vt[Yt];
for (var Ge = 0, de = Vt.length - 1, ie; Ge <= de; ) {
ie = Math.floor(0.5 * (Ge + de));
var Le = ke[ie];
if (Le < Xe) Ge = ie + 1;
else if (Le > Xe) de = ie - 1;
else return vt[ie];
}
Yt = Math.max(0, de);
var Je = Xe - ke[Yt],
rt = Je * Je;
return vt[Yt] + _t[Yt] * Je + Ft[Yt] * rt + Vt[Yt] * Je * rt;
},
},
]),
Fe
);
})(),
M = 1;
function A(Fe) {
var We = Fe.nodeType === M ? Fe : Fe.parentElement;
if (!We) return null;
var Xe = We.getBoundingClientRect(),
ke = Xe.top,
vt = Xe.left;
return { x: vt, y: ke };
}
function I(Fe) {
return { x: Fe.clientX, y: Fe.clientY };
}
function B(Fe) {
var We;
return (
Fe.nodeName === 'IMG' &&
(E() ||
!((We = document.documentElement) === null || We === void 0 ? void 0 : We.contains(Fe)))
);
}
function N(Fe, We, Xe, ke) {
var vt = Fe ? We.width : Xe,
_t = Fe ? We.height : ke;
return (
w() && Fe && ((_t /= window.devicePixelRatio), (vt /= window.devicePixelRatio)),
{ dragPreviewWidth: vt, dragPreviewHeight: _t }
);
}
function b(Fe, We, Xe, ke, vt) {
var _t = B(We),
Ft = _t ? Fe : We,
Vt = A(Ft),
Yt = { x: Xe.x - Vt.x, y: Xe.y - Vt.y },
Ge = Fe.offsetWidth,
de = Fe.offsetHeight,
ie = ke.anchorX,
Le = ke.anchorY,
Je = N(_t, We, Ge, de),
rt = Je.dragPreviewWidth,
yt = Je.dragPreviewHeight,
nn = function() {
var Qt = new O([0, 0.5, 1], [Yt.y, (Yt.y / de) * yt, Yt.y + yt - de]),
Sn = Qt.interpolate(Le);
return w() && _t && (Sn += (window.devicePixelRatio - 1) * yt), Sn;
},
Gt = function() {
var Qt = new O([0, 0.5, 1], [Yt.x, (Yt.x / Ge) * rt, Yt.x + rt - Ge]);
return Qt.interpolate(ie);
},
Ct = vt.offsetX,
Wt = vt.offsetY,
Ht = Ct === 0 || Ct,
Zt = Wt === 0 || Wt;
return { x: Ht ? Ct : Gt(), y: Zt ? Wt : nn() };
}
var C = '__NATIVE_FILE__',
h = '__NATIVE_URL__',
u = '__NATIVE_TEXT__';
function m(Fe, We, Xe) {
var ke = We.reduce(function(vt, _t) {
return vt || Fe.getData(_t);
}, '');
return ke != null ? ke : Xe;
}
var T;
function x(Fe, We, Xe) {
return (
We in Fe
? Object.defineProperty(Fe, We, {
value: Xe,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Fe[We] = Xe),
Fe
);
}
var F =
((T = {}),
x(T, C, {
exposeProperties: {
files: function(We) {
return Array.prototype.slice.call(We.files);
},
items: function(We) {
return We.items;
},
},
matchesTypes: ['Files'],
}),
x(T, h, {
exposeProperties: {
urls: function(We, Xe) {
return m(We, Xe, '').split(`
`);
},
},
matchesTypes: ['Url', 'text/uri-list'],
}),
x(T, u, {
exposeProperties: {
text: function(We, Xe) {
return m(We, Xe, '');
},
},
matchesTypes: ['Text', 'text/plain'],
}),
T);
function U(Fe, We) {
if (!(Fe instanceof We)) throw new TypeError('Cannot call a class as a function');
}
function H(Fe, We) {
for (var Xe = 0; Xe < We.length; Xe++) {
var ke = We[Xe];
(ke.enumerable = ke.enumerable || !1),
(ke.configurable = !0),
'value' in ke && (ke.writable = !0),
Object.defineProperty(Fe, ke.key, ke);
}
}
function Y(Fe, We, Xe) {
return We && H(Fe.prototype, We), Xe && H(Fe, Xe), Fe;
}
var Z = (function() {
function Fe(We) {
U(this, Fe), (this.config = We), (this.item = {}), this.initializeExposedProperties();
}
return (
Y(Fe, [
{
key: 'initializeExposedProperties',
value: function() {
var Xe = this;
Object.keys(this.config.exposeProperties).forEach(function(ke) {
Object.defineProperty(Xe.item, ke, {
configurable: !0,
enumerable: !0,
get: function() {
return (
console.warn(
`Browser doesn't allow reading "`.concat(ke, '" until the drop event.'),
),
null
);
},
});
});
},
},
{
key: 'loadDataTransfer',
value: function(Xe) {
var ke = this;
if (Xe) {
var vt = {};
Object.keys(this.config.exposeProperties).forEach(function(_t) {
vt[_t] = {
value: ke.config.exposeProperties[_t](Xe, ke.config.matchesTypes),
configurable: !0,
enumerable: !0,
};
}),
Object.defineProperties(this.item, vt);
}
},
},
{
key: 'canDrag',
value: function() {
return !0;
},
},
{
key: 'beginDrag',
value: function() {
return this.item;
},
},
{
key: 'isDragging',
value: function(Xe, ke) {
return ke === Xe.getSourceId();
},
},
{ key: 'endDrag', value: function() {} },
]),
Fe
);
})();
function ne(Fe, We) {
var Xe = new Z(F[Fe]);
return Xe.loadDataTransfer(We), Xe;
}
function ae(Fe) {
if (!Fe) return null;
var We = Array.prototype.slice.call(Fe.types || []);
return (
Object.keys(F).filter(function(Xe) {
var ke = F[Xe].matchesTypes;
return ke.some(function(vt) {
return We.indexOf(vt) > -1;
});
})[0] || null
);
}
function Ee(Fe, We) {
if (!(Fe instanceof We)) throw new TypeError('Cannot call a class as a function');
}
function Ae(Fe, We) {
for (var Xe = 0; Xe < We.length; Xe++) {
var ke = We[Xe];
(ke.enumerable = ke.enumerable || !1),
(ke.configurable = !0),
'value' in ke && (ke.writable = !0),
Object.defineProperty(Fe, ke.key, ke);
}
}
function ue(Fe, We, Xe) {
return We && Ae(Fe.prototype, We), Xe && Ae(Fe, Xe), Fe;
}
var Q = (function() {
function Fe(We) {
Ee(this, Fe), (this.globalContext = We);
}
return (
ue(Fe, [
{
key: 'window',
get: function() {
return this.globalContext
? this.globalContext
: typeof window != 'undefined'
? window
: void 0;
},
},
{
key: 'document',
get: function() {
return this.window ? this.window.document : void 0;
},
},
]),
Fe
);
})();
function le(Fe, We) {
var Xe = Object.keys(Fe);
if (Object.getOwnPropertySymbols) {
var ke = Object.getOwnPropertySymbols(Fe);
We &&
(ke = ke.filter(function(vt) {
return Object.getOwnPropertyDescriptor(Fe, vt).enumerable;
})),
Xe.push.apply(Xe, ke);
}
return Xe;
}
function J(Fe) {
for (var We = 1; We < arguments.length; We++) {
var Xe = arguments[We] != null ? arguments[We] : {};
We % 2
? le(Object(Xe), !0).forEach(function(ke) {
re(Fe, ke, Xe[ke]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(Fe, Object.getOwnPropertyDescriptors(Xe))
: le(Object(Xe)).forEach(function(ke) {
Object.defineProperty(Fe, ke, Object.getOwnPropertyDescriptor(Xe, ke));
});
}
return Fe;
}
function re(Fe, We, Xe) {
return (
We in Fe
? Object.defineProperty(Fe, We, {
value: Xe,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Fe[We] = Xe),
Fe
);
}
function ce(Fe, We) {
if (!(Fe instanceof We)) throw new TypeError('Cannot call a class as a function');
}
function ye(Fe, We) {
for (var Xe = 0; Xe < We.length; Xe++) {
var ke = We[Xe];
(ke.enumerable = ke.enumerable || !1),
(ke.configurable = !0),
'value' in ke && (ke.writable = !0),
Object.defineProperty(Fe, ke.key, ke);
}
}
function De(Fe, We, Xe) {
return We && ye(Fe.prototype, We), Xe && ye(Fe, Xe), Fe;
}
var Ne = (function() {
function Fe(We, Xe) {
var ke = this;
ce(this, Fe),
(this.sourcePreviewNodes = new Map()),
(this.sourcePreviewNodeOptions = new Map()),
(this.sourceNodes = new Map()),
(this.sourceNodeOptions = new Map()),
(this.dragStartSourceIds = null),
(this.dropTargetIds = []),
(this.dragEnterTargetIds = []),
(this.currentNativeSource = null),
(this.currentNativeHandle = null),
(this.currentDragSourceNode = null),
(this.altKeyPressed = !1),
(this.mouseMoveTimeoutTimer = null),
(this.asyncEndDragFrameId = null),
(this.dragOverTargetIds = null),
(this.getSourceClientOffset = function(vt) {
var _t = ke.sourceNodes.get(vt);
return (_t && A(_t)) || null;
}),
(this.endDragNativeItem = function() {
if (!ke.isDraggingNativeItem()) return;
ke.actions.endDrag(),
ke.currentNativeHandle && ke.registry.removeSource(ke.currentNativeHandle),
(ke.currentNativeHandle = null),
(ke.currentNativeSource = null);
}),
(this.isNodeInDocument = function(vt) {
return Boolean(vt && ke.document && ke.document.body && document.body.contains(vt));
}),
(this.endDragIfSourceWasRemovedFromDOM = function() {
var vt = ke.currentDragSourceNode;
if (ke.isNodeInDocument(vt)) return;
ke.clearCurrentDragSourceNode() && ke.actions.endDrag();
}),
(this.handleTopDragStartCapture = function() {
ke.clearCurrentDragSourceNode(), (ke.dragStartSourceIds = []);
}),
(this.handleTopDragStart = function(vt) {
if (vt.defaultPrevented) return;
var _t = ke.dragStartSourceIds;
ke.dragStartSourceIds = null;
var Ft = I(vt);
ke.monitor.isDragging() && ke.actions.endDrag(),
ke.actions.beginDrag(_t || [], {
publishSource: !1,
getSourceClientOffset: ke.getSourceClientOffset,
clientOffset: Ft,
});
var Vt = vt.dataTransfer,
Yt = ae(Vt);
if (ke.monitor.isDragging()) {
if (Vt && typeof Vt.setDragImage == 'function') {
var Ge = ke.monitor.getSourceId(),
de = ke.sourceNodes.get(Ge),
ie = ke.sourcePreviewNodes.get(Ge) || de;
if (ie) {
var Le = ke.getCurrentSourcePreviewNodeOptions(),
Je = Le.anchorX,
rt = Le.anchorY,
yt = Le.offsetX,
nn = Le.offsetY,
Gt = { anchorX: Je, anchorY: rt },
Ct = { offsetX: yt, offsetY: nn },
Wt = b(de, ie, Ft, Gt, Ct);
Vt.setDragImage(ie, Wt.x, Wt.y);
}
}
try {
Vt == null || Vt.setData('application/json', {});
} catch (Cn) {}
ke.setCurrentDragSourceNode(vt.target);
var Ht = ke.getCurrentSourcePreviewNodeOptions(),
Zt = Ht.captureDraggingState;
Zt
? ke.actions.publishDragSource()
: setTimeout(function() {
return ke.actions.publishDragSource();
}, 0);
} else if (Yt) ke.beginDragNativeItem(Yt);
else {
if (
Vt &&
!Vt.types &&
((vt.target && !vt.target.hasAttribute) || !vt.target.hasAttribute('draggable'))
)
return;
vt.preventDefault();
}
}),
(this.handleTopDragEndCapture = function() {
ke.clearCurrentDragSourceNode() && ke.actions.endDrag();
}),
(this.handleTopDragEnterCapture = function(vt) {
ke.dragEnterTargetIds = [];
var _t = ke.enterLeaveCounter.enter(vt.target);
if (!_t || ke.monitor.isDragging()) return;
var Ft = vt.dataTransfer,
Vt = ae(Ft);
Vt && ke.beginDragNativeItem(Vt, Ft);
}),
(this.handleTopDragEnter = function(vt) {
var _t = ke.dragEnterTargetIds;
if (((ke.dragEnterTargetIds = []), !ke.monitor.isDragging())) return;
(ke.altKeyPressed = vt.altKey),
E() || ke.actions.hover(_t, { clientOffset: I(vt) });
var Ft = _t.some(function(Vt) {
return ke.monitor.canDropOnTarget(Vt);
});
Ft &&
(vt.preventDefault(),
vt.dataTransfer && (vt.dataTransfer.dropEffect = ke.getCurrentDropEffect()));
}),
(this.handleTopDragOverCapture = function() {
ke.dragOverTargetIds = [];
}),
(this.handleTopDragOver = function(vt) {
var _t = ke.dragOverTargetIds;
if (((ke.dragOverTargetIds = []), !ke.monitor.isDragging())) {
vt.preventDefault(), vt.dataTransfer && (vt.dataTransfer.dropEffect = 'none');
return;
}
(ke.altKeyPressed = vt.altKey), ke.actions.hover(_t || [], { clientOffset: I(vt) });
var Ft = (_t || []).some(function(Vt) {
return ke.monitor.canDropOnTarget(Vt);
});
Ft
? (vt.preventDefault(),
vt.dataTransfer && (vt.dataTransfer.dropEffect = ke.getCurrentDropEffect()))
: ke.isDraggingNativeItem()
? vt.preventDefault()
: (vt.preventDefault(), vt.dataTransfer && (vt.dataTransfer.dropEffect = 'none'));
}),
(this.handleTopDragLeaveCapture = function(vt) {
ke.isDraggingNativeItem() && vt.preventDefault();
var _t = ke.enterLeaveCounter.leave(vt.target);
if (!_t) return;
ke.isDraggingNativeItem() && ke.endDragNativeItem();
}),
(this.handleTopDropCapture = function(vt) {
if (((ke.dropTargetIds = []), vt.preventDefault(), ke.isDraggingNativeItem())) {
var _t;
(_t = ke.currentNativeSource) === null ||
_t === void 0 ||
_t.loadDataTransfer(vt.dataTransfer);
}
ke.enterLeaveCounter.reset();
}),
(this.handleTopDrop = function(vt) {
var _t = ke.dropTargetIds;
(ke.dropTargetIds = []),
ke.actions.hover(_t, { clientOffset: I(vt) }),
ke.actions.drop({ dropEffect: ke.getCurrentDropEffect() }),
ke.isDraggingNativeItem()
? ke.endDragNativeItem()
: ke.endDragIfSourceWasRemovedFromDOM();
}),
(this.handleSelectStart = function(vt) {
var _t = vt.target;
if (typeof _t.dragDrop != 'function') return;
if (
_t.tagName === 'INPUT' ||
_t.tagName === 'SELECT' ||
_t.tagName === 'TEXTAREA' ||
_t.isContentEditable
)
return;
vt.preventDefault(), _t.dragDrop();
}),
(this.options = new Q(Xe)),
(this.actions = We.getActions()),
(this.monitor = We.getMonitor()),
(this.registry = We.getRegistry()),
(this.enterLeaveCounter = new v(this.isNodeInDocument));
}
return (
De(Fe, [
{
key: 'profile',
value: function() {
var Xe, ke;
return {
sourcePreviewNodes: this.sourcePreviewNodes.size,
sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size,
sourceNodeOptions: this.sourceNodeOptions.size,
sourceNodes: this.sourceNodes.size,
dragStartSourceIds:
((Xe = this.dragStartSourceIds) === null || Xe === void 0
? void 0
: Xe.length) || 0,
dropTargetIds: this.dropTargetIds.length,
dragEnterTargetIds: this.dragEnterTargetIds.length,
dragOverTargetIds:
((ke = this.dragOverTargetIds) === null || ke === void 0
? void 0
: ke.length) || 0,
};
},
},
{
key: 'setup',
value: function() {
if (this.window === void 0) return;
if (this.window.__isReactDndBackendSetUp)
throw new Error('Cannot have two HTML5 backends at the same time.');
(this.window.__isReactDndBackendSetUp = !0), this.addEventListeners(this.window);
},
},
{
key: 'teardown',
value: function() {
if (this.window === void 0) return;
(this.window.__isReactDndBackendSetUp = !1),
this.removeEventListeners(this.window),
this.clearCurrentDragSourceNode(),
this.asyncEndDragFrameId &&
this.window.cancelAnimationFrame(this.asyncEndDragFrameId);
},
},
{
key: 'connectDragPreview',
value: function(Xe, ke, vt) {
var _t = this;
return (
this.sourcePreviewNodeOptions.set(Xe, vt),
this.sourcePreviewNodes.set(Xe, ke),
function() {
_t.sourcePreviewNodes.delete(Xe), _t.sourcePreviewNodeOptions.delete(Xe);
}
);
},
},
{
key: 'connectDragSource',
value: function(Xe, ke, vt) {
var _t = this;
this.sourceNodes.set(Xe, ke), this.sourceNodeOptions.set(Xe, vt);
var Ft = function(Ge) {
return _t.handleDragStart(Ge, Xe);
},
Vt = function(Ge) {
return _t.handleSelectStart(Ge);
};
return (
ke.setAttribute('draggable', 'true'),
ke.addEventListener('dragstart', Ft),
ke.addEventListener('selectstart', Vt),
function() {
_t.sourceNodes.delete(Xe),
_t.sourceNodeOptions.delete(Xe),
ke.removeEventListener('dragstart', Ft),
ke.removeEventListener('selectstart', Vt),
ke.setAttribute('draggable', 'false');
}
);
},
},
{
key: 'connectDropTarget',
value: function(Xe, ke) {
var vt = this,
_t = function(Ge) {
return vt.handleDragEnter(Ge, Xe);
},
Ft = function(Ge) {
return vt.handleDragOver(Ge, Xe);
},
Vt = function(Ge) {
return vt.handleDrop(Ge, Xe);
};
return (
ke.addEventListener('dragenter', _t),
ke.addEventListener('dragover', Ft),
ke.addEventListener('drop', Vt),
function() {
ke.removeEventListener('dragenter', _t),
ke.removeEventListener('dragover', Ft),
ke.removeEventListener('drop', Vt);
}
);
},
},
{
key: 'addEventListeners',
value: function(Xe) {
if (!Xe.addEventListener) return;
Xe.addEventListener('dragstart', this.handleTopDragStart),
Xe.addEventListener('dragstart', this.handleTopDragStartCapture, !0),
Xe.addEventListener('dragend', this.handleTopDragEndCapture, !0),
Xe.addEventListener('dragenter', this.handleTopDragEnter),
Xe.addEventListener('dragenter', this.handleTopDragEnterCapture, !0),
Xe.addEventListener('dragleave', this.handleTopDragLeaveCapture, !0),
Xe.addEventListener('dragover', this.handleTopDragOver),
Xe.addEventListener('dragover', this.handleTopDragOverCapture, !0),
Xe.addEventListener('drop', this.handleTopDrop),
Xe.addEventListener('drop', this.handleTopDropCapture, !0);
},
},
{
key: 'removeEventListeners',
value: function(Xe) {
if (!Xe.removeEventListener) return;
Xe.removeEventListener('dragstart', this.handleTopDragStart),
Xe.removeEventListener('dragstart', this.handleTopDragStartCapture, !0),
Xe.removeEventListener('dragend', this.handleTopDragEndCapture, !0),
Xe.removeEventListener('dragenter', this.handleTopDragEnter),
Xe.removeEventListener('dragenter', this.handleTopDragEnterCapture, !0),
Xe.removeEventListener('dragleave', this.handleTopDragLeaveCapture, !0),
Xe.removeEventListener('dragover', this.handleTopDragOver),
Xe.removeEventListener('dragover', this.handleTopDragOverCapture, !0),
Xe.removeEventListener('drop', this.handleTopDrop),
Xe.removeEventListener('drop', this.handleTopDropCapture, !0);
},
},
{
key: 'getCurrentSourceNodeOptions',
value: function() {
var Xe = this.monitor.getSourceId(),
ke = this.sourceNodeOptions.get(Xe);
return J({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, ke || {});
},
},
{
key: 'getCurrentDropEffect',
value: function() {
return this.isDraggingNativeItem()
? 'copy'
: this.getCurrentSourceNodeOptions().dropEffect;
},
},
{
key: 'getCurrentSourcePreviewNodeOptions',
value: function() {
var Xe = this.monitor.getSourceId(),
ke = this.sourcePreviewNodeOptions.get(Xe);
return J({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: !1 }, ke || {});
},
},
{
key: 'isDraggingNativeItem',
value: function() {
var Xe = this.monitor.getItemType();
return Object.keys(r).some(function(ke) {
return r[ke] === Xe;
});
},
},
{
key: 'beginDragNativeItem',
value: function(Xe, ke) {
this.clearCurrentDragSourceNode(),
(this.currentNativeSource = ne(Xe, ke)),
(this.currentNativeHandle = this.registry.addSource(
Xe,
this.currentNativeSource,
)),
this.actions.beginDrag([this.currentNativeHandle]);
},
},
{
key: 'setCurrentDragSourceNode',
value: function(Xe) {
var ke = this;
this.clearCurrentDragSourceNode(), (this.currentDragSourceNode = Xe);
var vt = 1e3;
this.mouseMoveTimeoutTimer = setTimeout(function() {
return (
ke.window &&
ke.window.addEventListener(
'mousemove',
ke.endDragIfSourceWasRemovedFromDOM,
!0,
)
);
}, vt);
},
},
{
key: 'clearCurrentDragSourceNode',
value: function() {
return this.currentDragSourceNode
? ((this.currentDragSourceNode = null),
this.window &&
(this.window.clearTimeout(this.mouseMoveTimeoutTimer || void 0),
this.window.removeEventListener(
'mousemove',
this.endDragIfSourceWasRemovedFromDOM,
!0,
)),
(this.mouseMoveTimeoutTimer = null),
!0)
: !1;
},
},
{
key: 'handleDragStart',
value: function(Xe, ke) {
if (Xe.defaultPrevented) return;
this.dragStartSourceIds || (this.dragStartSourceIds = []),
this.dragStartSourceIds.unshift(ke);
},
},
{
key: 'handleDragEnter',
value: function(Xe, ke) {
this.dragEnterTargetIds.unshift(ke);
},
},
{
key: 'handleDragOver',
value: function(Xe, ke) {
this.dragOverTargetIds === null && (this.dragOverTargetIds = []),
this.dragOverTargetIds.unshift(ke);
},
},
{
key: 'handleDrop',
value: function(Xe, ke) {
this.dropTargetIds.unshift(ke);
},
},
{
key: 'window',
get: function() {
return this.options.window;
},
},
{
key: 'document',
get: function() {
return this.options.document;
},
},
]),
Fe
);
})(),
qe = function(We, Xe) {
return new Ne(We, Xe);
};
},
qN19: function(W, c, n) {
'use strict';
n('1Ywk'), n('YawY'), n('Hgme'), n('uFIP');
},
qNPg: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return ce;
});
var r = n('rePB'),
d = n('VTBJ'),
o = n('KQm4'),
a = n('ODXe'),
t = n('Ff2n'),
e = n('q1tI'),
g = n('4IlW'),
v = n('TSYQ'),
E = n.n(v),
w = n('6cGi'),
L = n('bX4T'),
S = n('8XRh'),
R = n('8OUc'),
O = n('c+Xe'),
M = function(De, Ne) {
var qe = De.prefixCls,
Fe = De.id,
We = De.inputElement,
Xe = De.disabled,
ke = De.tabIndex,
vt = De.autoFocus,
_t = De.autoComplete,
Ft = De.editable,
Vt = De.accessibilityIndex,
Yt = De.value,
Ge = De.onKeyDown,
de = De.onMouseDown,
ie = De.onChange,
Le = De.onPaste,
Je = De.onCompositionStart,
rt = De.onCompositionEnd,
yt = De.open,
nn = De.attrs,
Gt = We || e.createElement('input', null),
Ct = Gt,
Wt = Ct.ref,
Ht = Ct.props,
Zt = Ht.onKeyDown,
Cn = Ht.onChange,
Qt = Ht.onMouseDown,
Sn = Ht.onCompositionStart,
Hn = Ht.onCompositionEnd,
Nn = Ht.style;
return (
(Gt = e.cloneElement(
Gt,
Object(d.a)(
Object(d.a)(
{
id: Fe,
ref: Object(O.a)(Ne, Wt),
disabled: Xe,
tabIndex: ke,
autoComplete: _t || 'off',
type: 'search',
autoFocus: vt,
className: ''.concat(qe, '-selection-search-input'),
style: Object(d.a)(Object(d.a)({}, Nn), {}, { opacity: Ft ? null : 0 }),
role: 'combobox',
'aria-expanded': yt,
'aria-haspopup': 'listbox',
'aria-owns': ''.concat(Fe, '_list'),
'aria-autocomplete': 'list',
'aria-controls': ''.concat(Fe, '_list'),
'aria-activedescendant': ''.concat(Fe, '_list_').concat(Vt),
},
nn,
),
{},
{
value: Ft ? Yt : '',
readOnly: !Ft,
unselectable: Ft ? null : 'on',
onKeyDown: function(He) {
Ge(He), Zt && Zt(He);
},
onMouseDown: function(He) {
de(He), Qt && Qt(He);
},
onChange: function(He) {
ie(He), Cn && Cn(He);
},
onCompositionStart: function(He) {
Je(He), Sn && Sn(He);
},
onCompositionEnd: function(He) {
rt(He), Hn && Hn(He);
},
onPaste: Le,
},
),
)),
Gt
);
},
A = e.forwardRef(M);
A.displayName = 'Input';
var I = A,
B = n('WKfj');
function N(ye, De) {
B.b ? e.useLayoutEffect(ye, De) : e.useEffect(ye, De);
}
var b = '__RC_SELECT_MAX_REST_COUNT__',
C = function(De) {
var Ne = De.id,
qe = De.prefixCls,
Fe = De.values,
We = De.open,
Xe = De.searchValue,
ke = De.inputRef,
vt = De.placeholder,
_t = De.disabled,
Ft = De.mode,
Vt = De.showSearch,
Yt = De.autoFocus,
Ge = De.autoComplete,
de = De.accessibilityIndex,
ie = De.tabIndex,
Le = De.removeIcon,
Je = De.choiceTransitionName,
rt = De.maxTagCount,
yt = De.maxTagTextLength,
nn = De.maxTagPlaceholder,
Gt =
nn === void 0
? function(Tt) {
return '+ '.concat(Tt.length, ' ...');
}
: nn,
Ct = De.tagRender,
Wt = De.onSelect,
Ht = De.onInputChange,
Zt = De.onInputPaste,
Cn = De.onInputKeyDown,
Qt = De.onInputMouseDown,
Sn = De.onInputCompositionStart,
Hn = De.onInputCompositionEnd,
Nn = e.useState(!1),
tr = Object(a.a)(Nn, 2),
He = tr[0],
pe = tr[1],
Te = e.useRef(null),
Ue = e.useState(0),
be = Object(a.a)(Ue, 2),
xe = be[0],
ve = be[1];
e.useEffect(function() {
pe(!0);
}, []);
var Ke = We || Ft === 'tags' ? Xe : '',
Se = Ft === 'tags' || (We && Vt);
N(
function() {
ve(Te.current.scrollWidth);
},
[Ke],
);
var Me = Fe,
ze;
typeof rt == 'number' && ((ze = Fe.length - rt), (Me = Fe.slice(0, rt))),
typeof yt == 'number' &&
(Me = Me.map(function(Tt) {
var Bt = Tt.label,
se = Object(t.a)(Tt, ['label']),
dt = Bt;
if (typeof Bt == 'string' || typeof Bt == 'number') {
var ut = String(dt);
ut.length > yt && (dt = ''.concat(ut.slice(0, yt), '...'));
}
return Object(d.a)(Object(d.a)({}, se), {}, { label: dt });
})),
ze > 0 && Me.push({ key: b, label: typeof Gt == 'function' ? Gt(Fe.slice(rt)) : Gt });
var Oe = e.createElement(
S.CSSMotionList,
{ component: !1, keys: Me, motionName: Je, motionAppear: He },
function(Tt) {
var Bt = Tt.key,
se = Tt.label,
dt = Tt.value,
ut = Tt.disabled,
je = Tt.className,
ot = Tt.style,
Nt = Bt || dt,
ln = !_t && Bt !== b && !ut,
Mn = function(nr) {
nr.preventDefault(), nr.stopPropagation();
},
Qn = function(nr) {
nr && nr.stopPropagation(), Wt(dt, { selected: !1 });
};
return typeof Ct == 'function'
? e.createElement(
'span',
{ key: Nt, onMouseDown: Mn, className: je, style: ot },
Ct({ label: se, value: dt, disabled: ut, closable: ln, onClose: Qn }),
)
: e.createElement(
'span',
{
key: Nt,
className: E()(
je,
''.concat(qe, '-selection-item'),
Object(r.a)({}, ''.concat(qe, '-selection-item-disabled'), ut),
),
style: ot,
},
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-item-content') },
se,
),
ln &&
e.createElement(
R.a,
{
className: ''.concat(qe, '-selection-item-remove'),
onMouseDown: Mn,
onClick: Qn,
customizeIcon: Le,
},
'×',
),
);
},
);
return e.createElement(
e.Fragment,
null,
Oe,
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-search'), style: { width: xe } },
e.createElement(I, {
ref: ke,
open: We,
prefixCls: qe,
id: Ne,
inputElement: null,
disabled: _t,
autoFocus: Yt,
autoComplete: Ge,
editable: Se,
accessibilityIndex: de,
value: Ke,
onKeyDown: Cn,
onMouseDown: Qt,
onChange: Ht,
onPaste: Zt,
onCompositionStart: Sn,
onCompositionEnd: Hn,
tabIndex: ie,
attrs: Object(L.a)(De, !0),
}),
e.createElement(
'span',
{
ref: Te,
className: ''.concat(qe, '-selection-search-mirror'),
'aria-hidden': !0,
},
Ke,
' ',
),
),
!Fe.length &&
!Ke &&
e.createElement('span', { className: ''.concat(qe, '-selection-placeholder') }, vt),
);
},
h = C,
u = function(De) {
var Ne = De.inputElement,
qe = De.prefixCls,
Fe = De.id,
We = De.inputRef,
Xe = De.disabled,
ke = De.autoFocus,
vt = De.autoComplete,
_t = De.accessibilityIndex,
Ft = De.mode,
Vt = De.open,
Yt = De.values,
Ge = De.placeholder,
de = De.tabIndex,
ie = De.showSearch,
Le = De.searchValue,
Je = De.activeValue,
rt = De.onInputKeyDown,
yt = De.onInputMouseDown,
nn = De.onInputChange,
Gt = De.onInputPaste,
Ct = De.onInputCompositionStart,
Wt = De.onInputCompositionEnd,
Ht = e.useState(!1),
Zt = Object(a.a)(Ht, 2),
Cn = Zt[0],
Qt = Zt[1],
Sn = Ft === 'combobox',
Hn = Sn || ie,
Nn = Yt[0],
tr = Le || '';
Sn && Je && !Cn && (tr = Je),
e.useEffect(
function() {
Sn && Qt(!1);
},
[Sn, Je],
);
var He = Ft !== 'combobox' && !Vt ? !1 : !!tr,
pe =
Nn && (typeof Nn.label == 'string' || typeof Nn.label == 'number')
? Nn.label.toString()
: void 0;
return e.createElement(
e.Fragment,
null,
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-search') },
e.createElement(I, {
ref: We,
prefixCls: qe,
id: Fe,
open: Vt,
inputElement: Ne,
disabled: Xe,
autoFocus: ke,
autoComplete: vt,
editable: Hn,
accessibilityIndex: _t,
value: tr,
onKeyDown: rt,
onMouseDown: yt,
onChange: function(Ue) {
Qt(!0), nn(Ue);
},
onPaste: Gt,
onCompositionStart: Ct,
onCompositionEnd: Wt,
tabIndex: de,
attrs: Object(L.a)(De, !0),
}),
),
!Sn &&
Nn &&
!He &&
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-item'), title: pe },
Nn.label,
),
!Nn &&
!He &&
e.createElement('span', { className: ''.concat(qe, '-selection-placeholder') }, Ge),
);
},
m = u;
function T() {
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250,
De = e.useRef(null),
Ne = e.useRef(null);
e.useEffect(function() {
return function() {
window.clearTimeout(Ne.current);
};
}, []);
function qe(Fe) {
(Fe || De.current === null) && (De.current = Fe),
window.clearTimeout(Ne.current),
(Ne.current = window.setTimeout(function() {
De.current = null;
}, ye));
}
return [
function() {
return De.current;
},
qe,
];
}
var x = function(De, Ne) {
var qe = Object(e.useRef)(null),
Fe = Object(e.useRef)(!1),
We = De.prefixCls,
Xe = De.multiple,
ke = De.open,
vt = De.mode,
_t = De.showSearch,
Ft = De.tokenWithEnter,
Vt = De.onSearch,
Yt = De.onSearchSubmit,
Ge = De.onToggleOpen,
de = De.onInputKeyDown,
ie = De.domRef;
e.useImperativeHandle(Ne, function() {
return {
focus: function() {
qe.current.focus();
},
blur: function() {
qe.current.blur();
},
};
});
var Le = T(0),
Je = Object(a.a)(Le, 2),
rt = Je[0],
yt = Je[1],
nn = function(pe) {
var Te = pe.which;
(Te === g.a.UP || Te === g.a.DOWN) && pe.preventDefault(),
de && de(pe),
Te === g.a.ENTER && vt === 'tags' && !Fe.current && !ke && Yt(pe.target.value),
[g.a.SHIFT, g.a.TAB, g.a.BACKSPACE, g.a.ESC].includes(Te) || Ge(!0);
},
Gt = function() {
yt(!0);
},
Ct = Object(e.useRef)(null),
Wt = function(pe) {
Vt(pe, !0, Fe.current) !== !1 && Ge(!0);
},
Ht = function() {
Fe.current = !0;
},
Zt = function() {
Fe.current = !1;
},
Cn = function(pe) {
var Te = pe.target.value;
if (Ft && Ct.current && /[\r\n]/.test(Ct.current)) {
var Ue = Ct.current.replace(/\r\n/g, ' ').replace(/[\r\n]/g, ' ');
Te = Te.replace(Ue, Ct.current);
}
(Ct.current = null), Wt(Te);
},
Qt = function(pe) {
var Te = pe.clipboardData,
Ue = Te.getData('text');
Ct.current = Ue;
},
Sn = function(pe) {
var Te = pe.target;
if (Te !== qe.current) {
var Ue = document.body.style.msTouchAction !== void 0;
Ue
? setTimeout(function() {
qe.current.focus();
})
: qe.current.focus();
}
},
Hn = function(pe) {
var Te = rt();
pe.target !== qe.current && !Te && pe.preventDefault(),
((vt !== 'combobox' && (!_t || !Te)) || !ke) && (ke && Vt('', !0, !1), Ge());
},
Nn = {
inputRef: qe,
onInputKeyDown: nn,
onInputMouseDown: Gt,
onInputChange: Cn,
onInputPaste: Qt,
onInputCompositionStart: Ht,
onInputCompositionEnd: Zt,
},
tr = Xe
? e.createElement(h, Object.assign({}, De, Nn))
: e.createElement(m, Object.assign({}, De, Nn));
return e.createElement(
'div',
{ ref: ie, className: ''.concat(We, '-selector'), onClick: Sn, onMouseDown: Hn },
tr,
);
},
F = e.forwardRef(x);
F.displayName = 'Selector';
var U = F,
H = n('uciX'),
Y = function(De) {
var Ne = typeof De != 'number' ? 0 : 1;
return {
bottomLeft: {
points: ['tl', 'bl'],
offset: [0, 4],
overflow: { adjustX: Ne, adjustY: 1 },
},
bottomRight: {
points: ['tr', 'br'],
offset: [0, 4],
overflow: { adjustX: Ne, adjustY: 1 },
},
topLeft: {
points: ['bl', 'tl'],
offset: [0, -4],
overflow: { adjustX: Ne, adjustY: 1 },
},
topRight: {
points: ['br', 'tr'],
offset: [0, -4],
overflow: { adjustX: Ne, adjustY: 1 },
},
};
},
Z = function(De, Ne) {
var qe = De.prefixCls,
Fe = De.disabled,
We = De.visible,
Xe = De.children,
ke = De.popupElement,
vt = De.containerWidth,
_t = De.animation,
Ft = De.transitionName,
Vt = De.dropdownStyle,
Yt = De.dropdownClassName,
Ge = De.direction,
de = Ge === void 0 ? 'ltr' : Ge,
ie = De.dropdownMatchSelectWidth,
Le = ie === void 0 ? !0 : ie,
Je = De.dropdownRender,
rt = De.dropdownAlign,
yt = De.getPopupContainer,
nn = De.empty,
Gt = De.getTriggerDOMNode,
Ct = Object(t.a)(De, [
'prefixCls',
'disabled',
'visible',
'children',
'popupElement',
'containerWidth',
'animation',
'transitionName',
'dropdownStyle',
'dropdownClassName',
'direction',
'dropdownMatchSelectWidth',
'dropdownRender',
'dropdownAlign',
'getPopupContainer',
'empty',
'getTriggerDOMNode',
]),
Wt = ''.concat(qe, '-dropdown'),
Ht = ke;
Je && (Ht = Je(ke));
var Zt = e.useMemo(
function() {
return Y(Le);
},
[Le],
),
Cn = _t ? ''.concat(Wt, '-').concat(_t) : Ft,
Qt = e.useRef(null);
e.useImperativeHandle(Ne, function() {
return {
getPopupElement: function() {
return Qt.current;
},
};
});
var Sn = Object(d.a)({ minWidth: vt }, Vt);
return (
typeof Le == 'number' ? (Sn.width = Le) : Le && (Sn.width = vt),
e.createElement(
H.a,
Object.assign({}, Ct, {
showAction: [],
hideAction: [],
popupPlacement: de === 'rtl' ? 'bottomRight' : 'bottomLeft',
builtinPlacements: Zt,
prefixCls: Wt,
popupTransitionName: Cn,
popup: e.createElement('div', { ref: Qt }, Ht),
popupAlign: rt,
popupVisible: We,
getPopupContainer: yt,
popupClassName: E()(Yt, Object(r.a)({}, ''.concat(Wt, '-empty'), nn)),
popupStyle: Sn,
getTriggerDOMNode: Gt,
}),
Xe,
)
);
},
ne = e.forwardRef(Z);
ne.displayName = 'SelectTrigger';
var ae = ne,
Ee = n('wPlo');
function Ae() {
var ye = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10,
De = e.useState(!1),
Ne = Object(a.a)(De, 2),
qe = Ne[0],
Fe = Ne[1],
We = e.useRef(null),
Xe = function() {
window.clearTimeout(We.current);
};
e.useEffect(function() {
return Xe;
}, []);
var ke = function(_t, Ft) {
Xe(),
(We.current = window.setTimeout(function() {
Fe(_t), Ft && Ft();
}, ye));
};
return [qe, ke, Xe];
}
var ue = n('2Qr1');
function Q(ye, De, Ne) {
var qe = e.useRef(null);
(qe.current = {
elements: ye.filter(function(Fe) {
return Fe;
}),
open: De,
triggerOpen: Ne,
}),
e.useEffect(function() {
function Fe(We) {
var Xe = We.target;
qe.current.open &&
qe.current.elements.every(function(ke) {
return !ke.contains(Xe) && ke !== Xe;
}) &&
qe.current.triggerOpen(!1);
}
return (
window.addEventListener('mousedown', Fe),
function() {
return window.removeEventListener('mousedown', Fe);
}
);
}, []);
}
function le(ye) {
var De = e.useRef(ye),
Ne = e.useMemo(
function() {
var qe = new Map();
De.current.forEach(function(We) {
var Xe = We.value,
ke = We.label;
Xe !== ke && qe.set(Xe, ke);
});
var Fe = ye.map(function(We) {
var Xe = qe.get(We.value);
return We.value === We.label && Xe
? Object(d.a)(Object(d.a)({}, We), {}, { label: Xe })
: We;
});
return (De.current = Fe), Fe;
},
[ye],
);
return Ne;
}
function J(ye, De) {
var Ne = e.useRef(null),
qe = e.useMemo(
function() {
var We = new Map();
return (
De.forEach(function(Xe) {
var ke = Xe.data.value;
We.set(ke, Xe);
}),
We
);
},
[ye, De],
);
Ne.current = qe;
var Fe = function(Xe) {
return Xe.map(function(ke) {
return Ne.current.get(ke);
}).filter(Boolean);
};
return Fe;
}
var re = [
'removeIcon',
'placeholder',
'autoFocus',
'maxTagCount',
'maxTagTextLength',
'maxTagPlaceholder',
'choiceTransitionName',
'onInputKeyDown',
];
function ce(ye) {
var De = ye.prefixCls,
Ne = ye.components.optionList,
qe = ye.convertChildrenToData,
Fe = ye.flattenOptions,
We = ye.getLabeledValue,
Xe = ye.filterOptions,
ke = ye.isValueDisabled,
vt = ye.findValueOption,
_t = ye.warningProps,
Ft = ye.fillOptionsWithMissingValue,
Vt = ye.omitDOMProps;
function Yt(de, ie) {
var Le,
Je = de.prefixCls,
rt = Je === void 0 ? De : Je,
yt = de.className,
nn = de.id,
Gt = de.open,
Ct = de.defaultOpen,
Wt = de.options,
Ht = de.children,
Zt = de.mode,
Cn = de.value,
Qt = de.defaultValue,
Sn = de.labelInValue,
Hn = de.showSearch,
Nn = de.inputValue,
tr = de.searchValue,
He = de.filterOption,
pe = de.optionFilterProp,
Te = pe === void 0 ? 'value' : pe,
Ue = de.autoClearSearchValue,
be = Ue === void 0 ? !0 : Ue,
xe = de.onSearch,
ve = de.allowClear,
Ke = de.clearIcon,
Se = de.showArrow,
Me = de.inputIcon,
ze = de.menuItemSelectedIcon,
Oe = de.disabled,
Tt = de.loading,
Bt = de.defaultActiveFirstOption,
se = de.notFoundContent,
dt = se === void 0 ? 'Not Found' : se,
ut = de.optionLabelProp,
je = de.backfill,
ot = de.getInputElement,
Nt = de.getPopupContainer,
ln = de.listHeight,
Mn = ln === void 0 ? 200 : ln,
Qn = de.listItemHeight,
cr = Qn === void 0 ? 20 : Qn,
nr = de.animation,
rn = de.transitionName,
$e = de.virtual,
st = de.dropdownStyle,
ht = de.dropdownClassName,
Be = de.dropdownMatchSelectWidth,
at = de.dropdownRender,
Mt = de.dropdownAlign,
qt = de.showAction,
Un = qt === void 0 ? [] : qt,
cn = de.direction,
on = de.tokenSeparators,
An = de.tagRender,
kn = de.onPopupScroll,
wr = de.onDropdownVisibleChange,
pr = de.onFocus,
Rr = de.onBlur,
Nr = de.onKeyUp,
lt = de.onKeyDown,
wt = de.onMouseDown,
bt = de.onChange,
$t = de.onSelect,
er = de.onDeselect,
sr = de.onClear,
hr = de.internalProps,
bn = hr === void 0 ? {} : hr,
Ur = Object(t.a)(de, [
'prefixCls',
'className',
'id',
'open',
'defaultOpen',
'options',
'children',
'mode',
'value',
'defaultValue',
'labelInValue',
'showSearch',
'inputValue',
'searchValue',
'filterOption',
'optionFilterProp',
'autoClearSearchValue',
'onSearch',
'allowClear',
'clearIcon',
'showArrow',
'inputIcon',
'menuItemSelectedIcon',
'disabled',
'loading',
'defaultActiveFirstOption',
'notFoundContent',
'optionLabelProp',
'backfill',
'getInputElement',
'getPopupContainer',
'listHeight',
'listItemHeight',
'animation',
'transitionName',
'virtual',
'dropdownStyle',
'dropdownClassName',
'dropdownMatchSelectWidth',
'dropdownRender',
'dropdownAlign',
'showAction',
'direction',
'tokenSeparators',
'tagRender',
'onPopupScroll',
'onDropdownVisibleChange',
'onFocus',
'onBlur',
'onKeyUp',
'onKeyDown',
'onMouseDown',
'onChange',
'onSelect',
'onDeselect',
'onClear',
'internalProps',
]),
sa = bn.mark === Ee.a,
zr = Vt ? Vt(Ur) : Ur;
re.forEach(function(na) {
delete zr[na];
});
var la = Object(e.useRef)(null),
yi = Object(e.useRef)(null),
bi = Object(e.useRef)(null),
oi = Object(e.useRef)(null),
ro = Object(e.useMemo)(
function() {
return (on || []).some(function(na) {
return [
`
`,
`\r
`,
].includes(na);
});
},
[on],
),
Si = Ae(),
La = Object(a.a)(Si, 3),
ji = La[0],
zi = La[1],
Ha = La[2],
ao = Object(e.useState)(),
Ai = Object(a.a)(ao, 2),
Zi = Ai[0],
$r = Ai[1];
Object(e.useEffect)(function() {
$r('rc_select_'.concat(Object(B.a)()));
}, []);
var Va = nn || Zi,
Ya = ut;
Ya === void 0 && (Ya = Wt ? 'label' : 'children');
var Ni = Zt === 'combobox' ? !1 : Sn,
ma = Zt === 'tags' || Zt === 'multiple',
Gi = Hn !== void 0 ? Hn : ma || Zt === 'combobox',
go = Object(e.useRef)(null);
e.useImperativeHandle(ie, function() {
return { focus: bi.current.focus, blur: bi.current.blur };
});
var Qa = Object(w.a)(Qt, { value: Cn }),
mo = Object(a.a)(Qa, 2),
Mi = mo[0],
Ti = mo[1],
Ua = Object(e.useMemo)(
function() {
return Object(B.e)(Mi, { labelInValue: Ni, combobox: Zt === 'combobox' });
},
[Mi, Ni],
),
Fi = Object(e.useMemo)(
function() {
return new Set(Ua);
},
[Ua],
),
Hi = Object(e.useState)(null),
fi = Object(a.a)(Hi, 2),
za = fi[0],
Pi = fi[1],
po = Object(e.useState)(''),
lo = Object(a.a)(po, 2),
At = lo[0],
vn = lo[1],
Jn = At;
Zt === 'combobox' && Mi !== void 0
? (Jn = Mi)
: tr !== void 0
? (Jn = tr)
: Nn && (Jn = Nn);
var zt = Object(e.useMemo)(
function() {
var na = Wt;
return (
na === void 0 && (na = qe(Ht)),
Zt === 'tags' && Ft && (na = Ft(na, Mi, Ya, Sn)),
na || []
);
},
[Wt, Ht, Zt, Mi],
),
Lt = Object(e.useMemo)(
function() {
return Fe(zt, de);
},
[zt],
),
pn = J(Ua, Lt),
ft = Object(e.useMemo)(
function() {
if (!Jn || !Gi) return Object(o.a)(zt);
var na = Xe(Jn, zt, {
optionFilterProp: Te,
filterOption:
Zt === 'combobox' && He === void 0
? function() {
return !0;
}
: He,
});
return (
Zt === 'tags' &&
na.every(function(ra) {
return ra[Te] !== Jn;
}) &&
na.unshift({ value: Jn, label: Jn, key: '__RC_SELECT_TAG_PLACEHOLDER__' }),
na
);
},
[zt, Jn, Zt, Gi],
),
un = Object(e.useMemo)(
function() {
return Fe(ft, de);
},
[ft],
);
Object(e.useEffect)(
function() {
oi.current && oi.current.scrollTo && oi.current.scrollTo(0);
},
[Jn],
);
var Bn = Object(e.useMemo)(
function() {
var na = Ua.map(function(ra) {
var Ca = pn([ra]),
Da = We(ra, {
options: Ca,
prevValue: Mi,
labelInValue: Ni,
optionLabelProp: Ya,
});
return Object(d.a)(Object(d.a)({}, Da), {}, { disabled: ke(ra, Ca) });
});
return !Zt && na.length === 1 && na[0].value === null && na[0].label === null
? []
: na;
},
[Mi, zt, Zt],
);
Bn = le(Bn);
var Jt = function(ra, Ca, Da) {
var li = pn([ra]),
Xa = vt([ra], li)[0];
if (!bn.skipTriggerSelect) {
var Li = Ni
? We(ra, { options: li, prevValue: Mi, labelInValue: Ni, optionLabelProp: Ya })
: ra;
Ca && $t ? $t(Li, Xa) : !Ca && er && er(Li, Xa);
}
sa &&
(Ca && bn.onRawSelect
? bn.onRawSelect(ra, Xa, Da)
: !Ca && bn.onRawDeselect && bn.onRawDeselect(ra, Xa, Da));
},
gr = Object(e.useState)([]),
Sr = Object(a.a)(gr, 2),
xr = Sr[0],
Mr = Sr[1],
Tr = function(ra) {
if (sa && bn.skipTriggerChange) return;
var Ca = pn(ra),
Da = Object(B.f)(Array.from(ra), {
labelInValue: Ni,
options: Ca,
getLabeledValue: We,
prevValue: Mi,
optionLabelProp: Ya,
}),
li = ma ? Da : Da[0];
if (bt && (Ua.length !== 0 || Da.length !== 0)) {
var Xa = vt(ra, Ca, { prevValueOptions: xr });
Mr(
Xa.map(function(Li, _) {
var ee = Object(d.a)({}, Li);
return (
Object.defineProperty(ee, '_INTERNAL_OPTION_VALUE_', {
get: function() {
return ra[_];
},
}),
ee
);
}),
),
bt(li, ma ? Xa : Xa[0]);
}
Ti(li);
},
jr = function(ra, Ca) {
var Da = Ca.selected,
li = Ca.source;
if (Oe) return;
var Xa;
ma
? ((Xa = new Set(Ua)), Da ? Xa.add(ra) : Xa.delete(ra))
: ((Xa = new Set()), Xa.add(ra)),
(ma || (!ma && Array.from(Ua)[0] !== ra)) && Tr(Array.from(Xa)),
Jt(ra, !ma || Da, li),
Zt === 'combobox' ? (vn(String(ra)), Pi('')) : (!ma || be) && (vn(''), Pi(''));
},
ia = function(ra, Ca) {
jr(ra, Object(d.a)(Object(d.a)({}, Ca), {}, { source: 'option' }));
},
Qr = function(ra, Ca) {
jr(ra, Object(d.a)(Object(d.a)({}, Ca), {}, { source: 'selection' }));
},
Gr = (Zt === 'combobox' && ot && ot()) || null,
Ga = Object(w.a)(void 0, { defaultValue: Ct, value: Gt }),
Bi = Object(a.a)(Ga, 2),
ta = Bi[0],
vi = Bi[1],
Za = ta,
Ji = !dt && !ft.length;
(Oe || (Ji && Za && Zt === 'combobox')) && (Za = !1);
var Ia = Ji ? !1 : Za,
Wr = function(ra) {
var Ca = ra !== void 0 ? ra : !Za;
ta !== Ca && !Oe && (vi(Ca), wr && wr(Ca));
};
Q([la.current, yi.current && yi.current.getPopupElement()], Ia, Wr);
var Na = function(ra, Ca, Da) {
var li = !0,
Xa = ra;
Pi(null);
var Li = Da ? null : Object(ue.f)(ra, on),
_ = Li;
if (Zt === 'combobox') Ca && Tr([Xa]);
else if (Li) {
(Xa = ''),
Zt !== 'tags' &&
(_ = Li.map(function(Ce) {
var _e = Lt.find(function(Qe) {
var Ot = Qe.data;
return Ot[Ya] === Ce;
});
return _e ? _e.data.value : null;
}).filter(function(Ce) {
return Ce !== null;
}));
var ee = Array.from(new Set([].concat(Object(o.a)(Ua), Object(o.a)(_))));
Tr(ee),
ee.forEach(function(Ce) {
Jt(Ce, !0, 'input');
}),
Wr(!1),
(li = !1);
}
return vn(Xa), xe && Jn !== Xa && xe(Xa), li;
},
ca = function(ra) {
var Ca = Array.from(new Set([].concat(Object(o.a)(Ua), [ra])));
Tr(Ca),
Ca.forEach(function(Da) {
Jt(Da, !0, 'input');
}),
vn('');
};
Object(e.useEffect)(
function() {
ta && !!Oe && vi(!1);
},
[Oe],
),
Object(e.useEffect)(
function() {
!Za && !ma && Zt !== 'combobox' && Na('', !1, !1);
},
[Za],
);
var Ta = T(),
bo = Object(a.a)(Ta, 2),
io = bo[0],
Pa = bo[1],
Ui = function(ra) {
var Ca = io(),
Da = ra.which;
if (
(!Za && Da === g.a.ENTER && Wr(!0),
Pa(!!Jn),
Da === g.a.BACKSPACE && !Ca && ma && !Jn && Ua.length)
) {
var li = Object(B.c)(Bn, Ua);
li.removedValue !== null && (Tr(li.values), Jt(li.removedValue, !1, 'input'));
}
for (
var Xa = arguments.length, Li = new Array(Xa > 1 ? Xa - 1 : 0), _ = 1;
_ < Xa;
_++
)
Li[_ - 1] = arguments[_];
if (Za && oi.current) {
var ee;
(ee = oi.current).onKeyDown.apply(ee, [ra].concat(Li));
}
lt && lt.apply(void 0, [ra].concat(Li));
},
xo = function(ra) {
for (
var Ca = arguments.length, Da = new Array(Ca > 1 ? Ca - 1 : 0), li = 1;
li < Ca;
li++
)
Da[li - 1] = arguments[li];
if (Za && oi.current) {
var Xa;
(Xa = oi.current).onKeyUp.apply(Xa, [ra].concat(Da));
}
Nr && Nr.apply(void 0, [ra].concat(Da));
},
In = Object(e.useRef)(!1),
Ve = function() {
zi(!0),
Oe ||
(pr && !In.current && pr.apply(void 0, arguments),
Un.includes('focus') && Wr(!0)),
(In.current = !0);
},
pt = function() {
if (
(zi(!1, function() {
(In.current = !1), Wr(!1);
}),
Oe)
)
return;
Jn &&
(Zt === 'tags'
? (Na('', !1, !1), Tr(Array.from(new Set([].concat(Object(o.a)(Ua), [Jn])))))
: Zt === 'multiple' && vn('')),
Rr && Rr.apply(void 0, arguments);
},
oe = [];
Object(e.useEffect)(function() {
return function() {
oe.forEach(function(na) {
return clearTimeout(na);
}),
oe.splice(0, oe.length);
};
}, []);
var gt = function(ra) {
var Ca = ra.target,
Da = yi.current && yi.current.getPopupElement();
if (Da && Da.contains(Ca)) {
var li = setTimeout(function() {
var ee = oe.indexOf(li);
ee !== -1 && oe.splice(ee, 1),
Ha(),
Da.contains(document.activeElement) || bi.current.focus();
});
oe.push(li);
}
if (wt) {
for (
var Xa = arguments.length, Li = new Array(Xa > 1 ? Xa - 1 : 0), _ = 1;
_ < Xa;
_++
)
Li[_ - 1] = arguments[_];
wt.apply(void 0, [ra].concat(Li));
}
},
mt = Object(e.useState)(0),
kt = Object(a.a)(mt, 2),
It = kt[0],
Rn = kt[1],
rr = Bt !== void 0 ? Bt : Zt !== 'combobox',
Ar = function(ra, Ca) {
var Da = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
li = Da.source,
Xa = li === void 0 ? 'keyboard' : li;
Rn(Ca), je && Zt === 'combobox' && ra !== null && Xa === 'keyboard' && Pi(String(ra));
},
kr = Object(e.useState)(null),
Kr = Object(a.a)(kr, 2),
Aa = Kr[0],
Ja = Kr[1],
Vi = Object(e.useState)({}),
Do = Object(a.a)(Vi, 2),
To = Do[1];
function Oi() {
To({});
}
N(
function() {
if (Ia) {
var na = Math.ceil(la.current.offsetWidth);
Aa !== na && Ja(na);
}
},
[Ia],
);
var Ka = e.createElement(Ne, {
ref: oi,
prefixCls: rt,
id: Va,
open: Za,
childrenAsData: !Wt,
options: ft,
flattenOptions: un,
multiple: ma,
values: Fi,
height: Mn,
itemHeight: cr,
onSelect: ia,
onToggleOpen: Wr,
onActiveValue: Ar,
defaultActiveFirstOption: rr,
notFoundContent: dt,
onScroll: kn,
searchValue: Jn,
menuItemSelectedIcon: ze,
virtual: $e !== !1 && Be !== !1,
onMouseEnter: Oi,
}),
ha,
Di = function() {
sa && bn.onClear && bn.onClear(), sr && sr(), Tr([]), Na('', !1, !1);
};
!Oe &&
ve &&
(Ua.length || Jn) &&
(ha = e.createElement(
R.a,
{ className: ''.concat(rt, '-clear'), onMouseDown: Di, customizeIcon: Ke },
'×',
));
var Ma = Se !== void 0 ? Se : Tt || (!ma && Zt !== 'combobox'),
si;
Ma &&
(si = e.createElement(R.a, {
className: E()(
''.concat(rt, '-arrow'),
Object(r.a)({}, ''.concat(rt, '-arrow-loading'), Tt),
),
customizeIcon: Me,
customizeIconProps: {
loading: Tt,
searchValue: Jn,
open: Za,
focused: ji,
showSearch: Gi,
},
}));
var ki = E()(
rt,
yt,
((Le = {}),
Object(r.a)(Le, ''.concat(rt, '-focused'), ji),
Object(r.a)(Le, ''.concat(rt, '-multiple'), ma),
Object(r.a)(Le, ''.concat(rt, '-single'), !ma),
Object(r.a)(Le, ''.concat(rt, '-allow-clear'), ve),
Object(r.a)(Le, ''.concat(rt, '-show-arrow'), Ma),
Object(r.a)(Le, ''.concat(rt, '-disabled'), Oe),
Object(r.a)(Le, ''.concat(rt, '-loading'), Tt),
Object(r.a)(Le, ''.concat(rt, '-open'), Za),
Object(r.a)(Le, ''.concat(rt, '-customize-input'), Gr),
Object(r.a)(Le, ''.concat(rt, '-show-search'), Gi),
Le),
);
return e.createElement(
'div',
Object.assign({ className: ki }, zr, {
ref: la,
onMouseDown: gt,
onKeyDown: Ui,
onKeyUp: xo,
onFocus: Ve,
onBlur: pt,
}),
ji &&
!Za &&
e.createElement(
'span',
{
style: { width: 0, height: 0, display: 'flex', overflow: 'hidden', opacity: 0 },
'aria-live': 'polite',
},
''.concat(Ua.join(', ')),
),
e.createElement(
ae,
{
ref: yi,
disabled: Oe,
prefixCls: rt,
visible: Ia,
popupElement: Ka,
containerWidth: Aa,
animation: nr,
transitionName: rn,
dropdownStyle: st,
dropdownClassName: ht,
direction: cn,
dropdownMatchSelectWidth: Be,
dropdownRender: at,
dropdownAlign: Mt,
getPopupContainer: Nt,
empty: !zt.length,
getTriggerDOMNode: function() {
return go.current;
},
},
e.createElement(
U,
Object.assign({}, de, {
domRef: go,
prefixCls: rt,
inputElement: Gr,
ref: bi,
id: Va,
showSearch: Gi,
mode: Zt,
accessibilityIndex: It,
multiple: ma,
tagRender: An,
values: Bn,
open: Za,
onToggleOpen: Wr,
searchValue: Jn,
activeValue: za,
onSearch: Na,
onSearchSubmit: ca,
onSelect: Qr,
tokenWithEnter: ro,
}),
),
),
si,
ha,
);
}
var Ge = e.forwardRef(Yt);
return Ge;
}
},
qT76: function(W, c, n) {
'use strict';
n('1Ywk'), n('YawY'), n('4ZCN');
},
qWUW: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('DL4k')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'CaretDownOutlined';
var g = o.forwardRef(e);
c.default = g;
},
qZTm: function(W, c, n) {
var r = n('fR/l'),
d = n('MvSz'),
o = n('7GkX');
function a(t) {
return r(t, o, d);
}
W.exports = a;
},
'ql/k': function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r =
Object.assign ||
function(g) {
for (var v = 1; v < arguments.length; v++) {
var E = arguments[v];
for (var w in E) Object.prototype.hasOwnProperty.call(E, w) && (g[w] = E[w]);
}
return g;
},
d = n('q1tI'),
o = a(d);
function a(g) {
return g && g.__esModule ? g : { default: g };
}
function t(g, v) {
var E = {};
for (var w in g) {
if (v.indexOf(w) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(g, w)) continue;
E[w] = g[w];
}
return E;
}
var e = 24;
c.default = function(g) {
var v = g.fill,
E = v === void 0 ? 'currentColor' : v,
w = g.width,
L = w === void 0 ? e : w,
S = g.height,
R = S === void 0 ? e : S,
O = g.style,
M = O === void 0 ? {} : O,
A = t(g, ['fill', 'width', 'height', 'style']);
return o.default.createElement(
'svg',
r({ viewBox: '0 0 ' + e + ' ' + e, style: r({ fill: E, width: L, height: R }, M) }, A),
o.default.createElement('path', {
d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
}),
);
};
},
qnky: function(W, c, n) {
'use strict';
function r(v, E) {
if (!(v instanceof E)) throw new TypeError('Cannot call a class as a function');
}
function d(v, E) {
if (!v)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return E && (typeof E == 'object' || typeof E == 'function') ? E : v;
}
function o(v, E) {
if (typeof E != 'function' && E !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof E,
);
(v.prototype = Object.create(E && E.prototype, {
constructor: { value: v, enumerable: !1, writable: !0, configurable: !0 },
})),
E && (Object.setPrototypeOf ? Object.setPrototypeOf(v, E) : (v.__proto__ = E));
}
var a = n('JPcv'),
t = a.Record,
e = t({ type: 'TOKEN', mutability: 'IMMUTABLE', data: Object }),
g = (function(v) {
o(E, v);
function E() {
return r(this, E), d(this, v.apply(this, arguments));
}
return (
(E.prototype.getType = function() {
return this.get('type');
}),
(E.prototype.getMutability = function() {
return this.get('mutability');
}),
(E.prototype.getData = function() {
return this.get('data');
}),
E
);
})(e);
W.exports = g;
},
qo7Q: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.AlphaPicker = void 0);
var r =
Object.assign ||
function(L) {
for (var S = 1; S < arguments.length; S++) {
var R = arguments[S];
for (var O in R) Object.prototype.hasOwnProperty.call(R, O) && (L[O] = R[O]);
}
return L;
},
d = n('q1tI'),
o = E(d),
a = n('/FUP'),
t = E(a),
e = n('TM95'),
g = n('Syy6'),
v = E(g);
function E(L) {
return L && L.__esModule ? L : { default: L };
}
var w = (c.AlphaPicker = function(S) {
var R = S.rgb,
O = S.hsl,
M = S.width,
A = S.height,
I = S.onChange,
B = S.direction,
N = S.style,
b = S.renderers,
C = S.pointer,
h = S.className,
u = h === void 0 ? '' : h,
m = (0, t.default)({
default: {
picker: { position: 'relative', width: M, height: A },
alpha: { radius: '2px', style: N },
},
});
return o.default.createElement(
'div',
{ style: m.picker, className: 'alpha-picker ' + u },
o.default.createElement(
e.Alpha,
r({}, m.alpha, { rgb: R, hsl: O, pointer: C, renderers: b, onChange: I, direction: B }),
),
);
});
(w.defaultProps = {
width: '316px',
height: '16px',
direction: 'horizontal',
pointer: v.default,
}),
(c.default = (0, e.ColorWrap)(w));
},
qx4F: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return d;
});
var r;
function d(o) {
if (typeof document == 'undefined') return 0;
if (o || r === void 0) {
var a = document.createElement('div');
(a.style.width = '100%'), (a.style.height = '200px');
var t = document.createElement('div'),
e = t.style;
(e.position = 'absolute'),
(e.top = 0),
(e.left = 0),
(e.pointerEvents = 'none'),
(e.visibility = 'hidden'),
(e.width = '200px'),
(e.height = '150px'),
(e.overflow = 'hidden'),
t.appendChild(a),
document.body.appendChild(t);
var g = a.offsetWidth;
t.style.overflow = 'scroll';
var v = a.offsetWidth;
g === v && (v = t.clientWidth), document.body.removeChild(t), (r = g - v);
}
return r;
}
},
qy1W: function(W, c, n) {
'use strict';
var r = n('2NuI');
function d(t) {
var e = t.length;
if (
((!Array.isArray(t) && (typeof t == 'object' || typeof t == 'function')) || r(!1),
typeof e == 'number' || r(!1),
e === 0 || e - 1 in t || r(!1),
typeof t.callee != 'function' || r(!1),
t.hasOwnProperty)
)
try {
return Array.prototype.slice.call(t);
} catch (E) {}
for (var g = Array(e), v = 0; v < e; v++) g[v] = t[v];
return g;
}
function o(t) {
return (
!!t &&
(typeof t == 'object' || typeof t == 'function') &&
'length' in t &&
!('setInterval' in t) &&
typeof t.nodeType != 'number' &&
(Array.isArray(t) || 'callee' in t || 'item' in t)
);
}
function a(t) {
return o(t) ? (Array.isArray(t) ? t.slice() : d(t)) : [t];
}
W.exports = a;
},
'r+Ry': function(W, c, n) {},
rAV9: function(W, c, n) {
'use strict';
var r = n('JPcv'),
d = r.Map,
o = n('q1tI'),
a = n('YVIB'),
t = o.createElement('ul', { className: a('public/DraftStyleDefault/ul') }),
e = o.createElement('ol', { className: a('public/DraftStyleDefault/ol') }),
g = o.createElement('pre', { className: a('public/DraftStyleDefault/pre') }),
v = d({
'header-one': { element: 'h1' },
'header-two': { element: 'h2' },
'header-three': { element: 'h3' },
'header-four': { element: 'h4' },
'header-five': { element: 'h5' },
'header-six': { element: 'h6' },
'unordered-list-item': { element: 'li', wrapper: t },
'ordered-list-item': { element: 'li', wrapper: e },
blockquote: { element: 'blockquote' },
atomic: { element: 'figure' },
'code-block': { element: 'pre', wrapper: g },
unstyled: { element: 'div', aliasedElements: ['p'] },
});
W.exports = v;
},
rEGp: function(W, c) {
function n(r) {
var d = -1,
o = Array(r.size);
return (
r.forEach(function(a) {
o[++d] = a;
}),
o
);
}
W.exports = n;
},
rJ8t: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.Block = void 0);
var r = n('q1tI'),
d = O(r),
o = n('17x9'),
a = O(o),
t = n('/FUP'),
e = O(t),
g = n('QkVN'),
v = O(g),
E = n('p8yl'),
w = O(E),
L = n('TM95'),
S = n('uDUr'),
R = O(S);
function O(A) {
return A && A.__esModule ? A : { default: A };
}
var M = (c.Block = function(I) {
var B = I.onChange,
N = I.onSwatchHover,
b = I.hex,
C = I.colors,
h = I.width,
u = I.triangle,
m = I.styles,
T = m === void 0 ? {} : m,
x = I.className,
F = x === void 0 ? '' : x,
U = b === 'transparent',
H = function(ne, ae) {
w.default.isValidHex(ne) && B({ hex: ne, source: 'hex' }, ae);
},
Y = (0, e.default)(
(0, v.default)(
{
default: {
card: {
width: h,
background: '#fff',
boxShadow: '0 1px rgba(0,0,0,.1)',
borderRadius: '6px',
position: 'relative',
},
head: {
height: '110px',
background: b,
borderRadius: '6px 6px 0 0',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
position: 'relative',
},
body: { padding: '10px' },
label: {
fontSize: '18px',
color: w.default.getContrastingColor(b),
position: 'relative',
},
triangle: {
width: '0px',
height: '0px',
borderStyle: 'solid',
borderWidth: '0 10px 10px 10px',
borderColor: 'transparent transparent ' + b + ' transparent',
position: 'absolute',
top: '-10px',
left: '50%',
marginLeft: '-10px',
},
input: {
width: '100%',
fontSize: '12px',
color: '#666',
border: '0px',
outline: 'none',
height: '22px',
boxShadow: 'inset 0 0 0 1px #ddd',
borderRadius: '4px',
padding: '0 7px',
boxSizing: 'border-box',
},
},
'hide-triangle': { triangle: { display: 'none' } },
},
T,
),
{ 'hide-triangle': u === 'hide' },
);
return d.default.createElement(
'div',
{ style: Y.card, className: 'block-picker ' + F },
d.default.createElement('div', { style: Y.triangle }),
d.default.createElement(
'div',
{ style: Y.head },
U && d.default.createElement(L.Checkboard, { borderRadius: '6px 6px 0 0' }),
d.default.createElement('div', { style: Y.label }, b),
),
d.default.createElement(
'div',
{ style: Y.body },
d.default.createElement(R.default, { colors: C, onClick: H, onSwatchHover: N }),
d.default.createElement(L.EditableInput, {
style: { input: Y.input },
value: b,
onChange: H,
}),
),
);
});
(M.propTypes = {
width: a.default.oneOfType([a.default.string, a.default.number]),
colors: a.default.arrayOf(a.default.string),
triangle: a.default.oneOf(['top', 'hide']),
styles: a.default.object,
}),
(M.defaultProps = {
width: 170,
colors: [
'#D9E3F0',
'#F47373',
'#697689',
'#37D67A',
'#2CCCE4',
'#555555',
'#dce775',
'#ff8a65',
'#ba68c8',
],
triangle: 'top',
styles: {},
}),
(c.default = (0, L.ColorWrap)(M));
},
rJY1: function(W, c, n) {
'use strict';
var r = {},
d = Math.pow(2, 24);
function o() {
for (var a = void 0; a === void 0 || r.hasOwnProperty(a) || !isNaN(+a); )
a = Math.floor(Math.random() * d).toString(32);
return (r[a] = !0), a;
}
W.exports = o;
},
rRG4: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = o(n('dwXm')),
d = o(n('gxyE'));
function o(t) {
return t && t.__esModule ? t : { default: t };
}
var a = (0, d.default)('Picker')(r.default);
c.default = a;
},
rWXM: function(W, c, n) {
'use strict';
function r(d) {
var o = {};
return function(a) {
return o.hasOwnProperty(a) || (o[a] = d.call(this, a)), o[a];
};
}
W.exports = r;
},
re3H: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = E(n('q1tI')),
d = g(n('i8i4')),
o = g(n('TSYQ')),
a = g(n('l/UJ')),
t = n('7OGK'),
e = g(n('mIlM'));
function g(h) {
return h && h.__esModule ? h : { default: h };
}
function v() {
if (typeof WeakMap != 'function') return null;
var h = new WeakMap();
return (
(v = function() {
return h;
}),
h
);
}
function E(h) {
if (h && h.__esModule) return h;
if (h === null || (w(h) !== 'object' && typeof h != 'function')) return { default: h };
var u = v();
if (u && u.has(h)) return u.get(h);
var m = {},
T = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var x in h)
if (Object.prototype.hasOwnProperty.call(h, x)) {
var F = T ? Object.getOwnPropertyDescriptor(h, x) : null;
F && (F.get || F.set) ? Object.defineProperty(m, x, F) : (m[x] = h[x]);
}
return (m.default = h), u && u.set(h, m), m;
}
function w(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (w = function(m) {
return typeof m;
})
: (w = function(m) {
return m &&
typeof Symbol == 'function' &&
m.constructor === Symbol &&
m !== Symbol.prototype
? 'symbol'
: typeof m;
}),
w(h)
);
}
function L(h, u, m) {
return (
u in h
? Object.defineProperty(h, u, {
value: m,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[u] = m),
h
);
}
function S(h, u) {
if (!(h instanceof u)) throw new TypeError('Cannot call a class as a function');
}
function R(h, u) {
for (var m = 0; m < u.length; m++) {
var T = u[m];
(T.enumerable = T.enumerable || !1),
(T.configurable = !0),
'value' in T && (T.writable = !0),
Object.defineProperty(h, T.key, T);
}
}
function O(h, u, m) {
return u && R(h.prototype, u), m && R(h, m), h;
}
function M(h, u) {
return u && (w(u) === 'object' || typeof u == 'function') ? u : I(h);
}
function A(h) {
return (
(A = Object.setPrototypeOf
? Object.getPrototypeOf
: function(m) {
return m.__proto__ || Object.getPrototypeOf(m);
}),
A(h)
);
}
function I(h) {
if (h === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return h;
}
function B(h, u) {
if (typeof u != 'function' && u !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(u && u.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
u && N(h, u);
}
function N(h, u) {
return (
(N =
Object.setPrototypeOf ||
function(T, x) {
return (T.__proto__ = x), T;
}),
N(h, u)
);
}
var b = !!d.default.createPortal,
C = (function(h) {
B(u, h);
function u(m) {
var T;
return (
S(this, u),
(T = M(this, A(u).call(this, m))),
(T.enterTimer = void 0),
(T.mountNode = void 0),
(T._container = void 0),
(T.popup = void 0),
(T.animationEnd = function(x) {
if (x.target !== T.popup) return;
x.stopPropagation();
var F = T.props,
U = F.afterClose,
H = F.afterOpen,
Y = F.handlePortalUnmount,
Z = F.visible,
ne = F.prefixCls,
ae = Z ? 'enter' : 'leave';
ae === 'leave'
? (T._container.classList.add(''.concat(ne, '--hidden')),
typeof U == 'function' && U(),
typeof Y == 'function' && Y())
: typeof H == 'function' && H();
}),
(T.renderMask = function() {
var x = T.props,
F = x.mask,
U = x.maskType,
H = x.animationDuration,
Y = x.visible,
Z = T.state.isPending,
ne = Y ? 'enter' : 'leave',
ae = (0, o.default)(L({}, 'za-fade-'.concat(ne), Z)),
Ee = {
WebkitAnimationDuration: ''.concat(H, 'ms'),
animationDuration: ''.concat(H, 'ms'),
};
return (
F &&
r.default.createElement(e.default, {
className: ae,
style: Ee,
visible: !0,
type: U,
})
);
}),
(T.handleMaskClick = function(x) {
x.stopPropagation();
var F = T.props.onMaskClick;
typeof F == 'function' &&
T.popup !== x.target &&
T.popup &&
!T.popup.contains(x.target) &&
F();
}),
(T.getComponent = function() {
var x,
F = T.props,
U = F.prefixCls,
H = F.animationType,
Y = F.animationDuration,
Z = F.direction,
ne = F.mask,
ae = F.children,
Ee = F.width,
Ae = F.visible,
ue = T.state.isPending,
Q = Ae ? 'enter' : 'leave',
le = {
wrapper: (0, o.default)(
''.concat(U, '__wrapper'),
L({}, 'za-fade-'.concat(Q), Z === 'center' && ue),
),
popup: (0, o.default)(
U,
((x = {}),
L(x, ''.concat(U, '--').concat(Z), !!Z),
L(x, ''.concat(U, '--nomask'), Z === 'center' && !ne),
L(x, 'za-'.concat(H, '-').concat(Q), Z === 'center' && ue),
x),
),
},
J =
Z === 'center'
? {
WebkitAnimationDuration: ''.concat(Y, 'ms'),
animationDuration: ''.concat(Y, 'ms'),
}
: {},
re =
Z === 'center'
? {
width: Ee,
WebkitAnimationDuration: ''.concat(Y, 'ms'),
animationDuration: ''.concat(Y, 'ms'),
}
: {
WebkitTransitionDuration: ''.concat(Y, 'ms'),
transitionDuration: ''.concat(Y, 'ms'),
WebkitTransitionProperty: 'transform',
transitionProperty: 'transform',
};
return ne
? r.default.createElement(
r.default.Fragment,
null,
T.renderMask(),
r.default.createElement(
'div',
{
role: 'dialog',
className: le.wrapper,
style: J,
onClick: function(ye) {
T.handleMaskClick(ye);
},
},
r.default.createElement(
'div',
{
ref: function(ye) {
T.popup = ye;
},
className: le.popup,
style: re,
role: 'document',
},
ae,
),
),
)
: r.default.createElement(
'div',
{
className: le.popup,
style: re,
role: 'dialog',
ref: function(ye) {
T.popup = ye;
},
},
ae,
);
}),
(T.handleAnimation = function() {
var x = T.props,
F = x.visible,
U = x.prefixCls;
F
? T.popup &&
(T._container.classList.remove(''.concat(U, '--hidden')),
T.setState({ isPending: !0 }),
T.popup.focus(),
T.popup.classList.add(''.concat(U, '--show')))
: (T.setState({ isPending: !0 }),
T.popup.classList.remove(''.concat(U, '--show')));
}),
(T.renderPortal = function() {
return t.canUseDOM
? b
? d.default.createPortal(T.getComponent(), T._container)
: (d.default.unstable_renderSubtreeIntoContainer(
I(T),
T.getComponent(),
T._container,
),
null)
: null;
}),
(T.createContainer = function() {
var x = T.props,
F = x.className,
U = F === void 0 ? '' : F,
H = x.prefixCls,
Y = x.mountContainer;
return (
T._container ||
((T._container = document.createElement('div')),
(T._container.className += ''.concat(H, '-container ').concat(U)),
(T.mountNode = (0, t.getMountContainer)(Y)),
T.mountNode.appendChild(T._container)),
T._container
);
}),
(T.state = { isPending: !1 }),
T.createContainer(),
T
);
}
return (
O(u, [
{
key: 'componentDidMount',
value: function() {
a.default.on(this.popup, 'webkitTransitionEnd', this.animationEnd),
a.default.on(this.popup, 'transitionend', this.animationEnd),
a.default.on(this.popup, 'webkitAnimationEnd', this.animationEnd),
a.default.on(this.popup, 'animationend', this.animationEnd),
this.handleAnimation();
},
},
{
key: 'componentDidUpdate',
value: function(T) {
var x = this.props.visible;
T.visible !== x && this.handleAnimation();
},
},
{
key: 'componentWillUnmount',
value: function() {
this.popup &&
(a.default.off(this.popup, 'webkitTransitionEnd', this.animationEnd),
a.default.off(this.popup, 'transitionend', this.animationEnd),
a.default.off(this.popup, 'webkitAnimationEnd', this.animationEnd),
a.default.off(this.popup, 'animationend', this.animationEnd)),
clearTimeout(this.enterTimer),
this._container && this.mountNode.removeChild(this._container);
},
},
{
key: 'render',
value: function() {
return this.renderPortal();
},
},
]),
u
);
})(r.PureComponent);
(c.default = C),
(C.defaultProps = {
prefixCls: 'za-popup',
visible: !1,
mask: !0,
direction: 'bottom',
animationType: 'fade',
animationDuration: 200,
maskType: e.default.defaultProps.type,
});
},
rrEP: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('xDpF')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'WarningFilled';
var g = o.forwardRef(e);
c.default = g;
},
s8ra: function(W, c, n) {
'use strict';
var r = n('CYTE'),
d = r.isPlatform('Mac OS X'),
o = {
isCtrlKeyCommand: function(t) {
return !!t.ctrlKey && !t.altKey;
},
isOptionKeyCommand: function(t) {
return d && t.altKey;
},
hasCommandModifier: function(t) {
return d ? !!t.metaKey && !t.altKey : o.isCtrlKeyCommand(t);
},
};
W.exports = o;
},
sE09: function(W, c, n) {},
sEf8: function(W, c) {
function n(r) {
return function(d) {
return r(d);
};
}
W.exports = n;
},
sEfC: function(W, c, n) {
var r = n('GoyQ'),
d = n('QIyF'),
o = n('tLB3'),
a = 'Expected a function',
t = Math.max,
e = Math.min;
function g(v, E, w) {
var L,
S,
R,
O,
M,
A,
I = 0,
B = !1,
N = !1,
b = !0;
if (typeof v != 'function') throw new TypeError(a);
(E = o(E) || 0),
r(w) &&
((B = !!w.leading),
(N = 'maxWait' in w),
(R = N ? t(o(w.maxWait) || 0, E) : R),
(b = 'trailing' in w ? !!w.trailing : b));
function C(Y) {
var Z = L,
ne = S;
return (L = S = void 0), (I = Y), (O = v.apply(ne, Z)), O;
}
function h(Y) {
return (I = Y), (M = setTimeout(T, E)), B ? C(Y) : O;
}
function u(Y) {
var Z = Y - A,
ne = Y - I,
ae = E - Z;
return N ? e(ae, R - ne) : ae;
}
function m(Y) {
var Z = Y - A,
ne = Y - I;
return A === void 0 || Z >= E || Z < 0 || (N && ne >= R);
}
function T() {
var Y = d();
if (m(Y)) return x(Y);
M = setTimeout(T, u(Y));
}
function x(Y) {
return (M = void 0), b && L ? C(Y) : ((L = S = void 0), O);
}
function F() {
M !== void 0 && clearTimeout(M), (I = 0), (L = A = S = M = void 0);
}
function U() {
return M === void 0 ? O : x(d());
}
function H() {
var Y = d(),
Z = m(Y);
if (((L = arguments), (S = this), (A = Y), Z)) {
if (M === void 0) return h(A);
if (N) return clearTimeout(M), (M = setTimeout(T, E)), C(A);
}
return M === void 0 && (M = setTimeout(T, E)), O;
}
return (H.cancel = F), (H.flush = U), H;
}
W.exports = g;
},
sS6v: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = r);
function r() {
var d;
}
},
sVjb: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.PhotoshopPointerCircle = void 0);
var r = n('q1tI'),
d = t(r),
o = n('/FUP'),
a = t(o);
function t(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (c.PhotoshopPointerCircle = function() {
var v = (0, a.default)({
default: {
triangle: {
width: 0,
height: 0,
borderStyle: 'solid',
borderWidth: '4px 0 4px 6px',
borderColor: 'transparent transparent transparent #fff',
position: 'absolute',
top: '1px',
left: '1px',
},
triangleBorder: {
width: 0,
height: 0,
borderStyle: 'solid',
borderWidth: '5px 0 5px 8px',
borderColor: 'transparent transparent transparent #555',
},
left: { Extend: 'triangleBorder', transform: 'translate(-13px, -4px)' },
leftInside: { Extend: 'triangle', transform: 'translate(-8px, -5px)' },
right: { Extend: 'triangleBorder', transform: 'translate(20px, -14px) rotate(180deg)' },
rightInside: { Extend: 'triangle', transform: 'translate(-8px, -5px)' },
},
});
return d.default.createElement(
'div',
{ style: v.pointer },
d.default.createElement(
'div',
{ style: v.left },
d.default.createElement('div', { style: v.leftInside }),
),
d.default.createElement(
'div',
{ style: v.right },
d.default.createElement('div', { style: v.rightInside }),
),
);
});
c.default = e;
},
sboe: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return o;
});
var r = n('q1tI'),
d = n.n(r),
o = r.createContext(null);
},
seXi: function(W, c, n) {
var r = n('qZTm'),
d = 1,
o = Object.prototype,
a = o.hasOwnProperty;
function t(e, g, v, E, w, L) {
var S = v & d,
R = r(e),
O = R.length,
M = r(g),
A = M.length;
if (O != A && !S) return !1;
for (var I = O; I--; ) {
var B = R[I];
if (!(S ? B in g : a.call(g, B))) return !1;
}
var N = L.get(e),
b = L.get(g);
if (N && b) return N == g && b == e;
var C = !0;
L.set(e, g), L.set(g, e);
for (var h = S; ++I < O; ) {
B = R[I];
var u = e[B],
m = g[B];
if (E) var T = S ? E(m, u, B, g, e, L) : E(u, m, B, e, g, L);
if (!(T === void 0 ? u === m || w(u, m, v, E, L) : T)) {
C = !1;
break;
}
h || (h = B == 'constructor');
}
if (C && !h) {
var x = e.constructor,
F = g.constructor;
x != F &&
'constructor' in e &&
'constructor' in g &&
!(
typeof x == 'function' &&
x instanceof x &&
typeof F == 'function' &&
F instanceof F
) &&
(C = !1);
}
return L.delete(e), L.delete(g), C;
}
W.exports = t;
},
shjB: function(W, c) {
var n = 9007199254740991;
function r(d) {
return typeof d == 'number' && d > -1 && d % 1 == 0 && d <= n;
}
W.exports = r;
},
srqt: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = t(n('q1tI')),
d = o(n('TSYQ'));
function o(h) {
return h && h.__esModule ? h : { default: h };
}
function a() {
if (typeof WeakMap != 'function') return null;
var h = new WeakMap();
return (
(a = function() {
return h;
}),
h
);
}
function t(h) {
if (h && h.__esModule) return h;
if (h === null || (e(h) !== 'object' && typeof h != 'function')) return { default: h };
var u = a();
if (u && u.has(h)) return u.get(h);
var m = {},
T = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var x in h)
if (Object.prototype.hasOwnProperty.call(h, x)) {
var F = T ? Object.getOwnPropertyDescriptor(h, x) : null;
F && (F.get || F.set) ? Object.defineProperty(m, x, F) : (m[x] = h[x]);
}
return (m.default = h), u && u.set(h, m), m;
}
function e(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (e = function(m) {
return typeof m;
})
: (e = function(m) {
return m &&
typeof Symbol == 'function' &&
m.constructor === Symbol &&
m !== Symbol.prototype
? 'symbol'
: typeof m;
}),
e(h)
);
}
function g() {
return (
(g =
Object.assign ||
function(h) {
for (var u = 1; u < arguments.length; u++) {
var m = arguments[u];
for (var T in m) Object.prototype.hasOwnProperty.call(m, T) && (h[T] = m[T]);
}
return h;
}),
g.apply(this, arguments)
);
}
function v(h, u, m) {
return (
u in h
? Object.defineProperty(h, u, {
value: m,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[u] = m),
h
);
}
function E(h, u) {
if (h == null) return {};
var m = w(h, u),
T,
x;
if (Object.getOwnPropertySymbols) {
var F = Object.getOwnPropertySymbols(h);
for (x = 0; x < F.length; x++) {
if (((T = F[x]), u.indexOf(T) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(h, T)) continue;
m[T] = h[T];
}
}
return m;
}
function w(h, u) {
if (h == null) return {};
var m = {},
T = Object.keys(h),
x,
F;
for (F = 0; F < T.length; F++) {
if (((x = T[F]), u.indexOf(x) >= 0)) continue;
m[x] = h[x];
}
return m;
}
function L(h, u) {
if (!(h instanceof u)) throw new TypeError('Cannot call a class as a function');
}
function S(h, u) {
for (var m = 0; m < u.length; m++) {
var T = u[m];
(T.enumerable = T.enumerable || !1),
(T.configurable = !0),
'value' in T && (T.writable = !0),
Object.defineProperty(h, T.key, T);
}
}
function R(h, u, m) {
return u && S(h.prototype, u), m && S(h, m), h;
}
function O(h, u) {
return u && (e(u) === 'object' || typeof u == 'function') ? u : M(h);
}
function M(h) {
if (h === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return h;
}
function A(h) {
return (
(A = Object.setPrototypeOf
? Object.getPrototypeOf
: function(m) {
return m.__proto__ || Object.getPrototypeOf(m);
}),
A(h)
);
}
function I(h, u) {
if (typeof u != 'function' && u !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(u && u.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
u && B(h, u);
}
function B(h, u) {
return (
(B =
Object.setPrototypeOf ||
function(T, x) {
return (T.__proto__ = x), T;
}),
B(h, u)
);
}
var N = function(u) {
var m = [];
return (
r.default.Children.map(u, function(T) {
r.default.isValidElement(T) && T.props && T.props.checked && m.push(T.props.value);
}),
m
);
},
b = function(u, m) {
return typeof u.value != 'undefined'
? u.value
: typeof u.defaultValue != 'undefined'
? u.defaultValue
: N(u.children).length > 0
? N(u.children)
: m;
},
C = (function(h) {
I(u, h);
function u(m) {
var T;
return (
L(this, u),
(T = O(this, A(u).call(this, m))),
(T.onChildChange = function(x) {
var F = T.state.value,
U = T.props.onChange,
H = F.slice(),
Y = H.indexOf(x);
Y < 0 ? H.push(x) : H.splice(Y, 1),
T.setState({ value: H }),
typeof U == 'function' && U(H);
}),
(T.state = { value: b(m, []) }),
T
);
}
return (
R(
u,
[
{
key: 'render',
value: function() {
var T = this,
x,
F = this.props,
U = F.prefixCls,
H = F.className,
Y = F.size,
Z = F.shape,
ne = F.type,
ae = F.block,
Ee = F.disabled,
Ae = F.compact,
ue = F.ghost,
Q = F.children,
le = F.onChange,
J = F.defaultValue,
re = F.value,
ce = E(F, [
'prefixCls',
'className',
'size',
'shape',
'type',
'block',
'disabled',
'compact',
'ghost',
'children',
'onChange',
'defaultValue',
'value',
]),
ye = this.state.value,
De = r.default.Children.map(Q, function(qe, Fe) {
return (0, r.isValidElement)(qe)
? (0, r.cloneElement)(qe, {
key: Fe,
type: ne,
shape: Z,
disabled: Ee || qe.props.disabled,
checked: ye.indexOf(qe.props.value) > -1,
onChange: function(Xe) {
typeof qe.props.onChange == 'function' && qe.props.onChange(Xe),
T.onChildChange(qe.props.value);
},
})
: null;
}),
Ne = (0, d.default)(
U,
H,
((x = {}),
v(x, ''.concat(U, '--').concat(ne), !!ne),
v(x, ''.concat(U, '--').concat(Y), !!Y),
v(x, ''.concat(U, '--').concat(Z), !!Z),
v(x, ''.concat(U, '--block'), ae),
v(x, ''.concat(U, '--disabled'), Ee),
v(x, ''.concat(U, '--compact'), Ae),
v(x, ''.concat(U, '--ghost'), ue),
x),
);
return r.default.createElement(
'div',
g({ className: Ne }, ce),
r.default.createElement('div', { className: ''.concat(U, '__inner') }, De),
);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(T) {
return 'value' in T ? { value: b(T, []) } : null;
},
},
],
),
u
);
})(r.PureComponent);
(c.default = C),
(C.displayName = 'CheckboxGroup'),
(C.defaultProps = {
prefixCls: 'za-checkbox-group',
shape: 'radius',
block: !1,
disabled: !1,
compact: !1,
ghost: !1,
size: 'xs',
});
},
srvI: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = (c.calculateChange = function(o, a, t, e) {
var g = e.clientWidth,
v = e.clientHeight,
E = typeof o.pageX == 'number' ? o.pageX : o.touches[0].pageX,
w = typeof o.pageY == 'number' ? o.pageY : o.touches[0].pageY,
L = E - (e.getBoundingClientRect().left + window.pageXOffset),
S = w - (e.getBoundingClientRect().top + window.pageYOffset);
if (a === 'vertical') {
var R = void 0;
if (S < 0) R = 359;
else if (S > v) R = 0;
else {
var O = -((S * 100) / v) + 100;
R = (360 * O) / 100;
}
if (t.h !== R) return { h: R, s: t.s, l: t.l, a: t.a, source: 'hsl' };
} else {
var M = void 0;
if (L < 0) M = 0;
else if (L > g) M = 359;
else {
var A = (L * 100) / g;
M = (360 * A) / 100;
}
if (t.h !== M) return { h: M, s: t.s, l: t.l, a: t.a, source: 'hsl' };
}
return null;
});
},
su5N: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z',
},
},
],
},
name: 'code',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'CodeOutlined';
var e = (c.a = r.forwardRef(t));
},
t2Dn: function(W, c, n) {
var r = n('hypo'),
d = n('ljhN');
function o(a, t, e) {
((e !== void 0 && !d(a[t], e)) || (e === void 0 && !(t in a))) && r(a, t, e);
}
W.exports = o;
},
t2kq: function(W, c, n) {
'use strict';
var r = n('miYZ'),
d = n('tsqr'),
o = n('vDqi'),
a = n.n(o),
t = !1,
e = a.a.create({
baseURL: t ? 'http://localhost:3000/xxx' : 'http://xxxxx',
timeout: 1e4,
withCredentials: !0,
});
e.interceptors.request.use(
function(g) {
return (g.headers = { 'x-requested-with': '', authorization: '' }), g;
},
function(g) {
return Promise.reject(g);
},
),
e.interceptors.response.use(
function(g) {
return g;
},
function(g) {
var v = g.response;
return (
v &&
(v.status === 404
? d.b.error('请求资源未发现')
: v.status === 403
? d.b.error(v.data.msg, () => {
window.location.href = '/admin/login';
})
: d.b.error(v.data.msg)),
Promise.reject(g)
);
},
),
(c.a = e);
},
t8r4: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.Swatches = void 0);
var r = n('q1tI'),
d = I(r),
o = n('17x9'),
a = I(o),
t = n('/FUP'),
e = I(t),
g = n('3WF5'),
v = I(g),
E = n('QkVN'),
w = I(E),
L = n('wME1'),
S = A(L),
R = n('TM95'),
O = n('Efrf'),
M = I(O);
function A(N) {
if (N && N.__esModule) return N;
var b = {};
if (N != null) for (var C in N) Object.prototype.hasOwnProperty.call(N, C) && (b[C] = N[C]);
return (b.default = N), b;
}
function I(N) {
return N && N.__esModule ? N : { default: N };
}
var B = (c.Swatches = function(b) {
var C = b.width,
h = b.height,
u = b.onChange,
m = b.onSwatchHover,
T = b.colors,
x = b.hex,
F = b.styles,
U = F === void 0 ? {} : F,
H = b.className,
Y = H === void 0 ? '' : H,
Z = (0, e.default)(
(0, w.default)(
{
default: {
picker: { width: C, height: h },
overflow: { height: h, overflowY: 'scroll' },
body: { padding: '16px 0 6px 16px' },
clear: { clear: 'both' },
},
},
U,
),
),
ne = function(Ee, Ae) {
return u({ hex: Ee, source: 'hex' }, Ae);
};
return d.default.createElement(
'div',
{ style: Z.picker, className: 'swatches-picker ' + Y },
d.default.createElement(
R.Raised,
null,
d.default.createElement(
'div',
{ style: Z.overflow },
d.default.createElement(
'div',
{ style: Z.body },
(0, v.default)(T, function(ae) {
return d.default.createElement(M.default, {
key: ae.toString(),
group: ae,
active: x,
onClick: ne,
onSwatchHover: m,
});
}),
d.default.createElement('div', { style: Z.clear }),
),
),
),
);
});
(B.propTypes = {
width: a.default.oneOfType([a.default.string, a.default.number]),
height: a.default.oneOfType([a.default.string, a.default.number]),
colors: a.default.arrayOf(a.default.arrayOf(a.default.string)),
styles: a.default.object,
}),
(B.defaultProps = {
width: 320,
height: 240,
colors: [
[S.red['900'], S.red['700'], S.red['500'], S.red['300'], S.red['100']],
[S.pink['900'], S.pink['700'], S.pink['500'], S.pink['300'], S.pink['100']],
[S.purple['900'], S.purple['700'], S.purple['500'], S.purple['300'], S.purple['100']],
[
S.deepPurple['900'],
S.deepPurple['700'],
S.deepPurple['500'],
S.deepPurple['300'],
S.deepPurple['100'],
],
[S.indigo['900'], S.indigo['700'], S.indigo['500'], S.indigo['300'], S.indigo['100']],
[S.blue['900'], S.blue['700'], S.blue['500'], S.blue['300'], S.blue['100']],
[
S.lightBlue['900'],
S.lightBlue['700'],
S.lightBlue['500'],
S.lightBlue['300'],
S.lightBlue['100'],
],
[S.cyan['900'], S.cyan['700'], S.cyan['500'], S.cyan['300'], S.cyan['100']],
[S.teal['900'], S.teal['700'], S.teal['500'], S.teal['300'], S.teal['100']],
['#194D33', S.green['700'], S.green['500'], S.green['300'], S.green['100']],
[
S.lightGreen['900'],
S.lightGreen['700'],
S.lightGreen['500'],
S.lightGreen['300'],
S.lightGreen['100'],
],
[S.lime['900'], S.lime['700'], S.lime['500'], S.lime['300'], S.lime['100']],
[S.yellow['900'], S.yellow['700'], S.yellow['500'], S.yellow['300'], S.yellow['100']],
[S.amber['900'], S.amber['700'], S.amber['500'], S.amber['300'], S.amber['100']],
[S.orange['900'], S.orange['700'], S.orange['500'], S.orange['300'], S.orange['100']],
[
S.deepOrange['900'],
S.deepOrange['700'],
S.deepOrange['500'],
S.deepOrange['300'],
S.deepOrange['100'],
],
[S.brown['900'], S.brown['700'], S.brown['500'], S.brown['300'], S.brown['100']],
[
S.blueGrey['900'],
S.blueGrey['700'],
S.blueGrey['500'],
S.blueGrey['300'],
S.blueGrey['100'],
],
['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF'],
],
styles: {},
}),
(c.default = (0, R.ColorWrap)(B));
},
tKWh: function(W, c, n) {
'use strict';
function r() {
var a = void 0;
return (
document.documentElement && (a = document.documentElement.clientWidth),
!a && document.body && (a = document.body.clientWidth),
a || 0
);
}
function d() {
var a = void 0;
return (
document.documentElement && (a = document.documentElement.clientHeight),
!a && document.body && (a = document.body.clientHeight),
a || 0
);
}
function o() {
return { width: window.innerWidth || r(), height: window.innerHeight || d() };
}
(o.withoutScrollbars = function() {
return { width: r(), height: d() };
}),
(W.exports = o);
},
tLB3: function(W, c, n) {
var r = n('GoyQ'),
d = n('/9aa'),
o = 0 / 0,
a = /^\s+|\s+$/g,
t = /^[-+]0x[0-9a-f]+$/i,
e = /^0b[01]+$/i,
g = /^0o[0-7]+$/i,
v = parseInt;
function E(w) {
if (typeof w == 'number') return w;
if (d(w)) return o;
if (r(w)) {
var L = typeof w.valueOf == 'function' ? w.valueOf() : w;
w = r(L) ? L + '' : L;
}
if (typeof w != 'string') return w === 0 ? w : +w;
w = w.replace(a, '');
var S = e.test(w);
return S || g.test(w) ? v(w.slice(2), S ? 2 : 8) : t.test(w) ? o : +w;
}
W.exports = E;
},
tMB7: function(W, c, n) {
var r = n('y1pI');
function d(o) {
var a = this.__data__,
t = r(a, o);
return t < 0 ? void 0 : a[t][1];
}
W.exports = d;
},
tQ2B: function(W, c, n) {
'use strict';
var r = n('xTJ+'),
d = n('Rn+g'),
o = n('MLWZ'),
a = n('g7np'),
t = n('w0Vi'),
e = n('OTTw'),
g = n('LYNF');
W.exports = function(E) {
return new Promise(function(L, S) {
var R = E.data,
O = E.headers;
r.isFormData(R) && delete O['Content-Type'];
var M = new XMLHttpRequest();
if (E.auth) {
var A = E.auth.username || '',
I = E.auth.password || '';
O.Authorization = 'Basic ' + btoa(A + ':' + I);
}
var B = a(E.baseURL, E.url);
if (
(M.open(E.method.toUpperCase(), o(B, E.params, E.paramsSerializer), !0),
(M.timeout = E.timeout),
(M.onreadystatechange = function() {
if (!M || M.readyState !== 4) return;
if (M.status === 0 && !(M.responseURL && M.responseURL.indexOf('file:') === 0))
return;
var h = 'getAllResponseHeaders' in M ? t(M.getAllResponseHeaders()) : null,
u = !E.responseType || E.responseType === 'text' ? M.responseText : M.response,
m = {
data: u,
status: M.status,
statusText: M.statusText,
headers: h,
config: E,
request: M,
};
d(L, S, m), (M = null);
}),
(M.onabort = function() {
if (!M) return;
S(g('Request aborted', E, 'ECONNABORTED', M)), (M = null);
}),
(M.onerror = function() {
S(g('Network Error', E, null, M)), (M = null);
}),
(M.ontimeout = function() {
var h = 'timeout of ' + E.timeout + 'ms exceeded';
E.timeoutErrorMessage && (h = E.timeoutErrorMessage),
S(g(h, E, 'ECONNABORTED', M)),
(M = null);
}),
r.isStandardBrowserEnv())
) {
var N = n('eqyj'),
b =
(E.withCredentials || e(B)) && E.xsrfCookieName ? N.read(E.xsrfCookieName) : void 0;
b && (O[E.xsrfHeaderName] = b);
}
if (
('setRequestHeader' in M &&
r.forEach(O, function(h, u) {
typeof R == 'undefined' && u.toLowerCase() === 'content-type'
? delete O[u]
: M.setRequestHeader(u, h);
}),
r.isUndefined(E.withCredentials) || (M.withCredentials = !!E.withCredentials),
E.responseType)
)
try {
M.responseType = E.responseType;
} catch (C) {
if (E.responseType !== 'json') throw C;
}
typeof E.onDownloadProgress == 'function' &&
M.addEventListener('progress', E.onDownloadProgress),
typeof E.onUploadProgress == 'function' &&
M.upload &&
M.upload.addEventListener('progress', E.onUploadProgress),
E.cancelToken &&
E.cancelToken.promise.then(function(h) {
if (!M) return;
M.abort(), S(h), (M = null);
}),
R === void 0 && (R = null),
M.send(R);
});
};
},
tSko: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('SRve')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'PlusOutlined';
var g = o.forwardRef(e);
c.default = g;
},
tadb: function(W, c, n) {
var r = n('Cwc5'),
d = n('Kz5y'),
o = r(d, 'DataView');
W.exports = o;
},
tbAr: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = E(n('q1tI')),
d = g(n('TSYQ')),
o = g(n('Y+p1')),
a = g(n('rRG4')),
t = g(n('hAjL')),
e = g(n('3iFt'));
function g(m) {
return m && m.__esModule ? m : { default: m };
}
function v() {
if (typeof WeakMap != 'function') return null;
var m = new WeakMap();
return (
(v = function() {
return m;
}),
m
);
}
function E(m) {
if (m && m.__esModule) return m;
if (m === null || (w(m) !== 'object' && typeof m != 'function')) return { default: m };
var T = v();
if (T && T.has(m)) return T.get(m);
var x = {},
F = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var U in m)
if (Object.prototype.hasOwnProperty.call(m, U)) {
var H = F ? Object.getOwnPropertyDescriptor(m, U) : null;
H && (H.get || H.set) ? Object.defineProperty(x, U, H) : (x[U] = m[U]);
}
return (x.default = m), T && T.set(m, x), x;
}
function w(m) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (w = function(x) {
return typeof x;
})
: (w = function(x) {
return x &&
typeof Symbol == 'function' &&
x.constructor === Symbol &&
x !== Symbol.prototype
? 'symbol'
: typeof x;
}),
w(m)
);
}
function L() {
return (
(L =
Object.assign ||
function(m) {
for (var T = 1; T < arguments.length; T++) {
var x = arguments[T];
for (var F in x) Object.prototype.hasOwnProperty.call(x, F) && (m[F] = x[F]);
}
return m;
}),
L.apply(this, arguments)
);
}
function S(m, T, x) {
return (
T in m
? Object.defineProperty(m, T, {
value: x,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (m[T] = x),
m
);
}
function R(m, T) {
if (m == null) return {};
var x = O(m, T),
F,
U;
if (Object.getOwnPropertySymbols) {
var H = Object.getOwnPropertySymbols(m);
for (U = 0; U < H.length; U++) {
if (((F = H[U]), T.indexOf(F) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(m, F)) continue;
x[F] = m[F];
}
}
return x;
}
function O(m, T) {
if (m == null) return {};
var x = {},
F = Object.keys(m),
U,
H;
for (H = 0; H < F.length; H++) {
if (((U = F[H]), T.indexOf(U) >= 0)) continue;
x[U] = m[U];
}
return x;
}
function M(m, T) {
if (!(m instanceof T)) throw new TypeError('Cannot call a class as a function');
}
function A(m, T) {
for (var x = 0; x < T.length; x++) {
var F = T[x];
(F.enumerable = F.enumerable || !1),
(F.configurable = !0),
'value' in F && (F.writable = !0),
Object.defineProperty(m, F.key, F);
}
}
function I(m, T, x) {
return T && A(m.prototype, T), x && A(m, x), m;
}
function B(m, T) {
return T && (w(T) === 'object' || typeof T == 'function') ? T : N(m);
}
function N(m) {
if (m === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return m;
}
function b(m) {
return (
(b = Object.setPrototypeOf
? Object.getPrototypeOf
: function(x) {
return x.__proto__ || Object.getPrototypeOf(x);
}),
b(m)
);
}
function C(m, T) {
if (typeof T != 'function' && T !== null)
throw new TypeError('Super expression must either be null or a function');
(m.prototype = Object.create(T && T.prototype, {
constructor: { value: m, writable: !0, configurable: !0 },
})),
T && h(m, T);
}
function h(m, T) {
return (
(h =
Object.setPrototypeOf ||
function(F, U) {
return (F.__proto__ = U), F;
}),
h(m, T)
);
}
var u = (function(m) {
C(T, m);
function T(x) {
var F;
return (
M(this, T),
(F = B(this, b(T).call(this, x))),
(F.handleClick = function() {
var U = F.props.disabled;
if (U) return !1;
F.setState({ visible: !0 });
}),
(F.onChange = function(U) {
var H = F.props.onChange;
typeof H == 'function' && H(U);
}),
(F.onOk = function(U) {
var H = F.props.onOk;
F.setState({ selectValue: U, visible: !1 }, function() {
typeof H == 'function' && H(U);
});
}),
(F.onCancel = function() {
var U = F.props.onCancel;
F.setState({ visible: !1 }), typeof U == 'function' && U();
}),
(F.state = {
visible: !1,
selectValue:
t.default.isValueValid(x.defaultValue || x.value) &&
t.default.getSource(x).objValue,
}),
F
);
}
return (
I(
T,
[
{
key: 'render',
value: function() {
var F,
U = this.props,
H = U.prefixCls,
Y = U.placeholder,
Z = U.className,
ne = U.disabled,
ae = U.displayRender,
Ee = U.locale,
Ae = U.value,
ue = U.hasArrow,
Q = R(U, [
'prefixCls',
'placeholder',
'className',
'disabled',
'displayRender',
'locale',
'value',
'hasArrow',
]),
le = this.state,
J = le.visible,
re = le.selectValue,
ce = re === void 0 ? [] : re,
ye = (0, d.default)(
H,
((F = {}),
S(F, ''.concat(H, '--placeholder'), !ce.length),
S(F, ''.concat(H, '--disabled'), ne),
S(F, ''.concat(H, '--arrow'), ue),
F),
);
return r.default.createElement(
'div',
{ className: ye, onClick: this.handleClick },
r.default.createElement(
'div',
{ className: ''.concat(H, '__input') },
r.default.createElement(
'div',
{ className: ''.concat(H, '__value') },
(ce.length && ae(ce || [])) || Y || Ee.placeholder,
),
),
r.default.createElement(
a.default,
L({}, Q, {
className: Z,
visible: J,
value: Ae,
onOk: this.onOk,
onChange: this.onChange,
onCancel: this.onCancel,
}),
),
);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(F, U) {
return (0, o.default)(
(0, e.default)(F, ['onOk', 'onCancel', 'onChange']),
(0, e.default)(U.prevProps, ['onOk', 'onCancel', 'onChange']),
)
? null
: {
prevProps: F,
selectValue:
t.default.isValueValid(F.defaultValue || F.value) &&
t.default.getSource(F).objValue,
};
},
},
],
),
T
);
})(r.PureComponent);
(c.default = u),
(u.defaultProps = {
prefixCls: 'za-select',
dataSource: [],
valueMember: 'value',
itemRender: function(T) {
return T && T.label;
},
cols: Infinity,
hasArrow: !0,
maskClosable: !0,
displayRender: function(T) {
return T.map(function(x) {
return x && x.label;
});
},
onClick: function() {},
});
},
tjlA: function(W, c, n) {
'use strict';
(function(r) {
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh
* @license MIT
*/ var d = n('H7XF'),
o = n('kVK+'),
a = n('49sm');
(c.Buffer = v),
(c.SlowBuffer = B),
(c.INSPECT_MAX_BYTES = 50),
(v.TYPED_ARRAY_SUPPORT = r.TYPED_ARRAY_SUPPORT !== void 0 ? r.TYPED_ARRAY_SUPPORT : t()),
(c.kMaxLength = e());
function t() {
try {
var Ge = new Uint8Array(1);
return (
(Ge.__proto__ = {
__proto__: Uint8Array.prototype,
foo: function() {
return 42;
},
}),
Ge.foo() === 42 &&
typeof Ge.subarray == 'function' &&
Ge.subarray(1, 1).byteLength === 0
);
} catch (de) {
return !1;
}
}
function e() {
return v.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
}
function g(Ge, de) {
if (e() < de) throw new RangeError('Invalid typed array length');
return (
v.TYPED_ARRAY_SUPPORT
? ((Ge = new Uint8Array(de)), (Ge.__proto__ = v.prototype))
: (Ge === null && (Ge = new v(de)), (Ge.length = de)),
Ge
);
}
function v(Ge, de, ie) {
if (!v.TYPED_ARRAY_SUPPORT && !(this instanceof v)) return new v(Ge, de, ie);
if (typeof Ge == 'number') {
if (typeof de == 'string')
throw new Error('If encoding is specified then the first argument must be a string');
return S(this, Ge);
}
return E(this, Ge, de, ie);
}
(v.poolSize = 8192),
(v._augment = function(Ge) {
return (Ge.__proto__ = v.prototype), Ge;
});
function E(Ge, de, ie, Le) {
if (typeof de == 'number') throw new TypeError('"value" argument must not be a number');
return typeof ArrayBuffer != 'undefined' && de instanceof ArrayBuffer
? M(Ge, de, ie, Le)
: typeof de == 'string'
? R(Ge, de, ie)
: A(Ge, de);
}
(v.from = function(Ge, de, ie) {
return E(null, Ge, de, ie);
}),
v.TYPED_ARRAY_SUPPORT &&
((v.prototype.__proto__ = Uint8Array.prototype),
(v.__proto__ = Uint8Array),
typeof Symbol != 'undefined' &&
Symbol.species &&
v[Symbol.species] === v &&
Object.defineProperty(v, Symbol.species, { value: null, configurable: !0 }));
function w(Ge) {
if (typeof Ge != 'number') throw new TypeError('"size" argument must be a number');
if (Ge < 0) throw new RangeError('"size" argument must not be negative');
}
function L(Ge, de, ie, Le) {
return (
w(de),
de <= 0
? g(Ge, de)
: ie !== void 0
? typeof Le == 'string'
? g(Ge, de).fill(ie, Le)
: g(Ge, de).fill(ie)
: g(Ge, de)
);
}
v.alloc = function(Ge, de, ie) {
return L(null, Ge, de, ie);
};
function S(Ge, de) {
if ((w(de), (Ge = g(Ge, de < 0 ? 0 : I(de) | 0)), !v.TYPED_ARRAY_SUPPORT))
for (var ie = 0; ie < de; ++ie) Ge[ie] = 0;
return Ge;
}
(v.allocUnsafe = function(Ge) {
return S(null, Ge);
}),
(v.allocUnsafeSlow = function(Ge) {
return S(null, Ge);
});
function R(Ge, de, ie) {
if (((typeof ie != 'string' || ie === '') && (ie = 'utf8'), !v.isEncoding(ie)))
throw new TypeError('"encoding" must be a valid string encoding');
var Le = N(de, ie) | 0;
Ge = g(Ge, Le);
var Je = Ge.write(de, ie);
return Je !== Le && (Ge = Ge.slice(0, Je)), Ge;
}
function O(Ge, de) {
var ie = de.length < 0 ? 0 : I(de.length) | 0;
Ge = g(Ge, ie);
for (var Le = 0; Le < ie; Le += 1) Ge[Le] = de[Le] & 255;
return Ge;
}
function M(Ge, de, ie, Le) {
if ((de.byteLength, ie < 0 || de.byteLength < ie))
throw new RangeError("'offset' is out of bounds");
if (de.byteLength < ie + (Le || 0)) throw new RangeError("'length' is out of bounds");
return (
ie === void 0 && Le === void 0
? (de = new Uint8Array(de))
: Le === void 0
? (de = new Uint8Array(de, ie))
: (de = new Uint8Array(de, ie, Le)),
v.TYPED_ARRAY_SUPPORT ? ((Ge = de), (Ge.__proto__ = v.prototype)) : (Ge = O(Ge, de)),
Ge
);
}
function A(Ge, de) {
if (v.isBuffer(de)) {
var ie = I(de.length) | 0;
return (Ge = g(Ge, ie)), Ge.length === 0 || de.copy(Ge, 0, 0, ie), Ge;
}
if (de) {
if (
(typeof ArrayBuffer != 'undefined' && de.buffer instanceof ArrayBuffer) ||
'length' in de
)
return typeof de.length != 'number' || Yt(de.length) ? g(Ge, 0) : O(Ge, de);
if (de.type === 'Buffer' && a(de.data)) return O(Ge, de.data);
}
throw new TypeError(
'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.',
);
}
function I(Ge) {
if (Ge >= e())
throw new RangeError(
'Attempt to allocate Buffer larger than maximum size: 0x' +
e().toString(16) +
' bytes',
);
return Ge | 0;
}
function B(Ge) {
return +Ge != Ge && (Ge = 0), v.alloc(+Ge);
}
(v.isBuffer = function(de) {
return !!(de != null && de._isBuffer);
}),
(v.compare = function(de, ie) {
if (!v.isBuffer(de) || !v.isBuffer(ie))
throw new TypeError('Arguments must be Buffers');
if (de === ie) return 0;
for (var Le = de.length, Je = ie.length, rt = 0, yt = Math.min(Le, Je); rt < yt; ++rt)
if (de[rt] !== ie[rt]) {
(Le = de[rt]), (Je = ie[rt]);
break;
}
return Le < Je ? -1 : Je < Le ? 1 : 0;
}),
(v.isEncoding = function(de) {
switch (String(de).toLowerCase()) {
case 'hex':
case 'utf8':
case 'utf-8':
case 'ascii':
case 'latin1':
case 'binary':
case 'base64':
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return !0;
default:
return !1;
}
}),
(v.concat = function(de, ie) {
if (!a(de)) throw new TypeError('"list" argument must be an Array of Buffers');
if (de.length === 0) return v.alloc(0);
var Le;
if (ie === void 0) for (ie = 0, Le = 0; Le < de.length; ++Le) ie += de[Le].length;
var Je = v.allocUnsafe(ie),
rt = 0;
for (Le = 0; Le < de.length; ++Le) {
var yt = de[Le];
if (!v.isBuffer(yt))
throw new TypeError('"list" argument must be an Array of Buffers');
yt.copy(Je, rt), (rt += yt.length);
}
return Je;
});
function N(Ge, de) {
if (v.isBuffer(Ge)) return Ge.length;
if (
typeof ArrayBuffer != 'undefined' &&
typeof ArrayBuffer.isView == 'function' &&
(ArrayBuffer.isView(Ge) || Ge instanceof ArrayBuffer)
)
return Ge.byteLength;
typeof Ge != 'string' && (Ge = '' + Ge);
var ie = Ge.length;
if (ie === 0) return 0;
for (var Le = !1; ; )
switch (de) {
case 'ascii':
case 'latin1':
case 'binary':
return ie;
case 'utf8':
case 'utf-8':
case void 0:
return ke(Ge).length;
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return ie * 2;
case 'hex':
return ie >>> 1;
case 'base64':
return Ft(Ge).length;
default:
if (Le) return ke(Ge).length;
(de = ('' + de).toLowerCase()), (Le = !0);
}
}
v.byteLength = N;
function b(Ge, de, ie) {
var Le = !1;
if (((de === void 0 || de < 0) && (de = 0), de > this.length)) return '';
if (((ie === void 0 || ie > this.length) && (ie = this.length), ie <= 0)) return '';
if (((ie >>>= 0), (de >>>= 0), ie <= de)) return '';
for (Ge || (Ge = 'utf8'); ; )
switch (Ge) {
case 'hex':
return ue(this, de, ie);
case 'utf8':
case 'utf-8':
return Z(this, de, ie);
case 'ascii':
return Ee(this, de, ie);
case 'latin1':
case 'binary':
return Ae(this, de, ie);
case 'base64':
return Y(this, de, ie);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return Q(this, de, ie);
default:
if (Le) throw new TypeError('Unknown encoding: ' + Ge);
(Ge = (Ge + '').toLowerCase()), (Le = !0);
}
}
v.prototype._isBuffer = !0;
function C(Ge, de, ie) {
var Le = Ge[de];
(Ge[de] = Ge[ie]), (Ge[ie] = Le);
}
(v.prototype.swap16 = function() {
var de = this.length;
if (de % 2 !== 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
for (var ie = 0; ie < de; ie += 2) C(this, ie, ie + 1);
return this;
}),
(v.prototype.swap32 = function() {
var de = this.length;
if (de % 4 !== 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
for (var ie = 0; ie < de; ie += 4) C(this, ie, ie + 3), C(this, ie + 1, ie + 2);
return this;
}),
(v.prototype.swap64 = function() {
var de = this.length;
if (de % 8 !== 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
for (var ie = 0; ie < de; ie += 8)
C(this, ie, ie + 7),
C(this, ie + 1, ie + 6),
C(this, ie + 2, ie + 5),
C(this, ie + 3, ie + 4);
return this;
}),
(v.prototype.toString = function() {
var de = this.length | 0;
return de === 0
? ''
: arguments.length === 0
? Z(this, 0, de)
: b.apply(this, arguments);
}),
(v.prototype.equals = function(de) {
if (!v.isBuffer(de)) throw new TypeError('Argument must be a Buffer');
return this === de ? !0 : v.compare(this, de) === 0;
}),
(v.prototype.inspect = function() {
var de = '',
ie = c.INSPECT_MAX_BYTES;
return (
this.length > 0 &&
((de = this.toString('hex', 0, ie)
.match(/.{2}/g)
.join(' ')),
this.length > ie && (de += ' ... ')),
''
);
}),
(v.prototype.compare = function(de, ie, Le, Je, rt) {
if (!v.isBuffer(de)) throw new TypeError('Argument must be a Buffer');
if (
(ie === void 0 && (ie = 0),
Le === void 0 && (Le = de ? de.length : 0),
Je === void 0 && (Je = 0),
rt === void 0 && (rt = this.length),
ie < 0 || Le > de.length || Je < 0 || rt > this.length)
)
throw new RangeError('out of range index');
if (Je >= rt && ie >= Le) return 0;
if (Je >= rt) return -1;
if (ie >= Le) return 1;
if (((ie >>>= 0), (Le >>>= 0), (Je >>>= 0), (rt >>>= 0), this === de)) return 0;
for (
var yt = rt - Je,
nn = Le - ie,
Gt = Math.min(yt, nn),
Ct = this.slice(Je, rt),
Wt = de.slice(ie, Le),
Ht = 0;
Ht < Gt;
++Ht
)
if (Ct[Ht] !== Wt[Ht]) {
(yt = Ct[Ht]), (nn = Wt[Ht]);
break;
}
return yt < nn ? -1 : nn < yt ? 1 : 0;
});
function h(Ge, de, ie, Le, Je) {
if (Ge.length === 0) return -1;
if (
(typeof ie == 'string'
? ((Le = ie), (ie = 0))
: ie > 2147483647
? (ie = 2147483647)
: ie < -2147483648 && (ie = -2147483648),
(ie = +ie),
isNaN(ie) && (ie = Je ? 0 : Ge.length - 1),
ie < 0 && (ie = Ge.length + ie),
ie >= Ge.length)
) {
if (Je) return -1;
ie = Ge.length - 1;
} else if (ie < 0)
if (Je) ie = 0;
else return -1;
if ((typeof de == 'string' && (de = v.from(de, Le)), v.isBuffer(de)))
return de.length === 0 ? -1 : u(Ge, de, ie, Le, Je);
if (typeof de == 'number')
return (
(de = de & 255),
v.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == 'function'
? Je
? Uint8Array.prototype.indexOf.call(Ge, de, ie)
: Uint8Array.prototype.lastIndexOf.call(Ge, de, ie)
: u(Ge, [de], ie, Le, Je)
);
throw new TypeError('val must be string, number or Buffer');
}
function u(Ge, de, ie, Le, Je) {
var rt = 1,
yt = Ge.length,
nn = de.length;
if (
Le !== void 0 &&
((Le = String(Le).toLowerCase()),
Le === 'ucs2' || Le === 'ucs-2' || Le === 'utf16le' || Le === 'utf-16le')
) {
if (Ge.length < 2 || de.length < 2) return -1;
(rt = 2), (yt /= 2), (nn /= 2), (ie /= 2);
}
function Gt(Cn, Qt) {
return rt === 1 ? Cn[Qt] : Cn.readUInt16BE(Qt * rt);
}
var Ct;
if (Je) {
var Wt = -1;
for (Ct = ie; Ct < yt; Ct++)
if (Gt(Ge, Ct) === Gt(de, Wt === -1 ? 0 : Ct - Wt)) {
if ((Wt === -1 && (Wt = Ct), Ct - Wt + 1 === nn)) return Wt * rt;
} else Wt !== -1 && (Ct -= Ct - Wt), (Wt = -1);
} else
for (ie + nn > yt && (ie = yt - nn), Ct = ie; Ct >= 0; Ct--) {
for (var Ht = !0, Zt = 0; Zt < nn; Zt++)
if (Gt(Ge, Ct + Zt) !== Gt(de, Zt)) {
Ht = !1;
break;
}
if (Ht) return Ct;
}
return -1;
}
(v.prototype.includes = function(de, ie, Le) {
return this.indexOf(de, ie, Le) !== -1;
}),
(v.prototype.indexOf = function(de, ie, Le) {
return h(this, de, ie, Le, !0);
}),
(v.prototype.lastIndexOf = function(de, ie, Le) {
return h(this, de, ie, Le, !1);
});
function m(Ge, de, ie, Le) {
ie = Number(ie) || 0;
var Je = Ge.length - ie;
Le ? ((Le = Number(Le)), Le > Je && (Le = Je)) : (Le = Je);
var rt = de.length;
if (rt % 2 !== 0) throw new TypeError('Invalid hex string');
Le > rt / 2 && (Le = rt / 2);
for (var yt = 0; yt < Le; ++yt) {
var nn = parseInt(de.substr(yt * 2, 2), 16);
if (isNaN(nn)) return yt;
Ge[ie + yt] = nn;
}
return yt;
}
function T(Ge, de, ie, Le) {
return Vt(ke(de, Ge.length - ie), Ge, ie, Le);
}
function x(Ge, de, ie, Le) {
return Vt(vt(de), Ge, ie, Le);
}
function F(Ge, de, ie, Le) {
return x(Ge, de, ie, Le);
}
function U(Ge, de, ie, Le) {
return Vt(Ft(de), Ge, ie, Le);
}
function H(Ge, de, ie, Le) {
return Vt(_t(de, Ge.length - ie), Ge, ie, Le);
}
(v.prototype.write = function(de, ie, Le, Je) {
if (ie === void 0) (Je = 'utf8'), (Le = this.length), (ie = 0);
else if (Le === void 0 && typeof ie == 'string') (Je = ie), (Le = this.length), (ie = 0);
else if (isFinite(ie))
(ie = ie | 0),
isFinite(Le)
? ((Le = Le | 0), Je === void 0 && (Je = 'utf8'))
: ((Je = Le), (Le = void 0));
else
throw new Error(
'Buffer.write(string, encoding, offset[, length]) is no longer supported',
);
var rt = this.length - ie;
if (
((Le === void 0 || Le > rt) && (Le = rt),
(de.length > 0 && (Le < 0 || ie < 0)) || ie > this.length)
)
throw new RangeError('Attempt to write outside buffer bounds');
Je || (Je = 'utf8');
for (var yt = !1; ; )
switch (Je) {
case 'hex':
return m(this, de, ie, Le);
case 'utf8':
case 'utf-8':
return T(this, de, ie, Le);
case 'ascii':
return x(this, de, ie, Le);
case 'latin1':
case 'binary':
return F(this, de, ie, Le);
case 'base64':
return U(this, de, ie, Le);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return H(this, de, ie, Le);
default:
if (yt) throw new TypeError('Unknown encoding: ' + Je);
(Je = ('' + Je).toLowerCase()), (yt = !0);
}
}),
(v.prototype.toJSON = function() {
return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
});
function Y(Ge, de, ie) {
return de === 0 && ie === Ge.length
? d.fromByteArray(Ge)
: d.fromByteArray(Ge.slice(de, ie));
}
function Z(Ge, de, ie) {
ie = Math.min(Ge.length, ie);
for (var Le = [], Je = de; Je < ie; ) {
var rt = Ge[Je],
yt = null,
nn = rt > 239 ? 4 : rt > 223 ? 3 : rt > 191 ? 2 : 1;
if (Je + nn <= ie) {
var Gt, Ct, Wt, Ht;
switch (nn) {
case 1:
rt < 128 && (yt = rt);
break;
case 2:
(Gt = Ge[Je + 1]),
(Gt & 192) === 128 &&
((Ht = ((rt & 31) << 6) | (Gt & 63)), Ht > 127 && (yt = Ht));
break;
case 3:
(Gt = Ge[Je + 1]),
(Ct = Ge[Je + 2]),
(Gt & 192) === 128 &&
(Ct & 192) === 128 &&
((Ht = ((rt & 15) << 12) | ((Gt & 63) << 6) | (Ct & 63)),
Ht > 2047 && (Ht < 55296 || Ht > 57343) && (yt = Ht));
break;
case 4:
(Gt = Ge[Je + 1]),
(Ct = Ge[Je + 2]),
(Wt = Ge[Je + 3]),
(Gt & 192) === 128 &&
(Ct & 192) === 128 &&
(Wt & 192) === 128 &&
((Ht = ((rt & 15) << 18) | ((Gt & 63) << 12) | ((Ct & 63) << 6) | (Wt & 63)),
Ht > 65535 && Ht < 1114112 && (yt = Ht));
}
}
yt === null
? ((yt = 65533), (nn = 1))
: yt > 65535 &&
((yt -= 65536), Le.push(((yt >>> 10) & 1023) | 55296), (yt = 56320 | (yt & 1023))),
Le.push(yt),
(Je += nn);
}
return ae(Le);
}
var ne = 4096;
function ae(Ge) {
var de = Ge.length;
if (de <= ne) return String.fromCharCode.apply(String, Ge);
for (var ie = '', Le = 0; Le < de; )
ie += String.fromCharCode.apply(String, Ge.slice(Le, (Le += ne)));
return ie;
}
function Ee(Ge, de, ie) {
var Le = '';
ie = Math.min(Ge.length, ie);
for (var Je = de; Je < ie; ++Je) Le += String.fromCharCode(Ge[Je] & 127);
return Le;
}
function Ae(Ge, de, ie) {
var Le = '';
ie = Math.min(Ge.length, ie);
for (var Je = de; Je < ie; ++Je) Le += String.fromCharCode(Ge[Je]);
return Le;
}
function ue(Ge, de, ie) {
var Le = Ge.length;
(!de || de < 0) && (de = 0), (!ie || ie < 0 || ie > Le) && (ie = Le);
for (var Je = '', rt = de; rt < ie; ++rt) Je += Xe(Ge[rt]);
return Je;
}
function Q(Ge, de, ie) {
for (var Le = Ge.slice(de, ie), Je = '', rt = 0; rt < Le.length; rt += 2)
Je += String.fromCharCode(Le[rt] + Le[rt + 1] * 256);
return Je;
}
v.prototype.slice = function(de, ie) {
var Le = this.length;
(de = ~~de),
(ie = ie === void 0 ? Le : ~~ie),
de < 0 ? ((de += Le), de < 0 && (de = 0)) : de > Le && (de = Le),
ie < 0 ? ((ie += Le), ie < 0 && (ie = 0)) : ie > Le && (ie = Le),
ie < de && (ie = de);
var Je;
if (v.TYPED_ARRAY_SUPPORT) (Je = this.subarray(de, ie)), (Je.__proto__ = v.prototype);
else {
var rt = ie - de;
Je = new v(rt, void 0);
for (var yt = 0; yt < rt; ++yt) Je[yt] = this[yt + de];
}
return Je;
};
function le(Ge, de, ie) {
if (Ge % 1 !== 0 || Ge < 0) throw new RangeError('offset is not uint');
if (Ge + de > ie) throw new RangeError('Trying to access beyond buffer length');
}
(v.prototype.readUIntLE = function(de, ie, Le) {
(de = de | 0), (ie = ie | 0), Le || le(de, ie, this.length);
for (var Je = this[de], rt = 1, yt = 0; ++yt < ie && (rt *= 256); )
Je += this[de + yt] * rt;
return Je;
}),
(v.prototype.readUIntBE = function(de, ie, Le) {
(de = de | 0), (ie = ie | 0), Le || le(de, ie, this.length);
for (var Je = this[de + --ie], rt = 1; ie > 0 && (rt *= 256); )
Je += this[de + --ie] * rt;
return Je;
}),
(v.prototype.readUInt8 = function(de, ie) {
return ie || le(de, 1, this.length), this[de];
}),
(v.prototype.readUInt16LE = function(de, ie) {
return ie || le(de, 2, this.length), this[de] | (this[de + 1] << 8);
}),
(v.prototype.readUInt16BE = function(de, ie) {
return ie || le(de, 2, this.length), (this[de] << 8) | this[de + 1];
}),
(v.prototype.readUInt32LE = function(de, ie) {
return (
ie || le(de, 4, this.length),
(this[de] | (this[de + 1] << 8) | (this[de + 2] << 16)) + this[de + 3] * 16777216
);
}),
(v.prototype.readUInt32BE = function(de, ie) {
return (
ie || le(de, 4, this.length),
this[de] * 16777216 + ((this[de + 1] << 16) | (this[de + 2] << 8) | this[de + 3])
);
}),
(v.prototype.readIntLE = function(de, ie, Le) {
(de = de | 0), (ie = ie | 0), Le || le(de, ie, this.length);
for (var Je = this[de], rt = 1, yt = 0; ++yt < ie && (rt *= 256); )
Je += this[de + yt] * rt;
return (rt *= 128), Je >= rt && (Je -= Math.pow(2, 8 * ie)), Je;
}),
(v.prototype.readIntBE = function(de, ie, Le) {
(de = de | 0), (ie = ie | 0), Le || le(de, ie, this.length);
for (var Je = ie, rt = 1, yt = this[de + --Je]; Je > 0 && (rt *= 256); )
yt += this[de + --Je] * rt;
return (rt *= 128), yt >= rt && (yt -= Math.pow(2, 8 * ie)), yt;
}),
(v.prototype.readInt8 = function(de, ie) {
return (
ie || le(de, 1, this.length), this[de] & 128 ? (255 - this[de] + 1) * -1 : this[de]
);
}),
(v.prototype.readInt16LE = function(de, ie) {
ie || le(de, 2, this.length);
var Le = this[de] | (this[de + 1] << 8);
return Le & 32768 ? Le | 4294901760 : Le;
}),
(v.prototype.readInt16BE = function(de, ie) {
ie || le(de, 2, this.length);
var Le = this[de + 1] | (this[de] << 8);
return Le & 32768 ? Le | 4294901760 : Le;
}),
(v.prototype.readInt32LE = function(de, ie) {
return (
ie || le(de, 4, this.length),
this[de] | (this[de + 1] << 8) | (this[de + 2] << 16) | (this[de + 3] << 24)
);
}),
(v.prototype.readInt32BE = function(de, ie) {
return (
ie || le(de, 4, this.length),
(this[de] << 24) | (this[de + 1] << 16) | (this[de + 2] << 8) | this[de + 3]
);
}),
(v.prototype.readFloatLE = function(de, ie) {
return ie || le(de, 4, this.length), o.read(this, de, !0, 23, 4);
}),
(v.prototype.readFloatBE = function(de, ie) {
return ie || le(de, 4, this.length), o.read(this, de, !1, 23, 4);
}),
(v.prototype.readDoubleLE = function(de, ie) {
return ie || le(de, 8, this.length), o.read(this, de, !0, 52, 8);
}),
(v.prototype.readDoubleBE = function(de, ie) {
return ie || le(de, 8, this.length), o.read(this, de, !1, 52, 8);
});
function J(Ge, de, ie, Le, Je, rt) {
if (!v.isBuffer(Ge)) throw new TypeError('"buffer" argument must be a Buffer instance');
if (de > Je || de < rt) throw new RangeError('"value" argument is out of bounds');
if (ie + Le > Ge.length) throw new RangeError('Index out of range');
}
(v.prototype.writeUIntLE = function(de, ie, Le, Je) {
if (((de = +de), (ie = ie | 0), (Le = Le | 0), !Je)) {
var rt = Math.pow(2, 8 * Le) - 1;
J(this, de, ie, Le, rt, 0);
}
var yt = 1,
nn = 0;
for (this[ie] = de & 255; ++nn < Le && (yt *= 256); ) this[ie + nn] = (de / yt) & 255;
return ie + Le;
}),
(v.prototype.writeUIntBE = function(de, ie, Le, Je) {
if (((de = +de), (ie = ie | 0), (Le = Le | 0), !Je)) {
var rt = Math.pow(2, 8 * Le) - 1;
J(this, de, ie, Le, rt, 0);
}
var yt = Le - 1,
nn = 1;
for (this[ie + yt] = de & 255; --yt >= 0 && (nn *= 256); )
this[ie + yt] = (de / nn) & 255;
return ie + Le;
}),
(v.prototype.writeUInt8 = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 1, 255, 0),
v.TYPED_ARRAY_SUPPORT || (de = Math.floor(de)),
(this[ie] = de & 255),
ie + 1
);
});
function re(Ge, de, ie, Le) {
de < 0 && (de = 65535 + de + 1);
for (var Je = 0, rt = Math.min(Ge.length - ie, 2); Je < rt; ++Je)
Ge[ie + Je] = (de & (255 << (8 * (Le ? Je : 1 - Je)))) >>> ((Le ? Je : 1 - Je) * 8);
}
(v.prototype.writeUInt16LE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 2, 65535, 0),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de & 255), (this[ie + 1] = de >>> 8))
: re(this, de, ie, !0),
ie + 2
);
}),
(v.prototype.writeUInt16BE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 2, 65535, 0),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de >>> 8), (this[ie + 1] = de & 255))
: re(this, de, ie, !1),
ie + 2
);
});
function ce(Ge, de, ie, Le) {
de < 0 && (de = 4294967295 + de + 1);
for (var Je = 0, rt = Math.min(Ge.length - ie, 4); Je < rt; ++Je)
Ge[ie + Je] = (de >>> ((Le ? Je : 3 - Je) * 8)) & 255;
}
(v.prototype.writeUInt32LE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 4, 4294967295, 0),
v.TYPED_ARRAY_SUPPORT
? ((this[ie + 3] = de >>> 24),
(this[ie + 2] = de >>> 16),
(this[ie + 1] = de >>> 8),
(this[ie] = de & 255))
: ce(this, de, ie, !0),
ie + 4
);
}),
(v.prototype.writeUInt32BE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 4, 4294967295, 0),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de >>> 24),
(this[ie + 1] = de >>> 16),
(this[ie + 2] = de >>> 8),
(this[ie + 3] = de & 255))
: ce(this, de, ie, !1),
ie + 4
);
}),
(v.prototype.writeIntLE = function(de, ie, Le, Je) {
if (((de = +de), (ie = ie | 0), !Je)) {
var rt = Math.pow(2, 8 * Le - 1);
J(this, de, ie, Le, rt - 1, -rt);
}
var yt = 0,
nn = 1,
Gt = 0;
for (this[ie] = de & 255; ++yt < Le && (nn *= 256); )
de < 0 && Gt === 0 && this[ie + yt - 1] !== 0 && (Gt = 1),
(this[ie + yt] = (((de / nn) >> 0) - Gt) & 255);
return ie + Le;
}),
(v.prototype.writeIntBE = function(de, ie, Le, Je) {
if (((de = +de), (ie = ie | 0), !Je)) {
var rt = Math.pow(2, 8 * Le - 1);
J(this, de, ie, Le, rt - 1, -rt);
}
var yt = Le - 1,
nn = 1,
Gt = 0;
for (this[ie + yt] = de & 255; --yt >= 0 && (nn *= 256); )
de < 0 && Gt === 0 && this[ie + yt + 1] !== 0 && (Gt = 1),
(this[ie + yt] = (((de / nn) >> 0) - Gt) & 255);
return ie + Le;
}),
(v.prototype.writeInt8 = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 1, 127, -128),
v.TYPED_ARRAY_SUPPORT || (de = Math.floor(de)),
de < 0 && (de = 255 + de + 1),
(this[ie] = de & 255),
ie + 1
);
}),
(v.prototype.writeInt16LE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 2, 32767, -32768),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de & 255), (this[ie + 1] = de >>> 8))
: re(this, de, ie, !0),
ie + 2
);
}),
(v.prototype.writeInt16BE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 2, 32767, -32768),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de >>> 8), (this[ie + 1] = de & 255))
: re(this, de, ie, !1),
ie + 2
);
}),
(v.prototype.writeInt32LE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 4, 2147483647, -2147483648),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de & 255),
(this[ie + 1] = de >>> 8),
(this[ie + 2] = de >>> 16),
(this[ie + 3] = de >>> 24))
: ce(this, de, ie, !0),
ie + 4
);
}),
(v.prototype.writeInt32BE = function(de, ie, Le) {
return (
(de = +de),
(ie = ie | 0),
Le || J(this, de, ie, 4, 2147483647, -2147483648),
de < 0 && (de = 4294967295 + de + 1),
v.TYPED_ARRAY_SUPPORT
? ((this[ie] = de >>> 24),
(this[ie + 1] = de >>> 16),
(this[ie + 2] = de >>> 8),
(this[ie + 3] = de & 255))
: ce(this, de, ie, !1),
ie + 4
);
});
function ye(Ge, de, ie, Le, Je, rt) {
if (ie + Le > Ge.length) throw new RangeError('Index out of range');
if (ie < 0) throw new RangeError('Index out of range');
}
function De(Ge, de, ie, Le, Je) {
return (
Je || ye(Ge, de, ie, 4, 34028234663852886e22, -34028234663852886e22),
o.write(Ge, de, ie, Le, 23, 4),
ie + 4
);
}
(v.prototype.writeFloatLE = function(de, ie, Le) {
return De(this, de, ie, !0, Le);
}),
(v.prototype.writeFloatBE = function(de, ie, Le) {
return De(this, de, ie, !1, Le);
});
function Ne(Ge, de, ie, Le, Je) {
return (
Je || ye(Ge, de, ie, 8, 17976931348623157e292, -17976931348623157e292),
o.write(Ge, de, ie, Le, 52, 8),
ie + 8
);
}
(v.prototype.writeDoubleLE = function(de, ie, Le) {
return Ne(this, de, ie, !0, Le);
}),
(v.prototype.writeDoubleBE = function(de, ie, Le) {
return Ne(this, de, ie, !1, Le);
}),
(v.prototype.copy = function(de, ie, Le, Je) {
if (
(Le || (Le = 0),
!Je && Je !== 0 && (Je = this.length),
ie >= de.length && (ie = de.length),
ie || (ie = 0),
Je > 0 && Je < Le && (Je = Le),
Je === Le)
)
return 0;
if (de.length === 0 || this.length === 0) return 0;
if (ie < 0) throw new RangeError('targetStart out of bounds');
if (Le < 0 || Le >= this.length) throw new RangeError('sourceStart out of bounds');
if (Je < 0) throw new RangeError('sourceEnd out of bounds');
Je > this.length && (Je = this.length),
de.length - ie < Je - Le && (Je = de.length - ie + Le);
var rt = Je - Le,
yt;
if (this === de && Le < ie && ie < Je)
for (yt = rt - 1; yt >= 0; --yt) de[yt + ie] = this[yt + Le];
else if (rt < 1e3 || !v.TYPED_ARRAY_SUPPORT)
for (yt = 0; yt < rt; ++yt) de[yt + ie] = this[yt + Le];
else Uint8Array.prototype.set.call(de, this.subarray(Le, Le + rt), ie);
return rt;
}),
(v.prototype.fill = function(de, ie, Le, Je) {
if (typeof de == 'string') {
if (
(typeof ie == 'string'
? ((Je = ie), (ie = 0), (Le = this.length))
: typeof Le == 'string' && ((Je = Le), (Le = this.length)),
de.length === 1)
) {
var rt = de.charCodeAt(0);
rt < 256 && (de = rt);
}
if (Je !== void 0 && typeof Je != 'string')
throw new TypeError('encoding must be a string');
if (typeof Je == 'string' && !v.isEncoding(Je))
throw new TypeError('Unknown encoding: ' + Je);
} else typeof de == 'number' && (de = de & 255);
if (ie < 0 || this.length < ie || this.length < Le)
throw new RangeError('Out of range index');
if (Le <= ie) return this;
(ie = ie >>> 0), (Le = Le === void 0 ? this.length : Le >>> 0), de || (de = 0);
var yt;
if (typeof de == 'number') for (yt = ie; yt < Le; ++yt) this[yt] = de;
else {
var nn = v.isBuffer(de) ? de : ke(new v(de, Je).toString()),
Gt = nn.length;
for (yt = 0; yt < Le - ie; ++yt) this[yt + ie] = nn[yt % Gt];
}
return this;
});
var qe = /[^+\/0-9A-Za-z-_]/g;
function Fe(Ge) {
if (((Ge = We(Ge).replace(qe, '')), Ge.length < 2)) return '';
for (; Ge.length % 4 !== 0; ) Ge = Ge + '=';
return Ge;
}
function We(Ge) {
return Ge.trim ? Ge.trim() : Ge.replace(/^\s+|\s+$/g, '');
}
function Xe(Ge) {
return Ge < 16 ? '0' + Ge.toString(16) : Ge.toString(16);
}
function ke(Ge, de) {
de = de || Infinity;
for (var ie, Le = Ge.length, Je = null, rt = [], yt = 0; yt < Le; ++yt) {
if (((ie = Ge.charCodeAt(yt)), ie > 55295 && ie < 57344)) {
if (!Je) {
if (ie > 56319) {
(de -= 3) > -1 && rt.push(239, 191, 189);
continue;
} else if (yt + 1 === Le) {
(de -= 3) > -1 && rt.push(239, 191, 189);
continue;
}
Je = ie;
continue;
}
if (ie < 56320) {
(de -= 3) > -1 && rt.push(239, 191, 189), (Je = ie);
continue;
}
ie = (((Je - 55296) << 10) | (ie - 56320)) + 65536;
} else Je && (de -= 3) > -1 && rt.push(239, 191, 189);
if (((Je = null), ie < 128)) {
if ((de -= 1) < 0) break;
rt.push(ie);
} else if (ie < 2048) {
if ((de -= 2) < 0) break;
rt.push((ie >> 6) | 192, (ie & 63) | 128);
} else if (ie < 65536) {
if ((de -= 3) < 0) break;
rt.push((ie >> 12) | 224, ((ie >> 6) & 63) | 128, (ie & 63) | 128);
} else if (ie < 1114112) {
if ((de -= 4) < 0) break;
rt.push(
(ie >> 18) | 240,
((ie >> 12) & 63) | 128,
((ie >> 6) & 63) | 128,
(ie & 63) | 128,
);
} else throw new Error('Invalid code point');
}
return rt;
}
function vt(Ge) {
for (var de = [], ie = 0; ie < Ge.length; ++ie) de.push(Ge.charCodeAt(ie) & 255);
return de;
}
function _t(Ge, de) {
for (var ie, Le, Je, rt = [], yt = 0; yt < Ge.length && !((de -= 2) < 0); ++yt)
(ie = Ge.charCodeAt(yt)), (Le = ie >> 8), (Je = ie % 256), rt.push(Je), rt.push(Le);
return rt;
}
function Ft(Ge) {
return d.toByteArray(Fe(Ge));
}
function Vt(Ge, de, ie, Le) {
for (var Je = 0; Je < Le && !(Je + ie >= de.length || Je >= Ge.length); ++Je)
de[Je + ie] = Ge[Je];
return Je;
}
function Yt(Ge) {
return Ge !== Ge;
}
}.call(this, n('yLpj')));
},
trA2: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.SliderPointer = void 0);
var r = n('q1tI'),
d = t(r),
o = n('/FUP'),
a = t(o);
function t(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (c.SliderPointer = function(v) {
var E = v.direction,
w = (0, a.default)(
{
default: {
picker: {
width: '18px',
height: '18px',
borderRadius: '50%',
transform: 'translate(-9px, -1px)',
backgroundColor: 'rgb(248, 248, 248)',
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)',
},
},
vertical: { picker: { transform: 'translate(-3px, -9px)' } },
},
{ vertical: E === 'vertical' },
);
return d.default.createElement('div', { style: w.picker });
});
c.default = e;
},
tu5P: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.ChromePointerCircle = void 0);
var r = n('q1tI'),
d = t(r),
o = n('/FUP'),
a = t(o);
function t(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (c.ChromePointerCircle = function() {
var v = (0, a.default)({
default: {
picker: {
width: '12px',
height: '12px',
borderRadius: '6px',
boxShadow: 'inset 0 0 0 1px #fff',
transform: 'translate(-6px, -6px)',
},
},
});
return d.default.createElement('div', { style: v.picker });
});
c.default = e;
},
tuJh: function(W, c, n) {
'use strict';
var r = n('3sOJ'),
d = n('jLRO'),
o = n('DEWG'),
a = n('8d//');
function t(e) {
var g = a(
e,
function(E) {
var w = E.getSelection(),
L = E.getCurrentContent(),
S = w.getAnchorKey(),
R = w.getAnchorOffset(),
O = L.getBlockForKey(S).getText()[R];
return o(E, O ? d.getUTF16Length(O, 0) : 1);
},
'forward',
);
if (g === e.getCurrentContent()) return e;
var v = e.getSelection();
return r.push(
e,
g.set('selectionBefore', v),
v.isCollapsed() ? 'delete-character' : 'remove-range',
);
}
W.exports = t;
},
u8Dt: function(W, c, n) {
var r = n('YESw'),
d = '__lodash_hash_undefined__',
o = Object.prototype,
a = o.hasOwnProperty;
function t(e) {
var g = this.__data__;
if (r) {
var v = g[e];
return v === d ? void 0 : v;
}
return a.call(g, e) ? g[e] : void 0;
}
W.exports = t;
},
u9fO: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = d(n('b80e'));
function d(a) {
return a && a.__esModule ? a : { default: a };
}
var o = r;
(c.default = o), (W.exports = o);
},
uDUr: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.BlockSwatches = void 0);
var r = n('q1tI'),
d = v(r),
o = n('/FUP'),
a = v(o),
t = n('3WF5'),
e = v(t),
g = n('TM95');
function v(w) {
return w && w.__esModule ? w : { default: w };
}
var E = (c.BlockSwatches = function(L) {
var S = L.colors,
R = L.onClick,
O = L.onSwatchHover,
M = (0, a.default)({
default: {
swatches: { marginRight: '-10px' },
swatch: {
width: '22px',
height: '22px',
float: 'left',
marginRight: '10px',
marginBottom: '10px',
borderRadius: '4px',
},
clear: { clear: 'both' },
},
});
return d.default.createElement(
'div',
{ style: M.swatches },
(0, e.default)(S, function(A) {
return d.default.createElement(g.Swatch, {
key: A,
color: A,
style: M.swatch,
onClick: R,
onHover: O,
focusStyle: { boxShadow: '0 0 4px ' + A },
});
}),
d.default.createElement('div', { style: M.clear }),
);
});
c.default = E;
},
uFIP: function(W, c, n) {},
uJQd: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = e(n('q1tI')),
d = a(n('TSYQ')),
o = a(n('0fCl'));
function a(C) {
return C && C.__esModule ? C : { default: C };
}
function t() {
if (typeof WeakMap != 'function') return null;
var C = new WeakMap();
return (
(t = function() {
return C;
}),
C
);
}
function e(C) {
if (C && C.__esModule) return C;
if (C === null || (g(C) !== 'object' && typeof C != 'function')) return { default: C };
var h = t();
if (h && h.has(C)) return h.get(C);
var u = {},
m = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var T in C)
if (Object.prototype.hasOwnProperty.call(C, T)) {
var x = m ? Object.getOwnPropertyDescriptor(C, T) : null;
x && (x.get || x.set) ? Object.defineProperty(u, T, x) : (u[T] = C[T]);
}
return (u.default = C), h && h.set(C, u), u;
}
function g(C) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (g = function(u) {
return typeof u;
})
: (g = function(u) {
return u &&
typeof Symbol == 'function' &&
u.constructor === Symbol &&
u !== Symbol.prototype
? 'symbol'
: typeof u;
}),
g(C)
);
}
function v() {
return (
(v =
Object.assign ||
function(C) {
for (var h = 1; h < arguments.length; h++) {
var u = arguments[h];
for (var m in u) Object.prototype.hasOwnProperty.call(u, m) && (C[m] = u[m]);
}
return C;
}),
v.apply(this, arguments)
);
}
function E(C, h, u) {
return (
h in C
? Object.defineProperty(C, h, {
value: u,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (C[h] = u),
C
);
}
function w(C, h) {
if (C == null) return {};
var u = L(C, h),
m,
T;
if (Object.getOwnPropertySymbols) {
var x = Object.getOwnPropertySymbols(C);
for (T = 0; T < x.length; T++) {
if (((m = x[T]), h.indexOf(m) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(C, m)) continue;
u[m] = C[m];
}
}
return u;
}
function L(C, h) {
if (C == null) return {};
var u = {},
m = Object.keys(C),
T,
x;
for (x = 0; x < m.length; x++) {
if (((T = m[x]), h.indexOf(T) >= 0)) continue;
u[T] = C[T];
}
return u;
}
function S(C, h) {
if (!(C instanceof h)) throw new TypeError('Cannot call a class as a function');
}
function R(C, h) {
for (var u = 0; u < h.length; u++) {
var m = h[u];
(m.enumerable = m.enumerable || !1),
(m.configurable = !0),
'value' in m && (m.writable = !0),
Object.defineProperty(C, m.key, m);
}
}
function O(C, h, u) {
return h && R(C.prototype, h), u && R(C, u), C;
}
function M(C, h) {
return h && (g(h) === 'object' || typeof h == 'function') ? h : A(C);
}
function A(C) {
if (C === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return C;
}
function I(C) {
return (
(I = Object.setPrototypeOf
? Object.getPrototypeOf
: function(u) {
return u.__proto__ || Object.getPrototypeOf(u);
}),
I(C)
);
}
function B(C, h) {
if (typeof h != 'function' && h !== null)
throw new TypeError('Super expression must either be null or a function');
(C.prototype = Object.create(h && h.prototype, {
constructor: { value: C, writable: !0, configurable: !0 },
})),
h && N(C, h);
}
function N(C, h) {
return (
(N =
Object.setPrototypeOf ||
function(m, T) {
return (m.__proto__ = T), m;
}),
N(C, h)
);
}
var b = (function(C) {
B(h, C);
function h(u) {
var m;
return (
S(this, h),
(m = M(this, I(h).call(this, u))),
(m.input = void 0),
(m.onBlurTimeout = void 0),
(m.blurFromClear = void 0),
(m.onFocus = function(T) {
m.setState({ focused: !0 });
var x = m.props.onFocus;
typeof x == 'function' && x(T.target.value);
}),
(m.onBlur = function(T) {
var x = m.props.onBlur,
F = T.target.value;
m.onBlurTimeout = setTimeout(function() {
!m.blurFromClear &&
document.activeElement !== m.input &&
(m.setState({ focused: !1 }), typeof x == 'function' && x(F)),
(m.blurFromClear = !1);
}, 200);
}),
(m.onChange = function(T) {
var x = m.props.onChange,
F = m.state.focused,
U = T.target.value;
F || m.setState({ focused: !0 }),
'value' in m.props || m.setState({ value: U }),
typeof x == 'function' && x(U);
}),
(m.onClear = function() {
var T = m.state.isOnComposition,
x = m.props,
F = x.onChange,
U = x.onClear;
(m.blurFromClear = !0),
m.setState({ value: '' }),
!T && m.focus(),
typeof F == 'function' && F(''),
typeof U == 'function' && U('');
}),
(m.handleComposition = function(T) {
var x = m.props,
F = x.onCompositionStart,
U = x.onCompositionUpdate,
H = x.onCompositionEnd,
Y = x.onChange;
if (
(T.type === 'compositionstart' &&
(m.setState({ isOnComposition: !0 }), typeof F == 'function' && F(T)),
T.type === 'compositionupdate' && typeof U == 'function' && U(T),
T.type === 'compositionend')
) {
var Z = T.target.value;
m.setState({ isOnComposition: !1 }),
typeof H == 'function' && H(T),
typeof Y == 'function' && Y(Z);
}
}),
(m.focus = function() {
m.input.focus();
}),
(m.blur = function() {
m.input.blur();
}),
(m.state = { focused: u.autoFocus || !1, value: u.value || u.defaultValue || '' }),
m
);
}
return (
O(
h,
[
{
key: 'componentDidMount',
value: function() {
var m = this.state.focused;
m && this.input.focus();
},
},
{
key: 'componentWillUnmount',
value: function() {
this.onBlurTimeout &&
(clearTimeout(this.onBlurTimeout), (this.onBlurTimeout = null));
},
},
{
key: 'render',
value: function() {
var m,
T = this,
x = this.props,
F = x.prefixCls,
U = x.className,
H = x.disabled,
Y = x.clearable,
Z = x.readOnly,
ne = x.type,
ae = x.onClear,
Ee = w(x, [
'prefixCls',
'className',
'disabled',
'clearable',
'readOnly',
'type',
'onClear',
]),
Ae = this.state,
ue = Ae.value,
Q = Ae.focused,
le = Y && 'value' in this.props && 'onChange' in this.props,
J = (0, d.default)(
F,
U,
((m = {}),
E(m, ''.concat(F, '--disabled'), H),
E(m, ''.concat(F, '--focus'), Q && ue && ue.length > 0),
E(m, ''.concat(F, '--clearable'), le),
E(m, ''.concat(F, '--readonly'), Z),
m),
),
re = r.default.createElement(
'input',
v({}, Ee, {
value: 'value' in this.props ? ue : void 0,
autoComplete: 'off',
ref: function(Ne) {
T.input = Ne;
},
type: ne,
disabled: H,
onChange: this.onChange,
onBlur: this.onBlur,
onFocus: this.onFocus,
onCompositionStart: function(Ne) {
T.handleComposition(Ne);
},
onCompositionUpdate: function(Ne) {
T.handleComposition(Ne);
},
onCompositionEnd: function(Ne) {
T.handleComposition(Ne);
},
}),
),
ce = r.default.createElement(
'div',
{ className: ''.concat(F, '__content') },
ue,
),
ye =
le &&
r.default.createElement(o.default, {
type: 'wrong-round-fill',
className: ''.concat(F, '__clear'),
onClick: function() {
T.onClear();
},
});
return r.default.createElement('div', { className: J }, Z ? ce : re, ye);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(m) {
return 'value' in m ? { value: m.value || m.defaultValue || '' } : null;
},
},
],
),
h
);
})(r.PureComponent);
(c.default = b),
(b.defaultProps = {
prefixCls: 'za-input',
disabled: !1,
type: 'text',
clearable: !0,
readOnly: !1,
});
},
uOW1: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z',
},
},
{
tag: 'path',
attrs: {
d:
'M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z',
},
},
],
},
name: 'question-circle',
theme: 'outlined',
};
c.default = r;
},
ueFs: function(W, c, n) {
'use strict';
var r = n('MgzW'),
d =
r ||
function(H) {
for (var Y = 1; Y < arguments.length; Y++) {
var Z = arguments[Y];
for (var ne in Z) Object.prototype.hasOwnProperty.call(Z, ne) && (H[ne] = Z[ne]);
}
return H;
},
o = n('8uQm'),
a = n('JL7T'),
t = n('LpQA'),
e = n('TzU/'),
g = n('cX45'),
v = n('PFU8'),
E = n('JPcv'),
w = n('hMpd'),
L = n('TlXQ'),
S = n('bNdj'),
R = n('RCR6'),
O = n('rJY1'),
M = n('2NuI'),
A = g.draft_tree_data_support,
I = E.List,
B = E.Map,
N = E.OrderedMap,
b = function(Y, Z) {
var ne = Y.key,
ae = Y.type,
Ee = Y.data,
Ae = Y.text,
ue = Y.depth,
Q = {
text: Ae,
depth: ue || 0,
type: ae || 'unstyled',
key: ne || O(),
data: B(Ee),
characterList: C(Y, Z),
};
return Q;
},
C = function(Y, Z) {
var ne = Y.text,
ae = Y.entityRanges,
Ee = Y.inlineStyleRanges,
Ae = ae || [],
ue = Ee || [];
return L(
R(ne, ue),
S(
ne,
Ae.filter(function(Q) {
return Z.hasOwnProperty(Q.key);
}).map(function(Q) {
return d({}, Q, { key: Z[Q.key] });
}),
),
);
},
h = function(Y) {
return d({}, Y, { key: Y.key || O() });
},
u = function(Y, Z, ne) {
var ae = Z.map(function(Ee) {
return d({}, Ee, { parentRef: ne });
});
return Y.concat(ae.reverse());
},
m = function(Y, Z) {
return Y.map(h).reduce(function(ne, ae, Ee) {
Array.isArray(ae.children) || M(!1);
var Ae = ae.children.map(h),
ue = new a(
d({}, b(ae, Z), {
prevSibling: Ee === 0 ? null : Y[Ee - 1].key,
nextSibling: Ee === Y.length - 1 ? null : Y[Ee + 1].key,
children: I(
Ae.map(function(qe) {
return qe.key;
}),
),
}),
);
ne = ne.set(ue.getKey(), ue);
for (var Q = u([], Ae, ue); Q.length > 0; ) {
var le = Q.pop(),
J = le.parentRef,
re = J.getChildKeys(),
ce = re.indexOf(le.key),
ye = Array.isArray(le.children);
if (!ye) {
ye || M(!1);
break;
}
var De = le.children.map(h),
Ne = new a(
d({}, b(le, Z), {
parent: J.getKey(),
children: I(
De.map(function(qe) {
return qe.key;
}),
),
prevSibling: ce === 0 ? null : re.get(ce - 1),
nextSibling: ce === re.size - 1 ? null : re.get(ce + 1),
}),
);
(ne = ne.set(Ne.getKey(), Ne)), (Q = u(Q, De, Ne));
}
return ne;
}, N());
},
T = function(Y, Z) {
return N(
Y.map(function(ne) {
var ae = new o(b(ne, Z));
return [ae.getKey(), ae];
}),
);
},
x = function(Y, Z) {
var ne = Array.isArray(Y.blocks[0].children),
ae = A && !ne ? v.fromRawStateToRawTreeState(Y).blocks : Y.blocks;
return A ? m(ae, Z) : T(ne ? v.fromRawTreeStateToRawState(Y).blocks : ae, Z);
},
F = function(Y) {
var Z = Y.entityMap,
ne = {};
return (
Object.keys(Z).forEach(function(ae) {
var Ee = Z[ae],
Ae = Ee.type,
ue = Ee.mutability,
Q = Ee.data;
ne[ae] = e.__create(Ae, ue, Q || {});
}),
ne
);
},
U = function(Y) {
Array.isArray(Y.blocks) || M(!1);
var Z = F(Y),
ne = x(Y, Z),
ae = ne.isEmpty() ? new w() : w.createEmpty(ne.first().getKey());
return new t({ blockMap: ne, entityMap: Z, selectionBefore: ae, selectionAfter: ae });
};
W.exports = U;
},
ujuU: function(W, c, n) {
'use strict';
var r = n('3sOJ');
function d(o) {
var a = o.getSelection(),
t = a.getStartKey();
return r.set(o, {
selection: a.merge({
anchorKey: t,
anchorOffset: 0,
focusKey: t,
focusOffset: 0,
isBackward: !1,
}),
forceSelection: !0,
});
}
W.exports = d;
},
'ut/Y': function(W, c, n) {
var r = n('ZCpW'),
d = n('GDhZ'),
o = n('zZ0H'),
a = n('Z0cm'),
t = n('+c4W');
function e(g) {
return typeof g == 'function'
? g
: g == null
? o
: typeof g == 'object'
? a(g)
? d(g[0], g[1])
: r(g)
: t(g);
}
W.exports = e;
},
v83y: function(W, c, n) {
'use strict';
var r = n('fyRy'),
d = n('YeVe'),
o = n('lFJn'),
a = n('84lc'),
t = n('8uQm'),
e = n('LpQA'),
g = n('rAV9'),
v = n('0TRD'),
E = n('6tyx'),
w = n('DthY'),
L = n('TzU/'),
S = n('fyOY'),
R = n('qnky'),
O = n('3sOJ'),
M = n('s8ra'),
A = n('Nx4+'),
I = n('hMpd'),
B = n('/y+l'),
N = n('1qq2'),
b = n('ueFs'),
C = n('rJY1'),
h = n('AyB5'),
u = n('zxN+'),
m = {
Editor: E,
EditorBlock: w,
EditorState: O,
CompositeDecorator: a,
Entity: L,
EntityInstance: R,
BlockMapBuilder: d,
CharacterMetadata: o,
ContentBlock: t,
ContentState: e,
SelectionState: I,
AtomicBlockUtils: r,
KeyBindingUtil: M,
Modifier: S,
RichUtils: A,
DefaultDraftBlockRenderMap: g,
DefaultDraftInlineStyle: v,
convertFromHTML: N,
convertFromRaw: b,
convertToRaw: B,
genKey: C,
getDefaultKeyBinding: h,
getVisibleSelectionRect: u,
};
W.exports = m;
},
vDqi: function(W, c, n) {
W.exports = n('zuR4');
},
vYwu: function(W, c, n) {
'use strict';
var r = n('lFJn');
function d(o, a, t, e) {
for (var g = o.getCharacterList(); a < t; ) (g = g.set(a, r.applyEntity(g.get(a), e))), a++;
return o.set('characterList', g);
}
W.exports = d;
},
vcNX: function(W, c, n) {
'use strict';
var r = n('SF5q'),
d = n('3sOJ'),
o = n('kWjT'),
a = n('8d//');
function t(e) {
var g = a(
e,
function(v) {
var E = v.getSelection(),
w = E.getStartOffset();
if (w === 0) return o(v, 1);
var L = E.getStartKey(),
S = v.getCurrentContent(),
R = S.getBlockForKey(L)
.getText()
.slice(0, w),
O = r.getBackward(R);
return o(v, O.length || 1);
},
'backward',
);
return g === e.getCurrentContent() ? e : d.push(e, g, 'remove-range');
}
W.exports = t;
},
'w/wX': function(W, c, n) {
var r = n('QqLw'),
d = n('ExA7'),
o = '[object Set]';
function a(t) {
return d(t) && r(t) == o;
}
W.exports = a;
},
w0Vi: function(W, c, n) {
'use strict';
var r = n('xTJ+'),
d = [
'age',
'authorization',
'content-length',
'content-type',
'etag',
'expires',
'from',
'host',
'if-modified-since',
'if-unmodified-since',
'last-modified',
'location',
'max-forwards',
'proxy-authorization',
'referer',
'retry-after',
'user-agent',
];
W.exports = function(a) {
var t = {},
e,
g,
v;
return (
a &&
r.forEach(
a.split(`
`),
function(w) {
if (
((v = w.indexOf(':')),
(e = r.trim(w.substr(0, v)).toLowerCase()),
(g = r.trim(w.substr(v + 1))),
e)
) {
if (t[e] && d.indexOf(e) >= 0) return;
e === 'set-cookie'
? (t[e] = (t[e] ? t[e] : []).concat([g]))
: (t[e] = t[e] ? t[e] + ', ' + g : g);
}
},
),
t
);
};
},
w3kf: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = { placeholder: '请选择' };
c.default = r;
},
'wF/u': function(W, c, n) {
var r = n('e5cp'),
d = n('ExA7');
function o(a, t, e, g, v) {
return a === t
? !0
: a == null || t == null || (!d(a) && !d(t))
? a !== a && t !== t
: r(a, t, e, g, o, v);
}
W.exports = o;
},
wJg7: function(W, c) {
var n = 9007199254740991,
r = /^(?:0|[1-9]\d*)$/;
function d(o, a) {
var t = typeof o;
return (
(a = a == null ? n : a),
!!a && (t == 'number' || (t != 'symbol' && r.test(o))) && o > -1 && o % 1 == 0 && o < a
);
}
W.exports = d;
},
wME1: function(W, c, n) {
'use strict';
n.r(c),
n.d(c, 'red', function() {
return r;
}),
n.d(c, 'pink', function() {
return d;
}),
n.d(c, 'purple', function() {
return o;
}),
n.d(c, 'deepPurple', function() {
return a;
}),
n.d(c, 'indigo', function() {
return t;
}),
n.d(c, 'blue', function() {
return e;
}),
n.d(c, 'lightBlue', function() {
return g;
}),
n.d(c, 'cyan', function() {
return v;
}),
n.d(c, 'teal', function() {
return E;
}),
n.d(c, 'green', function() {
return w;
}),
n.d(c, 'lightGreen', function() {
return L;
}),
n.d(c, 'lime', function() {
return S;
}),
n.d(c, 'yellow', function() {
return R;
}),
n.d(c, 'amber', function() {
return O;
}),
n.d(c, 'orange', function() {
return M;
}),
n.d(c, 'deepOrange', function() {
return A;
}),
n.d(c, 'brown', function() {
return I;
}),
n.d(c, 'grey', function() {
return B;
}),
n.d(c, 'blueGrey', function() {
return N;
}),
n.d(c, 'darkText', function() {
return b;
}),
n.d(c, 'lightText', function() {
return C;
}),
n.d(c, 'darkIcons', function() {
return h;
}),
n.d(c, 'lightIcons', function() {
return u;
}),
n.d(c, 'white', function() {
return m;
}),
n.d(c, 'black', function() {
return T;
});
var r = {
'50': '#ffebee',
'100': '#ffcdd2',
'200': '#ef9a9a',
'300': '#e57373',
'400': '#ef5350',
'500': '#f44336',
'600': '#e53935',
'700': '#d32f2f',
'800': '#c62828',
'900': '#b71c1c',
a100: '#ff8a80',
a200: '#ff5252',
a400: '#ff1744',
a700: '#d50000',
},
d = {
'50': '#fce4ec',
'100': '#f8bbd0',
'200': '#f48fb1',
'300': '#f06292',
'400': '#ec407a',
'500': '#e91e63',
'600': '#d81b60',
'700': '#c2185b',
'800': '#ad1457',
'900': '#880e4f',
a100: '#ff80ab',
a200: '#ff4081',
a400: '#f50057',
a700: '#c51162',
},
o = {
'50': '#f3e5f5',
'100': '#e1bee7',
'200': '#ce93d8',
'300': '#ba68c8',
'400': '#ab47bc',
'500': '#9c27b0',
'600': '#8e24aa',
'700': '#7b1fa2',
'800': '#6a1b9a',
'900': '#4a148c',
a100: '#ea80fc',
a200: '#e040fb',
a400: '#d500f9',
a700: '#aa00ff',
},
a = {
'50': '#ede7f6',
'100': '#d1c4e9',
'200': '#b39ddb',
'300': '#9575cd',
'400': '#7e57c2',
'500': '#673ab7',
'600': '#5e35b1',
'700': '#512da8',
'800': '#4527a0',
'900': '#311b92',
a100: '#b388ff',
a200: '#7c4dff',
a400: '#651fff',
a700: '#6200ea',
},
t = {
'50': '#e8eaf6',
'100': '#c5cae9',
'200': '#9fa8da',
'300': '#7986cb',
'400': '#5c6bc0',
'500': '#3f51b5',
'600': '#3949ab',
'700': '#303f9f',
'800': '#283593',
'900': '#1a237e',
a100: '#8c9eff',
a200: '#536dfe',
a400: '#3d5afe',
a700: '#304ffe',
},
e = {
'50': '#e3f2fd',
'100': '#bbdefb',
'200': '#90caf9',
'300': '#64b5f6',
'400': '#42a5f5',
'500': '#2196f3',
'600': '#1e88e5',
'700': '#1976d2',
'800': '#1565c0',
'900': '#0d47a1',
a100: '#82b1ff',
a200: '#448aff',
a400: '#2979ff',
a700: '#2962ff',
},
g = {
'50': '#e1f5fe',
'100': '#b3e5fc',
'200': '#81d4fa',
'300': '#4fc3f7',
'400': '#29b6f6',
'500': '#03a9f4',
'600': '#039be5',
'700': '#0288d1',
'800': '#0277bd',
'900': '#01579b',
a100: '#80d8ff',
a200: '#40c4ff',
a400: '#00b0ff',
a700: '#0091ea',
},
v = {
'50': '#e0f7fa',
'100': '#b2ebf2',
'200': '#80deea',
'300': '#4dd0e1',
'400': '#26c6da',
'500': '#00bcd4',
'600': '#00acc1',
'700': '#0097a7',
'800': '#00838f',
'900': '#006064',
a100: '#84ffff',
a200: '#18ffff',
a400: '#00e5ff',
a700: '#00b8d4',
},
E = {
'50': '#e0f2f1',
'100': '#b2dfdb',
'200': '#80cbc4',
'300': '#4db6ac',
'400': '#26a69a',
'500': '#009688',
'600': '#00897b',
'700': '#00796b',
'800': '#00695c',
'900': '#004d40',
a100: '#a7ffeb',
a200: '#64ffda',
a400: '#1de9b6',
a700: '#00bfa5',
},
w = {
'50': '#e8f5e9',
'100': '#c8e6c9',
'200': '#a5d6a7',
'300': '#81c784',
'400': '#66bb6a',
'500': '#4caf50',
'600': '#43a047',
'700': '#388e3c',
'800': '#2e7d32',
'900': '#1b5e20',
a100: '#b9f6ca',
a200: '#69f0ae',
a400: '#00e676',
a700: '#00c853',
},
L = {
'50': '#f1f8e9',
'100': '#dcedc8',
'200': '#c5e1a5',
'300': '#aed581',
'400': '#9ccc65',
'500': '#8bc34a',
'600': '#7cb342',
'700': '#689f38',
'800': '#558b2f',
'900': '#33691e',
a100: '#ccff90',
a200: '#b2ff59',
a400: '#76ff03',
a700: '#64dd17',
},
S = {
'50': '#f9fbe7',
'100': '#f0f4c3',
'200': '#e6ee9c',
'300': '#dce775',
'400': '#d4e157',
'500': '#cddc39',
'600': '#c0ca33',
'700': '#afb42b',
'800': '#9e9d24',
'900': '#827717',
a100: '#f4ff81',
a200: '#eeff41',
a400: '#c6ff00',
a700: '#aeea00',
},
R = {
'50': '#fffde7',
'100': '#fff9c4',
'200': '#fff59d',
'300': '#fff176',
'400': '#ffee58',
'500': '#ffeb3b',
'600': '#fdd835',
'700': '#fbc02d',
'800': '#f9a825',
'900': '#f57f17',
a100: '#ffff8d',
a200: '#ffff00',
a400: '#ffea00',
a700: '#ffd600',
},
O = {
'50': '#fff8e1',
'100': '#ffecb3',
'200': '#ffe082',
'300': '#ffd54f',
'400': '#ffca28',
'500': '#ffc107',
'600': '#ffb300',
'700': '#ffa000',
'800': '#ff8f00',
'900': '#ff6f00',
a100: '#ffe57f',
a200: '#ffd740',
a400: '#ffc400',
a700: '#ffab00',
},
M = {
'50': '#fff3e0',
'100': '#ffe0b2',
'200': '#ffcc80',
'300': '#ffb74d',
'400': '#ffa726',
'500': '#ff9800',
'600': '#fb8c00',
'700': '#f57c00',
'800': '#ef6c00',
'900': '#e65100',
a100: '#ffd180',
a200: '#ffab40',
a400: '#ff9100',
a700: '#ff6d00',
},
A = {
'50': '#fbe9e7',
'100': '#ffccbc',
'200': '#ffab91',
'300': '#ff8a65',
'400': '#ff7043',
'500': '#ff5722',
'600': '#f4511e',
'700': '#e64a19',
'800': '#d84315',
'900': '#bf360c',
a100: '#ff9e80',
a200: '#ff6e40',
a400: '#ff3d00',
a700: '#dd2c00',
},
I = {
'50': '#efebe9',
'100': '#d7ccc8',
'200': '#bcaaa4',
'300': '#a1887f',
'400': '#8d6e63',
'500': '#795548',
'600': '#6d4c41',
'700': '#5d4037',
'800': '#4e342e',
'900': '#3e2723',
},
B = {
'50': '#fafafa',
'100': '#f5f5f5',
'200': '#eeeeee',
'300': '#e0e0e0',
'400': '#bdbdbd',
'500': '#9e9e9e',
'600': '#757575',
'700': '#616161',
'800': '#424242',
'900': '#212121',
},
N = {
'50': '#eceff1',
'100': '#cfd8dc',
'200': '#b0bec5',
'300': '#90a4ae',
'400': '#78909c',
'500': '#607d8b',
'600': '#546e7a',
'700': '#455a64',
'800': '#37474f',
'900': '#263238',
},
b = {
primary: 'rgba(0, 0, 0, 0.87)',
secondary: 'rgba(0, 0, 0, 0.54)',
disabled: 'rgba(0, 0, 0, 0.38)',
dividers: 'rgba(0, 0, 0, 0.12)',
},
C = {
primary: 'rgba(255, 255, 255, 1)',
secondary: 'rgba(255, 255, 255, 0.7)',
disabled: 'rgba(255, 255, 255, 0.5)',
dividers: 'rgba(255, 255, 255, 0.12)',
},
h = { active: 'rgba(0, 0, 0, 0.54)', inactive: 'rgba(0, 0, 0, 0.38)' },
u = { active: 'rgba(255, 255, 255, 1)', inactive: 'rgba(255, 255, 255, 0.5)' },
m = '#ffffff',
T = '#000000';
c.default = {
red: r,
pink: d,
purple: o,
deepPurple: a,
indigo: t,
blue: e,
lightBlue: g,
cyan: v,
teal: E,
green: w,
lightGreen: L,
lime: S,
yellow: R,
amber: O,
orange: M,
deepOrange: A,
brown: I,
grey: B,
blueGrey: N,
darkText: b,
lightText: C,
darkIcons: h,
lightIcons: u,
white: m,
black: T,
};
},
wPlo: function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return r;
});
var r = 'RC_SELECT_INTERNAL_PROPS_MARK';
},
wSlI: function(W, c, n) {
'use strict';
n.d(c, 'b', function() {
return r;
}),
n.d(c, 'a', function() {
return d;
});
function r(o, a, t) {
var e = t.getRegistry(),
g = e.addTarget(o, a);
return [
g,
function() {
return e.removeTarget(g);
},
];
}
function d(o, a, t) {
var e = t.getRegistry(),
g = e.addSource(o, a);
return [
g,
function() {
return e.removeSource(g);
},
];
}
},
wWDZ: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z',
},
},
],
},
name: 'robot',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'RobotOutlined';
var e = (c.a = r.forwardRef(t));
},
wXyp: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('ygfH')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'CheckOutlined';
var g = o.forwardRef(e);
c.default = g;
},
wYeT: function(W, c, n) {
'use strict';
n('1Ywk'), n('wvkp'), n('ZhJW');
},
wclG: function(W, c, n) {
var r = n('pFRH'),
d = n('88Gu'),
o = d(r);
W.exports = o;
},
wgjA: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z',
},
},
],
},
name: 'left',
theme: 'outlined',
};
c.default = r;
},
wkyg: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.HuePicker = void 0);
var r =
Object.assign ||
function(M) {
for (var A = 1; A < arguments.length; A++) {
var I = arguments[A];
for (var B in I) Object.prototype.hasOwnProperty.call(I, B) && (M[B] = I[B]);
}
return M;
},
d = n('q1tI'),
o = R(d),
a = n('17x9'),
t = R(a),
e = n('/FUP'),
g = R(e),
v = n('QkVN'),
E = R(v),
w = n('TM95'),
L = n('trA2'),
S = R(L);
function R(M) {
return M && M.__esModule ? M : { default: M };
}
var O = (c.HuePicker = function(A) {
var I = A.width,
B = A.height,
N = A.onChange,
b = A.hsl,
C = A.direction,
h = A.pointer,
u = A.styles,
m = u === void 0 ? {} : u,
T = A.className,
x = T === void 0 ? '' : T,
F = (0, g.default)(
(0, E.default)(
{
default: {
picker: { position: 'relative', width: I, height: B },
hue: { radius: '2px' },
},
},
m,
),
),
U = function(Y) {
return N({ a: 1, h: Y.h, l: 0.5, s: 1 });
};
return o.default.createElement(
'div',
{ style: F.picker, className: 'hue-picker ' + x },
o.default.createElement(
w.Hue,
r({}, F.hue, { hsl: b, pointer: h, onChange: U, direction: C }),
),
);
});
(O.propTypes = { styles: t.default.object }),
(O.defaultProps = {
width: '316px',
height: '16px',
direction: 'horizontal',
pointer: S.default,
styles: {},
}),
(c.default = (0, w.ColorWrap)(O));
},
wlus: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z',
},
},
{
tag: 'path',
attrs: {
d:
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z',
},
},
],
},
name: 'minus-circle',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'MinusCircleOutlined';
var e = (c.a = r.forwardRef(t));
},
wrZu: function(W, c, n) {
var r = n('+K+b'),
d = n('XYm9'),
o = n('b2z7'),
a = n('otv/'),
t = n('yP5f'),
e = '[object Boolean]',
g = '[object Date]',
v = '[object Map]',
E = '[object Number]',
w = '[object RegExp]',
L = '[object Set]',
S = '[object String]',
R = '[object Symbol]',
O = '[object ArrayBuffer]',
M = '[object DataView]',
A = '[object Float32Array]',
I = '[object Float64Array]',
B = '[object Int8Array]',
N = '[object Int16Array]',
b = '[object Int32Array]',
C = '[object Uint8Array]',
h = '[object Uint8ClampedArray]',
u = '[object Uint16Array]',
m = '[object Uint32Array]';
function T(x, F, U) {
var H = x.constructor;
switch (F) {
case O:
return r(x);
case e:
case g:
return new H(+x);
case M:
return d(x, U);
case A:
case I:
case B:
case N:
case b:
case C:
case h:
case u:
case m:
return t(x, U);
case v:
return new H();
case E:
case S:
return new H(x);
case w:
return o(x);
case L:
return new H();
case R:
return a(x);
}
}
W.exports = T;
},
wvkp: function(W, c, n) {
'use strict';
n('1Ywk'), n('wwx4');
},
wwx4: function(W, c, n) {},
x9r5: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z',
},
},
],
},
name: 'pie-chart',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'PieChartOutlined';
var e = (c.a = r.forwardRef(t));
},
xAGQ: function(W, c, n) {
'use strict';
var r = n('xTJ+');
W.exports = function(o, a, t) {
return (
r.forEach(t, function(g) {
o = g(o, a);
}),
o
);
};
},
xDpF: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z',
},
},
],
},
name: 'warning',
theme: 'filled',
};
c.default = r;
},
'xTJ+': function(W, c, n) {
'use strict';
var r = n('HSsa'),
d = Object.prototype.toString;
function o(m) {
return d.call(m) === '[object Array]';
}
function a(m) {
return typeof m == 'undefined';
}
function t(m) {
return (
m !== null &&
!a(m) &&
m.constructor !== null &&
!a(m.constructor) &&
typeof m.constructor.isBuffer == 'function' &&
m.constructor.isBuffer(m)
);
}
function e(m) {
return d.call(m) === '[object ArrayBuffer]';
}
function g(m) {
return typeof FormData != 'undefined' && m instanceof FormData;
}
function v(m) {
var T;
return (
typeof ArrayBuffer != 'undefined' && ArrayBuffer.isView
? (T = ArrayBuffer.isView(m))
: (T = m && m.buffer && m.buffer instanceof ArrayBuffer),
T
);
}
function E(m) {
return typeof m == 'string';
}
function w(m) {
return typeof m == 'number';
}
function L(m) {
return m !== null && typeof m == 'object';
}
function S(m) {
return d.call(m) === '[object Date]';
}
function R(m) {
return d.call(m) === '[object File]';
}
function O(m) {
return d.call(m) === '[object Blob]';
}
function M(m) {
return d.call(m) === '[object Function]';
}
function A(m) {
return L(m) && M(m.pipe);
}
function I(m) {
return typeof URLSearchParams != 'undefined' && m instanceof URLSearchParams;
}
function B(m) {
return m.replace(/^\s*/, '').replace(/\s*$/, '');
}
function N() {
return typeof navigator != 'undefined' &&
(navigator.product === 'ReactNative' ||
navigator.product === 'NativeScript' ||
navigator.product === 'NS')
? !1
: typeof window != 'undefined' && typeof document != 'undefined';
}
function b(m, T) {
if (m === null || typeof m == 'undefined') return;
if ((typeof m != 'object' && (m = [m]), o(m)))
for (var x = 0, F = m.length; x < F; x++) T.call(null, m[x], x, m);
else
for (var U in m) Object.prototype.hasOwnProperty.call(m, U) && T.call(null, m[U], U, m);
}
function C() {
var m = {};
function T(U, H) {
typeof m[H] == 'object' && typeof U == 'object' ? (m[H] = C(m[H], U)) : (m[H] = U);
}
for (var x = 0, F = arguments.length; x < F; x++) b(arguments[x], T);
return m;
}
function h() {
var m = {};
function T(U, H) {
typeof m[H] == 'object' && typeof U == 'object'
? (m[H] = h(m[H], U))
: typeof U == 'object'
? (m[H] = h({}, U))
: (m[H] = U);
}
for (var x = 0, F = arguments.length; x < F; x++) b(arguments[x], T);
return m;
}
function u(m, T, x) {
return (
b(T, function(U, H) {
x && typeof U == 'function' ? (m[H] = r(U, x)) : (m[H] = U);
}),
m
);
}
W.exports = {
isArray: o,
isArrayBuffer: e,
isBuffer: t,
isFormData: g,
isArrayBufferView: v,
isString: E,
isNumber: w,
isObject: L,
isUndefined: a,
isDate: S,
isFile: R,
isBlob: O,
isFunction: M,
isStream: A,
isURLSearchParams: I,
isStandardBrowserEnv: N,
forEach: b,
merge: C,
deepMerge: h,
extend: u,
trim: B,
};
},
xYSL: function(W, c) {
function n(r, d) {
return r.has(d);
}
W.exports = n;
},
xbjo: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.CircleSwatch = void 0);
var r = n('q1tI'),
d = e(r),
o = n('/FUP'),
a = e(o),
t = n('TM95');
function e(v) {
return v && v.__esModule ? v : { default: v };
}
var g = (c.CircleSwatch = function(E) {
var w = E.color,
L = E.onClick,
S = E.onSwatchHover,
R = E.hover,
O = E.active,
M = E.circleSize,
A = E.circleSpacing,
I = (0, a.default)(
{
default: {
swatch: {
width: M,
height: M,
marginRight: A,
marginBottom: A,
transform: 'scale(1)',
transition: '100ms transform ease',
},
Swatch: {
borderRadius: '50%',
background: 'transparent',
boxShadow: 'inset 0 0 0 ' + (M / 2 + 1) + 'px ' + w,
transition: '100ms box-shadow ease',
},
},
hover: { swatch: { transform: 'scale(1.2)' } },
active: { Swatch: { boxShadow: 'inset 0 0 0 3px ' + w } },
},
{ hover: R, active: O },
);
return d.default.createElement(
'div',
{ style: I.swatch },
d.default.createElement(t.Swatch, {
style: I.Swatch,
color: w,
onClick: L,
onHover: S,
focusStyle: { boxShadow: I.Swatch.boxShadow + ', 0 0 5px ' + w },
}),
);
});
(g.defaultProps = { circleSize: 28, circleSpacing: 14 }), (c.default = (0, o.handleHover)(g));
},
xc4C: function(W, c, n) {
'use strict';
n.d(c, 'b', function() {
return a;
}),
n.d(c, 'a', function() {
return t;
});
var r = n('ODXe'),
d = n('CJvt'),
o = n('Qi1f');
function a(e) {
var g = Object(o.d)(e),
v = Object(r.a)(g, 2),
E = v[0],
w = v[1];
return d.a.setTwoToneColors({ primaryColor: E, secondaryColor: w });
}
function t() {
var e = d.a.getTwoToneColors();
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
}
},
xkGU: function(W, c, n) {
W.exports = n('bNQv');
},
xocI: function(W, c, n) {
'use strict';
var r = n('CYTE'),
d = n('2NuI'),
o = r.isBrowser('IE <= 9');
function a(t) {
var e,
g = null;
return (
!o &&
document.implementation &&
document.implementation.createHTMLDocument &&
((e = document.implementation.createHTMLDocument('foo')),
e.documentElement || d(!1),
(e.documentElement.innerHTML = t),
(g = e.getElementsByTagName('body')[0])),
g
);
}
W.exports = a;
},
xquA: function(W, c, n) {
W.exports = { posIpt: 'posIpt___1VGib', posItem: 'posItem___wEyth' };
},
'xs/l': function(W, c, n) {
var r = n('TYy9'),
d = n('Ioao'),
o = n('wclG');
function a(t) {
return o(d(t, void 0, r), t + '');
}
W.exports = a;
},
xvlK: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{ tag: 'defs', attrs: {}, children: [{ tag: 'style', attrs: {} }] },
{
tag: 'path',
attrs: { d: 'M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z' },
},
{
tag: 'path',
attrs: { d: 'M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z' },
},
],
},
name: 'plus',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'PlusOutlined';
var e = (c.a = r.forwardRef(t));
},
'y0+3': function(W, c, n) {
'use strict';
n.d(c, 'a', function() {
return R;
});
var r = /margin|padding|width|height|max|min|offset/,
d = { left: !0, top: !0 },
o = { cssFloat: 1, styleFloat: 1, float: 1 };
function a(O) {
return O.nodeType === 1 ? O.ownerDocument.defaultView.getComputedStyle(O, null) : {};
}
function t(O, M, A) {
if (((M = M.toLowerCase()), A === 'auto')) {
if (M === 'height') return O.offsetHeight;
if (M === 'width') return O.offsetWidth;
}
return M in d || (d[M] = r.test(M)), d[M] ? parseFloat(A) || 0 : A;
}
function e(O, M) {
var A = arguments.length,
I = a(O);
return (
(M = o[M] ? ('cssFloat' in O.style ? 'cssFloat' : 'styleFloat') : M),
A === 1 ? I : t(O, M, I[M] || O.style[M])
);
}
function g(O, M, A) {
var I = arguments.length;
if (((M = o[M] ? ('cssFloat' in O.style ? 'cssFloat' : 'styleFloat') : M), I === 3))
return typeof A == 'number' && r.test(M) && (A = ''.concat(A, 'px')), (O.style[M] = A), A;
for (var B in M) M.hasOwnProperty(B) && g(O, B, M[B]);
return a(O);
}
function v(O) {
return O === document.body ? document.documentElement.clientWidth : O.offsetWidth;
}
function E(O) {
return O === document.body
? window.innerHeight || document.documentElement.clientHeight
: O.offsetHeight;
}
function w() {
var O = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth),
M = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
return { width: O, height: M };
}
function L() {
var O = document.documentElement.clientWidth,
M = window.innerHeight || document.documentElement.clientHeight;
return { width: O, height: M };
}
function S() {
return {
scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),
scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop),
};
}
function R(O) {
var M = O.getBoundingClientRect(),
A = document.documentElement;
return {
left:
M.left +
(window.pageXOffset || A.scrollLeft) -
(A.clientLeft || document.body.clientLeft || 0),
top:
M.top +
(window.pageYOffset || A.scrollTop) -
(A.clientTop || document.body.clientTop || 0),
};
}
},
y1pI: function(W, c, n) {
var r = n('ljhN');
function d(o, a) {
for (var t = o.length; t--; ) if (r(o[t][0], a)) return t;
return -1;
}
W.exports = d;
},
y3Yb: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('HBhm')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'PaperClipOutlined';
var g = o.forwardRef(e);
c.default = g;
},
y8nQ: function(W, c, n) {
'use strict';
var r = n('cIOH'),
d = n('gwTy'),
o = n('FIfw'),
a = n('5Dmo');
},
yATC: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = R(n('/VI/')),
d = R(n('IRIL')),
o = R(n('nPkp')),
a = R(n('9TKp')),
t = R(n('0kd9')),
e = R(n('w3kf')),
g = R(n('Pnnq')),
v = R(n('e2kL')),
E = R(n('gNzn')),
w = R(n('ObLu')),
L = R(n('2N61')),
S = R(n('fJh5'));
function R(M) {
return M && M.__esModule ? M : { default: M };
}
var O = {
locale: 'zh-CN',
ActionSheet: r.default,
Alert: d.default,
Confirm: o.default,
DatePicker: a.default,
DatePickerView: t.default,
DateSelect: e.default,
Picker: g.default,
Pull: v.default,
SearchBar: E.default,
Select: w.default,
Keyboard: L.default,
ImagePreview: S.default,
};
c.default = O;
},
yEr3: function(W, c, n) {
(function(d, o) {
if (!0)
W.exports = o(
n('q1tI'),
n('Psm9'),
n('v83y'),
n('JPcv'),
n('bluE'),
n('i8i4'),
n('6xfc'),
n('H7ev'),
);
else var a, t;
})(window, function(r, d, o, a, t, e, g, v) {
return (function(E) {
var w = {};
function L(S) {
if (w[S]) return w[S].exports;
var R = (w[S] = { i: S, l: !1, exports: {} });
return E[S].call(R.exports, R, R.exports, L), (R.l = !0), R.exports;
}
return (
(L.m = E),
(L.c = w),
(L.d = function(S, R, O) {
L.o(S, R) || Object.defineProperty(S, R, { enumerable: !0, get: O });
}),
(L.r = function(S) {
typeof Symbol != 'undefined' &&
Symbol.toStringTag &&
Object.defineProperty(S, Symbol.toStringTag, { value: 'Module' }),
Object.defineProperty(S, '__esModule', { value: !0 });
}),
(L.t = function(S, R) {
if ((R & 1 && (S = L(S)), R & 8)) return S;
if (R & 4 && typeof S == 'object' && S && S.__esModule) return S;
var O = Object.create(null);
if (
(L.r(O),
Object.defineProperty(O, 'default', { enumerable: !0, value: S }),
R & 2 && typeof S != 'string')
)
for (var M in S)
L.d(
O,
M,
function(A) {
return S[A];
}.bind(null, M),
);
return O;
}),
(L.n = function(S) {
var R =
S && S.__esModule
? function() {
return S.default;
}
: function() {
return S;
};
return L.d(R, 'a', R), R;
}),
(L.o = function(S, R) {
return Object.prototype.hasOwnProperty.call(S, R);
}),
(L.p = '/'),
L((L.s = 39))
);
})([
function(E, w) {
E.exports = r;
},
function(E, w) {
function L(S) {
if (S === void 0)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return S;
}
E.exports = L;
},
function(E, w) {
function L(S, R, O) {
return (
R in S
? Object.defineProperty(S, R, {
value: O,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (S[R] = O),
S
);
}
E.exports = L;
},
function(E, w) {
E.exports = d;
},
function(E, w) {
function L(S, R) {
if (!(S instanceof R)) throw new TypeError('Cannot call a class as a function');
}
E.exports = L;
},
function(E, w, L) {
var S = L(2);
function R(O) {
for (var M = 1; M < arguments.length; M++) {
var A = arguments[M] != null ? arguments[M] : {},
I = Object.keys(A);
typeof Object.getOwnPropertySymbols == 'function' &&
(I = I.concat(
Object.getOwnPropertySymbols(A).filter(function(B) {
return Object.getOwnPropertyDescriptor(A, B).enumerable;
}),
)),
I.forEach(function(B) {
S(O, B, A[B]);
});
}
return O;
}
E.exports = R;
},
function(E, w) {
E.exports = o;
},
function(E, w) {
function L(R, O) {
for (var M = 0; M < O.length; M++) {
var A = O[M];
(A.enumerable = A.enumerable || !1),
(A.configurable = !0),
'value' in A && (A.writable = !0),
Object.defineProperty(R, A.key, A);
}
}
function S(R, O, M) {
return O && L(R.prototype, O), M && L(R, M), R;
}
E.exports = S;
},
function(E, w, L) {
var S = L(15),
R = L(1);
function O(M, A) {
return A && (S(A) === 'object' || typeof A == 'function') ? A : R(M);
}
E.exports = O;
},
function(E, w) {
function L(S) {
return (
(E.exports = L = Object.setPrototypeOf
? Object.getPrototypeOf
: function(O) {
return O.__proto__ || Object.getPrototypeOf(O);
}),
L(S)
);
}
E.exports = L;
},
function(E, w, L) {
var S = L(26);
function R(O, M) {
if (typeof M != 'function' && M !== null)
throw new TypeError('Super expression must either be null or a function');
(O.prototype = Object.create(M && M.prototype, {
constructor: { value: O, writable: !0, configurable: !0 },
})),
M && S(O, M);
}
E.exports = R;
},
function(E, w) {
function L() {
return (
(E.exports = L =
Object.assign ||
function(S) {
for (var R = 1; R < arguments.length; R++) {
var O = arguments[R];
for (var M in O) Object.prototype.hasOwnProperty.call(O, M) && (S[M] = O[M]);
}
return S;
}),
L.apply(this, arguments)
);
}
E.exports = L;
},
function(E, w, L) {
var S = L(27),
R = L(28),
O = L(29);
function M(A) {
return S(A) || R(A) || O();
}
E.exports = M;
},
function(E, w) {
E.exports = a;
},
function(E, w) {
E.exports = t;
},
function(E, w) {
function L(R) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (L = function(M) {
return typeof M;
})
: (L = function(M) {
return M &&
typeof Symbol == 'function' &&
M.constructor === Symbol &&
M !== Symbol.prototype
? 'symbol'
: typeof M;
}),
L(R)
);
}
function S(R) {
return (
typeof Symbol == 'function' && L(Symbol.iterator) === 'symbol'
? (E.exports = S = function(M) {
return L(M);
})
: (E.exports = S = function(M) {
return M &&
typeof Symbol == 'function' &&
M.constructor === Symbol &&
M !== Symbol.prototype
? 'symbol'
: L(M);
}),
S(R)
);
}
E.exports = S;
},
function(E, w) {
E.exports = e;
},
function(E, w) {
E.exports = g;
},
function(E, w, L) {
var S = L(13),
R = '-';
function O(M) {
this.decorators = S.List(M);
}
(O.prototype.getDecorations = function(M) {
var A = Array(M.getText().length).fill(null);
return (
this.decorators.forEach(function(I, B) {
var N = I.getDecorations(M);
N.forEach(function(b, C) {
if (!b) return;
(b = B + R + b), (A[C] = b);
});
}),
S.List(A)
);
}),
(O.prototype.getComponentForKey = function(M) {
var A = this.getDecoratorForKey(M);
return A.getComponentForKey(this.getInnerKey(M));
}),
(O.prototype.getPropsForKey = function(M) {
var A = this.getDecoratorForKey(M);
return A.getPropsForKey(this.getInnerKey(M));
}),
(O.prototype.getDecoratorForKey = function(M) {
var A = M.split(R),
I = Number(A[0]);
return this.decorators.get(I);
}),
(O.prototype.getInnerKey = function(M) {
var A = M.split(R);
return A.slice(1).join(R);
}),
(E.exports = O);
},
function(E, w, L) {
'use strict';
function S(T, x) {
if (!(T instanceof x)) throw new TypeError('Cannot call a class as a function');
}
function R(T, x) {
if (!T)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return x && (typeof x == 'object' || typeof x == 'function') ? x : T;
}
function O(T, x) {
if (typeof x != 'function' && x !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof x,
);
(T.prototype = Object.create(x && x.prototype, {
constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 },
})),
x && (Object.setPrototypeOf ? Object.setPrototypeOf(T, x) : (T.__proto__ = x));
}
var M = L(13),
A = M.Map,
I = M.OrderedSet,
B = M.Record,
N = I(),
b = { style: N, entity: null },
C = B(b),
h = (function(T) {
O(x, T);
function x() {
return S(this, x), R(this, T.apply(this, arguments));
}
return (
(x.prototype.getStyle = function() {
return this.get('style');
}),
(x.prototype.getEntity = function() {
return this.get('entity');
}),
(x.prototype.hasStyle = function(U) {
return this.getStyle().includes(U);
}),
(x.applyStyle = function(U, H) {
var Y = U.set('style', U.getStyle().add(H));
return x.create(Y);
}),
(x.removeStyle = function(U, H) {
var Y = U.set('style', U.getStyle().remove(H));
return x.create(Y);
}),
(x.applyEntity = function(U, H) {
var Y = U.getEntity() === H ? U : U.set('entity', H);
return x.create(Y);
}),
(x.create = function(U) {
if (!U) return u;
var H = { style: N, entity: null },
Y = A(H).merge(U),
Z = m.get(Y);
if (Z) return Z;
var ne = new x(Y);
return (m = m.set(Y, ne)), ne;
}),
x
);
})(C),
u = new h(),
m = A([[A(b), u]]);
(h.EMPTY = u), (E.exports = h);
},
function(E, w, L) {
'use strict';
function S(R, O, M, A) {
if (!R.size) return;
var I = 0;
R.reduce(function(B, N, b) {
return O(B, N) || (M(B) && A(I, b), (I = b)), N;
}),
M(R.last()) && A(I, R.count());
}
E.exports = S;
},
function(E, w, L) {
var S = L(25);
function R(O, M) {
if (O == null) return {};
var A = S(O, M),
I,
B;
if (Object.getOwnPropertySymbols) {
var N = Object.getOwnPropertySymbols(O);
for (B = 0; B < N.length; B++) {
if (((I = N[B]), M.indexOf(I) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(O, I)) continue;
A[I] = O[I];
}
}
return A;
}
E.exports = R;
},
function(E, w, L) {
'use strict';
var S = L(30);
function R(O) {
var M = O.getSelection();
return M.isCollapsed() ? null : S(O.getCurrentContent(), M);
}
E.exports = R;
},
function(E, w) {
E.exports = v;
},
function(E, w, L) {
var S = L(36),
R = L(37),
O = L(38);
function M(A, I) {
return S(A) || R(A, I) || O();
}
E.exports = M;
},
function(E, w) {
function L(S, R) {
if (S == null) return {};
var O = {},
M = Object.keys(S),
A,
I;
for (I = 0; I < M.length; I++) {
if (((A = M[I]), R.indexOf(A) >= 0)) continue;
O[A] = S[A];
}
return O;
}
E.exports = L;
},
function(E, w) {
function L(S, R) {
return (
(E.exports = L =
Object.setPrototypeOf ||
function(M, A) {
return (M.__proto__ = A), M;
}),
L(S, R)
);
}
E.exports = L;
},
function(E, w) {
function L(S) {
if (Array.isArray(S)) {
for (var R = 0, O = new Array(S.length); R < S.length; R++) O[R] = S[R];
return O;
}
}
E.exports = L;
},
function(E, w) {
function L(S) {
if (
Symbol.iterator in Object(S) ||
Object.prototype.toString.call(S) === '[object Arguments]'
)
return Array.from(S);
}
E.exports = L;
},
function(E, w) {
function L() {
throw new TypeError('Invalid attempt to spread non-iterable instance');
}
E.exports = L;
},
function(E, w, L) {
'use strict';
var S = L(31),
R = L(34),
O = function(A, I) {
var B = I.getStartKey(),
N = I.getStartOffset(),
b = I.getEndKey(),
C = I.getEndOffset(),
h = R(A, I),
u = h.getBlockMap(),
m = u.keySeq(),
T = m.indexOf(B),
x = m.indexOf(b) + 1;
return S(
u.slice(T, x).map(function(F, U) {
var H = F.getText(),
Y = F.getCharacterList();
return B === b
? F.merge({ text: H.slice(N, C), characterList: Y.slice(N, C) })
: U === B
? F.merge({ text: H.slice(N), characterList: Y.slice(N) })
: U === b
? F.merge({ text: H.slice(0, C), characterList: Y.slice(0, C) })
: F;
}),
);
};
E.exports = O;
},
function(E, w, L) {
'use strict';
var S = L(32),
R = L(13),
O = L(33),
M = R.OrderedMap,
A = function(b) {
var C = {},
h = void 0;
return M(
b
.withMutations(function(u) {
u.forEach(function(m, T) {
var x = m.getKey(),
F = m.getNextSiblingKey(),
U = m.getPrevSiblingKey(),
H = m.getChildKeys(),
Y = m.getParentKey(),
Z = O();
if (((C[x] = Z), F)) {
var ne = u.get(F);
ne ? u.setIn([F, 'prevSibling'], Z) : u.setIn([x, 'nextSibling'], null);
}
if (U) {
var ae = u.get(U);
ae ? u.setIn([U, 'nextSibling'], Z) : u.setIn([x, 'prevSibling'], null);
}
if (Y && u.get(Y)) {
var Ee = u.get(Y),
Ae = Ee.getChildKeys();
u.setIn([Y, 'children'], Ae.set(Ae.indexOf(m.getKey()), Z));
} else u.setIn([x, 'parent'], null), h && (u.setIn([h.getKey(), 'nextSibling'], Z), u.setIn([x, 'prevSibling'], C[h.getKey()])), (h = u.get(x));
H.forEach(function(ue) {
var Q = u.get(ue);
Q
? u.setIn([ue, 'parent'], Z)
: u.setIn(
[x, 'children'],
m.getChildKeys().filter(function(le) {
return le !== ue;
}),
);
});
});
})
.toArray()
.map(function(u) {
return [C[u.getKey()], u.set('key', C[u.getKey()])];
}),
);
},
I = function(b) {
return M(
b.toArray().map(function(C) {
var h = O();
return [h, C.set('key', h)];
}),
);
},
B = function(b) {
var C = b.first() instanceof S;
return C ? A(b) : I(b);
};
E.exports = B;
},
function(E, w, L) {
'use strict';
function S(H, Y) {
if (!(H instanceof Y)) throw new TypeError('Cannot call a class as a function');
}
function R(H, Y) {
if (!H)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return Y && (typeof Y == 'object' || typeof Y == 'function') ? Y : H;
}
function O(H, Y) {
if (typeof Y != 'function' && Y !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof Y,
);
(H.prototype = Object.create(Y && Y.prototype, {
constructor: { value: H, enumerable: !1, writable: !0, configurable: !0 },
})),
Y && (Object.setPrototypeOf ? Object.setPrototypeOf(H, Y) : (H.__proto__ = Y));
}
var M = L(19),
A = L(13),
I = L(20),
B = A.List,
N = A.Map,
b = A.OrderedSet,
C = A.Record,
h = A.Repeat,
u = b(),
m = {
parent: null,
characterList: B(),
data: N(),
depth: 0,
key: '',
text: '',
type: 'unstyled',
children: B(),
prevSibling: null,
nextSibling: null,
},
T = function(Y, Z) {
return Y.getStyle() === Z.getStyle();
},
x = function(Y, Z) {
return Y.getEntity() === Z.getEntity();
},
F = function(Y) {
if (!Y) return Y;
var Z = Y.characterList,
ne = Y.text;
return ne && !Z && (Y.characterList = B(h(M.EMPTY, ne.length))), Y;
},
U = (function(H) {
O(Y, H);
function Y() {
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m;
return S(this, Y), R(this, H.call(this, F(Z)));
}
return (
(Y.prototype.getKey = function() {
return this.get('key');
}),
(Y.prototype.getType = function() {
return this.get('type');
}),
(Y.prototype.getText = function() {
return this.get('text');
}),
(Y.prototype.getCharacterList = function() {
return this.get('characterList');
}),
(Y.prototype.getLength = function() {
return this.getText().length;
}),
(Y.prototype.getDepth = function() {
return this.get('depth');
}),
(Y.prototype.getData = function() {
return this.get('data');
}),
(Y.prototype.getInlineStyleAt = function(ne) {
var ae = this.getCharacterList().get(ne);
return ae ? ae.getStyle() : u;
}),
(Y.prototype.getEntityAt = function(ne) {
var ae = this.getCharacterList().get(ne);
return ae ? ae.getEntity() : null;
}),
(Y.prototype.getChildKeys = function() {
return this.get('children');
}),
(Y.prototype.getParentKey = function() {
return this.get('parent');
}),
(Y.prototype.getPrevSiblingKey = function() {
return this.get('prevSibling');
}),
(Y.prototype.getNextSiblingKey = function() {
return this.get('nextSibling');
}),
(Y.prototype.findStyleRanges = function(ne, ae) {
I(this.getCharacterList(), T, ne, ae);
}),
(Y.prototype.findEntityRanges = function(ne, ae) {
I(this.getCharacterList(), x, ne, ae);
}),
Y
);
})(C(m));
E.exports = U;
},
function(E, w, L) {
'use strict';
var S = {},
R = Math.pow(2, 24);
function O() {
for (var M = void 0; M === void 0 || S.hasOwnProperty(M) || !isNaN(+M); )
M = Math.floor(Math.random() * R).toString(32);
return (S[M] = !0), M;
}
E.exports = O;
},
function(E, w, L) {
'use strict';
var S = L(19),
R = L(20),
O = L(35);
function M(B, N) {
var b = B.getBlockMap(),
C = B.getEntityMap(),
h = {},
u = N.getStartKey(),
m = N.getStartOffset(),
T = b.get(u),
x = I(C, T, m);
x !== T && (h[u] = x);
var F = N.getEndKey(),
U = N.getEndOffset(),
H = b.get(F);
u === F && (H = x);
var Y = I(C, H, U);
return (
Y !== H && (h[F] = Y),
Object.keys(h).length
? B.merge({ blockMap: b.merge(h), selectionAfter: N })
: B.set('selectionAfter', N)
);
}
function A(B, N, b) {
var C;
return (
R(
B,
function(h, u) {
return h.getEntity() === u.getEntity();
},
function(h) {
return h.getEntity() === N;
},
function(h, u) {
h <= b && u >= b && (C = { start: h, end: u });
},
),
typeof C == 'object' || O(!1),
C
);
}
function I(B, N, b) {
var C = N.getCharacterList(),
h = b > 0 ? C.get(b - 1) : void 0,
u = b < C.count() ? C.get(b) : void 0,
m = h ? h.getEntity() : void 0,
T = u ? u.getEntity() : void 0;
if (T && T === m) {
var x = B.__get(T);
if (x.getMutability() !== 'MUTABLE') {
for (var F = A(C, T, b), U = F.start, H = F.end, Y; U < H; )
(Y = C.get(U)), (C = C.set(U, S.applyEntity(Y, null))), U++;
return N.set('characterList', C);
}
}
return N;
}
E.exports = M;
},
function(E, w, L) {
'use strict';
var S = function(M) {};
function R(O, M, A, I, B, N, b, C) {
if ((S(M), !O)) {
var h;
if (M === void 0)
h = new Error(
'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.',
);
else {
var u = [A, I, B, N, b, C],
m = 0;
(h = new Error(
M.replace(/%s/g, function() {
return u[m++];
}),
)),
(h.name = 'Invariant Violation');
}
throw ((h.framesToPop = 1), h);
}
}
E.exports = R;
},
function(E, w) {
function L(S) {
if (Array.isArray(S)) return S;
}
E.exports = L;
},
function(E, w) {
function L(S, R) {
var O = [],
M = !0,
A = !1,
I = void 0;
try {
for (
var B = S[Symbol.iterator](), N;
!(M = (N = B.next()).done) && !(O.push(N.value), R && O.length === R);
M = !0
);
} catch (b) {
(A = !0), (I = b);
} finally {
try {
!M && B.return != null && B.return();
} finally {
if (A) throw I;
}
}
return O;
}
E.exports = L;
},
function(E, w) {
function L() {
throw new TypeError('Invalid attempt to destructure non-iterable instance');
}
E.exports = L;
},
function(E, w, L) {
'use strict';
L.r(w);
var S = L(15),
R = L.n(S),
O = L(5),
M = L.n(O),
A = L(21),
I = L.n(A),
B = L(4),
N = L.n(B),
b = L(7),
C = L.n(b),
h = L(8),
u = L.n(h),
m = L(9),
T = L.n(m),
x = L(1),
F = L.n(x),
U = L(10),
H = L.n(U),
Y = L(2),
Z = L.n(Y),
ne = L(12),
ae = L.n(ne),
Ee = L(40),
Ae = L(42),
ue = L(0),
Q = L.n(ue),
le = {
base: {
remove: 'Remove',
cancel: 'Cancel',
confirm: 'Confirm',
inert: 'Insert',
width: 'Width',
height: 'Height',
},
controls: {
clear: 'Clear',
undo: 'Undo',
redo: 'Redo',
fontSize: 'Font Size',
color: 'Color',
textColor: 'Text',
tempColors: 'Temp Colors',
backgroundColor: 'Background',
bold: 'Bold',
lineHeight: 'Line Height',
letterSpacing: 'Letter Spacing',
textIndent: 'Text Indent',
increaseIndent: 'Increase Indent',
decreaseIndent: 'Decrease Indent',
italic: 'Italic',
underline: 'Underline',
strikeThrough: 'Strike Through',
fontFamily: 'Font Family',
textAlign: 'Text Alignment',
alignLeft: 'Left Alignment',
alignCenter: 'Center Alignment',
alignRight: 'Right Alignment',
alignJustify: 'Justify Alignment',
floatLeft: 'Left Float',
floatRight: 'Right Float',
superScript: 'Super Script',
subScript: 'Sub Script',
removeStyles: 'Remove Styles',
headings: 'Headings',
header: 'Header',
normal: 'Normal',
orderedList: 'Ordered List',
unorderedList: 'Unordered List',
blockQuote: 'Quote',
code: 'Code',
link: 'Link',
unlink: 'Unlink',
hr: 'Horizontal Line',
media: 'Media',
mediaLibirary: 'Media Library',
emoji: 'Emoji',
fullscreen: 'Fullscreen',
exitFullscreen: 'Exit Fullscreen',
},
linkEditor: {
textInputPlaceHolder: 'Input link text',
linkInputPlaceHolder: 'Input link URL',
inputWithEnterPlaceHolder: 'Input link URL and press Enter',
openInNewWindow: 'Open in new window',
removeLink: 'Remove Link',
},
audioPlayer: { title: 'Play Audio' },
videoPlayer: { title: 'Play Video', embedTitle: 'Embed Media' },
media: { image: 'Image', video: 'Video', audio: 'Audio', embed: 'Embed' },
},
J = {
base: {
remove: '删除',
cancel: '取消',
confirm: '确定',
inert: '插入',
width: '宽度',
height: '高度',
},
controls: {
clear: '清除内容',
undo: '撤销',
redo: '重做',
fontSize: '字号',
lineHeight: '行高',
letterSpacing: '字间距',
textIndent: '段落缩进',
increaseIndent: '增加缩进',
decreaseIndent: '减少缩进',
border: '边框',
color: '颜色',
textColor: '文字颜色',
backgroundColor: '背景颜色',
tempColors: '临时颜色',
bold: '加粗',
italic: '斜体',
underline: '下划线',
strikeThrough: '删除线',
fontFamily: '字体',
textAlign: '文本对齐',
alignLeft: '居左',
alignCenter: '居中',
alignRight: '居右',
alignJustify: '两端',
floatLeft: '左浮动',
floatRight: '右浮动',
superScript: '上标',
subScript: '下标',
removeStyles: '清除样式',
headings: '标题',
header: '标题',
normal: '常规',
orderedList: '有序列表',
unorderedList: '无序列表',
blockQuote: '引用',
code: '代码',
link: '链接',
unlink: '清除链接',
hr: '水平线',
media: '媒体',
mediaLibirary: '媒体库',
emoji: '小表情',
fullscreen: '全屏',
exitFullscreen: '退出全屏',
},
linkEditor: {
textInputPlaceHolder: '输入链接文字',
linkInputPlaceHolder: '输入链接地址',
inputWithEnterPlaceHolder: '输入链接地址并回车',
openInNewWindow: '在新窗口打开',
removeLink: '移除链接',
},
audioPlayer: { title: '播放音频文件' },
videoPlayer: { title: '播放视频文件', embedTitle: '嵌入式媒体' },
media: { image: '图像', video: '视频', audio: '音频', embed: '嵌入式媒体' },
},
re = {
base: {
remove: '刪除',
cancel: '取消',
confirm: '確定',
inert: '插入',
width: '寬度',
height: '高度',
},
controls: {
clear: '清除内容',
undo: '復原',
redo: '取消復原',
fontSize: '字型大小',
color: '顏色',
textColor: '文字顏色',
backgroundColor: '背景顏色',
tempColors: '臨時顏色',
bold: '粗體',
lineHeight: '行高',
letterSpacing: '字間距',
textIndent: '段落縮進',
increaseIndent: '增加縮進',
decreaseIndent: '减少縮進',
border: '邊框',
italic: '斜體',
underline: '底線',
strikeThrough: '刪除線',
fontFamily: '字體',
textAlign: '文字對齊',
alignLeft: '置左',
alignCenter: '置中',
alignRight: '置右',
alignJustify: '左右對齊',
floatLeft: '左浮動',
floatRight: '右浮動',
superScript: '上標',
subScript: '下標',
removeStyles: '清除樣式',
headings: '標題',
header: '標題',
normal: '常規',
orderedList: '有序列表',
unorderedList: '無序列表',
blockQuote: '引用',
code: '程式碼',
link: '連結',
unlink: '清除連結',
hr: '水平線',
media: '媒體',
mediaLibirary: '媒體庫',
emoji: '表情符號',
fullscreen: '全螢幕',
exitFullscreen: '退出全螢幕',
},
linkEditor: {
textInputPlaceHolder: '輸入連結文字',
linkInputPlaceHolder: '輸入連結地址',
inputWithEnterPlaceHolder: '輸入連結地址並換行',
openInNewWindow: '在新視窗打開',
removeLink: '移除連結',
},
audioPlayer: { title: '播放音檔' },
videoPlayer: { title: '播放影片', embedTitle: '嵌入式媒體' },
media: { image: '圖片', video: '影片', audio: '音檔', embed: '嵌入式媒體' },
},
ce = {
base: {
remove: 'Usuń',
cancel: 'Anuluj',
confirm: 'Potwierdź',
inert: 'Wstaw',
width: 'Szerokość',
height: 'Wysokość',
},
controls: {
clear: 'Wyczyść',
undo: 'Cofnij',
redo: 'Przywróć',
fontSize: 'Wielkość',
color: 'Kolor',
textColor: 'Kolor tekstu',
tempColors: 'Kolory',
backgroundColor: 'Tło',
bold: 'Pogrubienie',
lineHeight: 'Wysokość linii',
letterSpacing: 'Odstęp znaków',
textIndent: 'Wcięcie tekstu',
increaseIndent: 'Zwiększ wcięcie',
decreaseIndent: 'Zmniejsz wcięcie',
italic: 'Italiki',
underline: 'Podkreślenie',
strikeThrough: 'Przekreślenie',
fontFamily: 'Czcionka',
textAlign: 'Wyrównanie tekstu',
alignLeft: 'Do lewej',
alignCenter: 'Wycentruj',
alignRight: 'Do prawej',
alignJustify: 'Wyjustuj',
floatLeft: 'Do lewej',
floatRight: 'Do prawej',
superScript: 'Superskrypt',
subScript: 'Subskrypt',
removeStyles: 'Usuń stylowanie',
headings: 'Nagłówki',
header: 'Nagłówek',
normal: 'Normalny',
orderedList: 'Lista uporządkowana',
unorderedList: 'Lista nieuporządkowana',
blockQuote: 'Cytat',
code: 'Kod',
link: 'Link',
unlink: 'Usuń link',
hr: 'Linia pozioma',
media: 'Media',
mediaLibirary: 'Biblioteka mediów',
emoji: 'Emoji',
},
linkEditor: {
textInputPlaceHolder: 'Wpisz tekst linku',
linkInputPlaceHolder: 'Wpisz Adres URL',
inputWithEnterPlaceHolder: 'Wpisz adres URL i naciśnij Enter',
openInNewWindow: 'Otwórz w nowym oknie',
removeLink: 'Usuń link',
},
audioPlayer: { title: 'Odtwórz audio' },
videoPlayer: { title: 'Odtwórz wideo', embedTitle: 'Tytuł' },
media: { image: 'Obraz', video: 'Wideo', audio: 'Audio', embed: 'Obiekt osadzony' },
},
ye = {
base: {
remove: '삭제',
cancel: '취소',
confirm: '결정',
inert: '삽입',
width: '너비',
height: '높이',
},
controls: {
clear: '콘텐츠지우기',
undo: '취소',
redo: '다시하기',
fontSize: '글자크기',
lineHeight: '행높이',
letterSpacing: '단어간격',
textIndent: '단락들여쓰기',
increaseIndent: '들여쓰기늘리기',
decreaseIndent: '들여쓰기줄이기',
border: '국경',
color: '색상',
textColor: '텍스트색상',
backgroundColor: '배경색상',
tempColors: '임시색',
bold: '굵게',
italic: '기울임꼴',
underline: '밑줄',
strikeThrough: '취소선',
fontFamily: '글꼴',
textAlign: '텍스트정렬',
alignLeft: '왼쪽',
alignCenter: '중심',
alignRight: '오른쪽',
alignJustify: '양쪽끝',
floatLeft: '떠다니기',
floatRight: '오른쪽부동',
superScript: '위첨자',
subScript: '첨자',
removeStyles: '스타일지우기',
headings: '제목',
header: '제목',
normal: '재래식',
orderedList: '순서가지정된목록',
unorderedList: '정렬되지않은목록',
blockQuote: '참고문헌',
code: '코드',
link: '링크',
unlink: '링크삭제',
hr: '수평선',
media: '미디어',
mediaLibirary: '미디어라이브러리',
emoji: '작은표현',
fullscreen: '전체화면',
exitFullscreen: '전체화면종료',
},
linkEditor: {
textInputPlaceHolder: '링크텍스트입력',
linkInputPlaceHolder: '링크주소입력',
inputWithEnterPlaceHolder: '링크주소입력.',
openInNewWindow: '새창열기',
removeLink: '링크삭제',
},
audioPlayer: { title: '오디오파일재생' },
videoPlayer: { title: '비디오파일재생', embedTitle: '임베디드미디어' },
media: {
image: '이미지',
video: '비디오',
audio: '오디오',
embed: '임베디드미디어',
},
},
De = {
base: {
remove: 'Kaldır',
cancel: 'İptal',
confirm: 'Onayla',
inert: 'Ekle',
width: 'Genişlik',
height: 'Yükseklik',
},
controls: {
clear: 'Temizle',
undo: 'Geri al',
redo: 'İleri al',
fontSize: 'Yazı boyutu',
color: 'Renk',
textColor: 'Yazı rengi',
tempColors: 'Geçici renkler',
backgroundColor: 'Arkaplan',
bold: 'Kalın',
lineHeight: 'Satır yüksekliği',
letterSpacing: 'Harf aralığı',
textIndent: 'Çentik aralığı',
increaseIndent: 'Çentiği genişlet',
decreaseIndent: 'Çentiği daralt',
italic: 'Eğik',
underline: 'Altı çizili',
strikeThrough: 'Üstü çizili',
fontFamily: 'Yazı tipi',
textAlign: 'Metin Hizalama',
alignLeft: 'Sola hizala',
alignCenter: 'Ortaya hizala',
alignRight: 'Sağa hizala',
alignJustify: 'Her iki tarafa hizala',
floatLeft: 'Sola yatır',
floatRight: 'Sağa yatır',
superScript: 'Ana kod',
subScript: 'Alt kod',
removeStyles: 'Stilleri kaldır',
headings: 'Başlıklar',
header: 'Başlık',
normal: 'Normal',
orderedList: 'Sıralı liste',
unorderedList: 'Sırasız liste',
blockQuote: 'Alıntı',
code: 'Kod',
link: 'Bağlantı',
unlink: 'Bağlantıyı kaldır',
hr: 'Yatay çizgi',
media: 'Medya',
mediaLibirary: 'Kütüphane',
emoji: 'İfade',
fullscreen: 'Tam ekran',
exitFullscreen: 'Tam ekrandan çık',
},
linkEditor: {
textInputPlaceHolder: 'Bağlantı metnini girin',
linkInputPlaceHolder: "Bağlantı URL' si girin",
inputWithEnterPlaceHolder: "Bağlantı URL'si girin ve Enter' a basın",
openInNewWindow: 'Yeni pencerede aç',
removeLink: 'Bağlantıyı kaldır',
},
audioPlayer: { title: 'Ses çal' },
videoPlayer: { title: 'Görüntü oynat', embedTitle: 'Görüntüyü göm' },
media: { image: 'Resim', video: 'Görüntü', audio: 'Ses', embed: 'Gömülü nesne' },
},
Ne = {
base: {
remove: '削除',
cancel: 'キャンセル',
confirm: '決定',
inert: '挿入',
width: '幅',
height: '高さ',
},
controls: {
clear: 'クリアコンテンツ',
undo: 'キャンセル',
redo: 'キャンセル',
fontSize: 'フォントサイズ',
lineHeight: 'フォントサイズ',
letterSpacing: 'ワード間隔',
textIndent: '段落のインデント',
increaseIndent: 'インデントを増やす',
decreaseIndent: 'インデントを減らす',
border: '国境',
color: '色',
textColor: 'テキストの色',
backgroundColor: '背景色',
tempColors: '仮色',
bold: '太字',
italic: 'イタリック体',
underline: '下線',
strikeThrough: '取り消し線',
fontFamily: 'フォント',
textAlign: 'テキストの配置',
alignLeft: '左',
alignCenter: '中央揃え',
alignRight: '右に立つ',
alignJustify: '両端',
floatLeft: '左フローティング',
floatRight: '右フローティング',
superScript: '上付き',
subScript: '下付き文字',
removeStyles: 'クリアスタイル',
headings: '役職',
header: '役職',
normal: '従来の',
orderedList: '順序付きリスト',
unorderedList: '番号なしリスト',
blockQuote: '参照',
code: 'コード',
link: 'リンク',
unlink: 'リンクを解除',
hr: '横線',
media: 'メディア',
mediaLibirary: 'メディアライブラリー',
emoji: '小さな表現',
fullscreen: '全画面',
exitFullscreen: '全画面を退く',
},
linkEditor: {
textInputPlaceHolder: 'リンクテキストを入力',
linkInputPlaceHolder: 'リンクアドレスを入力',
inputWithEnterPlaceHolder: 'リンクアドレスを入力して戻ります',
openInNewWindow: '新しいウィンドウで開く',
removeLink: '新しいウィンドウで開く',
},
audioPlayer: { title: 'オーディオファイルを再生する' },
videoPlayer: { title: 'ビデオファイルを再生する', embedTitle: '埋め込みメディア' },
media: { image: '画像', video: 'ビデオ', audio: '音声', embed: '埋め込みメディア' },
},
qe = {
base: {
remove: 'Удалить',
cancel: 'Отмена',
confirm: 'Подтвердить',
insert: 'Вставить',
width: 'Ширина',
height: 'Высота',
},
controls: {
clear: 'Очистить',
undo: 'Отменить',
redo: 'Повторить',
fontSize: 'Размер шрифта',
color: 'Цвет',
textColor: 'Цвет текста',
tempColors: 'Temp Colors',
backgroundColor: 'Цвет фона',
bold: 'Жирный',
lineHeight: 'Межстрочный интервал',
letterSpacing: 'Межбуквенный интервал',
textIndent: 'Отступ',
increaseIndent: 'Увеличить отступ',
decreaseIndent: 'Уменьшить отступ',
italic: 'Курсив',
underline: 'Подчеркнутый',
strikeThrough: 'Перечеркнутый',
fontFamily: 'Шрифт',
textAlign: 'Расположение текста',
alignLeft: 'По левому краю',
alignCenter: 'По центру',
alignRight: 'По правому краю',
alignJustify: 'По ширине',
floatLeft: 'Обтекание слева',
floatRight: 'Обтекание справа',
superScript: 'Надстрочный индекс',
subScript: 'Подстрочный индекс',
removeStyles: 'Убрать стили',
headings: 'Заголовки',
header: 'Заголовок',
normal: 'Обычный',
orderedList: 'Упорядоченный список',
unorderedList: 'Неупорядоченный список',
blockQuote: 'Цитата',
code: 'Код',
link: 'Вставить ссылку',
unlink: 'Убрать ссылку',
hr: 'Горизонтальная линия',
media: 'Медиа',
mediaLibirary: 'Медиа библиотека',
emoji: 'Emoji',
fullscreen: 'Полноэкранный режим',
exitFullscreen: 'Выйти из полноэкранного режима',
},
linkEditor: {
textInputPlaceHolder: 'Введите текст ссылки',
linkInputPlaceHolder: 'Вставить ссылку',
inputWithEnterPlaceHolder: 'Вставить ссылку и нажать Enter',
openInNewWindow: 'Открыть в новом окне',
removeLink: 'Убрать ссылку',
},
audioPlayer: { title: 'Воспроизвести аудиофайл' },
videoPlayer: { title: 'Воспроизвести видеофайл', embedTitle: 'Embed Media' },
media: { image: 'Картинка', video: 'Видео', audio: 'Аудио', embed: 'Встроенное' },
},
Fe = {
base: {
remove: 'Supprimer',
cancel: 'Annuler',
confirm: 'Confirmer',
inert: 'Insérer',
width: 'Largeur',
height: 'Hauteur',
},
controls: {
clear: 'Effacer',
undo: 'Annuler',
redo: 'Refaire',
fontSize: 'Taille de police',
color: 'Couleur',
textColor: 'Texte',
tempColors: 'Couleurs temporaire',
backgroundColor: "Couleur d'arrière plan",
bold: 'Gras',
lineHeight: 'Hauteur de ligne',
letterSpacing: 'Espacement des lettres',
textIndent: 'Indentation du texte',
increaseIndent: "Augmenter l'indentation",
decreaseIndent: "Réduire l'indentation",
italic: 'Italique',
underline: 'Souligner',
strikeThrough: 'Barrer',
fontFamily: "Police d'écriture",
textAlign: 'Alignement du texte',
alignLeft: 'Aligner à gauche',
alignCenter: 'Aligner au centre',
alignRight: 'Aligner à droite',
alignJustify: 'Justifier',
floatLeft: 'Déplacer à gauche',
floatRight: 'Déplacer à droite',
superScript: 'Super-script',
subScript: 'Sous-script',
removeStyles: 'Supprimer les styles',
headings: 'Titres',
header: 'Entêtes',
normal: 'Normal',
orderedList: 'Liste ordonnée',
unorderedList: 'Liste non-ordonnée',
blockQuote: 'Citation',
code: 'Code',
link: 'Insérer un lien',
unlink: 'Supprimer le lien',
hr: 'Ligne horizontale',
media: 'Média',
mediaLibirary: 'Bibliothêque',
emoji: 'Emoji',
fullscreen: 'Plein écran',
exitFullscreen: 'Quitter le plein écran',
},
linkEditor: {
textInputPlaceHolder: 'Insérer le texte à afficher',
linkInputPlaceHolder: 'Insérer le lien URL',
inputWithEnterPlaceHolder: 'Insérer le lien URL puis appuyer sur Entrée',
openInNewWindow: 'Ouvrir dans une nouvelle fenêtre',
removeLink: 'Supprimer le lien',
},
audioPlayer: { title: 'Lancer le son audio' },
videoPlayer: { title: 'Lancer la video', embedTitle: 'Intégrer média' },
media: { image: 'Image', video: 'Vidéo', audio: 'Audio', embed: 'Intégré' },
},
We = {
base: {
remove: 'Remover',
cancel: 'Cancelar',
confirm: 'Confirmar',
inert: 'Inserir',
width: 'Largura',
height: 'Altura',
},
controls: {
clear: 'Limpar',
undo: 'Desfazer',
redo: 'Refazer',
fontSize: 'Tamanho da Fonte',
color: 'Cor',
textColor: 'Texto',
tempColors: 'Temp Colors',
backgroundColor: 'Cor de Fundo',
bold: 'Negrito',
lineHeight: 'Altura da LinhaLine Height',
letterSpacing: 'Espaçamento entre Letras',
textIndent: 'Identação de Texto',
increaseIndent: 'Aumentar Identação',
decreaseIndent: 'Diminuir Identção',
italic: 'Itálico',
underline: 'Sublinhado',
strikeThrough: 'Riscado',
fontFamily: 'Família da Fonte',
textAlign: 'Alinhamento de Texto',
alignLeft: 'Alinhamento à Esquerda',
alignCenter: 'Alinhamento Centralizado',
alignRight: 'Alinhamento à Direita',
alignJustify: 'Alinhamento Justificado',
floatLeft: 'Flutuação à Esquerda',
floatRight: 'Flutuação à Direita',
superScript: 'Sobrescrito',
subScript: 'Subscrito',
removeStyles: 'Remover Estilos',
headings: 'Cabeçalhos',
header: 'Cabeçalho',
normal: 'Normal',
orderedList: 'Lista Ordenada',
unorderedList: 'Lista Não Ordenada',
blockQuote: 'Citação',
code: 'Código',
link: 'Link',
unlink: 'Remover Link',
hr: 'Linha Horizontal',
media: 'Mídia',
mediaLibirary: 'Biblioteca de Mídia',
emoji: 'Emoji',
fullscreen: 'Tela Cheia',
exitFullscreen: 'Sair de Tela Cheia',
},
linkEditor: {
textInputPlaceHolder: 'Insira o texto do link',
linkInputPlaceHolder: 'Insira a URL do link',
inputWithEnterPlaceHolder: 'Insira a URL do link e aperte Enter',
openInNewWindow: 'Abrir em nova janela',
removeLink: 'Remover Link',
},
audioPlayer: { title: 'Tocar Áudio' },
videoPlayer: { title: 'Tocar Vídeo', embedTitle: 'Mídia Embutida' },
media: { image: 'Imagem', video: 'Vídeo', audio: 'Áudio', embed: 'Embutido' },
},
Xe = {
base: {
remove: 'Xóa bỏ',
cancel: 'Hủy bỏ',
confirm: 'Xác nhận',
inert: 'Chèn vào',
width: 'Độ rộng',
height: 'Độ cao',
},
controls: {
clear: 'Xóa toàn bộ nội dung',
undo: 'Hủy bỏ',
redo: 'Làm lại',
fontSize: 'Size chữ',
lineHeight: 'Độ cao hàng',
letterSpacing: 'Khoảng cách chữ',
textIndent: 'Khoảng cách đoạn văn',
increaseIndent: 'Tăng khoảng cách',
decreaseIndent: 'Giảm khoảng cách',
border: 'Đường viền',
color: 'Màu sắc',
textColor: 'Màu chữ',
backgroundColor: 'Màu nền',
tempColors: 'Màu tạm thời',
bold: 'Tô đậm',
italic: 'In nghiêng',
underline: 'Gạch dưới',
strikeThrough: 'Xóa gạch dưới',
fontFamily: 'Font chữ',
textAlign: 'Căn chỉnh văn bản',
alignLeft: 'Căn trái',
alignCenter: 'Căn giữa',
alignRight: 'Căn phải',
alignJustify: 'Hai lề',
floatLeft: 'Float left',
floatRight: 'Float right',
superScript: 'Chỉ số trên',
subScript: 'Chỉ số dưới',
removeStyles: 'Xóa style',
headings: 'Tiêu đề',
header: 'Tiêu đề',
normal: 'Quy tắc thông thường',
orderedList: 'Kiểu sắp xếp',
unorderedList: 'Kiểu không sắp xếp',
blockQuote: 'Trích dẫn',
code: 'Code',
link: 'Liên kết',
unlink: 'Gỡ liên kết',
hr: 'Horizontal line',
media: 'Media',
mediaLibirary: 'Kho media',
emoji: 'Biểu tượng cảm xúc',
fullscreen: 'Toàn màn hình',
exitFullscreen: 'Thoát khỏi chế độ toàn màn hình',
},
linkEditor: {
textInputPlaceHolder: 'Nhập văn bản liên kết',
linkInputPlaceHolder: 'Nhập địa chỉ liên kết',
inputWithEnterPlaceHolder: 'Nhập địa chỉ liên kết và Enter',
openInNewWindow: 'Mở trong tab mới',
removeLink: 'Gỡ liên kết',
},
audioPlayer: { title: 'Phát tệp âm thanh' },
videoPlayer: { title: 'Phát tệp video', embedTitle: 'Media nhúng' },
media: {
image: 'Hình ảnh',
video: 'Video',
audio: 'Âm thanh',
embed: 'Media nhúng',
},
},
ke = {
en: le,
zh: J,
'zh-hant': re,
pl: ce,
kr: ye,
tr: De,
jpn: Ne,
ru: qe,
fr: Fe,
'pt-br': We,
'vi-vn': Xe,
},
vt = L(17),
_t = L.n(vt),
Ft = L(3),
Vt = L(6),
Yt = L(13),
Ge = L.n(Yt),
de = function(Ve) {
return function(pt) {
return pt.keyCode === 83 &&
(Vt.KeyBindingUtil.hasCommandModifier(pt) ||
Vt.KeyBindingUtil.isCtrlKeyCommand(pt))
? 'braft-save'
: (Ve && Ve(pt)) || Object(Vt.getDefaultKeyBinding)(pt);
};
},
ie = {
language: 'zh',
controls: [
'undo',
'redo',
'separator',
'font-size',
'line-height',
'letter-spacing',
'separator',
'text-color',
'bold',
'italic',
'underline',
'strike-through',
'separator',
'superscript',
'subscript',
'remove-styles',
'emoji',
'separator',
'text-indent',
'text-align',
'separator',
'headings',
'list-ul',
'list-ol',
'blockquote',
'code',
'separator',
'media',
'link',
'table',
'split',
'hr',
'separator',
'clear',
'separator',
'fullscreen',
],
excludeControls: [],
extendControls: [],
extendAtomics: [],
componentBelowControlBar: null,
media: {
pasteImage: !0,
imagePasteLimit: 5,
image: !0,
video: !0,
audio: !0,
uploadFn: null,
validateFn: null,
onBeforeDeselect: null,
onDeselect: null,
onBeforeSelect: null,
onSelect: null,
onBeforeRemove: null,
onRemove: null,
onCancel: null,
onFileSelect: null,
onBeforeInsert: null,
onInsert: null,
onChange: null,
accepts: {
image: 'image/png,image/jpeg,image/gif,image/webp,image/apng,image/svg',
video: 'video/mp4',
audio: 'audio/mp3',
},
externals: { audio: !0, video: !0, image: !0, embed: !0 },
},
imageControls: [
'float-left',
'float-right',
'align-left',
'align-center',
'align-right',
'link',
'size',
'remove',
],
imageResizable: !0,
imageEqualRatio: !0,
colors: [
'#000000',
'#333333',
'#666666',
'#999999',
'#cccccc',
'#ffffff',
'#61a951',
'#16a085',
'#07a9fe',
'#003ba5',
'#8e44ad',
'#f32784',
'#c0392b',
'#d35400',
'#f39c12',
'#fdda00',
],
colorPicker: null,
colorPickerTheme: 'dark',
colorPickerAutoHide: !0,
codeTabIndents: 2,
headings: [
'header-one',
'header-two',
'header-three',
'header-four',
'header-five',
'header-six',
'unstyled',
],
textAligns: ['left', 'center', 'right', 'justify'],
textBackgroundColor: !0,
allowInsertLinkText: !1,
defaultLinkTarget: '',
letterSpacings: [0, 1, 2, 3, 4, 5, 6],
lineHeights: [1, 1.2, 1.5, 1.75, 2, 2.5, 3, 4],
fontSizes: [
12,
14,
16,
18,
20,
24,
28,
30,
32,
36,
40,
48,
56,
64,
72,
96,
120,
144,
],
fontFamilies: [
{ name: 'Araial', family: 'Arial, Helvetica, sans-serif' },
{ name: 'Georgia', family: 'Georgia, serif' },
{ name: 'Impact', family: 'Impact, serif' },
{ name: 'Monospace', family: '"Courier New", Courier, monospace' },
{ name: 'Tahoma', family: 'tahoma, arial, "Hiragino Sans GB", 宋体, sans-serif' },
],
converts: {
unitExportFn: function(Ve, pt) {
return pt === 'line-height' ? Ve : ''.concat(Ve, 'px');
},
},
emojis: [
'🤣',
'🙌',
'💚',
'💛',
'👏',
'😉',
'💯',
'💕',
'💞',
'💘',
'💙',
'💝',
'🖤',
'💜',
'❤️',
'😍',
'😻',
'💓',
'💗',
'😋',
'😇',
'😂',
'😹',
'😘',
'💖',
'😁',
'😀',
'🤞',
'😲',
'😄',
'😊',
'👍',
'😌',
'😃',
'😅',
'✌️',
'🤗',
'💋',
'😗',
'😽',
'😚',
'🤠',
'😙',
'😺',
'👄',
'😸',
'😏',
'😼',
'👌',
'😎',
'😆',
'😛',
'🙏',
'🤝',
'🙂',
'🤑',
'😝',
'😐',
'😑',
'🤤',
'😤',
'🙃',
'🤡',
'😶',
'😪',
'😴',
'😵',
'😓',
'👊',
'😦',
'😷',
'🤐',
'😜',
'🤓',
'👻',
'😥',
'🙄',
'🤔',
'🤒',
'🙁',
'😔',
'😯',
'☹️',
'☠️',
'😰',
'😩',
'😖',
'😕',
'😒',
'😣',
'😢',
'😮',
'😿',
'🤧',
'😫',
'🤥',
'😞',
'😬',
'👎',
'💀',
'😳',
'😨',
'🤕',
'🤢',
'😱',
'😭',
'😠',
'😈',
'😧',
'💔',
'😟',
'🙀',
'💩',
'👿',
'😡',
'😾',
'🖕',
],
stripPastedStyles: !1,
triggerChangeOnMount: !0,
className: '',
style: {},
controlBarClassName: '',
controlBarStyle: {},
contentClassName: '',
contentStyle: {},
draftProps: {},
hooks: {},
onChange: null,
onFocus: null,
onBlur: null,
onTab: null,
onDelete: null,
onSave: null,
fixPlaceholder: !1,
},
Le = L(22),
Je = L.n(Le),
rt = L(23),
yt = function(Ve, pt, oe) {
if (
oe.editorProps.handleKeyCommand &&
oe.editorProps.handleKeyCommand(Ve, pt, oe) === 'handled'
)
return 'handled';
if (Ve === 'braft-save')
return oe.editorProps.onSave && oe.editorProps.onSave(pt), 'handled';
var gt = oe.editorProps,
mt = gt.controls,
kt = gt.excludeControls,
It =
(mt.indexOf('text-indent') !== 0 ||
mt.find(function(Vi) {
return Vi.key === 'text-indent';
})) &&
kt.indexOf('text-indent') === -1,
Rn = pt.getSelection().getStartOffset(),
rr = pt.getSelection().getEndOffset(),
Ar = Rn === 0 && rr === 0;
if (Ve === 'backspace') {
if (oe.editorProps.onDelete && oe.editorProps.onDelete(pt) === !1)
return 'handled';
var kr = Ft.ContentUtils.getSelectionBlockType(pt);
It &&
Ar &&
kr !== 'code-block' &&
oe.setValue(Ft.ContentUtils.decreaseSelectionIndent(pt));
}
if (Ve === 'tab') {
var Kr = Ft.ContentUtils.getSelectionBlockType(pt);
if (Kr === 'code-block')
return (
oe.setValue(
Ft.ContentUtils.insertText(pt, ' '.repeat(oe.editorProps.codeTabIndents)),
),
'handled'
);
if (Kr === 'ordered-list-item' || Kr === 'unordered-list-item') {
var Aa = Vt.RichUtils.onTab(event, pt, 4);
return Aa !== pt && oe.setValue(Aa), 'handled';
} else if (Kr !== 'atomic' && It && Ar)
return oe.setValue(Ft.ContentUtils.increaseSelectionIndent(pt)), 'handled';
}
var Ja = Ft.ContentUtils.handleKeyCommand(pt, Ve);
return Ja ? (oe.setValue(Ja), 'handled') : 'not-handled';
},
nn = function(Ve, pt, oe) {
if (
oe.editorProps.handleReturn &&
oe.editorProps.handleReturn(Ve, pt, oe) === 'handled'
)
return 'handled';
var gt = Ft.ContentUtils.getSelectionBlock(pt),
mt = gt.getType();
if (mt === 'unordered-list-item' || mt === 'ordered-list-item')
return gt.getLength() === 0
? (oe.setValue(Ft.ContentUtils.toggleSelectionBlockType(pt, 'unstyled')),
'handled')
: 'not-handled';
if (mt === 'code-block')
return Ve.which === 13 &&
(Ve.getModifierState('Shift') ||
Ve.getModifierState('Alt') ||
Ve.getModifierState('Control'))
? (oe.setValue(Ft.ContentUtils.toggleSelectionBlockType(pt, 'unstyled')),
'handled')
: 'not-handled';
if (mt === 'blockquote' && Ve.which === 13)
if (
Ve.getModifierState('Shift') ||
Ve.getModifierState('Alt') ||
Ve.getModifierState('Control')
)
Ve.which = 0;
else return oe.setValue(Vt.RichUtils.insertSoftNewline(pt)), 'handled';
var kt = Object(rt.handleNewLine)(pt, Ve);
return kt ? (oe.setValue(kt), 'handled') : 'not-handled';
},
Gt = function(Ve, pt, oe) {
return oe.editorProps.handleBeforeInput &&
oe.editorProps.handleBeforeInput(Ve, pt, oe) === 'handled'
? 'handled'
: 'not-handled';
},
Ct = function(Ve, pt) {
var oe = pt.state.editorState,
gt = Ft.ContentUtils.getSelectedBlocks(oe);
if (gt && gt.length > 1) {
var mt = Vt.EditorState.push(
oe,
Vt.Modifier.removeRange(oe.getCurrentContent(), oe.getSelection(), 'backward'),
'remove-range',
);
pt.setValue(mt);
}
},
Wt = function(Ve, pt, oe) {
if (oe.editorProps.readOnly || oe.editorProps.disabled) return 'handled';
if (window && window.__BRAFT_DRAGING__IMAGE__) {
var gt = Vt.EditorState.forceSelection(oe.state.editorState, Ve);
return (
(gt = Ft.ContentUtils.insertMedias(gt, [
window.__BRAFT_DRAGING__IMAGE__.mediaData,
])),
(gt = Ft.ContentUtils.removeBlock(
gt,
window.__BRAFT_DRAGING__IMAGE__.block,
gt.getSelection(),
)),
(window.__BRAFT_DRAGING__IMAGE__ = null),
oe.lockOrUnlockEditor(!0),
oe.setValue(gt),
'handled'
);
} else if (!pt || !pt.getText()) return 'handled';
return 'not-handled';
},
Ht = function(Ve, pt) {
var oe = M()({}, pt.constructor.defaultProps.media, pt.editorProps.media),
gt = oe.pasteImage,
mt = oe.validateFn,
kt = oe.imagePasteLimit;
return (
gt &&
Ve.slice(0, kt).forEach(function(It) {
if (It && It.type.indexOf('image') > -1 && pt.braftFinder) {
var Rn = mt ? mt(It) : !0;
Rn instanceof Promise
? Rn.then(function() {
pt.braftFinder.uploadImage(It, function(rr) {
pt.isLiving &&
pt.setValue(
Ft.ContentUtils.insertMedias(pt.state.editorState, [rr]),
);
});
})
: Rn &&
pt.braftFinder.uploadImage(It, function(rr) {
pt.isLiving &&
pt.setValue(
Ft.ContentUtils.insertMedias(pt.state.editorState, [rr]),
);
});
}
}),
Ve[0] && Ve[0].type.indexOf('image') > -1 && gt ? 'handled' : 'not-handled'
);
},
Zt = function(Ve, pt, oe) {
return oe.editorProps.handleDroppedFiles &&
oe.editorProps.handleDroppedFiles(Ve, pt, oe) === 'handled'
? 'handled'
: Ht(pt, oe);
},
Cn = function(Ve, pt) {
return pt.editorProps.handlePastedFiles &&
pt.editorProps.handlePastedFiles(Ve, pt) === 'handled'
? 'handled'
: Ht(Ve, pt);
},
Qt = function(Ve, pt) {
var oe = Je()(pt.state.editorState);
if (oe && oe.toArray)
try {
var gt = Vt.ContentState.createFromBlockArray(oe.toArray()),
mt = Vt.EditorState.createWithContent(gt),
kt =
Ve.clipboardData || window.clipboardData || Ve.originalEvent.clipboardData;
mt.setConvertOptions(pt.state.editorState.convertOptions),
kt.setData('text/html', mt.toHTML()),
kt.setData('text/plain', mt.toText()),
Ve.preventDefault();
} catch (It) {
console.warn(It);
}
},
Sn = function(Ve, pt, oe, gt) {
if (
gt.editorProps.handlePastedText &&
gt.editorProps.handlePastedText(Ve, pt, oe, gt) === 'handled'
)
return 'handled';
if (!pt || gt.editorProps.stripPastedStyles) return !1;
var mt = Ft.ColorUtils.detectColorsFromHTMLString(pt);
return (
gt.setState(
{
tempColors: []
.concat(ae()(gt.state.tempColors), ae()(mt))
.filter(function(kt) {
return gt.editorProps.colors.indexOf(kt) === -1;
})
.filter(function(kt, It, Rn) {
return Rn.indexOf(kt) === It;
}),
},
function() {
gt.setValue(Ft.ContentUtils.insertHTML(oe, pt, 'paste'));
},
),
'handled'
);
},
Hn = [],
Nn = [],
tr = [],
He = [],
pe = [],
Te = [],
Ue = [],
be = [],
xe = [],
ve = [],
Ke = [],
Se = [],
Me = function(Ve, pt) {
return pt
? Ve.map(function(oe) {
return !oe.includeEditors && !oe.excludeEditors
? oe.data
: oe.includeEditors
? oe.includeEditors.indexOf(pt) !== -1
? oe.data
: !1
: oe.excludeEditors
? oe.excludeEditors.indexOf(pt) !== -1
? !1
: oe.data
: !1;
}).filter(function(oe) {
return oe;
})
: Ve.filter(function(oe) {
return !oe.includeEditors;
}).map(function(oe) {
return oe.data;
});
},
ze = function(Ve) {
return Me(tr, Ve);
},
Oe = function(Ve) {
return Me(Hn, Ve);
},
Tt = function(Ve) {
return Me(Nn, Ve, 'decorators');
},
Bt = function(Ve) {
return Me(He, Ve);
},
se = function(Ve) {
return Me(pe, Ve);
},
dt = function(Ve) {
var pt = {};
return (
Me(Te, Ve).forEach(function(oe) {
pt[oe.inlineStyleName] = oe.styleMap;
}),
pt
);
},
ut = function(Ve) {
return Me(Ue, Ve);
},
je = function(Ve, pt) {
return function(oe, gt, mt) {
return (
Me(xe, pt).forEach(function(kt) {
kt.importer && kt.importer(oe, gt) && (mt = mt.add(kt.inlineStyleName));
}),
Ve ? Ve(oe, gt, mt) : mt
);
};
},
ot = function(Ve, pt) {
return function(oe) {
oe = oe.toUpperCase();
var gt = Ve ? Ve(oe) : void 0;
return (
gt ||
(Me(ve, pt).find(function(mt) {
if (mt.inlineStyleName === oe) return (gt = mt.exporter), !0;
}),
gt)
);
};
},
Nt = function(Ve, pt) {
return function(oe, gt, mt, kt) {
var It = Ve ? Ve(oe, gt, mt, kt) : null;
return (
It ||
(Me(be, pt).find(function(Rn) {
var rr = Rn.importer ? Rn.importer(oe, gt, kt) : null;
return (
rr && (It = mt(Rn.entityType, rr.mutability || 'MUTABLE', rr.data || {})),
!!rr
);
}),
It)
);
};
},
ln = function(Ve, pt) {
return function(oe, gt) {
var mt = Ve ? Ve(oe, gt) : void 0;
if (mt) return mt;
var kt = oe.type.toUpperCase();
return (
Me(be, pt).find(function(It) {
if (It.entityType === kt)
return (mt = It.exporter ? It.exporter(oe, gt) : void 0), !0;
}),
mt
);
};
},
Mn = function(Ve, pt) {
return function(oe, gt, mt) {
var kt = Ve ? Ve(oe, gt, mt) : null;
return (
kt ||
(Me(Ke, pt).find(function(It) {
var Rn = It.importer ? It.importer(oe, gt, mt) : void 0;
return Rn && (kt = Rn), !!Rn;
}),
kt)
);
};
},
Qn = function(Ve, pt) {
return function(oe, gt) {
var mt = Ve ? Ve(oe, gt) : null;
return (
mt ||
(Me(Se, pt).find(function(kt) {
var It = kt.exporter ? kt.exporter(oe, gt) : void 0;
return It && (mt = It), !!It;
}),
mt)
);
};
},
cr = function In(Ve) {
if (Ve instanceof Array) return Ve.forEach(In), !1;
if (!Ve || !Ve.type || typeof Ve.type != 'string') return !1;
var pt = Ve.includeEditors,
oe = Ve.excludeEditors;
if (Ve.type === 'control')
Hn.push({ includeEditors: pt, excludeEditors: oe, data: Ve.control });
else if (Ve.type === 'inline-style') {
var gt = Ve.name.toUpperCase();
Ve.control &&
Hn.push({
includeEditors: pt,
excludeEditors: oe,
data: M()({ key: gt, type: 'inline-style', command: gt }, Ve.control),
}),
Ve.style &&
Te.push({
includeEditors: pt,
excludeEditors: oe,
data: { inlineStyleName: gt, styleMap: Ve.style },
}),
Ve.styleFn &&
Ue.push({
includeEditors: pt,
excludeEditors: oe,
data: { inlineStyleName: gt, styleFn: Ve.styleFn },
}),
Ve.importer &&
xe.push({
includeEditors: pt,
excludeEditors: oe,
data: { inlineStyleName: gt, importer: Ve.importer },
}),
ve.push({
includeEditors: pt,
excludeEditors: oe,
data: {
inlineStyleName: gt,
exporter: Ve.exporter
? Ve.exporter(Ve)
: Q.a.createElement('span', { style: Ve.style }),
},
});
} else if (!(Ve.type === 'block-style')) {
if (Ve.type === 'entity') {
var mt = Ve.name.toUpperCase();
Ve.control &&
Hn.push({
includeEditors: pt,
excludeEditors: oe,
data:
typeof Ve.control == 'function'
? Ve.control
: M()(
{
key: mt,
type: 'entity',
command: mt,
data: {
mutability: Ve.mutability || 'MUTABLE',
data: Ve.data || {},
},
},
Ve.control,
),
}),
be.push({
includeEditors: pt,
excludeEditors: oe,
data: { entityType: mt, importer: Ve.importer, exporter: Ve.exporter },
}),
Nn.push({
includeEditors: pt,
excludeEditors: oe,
data: { type: 'entity', decorator: { key: mt, component: Ve.component } },
});
} else if (Ve.type === 'block') {
var kt = Ve.name;
Ve.renderMap &&
He.push({
includeEditors: pt,
excludeEditors: oe,
data: { blockType: kt, renderMap: Ve.renderMap },
}),
Ve.rendererFn &&
pe.push({
includeEditors: pt,
excludeEditors: oe,
data: { blockType: kt, rendererFn: Ve.rendererFn },
}),
Ve.importer &&
Ke.push({
includeEditors: pt,
excludeEditors: oe,
data: { blockType: kt, importer: Ve.importer },
}),
Ve.exporter &&
Se.push({
includeEditors: pt,
excludeEditors: oe,
data: { blockType: kt, exporter: Ve.exporter },
});
} else if (!(Ve.type === 'atomic'))
if (Ve.type === 'decorator') {
var It = Ve.decorator;
It && It.strategy && It.component
? Nn.push({
includeEditors: pt,
excludeEditors: oe,
data: { type: 'strategy', decorator: It },
})
: It &&
It.getDecorations &&
Nn.push({
includeEditors: pt,
excludeEditors: oe,
data: { type: 'class', decorator: It },
});
} else
Ve.type === 'prop-interception' &&
tr.push({ includeEditors: pt, excludeEditors: oe, data: Ve.interceptor });
}
},
nr = function(Ve) {
return (Ve.use = cr), Ve;
},
rn = function(Ve, pt) {
var oe = Object(Yt.Map)({
atomic: { element: '' },
'code-block': {
element: 'code',
wrapper: Q.a.createElement('pre', { className: 'braft-code-block' }),
},
});
try {
var gt = Bt(Ve.editorId);
(oe = gt.reduce(function(mt, kt) {
return mt.merge(
typeof kt.renderMap == 'function' ? kt.renderMap(Ve) : kt.renderMap,
);
}, oe)),
pt && (typeof pt == 'function' ? (oe = oe.merge(pt(Ve))) : (oe = oe.merge(pt))),
(oe = Vt.DefaultDraftBlockRenderMap.merge(oe));
} catch (mt) {
console.warn(mt);
}
return oe;
},
$e = L(11),
st = L.n($e),
ht = L(24),
Be = L.n(ht),
at = L(45),
Mt = L(46),
qt = function(Ve) {
var pt = Ve.active,
oe = Ve.onClick,
gt = Ve.className;
return Q.a.createElement('div', {
onClick: function() {
return oe();
},
className: 'bf-switch ' + gt + (pt ? ' active' : ''),
});
},
Un = function(Ve, pt) {
return [
{
key: 'undo',
title: Ve.controls.undo,
text: Q.a.createElement('i', { className: 'bfi-undo' }),
type: 'editor-method',
command: 'undo',
},
{
key: 'redo',
title: Ve.controls.redo,
text: Q.a.createElement('i', { className: 'bfi-redo' }),
type: 'editor-method',
command: 'redo',
},
{
key: 'remove-styles',
title: Ve.controls.removeStyles,
text: Q.a.createElement('i', { className: 'bfi-format_clear' }),
type: 'editor-method',
command: 'removeSelectionInlineStyles',
},
{
key: 'hr',
title: Ve.controls.hr,
text: Q.a.createElement('i', { className: 'bfi-hr' }),
type: 'editor-method',
command: 'insertHorizontalLine',
},
{
key: 'bold',
title: Ve.controls.bold,
text: Q.a.createElement('i', { className: 'bfi-bold' }),
type: 'inline-style',
command: 'bold',
},
{
key: 'italic',
title: Ve.controls.italic,
text: Q.a.createElement('i', { className: 'bfi-italic' }),
type: 'inline-style',
command: 'italic',
},
{
key: 'underline',
title: Ve.controls.underline,
text: Q.a.createElement('i', { className: 'bfi-underlined' }),
type: 'inline-style',
command: 'underline',
},
{
key: 'strike-through',
title: Ve.controls.strikeThrough,
text: Q.a.createElement('i', { className: 'bfi-strikethrough' }),
type: 'inline-style',
command: 'strikethrough',
},
{
key: 'superscript',
title: Ve.controls.superScript,
text: Q.a.createElement('i', { className: 'bfi-superscript' }),
type: 'inline-style',
command: 'superscript',
},
{
key: 'subscript',
title: Ve.controls.subScript,
text: Q.a.createElement('i', { className: 'bfi-subscript' }),
type: 'inline-style',
command: 'subscript',
},
{ key: 'headings', title: Ve.controls.headings, type: 'headings' },
{
key: 'blockquote',
title: Ve.controls.blockQuote,
text: Q.a.createElement('i', { className: 'bfi-quote' }),
type: 'block-type',
command: 'blockquote',
},
{
key: 'code',
title: Ve.controls.code,
text: Q.a.createElement('i', { className: 'bfi-code' }),
type: 'block-type',
command: 'code-block',
},
{
key: 'list-ul',
title: Ve.controls.unorderedList,
text: Q.a.createElement('i', { className: 'bfi-list' }),
type: 'block-type',
command: 'unordered-list-item',
},
{
key: 'list-ol',
title: Ve.controls.orderedList,
text: Q.a.createElement('i', { className: 'bfi-list-numbered' }),
type: 'block-type',
command: 'ordered-list-item',
},
{ key: 'link', title: Ve.controls.link, type: 'link' },
{ key: 'text-color', title: Ve.controls.color, type: 'text-color' },
{ key: 'line-height', title: Ve.controls.lineHeight, type: 'line-height' },
{
key: 'letter-spacing',
title: Ve.controls.letterSpacing,
type: 'letter-spacing',
},
{ key: 'text-indent', title: Ve.controls.textIndent, type: 'text-indent' },
{ key: 'font-size', title: Ve.controls.fontSize, type: 'font-size' },
{ key: 'font-family', title: Ve.controls.fontFamily, type: 'font-family' },
{ key: 'text-align', title: Ve.controls.textAlign, type: 'text-align' },
{
key: 'media',
title: Ve.controls.media,
text: Q.a.createElement('i', { className: 'bfi-media' }),
type: 'media',
},
{
key: 'emoji',
title: Ve.controls.emoji,
text: Q.a.createElement('i', { className: 'bfi-emoji' }),
type: 'emoji',
},
{
key: 'clear',
title: Ve.controls.clear,
text: Q.a.createElement('i', { className: 'bfi-clear_all' }),
type: 'editor-method',
command: 'clearEditorContent',
},
{
key: 'fullscreen',
title: pt.state.isFullscreen
? Ve.controls.exitFullscreen
: Ve.controls.fullscreen,
text: Q.a.createElement('i', {
className: pt.state.isFullscreen ? 'bfi-fullscreen-exit' : 'bfi-fullscreen',
}),
type: 'editor-method',
command: 'toggleFullscreen',
},
{ key: 'modal', type: 'modal' },
{ key: 'button', type: 'button' },
{ key: 'dropdown', type: 'dropdown' },
{ key: 'component', type: 'component' },
];
},
cn = {
'float-left': {
text: Q.a.createElement('span', { 'data-float': 'left' }, ''),
command: 'setImageFloat|left',
},
'float-right': {
text: Q.a.createElement('span', { 'data-float': 'right' }, ''),
command: 'setImageFloat|right',
},
'align-left': {
text: Q.a.createElement('span', { 'data-align': 'left' }, ''),
command: 'setImageAlignment|left',
},
'align-center': {
text: Q.a.createElement('span', { 'data-align': 'center' }, ''),
command: 'setImageAlignment|center',
},
'align-right': {
text: Q.a.createElement('span', { 'data-align': 'right' }, ''),
command: 'setImageAlignment|right',
},
size: { text: Q.a.createElement('span', null, ''), command: 'toggleSizeEditor' },
link: { text: Q.a.createElement('span', null, ''), command: 'toggleLinkEditor' },
remove: { text: Q.a.createElement('span', null, ''), command: 'removeImage' },
},
on = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'state', {
toolbarVisible: !1,
toolbarOffset: 0,
linkEditorVisible: !1,
sizeEditorVisible: !1,
tempLink: null,
tempWidth: null,
tempHeight: null,
}),
Z()(F()(oe), 'initialLeft', void 0),
Z()(F()(oe), 'initialTop', void 0),
Z()(F()(oe), 'initialWidth', void 0),
Z()(F()(oe), 'initialHeight', void 0),
Z()(F()(oe), 'reSizeType', void 0),
Z()(F()(oe), 'zoom', void 0),
Z()(F()(oe), 'changeSize', function(It) {
var Rn = oe.reSizeType;
oe.initialLeft ||
((oe.initialLeft = It.screenX), (oe.initialTop = It.screenY)),
Rn === 'rightbottom' &&
((oe.initialHeight += It.screenY - oe.initialTop),
(oe.initialWidth += It.screenX - oe.initialLeft)),
Rn === 'leftbottom' &&
((oe.initialHeight += It.screenY - oe.initialTop),
(oe.initialWidth += -It.screenX + oe.initialLeft)),
(oe.initialLeft = It.screenX),
(oe.initialTop = It.screenY);
}),
Z()(F()(oe), 'moveImage', function(It) {
oe.changeSize(It),
oe.setState({
tempWidth: Math.abs(oe.initialWidth),
tempHeight: Math.abs(oe.initialHeight),
});
}),
Z()(F()(oe), 'upImage', function() {
var It = oe.props.imageEqualRatio;
It ? oe.confirmImageSizeEqualRatio() : oe.confirmImageSize(),
document.removeEventListener('mousemove', oe.moveImage),
document.removeEventListener('mouseup', oe.upImage);
}),
Z()(F()(oe), 'repareChangeSize', function(It) {
return function(Rn) {
oe.reSizeType = It;
var rr = oe.imageElement.getBoundingClientRect();
(oe.initialLeft = oe.initialTop = 0),
(oe.initialWidth = rr.width),
(oe.initialHeight = rr.height),
(oe.zoom = rr.width / rr.height),
Rn.preventDefault(),
document.addEventListener('mousemove', oe.moveImage),
document.addEventListener('mouseup', oe.upImage);
};
}),
Z()(F()(oe), 'preventDragEvent', function(It) {
It.stopPropagation(), It.preventDefault();
}),
Z()(F()(oe), 'handleDragStart', function() {
return oe.props.editor.editorProps.readOnly ||
oe.props.editor.editorProps.disabled
? !1
: ((window.__BRAFT_DRAGING__IMAGE__ = {
block: oe.props.block,
mediaData: M()({ type: 'IMAGE' }, oe.props.mediaData),
}),
oe.setState({ toolbarVisible: !1 }, function() {
oe.unlockEditor();
}),
!0);
}),
Z()(F()(oe), 'handleDragEnd', function() {
return (window.__BRAFT_DRAGING__IMAGE__ = null), !1;
}),
Z()(F()(oe), 'executeCommand', function(It) {
if (typeof It == 'string') {
var Rn = It.split('|'),
rr = Be()(Rn, 2),
Ar = rr[0],
kr = rr[1];
oe[Ar] && oe[Ar](kr);
} else typeof It == 'function' && It(oe.props.block, oe.props.mediaData, oe.props.editor.getValue());
}),
Z()(F()(oe), 'removeImage', function() {
oe.props.editor.setValue(
Ft.ContentUtils.removeBlock(oe.props.editor.getValue(), oe.props.block),
),
oe.unlockEditor();
}),
Z()(F()(oe), 'toggleLinkEditor', function() {
oe.setState({
linkEditorVisible: !oe.state.linkEditorVisible,
sizeEditorVisible: !1,
});
}),
Z()(F()(oe), 'toggleSizeEditor', function() {
oe.setState({
linkEditorVisible: !1,
sizeEditorVisible: !oe.state.sizeEditorVisible,
});
}),
Z()(F()(oe), 'handleLinkInputKeyDown', function(It) {
if (It.keyCode === 13) oe.confirmImageLink();
else return;
}),
Z()(F()(oe), 'setImageLink', function(It) {
oe.setState({ tempLink: It.currentTarget.value });
return;
}),
Z()(F()(oe), 'confirmImageLink', function() {
var It = oe.state.tempLink,
Rn = oe.props.hooks('set-image-link', It)(It);
if (Rn === !1) return !1;
typeof Rn == 'string' && (It = Rn),
It !== null &&
(oe.props.editor.setValue(
Ft.ContentUtils.setMediaData(
oe.props.editor.getValue(),
oe.props.entityKey,
{ link: It },
),
),
window.setImmediate(oe.props.editor.forceRender));
}),
Z()(F()(oe), 'handleSizeInputKeyDown', function(It) {
if (It.keyCode === 13) oe.confirmImageSize();
else return;
}),
Z()(F()(oe), 'setImageWidth', function(It) {
var Rn = It.currentTarget,
rr = Rn.value;
rr && !isNaN(rr) && (rr = rr + 'px'), oe.setState({ tempWidth: rr });
return;
}),
Z()(F()(oe), 'setImageHeight', function(It) {
var Rn = It.currentTarget,
rr = Rn.value;
rr && !isNaN(rr) && (rr = rr + 'px'), oe.setState({ tempHeight: rr });
return;
}),
Z()(F()(oe), 'confirmImageSize', function() {
var It = oe.state,
Rn = It.tempWidth,
rr = It.tempHeight,
Ar = {};
Rn !== null && (Ar.width = Rn), rr !== null && (Ar.height = rr);
var kr = oe.props.hooks('set-image-size', Ar)(Ar);
if (kr === !1) return !1;
kr && (kr.width || kr.height) && (Ar = kr),
oe.props.editor.setValue(
Ft.ContentUtils.setMediaData(
oe.props.editor.getValue(),
oe.props.entityKey,
Ar,
),
),
window.setImmediate(oe.props.editor.forceRender);
}),
Z()(F()(oe), 'confirmImageSizeEqualRatio', function() {
var It = oe.state,
Rn = It.tempWidth,
rr = It.tempHeight,
Ar,
kr,
Kr = {};
Rn / rr > oe.zoom
? ((Ar = Math.floor(rr * oe.zoom)),
oe.setState({ tempWidth: Ar }),
(kr = rr))
: Rn / rr < oe.zoom &&
((kr = Math.floor(Rn / oe.zoom)),
oe.setState({ tempHeight: kr }),
(Ar = Rn)),
Ar !== null && (Kr.width = Ar),
kr !== null && (Kr.height = kr);
var Aa = oe.props.hooks('set-image-size', Kr)(Kr);
if (Aa === !1) return !1;
Aa && (Aa.width || Aa.height) && (Kr = Aa),
oe.props.editor.setValue(
Ft.ContentUtils.setMediaData(
oe.props.editor.getValue(),
oe.props.entityKey,
Kr,
),
),
window.setImmediate(oe.props.editor.forceRender);
}),
Z()(F()(oe), 'setImageFloat', function(It) {
var Rn = oe.props.hooks('set-image-float', It)(It);
if (Rn === !1) return !1;
typeof Rn == 'string' && (It = Rn),
oe.props.editor.setValue(
Ft.ContentUtils.setMediaPosition(
oe.props.editor.getValue(),
oe.props.block,
{ float: It },
),
),
oe.unlockEditor();
}),
Z()(F()(oe), 'setImageAlignment', function(It) {
var Rn = oe.props.hooks('set-image-alignment', It)(It);
if (Rn === !1) return !1;
typeof Rn == 'string' && (It = Rn),
oe.props.editor.setValue(
Ft.ContentUtils.setMediaPosition(
oe.props.editor.getValue(),
oe.props.block,
{ alignment: It },
),
),
oe.unlockEditor();
}),
Z()(F()(oe), 'showToolbar', function(It) {
if (
oe.props.editor.editorProps.readOnly ||
oe.props.editor.editorProps.disabled
)
return !1;
It.preventDefault(),
oe.state.toolbarVisible ||
oe.setState({ toolbarVisible: !0 }, function() {
oe.lockEditor(), oe.setState({ toolbarOffset: oe.calcToolbarOffset() });
});
}),
Z()(F()(oe), 'hideToolbar', function(It) {
It.preventDefault(),
oe.setState({ toolbarVisible: !1 }, function() {
oe.unlockEditor();
});
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
var oe = this,
gt = this.props,
mt = gt.mediaData,
kt = gt.language,
It = gt.imageControls,
Rn = gt.imageResizable,
rr = this.state,
Ar = rr.toolbarVisible,
kr = rr.toolbarOffset,
Kr = rr.linkEditorVisible,
Aa = rr.sizeEditorVisible,
Ja = rr.tempWidth,
Vi = rr.tempHeight,
Do = this.props.block.getData(),
To = Do.get('float'),
Oi = Do.get('alignment'),
Ka = mt.url,
ha = mt.link,
Di = mt.link_target,
Ma = mt.width,
si = mt.height,
ki = mt.meta,
na = {},
ra = !1;
To
? (Oi = null)
: Oi === 'left'
? ((na.float = 'left'), (ra = !0))
: Oi === 'right'
? ((na.float = 'right'), (ra = !0))
: Oi === 'center'
? (na.textAlign = 'center')
: ((na.float = 'left'), (ra = !0));
var Ca = It.map(function(Da, li) {
return typeof Da == 'string' && cn[Da]
? Q.a.createElement(
'a',
{
className: Da === 'link' && ha ? 'active' : '',
key: li,
onClick: function() {
return oe.executeCommand(cn[Da].command);
},
},
cn[Da].text,
)
: Da && (Da.render || Da.text)
? Da.render
? Da.render(mt, oe.props.block)
: Q.a.createElement(
'a',
{
key: li,
onClick: function() {
return Da.onClick && oe.executeCommand(Da.onClick);
},
},
Da.text,
)
: null;
});
return Q.a.createElement(
'div',
{ className: 'bf-media' },
Q.a.createElement(
'div',
{
style: na,
draggable: !0,
onMouseEnter: this.showToolbar,
onMouseMove: this.showToolbar,
onMouseLeave: this.hideToolbar,
onDragStart: this.handleDragStart,
onDragEnd: this.handleDragEnd,
ref: function(li) {
return (oe.mediaEmbederInstance = li);
},
className: 'bf-image',
},
Ar
? Q.a.createElement(
'div',
{
style: { marginLeft: kr },
ref: function(li) {
return (oe.toolbarElement = li);
},
'data-float': To,
'data-align': Oi,
className: 'bf-media-toolbar',
},
Kr
? Q.a.createElement(
'div',
{ className: 'bf-image-link-editor' },
Q.a.createElement(
'div',
{ className: 'editor-input-group' },
Q.a.createElement('input', {
type: 'text',
placeholder: kt.linkEditor.inputWithEnterPlaceHolder,
onKeyDown: this.handleLinkInputKeyDown,
onChange: this.setImageLink,
defaultValue: ha,
}),
Q.a.createElement(
'button',
{ type: 'button', onClick: this.confirmImageLink },
kt.base.confirm,
),
),
Q.a.createElement(
'div',
{ className: 'switch-group' },
Q.a.createElement(qt, {
active: Di === '_blank',
onClick: function() {
return oe.setImageLinkTarget(Di);
},
}),
Q.a.createElement(
'label',
null,
kt.linkEditor.openInNewWindow,
),
),
)
: null,
Aa
? Q.a.createElement(
'div',
{ className: 'bf-image-size-editor' },
Q.a.createElement(
'div',
{ className: 'editor-input-group' },
Q.a.createElement('input', {
type: 'text',
placeholder: kt.base.width,
onKeyDown: this.handleSizeInputKeyDown,
onChange: this.setImageWidth,
defaultValue: Ma,
}),
Q.a.createElement('input', {
type: 'text',
placeholder: kt.base.height,
onKeyDown: this.handleSizeInputKeyDown,
onChange: this.setImageHeight,
defaultValue: si,
}),
Q.a.createElement(
'button',
{ type: 'button', onClick: this.confirmImageSize },
kt.base.confirm,
),
),
)
: null,
Ca,
Q.a.createElement('i', {
style: { marginLeft: kr * -1 },
className: 'bf-media-toolbar-arrow',
}),
)
: null,
Q.a.createElement(
'div',
{
style: {
position: 'relative',
width: ''.concat(Ma, 'px'),
height: ''.concat(si, 'px'),
display: 'inline-block',
},
},
Q.a.createElement(
'img',
st()(
{
ref: function(li) {
return (oe.imageElement = li);
},
src: Ka,
width: Ma,
height: si,
},
ki,
),
),
Ar && Rn
? Q.a.createElement('div', {
className: 'bf-csize-icon right-bottom',
onMouseDown: this.repareChangeSize('rightbottom'),
})
: null,
Ar && Rn
? Q.a.createElement('div', {
className: 'bf-csize-icon left-bottom',
onMouseDown: this.repareChangeSize('leftbottom'),
})
: null,
Q.a.createElement('div', {
className: 'bf-pre-csize '.concat(this.reSizeType),
style: { width: ''.concat(Ja, 'px'), height: ''.concat(Vi, 'px') },
}),
),
),
ra &&
Q.a.createElement('div', {
className: 'clearfix',
style: { clear: 'both', height: 0, lineHeight: 0, float: 'none' },
}),
);
},
},
{
key: 'lockEditor',
value: function() {
this.props.editor.lockOrUnlockEditor(!0);
},
},
{
key: 'unlockEditor',
value: function() {
this.props.editor.lockOrUnlockEditor(!1);
},
},
{
key: 'calcToolbarOffset',
value: function() {
var oe = this.props,
gt = oe.getContainerNode,
mt = oe.containerNode,
kt = gt ? gt() : mt;
if (!kt) return 0;
var It = kt.querySelector('.bf-content').getBoundingClientRect(),
Rn = this.toolbarElement.getBoundingClientRect(),
rr = this.imageElement.getBoundingClientRect(),
Ar = It.right - (rr.right - rr.width / 2 + Rn.width / 2),
kr = rr.left + rr.width / 2 - Rn.width / 2 - It.left;
return Ar < 10 ? Ar - 10 : kr < 10 ? kr * -1 + 10 : 0;
},
},
{
key: 'setImageLinkTarget',
value: function(oe) {
var gt = this.props.hooks('set-image-link-target', oe)(oe);
if (gt === !1) return !1;
typeof gt == 'string' && (oe = gt),
(oe = oe === '_blank' ? '' : '_blank'),
this.props.editor.setValue(
Ft.ContentUtils.setMediaData(
this.props.editor.getValue(),
this.props.entityKey,
{ link_target: oe },
),
),
window.setImmediate(this.props.editor.forceRender);
},
},
]),
Ve
);
})(Q.a.Component),
An = L(47),
kn = L(48),
wr = L(16),
pr = L.n(wr),
Rr = (function(In) {
H()(Ve, In);
function Ve(pt) {
var oe;
return (
N()(this, Ve),
(oe = u()(this, T()(Ve).call(this, pt))),
Z()(F()(oe), 'handleTransitionEnd', function() {
if (!oe.rootElement || !oe.rootElement.classList) return !1;
oe.rootElement.classList.contains('active') ||
(pr.a.unmountComponentAtNode(oe.rootElement) &&
oe.rootElement.parentNode.removeChild(oe.rootElement));
}),
Z()(F()(oe), 'handleMouseDown', function(gt) {
var mt = gt.target.tagName.toLowerCase();
if (mt === 'input' || mt === 'textarea') return !1;
gt.preventDefault();
}),
Z()(F()(oe), 'handleCancel', function() {
oe.props.closeOnCancel && oe.close(),
oe.props.onCancel && oe.props.onCancel();
}),
Z()(F()(oe), 'handleConfirm', function() {
oe.props.closeOnConfirm && oe.close(),
oe.props.onConfirm && oe.props.onConfirm();
}),
Z()(F()(oe), 'handleMaskClick', function() {
oe.props.closeOnBlur && oe.close(), oe.props.onBlue && oe.props.onBlue();
}),
Z()(F()(oe), 'close', function() {
oe.unrenderComponent(), oe.props.onClose && oe.props.onClose();
}),
(oe.active = !1),
(oe.componentId = 'BRAFT-MODAL-' + Ft.BaseUtils.UniqueIndex()),
oe
);
}
return (
C()(Ve, [
{
key: 'componentDidMount',
value: function() {
this.props.visible &&
((this.active = !0), this.renderComponent(this.props));
},
},
{
key: 'componentWillReceiveProps',
value: function(oe) {
this.props.visible && !oe.visible
? this.unrenderComponent()
: (this.props.visible || oe.visible) &&
((this.active = !0), this.renderComponent(oe));
},
},
{
key: 'render',
value: function() {
return null;
},
},
{
key: 'unrenderComponent',
value: function() {
(this.active = !1),
this.activeId && window.clearImmediate(this.activeId),
this.rootElement &&
this.rootElement.classList &&
this.rootElement.classList.remove('active');
},
},
{
key: 'renderComponent',
value: function(oe) {
var gt = this;
if (!this.active) return !1;
var mt = oe.title,
kt = oe.className,
It = oe.width,
Rn = oe.height,
rr = oe.children,
Ar = oe.component,
kr = oe.confirmable,
Kr = oe.showFooter,
Aa = oe.showCancel,
Ja = oe.showConfirm,
Vi = oe.showClose,
Do = oe.cancelText,
To = oe.confirmText,
Oi = oe.bottomText,
Ka = oe.language;
typeof Aa == 'undefined' && (Aa = !0),
typeof Vi == 'undefined' && (Vi = !0),
typeof Ja == 'undefined' && (Ja = !0),
typeof Kr == 'undefined' && (Kr = !0);
var ha = Q.a.createElement(
'div',
{
onMouseDown: this.handleMouseDown,
className: 'bf-modal ' + (kt || ''),
},
Q.a.createElement('div', {
className: 'bf-modal-mask',
onClick: this.handleMaskClick,
}),
Q.a.createElement(
'div',
{
onTransitionEnd: this.handleTransitionEnd,
style: { width: It, height: Rn },
className: 'bf-modal-content',
},
Q.a.createElement(
'div',
{ className: 'bf-modal-header' },
Q.a.createElement('h3', { className: 'bf-modal-caption' }, mt),
Vi &&
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.close,
className: 'bf-modal-close-button',
},
Q.a.createElement('i', { className: 'bfi-close' }),
),
),
Q.a.createElement('div', { className: 'bf-modal-body' }, rr || Ar),
Kr
? Q.a.createElement(
'div',
{ className: 'bf-modal-footer' },
Q.a.createElement(
'div',
{ className: 'bf-modal-addon-text' },
Oi,
),
Q.a.createElement(
'div',
{ className: 'bf-modal-buttons' },
Aa &&
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleCancel,
className: 'bf-modal-cancel',
},
Do || Ka.base.cancel,
),
Ja &&
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleConfirm,
className: 'bf-modal-confirm ' + (kr ? '' : 'disabled'),
},
To || Ka.base.confirm,
),
),
)
: null,
),
);
(this.rootElement = document.querySelector('#' + this.componentId)),
this.rootElement ||
((this.rootElement = document.createElement('div')),
(this.rootElement.id = this.componentId),
(this.rootElement.className = 'bf-modal-root'),
document.body.appendChild(this.rootElement)),
pr.a.render(ha, this.rootElement),
(this.activeId = window.setImmediate(function() {
gt.rootElement.classList.add('active');
}));
},
},
]),
Ve
);
})(Q.a.Component);
Z()(Rr, 'defaultProps', { showFooter: !0, closeOnBlur: !0 });
var Nr = function(Ve) {
var pt = document.createElement('div');
(pt.style.display = 'none'),
document.body.appendChild(pt),
(Ve = M()({ visible: !0, closeOnConfirm: !0, closeOnCancel: !0 }, Ve));
var oe = function() {
pr.a.unmountComponentAtNode(pt) && pt.parentNode.removeChild(pt);
},
gt = function() {
Ve.onConfirm && Ve.onConfirm();
},
mt = function() {
Ve.onCancel && Ve.onCancel();
},
kt = function() {
oe(), Ve.onClose && Ve.onClose();
},
It = pr.a.render(
Q.a.createElement(
Rr,
st()({}, Ve, { onConfirm: gt, onCancel: mt, onClose: kt }),
),
pt,
);
return (It.destroy = oe), (It.update = It.renderComponent), It;
},
lt = L(49),
wt = function(Ve, pt, oe) {
return Nr({ title: Ve, component: pt, language: oe, showFooter: !1 });
},
bt = { video: 'bfi-film', audio: 'bfi-music', embed: 'bfi-code' },
$t = function(Ve) {
var pt = Ve.title,
oe = Ve.type,
gt = Ve.language,
mt = Ve.name,
kt = Ve.url,
It = Ve.poster,
Rn = Ve.children,
rr = Ve.onRemove;
return Q.a.createElement(
'div',
{ className: 'bf-player-holder '.concat(oe) },
Q.a.createElement(
'div',
{ className: 'icon-badge' },
Q.a.createElement('i', { className: bt[oe] }),
Q.a.createElement('span', { className: 'text' }, gt.media[oe]),
),
Q.a.createElement(
'button',
{ onMouseDown: rr, className: 'button-remove' },
Q.a.createElement('i', { className: 'bfi-close' }),
),
Q.a.createElement(
'button',
{
onMouseDown: function() {
return wt(mt ? ''.concat(pt, ':').concat(mt) : pt, Rn, gt);
},
className: 'button-play',
},
Q.a.createElement('i', { className: 'bfi-play_arrow' }),
),
mt ? Q.a.createElement('h5', { className: 'bf-name' }, mt) : null,
Q.a.createElement('h6', { className: 'bf-url' }, kt),
It
? Q.a.createElement('div', {
className: 'bf-poster',
style: { backgroundImage: 'url('.concat(It, ')') },
})
: null,
);
},
er = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'removeVideo', function() {
oe.props.editor.setValue(
Ft.ContentUtils.removeBlock(oe.props.editorState, oe.props.block),
);
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
var oe = this.props,
gt = oe.mediaData,
mt = oe.language,
kt = gt.url,
It = gt.name,
Rn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-video-wrap' },
Q.a.createElement(
$t,
{
type: 'video',
onRemove: this.removeVideo,
poster: (Rn && Rn.poster) || '',
language: mt,
url: kt,
name: It,
title: mt.videoPlayer.title,
},
Q.a.createElement(
'div',
{ className: 'bf-video-player' },
Q.a.createElement(
'video',
{ controls: !0, poster: (Rn && Rn.poster) || '' },
Q.a.createElement('source', { src: kt }),
),
),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
sr = L(50),
hr = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'removeAudio', function() {
oe.props.editor.setValue(
Ft.ContentUtils.removeBlock(oe.props.editorState, oe.props.block),
);
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
var oe = this.props,
gt = oe.mediaData,
mt = oe.language,
kt = gt.url,
It = gt.name,
Rn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-audio-wrap' },
Q.a.createElement(
$t,
{
type: 'audio',
onRemove: this.removeAudio,
poster: (Rn && Rn.poster) || '',
language: mt,
url: kt,
name: It,
title: mt.audioPlayer.title,
},
Q.a.createElement(
'div',
{ className: 'bf-audio-player' },
Q.a.createElement('audio', { controls: !0, src: kt }),
),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
bn = L(51),
Ur = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'removeEmbed', function() {
oe.props.editor.setValue(
Ft.ContentUtils.removeBlock(oe.props.editorState, oe.props.block),
);
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
var oe = this.props,
gt = oe.mediaData,
mt = oe.language,
kt = gt.name,
It = gt.url,
Rn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-embed-wrap' },
Q.a.createElement(
$t,
{
type: 'embed',
onRemove: this.removeEmbed,
poster: (Rn && Rn.poster) || '',
language: mt,
url: It,
name: kt,
title: mt.videoPlayer.embedTitle,
},
Q.a.createElement('div', {
className: 'bf-embed-player',
dangerouslySetInnerHTML: { __html: It },
}),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
sa = L(52),
zr = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'removeHorizontalLine', function() {
oe.props.editor.setValue(
Ft.ContentUtils.removeBlock(oe.props.editorState, oe.props.block),
);
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
return Q.a.createElement(
'div',
{ className: 'bf-hr' },
Q.a.createElement(
'div',
{ className: 'bf-media-toolbar' },
Q.a.createElement('a', { onClick: this.removeHorizontalLine }, ''),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
la = function In() {
var Ve = this;
N()(this, In),
Z()(this, 'superProps', void 0),
Z()(this, 'customBlockRendererFn', void 0),
Z()(this, 'getRenderFn', function(pt, oe) {
return (
(Ve.superProps = pt), (Ve.customBlockRendererFn = oe), Ve.blockRendererFn
);
}),
Z()(this, 'renderAtomicBlock', function(pt) {
var oe = Ve.superProps,
gt = pt.block.getEntityAt(0);
if (!gt) return null;
var mt = pt.contentState.getEntity(gt),
kt = mt.getData(),
It = mt.getType(),
Rn = M()({}, oe, { block: pt.block, mediaData: kt, entityKey: gt });
if (It === 'IMAGE') return Q.a.createElement(on, Rn);
if (It === 'AUDIO') return Q.a.createElement(hr, Rn);
if (It === 'VIDEO') return Q.a.createElement(er, Rn);
if (It === 'EMBED') return Q.a.createElement(Ur, Rn);
if (It === 'HR') return Q.a.createElement(zr, Rn);
if (oe.extendAtomics) {
for (var rr = oe.extendAtomics, Ar = 0; Ar < rr.length; Ar++)
if (It === rr[Ar].type) {
var kr = rr[Ar].component;
return Q.a.createElement(kr, Rn);
}
}
return null;
}),
Z()(this, 'blockRendererFn', function(pt) {
var oe = Ve.customBlockRendererFn,
gt = Ve.superProps,
mt = pt.getType(),
kt = null;
if ((oe && (kt = oe(pt, gt) || null), kt)) return kt;
var It = se(gt.editorId);
return (
It.find(function(Rn) {
if (
Rn.blockType === mt ||
(Rn.blockType instanceof RegExp && Rn.blockType.test(mt))
)
return (kt = Rn.rendererFn ? Rn.rendererFn(gt) : null), !0;
}),
kt ||
(mt === 'atomic' &&
(kt = { component: Ve.renderAtomicBlock, editable: !1 }),
kt)
);
});
},
yi = new la(),
bi = yi.getRenderFn,
oi = function(Ve) {
return function(pt) {
var oe = pt.getData() && pt.getData().get('textAlign'),
gt = pt.getData() && pt.getData().get('textIndent'),
mt = pt.getData() && pt.getData().get('float'),
kt = '';
return (
oe && (kt = 'bfa-'.concat(oe)),
gt && gt !== 0 && (kt += ' bftd-'.concat(gt)),
mt && (kt += ' bff-'.concat(mt)),
Ve && (kt += Ve(pt) || ''),
kt
);
};
},
ro = function(Ve) {
var pt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
oe = dt(Ve.editorId);
return M()(
{
SUPERSCRIPT: { position: 'relative', top: '-8px', fontSize: '11px' },
SUBSCRIPT: { position: 'relative', bottom: '-8px', fontSize: '11px' },
},
oe,
pt,
);
},
Si = function(Ve) {
return Ve.split('-')[1];
},
La = function(Ve, pt) {
return function(oe, gt) {
var mt = {},
kt = pt.fontFamilies,
It = pt.unitExportFn,
Rn = pt.customStyleFn,
rr = ut(Ve.editorId);
return (
rr.forEach(function(Ar) {
mt = Ar.styleFn ? Ar.styleFn(oe, gt, mt) : mt;
}),
(mt = Rn ? Rn(oe, gt, mt) : {}),
oe.forEach(function(Ar) {
Ar.indexOf('COLOR-') === 0
? (mt.color = '#' + Si(Ar))
: Ar.indexOf('BGCOLOR-') === 0
? (mt.backgroundColor = '#' + Si(Ar))
: Ar.indexOf('FONTSIZE-') === 0
? (mt.fontSize = It(Si(Ar), 'font-size', 'editor'))
: Ar.indexOf('LINEHEIGHT-') === 0
? (mt.lineHeight = It(Si(Ar), 'line-height', 'editor'))
: Ar.indexOf('LETTERSPACING-') === 0
? (mt.letterSpacing = It(Si(Ar), 'letter-spacing', 'editor'))
: Ar.indexOf('TEXTINDENT-') === 0
? (mt.textIndent = It(Si(Ar), 'text-indent', 'editor'))
: Ar.indexOf('FONTFAMILY-') === 0 &&
(mt.fontFamily =
(
kt.find(function(kr) {
return kr.name.toUpperCase() === Si(Ar);
}) || {}
).family || '');
}),
mt
);
};
},
ji = L(18),
zi = L.n(ji),
Ha = function(Ve) {
var pt = Ve.children,
oe = Ve.entityKey,
gt = Ve.contentState,
mt = gt.getEntity(oe).getData(),
kt = mt.href,
It = mt.target;
return Q.a.createElement(
'span',
{ className: 'bf-link-wrap' },
Q.a.createElement(
'a',
{
onClick: function(rr) {
return ao(rr, kt);
},
className: 'bf-link',
href: kt,
target: It,
},
pt,
),
);
},
ao = function(Ve, pt) {
if (Ve.getModifierState('Control') || Ve.getModifierState('Meta')) {
var oe = document.createElement('a');
(oe.href = pt), (oe.target = Ve.currentTarget.target), oe.click();
}
},
Ai = '-';
zi.a.prototype.getDecorations = function(In, Ve) {
var pt = Array(In.getText().length).fill(null);
return (
this.decorators.forEach(function(oe, gt) {
oe.getDecorations(In, Ve).forEach(function(mt, kt) {
if (!mt) return;
(mt = gt + Ai + mt), (pt[kt] = mt);
});
}),
Ge.a.List(pt)
);
};
var Zi = [{ type: 'entity', decorator: { key: 'LINK', component: Ha } }],
$r = function(Ve) {
return function(pt, oe, gt) {
pt.findEntityRanges(function(mt) {
var kt = mt.getEntity();
return kt !== null && gt.getEntity(kt).getType() === Ve;
}, oe);
};
},
Va = function(Ve) {
var pt = Tt(Ve),
oe = [].concat(
Zi,
ae()(
pt.filter(function(kt) {
return kt.type === 'entity';
}),
),
),
gt = pt.filter(function(kt) {
return kt.type === 'strategy';
}),
mt = pt.filter(function(kt) {
return kt.type === 'class';
});
return new zi.a(
[].concat(
ae()(
mt.map(function(kt) {
return kt.decorator;
}),
),
[
new Vt.CompositeDecorator(
gt.map(function(kt) {
return kt.decorator;
}),
),
new Vt.CompositeDecorator(
oe.map(function(kt) {
return {
strategy: $r(kt.decorator.key),
component: kt.decorator.component,
};
}),
),
],
),
);
},
Ya = rn,
Ni = bi,
ma = oi,
Gi = ro,
go = La,
Qa = Va,
mo = L(53),
Mi = L(54),
Ti = L(55),
Ua = [],
Fi = !1,
Hi = !1,
fi = {
resolve: function(Ve) {
var pt = Ft.BaseUtils.UniqueIndex();
return Ua.push({ id: pt, eventHandler: Ve }), pt;
},
unresolve: function(Ve) {
Ua = Ua.filter(function(pt) {
return pt.id !== Ve;
});
},
};
!Fi &&
(typeof window == 'undefined' ? 'undefined' : R()(window)) === 'object' &&
(window.addEventListener('resize', function(In) {
clearTimeout(Hi),
(Hi = setTimeout(function() {
Ua.map(function(Ve) {
typeof Ve.eventHandler == 'function' && Ve.eventHandler(In);
}),
(Hi = !1);
}, 100));
}),
(Fi = !0));
var za = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'responsiveResolveId', null),
Z()(F()(oe), 'dropDownHandlerElement', null),
Z()(F()(oe), 'dropDownContentElement', null),
Z()(F()(oe), 'state', { active: !1, offset: 0 }),
Z()(F()(oe), 'fixDropDownPosition', function() {
var It = oe.props.getContainerNode().getBoundingClientRect(),
Rn = oe.dropDownHandlerElement.getBoundingClientRect(),
rr = oe.dropDownContentElement.getBoundingClientRect(),
Ar = 0,
kr = Rn.right - Rn.width / 2 + rr.width / 2,
Kr = Rn.left + Rn.width / 2 - rr.width / 2;
(kr = It.right - kr),
(Kr = Kr - It.left),
kr < 10 ? (Ar = kr - 10) : Kr < 10 && (Ar = Kr * -1 + 10),
Ar !== oe.state.offset && oe.setState({ offset: Ar });
}),
Z()(F()(oe), 'registerClickEvent', function(It) {
var Rn = oe.props.autoHide,
rr = oe.state.active;
if (
oe.dropDownContentElement.contains(It.target) ||
oe.dropDownHandlerElement.contains(It.target)
)
return !1;
Rn && rr && oe.hide();
}),
Z()(F()(oe), 'toggle', function() {
oe.setState({ active: !oe.state.active });
}),
Z()(F()(oe), 'show', function() {
oe.setState({ active: !0 });
}),
Z()(F()(oe), 'hide', function() {
oe.setState({ active: !1 });
}),
oe
);
}
return (
C()(Ve, [
{
key: 'componentDidMount',
value: function() {
document &&
(document.body.addEventListener('click', this.registerClickEvent),
(this.responsiveResolveId = fi.resolve(this.fixDropDownPosition)));
},
},
{
key: 'componentWillReceiveProps',
value: function(oe) {
!this.props.disabled && oe.disabled && this.hide();
},
},
{
key: 'componentDidUpdate',
value: function(oe) {
!oe.active && this.state.active && this.fixDropDownPosition();
},
},
{
key: 'componentWillUnmount',
value: function() {
document &&
(document.body.removeEventListener('click', this.registerClickEvent),
fi.unresolve(this.responsiveResolveId));
},
},
{
key: 'render',
value: function() {
var oe = this,
gt = this.state,
mt = gt.active,
kt = gt.offset,
It = this.props,
Rn = It.caption,
rr = It.htmlCaption,
Ar = It.title,
kr = It.disabled,
Kr = It.showArrow,
Aa = It.arrowActive,
Ja = It.className,
Vi = It.children,
Do = It.theme;
return (
kr && (mt = !1),
Do === 'light' && (Ja = ' light-theme ' + Ja),
Q.a.createElement(
'div',
{
className:
'bf-dropdown ' +
(mt ? 'active ' : '') +
(kr ? 'disabled ' : '') +
Ja,
},
rr
? Q.a.createElement('button', {
type: 'button',
className: 'dropdown-handler',
'data-title': Ar,
onClick: this.toggle,
dangerouslySetInnerHTML: rr ? { __html: rr } : null,
ref: function(Oi) {
return (oe.dropDownHandlerElement = Oi);
},
})
: Q.a.createElement(
'button',
{
type: 'button',
className: 'dropdown-handler',
'data-title': Ar,
onClick: this.toggle,
ref: function(Oi) {
return (oe.dropDownHandlerElement = Oi);
},
},
Q.a.createElement('span', null, Rn),
Kr !== !1
? Q.a.createElement('i', { className: 'bfi-drop-down' })
: null,
),
Q.a.createElement(
'div',
{
className: 'dropdown-content',
style: { marginLeft: kt },
ref: function(Oi) {
return (oe.dropDownContentElement = Oi);
},
},
Q.a.createElement('i', {
style: { marginLeft: kt * -1 },
className: 'dropdown-arrow' + (Aa ? ' active' : ''),
}),
Q.a.createElement('div', { className: 'dropdown-content-inner' }, Vi),
),
)
);
},
},
]),
Ve
);
})(Q.a.Component),
Pi = function(Ve) {
return Q.a.Fragment
? Q.a.createElement(Q.a.Fragment, null, Ve.children)
: Q.a.createElement('div', { className: 'control-item-group' }, Ve.children);
},
po = (function(In) {
H()(Ve, In);
function Ve(pt) {
var oe;
return (
N()(this, Ve),
(oe = u()(this, T()(Ve).call(this, pt))),
Z()(F()(oe), 'dropDownInstance', null),
Z()(F()(oe), 'handeKeyDown', function(gt) {
if (gt.keyCode === 13) return oe.handleConfirm(), gt.preventDefault(), !1;
}),
Z()(F()(oe), 'handleTnputText', function(gt) {
oe.setState({ text: gt.currentTarget.value });
}),
Z()(F()(oe), 'handleInputLink', function(gt) {
oe.setState({ href: gt.currentTarget.value });
}),
Z()(F()(oe), 'setTarget', function() {
oe.setState({ target: oe.state.target === '_blank' ? '' : '_blank' });
}),
Z()(F()(oe), 'handleCancel', function() {
oe.dropDownInstance.hide();
}),
Z()(F()(oe), 'handleUnlink', function() {
oe.dropDownInstance.hide(),
oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionLink(oe.props.editorState, !1),
);
}),
Z()(F()(oe), 'handleConfirm', function() {
var gt = oe.state,
mt = gt.text,
kt = gt.href,
It = gt.target,
Rn = gt.textSelected,
rr = oe.props.hooks('toggle-link', { href: kt, target: It })({
href: kt,
target: It,
});
if ((oe.dropDownInstance.hide(), oe.props.editor.requestFocus(), rr === !1))
return !1;
rr &&
(typeof rr.href == 'string' && (kt = rr.href),
typeof rr.target == 'string' && (It = rr.target)),
Rn
? kt
? oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionLink(oe.props.editorState, kt, It),
)
: oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionLink(oe.props.editorState, !1),
)
: oe.props.editor.setValue(
Ft.ContentUtils.insertText(oe.props.editorState, mt || kt, null, {
type: 'LINK',
data: { href: kt, target: It },
}),
);
}),
(oe.state = {
text: '',
href: '',
target: pt.defaultLinkTarget || '',
textSelected: !1,
}),
oe
);
}
return (
C()(Ve, [
{
key: 'componentWillReceiveProps',
value: function(oe) {
var gt = Ft.ContentUtils.getSelectionEntityData(oe.editorState, 'LINK'),
mt = gt.href,
kt = gt.target,
It =
!Ft.ContentUtils.isSelectionCollapsed(this.props.editorState) &&
Ft.ContentUtils.getSelectionBlockType(this.props.editorState) !==
'atomic',
Rn = '';
It && (Rn = Ft.ContentUtils.getSelectionText(this.props.editorState)),
this.setState({
textSelected: It,
text: Rn,
href: mt || '',
target:
typeof kt == 'undefined' ? oe.defaultLinkTarget || '' : kt || '',
});
},
},
{
key: 'render',
value: function() {
var oe = this,
gt = this.props.allowInsertLinkText,
mt = this.state,
kt = mt.text,
It = mt.href,
Rn = mt.target,
rr = mt.textSelected,
Ar = Q.a.createElement('i', { className: 'bfi-link' });
return Q.a.createElement(
Pi,
null,
Q.a.createElement(
za,
{
key: 0,
caption: Ar,
title: this.props.language.controls.link,
autoHide: !0,
getContainerNode: this.props.getContainerNode,
showArrow: !1,
ref: function(Kr) {
return (oe.dropDownInstance = Kr);
},
className: 'control-item dropdown link-editor-dropdown',
},
Q.a.createElement(
'div',
{ className: 'bf-link-editor' },
gt
? Q.a.createElement(
'div',
{ className: 'input-group' },
Q.a.createElement('input', {
type: 'text',
value: kt,
spellCheck: !1,
disabled: rr,
placeholder: this.props.language.linkEditor
.textInputPlaceHolder,
onKeyDown: this.handeKeyDown,
onChange: this.handleTnputText,
}),
)
: null,
Q.a.createElement(
'div',
{ className: 'input-group' },
Q.a.createElement('input', {
type: 'text',
value: It,
spellCheck: !1,
placeholder: this.props.language.linkEditor.linkInputPlaceHolder,
onKeyDown: this.handeKeyDown,
onChange: this.handleInputLink,
}),
),
Q.a.createElement(
'div',
{ className: 'switch-group' },
Q.a.createElement(qt, {
active: Rn === '_blank',
onClick: this.setTarget,
}),
Q.a.createElement(
'label',
null,
this.props.language.linkEditor.openInNewWindow,
),
),
Q.a.createElement(
'div',
{ className: 'buttons' },
Q.a.createElement(
'a',
{
onClick: this.handleUnlink,
className: 'primary button-remove-link pull-left',
},
Q.a.createElement('i', { className: 'bfi-close' }),
Q.a.createElement(
'span',
null,
this.props.language.linkEditor.removeLink,
),
),
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleConfirm,
className: 'primary pull-right',
},
this.props.language.base.confirm,
),
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleCancel,
className: 'default pull-right',
},
this.props.language.base.cancel,
),
),
),
),
Q.a.createElement(
'button',
{
key: 1,
type: 'button',
'data-title': this.props.language.controls.unlink,
className: 'control-item button',
onClick: this.handleUnlink,
disabled: !rr || !It,
},
Q.a.createElement('i', { className: 'bfi-link-off' }),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
lo = L(56),
At = function(Ve) {
return [
{
key: 'header-one',
title: Ve.controls.header + ' 1',
text: Q.a.createElement('h1', null, Ve.controls.header, ' 1'),
type: 'block-type',
command: 'header-one',
},
{
key: 'header-two',
title: Ve.controls.header + ' 2',
text: Q.a.createElement('h2', null, Ve.controls.header, ' 2'),
type: 'block-type',
command: 'header-two',
},
{
key: 'header-three',
title: Ve.controls.header + ' 3',
text: Q.a.createElement('h3', null, Ve.controls.header, ' 3'),
type: 'block-type',
command: 'header-three',
},
{
key: 'header-four',
title: Ve.controls.header + ' 4',
text: Q.a.createElement('h4', null, Ve.controls.header, ' 4'),
type: 'block-type',
command: 'header-four',
},
{
key: 'header-five',
title: Ve.controls.header + ' 5',
text: Q.a.createElement('h5', null, Ve.controls.header, ' 5'),
type: 'block-type',
command: 'header-five',
},
{
key: 'header-six',
title: Ve.controls.header + ' 6',
text: Q.a.createElement('h6', null, Ve.controls.header, ' 6'),
type: 'block-type',
command: 'header-six',
},
{
key: 'unstyled',
title: Ve.controls.normal,
text: Ve.controls.normal,
type: 'block-type',
command: 'unstyled',
},
];
},
vn = {
'header-one': 'h1',
'header-two': 'h2',
'header-three': 'h3',
'header-four': 'h4',
'header-fiv': 'h5',
'header-six': 'h6',
unstyled: 'p',
blockquote: 'blockquote',
},
Jn = function(Ve) {
var pt = null,
oe = At(Ve.language).filter(function(kt) {
return Ve.headings.indexOf(kt.key) !== -1;
}),
gt = oe.findIndex(function(kt) {
return kt.command === Ve.current;
}),
mt = oe[gt] ? oe[gt].title : Ve.language.controls.normal;
return Q.a.createElement(
za,
{
caption: mt,
autoHide: !0,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.headings,
arrowActive: gt === 0,
ref: function(It) {
return (pt = It);
},
className: 'control-item dropdown headings-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'menu' },
oe.map(function(kt, It) {
var Rn = Ve.current === kt.command;
return Q.a.createElement(
'li',
{
key: It,
className: 'menu-item' + (Rn ? ' active' : ''),
onClick: function() {
Ve.onChange(kt.command, kt.type), pt.hide();
},
},
kt.text,
);
}),
),
);
},
zt = L(57),
Lt = L(58),
pn = function(Ve) {
return Q.a.createElement(
'div',
{ className: 'bf-colors-wrap' },
Q.a.createElement(
'ul',
{ className: 'bf-colors' },
Ve.presetColors.map(function(pt, oe) {
var gt =
Ve.color && pt.toLowerCase() === Ve.color.toLowerCase()
? 'color-item active'
: 'color-item';
return Q.a.createElement('li', {
key: oe,
title: pt,
className: gt,
style: { color: pt },
'data-color': pt.replace('#', ''),
onClick: function(kt) {
Ve.onChange(kt.currentTarget.dataset.color, !0);
},
});
}),
),
);
},
ft = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'state', { colorType: 'color' }),
Z()(F()(oe), 'switchColorType', function(It) {
var Rn = It.currentTarget;
oe.setState({ colorType: Rn.dataset.type });
}),
Z()(F()(oe), 'toggleColor', function(It, Rn) {
if (It) {
var rr = oe.props.hooks('toggle-text-'.concat(oe.state.colorType), It)(It);
if (rr === !1) return !1;
typeof rr == 'string' && (It = rr),
oe.state.colorType === 'color'
? oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionColor(oe.props.editorState, It),
)
: oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionBackgroundColor(
oe.props.editorState,
It,
),
);
}
Rn && (oe.dropDownInstance.hide(), oe.props.editor.requestFocus());
}),
oe
);
}
return (
C()(Ve, [
{
key: 'render',
value: function() {
var oe = this,
gt = {},
mt = null,
kt = this.state.colorType,
It = this.props.editorState.getCurrentInlineStyle().toJS();
It.forEach(function(Ar) {
Ar.indexOf('COLOR-') === 0 &&
((gt.color = '#' + Ar.split('-')[1]),
kt === 'color' && (mt = gt.color)),
Ar.indexOf('BGCOLOR-') === 0 &&
((gt.backgroundColor = '#' + Ar.split('-')[1]),
kt === 'background-color' && (mt = gt.backgroundColor));
});
var Rn = Q.a.createElement(
'i',
{ style: gt, className: 'bfi-text-color' },
Q.a.createElement('span', { className: 'path1' }),
Q.a.createElement('span', { className: 'path2' }),
),
rr = this.props.colorPicker || pn;
return Q.a.createElement(
za,
{
caption: Rn,
title: this.props.language.controls.color,
showArrow: !1,
autoHide: this.props.autoHide,
theme: this.props.theme,
getContainerNode: this.props.getContainerNode,
ref: function(kr) {
return (oe.dropDownInstance = kr);
},
className: 'control-item dropdown text-color-dropdown',
},
Q.a.createElement(
'div',
{ className: 'bf-text-color-picker-wrap' },
Q.a.createElement(
'div',
{
className: 'bf-color-switch-buttons',
style: this.props.enableBackgroundColor ? {} : { display: 'none' },
},
Q.a.createElement(
'button',
{
type: 'button',
'data-type': 'color',
className: kt === 'color' ? 'active' : '',
onClick: this.switchColorType,
},
this.props.language.controls.textColor,
),
Q.a.createElement(
'button',
{
type: 'button',
'data-type': 'background-color',
className: kt === 'background-color' ? 'active' : '',
onClick: this.switchColorType,
},
this.props.language.controls.backgroundColor,
),
),
Q.a.createElement(rr, {
width: 200,
color: mt,
disableAlpha: !0,
presetColors: this.props.colors,
onChange: this.toggleColor,
}),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
un = L(59),
Bn = function(Ve, pt) {
var oe = Ve.currentTarget.dataset.size,
gt = pt.hooks('toggle-font-size', oe)(oe);
if (gt === !1) return !1;
isNaN(oe) || (oe = gt),
pt.editor.setValue(Ft.ContentUtils.toggleSelectionFontSize(pt.editorState, oe)),
pt.editor.requestFocus();
},
Jt = function(Ve) {
var pt = null,
oe = null,
gt = null;
return (
Ve.fontSizes.find(function(mt) {
return Ft.ContentUtils.selectionHasInlineStyle(Ve.editorState, 'FONTSIZE-' + mt)
? ((pt = mt), (oe = mt), !0)
: !1;
}),
Q.a.createElement(
za,
{
autoHide: !0,
caption: pt || Ve.defaultCaption,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.fontSize,
ref: function(kt) {
return (gt = kt);
},
className: 'control-item dropdown bf-font-size-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-font-sizes' },
Ve.fontSizes.map(function(mt, kt) {
return Q.a.createElement(
'li',
{
key: kt,
className: mt === oe ? 'active' : null,
'data-size': mt,
onClick: function(Rn) {
Bn(Rn, Ve), gt.hide();
},
},
mt,
);
}),
),
)
);
},
gr = L(60),
Sr = function(Ve, pt) {
var oe = Ve.currentTarget.dataset.size,
gt = pt.hooks('toggle-line-height', oe)(oe);
if (gt === !1) return !1;
isNaN(gt) || (oe = gt),
pt.editor.setValue(Ft.ContentUtils.toggleSelectionLineHeight(pt.editorState, oe)),
pt.editor.requestFocus();
},
xr = function(Ve) {
var pt = null,
oe = null,
gt = null;
return (
Ve.lineHeights.find(function(mt) {
return Ft.ContentUtils.selectionHasInlineStyle(
Ve.editorState,
'LINEHEIGHT-' + mt,
)
? ((pt = mt), (oe = mt), !0)
: !1;
}),
Q.a.createElement(
za,
{
autoHide: !0,
caption: pt || Ve.defaultCaption,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.lineHeight,
ref: function(kt) {
return (gt = kt);
},
className: 'control-item dropdown bf-line-height-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-line-heights' },
Ve.lineHeights.map(function(mt, kt) {
return Q.a.createElement(
'li',
{
key: kt,
className: mt === oe ? 'active' : null,
'data-size': mt,
onClick: function(Rn) {
Sr(Rn, Ve), gt.hide();
},
},
mt,
);
}),
),
)
);
},
Mr = L(61),
Tr = function(Ve, pt) {
var oe = Ve.currentTarget.dataset.name,
gt = pt.hooks('toggle-font-family', oe)(oe, pt.fontFamilies);
if (gt === !1) return !1;
typeof gt == 'string' && (oe = gt),
pt.editor.setValue(Ft.ContentUtils.toggleSelectionFontFamily(pt.editorState, oe)),
pt.editor.requestFocus();
},
jr = function(Ve) {
var pt = null,
oe = null,
gt = null;
return (
Ve.fontFamilies.find(function(mt, kt) {
return Ft.ContentUtils.selectionHasInlineStyle(
Ve.editorState,
'FONTFAMILY-' + mt.name,
)
? ((pt = mt.name), (oe = kt), !0)
: !1;
}),
Q.a.createElement(
za,
{
caption: pt || Ve.defaultCaption,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.fontFamily,
autoHide: !0,
arrowActive: oe === 0,
ref: function(kt) {
return (gt = kt);
},
className: 'control-item dropdown font-family-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'menu' },
Ve.fontFamilies.map(function(mt, kt) {
return Q.a.createElement(
'li',
{
key: kt,
className: 'menu-item ' + (kt === oe ? 'active' : ''),
'data-name': mt.name,
onClick: function(Rn) {
Tr(Rn, Ve), gt.hide();
},
},
Q.a.createElement('span', { style: { fontFamily: mt.family } }, mt.name),
);
}),
),
)
);
},
ia = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'state', { currentAlignment: void 0 }),
Z()(F()(oe), 'setAlignment', function(It) {
var Rn = It.currentTarget.dataset.alignment,
rr = oe.props.hooks('toggle-text-alignment', Rn)(Rn);
oe.props.textAligns.indexOf(rr) > -1 && (Rn = rr),
oe.props.editor.setValue(
Ft.ContentUtils.toggleSelectionAlignment(oe.props.editorState, Rn),
),
oe.props.editor.requestFocus();
}),
oe
);
}
return (
C()(Ve, [
{
key: 'componentWillReceiveProps',
value: function(oe) {
this.setState({
currentAlignment: Ft.ContentUtils.getSelectionBlockData(
oe.editorState,
'textAlign',
),
});
},
},
{
key: 'render',
value: function() {
var oe = this,
gt = [
this.props.language.controls.alignLeft,
this.props.language.controls.alignCenter,
this.props.language.controls.alignRight,
this.props.language.controls.alignJustify,
];
return Q.a.createElement(
Pi,
null,
this.props.textAligns.map(function(mt, kt) {
return Q.a.createElement(
'button',
{
type: 'button',
key: kt,
'data-title': gt[kt],
'data-alignment': mt,
className:
'control-item button ' +
(mt === oe.state.currentAlignment ? 'active' : null),
onClick: oe.setAlignment,
},
Q.a.createElement('i', { className: 'bfi-align-' + mt }),
);
}),
);
},
},
]),
Ve
);
})(Q.a.Component),
Qr = L(62),
Gr = function(Ve, pt) {
var oe = Ve.currentTarget.dataset.emoji,
gt = pt.hooks('insert-emoji', oe)(oe);
if (gt === !1) return !1;
typeof gt == 'string' && (oe = gt),
pt.editor.setValue(Ft.ContentUtils.insertText(pt.editorState, oe)),
pt.editor.requestFocus();
},
Ga = function(Ve) {
return Q.a.createElement(
za,
{
caption: Ve.defaultCaption,
autoHide: !0,
showArrow: !1,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.emoji,
className: 'control-item dropdown bf-emoji-dropdown',
},
Q.a.createElement(
'div',
{ className: 'bf-emojis-wrap' },
Q.a.createElement(
'ul',
{ className: 'bf-emojis' },
Ve.emojis.map(function(pt, oe) {
return Q.a.createElement(
'li',
{
key: oe,
'data-emoji': pt,
onClick: function(mt) {
return Gr(mt, Ve);
},
},
pt,
);
}),
),
),
);
},
Bi = L(63),
ta = function(Ve, pt) {
var oe = Ve.currentTarget.dataset.size,
gt = pt.hooks('toggle-letter-spacing', oe)(oe);
if (gt === !1) return !1;
isNaN(gt) || (oe = gt),
pt.editor.setValue(
Ft.ContentUtils.toggleSelectionLetterSpacing(pt.editorState, oe),
),
pt.editor.requestFocus();
},
vi = function(Ve) {
var pt = null,
oe = null,
gt = null;
return (
Ve.letterSpacings.find(function(mt) {
return Ft.ContentUtils.selectionHasInlineStyle(
Ve.editorState,
'LETTERSPACING-' + mt,
)
? ((pt = mt), (oe = mt), !0)
: !1;
}),
Q.a.createElement(
za,
{
autoHide: !0,
caption: pt || Ve.defaultCaption,
getContainerNode: Ve.getContainerNode,
title: Ve.language.controls.letterSpacing,
ref: function(kt) {
return (gt = kt);
},
className: 'control-item dropdown bf-letter-spacing-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-letter-spacings' },
Ve.letterSpacings.map(function(mt, kt) {
return Q.a.createElement(
'li',
{
key: kt,
className: mt === oe ? 'active' : null,
'data-size': mt,
onClick: function(Rn) {
ta(Rn, Ve), gt.hide();
},
},
mt,
);
}),
),
)
);
},
Za = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'state', { currentIndent: 0 }),
Z()(F()(oe), 'increaseIndent', function() {
oe.props.editor.setValue(
Ft.ContentUtils.increaseSelectionIndent(oe.props.editorState),
),
oe.props.editor.requestFocus();
}),
Z()(F()(oe), 'decreaseIndent', function() {
oe.props.editor.setValue(
Ft.ContentUtils.decreaseSelectionIndent(oe.props.editorState),
),
oe.props.editor.requestFocus();
}),
oe
);
}
return (
C()(Ve, [
{
key: 'componentWillReceiveProps',
value: function(oe) {
this.setState({
currentIndent:
Ft.ContentUtils.getSelectionBlockData(oe.editorState, 'textIndent') ||
0,
});
},
},
{
key: 'render',
value: function() {
var oe = this.state.currentIndent,
gt = this.props.language;
return Q.a.createElement(
Pi,
null,
Q.a.createElement(
'button',
{
key: 0,
type: 'button',
'data-title': gt.controls.increaseIndent,
disabled: oe >= 6,
className: 'control-item button button-indent-increase'.concat(
oe > 0 && oe < 6 ? ' active' : '',
),
onClick: this.increaseIndent,
},
Q.a.createElement('i', { className: 'bfi-indent-increase' }),
),
Q.a.createElement(
'button',
{
key: 1,
type: 'button',
'data-title': gt.controls.decreaseIndent,
disabled: oe <= 0,
className: 'control-item button button-indent-decrease',
onClick: this.decreaseIndent,
},
Q.a.createElement('i', { className: 'bfi-indent-decrease' }),
),
);
},
},
]),
Ve
);
})(Q.a.Component),
Ji = {
'inline-style': 'toggle-inline-style',
'block-type': 'change-block-type',
'editor-method': 'exec-editor-command',
},
Ia = { superscript: 'subscript', subscript: 'superscript' },
Wr = function(Ve, pt, oe, gt) {
return (
(oe = oe.map(function(mt) {
return typeof mt == 'function' ? mt(Ve) : mt;
})),
(gt = gt.map(function(mt) {
return typeof mt == 'function' ? mt(Ve) : mt;
})),
oe.length === 0 && gt.length === 0
? pt
: pt
.map(function(mt) {
return (
gt.find(function(kt) {
return kt.replace === (mt.key || mt);
}) ||
oe.find(function(kt) {
return kt.replace === (mt.key || mt);
}) ||
mt
);
})
.concat(oe.length ? 'separator' : '')
.concat(
oe.filter(function(mt) {
return !mt.replace;
}),
)
.concat(
gt.filter(function(mt) {
return typeof mt == 'string' || !mt.replace;
}),
)
);
},
Na = (function(In) {
H()(Ve, In);
function Ve() {
var pt, oe;
N()(this, Ve);
for (var gt = arguments.length, mt = new Array(gt), kt = 0; kt < gt; kt++)
mt[kt] = arguments[kt];
return (
(oe = u()(this, (pt = T()(Ve)).call.apply(pt, [this].concat(mt)))),
Z()(F()(oe), 'allControls', []),
Z()(F()(oe), 'mediaLibiraryModal', null),
Z()(F()(oe), 'extendedModals', {}),
Z()(F()(oe), 'openBraftFinder', function() {
if (!oe.props.braftFinder || !oe.props.braftFinder.ReactComponent) return !1;
if (oe.props.hooks('open-braft-finder')() === !1) return !1;
var It = oe.props.media,
Rn = oe.props.braftFinder.ReactComponent;
oe.mediaLibiraryModal = Nr({
title: oe.props.language.controls.mediaLibirary,
language: oe.props.language,
width: 640,
showFooter: !1,
className: It.modalClassName,
component: Q.a.createElement(Rn, {
accepts: It.accepts,
onCancel: oe.closeBraftFinder,
onInsert: oe.insertMedias,
onChange: It.onChange,
externals: It.externals,
onBeforeSelect: oe.bindBraftFinderHook('select-medias'),
onBeforeDeselect: oe.bindBraftFinderHook('deselect-medias'),
onBeforeRemove: oe.bindBraftFinderHook('remove-medias'),
onBeforeInsert: oe.bindBraftFinderHook('insert-medias'),
onFileSelect: oe.bindBraftFinderHook('select-files'),
}),
});
}),
Z()(F()(oe), 'bindBraftFinderHook', function(It) {
return function() {
return oe.props
.hooks(It, arguments.length <= 0 ? void 0 : arguments[0])
.apply(void 0, arguments);
};
}),
Z()(F()(oe), 'insertMedias', function(It) {
oe.props.editor.setValue(
Ft.ContentUtils.insertMedias(oe.props.editorState, It),
),
oe.props.editor.requestFocus(),
oe.props.media.onInsert && oe.props.media.onInsert(It),
oe.closeBraftFinder();
}),
Z()(F()(oe), 'closeBraftFinder', function() {
oe.props.media.onCancel && oe.props.media.onCancel(),
oe.mediaLibiraryModal && oe.mediaLibiraryModal.close();
}),
oe
);
}
return (
C()(Ve, [
{
key: 'componentDidUpdate',
value: function() {
var oe = this,
gt = this.props.language;
this.allControls.forEach(function(mt) {
mt.type === 'modal' &&
mt.modal &&
mt.modal.id &&
oe.extendedModals[mt.modal.id] &&
oe.extendedModals[mt.modal.id].update(
M()({}, mt.modal, { language: gt }),
);
});
},
},
{
key: 'getControlItemClassName',
value: function(oe) {
var gt = 'control-item button',
mt = oe.type,
kt = oe.command;
return (
((mt === 'inline-style' &&
Ft.ContentUtils.selectionHasInlineStyle(this.props.editorState, kt)) ||
(mt === 'block-type' &&
Ft.ContentUtils.getSelectionBlockType(this.props.editorState) ===
kt) ||
(mt === 'entity' &&
Ft.ContentUtils.getSelectionEntityType(this.props.editorState) ===
kt)) &&
(gt += ' active'),
gt
);
},
},
{
key: 'applyControl',
value: function(oe, gt) {
var mt =
arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
kt = this.props.hooks(Ji[gt] || gt, oe)(oe),
It = this.props.editorState;
if (kt === !1) return !1;
if ((typeof kt == 'string' && (oe = kt), gt === 'inline-style')) {
var Rn = Ia[oe];
Rn &&
Ft.ContentUtils.selectionHasInlineStyle(It, Rn) &&
(It = Ft.ContentUtils.toggleSelectionInlineStyle(It, Rn)),
this.props.editor.setValue(
Ft.ContentUtils.toggleSelectionInlineStyle(It, oe),
);
} else
gt === 'block-type'
? this.props.editor.setValue(
Ft.ContentUtils.toggleSelectionBlockType(It, oe),
)
: gt === 'entity'
? this.props.editor.setValue(
Ft.ContentUtils.toggleSelectionEntity(It, {
type: oe,
mutability: mt.mutability || 'MUTABLE',
data: mt.data || {},
}),
)
: gt === 'editor-method' &&
this.props.editor[oe] && this.props.editor[oe]();
},
},
{
key: 'render',
value: function() {
var oe = this,
gt = this.props,
mt = gt.editor,
kt = gt.editorId,
It = gt.editorState,
Rn = gt.className,
rr = gt.style,
Ar = gt.controls,
kr = gt.media,
Kr = gt.extendControls,
Aa = gt.language,
Ja = gt.hooks,
Vi = gt.colors,
Do = gt.colorPicker,
To = gt.colorPickerTheme,
Oi = gt.colorPickerAutoHide,
Ka = gt.headings,
ha = gt.fontSizes,
Di = gt.fontFamilies,
Ma = gt.emojis,
si = gt.getContainerNode,
ki = gt.lineHeights,
na = gt.letterSpacings,
ra = gt.textAligns,
Ca = gt.textBackgroundColor,
Da = gt.allowInsertLinkText,
li = gt.defaultLinkTarget,
Xa = Ft.ContentUtils.getSelectionBlockType(It),
Li = {
editor: mt,
editorId: kt,
editorState: It,
language: Aa,
getContainerNode: si,
hooks: Ja,
},
_ = [],
ee = Un(Aa, mt),
Ce = Oe(kt),
_e = Wr(Li, Ar, Ce, Kr);
return (
(this.allControls = _e),
Q.a.createElement(
'div',
{
className: 'bf-controlbar '.concat(Rn || ''),
style: rr,
onMouseDown: this.preventDefault,
},
_e.map(function(Qe, Ot) {
var Kt = typeof Qe == 'string' ? Qe : Qe.key;
if (typeof Kt != 'string') return null;
if (_.indexOf(Kt) > -1) return null;
if (Kt.toLowerCase() === 'separator')
return Q.a.createElement('span', {
key: Ot,
className: 'separator-line',
});
var jt = ee.find(function(qn) {
return qn.key.toLowerCase() === Kt.toLowerCase();
});
if ((typeof Qe != 'string' && (jt = M()({}, jt, Qe)), !jt))
return null;
if ((_.push(Kt), jt.type === 'headings'))
return Q.a.createElement(
Jn,
st()(
{
key: Ot,
headings: Ka,
current: Xa,
onChange: function(dr) {
return oe.applyControl(dr, 'block-type');
},
},
Li,
),
);
if (jt.type === 'text-color')
return Q.a.createElement(
ft,
st()(
{
key: Ot,
colors: Vi,
colorPicker: Do,
theme: To,
autoHide: Oi,
enableBackgroundColor: Ca,
},
Li,
),
);
if (jt.type === 'font-size')
return Q.a.createElement(
Jt,
st()({ key: Ot, fontSizes: ha, defaultCaption: jt.title }, Li),
);
if (jt.type === 'line-height')
return Q.a.createElement(
xr,
st()({ key: Ot, lineHeights: ki, defaultCaption: jt.title }, Li),
);
if (jt.type === 'letter-spacing')
return Q.a.createElement(
vi,
st()(
{ key: Ot, letterSpacings: na, defaultCaption: jt.title },
Li,
),
);
if (jt.type === 'text-indent')
return Q.a.createElement(
Za,
st()({ key: Ot, defaultCaption: jt.title }, Li),
);
if (jt.type === 'font-family')
return Q.a.createElement(
jr,
st()({ key: Ot, fontFamilies: Di, defaultCaption: jt.title }, Li),
);
if (jt.type === 'emoji')
return Q.a.createElement(
Ga,
st()({ key: Ot, emojis: Ma, defaultCaption: jt.text }, Li),
);
if (jt.type === 'link')
return Q.a.createElement(
po,
st()(
{ key: Ot, defaultLinkTarget: li, allowInsertLinkText: Da },
Li,
),
);
if (jt.type === 'text-align')
return Q.a.createElement(ia, st()({ key: Ot, textAligns: ra }, Li));
if (jt.type === 'media')
return !kr.image && !kr.video && !kr.audio
? null
: Q.a.createElement(
'button',
{
type: 'button',
key: Ot,
'data-title': jt.title,
disabled: jt.disabled,
className: 'control-item media button',
onClick: oe.openBraftFinder,
},
jt.text,
);
if (jt.type === 'dropdown')
return Q.a.createElement(
za,
st()(
{
key: Ot,
className: 'control-item extend-control-item dropdown '.concat(
jt.className || '',
),
caption: jt.text,
htmlCaption: jt.html,
showArrow: jt.showArrow,
title: jt.title,
arrowActive: jt.arrowActive,
theme: jt.theme,
autoHide: jt.autoHide,
disabled: jt.disabled,
ref: jt.ref,
},
Li,
),
jt.component,
);
if (jt.type === 'modal')
return Q.a.createElement(
'button',
{
type: 'button',
key: Ot,
'data-title': jt.title,
disabled: jt.disabled,
className: 'control-item extend-control-item button '.concat(
jt.className || '',
),
dangerouslySetInnerHTML: jt.html ? { __html: jt.html } : null,
onClick: function(dr) {
jt.modal &&
jt.modal.id &&
(oe.extendedModals[jt.modal.id]
? ((oe.extendedModals[jt.modal.id].active = !0),
oe.extendedModals[jt.modal.id].update(
M()({}, jt.modal, { language: Aa }),
))
: ((oe.extendedModals[jt.modal.id] = Nr(
M()({}, jt.modal, { language: Aa }),
)),
jt.modal.onCreate &&
jt.modal.onCreate(oe.extendedModals[jt.modal.id]))),
jt.onClick && jt.onClick(dr);
},
},
jt.html ? null : jt.text,
);
if (jt.type === 'component')
return Q.a.createElement(
'div',
{
key: Ot,
className: 'component-wrapper '.concat(jt.className || ''),
},
jt.component,
);
if (jt.type === 'button')
return Q.a.createElement(
'button',
{
type: 'button',
key: Ot,
'data-title': jt.title,
disabled: jt.disabled,
className: 'control-item button '.concat(jt.className || ''),
dangerouslySetInnerHTML: jt.html ? { __html: jt.html } : null,
onClick: function(dr) {
return jt.onClick && jt.onClick(dr);
},
},
jt.html ? null : jt.text,
);
if (jt) {
var $n = !1;
return (
jt.command === 'undo'
? ($n = It.getUndoStack().size === 0)
: jt.command === 'redo' && ($n = It.getRedoStack().size === 0),
Q.a.createElement(
'button',
{
type: 'button',
key: Ot,
disabled: $n,
'data-title': jt.title,
className: oe.getControlItemClassName({
type: jt.type,
command: jt.command,
}),
onClick: function() {
return oe.applyControl(jt.command, jt.type, jt.data);
},
},
jt.text,
)
);
}
}),
)
);
},
},
{
key: 'preventDefault',
value: function(oe) {
var gt = oe.target.tagName.toLowerCase();
gt === 'input' || gt === 'label' || oe.preventDefault();
},
},
]),
Ve
);
})(Q.a.Component),
ca = function(Ve) {
return function(pt) {
var oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return (
Ve[pt] ||
function() {
return oe;
}
);
};
},
Ta = function(Ve, pt) {
return Ve.filter(function(oe) {
return !pt.find(function(gt) {
return gt.toLowerCase() === oe.toLowerCase();
});
}).filter(function(oe, gt, mt) {
return mt.indexOf(oe) === gt;
});
},
bo = function(Ve, pt) {
return (
[].concat(ae()(Ve.controls), ae()(Ve.extendControls)).find(function(oe) {
return oe === pt || oe.key === pt;
}) && Ve.excludeControls.indexOf(pt) === -1
);
},
io = function(Ve) {
var pt = Ve.editorId || Ve.id,
oe = M()({}, ie.converts, Ve.converts, { fontFamilies: Ve.fontFamilies });
return (
(oe.styleImportFn = je(oe.styleImportFn, pt)),
(oe.styleExportFn = ot(oe.styleExportFn, pt)),
(oe.entityImportFn = Nt(oe.entityImportFn, pt)),
(oe.entityExportFn = ln(oe.entityExportFn, pt)),
(oe.blockImportFn = Mn(oe.blockImportFn, pt)),
(oe.blockExportFn = Qn(oe.blockExportFn, pt)),
oe
);
},
Pa = (function(In) {
H()(Ve, In);
function Ve(pt) {
var oe;
N()(this, Ve),
(oe = u()(this, T()(Ve).call(this, pt))),
Z()(F()(oe), 'onChange', function(It, Rn) {
It instanceof Vt.EditorState ||
(It = Vt.EditorState.set(It, { decorator: oe.editorDecorators })),
It.convertOptions || It.setConvertOptions(io(oe.editorProps)),
oe.setState({ editorState: It }, function() {
oe.props.onChange && oe.props.onChange(It), Rn && Rn(It);
});
}),
Z()(F()(oe), 'getDraftInstance', function() {
return oe.draftInstance;
}),
Z()(F()(oe), 'getFinderInstance', function() {
return oe.braftFinder;
}),
Z()(F()(oe), 'getValue', function() {
return oe.state.editorState;
}),
Z()(F()(oe), 'setValue', function(It, Rn) {
return oe.onChange(It, Rn);
}),
Z()(F()(oe), 'forceRender', function() {
var It = oe.state.editorState.getSelection();
oe.setValue(
Vt.EditorState.set(oe.state.editorState, {
decorator: oe.editorDecorators,
}),
function() {
oe.setValue(Vt.EditorState.forceSelection(oe.state.editorState, It));
},
);
}),
Z()(F()(oe), 'onTab', function(It) {
yt('tab', oe.state.editorState, F()(oe)) === 'handled' && It.preventDefault(),
oe.editorProps.onTab && oe.editorProps.onTab(It);
}),
Z()(F()(oe), 'onFocus', function() {
(oe.isFocused = !0),
oe.editorProps.onFocus && oe.editorProps.onFocus(oe.state.editorState);
}),
Z()(F()(oe), 'onBlur', function() {
(oe.isFocused = !1),
oe.editorProps.onBlur && oe.editorProps.onBlur(oe.state.editorState);
}),
Z()(F()(oe), 'requestFocus', function() {
setTimeout(function() {
return oe.draftInstance.focus();
}, 0);
}),
Z()(F()(oe), 'handleKeyCommand', function(It, Rn) {
return yt(It, Rn, F()(oe));
}),
Z()(F()(oe), 'handleReturn', function(It, Rn) {
return nn(It, Rn, F()(oe));
}),
Z()(F()(oe), 'handleBeforeInput', function(It, Rn) {
return Gt(It, Rn, F()(oe));
}),
Z()(F()(oe), 'handleDrop', function(It, Rn) {
return Wt(It, Rn, F()(oe));
}),
Z()(F()(oe), 'handleDroppedFiles', function(It, Rn) {
return Zt(It, Rn, F()(oe));
}),
Z()(F()(oe), 'handlePastedFiles', function(It) {
return Cn(It, F()(oe));
}),
Z()(F()(oe), 'handleCopyContent', function(It) {
return Qt(It, F()(oe));
}),
Z()(F()(oe), 'handlePastedText', function(It, Rn, rr) {
return Sn(It, Rn, rr, F()(oe));
}),
Z()(F()(oe), 'handleCompositionStart', function(It) {
return Ct(It, F()(oe));
}),
Z()(F()(oe), 'undo', function() {
oe.setValue(Ft.ContentUtils.undo(oe.state.editorState));
}),
Z()(F()(oe), 'redo', function() {
oe.setValue(Ft.ContentUtils.redo(oe.state.editorState));
}),
Z()(F()(oe), 'removeSelectionInlineStyles', function() {
oe.setValue(
Ft.ContentUtils.removeSelectionInlineStyles(oe.state.editorState),
);
}),
Z()(F()(oe), 'insertHorizontalLine', function() {
oe.setValue(Ft.ContentUtils.insertHorizontalLine(oe.state.editorState));
}),
Z()(F()(oe), 'clearEditorContent', function() {
oe.setValue(Ft.ContentUtils.clear(oe.state.editorState), function(It) {
oe.setValue(Ft.ContentUtils.toggleSelectionIndent(It, 0));
});
}),
Z()(F()(oe), 'toggleFullscreen', function(It) {
oe.setState(
{ isFullscreen: typeof It != 'undefined' ? It : !oe.state.isFullscreen },
function() {
oe.editorProps.onFullscreen &&
oe.editorProps.onFullscreen(oe.state.isFullscreen);
},
);
}),
Z()(F()(oe), 'setEditorContainerNode', function(It) {
oe.containerNode = It;
}),
(oe.editorProps = oe.getEditorProps(pt)),
(oe.editorDecorators = Qa(oe.editorProps.editorId || oe.editorProps.id)),
(oe.isFocused = !1),
(oe.isLiving = !1),
(oe.braftFinder = null),
(oe.valueInitialized = !!(oe.props.defaultValue || oe.props.value));
var gt =
(oe.props.defaultValue || oe.props.value) instanceof Vt.EditorState
? oe.props.defaultValue || oe.props.value
: Vt.EditorState.createEmpty(oe.editorDecorators);
gt.setConvertOptions(io(oe.editorProps));
var mt = [];
if (Ft.ContentUtils.isEditorState(gt)) {
var kt = Ft.ColorUtils.detectColorsFromDraftState(gt.toRAW(!0));
gt.setConvertOptions(io(oe.editorProps)), (mt = Ta(kt, oe.editorProps.colors));
}
return (
(oe.state = {
tempColors: mt,
editorState: gt,
isFullscreen: !1,
draftProps: {},
}),
(oe.containerNode = null),
oe
);
}
return (
C()(Ve, [
{
key: 'getEditorProps',
value: function(oe) {
var gt = this;
oe = oe || this.props;
var mt = oe,
kt = mt.value,
It = mt.defaultValue,
Rn = mt.onChange,
rr = I()(mt, ['value', 'defaultValue', 'onChange']),
Ar = ze(rr.editorId || rr.id);
if (Ar.length === 0) return rr;
var kr = Object(Yt.Map)(rr);
return (
Ar.forEach(function(Kr) {
kr = kr.merge(Object(Yt.Map)(Kr(kr.toJS(), gt) || {}));
}),
kr.toJS()
);
},
},
{
key: 'componentWillMount',
value: function() {
if (bo(this.editorProps, 'media')) {
var oe = this.editorProps,
gt = oe.language,
mt = oe.media,
kt = M()({}, ie.media, mt),
It = kt.uploadFn,
Rn = kt.validateFn,
rr = kt.items;
(this.braftFinder = new _t.a({
items: rr,
language: gt,
uploader: It,
validator: Rn,
})),
this.forceUpdate();
}
},
},
{
key: 'componentDidMount',
value: function() {
this.isLiving = !0;
},
},
{
key: 'componentDidUpdate',
value: function(oe, gt) {
gt.editorState !== this.state.editorState &&
this.state.editorState.setConvertOptions(io(this.editorProps));
},
},
{
key: 'componentWillReceiveProps',
value: function(oe) {
var gt = this;
this.editorProps = this.getEditorProps(oe);
var mt = oe.value,
kt = this.editorProps,
It = kt.media,
Rn = kt.language,
rr = this.getEditorProps();
if (
!bo(rr, 'media') &&
bo(this.editorProps, 'media') &&
!this.braftFinder
) {
var Ar = M()({}, ie.media, It),
kr = Ar.uploadFn,
Kr = Ar.validateFn,
Aa = Ar.items;
(this.braftFinder = new _t.a({
items: Aa,
language: Rn,
uploader: kr,
validator: Kr,
})),
this.forceUpdate();
}
It && It.items && this.braftFinder && this.braftFinder.setItems(It.items);
var Ja;
if (
(!this.valueInitialized &&
typeof this.props.defaultValue == 'undefined' &&
Ft.ContentUtils.isEditorState(oe.defaultValue)
? (Ja = oe.defaultValue)
: Ft.ContentUtils.isEditorState(mt) && (Ja = mt),
Ja)
)
if (Ja && Ja !== this.state.editorState) {
var Vi = Ft.ColorUtils.detectColorsFromDraftState(Ja.toRAW(!0));
Ja.setConvertOptions(io(this.editorProps)),
this.setState(
{
tempColors: Ta(
[].concat(ae()(this.state.tempColors), ae()(Vi)),
rr.colors,
),
editorState: Ja,
},
function() {
gt.props.onChange && gt.props.onChange(Ja);
},
);
} else this.setState({ editorState: Ja });
},
},
{
key: 'componentWillUnmount',
value: function() {
(this.isLiving = !1),
this.controlBarInstance && this.controlBarInstance.closeBraftFinder();
},
},
{
key: 'lockOrUnlockEditor',
value: function(oe) {
this.setState({ editorLocked: oe });
},
},
{
key: 'render',
value: function() {
var oe = this,
gt = this.editorProps,
mt = gt.id,
kt = gt.editorId,
It = gt.controls,
Rn = gt.excludeControls,
rr = gt.extendControls,
Ar = gt.readOnly,
kr = gt.disabled,
Kr = gt.media,
Aa = gt.language,
Ja = gt.colors,
Vi = gt.colorPicker,
Do = gt.colorPickerTheme,
To = gt.colorPickerAutoHide,
Oi = gt.hooks,
Ka = gt.fontSizes,
ha = gt.fontFamilies,
Di = gt.emojis,
Ma = gt.placeholder,
si = gt.fixPlaceholder,
ki = gt.headings,
na = gt.imageControls,
ra = gt.imageResizable,
Ca = gt.imageEqualRatio,
Da = gt.lineHeights,
li = gt.letterSpacings,
Xa = gt.textAligns,
Li = gt.textBackgroundColor,
_ = gt.allowInsertLinkText,
ee = gt.defaultLinkTarget,
Ce = gt.extendAtomics,
_e = gt.className,
Qe = gt.style,
Ot = gt.controlBarClassName,
Kt = gt.controlBarStyle,
jt = gt.contentClassName,
$n = gt.contentStyle,
qn = gt.stripPastedStyles,
dr = gt.componentBelowControlBar,
Fr = this.state,
Zr = Fr.isFullscreen,
wa = Fr.editorState;
(kt = kt || mt),
(Oi = ca(Oi)),
(It = It.filter(function(al) {
return Rn.indexOf(al) === -1;
})),
(Aa =
(typeof Aa == 'function' ? Aa(ke, 'braft-editor') : ke[Aa]) ||
ke[ie.language]);
var ci =
Kr && Kr.externals
? M()({}, ie.media.externals, Kr.externals)
: ie.media.externals,
Wi =
Kr && Kr.accepts
? M()({}, ie.media.accepts, Kr.accepts)
: ie.media.accepts;
(Kr = M()({}, ie.media, Kr, { externalMedias: ci, accepts: Wi })),
Kr.uploadFn || ((Kr.video = !1), (Kr.audio = !1));
var Vo = {
editor: this,
editorState: wa,
braftFinder: this.braftFinder,
ref: function(Tl) {
return (oe.controlBarInstance = Tl);
},
getContainerNode: function() {
return oe.containerNode;
},
className: Ot,
style: Kt,
colors: [].concat(ae()(Ja), ae()(this.state.tempColors)),
colorPicker: Vi,
colorPickerTheme: Do,
colorPickerAutoHide: To,
hooks: Oi,
editorId: kt,
media: Kr,
controls: It,
language: Aa,
extendControls: rr,
headings: ki,
fontSizes: Ka,
fontFamilies: ha,
emojis: Di,
lineHeights: Da,
letterSpacings: li,
textAligns: Xa,
textBackgroundColor: Li,
allowInsertLinkText: _,
defaultLinkTarget: ee,
},
ko = wa.convertOptions.unitExportFn,
is = {
editor: this,
editorId: kt,
hooks: Oi,
editorState: wa,
containerNode: this.containerNode,
imageControls: na,
imageResizable: ra,
language: Aa,
extendAtomics: Ce,
imageEqualRatio: Ca,
},
rl = Ni(is, this.editorProps.blockRendererFn),
qc = Ya(is, this.editorProps.blockRenderMap),
hc = ma(this.editorProps.blockStyleFn),
fs = Gi(is, this.editorProps.customStyleMap),
Is = go(is, {
fontFamilies: ha,
unitExportFn: ko,
customStyleFn: this.editorProps.customStyleFn,
}),
hs = de(this.editorProps.keyBindingFn),
Os = {};
(this.state.editorLocked ||
this.editorProps.disabled ||
this.editorProps.readOnly ||
this.editorProps.draftProps.readOnly) &&
(Os.readOnly = !0),
Ma &&
si &&
wa.isEmpty() &&
wa
.getCurrentContent()
.getFirstBlock()
.getType() !== 'unstyled' &&
(Ma = '');
var yl = M()(
{
ref: function(Tl) {
oe.draftInstance = Tl;
},
editorState: wa,
handleKeyCommand: this.handleKeyCommand,
handleReturn: this.handleReturn,
handleBeforeInput: this.handleBeforeInput,
handleDrop: this.handleDrop,
handleDroppedFiles: this.handleDroppedFiles,
handlePastedText: this.handlePastedText,
handlePastedFiles: this.handlePastedFiles,
onChange: this.onChange,
onTab: this.onTab,
onFocus: this.onFocus,
onBlur: this.onBlur,
blockRenderMap: qc,
blockRendererFn: rl,
blockStyleFn: hc,
customStyleMap: fs,
customStyleFn: Is,
keyBindingFn: hs,
placeholder: Ma,
stripPastedStyles: qn,
},
this.editorProps.draftProps,
Os,
);
return Q.a.createElement(
'div',
{
style: Qe,
ref: this.setEditorContainerNode,
className: 'bf-container '
.concat(_e)
.concat(kr ? ' disabled' : '')
.concat(Ar ? ' read-only' : '')
.concat(Zr ? ' fullscreen' : ''),
},
Q.a.createElement(Na, Vo),
dr,
Q.a.createElement(
'div',
{
onCompositionStart: this.handleCompositionStart,
className: 'bf-content '.concat(jt),
onCopy: this.handleCopyContent,
style: $n,
},
Q.a.createElement(Vt.Editor, yl),
),
);
},
},
]),
Ve
);
})(Q.a.Component);
Z()(Pa, 'defaultProps', ie);
var Ui = L(14);
L.d(w, 'EditorState', function() {
return Vt.EditorState;
}),
L.d(w, 'getDecorators', function() {
return Qa;
}),
(Vt.EditorState.prototype.setConvertOptions = function() {
var In = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
this.convertOptions = In;
}),
(Vt.EditorState.prototype.toHTML = function() {
var In = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
Ve = this.convertOptions || {};
return Object(Ui.convertEditorStateToHTML)(this, M()({}, Ve, In));
}),
(Vt.EditorState.prototype.toRAW = function(In) {
return In
? Object(Ui.convertEditorStateToRaw)(this)
: JSON.stringify(Object(Ui.convertEditorStateToRaw)(this));
}),
(Vt.EditorState.prototype.toText = function() {
return this.getCurrentContent().getPlainText();
}),
(Vt.EditorState.prototype.isEmpty = function() {
return !this.getCurrentContent().hasText();
}),
(Pa.createEditorState = Vt.EditorState.createFrom = function(In) {
var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
(Ve.unitExportFn = Ve.unitExportFn || Pa.defaultProps.converts.unitExportFn),
(Ve.styleImportFn = je(Ve.styleImportFn, Ve.editorId)),
(Ve.entityImportFn = Nt(Ve.entityImportFn, Ve.editorId)),
(Ve.blockImportFn = Mn(Ve.blockImportFn, Ve.editorId));
var pt = null;
if (In instanceof Vt.EditorState) pt = In;
else if (R()(In) === 'object' && In && In.blocks && In.entityMap)
pt = Object(Ui.convertRawToEditorState)(In, Qa(Ve.editorId));
else if (typeof In == 'string')
try {
/^(-)?\d+$/.test(In)
? (pt = Object(Ui.convertHTMLToEditorState)(
In,
Qa(Ve.editorId),
Ve,
'create',
))
: (pt = Vt.EditorState.createFrom(JSON.parse(In), Ve));
} catch (oe) {
pt = Object(Ui.convertHTMLToEditorState)(In, Qa(Ve.editorId), Ve, 'create');
}
else
typeof In == 'number'
? (pt = Object(Ui.convertHTMLToEditorState)(
In.toLocaleString().replace(/,/g, ''),
Qa(Ve.editorId),
Ve,
'create',
))
: (pt = Vt.EditorState.createEmpty(Qa(Ve.editorId)));
return (
(Ve.styleExportFn = ot(Ve.styleExportFn, Ve.editorId)),
(Ve.entityExportFn = ln(Ve.entityExportFn, Ve.editorId)),
(Ve.blockExportFn = Qn(Ve.blockExportFn, Ve.editorId)),
pt.setConvertOptions(Ve),
pt
);
});
var xo = (w.default = nr(Pa));
},
function(E, w) {},
,
function(E, w) {},
,
,
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
function(E, w) {},
]);
});
},
yGk4: function(W, c, n) {
var r = n('Cwc5'),
d = n('Kz5y'),
o = r(d, 'Set');
W.exports = o;
},
yHx3: function(W, c) {
var n = Object.prototype,
r = n.hasOwnProperty;
function d(o) {
var a = o.length,
t = new o.constructor(a);
return (
a &&
typeof o[0] == 'string' &&
r.call(o, 'index') &&
((t.index = o.index), (t.input = o.input)),
t
);
}
W.exports = d;
},
yK9s: function(W, c, n) {
'use strict';
var r = n('xTJ+');
W.exports = function(o, a) {
r.forEach(o, function(e, g) {
g !== a && g.toUpperCase() === a.toUpperCase() && ((o[a] = e), delete o[g]);
});
};
},
yOY4: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.Alpha = void 0);
var r =
Object.assign ||
function(I) {
for (var B = 1; B < arguments.length; B++) {
var N = arguments[B];
for (var b in N) Object.prototype.hasOwnProperty.call(N, b) && (I[b] = N[b]);
}
return I;
},
d = (function() {
function I(B, N) {
for (var b = 0; b < N.length; b++) {
var C = N[b];
(C.enumerable = C.enumerable || !1),
(C.configurable = !0),
'value' in C && (C.writable = !0),
Object.defineProperty(B, C.key, C);
}
}
return function(B, N, b) {
return N && I(B.prototype, N), b && I(B, b), B;
};
})(),
o = n('q1tI'),
a = S(o),
t = n('/FUP'),
e = S(t),
g = n('THLb'),
v = L(g),
E = n('Nq3d'),
w = S(E);
function L(I) {
if (I && I.__esModule) return I;
var B = {};
if (I != null) for (var N in I) Object.prototype.hasOwnProperty.call(I, N) && (B[N] = I[N]);
return (B.default = I), B;
}
function S(I) {
return I && I.__esModule ? I : { default: I };
}
function R(I, B) {
if (!(I instanceof B)) throw new TypeError('Cannot call a class as a function');
}
function O(I, B) {
if (!I)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return B && (typeof B == 'object' || typeof B == 'function') ? B : I;
}
function M(I, B) {
if (typeof B != 'function' && B !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof B,
);
(I.prototype = Object.create(B && B.prototype, {
constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 },
})),
B && (Object.setPrototypeOf ? Object.setPrototypeOf(I, B) : (I.__proto__ = B));
}
var A = (c.Alpha = (function(I) {
M(B, I);
function B() {
var N, b, C, h;
R(this, B);
for (var u = arguments.length, m = Array(u), T = 0; T < u; T++) m[T] = arguments[T];
return (
(h =
((b =
((C = O(
this,
(N = B.__proto__ || Object.getPrototypeOf(B)).call.apply(N, [this].concat(m)),
)),
C)),
(C.handleChange = function(x) {
var F = v.calculateChange(
x,
C.props.hsl,
C.props.direction,
C.props.a,
C.container,
);
F && typeof C.props.onChange == 'function' && C.props.onChange(F, x);
}),
(C.handleMouseDown = function(x) {
C.handleChange(x),
window.addEventListener('mousemove', C.handleChange),
window.addEventListener('mouseup', C.handleMouseUp);
}),
(C.handleMouseUp = function() {
C.unbindEventListeners();
}),
(C.unbindEventListeners = function() {
window.removeEventListener('mousemove', C.handleChange),
window.removeEventListener('mouseup', C.handleMouseUp);
}),
b)),
O(C, h)
);
}
return (
d(B, [
{
key: 'componentWillUnmount',
value: function() {
this.unbindEventListeners();
},
},
{
key: 'render',
value: function() {
var b = this,
C = this.props.rgb,
h = (0, e.default)(
{
default: {
alpha: { absolute: '0px 0px 0px 0px', borderRadius: this.props.radius },
checkboard: {
absolute: '0px 0px 0px 0px',
overflow: 'hidden',
borderRadius: this.props.radius,
},
gradient: {
absolute: '0px 0px 0px 0px',
background:
'linear-gradient(to right, rgba(' +
C.r +
',' +
C.g +
',' +
C.b +
`, 0) 0%,
rgba(` +
C.r +
',' +
C.g +
',' +
C.b +
', 1) 100%)',
boxShadow: this.props.shadow,
borderRadius: this.props.radius,
},
container: { position: 'relative', height: '100%', margin: '0 3px' },
pointer: { position: 'absolute', left: C.a * 100 + '%' },
slider: {
width: '4px',
borderRadius: '1px',
height: '8px',
boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
background: '#fff',
marginTop: '1px',
transform: 'translateX(-2px)',
},
},
vertical: {
gradient: {
background:
'linear-gradient(to bottom, rgba(' +
C.r +
',' +
C.g +
',' +
C.b +
`, 0) 0%,
rgba(` +
C.r +
',' +
C.g +
',' +
C.b +
', 1) 100%)',
},
pointer: { left: 0, top: C.a * 100 + '%' },
},
overwrite: r({}, this.props.style),
},
{ vertical: this.props.direction === 'vertical', overwrite: !0 },
);
return a.default.createElement(
'div',
{ style: h.alpha },
a.default.createElement(
'div',
{ style: h.checkboard },
a.default.createElement(w.default, { renderers: this.props.renderers }),
),
a.default.createElement('div', { style: h.gradient }),
a.default.createElement(
'div',
{
style: h.container,
ref: function(m) {
return (b.container = m);
},
onMouseDown: this.handleMouseDown,
onTouchMove: this.handleChange,
onTouchStart: this.handleChange,
},
a.default.createElement(
'div',
{ style: h.pointer },
this.props.pointer
? a.default.createElement(this.props.pointer, this.props)
: a.default.createElement('div', { style: h.slider }),
),
),
);
},
},
]),
B
);
})(o.PureComponent || o.Component));
c.default = A;
},
yP5f: function(W, c, n) {
var r = n('+K+b');
function d(o, a) {
var t = a ? r(o.buffer) : o.buffer;
return new o.constructor(t, o.byteOffset, o.length);
}
W.exports = d;
},
yWd1: function(W, c, n) {
'use strict';
n('1Ywk'), n('4Wux'), n('DGG2');
},
ygfH: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 });
var r = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z',
},
},
],
},
name: 'check',
theme: 'outlined',
};
c.default = r;
},
yxyD: function(W, c, n) {
'use strict';
var r = n('jLRO'),
d = n('Taje'),
o = function(E, w) {
return E === w;
},
a = function(E) {
return !!E;
},
t = [];
function e(v, E, w) {
var L = [],
S = E.map(function(R) {
return R.has(w);
}).toList();
return (
d(S, o, a, function(R, O) {
var M = v.getText();
L.push({ offset: r.strlen(M.slice(0, R)), length: r.strlen(M.slice(R, O)), style: w });
}),
L
);
}
function g(v) {
var E = v
.getCharacterList()
.map(function(L) {
return L.getStyle();
})
.toList(),
w = E.flatten()
.toSet()
.map(function(L) {
return e(v, E, L);
});
return Array.prototype.concat.apply(t, w.toJS());
}
W.exports = g;
},
z7Xi: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z',
},
},
],
},
name: 'upload',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'UploadOutlined';
var e = (c.a = r.forwardRef(t));
},
zBBz: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var r = v(n('q1tI')),
d = e(n('Y+p1')),
o = e(n('THcq')),
a = e(n('3iFt')),
t = n('13hH');
function e(ue) {
return ue && ue.__esModule ? ue : { default: ue };
}
function g() {
if (typeof WeakMap != 'function') return null;
var ue = new WeakMap();
return (
(g = function() {
return ue;
}),
ue
);
}
function v(ue) {
if (ue && ue.__esModule) return ue;
if (ue === null || (E(ue) !== 'object' && typeof ue != 'function')) return { default: ue };
var Q = g();
if (Q && Q.has(ue)) return Q.get(ue);
var le = {},
J = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var re in ue)
if (Object.prototype.hasOwnProperty.call(ue, re)) {
var ce = J ? Object.getOwnPropertyDescriptor(ue, re) : null;
ce && (ce.get || ce.set) ? Object.defineProperty(le, re, ce) : (le[re] = ue[re]);
}
return (le.default = ue), Q && Q.set(ue, le), le;
}
function E(ue) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (E = function(le) {
return typeof le;
})
: (E = function(le) {
return le &&
typeof Symbol == 'function' &&
le.constructor === Symbol &&
le !== Symbol.prototype
? 'symbol'
: typeof le;
}),
E(ue)
);
}
function w() {
return (
(w =
Object.assign ||
function(ue) {
for (var Q = 1; Q < arguments.length; Q++) {
var le = arguments[Q];
for (var J in le) Object.prototype.hasOwnProperty.call(le, J) && (ue[J] = le[J]);
}
return ue;
}),
w.apply(this, arguments)
);
}
function L(ue, Q) {
if (ue == null) return {};
var le = S(ue, Q),
J,
re;
if (Object.getOwnPropertySymbols) {
var ce = Object.getOwnPropertySymbols(ue);
for (re = 0; re < ce.length; re++) {
if (((J = ce[re]), Q.indexOf(J) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(ue, J)) continue;
le[J] = ue[J];
}
}
return le;
}
function S(ue, Q) {
if (ue == null) return {};
var le = {},
J = Object.keys(ue),
re,
ce;
for (ce = 0; ce < J.length; ce++) {
if (((re = J[ce]), Q.indexOf(re) >= 0)) continue;
le[re] = ue[re];
}
return le;
}
function R(ue, Q) {
var le = Object.keys(ue);
if (Object.getOwnPropertySymbols) {
var J = Object.getOwnPropertySymbols(ue);
Q &&
(J = J.filter(function(re) {
return Object.getOwnPropertyDescriptor(ue, re).enumerable;
})),
le.push.apply(le, J);
}
return le;
}
function O(ue) {
for (var Q = 1; Q < arguments.length; Q++) {
var le = arguments[Q] != null ? arguments[Q] : {};
Q % 2
? R(Object(le), !0).forEach(function(J) {
M(ue, J, le[J]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(ue, Object.getOwnPropertyDescriptors(le))
: R(Object(le)).forEach(function(J) {
Object.defineProperty(ue, J, Object.getOwnPropertyDescriptor(le, J));
});
}
return ue;
}
function M(ue, Q, le) {
return (
Q in ue
? Object.defineProperty(ue, Q, {
value: le,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (ue[Q] = le),
ue
);
}
function A(ue, Q) {
if (!(ue instanceof Q)) throw new TypeError('Cannot call a class as a function');
}
function I(ue, Q) {
return Q && (E(Q) === 'object' || typeof Q == 'function') ? Q : B(ue);
}
function B(ue) {
if (ue === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return ue;
}
function N(ue) {
return (
(N = Object.setPrototypeOf
? Object.getPrototypeOf
: function(le) {
return le.__proto__ || Object.getPrototypeOf(le);
}),
N(ue)
);
}
function b(ue, Q) {
for (var le = 0; le < Q.length; le++) {
var J = Q[le];
(J.enumerable = J.enumerable || !1),
(J.configurable = !0),
'value' in J && (J.writable = !0),
Object.defineProperty(ue, J.key, J);
}
}
function C(ue, Q, le) {
return Q && b(ue.prototype, Q), le && b(ue, le), ue;
}
function h(ue, Q) {
if (typeof Q != 'function' && Q !== null)
throw new TypeError('Super expression must either be null or a function');
(ue.prototype = Object.create(Q && Q.prototype, {
constructor: { value: ue, writable: !0, configurable: !0 },
})),
Q && u(ue, Q);
}
function u(ue, Q) {
return (
(u =
Object.setPrototypeOf ||
function(J, re) {
return (J.__proto__ = re), J;
}),
u(ue, Q)
);
}
var m = 'datetime',
T = 'date',
x = 'time',
F = 'month',
U = 'year',
H = 24 * 60 * 60 * 1e3,
Y = function(Q) {
return new Date(Q.getFullYear(), Q.getMonth() + 1, 0).getDate();
},
Z = function(Q) {
return Q < 10 ? '0'.concat(Q) : Q;
},
ne = function(Q) {
return new Date(+Q);
},
ae = function(Q, le) {
Q.setDate(Math.min(Q.getDate(), Y(new Date(Q.getFullYear(), le)))), Q.setMonth(le);
},
Ee = function(Q, le, J, re, ce, ye) {
return new Date(Q, le, J, re, ce, ye);
},
Ae = (function(ue) {
h(Q, ue),
C(Q, null, [
{
key: 'getDerivedStateFromProps',
value: function(J, re) {
return (0, d.default)(
(0, a.default)(J, ['onChange', 'onInit', 'onTransition']),
(0, a.default)(re.prevProps, ['onChange', 'onInit', 'onTransition']),
)
? null
: O({ prevProps: J }, (0, t.parseState)(J));
},
},
]);
function Q(le) {
var J;
A(this, Q),
(J = I(this, N(Q).call(this, le))),
(J.onValueChange = function(ce, ye) {
var De = J.props.onChange,
Ne = J.getNewDate(ce, ye);
J.setState({ date: Ne }), typeof De == 'function' && De(Ne);
}),
(J.getNewDate = function(ce, ye) {
var De = J.props,
Ne = De.mode,
qe = De.valueMember,
Fe = parseInt(ce[ye][qe], 10),
We = ne(J.getDate());
if (Ne === U || Ne === F || Ne === T || Ne === m)
switch (ye) {
case 0:
We.setFullYear(Fe);
break;
case 1:
ae(We, Fe);
break;
case 2:
We.setDate(Fe);
break;
case 3:
We.setHours(Fe);
break;
case 4:
We.setMinutes(Fe);
break;
default:
break;
}
else
switch (ye) {
case 0:
We.setHours(Fe);
break;
case 1:
We.setMinutes(Fe);
break;
default:
break;
}
return J.clipDate(We);
}),
(J.getColsValue = function() {
var ce = J.props.mode,
ye = J.getDate(),
De = [],
Ne = [];
return (
ce === U && ((De = J.getDateData()), (Ne = [ye.getFullYear()])),
ce === F && ((De = J.getDateData()), (Ne = [ye.getFullYear(), ye.getMonth()])),
(ce === T || ce === m) &&
((De = J.getDateData()),
(Ne = [ye.getFullYear(), ye.getMonth(), ye.getDate()])),
ce === m &&
((De = De.concat(J.getTimeData())),
(Ne = Ne.concat([ye.getHours(), ye.getMinutes()]))),
ce === x && ((De = J.getTimeData()), (Ne = [ye.getHours(), ye.getMinutes()])),
{ dataSource: De, value: Ne }
);
}),
(J.getDateData = function() {
for (
var ce = J.props,
ye = ce.locale,
De = ce.mode,
Ne = J.getDate(),
qe = [],
Fe = [],
We = [],
Xe = Ne.getFullYear(),
ke = Ne.getMonth(),
vt = J.getMinYear(),
_t = J.getMaxYear(),
Ft = vt;
Ft <= _t;
Ft += 1
)
qe.push({ label: Ft + ye.year, value: Ft });
if (De === U) return [qe];
var Vt = 0,
Yt = 11;
Xe === vt && (Vt = J.getMinMonth()), Xe === _t && (Yt = J.getMaxMonth());
for (var Ge = Vt; Ge <= Yt; Ge += 1)
Fe.push({ label: Ge + 1 + ye.month, value: Ge });
if (De === F) return [qe, Fe];
var de = 1,
ie = Y(Ne);
Xe === vt && ke === Vt && (de = J.getMinDay()),
Xe === _t && ke === Yt && (ie = J.getMaxDay());
for (var Le = de; Le <= ie; Le += 1) We.push({ label: Le + ye.day, value: Le });
return De === T ? [qe, Fe, We] : [qe, Fe, We];
}),
(J.getTimeData = function() {
var ce = J.props,
ye = ce.locale,
De = ce.mode,
Ne = ce.minuteStep,
qe = J.getDate(),
Fe = [],
We = [],
Xe = 0,
ke = 23,
vt = 0,
_t = 59,
Ft = J.getMinHour(),
Vt = J.getMaxHour(),
Yt = J.getMinMinute(),
Ge = J.getMaxMinute(),
de = qe.getHours();
if (De === m) {
var ie = qe.getFullYear(),
Le = qe.getMonth(),
Je = qe.getDate(),
rt = J.getMinYear(),
yt = J.getMaxYear(),
nn = J.getMinMonth(),
Gt = J.getMaxMonth(),
Ct = J.getMinDay(),
Wt = J.getMaxDay();
ie === rt && Le === nn && Je === Ct && ((Xe = Ft), de === Xe && (vt = Yt)),
ie === yt && Le === Gt && Je === Wt && ((ke = Vt), de === ke && (_t = Ge));
} else (Xe = Ft), de === Xe && (vt = Yt), (ke = Vt), de === ke && (_t = Ge);
for (var Ht = Xe; Ht <= ke; Ht += 1)
Fe.push({ label: ye.hour ? Ht + ye.hour : Z(Ht), value: Ht });
for (var Zt = vt; Zt <= _t; Zt += Ne)
We.push({ label: ye.minute ? Zt + ye.minute : Z(Zt), value: Zt });
return [Fe, We];
}),
(J.getDefaultDate = function() {
var ce = J.props,
ye = ce.min,
De = ce.mode,
Ne = ce.minuteStep;
return ye && J.getMinDate().getTime() >= Date.now()
? J.getMinDate()
: Ne && Ne > 1 && (De === m || De === x)
? new Date(new Date().setMinutes(0))
: new Date();
}),
(J.getMinYear = function() {
return J.getMinDate().getFullYear();
}),
(J.getMaxYear = function() {
return J.getMaxDate().getFullYear();
}),
(J.getMinMonth = function() {
return J.getMinDate().getMonth();
}),
(J.getMaxMonth = function() {
return J.getMaxDate().getMonth();
}),
(J.getMinDay = function() {
return J.getMinDate().getDate();
}),
(J.getMaxDay = function() {
return J.getMaxDate().getDate();
}),
(J.getMinHour = function() {
return J.getMinDate().getHours();
}),
(J.getMaxHour = function() {
return J.getMaxDate().getHours();
}),
(J.getMinMinute = function() {
return J.getMinDate().getMinutes();
}),
(J.getMaxMinute = function() {
return J.getMaxDate().getMinutes();
}),
(J.getMinDate = function() {
var ce = (0, t.isExtendDate)(J.props.min);
return ce || J.getDefaultMinDate();
}),
(J.getMaxDate = function() {
var ce = (0, t.isExtendDate)(J.props.max);
return ce || J.getDefaultMaxDate();
}),
(J.getDefaultMinDate = function() {
return Ee(2e3, 0, 1, 0, 0, 0);
}),
(J.getDefaultMaxDate = function() {
return Ee(2030, 11, 30, 23, 59, 59);
}),
(J.clipDate = function(ce) {
var ye = J.props.mode,
De = J.getMinDate(),
Ne = J.getMaxDate();
if (ye === m) {
if (ce < De) return ne(De);
if (ce > Ne) return ne(Ne);
} else if (ye === T || ye === F || ye === U) {
if (+ce + H <= +De) return ne(De);
if (ce >= +Ne + H) return ne(Ne);
} else {
var qe = Ne.getHours(),
Fe = Ne.getMinutes(),
We = De.getHours(),
Xe = De.getMinutes(),
ke = ce.getHours(),
vt = ce.getMinutes();
if (ke < We || (ke === We && vt < Xe)) return ne(De);
if (ke > qe || (ke === qe && vt > Fe)) return ne(Ne);
}
return ce;
}),
(J.onTransition = function(ce) {
typeof J.props.onTransition == 'function' && J.props.onTransition(ce);
}),
(J.state = (0, t.parseState)(le));
var re = J.props.onInit;
return typeof re == 'function' && re(J.getDate()), J;
}
return (
C(Q, [
{
key: 'getDate',
value: function() {
var J = this.state,
re = J.date,
ce = J.wheelDefault;
return this.clipDate(re || ce || this.getDefaultDate());
},
},
{
key: 'render',
value: function() {
var J = this,
re = this.props,
ce = re.prefixCls,
ye = re.className,
De = re.onInit,
Ne = L(re, ['prefixCls', 'className', 'onInit']),
qe = this.getColsValue(),
Fe = qe.dataSource,
We = qe.value;
return r.default.createElement(
o.default,
w({}, Ne, {
className: ye,
prefixCls: ce,
dataSource: Fe,
value: We,
onChange: this.onValueChange,
onTransition: function(ke) {
J.onTransition(ke);
},
}),
);
},
},
]),
Q
);
})(r.Component);
(c.default = Ae),
(Ae.defaultProps = {
prefixCls: 'za-date-picker-view',
mode: T,
disabled: !1,
value: '',
defaultValue: '',
minuteStep: 1,
valueMember: 'value',
});
},
zEVN: function(W, c, n) {
var r = n('Gi0A'),
d = n('sEf8'),
o = n('mdPL'),
a = o && o.isMap,
t = a ? d(a) : r;
W.exports = t;
},
zORg: function(W, c, n) {
'use strict';
function r(d) {
if (d instanceof Element) {
var o = d.getAttribute('data-offset-key');
if (o) return o;
for (var a = 0; a < d.childNodes.length; a++) {
var t = r(d.childNodes[a]);
if (t) return t;
}
}
return null;
}
W.exports = r;
},
zZ0H: function(W, c) {
function n(r) {
return r;
}
W.exports = n;
},
zdCA: function(W, c, n) {
'use strict';
var r = n('TqRt'),
d = n('284h');
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = void 0);
var o = d(n('q1tI')),
a = r(n('PSzr')),
t = r(n('KQxl')),
e = function(E, w) {
return o.createElement(t.default, Object.assign({}, E, { ref: w, icon: a.default }));
};
e.displayName = 'BarsOutlined';
var g = o.forwardRef(e);
c.default = g;
},
zlY5: function(W, c, n) {
'use strict';
var r = n('158f');
function d(o) {
var a = r(o),
t = 0,
e = 0,
g = 0,
v = 0;
if (a.length) {
if (a.length > 1 && a[0].width === 0) {
var E = a[1];
(t = E.top), (e = E.right), (g = E.bottom), (v = E.left);
} else {
var w = a[0];
(t = w.top), (e = w.right), (g = w.bottom), (v = w.left);
}
for (var L = 1; L < a.length; L++) {
var S = a[L];
S.height !== 0 &&
S.width !== 0 &&
((t = Math.min(t, S.top)),
(e = Math.max(e, S.right)),
(g = Math.max(g, S.bottom)),
(v = Math.min(v, S.left)));
}
}
return { top: t, right: e, bottom: g, left: v, width: e - v, height: g - t };
}
W.exports = d;
},
zoYe: function(W, c, n) {
var r = n('nmnc'),
d = n('eUgh'),
o = n('Z0cm'),
a = n('/9aa'),
t = 1 / 0,
e = r ? r.prototype : void 0,
g = e ? e.toString : void 0;
function v(E) {
if (typeof E == 'string') return E;
if (o(E)) return d(E, v) + '';
if (a(E)) return g ? g.call(E) : '';
var w = E + '';
return w == '0' && 1 / E == -t ? '-0' : w;
}
W.exports = v;
},
zonl: function(W, c, n) {
'use strict';
Object.defineProperty(c, '__esModule', { value: !0 }), (c.default = t);
var r = o(n('q1tI')),
d = o(n('0fCl'));
function o(e) {
return e && e.__esModule ? e : { default: e };
}
var a = new Set();
function t(e) {
if (
typeof document != 'undefined' &&
typeof window != 'undefined' &&
typeof document.createElement == 'function' &&
typeof e == 'string' &&
e.length &&
!a.has(e)
) {
var g = document.createElement('script');
g.setAttribute('src', e),
g.setAttribute('data-namespace', e),
a.add(e),
document.body.appendChild(g);
}
var v = function E(w) {
E.displayName = 'Iconfont';
var L = w.type,
S;
return (
L && (S = r.default.createElement('use', { xlinkHref: '#'.concat(L) })),
r.default.createElement(d.default, w, S)
);
};
return v;
}
},
zs7G: function(W, c, n) {
'use strict';
var r = n('q1tI'),
d = {
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
children: [
{
tag: 'path',
attrs: {
d:
'M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z',
},
},
],
},
name: 'double-right',
theme: 'outlined',
},
o = d,
a = n('6VBw'),
t = function(v, E) {
return r.createElement(a.a, Object.assign({}, v, { ref: E, icon: o }));
};
t.displayName = 'DoubleRightOutlined';
var e = (c.a = r.forwardRef(t));
},
zuR4: function(W, c, n) {
'use strict';
var r = n('xTJ+'),
d = n('HSsa'),
o = n('CgaS'),
a = n('SntB'),
t = n('JEQr');
function e(v) {
var E = new o(v),
w = d(o.prototype.request, E);
return r.extend(w, o.prototype, E), r.extend(w, E), w;
}
var g = e(t);
(g.Axios = o),
(g.create = function(E) {
return e(a(g.defaults, E));
}),
(g.Cancel = n('endd')),
(g.CancelToken = n('jfS+')),
(g.isCancel = n('Lmem')),
(g.all = function(E) {
return Promise.all(E);
}),
(g.spread = n('DfZB')),
(W.exports = g),
(W.exports.default = g);
},
'zxN+': function(W, c, n) {
'use strict';
var r = n('zlY5');
function d(o) {
var a = o.getSelection();
if (!a.rangeCount) return null;
var t = a.getRangeAt(0),
e = r(t),
g = e.top,
v = e.right,
E = e.bottom,
w = e.left;
return g === 0 && v === 0 && E === 0 && w === 0 ? null : e;
}
W.exports = d;
},
},
]);
//# sourceMappingURL=p__editor__preview.js.map