. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute',
),
C
? Object(r.cloneElement)(m, {
ref: function(T) {
o(C, T), o(p, T);
},
})
: Object(r.cloneElement)(m, { ref: p })
);
}
function n(m) {
if (typeof m.type == 'string') return;
var p = m.type.displayName || m.type.name || 'the component';
throw new Error(
'Only native element nodes can now be passed to React DnD connectors.' +
'You can either wrap '.concat(p, ' into a
, or turn it into a ') +
'drag source or a drop target itself.',
);
}
function e(m) {
return function() {
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null,
C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
if (!Object(r.isValidElement)(p)) {
var w = p;
return m(w, C), w;
}
var T = p;
n(T);
var F = C
? function(E) {
return m(E, C);
}
: m;
return a(T, F);
};
}
function g(m) {
var p = {};
return (
Object.keys(m).forEach(function(C) {
var w = m[C];
if (C.endsWith('Ref')) p[C] = m[C];
else {
var T = e(w);
p[C] = function() {
return T;
};
}
}),
p
);
}
},
mIlM: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = n(t('q1tI')),
u = o(t('TSYQ'));
function o(A) {
return A && A.__esModule ? A : { default: A };
}
function a() {
if (typeof WeakMap != 'function') return null;
var A = new WeakMap();
return (
(a = function() {
return A;
}),
A
);
}
function n(A) {
if (A && A.__esModule) return A;
if (A === null || (e(A) !== 'object' && typeof A != 'function')) return { default: A };
var x = a();
if (x && x.has(A)) return x.get(A);
var h = {},
d = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var v in A)
if (Object.prototype.hasOwnProperty.call(A, v)) {
var S = d ? Object.getOwnPropertyDescriptor(A, v) : null;
S && (S.get || S.set) ? Object.defineProperty(h, v, S) : (h[v] = A[v]);
}
return (h.default = A), x && x.set(A, h), h;
}
function e(A) {
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(A)
);
}
function g() {
return (
(g =
Object.assign ||
function(A) {
for (var x = 1; x < arguments.length; x++) {
var h = arguments[x];
for (var d in h) Object.prototype.hasOwnProperty.call(h, d) && (A[d] = h[d]);
}
return A;
}),
g.apply(this, arguments)
);
}
function m(A, x, h) {
return (
x in A
? Object.defineProperty(A, x, {
value: h,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (A[x] = h),
A
);
}
function p(A, x) {
if (A == null) return {};
var h = C(A, x),
d,
v;
if (Object.getOwnPropertySymbols) {
var S = Object.getOwnPropertySymbols(A);
for (v = 0; v < S.length; v++) {
if (((d = S[v]), x.indexOf(d) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(A, d)) continue;
h[d] = A[d];
}
}
return h;
}
function C(A, x) {
if (A == null) return {};
var h = {},
d = Object.keys(A),
v,
S;
for (S = 0; S < d.length; S++) {
if (((v = d[S]), x.indexOf(v) >= 0)) continue;
h[v] = A[v];
}
return h;
}
function w(A, x) {
if (!(A instanceof x)) throw new TypeError('Cannot call a class as a function');
}
function T(A, x) {
for (var h = 0; h < x.length; h++) {
var d = x[h];
(d.enumerable = d.enumerable || !1),
(d.configurable = !0),
'value' in d && (d.writable = !0),
Object.defineProperty(A, d.key, d);
}
}
function F(A, x, h) {
return x && T(A.prototype, x), h && T(A, h), A;
}
function E(A, x) {
return x && (e(x) === 'object' || typeof x == 'function') ? x : D(A);
}
function D(A) {
if (A === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return A;
}
function O(A) {
return (
(O = Object.setPrototypeOf
? Object.getPrototypeOf
: function(h) {
return h.__proto__ || Object.getPrototypeOf(h);
}),
O(A)
);
}
function I(A, x) {
if (typeof x != 'function' && x !== null)
throw new TypeError('Super expression must either be null or a function');
(A.prototype = Object.create(x && x.prototype, {
constructor: { value: A, writable: !0, configurable: !0 },
})),
x && P(A, x);
}
function P(A, x) {
return (
(P =
Object.setPrototypeOf ||
function(d, v) {
return (d.__proto__ = v), d;
}),
P(A, x)
);
}
var M = (function(A) {
I(x, A);
function x() {
return w(this, x), E(this, O(x).apply(this, arguments));
}
return (
F(x, [
{
key: 'render',
value: function() {
var d = this.props,
v = d.prefixCls,
S = d.className,
N = d.visible,
R = d.type,
_ = p(d, ['prefixCls', 'className', 'visible', 'type']),
W = (0, u.default)(v, S, m({}, ''.concat(v, '--').concat(R), !!R));
return N && r.default.createElement('div', g({ className: W }, _));
},
},
]),
x
);
})(r.PureComponent);
(s.default = M), (M.defaultProps = { prefixCls: 'za-mask', visible: !1, type: 'normal' });
},
'mO/d': function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = u(t('I9Y+'));
function u(a) {
return a && a.__esModule ? a : { default: a };
}
var o = r;
(s.default = o), (U.exports = o);
},
mSe4: function(U, s, t) {
U.exports = {
avatarUploader: 'avatarUploader___1vNfc',
wallBtn: 'wallBtn___1meIq',
imgBox: 'imgBox____BQZH',
imgItem: 'imgItem___1ny5Y',
iconBtn: 'iconBtn___kMY-G',
seleted: 'seleted___3xgDA',
};
},
mTTR: function(U, s, t) {
var r = t('b80T'),
u = t('QcOe'),
o = t('MMmD');
function a(n) {
return o(n) ? r(n, !0) : u(n);
}
U.exports = a;
},
mc0g: function(U, s) {
function t(r) {
return function(u, o, a) {
for (var n = -1, e = Object(u), g = a(u), m = g.length; m--; ) {
var p = g[r ? m : ++n];
if (o(e[p], p, e) === !1) break;
}
return u;
};
}
U.exports = t;
},
mdPL: function(U, s, t) {
(function(r) {
var u = t('WFqU'),
o = s && !s.nodeType && s,
a = o && typeof r == 'object' && r && !r.nodeType && r,
n = a && a.exports === o,
e = n && u.process,
g = (function() {
try {
var m = a && a.require && a.require('util').types;
return m || (e && e.binding && e.binding('util'));
} catch (p) {}
})();
r.exports = g;
}.call(this, t('YuTi')(U)));
},
mjHj: function(U, s, t) {
'use strict';
var r = t('2NuI'),
u = 'NEUTRAL',
o = 'LTR',
a = 'RTL',
n = null;
function e(F) {
return F === o || F === a;
}
function g(F) {
return e(F) || r(!1), F === o ? 'ltr' : 'rtl';
}
function m(F, E) {
return e(F) || r(!1), e(E) || r(!1), F === E ? null : g(F);
}
function p(F) {
n = F;
}
function C() {
p(o);
}
function w() {
return n || this.initGlobalDir(), n || r(!1), n;
}
var T = {
NEUTRAL: u,
LTR: o,
RTL: a,
isStrong: e,
getHTMLDir: g,
getHTMLDirIfDifferent: m,
setGlobalDir: p,
initGlobalDir: C,
getGlobalDir: w,
};
U.exports = T;
},
mpQp: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'PictureOutlined';
var e = (s.a = r.forwardRef(n));
},
'mv/X': function(U, s, t) {
var r = t('ljhN'),
u = t('MMmD'),
o = t('wJg7'),
a = t('GoyQ');
function n(e, g, m) {
if (!a(m)) return !1;
var p = typeof g;
return (p == 'number' ? u(m) && o(g, m.length) : p == 'string' && g in m) ? r(m[g], e) : !1;
}
U.exports = n;
},
mwAb: function(U, s, t) {
'use strict';
t.r(s);
var r = { type: 'Area', h: 108, displayName: '面积图组件' };
s.default = r;
},
mwIZ: function(U, s, t) {
var r = t('ZWtO');
function u(o, a, n) {
var e = o == null ? void 0 : r(o, a);
return e === void 0 ? n : e;
}
U.exports = u;
},
'n+ZD': function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = e(t('q1tI')),
u = a(t('TSYQ')),
o = a(t('8Bmw'));
function a(h) {
return h && h.__esModule ? h : { default: h };
}
function n() {
if (typeof WeakMap != 'function') return null;
var h = new WeakMap();
return (
(n = 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 d = n();
if (d && d.has(h)) return d.get(h);
var v = {},
S = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var N in h)
if (Object.prototype.hasOwnProperty.call(h, N)) {
var R = S ? Object.getOwnPropertyDescriptor(h, N) : null;
R && (R.get || R.set) ? Object.defineProperty(v, N, R) : (v[N] = h[N]);
}
return (v.default = h), d && d.set(h, v), v;
}
function g(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (g = function(v) {
return typeof v;
})
: (g = function(v) {
return v &&
typeof Symbol == 'function' &&
v.constructor === Symbol &&
v !== Symbol.prototype
? 'symbol'
: typeof v;
}),
g(h)
);
}
function m() {
return (
(m =
Object.assign ||
function(h) {
for (var d = 1; d < arguments.length; d++) {
var v = arguments[d];
for (var S in v) Object.prototype.hasOwnProperty.call(v, S) && (h[S] = v[S]);
}
return h;
}),
m.apply(this, arguments)
);
}
function p(h, d, v) {
return (
d in h
? Object.defineProperty(h, d, {
value: v,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[d] = v),
h
);
}
function C(h, d) {
if (h == null) return {};
var v = w(h, d),
S,
N;
if (Object.getOwnPropertySymbols) {
var R = Object.getOwnPropertySymbols(h);
for (N = 0; N < R.length; N++) {
if (((S = R[N]), d.indexOf(S) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(h, S)) continue;
v[S] = h[S];
}
}
return v;
}
function w(h, d) {
if (h == null) return {};
var v = {},
S = Object.keys(h),
N,
R;
for (R = 0; R < S.length; R++) {
if (((N = S[R]), d.indexOf(N) >= 0)) continue;
v[N] = h[N];
}
return v;
}
function T(h, d) {
if (!(h instanceof d)) throw new TypeError('Cannot call a class as a function');
}
function F(h, d) {
for (var v = 0; v < d.length; v++) {
var S = d[v];
(S.enumerable = S.enumerable || !1),
(S.configurable = !0),
'value' in S && (S.writable = !0),
Object.defineProperty(h, S.key, S);
}
}
function E(h, d, v) {
return d && F(h.prototype, d), v && F(h, v), h;
}
function D(h, d) {
return d && (g(d) === 'object' || typeof d == 'function') ? d : O(h);
}
function O(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(v) {
return v.__proto__ || Object.getPrototypeOf(v);
}),
I(h)
);
}
function P(h, d) {
if (typeof d != 'function' && d !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(d && d.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
d && M(h, d);
}
function M(h, d) {
return (
(M =
Object.setPrototypeOf ||
function(S, N) {
return (S.__proto__ = N), S;
}),
M(h, d)
);
}
var A = function(d, v) {
return typeof d.checked != 'undefined'
? d.checked
: typeof d.defaultChecked != 'undefined'
? d.defaultChecked
: v;
},
x = (function(h) {
P(d, h);
function d() {
var v, S;
T(this, d);
for (var N = arguments.length, R = new Array(N), _ = 0; _ < N; _++) R[_] = arguments[_];
return (
(S = D(this, (v = I(d)).call.apply(v, [this].concat(R)))),
(S.state = { checked: A(S.props, !1) }),
(S.onValueChange = function(W) {
var K = S.props,
Z = K.disabled,
ee = K.onChange,
ne = S.state.checked;
if (Z) return;
var ue = !ne;
'checked' in S.props || S.setState({ checked: ue }),
typeof ee == 'function' && ee(W);
}),
S
);
}
return (
E(
d,
[
{
key: 'render',
value: function() {
var S,
N = this.props,
R = N.prefixCls,
_ = N.className,
W = N.type,
K = N.shape,
Z = N.value,
ee = N.checked,
ne = N.defaultChecked,
ue = N.disabled,
Ee = N.id,
ce = N.indeterminate,
Q = N.children,
le = N.onChange,
J = C(N, [
'prefixCls',
'className',
'type',
'shape',
'value',
'checked',
'defaultChecked',
'disabled',
'id',
'indeterminate',
'children',
'onChange',
]),
ae = this.state.checked,
fe = (0, u.default)(
R,
_,
((S = {}),
p(S, ''.concat(R, '--checked'), ae),
p(S, ''.concat(R, '--disabled'), ue),
p(S, ''.concat(R, '--indeterminate'), ce),
p(S, ''.concat(R, '--untext'), !Q),
S),
),
Te = r.default.createElement('input', {
id: Ee,
type: 'checkbox',
className: ''.concat(R, '__input'),
value: Z,
disabled: ue,
checked: ae,
onChange: this.onValueChange,
}),
we = r.default.createElement(
'span',
m({ className: fe }, J),
r.default.createElement(
'span',
{ className: ''.concat(R, '__widget') },
r.default.createElement('span', { className: ''.concat(R, '__inner') }),
),
Q &&
r.default.createElement('span', { className: ''.concat(R, '__text') }, Q),
Te,
);
return W === 'cell'
? r.default.createElement(
o.default,
m({ disabled: ue, className: _, onClick: function() {} }, J),
we,
)
: W === 'button'
? r.default.createElement(
'button',
m({ type: 'button', disabled: ue, className: fe }, J),
Q,
Te,
)
: we;
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(S, N) {
return 'checked' in S && S.checked !== N.prevChecked
? { checked: S.checked, prevChecked: S.checked }
: null;
},
},
],
),
d
);
})(r.PureComponent);
(s.default = x),
(x.Group = void 0),
(x.displayName = 'Checkbox'),
(x.defaultProps = { prefixCls: 'za-checkbox', disabled: !1, indeterminate: !1 });
},
'nO5+': function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.getFromHTMLConfig = s.getToHTMLConfig = s.blocks = s.getHexColor = s.defaultFontFamilies = s.namedColors = void 0);
var r =
Object.assign ||
function(R) {
for (var _ = 1; _ < arguments.length; _++) {
var W = arguments[_];
for (var K in W) Object.prototype.hasOwnProperty.call(W, K) && (R[K] = W[K]);
}
return R;
},
u = t('q1tI'),
o = a(u);
function a(R) {
return R && R.__esModule ? R : { default: R };
}
function n(R, _) {
var W = {};
for (var K in R) {
if (_.indexOf(K) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(R, K)) continue;
W[K] = R[K];
}
return W;
}
var e = (s.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(_) {
return _.split('-')[1];
},
m = function(_) {
return _ + 'px';
},
p = function(_) {
return _.replace('px', '');
},
C = ['style'],
w = [
'style',
'href',
'target',
'alt',
'title',
'id',
'controls',
'autoplay',
'loop',
'poster',
],
T = function(_) {
return Object.keys(_)
.reduce(function(W, K) {
return W + ' ' + K + '="' + _[K] + '"';
}, '')
.replace(/^\s$/, '');
},
F = (s.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" },
]),
E = (s.getHexColor = function(_) {
if (
((_ = _.replace('color:', '')
.replace(';', '')
.replace(' ', '')),
/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(_))
)
return _;
if (e[_]) return e[_];
if (_.indexOf('rgb') === 0) {
var W = _.split(','),
K =
W.length < 3
? null
: '#' +
[W[0], W[1], W[2]]
.map(function(Z) {
var ee = parseInt(Z.replace(/\D/g, ''), 10).toString(16);
return ee.length === 1 ? '0' + ee : ee;
})
.join('');
return /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(K) ? K : null;
} else return null;
}),
D = (s.blocks = {
'header-one': 'h1',
'header-two': 'h2',
'header-three': 'h3',
'header-four': 'h4',
'header-five': 'h5',
'header-six': 'h6',
unstyled: 'p',
blockquote: 'blockquote',
}),
O = Object.keys(D),
I = O.map(function(R) {
return D[R];
}),
P = function(_, W, K) {
if (!_ || !_.key) return o.default.createElement('p', null);
var Z = W.getBlockForKey(_.key),
ee = K.class,
ne = n(K, ['class']);
if (((ne.className = ee), !Z)) return o.default.createElement('p', null);
var ue = Z.getEntityAt(0);
if (!ue) return o.default.createElement('p', null);
var Ee = W.getEntity(ue),
ce = Ee.getType().toLowerCase(),
Q = _.data,
le = Q.float,
J = Q.alignment,
ae = Ee.getData(),
fe = ae.url,
Te = ae.link,
we = ae.link_target,
Le = ae.width,
qe = ae.height,
Me = ae.meta;
if (ce === 'image') {
var ze = {},
Xe = '';
return (
le
? ((ze.float = le), (Xe += ' float-' + le))
: J && ((ze.textAlign = J), (Xe += ' align-' + J)),
Te
? o.default.createElement(
'div',
{ className: 'media-wrap image-wrap' + Xe, style: ze },
o.default.createElement(
'a',
{ style: { display: 'inline-block' }, href: Te, target: we },
o.default.createElement(
'img',
r({}, ne, Me, {
src: fe,
width: Le,
height: qe,
style: { width: Le, height: qe },
}),
),
),
)
: o.default.createElement(
'div',
{ className: 'media-wrap image-wrap' + Xe, style: ze },
o.default.createElement(
'img',
r({}, ne, Me, {
src: fe,
width: Le,
height: qe,
style: { width: Le, height: qe },
}),
),
)
);
} else
return ce === 'audio'
? o.default.createElement(
'div',
{ className: 'media-wrap audio-wrap' },
o.default.createElement('audio', r({ controls: !0 }, ne, Me, { src: fe })),
)
: ce === 'video'
? o.default.createElement(
'div',
{ className: 'media-wrap video-wrap' },
o.default.createElement(
'video',
r({ controls: !0 }, ne, Me, { src: fe, width: Le, height: qe }),
),
)
: ce === 'embed'
? o.default.createElement(
'div',
{ className: 'media-wrap embed-wrap' },
o.default.createElement('div', { dangerouslySetInnerHTML: { __html: fe } }),
)
: ce === 'hr'
? o.default.createElement('hr', null)
: o.default.createElement('p', null);
},
M = function(_) {
return function(W, K) {
var Z = _.entityExportFn,
ee = W.type.toLowerCase();
if (Z) {
var ne = Z(W, K);
if (ne) return ne;
}
if (ee === 'link') {
var ue = W.data.nodeAttributes || {},
Ee = ue.class,
ce = n(ue, ['class']);
return (
(ce.className = Ee),
o.default.createElement('a', r({ href: W.data.href, target: W.data.target }, ce))
);
}
};
},
A = function(_) {
return function(W) {
var K = _.unitExportFn || m;
if (_.styleExportFn) {
var Z = _.styleExportFn(W, _);
if (Z) return Z;
}
if (((W = W.toLowerCase()), W === 'strikethrough'))
return o.default.createElement('span', { style: { textDecoration: 'line-through' } });
if (W === 'superscript') return o.default.createElement('sup', null);
if (W === 'subscript') return o.default.createElement('sub', null);
if (W.indexOf('color-') === 0)
return o.default.createElement('span', { style: { color: '#' + g(W) } });
if (W.indexOf('bgcolor-') === 0)
return o.default.createElement('span', { style: { backgroundColor: '#' + g(W) } });
if (W.indexOf('fontsize-') === 0)
return o.default.createElement('span', {
style: { fontSize: K(g(W), 'font-size', 'html') },
});
if (W.indexOf('lineheight-') === 0)
return o.default.createElement('span', {
style: { lineHeight: K(g(W), 'line-height', 'html') },
});
if (W.indexOf('letterspacing-') === 0)
return o.default.createElement('span', {
style: { letterSpacing: K(g(W), 'letter-spacing', 'html') },
});
if (W.indexOf('fontfamily-') === 0) {
var ee = _.fontFamilies.find(function(ne) {
return ne.name.toLowerCase() === g(W);
});
return ee
? o.default.createElement('span', { style: { fontFamily: ee.family } })
: void 0;
}
};
},
x = function(_) {
return function(W) {
var K = _.blockExportFn,
Z = _.contentState;
if (K) {
var ee = K(Z, W);
if (ee) return ee;
}
var ne = '',
ue = W.type.toLowerCase(),
Ee = W.data,
ce = Ee.textAlign,
Q = Ee.textIndent,
le = Ee.nodeAttributes,
J = le === void 0 ? {} : le,
ae = T(J);
if (
((ce || Q) &&
((ne = ' style="'),
ce && (ne += 'text-align:' + ce + ';'),
Q && !isNaN(Q) && Q > 0 && (ne += 'text-indent:' + Q * 2 + 'em;'),
(ne += '"')),
ue === 'atomic')
)
return P(W, Z, J);
if (ue === 'code-block') {
var fe = Z.getBlockBefore(W.key),
Te = Z.getBlockAfter(W.key),
we = fe && fe.getType(),
Le = Te && Te.getType(),
qe = '',
Me = '';
return (
we !== 'code-block' ? (qe = '
') : (qe = ''),
Le !== 'code-block' ? (Me = '
') : (Me = '
'),
{ start: qe, end: Me }
);
} else {
if (D[ue]) return { start: '<' + D[ue] + ne + ae + '>', end: '' + D[ue] + '>' };
if (ue === 'unordered-list-item')
return {
start: '
',
end: '',
nest: o.default.createElement('ul', null),
};
if (ue === 'ordered-list-item')
return {
start: '
',
end: '',
nest: o.default.createElement('ol', null),
};
}
};
},
h = function(_, W) {
return function(K, Z, ee) {
if (!Z || !Z.style) return ee;
var ne = _.unitImportFn || p,
ue = ee;
return (
[].forEach.call(Z.style, function(Ee) {
if (K === 'span' && Ee === 'color') {
var ce = E(Z.style.color);
ue = ce ? ue.add('COLOR-' + ce.replace('#', '').toUpperCase()) : ue;
} else if (K === 'span' && Ee === 'background-color') {
var Q = E(Z.style.backgroundColor);
ue = Q ? ue.add('BGCOLOR-' + Q.replace('#', '').toUpperCase()) : ue;
} else if (K === 'span' && Ee === 'font-size')
ue = ue.add('FONTSIZE-' + ne(Z.style.fontSize, 'font-size', W));
else if (
K === 'span' &&
Ee === 'line-height' &&
!isNaN(parseFloat(Z.style.lineHeight, 10))
)
ue = ue.add('LINEHEIGHT-' + ne(Z.style.lineHeight, 'line-height', W));
else if (
K === 'span' &&
Ee === 'letter-spacing' &&
!isNaN(parseFloat(Z.style.letterSpacing, 10))
)
ue = ue.add('LETTERSPACING-' + ne(Z.style.letterSpacing, 'letter-spacing', W));
else if (K === 'span' && Ee === 'text-decoration')
Z.style.textDecoration === 'line-through'
? (ue = ue.add('STRIKETHROUGH'))
: Z.style.textDecoration === 'underline' && (ue = ue.add('UNDERLINE'));
else if (K === 'span' && Ee === 'font-family') {
var le = _.fontFamilies.find(function(J) {
return J.family.toLowerCase() === Z.style.fontFamily.toLowerCase();
});
if (!le) return;
ue = ue.add('FONTFAMILY-' + le.name.toUpperCase());
}
}),
K === 'sup'
? (ue = ue.add('SUPERSCRIPT'))
: K === 'sub' && (ue = ue.add('SUBSCRIPT')),
_.styleImportFn && (ue = _.styleImportFn(K, Z, ue, W) || ue),
ue
);
};
},
d = function(_, W) {
return function(K, Z, ee) {
if (_ && _.entityImportFn) {
var ne = _.entityImportFn(K, Z, ee, W);
if (ne) return ne;
}
K = K.toLowerCase();
var ue = Z.alt,
Ee = Z.title,
ce = Z.id,
Q = Z.controls,
le = Z.autoplay,
J = Z.loop,
ae = Z.poster,
fe = {},
Te = {};
if (
(ce && (fe.id = ce),
ue && (fe.alt = ue),
Ee && (fe.title = Ee),
Q && (fe.controls = Q),
le && (fe.autoPlay = le),
J && (fe.loop = J),
ae && (fe.poster = ae),
Z.attributes &&
Object.keys(Z.attributes).forEach(function(_t) {
var Pt = Z.attributes[_t];
w.indexOf(Pt.name) === -1 && (Te[Pt.name] = Pt.value);
}),
K === 'a' && !Z.querySelectorAll('img').length)
) {
var we = Z.getAttribute('href'),
Le = Z.getAttribute('target');
return ee('LINK', 'MUTABLE', { href: we, target: Le, nodeAttributes: Te });
} else {
if (K === 'audio')
return ee('AUDIO', 'IMMUTABLE', {
url: Z.getAttribute('src'),
meta: fe,
nodeAttributes: Te,
});
if (K === 'video')
return ee('VIDEO', 'IMMUTABLE', {
url: Z.getAttribute('src'),
meta: fe,
nodeAttributes: Te,
});
if (K === 'img') {
var qe = Z.parentNode,
Me = { meta: fe },
ze = Z.style,
Xe = ze.width,
Ue = ze.height;
return (
(Me.url = Z.getAttribute('src')),
Xe && (Me.width = Xe),
Ue && (Me.height = Ue),
qe.nodeName.toLowerCase() === 'a' &&
((Me.link = qe.getAttribute('href')),
(Me.link_target = qe.getAttribute('target'))),
ee('IMAGE', 'IMMUTABLE', Me)
);
} else {
if (K === 'hr') return ee('HR', 'IMMUTABLE', {});
if (Z.parentNode && Z.parentNode.classList.contains('embed-wrap')) {
var Et = Z.innerHTML || Z.outerHTML;
if (Et) return ee('EMBED', 'IMMUTABLE', { url: Et });
}
}
}
};
},
v = function(_, W) {
return function(K, Z) {
if (_ && _.blockImportFn) {
var ee = _.blockImportFn(K, Z, W);
if (ee) return ee;
}
var ne = {},
ue = Z.style || {};
if (
(Z.attributes &&
Object.keys(Z.attributes).forEach(function(ce) {
var Q = Z.attributes[ce];
C.indexOf(Q.name) === -1 && (ne[Q.name] = Q.value);
}),
Z.classList && Z.classList.contains('media-wrap'))
)
return {
type: 'atomic',
data: { nodeAttributes: ne, float: ue.float, alignment: ue.textAlign },
};
if (K === 'img')
return {
type: 'atomic',
data: { nodeAttributes: ne, float: ue.float, alignment: ue.textAlign },
};
if (K === 'hr') return { type: 'atomic', data: { nodeAttributes: ne } };
if (K === 'pre')
return (
(Z.innerHTML = Z.innerHTML.replace(/
/g, '').replace(/<\/code>/g, '')),
{ type: 'code-block', data: { nodeAttributes: ne } }
);
if (I.indexOf(K) !== -1) {
var Ee = { nodeAttributes: ne };
return (
ue.textAlign && (Ee.textAlign = ue.textAlign),
ue.textIndent &&
(Ee.textIndent = /^\d+em$/.test(ue.textIndent)
? Math.ceil(parseInt(ue.textIndent, 10) / 2)
: 1),
{ type: O[I.indexOf(K)], data: Ee }
);
}
};
},
S = (s.getToHTMLConfig = function(_) {
return { styleToHTML: A(_), entityToHTML: M(_), blockToHTML: x(_) };
}),
N = (s.getFromHTMLConfig = function(_) {
var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'unknow';
return { htmlToStyle: h(_, W), htmlToEntity: d(_, W), htmlToBlock: v(_, W) };
});
},
nPkp: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = { cancelText: '取消', okText: '确定' };
s.default = r;
},
nVVt: function(U, s) {
U.exports = {
MODE_NUMBER: 1 << 0,
MODE_ALPHA_NUM: 1 << 1,
MODE_8BIT_BYTE: 1 << 2,
MODE_KANJI: 1 << 3,
};
},
nVmd: function(U, s, t) {
'use strict';
t.r(s);
var r = { type: 'Pie', h: 106, displayName: '饼图组件' };
s.default = r;
},
'nW7/': function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.Twitter = void 0);
var r = t('q1tI'),
u = E(r),
o = t('17x9'),
a = E(o),
n = t('/FUP'),
e = E(n),
g = t('3WF5'),
m = E(g),
p = t('QkVN'),
C = E(p),
w = t('p8yl'),
T = E(w),
F = t('TM95');
function E(O) {
return O && O.__esModule ? O : { default: O };
}
var D = (s.Twitter = function(I) {
var P = I.onChange,
M = I.onSwatchHover,
A = I.hex,
x = I.colors,
h = I.width,
d = I.triangle,
v = I.styles,
S = v === void 0 ? {} : v,
N = I.className,
R = N === void 0 ? '' : N,
_ = (0, e.default)(
(0, C.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' },
},
},
S,
),
{
'hide-triangle': d === 'hide',
'top-left-triangle': d === 'top-left',
'top-right-triangle': d === 'top-right',
},
),
W = function(Z, ee) {
T.default.isValidHex(Z) && P({ hex: Z, source: 'hex' }, ee);
};
return u.default.createElement(
'div',
{ style: _.card, className: 'twitter-picker ' + R },
u.default.createElement('div', { style: _.triangleShadow }),
u.default.createElement('div', { style: _.triangle }),
u.default.createElement(
'div',
{ style: _.body },
(0, m.default)(x, function(K, Z) {
return u.default.createElement(F.Swatch, {
key: Z,
color: K,
hex: K,
style: _.swatch,
onClick: W,
onHover: M,
focusStyle: { boxShadow: '0 0 4px ' + K },
});
}),
u.default.createElement('div', { style: _.hash }, '#'),
u.default.createElement(F.EditableInput, {
label: null,
style: { input: _.input },
value: A.replace('#', ''),
onChange: W,
}),
u.default.createElement('div', { style: _.clear }),
),
);
});
(D.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,
}),
(D.defaultProps = {
width: 276,
colors: [
'#FF6900',
'#FCB900',
'#7BDCB5',
'#00D084',
'#8ED1FC',
'#0693E3',
'#ABB8C3',
'#EB144C',
'#F78DA7',
'#9900EF',
],
triangle: 'top-left',
styles: {},
}),
(s.default = (0, F.ColorWrap)(D));
},
nXTX: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 });
var r = 0,
u = (s.UniqueIndex = function() {
return (r += 1);
});
},
nmnc: function(U, s, t) {
var r = t('Kz5y'),
u = r.Symbol;
U.exports = u;
},
nsrk: function(U, s, t) {
'use strict';
t.r(s);
var r = { type: 'Calendar', h: 185, displayName: '日历组件' };
s.default = r;
},
'o/tG': function(U, s, t) {
'use strict';
t.r(s);
var r = { type: 'WhiteTpl', h: 20, displayName: '空白组件' };
s.default = r;
},
'oCl/': function(U, s, t) {
var r = t('CH3K'),
u = t('LcsW'),
o = t('MvSz'),
a = t('0ycA'),
n = Object.getOwnPropertySymbols,
e = n
? function(g) {
for (var m = []; g; ) r(m, o(g)), (g = u(g));
return m;
}
: a;
U.exports = e;
},
oPLb: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.Compact = void 0);
var r = t('q1tI'),
u = P(r),
o = t('17x9'),
a = P(o),
n = t('/FUP'),
e = P(n),
g = t('3WF5'),
m = P(g),
p = t('QkVN'),
C = P(p),
w = t('p8yl'),
T = P(w),
F = t('TM95'),
E = t('ZQT/'),
D = P(E),
O = t('8J/B'),
I = P(O);
function P(A) {
return A && A.__esModule ? A : { default: A };
}
var M = (s.Compact = function(x) {
var h = x.onChange,
d = x.onSwatchHover,
v = x.colors,
S = x.hex,
N = x.rgb,
R = x.styles,
_ = R === void 0 ? {} : R,
W = x.className,
K = W === void 0 ? '' : W,
Z = (0, e.default)(
(0, C.default)(
{
default: {
Compact: { background: '#f6f6f6', radius: '4px' },
compact: {
paddingTop: '5px',
paddingLeft: '5px',
boxSizing: 'initial',
width: '240px',
},
clear: { clear: 'both' },
},
},
_,
),
),
ee = function(ue, Ee) {
ue.hex
? T.default.isValidHex(ue.hex) && h({ hex: ue.hex, source: 'hex' }, Ee)
: h(ue, Ee);
};
return u.default.createElement(
F.Raised,
{ style: Z.Compact, styles: _ },
u.default.createElement(
'div',
{ style: Z.compact, className: 'compact-picker ' + K },
u.default.createElement(
'div',
null,
(0, m.default)(v, function(ne) {
return u.default.createElement(D.default, {
key: ne,
color: ne,
active: ne.toLowerCase() === S,
onClick: ee,
onSwatchHover: d,
});
}),
u.default.createElement('div', { style: Z.clear }),
),
u.default.createElement(I.default, { hex: S, rgb: N, onChange: ee }),
),
);
});
(M.propTypes = { colors: a.default.arrayOf(a.default.string), styles: a.default.object }),
(M.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: {},
}),
(s.default = (0, F.ColorWrap)(M));
},
oPSa: function(U, s, t) {
'use strict';
var r = {
draft_killswitch_allow_nontextnodes: !1,
draft_segmented_entities_behavior: !1,
draft_handlebeforeinput_composed_text: !1,
draft_tree_data_support: !1,
};
U.exports = r;
},
oQVV: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return g;
});
var r = t('khz9'),
u = t('mDht'),
o = t('V5iW');
function a(m, p) {
if (!(m instanceof p)) throw new TypeError('Cannot call a class as a function');
}
function n(m, p) {
for (var C = 0; C < p.length; C++) {
var w = p[C];
(w.enumerable = w.enumerable || !1),
(w.configurable = !0),
'value' in w && (w.writable = !0),
Object.defineProperty(m, w.key, w);
}
}
function e(m, p, C) {
return p && n(m.prototype, p), C && n(m, C), m;
}
var g = (function() {
function m(p) {
var C = this;
a(this, m),
(this.hooks = Object(u.a)({
dropTarget: function(T, F) {
C.clearDropTarget(),
(C.dropTargetOptions = F),
Object(o.a)(T) ? (C.dropTargetRef = T) : (C.dropTargetNode = T),
C.reconnect();
},
})),
(this.handlerId = null),
(this.dropTargetRef = null),
(this.dropTargetOptionsInternal = null),
(this.lastConnectedHandlerId = null),
(this.lastConnectedDropTarget = null),
(this.lastConnectedDropTargetOptions = null),
(this.backend = p);
}
return (
e(m, [
{
key: 'reconnect',
value: function() {
var C =
this.didHandlerIdChange() ||
this.didDropTargetChange() ||
this.didOptionsChange();
C && this.disconnectDropTarget();
var w = this.dropTarget;
if (!this.handlerId) return;
if (!w) {
this.lastConnectedDropTarget = w;
return;
}
C &&
((this.lastConnectedHandlerId = this.handlerId),
(this.lastConnectedDropTarget = w),
(this.lastConnectedDropTargetOptions = this.dropTargetOptions),
(this.unsubscribeDropTarget = this.backend.connectDropTarget(
this.handlerId,
w,
this.dropTargetOptions,
)));
},
},
{
key: 'receiveHandlerId',
value: function(C) {
if (C === this.handlerId) return;
(this.handlerId = C), 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(C) {
this.dropTargetOptionsInternal = C;
},
},
{
key: 'dropTarget',
get: function() {
return this.dropTargetNode || (this.dropTargetRef && this.dropTargetRef.current);
},
},
]),
m
);
})();
},
oWMv: function(U, s) {
U.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(U, s, t) {
'use strict';
var r = t('fyOY'),
u = t('3sOJ'),
o = t('DYKh');
function a(n) {
var e = n.getSelection();
if (!e.isCollapsed()) return n;
var g = e.getAnchorOffset();
if (g === 0) return n;
var m = e.getAnchorKey(),
p = n.getCurrentContent(),
C = p.getBlockForKey(m),
w = C.getLength();
if (w <= 1) return n;
var T, F;
g === w
? ((T = e.set('anchorOffset', g - 1)), (F = e))
: ((T = e.set('focusOffset', g + 1)), (F = T.set('anchorOffset', g + 1)));
var E = o(p, T),
D = r.removeRange(p, T, 'backward'),
O = D.getSelectionAfter(),
I = O.getAnchorOffset() - 1,
P = O.merge({ anchorOffset: I, focusOffset: I }),
M = r.replaceWithFragment(D, P, E),
A = u.push(n, M, 'insert-fragment');
return u.acceptSelection(A, F);
}
U.exports = a;
},
ohE5: function(U, s, t) {
'use strict';
function r(o) {
return function() {
return o;
};
}
var u = function() {};
(u.thatReturns = r),
(u.thatReturnsFalse = r(!1)),
(u.thatReturnsTrue = r(!0)),
(u.thatReturnsNull = r(null)),
(u.thatReturnsThis = function() {
return this;
}),
(u.thatReturnsArgument = function(o) {
return o;
}),
(U.exports = u);
},
or5M: function(U, s, t) {
var r = t('1hJj'),
u = t('QoRX'),
o = t('xYSL'),
a = 1,
n = 2;
function e(g, m, p, C, w, T) {
var F = p & a,
E = g.length,
D = m.length;
if (E != D && !(F && D > E)) return !1;
var O = T.get(g),
I = T.get(m);
if (O && I) return O == m && I == g;
var P = -1,
M = !0,
A = p & n ? new r() : void 0;
for (T.set(g, m), T.set(m, g); ++P < E; ) {
var x = g[P],
h = m[P];
if (C) var d = F ? C(h, x, P, m, g, T) : C(x, h, P, g, m, T);
if (d !== void 0) {
if (d) continue;
M = !1;
break;
}
if (A) {
if (
!u(m, function(v, S) {
if (!o(A, S) && (x === v || w(x, v, p, C, T))) return A.push(S);
})
) {
M = !1;
break;
}
} else if (!(x === h || w(x, h, p, C, T))) {
M = !1;
break;
}
}
return T.delete(g), T.delete(m), M;
}
U.exports = e;
},
'otv/': function(U, s, t) {
var r = t('nmnc'),
u = r ? r.prototype : void 0,
o = u ? u.valueOf : void 0;
function a(n) {
return o ? Object(o.call(n)) : {};
}
U.exports = a;
},
ouyl: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 });
var r = t('/HcZ');
s.Menu = r.Menu;
var u = t('MmGO');
s.Item = u.Item;
var o = t('2dht');
s.Separator = o.Separator;
var a = t('iCPa');
s.IconFont = a.IconFont;
var n = t('Lhw+');
s.Submenu = n.Submenu;
var e = t('On4H');
s.MenuProvider = e.MenuProvider;
var g = t('h1DP');
s.contextMenu = g.contextMenu;
var m = t('hUy5');
(s.theme = m.theme), (s.animation = m.animation);
},
p1kU: function(U, s, t) {
'use strict';
var r = t('iatg');
function u(o) {
var a = r(o);
return { x: a.left, y: a.top, width: a.right - a.left, height: a.bottom - a.top };
}
U.exports = u;
},
p6l7: function(U, s, t) {
'use strict';
t.r(s),
t.d(s, 'baseConfig', function() {
return r;
}),
t.d(s, 'baseDefault', function() {
return u;
});
var r = [
{ key: 'baseTop', name: '纵向位移', type: 'Number' },
{ key: 'baseLeft', name: '横向位移', type: 'Number' },
{ key: 'baseRadius', name: '圆角', type: 'Number' },
{ key: 'baseRotate', name: '旋转', type: 'Number' },
{ key: 'baseScale', name: '缩放', type: 'Number' },
{ key: 'baseHeight', name: '容器高度%', type: 'Number' },
{ key: 'baseWidth', name: '容器宽度%', type: 'Number' },
],
u = {
baseTop: 0,
baseLeft: 0,
baseRadius: 0,
baseRotate: 0,
baseScale: 100,
baseHeight: 100,
baseWidth: 100,
};
},
p8yl: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.red = s.getContrastingColor = s.isValidHex = s.toState = s.simpleCheckForValidColor = void 0);
var r = t('xkGU'),
u = n(r),
o = t('Zss7'),
a = n(o);
function n(w) {
return w && w.__esModule ? w : { default: w };
}
var e = (s.simpleCheckForValidColor = function(T) {
var F = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'],
E = 0,
D = 0;
return (
(0, u.default)(F, function(O) {
if (T[O] && ((E += 1), isNaN(T[O]) || (D += 1), O === 's' || O === 'l')) {
var I = /^\d+%$/;
I.test(T[O]) && (D += 1);
}
}),
E === D ? T : !1
);
}),
g = (s.toState = function(T, F) {
var E = T.hex ? (0, a.default)(T.hex) : (0, a.default)(T),
D = E.toHsl(),
O = E.toHsv(),
I = E.toRgb(),
P = E.toHex();
D.s === 0 && ((D.h = F || 0), (O.h = F || 0));
var M = P === '000000' && I.a === 0;
return {
hsl: D,
hex: M ? 'transparent' : '#' + P,
rgb: I,
hsv: O,
oldHue: T.h || F || D.h,
source: T.source,
};
}),
m = (s.isValidHex = function(T) {
var F = String(T).charAt(0) === '#' ? 1 : 0;
return T.length !== 4 + F && T.length < 7 + F && (0, a.default)(T).isValid();
}),
p = (s.getContrastingColor = function(T) {
if (!T) return '#fff';
var F = g(T);
if (F.hex === 'transparent') return 'rgba(0,0,0,0.4)';
var E = (F.rgb.r * 299 + F.rgb.g * 587 + F.rgb.b * 114) / 1e3;
return E >= 128 ? '#000' : '#fff';
}),
C = (s.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 },
});
s.default = s;
},
'pED+': function(U, s, t) {},
pFRH: function(U, s, t) {
var r = t('cvCv'),
u = t('O0oS'),
o = t('zZ0H'),
a = u
? function(n, e) {
return u(n, 'toString', {
configurable: !0,
enumerable: !1,
value: r(e),
writable: !0,
});
}
: o;
U.exports = a;
},
pSRY: function(U, s, t) {
var r = t('QkVE');
function u(o) {
return r(this, o).has(o);
}
U.exports = u;
},
pdp2: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return e;
});
var r = t('aKzv');
function u(g, m) {
if (!(g instanceof m)) throw new TypeError('Cannot call a class as a function');
}
function o(g, m) {
for (var p = 0; p < m.length; p++) {
var C = m[p];
(C.enumerable = C.enumerable || !1),
(C.configurable = !0),
'value' in C && (C.writable = !0),
Object.defineProperty(g, C.key, C);
}
}
function a(g, m, p) {
return m && o(g.prototype, m), p && o(g, p), g;
}
var n = !1,
e = (function() {
function g(m) {
u(this, g), (this.targetId = null), (this.internalMonitor = m.getMonitor());
}
return (
a(g, [
{
key: 'receiveHandlerId',
value: function(p) {
this.targetId = p;
},
},
{
key: 'getHandlerId',
value: function() {
return this.targetId;
},
},
{
key: 'subscribeToStateChange',
value: function(p, C) {
return this.internalMonitor.subscribeToStateChange(p, C);
},
},
{
key: 'canDrop',
value: function() {
if (!this.targetId) return !1;
Object(r.a)(
!n,
'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 (n = !0), this.internalMonitor.canDropOnTarget(this.targetId);
} finally {
n = !1;
}
},
},
{
key: 'isOver',
value: function(p) {
return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, p) : !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(U, s, t) {
'use strict';
var r = t('3sOJ'),
u = t('CYTE');
function o(a, n) {
var e = a._latestEditorState,
g = e.getSelection();
if (g.getHasFocus()) return;
var m = g.set('hasFocus', !0);
a.props.onFocus && a.props.onFocus(n),
u.isBrowser('Chrome < 60.0.3081.0')
? a.update(r.forceSelection(e, m))
: a.update(r.acceptSelection(e, m));
}
U.exports = o;
},
phbQ: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = g(t('q1tI')),
u = n(t('WDOA')),
o = n(t('uJQd')),
a = n(t('IkEc'));
function n(M) {
return M && M.__esModule ? M : { default: M };
}
function e() {
if (typeof WeakMap != 'function') return null;
var M = new WeakMap();
return (
(e = function() {
return M;
}),
M
);
}
function g(M) {
if (M && M.__esModule) return M;
if (M === null || (m(M) !== 'object' && typeof M != 'function')) return { default: M };
var A = e();
if (A && A.has(M)) return A.get(M);
var x = {},
h = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var d in M)
if (Object.prototype.hasOwnProperty.call(M, d)) {
var v = h ? Object.getOwnPropertyDescriptor(M, d) : null;
v && (v.get || v.set) ? Object.defineProperty(x, d, v) : (x[d] = M[d]);
}
return (x.default = M), A && A.set(M, x), x;
}
function m(M) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (m = function(x) {
return typeof x;
})
: (m = function(x) {
return x &&
typeof Symbol == 'function' &&
x.constructor === Symbol &&
x !== Symbol.prototype
? 'symbol'
: typeof x;
}),
m(M)
);
}
function p() {
return (
(p =
Object.assign ||
function(M) {
for (var A = 1; A < arguments.length; A++) {
var x = arguments[A];
for (var h in x) Object.prototype.hasOwnProperty.call(x, h) && (M[h] = x[h]);
}
return M;
}),
p.apply(this, arguments)
);
}
function C(M, A) {
if (!(M instanceof A)) throw new TypeError('Cannot call a class as a function');
}
function w(M, A) {
for (var x = 0; x < A.length; x++) {
var h = A[x];
(h.enumerable = h.enumerable || !1),
(h.configurable = !0),
'value' in h && (h.writable = !0),
Object.defineProperty(M, h.key, h);
}
}
function T(M, A, x) {
return A && w(M.prototype, A), x && w(M, x), M;
}
function F(M, A) {
return A && (m(A) === 'object' || typeof A == 'function') ? A : E(M);
}
function E(M) {
if (M === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return M;
}
function D(M) {
return (
(D = Object.setPrototypeOf
? Object.getPrototypeOf
: function(x) {
return x.__proto__ || Object.getPrototypeOf(x);
}),
D(M)
);
}
function O(M, A) {
if (typeof A != 'function' && A !== null)
throw new TypeError('Super expression must either be null or a function');
(M.prototype = Object.create(A && A.prototype, {
constructor: { value: M, writable: !0, configurable: !0 },
})),
A && I(M, A);
}
function I(M, A) {
return (
(I =
Object.setPrototypeOf ||
function(h, d) {
return (h.__proto__ = d), h;
}),
I(M, A)
);
}
var P = (function(M) {
O(A, M);
function A() {
var x, h;
C(this, A);
for (var d = arguments.length, v = new Array(d), S = 0; S < d; S++) v[S] = arguments[S];
return (h = F(this, (x = D(A)).call.apply(x, [this].concat(v)))), (h.input = void 0), h;
}
return (
T(A, [
{
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,
d = this.props.type;
if (d === 'text' && 'rows' in this.props)
return r.default.createElement(
a.default,
p(
{
type: d,
ref: function(S) {
h.input = S;
},
},
this.props,
),
);
switch (d) {
case 'idcard':
case 'price':
case 'number':
return r.default.createElement(
u.default,
p(
{
type: d,
ref: function(S) {
h.input = S;
},
},
this.props,
),
);
case 'text':
case 'search':
case 'password':
return r.default.createElement(
o.default,
p(
{
type: d,
ref: function(S) {
h.input = S;
},
},
this.props,
),
);
default:
return r.default.createElement(
o.default,
p(
{
type: d,
ref: function(S) {
h.input = S;
},
},
this.props,
),
);
}
},
},
]),
A
);
})(r.PureComponent);
(s.default = P), (P.defaultProps = { type: 'text' });
},
prOm: function(U, s, t) {
'use strict';
function r(o, a) {
return !!a && (o === a.documentElement || o === a.body);
}
var u = {
getTop: function(a) {
var n = a.ownerDocument;
return r(a, n) ? n.body.scrollTop || n.documentElement.scrollTop : a.scrollTop;
},
setTop: function(a, n) {
var e = a.ownerDocument;
r(a, e) ? (e.body.scrollTop = e.documentElement.scrollTop = n) : (a.scrollTop = n);
},
getLeft: function(a) {
var n = a.ownerDocument;
return r(a, n) ? n.body.scrollLeft || n.documentElement.scrollLeft : a.scrollLeft;
},
setLeft: function(a, n) {
var e = a.ownerDocument;
r(a, e) ? (e.body.scrollLeft = e.documentElement.scrollLeft = n) : (a.scrollLeft = n);
},
};
U.exports = u;
},
pwpV: function(U, s, t) {},
pyJN: function(U, s, t) {
U.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',
};
},
pzaE: function(U, s, t) {
'use strict';
t.r(s);
var r = t('k1fw'),
u = t('p6l7'),
o = {
editData: [
...u.baseConfig,
{ key: 'bgColor', name: '背景色', type: 'Color' },
{ key: 'height', name: '高度', type: 'Number' },
{ key: 'logo', name: 'logo', type: 'Upload', isCrop: !0, cropRate: 1e3 / 618 },
{ key: 'logoText', name: 'logo文字', type: 'Text' },
{ key: 'color', name: '文字颜色', type: 'Color' },
{ key: 'fontSize', name: '文字大小', type: 'Number' },
],
config: Object(r.a)(
{
bgColor: 'rgba(0,0,0,1)',
logo: [
{
uid: '001',
name: 'image.png',
status: 'done',
url: 'http://49.234.61.19/uploads/3_1740be8a482.png',
},
],
logoText: '页头Header',
fontSize: 20,
color: 'rgba(255,255,255,1)',
height: 50,
},
u.baseDefault,
),
};
s.default = o;
},
pzsr: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }),
Object.defineProperty(s, 'DraggableCore', {
enumerable: !0,
get: function() {
return m.default;
},
}),
(s.default = void 0);
var r = T(t('q1tI')),
u = C(t('17x9')),
o = C(t('i8i4')),
a = C(t('TSYQ')),
n = t('8N4D'),
e = t('fJi3'),
g = t('gbW8'),
m = C(t('R155')),
p = C(t('sS6v'));
function C(Q) {
return Q && Q.__esModule ? Q : { default: Q };
}
function w() {
if (typeof WeakMap != 'function') return null;
var Q = new WeakMap();
return (
(w = function() {
return Q;
}),
Q
);
}
function T(Q) {
if (Q && Q.__esModule) return Q;
if (Q === null || (F(Q) !== 'object' && typeof Q != 'function')) return { default: Q };
var le = w();
if (le && le.has(Q)) return le.get(Q);
var J = {},
ae = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var fe in Q)
if (Object.prototype.hasOwnProperty.call(Q, fe)) {
var Te = ae ? Object.getOwnPropertyDescriptor(Q, fe) : null;
Te && (Te.get || Te.set) ? Object.defineProperty(J, fe, Te) : (J[fe] = Q[fe]);
}
return (J.default = Q), le && le.set(Q, J), J;
}
function F(Q) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (F = function(J) {
return typeof J;
})
: (F = function(J) {
return J &&
typeof Symbol == 'function' &&
J.constructor === Symbol &&
J !== Symbol.prototype
? 'symbol'
: typeof J;
}),
F(Q)
);
}
function E() {
return (
(E =
Object.assign ||
function(Q) {
for (var le = 1; le < arguments.length; le++) {
var J = arguments[le];
for (var ae in J) Object.prototype.hasOwnProperty.call(J, ae) && (Q[ae] = J[ae]);
}
return Q;
}),
E.apply(this, arguments)
);
}
function D(Q, le) {
if (Q == null) return {};
var J = O(Q, le),
ae,
fe;
if (Object.getOwnPropertySymbols) {
var Te = Object.getOwnPropertySymbols(Q);
for (fe = 0; fe < Te.length; fe++) {
if (((ae = Te[fe]), le.indexOf(ae) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(Q, ae)) continue;
J[ae] = Q[ae];
}
}
return J;
}
function O(Q, le) {
if (Q == null) return {};
var J = {},
ae = Object.keys(Q),
fe,
Te;
for (Te = 0; Te < ae.length; Te++) {
if (((fe = ae[Te]), le.indexOf(fe) >= 0)) continue;
J[fe] = Q[fe];
}
return J;
}
function I(Q, le) {
return h(Q) || x(Q, le) || M(Q, le) || P();
}
function P() {
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 M(Q, le) {
if (!Q) return;
if (typeof Q == 'string') return A(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 A(Q, le);
}
function A(Q, le) {
(le == null || le > Q.length) && (le = Q.length);
for (var J = 0, ae = new Array(le); J < le; J++) ae[J] = Q[J];
return ae;
}
function x(Q, le) {
if (typeof Symbol == 'undefined' || !(Symbol.iterator in Object(Q))) return;
var J = [],
ae = !0,
fe = !1,
Te = void 0;
try {
for (
var we = Q[Symbol.iterator](), Le;
!(ae = (Le = we.next()).done) && !(J.push(Le.value), le && J.length === le);
ae = !0
);
} catch (qe) {
(fe = !0), (Te = qe);
} finally {
try {
!ae && we.return != null && we.return();
} finally {
if (fe) throw Te;
}
}
return J;
}
function h(Q) {
if (Array.isArray(Q)) return Q;
}
function d(Q, le) {
var J = Object.keys(Q);
if (Object.getOwnPropertySymbols) {
var ae = Object.getOwnPropertySymbols(Q);
le &&
(ae = ae.filter(function(fe) {
return Object.getOwnPropertyDescriptor(Q, fe).enumerable;
})),
J.push.apply(J, ae);
}
return J;
}
function v(Q) {
for (var le = 1; le < arguments.length; le++) {
var J = arguments[le] != null ? arguments[le] : {};
le % 2
? d(Object(J), !0).forEach(function(ae) {
Ee(Q, ae, J[ae]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(Q, Object.getOwnPropertyDescriptors(J))
: d(Object(J)).forEach(function(ae) {
Object.defineProperty(Q, ae, Object.getOwnPropertyDescriptor(J, ae));
});
}
return Q;
}
function S(Q, le) {
if (!(Q instanceof le)) throw new TypeError('Cannot call a class as a function');
}
function N(Q, le) {
for (var J = 0; J < le.length; J++) {
var ae = le[J];
(ae.enumerable = ae.enumerable || !1),
(ae.configurable = !0),
'value' in ae && (ae.writable = !0),
Object.defineProperty(Q, ae.key, ae);
}
}
function R(Q, le, J) {
return le && N(Q.prototype, le), J && N(Q, J), Q;
}
function _(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 && W(Q, le);
}
function W(Q, le) {
return (
(W =
Object.setPrototypeOf ||
function(ae, fe) {
return (ae.__proto__ = fe), ae;
}),
W(Q, le)
);
}
function K(Q) {
var le = ne();
return function() {
var J = ue(Q),
ae;
if (le) {
var fe = ue(this).constructor;
ae = Reflect.construct(J, arguments, fe);
} else ae = J.apply(this, arguments);
return Z(this, ae);
};
}
function Z(Q, le) {
return le && (F(le) === 'object' || typeof le == 'function') ? le : ee(Q);
}
function ee(Q) {
if (Q === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return Q;
}
function ne() {
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 ue(Q) {
return (
(ue = Object.setPrototypeOf
? Object.getPrototypeOf
: function(J) {
return J.__proto__ || Object.getPrototypeOf(J);
}),
ue(Q)
);
}
function Ee(Q, le, J) {
return (
le in Q
? Object.defineProperty(Q, le, {
value: J,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Q[le] = J),
Q
);
}
var ce = (function(Q) {
_(J, Q);
var le = K(J);
R(J, null, [
{
key: 'getDerivedStateFromProps',
value: function(fe, Te) {
var we = fe.position,
Le = Te.prevPropsPosition;
return we && (!Le || we.x !== Le.x || we.y !== Le.y)
? ((0, p.default)('Draggable: getDerivedStateFromProps %j', {
position: we,
prevPropsPosition: Le,
}),
{ x: we.x, y: we.y, prevPropsPosition: v({}, we) })
: null;
},
},
]);
function J(ae) {
var fe;
return (
S(this, J),
(fe = le.call(this, ae)),
Ee(ee(fe), 'onDragStart', function(Te, we) {
(0, p.default)('Draggable: onDragStart: %j', we);
var Le = fe.props.onStart(Te, (0, e.createDraggableData)(ee(fe), we));
if (Le === !1) return !1;
fe.setState({ dragging: !0, dragged: !0 });
}),
Ee(ee(fe), 'onDrag', function(Te, we) {
if (!fe.state.dragging) return !1;
(0, p.default)('Draggable: onDrag: %j', we);
var Le = (0, e.createDraggableData)(ee(fe), we),
qe = { x: Le.x, y: Le.y };
if (fe.props.bounds) {
var Me = qe.x,
ze = qe.y;
(qe.x += fe.state.slackX), (qe.y += fe.state.slackY);
var Xe = (0, e.getBoundPosition)(ee(fe), qe.x, qe.y),
Ue = I(Xe, 2),
Et = Ue[0],
_t = Ue[1];
(qe.x = Et),
(qe.y = _t),
(qe.slackX = fe.state.slackX + (Me - qe.x)),
(qe.slackY = fe.state.slackY + (ze - qe.y)),
(Le.x = qe.x),
(Le.y = qe.y),
(Le.deltaX = qe.x - fe.state.x),
(Le.deltaY = qe.y - fe.state.y);
}
var Pt = fe.props.onDrag(Te, Le);
if (Pt === !1) return !1;
fe.setState(qe);
}),
Ee(ee(fe), 'onDragStop', function(Te, we) {
if (!fe.state.dragging) return !1;
var Le = fe.props.onStop(Te, (0, e.createDraggableData)(ee(fe), we));
if (Le === !1) return !1;
(0, p.default)('Draggable: onDragStop: %j', we);
var qe = { dragging: !1, slackX: 0, slackY: 0 },
Me = Boolean(fe.props.position);
if (Me) {
var ze = fe.props.position,
Xe = ze.x,
Ue = ze.y;
(qe.x = Xe), (qe.y = Ue);
}
fe.setState(qe);
}),
(fe.state = {
dragging: !1,
dragged: !1,
x: ae.position ? ae.position.x : ae.defaultPosition.x,
y: ae.position ? ae.position.y : ae.defaultPosition.y,
prevPropsPosition: v({}, ae.position),
slackX: 0,
slackY: 0,
isElementSVG: !1,
}),
ae.position &&
!(ae.onDrag || ae.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.',
),
fe
);
}
return (
R(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 fe,
Te = this.props,
we = Te.axis,
Le = Te.bounds,
qe = Te.children,
Me = Te.defaultPosition,
ze = Te.defaultClassName,
Xe = Te.defaultClassNameDragging,
Ue = Te.defaultClassNameDragged,
Et = Te.position,
_t = Te.positionOffset,
Pt = Te.scale,
Wt = D(Te, [
'axis',
'bounds',
'children',
'defaultPosition',
'defaultClassName',
'defaultClassNameDragging',
'defaultClassNameDragged',
'position',
'positionOffset',
'scale',
]),
Kt = {},
Ge = null,
de = Boolean(Et),
oe = !de || this.state.dragging,
Fe = Et || Me,
Je = {
x: (0, e.canDragX)(this) && oe ? this.state.x : Fe.x,
y: (0, e.canDragY)(this) && oe ? this.state.y : Fe.y,
};
this.state.isElementSVG
? (Ge = (0, n.createSVGTransform)(Je, _t))
: (Kt = (0, n.createCSSTransform)(Je, _t));
var rt = (0, a.default)(
qe.props.className || '',
ze,
((fe = {}), Ee(fe, Xe, this.state.dragging), Ee(fe, Ue, this.state.dragged), fe),
);
return r.createElement(
m.default,
E({}, Wt, {
onStart: this.onDragStart,
onDrag: this.onDrag,
onStop: this.onDragStop,
}),
r.cloneElement(r.Children.only(qe), {
className: rt,
style: v(v({}, qe.props.style), Kt),
transform: Ge,
}),
);
},
},
]),
J
);
})(r.Component);
(s.default = ce),
Ee(ce, 'displayName', 'Draggable'),
Ee(
ce,
'propTypes',
v(
v({}, m.default.propTypes),
{},
{
axis: u.default.oneOf(['both', 'x', 'y', 'none']),
bounds: u.default.oneOfType([
u.default.shape({
left: u.default.number,
right: u.default.number,
top: u.default.number,
bottom: u.default.number,
}),
u.default.string,
u.default.oneOf([!1]),
]),
defaultClassName: u.default.string,
defaultClassNameDragging: u.default.string,
defaultClassNameDragged: u.default.string,
defaultPosition: u.default.shape({ x: u.default.number, y: u.default.number }),
positionOffset: u.default.shape({
x: u.default.oneOfType([u.default.number, u.default.string]),
y: u.default.oneOfType([u.default.number, u.default.string]),
}),
position: u.default.shape({ x: u.default.number, y: u.default.number }),
className: g.dontSetMe,
style: g.dontSetMe,
transform: g.dontSetMe,
},
),
),
Ee(
ce,
'defaultProps',
v(
v({}, m.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(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }),
(s.calcGridColWidth = r),
(s.calcGridItemWHPx = u),
(s.calcGridItemPosition = o),
(s.calcXY = a),
(s.calcWH = n),
(s.clamp = e);
function r(g) {
var m = g.margin,
p = g.containerPadding,
C = g.containerWidth,
w = g.cols;
return (C - m[0] * (w - 1) - p[0] * 2) / w;
}
function u(g, m, p) {
return Number.isFinite(g) ? Math.round(m * g + Math.max(0, g - 1) * p) : g;
}
function o(g, m, p, C, w, T) {
var F = g.margin,
E = g.containerPadding,
D = g.rowHeight,
O = r(g),
I = {};
return (
T && T.resizing
? ((I.width = Math.round(T.resizing.width)), (I.height = Math.round(T.resizing.height)))
: ((I.width = u(C, O, F[0])), (I.height = u(w, D, F[1]))),
T && T.dragging
? ((I.top = Math.round(T.dragging.top)), (I.left = Math.round(T.dragging.left)))
: ((I.top = Math.round((D + F[1]) * p + E[1])),
(I.left = Math.round((O + F[0]) * m + E[0]))),
I
);
}
function a(g, m, p, C, w) {
var T = g.margin,
F = g.cols,
E = g.rowHeight,
D = g.maxRows,
O = r(g),
I = Math.round((p - T[0]) / (O + T[0])),
P = Math.round((m - T[1]) / (E + T[1]));
return (I = e(I, 0, F - C)), (P = e(P, 0, D - w)), { x: I, y: P };
}
function n(g, m, p, C, w) {
var T = g.margin,
F = g.maxRows,
E = g.cols,
D = g.rowHeight,
O = r(g),
I = Math.round((m + T[0]) / (O + T[0])),
P = Math.round((p + T[1]) / (D + T[1]));
return (I = e(I, 0, E - C)), (P = e(P, 0, F - w)), { w: I, h: P };
}
function e(g, m, p) {
return Math.max(Math.min(g, p), m);
}
},
qAmz: function(U, s, t) {
'use strict';
t.r(s);
var r = {
editData: [
{ key: 'title', name: '标题', type: 'Text' },
{ key: 'titColor', name: '标题颜色', type: 'Color' },
{ key: 'titFontSize', name: '标题大小', type: 'Number' },
{ key: 'desc', name: '描述', type: 'TextArea' },
{ key: 'imgUrl', name: '专栏图片', type: 'Upload', isCrop: !0, cropRate: 1 },
{ key: 'bgColor', name: '背景色', type: 'Color' },
{ key: 'padding', name: '内容边距', type: 'Number' },
{ key: 'radius', name: '圆角', type: 'Number' },
{ key: 'linkText', name: '按钮文本', type: 'Text' },
{ key: 'linkBg', name: '按钮背景色', type: 'Color' },
{ key: 'link', name: '按钮跳转链接', type: 'Text' },
{ key: 'content', name: '详细介绍', type: 'RichText' },
],
config: {
imgUrl: [
{
uid: '001',
name: 'image.png',
status: 'done',
url: 'http://cdn.dooring.cn/dr/qtqd_code.png',
},
],
title: '趣谈前端',
desc: '一个有点意思的技术社区~',
titColor: 'rgba(0,0,0,1)',
titFontSize: 18,
bgColor: 'rgba(255,255,255,1)',
padding: 16,
radius: 6,
link: '',
linkText: '订阅',
linkBg: 'rgba(22,40,212,1)',
content: '趣谈前端 - 可视化专栏',
},
};
s.default = r;
},
qGRS: function(U, s, t) {
'use strict';
t.r(s);
var r = t('k1fw'),
u = t('G5VY'),
o = t('enme'),
a = t('nVmd'),
n = t('mwAb'),
e = t('ESKU'),
g = [u.default, o.default, a.default, n.default, e.default],
m = g.map(p => Object(r.a)(Object(r.a)({}, p), {}, { category: 'visual' }));
s.default = m;
},
qIC4: function(U, s, t) {
'use strict';
t('1Ywk'), t('OcqW');
},
qJlv: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return qe;
});
var r = {};
t.r(r),
t.d(r, 'FILE', function() {
return x;
}),
t.d(r, 'URL', function() {
return h;
}),
t.d(r, 'TEXT', function() {
return d;
});
function u(Me) {
var ze = null,
Xe = function() {
return ze == null && (ze = Me()), ze;
};
return Xe;
}
function o(Me, ze) {
return Me.filter(function(Xe) {
return Xe !== ze;
});
}
function a(Me, ze) {
var Xe = new Set(),
Ue = function(Pt) {
return Xe.add(Pt);
};
Me.forEach(Ue), ze.forEach(Ue);
var Et = [];
return (
Xe.forEach(function(_t) {
return Et.push(_t);
}),
Et
);
}
function n(Me, ze) {
if (!(Me instanceof ze)) throw new TypeError('Cannot call a class as a function');
}
function e(Me, ze) {
for (var Xe = 0; Xe < ze.length; Xe++) {
var Ue = ze[Xe];
(Ue.enumerable = Ue.enumerable || !1),
(Ue.configurable = !0),
'value' in Ue && (Ue.writable = !0),
Object.defineProperty(Me, Ue.key, Ue);
}
}
function g(Me, ze, Xe) {
return ze && e(Me.prototype, ze), Xe && e(Me, Xe), Me;
}
var m = (function() {
function Me(ze) {
n(this, Me), (this.entered = []), (this.isNodeInDocument = ze);
}
return (
g(Me, [
{
key: 'enter',
value: function(Xe) {
var Ue = this,
Et = this.entered.length,
_t = function(Wt) {
return Ue.isNodeInDocument(Wt) && (!Wt.contains || Wt.contains(Xe));
};
return (
(this.entered = a(this.entered.filter(_t), [Xe])),
Et === 0 && this.entered.length > 0
);
},
},
{
key: 'leave',
value: function(Xe) {
var Ue = this.entered.length;
return (
(this.entered = o(this.entered.filter(this.isNodeInDocument), Xe)),
Ue > 0 && this.entered.length === 0
);
},
},
{
key: 'reset',
value: function() {
this.entered = [];
},
},
]),
Me
);
})(),
p = u(function() {
return /firefox/i.test(navigator.userAgent);
}),
C = u(function() {
return Boolean(window.safari);
});
function w(Me, ze) {
if (!(Me instanceof ze)) throw new TypeError('Cannot call a class as a function');
}
function T(Me, ze) {
for (var Xe = 0; Xe < ze.length; Xe++) {
var Ue = ze[Xe];
(Ue.enumerable = Ue.enumerable || !1),
(Ue.configurable = !0),
'value' in Ue && (Ue.writable = !0),
Object.defineProperty(Me, Ue.key, Ue);
}
}
function F(Me, ze, Xe) {
return ze && T(Me.prototype, ze), Xe && T(Me, Xe), Me;
}
var E = (function() {
function Me(ze, Xe) {
w(this, Me);
for (var Ue = ze.length, Et = [], _t = 0; _t < Ue; _t++) Et.push(_t);
Et.sort(function(Vn, Bn) {
return ze[Vn] < ze[Bn] ? -1 : 1;
});
for (var Pt = [], Wt = [], Kt = [], Ge, de, oe = 0; oe < Ue - 1; oe++)
(Ge = ze[oe + 1] - ze[oe]),
(de = Xe[oe + 1] - Xe[oe]),
Wt.push(Ge),
Pt.push(de),
Kt.push(de / Ge);
for (var Fe = [Kt[0]], Je = 0; Je < Wt.length - 1; Je++) {
var rt = Kt[Je],
yt = Kt[Je + 1];
if (rt * yt <= 0) Fe.push(0);
else {
Ge = Wt[Je];
var an = Wt[Je + 1],
Xt = Ge + an;
Fe.push((3 * Xt) / ((Xt + an) / rt + (Xt + Ge) / yt));
}
}
Fe.push(Kt[Kt.length - 1]);
for (var Ct = [], Gt = [], Yt, en = 0; en < Fe.length - 1; en++) {
Yt = Kt[en];
var xn = Fe[en],
qt = 1 / Wt[en],
Pn = xn + Fe[en + 1] - Yt - Yt;
Ct.push((Yt - xn - Pn) * qt), Gt.push(Pn * qt * qt);
}
(this.xs = ze), (this.ys = Xe), (this.c1s = Fe), (this.c2s = Ct), (this.c3s = Gt);
}
return (
F(Me, [
{
key: 'interpolate',
value: function(Xe) {
var Ue = this.xs,
Et = this.ys,
_t = this.c1s,
Pt = this.c2s,
Wt = this.c3s,
Kt = Ue.length - 1;
if (Xe === Ue[Kt]) return Et[Kt];
for (var Ge = 0, de = Wt.length - 1, oe; Ge <= de; ) {
oe = Math.floor(0.5 * (Ge + de));
var Fe = Ue[oe];
if (Fe < Xe) Ge = oe + 1;
else if (Fe > Xe) de = oe - 1;
else return Et[oe];
}
Kt = Math.max(0, de);
var Je = Xe - Ue[Kt],
rt = Je * Je;
return Et[Kt] + _t[Kt] * Je + Pt[Kt] * rt + Wt[Kt] * Je * rt;
},
},
]),
Me
);
})(),
D = 1;
function O(Me) {
var ze = Me.nodeType === D ? Me : Me.parentElement;
if (!ze) return null;
var Xe = ze.getBoundingClientRect(),
Ue = Xe.top,
Et = Xe.left;
return { x: Et, y: Ue };
}
function I(Me) {
return { x: Me.clientX, y: Me.clientY };
}
function P(Me) {
var ze;
return (
Me.nodeName === 'IMG' &&
(p() ||
!((ze = document.documentElement) === null || ze === void 0 ? void 0 : ze.contains(Me)))
);
}
function M(Me, ze, Xe, Ue) {
var Et = Me ? ze.width : Xe,
_t = Me ? ze.height : Ue;
return (
C() && Me && ((_t /= window.devicePixelRatio), (Et /= window.devicePixelRatio)),
{ dragPreviewWidth: Et, dragPreviewHeight: _t }
);
}
function A(Me, ze, Xe, Ue, Et) {
var _t = P(ze),
Pt = _t ? Me : ze,
Wt = O(Pt),
Kt = { x: Xe.x - Wt.x, y: Xe.y - Wt.y },
Ge = Me.offsetWidth,
de = Me.offsetHeight,
oe = Ue.anchorX,
Fe = Ue.anchorY,
Je = M(_t, ze, Ge, de),
rt = Je.dragPreviewWidth,
yt = Je.dragPreviewHeight,
an = function() {
var qt = new E([0, 0.5, 1], [Kt.y, (Kt.y / de) * yt, Kt.y + yt - de]),
Pn = qt.interpolate(Fe);
return C() && _t && (Pn += (window.devicePixelRatio - 1) * yt), Pn;
},
Xt = function() {
var qt = new E([0, 0.5, 1], [Kt.x, (Kt.x / Ge) * rt, Kt.x + rt - Ge]);
return qt.interpolate(oe);
},
Ct = Et.offsetX,
Gt = Et.offsetY,
Yt = Ct === 0 || Ct,
en = Gt === 0 || Gt;
return { x: Yt ? Ct : Xt(), y: en ? Gt : an() };
}
var x = '__NATIVE_FILE__',
h = '__NATIVE_URL__',
d = '__NATIVE_TEXT__';
function v(Me, ze, Xe) {
var Ue = ze.reduce(function(Et, _t) {
return Et || Me.getData(_t);
}, '');
return Ue != null ? Ue : Xe;
}
var S;
function N(Me, ze, Xe) {
return (
ze in Me
? Object.defineProperty(Me, ze, {
value: Xe,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Me[ze] = Xe),
Me
);
}
var R =
((S = {}),
N(S, x, {
exposeProperties: {
files: function(ze) {
return Array.prototype.slice.call(ze.files);
},
items: function(ze) {
return ze.items;
},
},
matchesTypes: ['Files'],
}),
N(S, h, {
exposeProperties: {
urls: function(ze, Xe) {
return v(ze, Xe, '').split(`
`);
},
},
matchesTypes: ['Url', 'text/uri-list'],
}),
N(S, d, {
exposeProperties: {
text: function(ze, Xe) {
return v(ze, Xe, '');
},
},
matchesTypes: ['Text', 'text/plain'],
}),
S);
function _(Me, ze) {
if (!(Me instanceof ze)) throw new TypeError('Cannot call a class as a function');
}
function W(Me, ze) {
for (var Xe = 0; Xe < ze.length; Xe++) {
var Ue = ze[Xe];
(Ue.enumerable = Ue.enumerable || !1),
(Ue.configurable = !0),
'value' in Ue && (Ue.writable = !0),
Object.defineProperty(Me, Ue.key, Ue);
}
}
function K(Me, ze, Xe) {
return ze && W(Me.prototype, ze), Xe && W(Me, Xe), Me;
}
var Z = (function() {
function Me(ze) {
_(this, Me), (this.config = ze), (this.item = {}), this.initializeExposedProperties();
}
return (
K(Me, [
{
key: 'initializeExposedProperties',
value: function() {
var Xe = this;
Object.keys(this.config.exposeProperties).forEach(function(Ue) {
Object.defineProperty(Xe.item, Ue, {
configurable: !0,
enumerable: !0,
get: function() {
return (
console.warn(
`Browser doesn't allow reading "`.concat(Ue, '" until the drop event.'),
),
null
);
},
});
});
},
},
{
key: 'loadDataTransfer',
value: function(Xe) {
var Ue = this;
if (Xe) {
var Et = {};
Object.keys(this.config.exposeProperties).forEach(function(_t) {
Et[_t] = {
value: Ue.config.exposeProperties[_t](Xe, Ue.config.matchesTypes),
configurable: !0,
enumerable: !0,
};
}),
Object.defineProperties(this.item, Et);
}
},
},
{
key: 'canDrag',
value: function() {
return !0;
},
},
{
key: 'beginDrag',
value: function() {
return this.item;
},
},
{
key: 'isDragging',
value: function(Xe, Ue) {
return Ue === Xe.getSourceId();
},
},
{ key: 'endDrag', value: function() {} },
]),
Me
);
})();
function ee(Me, ze) {
var Xe = new Z(R[Me]);
return Xe.loadDataTransfer(ze), Xe;
}
function ne(Me) {
if (!Me) return null;
var ze = Array.prototype.slice.call(Me.types || []);
return (
Object.keys(R).filter(function(Xe) {
var Ue = R[Xe].matchesTypes;
return Ue.some(function(Et) {
return ze.indexOf(Et) > -1;
});
})[0] || null
);
}
function ue(Me, ze) {
if (!(Me instanceof ze)) throw new TypeError('Cannot call a class as a function');
}
function Ee(Me, ze) {
for (var Xe = 0; Xe < ze.length; Xe++) {
var Ue = ze[Xe];
(Ue.enumerable = Ue.enumerable || !1),
(Ue.configurable = !0),
'value' in Ue && (Ue.writable = !0),
Object.defineProperty(Me, Ue.key, Ue);
}
}
function ce(Me, ze, Xe) {
return ze && Ee(Me.prototype, ze), Xe && Ee(Me, Xe), Me;
}
var Q = (function() {
function Me(ze) {
ue(this, Me), (this.globalContext = ze);
}
return (
ce(Me, [
{
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;
},
},
]),
Me
);
})();
function le(Me, ze) {
var Xe = Object.keys(Me);
if (Object.getOwnPropertySymbols) {
var Ue = Object.getOwnPropertySymbols(Me);
ze &&
(Ue = Ue.filter(function(Et) {
return Object.getOwnPropertyDescriptor(Me, Et).enumerable;
})),
Xe.push.apply(Xe, Ue);
}
return Xe;
}
function J(Me) {
for (var ze = 1; ze < arguments.length; ze++) {
var Xe = arguments[ze] != null ? arguments[ze] : {};
ze % 2
? le(Object(Xe), !0).forEach(function(Ue) {
ae(Me, Ue, Xe[Ue]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(Me, Object.getOwnPropertyDescriptors(Xe))
: le(Object(Xe)).forEach(function(Ue) {
Object.defineProperty(Me, Ue, Object.getOwnPropertyDescriptor(Xe, Ue));
});
}
return Me;
}
function ae(Me, ze, Xe) {
return (
ze in Me
? Object.defineProperty(Me, ze, {
value: Xe,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (Me[ze] = Xe),
Me
);
}
function fe(Me, ze) {
if (!(Me instanceof ze)) throw new TypeError('Cannot call a class as a function');
}
function Te(Me, ze) {
for (var Xe = 0; Xe < ze.length; Xe++) {
var Ue = ze[Xe];
(Ue.enumerable = Ue.enumerable || !1),
(Ue.configurable = !0),
'value' in Ue && (Ue.writable = !0),
Object.defineProperty(Me, Ue.key, Ue);
}
}
function we(Me, ze, Xe) {
return ze && Te(Me.prototype, ze), Xe && Te(Me, Xe), Me;
}
var Le = (function() {
function Me(ze, Xe) {
var Ue = this;
fe(this, Me),
(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(Et) {
var _t = Ue.sourceNodes.get(Et);
return (_t && O(_t)) || null;
}),
(this.endDragNativeItem = function() {
if (!Ue.isDraggingNativeItem()) return;
Ue.actions.endDrag(),
Ue.currentNativeHandle && Ue.registry.removeSource(Ue.currentNativeHandle),
(Ue.currentNativeHandle = null),
(Ue.currentNativeSource = null);
}),
(this.isNodeInDocument = function(Et) {
return Boolean(Et && Ue.document && Ue.document.body && document.body.contains(Et));
}),
(this.endDragIfSourceWasRemovedFromDOM = function() {
var Et = Ue.currentDragSourceNode;
if (Ue.isNodeInDocument(Et)) return;
Ue.clearCurrentDragSourceNode() && Ue.actions.endDrag();
}),
(this.handleTopDragStartCapture = function() {
Ue.clearCurrentDragSourceNode(), (Ue.dragStartSourceIds = []);
}),
(this.handleTopDragStart = function(Et) {
if (Et.defaultPrevented) return;
var _t = Ue.dragStartSourceIds;
Ue.dragStartSourceIds = null;
var Pt = I(Et);
Ue.monitor.isDragging() && Ue.actions.endDrag(),
Ue.actions.beginDrag(_t || [], {
publishSource: !1,
getSourceClientOffset: Ue.getSourceClientOffset,
clientOffset: Pt,
});
var Wt = Et.dataTransfer,
Kt = ne(Wt);
if (Ue.monitor.isDragging()) {
if (Wt && typeof Wt.setDragImage == 'function') {
var Ge = Ue.monitor.getSourceId(),
de = Ue.sourceNodes.get(Ge),
oe = Ue.sourcePreviewNodes.get(Ge) || de;
if (oe) {
var Fe = Ue.getCurrentSourcePreviewNodeOptions(),
Je = Fe.anchorX,
rt = Fe.anchorY,
yt = Fe.offsetX,
an = Fe.offsetY,
Xt = { anchorX: Je, anchorY: rt },
Ct = { offsetX: yt, offsetY: an },
Gt = A(de, oe, Pt, Xt, Ct);
Wt.setDragImage(oe, Gt.x, Gt.y);
}
}
try {
Wt == null || Wt.setData('application/json', {});
} catch (xn) {}
Ue.setCurrentDragSourceNode(Et.target);
var Yt = Ue.getCurrentSourcePreviewNodeOptions(),
en = Yt.captureDraggingState;
en
? Ue.actions.publishDragSource()
: setTimeout(function() {
return Ue.actions.publishDragSource();
}, 0);
} else if (Kt) Ue.beginDragNativeItem(Kt);
else {
if (
Wt &&
!Wt.types &&
((Et.target && !Et.target.hasAttribute) || !Et.target.hasAttribute('draggable'))
)
return;
Et.preventDefault();
}
}),
(this.handleTopDragEndCapture = function() {
Ue.clearCurrentDragSourceNode() && Ue.actions.endDrag();
}),
(this.handleTopDragEnterCapture = function(Et) {
Ue.dragEnterTargetIds = [];
var _t = Ue.enterLeaveCounter.enter(Et.target);
if (!_t || Ue.monitor.isDragging()) return;
var Pt = Et.dataTransfer,
Wt = ne(Pt);
Wt && Ue.beginDragNativeItem(Wt, Pt);
}),
(this.handleTopDragEnter = function(Et) {
var _t = Ue.dragEnterTargetIds;
if (((Ue.dragEnterTargetIds = []), !Ue.monitor.isDragging())) return;
(Ue.altKeyPressed = Et.altKey),
p() || Ue.actions.hover(_t, { clientOffset: I(Et) });
var Pt = _t.some(function(Wt) {
return Ue.monitor.canDropOnTarget(Wt);
});
Pt &&
(Et.preventDefault(),
Et.dataTransfer && (Et.dataTransfer.dropEffect = Ue.getCurrentDropEffect()));
}),
(this.handleTopDragOverCapture = function() {
Ue.dragOverTargetIds = [];
}),
(this.handleTopDragOver = function(Et) {
var _t = Ue.dragOverTargetIds;
if (((Ue.dragOverTargetIds = []), !Ue.monitor.isDragging())) {
Et.preventDefault(), Et.dataTransfer && (Et.dataTransfer.dropEffect = 'none');
return;
}
(Ue.altKeyPressed = Et.altKey), Ue.actions.hover(_t || [], { clientOffset: I(Et) });
var Pt = (_t || []).some(function(Wt) {
return Ue.monitor.canDropOnTarget(Wt);
});
Pt
? (Et.preventDefault(),
Et.dataTransfer && (Et.dataTransfer.dropEffect = Ue.getCurrentDropEffect()))
: Ue.isDraggingNativeItem()
? Et.preventDefault()
: (Et.preventDefault(), Et.dataTransfer && (Et.dataTransfer.dropEffect = 'none'));
}),
(this.handleTopDragLeaveCapture = function(Et) {
Ue.isDraggingNativeItem() && Et.preventDefault();
var _t = Ue.enterLeaveCounter.leave(Et.target);
if (!_t) return;
Ue.isDraggingNativeItem() && Ue.endDragNativeItem();
}),
(this.handleTopDropCapture = function(Et) {
if (((Ue.dropTargetIds = []), Et.preventDefault(), Ue.isDraggingNativeItem())) {
var _t;
(_t = Ue.currentNativeSource) === null ||
_t === void 0 ||
_t.loadDataTransfer(Et.dataTransfer);
}
Ue.enterLeaveCounter.reset();
}),
(this.handleTopDrop = function(Et) {
var _t = Ue.dropTargetIds;
(Ue.dropTargetIds = []),
Ue.actions.hover(_t, { clientOffset: I(Et) }),
Ue.actions.drop({ dropEffect: Ue.getCurrentDropEffect() }),
Ue.isDraggingNativeItem()
? Ue.endDragNativeItem()
: Ue.endDragIfSourceWasRemovedFromDOM();
}),
(this.handleSelectStart = function(Et) {
var _t = Et.target;
if (typeof _t.dragDrop != 'function') return;
if (
_t.tagName === 'INPUT' ||
_t.tagName === 'SELECT' ||
_t.tagName === 'TEXTAREA' ||
_t.isContentEditable
)
return;
Et.preventDefault(), _t.dragDrop();
}),
(this.options = new Q(Xe)),
(this.actions = ze.getActions()),
(this.monitor = ze.getMonitor()),
(this.registry = ze.getRegistry()),
(this.enterLeaveCounter = new m(this.isNodeInDocument));
}
return (
we(Me, [
{
key: 'profile',
value: function() {
var Xe, Ue;
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:
((Ue = this.dragOverTargetIds) === null || Ue === void 0
? void 0
: Ue.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, Ue, Et) {
var _t = this;
return (
this.sourcePreviewNodeOptions.set(Xe, Et),
this.sourcePreviewNodes.set(Xe, Ue),
function() {
_t.sourcePreviewNodes.delete(Xe), _t.sourcePreviewNodeOptions.delete(Xe);
}
);
},
},
{
key: 'connectDragSource',
value: function(Xe, Ue, Et) {
var _t = this;
this.sourceNodes.set(Xe, Ue), this.sourceNodeOptions.set(Xe, Et);
var Pt = function(Ge) {
return _t.handleDragStart(Ge, Xe);
},
Wt = function(Ge) {
return _t.handleSelectStart(Ge);
};
return (
Ue.setAttribute('draggable', 'true'),
Ue.addEventListener('dragstart', Pt),
Ue.addEventListener('selectstart', Wt),
function() {
_t.sourceNodes.delete(Xe),
_t.sourceNodeOptions.delete(Xe),
Ue.removeEventListener('dragstart', Pt),
Ue.removeEventListener('selectstart', Wt),
Ue.setAttribute('draggable', 'false');
}
);
},
},
{
key: 'connectDropTarget',
value: function(Xe, Ue) {
var Et = this,
_t = function(Ge) {
return Et.handleDragEnter(Ge, Xe);
},
Pt = function(Ge) {
return Et.handleDragOver(Ge, Xe);
},
Wt = function(Ge) {
return Et.handleDrop(Ge, Xe);
};
return (
Ue.addEventListener('dragenter', _t),
Ue.addEventListener('dragover', Pt),
Ue.addEventListener('drop', Wt),
function() {
Ue.removeEventListener('dragenter', _t),
Ue.removeEventListener('dragover', Pt),
Ue.removeEventListener('drop', Wt);
}
);
},
},
{
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(),
Ue = this.sourceNodeOptions.get(Xe);
return J({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, Ue || {});
},
},
{
key: 'getCurrentDropEffect',
value: function() {
return this.isDraggingNativeItem()
? 'copy'
: this.getCurrentSourceNodeOptions().dropEffect;
},
},
{
key: 'getCurrentSourcePreviewNodeOptions',
value: function() {
var Xe = this.monitor.getSourceId(),
Ue = this.sourcePreviewNodeOptions.get(Xe);
return J({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: !1 }, Ue || {});
},
},
{
key: 'isDraggingNativeItem',
value: function() {
var Xe = this.monitor.getItemType();
return Object.keys(r).some(function(Ue) {
return r[Ue] === Xe;
});
},
},
{
key: 'beginDragNativeItem',
value: function(Xe, Ue) {
this.clearCurrentDragSourceNode(),
(this.currentNativeSource = ee(Xe, Ue)),
(this.currentNativeHandle = this.registry.addSource(
Xe,
this.currentNativeSource,
)),
this.actions.beginDrag([this.currentNativeHandle]);
},
},
{
key: 'setCurrentDragSourceNode',
value: function(Xe) {
var Ue = this;
this.clearCurrentDragSourceNode(), (this.currentDragSourceNode = Xe);
var Et = 1e3;
this.mouseMoveTimeoutTimer = setTimeout(function() {
return (
Ue.window &&
Ue.window.addEventListener(
'mousemove',
Ue.endDragIfSourceWasRemovedFromDOM,
!0,
)
);
}, Et);
},
},
{
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, Ue) {
if (Xe.defaultPrevented) return;
this.dragStartSourceIds || (this.dragStartSourceIds = []),
this.dragStartSourceIds.unshift(Ue);
},
},
{
key: 'handleDragEnter',
value: function(Xe, Ue) {
this.dragEnterTargetIds.unshift(Ue);
},
},
{
key: 'handleDragOver',
value: function(Xe, Ue) {
this.dragOverTargetIds === null && (this.dragOverTargetIds = []),
this.dragOverTargetIds.unshift(Ue);
},
},
{
key: 'handleDrop',
value: function(Xe, Ue) {
this.dropTargetIds.unshift(Ue);
},
},
{
key: 'window',
get: function() {
return this.options.window;
},
},
{
key: 'document',
get: function() {
return this.options.document;
},
},
]),
Me
);
})(),
qe = function(ze, Xe) {
return new Le(ze, Xe);
};
},
qN19: function(U, s, t) {
'use strict';
t('1Ywk'), t('YawY'), t('Hgme'), t('uFIP');
},
qNPg: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return fe;
});
var r = t('rePB'),
u = t('VTBJ'),
o = t('KQm4'),
a = t('ODXe'),
n = t('Ff2n'),
e = t('q1tI'),
g = t('4IlW'),
m = t('TSYQ'),
p = t.n(m),
C = t('6cGi'),
w = t('bX4T'),
T = t('8XRh'),
F = t('8OUc'),
E = t('c+Xe'),
D = function(we, Le) {
var qe = we.prefixCls,
Me = we.id,
ze = we.inputElement,
Xe = we.disabled,
Ue = we.tabIndex,
Et = we.autoFocus,
_t = we.autoComplete,
Pt = we.editable,
Wt = we.accessibilityIndex,
Kt = we.value,
Ge = we.onKeyDown,
de = we.onMouseDown,
oe = we.onChange,
Fe = we.onPaste,
Je = we.onCompositionStart,
rt = we.onCompositionEnd,
yt = we.open,
an = we.attrs,
Xt = ze || e.createElement('input', null),
Ct = Xt,
Gt = Ct.ref,
Yt = Ct.props,
en = Yt.onKeyDown,
xn = Yt.onChange,
qt = Yt.onMouseDown,
Pn = Yt.onCompositionStart,
Vn = Yt.onCompositionEnd,
Bn = Yt.style;
return (
(Xt = e.cloneElement(
Xt,
Object(u.a)(
Object(u.a)(
{
id: Me,
ref: Object(E.a)(Le, Gt),
disabled: Xe,
tabIndex: Ue,
autoComplete: _t || 'off',
type: 'search',
autoFocus: Et,
className: ''.concat(qe, '-selection-search-input'),
style: Object(u.a)(Object(u.a)({}, Bn), {}, { opacity: Pt ? null : 0 }),
role: 'combobox',
'aria-expanded': yt,
'aria-haspopup': 'listbox',
'aria-owns': ''.concat(Me, '_list'),
'aria-autocomplete': 'list',
'aria-controls': ''.concat(Me, '_list'),
'aria-activedescendant': ''.concat(Me, '_list_').concat(Wt),
},
an,
),
{},
{
value: Pt ? Kt : '',
readOnly: !Pt,
unselectable: Pt ? null : 'on',
onKeyDown: function(We) {
Ge(We), en && en(We);
},
onMouseDown: function(We) {
de(We), qt && qt(We);
},
onChange: function(We) {
oe(We), xn && xn(We);
},
onCompositionStart: function(We) {
Je(We), Pn && Pn(We);
},
onCompositionEnd: function(We) {
rt(We), Vn && Vn(We);
},
onPaste: Fe,
},
),
)),
Xt
);
},
O = e.forwardRef(D);
O.displayName = 'Input';
var I = O,
P = t('WKfj');
function M(Te, we) {
P.b ? e.useLayoutEffect(Te, we) : e.useEffect(Te, we);
}
var A = '__RC_SELECT_MAX_REST_COUNT__',
x = function(we) {
var Le = we.id,
qe = we.prefixCls,
Me = we.values,
ze = we.open,
Xe = we.searchValue,
Ue = we.inputRef,
Et = we.placeholder,
_t = we.disabled,
Pt = we.mode,
Wt = we.showSearch,
Kt = we.autoFocus,
Ge = we.autoComplete,
de = we.accessibilityIndex,
oe = we.tabIndex,
Fe = we.removeIcon,
Je = we.choiceTransitionName,
rt = we.maxTagCount,
yt = we.maxTagTextLength,
an = we.maxTagPlaceholder,
Xt =
an === void 0
? function(Tt) {
return '+ '.concat(Tt.length, ' ...');
}
: an,
Ct = we.tagRender,
Gt = we.onSelect,
Yt = we.onInputChange,
en = we.onInputPaste,
xn = we.onInputKeyDown,
qt = we.onInputMouseDown,
Pn = we.onInputCompositionStart,
Vn = we.onInputCompositionEnd,
Bn = e.useState(!1),
ir = Object(a.a)(Bn, 2),
We = ir[0],
ve = ir[1],
Oe = e.useRef(null),
_e = e.useState(0),
be = Object(a.a)(_e, 2),
Ae = be[0],
ge = be[1];
e.useEffect(function() {
ve(!0);
}, []);
var Ke = ze || Pt === 'tags' ? Xe : '',
Se = Pt === 'tags' || (ze && Wt);
M(
function() {
ge(Oe.current.scrollWidth);
},
[Ke],
);
var Ne = Me,
Ve;
typeof rt == 'number' && ((Ve = Me.length - rt), (Ne = Me.slice(0, rt))),
typeof yt == 'number' &&
(Ne = Ne.map(function(Tt) {
var kt = Tt.label,
se = Object(n.a)(Tt, ['label']),
ut = kt;
if (typeof kt == 'string' || typeof kt == 'number') {
var ot = String(ut);
ot.length > yt && (ut = ''.concat(ot.slice(0, yt), '...'));
}
return Object(u.a)(Object(u.a)({}, se), {}, { label: ut });
})),
Ve > 0 && Ne.push({ key: A, label: typeof Xt == 'function' ? Xt(Me.slice(rt)) : Xt });
var Ce = e.createElement(
T.CSSMotionList,
{ component: !1, keys: Ne, motionName: Je, motionAppear: We },
function(Tt) {
var kt = Tt.key,
se = Tt.label,
ut = Tt.value,
ot = Tt.disabled,
ke = Tt.className,
st = Tt.style,
Lt = kt || ut,
un = !_t && kt !== A && !ot,
In = function(cr) {
cr.preventDefault(), cr.stopPropagation();
},
tr = function(cr) {
cr && cr.stopPropagation(), Gt(ut, { selected: !1 });
};
return typeof Ct == 'function'
? e.createElement(
'span',
{ key: Lt, onMouseDown: In, className: ke, style: st },
Ct({ label: se, value: ut, disabled: ot, closable: un, onClose: tr }),
)
: e.createElement(
'span',
{
key: Lt,
className: p()(
ke,
''.concat(qe, '-selection-item'),
Object(r.a)({}, ''.concat(qe, '-selection-item-disabled'), ot),
),
style: st,
},
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-item-content') },
se,
),
un &&
e.createElement(
F.a,
{
className: ''.concat(qe, '-selection-item-remove'),
onMouseDown: In,
onClick: tr,
customizeIcon: Fe,
},
'×',
),
);
},
);
return e.createElement(
e.Fragment,
null,
Ce,
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-search'), style: { width: Ae } },
e.createElement(I, {
ref: Ue,
open: ze,
prefixCls: qe,
id: Le,
inputElement: null,
disabled: _t,
autoFocus: Kt,
autoComplete: Ge,
editable: Se,
accessibilityIndex: de,
value: Ke,
onKeyDown: xn,
onMouseDown: qt,
onChange: Yt,
onPaste: en,
onCompositionStart: Pn,
onCompositionEnd: Vn,
tabIndex: oe,
attrs: Object(w.a)(we, !0),
}),
e.createElement(
'span',
{
ref: Oe,
className: ''.concat(qe, '-selection-search-mirror'),
'aria-hidden': !0,
},
Ke,
' ',
),
),
!Me.length &&
!Ke &&
e.createElement('span', { className: ''.concat(qe, '-selection-placeholder') }, Et),
);
},
h = x,
d = function(we) {
var Le = we.inputElement,
qe = we.prefixCls,
Me = we.id,
ze = we.inputRef,
Xe = we.disabled,
Ue = we.autoFocus,
Et = we.autoComplete,
_t = we.accessibilityIndex,
Pt = we.mode,
Wt = we.open,
Kt = we.values,
Ge = we.placeholder,
de = we.tabIndex,
oe = we.showSearch,
Fe = we.searchValue,
Je = we.activeValue,
rt = we.onInputKeyDown,
yt = we.onInputMouseDown,
an = we.onInputChange,
Xt = we.onInputPaste,
Ct = we.onInputCompositionStart,
Gt = we.onInputCompositionEnd,
Yt = e.useState(!1),
en = Object(a.a)(Yt, 2),
xn = en[0],
qt = en[1],
Pn = Pt === 'combobox',
Vn = Pn || oe,
Bn = Kt[0],
ir = Fe || '';
Pn && Je && !xn && (ir = Je),
e.useEffect(
function() {
Pn && qt(!1);
},
[Pn, Je],
);
var We = Pt !== 'combobox' && !Wt ? !1 : !!ir,
ve =
Bn && (typeof Bn.label == 'string' || typeof Bn.label == 'number')
? Bn.label.toString()
: void 0;
return e.createElement(
e.Fragment,
null,
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-search') },
e.createElement(I, {
ref: ze,
prefixCls: qe,
id: Me,
open: Wt,
inputElement: Le,
disabled: Xe,
autoFocus: Ue,
autoComplete: Et,
editable: Vn,
accessibilityIndex: _t,
value: ir,
onKeyDown: rt,
onMouseDown: yt,
onChange: function(_e) {
qt(!0), an(_e);
},
onPaste: Xt,
onCompositionStart: Ct,
onCompositionEnd: Gt,
tabIndex: de,
attrs: Object(w.a)(we, !0),
}),
),
!Pn &&
Bn &&
!We &&
e.createElement(
'span',
{ className: ''.concat(qe, '-selection-item'), title: ve },
Bn.label,
),
!Bn &&
!We &&
e.createElement('span', { className: ''.concat(qe, '-selection-placeholder') }, Ge),
);
},
v = d;
function S() {
var Te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250,
we = e.useRef(null),
Le = e.useRef(null);
e.useEffect(function() {
return function() {
window.clearTimeout(Le.current);
};
}, []);
function qe(Me) {
(Me || we.current === null) && (we.current = Me),
window.clearTimeout(Le.current),
(Le.current = window.setTimeout(function() {
we.current = null;
}, Te));
}
return [
function() {
return we.current;
},
qe,
];
}
var N = function(we, Le) {
var qe = Object(e.useRef)(null),
Me = Object(e.useRef)(!1),
ze = we.prefixCls,
Xe = we.multiple,
Ue = we.open,
Et = we.mode,
_t = we.showSearch,
Pt = we.tokenWithEnter,
Wt = we.onSearch,
Kt = we.onSearchSubmit,
Ge = we.onToggleOpen,
de = we.onInputKeyDown,
oe = we.domRef;
e.useImperativeHandle(Le, function() {
return {
focus: function() {
qe.current.focus();
},
blur: function() {
qe.current.blur();
},
};
});
var Fe = S(0),
Je = Object(a.a)(Fe, 2),
rt = Je[0],
yt = Je[1],
an = function(ve) {
var Oe = ve.which;
(Oe === g.a.UP || Oe === g.a.DOWN) && ve.preventDefault(),
de && de(ve),
Oe === g.a.ENTER && Et === 'tags' && !Me.current && !Ue && Kt(ve.target.value),
[g.a.SHIFT, g.a.TAB, g.a.BACKSPACE, g.a.ESC].includes(Oe) || Ge(!0);
},
Xt = function() {
yt(!0);
},
Ct = Object(e.useRef)(null),
Gt = function(ve) {
Wt(ve, !0, Me.current) !== !1 && Ge(!0);
},
Yt = function() {
Me.current = !0;
},
en = function() {
Me.current = !1;
},
xn = function(ve) {
var Oe = ve.target.value;
if (Pt && Ct.current && /[\r\n]/.test(Ct.current)) {
var _e = Ct.current.replace(/\r\n/g, ' ').replace(/[\r\n]/g, ' ');
Oe = Oe.replace(_e, Ct.current);
}
(Ct.current = null), Gt(Oe);
},
qt = function(ve) {
var Oe = ve.clipboardData,
_e = Oe.getData('text');
Ct.current = _e;
},
Pn = function(ve) {
var Oe = ve.target;
if (Oe !== qe.current) {
var _e = document.body.style.msTouchAction !== void 0;
_e
? setTimeout(function() {
qe.current.focus();
})
: qe.current.focus();
}
},
Vn = function(ve) {
var Oe = rt();
ve.target !== qe.current && !Oe && ve.preventDefault(),
((Et !== 'combobox' && (!_t || !Oe)) || !Ue) && (Ue && Wt('', !0, !1), Ge());
},
Bn = {
inputRef: qe,
onInputKeyDown: an,
onInputMouseDown: Xt,
onInputChange: xn,
onInputPaste: qt,
onInputCompositionStart: Yt,
onInputCompositionEnd: en,
},
ir = Xe
? e.createElement(h, Object.assign({}, we, Bn))
: e.createElement(v, Object.assign({}, we, Bn));
return e.createElement(
'div',
{ ref: oe, className: ''.concat(ze, '-selector'), onClick: Pn, onMouseDown: Vn },
ir,
);
},
R = e.forwardRef(N);
R.displayName = 'Selector';
var _ = R,
W = t('uciX'),
K = function(we) {
var Le = typeof we != 'number' ? 0 : 1;
return {
bottomLeft: {
points: ['tl', 'bl'],
offset: [0, 4],
overflow: { adjustX: Le, adjustY: 1 },
},
bottomRight: {
points: ['tr', 'br'],
offset: [0, 4],
overflow: { adjustX: Le, adjustY: 1 },
},
topLeft: {
points: ['bl', 'tl'],
offset: [0, -4],
overflow: { adjustX: Le, adjustY: 1 },
},
topRight: {
points: ['br', 'tr'],
offset: [0, -4],
overflow: { adjustX: Le, adjustY: 1 },
},
};
},
Z = function(we, Le) {
var qe = we.prefixCls,
Me = we.disabled,
ze = we.visible,
Xe = we.children,
Ue = we.popupElement,
Et = we.containerWidth,
_t = we.animation,
Pt = we.transitionName,
Wt = we.dropdownStyle,
Kt = we.dropdownClassName,
Ge = we.direction,
de = Ge === void 0 ? 'ltr' : Ge,
oe = we.dropdownMatchSelectWidth,
Fe = oe === void 0 ? !0 : oe,
Je = we.dropdownRender,
rt = we.dropdownAlign,
yt = we.getPopupContainer,
an = we.empty,
Xt = we.getTriggerDOMNode,
Ct = Object(n.a)(we, [
'prefixCls',
'disabled',
'visible',
'children',
'popupElement',
'containerWidth',
'animation',
'transitionName',
'dropdownStyle',
'dropdownClassName',
'direction',
'dropdownMatchSelectWidth',
'dropdownRender',
'dropdownAlign',
'getPopupContainer',
'empty',
'getTriggerDOMNode',
]),
Gt = ''.concat(qe, '-dropdown'),
Yt = Ue;
Je && (Yt = Je(Ue));
var en = e.useMemo(
function() {
return K(Fe);
},
[Fe],
),
xn = _t ? ''.concat(Gt, '-').concat(_t) : Pt,
qt = e.useRef(null);
e.useImperativeHandle(Le, function() {
return {
getPopupElement: function() {
return qt.current;
},
};
});
var Pn = Object(u.a)({ minWidth: Et }, Wt);
return (
typeof Fe == 'number' ? (Pn.width = Fe) : Fe && (Pn.width = Et),
e.createElement(
W.a,
Object.assign({}, Ct, {
showAction: [],
hideAction: [],
popupPlacement: de === 'rtl' ? 'bottomRight' : 'bottomLeft',
builtinPlacements: en,
prefixCls: Gt,
popupTransitionName: xn,
popup: e.createElement('div', { ref: qt }, Yt),
popupAlign: rt,
popupVisible: ze,
getPopupContainer: yt,
popupClassName: p()(Kt, Object(r.a)({}, ''.concat(Gt, '-empty'), an)),
popupStyle: Pn,
getTriggerDOMNode: Xt,
}),
Xe,
)
);
},
ee = e.forwardRef(Z);
ee.displayName = 'SelectTrigger';
var ne = ee,
ue = t('wPlo');
function Ee() {
var Te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10,
we = e.useState(!1),
Le = Object(a.a)(we, 2),
qe = Le[0],
Me = Le[1],
ze = e.useRef(null),
Xe = function() {
window.clearTimeout(ze.current);
};
e.useEffect(function() {
return Xe;
}, []);
var Ue = function(_t, Pt) {
Xe(),
(ze.current = window.setTimeout(function() {
Me(_t), Pt && Pt();
}, Te));
};
return [qe, Ue, Xe];
}
var ce = t('2Qr1');
function Q(Te, we, Le) {
var qe = e.useRef(null);
(qe.current = {
elements: Te.filter(function(Me) {
return Me;
}),
open: we,
triggerOpen: Le,
}),
e.useEffect(function() {
function Me(ze) {
var Xe = ze.target;
qe.current.open &&
qe.current.elements.every(function(Ue) {
return !Ue.contains(Xe) && Ue !== Xe;
}) &&
qe.current.triggerOpen(!1);
}
return (
window.addEventListener('mousedown', Me),
function() {
return window.removeEventListener('mousedown', Me);
}
);
}, []);
}
function le(Te) {
var we = e.useRef(Te),
Le = e.useMemo(
function() {
var qe = new Map();
we.current.forEach(function(ze) {
var Xe = ze.value,
Ue = ze.label;
Xe !== Ue && qe.set(Xe, Ue);
});
var Me = Te.map(function(ze) {
var Xe = qe.get(ze.value);
return ze.value === ze.label && Xe
? Object(u.a)(Object(u.a)({}, ze), {}, { label: Xe })
: ze;
});
return (we.current = Me), Me;
},
[Te],
);
return Le;
}
function J(Te, we) {
var Le = e.useRef(null),
qe = e.useMemo(
function() {
var ze = new Map();
return (
we.forEach(function(Xe) {
var Ue = Xe.data.value;
ze.set(Ue, Xe);
}),
ze
);
},
[Te, we],
);
Le.current = qe;
var Me = function(Xe) {
return Xe.map(function(Ue) {
return Le.current.get(Ue);
}).filter(Boolean);
};
return Me;
}
var ae = [
'removeIcon',
'placeholder',
'autoFocus',
'maxTagCount',
'maxTagTextLength',
'maxTagPlaceholder',
'choiceTransitionName',
'onInputKeyDown',
];
function fe(Te) {
var we = Te.prefixCls,
Le = Te.components.optionList,
qe = Te.convertChildrenToData,
Me = Te.flattenOptions,
ze = Te.getLabeledValue,
Xe = Te.filterOptions,
Ue = Te.isValueDisabled,
Et = Te.findValueOption,
_t = Te.warningProps,
Pt = Te.fillOptionsWithMissingValue,
Wt = Te.omitDOMProps;
function Kt(de, oe) {
var Fe,
Je = de.prefixCls,
rt = Je === void 0 ? we : Je,
yt = de.className,
an = de.id,
Xt = de.open,
Ct = de.defaultOpen,
Gt = de.options,
Yt = de.children,
en = de.mode,
xn = de.value,
qt = de.defaultValue,
Pn = de.labelInValue,
Vn = de.showSearch,
Bn = de.inputValue,
ir = de.searchValue,
We = de.filterOption,
ve = de.optionFilterProp,
Oe = ve === void 0 ? 'value' : ve,
_e = de.autoClearSearchValue,
be = _e === void 0 ? !0 : _e,
Ae = de.onSearch,
ge = de.allowClear,
Ke = de.clearIcon,
Se = de.showArrow,
Ne = de.inputIcon,
Ve = de.menuItemSelectedIcon,
Ce = de.disabled,
Tt = de.loading,
kt = de.defaultActiveFirstOption,
se = de.notFoundContent,
ut = se === void 0 ? 'Not Found' : se,
ot = de.optionLabelProp,
ke = de.backfill,
st = de.getInputElement,
Lt = de.getPopupContainer,
un = de.listHeight,
In = un === void 0 ? 200 : un,
tr = de.listItemHeight,
pr = tr === void 0 ? 20 : tr,
cr = de.animation,
on = de.transitionName,
Qe = de.virtual,
lt = de.dropdownStyle,
vt = de.dropdownClassName,
Be = de.dropdownMatchSelectWidth,
at = de.dropdownRender,
Ft = de.dropdownAlign,
tn = de.showAction,
jn = tn === void 0 ? [] : tn,
hn = de.direction,
cn = de.tokenSeparators,
Sn = de.tagRender,
Hn = de.onPopupScroll,
_r = de.onDropdownVisibleChange,
yr = de.onFocus,
Vr = de.onBlur,
zr = de.onKeyUp,
ct = de.onKeyDown,
Nt = de.onMouseDown,
bt = de.onChange,
Zt = de.onSelect,
lr = de.onDeselect,
mr = de.onClear,
Or = de.internalProps,
An = Or === void 0 ? {} : Or,
Qr = Object(n.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',
]),
Oa = An.mark === ue.a,
ea = Wt ? Wt(Qr) : Qr;
ae.forEach(function(Hr) {
delete ea[Hr];
});
var Ea = Object(e.useRef)(null),
Mi = Object(e.useRef)(null),
Ri = Object(e.useRef)(null),
di = Object(e.useRef)(null),
io = Object(e.useMemo)(
function() {
return (cn || []).some(function(Hr) {
return [
`
`,
`\r
`,
].includes(Hr);
});
},
[cn],
),
zi = Ee(),
ca = Object(a.a)(zi, 3),
Bi = ca[0],
Xi = ca[1],
qa = ca[2],
oo = Object(e.useState)(),
_i = Object(a.a)(oo, 2),
$i = _i[0],
da = _i[1];
Object(e.useEffect)(function() {
da('rc_select_'.concat(Object(P.a)()));
}, []);
var ei = an || $i,
ii = ot;
ii === void 0 && (ii = Gt ? 'label' : 'children');
var Ui = en === 'combobox' ? !1 : Pn,
Na = en === 'tags' || en === 'multiple',
Qi = Vn !== void 0 ? Vn : Na || en === 'combobox',
so = Object(e.useRef)(null);
e.useImperativeHandle(oe, function() {
return { focus: Ri.current.focus, blur: Ri.current.blur };
});
var oi = Object(C.a)(qt, { value: xn }),
ho = Object(a.a)(oi, 2),
Hi = ho[0],
Li = ho[1],
Xa = Object(e.useMemo)(
function() {
return Object(P.e)(Hi, { labelInValue: Ui, combobox: en === 'combobox' });
},
[Hi, Ui],
),
ki = Object(e.useMemo)(
function() {
return new Set(Xa);
},
[Xa],
),
Yi = Object(e.useState)(null),
yi = Object(a.a)(Yi, 2),
$a = yi[0],
Ai = yi[1],
mo = Object(e.useState)(''),
eo = Object(a.a)(mo, 2),
St = eo[0],
En = eo[1],
rr = St;
en === 'combobox' && Hi !== void 0
? (rr = Hi)
: ir !== void 0
? (rr = ir)
: Bn && (rr = Bn);
var Ht = Object(e.useMemo)(
function() {
var Hr = Gt;
return (
Hr === void 0 && (Hr = qe(Yt)),
en === 'tags' && Pt && (Hr = Pt(Hr, Hi, ii, Pn)),
Hr || []
);
},
[Gt, Yt, en, Hi],
),
It = Object(e.useMemo)(
function() {
return Me(Ht, de);
},
[Ht],
),
mn = J(Xa, It),
ht = Object(e.useMemo)(
function() {
if (!rr || !Qi) return Object(o.a)(Ht);
var Hr = Xe(rr, Ht, {
optionFilterProp: Oe,
filterOption:
en === 'combobox' && We === void 0
? function() {
return !0;
}
: We,
});
return (
en === 'tags' &&
Hr.every(function(la) {
return la[Oe] !== rr;
}) &&
Hr.unshift({ value: rr, label: rr, key: '__RC_SELECT_TAG_PLACEHOLDER__' }),
Hr
);
},
[Ht, rr, en, Qi],
),
fn = Object(e.useMemo)(
function() {
return Me(ht, de);
},
[ht],
);
Object(e.useEffect)(
function() {
di.current && di.current.scrollTo && di.current.scrollTo(0);
},
[rr],
);
var Un = Object(e.useMemo)(
function() {
var Hr = Xa.map(function(la) {
var Fa = mn([la]),
Lr = ze(la, {
options: Fa,
prevValue: Hi,
labelInValue: Ui,
optionLabelProp: ii,
});
return Object(u.a)(Object(u.a)({}, Lr), {}, { disabled: Ue(la, Fa) });
});
return !en && Hr.length === 1 && Hr[0].value === null && Hr[0].label === null
? []
: Hr;
},
[Hi, Ht, en],
);
Un = le(Un);
var Jt = function(la, Fa, Lr) {
var oa = mn([la]),
Qa = Et([la], oa)[0];
if (!An.skipTriggerSelect) {
var Oi = Ui
? ze(la, { options: oa, prevValue: Hi, labelInValue: Ui, optionLabelProp: ii })
: la;
Fa && Zt ? Zt(Oi, Qa) : !Fa && lr && lr(Oi, Qa);
}
Oa &&
(Fa && An.onRawSelect
? An.onRawSelect(la, Qa, Lr)
: !Fa && An.onRawDeselect && An.onRawDeselect(la, Qa, Lr));
},
Sr = Object(e.useState)([]),
Ur = Object(a.a)(Sr, 2),
Ir = Ur[0],
Wr = Ur[1],
ft = function(la) {
if (Oa && An.skipTriggerChange) return;
var Fa = mn(la),
Lr = Object(P.f)(Array.from(la), {
labelInValue: Ui,
options: Fa,
getLabeledValue: ze,
prevValue: Hi,
optionLabelProp: ii,
}),
oa = Na ? Lr : Lr[0];
if (bt && (Xa.length !== 0 || Lr.length !== 0)) {
var Qa = Et(la, Fa, { prevValueOptions: Ir });
Wr(
Qa.map(function(Oi, j) {
var te = Object(u.a)({}, Oi);
return (
Object.defineProperty(te, '_INTERNAL_OPTION_VALUE_', {
get: function() {
return la[j];
},
}),
te
);
}),
),
bt(oa, Na ? Qa : Qa[0]);
}
Li(oa);
},
wt = function(la, Fa) {
var Lr = Fa.selected,
oa = Fa.source;
if (Ce) return;
var Qa;
Na
? ((Qa = new Set(Xa)), Lr ? Qa.add(la) : Qa.delete(la))
: ((Qa = new Set()), Qa.add(la)),
(Na || (!Na && Array.from(Xa)[0] !== la)) && ft(Array.from(Qa)),
Jt(la, !Na || Lr, oa),
en === 'combobox' ? (En(String(la)), Ai('')) : (!Na || be) && (En(''), Ai(''));
},
sn = function(la, Fa) {
wt(la, Object(u.a)(Object(u.a)({}, Fa), {}, { source: 'option' }));
},
wn = function(la, Fa) {
wt(la, Object(u.a)(Object(u.a)({}, Fa), {}, { source: 'selection' }));
},
or = (en === 'combobox' && st && st()) || null,
ur = Object(C.a)(void 0, { defaultValue: Ct, value: Xt }),
br = Object(a.a)(ur, 2),
nr = br[0],
Yr = br[1],
kr = nr,
Ga = !ut && !ht.length;
(Ce || (Ga && kr && en === 'combobox')) && (kr = !1);
var Br = Ga ? !1 : kr,
Mr = function(la) {
var Fa = la !== void 0 ? la : !kr;
nr !== Fa && !Ce && (Yr(Fa), _r && _r(Fa));
};
Q([Ea.current, Mi.current && Mi.current.getPopupElement()], Br, Mr);
var ia = function(la, Fa, Lr) {
var oa = !0,
Qa = la;
Ai(null);
var Oi = Lr ? null : Object(ce.f)(la, cn),
j = Oi;
if (en === 'combobox') Fa && ft([Qa]);
else if (Oi) {
(Qa = ''),
en !== 'tags' &&
(j = Oi.map(function(xe) {
var je = It.find(function(Ze) {
var xt = Ze.data;
return xt[ii] === xe;
});
return je ? je.data.value : null;
}).filter(function(xe) {
return xe !== null;
}));
var te = Array.from(new Set([].concat(Object(o.a)(Xa), Object(o.a)(j))));
ft(te),
te.forEach(function(xe) {
Jt(xe, !0, 'input');
}),
Mr(!1),
(oa = !1);
}
return En(Qa), Ae && rr !== Qa && Ae(Qa), oa;
},
Zr = function(la) {
var Fa = Array.from(new Set([].concat(Object(o.a)(Xa), [la])));
ft(Fa),
Fa.forEach(function(Lr) {
Jt(Lr, !0, 'input');
}),
En('');
};
Object(e.useEffect)(
function() {
nr && !!Ce && Yr(!1);
},
[Ce],
),
Object(e.useEffect)(
function() {
!kr && !Na && en !== 'combobox' && ia('', !1, !1);
},
[kr],
);
var na = S(),
Fi = Object(a.a)(na, 2),
Di = Fi[0],
ya = Fi[1],
Ua = function(la) {
var Fa = Di(),
Lr = la.which;
if (
(!kr && Lr === g.a.ENTER && Mr(!0),
ya(!!rr),
Lr === g.a.BACKSPACE && !Fa && Na && !rr && Xa.length)
) {
var oa = Object(P.c)(Un, Xa);
oa.removedValue !== null && (ft(oa.values), Jt(oa.removedValue, !1, 'input'));
}
for (
var Qa = arguments.length, Oi = new Array(Qa > 1 ? Qa - 1 : 0), j = 1;
j < Qa;
j++
)
Oi[j - 1] = arguments[j];
if (kr && di.current) {
var te;
(te = di.current).onKeyDown.apply(te, [la].concat(Oi));
}
ct && ct.apply(void 0, [la].concat(Oi));
},
Ti = function(la) {
for (
var Fa = arguments.length, Lr = new Array(Fa > 1 ? Fa - 1 : 0), oa = 1;
oa < Fa;
oa++
)
Lr[oa - 1] = arguments[oa];
if (kr && di.current) {
var Qa;
(Qa = di.current).onKeyUp.apply(Qa, [la].concat(Lr));
}
zr && zr.apply(void 0, [la].concat(Lr));
},
Ln = Object(e.useRef)(!1),
He = function() {
Xi(!0),
Ce ||
(yr && !Ln.current && yr.apply(void 0, arguments),
jn.includes('focus') && Mr(!0)),
(Ln.current = !0);
},
pt = function() {
if (
(Xi(!1, function() {
(Ln.current = !1), Mr(!1);
}),
Ce)
)
return;
rr &&
(en === 'tags'
? (ia('', !1, !1), ft(Array.from(new Set([].concat(Object(o.a)(Xa), [rr])))))
: en === 'multiple' && En('')),
Vr && Vr.apply(void 0, arguments);
},
ie = [];
Object(e.useEffect)(function() {
return function() {
ie.forEach(function(Hr) {
return clearTimeout(Hr);
}),
ie.splice(0, ie.length);
};
}, []);
var gt = function(la) {
var Fa = la.target,
Lr = Mi.current && Mi.current.getPopupElement();
if (Lr && Lr.contains(Fa)) {
var oa = setTimeout(function() {
var te = ie.indexOf(oa);
te !== -1 && ie.splice(te, 1),
qa(),
Lr.contains(document.activeElement) || Ri.current.focus();
});
ie.push(oa);
}
if (Nt) {
for (
var Qa = arguments.length, Oi = new Array(Qa > 1 ? Qa - 1 : 0), j = 1;
j < Qa;
j++
)
Oi[j - 1] = arguments[j];
Nt.apply(void 0, [la].concat(Oi));
}
},
mt = Object(e.useState)(0),
Ut = Object(a.a)(mt, 2),
Dt = Ut[0],
Fn = Ut[1],
qn = kt !== void 0 ? kt : en !== 'combobox',
Ar = function(la, Fa) {
var Lr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
oa = Lr.source,
Qa = oa === void 0 ? 'keyboard' : oa;
Fn(Fa), ke && en === 'combobox' && la !== null && Qa === 'keyboard' && Ai(String(la));
},
xr = Object(e.useState)(null),
Xr = Object(a.a)(xr, 2),
sa = Xr[0],
Da = Xr[1],
Pa = Object(e.useState)({}),
Ma = Object(a.a)(Pa, 2),
ka = Ma[1];
function La() {
ka({});
}
M(
function() {
if (Br) {
var Hr = Math.ceil(Ea.current.offsetWidth);
sa !== Hr && Da(Hr);
}
},
[Br],
);
var xa = e.createElement(Le, {
ref: di,
prefixCls: rt,
id: ei,
open: kr,
childrenAsData: !Gt,
options: ht,
flattenOptions: fn,
multiple: Na,
values: ki,
height: In,
itemHeight: pr,
onSelect: sn,
onToggleOpen: Mr,
onActiveValue: Ar,
defaultActiveFirstOption: qn,
notFoundContent: ut,
onScroll: Hn,
searchValue: rr,
menuItemSelectedIcon: Ve,
virtual: Qe !== !1 && Be !== !1,
onMouseEnter: La,
}),
ha,
si = function() {
Oa && An.onClear && An.onClear(), mr && mr(), ft([]), ia('', !1, !1);
};
!Ce &&
ge &&
(Xa.length || rr) &&
(ha = e.createElement(
F.a,
{ className: ''.concat(rt, '-clear'), onMouseDown: si, customizeIcon: Ke },
'×',
));
var Ca = Se !== void 0 ? Se : Tt || (!Na && en !== 'combobox'),
ti;
Ca &&
(ti = e.createElement(F.a, {
className: p()(
''.concat(rt, '-arrow'),
Object(r.a)({}, ''.concat(rt, '-arrow-loading'), Tt),
),
customizeIcon: Ne,
customizeIconProps: {
loading: Tt,
searchValue: rr,
open: kr,
focused: Bi,
showSearch: Qi,
},
}));
var li = p()(
rt,
yt,
((Fe = {}),
Object(r.a)(Fe, ''.concat(rt, '-focused'), Bi),
Object(r.a)(Fe, ''.concat(rt, '-multiple'), Na),
Object(r.a)(Fe, ''.concat(rt, '-single'), !Na),
Object(r.a)(Fe, ''.concat(rt, '-allow-clear'), ge),
Object(r.a)(Fe, ''.concat(rt, '-show-arrow'), Ca),
Object(r.a)(Fe, ''.concat(rt, '-disabled'), Ce),
Object(r.a)(Fe, ''.concat(rt, '-loading'), Tt),
Object(r.a)(Fe, ''.concat(rt, '-open'), kr),
Object(r.a)(Fe, ''.concat(rt, '-customize-input'), or),
Object(r.a)(Fe, ''.concat(rt, '-show-search'), Qi),
Fe),
);
return e.createElement(
'div',
Object.assign({ className: li }, ea, {
ref: Ea,
onMouseDown: gt,
onKeyDown: Ua,
onKeyUp: Ti,
onFocus: He,
onBlur: pt,
}),
Bi &&
!kr &&
e.createElement(
'span',
{
style: { width: 0, height: 0, display: 'flex', overflow: 'hidden', opacity: 0 },
'aria-live': 'polite',
},
''.concat(Xa.join(', ')),
),
e.createElement(
ne,
{
ref: Mi,
disabled: Ce,
prefixCls: rt,
visible: Br,
popupElement: xa,
containerWidth: sa,
animation: cr,
transitionName: on,
dropdownStyle: lt,
dropdownClassName: vt,
direction: hn,
dropdownMatchSelectWidth: Be,
dropdownRender: at,
dropdownAlign: Ft,
getPopupContainer: Lt,
empty: !Ht.length,
getTriggerDOMNode: function() {
return so.current;
},
},
e.createElement(
_,
Object.assign({}, de, {
domRef: so,
prefixCls: rt,
inputElement: or,
ref: Ri,
id: ei,
showSearch: Qi,
mode: en,
accessibilityIndex: Dt,
multiple: Na,
tagRender: Sn,
values: Un,
open: kr,
onToggleOpen: Mr,
searchValue: rr,
activeValue: $a,
onSearch: ia,
onSearchSubmit: Zr,
onSelect: wn,
tokenWithEnter: io,
}),
),
),
ti,
ha,
);
}
var Ge = e.forwardRef(Kt);
return Ge;
}
},
qT76: function(U, s, t) {
'use strict';
t('1Ywk'), t('YawY'), t('4ZCN');
},
qWUW: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('DL4k')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'CaretDownOutlined';
var g = o.forwardRef(e);
s.default = g;
},
qZTm: function(U, s, t) {
var r = t('fR/l'),
u = t('MvSz'),
o = t('7GkX');
function a(n) {
return r(n, o, u);
}
U.exports = a;
},
'ql/k': function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 });
var r =
Object.assign ||
function(g) {
for (var m = 1; m < arguments.length; m++) {
var p = arguments[m];
for (var C in p) Object.prototype.hasOwnProperty.call(p, C) && (g[C] = p[C]);
}
return g;
},
u = t('q1tI'),
o = a(u);
function a(g) {
return g && g.__esModule ? g : { default: g };
}
function n(g, m) {
var p = {};
for (var C in g) {
if (m.indexOf(C) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(g, C)) continue;
p[C] = g[C];
}
return p;
}
var e = 24;
s.default = function(g) {
var m = g.fill,
p = m === void 0 ? 'currentColor' : m,
C = g.width,
w = C === void 0 ? e : C,
T = g.height,
F = T === void 0 ? e : T,
E = g.style,
D = E === void 0 ? {} : E,
O = n(g, ['fill', 'width', 'height', 'style']);
return o.default.createElement(
'svg',
r({ viewBox: '0 0 ' + e + ' ' + e, style: r({ fill: p, width: w, height: F }, D) }, O),
o.default.createElement('path', {
d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
}),
);
};
},
qnky: function(U, s, t) {
'use strict';
function r(m, p) {
if (!(m instanceof p)) throw new TypeError('Cannot call a class as a function');
}
function u(m, p) {
if (!m)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return p && (typeof p == 'object' || typeof p == 'function') ? p : m;
}
function o(m, p) {
if (typeof p != 'function' && p !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof p,
);
(m.prototype = Object.create(p && p.prototype, {
constructor: { value: m, enumerable: !1, writable: !0, configurable: !0 },
})),
p && (Object.setPrototypeOf ? Object.setPrototypeOf(m, p) : (m.__proto__ = p));
}
var a = t('JPcv'),
n = a.Record,
e = n({ type: 'TOKEN', mutability: 'IMMUTABLE', data: Object }),
g = (function(m) {
o(p, m);
function p() {
return r(this, p), u(this, m.apply(this, arguments));
}
return (
(p.prototype.getType = function() {
return this.get('type');
}),
(p.prototype.getMutability = function() {
return this.get('mutability');
}),
(p.prototype.getData = function() {
return this.get('data');
}),
p
);
})(e);
U.exports = g;
},
qo7Q: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.AlphaPicker = void 0);
var r =
Object.assign ||
function(w) {
for (var T = 1; T < arguments.length; T++) {
var F = arguments[T];
for (var E in F) Object.prototype.hasOwnProperty.call(F, E) && (w[E] = F[E]);
}
return w;
},
u = t('q1tI'),
o = p(u),
a = t('/FUP'),
n = p(a),
e = t('TM95'),
g = t('Syy6'),
m = p(g);
function p(w) {
return w && w.__esModule ? w : { default: w };
}
var C = (s.AlphaPicker = function(T) {
var F = T.rgb,
E = T.hsl,
D = T.width,
O = T.height,
I = T.onChange,
P = T.direction,
M = T.style,
A = T.renderers,
x = T.pointer,
h = T.className,
d = h === void 0 ? '' : h,
v = (0, n.default)({
default: {
picker: { position: 'relative', width: D, height: O },
alpha: { radius: '2px', style: M },
},
});
return o.default.createElement(
'div',
{ style: v.picker, className: 'alpha-picker ' + d },
o.default.createElement(
e.Alpha,
r({}, v.alpha, { rgb: F, hsl: E, pointer: x, renderers: A, onChange: I, direction: P }),
),
);
});
(C.defaultProps = {
width: '316px',
height: '16px',
direction: 'horizontal',
pointer: m.default,
}),
(s.default = (0, e.ColorWrap)(C));
},
qx4F: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return u;
});
var r;
function u(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 n = document.createElement('div'),
e = n.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'),
n.appendChild(a),
document.body.appendChild(n);
var g = a.offsetWidth;
n.style.overflow = 'scroll';
var m = a.offsetWidth;
g === m && (m = n.clientWidth), document.body.removeChild(n), (r = g - m);
}
return r;
}
},
qy1W: function(U, s, t) {
'use strict';
var r = t('2NuI');
function u(n) {
var e = n.length;
if (
((!Array.isArray(n) && (typeof n == 'object' || typeof n == 'function')) || r(!1),
typeof e == 'number' || r(!1),
e === 0 || e - 1 in n || r(!1),
typeof n.callee != 'function' || r(!1),
n.hasOwnProperty)
)
try {
return Array.prototype.slice.call(n);
} catch (p) {}
for (var g = Array(e), m = 0; m < e; m++) g[m] = n[m];
return g;
}
function o(n) {
return (
!!n &&
(typeof n == 'object' || typeof n == 'function') &&
'length' in n &&
!('setInterval' in n) &&
typeof n.nodeType != 'number' &&
(Array.isArray(n) || 'callee' in n || 'item' in n)
);
}
function a(n) {
return o(n) ? (Array.isArray(n) ? n.slice() : u(n)) : [n];
}
U.exports = a;
},
'r+Ry': function(U, s, t) {},
rAV9: function(U, s, t) {
'use strict';
var r = t('JPcv'),
u = r.Map,
o = t('q1tI'),
a = t('YVIB'),
n = 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') }),
m = u({
'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: n },
'ordered-list-item': { element: 'li', wrapper: e },
blockquote: { element: 'blockquote' },
atomic: { element: 'figure' },
'code-block': { element: 'pre', wrapper: g },
unstyled: { element: 'div', aliasedElements: ['p'] },
});
U.exports = m;
},
rEGp: function(U, s) {
function t(r) {
var u = -1,
o = Array(r.size);
return (
r.forEach(function(a) {
o[++u] = a;
}),
o
);
}
U.exports = t;
},
rJ8t: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.Block = void 0);
var r = t('q1tI'),
u = E(r),
o = t('17x9'),
a = E(o),
n = t('/FUP'),
e = E(n),
g = t('QkVN'),
m = E(g),
p = t('p8yl'),
C = E(p),
w = t('TM95'),
T = t('uDUr'),
F = E(T);
function E(O) {
return O && O.__esModule ? O : { default: O };
}
var D = (s.Block = function(I) {
var P = I.onChange,
M = I.onSwatchHover,
A = I.hex,
x = I.colors,
h = I.width,
d = I.triangle,
v = I.styles,
S = v === void 0 ? {} : v,
N = I.className,
R = N === void 0 ? '' : N,
_ = A === 'transparent',
W = function(ee, ne) {
C.default.isValidHex(ee) && P({ hex: ee, source: 'hex' }, ne);
},
K = (0, e.default)(
(0, m.default)(
{
default: {
card: {
width: h,
background: '#fff',
boxShadow: '0 1px rgba(0,0,0,.1)',
borderRadius: '6px',
position: 'relative',
},
head: {
height: '110px',
background: A,
borderRadius: '6px 6px 0 0',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
position: 'relative',
},
body: { padding: '10px' },
label: {
fontSize: '18px',
color: C.default.getContrastingColor(A),
position: 'relative',
},
triangle: {
width: '0px',
height: '0px',
borderStyle: 'solid',
borderWidth: '0 10px 10px 10px',
borderColor: 'transparent transparent ' + A + ' 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' } },
},
S,
),
{ 'hide-triangle': d === 'hide' },
);
return u.default.createElement(
'div',
{ style: K.card, className: 'block-picker ' + R },
u.default.createElement('div', { style: K.triangle }),
u.default.createElement(
'div',
{ style: K.head },
_ && u.default.createElement(w.Checkboard, { borderRadius: '6px 6px 0 0' }),
u.default.createElement('div', { style: K.label }, A),
),
u.default.createElement(
'div',
{ style: K.body },
u.default.createElement(F.default, { colors: x, onClick: W, onSwatchHover: M }),
u.default.createElement(w.EditableInput, {
style: { input: K.input },
value: A,
onChange: W,
}),
),
);
});
(D.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,
}),
(D.defaultProps = {
width: 170,
colors: [
'#D9E3F0',
'#F47373',
'#697689',
'#37D67A',
'#2CCCE4',
'#555555',
'#dce775',
'#ff8a65',
'#ba68c8',
],
triangle: 'top',
styles: {},
}),
(s.default = (0, w.ColorWrap)(D));
},
rJY1: function(U, s, t) {
'use strict';
var r = {},
u = Math.pow(2, 24);
function o() {
for (var a = void 0; a === void 0 || r.hasOwnProperty(a) || !isNaN(+a); )
a = Math.floor(Math.random() * u).toString(32);
return (r[a] = !0), a;
}
U.exports = o;
},
rRG4: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = o(t('dwXm')),
u = o(t('gxyE'));
function o(n) {
return n && n.__esModule ? n : { default: n };
}
var a = (0, u.default)('Picker')(r.default);
s.default = a;
},
rWXM: function(U, s, t) {
'use strict';
function r(u) {
var o = {};
return function(a) {
return o.hasOwnProperty(a) || (o[a] = u.call(this, a)), o[a];
};
}
U.exports = r;
},
rcnY: function(U, s, t) {
var r = t('aRTE');
function u(o, a) {
(this.totalCount = o), (this.dataCount = a);
}
(u.RS_BLOCK_TABLE = [
[1, 26, 19],
[1, 26, 16],
[1, 26, 13],
[1, 26, 9],
[1, 44, 34],
[1, 44, 28],
[1, 44, 22],
[1, 44, 16],
[1, 70, 55],
[1, 70, 44],
[2, 35, 17],
[2, 35, 13],
[1, 100, 80],
[2, 50, 32],
[2, 50, 24],
[4, 25, 9],
[1, 134, 108],
[2, 67, 43],
[2, 33, 15, 2, 34, 16],
[2, 33, 11, 2, 34, 12],
[2, 86, 68],
[4, 43, 27],
[4, 43, 19],
[4, 43, 15],
[2, 98, 78],
[4, 49, 31],
[2, 32, 14, 4, 33, 15],
[4, 39, 13, 1, 40, 14],
[2, 121, 97],
[2, 60, 38, 2, 61, 39],
[4, 40, 18, 2, 41, 19],
[4, 40, 14, 2, 41, 15],
[2, 146, 116],
[3, 58, 36, 2, 59, 37],
[4, 36, 16, 4, 37, 17],
[4, 36, 12, 4, 37, 13],
[2, 86, 68, 2, 87, 69],
[4, 69, 43, 1, 70, 44],
[6, 43, 19, 2, 44, 20],
[6, 43, 15, 2, 44, 16],
[4, 101, 81],
[1, 80, 50, 4, 81, 51],
[4, 50, 22, 4, 51, 23],
[3, 36, 12, 8, 37, 13],
[2, 116, 92, 2, 117, 93],
[6, 58, 36, 2, 59, 37],
[4, 46, 20, 6, 47, 21],
[7, 42, 14, 4, 43, 15],
[4, 133, 107],
[8, 59, 37, 1, 60, 38],
[8, 44, 20, 4, 45, 21],
[12, 33, 11, 4, 34, 12],
[3, 145, 115, 1, 146, 116],
[4, 64, 40, 5, 65, 41],
[11, 36, 16, 5, 37, 17],
[11, 36, 12, 5, 37, 13],
[5, 109, 87, 1, 110, 88],
[5, 65, 41, 5, 66, 42],
[5, 54, 24, 7, 55, 25],
[11, 36, 12],
[5, 122, 98, 1, 123, 99],
[7, 73, 45, 3, 74, 46],
[15, 43, 19, 2, 44, 20],
[3, 45, 15, 13, 46, 16],
[1, 135, 107, 5, 136, 108],
[10, 74, 46, 1, 75, 47],
[1, 50, 22, 15, 51, 23],
[2, 42, 14, 17, 43, 15],
[5, 150, 120, 1, 151, 121],
[9, 69, 43, 4, 70, 44],
[17, 50, 22, 1, 51, 23],
[2, 42, 14, 19, 43, 15],
[3, 141, 113, 4, 142, 114],
[3, 70, 44, 11, 71, 45],
[17, 47, 21, 4, 48, 22],
[9, 39, 13, 16, 40, 14],
[3, 135, 107, 5, 136, 108],
[3, 67, 41, 13, 68, 42],
[15, 54, 24, 5, 55, 25],
[15, 43, 15, 10, 44, 16],
[4, 144, 116, 4, 145, 117],
[17, 68, 42],
[17, 50, 22, 6, 51, 23],
[19, 46, 16, 6, 47, 17],
[2, 139, 111, 7, 140, 112],
[17, 74, 46],
[7, 54, 24, 16, 55, 25],
[34, 37, 13],
[4, 151, 121, 5, 152, 122],
[4, 75, 47, 14, 76, 48],
[11, 54, 24, 14, 55, 25],
[16, 45, 15, 14, 46, 16],
[6, 147, 117, 4, 148, 118],
[6, 73, 45, 14, 74, 46],
[11, 54, 24, 16, 55, 25],
[30, 46, 16, 2, 47, 17],
[8, 132, 106, 4, 133, 107],
[8, 75, 47, 13, 76, 48],
[7, 54, 24, 22, 55, 25],
[22, 45, 15, 13, 46, 16],
[10, 142, 114, 2, 143, 115],
[19, 74, 46, 4, 75, 47],
[28, 50, 22, 6, 51, 23],
[33, 46, 16, 4, 47, 17],
[8, 152, 122, 4, 153, 123],
[22, 73, 45, 3, 74, 46],
[8, 53, 23, 26, 54, 24],
[12, 45, 15, 28, 46, 16],
[3, 147, 117, 10, 148, 118],
[3, 73, 45, 23, 74, 46],
[4, 54, 24, 31, 55, 25],
[11, 45, 15, 31, 46, 16],
[7, 146, 116, 7, 147, 117],
[21, 73, 45, 7, 74, 46],
[1, 53, 23, 37, 54, 24],
[19, 45, 15, 26, 46, 16],
[5, 145, 115, 10, 146, 116],
[19, 75, 47, 10, 76, 48],
[15, 54, 24, 25, 55, 25],
[23, 45, 15, 25, 46, 16],
[13, 145, 115, 3, 146, 116],
[2, 74, 46, 29, 75, 47],
[42, 54, 24, 1, 55, 25],
[23, 45, 15, 28, 46, 16],
[17, 145, 115],
[10, 74, 46, 23, 75, 47],
[10, 54, 24, 35, 55, 25],
[19, 45, 15, 35, 46, 16],
[17, 145, 115, 1, 146, 116],
[14, 74, 46, 21, 75, 47],
[29, 54, 24, 19, 55, 25],
[11, 45, 15, 46, 46, 16],
[13, 145, 115, 6, 146, 116],
[14, 74, 46, 23, 75, 47],
[44, 54, 24, 7, 55, 25],
[59, 46, 16, 1, 47, 17],
[12, 151, 121, 7, 152, 122],
[12, 75, 47, 26, 76, 48],
[39, 54, 24, 14, 55, 25],
[22, 45, 15, 41, 46, 16],
[6, 151, 121, 14, 152, 122],
[6, 75, 47, 34, 76, 48],
[46, 54, 24, 10, 55, 25],
[2, 45, 15, 64, 46, 16],
[17, 152, 122, 4, 153, 123],
[29, 74, 46, 14, 75, 47],
[49, 54, 24, 10, 55, 25],
[24, 45, 15, 46, 46, 16],
[4, 152, 122, 18, 153, 123],
[13, 74, 46, 32, 75, 47],
[48, 54, 24, 14, 55, 25],
[42, 45, 15, 32, 46, 16],
[20, 147, 117, 4, 148, 118],
[40, 75, 47, 7, 76, 48],
[43, 54, 24, 22, 55, 25],
[10, 45, 15, 67, 46, 16],
[19, 148, 118, 6, 149, 119],
[18, 75, 47, 31, 76, 48],
[34, 54, 24, 34, 55, 25],
[20, 45, 15, 61, 46, 16],
]),
(u.getRSBlocks = function(o, a) {
var n = u.getRsBlockTable(o, a);
if (n == null)
throw new Error('bad rs block @ typeNumber:' + o + '/errorCorrectLevel:' + a);
for (var e = n.length / 3, g = new Array(), m = 0; m < e; m++)
for (var p = n[m * 3 + 0], C = n[m * 3 + 1], w = n[m * 3 + 2], T = 0; T < p; T++)
g.push(new u(C, w));
return g;
}),
(u.getRsBlockTable = function(o, a) {
switch (a) {
case r.L:
return u.RS_BLOCK_TABLE[(o - 1) * 4 + 0];
case r.M:
return u.RS_BLOCK_TABLE[(o - 1) * 4 + 1];
case r.Q:
return u.RS_BLOCK_TABLE[(o - 1) * 4 + 2];
case r.H:
return u.RS_BLOCK_TABLE[(o - 1) * 4 + 3];
default:
return;
}
}),
(U.exports = u);
},
re3H: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = p(t('q1tI')),
u = g(t('i8i4')),
o = g(t('TSYQ')),
a = g(t('l/UJ')),
n = t('7OGK'),
e = g(t('mIlM'));
function g(h) {
return h && h.__esModule ? h : { default: h };
}
function m() {
if (typeof WeakMap != 'function') return null;
var h = new WeakMap();
return (
(m = function() {
return h;
}),
h
);
}
function p(h) {
if (h && h.__esModule) return h;
if (h === null || (C(h) !== 'object' && typeof h != 'function')) return { default: h };
var d = m();
if (d && d.has(h)) return d.get(h);
var v = {},
S = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var N in h)
if (Object.prototype.hasOwnProperty.call(h, N)) {
var R = S ? Object.getOwnPropertyDescriptor(h, N) : null;
R && (R.get || R.set) ? Object.defineProperty(v, N, R) : (v[N] = h[N]);
}
return (v.default = h), d && d.set(h, v), v;
}
function C(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (C = function(v) {
return typeof v;
})
: (C = function(v) {
return v &&
typeof Symbol == 'function' &&
v.constructor === Symbol &&
v !== Symbol.prototype
? 'symbol'
: typeof v;
}),
C(h)
);
}
function w(h, d, v) {
return (
d in h
? Object.defineProperty(h, d, {
value: v,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[d] = v),
h
);
}
function T(h, d) {
if (!(h instanceof d)) throw new TypeError('Cannot call a class as a function');
}
function F(h, d) {
for (var v = 0; v < d.length; v++) {
var S = d[v];
(S.enumerable = S.enumerable || !1),
(S.configurable = !0),
'value' in S && (S.writable = !0),
Object.defineProperty(h, S.key, S);
}
}
function E(h, d, v) {
return d && F(h.prototype, d), v && F(h, v), h;
}
function D(h, d) {
return d && (C(d) === 'object' || typeof d == 'function') ? d : I(h);
}
function O(h) {
return (
(O = Object.setPrototypeOf
? Object.getPrototypeOf
: function(v) {
return v.__proto__ || Object.getPrototypeOf(v);
}),
O(h)
);
}
function I(h) {
if (h === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return h;
}
function P(h, d) {
if (typeof d != 'function' && d !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(d && d.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
d && M(h, d);
}
function M(h, d) {
return (
(M =
Object.setPrototypeOf ||
function(S, N) {
return (S.__proto__ = N), S;
}),
M(h, d)
);
}
var A = !!u.default.createPortal,
x = (function(h) {
P(d, h);
function d(v) {
var S;
return (
T(this, d),
(S = D(this, O(d).call(this, v))),
(S.enterTimer = void 0),
(S.mountNode = void 0),
(S._container = void 0),
(S.popup = void 0),
(S.animationEnd = function(N) {
if (N.target !== S.popup) return;
N.stopPropagation();
var R = S.props,
_ = R.afterClose,
W = R.afterOpen,
K = R.handlePortalUnmount,
Z = R.visible,
ee = R.prefixCls,
ne = Z ? 'enter' : 'leave';
ne === 'leave'
? (S._container.classList.add(''.concat(ee, '--hidden')),
typeof _ == 'function' && _(),
typeof K == 'function' && K())
: typeof W == 'function' && W();
}),
(S.renderMask = function() {
var N = S.props,
R = N.mask,
_ = N.maskType,
W = N.animationDuration,
K = N.visible,
Z = S.state.isPending,
ee = K ? 'enter' : 'leave',
ne = (0, o.default)(w({}, 'za-fade-'.concat(ee), Z)),
ue = {
WebkitAnimationDuration: ''.concat(W, 'ms'),
animationDuration: ''.concat(W, 'ms'),
};
return (
R &&
r.default.createElement(e.default, {
className: ne,
style: ue,
visible: !0,
type: _,
})
);
}),
(S.handleMaskClick = function(N) {
N.stopPropagation();
var R = S.props.onMaskClick;
typeof R == 'function' &&
S.popup !== N.target &&
S.popup &&
!S.popup.contains(N.target) &&
R();
}),
(S.getComponent = function() {
var N,
R = S.props,
_ = R.prefixCls,
W = R.animationType,
K = R.animationDuration,
Z = R.direction,
ee = R.mask,
ne = R.children,
ue = R.width,
Ee = R.visible,
ce = S.state.isPending,
Q = Ee ? 'enter' : 'leave',
le = {
wrapper: (0, o.default)(
''.concat(_, '__wrapper'),
w({}, 'za-fade-'.concat(Q), Z === 'center' && ce),
),
popup: (0, o.default)(
_,
((N = {}),
w(N, ''.concat(_, '--').concat(Z), !!Z),
w(N, ''.concat(_, '--nomask'), Z === 'center' && !ee),
w(N, 'za-'.concat(W, '-').concat(Q), Z === 'center' && ce),
N),
),
},
J =
Z === 'center'
? {
WebkitAnimationDuration: ''.concat(K, 'ms'),
animationDuration: ''.concat(K, 'ms'),
}
: {},
ae =
Z === 'center'
? {
width: ue,
WebkitAnimationDuration: ''.concat(K, 'ms'),
animationDuration: ''.concat(K, 'ms'),
}
: {
WebkitTransitionDuration: ''.concat(K, 'ms'),
transitionDuration: ''.concat(K, 'ms'),
WebkitTransitionProperty: 'transform',
transitionProperty: 'transform',
};
return ee
? r.default.createElement(
r.default.Fragment,
null,
S.renderMask(),
r.default.createElement(
'div',
{
role: 'dialog',
className: le.wrapper,
style: J,
onClick: function(Te) {
S.handleMaskClick(Te);
},
},
r.default.createElement(
'div',
{
ref: function(Te) {
S.popup = Te;
},
className: le.popup,
style: ae,
role: 'document',
},
ne,
),
),
)
: r.default.createElement(
'div',
{
className: le.popup,
style: ae,
role: 'dialog',
ref: function(Te) {
S.popup = Te;
},
},
ne,
);
}),
(S.handleAnimation = function() {
var N = S.props,
R = N.visible,
_ = N.prefixCls;
R
? S.popup &&
(S._container.classList.remove(''.concat(_, '--hidden')),
S.setState({ isPending: !0 }),
S.popup.focus(),
S.popup.classList.add(''.concat(_, '--show')))
: (S.setState({ isPending: !0 }),
S.popup.classList.remove(''.concat(_, '--show')));
}),
(S.renderPortal = function() {
return n.canUseDOM
? A
? u.default.createPortal(S.getComponent(), S._container)
: (u.default.unstable_renderSubtreeIntoContainer(
I(S),
S.getComponent(),
S._container,
),
null)
: null;
}),
(S.createContainer = function() {
var N = S.props,
R = N.className,
_ = R === void 0 ? '' : R,
W = N.prefixCls,
K = N.mountContainer;
return (
S._container ||
((S._container = document.createElement('div')),
(S._container.className += ''.concat(W, '-container ').concat(_)),
(S.mountNode = (0, n.getMountContainer)(K)),
S.mountNode.appendChild(S._container)),
S._container
);
}),
(S.state = { isPending: !1 }),
S.createContainer(),
S
);
}
return (
E(d, [
{
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(S) {
var N = this.props.visible;
S.visible !== N && 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();
},
},
]),
d
);
})(r.PureComponent);
(s.default = x),
(x.defaultProps = {
prefixCls: 'za-popup',
visible: !1,
mask: !0,
direction: 'bottom',
animationType: 'fade',
animationDuration: 200,
maskType: e.default.defaultProps.type,
});
},
rrEP: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('xDpF')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'WarningFilled';
var g = o.forwardRef(e);
s.default = g;
},
s8ra: function(U, s, t) {
'use strict';
var r = t('CYTE'),
u = r.isPlatform('Mac OS X'),
o = {
isCtrlKeyCommand: function(n) {
return !!n.ctrlKey && !n.altKey;
},
isOptionKeyCommand: function(n) {
return u && n.altKey;
},
hasCommandModifier: function(n) {
return u ? !!n.metaKey && !n.altKey : o.isCtrlKeyCommand(n);
},
};
U.exports = o;
},
sE09: function(U, s, t) {},
sEf8: function(U, s) {
function t(r) {
return function(u) {
return r(u);
};
}
U.exports = t;
},
sEfC: function(U, s, t) {
var r = t('GoyQ'),
u = t('QIyF'),
o = t('tLB3'),
a = 'Expected a function',
n = Math.max,
e = Math.min;
function g(m, p, C) {
var w,
T,
F,
E,
D,
O,
I = 0,
P = !1,
M = !1,
A = !0;
if (typeof m != 'function') throw new TypeError(a);
(p = o(p) || 0),
r(C) &&
((P = !!C.leading),
(M = 'maxWait' in C),
(F = M ? n(o(C.maxWait) || 0, p) : F),
(A = 'trailing' in C ? !!C.trailing : A));
function x(K) {
var Z = w,
ee = T;
return (w = T = void 0), (I = K), (E = m.apply(ee, Z)), E;
}
function h(K) {
return (I = K), (D = setTimeout(S, p)), P ? x(K) : E;
}
function d(K) {
var Z = K - O,
ee = K - I,
ne = p - Z;
return M ? e(ne, F - ee) : ne;
}
function v(K) {
var Z = K - O,
ee = K - I;
return O === void 0 || Z >= p || Z < 0 || (M && ee >= F);
}
function S() {
var K = u();
if (v(K)) return N(K);
D = setTimeout(S, d(K));
}
function N(K) {
return (D = void 0), A && w ? x(K) : ((w = T = void 0), E);
}
function R() {
D !== void 0 && clearTimeout(D), (I = 0), (w = O = T = D = void 0);
}
function _() {
return D === void 0 ? E : N(u());
}
function W() {
var K = u(),
Z = v(K);
if (((w = arguments), (T = this), (O = K), Z)) {
if (D === void 0) return h(O);
if (M) return clearTimeout(D), (D = setTimeout(S, p)), x(O);
}
return D === void 0 && (D = setTimeout(S, p)), E;
}
return (W.cancel = R), (W.flush = _), W;
}
U.exports = g;
},
sS6v: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = r);
function r() {
var u;
}
},
sVjb: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.PhotoshopPointerCircle = void 0);
var r = t('q1tI'),
u = n(r),
o = t('/FUP'),
a = n(o);
function n(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (s.PhotoshopPointerCircle = function() {
var m = (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 u.default.createElement(
'div',
{ style: m.pointer },
u.default.createElement(
'div',
{ style: m.left },
u.default.createElement('div', { style: m.leftInside }),
),
u.default.createElement(
'div',
{ style: m.right },
u.default.createElement('div', { style: m.rightInside }),
),
);
});
s.default = e;
},
sboe: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return o;
});
var r = t('q1tI'),
u = t.n(r),
o = r.createContext(null);
},
seXi: function(U, s, t) {
var r = t('qZTm'),
u = 1,
o = Object.prototype,
a = o.hasOwnProperty;
function n(e, g, m, p, C, w) {
var T = m & u,
F = r(e),
E = F.length,
D = r(g),
O = D.length;
if (E != O && !T) return !1;
for (var I = E; I--; ) {
var P = F[I];
if (!(T ? P in g : a.call(g, P))) return !1;
}
var M = w.get(e),
A = w.get(g);
if (M && A) return M == g && A == e;
var x = !0;
w.set(e, g), w.set(g, e);
for (var h = T; ++I < E; ) {
P = F[I];
var d = e[P],
v = g[P];
if (p) var S = T ? p(v, d, P, g, e, w) : p(d, v, P, e, g, w);
if (!(S === void 0 ? d === v || C(d, v, m, p, w) : S)) {
x = !1;
break;
}
h || (h = P == 'constructor');
}
if (x && !h) {
var N = e.constructor,
R = g.constructor;
N != R &&
'constructor' in e &&
'constructor' in g &&
!(
typeof N == 'function' &&
N instanceof N &&
typeof R == 'function' &&
R instanceof R
) &&
(x = !1);
}
return w.delete(e), w.delete(g), x;
}
U.exports = n;
},
shjB: function(U, s) {
var t = 9007199254740991;
function r(u) {
return typeof u == 'number' && u > -1 && u % 1 == 0 && u <= t;
}
U.exports = r;
},
srqt: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = n(t('q1tI')),
u = o(t('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 n(h) {
if (h && h.__esModule) return h;
if (h === null || (e(h) !== 'object' && typeof h != 'function')) return { default: h };
var d = a();
if (d && d.has(h)) return d.get(h);
var v = {},
S = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var N in h)
if (Object.prototype.hasOwnProperty.call(h, N)) {
var R = S ? Object.getOwnPropertyDescriptor(h, N) : null;
R && (R.get || R.set) ? Object.defineProperty(v, N, R) : (v[N] = h[N]);
}
return (v.default = h), d && d.set(h, v), v;
}
function e(h) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (e = function(v) {
return typeof v;
})
: (e = function(v) {
return v &&
typeof Symbol == 'function' &&
v.constructor === Symbol &&
v !== Symbol.prototype
? 'symbol'
: typeof v;
}),
e(h)
);
}
function g() {
return (
(g =
Object.assign ||
function(h) {
for (var d = 1; d < arguments.length; d++) {
var v = arguments[d];
for (var S in v) Object.prototype.hasOwnProperty.call(v, S) && (h[S] = v[S]);
}
return h;
}),
g.apply(this, arguments)
);
}
function m(h, d, v) {
return (
d in h
? Object.defineProperty(h, d, {
value: v,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (h[d] = v),
h
);
}
function p(h, d) {
if (h == null) return {};
var v = C(h, d),
S,
N;
if (Object.getOwnPropertySymbols) {
var R = Object.getOwnPropertySymbols(h);
for (N = 0; N < R.length; N++) {
if (((S = R[N]), d.indexOf(S) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(h, S)) continue;
v[S] = h[S];
}
}
return v;
}
function C(h, d) {
if (h == null) return {};
var v = {},
S = Object.keys(h),
N,
R;
for (R = 0; R < S.length; R++) {
if (((N = S[R]), d.indexOf(N) >= 0)) continue;
v[N] = h[N];
}
return v;
}
function w(h, d) {
if (!(h instanceof d)) throw new TypeError('Cannot call a class as a function');
}
function T(h, d) {
for (var v = 0; v < d.length; v++) {
var S = d[v];
(S.enumerable = S.enumerable || !1),
(S.configurable = !0),
'value' in S && (S.writable = !0),
Object.defineProperty(h, S.key, S);
}
}
function F(h, d, v) {
return d && T(h.prototype, d), v && T(h, v), h;
}
function E(h, d) {
return d && (e(d) === 'object' || typeof d == 'function') ? d : D(h);
}
function D(h) {
if (h === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return h;
}
function O(h) {
return (
(O = Object.setPrototypeOf
? Object.getPrototypeOf
: function(v) {
return v.__proto__ || Object.getPrototypeOf(v);
}),
O(h)
);
}
function I(h, d) {
if (typeof d != 'function' && d !== null)
throw new TypeError('Super expression must either be null or a function');
(h.prototype = Object.create(d && d.prototype, {
constructor: { value: h, writable: !0, configurable: !0 },
})),
d && P(h, d);
}
function P(h, d) {
return (
(P =
Object.setPrototypeOf ||
function(S, N) {
return (S.__proto__ = N), S;
}),
P(h, d)
);
}
var M = function(d) {
var v = [];
return (
r.default.Children.map(d, function(S) {
r.default.isValidElement(S) && S.props && S.props.checked && v.push(S.props.value);
}),
v
);
},
A = function(d, v) {
return typeof d.value != 'undefined'
? d.value
: typeof d.defaultValue != 'undefined'
? d.defaultValue
: M(d.children).length > 0
? M(d.children)
: v;
},
x = (function(h) {
I(d, h);
function d(v) {
var S;
return (
w(this, d),
(S = E(this, O(d).call(this, v))),
(S.onChildChange = function(N) {
var R = S.state.value,
_ = S.props.onChange,
W = R.slice(),
K = W.indexOf(N);
K < 0 ? W.push(N) : W.splice(K, 1),
S.setState({ value: W }),
typeof _ == 'function' && _(W);
}),
(S.state = { value: A(v, []) }),
S
);
}
return (
F(
d,
[
{
key: 'render',
value: function() {
var S = this,
N,
R = this.props,
_ = R.prefixCls,
W = R.className,
K = R.size,
Z = R.shape,
ee = R.type,
ne = R.block,
ue = R.disabled,
Ee = R.compact,
ce = R.ghost,
Q = R.children,
le = R.onChange,
J = R.defaultValue,
ae = R.value,
fe = p(R, [
'prefixCls',
'className',
'size',
'shape',
'type',
'block',
'disabled',
'compact',
'ghost',
'children',
'onChange',
'defaultValue',
'value',
]),
Te = this.state.value,
we = r.default.Children.map(Q, function(qe, Me) {
return (0, r.isValidElement)(qe)
? (0, r.cloneElement)(qe, {
key: Me,
type: ee,
shape: Z,
disabled: ue || qe.props.disabled,
checked: Te.indexOf(qe.props.value) > -1,
onChange: function(Xe) {
typeof qe.props.onChange == 'function' && qe.props.onChange(Xe),
S.onChildChange(qe.props.value);
},
})
: null;
}),
Le = (0, u.default)(
_,
W,
((N = {}),
m(N, ''.concat(_, '--').concat(ee), !!ee),
m(N, ''.concat(_, '--').concat(K), !!K),
m(N, ''.concat(_, '--').concat(Z), !!Z),
m(N, ''.concat(_, '--block'), ne),
m(N, ''.concat(_, '--disabled'), ue),
m(N, ''.concat(_, '--compact'), Ee),
m(N, ''.concat(_, '--ghost'), ce),
N),
);
return r.default.createElement(
'div',
g({ className: Le }, fe),
r.default.createElement('div', { className: ''.concat(_, '__inner') }, we),
);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(S) {
return 'value' in S ? { value: A(S, []) } : null;
},
},
],
),
d
);
})(r.PureComponent);
(s.default = x),
(x.displayName = 'CheckboxGroup'),
(x.defaultProps = {
prefixCls: 'za-checkbox-group',
shape: 'radius',
block: !1,
disabled: !1,
compact: !1,
ghost: !1,
size: 'xs',
});
},
srvI: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 });
var r = (s.calculateChange = function(o, a, n, e) {
var g = e.clientWidth,
m = e.clientHeight,
p = typeof o.pageX == 'number' ? o.pageX : o.touches[0].pageX,
C = typeof o.pageY == 'number' ? o.pageY : o.touches[0].pageY,
w = p - (e.getBoundingClientRect().left + window.pageXOffset),
T = C - (e.getBoundingClientRect().top + window.pageYOffset);
if (a === 'vertical') {
var F = void 0;
if (T < 0) F = 359;
else if (T > m) F = 0;
else {
var E = -((T * 100) / m) + 100;
F = (360 * E) / 100;
}
if (n.h !== F) return { h: F, s: n.s, l: n.l, a: n.a, source: 'hsl' };
} else {
var D = void 0;
if (w < 0) D = 0;
else if (w > g) D = 359;
else {
var O = (w * 100) / g;
D = (360 * O) / 100;
}
if (n.h !== D) return { h: D, s: n.s, l: n.l, a: n.a, source: 'hsl' };
}
return null;
});
},
su5N: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'CodeOutlined';
var e = (s.a = r.forwardRef(n));
},
t2Dn: function(U, s, t) {
var r = t('hypo'),
u = t('ljhN');
function o(a, n, e) {
((e !== void 0 && !u(a[n], e)) || (e === void 0 && !(n in a))) && r(a, n, e);
}
U.exports = o;
},
t2kq: function(U, s, t) {
'use strict';
var r = t('miYZ'),
u = t('tsqr'),
o = t('vDqi'),
a = t.n(o),
n = !1,
e = a.a.create({
baseURL: n ? '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 m = g.response;
return (
m &&
(m.status === 404
? u.b.error('请求资源未发现')
: m.status === 403
? u.b.error(m.data.msg, () => {
window.location.href = '/admin/login';
})
: u.b.error(m.data.msg)),
Promise.reject(g)
);
},
),
(s.a = e);
},
t8r4: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.Swatches = void 0);
var r = t('q1tI'),
u = I(r),
o = t('17x9'),
a = I(o),
n = t('/FUP'),
e = I(n),
g = t('3WF5'),
m = I(g),
p = t('QkVN'),
C = I(p),
w = t('wME1'),
T = O(w),
F = t('TM95'),
E = t('Efrf'),
D = I(E);
function O(M) {
if (M && M.__esModule) return M;
var A = {};
if (M != null) for (var x in M) Object.prototype.hasOwnProperty.call(M, x) && (A[x] = M[x]);
return (A.default = M), A;
}
function I(M) {
return M && M.__esModule ? M : { default: M };
}
var P = (s.Swatches = function(A) {
var x = A.width,
h = A.height,
d = A.onChange,
v = A.onSwatchHover,
S = A.colors,
N = A.hex,
R = A.styles,
_ = R === void 0 ? {} : R,
W = A.className,
K = W === void 0 ? '' : W,
Z = (0, e.default)(
(0, C.default)(
{
default: {
picker: { width: x, height: h },
overflow: { height: h, overflowY: 'scroll' },
body: { padding: '16px 0 6px 16px' },
clear: { clear: 'both' },
},
},
_,
),
),
ee = function(ue, Ee) {
return d({ hex: ue, source: 'hex' }, Ee);
};
return u.default.createElement(
'div',
{ style: Z.picker, className: 'swatches-picker ' + K },
u.default.createElement(
F.Raised,
null,
u.default.createElement(
'div',
{ style: Z.overflow },
u.default.createElement(
'div',
{ style: Z.body },
(0, m.default)(S, function(ne) {
return u.default.createElement(D.default, {
key: ne.toString(),
group: ne,
active: N,
onClick: ee,
onSwatchHover: v,
});
}),
u.default.createElement('div', { style: Z.clear }),
),
),
),
);
});
(P.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,
}),
(P.defaultProps = {
width: 320,
height: 240,
colors: [
[T.red['900'], T.red['700'], T.red['500'], T.red['300'], T.red['100']],
[T.pink['900'], T.pink['700'], T.pink['500'], T.pink['300'], T.pink['100']],
[T.purple['900'], T.purple['700'], T.purple['500'], T.purple['300'], T.purple['100']],
[
T.deepPurple['900'],
T.deepPurple['700'],
T.deepPurple['500'],
T.deepPurple['300'],
T.deepPurple['100'],
],
[T.indigo['900'], T.indigo['700'], T.indigo['500'], T.indigo['300'], T.indigo['100']],
[T.blue['900'], T.blue['700'], T.blue['500'], T.blue['300'], T.blue['100']],
[
T.lightBlue['900'],
T.lightBlue['700'],
T.lightBlue['500'],
T.lightBlue['300'],
T.lightBlue['100'],
],
[T.cyan['900'], T.cyan['700'], T.cyan['500'], T.cyan['300'], T.cyan['100']],
[T.teal['900'], T.teal['700'], T.teal['500'], T.teal['300'], T.teal['100']],
['#194D33', T.green['700'], T.green['500'], T.green['300'], T.green['100']],
[
T.lightGreen['900'],
T.lightGreen['700'],
T.lightGreen['500'],
T.lightGreen['300'],
T.lightGreen['100'],
],
[T.lime['900'], T.lime['700'], T.lime['500'], T.lime['300'], T.lime['100']],
[T.yellow['900'], T.yellow['700'], T.yellow['500'], T.yellow['300'], T.yellow['100']],
[T.amber['900'], T.amber['700'], T.amber['500'], T.amber['300'], T.amber['100']],
[T.orange['900'], T.orange['700'], T.orange['500'], T.orange['300'], T.orange['100']],
[
T.deepOrange['900'],
T.deepOrange['700'],
T.deepOrange['500'],
T.deepOrange['300'],
T.deepOrange['100'],
],
[T.brown['900'], T.brown['700'], T.brown['500'], T.brown['300'], T.brown['100']],
[
T.blueGrey['900'],
T.blueGrey['700'],
T.blueGrey['500'],
T.blueGrey['300'],
T.blueGrey['100'],
],
['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF'],
],
styles: {},
}),
(s.default = (0, F.ColorWrap)(P));
},
tKWh: function(U, s, t) {
'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 u() {
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 || u() };
}
(o.withoutScrollbars = function() {
return { width: r(), height: u() };
}),
(U.exports = o);
},
tLB3: function(U, s, t) {
var r = t('GoyQ'),
u = t('/9aa'),
o = 0 / 0,
a = /^\s+|\s+$/g,
n = /^[-+]0x[0-9a-f]+$/i,
e = /^0b[01]+$/i,
g = /^0o[0-7]+$/i,
m = parseInt;
function p(C) {
if (typeof C == 'number') return C;
if (u(C)) return o;
if (r(C)) {
var w = typeof C.valueOf == 'function' ? C.valueOf() : C;
C = r(w) ? w + '' : w;
}
if (typeof C != 'string') return C === 0 ? C : +C;
C = C.replace(a, '');
var T = e.test(C);
return T || g.test(C) ? m(C.slice(2), T ? 2 : 8) : n.test(C) ? o : +C;
}
U.exports = p;
},
tMB7: function(U, s, t) {
var r = t('y1pI');
function u(o) {
var a = this.__data__,
n = r(a, o);
return n < 0 ? void 0 : a[n][1];
}
U.exports = u;
},
tQ2B: function(U, s, t) {
'use strict';
var r = t('xTJ+'),
u = t('Rn+g'),
o = t('MLWZ'),
a = t('g7np'),
n = t('w0Vi'),
e = t('OTTw'),
g = t('LYNF');
U.exports = function(p) {
return new Promise(function(w, T) {
var F = p.data,
E = p.headers;
r.isFormData(F) && delete E['Content-Type'];
var D = new XMLHttpRequest();
if (p.auth) {
var O = p.auth.username || '',
I = p.auth.password || '';
E.Authorization = 'Basic ' + btoa(O + ':' + I);
}
var P = a(p.baseURL, p.url);
if (
(D.open(p.method.toUpperCase(), o(P, p.params, p.paramsSerializer), !0),
(D.timeout = p.timeout),
(D.onreadystatechange = function() {
if (!D || D.readyState !== 4) return;
if (D.status === 0 && !(D.responseURL && D.responseURL.indexOf('file:') === 0))
return;
var h = 'getAllResponseHeaders' in D ? n(D.getAllResponseHeaders()) : null,
d = !p.responseType || p.responseType === 'text' ? D.responseText : D.response,
v = {
data: d,
status: D.status,
statusText: D.statusText,
headers: h,
config: p,
request: D,
};
u(w, T, v), (D = null);
}),
(D.onabort = function() {
if (!D) return;
T(g('Request aborted', p, 'ECONNABORTED', D)), (D = null);
}),
(D.onerror = function() {
T(g('Network Error', p, null, D)), (D = null);
}),
(D.ontimeout = function() {
var h = 'timeout of ' + p.timeout + 'ms exceeded';
p.timeoutErrorMessage && (h = p.timeoutErrorMessage),
T(g(h, p, 'ECONNABORTED', D)),
(D = null);
}),
r.isStandardBrowserEnv())
) {
var M = t('eqyj'),
A =
(p.withCredentials || e(P)) && p.xsrfCookieName ? M.read(p.xsrfCookieName) : void 0;
A && (E[p.xsrfHeaderName] = A);
}
if (
('setRequestHeader' in D &&
r.forEach(E, function(h, d) {
typeof F == 'undefined' && d.toLowerCase() === 'content-type'
? delete E[d]
: D.setRequestHeader(d, h);
}),
r.isUndefined(p.withCredentials) || (D.withCredentials = !!p.withCredentials),
p.responseType)
)
try {
D.responseType = p.responseType;
} catch (x) {
if (p.responseType !== 'json') throw x;
}
typeof p.onDownloadProgress == 'function' &&
D.addEventListener('progress', p.onDownloadProgress),
typeof p.onUploadProgress == 'function' &&
D.upload &&
D.upload.addEventListener('progress', p.onUploadProgress),
p.cancelToken &&
p.cancelToken.promise.then(function(h) {
if (!D) return;
D.abort(), T(h), (D = null);
}),
F === void 0 && (F = null),
D.send(F);
});
};
},
tSko: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('SRve')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'PlusOutlined';
var g = o.forwardRef(e);
s.default = g;
},
tadb: function(U, s, t) {
var r = t('Cwc5'),
u = t('Kz5y'),
o = r(u, 'DataView');
U.exports = o;
},
tbAr: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = p(t('q1tI')),
u = g(t('TSYQ')),
o = g(t('Y+p1')),
a = g(t('rRG4')),
n = g(t('hAjL')),
e = g(t('3iFt'));
function g(v) {
return v && v.__esModule ? v : { default: v };
}
function m() {
if (typeof WeakMap != 'function') return null;
var v = new WeakMap();
return (
(m = function() {
return v;
}),
v
);
}
function p(v) {
if (v && v.__esModule) return v;
if (v === null || (C(v) !== 'object' && typeof v != 'function')) return { default: v };
var S = m();
if (S && S.has(v)) return S.get(v);
var N = {},
R = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var _ in v)
if (Object.prototype.hasOwnProperty.call(v, _)) {
var W = R ? Object.getOwnPropertyDescriptor(v, _) : null;
W && (W.get || W.set) ? Object.defineProperty(N, _, W) : (N[_] = v[_]);
}
return (N.default = v), S && S.set(v, N), N;
}
function C(v) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (C = function(N) {
return typeof N;
})
: (C = function(N) {
return N &&
typeof Symbol == 'function' &&
N.constructor === Symbol &&
N !== Symbol.prototype
? 'symbol'
: typeof N;
}),
C(v)
);
}
function w() {
return (
(w =
Object.assign ||
function(v) {
for (var S = 1; S < arguments.length; S++) {
var N = arguments[S];
for (var R in N) Object.prototype.hasOwnProperty.call(N, R) && (v[R] = N[R]);
}
return v;
}),
w.apply(this, arguments)
);
}
function T(v, S, N) {
return (
S in v
? Object.defineProperty(v, S, {
value: N,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (v[S] = N),
v
);
}
function F(v, S) {
if (v == null) return {};
var N = E(v, S),
R,
_;
if (Object.getOwnPropertySymbols) {
var W = Object.getOwnPropertySymbols(v);
for (_ = 0; _ < W.length; _++) {
if (((R = W[_]), S.indexOf(R) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(v, R)) continue;
N[R] = v[R];
}
}
return N;
}
function E(v, S) {
if (v == null) return {};
var N = {},
R = Object.keys(v),
_,
W;
for (W = 0; W < R.length; W++) {
if (((_ = R[W]), S.indexOf(_) >= 0)) continue;
N[_] = v[_];
}
return N;
}
function D(v, S) {
if (!(v instanceof S)) throw new TypeError('Cannot call a class as a function');
}
function O(v, S) {
for (var N = 0; N < S.length; N++) {
var R = S[N];
(R.enumerable = R.enumerable || !1),
(R.configurable = !0),
'value' in R && (R.writable = !0),
Object.defineProperty(v, R.key, R);
}
}
function I(v, S, N) {
return S && O(v.prototype, S), N && O(v, N), v;
}
function P(v, S) {
return S && (C(S) === 'object' || typeof S == 'function') ? S : M(v);
}
function M(v) {
if (v === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return v;
}
function A(v) {
return (
(A = Object.setPrototypeOf
? Object.getPrototypeOf
: function(N) {
return N.__proto__ || Object.getPrototypeOf(N);
}),
A(v)
);
}
function x(v, S) {
if (typeof S != 'function' && S !== null)
throw new TypeError('Super expression must either be null or a function');
(v.prototype = Object.create(S && S.prototype, {
constructor: { value: v, writable: !0, configurable: !0 },
})),
S && h(v, S);
}
function h(v, S) {
return (
(h =
Object.setPrototypeOf ||
function(R, _) {
return (R.__proto__ = _), R;
}),
h(v, S)
);
}
var d = (function(v) {
x(S, v);
function S(N) {
var R;
return (
D(this, S),
(R = P(this, A(S).call(this, N))),
(R.handleClick = function() {
var _ = R.props.disabled;
if (_) return !1;
R.setState({ visible: !0 });
}),
(R.onChange = function(_) {
var W = R.props.onChange;
typeof W == 'function' && W(_);
}),
(R.onOk = function(_) {
var W = R.props.onOk;
R.setState({ selectValue: _, visible: !1 }, function() {
typeof W == 'function' && W(_);
});
}),
(R.onCancel = function() {
var _ = R.props.onCancel;
R.setState({ visible: !1 }), typeof _ == 'function' && _();
}),
(R.state = {
visible: !1,
selectValue:
n.default.isValueValid(N.defaultValue || N.value) &&
n.default.getSource(N).objValue,
}),
R
);
}
return (
I(
S,
[
{
key: 'render',
value: function() {
var R,
_ = this.props,
W = _.prefixCls,
K = _.placeholder,
Z = _.className,
ee = _.disabled,
ne = _.displayRender,
ue = _.locale,
Ee = _.value,
ce = _.hasArrow,
Q = F(_, [
'prefixCls',
'placeholder',
'className',
'disabled',
'displayRender',
'locale',
'value',
'hasArrow',
]),
le = this.state,
J = le.visible,
ae = le.selectValue,
fe = ae === void 0 ? [] : ae,
Te = (0, u.default)(
W,
((R = {}),
T(R, ''.concat(W, '--placeholder'), !fe.length),
T(R, ''.concat(W, '--disabled'), ee),
T(R, ''.concat(W, '--arrow'), ce),
R),
);
return r.default.createElement(
'div',
{ className: Te, onClick: this.handleClick },
r.default.createElement(
'div',
{ className: ''.concat(W, '__input') },
r.default.createElement(
'div',
{ className: ''.concat(W, '__value') },
(fe.length && ne(fe || [])) || K || ue.placeholder,
),
),
r.default.createElement(
a.default,
w({}, Q, {
className: Z,
visible: J,
value: Ee,
onOk: this.onOk,
onChange: this.onChange,
onCancel: this.onCancel,
}),
),
);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(R, _) {
return (0, o.default)(
(0, e.default)(R, ['onOk', 'onCancel', 'onChange']),
(0, e.default)(_.prevProps, ['onOk', 'onCancel', 'onChange']),
)
? null
: {
prevProps: R,
selectValue:
n.default.isValueValid(R.defaultValue || R.value) &&
n.default.getSource(R).objValue,
};
},
},
],
),
S
);
})(r.PureComponent);
(s.default = d),
(d.defaultProps = {
prefixCls: 'za-select',
dataSource: [],
valueMember: 'value',
itemRender: function(S) {
return S && S.label;
},
cols: Infinity,
hasArrow: !0,
maskClosable: !0,
displayRender: function(S) {
return S.map(function(N) {
return N && N.label;
});
},
onClick: function() {},
});
},
tjlA: function(U, s, t) {
'use strict';
(function(r) {
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh
* @license MIT
*/ var u = t('H7XF'),
o = t('kVK+'),
a = t('49sm');
(s.Buffer = m),
(s.SlowBuffer = P),
(s.INSPECT_MAX_BYTES = 50),
(m.TYPED_ARRAY_SUPPORT = r.TYPED_ARRAY_SUPPORT !== void 0 ? r.TYPED_ARRAY_SUPPORT : n()),
(s.kMaxLength = e());
function n() {
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 m.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
}
function g(Ge, de) {
if (e() < de) throw new RangeError('Invalid typed array length');
return (
m.TYPED_ARRAY_SUPPORT
? ((Ge = new Uint8Array(de)), (Ge.__proto__ = m.prototype))
: (Ge === null && (Ge = new m(de)), (Ge.length = de)),
Ge
);
}
function m(Ge, de, oe) {
if (!m.TYPED_ARRAY_SUPPORT && !(this instanceof m)) return new m(Ge, de, oe);
if (typeof Ge == 'number') {
if (typeof de == 'string')
throw new Error('If encoding is specified then the first argument must be a string');
return T(this, Ge);
}
return p(this, Ge, de, oe);
}
(m.poolSize = 8192),
(m._augment = function(Ge) {
return (Ge.__proto__ = m.prototype), Ge;
});
function p(Ge, de, oe, Fe) {
if (typeof de == 'number') throw new TypeError('"value" argument must not be a number');
return typeof ArrayBuffer != 'undefined' && de instanceof ArrayBuffer
? D(Ge, de, oe, Fe)
: typeof de == 'string'
? F(Ge, de, oe)
: O(Ge, de);
}
(m.from = function(Ge, de, oe) {
return p(null, Ge, de, oe);
}),
m.TYPED_ARRAY_SUPPORT &&
((m.prototype.__proto__ = Uint8Array.prototype),
(m.__proto__ = Uint8Array),
typeof Symbol != 'undefined' &&
Symbol.species &&
m[Symbol.species] === m &&
Object.defineProperty(m, Symbol.species, { value: null, configurable: !0 }));
function C(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 w(Ge, de, oe, Fe) {
return (
C(de),
de <= 0
? g(Ge, de)
: oe !== void 0
? typeof Fe == 'string'
? g(Ge, de).fill(oe, Fe)
: g(Ge, de).fill(oe)
: g(Ge, de)
);
}
m.alloc = function(Ge, de, oe) {
return w(null, Ge, de, oe);
};
function T(Ge, de) {
if ((C(de), (Ge = g(Ge, de < 0 ? 0 : I(de) | 0)), !m.TYPED_ARRAY_SUPPORT))
for (var oe = 0; oe < de; ++oe) Ge[oe] = 0;
return Ge;
}
(m.allocUnsafe = function(Ge) {
return T(null, Ge);
}),
(m.allocUnsafeSlow = function(Ge) {
return T(null, Ge);
});
function F(Ge, de, oe) {
if (((typeof oe != 'string' || oe === '') && (oe = 'utf8'), !m.isEncoding(oe)))
throw new TypeError('"encoding" must be a valid string encoding');
var Fe = M(de, oe) | 0;
Ge = g(Ge, Fe);
var Je = Ge.write(de, oe);
return Je !== Fe && (Ge = Ge.slice(0, Je)), Ge;
}
function E(Ge, de) {
var oe = de.length < 0 ? 0 : I(de.length) | 0;
Ge = g(Ge, oe);
for (var Fe = 0; Fe < oe; Fe += 1) Ge[Fe] = de[Fe] & 255;
return Ge;
}
function D(Ge, de, oe, Fe) {
if ((de.byteLength, oe < 0 || de.byteLength < oe))
throw new RangeError("'offset' is out of bounds");
if (de.byteLength < oe + (Fe || 0)) throw new RangeError("'length' is out of bounds");
return (
oe === void 0 && Fe === void 0
? (de = new Uint8Array(de))
: Fe === void 0
? (de = new Uint8Array(de, oe))
: (de = new Uint8Array(de, oe, Fe)),
m.TYPED_ARRAY_SUPPORT ? ((Ge = de), (Ge.__proto__ = m.prototype)) : (Ge = E(Ge, de)),
Ge
);
}
function O(Ge, de) {
if (m.isBuffer(de)) {
var oe = I(de.length) | 0;
return (Ge = g(Ge, oe)), Ge.length === 0 || de.copy(Ge, 0, 0, oe), Ge;
}
if (de) {
if (
(typeof ArrayBuffer != 'undefined' && de.buffer instanceof ArrayBuffer) ||
'length' in de
)
return typeof de.length != 'number' || Kt(de.length) ? g(Ge, 0) : E(Ge, de);
if (de.type === 'Buffer' && a(de.data)) return E(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 P(Ge) {
return +Ge != Ge && (Ge = 0), m.alloc(+Ge);
}
(m.isBuffer = function(de) {
return !!(de != null && de._isBuffer);
}),
(m.compare = function(de, oe) {
if (!m.isBuffer(de) || !m.isBuffer(oe))
throw new TypeError('Arguments must be Buffers');
if (de === oe) return 0;
for (var Fe = de.length, Je = oe.length, rt = 0, yt = Math.min(Fe, Je); rt < yt; ++rt)
if (de[rt] !== oe[rt]) {
(Fe = de[rt]), (Je = oe[rt]);
break;
}
return Fe < Je ? -1 : Je < Fe ? 1 : 0;
}),
(m.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;
}
}),
(m.concat = function(de, oe) {
if (!a(de)) throw new TypeError('"list" argument must be an Array of Buffers');
if (de.length === 0) return m.alloc(0);
var Fe;
if (oe === void 0) for (oe = 0, Fe = 0; Fe < de.length; ++Fe) oe += de[Fe].length;
var Je = m.allocUnsafe(oe),
rt = 0;
for (Fe = 0; Fe < de.length; ++Fe) {
var yt = de[Fe];
if (!m.isBuffer(yt))
throw new TypeError('"list" argument must be an Array of Buffers');
yt.copy(Je, rt), (rt += yt.length);
}
return Je;
});
function M(Ge, de) {
if (m.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 oe = Ge.length;
if (oe === 0) return 0;
for (var Fe = !1; ; )
switch (de) {
case 'ascii':
case 'latin1':
case 'binary':
return oe;
case 'utf8':
case 'utf-8':
case void 0:
return Ue(Ge).length;
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return oe * 2;
case 'hex':
return oe >>> 1;
case 'base64':
return Pt(Ge).length;
default:
if (Fe) return Ue(Ge).length;
(de = ('' + de).toLowerCase()), (Fe = !0);
}
}
m.byteLength = M;
function A(Ge, de, oe) {
var Fe = !1;
if (((de === void 0 || de < 0) && (de = 0), de > this.length)) return '';
if (((oe === void 0 || oe > this.length) && (oe = this.length), oe <= 0)) return '';
if (((oe >>>= 0), (de >>>= 0), oe <= de)) return '';
for (Ge || (Ge = 'utf8'); ; )
switch (Ge) {
case 'hex':
return ce(this, de, oe);
case 'utf8':
case 'utf-8':
return Z(this, de, oe);
case 'ascii':
return ue(this, de, oe);
case 'latin1':
case 'binary':
return Ee(this, de, oe);
case 'base64':
return K(this, de, oe);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return Q(this, de, oe);
default:
if (Fe) throw new TypeError('Unknown encoding: ' + Ge);
(Ge = (Ge + '').toLowerCase()), (Fe = !0);
}
}
m.prototype._isBuffer = !0;
function x(Ge, de, oe) {
var Fe = Ge[de];
(Ge[de] = Ge[oe]), (Ge[oe] = Fe);
}
(m.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 oe = 0; oe < de; oe += 2) x(this, oe, oe + 1);
return this;
}),
(m.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 oe = 0; oe < de; oe += 4) x(this, oe, oe + 3), x(this, oe + 1, oe + 2);
return this;
}),
(m.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 oe = 0; oe < de; oe += 8)
x(this, oe, oe + 7),
x(this, oe + 1, oe + 6),
x(this, oe + 2, oe + 5),
x(this, oe + 3, oe + 4);
return this;
}),
(m.prototype.toString = function() {
var de = this.length | 0;
return de === 0
? ''
: arguments.length === 0
? Z(this, 0, de)
: A.apply(this, arguments);
}),
(m.prototype.equals = function(de) {
if (!m.isBuffer(de)) throw new TypeError('Argument must be a Buffer');
return this === de ? !0 : m.compare(this, de) === 0;
}),
(m.prototype.inspect = function() {
var de = '',
oe = s.INSPECT_MAX_BYTES;
return (
this.length > 0 &&
((de = this.toString('hex', 0, oe)
.match(/.{2}/g)
.join(' ')),
this.length > oe && (de += ' ... ')),
''
);
}),
(m.prototype.compare = function(de, oe, Fe, Je, rt) {
if (!m.isBuffer(de)) throw new TypeError('Argument must be a Buffer');
if (
(oe === void 0 && (oe = 0),
Fe === void 0 && (Fe = de ? de.length : 0),
Je === void 0 && (Je = 0),
rt === void 0 && (rt = this.length),
oe < 0 || Fe > de.length || Je < 0 || rt > this.length)
)
throw new RangeError('out of range index');
if (Je >= rt && oe >= Fe) return 0;
if (Je >= rt) return -1;
if (oe >= Fe) return 1;
if (((oe >>>= 0), (Fe >>>= 0), (Je >>>= 0), (rt >>>= 0), this === de)) return 0;
for (
var yt = rt - Je,
an = Fe - oe,
Xt = Math.min(yt, an),
Ct = this.slice(Je, rt),
Gt = de.slice(oe, Fe),
Yt = 0;
Yt < Xt;
++Yt
)
if (Ct[Yt] !== Gt[Yt]) {
(yt = Ct[Yt]), (an = Gt[Yt]);
break;
}
return yt < an ? -1 : an < yt ? 1 : 0;
});
function h(Ge, de, oe, Fe, Je) {
if (Ge.length === 0) return -1;
if (
(typeof oe == 'string'
? ((Fe = oe), (oe = 0))
: oe > 2147483647
? (oe = 2147483647)
: oe < -2147483648 && (oe = -2147483648),
(oe = +oe),
isNaN(oe) && (oe = Je ? 0 : Ge.length - 1),
oe < 0 && (oe = Ge.length + oe),
oe >= Ge.length)
) {
if (Je) return -1;
oe = Ge.length - 1;
} else if (oe < 0)
if (Je) oe = 0;
else return -1;
if ((typeof de == 'string' && (de = m.from(de, Fe)), m.isBuffer(de)))
return de.length === 0 ? -1 : d(Ge, de, oe, Fe, Je);
if (typeof de == 'number')
return (
(de = de & 255),
m.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == 'function'
? Je
? Uint8Array.prototype.indexOf.call(Ge, de, oe)
: Uint8Array.prototype.lastIndexOf.call(Ge, de, oe)
: d(Ge, [de], oe, Fe, Je)
);
throw new TypeError('val must be string, number or Buffer');
}
function d(Ge, de, oe, Fe, Je) {
var rt = 1,
yt = Ge.length,
an = de.length;
if (
Fe !== void 0 &&
((Fe = String(Fe).toLowerCase()),
Fe === 'ucs2' || Fe === 'ucs-2' || Fe === 'utf16le' || Fe === 'utf-16le')
) {
if (Ge.length < 2 || de.length < 2) return -1;
(rt = 2), (yt /= 2), (an /= 2), (oe /= 2);
}
function Xt(xn, qt) {
return rt === 1 ? xn[qt] : xn.readUInt16BE(qt * rt);
}
var Ct;
if (Je) {
var Gt = -1;
for (Ct = oe; Ct < yt; Ct++)
if (Xt(Ge, Ct) === Xt(de, Gt === -1 ? 0 : Ct - Gt)) {
if ((Gt === -1 && (Gt = Ct), Ct - Gt + 1 === an)) return Gt * rt;
} else Gt !== -1 && (Ct -= Ct - Gt), (Gt = -1);
} else
for (oe + an > yt && (oe = yt - an), Ct = oe; Ct >= 0; Ct--) {
for (var Yt = !0, en = 0; en < an; en++)
if (Xt(Ge, Ct + en) !== Xt(de, en)) {
Yt = !1;
break;
}
if (Yt) return Ct;
}
return -1;
}
(m.prototype.includes = function(de, oe, Fe) {
return this.indexOf(de, oe, Fe) !== -1;
}),
(m.prototype.indexOf = function(de, oe, Fe) {
return h(this, de, oe, Fe, !0);
}),
(m.prototype.lastIndexOf = function(de, oe, Fe) {
return h(this, de, oe, Fe, !1);
});
function v(Ge, de, oe, Fe) {
oe = Number(oe) || 0;
var Je = Ge.length - oe;
Fe ? ((Fe = Number(Fe)), Fe > Je && (Fe = Je)) : (Fe = Je);
var rt = de.length;
if (rt % 2 !== 0) throw new TypeError('Invalid hex string');
Fe > rt / 2 && (Fe = rt / 2);
for (var yt = 0; yt < Fe; ++yt) {
var an = parseInt(de.substr(yt * 2, 2), 16);
if (isNaN(an)) return yt;
Ge[oe + yt] = an;
}
return yt;
}
function S(Ge, de, oe, Fe) {
return Wt(Ue(de, Ge.length - oe), Ge, oe, Fe);
}
function N(Ge, de, oe, Fe) {
return Wt(Et(de), Ge, oe, Fe);
}
function R(Ge, de, oe, Fe) {
return N(Ge, de, oe, Fe);
}
function _(Ge, de, oe, Fe) {
return Wt(Pt(de), Ge, oe, Fe);
}
function W(Ge, de, oe, Fe) {
return Wt(_t(de, Ge.length - oe), Ge, oe, Fe);
}
(m.prototype.write = function(de, oe, Fe, Je) {
if (oe === void 0) (Je = 'utf8'), (Fe = this.length), (oe = 0);
else if (Fe === void 0 && typeof oe == 'string') (Je = oe), (Fe = this.length), (oe = 0);
else if (isFinite(oe))
(oe = oe | 0),
isFinite(Fe)
? ((Fe = Fe | 0), Je === void 0 && (Je = 'utf8'))
: ((Je = Fe), (Fe = void 0));
else
throw new Error(
'Buffer.write(string, encoding, offset[, length]) is no longer supported',
);
var rt = this.length - oe;
if (
((Fe === void 0 || Fe > rt) && (Fe = rt),
(de.length > 0 && (Fe < 0 || oe < 0)) || oe > this.length)
)
throw new RangeError('Attempt to write outside buffer bounds');
Je || (Je = 'utf8');
for (var yt = !1; ; )
switch (Je) {
case 'hex':
return v(this, de, oe, Fe);
case 'utf8':
case 'utf-8':
return S(this, de, oe, Fe);
case 'ascii':
return N(this, de, oe, Fe);
case 'latin1':
case 'binary':
return R(this, de, oe, Fe);
case 'base64':
return _(this, de, oe, Fe);
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return W(this, de, oe, Fe);
default:
if (yt) throw new TypeError('Unknown encoding: ' + Je);
(Je = ('' + Je).toLowerCase()), (yt = !0);
}
}),
(m.prototype.toJSON = function() {
return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
});
function K(Ge, de, oe) {
return de === 0 && oe === Ge.length
? u.fromByteArray(Ge)
: u.fromByteArray(Ge.slice(de, oe));
}
function Z(Ge, de, oe) {
oe = Math.min(Ge.length, oe);
for (var Fe = [], Je = de; Je < oe; ) {
var rt = Ge[Je],
yt = null,
an = rt > 239 ? 4 : rt > 223 ? 3 : rt > 191 ? 2 : 1;
if (Je + an <= oe) {
var Xt, Ct, Gt, Yt;
switch (an) {
case 1:
rt < 128 && (yt = rt);
break;
case 2:
(Xt = Ge[Je + 1]),
(Xt & 192) === 128 &&
((Yt = ((rt & 31) << 6) | (Xt & 63)), Yt > 127 && (yt = Yt));
break;
case 3:
(Xt = Ge[Je + 1]),
(Ct = Ge[Je + 2]),
(Xt & 192) === 128 &&
(Ct & 192) === 128 &&
((Yt = ((rt & 15) << 12) | ((Xt & 63) << 6) | (Ct & 63)),
Yt > 2047 && (Yt < 55296 || Yt > 57343) && (yt = Yt));
break;
case 4:
(Xt = Ge[Je + 1]),
(Ct = Ge[Je + 2]),
(Gt = Ge[Je + 3]),
(Xt & 192) === 128 &&
(Ct & 192) === 128 &&
(Gt & 192) === 128 &&
((Yt = ((rt & 15) << 18) | ((Xt & 63) << 12) | ((Ct & 63) << 6) | (Gt & 63)),
Yt > 65535 && Yt < 1114112 && (yt = Yt));
}
}
yt === null
? ((yt = 65533), (an = 1))
: yt > 65535 &&
((yt -= 65536), Fe.push(((yt >>> 10) & 1023) | 55296), (yt = 56320 | (yt & 1023))),
Fe.push(yt),
(Je += an);
}
return ne(Fe);
}
var ee = 4096;
function ne(Ge) {
var de = Ge.length;
if (de <= ee) return String.fromCharCode.apply(String, Ge);
for (var oe = '', Fe = 0; Fe < de; )
oe += String.fromCharCode.apply(String, Ge.slice(Fe, (Fe += ee)));
return oe;
}
function ue(Ge, de, oe) {
var Fe = '';
oe = Math.min(Ge.length, oe);
for (var Je = de; Je < oe; ++Je) Fe += String.fromCharCode(Ge[Je] & 127);
return Fe;
}
function Ee(Ge, de, oe) {
var Fe = '';
oe = Math.min(Ge.length, oe);
for (var Je = de; Je < oe; ++Je) Fe += String.fromCharCode(Ge[Je]);
return Fe;
}
function ce(Ge, de, oe) {
var Fe = Ge.length;
(!de || de < 0) && (de = 0), (!oe || oe < 0 || oe > Fe) && (oe = Fe);
for (var Je = '', rt = de; rt < oe; ++rt) Je += Xe(Ge[rt]);
return Je;
}
function Q(Ge, de, oe) {
for (var Fe = Ge.slice(de, oe), Je = '', rt = 0; rt < Fe.length; rt += 2)
Je += String.fromCharCode(Fe[rt] + Fe[rt + 1] * 256);
return Je;
}
m.prototype.slice = function(de, oe) {
var Fe = this.length;
(de = ~~de),
(oe = oe === void 0 ? Fe : ~~oe),
de < 0 ? ((de += Fe), de < 0 && (de = 0)) : de > Fe && (de = Fe),
oe < 0 ? ((oe += Fe), oe < 0 && (oe = 0)) : oe > Fe && (oe = Fe),
oe < de && (oe = de);
var Je;
if (m.TYPED_ARRAY_SUPPORT) (Je = this.subarray(de, oe)), (Je.__proto__ = m.prototype);
else {
var rt = oe - de;
Je = new m(rt, void 0);
for (var yt = 0; yt < rt; ++yt) Je[yt] = this[yt + de];
}
return Je;
};
function le(Ge, de, oe) {
if (Ge % 1 !== 0 || Ge < 0) throw new RangeError('offset is not uint');
if (Ge + de > oe) throw new RangeError('Trying to access beyond buffer length');
}
(m.prototype.readUIntLE = function(de, oe, Fe) {
(de = de | 0), (oe = oe | 0), Fe || le(de, oe, this.length);
for (var Je = this[de], rt = 1, yt = 0; ++yt < oe && (rt *= 256); )
Je += this[de + yt] * rt;
return Je;
}),
(m.prototype.readUIntBE = function(de, oe, Fe) {
(de = de | 0), (oe = oe | 0), Fe || le(de, oe, this.length);
for (var Je = this[de + --oe], rt = 1; oe > 0 && (rt *= 256); )
Je += this[de + --oe] * rt;
return Je;
}),
(m.prototype.readUInt8 = function(de, oe) {
return oe || le(de, 1, this.length), this[de];
}),
(m.prototype.readUInt16LE = function(de, oe) {
return oe || le(de, 2, this.length), this[de] | (this[de + 1] << 8);
}),
(m.prototype.readUInt16BE = function(de, oe) {
return oe || le(de, 2, this.length), (this[de] << 8) | this[de + 1];
}),
(m.prototype.readUInt32LE = function(de, oe) {
return (
oe || le(de, 4, this.length),
(this[de] | (this[de + 1] << 8) | (this[de + 2] << 16)) + this[de + 3] * 16777216
);
}),
(m.prototype.readUInt32BE = function(de, oe) {
return (
oe || le(de, 4, this.length),
this[de] * 16777216 + ((this[de + 1] << 16) | (this[de + 2] << 8) | this[de + 3])
);
}),
(m.prototype.readIntLE = function(de, oe, Fe) {
(de = de | 0), (oe = oe | 0), Fe || le(de, oe, this.length);
for (var Je = this[de], rt = 1, yt = 0; ++yt < oe && (rt *= 256); )
Je += this[de + yt] * rt;
return (rt *= 128), Je >= rt && (Je -= Math.pow(2, 8 * oe)), Je;
}),
(m.prototype.readIntBE = function(de, oe, Fe) {
(de = de | 0), (oe = oe | 0), Fe || le(de, oe, this.length);
for (var Je = oe, 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 * oe)), yt;
}),
(m.prototype.readInt8 = function(de, oe) {
return (
oe || le(de, 1, this.length), this[de] & 128 ? (255 - this[de] + 1) * -1 : this[de]
);
}),
(m.prototype.readInt16LE = function(de, oe) {
oe || le(de, 2, this.length);
var Fe = this[de] | (this[de + 1] << 8);
return Fe & 32768 ? Fe | 4294901760 : Fe;
}),
(m.prototype.readInt16BE = function(de, oe) {
oe || le(de, 2, this.length);
var Fe = this[de + 1] | (this[de] << 8);
return Fe & 32768 ? Fe | 4294901760 : Fe;
}),
(m.prototype.readInt32LE = function(de, oe) {
return (
oe || le(de, 4, this.length),
this[de] | (this[de + 1] << 8) | (this[de + 2] << 16) | (this[de + 3] << 24)
);
}),
(m.prototype.readInt32BE = function(de, oe) {
return (
oe || le(de, 4, this.length),
(this[de] << 24) | (this[de + 1] << 16) | (this[de + 2] << 8) | this[de + 3]
);
}),
(m.prototype.readFloatLE = function(de, oe) {
return oe || le(de, 4, this.length), o.read(this, de, !0, 23, 4);
}),
(m.prototype.readFloatBE = function(de, oe) {
return oe || le(de, 4, this.length), o.read(this, de, !1, 23, 4);
}),
(m.prototype.readDoubleLE = function(de, oe) {
return oe || le(de, 8, this.length), o.read(this, de, !0, 52, 8);
}),
(m.prototype.readDoubleBE = function(de, oe) {
return oe || le(de, 8, this.length), o.read(this, de, !1, 52, 8);
});
function J(Ge, de, oe, Fe, Je, rt) {
if (!m.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 (oe + Fe > Ge.length) throw new RangeError('Index out of range');
}
(m.prototype.writeUIntLE = function(de, oe, Fe, Je) {
if (((de = +de), (oe = oe | 0), (Fe = Fe | 0), !Je)) {
var rt = Math.pow(2, 8 * Fe) - 1;
J(this, de, oe, Fe, rt, 0);
}
var yt = 1,
an = 0;
for (this[oe] = de & 255; ++an < Fe && (yt *= 256); ) this[oe + an] = (de / yt) & 255;
return oe + Fe;
}),
(m.prototype.writeUIntBE = function(de, oe, Fe, Je) {
if (((de = +de), (oe = oe | 0), (Fe = Fe | 0), !Je)) {
var rt = Math.pow(2, 8 * Fe) - 1;
J(this, de, oe, Fe, rt, 0);
}
var yt = Fe - 1,
an = 1;
for (this[oe + yt] = de & 255; --yt >= 0 && (an *= 256); )
this[oe + yt] = (de / an) & 255;
return oe + Fe;
}),
(m.prototype.writeUInt8 = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 1, 255, 0),
m.TYPED_ARRAY_SUPPORT || (de = Math.floor(de)),
(this[oe] = de & 255),
oe + 1
);
});
function ae(Ge, de, oe, Fe) {
de < 0 && (de = 65535 + de + 1);
for (var Je = 0, rt = Math.min(Ge.length - oe, 2); Je < rt; ++Je)
Ge[oe + Je] = (de & (255 << (8 * (Fe ? Je : 1 - Je)))) >>> ((Fe ? Je : 1 - Je) * 8);
}
(m.prototype.writeUInt16LE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 2, 65535, 0),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de & 255), (this[oe + 1] = de >>> 8))
: ae(this, de, oe, !0),
oe + 2
);
}),
(m.prototype.writeUInt16BE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 2, 65535, 0),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de >>> 8), (this[oe + 1] = de & 255))
: ae(this, de, oe, !1),
oe + 2
);
});
function fe(Ge, de, oe, Fe) {
de < 0 && (de = 4294967295 + de + 1);
for (var Je = 0, rt = Math.min(Ge.length - oe, 4); Je < rt; ++Je)
Ge[oe + Je] = (de >>> ((Fe ? Je : 3 - Je) * 8)) & 255;
}
(m.prototype.writeUInt32LE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 4, 4294967295, 0),
m.TYPED_ARRAY_SUPPORT
? ((this[oe + 3] = de >>> 24),
(this[oe + 2] = de >>> 16),
(this[oe + 1] = de >>> 8),
(this[oe] = de & 255))
: fe(this, de, oe, !0),
oe + 4
);
}),
(m.prototype.writeUInt32BE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 4, 4294967295, 0),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de >>> 24),
(this[oe + 1] = de >>> 16),
(this[oe + 2] = de >>> 8),
(this[oe + 3] = de & 255))
: fe(this, de, oe, !1),
oe + 4
);
}),
(m.prototype.writeIntLE = function(de, oe, Fe, Je) {
if (((de = +de), (oe = oe | 0), !Je)) {
var rt = Math.pow(2, 8 * Fe - 1);
J(this, de, oe, Fe, rt - 1, -rt);
}
var yt = 0,
an = 1,
Xt = 0;
for (this[oe] = de & 255; ++yt < Fe && (an *= 256); )
de < 0 && Xt === 0 && this[oe + yt - 1] !== 0 && (Xt = 1),
(this[oe + yt] = (((de / an) >> 0) - Xt) & 255);
return oe + Fe;
}),
(m.prototype.writeIntBE = function(de, oe, Fe, Je) {
if (((de = +de), (oe = oe | 0), !Je)) {
var rt = Math.pow(2, 8 * Fe - 1);
J(this, de, oe, Fe, rt - 1, -rt);
}
var yt = Fe - 1,
an = 1,
Xt = 0;
for (this[oe + yt] = de & 255; --yt >= 0 && (an *= 256); )
de < 0 && Xt === 0 && this[oe + yt + 1] !== 0 && (Xt = 1),
(this[oe + yt] = (((de / an) >> 0) - Xt) & 255);
return oe + Fe;
}),
(m.prototype.writeInt8 = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 1, 127, -128),
m.TYPED_ARRAY_SUPPORT || (de = Math.floor(de)),
de < 0 && (de = 255 + de + 1),
(this[oe] = de & 255),
oe + 1
);
}),
(m.prototype.writeInt16LE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 2, 32767, -32768),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de & 255), (this[oe + 1] = de >>> 8))
: ae(this, de, oe, !0),
oe + 2
);
}),
(m.prototype.writeInt16BE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 2, 32767, -32768),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de >>> 8), (this[oe + 1] = de & 255))
: ae(this, de, oe, !1),
oe + 2
);
}),
(m.prototype.writeInt32LE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 4, 2147483647, -2147483648),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de & 255),
(this[oe + 1] = de >>> 8),
(this[oe + 2] = de >>> 16),
(this[oe + 3] = de >>> 24))
: fe(this, de, oe, !0),
oe + 4
);
}),
(m.prototype.writeInt32BE = function(de, oe, Fe) {
return (
(de = +de),
(oe = oe | 0),
Fe || J(this, de, oe, 4, 2147483647, -2147483648),
de < 0 && (de = 4294967295 + de + 1),
m.TYPED_ARRAY_SUPPORT
? ((this[oe] = de >>> 24),
(this[oe + 1] = de >>> 16),
(this[oe + 2] = de >>> 8),
(this[oe + 3] = de & 255))
: fe(this, de, oe, !1),
oe + 4
);
});
function Te(Ge, de, oe, Fe, Je, rt) {
if (oe + Fe > Ge.length) throw new RangeError('Index out of range');
if (oe < 0) throw new RangeError('Index out of range');
}
function we(Ge, de, oe, Fe, Je) {
return (
Je || Te(Ge, de, oe, 4, 34028234663852886e22, -34028234663852886e22),
o.write(Ge, de, oe, Fe, 23, 4),
oe + 4
);
}
(m.prototype.writeFloatLE = function(de, oe, Fe) {
return we(this, de, oe, !0, Fe);
}),
(m.prototype.writeFloatBE = function(de, oe, Fe) {
return we(this, de, oe, !1, Fe);
});
function Le(Ge, de, oe, Fe, Je) {
return (
Je || Te(Ge, de, oe, 8, 17976931348623157e292, -17976931348623157e292),
o.write(Ge, de, oe, Fe, 52, 8),
oe + 8
);
}
(m.prototype.writeDoubleLE = function(de, oe, Fe) {
return Le(this, de, oe, !0, Fe);
}),
(m.prototype.writeDoubleBE = function(de, oe, Fe) {
return Le(this, de, oe, !1, Fe);
}),
(m.prototype.copy = function(de, oe, Fe, Je) {
if (
(Fe || (Fe = 0),
!Je && Je !== 0 && (Je = this.length),
oe >= de.length && (oe = de.length),
oe || (oe = 0),
Je > 0 && Je < Fe && (Je = Fe),
Je === Fe)
)
return 0;
if (de.length === 0 || this.length === 0) return 0;
if (oe < 0) throw new RangeError('targetStart out of bounds');
if (Fe < 0 || Fe >= 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 - oe < Je - Fe && (Je = de.length - oe + Fe);
var rt = Je - Fe,
yt;
if (this === de && Fe < oe && oe < Je)
for (yt = rt - 1; yt >= 0; --yt) de[yt + oe] = this[yt + Fe];
else if (rt < 1e3 || !m.TYPED_ARRAY_SUPPORT)
for (yt = 0; yt < rt; ++yt) de[yt + oe] = this[yt + Fe];
else Uint8Array.prototype.set.call(de, this.subarray(Fe, Fe + rt), oe);
return rt;
}),
(m.prototype.fill = function(de, oe, Fe, Je) {
if (typeof de == 'string') {
if (
(typeof oe == 'string'
? ((Je = oe), (oe = 0), (Fe = this.length))
: typeof Fe == 'string' && ((Je = Fe), (Fe = 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' && !m.isEncoding(Je))
throw new TypeError('Unknown encoding: ' + Je);
} else typeof de == 'number' && (de = de & 255);
if (oe < 0 || this.length < oe || this.length < Fe)
throw new RangeError('Out of range index');
if (Fe <= oe) return this;
(oe = oe >>> 0), (Fe = Fe === void 0 ? this.length : Fe >>> 0), de || (de = 0);
var yt;
if (typeof de == 'number') for (yt = oe; yt < Fe; ++yt) this[yt] = de;
else {
var an = m.isBuffer(de) ? de : Ue(new m(de, Je).toString()),
Xt = an.length;
for (yt = 0; yt < Fe - oe; ++yt) this[yt + oe] = an[yt % Xt];
}
return this;
});
var qe = /[^+\/0-9A-Za-z-_]/g;
function Me(Ge) {
if (((Ge = ze(Ge).replace(qe, '')), Ge.length < 2)) return '';
for (; Ge.length % 4 !== 0; ) Ge = Ge + '=';
return Ge;
}
function ze(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 Ue(Ge, de) {
de = de || Infinity;
for (var oe, Fe = Ge.length, Je = null, rt = [], yt = 0; yt < Fe; ++yt) {
if (((oe = Ge.charCodeAt(yt)), oe > 55295 && oe < 57344)) {
if (!Je) {
if (oe > 56319) {
(de -= 3) > -1 && rt.push(239, 191, 189);
continue;
} else if (yt + 1 === Fe) {
(de -= 3) > -1 && rt.push(239, 191, 189);
continue;
}
Je = oe;
continue;
}
if (oe < 56320) {
(de -= 3) > -1 && rt.push(239, 191, 189), (Je = oe);
continue;
}
oe = (((Je - 55296) << 10) | (oe - 56320)) + 65536;
} else Je && (de -= 3) > -1 && rt.push(239, 191, 189);
if (((Je = null), oe < 128)) {
if ((de -= 1) < 0) break;
rt.push(oe);
} else if (oe < 2048) {
if ((de -= 2) < 0) break;
rt.push((oe >> 6) | 192, (oe & 63) | 128);
} else if (oe < 65536) {
if ((de -= 3) < 0) break;
rt.push((oe >> 12) | 224, ((oe >> 6) & 63) | 128, (oe & 63) | 128);
} else if (oe < 1114112) {
if ((de -= 4) < 0) break;
rt.push(
(oe >> 18) | 240,
((oe >> 12) & 63) | 128,
((oe >> 6) & 63) | 128,
(oe & 63) | 128,
);
} else throw new Error('Invalid code point');
}
return rt;
}
function Et(Ge) {
for (var de = [], oe = 0; oe < Ge.length; ++oe) de.push(Ge.charCodeAt(oe) & 255);
return de;
}
function _t(Ge, de) {
for (var oe, Fe, Je, rt = [], yt = 0; yt < Ge.length && !((de -= 2) < 0); ++yt)
(oe = Ge.charCodeAt(yt)), (Fe = oe >> 8), (Je = oe % 256), rt.push(Je), rt.push(Fe);
return rt;
}
function Pt(Ge) {
return u.toByteArray(Me(Ge));
}
function Wt(Ge, de, oe, Fe) {
for (var Je = 0; Je < Fe && !(Je + oe >= de.length || Je >= Ge.length); ++Je)
de[Je + oe] = Ge[Je];
return Je;
}
function Kt(Ge) {
return Ge !== Ge;
}
}.call(this, t('yLpj')));
},
trA2: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.SliderPointer = void 0);
var r = t('q1tI'),
u = n(r),
o = t('/FUP'),
a = n(o);
function n(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (s.SliderPointer = function(m) {
var p = m.direction,
C = (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: p === 'vertical' },
);
return u.default.createElement('div', { style: C.picker });
});
s.default = e;
},
tu5P: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.ChromePointerCircle = void 0);
var r = t('q1tI'),
u = n(r),
o = t('/FUP'),
a = n(o);
function n(g) {
return g && g.__esModule ? g : { default: g };
}
var e = (s.ChromePointerCircle = function() {
var m = (0, a.default)({
default: {
picker: {
width: '12px',
height: '12px',
borderRadius: '6px',
boxShadow: 'inset 0 0 0 1px #fff',
transform: 'translate(-6px, -6px)',
},
},
});
return u.default.createElement('div', { style: m.picker });
});
s.default = e;
},
tuJh: function(U, s, t) {
'use strict';
var r = t('3sOJ'),
u = t('jLRO'),
o = t('DEWG'),
a = t('8d//');
function n(e) {
var g = a(
e,
function(p) {
var C = p.getSelection(),
w = p.getCurrentContent(),
T = C.getAnchorKey(),
F = C.getAnchorOffset(),
E = w.getBlockForKey(T).getText()[F];
return o(p, E ? u.getUTF16Length(E, 0) : 1);
},
'forward',
);
if (g === e.getCurrentContent()) return e;
var m = e.getSelection();
return r.push(
e,
g.set('selectionBefore', m),
m.isCollapsed() ? 'delete-character' : 'remove-range',
);
}
U.exports = n;
},
u8Dt: function(U, s, t) {
var r = t('YESw'),
u = '__lodash_hash_undefined__',
o = Object.prototype,
a = o.hasOwnProperty;
function n(e) {
var g = this.__data__;
if (r) {
var m = g[e];
return m === u ? void 0 : m;
}
return a.call(g, e) ? g[e] : void 0;
}
U.exports = n;
},
u9fO: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = u(t('b80e'));
function u(a) {
return a && a.__esModule ? a : { default: a };
}
var o = r;
(s.default = o), (U.exports = o);
},
uDUr: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.BlockSwatches = void 0);
var r = t('q1tI'),
u = m(r),
o = t('/FUP'),
a = m(o),
n = t('3WF5'),
e = m(n),
g = t('TM95');
function m(C) {
return C && C.__esModule ? C : { default: C };
}
var p = (s.BlockSwatches = function(w) {
var T = w.colors,
F = w.onClick,
E = w.onSwatchHover,
D = (0, a.default)({
default: {
swatches: { marginRight: '-10px' },
swatch: {
width: '22px',
height: '22px',
float: 'left',
marginRight: '10px',
marginBottom: '10px',
borderRadius: '4px',
},
clear: { clear: 'both' },
},
});
return u.default.createElement(
'div',
{ style: D.swatches },
(0, e.default)(T, function(O) {
return u.default.createElement(g.Swatch, {
key: O,
color: O,
style: D.swatch,
onClick: F,
onHover: E,
focusStyle: { boxShadow: '0 0 4px ' + O },
});
}),
u.default.createElement('div', { style: D.clear }),
);
});
s.default = p;
},
uFIP: function(U, s, t) {},
uJQd: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = e(t('q1tI')),
u = a(t('TSYQ')),
o = a(t('0fCl'));
function a(x) {
return x && x.__esModule ? x : { default: x };
}
function n() {
if (typeof WeakMap != 'function') return null;
var x = new WeakMap();
return (
(n = function() {
return x;
}),
x
);
}
function e(x) {
if (x && x.__esModule) return x;
if (x === null || (g(x) !== 'object' && typeof x != 'function')) return { default: x };
var h = n();
if (h && h.has(x)) return h.get(x);
var d = {},
v = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var S in x)
if (Object.prototype.hasOwnProperty.call(x, S)) {
var N = v ? Object.getOwnPropertyDescriptor(x, S) : null;
N && (N.get || N.set) ? Object.defineProperty(d, S, N) : (d[S] = x[S]);
}
return (d.default = x), h && h.set(x, d), d;
}
function g(x) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (g = function(d) {
return typeof d;
})
: (g = function(d) {
return d &&
typeof Symbol == 'function' &&
d.constructor === Symbol &&
d !== Symbol.prototype
? 'symbol'
: typeof d;
}),
g(x)
);
}
function m() {
return (
(m =
Object.assign ||
function(x) {
for (var h = 1; h < arguments.length; h++) {
var d = arguments[h];
for (var v in d) Object.prototype.hasOwnProperty.call(d, v) && (x[v] = d[v]);
}
return x;
}),
m.apply(this, arguments)
);
}
function p(x, h, d) {
return (
h in x
? Object.defineProperty(x, h, {
value: d,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (x[h] = d),
x
);
}
function C(x, h) {
if (x == null) return {};
var d = w(x, h),
v,
S;
if (Object.getOwnPropertySymbols) {
var N = Object.getOwnPropertySymbols(x);
for (S = 0; S < N.length; S++) {
if (((v = N[S]), h.indexOf(v) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(x, v)) continue;
d[v] = x[v];
}
}
return d;
}
function w(x, h) {
if (x == null) return {};
var d = {},
v = Object.keys(x),
S,
N;
for (N = 0; N < v.length; N++) {
if (((S = v[N]), h.indexOf(S) >= 0)) continue;
d[S] = x[S];
}
return d;
}
function T(x, h) {
if (!(x instanceof h)) throw new TypeError('Cannot call a class as a function');
}
function F(x, h) {
for (var d = 0; d < h.length; d++) {
var v = h[d];
(v.enumerable = v.enumerable || !1),
(v.configurable = !0),
'value' in v && (v.writable = !0),
Object.defineProperty(x, v.key, v);
}
}
function E(x, h, d) {
return h && F(x.prototype, h), d && F(x, d), x;
}
function D(x, h) {
return h && (g(h) === 'object' || typeof h == 'function') ? h : O(x);
}
function O(x) {
if (x === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return x;
}
function I(x) {
return (
(I = Object.setPrototypeOf
? Object.getPrototypeOf
: function(d) {
return d.__proto__ || Object.getPrototypeOf(d);
}),
I(x)
);
}
function P(x, h) {
if (typeof h != 'function' && h !== null)
throw new TypeError('Super expression must either be null or a function');
(x.prototype = Object.create(h && h.prototype, {
constructor: { value: x, writable: !0, configurable: !0 },
})),
h && M(x, h);
}
function M(x, h) {
return (
(M =
Object.setPrototypeOf ||
function(v, S) {
return (v.__proto__ = S), v;
}),
M(x, h)
);
}
var A = (function(x) {
P(h, x);
function h(d) {
var v;
return (
T(this, h),
(v = D(this, I(h).call(this, d))),
(v.input = void 0),
(v.onBlurTimeout = void 0),
(v.blurFromClear = void 0),
(v.onFocus = function(S) {
v.setState({ focused: !0 });
var N = v.props.onFocus;
typeof N == 'function' && N(S.target.value);
}),
(v.onBlur = function(S) {
var N = v.props.onBlur,
R = S.target.value;
v.onBlurTimeout = setTimeout(function() {
!v.blurFromClear &&
document.activeElement !== v.input &&
(v.setState({ focused: !1 }), typeof N == 'function' && N(R)),
(v.blurFromClear = !1);
}, 200);
}),
(v.onChange = function(S) {
var N = v.props.onChange,
R = v.state.focused,
_ = S.target.value;
R || v.setState({ focused: !0 }),
'value' in v.props || v.setState({ value: _ }),
typeof N == 'function' && N(_);
}),
(v.onClear = function() {
var S = v.state.isOnComposition,
N = v.props,
R = N.onChange,
_ = N.onClear;
(v.blurFromClear = !0),
v.setState({ value: '' }),
!S && v.focus(),
typeof R == 'function' && R(''),
typeof _ == 'function' && _('');
}),
(v.handleComposition = function(S) {
var N = v.props,
R = N.onCompositionStart,
_ = N.onCompositionUpdate,
W = N.onCompositionEnd,
K = N.onChange;
if (
(S.type === 'compositionstart' &&
(v.setState({ isOnComposition: !0 }), typeof R == 'function' && R(S)),
S.type === 'compositionupdate' && typeof _ == 'function' && _(S),
S.type === 'compositionend')
) {
var Z = S.target.value;
v.setState({ isOnComposition: !1 }),
typeof W == 'function' && W(S),
typeof K == 'function' && K(Z);
}
}),
(v.focus = function() {
v.input.focus();
}),
(v.blur = function() {
v.input.blur();
}),
(v.state = { focused: d.autoFocus || !1, value: d.value || d.defaultValue || '' }),
v
);
}
return (
E(
h,
[
{
key: 'componentDidMount',
value: function() {
var v = this.state.focused;
v && this.input.focus();
},
},
{
key: 'componentWillUnmount',
value: function() {
this.onBlurTimeout &&
(clearTimeout(this.onBlurTimeout), (this.onBlurTimeout = null));
},
},
{
key: 'render',
value: function() {
var v,
S = this,
N = this.props,
R = N.prefixCls,
_ = N.className,
W = N.disabled,
K = N.clearable,
Z = N.readOnly,
ee = N.type,
ne = N.onClear,
ue = C(N, [
'prefixCls',
'className',
'disabled',
'clearable',
'readOnly',
'type',
'onClear',
]),
Ee = this.state,
ce = Ee.value,
Q = Ee.focused,
le = K && 'value' in this.props && 'onChange' in this.props,
J = (0, u.default)(
R,
_,
((v = {}),
p(v, ''.concat(R, '--disabled'), W),
p(v, ''.concat(R, '--focus'), Q && ce && ce.length > 0),
p(v, ''.concat(R, '--clearable'), le),
p(v, ''.concat(R, '--readonly'), Z),
v),
),
ae = r.default.createElement(
'input',
m({}, ue, {
value: 'value' in this.props ? ce : void 0,
autoComplete: 'off',
ref: function(Le) {
S.input = Le;
},
type: ee,
disabled: W,
onChange: this.onChange,
onBlur: this.onBlur,
onFocus: this.onFocus,
onCompositionStart: function(Le) {
S.handleComposition(Le);
},
onCompositionUpdate: function(Le) {
S.handleComposition(Le);
},
onCompositionEnd: function(Le) {
S.handleComposition(Le);
},
}),
),
fe = r.default.createElement(
'div',
{ className: ''.concat(R, '__content') },
ce,
),
Te =
le &&
r.default.createElement(o.default, {
type: 'wrong-round-fill',
className: ''.concat(R, '__clear'),
onClick: function() {
S.onClear();
},
});
return r.default.createElement('div', { className: J }, Z ? fe : ae, Te);
},
},
],
[
{
key: 'getDerivedStateFromProps',
value: function(v) {
return 'value' in v ? { value: v.value || v.defaultValue || '' } : null;
},
},
],
),
h
);
})(r.PureComponent);
(s.default = A),
(A.defaultProps = {
prefixCls: 'za-input',
disabled: !1,
type: 'text',
clearable: !0,
readOnly: !1,
});
},
uOW1: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__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',
};
s.default = r;
},
ueFs: function(U, s, t) {
'use strict';
var r = t('MgzW'),
u =
r ||
function(W) {
for (var K = 1; K < arguments.length; K++) {
var Z = arguments[K];
for (var ee in Z) Object.prototype.hasOwnProperty.call(Z, ee) && (W[ee] = Z[ee]);
}
return W;
},
o = t('8uQm'),
a = t('JL7T'),
n = t('LpQA'),
e = t('TzU/'),
g = t('cX45'),
m = t('PFU8'),
p = t('JPcv'),
C = t('hMpd'),
w = t('TlXQ'),
T = t('bNdj'),
F = t('RCR6'),
E = t('rJY1'),
D = t('2NuI'),
O = g.draft_tree_data_support,
I = p.List,
P = p.Map,
M = p.OrderedMap,
A = function(K, Z) {
var ee = K.key,
ne = K.type,
ue = K.data,
Ee = K.text,
ce = K.depth,
Q = {
text: Ee,
depth: ce || 0,
type: ne || 'unstyled',
key: ee || E(),
data: P(ue),
characterList: x(K, Z),
};
return Q;
},
x = function(K, Z) {
var ee = K.text,
ne = K.entityRanges,
ue = K.inlineStyleRanges,
Ee = ne || [],
ce = ue || [];
return w(
F(ee, ce),
T(
ee,
Ee.filter(function(Q) {
return Z.hasOwnProperty(Q.key);
}).map(function(Q) {
return u({}, Q, { key: Z[Q.key] });
}),
),
);
},
h = function(K) {
return u({}, K, { key: K.key || E() });
},
d = function(K, Z, ee) {
var ne = Z.map(function(ue) {
return u({}, ue, { parentRef: ee });
});
return K.concat(ne.reverse());
},
v = function(K, Z) {
return K.map(h).reduce(function(ee, ne, ue) {
Array.isArray(ne.children) || D(!1);
var Ee = ne.children.map(h),
ce = new a(
u({}, A(ne, Z), {
prevSibling: ue === 0 ? null : K[ue - 1].key,
nextSibling: ue === K.length - 1 ? null : K[ue + 1].key,
children: I(
Ee.map(function(qe) {
return qe.key;
}),
),
}),
);
ee = ee.set(ce.getKey(), ce);
for (var Q = d([], Ee, ce); Q.length > 0; ) {
var le = Q.pop(),
J = le.parentRef,
ae = J.getChildKeys(),
fe = ae.indexOf(le.key),
Te = Array.isArray(le.children);
if (!Te) {
Te || D(!1);
break;
}
var we = le.children.map(h),
Le = new a(
u({}, A(le, Z), {
parent: J.getKey(),
children: I(
we.map(function(qe) {
return qe.key;
}),
),
prevSibling: fe === 0 ? null : ae.get(fe - 1),
nextSibling: fe === ae.size - 1 ? null : ae.get(fe + 1),
}),
);
(ee = ee.set(Le.getKey(), Le)), (Q = d(Q, we, Le));
}
return ee;
}, M());
},
S = function(K, Z) {
return M(
K.map(function(ee) {
var ne = new o(A(ee, Z));
return [ne.getKey(), ne];
}),
);
},
N = function(K, Z) {
var ee = Array.isArray(K.blocks[0].children),
ne = O && !ee ? m.fromRawStateToRawTreeState(K).blocks : K.blocks;
return O ? v(ne, Z) : S(ee ? m.fromRawTreeStateToRawState(K).blocks : ne, Z);
},
R = function(K) {
var Z = K.entityMap,
ee = {};
return (
Object.keys(Z).forEach(function(ne) {
var ue = Z[ne],
Ee = ue.type,
ce = ue.mutability,
Q = ue.data;
ee[ne] = e.__create(Ee, ce, Q || {});
}),
ee
);
},
_ = function(K) {
Array.isArray(K.blocks) || D(!1);
var Z = R(K),
ee = N(K, Z),
ne = ee.isEmpty() ? new C() : C.createEmpty(ee.first().getKey());
return new n({ blockMap: ee, entityMap: Z, selectionBefore: ne, selectionAfter: ne });
};
U.exports = _;
},
ujuU: function(U, s, t) {
'use strict';
var r = t('3sOJ');
function u(o) {
var a = o.getSelection(),
n = a.getStartKey();
return r.set(o, {
selection: a.merge({
anchorKey: n,
anchorOffset: 0,
focusKey: n,
focusOffset: 0,
isBackward: !1,
}),
forceSelection: !0,
});
}
U.exports = u;
},
'ut/Y': function(U, s, t) {
var r = t('ZCpW'),
u = t('GDhZ'),
o = t('zZ0H'),
a = t('Z0cm'),
n = t('+c4W');
function e(g) {
return typeof g == 'function'
? g
: g == null
? o
: typeof g == 'object'
? a(g)
? u(g[0], g[1])
: r(g)
: n(g);
}
U.exports = e;
},
v83y: function(U, s, t) {
'use strict';
var r = t('fyRy'),
u = t('YeVe'),
o = t('lFJn'),
a = t('84lc'),
n = t('8uQm'),
e = t('LpQA'),
g = t('rAV9'),
m = t('0TRD'),
p = t('6tyx'),
C = t('DthY'),
w = t('TzU/'),
T = t('fyOY'),
F = t('qnky'),
E = t('3sOJ'),
D = t('s8ra'),
O = t('Nx4+'),
I = t('hMpd'),
P = t('/y+l'),
M = t('1qq2'),
A = t('ueFs'),
x = t('rJY1'),
h = t('AyB5'),
d = t('zxN+'),
v = {
Editor: p,
EditorBlock: C,
EditorState: E,
CompositeDecorator: a,
Entity: w,
EntityInstance: F,
BlockMapBuilder: u,
CharacterMetadata: o,
ContentBlock: n,
ContentState: e,
SelectionState: I,
AtomicBlockUtils: r,
KeyBindingUtil: D,
Modifier: T,
RichUtils: O,
DefaultDraftBlockRenderMap: g,
DefaultDraftInlineStyle: m,
convertFromHTML: M,
convertFromRaw: A,
convertToRaw: P,
genKey: x,
getDefaultKeyBinding: h,
getVisibleSelectionRect: d,
};
U.exports = v;
},
vDqi: function(U, s, t) {
U.exports = t('zuR4');
},
vYwu: function(U, s, t) {
'use strict';
var r = t('lFJn');
function u(o, a, n, e) {
for (var g = o.getCharacterList(); a < n; ) (g = g.set(a, r.applyEntity(g.get(a), e))), a++;
return o.set('characterList', g);
}
U.exports = u;
},
vcNX: function(U, s, t) {
'use strict';
var r = t('SF5q'),
u = t('3sOJ'),
o = t('kWjT'),
a = t('8d//');
function n(e) {
var g = a(
e,
function(m) {
var p = m.getSelection(),
C = p.getStartOffset();
if (C === 0) return o(m, 1);
var w = p.getStartKey(),
T = m.getCurrentContent(),
F = T.getBlockForKey(w)
.getText()
.slice(0, C),
E = r.getBackward(F);
return o(m, E.length || 1);
},
'backward',
);
return g === e.getCurrentContent() ? e : u.push(e, g, 'remove-range');
}
U.exports = n;
},
'w/wX': function(U, s, t) {
var r = t('QqLw'),
u = t('ExA7'),
o = '[object Set]';
function a(n) {
return u(n) && r(n) == o;
}
U.exports = a;
},
w0Vi: function(U, s, t) {
'use strict';
var r = t('xTJ+'),
u = [
'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',
];
U.exports = function(a) {
var n = {},
e,
g,
m;
return (
a &&
r.forEach(
a.split(`
`),
function(C) {
if (
((m = C.indexOf(':')),
(e = r.trim(C.substr(0, m)).toLowerCase()),
(g = r.trim(C.substr(m + 1))),
e)
) {
if (n[e] && u.indexOf(e) >= 0) return;
e === 'set-cookie'
? (n[e] = (n[e] ? n[e] : []).concat([g]))
: (n[e] = n[e] ? n[e] + ', ' + g : g);
}
},
),
n
);
};
},
w3kf: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = { placeholder: '请选择' };
s.default = r;
},
'wF/u': function(U, s, t) {
var r = t('e5cp'),
u = t('ExA7');
function o(a, n, e, g, m) {
return a === n
? !0
: a == null || n == null || (!u(a) && !u(n))
? a !== a && n !== n
: r(a, n, e, g, o, m);
}
U.exports = o;
},
wJg7: function(U, s) {
var t = 9007199254740991,
r = /^(?:0|[1-9]\d*)$/;
function u(o, a) {
var n = typeof o;
return (
(a = a == null ? t : a),
!!a && (n == 'number' || (n != 'symbol' && r.test(o))) && o > -1 && o % 1 == 0 && o < a
);
}
U.exports = u;
},
wME1: function(U, s, t) {
'use strict';
t.r(s),
t.d(s, 'red', function() {
return r;
}),
t.d(s, 'pink', function() {
return u;
}),
t.d(s, 'purple', function() {
return o;
}),
t.d(s, 'deepPurple', function() {
return a;
}),
t.d(s, 'indigo', function() {
return n;
}),
t.d(s, 'blue', function() {
return e;
}),
t.d(s, 'lightBlue', function() {
return g;
}),
t.d(s, 'cyan', function() {
return m;
}),
t.d(s, 'teal', function() {
return p;
}),
t.d(s, 'green', function() {
return C;
}),
t.d(s, 'lightGreen', function() {
return w;
}),
t.d(s, 'lime', function() {
return T;
}),
t.d(s, 'yellow', function() {
return F;
}),
t.d(s, 'amber', function() {
return E;
}),
t.d(s, 'orange', function() {
return D;
}),
t.d(s, 'deepOrange', function() {
return O;
}),
t.d(s, 'brown', function() {
return I;
}),
t.d(s, 'grey', function() {
return P;
}),
t.d(s, 'blueGrey', function() {
return M;
}),
t.d(s, 'darkText', function() {
return A;
}),
t.d(s, 'lightText', function() {
return x;
}),
t.d(s, 'darkIcons', function() {
return h;
}),
t.d(s, 'lightIcons', function() {
return d;
}),
t.d(s, 'white', function() {
return v;
}),
t.d(s, 'black', function() {
return S;
});
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',
},
u = {
'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',
},
n = {
'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',
},
m = {
'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',
},
p = {
'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',
},
C = {
'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',
},
w = {
'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',
},
T = {
'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',
},
F = {
'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',
},
E = {
'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',
},
D = {
'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',
},
O = {
'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',
},
P = {
'50': '#fafafa',
'100': '#f5f5f5',
'200': '#eeeeee',
'300': '#e0e0e0',
'400': '#bdbdbd',
'500': '#9e9e9e',
'600': '#757575',
'700': '#616161',
'800': '#424242',
'900': '#212121',
},
M = {
'50': '#eceff1',
'100': '#cfd8dc',
'200': '#b0bec5',
'300': '#90a4ae',
'400': '#78909c',
'500': '#607d8b',
'600': '#546e7a',
'700': '#455a64',
'800': '#37474f',
'900': '#263238',
},
A = {
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)',
},
x = {
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)' },
d = { active: 'rgba(255, 255, 255, 1)', inactive: 'rgba(255, 255, 255, 0.5)' },
v = '#ffffff',
S = '#000000';
s.default = {
red: r,
pink: u,
purple: o,
deepPurple: a,
indigo: n,
blue: e,
lightBlue: g,
cyan: m,
teal: p,
green: C,
lightGreen: w,
lime: T,
yellow: F,
amber: E,
orange: D,
deepOrange: O,
brown: I,
grey: P,
blueGrey: M,
darkText: A,
lightText: x,
darkIcons: h,
lightIcons: d,
white: v,
black: S,
};
},
wPlo: function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return r;
});
var r = 'RC_SELECT_INTERNAL_PROPS_MARK';
},
wSlI: function(U, s, t) {
'use strict';
t.d(s, 'b', function() {
return r;
}),
t.d(s, 'a', function() {
return u;
});
function r(o, a, n) {
var e = n.getRegistry(),
g = e.addTarget(o, a);
return [
g,
function() {
return e.removeTarget(g);
},
];
}
function u(o, a, n) {
var e = n.getRegistry(),
g = e.addSource(o, a);
return [
g,
function() {
return e.removeSource(g);
},
];
}
},
wU8J: function(U, s) {
function t() {
(this.buffer = new Array()), (this.length = 0);
}
(t.prototype = {
get: function(u) {
var o = Math.floor(u / 8);
return ((this.buffer[o] >>> (7 - (u % 8))) & 1) == 1;
},
put: function(u, o) {
for (var a = 0; a < o; a++) this.putBit(((u >>> (o - a - 1)) & 1) == 1);
},
getLengthInBits: function() {
return this.length;
},
putBit: function(u) {
var o = Math.floor(this.length / 8);
this.buffer.length <= o && this.buffer.push(0),
u && (this.buffer[o] |= 128 >>> this.length % 8),
this.length++;
},
}),
(U.exports = t);
},
wWDZ: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'RobotOutlined';
var e = (s.a = r.forwardRef(n));
},
wXyp: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('ygfH')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'CheckOutlined';
var g = o.forwardRef(e);
s.default = g;
},
wYeT: function(U, s, t) {
'use strict';
t('1Ywk'), t('wvkp'), t('ZhJW');
},
wclG: function(U, s, t) {
var r = t('pFRH'),
u = t('88Gu'),
o = u(r);
U.exports = o;
},
wgjA: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__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',
};
s.default = r;
},
wkyg: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.HuePicker = void 0);
var r =
Object.assign ||
function(D) {
for (var O = 1; O < arguments.length; O++) {
var I = arguments[O];
for (var P in I) Object.prototype.hasOwnProperty.call(I, P) && (D[P] = I[P]);
}
return D;
},
u = t('q1tI'),
o = F(u),
a = t('17x9'),
n = F(a),
e = t('/FUP'),
g = F(e),
m = t('QkVN'),
p = F(m),
C = t('TM95'),
w = t('trA2'),
T = F(w);
function F(D) {
return D && D.__esModule ? D : { default: D };
}
var E = (s.HuePicker = function(O) {
var I = O.width,
P = O.height,
M = O.onChange,
A = O.hsl,
x = O.direction,
h = O.pointer,
d = O.styles,
v = d === void 0 ? {} : d,
S = O.className,
N = S === void 0 ? '' : S,
R = (0, g.default)(
(0, p.default)(
{
default: {
picker: { position: 'relative', width: I, height: P },
hue: { radius: '2px' },
},
},
v,
),
),
_ = function(K) {
return M({ a: 1, h: K.h, l: 0.5, s: 1 });
};
return o.default.createElement(
'div',
{ style: R.picker, className: 'hue-picker ' + N },
o.default.createElement(
C.Hue,
r({}, R.hue, { hsl: A, pointer: h, onChange: _, direction: x }),
),
);
});
(E.propTypes = { styles: n.default.object }),
(E.defaultProps = {
width: '316px',
height: '16px',
direction: 'horizontal',
pointer: T.default,
styles: {},
}),
(s.default = (0, C.ColorWrap)(E));
},
wlus: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'MinusCircleOutlined';
var e = (s.a = r.forwardRef(n));
},
wrZu: function(U, s, t) {
var r = t('+K+b'),
u = t('XYm9'),
o = t('b2z7'),
a = t('otv/'),
n = t('yP5f'),
e = '[object Boolean]',
g = '[object Date]',
m = '[object Map]',
p = '[object Number]',
C = '[object RegExp]',
w = '[object Set]',
T = '[object String]',
F = '[object Symbol]',
E = '[object ArrayBuffer]',
D = '[object DataView]',
O = '[object Float32Array]',
I = '[object Float64Array]',
P = '[object Int8Array]',
M = '[object Int16Array]',
A = '[object Int32Array]',
x = '[object Uint8Array]',
h = '[object Uint8ClampedArray]',
d = '[object Uint16Array]',
v = '[object Uint32Array]';
function S(N, R, _) {
var W = N.constructor;
switch (R) {
case E:
return r(N);
case e:
case g:
return new W(+N);
case D:
return u(N, _);
case O:
case I:
case P:
case M:
case A:
case x:
case h:
case d:
case v:
return n(N, _);
case m:
return new W();
case p:
case T:
return new W(N);
case C:
return o(N);
case w:
return new W();
case F:
return a(N);
}
}
U.exports = S;
},
wvkp: function(U, s, t) {
'use strict';
t('1Ywk'), t('wwx4');
},
wwx4: function(U, s, t) {},
x9r5: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'PieChartOutlined';
var e = (s.a = r.forwardRef(n));
},
xAGQ: function(U, s, t) {
'use strict';
var r = t('xTJ+');
U.exports = function(o, a, n) {
return (
r.forEach(n, function(g) {
o = g(o, a);
}),
o
);
};
},
xDpF: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__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',
};
s.default = r;
},
'xTJ+': function(U, s, t) {
'use strict';
var r = t('HSsa'),
u = Object.prototype.toString;
function o(v) {
return u.call(v) === '[object Array]';
}
function a(v) {
return typeof v == 'undefined';
}
function n(v) {
return (
v !== null &&
!a(v) &&
v.constructor !== null &&
!a(v.constructor) &&
typeof v.constructor.isBuffer == 'function' &&
v.constructor.isBuffer(v)
);
}
function e(v) {
return u.call(v) === '[object ArrayBuffer]';
}
function g(v) {
return typeof FormData != 'undefined' && v instanceof FormData;
}
function m(v) {
var S;
return (
typeof ArrayBuffer != 'undefined' && ArrayBuffer.isView
? (S = ArrayBuffer.isView(v))
: (S = v && v.buffer && v.buffer instanceof ArrayBuffer),
S
);
}
function p(v) {
return typeof v == 'string';
}
function C(v) {
return typeof v == 'number';
}
function w(v) {
return v !== null && typeof v == 'object';
}
function T(v) {
return u.call(v) === '[object Date]';
}
function F(v) {
return u.call(v) === '[object File]';
}
function E(v) {
return u.call(v) === '[object Blob]';
}
function D(v) {
return u.call(v) === '[object Function]';
}
function O(v) {
return w(v) && D(v.pipe);
}
function I(v) {
return typeof URLSearchParams != 'undefined' && v instanceof URLSearchParams;
}
function P(v) {
return v.replace(/^\s*/, '').replace(/\s*$/, '');
}
function M() {
return typeof navigator != 'undefined' &&
(navigator.product === 'ReactNative' ||
navigator.product === 'NativeScript' ||
navigator.product === 'NS')
? !1
: typeof window != 'undefined' && typeof document != 'undefined';
}
function A(v, S) {
if (v === null || typeof v == 'undefined') return;
if ((typeof v != 'object' && (v = [v]), o(v)))
for (var N = 0, R = v.length; N < R; N++) S.call(null, v[N], N, v);
else
for (var _ in v) Object.prototype.hasOwnProperty.call(v, _) && S.call(null, v[_], _, v);
}
function x() {
var v = {};
function S(_, W) {
typeof v[W] == 'object' && typeof _ == 'object' ? (v[W] = x(v[W], _)) : (v[W] = _);
}
for (var N = 0, R = arguments.length; N < R; N++) A(arguments[N], S);
return v;
}
function h() {
var v = {};
function S(_, W) {
typeof v[W] == 'object' && typeof _ == 'object'
? (v[W] = h(v[W], _))
: typeof _ == 'object'
? (v[W] = h({}, _))
: (v[W] = _);
}
for (var N = 0, R = arguments.length; N < R; N++) A(arguments[N], S);
return v;
}
function d(v, S, N) {
return (
A(S, function(_, W) {
N && typeof _ == 'function' ? (v[W] = r(_, N)) : (v[W] = _);
}),
v
);
}
U.exports = {
isArray: o,
isArrayBuffer: e,
isBuffer: n,
isFormData: g,
isArrayBufferView: m,
isString: p,
isNumber: C,
isObject: w,
isUndefined: a,
isDate: T,
isFile: F,
isBlob: E,
isFunction: D,
isStream: O,
isURLSearchParams: I,
isStandardBrowserEnv: M,
forEach: A,
merge: x,
deepMerge: h,
extend: d,
trim: P,
};
},
xYSL: function(U, s) {
function t(r, u) {
return r.has(u);
}
U.exports = t;
},
xbjo: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.CircleSwatch = void 0);
var r = t('q1tI'),
u = e(r),
o = t('/FUP'),
a = e(o),
n = t('TM95');
function e(m) {
return m && m.__esModule ? m : { default: m };
}
var g = (s.CircleSwatch = function(p) {
var C = p.color,
w = p.onClick,
T = p.onSwatchHover,
F = p.hover,
E = p.active,
D = p.circleSize,
O = p.circleSpacing,
I = (0, a.default)(
{
default: {
swatch: {
width: D,
height: D,
marginRight: O,
marginBottom: O,
transform: 'scale(1)',
transition: '100ms transform ease',
},
Swatch: {
borderRadius: '50%',
background: 'transparent',
boxShadow: 'inset 0 0 0 ' + (D / 2 + 1) + 'px ' + C,
transition: '100ms box-shadow ease',
},
},
hover: { swatch: { transform: 'scale(1.2)' } },
active: { Swatch: { boxShadow: 'inset 0 0 0 3px ' + C } },
},
{ hover: F, active: E },
);
return u.default.createElement(
'div',
{ style: I.swatch },
u.default.createElement(n.Swatch, {
style: I.Swatch,
color: C,
onClick: w,
onHover: T,
focusStyle: { boxShadow: I.Swatch.boxShadow + ', 0 0 5px ' + C },
}),
);
});
(g.defaultProps = { circleSize: 28, circleSpacing: 14 }), (s.default = (0, o.handleHover)(g));
},
xc4C: function(U, s, t) {
'use strict';
t.d(s, 'b', function() {
return a;
}),
t.d(s, 'a', function() {
return n;
});
var r = t('ODXe'),
u = t('CJvt'),
o = t('Qi1f');
function a(e) {
var g = Object(o.d)(e),
m = Object(r.a)(g, 2),
p = m[0],
C = m[1];
return u.a.setTwoToneColors({ primaryColor: p, secondaryColor: C });
}
function n() {
var e = u.a.getTwoToneColors();
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
}
},
xkGU: function(U, s, t) {
U.exports = t('bNQv');
},
xocI: function(U, s, t) {
'use strict';
var r = t('CYTE'),
u = t('2NuI'),
o = r.isBrowser('IE <= 9');
function a(n) {
var e,
g = null;
return (
!o &&
document.implementation &&
document.implementation.createHTMLDocument &&
((e = document.implementation.createHTMLDocument('foo')),
e.documentElement || u(!1),
(e.documentElement.innerHTML = n),
(g = e.getElementsByTagName('body')[0])),
g
);
}
U.exports = a;
},
xquA: function(U, s, t) {
U.exports = { posIpt: 'posIpt___1VGib', posItem: 'posItem___wEyth' };
},
'xs/l': function(U, s, t) {
var r = t('TYy9'),
u = t('Ioao'),
o = t('wclG');
function a(n) {
return o(u(n, void 0, r), n + '');
}
U.exports = a;
},
xvlK: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'PlusOutlined';
var e = (s.a = r.forwardRef(n));
},
'y0+3': function(U, s, t) {
'use strict';
t.d(s, 'a', function() {
return F;
});
var r = /margin|padding|width|height|max|min|offset/,
u = { left: !0, top: !0 },
o = { cssFloat: 1, styleFloat: 1, float: 1 };
function a(E) {
return E.nodeType === 1 ? E.ownerDocument.defaultView.getComputedStyle(E, null) : {};
}
function n(E, D, O) {
if (((D = D.toLowerCase()), O === 'auto')) {
if (D === 'height') return E.offsetHeight;
if (D === 'width') return E.offsetWidth;
}
return D in u || (u[D] = r.test(D)), u[D] ? parseFloat(O) || 0 : O;
}
function e(E, D) {
var O = arguments.length,
I = a(E);
return (
(D = o[D] ? ('cssFloat' in E.style ? 'cssFloat' : 'styleFloat') : D),
O === 1 ? I : n(E, D, I[D] || E.style[D])
);
}
function g(E, D, O) {
var I = arguments.length;
if (((D = o[D] ? ('cssFloat' in E.style ? 'cssFloat' : 'styleFloat') : D), I === 3))
return typeof O == 'number' && r.test(D) && (O = ''.concat(O, 'px')), (E.style[D] = O), O;
for (var P in D) D.hasOwnProperty(P) && g(E, P, D[P]);
return a(E);
}
function m(E) {
return E === document.body ? document.documentElement.clientWidth : E.offsetWidth;
}
function p(E) {
return E === document.body
? window.innerHeight || document.documentElement.clientHeight
: E.offsetHeight;
}
function C() {
var E = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth),
D = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
return { width: E, height: D };
}
function w() {
var E = document.documentElement.clientWidth,
D = window.innerHeight || document.documentElement.clientHeight;
return { width: E, height: D };
}
function T() {
return {
scrollLeft: Math.max(document.documentElement.scrollLeft, document.body.scrollLeft),
scrollTop: Math.max(document.documentElement.scrollTop, document.body.scrollTop),
};
}
function F(E) {
var D = E.getBoundingClientRect(),
O = document.documentElement;
return {
left:
D.left +
(window.pageXOffset || O.scrollLeft) -
(O.clientLeft || document.body.clientLeft || 0),
top:
D.top +
(window.pageYOffset || O.scrollTop) -
(O.clientTop || document.body.clientTop || 0),
};
}
},
y1pI: function(U, s, t) {
var r = t('ljhN');
function u(o, a) {
for (var n = o.length; n--; ) if (r(o[n][0], a)) return n;
return -1;
}
U.exports = u;
},
y3Yb: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('HBhm')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'PaperClipOutlined';
var g = o.forwardRef(e);
s.default = g;
},
y8nQ: function(U, s, t) {
'use strict';
var r = t('cIOH'),
u = t('gwTy'),
o = t('FIfw'),
a = t('5Dmo');
},
yATC: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = F(t('/VI/')),
u = F(t('IRIL')),
o = F(t('nPkp')),
a = F(t('9TKp')),
n = F(t('0kd9')),
e = F(t('w3kf')),
g = F(t('Pnnq')),
m = F(t('e2kL')),
p = F(t('gNzn')),
C = F(t('ObLu')),
w = F(t('2N61')),
T = F(t('fJh5'));
function F(D) {
return D && D.__esModule ? D : { default: D };
}
var E = {
locale: 'zh-CN',
ActionSheet: r.default,
Alert: u.default,
Confirm: o.default,
DatePicker: a.default,
DatePickerView: n.default,
DateSelect: e.default,
Picker: g.default,
Pull: m.default,
SearchBar: p.default,
Select: C.default,
Keyboard: w.default,
ImagePreview: T.default,
};
s.default = E;
},
yEr3: function(U, s, t) {
(function(u, o) {
if (!0)
U.exports = o(
t('q1tI'),
t('Psm9'),
t('v83y'),
t('JPcv'),
t('bluE'),
t('i8i4'),
t('6xfc'),
t('H7ev'),
);
else var a, n;
})(window, function(r, u, o, a, n, e, g, m) {
return (function(p) {
var C = {};
function w(T) {
if (C[T]) return C[T].exports;
var F = (C[T] = { i: T, l: !1, exports: {} });
return p[T].call(F.exports, F, F.exports, w), (F.l = !0), F.exports;
}
return (
(w.m = p),
(w.c = C),
(w.d = function(T, F, E) {
w.o(T, F) || Object.defineProperty(T, F, { enumerable: !0, get: E });
}),
(w.r = function(T) {
typeof Symbol != 'undefined' &&
Symbol.toStringTag &&
Object.defineProperty(T, Symbol.toStringTag, { value: 'Module' }),
Object.defineProperty(T, '__esModule', { value: !0 });
}),
(w.t = function(T, F) {
if ((F & 1 && (T = w(T)), F & 8)) return T;
if (F & 4 && typeof T == 'object' && T && T.__esModule) return T;
var E = Object.create(null);
if (
(w.r(E),
Object.defineProperty(E, 'default', { enumerable: !0, value: T }),
F & 2 && typeof T != 'string')
)
for (var D in T)
w.d(
E,
D,
function(O) {
return T[O];
}.bind(null, D),
);
return E;
}),
(w.n = function(T) {
var F =
T && T.__esModule
? function() {
return T.default;
}
: function() {
return T;
};
return w.d(F, 'a', F), F;
}),
(w.o = function(T, F) {
return Object.prototype.hasOwnProperty.call(T, F);
}),
(w.p = '/'),
w((w.s = 39))
);
})([
function(p, C) {
p.exports = r;
},
function(p, C) {
function w(T) {
if (T === void 0)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return T;
}
p.exports = w;
},
function(p, C) {
function w(T, F, E) {
return (
F in T
? Object.defineProperty(T, F, {
value: E,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (T[F] = E),
T
);
}
p.exports = w;
},
function(p, C) {
p.exports = u;
},
function(p, C) {
function w(T, F) {
if (!(T instanceof F)) throw new TypeError('Cannot call a class as a function');
}
p.exports = w;
},
function(p, C, w) {
var T = w(2);
function F(E) {
for (var D = 1; D < arguments.length; D++) {
var O = arguments[D] != null ? arguments[D] : {},
I = Object.keys(O);
typeof Object.getOwnPropertySymbols == 'function' &&
(I = I.concat(
Object.getOwnPropertySymbols(O).filter(function(P) {
return Object.getOwnPropertyDescriptor(O, P).enumerable;
}),
)),
I.forEach(function(P) {
T(E, P, O[P]);
});
}
return E;
}
p.exports = F;
},
function(p, C) {
p.exports = o;
},
function(p, C) {
function w(F, E) {
for (var D = 0; D < E.length; D++) {
var O = E[D];
(O.enumerable = O.enumerable || !1),
(O.configurable = !0),
'value' in O && (O.writable = !0),
Object.defineProperty(F, O.key, O);
}
}
function T(F, E, D) {
return E && w(F.prototype, E), D && w(F, D), F;
}
p.exports = T;
},
function(p, C, w) {
var T = w(15),
F = w(1);
function E(D, O) {
return O && (T(O) === 'object' || typeof O == 'function') ? O : F(D);
}
p.exports = E;
},
function(p, C) {
function w(T) {
return (
(p.exports = w = Object.setPrototypeOf
? Object.getPrototypeOf
: function(E) {
return E.__proto__ || Object.getPrototypeOf(E);
}),
w(T)
);
}
p.exports = w;
},
function(p, C, w) {
var T = w(26);
function F(E, D) {
if (typeof D != 'function' && D !== null)
throw new TypeError('Super expression must either be null or a function');
(E.prototype = Object.create(D && D.prototype, {
constructor: { value: E, writable: !0, configurable: !0 },
})),
D && T(E, D);
}
p.exports = F;
},
function(p, C) {
function w() {
return (
(p.exports = w =
Object.assign ||
function(T) {
for (var F = 1; F < arguments.length; F++) {
var E = arguments[F];
for (var D in E) Object.prototype.hasOwnProperty.call(E, D) && (T[D] = E[D]);
}
return T;
}),
w.apply(this, arguments)
);
}
p.exports = w;
},
function(p, C, w) {
var T = w(27),
F = w(28),
E = w(29);
function D(O) {
return T(O) || F(O) || E();
}
p.exports = D;
},
function(p, C) {
p.exports = a;
},
function(p, C) {
p.exports = n;
},
function(p, C) {
function w(F) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (w = function(D) {
return typeof D;
})
: (w = function(D) {
return D &&
typeof Symbol == 'function' &&
D.constructor === Symbol &&
D !== Symbol.prototype
? 'symbol'
: typeof D;
}),
w(F)
);
}
function T(F) {
return (
typeof Symbol == 'function' && w(Symbol.iterator) === 'symbol'
? (p.exports = T = function(D) {
return w(D);
})
: (p.exports = T = function(D) {
return D &&
typeof Symbol == 'function' &&
D.constructor === Symbol &&
D !== Symbol.prototype
? 'symbol'
: w(D);
}),
T(F)
);
}
p.exports = T;
},
function(p, C) {
p.exports = e;
},
function(p, C) {
p.exports = g;
},
function(p, C, w) {
var T = w(13),
F = '-';
function E(D) {
this.decorators = T.List(D);
}
(E.prototype.getDecorations = function(D) {
var O = Array(D.getText().length).fill(null);
return (
this.decorators.forEach(function(I, P) {
var M = I.getDecorations(D);
M.forEach(function(A, x) {
if (!A) return;
(A = P + F + A), (O[x] = A);
});
}),
T.List(O)
);
}),
(E.prototype.getComponentForKey = function(D) {
var O = this.getDecoratorForKey(D);
return O.getComponentForKey(this.getInnerKey(D));
}),
(E.prototype.getPropsForKey = function(D) {
var O = this.getDecoratorForKey(D);
return O.getPropsForKey(this.getInnerKey(D));
}),
(E.prototype.getDecoratorForKey = function(D) {
var O = D.split(F),
I = Number(O[0]);
return this.decorators.get(I);
}),
(E.prototype.getInnerKey = function(D) {
var O = D.split(F);
return O.slice(1).join(F);
}),
(p.exports = E);
},
function(p, C, w) {
'use strict';
function T(S, N) {
if (!(S instanceof N)) throw new TypeError('Cannot call a class as a function');
}
function F(S, N) {
if (!S)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return N && (typeof N == 'object' || typeof N == 'function') ? N : S;
}
function E(S, N) {
if (typeof N != 'function' && N !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof N,
);
(S.prototype = Object.create(N && N.prototype, {
constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 },
})),
N && (Object.setPrototypeOf ? Object.setPrototypeOf(S, N) : (S.__proto__ = N));
}
var D = w(13),
O = D.Map,
I = D.OrderedSet,
P = D.Record,
M = I(),
A = { style: M, entity: null },
x = P(A),
h = (function(S) {
E(N, S);
function N() {
return T(this, N), F(this, S.apply(this, arguments));
}
return (
(N.prototype.getStyle = function() {
return this.get('style');
}),
(N.prototype.getEntity = function() {
return this.get('entity');
}),
(N.prototype.hasStyle = function(_) {
return this.getStyle().includes(_);
}),
(N.applyStyle = function(_, W) {
var K = _.set('style', _.getStyle().add(W));
return N.create(K);
}),
(N.removeStyle = function(_, W) {
var K = _.set('style', _.getStyle().remove(W));
return N.create(K);
}),
(N.applyEntity = function(_, W) {
var K = _.getEntity() === W ? _ : _.set('entity', W);
return N.create(K);
}),
(N.create = function(_) {
if (!_) return d;
var W = { style: M, entity: null },
K = O(W).merge(_),
Z = v.get(K);
if (Z) return Z;
var ee = new N(K);
return (v = v.set(K, ee)), ee;
}),
N
);
})(x),
d = new h(),
v = O([[O(A), d]]);
(h.EMPTY = d), (p.exports = h);
},
function(p, C, w) {
'use strict';
function T(F, E, D, O) {
if (!F.size) return;
var I = 0;
F.reduce(function(P, M, A) {
return E(P, M) || (D(P) && O(I, A), (I = A)), M;
}),
D(F.last()) && O(I, F.count());
}
p.exports = T;
},
function(p, C, w) {
var T = w(25);
function F(E, D) {
if (E == null) return {};
var O = T(E, D),
I,
P;
if (Object.getOwnPropertySymbols) {
var M = Object.getOwnPropertySymbols(E);
for (P = 0; P < M.length; P++) {
if (((I = M[P]), D.indexOf(I) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(E, I)) continue;
O[I] = E[I];
}
}
return O;
}
p.exports = F;
},
function(p, C, w) {
'use strict';
var T = w(30);
function F(E) {
var D = E.getSelection();
return D.isCollapsed() ? null : T(E.getCurrentContent(), D);
}
p.exports = F;
},
function(p, C) {
p.exports = m;
},
function(p, C, w) {
var T = w(36),
F = w(37),
E = w(38);
function D(O, I) {
return T(O) || F(O, I) || E();
}
p.exports = D;
},
function(p, C) {
function w(T, F) {
if (T == null) return {};
var E = {},
D = Object.keys(T),
O,
I;
for (I = 0; I < D.length; I++) {
if (((O = D[I]), F.indexOf(O) >= 0)) continue;
E[O] = T[O];
}
return E;
}
p.exports = w;
},
function(p, C) {
function w(T, F) {
return (
(p.exports = w =
Object.setPrototypeOf ||
function(D, O) {
return (D.__proto__ = O), D;
}),
w(T, F)
);
}
p.exports = w;
},
function(p, C) {
function w(T) {
if (Array.isArray(T)) {
for (var F = 0, E = new Array(T.length); F < T.length; F++) E[F] = T[F];
return E;
}
}
p.exports = w;
},
function(p, C) {
function w(T) {
if (
Symbol.iterator in Object(T) ||
Object.prototype.toString.call(T) === '[object Arguments]'
)
return Array.from(T);
}
p.exports = w;
},
function(p, C) {
function w() {
throw new TypeError('Invalid attempt to spread non-iterable instance');
}
p.exports = w;
},
function(p, C, w) {
'use strict';
var T = w(31),
F = w(34),
E = function(O, I) {
var P = I.getStartKey(),
M = I.getStartOffset(),
A = I.getEndKey(),
x = I.getEndOffset(),
h = F(O, I),
d = h.getBlockMap(),
v = d.keySeq(),
S = v.indexOf(P),
N = v.indexOf(A) + 1;
return T(
d.slice(S, N).map(function(R, _) {
var W = R.getText(),
K = R.getCharacterList();
return P === A
? R.merge({ text: W.slice(M, x), characterList: K.slice(M, x) })
: _ === P
? R.merge({ text: W.slice(M), characterList: K.slice(M) })
: _ === A
? R.merge({ text: W.slice(0, x), characterList: K.slice(0, x) })
: R;
}),
);
};
p.exports = E;
},
function(p, C, w) {
'use strict';
var T = w(32),
F = w(13),
E = w(33),
D = F.OrderedMap,
O = function(A) {
var x = {},
h = void 0;
return D(
A.withMutations(function(d) {
d.forEach(function(v, S) {
var N = v.getKey(),
R = v.getNextSiblingKey(),
_ = v.getPrevSiblingKey(),
W = v.getChildKeys(),
K = v.getParentKey(),
Z = E();
if (((x[N] = Z), R)) {
var ee = d.get(R);
ee ? d.setIn([R, 'prevSibling'], Z) : d.setIn([N, 'nextSibling'], null);
}
if (_) {
var ne = d.get(_);
ne ? d.setIn([_, 'nextSibling'], Z) : d.setIn([N, 'prevSibling'], null);
}
if (K && d.get(K)) {
var ue = d.get(K),
Ee = ue.getChildKeys();
d.setIn([K, 'children'], Ee.set(Ee.indexOf(v.getKey()), Z));
} else d.setIn([N, 'parent'], null), h && (d.setIn([h.getKey(), 'nextSibling'], Z), d.setIn([N, 'prevSibling'], x[h.getKey()])), (h = d.get(N));
W.forEach(function(ce) {
var Q = d.get(ce);
Q
? d.setIn([ce, 'parent'], Z)
: d.setIn(
[N, 'children'],
v.getChildKeys().filter(function(le) {
return le !== ce;
}),
);
});
});
})
.toArray()
.map(function(d) {
return [x[d.getKey()], d.set('key', x[d.getKey()])];
}),
);
},
I = function(A) {
return D(
A.toArray().map(function(x) {
var h = E();
return [h, x.set('key', h)];
}),
);
},
P = function(A) {
var x = A.first() instanceof T;
return x ? O(A) : I(A);
};
p.exports = P;
},
function(p, C, w) {
'use strict';
function T(W, K) {
if (!(W instanceof K)) throw new TypeError('Cannot call a class as a function');
}
function F(W, K) {
if (!W)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called",
);
return K && (typeof K == 'object' || typeof K == 'function') ? K : W;
}
function E(W, K) {
if (typeof K != 'function' && K !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof K,
);
(W.prototype = Object.create(K && K.prototype, {
constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 },
})),
K && (Object.setPrototypeOf ? Object.setPrototypeOf(W, K) : (W.__proto__ = K));
}
var D = w(19),
O = w(13),
I = w(20),
P = O.List,
M = O.Map,
A = O.OrderedSet,
x = O.Record,
h = O.Repeat,
d = A(),
v = {
parent: null,
characterList: P(),
data: M(),
depth: 0,
key: '',
text: '',
type: 'unstyled',
children: P(),
prevSibling: null,
nextSibling: null,
},
S = function(K, Z) {
return K.getStyle() === Z.getStyle();
},
N = function(K, Z) {
return K.getEntity() === Z.getEntity();
},
R = function(K) {
if (!K) return K;
var Z = K.characterList,
ee = K.text;
return ee && !Z && (K.characterList = P(h(D.EMPTY, ee.length))), K;
},
_ = (function(W) {
E(K, W);
function K() {
var Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v;
return T(this, K), F(this, W.call(this, R(Z)));
}
return (
(K.prototype.getKey = function() {
return this.get('key');
}),
(K.prototype.getType = function() {
return this.get('type');
}),
(K.prototype.getText = function() {
return this.get('text');
}),
(K.prototype.getCharacterList = function() {
return this.get('characterList');
}),
(K.prototype.getLength = function() {
return this.getText().length;
}),
(K.prototype.getDepth = function() {
return this.get('depth');
}),
(K.prototype.getData = function() {
return this.get('data');
}),
(K.prototype.getInlineStyleAt = function(ee) {
var ne = this.getCharacterList().get(ee);
return ne ? ne.getStyle() : d;
}),
(K.prototype.getEntityAt = function(ee) {
var ne = this.getCharacterList().get(ee);
return ne ? ne.getEntity() : null;
}),
(K.prototype.getChildKeys = function() {
return this.get('children');
}),
(K.prototype.getParentKey = function() {
return this.get('parent');
}),
(K.prototype.getPrevSiblingKey = function() {
return this.get('prevSibling');
}),
(K.prototype.getNextSiblingKey = function() {
return this.get('nextSibling');
}),
(K.prototype.findStyleRanges = function(ee, ne) {
I(this.getCharacterList(), S, ee, ne);
}),
(K.prototype.findEntityRanges = function(ee, ne) {
I(this.getCharacterList(), N, ee, ne);
}),
K
);
})(x(v));
p.exports = _;
},
function(p, C, w) {
'use strict';
var T = {},
F = Math.pow(2, 24);
function E() {
for (var D = void 0; D === void 0 || T.hasOwnProperty(D) || !isNaN(+D); )
D = Math.floor(Math.random() * F).toString(32);
return (T[D] = !0), D;
}
p.exports = E;
},
function(p, C, w) {
'use strict';
var T = w(19),
F = w(20),
E = w(35);
function D(P, M) {
var A = P.getBlockMap(),
x = P.getEntityMap(),
h = {},
d = M.getStartKey(),
v = M.getStartOffset(),
S = A.get(d),
N = I(x, S, v);
N !== S && (h[d] = N);
var R = M.getEndKey(),
_ = M.getEndOffset(),
W = A.get(R);
d === R && (W = N);
var K = I(x, W, _);
return (
K !== W && (h[R] = K),
Object.keys(h).length
? P.merge({ blockMap: A.merge(h), selectionAfter: M })
: P.set('selectionAfter', M)
);
}
function O(P, M, A) {
var x;
return (
F(
P,
function(h, d) {
return h.getEntity() === d.getEntity();
},
function(h) {
return h.getEntity() === M;
},
function(h, d) {
h <= A && d >= A && (x = { start: h, end: d });
},
),
typeof x == 'object' || E(!1),
x
);
}
function I(P, M, A) {
var x = M.getCharacterList(),
h = A > 0 ? x.get(A - 1) : void 0,
d = A < x.count() ? x.get(A) : void 0,
v = h ? h.getEntity() : void 0,
S = d ? d.getEntity() : void 0;
if (S && S === v) {
var N = P.__get(S);
if (N.getMutability() !== 'MUTABLE') {
for (var R = O(x, S, A), _ = R.start, W = R.end, K; _ < W; )
(K = x.get(_)), (x = x.set(_, T.applyEntity(K, null))), _++;
return M.set('characterList', x);
}
}
return M;
}
p.exports = D;
},
function(p, C, w) {
'use strict';
var T = function(D) {};
function F(E, D, O, I, P, M, A, x) {
if ((T(D), !E)) {
var h;
if (D === 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 d = [O, I, P, M, A, x],
v = 0;
(h = new Error(
D.replace(/%s/g, function() {
return d[v++];
}),
)),
(h.name = 'Invariant Violation');
}
throw ((h.framesToPop = 1), h);
}
}
p.exports = F;
},
function(p, C) {
function w(T) {
if (Array.isArray(T)) return T;
}
p.exports = w;
},
function(p, C) {
function w(T, F) {
var E = [],
D = !0,
O = !1,
I = void 0;
try {
for (
var P = T[Symbol.iterator](), M;
!(D = (M = P.next()).done) && !(E.push(M.value), F && E.length === F);
D = !0
);
} catch (A) {
(O = !0), (I = A);
} finally {
try {
!D && P.return != null && P.return();
} finally {
if (O) throw I;
}
}
return E;
}
p.exports = w;
},
function(p, C) {
function w() {
throw new TypeError('Invalid attempt to destructure non-iterable instance');
}
p.exports = w;
},
function(p, C, w) {
'use strict';
w.r(C);
var T = w(15),
F = w.n(T),
E = w(5),
D = w.n(E),
O = w(21),
I = w.n(O),
P = w(4),
M = w.n(P),
A = w(7),
x = w.n(A),
h = w(8),
d = w.n(h),
v = w(9),
S = w.n(v),
N = w(1),
R = w.n(N),
_ = w(10),
W = w.n(_),
K = w(2),
Z = w.n(K),
ee = w(12),
ne = w.n(ee),
ue = w(40),
Ee = w(42),
ce = w(0),
Q = w.n(ce),
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: '嵌入式媒体' },
},
ae = {
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: '嵌入式媒體' },
},
fe = {
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' },
},
Te = {
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: '임베디드미디어',
},
},
we = {
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' },
},
Le = {
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: 'Встроенное' },
},
Me = {
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é' },
},
ze = {
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',
},
},
Ue = {
en: le,
zh: J,
'zh-hant': ae,
pl: fe,
kr: Te,
tr: we,
jpn: Le,
ru: qe,
fr: Me,
'pt-br': ze,
'vi-vn': Xe,
},
Et = w(17),
_t = w.n(Et),
Pt = w(3),
Wt = w(6),
Kt = w(13),
Ge = w.n(Kt),
de = function(He) {
return function(pt) {
return pt.keyCode === 83 &&
(Wt.KeyBindingUtil.hasCommandModifier(pt) ||
Wt.KeyBindingUtil.isCtrlKeyCommand(pt))
? 'braft-save'
: (He && He(pt)) || Object(Wt.getDefaultKeyBinding)(pt);
};
},
oe = {
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(He, pt) {
return pt === 'line-height' ? He : ''.concat(He, '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,
},
Fe = w(22),
Je = w.n(Fe),
rt = w(23),
yt = function(He, pt, ie) {
if (
ie.editorProps.handleKeyCommand &&
ie.editorProps.handleKeyCommand(He, pt, ie) === 'handled'
)
return 'handled';
if (He === 'braft-save')
return ie.editorProps.onSave && ie.editorProps.onSave(pt), 'handled';
var gt = ie.editorProps,
mt = gt.controls,
Ut = gt.excludeControls,
Dt =
(mt.indexOf('text-indent') !== 0 ||
mt.find(function(Pa) {
return Pa.key === 'text-indent';
})) &&
Ut.indexOf('text-indent') === -1,
Fn = pt.getSelection().getStartOffset(),
qn = pt.getSelection().getEndOffset(),
Ar = Fn === 0 && qn === 0;
if (He === 'backspace') {
if (ie.editorProps.onDelete && ie.editorProps.onDelete(pt) === !1)
return 'handled';
var xr = Pt.ContentUtils.getSelectionBlockType(pt);
Dt &&
Ar &&
xr !== 'code-block' &&
ie.setValue(Pt.ContentUtils.decreaseSelectionIndent(pt));
}
if (He === 'tab') {
var Xr = Pt.ContentUtils.getSelectionBlockType(pt);
if (Xr === 'code-block')
return (
ie.setValue(
Pt.ContentUtils.insertText(pt, ' '.repeat(ie.editorProps.codeTabIndents)),
),
'handled'
);
if (Xr === 'ordered-list-item' || Xr === 'unordered-list-item') {
var sa = Wt.RichUtils.onTab(event, pt, 4);
return sa !== pt && ie.setValue(sa), 'handled';
} else if (Xr !== 'atomic' && Dt && Ar)
return ie.setValue(Pt.ContentUtils.increaseSelectionIndent(pt)), 'handled';
}
var Da = Pt.ContentUtils.handleKeyCommand(pt, He);
return Da ? (ie.setValue(Da), 'handled') : 'not-handled';
},
an = function(He, pt, ie) {
if (
ie.editorProps.handleReturn &&
ie.editorProps.handleReturn(He, pt, ie) === 'handled'
)
return 'handled';
var gt = Pt.ContentUtils.getSelectionBlock(pt),
mt = gt.getType();
if (mt === 'unordered-list-item' || mt === 'ordered-list-item')
return gt.getLength() === 0
? (ie.setValue(Pt.ContentUtils.toggleSelectionBlockType(pt, 'unstyled')),
'handled')
: 'not-handled';
if (mt === 'code-block')
return He.which === 13 &&
(He.getModifierState('Shift') ||
He.getModifierState('Alt') ||
He.getModifierState('Control'))
? (ie.setValue(Pt.ContentUtils.toggleSelectionBlockType(pt, 'unstyled')),
'handled')
: 'not-handled';
if (mt === 'blockquote' && He.which === 13)
if (
He.getModifierState('Shift') ||
He.getModifierState('Alt') ||
He.getModifierState('Control')
)
He.which = 0;
else return ie.setValue(Wt.RichUtils.insertSoftNewline(pt)), 'handled';
var Ut = Object(rt.handleNewLine)(pt, He);
return Ut ? (ie.setValue(Ut), 'handled') : 'not-handled';
},
Xt = function(He, pt, ie) {
return ie.editorProps.handleBeforeInput &&
ie.editorProps.handleBeforeInput(He, pt, ie) === 'handled'
? 'handled'
: 'not-handled';
},
Ct = function(He, pt) {
var ie = pt.state.editorState,
gt = Pt.ContentUtils.getSelectedBlocks(ie);
if (gt && gt.length > 1) {
var mt = Wt.EditorState.push(
ie,
Wt.Modifier.removeRange(ie.getCurrentContent(), ie.getSelection(), 'backward'),
'remove-range',
);
pt.setValue(mt);
}
},
Gt = function(He, pt, ie) {
if (ie.editorProps.readOnly || ie.editorProps.disabled) return 'handled';
if (window && window.__BRAFT_DRAGING__IMAGE__) {
var gt = Wt.EditorState.forceSelection(ie.state.editorState, He);
return (
(gt = Pt.ContentUtils.insertMedias(gt, [
window.__BRAFT_DRAGING__IMAGE__.mediaData,
])),
(gt = Pt.ContentUtils.removeBlock(
gt,
window.__BRAFT_DRAGING__IMAGE__.block,
gt.getSelection(),
)),
(window.__BRAFT_DRAGING__IMAGE__ = null),
ie.lockOrUnlockEditor(!0),
ie.setValue(gt),
'handled'
);
} else if (!pt || !pt.getText()) return 'handled';
return 'not-handled';
},
Yt = function(He, pt) {
var ie = D()({}, pt.constructor.defaultProps.media, pt.editorProps.media),
gt = ie.pasteImage,
mt = ie.validateFn,
Ut = ie.imagePasteLimit;
return (
gt &&
He.slice(0, Ut).forEach(function(Dt) {
if (Dt && Dt.type.indexOf('image') > -1 && pt.braftFinder) {
var Fn = mt ? mt(Dt) : !0;
Fn instanceof Promise
? Fn.then(function() {
pt.braftFinder.uploadImage(Dt, function(qn) {
pt.isLiving &&
pt.setValue(
Pt.ContentUtils.insertMedias(pt.state.editorState, [qn]),
);
});
})
: Fn &&
pt.braftFinder.uploadImage(Dt, function(qn) {
pt.isLiving &&
pt.setValue(
Pt.ContentUtils.insertMedias(pt.state.editorState, [qn]),
);
});
}
}),
He[0] && He[0].type.indexOf('image') > -1 && gt ? 'handled' : 'not-handled'
);
},
en = function(He, pt, ie) {
return ie.editorProps.handleDroppedFiles &&
ie.editorProps.handleDroppedFiles(He, pt, ie) === 'handled'
? 'handled'
: Yt(pt, ie);
},
xn = function(He, pt) {
return pt.editorProps.handlePastedFiles &&
pt.editorProps.handlePastedFiles(He, pt) === 'handled'
? 'handled'
: Yt(He, pt);
},
qt = function(He, pt) {
var ie = Je()(pt.state.editorState);
if (ie && ie.toArray)
try {
var gt = Wt.ContentState.createFromBlockArray(ie.toArray()),
mt = Wt.EditorState.createWithContent(gt),
Ut =
He.clipboardData || window.clipboardData || He.originalEvent.clipboardData;
mt.setConvertOptions(pt.state.editorState.convertOptions),
Ut.setData('text/html', mt.toHTML()),
Ut.setData('text/plain', mt.toText()),
He.preventDefault();
} catch (Dt) {
console.warn(Dt);
}
},
Pn = function(He, pt, ie, gt) {
if (
gt.editorProps.handlePastedText &&
gt.editorProps.handlePastedText(He, pt, ie, gt) === 'handled'
)
return 'handled';
if (!pt || gt.editorProps.stripPastedStyles) return !1;
var mt = Pt.ColorUtils.detectColorsFromHTMLString(pt);
return (
gt.setState(
{
tempColors: []
.concat(ne()(gt.state.tempColors), ne()(mt))
.filter(function(Ut) {
return gt.editorProps.colors.indexOf(Ut) === -1;
})
.filter(function(Ut, Dt, Fn) {
return Fn.indexOf(Ut) === Dt;
}),
},
function() {
gt.setValue(Pt.ContentUtils.insertHTML(ie, pt, 'paste'));
},
),
'handled'
);
},
Vn = [],
Bn = [],
ir = [],
We = [],
ve = [],
Oe = [],
_e = [],
be = [],
Ae = [],
ge = [],
Ke = [],
Se = [],
Ne = function(He, pt) {
return pt
? He.map(function(ie) {
return !ie.includeEditors && !ie.excludeEditors
? ie.data
: ie.includeEditors
? ie.includeEditors.indexOf(pt) !== -1
? ie.data
: !1
: ie.excludeEditors
? ie.excludeEditors.indexOf(pt) !== -1
? !1
: ie.data
: !1;
}).filter(function(ie) {
return ie;
})
: He.filter(function(ie) {
return !ie.includeEditors;
}).map(function(ie) {
return ie.data;
});
},
Ve = function(He) {
return Ne(ir, He);
},
Ce = function(He) {
return Ne(Vn, He);
},
Tt = function(He) {
return Ne(Bn, He, 'decorators');
},
kt = function(He) {
return Ne(We, He);
},
se = function(He) {
return Ne(ve, He);
},
ut = function(He) {
var pt = {};
return (
Ne(Oe, He).forEach(function(ie) {
pt[ie.inlineStyleName] = ie.styleMap;
}),
pt
);
},
ot = function(He) {
return Ne(_e, He);
},
ke = function(He, pt) {
return function(ie, gt, mt) {
return (
Ne(Ae, pt).forEach(function(Ut) {
Ut.importer && Ut.importer(ie, gt) && (mt = mt.add(Ut.inlineStyleName));
}),
He ? He(ie, gt, mt) : mt
);
};
},
st = function(He, pt) {
return function(ie) {
ie = ie.toUpperCase();
var gt = He ? He(ie) : void 0;
return (
gt ||
(Ne(ge, pt).find(function(mt) {
if (mt.inlineStyleName === ie) return (gt = mt.exporter), !0;
}),
gt)
);
};
},
Lt = function(He, pt) {
return function(ie, gt, mt, Ut) {
var Dt = He ? He(ie, gt, mt, Ut) : null;
return (
Dt ||
(Ne(be, pt).find(function(Fn) {
var qn = Fn.importer ? Fn.importer(ie, gt, Ut) : null;
return (
qn && (Dt = mt(Fn.entityType, qn.mutability || 'MUTABLE', qn.data || {})),
!!qn
);
}),
Dt)
);
};
},
un = function(He, pt) {
return function(ie, gt) {
var mt = He ? He(ie, gt) : void 0;
if (mt) return mt;
var Ut = ie.type.toUpperCase();
return (
Ne(be, pt).find(function(Dt) {
if (Dt.entityType === Ut)
return (mt = Dt.exporter ? Dt.exporter(ie, gt) : void 0), !0;
}),
mt
);
};
},
In = function(He, pt) {
return function(ie, gt, mt) {
var Ut = He ? He(ie, gt, mt) : null;
return (
Ut ||
(Ne(Ke, pt).find(function(Dt) {
var Fn = Dt.importer ? Dt.importer(ie, gt, mt) : void 0;
return Fn && (Ut = Fn), !!Fn;
}),
Ut)
);
};
},
tr = function(He, pt) {
return function(ie, gt) {
var mt = He ? He(ie, gt) : null;
return (
mt ||
(Ne(Se, pt).find(function(Ut) {
var Dt = Ut.exporter ? Ut.exporter(ie, gt) : void 0;
return Dt && (mt = Dt), !!Dt;
}),
mt)
);
};
},
pr = function Ln(He) {
if (He instanceof Array) return He.forEach(Ln), !1;
if (!He || !He.type || typeof He.type != 'string') return !1;
var pt = He.includeEditors,
ie = He.excludeEditors;
if (He.type === 'control')
Vn.push({ includeEditors: pt, excludeEditors: ie, data: He.control });
else if (He.type === 'inline-style') {
var gt = He.name.toUpperCase();
He.control &&
Vn.push({
includeEditors: pt,
excludeEditors: ie,
data: D()({ key: gt, type: 'inline-style', command: gt }, He.control),
}),
He.style &&
Oe.push({
includeEditors: pt,
excludeEditors: ie,
data: { inlineStyleName: gt, styleMap: He.style },
}),
He.styleFn &&
_e.push({
includeEditors: pt,
excludeEditors: ie,
data: { inlineStyleName: gt, styleFn: He.styleFn },
}),
He.importer &&
Ae.push({
includeEditors: pt,
excludeEditors: ie,
data: { inlineStyleName: gt, importer: He.importer },
}),
ge.push({
includeEditors: pt,
excludeEditors: ie,
data: {
inlineStyleName: gt,
exporter: He.exporter
? He.exporter(He)
: Q.a.createElement('span', { style: He.style }),
},
});
} else if (!(He.type === 'block-style')) {
if (He.type === 'entity') {
var mt = He.name.toUpperCase();
He.control &&
Vn.push({
includeEditors: pt,
excludeEditors: ie,
data:
typeof He.control == 'function'
? He.control
: D()(
{
key: mt,
type: 'entity',
command: mt,
data: {
mutability: He.mutability || 'MUTABLE',
data: He.data || {},
},
},
He.control,
),
}),
be.push({
includeEditors: pt,
excludeEditors: ie,
data: { entityType: mt, importer: He.importer, exporter: He.exporter },
}),
Bn.push({
includeEditors: pt,
excludeEditors: ie,
data: { type: 'entity', decorator: { key: mt, component: He.component } },
});
} else if (He.type === 'block') {
var Ut = He.name;
He.renderMap &&
We.push({
includeEditors: pt,
excludeEditors: ie,
data: { blockType: Ut, renderMap: He.renderMap },
}),
He.rendererFn &&
ve.push({
includeEditors: pt,
excludeEditors: ie,
data: { blockType: Ut, rendererFn: He.rendererFn },
}),
He.importer &&
Ke.push({
includeEditors: pt,
excludeEditors: ie,
data: { blockType: Ut, importer: He.importer },
}),
He.exporter &&
Se.push({
includeEditors: pt,
excludeEditors: ie,
data: { blockType: Ut, exporter: He.exporter },
});
} else if (!(He.type === 'atomic'))
if (He.type === 'decorator') {
var Dt = He.decorator;
Dt && Dt.strategy && Dt.component
? Bn.push({
includeEditors: pt,
excludeEditors: ie,
data: { type: 'strategy', decorator: Dt },
})
: Dt &&
Dt.getDecorations &&
Bn.push({
includeEditors: pt,
excludeEditors: ie,
data: { type: 'class', decorator: Dt },
});
} else
He.type === 'prop-interception' &&
ir.push({ includeEditors: pt, excludeEditors: ie, data: He.interceptor });
}
},
cr = function(He) {
return (He.use = pr), He;
},
on = function(He, pt) {
var ie = Object(Kt.Map)({
atomic: { element: '' },
'code-block': {
element: 'code',
wrapper: Q.a.createElement('pre', { className: 'braft-code-block' }),
},
});
try {
var gt = kt(He.editorId);
(ie = gt.reduce(function(mt, Ut) {
return mt.merge(
typeof Ut.renderMap == 'function' ? Ut.renderMap(He) : Ut.renderMap,
);
}, ie)),
pt && (typeof pt == 'function' ? (ie = ie.merge(pt(He))) : (ie = ie.merge(pt))),
(ie = Wt.DefaultDraftBlockRenderMap.merge(ie));
} catch (mt) {
console.warn(mt);
}
return ie;
},
Qe = w(11),
lt = w.n(Qe),
vt = w(24),
Be = w.n(vt),
at = w(45),
Ft = w(46),
tn = function(He) {
var pt = He.active,
ie = He.onClick,
gt = He.className;
return Q.a.createElement('div', {
onClick: function() {
return ie();
},
className: 'bf-switch ' + gt + (pt ? ' active' : ''),
});
},
jn = function(He, pt) {
return [
{
key: 'undo',
title: He.controls.undo,
text: Q.a.createElement('i', { className: 'bfi-undo' }),
type: 'editor-method',
command: 'undo',
},
{
key: 'redo',
title: He.controls.redo,
text: Q.a.createElement('i', { className: 'bfi-redo' }),
type: 'editor-method',
command: 'redo',
},
{
key: 'remove-styles',
title: He.controls.removeStyles,
text: Q.a.createElement('i', { className: 'bfi-format_clear' }),
type: 'editor-method',
command: 'removeSelectionInlineStyles',
},
{
key: 'hr',
title: He.controls.hr,
text: Q.a.createElement('i', { className: 'bfi-hr' }),
type: 'editor-method',
command: 'insertHorizontalLine',
},
{
key: 'bold',
title: He.controls.bold,
text: Q.a.createElement('i', { className: 'bfi-bold' }),
type: 'inline-style',
command: 'bold',
},
{
key: 'italic',
title: He.controls.italic,
text: Q.a.createElement('i', { className: 'bfi-italic' }),
type: 'inline-style',
command: 'italic',
},
{
key: 'underline',
title: He.controls.underline,
text: Q.a.createElement('i', { className: 'bfi-underlined' }),
type: 'inline-style',
command: 'underline',
},
{
key: 'strike-through',
title: He.controls.strikeThrough,
text: Q.a.createElement('i', { className: 'bfi-strikethrough' }),
type: 'inline-style',
command: 'strikethrough',
},
{
key: 'superscript',
title: He.controls.superScript,
text: Q.a.createElement('i', { className: 'bfi-superscript' }),
type: 'inline-style',
command: 'superscript',
},
{
key: 'subscript',
title: He.controls.subScript,
text: Q.a.createElement('i', { className: 'bfi-subscript' }),
type: 'inline-style',
command: 'subscript',
},
{ key: 'headings', title: He.controls.headings, type: 'headings' },
{
key: 'blockquote',
title: He.controls.blockQuote,
text: Q.a.createElement('i', { className: 'bfi-quote' }),
type: 'block-type',
command: 'blockquote',
},
{
key: 'code',
title: He.controls.code,
text: Q.a.createElement('i', { className: 'bfi-code' }),
type: 'block-type',
command: 'code-block',
},
{
key: 'list-ul',
title: He.controls.unorderedList,
text: Q.a.createElement('i', { className: 'bfi-list' }),
type: 'block-type',
command: 'unordered-list-item',
},
{
key: 'list-ol',
title: He.controls.orderedList,
text: Q.a.createElement('i', { className: 'bfi-list-numbered' }),
type: 'block-type',
command: 'ordered-list-item',
},
{ key: 'link', title: He.controls.link, type: 'link' },
{ key: 'text-color', title: He.controls.color, type: 'text-color' },
{ key: 'line-height', title: He.controls.lineHeight, type: 'line-height' },
{
key: 'letter-spacing',
title: He.controls.letterSpacing,
type: 'letter-spacing',
},
{ key: 'text-indent', title: He.controls.textIndent, type: 'text-indent' },
{ key: 'font-size', title: He.controls.fontSize, type: 'font-size' },
{ key: 'font-family', title: He.controls.fontFamily, type: 'font-family' },
{ key: 'text-align', title: He.controls.textAlign, type: 'text-align' },
{
key: 'media',
title: He.controls.media,
text: Q.a.createElement('i', { className: 'bfi-media' }),
type: 'media',
},
{
key: 'emoji',
title: He.controls.emoji,
text: Q.a.createElement('i', { className: 'bfi-emoji' }),
type: 'emoji',
},
{
key: 'clear',
title: He.controls.clear,
text: Q.a.createElement('i', { className: 'bfi-clear_all' }),
type: 'editor-method',
command: 'clearEditorContent',
},
{
key: 'fullscreen',
title: pt.state.isFullscreen
? He.controls.exitFullscreen
: He.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' },
];
},
hn = {
'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' },
},
cn = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'state', {
toolbarVisible: !1,
toolbarOffset: 0,
linkEditorVisible: !1,
sizeEditorVisible: !1,
tempLink: null,
tempWidth: null,
tempHeight: null,
}),
Z()(R()(ie), 'initialLeft', void 0),
Z()(R()(ie), 'initialTop', void 0),
Z()(R()(ie), 'initialWidth', void 0),
Z()(R()(ie), 'initialHeight', void 0),
Z()(R()(ie), 'reSizeType', void 0),
Z()(R()(ie), 'zoom', void 0),
Z()(R()(ie), 'changeSize', function(Dt) {
var Fn = ie.reSizeType;
ie.initialLeft ||
((ie.initialLeft = Dt.screenX), (ie.initialTop = Dt.screenY)),
Fn === 'rightbottom' &&
((ie.initialHeight += Dt.screenY - ie.initialTop),
(ie.initialWidth += Dt.screenX - ie.initialLeft)),
Fn === 'leftbottom' &&
((ie.initialHeight += Dt.screenY - ie.initialTop),
(ie.initialWidth += -Dt.screenX + ie.initialLeft)),
(ie.initialLeft = Dt.screenX),
(ie.initialTop = Dt.screenY);
}),
Z()(R()(ie), 'moveImage', function(Dt) {
ie.changeSize(Dt),
ie.setState({
tempWidth: Math.abs(ie.initialWidth),
tempHeight: Math.abs(ie.initialHeight),
});
}),
Z()(R()(ie), 'upImage', function() {
var Dt = ie.props.imageEqualRatio;
Dt ? ie.confirmImageSizeEqualRatio() : ie.confirmImageSize(),
document.removeEventListener('mousemove', ie.moveImage),
document.removeEventListener('mouseup', ie.upImage);
}),
Z()(R()(ie), 'repareChangeSize', function(Dt) {
return function(Fn) {
ie.reSizeType = Dt;
var qn = ie.imageElement.getBoundingClientRect();
(ie.initialLeft = ie.initialTop = 0),
(ie.initialWidth = qn.width),
(ie.initialHeight = qn.height),
(ie.zoom = qn.width / qn.height),
Fn.preventDefault(),
document.addEventListener('mousemove', ie.moveImage),
document.addEventListener('mouseup', ie.upImage);
};
}),
Z()(R()(ie), 'preventDragEvent', function(Dt) {
Dt.stopPropagation(), Dt.preventDefault();
}),
Z()(R()(ie), 'handleDragStart', function() {
return ie.props.editor.editorProps.readOnly ||
ie.props.editor.editorProps.disabled
? !1
: ((window.__BRAFT_DRAGING__IMAGE__ = {
block: ie.props.block,
mediaData: D()({ type: 'IMAGE' }, ie.props.mediaData),
}),
ie.setState({ toolbarVisible: !1 }, function() {
ie.unlockEditor();
}),
!0);
}),
Z()(R()(ie), 'handleDragEnd', function() {
return (window.__BRAFT_DRAGING__IMAGE__ = null), !1;
}),
Z()(R()(ie), 'executeCommand', function(Dt) {
if (typeof Dt == 'string') {
var Fn = Dt.split('|'),
qn = Be()(Fn, 2),
Ar = qn[0],
xr = qn[1];
ie[Ar] && ie[Ar](xr);
} else typeof Dt == 'function' && Dt(ie.props.block, ie.props.mediaData, ie.props.editor.getValue());
}),
Z()(R()(ie), 'removeImage', function() {
ie.props.editor.setValue(
Pt.ContentUtils.removeBlock(ie.props.editor.getValue(), ie.props.block),
),
ie.unlockEditor();
}),
Z()(R()(ie), 'toggleLinkEditor', function() {
ie.setState({
linkEditorVisible: !ie.state.linkEditorVisible,
sizeEditorVisible: !1,
});
}),
Z()(R()(ie), 'toggleSizeEditor', function() {
ie.setState({
linkEditorVisible: !1,
sizeEditorVisible: !ie.state.sizeEditorVisible,
});
}),
Z()(R()(ie), 'handleLinkInputKeyDown', function(Dt) {
if (Dt.keyCode === 13) ie.confirmImageLink();
else return;
}),
Z()(R()(ie), 'setImageLink', function(Dt) {
ie.setState({ tempLink: Dt.currentTarget.value });
return;
}),
Z()(R()(ie), 'confirmImageLink', function() {
var Dt = ie.state.tempLink,
Fn = ie.props.hooks('set-image-link', Dt)(Dt);
if (Fn === !1) return !1;
typeof Fn == 'string' && (Dt = Fn),
Dt !== null &&
(ie.props.editor.setValue(
Pt.ContentUtils.setMediaData(
ie.props.editor.getValue(),
ie.props.entityKey,
{ link: Dt },
),
),
window.setImmediate(ie.props.editor.forceRender));
}),
Z()(R()(ie), 'handleSizeInputKeyDown', function(Dt) {
if (Dt.keyCode === 13) ie.confirmImageSize();
else return;
}),
Z()(R()(ie), 'setImageWidth', function(Dt) {
var Fn = Dt.currentTarget,
qn = Fn.value;
qn && !isNaN(qn) && (qn = qn + 'px'), ie.setState({ tempWidth: qn });
return;
}),
Z()(R()(ie), 'setImageHeight', function(Dt) {
var Fn = Dt.currentTarget,
qn = Fn.value;
qn && !isNaN(qn) && (qn = qn + 'px'), ie.setState({ tempHeight: qn });
return;
}),
Z()(R()(ie), 'confirmImageSize', function() {
var Dt = ie.state,
Fn = Dt.tempWidth,
qn = Dt.tempHeight,
Ar = {};
Fn !== null && (Ar.width = Fn), qn !== null && (Ar.height = qn);
var xr = ie.props.hooks('set-image-size', Ar)(Ar);
if (xr === !1) return !1;
xr && (xr.width || xr.height) && (Ar = xr),
ie.props.editor.setValue(
Pt.ContentUtils.setMediaData(
ie.props.editor.getValue(),
ie.props.entityKey,
Ar,
),
),
window.setImmediate(ie.props.editor.forceRender);
}),
Z()(R()(ie), 'confirmImageSizeEqualRatio', function() {
var Dt = ie.state,
Fn = Dt.tempWidth,
qn = Dt.tempHeight,
Ar,
xr,
Xr = {};
Fn / qn > ie.zoom
? ((Ar = Math.floor(qn * ie.zoom)),
ie.setState({ tempWidth: Ar }),
(xr = qn))
: Fn / qn < ie.zoom &&
((xr = Math.floor(Fn / ie.zoom)),
ie.setState({ tempHeight: xr }),
(Ar = Fn)),
Ar !== null && (Xr.width = Ar),
xr !== null && (Xr.height = xr);
var sa = ie.props.hooks('set-image-size', Xr)(Xr);
if (sa === !1) return !1;
sa && (sa.width || sa.height) && (Xr = sa),
ie.props.editor.setValue(
Pt.ContentUtils.setMediaData(
ie.props.editor.getValue(),
ie.props.entityKey,
Xr,
),
),
window.setImmediate(ie.props.editor.forceRender);
}),
Z()(R()(ie), 'setImageFloat', function(Dt) {
var Fn = ie.props.hooks('set-image-float', Dt)(Dt);
if (Fn === !1) return !1;
typeof Fn == 'string' && (Dt = Fn),
ie.props.editor.setValue(
Pt.ContentUtils.setMediaPosition(
ie.props.editor.getValue(),
ie.props.block,
{ float: Dt },
),
),
ie.unlockEditor();
}),
Z()(R()(ie), 'setImageAlignment', function(Dt) {
var Fn = ie.props.hooks('set-image-alignment', Dt)(Dt);
if (Fn === !1) return !1;
typeof Fn == 'string' && (Dt = Fn),
ie.props.editor.setValue(
Pt.ContentUtils.setMediaPosition(
ie.props.editor.getValue(),
ie.props.block,
{ alignment: Dt },
),
),
ie.unlockEditor();
}),
Z()(R()(ie), 'showToolbar', function(Dt) {
if (
ie.props.editor.editorProps.readOnly ||
ie.props.editor.editorProps.disabled
)
return !1;
Dt.preventDefault(),
ie.state.toolbarVisible ||
ie.setState({ toolbarVisible: !0 }, function() {
ie.lockEditor(), ie.setState({ toolbarOffset: ie.calcToolbarOffset() });
});
}),
Z()(R()(ie), 'hideToolbar', function(Dt) {
Dt.preventDefault(),
ie.setState({ toolbarVisible: !1 }, function() {
ie.unlockEditor();
});
}),
ie
);
}
return (
x()(He, [
{
key: 'render',
value: function() {
var ie = this,
gt = this.props,
mt = gt.mediaData,
Ut = gt.language,
Dt = gt.imageControls,
Fn = gt.imageResizable,
qn = this.state,
Ar = qn.toolbarVisible,
xr = qn.toolbarOffset,
Xr = qn.linkEditorVisible,
sa = qn.sizeEditorVisible,
Da = qn.tempWidth,
Pa = qn.tempHeight,
Ma = this.props.block.getData(),
ka = Ma.get('float'),
La = Ma.get('alignment'),
xa = mt.url,
ha = mt.link,
si = mt.link_target,
Ca = mt.width,
ti = mt.height,
li = mt.meta,
Hr = {},
la = !1;
ka
? (La = null)
: La === 'left'
? ((Hr.float = 'left'), (la = !0))
: La === 'right'
? ((Hr.float = 'right'), (la = !0))
: La === 'center'
? (Hr.textAlign = 'center')
: ((Hr.float = 'left'), (la = !0));
var Fa = Dt.map(function(Lr, oa) {
return typeof Lr == 'string' && hn[Lr]
? Q.a.createElement(
'a',
{
className: Lr === 'link' && ha ? 'active' : '',
key: oa,
onClick: function() {
return ie.executeCommand(hn[Lr].command);
},
},
hn[Lr].text,
)
: Lr && (Lr.render || Lr.text)
? Lr.render
? Lr.render(mt, ie.props.block)
: Q.a.createElement(
'a',
{
key: oa,
onClick: function() {
return Lr.onClick && ie.executeCommand(Lr.onClick);
},
},
Lr.text,
)
: null;
});
return Q.a.createElement(
'div',
{ className: 'bf-media' },
Q.a.createElement(
'div',
{
style: Hr,
draggable: !0,
onMouseEnter: this.showToolbar,
onMouseMove: this.showToolbar,
onMouseLeave: this.hideToolbar,
onDragStart: this.handleDragStart,
onDragEnd: this.handleDragEnd,
ref: function(oa) {
return (ie.mediaEmbederInstance = oa);
},
className: 'bf-image',
},
Ar
? Q.a.createElement(
'div',
{
style: { marginLeft: xr },
ref: function(oa) {
return (ie.toolbarElement = oa);
},
'data-float': ka,
'data-align': La,
className: 'bf-media-toolbar',
},
Xr
? Q.a.createElement(
'div',
{ className: 'bf-image-link-editor' },
Q.a.createElement(
'div',
{ className: 'editor-input-group' },
Q.a.createElement('input', {
type: 'text',
placeholder: Ut.linkEditor.inputWithEnterPlaceHolder,
onKeyDown: this.handleLinkInputKeyDown,
onChange: this.setImageLink,
defaultValue: ha,
}),
Q.a.createElement(
'button',
{ type: 'button', onClick: this.confirmImageLink },
Ut.base.confirm,
),
),
Q.a.createElement(
'div',
{ className: 'switch-group' },
Q.a.createElement(tn, {
active: si === '_blank',
onClick: function() {
return ie.setImageLinkTarget(si);
},
}),
Q.a.createElement(
'label',
null,
Ut.linkEditor.openInNewWindow,
),
),
)
: null,
sa
? Q.a.createElement(
'div',
{ className: 'bf-image-size-editor' },
Q.a.createElement(
'div',
{ className: 'editor-input-group' },
Q.a.createElement('input', {
type: 'text',
placeholder: Ut.base.width,
onKeyDown: this.handleSizeInputKeyDown,
onChange: this.setImageWidth,
defaultValue: Ca,
}),
Q.a.createElement('input', {
type: 'text',
placeholder: Ut.base.height,
onKeyDown: this.handleSizeInputKeyDown,
onChange: this.setImageHeight,
defaultValue: ti,
}),
Q.a.createElement(
'button',
{ type: 'button', onClick: this.confirmImageSize },
Ut.base.confirm,
),
),
)
: null,
Fa,
Q.a.createElement('i', {
style: { marginLeft: xr * -1 },
className: 'bf-media-toolbar-arrow',
}),
)
: null,
Q.a.createElement(
'div',
{
style: {
position: 'relative',
width: ''.concat(Ca, 'px'),
height: ''.concat(ti, 'px'),
display: 'inline-block',
},
},
Q.a.createElement(
'img',
lt()(
{
ref: function(oa) {
return (ie.imageElement = oa);
},
src: xa,
width: Ca,
height: ti,
},
li,
),
),
Ar && Fn
? Q.a.createElement('div', {
className: 'bf-csize-icon right-bottom',
onMouseDown: this.repareChangeSize('rightbottom'),
})
: null,
Ar && Fn
? 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(Da, 'px'), height: ''.concat(Pa, 'px') },
}),
),
),
la &&
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 ie = this.props,
gt = ie.getContainerNode,
mt = ie.containerNode,
Ut = gt ? gt() : mt;
if (!Ut) return 0;
var Dt = Ut.querySelector('.bf-content').getBoundingClientRect(),
Fn = this.toolbarElement.getBoundingClientRect(),
qn = this.imageElement.getBoundingClientRect(),
Ar = Dt.right - (qn.right - qn.width / 2 + Fn.width / 2),
xr = qn.left + qn.width / 2 - Fn.width / 2 - Dt.left;
return Ar < 10 ? Ar - 10 : xr < 10 ? xr * -1 + 10 : 0;
},
},
{
key: 'setImageLinkTarget',
value: function(ie) {
var gt = this.props.hooks('set-image-link-target', ie)(ie);
if (gt === !1) return !1;
typeof gt == 'string' && (ie = gt),
(ie = ie === '_blank' ? '' : '_blank'),
this.props.editor.setValue(
Pt.ContentUtils.setMediaData(
this.props.editor.getValue(),
this.props.entityKey,
{ link_target: ie },
),
),
window.setImmediate(this.props.editor.forceRender);
},
},
]),
He
);
})(Q.a.Component),
Sn = w(47),
Hn = w(48),
_r = w(16),
yr = w.n(_r),
Vr = (function(Ln) {
W()(He, Ln);
function He(pt) {
var ie;
return (
M()(this, He),
(ie = d()(this, S()(He).call(this, pt))),
Z()(R()(ie), 'handleTransitionEnd', function() {
if (!ie.rootElement || !ie.rootElement.classList) return !1;
ie.rootElement.classList.contains('active') ||
(yr.a.unmountComponentAtNode(ie.rootElement) &&
ie.rootElement.parentNode.removeChild(ie.rootElement));
}),
Z()(R()(ie), 'handleMouseDown', function(gt) {
var mt = gt.target.tagName.toLowerCase();
if (mt === 'input' || mt === 'textarea') return !1;
gt.preventDefault();
}),
Z()(R()(ie), 'handleCancel', function() {
ie.props.closeOnCancel && ie.close(),
ie.props.onCancel && ie.props.onCancel();
}),
Z()(R()(ie), 'handleConfirm', function() {
ie.props.closeOnConfirm && ie.close(),
ie.props.onConfirm && ie.props.onConfirm();
}),
Z()(R()(ie), 'handleMaskClick', function() {
ie.props.closeOnBlur && ie.close(), ie.props.onBlue && ie.props.onBlue();
}),
Z()(R()(ie), 'close', function() {
ie.unrenderComponent(), ie.props.onClose && ie.props.onClose();
}),
(ie.active = !1),
(ie.componentId = 'BRAFT-MODAL-' + Pt.BaseUtils.UniqueIndex()),
ie
);
}
return (
x()(He, [
{
key: 'componentDidMount',
value: function() {
this.props.visible &&
((this.active = !0), this.renderComponent(this.props));
},
},
{
key: 'componentWillReceiveProps',
value: function(ie) {
this.props.visible && !ie.visible
? this.unrenderComponent()
: (this.props.visible || ie.visible) &&
((this.active = !0), this.renderComponent(ie));
},
},
{
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(ie) {
var gt = this;
if (!this.active) return !1;
var mt = ie.title,
Ut = ie.className,
Dt = ie.width,
Fn = ie.height,
qn = ie.children,
Ar = ie.component,
xr = ie.confirmable,
Xr = ie.showFooter,
sa = ie.showCancel,
Da = ie.showConfirm,
Pa = ie.showClose,
Ma = ie.cancelText,
ka = ie.confirmText,
La = ie.bottomText,
xa = ie.language;
typeof sa == 'undefined' && (sa = !0),
typeof Pa == 'undefined' && (Pa = !0),
typeof Da == 'undefined' && (Da = !0),
typeof Xr == 'undefined' && (Xr = !0);
var ha = Q.a.createElement(
'div',
{
onMouseDown: this.handleMouseDown,
className: 'bf-modal ' + (Ut || ''),
},
Q.a.createElement('div', {
className: 'bf-modal-mask',
onClick: this.handleMaskClick,
}),
Q.a.createElement(
'div',
{
onTransitionEnd: this.handleTransitionEnd,
style: { width: Dt, height: Fn },
className: 'bf-modal-content',
},
Q.a.createElement(
'div',
{ className: 'bf-modal-header' },
Q.a.createElement('h3', { className: 'bf-modal-caption' }, mt),
Pa &&
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' }, qn || Ar),
Xr
? Q.a.createElement(
'div',
{ className: 'bf-modal-footer' },
Q.a.createElement(
'div',
{ className: 'bf-modal-addon-text' },
La,
),
Q.a.createElement(
'div',
{ className: 'bf-modal-buttons' },
sa &&
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleCancel,
className: 'bf-modal-cancel',
},
Ma || xa.base.cancel,
),
Da &&
Q.a.createElement(
'button',
{
type: 'button',
onClick: this.handleConfirm,
className: 'bf-modal-confirm ' + (xr ? '' : 'disabled'),
},
ka || xa.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)),
yr.a.render(ha, this.rootElement),
(this.activeId = window.setImmediate(function() {
gt.rootElement.classList.add('active');
}));
},
},
]),
He
);
})(Q.a.Component);
Z()(Vr, 'defaultProps', { showFooter: !0, closeOnBlur: !0 });
var zr = function(He) {
var pt = document.createElement('div');
(pt.style.display = 'none'),
document.body.appendChild(pt),
(He = D()({ visible: !0, closeOnConfirm: !0, closeOnCancel: !0 }, He));
var ie = function() {
yr.a.unmountComponentAtNode(pt) && pt.parentNode.removeChild(pt);
},
gt = function() {
He.onConfirm && He.onConfirm();
},
mt = function() {
He.onCancel && He.onCancel();
},
Ut = function() {
ie(), He.onClose && He.onClose();
},
Dt = yr.a.render(
Q.a.createElement(
Vr,
lt()({}, He, { onConfirm: gt, onCancel: mt, onClose: Ut }),
),
pt,
);
return (Dt.destroy = ie), (Dt.update = Dt.renderComponent), Dt;
},
ct = w(49),
Nt = function(He, pt, ie) {
return zr({ title: He, component: pt, language: ie, showFooter: !1 });
},
bt = { video: 'bfi-film', audio: 'bfi-music', embed: 'bfi-code' },
Zt = function(He) {
var pt = He.title,
ie = He.type,
gt = He.language,
mt = He.name,
Ut = He.url,
Dt = He.poster,
Fn = He.children,
qn = He.onRemove;
return Q.a.createElement(
'div',
{ className: 'bf-player-holder '.concat(ie) },
Q.a.createElement(
'div',
{ className: 'icon-badge' },
Q.a.createElement('i', { className: bt[ie] }),
Q.a.createElement('span', { className: 'text' }, gt.media[ie]),
),
Q.a.createElement(
'button',
{ onMouseDown: qn, className: 'button-remove' },
Q.a.createElement('i', { className: 'bfi-close' }),
),
Q.a.createElement(
'button',
{
onMouseDown: function() {
return Nt(mt ? ''.concat(pt, ':').concat(mt) : pt, Fn, 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' }, Ut),
Dt
? Q.a.createElement('div', {
className: 'bf-poster',
style: { backgroundImage: 'url('.concat(Dt, ')') },
})
: null,
);
},
lr = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'removeVideo', function() {
ie.props.editor.setValue(
Pt.ContentUtils.removeBlock(ie.props.editorState, ie.props.block),
);
}),
ie
);
}
return (
x()(He, [
{
key: 'render',
value: function() {
var ie = this.props,
gt = ie.mediaData,
mt = ie.language,
Ut = gt.url,
Dt = gt.name,
Fn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-video-wrap' },
Q.a.createElement(
Zt,
{
type: 'video',
onRemove: this.removeVideo,
poster: (Fn && Fn.poster) || '',
language: mt,
url: Ut,
name: Dt,
title: mt.videoPlayer.title,
},
Q.a.createElement(
'div',
{ className: 'bf-video-player' },
Q.a.createElement(
'video',
{ controls: !0, poster: (Fn && Fn.poster) || '' },
Q.a.createElement('source', { src: Ut }),
),
),
),
);
},
},
]),
He
);
})(Q.a.Component),
mr = w(50),
Or = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'removeAudio', function() {
ie.props.editor.setValue(
Pt.ContentUtils.removeBlock(ie.props.editorState, ie.props.block),
);
}),
ie
);
}
return (
x()(He, [
{
key: 'render',
value: function() {
var ie = this.props,
gt = ie.mediaData,
mt = ie.language,
Ut = gt.url,
Dt = gt.name,
Fn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-audio-wrap' },
Q.a.createElement(
Zt,
{
type: 'audio',
onRemove: this.removeAudio,
poster: (Fn && Fn.poster) || '',
language: mt,
url: Ut,
name: Dt,
title: mt.audioPlayer.title,
},
Q.a.createElement(
'div',
{ className: 'bf-audio-player' },
Q.a.createElement('audio', { controls: !0, src: Ut }),
),
),
);
},
},
]),
He
);
})(Q.a.Component),
An = w(51),
Qr = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'removeEmbed', function() {
ie.props.editor.setValue(
Pt.ContentUtils.removeBlock(ie.props.editorState, ie.props.block),
);
}),
ie
);
}
return (
x()(He, [
{
key: 'render',
value: function() {
var ie = this.props,
gt = ie.mediaData,
mt = ie.language,
Ut = gt.name,
Dt = gt.url,
Fn = gt.meta;
return Q.a.createElement(
'div',
{ className: 'bf-embed-wrap' },
Q.a.createElement(
Zt,
{
type: 'embed',
onRemove: this.removeEmbed,
poster: (Fn && Fn.poster) || '',
language: mt,
url: Dt,
name: Ut,
title: mt.videoPlayer.embedTitle,
},
Q.a.createElement('div', {
className: 'bf-embed-player',
dangerouslySetInnerHTML: { __html: Dt },
}),
),
);
},
},
]),
He
);
})(Q.a.Component),
Oa = w(52),
ea = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'removeHorizontalLine', function() {
ie.props.editor.setValue(
Pt.ContentUtils.removeBlock(ie.props.editorState, ie.props.block),
);
}),
ie
);
}
return (
x()(He, [
{
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 }, ''),
),
);
},
},
]),
He
);
})(Q.a.Component),
Ea = function Ln() {
var He = this;
M()(this, Ln),
Z()(this, 'superProps', void 0),
Z()(this, 'customBlockRendererFn', void 0),
Z()(this, 'getRenderFn', function(pt, ie) {
return (
(He.superProps = pt), (He.customBlockRendererFn = ie), He.blockRendererFn
);
}),
Z()(this, 'renderAtomicBlock', function(pt) {
var ie = He.superProps,
gt = pt.block.getEntityAt(0);
if (!gt) return null;
var mt = pt.contentState.getEntity(gt),
Ut = mt.getData(),
Dt = mt.getType(),
Fn = D()({}, ie, { block: pt.block, mediaData: Ut, entityKey: gt });
if (Dt === 'IMAGE') return Q.a.createElement(cn, Fn);
if (Dt === 'AUDIO') return Q.a.createElement(Or, Fn);
if (Dt === 'VIDEO') return Q.a.createElement(lr, Fn);
if (Dt === 'EMBED') return Q.a.createElement(Qr, Fn);
if (Dt === 'HR') return Q.a.createElement(ea, Fn);
if (ie.extendAtomics) {
for (var qn = ie.extendAtomics, Ar = 0; Ar < qn.length; Ar++)
if (Dt === qn[Ar].type) {
var xr = qn[Ar].component;
return Q.a.createElement(xr, Fn);
}
}
return null;
}),
Z()(this, 'blockRendererFn', function(pt) {
var ie = He.customBlockRendererFn,
gt = He.superProps,
mt = pt.getType(),
Ut = null;
if ((ie && (Ut = ie(pt, gt) || null), Ut)) return Ut;
var Dt = se(gt.editorId);
return (
Dt.find(function(Fn) {
if (
Fn.blockType === mt ||
(Fn.blockType instanceof RegExp && Fn.blockType.test(mt))
)
return (Ut = Fn.rendererFn ? Fn.rendererFn(gt) : null), !0;
}),
Ut ||
(mt === 'atomic' &&
(Ut = { component: He.renderAtomicBlock, editable: !1 }),
Ut)
);
});
},
Mi = new Ea(),
Ri = Mi.getRenderFn,
di = function(He) {
return function(pt) {
var ie = pt.getData() && pt.getData().get('textAlign'),
gt = pt.getData() && pt.getData().get('textIndent'),
mt = pt.getData() && pt.getData().get('float'),
Ut = '';
return (
ie && (Ut = 'bfa-'.concat(ie)),
gt && gt !== 0 && (Ut += ' bftd-'.concat(gt)),
mt && (Ut += ' bff-'.concat(mt)),
He && (Ut += He(pt) || ''),
Ut
);
};
},
io = function(He) {
var pt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
ie = ut(He.editorId);
return D()(
{
SUPERSCRIPT: { position: 'relative', top: '-8px', fontSize: '11px' },
SUBSCRIPT: { position: 'relative', bottom: '-8px', fontSize: '11px' },
},
ie,
pt,
);
},
zi = function(He) {
return He.split('-')[1];
},
ca = function(He, pt) {
return function(ie, gt) {
var mt = {},
Ut = pt.fontFamilies,
Dt = pt.unitExportFn,
Fn = pt.customStyleFn,
qn = ot(He.editorId);
return (
qn.forEach(function(Ar) {
mt = Ar.styleFn ? Ar.styleFn(ie, gt, mt) : mt;
}),
(mt = Fn ? Fn(ie, gt, mt) : {}),
ie.forEach(function(Ar) {
Ar.indexOf('COLOR-') === 0
? (mt.color = '#' + zi(Ar))
: Ar.indexOf('BGCOLOR-') === 0
? (mt.backgroundColor = '#' + zi(Ar))
: Ar.indexOf('FONTSIZE-') === 0
? (mt.fontSize = Dt(zi(Ar), 'font-size', 'editor'))
: Ar.indexOf('LINEHEIGHT-') === 0
? (mt.lineHeight = Dt(zi(Ar), 'line-height', 'editor'))
: Ar.indexOf('LETTERSPACING-') === 0
? (mt.letterSpacing = Dt(zi(Ar), 'letter-spacing', 'editor'))
: Ar.indexOf('TEXTINDENT-') === 0
? (mt.textIndent = Dt(zi(Ar), 'text-indent', 'editor'))
: Ar.indexOf('FONTFAMILY-') === 0 &&
(mt.fontFamily =
(
Ut.find(function(xr) {
return xr.name.toUpperCase() === zi(Ar);
}) || {}
).family || '');
}),
mt
);
};
},
Bi = w(18),
Xi = w.n(Bi),
qa = function(He) {
var pt = He.children,
ie = He.entityKey,
gt = He.contentState,
mt = gt.getEntity(ie).getData(),
Ut = mt.href,
Dt = mt.target;
return Q.a.createElement(
'span',
{ className: 'bf-link-wrap' },
Q.a.createElement(
'a',
{
onClick: function(qn) {
return oo(qn, Ut);
},
className: 'bf-link',
href: Ut,
target: Dt,
},
pt,
),
);
},
oo = function(He, pt) {
if (He.getModifierState('Control') || He.getModifierState('Meta')) {
var ie = document.createElement('a');
(ie.href = pt), (ie.target = He.currentTarget.target), ie.click();
}
},
_i = '-';
Xi.a.prototype.getDecorations = function(Ln, He) {
var pt = Array(Ln.getText().length).fill(null);
return (
this.decorators.forEach(function(ie, gt) {
ie.getDecorations(Ln, He).forEach(function(mt, Ut) {
if (!mt) return;
(mt = gt + _i + mt), (pt[Ut] = mt);
});
}),
Ge.a.List(pt)
);
};
var $i = [{ type: 'entity', decorator: { key: 'LINK', component: qa } }],
da = function(He) {
return function(pt, ie, gt) {
pt.findEntityRanges(function(mt) {
var Ut = mt.getEntity();
return Ut !== null && gt.getEntity(Ut).getType() === He;
}, ie);
};
},
ei = function(He) {
var pt = Tt(He),
ie = [].concat(
$i,
ne()(
pt.filter(function(Ut) {
return Ut.type === 'entity';
}),
),
),
gt = pt.filter(function(Ut) {
return Ut.type === 'strategy';
}),
mt = pt.filter(function(Ut) {
return Ut.type === 'class';
});
return new Xi.a(
[].concat(
ne()(
mt.map(function(Ut) {
return Ut.decorator;
}),
),
[
new Wt.CompositeDecorator(
gt.map(function(Ut) {
return Ut.decorator;
}),
),
new Wt.CompositeDecorator(
ie.map(function(Ut) {
return {
strategy: da(Ut.decorator.key),
component: Ut.decorator.component,
};
}),
),
],
),
);
},
ii = on,
Ui = Ri,
Na = di,
Qi = io,
so = ca,
oi = ei,
ho = w(53),
Hi = w(54),
Li = w(55),
Xa = [],
ki = !1,
Yi = !1,
yi = {
resolve: function(He) {
var pt = Pt.BaseUtils.UniqueIndex();
return Xa.push({ id: pt, eventHandler: He }), pt;
},
unresolve: function(He) {
Xa = Xa.filter(function(pt) {
return pt.id !== He;
});
},
};
!ki &&
(typeof window == 'undefined' ? 'undefined' : F()(window)) === 'object' &&
(window.addEventListener('resize', function(Ln) {
clearTimeout(Yi),
(Yi = setTimeout(function() {
Xa.map(function(He) {
typeof He.eventHandler == 'function' && He.eventHandler(Ln);
}),
(Yi = !1);
}, 100));
}),
(ki = !0));
var $a = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'responsiveResolveId', null),
Z()(R()(ie), 'dropDownHandlerElement', null),
Z()(R()(ie), 'dropDownContentElement', null),
Z()(R()(ie), 'state', { active: !1, offset: 0 }),
Z()(R()(ie), 'fixDropDownPosition', function() {
var Dt = ie.props.getContainerNode().getBoundingClientRect(),
Fn = ie.dropDownHandlerElement.getBoundingClientRect(),
qn = ie.dropDownContentElement.getBoundingClientRect(),
Ar = 0,
xr = Fn.right - Fn.width / 2 + qn.width / 2,
Xr = Fn.left + Fn.width / 2 - qn.width / 2;
(xr = Dt.right - xr),
(Xr = Xr - Dt.left),
xr < 10 ? (Ar = xr - 10) : Xr < 10 && (Ar = Xr * -1 + 10),
Ar !== ie.state.offset && ie.setState({ offset: Ar });
}),
Z()(R()(ie), 'registerClickEvent', function(Dt) {
var Fn = ie.props.autoHide,
qn = ie.state.active;
if (
ie.dropDownContentElement.contains(Dt.target) ||
ie.dropDownHandlerElement.contains(Dt.target)
)
return !1;
Fn && qn && ie.hide();
}),
Z()(R()(ie), 'toggle', function() {
ie.setState({ active: !ie.state.active });
}),
Z()(R()(ie), 'show', function() {
ie.setState({ active: !0 });
}),
Z()(R()(ie), 'hide', function() {
ie.setState({ active: !1 });
}),
ie
);
}
return (
x()(He, [
{
key: 'componentDidMount',
value: function() {
document &&
(document.body.addEventListener('click', this.registerClickEvent),
(this.responsiveResolveId = yi.resolve(this.fixDropDownPosition)));
},
},
{
key: 'componentWillReceiveProps',
value: function(ie) {
!this.props.disabled && ie.disabled && this.hide();
},
},
{
key: 'componentDidUpdate',
value: function(ie) {
!ie.active && this.state.active && this.fixDropDownPosition();
},
},
{
key: 'componentWillUnmount',
value: function() {
document &&
(document.body.removeEventListener('click', this.registerClickEvent),
yi.unresolve(this.responsiveResolveId));
},
},
{
key: 'render',
value: function() {
var ie = this,
gt = this.state,
mt = gt.active,
Ut = gt.offset,
Dt = this.props,
Fn = Dt.caption,
qn = Dt.htmlCaption,
Ar = Dt.title,
xr = Dt.disabled,
Xr = Dt.showArrow,
sa = Dt.arrowActive,
Da = Dt.className,
Pa = Dt.children,
Ma = Dt.theme;
return (
xr && (mt = !1),
Ma === 'light' && (Da = ' light-theme ' + Da),
Q.a.createElement(
'div',
{
className:
'bf-dropdown ' +
(mt ? 'active ' : '') +
(xr ? 'disabled ' : '') +
Da,
},
qn
? Q.a.createElement('button', {
type: 'button',
className: 'dropdown-handler',
'data-title': Ar,
onClick: this.toggle,
dangerouslySetInnerHTML: qn ? { __html: qn } : null,
ref: function(La) {
return (ie.dropDownHandlerElement = La);
},
})
: Q.a.createElement(
'button',
{
type: 'button',
className: 'dropdown-handler',
'data-title': Ar,
onClick: this.toggle,
ref: function(La) {
return (ie.dropDownHandlerElement = La);
},
},
Q.a.createElement('span', null, Fn),
Xr !== !1
? Q.a.createElement('i', { className: 'bfi-drop-down' })
: null,
),
Q.a.createElement(
'div',
{
className: 'dropdown-content',
style: { marginLeft: Ut },
ref: function(La) {
return (ie.dropDownContentElement = La);
},
},
Q.a.createElement('i', {
style: { marginLeft: Ut * -1 },
className: 'dropdown-arrow' + (sa ? ' active' : ''),
}),
Q.a.createElement('div', { className: 'dropdown-content-inner' }, Pa),
),
)
);
},
},
]),
He
);
})(Q.a.Component),
Ai = function(He) {
return Q.a.Fragment
? Q.a.createElement(Q.a.Fragment, null, He.children)
: Q.a.createElement('div', { className: 'control-item-group' }, He.children);
},
mo = (function(Ln) {
W()(He, Ln);
function He(pt) {
var ie;
return (
M()(this, He),
(ie = d()(this, S()(He).call(this, pt))),
Z()(R()(ie), 'dropDownInstance', null),
Z()(R()(ie), 'handeKeyDown', function(gt) {
if (gt.keyCode === 13) return ie.handleConfirm(), gt.preventDefault(), !1;
}),
Z()(R()(ie), 'handleTnputText', function(gt) {
ie.setState({ text: gt.currentTarget.value });
}),
Z()(R()(ie), 'handleInputLink', function(gt) {
ie.setState({ href: gt.currentTarget.value });
}),
Z()(R()(ie), 'setTarget', function() {
ie.setState({ target: ie.state.target === '_blank' ? '' : '_blank' });
}),
Z()(R()(ie), 'handleCancel', function() {
ie.dropDownInstance.hide();
}),
Z()(R()(ie), 'handleUnlink', function() {
ie.dropDownInstance.hide(),
ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionLink(ie.props.editorState, !1),
);
}),
Z()(R()(ie), 'handleConfirm', function() {
var gt = ie.state,
mt = gt.text,
Ut = gt.href,
Dt = gt.target,
Fn = gt.textSelected,
qn = ie.props.hooks('toggle-link', { href: Ut, target: Dt })({
href: Ut,
target: Dt,
});
if ((ie.dropDownInstance.hide(), ie.props.editor.requestFocus(), qn === !1))
return !1;
qn &&
(typeof qn.href == 'string' && (Ut = qn.href),
typeof qn.target == 'string' && (Dt = qn.target)),
Fn
? Ut
? ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionLink(ie.props.editorState, Ut, Dt),
)
: ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionLink(ie.props.editorState, !1),
)
: ie.props.editor.setValue(
Pt.ContentUtils.insertText(ie.props.editorState, mt || Ut, null, {
type: 'LINK',
data: { href: Ut, target: Dt },
}),
);
}),
(ie.state = {
text: '',
href: '',
target: pt.defaultLinkTarget || '',
textSelected: !1,
}),
ie
);
}
return (
x()(He, [
{
key: 'componentWillReceiveProps',
value: function(ie) {
var gt = Pt.ContentUtils.getSelectionEntityData(ie.editorState, 'LINK'),
mt = gt.href,
Ut = gt.target,
Dt =
!Pt.ContentUtils.isSelectionCollapsed(this.props.editorState) &&
Pt.ContentUtils.getSelectionBlockType(this.props.editorState) !==
'atomic',
Fn = '';
Dt && (Fn = Pt.ContentUtils.getSelectionText(this.props.editorState)),
this.setState({
textSelected: Dt,
text: Fn,
href: mt || '',
target:
typeof Ut == 'undefined' ? ie.defaultLinkTarget || '' : Ut || '',
});
},
},
{
key: 'render',
value: function() {
var ie = this,
gt = this.props.allowInsertLinkText,
mt = this.state,
Ut = mt.text,
Dt = mt.href,
Fn = mt.target,
qn = mt.textSelected,
Ar = Q.a.createElement('i', { className: 'bfi-link' });
return Q.a.createElement(
Ai,
null,
Q.a.createElement(
$a,
{
key: 0,
caption: Ar,
title: this.props.language.controls.link,
autoHide: !0,
getContainerNode: this.props.getContainerNode,
showArrow: !1,
ref: function(Xr) {
return (ie.dropDownInstance = Xr);
},
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: Ut,
spellCheck: !1,
disabled: qn,
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: Dt,
spellCheck: !1,
placeholder: this.props.language.linkEditor.linkInputPlaceHolder,
onKeyDown: this.handeKeyDown,
onChange: this.handleInputLink,
}),
),
Q.a.createElement(
'div',
{ className: 'switch-group' },
Q.a.createElement(tn, {
active: Fn === '_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: !qn || !Dt,
},
Q.a.createElement('i', { className: 'bfi-link-off' }),
),
);
},
},
]),
He
);
})(Q.a.Component),
eo = w(56),
St = function(He) {
return [
{
key: 'header-one',
title: He.controls.header + ' 1',
text: Q.a.createElement('h1', null, He.controls.header, ' 1'),
type: 'block-type',
command: 'header-one',
},
{
key: 'header-two',
title: He.controls.header + ' 2',
text: Q.a.createElement('h2', null, He.controls.header, ' 2'),
type: 'block-type',
command: 'header-two',
},
{
key: 'header-three',
title: He.controls.header + ' 3',
text: Q.a.createElement('h3', null, He.controls.header, ' 3'),
type: 'block-type',
command: 'header-three',
},
{
key: 'header-four',
title: He.controls.header + ' 4',
text: Q.a.createElement('h4', null, He.controls.header, ' 4'),
type: 'block-type',
command: 'header-four',
},
{
key: 'header-five',
title: He.controls.header + ' 5',
text: Q.a.createElement('h5', null, He.controls.header, ' 5'),
type: 'block-type',
command: 'header-five',
},
{
key: 'header-six',
title: He.controls.header + ' 6',
text: Q.a.createElement('h6', null, He.controls.header, ' 6'),
type: 'block-type',
command: 'header-six',
},
{
key: 'unstyled',
title: He.controls.normal,
text: He.controls.normal,
type: 'block-type',
command: 'unstyled',
},
];
},
En = {
'header-one': 'h1',
'header-two': 'h2',
'header-three': 'h3',
'header-four': 'h4',
'header-fiv': 'h5',
'header-six': 'h6',
unstyled: 'p',
blockquote: 'blockquote',
},
rr = function(He) {
var pt = null,
ie = St(He.language).filter(function(Ut) {
return He.headings.indexOf(Ut.key) !== -1;
}),
gt = ie.findIndex(function(Ut) {
return Ut.command === He.current;
}),
mt = ie[gt] ? ie[gt].title : He.language.controls.normal;
return Q.a.createElement(
$a,
{
caption: mt,
autoHide: !0,
getContainerNode: He.getContainerNode,
title: He.language.controls.headings,
arrowActive: gt === 0,
ref: function(Dt) {
return (pt = Dt);
},
className: 'control-item dropdown headings-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'menu' },
ie.map(function(Ut, Dt) {
var Fn = He.current === Ut.command;
return Q.a.createElement(
'li',
{
key: Dt,
className: 'menu-item' + (Fn ? ' active' : ''),
onClick: function() {
He.onChange(Ut.command, Ut.type), pt.hide();
},
},
Ut.text,
);
}),
),
);
},
Ht = w(57),
It = w(58),
mn = function(He) {
return Q.a.createElement(
'div',
{ className: 'bf-colors-wrap' },
Q.a.createElement(
'ul',
{ className: 'bf-colors' },
He.presetColors.map(function(pt, ie) {
var gt =
He.color && pt.toLowerCase() === He.color.toLowerCase()
? 'color-item active'
: 'color-item';
return Q.a.createElement('li', {
key: ie,
title: pt,
className: gt,
style: { color: pt },
'data-color': pt.replace('#', ''),
onClick: function(Ut) {
He.onChange(Ut.currentTarget.dataset.color, !0);
},
});
}),
),
);
},
ht = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'state', { colorType: 'color' }),
Z()(R()(ie), 'switchColorType', function(Dt) {
var Fn = Dt.currentTarget;
ie.setState({ colorType: Fn.dataset.type });
}),
Z()(R()(ie), 'toggleColor', function(Dt, Fn) {
if (Dt) {
var qn = ie.props.hooks('toggle-text-'.concat(ie.state.colorType), Dt)(Dt);
if (qn === !1) return !1;
typeof qn == 'string' && (Dt = qn),
ie.state.colorType === 'color'
? ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionColor(ie.props.editorState, Dt),
)
: ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionBackgroundColor(
ie.props.editorState,
Dt,
),
);
}
Fn && (ie.dropDownInstance.hide(), ie.props.editor.requestFocus());
}),
ie
);
}
return (
x()(He, [
{
key: 'render',
value: function() {
var ie = this,
gt = {},
mt = null,
Ut = this.state.colorType,
Dt = this.props.editorState.getCurrentInlineStyle().toJS();
Dt.forEach(function(Ar) {
Ar.indexOf('COLOR-') === 0 &&
((gt.color = '#' + Ar.split('-')[1]),
Ut === 'color' && (mt = gt.color)),
Ar.indexOf('BGCOLOR-') === 0 &&
((gt.backgroundColor = '#' + Ar.split('-')[1]),
Ut === 'background-color' && (mt = gt.backgroundColor));
});
var Fn = Q.a.createElement(
'i',
{ style: gt, className: 'bfi-text-color' },
Q.a.createElement('span', { className: 'path1' }),
Q.a.createElement('span', { className: 'path2' }),
),
qn = this.props.colorPicker || mn;
return Q.a.createElement(
$a,
{
caption: Fn,
title: this.props.language.controls.color,
showArrow: !1,
autoHide: this.props.autoHide,
theme: this.props.theme,
getContainerNode: this.props.getContainerNode,
ref: function(xr) {
return (ie.dropDownInstance = xr);
},
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: Ut === 'color' ? 'active' : '',
onClick: this.switchColorType,
},
this.props.language.controls.textColor,
),
Q.a.createElement(
'button',
{
type: 'button',
'data-type': 'background-color',
className: Ut === 'background-color' ? 'active' : '',
onClick: this.switchColorType,
},
this.props.language.controls.backgroundColor,
),
),
Q.a.createElement(qn, {
width: 200,
color: mt,
disableAlpha: !0,
presetColors: this.props.colors,
onChange: this.toggleColor,
}),
),
);
},
},
]),
He
);
})(Q.a.Component),
fn = w(59),
Un = function(He, pt) {
var ie = He.currentTarget.dataset.size,
gt = pt.hooks('toggle-font-size', ie)(ie);
if (gt === !1) return !1;
isNaN(ie) || (ie = gt),
pt.editor.setValue(Pt.ContentUtils.toggleSelectionFontSize(pt.editorState, ie)),
pt.editor.requestFocus();
},
Jt = function(He) {
var pt = null,
ie = null,
gt = null;
return (
He.fontSizes.find(function(mt) {
return Pt.ContentUtils.selectionHasInlineStyle(He.editorState, 'FONTSIZE-' + mt)
? ((pt = mt), (ie = mt), !0)
: !1;
}),
Q.a.createElement(
$a,
{
autoHide: !0,
caption: pt || He.defaultCaption,
getContainerNode: He.getContainerNode,
title: He.language.controls.fontSize,
ref: function(Ut) {
return (gt = Ut);
},
className: 'control-item dropdown bf-font-size-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-font-sizes' },
He.fontSizes.map(function(mt, Ut) {
return Q.a.createElement(
'li',
{
key: Ut,
className: mt === ie ? 'active' : null,
'data-size': mt,
onClick: function(Fn) {
Un(Fn, He), gt.hide();
},
},
mt,
);
}),
),
)
);
},
Sr = w(60),
Ur = function(He, pt) {
var ie = He.currentTarget.dataset.size,
gt = pt.hooks('toggle-line-height', ie)(ie);
if (gt === !1) return !1;
isNaN(gt) || (ie = gt),
pt.editor.setValue(Pt.ContentUtils.toggleSelectionLineHeight(pt.editorState, ie)),
pt.editor.requestFocus();
},
Ir = function(He) {
var pt = null,
ie = null,
gt = null;
return (
He.lineHeights.find(function(mt) {
return Pt.ContentUtils.selectionHasInlineStyle(
He.editorState,
'LINEHEIGHT-' + mt,
)
? ((pt = mt), (ie = mt), !0)
: !1;
}),
Q.a.createElement(
$a,
{
autoHide: !0,
caption: pt || He.defaultCaption,
getContainerNode: He.getContainerNode,
title: He.language.controls.lineHeight,
ref: function(Ut) {
return (gt = Ut);
},
className: 'control-item dropdown bf-line-height-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-line-heights' },
He.lineHeights.map(function(mt, Ut) {
return Q.a.createElement(
'li',
{
key: Ut,
className: mt === ie ? 'active' : null,
'data-size': mt,
onClick: function(Fn) {
Ur(Fn, He), gt.hide();
},
},
mt,
);
}),
),
)
);
},
Wr = w(61),
ft = function(He, pt) {
var ie = He.currentTarget.dataset.name,
gt = pt.hooks('toggle-font-family', ie)(ie, pt.fontFamilies);
if (gt === !1) return !1;
typeof gt == 'string' && (ie = gt),
pt.editor.setValue(Pt.ContentUtils.toggleSelectionFontFamily(pt.editorState, ie)),
pt.editor.requestFocus();
},
wt = function(He) {
var pt = null,
ie = null,
gt = null;
return (
He.fontFamilies.find(function(mt, Ut) {
return Pt.ContentUtils.selectionHasInlineStyle(
He.editorState,
'FONTFAMILY-' + mt.name,
)
? ((pt = mt.name), (ie = Ut), !0)
: !1;
}),
Q.a.createElement(
$a,
{
caption: pt || He.defaultCaption,
getContainerNode: He.getContainerNode,
title: He.language.controls.fontFamily,
autoHide: !0,
arrowActive: ie === 0,
ref: function(Ut) {
return (gt = Ut);
},
className: 'control-item dropdown font-family-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'menu' },
He.fontFamilies.map(function(mt, Ut) {
return Q.a.createElement(
'li',
{
key: Ut,
className: 'menu-item ' + (Ut === ie ? 'active' : ''),
'data-name': mt.name,
onClick: function(Fn) {
ft(Fn, He), gt.hide();
},
},
Q.a.createElement('span', { style: { fontFamily: mt.family } }, mt.name),
);
}),
),
)
);
},
sn = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'state', { currentAlignment: void 0 }),
Z()(R()(ie), 'setAlignment', function(Dt) {
var Fn = Dt.currentTarget.dataset.alignment,
qn = ie.props.hooks('toggle-text-alignment', Fn)(Fn);
ie.props.textAligns.indexOf(qn) > -1 && (Fn = qn),
ie.props.editor.setValue(
Pt.ContentUtils.toggleSelectionAlignment(ie.props.editorState, Fn),
),
ie.props.editor.requestFocus();
}),
ie
);
}
return (
x()(He, [
{
key: 'componentWillReceiveProps',
value: function(ie) {
this.setState({
currentAlignment: Pt.ContentUtils.getSelectionBlockData(
ie.editorState,
'textAlign',
),
});
},
},
{
key: 'render',
value: function() {
var ie = 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(
Ai,
null,
this.props.textAligns.map(function(mt, Ut) {
return Q.a.createElement(
'button',
{
type: 'button',
key: Ut,
'data-title': gt[Ut],
'data-alignment': mt,
className:
'control-item button ' +
(mt === ie.state.currentAlignment ? 'active' : null),
onClick: ie.setAlignment,
},
Q.a.createElement('i', { className: 'bfi-align-' + mt }),
);
}),
);
},
},
]),
He
);
})(Q.a.Component),
wn = w(62),
or = function(He, pt) {
var ie = He.currentTarget.dataset.emoji,
gt = pt.hooks('insert-emoji', ie)(ie);
if (gt === !1) return !1;
typeof gt == 'string' && (ie = gt),
pt.editor.setValue(Pt.ContentUtils.insertText(pt.editorState, ie)),
pt.editor.requestFocus();
},
ur = function(He) {
return Q.a.createElement(
$a,
{
caption: He.defaultCaption,
autoHide: !0,
showArrow: !1,
getContainerNode: He.getContainerNode,
title: He.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' },
He.emojis.map(function(pt, ie) {
return Q.a.createElement(
'li',
{
key: ie,
'data-emoji': pt,
onClick: function(mt) {
return or(mt, He);
},
},
pt,
);
}),
),
),
);
},
br = w(63),
nr = function(He, pt) {
var ie = He.currentTarget.dataset.size,
gt = pt.hooks('toggle-letter-spacing', ie)(ie);
if (gt === !1) return !1;
isNaN(gt) || (ie = gt),
pt.editor.setValue(
Pt.ContentUtils.toggleSelectionLetterSpacing(pt.editorState, ie),
),
pt.editor.requestFocus();
},
Yr = function(He) {
var pt = null,
ie = null,
gt = null;
return (
He.letterSpacings.find(function(mt) {
return Pt.ContentUtils.selectionHasInlineStyle(
He.editorState,
'LETTERSPACING-' + mt,
)
? ((pt = mt), (ie = mt), !0)
: !1;
}),
Q.a.createElement(
$a,
{
autoHide: !0,
caption: pt || He.defaultCaption,
getContainerNode: He.getContainerNode,
title: He.language.controls.letterSpacing,
ref: function(Ut) {
return (gt = Ut);
},
className: 'control-item dropdown bf-letter-spacing-dropdown',
},
Q.a.createElement(
'ul',
{ className: 'bf-letter-spacings' },
He.letterSpacings.map(function(mt, Ut) {
return Q.a.createElement(
'li',
{
key: Ut,
className: mt === ie ? 'active' : null,
'data-size': mt,
onClick: function(Fn) {
nr(Fn, He), gt.hide();
},
},
mt,
);
}),
),
)
);
},
kr = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'state', { currentIndent: 0 }),
Z()(R()(ie), 'increaseIndent', function() {
ie.props.editor.setValue(
Pt.ContentUtils.increaseSelectionIndent(ie.props.editorState),
),
ie.props.editor.requestFocus();
}),
Z()(R()(ie), 'decreaseIndent', function() {
ie.props.editor.setValue(
Pt.ContentUtils.decreaseSelectionIndent(ie.props.editorState),
),
ie.props.editor.requestFocus();
}),
ie
);
}
return (
x()(He, [
{
key: 'componentWillReceiveProps',
value: function(ie) {
this.setState({
currentIndent:
Pt.ContentUtils.getSelectionBlockData(ie.editorState, 'textIndent') ||
0,
});
},
},
{
key: 'render',
value: function() {
var ie = this.state.currentIndent,
gt = this.props.language;
return Q.a.createElement(
Ai,
null,
Q.a.createElement(
'button',
{
key: 0,
type: 'button',
'data-title': gt.controls.increaseIndent,
disabled: ie >= 6,
className: 'control-item button button-indent-increase'.concat(
ie > 0 && ie < 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: ie <= 0,
className: 'control-item button button-indent-decrease',
onClick: this.decreaseIndent,
},
Q.a.createElement('i', { className: 'bfi-indent-decrease' }),
),
);
},
},
]),
He
);
})(Q.a.Component),
Ga = {
'inline-style': 'toggle-inline-style',
'block-type': 'change-block-type',
'editor-method': 'exec-editor-command',
},
Br = { superscript: 'subscript', subscript: 'superscript' },
Mr = function(He, pt, ie, gt) {
return (
(ie = ie.map(function(mt) {
return typeof mt == 'function' ? mt(He) : mt;
})),
(gt = gt.map(function(mt) {
return typeof mt == 'function' ? mt(He) : mt;
})),
ie.length === 0 && gt.length === 0
? pt
: pt
.map(function(mt) {
return (
gt.find(function(Ut) {
return Ut.replace === (mt.key || mt);
}) ||
ie.find(function(Ut) {
return Ut.replace === (mt.key || mt);
}) ||
mt
);
})
.concat(ie.length ? 'separator' : '')
.concat(
ie.filter(function(mt) {
return !mt.replace;
}),
)
.concat(
gt.filter(function(mt) {
return typeof mt == 'string' || !mt.replace;
}),
)
);
},
ia = (function(Ln) {
W()(He, Ln);
function He() {
var pt, ie;
M()(this, He);
for (var gt = arguments.length, mt = new Array(gt), Ut = 0; Ut < gt; Ut++)
mt[Ut] = arguments[Ut];
return (
(ie = d()(this, (pt = S()(He)).call.apply(pt, [this].concat(mt)))),
Z()(R()(ie), 'allControls', []),
Z()(R()(ie), 'mediaLibiraryModal', null),
Z()(R()(ie), 'extendedModals', {}),
Z()(R()(ie), 'openBraftFinder', function() {
if (!ie.props.braftFinder || !ie.props.braftFinder.ReactComponent) return !1;
if (ie.props.hooks('open-braft-finder')() === !1) return !1;
var Dt = ie.props.media,
Fn = ie.props.braftFinder.ReactComponent;
ie.mediaLibiraryModal = zr({
title: ie.props.language.controls.mediaLibirary,
language: ie.props.language,
width: 640,
showFooter: !1,
className: Dt.modalClassName,
component: Q.a.createElement(Fn, {
accepts: Dt.accepts,
onCancel: ie.closeBraftFinder,
onInsert: ie.insertMedias,
onChange: Dt.onChange,
externals: Dt.externals,
onBeforeSelect: ie.bindBraftFinderHook('select-medias'),
onBeforeDeselect: ie.bindBraftFinderHook('deselect-medias'),
onBeforeRemove: ie.bindBraftFinderHook('remove-medias'),
onBeforeInsert: ie.bindBraftFinderHook('insert-medias'),
onFileSelect: ie.bindBraftFinderHook('select-files'),
}),
});
}),
Z()(R()(ie), 'bindBraftFinderHook', function(Dt) {
return function() {
return ie.props
.hooks(Dt, arguments.length <= 0 ? void 0 : arguments[0])
.apply(void 0, arguments);
};
}),
Z()(R()(ie), 'insertMedias', function(Dt) {
ie.props.editor.setValue(
Pt.ContentUtils.insertMedias(ie.props.editorState, Dt),
),
ie.props.editor.requestFocus(),
ie.props.media.onInsert && ie.props.media.onInsert(Dt),
ie.closeBraftFinder();
}),
Z()(R()(ie), 'closeBraftFinder', function() {
ie.props.media.onCancel && ie.props.media.onCancel(),
ie.mediaLibiraryModal && ie.mediaLibiraryModal.close();
}),
ie
);
}
return (
x()(He, [
{
key: 'componentDidUpdate',
value: function() {
var ie = this,
gt = this.props.language;
this.allControls.forEach(function(mt) {
mt.type === 'modal' &&
mt.modal &&
mt.modal.id &&
ie.extendedModals[mt.modal.id] &&
ie.extendedModals[mt.modal.id].update(
D()({}, mt.modal, { language: gt }),
);
});
},
},
{
key: 'getControlItemClassName',
value: function(ie) {
var gt = 'control-item button',
mt = ie.type,
Ut = ie.command;
return (
((mt === 'inline-style' &&
Pt.ContentUtils.selectionHasInlineStyle(this.props.editorState, Ut)) ||
(mt === 'block-type' &&
Pt.ContentUtils.getSelectionBlockType(this.props.editorState) ===
Ut) ||
(mt === 'entity' &&
Pt.ContentUtils.getSelectionEntityType(this.props.editorState) ===
Ut)) &&
(gt += ' active'),
gt
);
},
},
{
key: 'applyControl',
value: function(ie, gt) {
var mt =
arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
Ut = this.props.hooks(Ga[gt] || gt, ie)(ie),
Dt = this.props.editorState;
if (Ut === !1) return !1;
if ((typeof Ut == 'string' && (ie = Ut), gt === 'inline-style')) {
var Fn = Br[ie];
Fn &&
Pt.ContentUtils.selectionHasInlineStyle(Dt, Fn) &&
(Dt = Pt.ContentUtils.toggleSelectionInlineStyle(Dt, Fn)),
this.props.editor.setValue(
Pt.ContentUtils.toggleSelectionInlineStyle(Dt, ie),
);
} else
gt === 'block-type'
? this.props.editor.setValue(
Pt.ContentUtils.toggleSelectionBlockType(Dt, ie),
)
: gt === 'entity'
? this.props.editor.setValue(
Pt.ContentUtils.toggleSelectionEntity(Dt, {
type: ie,
mutability: mt.mutability || 'MUTABLE',
data: mt.data || {},
}),
)
: gt === 'editor-method' &&
this.props.editor[ie] && this.props.editor[ie]();
},
},
{
key: 'render',
value: function() {
var ie = this,
gt = this.props,
mt = gt.editor,
Ut = gt.editorId,
Dt = gt.editorState,
Fn = gt.className,
qn = gt.style,
Ar = gt.controls,
xr = gt.media,
Xr = gt.extendControls,
sa = gt.language,
Da = gt.hooks,
Pa = gt.colors,
Ma = gt.colorPicker,
ka = gt.colorPickerTheme,
La = gt.colorPickerAutoHide,
xa = gt.headings,
ha = gt.fontSizes,
si = gt.fontFamilies,
Ca = gt.emojis,
ti = gt.getContainerNode,
li = gt.lineHeights,
Hr = gt.letterSpacings,
la = gt.textAligns,
Fa = gt.textBackgroundColor,
Lr = gt.allowInsertLinkText,
oa = gt.defaultLinkTarget,
Qa = Pt.ContentUtils.getSelectionBlockType(Dt),
Oi = {
editor: mt,
editorId: Ut,
editorState: Dt,
language: sa,
getContainerNode: ti,
hooks: Da,
},
j = [],
te = jn(sa, mt),
xe = Ce(Ut),
je = Mr(Oi, Ar, xe, Xr);
return (
(this.allControls = je),
Q.a.createElement(
'div',
{
className: 'bf-controlbar '.concat(Fn || ''),
style: qn,
onMouseDown: this.preventDefault,
},
je.map(function(Ze, xt) {
var Qt = typeof Ze == 'string' ? Ze : Ze.key;
if (typeof Qt != 'string') return null;
if (j.indexOf(Qt) > -1) return null;
if (Qt.toLowerCase() === 'separator')
return Q.a.createElement('span', {
key: xt,
className: 'separator-line',
});
var Vt = te.find(function(sr) {
return sr.key.toLowerCase() === Qt.toLowerCase();
});
if ((typeof Ze != 'string' && (Vt = D()({}, Vt, Ze)), !Vt))
return null;
if ((j.push(Qt), Vt.type === 'headings'))
return Q.a.createElement(
rr,
lt()(
{
key: xt,
headings: xa,
current: Qa,
onChange: function(Er) {
return ie.applyControl(Er, 'block-type');
},
},
Oi,
),
);
if (Vt.type === 'text-color')
return Q.a.createElement(
ht,
lt()(
{
key: xt,
colors: Pa,
colorPicker: Ma,
theme: ka,
autoHide: La,
enableBackgroundColor: Fa,
},
Oi,
),
);
if (Vt.type === 'font-size')
return Q.a.createElement(
Jt,
lt()({ key: xt, fontSizes: ha, defaultCaption: Vt.title }, Oi),
);
if (Vt.type === 'line-height')
return Q.a.createElement(
Ir,
lt()({ key: xt, lineHeights: li, defaultCaption: Vt.title }, Oi),
);
if (Vt.type === 'letter-spacing')
return Q.a.createElement(
Yr,
lt()(
{ key: xt, letterSpacings: Hr, defaultCaption: Vt.title },
Oi,
),
);
if (Vt.type === 'text-indent')
return Q.a.createElement(
kr,
lt()({ key: xt, defaultCaption: Vt.title }, Oi),
);
if (Vt.type === 'font-family')
return Q.a.createElement(
wt,
lt()({ key: xt, fontFamilies: si, defaultCaption: Vt.title }, Oi),
);
if (Vt.type === 'emoji')
return Q.a.createElement(
ur,
lt()({ key: xt, emojis: Ca, defaultCaption: Vt.text }, Oi),
);
if (Vt.type === 'link')
return Q.a.createElement(
mo,
lt()(
{ key: xt, defaultLinkTarget: oa, allowInsertLinkText: Lr },
Oi,
),
);
if (Vt.type === 'text-align')
return Q.a.createElement(sn, lt()({ key: xt, textAligns: la }, Oi));
if (Vt.type === 'media')
return !xr.image && !xr.video && !xr.audio
? null
: Q.a.createElement(
'button',
{
type: 'button',
key: xt,
'data-title': Vt.title,
disabled: Vt.disabled,
className: 'control-item media button',
onClick: ie.openBraftFinder,
},
Vt.text,
);
if (Vt.type === 'dropdown')
return Q.a.createElement(
$a,
lt()(
{
key: xt,
className: 'control-item extend-control-item dropdown '.concat(
Vt.className || '',
),
caption: Vt.text,
htmlCaption: Vt.html,
showArrow: Vt.showArrow,
title: Vt.title,
arrowActive: Vt.arrowActive,
theme: Vt.theme,
autoHide: Vt.autoHide,
disabled: Vt.disabled,
ref: Vt.ref,
},
Oi,
),
Vt.component,
);
if (Vt.type === 'modal')
return Q.a.createElement(
'button',
{
type: 'button',
key: xt,
'data-title': Vt.title,
disabled: Vt.disabled,
className: 'control-item extend-control-item button '.concat(
Vt.className || '',
),
dangerouslySetInnerHTML: Vt.html ? { __html: Vt.html } : null,
onClick: function(Er) {
Vt.modal &&
Vt.modal.id &&
(ie.extendedModals[Vt.modal.id]
? ((ie.extendedModals[Vt.modal.id].active = !0),
ie.extendedModals[Vt.modal.id].update(
D()({}, Vt.modal, { language: sa }),
))
: ((ie.extendedModals[Vt.modal.id] = zr(
D()({}, Vt.modal, { language: sa }),
)),
Vt.modal.onCreate &&
Vt.modal.onCreate(ie.extendedModals[Vt.modal.id]))),
Vt.onClick && Vt.onClick(Er);
},
},
Vt.html ? null : Vt.text,
);
if (Vt.type === 'component')
return Q.a.createElement(
'div',
{
key: xt,
className: 'component-wrapper '.concat(Vt.className || ''),
},
Vt.component,
);
if (Vt.type === 'button')
return Q.a.createElement(
'button',
{
type: 'button',
key: xt,
'data-title': Vt.title,
disabled: Vt.disabled,
className: 'control-item button '.concat(Vt.className || ''),
dangerouslySetInnerHTML: Vt.html ? { __html: Vt.html } : null,
onClick: function(Er) {
return Vt.onClick && Vt.onClick(Er);
},
},
Vt.html ? null : Vt.text,
);
if (Vt) {
var er = !1;
return (
Vt.command === 'undo'
? (er = Dt.getUndoStack().size === 0)
: Vt.command === 'redo' && (er = Dt.getRedoStack().size === 0),
Q.a.createElement(
'button',
{
type: 'button',
key: xt,
disabled: er,
'data-title': Vt.title,
className: ie.getControlItemClassName({
type: Vt.type,
command: Vt.command,
}),
onClick: function() {
return ie.applyControl(Vt.command, Vt.type, Vt.data);
},
},
Vt.text,
)
);
}
}),
)
);
},
},
{
key: 'preventDefault',
value: function(ie) {
var gt = ie.target.tagName.toLowerCase();
gt === 'input' || gt === 'label' || ie.preventDefault();
},
},
]),
He
);
})(Q.a.Component),
Zr = function(He) {
return function(pt) {
var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return (
He[pt] ||
function() {
return ie;
}
);
};
},
na = function(He, pt) {
return He.filter(function(ie) {
return !pt.find(function(gt) {
return gt.toLowerCase() === ie.toLowerCase();
});
}).filter(function(ie, gt, mt) {
return mt.indexOf(ie) === gt;
});
},
Fi = function(He, pt) {
return (
[].concat(ne()(He.controls), ne()(He.extendControls)).find(function(ie) {
return ie === pt || ie.key === pt;
}) && He.excludeControls.indexOf(pt) === -1
);
},
Di = function(He) {
var pt = He.editorId || He.id,
ie = D()({}, oe.converts, He.converts, { fontFamilies: He.fontFamilies });
return (
(ie.styleImportFn = ke(ie.styleImportFn, pt)),
(ie.styleExportFn = st(ie.styleExportFn, pt)),
(ie.entityImportFn = Lt(ie.entityImportFn, pt)),
(ie.entityExportFn = un(ie.entityExportFn, pt)),
(ie.blockImportFn = In(ie.blockImportFn, pt)),
(ie.blockExportFn = tr(ie.blockExportFn, pt)),
ie
);
},
ya = (function(Ln) {
W()(He, Ln);
function He(pt) {
var ie;
M()(this, He),
(ie = d()(this, S()(He).call(this, pt))),
Z()(R()(ie), 'onChange', function(Dt, Fn) {
Dt instanceof Wt.EditorState ||
(Dt = Wt.EditorState.set(Dt, { decorator: ie.editorDecorators })),
Dt.convertOptions || Dt.setConvertOptions(Di(ie.editorProps)),
ie.setState({ editorState: Dt }, function() {
ie.props.onChange && ie.props.onChange(Dt), Fn && Fn(Dt);
});
}),
Z()(R()(ie), 'getDraftInstance', function() {
return ie.draftInstance;
}),
Z()(R()(ie), 'getFinderInstance', function() {
return ie.braftFinder;
}),
Z()(R()(ie), 'getValue', function() {
return ie.state.editorState;
}),
Z()(R()(ie), 'setValue', function(Dt, Fn) {
return ie.onChange(Dt, Fn);
}),
Z()(R()(ie), 'forceRender', function() {
var Dt = ie.state.editorState.getSelection();
ie.setValue(
Wt.EditorState.set(ie.state.editorState, {
decorator: ie.editorDecorators,
}),
function() {
ie.setValue(Wt.EditorState.forceSelection(ie.state.editorState, Dt));
},
);
}),
Z()(R()(ie), 'onTab', function(Dt) {
yt('tab', ie.state.editorState, R()(ie)) === 'handled' && Dt.preventDefault(),
ie.editorProps.onTab && ie.editorProps.onTab(Dt);
}),
Z()(R()(ie), 'onFocus', function() {
(ie.isFocused = !0),
ie.editorProps.onFocus && ie.editorProps.onFocus(ie.state.editorState);
}),
Z()(R()(ie), 'onBlur', function() {
(ie.isFocused = !1),
ie.editorProps.onBlur && ie.editorProps.onBlur(ie.state.editorState);
}),
Z()(R()(ie), 'requestFocus', function() {
setTimeout(function() {
return ie.draftInstance.focus();
}, 0);
}),
Z()(R()(ie), 'handleKeyCommand', function(Dt, Fn) {
return yt(Dt, Fn, R()(ie));
}),
Z()(R()(ie), 'handleReturn', function(Dt, Fn) {
return an(Dt, Fn, R()(ie));
}),
Z()(R()(ie), 'handleBeforeInput', function(Dt, Fn) {
return Xt(Dt, Fn, R()(ie));
}),
Z()(R()(ie), 'handleDrop', function(Dt, Fn) {
return Gt(Dt, Fn, R()(ie));
}),
Z()(R()(ie), 'handleDroppedFiles', function(Dt, Fn) {
return en(Dt, Fn, R()(ie));
}),
Z()(R()(ie), 'handlePastedFiles', function(Dt) {
return xn(Dt, R()(ie));
}),
Z()(R()(ie), 'handleCopyContent', function(Dt) {
return qt(Dt, R()(ie));
}),
Z()(R()(ie), 'handlePastedText', function(Dt, Fn, qn) {
return Pn(Dt, Fn, qn, R()(ie));
}),
Z()(R()(ie), 'handleCompositionStart', function(Dt) {
return Ct(Dt, R()(ie));
}),
Z()(R()(ie), 'undo', function() {
ie.setValue(Pt.ContentUtils.undo(ie.state.editorState));
}),
Z()(R()(ie), 'redo', function() {
ie.setValue(Pt.ContentUtils.redo(ie.state.editorState));
}),
Z()(R()(ie), 'removeSelectionInlineStyles', function() {
ie.setValue(
Pt.ContentUtils.removeSelectionInlineStyles(ie.state.editorState),
);
}),
Z()(R()(ie), 'insertHorizontalLine', function() {
ie.setValue(Pt.ContentUtils.insertHorizontalLine(ie.state.editorState));
}),
Z()(R()(ie), 'clearEditorContent', function() {
ie.setValue(Pt.ContentUtils.clear(ie.state.editorState), function(Dt) {
ie.setValue(Pt.ContentUtils.toggleSelectionIndent(Dt, 0));
});
}),
Z()(R()(ie), 'toggleFullscreen', function(Dt) {
ie.setState(
{ isFullscreen: typeof Dt != 'undefined' ? Dt : !ie.state.isFullscreen },
function() {
ie.editorProps.onFullscreen &&
ie.editorProps.onFullscreen(ie.state.isFullscreen);
},
);
}),
Z()(R()(ie), 'setEditorContainerNode', function(Dt) {
ie.containerNode = Dt;
}),
(ie.editorProps = ie.getEditorProps(pt)),
(ie.editorDecorators = oi(ie.editorProps.editorId || ie.editorProps.id)),
(ie.isFocused = !1),
(ie.isLiving = !1),
(ie.braftFinder = null),
(ie.valueInitialized = !!(ie.props.defaultValue || ie.props.value));
var gt =
(ie.props.defaultValue || ie.props.value) instanceof Wt.EditorState
? ie.props.defaultValue || ie.props.value
: Wt.EditorState.createEmpty(ie.editorDecorators);
gt.setConvertOptions(Di(ie.editorProps));
var mt = [];
if (Pt.ContentUtils.isEditorState(gt)) {
var Ut = Pt.ColorUtils.detectColorsFromDraftState(gt.toRAW(!0));
gt.setConvertOptions(Di(ie.editorProps)), (mt = na(Ut, ie.editorProps.colors));
}
return (
(ie.state = {
tempColors: mt,
editorState: gt,
isFullscreen: !1,
draftProps: {},
}),
(ie.containerNode = null),
ie
);
}
return (
x()(He, [
{
key: 'getEditorProps',
value: function(ie) {
var gt = this;
ie = ie || this.props;
var mt = ie,
Ut = mt.value,
Dt = mt.defaultValue,
Fn = mt.onChange,
qn = I()(mt, ['value', 'defaultValue', 'onChange']),
Ar = Ve(qn.editorId || qn.id);
if (Ar.length === 0) return qn;
var xr = Object(Kt.Map)(qn);
return (
Ar.forEach(function(Xr) {
xr = xr.merge(Object(Kt.Map)(Xr(xr.toJS(), gt) || {}));
}),
xr.toJS()
);
},
},
{
key: 'componentWillMount',
value: function() {
if (Fi(this.editorProps, 'media')) {
var ie = this.editorProps,
gt = ie.language,
mt = ie.media,
Ut = D()({}, oe.media, mt),
Dt = Ut.uploadFn,
Fn = Ut.validateFn,
qn = Ut.items;
(this.braftFinder = new _t.a({
items: qn,
language: gt,
uploader: Dt,
validator: Fn,
})),
this.forceUpdate();
}
},
},
{
key: 'componentDidMount',
value: function() {
this.isLiving = !0;
},
},
{
key: 'componentDidUpdate',
value: function(ie, gt) {
gt.editorState !== this.state.editorState &&
this.state.editorState.setConvertOptions(Di(this.editorProps));
},
},
{
key: 'componentWillReceiveProps',
value: function(ie) {
var gt = this;
this.editorProps = this.getEditorProps(ie);
var mt = ie.value,
Ut = this.editorProps,
Dt = Ut.media,
Fn = Ut.language,
qn = this.getEditorProps();
if (
!Fi(qn, 'media') &&
Fi(this.editorProps, 'media') &&
!this.braftFinder
) {
var Ar = D()({}, oe.media, Dt),
xr = Ar.uploadFn,
Xr = Ar.validateFn,
sa = Ar.items;
(this.braftFinder = new _t.a({
items: sa,
language: Fn,
uploader: xr,
validator: Xr,
})),
this.forceUpdate();
}
Dt && Dt.items && this.braftFinder && this.braftFinder.setItems(Dt.items);
var Da;
if (
(!this.valueInitialized &&
typeof this.props.defaultValue == 'undefined' &&
Pt.ContentUtils.isEditorState(ie.defaultValue)
? (Da = ie.defaultValue)
: Pt.ContentUtils.isEditorState(mt) && (Da = mt),
Da)
)
if (Da && Da !== this.state.editorState) {
var Pa = Pt.ColorUtils.detectColorsFromDraftState(Da.toRAW(!0));
Da.setConvertOptions(Di(this.editorProps)),
this.setState(
{
tempColors: na(
[].concat(ne()(this.state.tempColors), ne()(Pa)),
qn.colors,
),
editorState: Da,
},
function() {
gt.props.onChange && gt.props.onChange(Da);
},
);
} else this.setState({ editorState: Da });
},
},
{
key: 'componentWillUnmount',
value: function() {
(this.isLiving = !1),
this.controlBarInstance && this.controlBarInstance.closeBraftFinder();
},
},
{
key: 'lockOrUnlockEditor',
value: function(ie) {
this.setState({ editorLocked: ie });
},
},
{
key: 'render',
value: function() {
var ie = this,
gt = this.editorProps,
mt = gt.id,
Ut = gt.editorId,
Dt = gt.controls,
Fn = gt.excludeControls,
qn = gt.extendControls,
Ar = gt.readOnly,
xr = gt.disabled,
Xr = gt.media,
sa = gt.language,
Da = gt.colors,
Pa = gt.colorPicker,
Ma = gt.colorPickerTheme,
ka = gt.colorPickerAutoHide,
La = gt.hooks,
xa = gt.fontSizes,
ha = gt.fontFamilies,
si = gt.emojis,
Ca = gt.placeholder,
ti = gt.fixPlaceholder,
li = gt.headings,
Hr = gt.imageControls,
la = gt.imageResizable,
Fa = gt.imageEqualRatio,
Lr = gt.lineHeights,
oa = gt.letterSpacings,
Qa = gt.textAligns,
Oi = gt.textBackgroundColor,
j = gt.allowInsertLinkText,
te = gt.defaultLinkTarget,
xe = gt.extendAtomics,
je = gt.className,
Ze = gt.style,
xt = gt.controlBarClassName,
Qt = gt.controlBarStyle,
Vt = gt.contentClassName,
er = gt.contentStyle,
sr = gt.stripPastedStyles,
Er = gt.componentBelowControlBar,
Gr = this.state,
ma = Gr.isFullscreen,
Wa = Gr.editorState;
(Ut = Ut || mt),
(La = Zr(La)),
(Dt = Dt.filter(function(al) {
return Fn.indexOf(al) === -1;
})),
(sa =
(typeof sa == 'function' ? sa(Ue, 'braft-editor') : Ue[sa]) ||
Ue[oe.language]);
var Ci =
Xr && Xr.externals
? D()({}, oe.media.externals, Xr.externals)
: oe.media.externals,
Ji =
Xr && Xr.accepts
? D()({}, oe.media.accepts, Xr.accepts)
: oe.media.accepts;
(Xr = D()({}, oe.media, Xr, { externalMedias: Ci, accepts: Ji })),
Xr.uploadFn || ((Xr.video = !1), (Xr.audio = !1));
var Vo = {
editor: this,
editorState: Wa,
braftFinder: this.braftFinder,
ref: function(Tl) {
return (ie.controlBarInstance = Tl);
},
getContainerNode: function() {
return ie.containerNode;
},
className: xt,
style: Qt,
colors: [].concat(ne()(Da), ne()(this.state.tempColors)),
colorPicker: Pa,
colorPickerTheme: Ma,
colorPickerAutoHide: ka,
hooks: La,
editorId: Ut,
media: Xr,
controls: Dt,
language: sa,
extendControls: qn,
headings: li,
fontSizes: xa,
fontFamilies: ha,
emojis: si,
lineHeights: Lr,
letterSpacings: oa,
textAligns: Qa,
textBackgroundColor: Oi,
allowInsertLinkText: j,
defaultLinkTarget: te,
},
Uo = Wa.convertOptions.unitExportFn,
is = {
editor: this,
editorId: Ut,
hooks: La,
editorState: Wa,
containerNode: this.containerNode,
imageControls: Hr,
imageResizable: la,
language: sa,
extendAtomics: xe,
imageEqualRatio: Fa,
},
rl = Ui(is, this.editorProps.blockRendererFn),
qc = ii(is, this.editorProps.blockRenderMap),
hc = Na(this.editorProps.blockStyleFn),
fs = Qi(is, this.editorProps.customStyleMap),
Is = so(is, {
fontFamilies: ha,
unitExportFn: Uo,
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),
Ca &&
ti &&
Wa.isEmpty() &&
Wa.getCurrentContent()
.getFirstBlock()
.getType() !== 'unstyled' &&
(Ca = '');
var yl = D()(
{
ref: function(Tl) {
ie.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: Ca,
stripPastedStyles: sr,
},
this.editorProps.draftProps,
Os,
);
return Q.a.createElement(
'div',
{
style: Ze,
ref: this.setEditorContainerNode,
className: 'bf-container '
.concat(je)
.concat(xr ? ' disabled' : '')
.concat(Ar ? ' read-only' : '')
.concat(ma ? ' fullscreen' : ''),
},
Q.a.createElement(ia, Vo),
Er,
Q.a.createElement(
'div',
{
onCompositionStart: this.handleCompositionStart,
className: 'bf-content '.concat(Vt),
onCopy: this.handleCopyContent,
style: er,
},
Q.a.createElement(Wt.Editor, yl),
),
);
},
},
]),
He
);
})(Q.a.Component);
Z()(ya, 'defaultProps', oe);
var Ua = w(14);
w.d(C, 'EditorState', function() {
return Wt.EditorState;
}),
w.d(C, 'getDecorators', function() {
return oi;
}),
(Wt.EditorState.prototype.setConvertOptions = function() {
var Ln = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
this.convertOptions = Ln;
}),
(Wt.EditorState.prototype.toHTML = function() {
var Ln = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
He = this.convertOptions || {};
return Object(Ua.convertEditorStateToHTML)(this, D()({}, He, Ln));
}),
(Wt.EditorState.prototype.toRAW = function(Ln) {
return Ln
? Object(Ua.convertEditorStateToRaw)(this)
: JSON.stringify(Object(Ua.convertEditorStateToRaw)(this));
}),
(Wt.EditorState.prototype.toText = function() {
return this.getCurrentContent().getPlainText();
}),
(Wt.EditorState.prototype.isEmpty = function() {
return !this.getCurrentContent().hasText();
}),
(ya.createEditorState = Wt.EditorState.createFrom = function(Ln) {
var He = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
(He.unitExportFn = He.unitExportFn || ya.defaultProps.converts.unitExportFn),
(He.styleImportFn = ke(He.styleImportFn, He.editorId)),
(He.entityImportFn = Lt(He.entityImportFn, He.editorId)),
(He.blockImportFn = In(He.blockImportFn, He.editorId));
var pt = null;
if (Ln instanceof Wt.EditorState) pt = Ln;
else if (F()(Ln) === 'object' && Ln && Ln.blocks && Ln.entityMap)
pt = Object(Ua.convertRawToEditorState)(Ln, oi(He.editorId));
else if (typeof Ln == 'string')
try {
/^(-)?\d+$/.test(Ln)
? (pt = Object(Ua.convertHTMLToEditorState)(
Ln,
oi(He.editorId),
He,
'create',
))
: (pt = Wt.EditorState.createFrom(JSON.parse(Ln), He));
} catch (ie) {
pt = Object(Ua.convertHTMLToEditorState)(Ln, oi(He.editorId), He, 'create');
}
else
typeof Ln == 'number'
? (pt = Object(Ua.convertHTMLToEditorState)(
Ln.toLocaleString().replace(/,/g, ''),
oi(He.editorId),
He,
'create',
))
: (pt = Wt.EditorState.createEmpty(oi(He.editorId)));
return (
(He.styleExportFn = st(He.styleExportFn, He.editorId)),
(He.entityExportFn = un(He.entityExportFn, He.editorId)),
(He.blockExportFn = tr(He.blockExportFn, He.editorId)),
pt.setConvertOptions(He),
pt
);
});
var Ti = (C.default = cr(ya));
},
function(p, C) {},
,
function(p, C) {},
,
,
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
function(p, C) {},
]);
});
},
yGk4: function(U, s, t) {
var r = t('Cwc5'),
u = t('Kz5y'),
o = r(u, 'Set');
U.exports = o;
},
yHx3: function(U, s) {
var t = Object.prototype,
r = t.hasOwnProperty;
function u(o) {
var a = o.length,
n = new o.constructor(a);
return (
a &&
typeof o[0] == 'string' &&
r.call(o, 'index') &&
((n.index = o.index), (n.input = o.input)),
n
);
}
U.exports = u;
},
yK9s: function(U, s, t) {
'use strict';
var r = t('xTJ+');
U.exports = function(o, a) {
r.forEach(o, function(e, g) {
g !== a && g.toUpperCase() === a.toUpperCase() && ((o[a] = e), delete o[g]);
});
};
},
yOY4: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.Alpha = void 0);
var r =
Object.assign ||
function(I) {
for (var P = 1; P < arguments.length; P++) {
var M = arguments[P];
for (var A in M) Object.prototype.hasOwnProperty.call(M, A) && (I[A] = M[A]);
}
return I;
},
u = (function() {
function I(P, M) {
for (var A = 0; A < M.length; A++) {
var x = M[A];
(x.enumerable = x.enumerable || !1),
(x.configurable = !0),
'value' in x && (x.writable = !0),
Object.defineProperty(P, x.key, x);
}
}
return function(P, M, A) {
return M && I(P.prototype, M), A && I(P, A), P;
};
})(),
o = t('q1tI'),
a = T(o),
n = t('/FUP'),
e = T(n),
g = t('THLb'),
m = w(g),
p = t('Nq3d'),
C = T(p);
function w(I) {
if (I && I.__esModule) return I;
var P = {};
if (I != null) for (var M in I) Object.prototype.hasOwnProperty.call(I, M) && (P[M] = I[M]);
return (P.default = I), P;
}
function T(I) {
return I && I.__esModule ? I : { default: I };
}
function F(I, P) {
if (!(I instanceof P)) throw new TypeError('Cannot call a class as a function');
}
function E(I, P) {
if (!I)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return P && (typeof P == 'object' || typeof P == 'function') ? P : I;
}
function D(I, P) {
if (typeof P != 'function' && P !== null)
throw new TypeError(
'Super expression must either be null or a function, not ' + typeof P,
);
(I.prototype = Object.create(P && P.prototype, {
constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 },
})),
P && (Object.setPrototypeOf ? Object.setPrototypeOf(I, P) : (I.__proto__ = P));
}
var O = (s.Alpha = (function(I) {
D(P, I);
function P() {
var M, A, x, h;
F(this, P);
for (var d = arguments.length, v = Array(d), S = 0; S < d; S++) v[S] = arguments[S];
return (
(h =
((A =
((x = E(
this,
(M = P.__proto__ || Object.getPrototypeOf(P)).call.apply(M, [this].concat(v)),
)),
x)),
(x.handleChange = function(N) {
var R = m.calculateChange(
N,
x.props.hsl,
x.props.direction,
x.props.a,
x.container,
);
R && typeof x.props.onChange == 'function' && x.props.onChange(R, N);
}),
(x.handleMouseDown = function(N) {
x.handleChange(N),
window.addEventListener('mousemove', x.handleChange),
window.addEventListener('mouseup', x.handleMouseUp);
}),
(x.handleMouseUp = function() {
x.unbindEventListeners();
}),
(x.unbindEventListeners = function() {
window.removeEventListener('mousemove', x.handleChange),
window.removeEventListener('mouseup', x.handleMouseUp);
}),
A)),
E(x, h)
);
}
return (
u(P, [
{
key: 'componentWillUnmount',
value: function() {
this.unbindEventListeners();
},
},
{
key: 'render',
value: function() {
var A = this,
x = 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(' +
x.r +
',' +
x.g +
',' +
x.b +
`, 0) 0%,
rgba(` +
x.r +
',' +
x.g +
',' +
x.b +
', 1) 100%)',
boxShadow: this.props.shadow,
borderRadius: this.props.radius,
},
container: { position: 'relative', height: '100%', margin: '0 3px' },
pointer: { position: 'absolute', left: x.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(' +
x.r +
',' +
x.g +
',' +
x.b +
`, 0) 0%,
rgba(` +
x.r +
',' +
x.g +
',' +
x.b +
', 1) 100%)',
},
pointer: { left: 0, top: x.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(C.default, { renderers: this.props.renderers }),
),
a.default.createElement('div', { style: h.gradient }),
a.default.createElement(
'div',
{
style: h.container,
ref: function(v) {
return (A.container = v);
},
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 }),
),
),
);
},
},
]),
P
);
})(o.PureComponent || o.Component));
s.default = O;
},
yP5f: function(U, s, t) {
var r = t('+K+b');
function u(o, a) {
var n = a ? r(o.buffer) : o.buffer;
return new o.constructor(n, o.byteOffset, o.length);
}
U.exports = u;
},
yWd1: function(U, s, t) {
'use strict';
t('1Ywk'), t('4Wux'), t('DGG2');
},
ygfH: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__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',
};
s.default = r;
},
yxyD: function(U, s, t) {
'use strict';
var r = t('jLRO'),
u = t('Taje'),
o = function(p, C) {
return p === C;
},
a = function(p) {
return !!p;
},
n = [];
function e(m, p, C) {
var w = [],
T = p
.map(function(F) {
return F.has(C);
})
.toList();
return (
u(T, o, a, function(F, E) {
var D = m.getText();
w.push({ offset: r.strlen(D.slice(0, F)), length: r.strlen(D.slice(F, E)), style: C });
}),
w
);
}
function g(m) {
var p = m
.getCharacterList()
.map(function(w) {
return w.getStyle();
})
.toList(),
C = p
.flatten()
.toSet()
.map(function(w) {
return e(m, p, w);
});
return Array.prototype.concat.apply(n, C.toJS());
}
U.exports = g;
},
z7Xi: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'UploadOutlined';
var e = (s.a = r.forwardRef(n));
},
zBBz: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var r = m(t('q1tI')),
u = e(t('Y+p1')),
o = e(t('THcq')),
a = e(t('3iFt')),
n = t('13hH');
function e(ce) {
return ce && ce.__esModule ? ce : { default: ce };
}
function g() {
if (typeof WeakMap != 'function') return null;
var ce = new WeakMap();
return (
(g = function() {
return ce;
}),
ce
);
}
function m(ce) {
if (ce && ce.__esModule) return ce;
if (ce === null || (p(ce) !== 'object' && typeof ce != 'function')) return { default: ce };
var Q = g();
if (Q && Q.has(ce)) return Q.get(ce);
var le = {},
J = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var ae in ce)
if (Object.prototype.hasOwnProperty.call(ce, ae)) {
var fe = J ? Object.getOwnPropertyDescriptor(ce, ae) : null;
fe && (fe.get || fe.set) ? Object.defineProperty(le, ae, fe) : (le[ae] = ce[ae]);
}
return (le.default = ce), Q && Q.set(ce, le), le;
}
function p(ce) {
return (
typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
? (p = function(le) {
return typeof le;
})
: (p = function(le) {
return le &&
typeof Symbol == 'function' &&
le.constructor === Symbol &&
le !== Symbol.prototype
? 'symbol'
: typeof le;
}),
p(ce)
);
}
function C() {
return (
(C =
Object.assign ||
function(ce) {
for (var Q = 1; Q < arguments.length; Q++) {
var le = arguments[Q];
for (var J in le) Object.prototype.hasOwnProperty.call(le, J) && (ce[J] = le[J]);
}
return ce;
}),
C.apply(this, arguments)
);
}
function w(ce, Q) {
if (ce == null) return {};
var le = T(ce, Q),
J,
ae;
if (Object.getOwnPropertySymbols) {
var fe = Object.getOwnPropertySymbols(ce);
for (ae = 0; ae < fe.length; ae++) {
if (((J = fe[ae]), Q.indexOf(J) >= 0)) continue;
if (!Object.prototype.propertyIsEnumerable.call(ce, J)) continue;
le[J] = ce[J];
}
}
return le;
}
function T(ce, Q) {
if (ce == null) return {};
var le = {},
J = Object.keys(ce),
ae,
fe;
for (fe = 0; fe < J.length; fe++) {
if (((ae = J[fe]), Q.indexOf(ae) >= 0)) continue;
le[ae] = ce[ae];
}
return le;
}
function F(ce, Q) {
var le = Object.keys(ce);
if (Object.getOwnPropertySymbols) {
var J = Object.getOwnPropertySymbols(ce);
Q &&
(J = J.filter(function(ae) {
return Object.getOwnPropertyDescriptor(ce, ae).enumerable;
})),
le.push.apply(le, J);
}
return le;
}
function E(ce) {
for (var Q = 1; Q < arguments.length; Q++) {
var le = arguments[Q] != null ? arguments[Q] : {};
Q % 2
? F(Object(le), !0).forEach(function(J) {
D(ce, J, le[J]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(ce, Object.getOwnPropertyDescriptors(le))
: F(Object(le)).forEach(function(J) {
Object.defineProperty(ce, J, Object.getOwnPropertyDescriptor(le, J));
});
}
return ce;
}
function D(ce, Q, le) {
return (
Q in ce
? Object.defineProperty(ce, Q, {
value: le,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (ce[Q] = le),
ce
);
}
function O(ce, Q) {
if (!(ce instanceof Q)) throw new TypeError('Cannot call a class as a function');
}
function I(ce, Q) {
return Q && (p(Q) === 'object' || typeof Q == 'function') ? Q : P(ce);
}
function P(ce) {
if (ce === void 0)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return ce;
}
function M(ce) {
return (
(M = Object.setPrototypeOf
? Object.getPrototypeOf
: function(le) {
return le.__proto__ || Object.getPrototypeOf(le);
}),
M(ce)
);
}
function A(ce, 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(ce, J.key, J);
}
}
function x(ce, Q, le) {
return Q && A(ce.prototype, Q), le && A(ce, le), ce;
}
function h(ce, Q) {
if (typeof Q != 'function' && Q !== null)
throw new TypeError('Super expression must either be null or a function');
(ce.prototype = Object.create(Q && Q.prototype, {
constructor: { value: ce, writable: !0, configurable: !0 },
})),
Q && d(ce, Q);
}
function d(ce, Q) {
return (
(d =
Object.setPrototypeOf ||
function(J, ae) {
return (J.__proto__ = ae), J;
}),
d(ce, Q)
);
}
var v = 'datetime',
S = 'date',
N = 'time',
R = 'month',
_ = 'year',
W = 24 * 60 * 60 * 1e3,
K = function(Q) {
return new Date(Q.getFullYear(), Q.getMonth() + 1, 0).getDate();
},
Z = function(Q) {
return Q < 10 ? '0'.concat(Q) : Q;
},
ee = function(Q) {
return new Date(+Q);
},
ne = function(Q, le) {
Q.setDate(Math.min(Q.getDate(), K(new Date(Q.getFullYear(), le)))), Q.setMonth(le);
},
ue = function(Q, le, J, ae, fe, Te) {
return new Date(Q, le, J, ae, fe, Te);
},
Ee = (function(ce) {
h(Q, ce),
x(Q, null, [
{
key: 'getDerivedStateFromProps',
value: function(J, ae) {
return (0, u.default)(
(0, a.default)(J, ['onChange', 'onInit', 'onTransition']),
(0, a.default)(ae.prevProps, ['onChange', 'onInit', 'onTransition']),
)
? null
: E({ prevProps: J }, (0, n.parseState)(J));
},
},
]);
function Q(le) {
var J;
O(this, Q),
(J = I(this, M(Q).call(this, le))),
(J.onValueChange = function(fe, Te) {
var we = J.props.onChange,
Le = J.getNewDate(fe, Te);
J.setState({ date: Le }), typeof we == 'function' && we(Le);
}),
(J.getNewDate = function(fe, Te) {
var we = J.props,
Le = we.mode,
qe = we.valueMember,
Me = parseInt(fe[Te][qe], 10),
ze = ee(J.getDate());
if (Le === _ || Le === R || Le === S || Le === v)
switch (Te) {
case 0:
ze.setFullYear(Me);
break;
case 1:
ne(ze, Me);
break;
case 2:
ze.setDate(Me);
break;
case 3:
ze.setHours(Me);
break;
case 4:
ze.setMinutes(Me);
break;
default:
break;
}
else
switch (Te) {
case 0:
ze.setHours(Me);
break;
case 1:
ze.setMinutes(Me);
break;
default:
break;
}
return J.clipDate(ze);
}),
(J.getColsValue = function() {
var fe = J.props.mode,
Te = J.getDate(),
we = [],
Le = [];
return (
fe === _ && ((we = J.getDateData()), (Le = [Te.getFullYear()])),
fe === R && ((we = J.getDateData()), (Le = [Te.getFullYear(), Te.getMonth()])),
(fe === S || fe === v) &&
((we = J.getDateData()),
(Le = [Te.getFullYear(), Te.getMonth(), Te.getDate()])),
fe === v &&
((we = we.concat(J.getTimeData())),
(Le = Le.concat([Te.getHours(), Te.getMinutes()]))),
fe === N && ((we = J.getTimeData()), (Le = [Te.getHours(), Te.getMinutes()])),
{ dataSource: we, value: Le }
);
}),
(J.getDateData = function() {
for (
var fe = J.props,
Te = fe.locale,
we = fe.mode,
Le = J.getDate(),
qe = [],
Me = [],
ze = [],
Xe = Le.getFullYear(),
Ue = Le.getMonth(),
Et = J.getMinYear(),
_t = J.getMaxYear(),
Pt = Et;
Pt <= _t;
Pt += 1
)
qe.push({ label: Pt + Te.year, value: Pt });
if (we === _) return [qe];
var Wt = 0,
Kt = 11;
Xe === Et && (Wt = J.getMinMonth()), Xe === _t && (Kt = J.getMaxMonth());
for (var Ge = Wt; Ge <= Kt; Ge += 1)
Me.push({ label: Ge + 1 + Te.month, value: Ge });
if (we === R) return [qe, Me];
var de = 1,
oe = K(Le);
Xe === Et && Ue === Wt && (de = J.getMinDay()),
Xe === _t && Ue === Kt && (oe = J.getMaxDay());
for (var Fe = de; Fe <= oe; Fe += 1) ze.push({ label: Fe + Te.day, value: Fe });
return we === S ? [qe, Me, ze] : [qe, Me, ze];
}),
(J.getTimeData = function() {
var fe = J.props,
Te = fe.locale,
we = fe.mode,
Le = fe.minuteStep,
qe = J.getDate(),
Me = [],
ze = [],
Xe = 0,
Ue = 23,
Et = 0,
_t = 59,
Pt = J.getMinHour(),
Wt = J.getMaxHour(),
Kt = J.getMinMinute(),
Ge = J.getMaxMinute(),
de = qe.getHours();
if (we === v) {
var oe = qe.getFullYear(),
Fe = qe.getMonth(),
Je = qe.getDate(),
rt = J.getMinYear(),
yt = J.getMaxYear(),
an = J.getMinMonth(),
Xt = J.getMaxMonth(),
Ct = J.getMinDay(),
Gt = J.getMaxDay();
oe === rt && Fe === an && Je === Ct && ((Xe = Pt), de === Xe && (Et = Kt)),
oe === yt && Fe === Xt && Je === Gt && ((Ue = Wt), de === Ue && (_t = Ge));
} else (Xe = Pt), de === Xe && (Et = Kt), (Ue = Wt), de === Ue && (_t = Ge);
for (var Yt = Xe; Yt <= Ue; Yt += 1)
Me.push({ label: Te.hour ? Yt + Te.hour : Z(Yt), value: Yt });
for (var en = Et; en <= _t; en += Le)
ze.push({ label: Te.minute ? en + Te.minute : Z(en), value: en });
return [Me, ze];
}),
(J.getDefaultDate = function() {
var fe = J.props,
Te = fe.min,
we = fe.mode,
Le = fe.minuteStep;
return Te && J.getMinDate().getTime() >= Date.now()
? J.getMinDate()
: Le && Le > 1 && (we === v || we === N)
? 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 fe = (0, n.isExtendDate)(J.props.min);
return fe || J.getDefaultMinDate();
}),
(J.getMaxDate = function() {
var fe = (0, n.isExtendDate)(J.props.max);
return fe || J.getDefaultMaxDate();
}),
(J.getDefaultMinDate = function() {
return ue(2e3, 0, 1, 0, 0, 0);
}),
(J.getDefaultMaxDate = function() {
return ue(2030, 11, 30, 23, 59, 59);
}),
(J.clipDate = function(fe) {
var Te = J.props.mode,
we = J.getMinDate(),
Le = J.getMaxDate();
if (Te === v) {
if (fe < we) return ee(we);
if (fe > Le) return ee(Le);
} else if (Te === S || Te === R || Te === _) {
if (+fe + W <= +we) return ee(we);
if (fe >= +Le + W) return ee(Le);
} else {
var qe = Le.getHours(),
Me = Le.getMinutes(),
ze = we.getHours(),
Xe = we.getMinutes(),
Ue = fe.getHours(),
Et = fe.getMinutes();
if (Ue < ze || (Ue === ze && Et < Xe)) return ee(we);
if (Ue > qe || (Ue === qe && Et > Me)) return ee(Le);
}
return fe;
}),
(J.onTransition = function(fe) {
typeof J.props.onTransition == 'function' && J.props.onTransition(fe);
}),
(J.state = (0, n.parseState)(le));
var ae = J.props.onInit;
return typeof ae == 'function' && ae(J.getDate()), J;
}
return (
x(Q, [
{
key: 'getDate',
value: function() {
var J = this.state,
ae = J.date,
fe = J.wheelDefault;
return this.clipDate(ae || fe || this.getDefaultDate());
},
},
{
key: 'render',
value: function() {
var J = this,
ae = this.props,
fe = ae.prefixCls,
Te = ae.className,
we = ae.onInit,
Le = w(ae, ['prefixCls', 'className', 'onInit']),
qe = this.getColsValue(),
Me = qe.dataSource,
ze = qe.value;
return r.default.createElement(
o.default,
C({}, Le, {
className: Te,
prefixCls: fe,
dataSource: Me,
value: ze,
onChange: this.onValueChange,
onTransition: function(Ue) {
J.onTransition(Ue);
},
}),
);
},
},
]),
Q
);
})(r.Component);
(s.default = Ee),
(Ee.defaultProps = {
prefixCls: 'za-date-picker-view',
mode: S,
disabled: !1,
value: '',
defaultValue: '',
minuteStep: 1,
valueMember: 'value',
});
},
zEVN: function(U, s, t) {
var r = t('Gi0A'),
u = t('sEf8'),
o = t('mdPL'),
a = o && o.isMap,
n = a ? u(a) : r;
U.exports = n;
},
zORg: function(U, s, t) {
'use strict';
function r(u) {
if (u instanceof Element) {
var o = u.getAttribute('data-offset-key');
if (o) return o;
for (var a = 0; a < u.childNodes.length; a++) {
var n = r(u.childNodes[a]);
if (n) return n;
}
}
return null;
}
U.exports = r;
},
zZ0H: function(U, s) {
function t(r) {
return r;
}
U.exports = t;
},
zdCA: function(U, s, t) {
'use strict';
var r = t('TqRt'),
u = t('284h');
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = void 0);
var o = u(t('q1tI')),
a = r(t('PSzr')),
n = r(t('KQxl')),
e = function(p, C) {
return o.createElement(n.default, Object.assign({}, p, { ref: C, icon: a.default }));
};
e.displayName = 'BarsOutlined';
var g = o.forwardRef(e);
s.default = g;
},
zlY5: function(U, s, t) {
'use strict';
var r = t('158f');
function u(o) {
var a = r(o),
n = 0,
e = 0,
g = 0,
m = 0;
if (a.length) {
if (a.length > 1 && a[0].width === 0) {
var p = a[1];
(n = p.top), (e = p.right), (g = p.bottom), (m = p.left);
} else {
var C = a[0];
(n = C.top), (e = C.right), (g = C.bottom), (m = C.left);
}
for (var w = 1; w < a.length; w++) {
var T = a[w];
T.height !== 0 &&
T.width !== 0 &&
((n = Math.min(n, T.top)),
(e = Math.max(e, T.right)),
(g = Math.max(g, T.bottom)),
(m = Math.min(m, T.left)));
}
}
return { top: n, right: e, bottom: g, left: m, width: e - m, height: g - n };
}
U.exports = u;
},
zoYe: function(U, s, t) {
var r = t('nmnc'),
u = t('eUgh'),
o = t('Z0cm'),
a = t('/9aa'),
n = 1 / 0,
e = r ? r.prototype : void 0,
g = e ? e.toString : void 0;
function m(p) {
if (typeof p == 'string') return p;
if (o(p)) return u(p, m) + '';
if (a(p)) return g ? g.call(p) : '';
var C = p + '';
return C == '0' && 1 / p == -n ? '-0' : C;
}
U.exports = m;
},
zonl: function(U, s, t) {
'use strict';
Object.defineProperty(s, '__esModule', { value: !0 }), (s.default = n);
var r = o(t('q1tI')),
u = o(t('0fCl'));
function o(e) {
return e && e.__esModule ? e : { default: e };
}
var a = new Set();
function n(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 m = function p(C) {
p.displayName = 'Iconfont';
var w = C.type,
T;
return (
w && (T = r.default.createElement('use', { xlinkHref: '#'.concat(w) })),
r.default.createElement(u.default, C, T)
);
};
return m;
}
},
zs7G: function(U, s, t) {
'use strict';
var r = t('q1tI'),
u = {
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 = u,
a = t('6VBw'),
n = function(m, p) {
return r.createElement(a.a, Object.assign({}, m, { ref: p, icon: o }));
};
n.displayName = 'DoubleRightOutlined';
var e = (s.a = r.forwardRef(n));
},
zuR4: function(U, s, t) {
'use strict';
var r = t('xTJ+'),
u = t('HSsa'),
o = t('CgaS'),
a = t('SntB'),
n = t('JEQr');
function e(m) {
var p = new o(m),
C = u(o.prototype.request, p);
return r.extend(C, o.prototype, p), r.extend(C, p), C;
}
var g = e(n);
(g.Axios = o),
(g.create = function(p) {
return e(a(g.defaults, p));
}),
(g.Cancel = t('endd')),
(g.CancelToken = t('jfS+')),
(g.isCancel = t('Lmem')),
(g.all = function(p) {
return Promise.all(p);
}),
(g.spread = t('DfZB')),
(U.exports = g),
(U.exports.default = g);
},
'zxN+': function(U, s, t) {
'use strict';
var r = t('zlY5');
function u(o) {
var a = o.getSelection();
if (!a.rangeCount) return null;
var n = a.getRangeAt(0),
e = r(n),
g = e.top,
m = e.right,
p = e.bottom,
C = e.left;
return g === 0 && m === 0 && p === 0 && C === 0 ? null : e;
}
U.exports = u;
},
},
]);
//# sourceMappingURL=p__editor.js.map