This commit is contained in:
醉梦
2024-09-24 17:45:24 +08:00
parent 664547ecf9
commit 6f38577012
844 changed files with 153916 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+227
View File
@@ -0,0 +1,227 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[1717],
{
61673: function (t, e, n) {
"use strict";
n.d(e, {
l: function () {
return r;
},
});
var a = n(4637),
c = n(84875),
s = n.n(c),
r = function (t) {
var e = t.data,
n = t.target,
c = t.dataTrackCategory,
r = t.dataTrackName,
i = t.dataTrackValue,
l = t.style,
u = t.className,
d = t.onClick;
return e && !e.disabled && e.text
? (0, a.jsx)("a", {
className: s()(u),
href: e.href,
target: n || "_self",
"data-track-category": c,
"data-track-name": r,
"data-track-value": null != i ? i : e.text,
style: l,
onClick: d,
children: e.text,
})
: null;
};
},
14268: function (t, e, n) {
"use strict";
n.d(e, {
u: function () {
return l;
},
});
var a = n(4637),
c = n(84875),
s = n.n(c),
r = n(10954),
i = n.n(r),
l = function (t) {
var e = t.subTitle,
n = t.title,
c = t.type;
return e
? "string" == typeof e
? (0, a.jsx)("p", {
className: s()(i().desc, i()[c]),
children: e,
})
: (e.content || (!e.link.disabled && e.link.text)) &&
(0, a.jsxs)("p", {
className: s()(i().desc, i()[c]),
children: [
e.content && (0, a.jsx)("span", { children: e.content }),
!e.link.disabled &&
e.link.text &&
(0, a.jsx)("a", {
href: e.link.href,
target: "_blank",
"data-track-category": n,
"data-track-name": "副标题",
"data-track-value": e.link.text,
children: e.link.text,
}),
],
})
: null;
};
},
94716: function (t, e, n) {
"use strict";
n.d(e, {
T: function () {
return i;
},
});
var a = n(4637),
c = n(14268),
s = n(84875),
r = n.n(s),
i = function (t) {
var e = t.wrapperClassName,
n = t.groupClassName,
s = t.groupRef,
i = t.block,
l = t.children,
u = t.subTitleType,
d = i.type,
o = i.data.render;
return (0, a.jsxs)("section", {
className: e,
"ui-type": d,
children: [
o.title && (0, a.jsx)("h2", { children: o.title }),
(0, a.jsx)(c.u, {
subTitle: o.subTitle,
title: o.title,
type: u,
}),
(0, a.jsx)("div", {
className: r()(n, "v5-group-base"),
ref: s,
children: l,
}),
],
});
};
},
11717: function (t, e, n) {
"use strict";
n.r(e),
n.d(e, {
V5G025: function () {
return d;
},
});
var a = n(4637),
c = n(84875),
s = n.n(c),
r = n(61673),
i = n(94716),
l = n(25165),
u = n.n(l),
d = function (t) {
var e = t.data,
n = e.render,
c = e.config,
l = t.type;
return (0, a.jsx)(i.T, {
wrapperClassName: u()[l],
block: t,
children:
(null == c ? void 0 : c.counts) &&
(0, a.jsx)("div", {
className: s()(
u()["card-list"],
u()["counts-".concat(c.counts)]
),
children:
null == n
? void 0
: n.items.map(function (t, e) {
var s;
return t && e < c.counts
? (0, a.jsxs)(
"div",
{
className: u().item,
children: [
(0, a.jsx)("i", {
className: u().icon,
style: {
backgroundImage: "url(".concat(
t.icon,
")"
),
},
}),
(0, a.jsxs)("div", {
className: u()["card-content"],
children: [
(0, a.jsx)("h3", { children: t.title }),
(0, a.jsx)("p", {
children: (0, a.jsxs)("span", {
children: [
t.desc,
(null === (s = t.link) ||
void 0 === s
? void 0
: s.text) &&
(0, a.jsx)(r.l, {
data: t.link,
dataTrackCategory: n.title,
dataTrackName: t.title,
target: "_blank",
}),
],
}),
}),
],
}),
],
},
e.toString()
)
: null;
}),
}),
});
};
},
10954: function (t) {
t.exports = { desc: "__69GpM8Qb", white: "dUv6_pZA" };
},
25165: function (t) {
t.exports = {
center: "E11vKXTq",
clearInput: "Awk2Z6ql",
ellipsis: "ox9Avu5m",
V5G025: "GXu8DdbV",
"card-list": "_RVgYHTQ",
"counts-2": "mqG6M2XX",
item: "sISPUjGi",
"counts-3": "sT_R5Jfa",
"counts-6": "ORJoernd",
"counts-9": "E6oApSdb",
"counts-4": "VvEJfGuf",
"counts-8": "U0nZA0Ei",
"counts-5": "M_qtLeLY",
"counts-10": "i5b6a34U",
icon: "cxA1_FnM",
"card-content": "__2iwCTxxz",
iconAni: "VWHk_b3u",
};
},
},
]);
File diff suppressed because it is too large Load Diff
+772
View File
@@ -0,0 +1,772 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[2391],
{
84535: function (e, t, n) {
"use strict";
function r(e, t, n) {
void 0 === n &&
(n = function (e, t, n) {
e[t] = n;
}),
(t =
t && "function" == typeof t
? t
: function () {
return !1;
});
for (var r = 0, a = 0; a < e.length; a++)
t(e[a], a) ? r++ : r > 0 && n(e, a - r, e[a]);
for (var a = 0; a < r; a++) e.pop();
return e;
}
function a(e, t, n) {
var r = e[t];
return (e[t] = e[n]), (e[n] = r), e;
}
n.d(t, {
un: function () {
return r;
},
wt: function () {
return a;
},
});
},
98537: function (e, t, n) {
"use strict";
n.d(t, {
Y: function () {
return c;
},
});
var r = n(59496),
a = n(47147);
function c(e) {
var t = (0, r.useRef)(),
n = (0, r.useState)(function () {
var n = (0, a.mf)(e) ? e() : e;
return (t.current = n), n;
}),
c = n[0],
o = n[1];
return [
c,
(0, r.useCallback)(function (e) {
(0, a.mf)(e)
? o(function (n) {
var r = e(n);
return (t.current = r), r;
})
: (o(e), (t.current = e));
}, []),
t,
];
}
},
674: function (e, t, n) {
"use strict";
n.d(t, {
K: function () {
return l;
},
});
var r = n(4637),
a = n(41934),
c = n(87995),
o = n(84535),
i = function () {
return (i =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var a in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
return e;
}).apply(this, arguments);
},
s = function (e, t, n, r) {
var a,
c = arguments.length,
o =
c < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" == typeof Reflect &&
"function" == typeof Reflect.decorate
)
o = Reflect.decorate(e, t, n, r);
else
for (var i = e.length - 1; i >= 0; i--)
(a = e[i]) &&
(o = (c < 3 ? a(o) : c > 3 ? a(t, n, o) : a(t, n)) || o);
return c > 3 && o && Object.defineProperty(t, n, o), o;
},
l = (function () {
function e() {
(this.nameDivMap = new Map()), (this.divNameMap = new Map());
}
return (
(e.prototype.open = function (e) {
var t = e.component,
n = t.name,
a = document.createElement("div");
c.render((0, r.jsx)(t, i({ id: a }, e.props)), a),
e.selector
? e.selector.appendChild(a)
: document.body.appendChild(a);
var o = this.nameDivMap.get(n) || [];
return (
o.push(a),
this.nameDivMap.set(n, o),
this.divNameMap.set(a, n),
a
);
}),
(e.prototype.destroyedEleAndCom = function (e) {
c.unmountComponentAtNode(e), e.remove();
}),
(e.prototype.removeDivFormMap = function (e, t) {
this.divNameMap.delete(t);
var n = this.nameDivMap.get(e) || [];
n.length > 0 &&
(0, o.un)(n, function (e) {
return e === t;
});
}),
(e.prototype.destroyed = function (e, t) {
var n = this;
setTimeout(function () {
var r = n.divNameMap.get(e);
if (t)
for (
var a = n.nameDivMap.has(r) ? n.nameDivMap.get(r) : [];
a.length > 0;
)
n.destroyedEleAndCom(a[0]), n.removeDivFormMap(r, a[0]);
else n.destroyedEleAndCom(e), n.removeDivFormMap(r, e);
}, 300);
}),
(e = s([(0, a.GS)()], e))
);
})();
},
61673: function (e, t, n) {
"use strict";
n.d(t, {
l: function () {
return o;
},
});
var r = n(4637),
a = n(84875),
c = n.n(a),
o = function (e) {
var t = e.data,
n = e.target,
a = e.dataTrackCategory,
o = e.dataTrackName,
i = e.dataTrackValue,
s = e.style,
l = e.className,
u = e.onClick;
return t && !t.disabled && t.text
? (0, r.jsx)("a", {
className: c()(l),
href: t.href,
target: n || "_self",
"data-track-category": a,
"data-track-name": o,
"data-track-value": null != i ? i : t.text,
style: s,
onClick: u,
children: t.text,
})
: null;
};
},
39145: function (e, t, n) {
"use strict";
n.d(t, {
d: function () {
return u;
},
});
var r = n(72006),
a = n(4405),
c = n(4637),
o = n(59496),
i = n(87995),
s = n(76150),
l = n.n(s);
function u(e) {
var t = e.isResetBody,
n = void 0 === t || t,
s = e.className,
u = e.style,
d = e.onClose,
m = e.maskClosable,
p = e.show,
f = e.keepModule,
v = void 0 !== f && f,
h = (0, o.useState)("0"),
b = h[0],
y = h[1],
x = (0, o.useState)("-1"),
j = x[0],
g = x[1],
k = (0, o.useState)("none"),
N = k[0],
w = k[1],
C = (0, o.useRef)(),
T = (0, o.useRef)(!1),
_ = (0, o.useRef)(),
M = (0, o.useRef)(),
Z = (0, o.useRef)(null),
A = (0, o.useCallback)(
function () {
y("0"),
setTimeout(function () {
g("-1");
}, 400),
(T.current = !0),
n &&
document.body.classList.contains("header-body-no-scroll") &&
(document.body.classList.remove("header-body-no-scroll"),
(document.body.style.top = null),
(document.body.style.overflowY = null),
window.scrollTo({ top: Z.current }),
(Z.current = null));
},
[n]
);
(0, o.useEffect)(
function () {
return (
(_.current = document.querySelector("html")),
(M.current = document.body),
p
? (w("block"),
setTimeout(function () {
y("1"), g("1999");
}, 100),
(T.current = !1),
Z.current || (Z.current = window.scrollY),
document.body.classList.add("header-body-no-scroll"),
(document.body.style.top = "-".concat(Z.current || 0, "px")),
document.body.scrollHeight > document.body.clientHeight &&
(document.body.style.overflowY = "scroll"))
: A(),
function () {
v || A();
}
);
},
[p, v, A]
);
var S = function () {
m && A();
},
R = function (e) {
if (e && (d && d(), !v)) {
var t = C.current.parentElement,
n = "DIV" === (null == t ? void 0 : t.tagName) ? t : C.current;
i.unmountComponentAtNode(n), n.remove();
}
};
return (0, c.jsx)("div", {
onTransitionEnd: function () {
return R(T.current);
},
className: "".concat(l()["u-modal-mask"], " ").concat(s || ""),
style: (0, a.Z)((0, r.Z)({}, u), {
opacity: b,
display: N,
zIndex: j,
}),
onClick: S,
ref: C,
children: (0, c.jsx)("div", {
onClick: function (e) {
e.stopPropagation();
},
className: "content-container",
style: { opacity: b },
children: e.children,
}),
});
}
},
14268: function (e, t, n) {
"use strict";
n.d(t, {
u: function () {
return s;
},
});
var r = n(4637),
a = n(84875),
c = n.n(a),
o = n(10954),
i = n.n(o),
s = function (e) {
var t = e.subTitle,
n = e.title,
a = e.type;
return t
? "string" == typeof t
? (0, r.jsx)("p", {
className: c()(i().desc, i()[a]),
children: t,
})
: (t.content || (!t.link.disabled && t.link.text)) &&
(0, r.jsxs)("p", {
className: c()(i().desc, i()[a]),
children: [
t.content && (0, r.jsx)("span", { children: t.content }),
!t.link.disabled &&
t.link.text &&
(0, r.jsx)("a", {
href: t.link.href,
target: "_blank",
"data-track-category": n,
"data-track-name": "副标题",
"data-track-value": t.link.text,
children: t.link.text,
}),
],
})
: null;
};
},
16352: function (e, t, n) {
"use strict";
n.d(t, {
j: function () {
return u;
},
});
var r = n(72006),
a = n(4405),
c = n(4637),
o = n(68741);
n(28106);
var i = n(84875),
s = n.n(i),
l = n(95323);
function u(e) {
return (0, c.jsx)(
o.Z,
(0, a.Z)(
(0, r.Z)(
{
renderTabBar: function (e) {
var t = e.panes,
n = e.onTabClick,
r = e.activeKey;
return (0, c.jsx)("div", {
className: "u-tabs-nav-list",
children: t.map(function (e) {
var t = e.props,
a = e.key;
return (0, c.jsx)(
"div",
{
onClick: function (e) {
return n(t.tabKey, e);
},
className: s()("u-tab-item", {
"u-tab-item-active": r === t.tabKey,
}),
children: (0, c.jsxs)("div", {
className: "u-tab-item-inner",
children: [
t.tab,
(0, c.jsx)("div", { className: "border" }),
],
}),
},
a
);
}),
});
},
},
e
),
{
className: s()(
"u-tab",
"left" === e.tabPosition && "u-tab-left",
e.className
),
}
)
);
}
n.n(l)().a;
},
94716: function (e, t, n) {
"use strict";
n.d(t, {
T: function () {
return i;
},
});
var r = n(4637),
a = n(14268),
c = n(84875),
o = n.n(c),
i = function (e) {
var t = e.wrapperClassName,
n = e.groupClassName,
c = e.groupRef,
i = e.block,
s = e.children,
l = e.subTitleType,
u = i.type,
d = i.data.render;
return (0, r.jsxs)("section", {
className: t,
"ui-type": u,
children: [
d.title && (0, r.jsx)("h2", { children: d.title }),
(0, r.jsx)(a.u, {
subTitle: d.subTitle,
title: d.title,
type: l,
}),
(0, r.jsx)("div", {
className: o()(n, "v5-group-base"),
ref: c,
children: s,
}),
],
});
};
},
52391: function (e, t, n) {
"use strict";
n.r(t),
n.d(t, {
V5G020: function () {
return g;
},
});
var r = n(4637),
a = n(16352),
c = n(61673),
o = n(59496),
i = n(41934),
s = n(674),
l = n(59072),
u = n(98537),
d = n(39145),
m = n(50257),
p = n.n(m),
f = function (e) {
var t = (0, l.Z)((0, u.Y)(!0), 2),
n = t[0],
a = t[1],
c = function () {
a(!1), e.onCancel && e.onCancel();
};
return (0, r.jsx)(d.d, {
className: p().mask,
show: n,
maskClosable: e.maskClosable,
onClose: c,
children: (0, r.jsx)("div", {
className: p()["image-wrapper"],
onClick: c,
children: (0, r.jsx)("img", { src: e.src, alt: "scale-img" }),
}),
});
},
v = n(84875),
h = n.n(v),
b = n(94716),
y = n(97288),
x = n.n(y),
j = function (e) {
var t,
n,
a,
o,
l,
u = e.data,
d = e.catgeory,
m = u.items[0],
p = null === (t = u.tab) || void 0 === t ? void 0 : t.name,
v = function () {
(0, i.BW)(s.K).open({
component: f,
props: { maskClosable: !0, src: m.image },
});
};
return (0, r.jsxs)("div", {
className: x()["tab-content"],
children: [
(0, r.jsxs)("div", {
className: x()["img-wrapper"],
children: [
(0, r.jsx)("img", { src: m.image, alt: p, onClick: v }),
(0, r.jsx)("div", {
className: x()["preview-img-btn"],
onClick: v,
}),
],
}),
(0, r.jsxs)("div", {
className: x()["right-block-wrapper"],
children: [
(0, r.jsx)("div", {
className: x()["sences-wrapper"],
children:
null === (n = m.sences) || void 0 === n
? void 0
: n.map(function (e, t) {
return (0,
r.jsxs)("div", { children: [e.title && (0, r.jsx)("h4", { children: e.title }), (0, r.jsxs)("p", { className: x().desc, children: [e.desc, (0, r.jsx)(c.l, { className: x().btn, data: e.detail, dataTrackCategory: d, dataTrackName: p, target: "_blank" })] })] }, t);
}),
}),
(0, r.jsxs)("div", {
className: x()["whats-wrapper"],
children: [
(0, r.jsx)("h4", { children: m.whatName }),
null === (a = m.whats) || void 0 === a
? void 0
: a.map(function (e, t) {
var n;
return (0, r.jsxs)(
"div",
{
children: [
(0, r.jsx)("h5", { children: e.title }),
null === (n = e.descs) || void 0 === n
? void 0
: n.map(function (e) {
return (0,
r.jsx)("p", { className: x().desc, children: e }, e);
}),
],
},
t
);
}),
],
}),
(null === (o = m.recommend) || void 0 === o
? void 0
: o.length) > 0 &&
(0, r.jsxs)("div", {
className: x()["recommend-wrapper"],
children: [
(0, r.jsx)("h4", { children: m.recommendName }),
(0, r.jsx)("div", {
className: x()["recommend-group"],
children: m.recommend.map(function (e) {
return (0,
r.jsxs)("a", { className: x()["recommend-item"], href: e.href, "data-track-category": d, "data-track-name": p, "data-track-value": e.title || e.desc, children: [(0, r.jsxs)("h5", { children: [(0, r.jsx)("span", { children: e.title }), (0, r.jsx)("i", {})] }), (0, r.jsx)("p", { children: e.desc })] }, e.title);
}),
}),
],
}),
(null === (l = m.relatedProducts) || void 0 === l
? void 0
: l.length) > 0 &&
(0, r.jsxs)("div", {
className: x()["related-products-wrapper"],
children: [
(0, r.jsx)("h4", { children: m.relatedProductsName }),
(0, r.jsx)("div", {
className: x()["related-products-content"],
children: m.relatedProducts.map(function (e) {
if (!e.icon) return null;
var t = e.icon.replace("@b", "@w"),
n = (0, r.jsxs)(r.Fragment, {
children: [
(0, r.jsx)("img", {
className: x().icon,
src: e.icon,
alt: "icon",
}),
(0, r.jsx)("img", {
className: x()["active-icon"],
src: t,
alt: "icon",
}),
(0, r.jsx)("p", { children: e.title }),
],
});
return e.href
? (0, r.jsx)("a", {
className:
x()["related-products-content-item"],
target: "_blank",
href: e.href,
"data-track-category": d,
"data-track-name": p,
"data-track-value": e.title,
children: n,
})
: (0, r.jsx)("div", {
className:
x()["related-products-content-item"],
children: n,
});
}),
}),
],
}),
],
}),
],
});
},
g = function (e) {
var t = e.data.render,
n = e.index,
c = (0, o.useState)(n % 2 == 0)[0];
return (0, r.jsx)(b.T, {
wrapperClassName: h()(
c && x()["even-module"],
t.tabs.length < 4 && x()["item-center"]
),
block: e,
children:
t.tabs.length > 1
? (0, r.jsx)(a.j, {
items: t.tabs.map(function (e) {
var n,
a =
null === (n = e.tab) || void 0 === n
? void 0
: n.name;
return {
key: a,
label: a,
children: (0, r.jsx)(j, { data: e, catgeory: t.title }),
};
}),
})
: (0, r.jsx)(j, { data: t.tabs[0], catgeory: t.title }),
});
};
},
76150: function (e) {
e.exports = { "u-modal-mask": "__9EcYiCyZ" };
},
50257: function (e) {
e.exports = { mask: "p_ixFvsH", "image-wrapper": "ukkwWGWu" };
},
10954: function (e) {
e.exports = { desc: "__69GpM8Qb", white: "dUv6_pZA" };
},
95323: function () {},
97288: function (e) {
e.exports = {
center: "Xqr4PmcF",
clearInput: "XJkdxODv",
ellipsis: "y0WWh73P",
"item-center": "__5V7jimu0",
"tab-content": "VFPTYGCe",
"img-wrapper": "cR5Z__nP",
"preview-img-btn": "CO1a3ldz",
"right-block-wrapper": "ovoKLM4G",
desc: "A3SiJqfS",
"sences-wrapper": "tg_Tz23R",
"whats-wrapper": "vLOOPFXD",
"V5G020-desc": "WXfHw5xV",
"recommend-wrapper": "uUU3nbV3",
"recommend-group": "TR541YoT",
"recommend-item": "rcpZaof7",
"related-products-wrapper": "keJMC09N",
"related-products-content": "AbBJ3xA3",
"related-products-content-item": "__7Z4hYPMR",
"active-icon": "ygkz0e14",
"even-module": "__0dSfOpSV",
};
},
8160: function (e, t, n) {
"use strict";
function r(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
n.d(t, {
Z: function () {
return r;
},
});
},
45421: function (e, t, n) {
"use strict";
function r(e) {
if (
("undefined" != typeof Symbol && null != e[Symbol.iterator]) ||
null != e["@@iterator"]
)
return Array.from(e);
}
n.d(t, {
Z: function () {
return r;
},
});
},
59072: function (e, t, n) {
"use strict";
n.d(t, {
Z: function () {
return c;
},
});
var r = n(45421),
a = n(27319);
function c(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e;
})(e) ||
(0, r.Z)(e, t) ||
(0, a.Z)(e, t) ||
(function () {
throw TypeError(
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
})()
);
}
},
27319: function (e, t, n) {
"use strict";
n.d(t, {
Z: function () {
return a;
},
});
var r = n(8160);
function a(e, t) {
if (e) {
if ("string" == typeof e) return (0, r.Z)(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
if (
("Object" === n && e.constructor && (n = e.constructor.name),
"Map" === n || "Set" === n)
)
return Array.from(n);
if (
"Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
)
return (0, r.Z)(e, t);
}
}
},
},
]);
File diff suppressed because it is too large Load Diff
+595
View File
@@ -0,0 +1,595 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[2711],
{
38059: function (e, t, a) {
"use strict";
a.d(t, {
i: function () {
return m;
},
});
var n = a(4637),
i = a(16114),
r = a(32699),
l = a(59496),
s = a(84875),
c = a.n(s),
o = a(61586),
d = a.n(o),
m = function (e) {
var t,
a,
s,
o,
m,
u,
v,
h,
p,
x,
k = e.navList,
f = e.trackCategory,
g = e.productListMode,
j = e.className,
b = (0, l.useRef)(null),
N = (0, l.useState)(!1),
y = N[0],
_ = N[1],
w = (0, l.useState)(0),
L = w[0],
P = w[1],
S =
(null === (t = k.type) || void 0 === t ? void 0 : t.type) ===
"IMAGE"
? (0, n.jsx)("img", { src: k.type.image, alt: f })
: null === (a = k.type) || void 0 === a
? void 0
: a.text,
C = function () {
var e = b.current.querySelectorAll("li");
return (0, r.reduce)(
e,
function (e, t) {
return e + t.offsetWidth + 14;
},
0
);
},
M = function (e) {
var t = b.current.offsetWidth;
if ("left" === e && 0 !== L) P(Math.min(0, L + t));
else if ("right" === e) {
var a = C();
a + L > t && P(Math.max(t - a, L - t));
}
};
return (
(0, i.FI)(function () {
if (b.current) {
var e;
b.current.offsetWidth < C() && _(!0);
}
}),
(0, n.jsx)("div", {
className: c()(d().nav, j),
children: (0, n.jsxs)("div", {
className: c()("width1180-center", d().container),
children: [
(0, n.jsx)("h3", {
children:
(null === (s = k.type) || void 0 === s
? void 0
: s.disabled) ||
!(null === (o = k.type) || void 0 === o ? void 0 : o.href)
? S
: (0, n.jsx)("a", {
href:
null === (m = k.type) || void 0 === m
? void 0
: m.href,
"data-track-category": f,
"data-track-name": "banner导航",
"data-track-value":
(null === (u = k.type) || void 0 === u
? void 0
: u.type) === "IMAGE"
? null === (v = k.type) || void 0 === v
? void 0
: v.image
: null === (h = k.type) || void 0 === h
? void 0
: h.text,
children: S,
}),
}),
(0, n.jsx)("span", { className: d().line }),
(0, n.jsx)("div", {
className: c()(d()["btn-left"], y && d().show),
onClick: function () {
return M("left");
},
children: (0, n.jsx)("img", {
src: "ht:/bce.bdstatic.com/p3m/common-service/uploads/banner-icon-left_41e47b9a.png",
alt: "left-icon",
}),
}),
(0, n.jsx)("div", {
className: d().list,
ref: b,
children: (0, n.jsxs)("ul", {
className: c()(d().items, "clearfix"),
style: { transform: "translateX(".concat(L, "px)") },
children: [
k.name &&
(0, n.jsx)("li", {
className: c()(
(k.name.active ||
(null === (p = k.units) || void 0 === p
? void 0
: p.every(function (e) {
var t;
return !(null === (t = e.link) ||
void 0 === t
? void 0
: t.active);
}))) &&
d().active
),
children:
k.name.disabled || !k.name.href
? k.name.text
: (0, n.jsx)("a", {
href: k.name.href,
"data-track-category": f,
"data-track-name": "banner导航",
"data-track-value": k.name.text,
children: k.name.text,
}),
}),
"split" === g &&
(0, n.jsx)("li", { className: d().line }),
null === (x = k.units) || void 0 === x
? void 0
: x.map(function (e) {
var t;
return (
(null == e ? void 0 : e.link) &&
(0, n.jsx)(
"li",
{
className: c()(
(null === (t = e.link) || void 0 === t
? void 0
: t.active) && d().active
),
children:
e.link.disabled || !e.link.href
? e.link.text
: (0, n.jsx)("a", {
href: e.link.href,
"data-track-category": f,
"data-track-name": "banner导航",
"data-track-value": e.link.text,
children: e.link.text,
}),
},
e.link.text
)
);
}),
],
}),
}),
(0, n.jsx)("div", {
className: c()(d()["btn-right"], y && d().show),
onClick: function () {
return M("right");
},
children: (0, n.jsx)("img", {
src: "ht:/bce.bdstatic.com/p3m/common-service/uploads/banner-icon-left_41e47b9a.png",
alt: "right-icon",
}),
}),
],
}),
})
);
};
},
62711: function (e, t, a) {
"use strict";
a.r(t),
a.d(t, {
V5S001: function () {
return g;
},
});
var n = a(72006),
i = a(4637),
r = a(59496),
l = a(20723),
s = a(41934),
c = a(674),
o = a(61673),
d = a(79918),
m = a(38059),
u = a(24462),
v = a(84875),
h = a.n(v),
p = a(93876),
x = a.n(p),
k = "头图",
f = function (e) {
var t,
a,
n,
l = e.data,
v = e.type,
p = l.config,
f = l.render,
g = f.banner,
j = (0, r.useMemo)(
function () {
return p.isNewBanner && !p.hideProductList && f.productList;
},
[p.hideProductList, p.isNewBanner, f.productList]
),
b = function (e) {
(0, s.BW)(c.K).open({
component: d.N,
props: { config: { file: e }, initSdk: !0 },
});
};
return (0, i.jsxs)(i.Fragment, {
children: [
(0, i.jsxs)("section", {
"ui-type": v,
className: h()(
x()["banner-old"],
x()[v],
p.isNewBanner && x()["new-banner"],
j && x()["has-nav"]
),
children: [
j &&
(0, i.jsx)(m.i, {
trackCategory: f.banner.title,
productListMode: p.productListMode,
navList: f.productList,
className: x().nav,
}),
(0, i.jsxs)("div", {
className: h()(x().group, "v5-group-base"),
children: [
p.withVideo && g.video
? (0, i.jsxs)("div", {
className: x()["banner-title-container"],
children: [
(0, i.jsx)("h1", { children: g.title }),
(0, i.jsx)("span", {
className: x()["banner-video-icon"],
"data-track-category": "头图",
"data-track-name": "视频播放按钮",
"data-track-value": g.video.title,
onClick: function () {
b(g.video.url);
},
}),
],
})
: (0, i.jsx)("h1", { children: g.title }),
(0, i.jsx)("div", {
className: x().desc,
dangerouslySetInnerHTML: { __html: g.content },
}),
g.similarProduct &&
(0, i.jsxs)("p", {
className: x()["similar-product"],
children: [
(0, i.jsx)("span", {
children: g.similarProduct.purchasePercent,
}),
"的用户同时购买了",
(0, i.jsx)("a", {
href: g.similarProduct.path,
target: "_blank",
children: g.similarProduct.serviceName,
}),
],
}),
g.background.image
? (0, i.jsx)("div", {
className: x()["img-box"],
children: (0, i.jsx)("img", {
src: g.background.image,
alt: g.title,
}),
})
: null,
(0, i.jsx)("div", {
className: x()["detail-box"],
children: (0, i.jsxs)("div", {
className: x()["apply-box"],
children: [
(0, i.jsx)(o.l, {
className: x()["primary-link"],
data: g.primaryLink,
dataTrackCategory: k,
dataTrackName: "主按钮",
target: "_blank",
}),
(0, i.jsx)(o.l, {
className: x().console,
data: g.secondaryLink,
dataTrackCategory: k,
dataTrackName: "副按钮",
target: "_blank",
}),
p.withCalculatorLink &&
g.calculatorLink &&
!g.calculatorLink.disabled &&
(0, i.jsxs)("a", {
className: x().calculator,
href: g.calculatorLink.href,
target: "_blank",
"data-track-category": k,
"data-track-name": "价格计算器",
"data-track-value": "价格计算器",
children: [
(0, i.jsx)("img", {
src: "ht:/bce.bdstatic.com/p3m/common-service/uploads/da385075910224c0dde95bb59837586d.png",
alt: "价格计算器",
}),
(0, i.jsx)("span", {
className: x().tips,
children:
"V5S001_en" === v
? (0, i.jsxs)(i.Fragment, {
children: [
"价格计算器",
(0, i.jsx)("i", {
className: x()["arrow-right"],
}),
],
})
: "价格计算器",
}),
],
}),
p.withTertiaryLink &&
g.tertiaryLink &&
!g.tertiaryLink.disabled &&
(0, i.jsx)("a", {
className: x()["doc-index"],
href: g.tertiaryLink.href,
target: "_blank",
"data-track-category": k,
"data-track-name": g.tertiaryLink.text,
"data-track-value": g.tertiaryLink.text,
children:
null === (t = g.tertiaryLink.text) ||
void 0 === t
? void 0
: t.trim().replace(/ *>*$/, ""),
}),
],
}),
}),
],
}),
],
}),
(0, i.jsx)(u.o, {
data: f.nav,
isDefaultHide:
p.withPromotion && "textLink" !== p.promotionMode,
}),
p.withPromotion &&
(0, i.jsxs)("section", {
className: h()(
"V5S001_en" === v && "en",
x()["v5-promotion"],
p.isNewBanner && x()["new-banner"]
),
children: [
(0, i.jsx)("div", { className: x().top }),
(0, i.jsx)("div", { className: x().bottom }),
(0, i.jsx)("div", {
className: h()(x().group, "v5-group-base"),
children:
(null === (a = f.promotionV2.items) || void 0 === a
? void 0
: a.length) > 0
? (0, i.jsx)("div", {
className: h()(
x()["promotion-wrapper"],
x()[
"column-length-".concat(p.promotionV2Columns)
]
),
children: f.promotionV2.items
.slice(0, p.promotionV2Columns)
.map(function (e, t) {
var a;
return (0, i.jsxs)(
"div",
{
className: h()(
x().promotion,
x()["promotion-block"]
),
children: [
(0, i.jsxs)("div", {
className: x()["promotion-head"],
children: [
e.icon &&
(0, i.jsx)("div", {
className: x().icon,
children: (0, i.jsx)("img", {
src: e.icon,
alt: "icon",
}),
}),
e.title &&
(0, i.jsx)("div", {
className: x().title,
children: e.title,
}),
],
}),
null === (a = e.units) || void 0 === a
? void 0
: a.map(function (e) {
if (!e.link) return null;
var t,
a = e.link.disabled
? (0, i.jsx)(
"span",
{ children: e.link.text },
e.link.text
)
: (0, i.jsx)(
"a",
{
className:
x()["text-link"],
target: "_blank",
href: e.link.href,
"data-track-category":
k,
"data-track-name":
"promotion",
"data-track-value":
e.link.href,
children: e.link.text,
},
e.link.text
);
return (
null === (t = e.tag) ||
void 0 === t
? void 0
: t.text
)
? (0, i.jsxs)(
"div",
{
className:
x()[
"text-link-wrapper"
],
children: [
(0, i.jsx)("i", {
className: h()(
x().tag,
x()[e.tag.type]
),
children: e.tag.text,
}),
a,
],
},
e.link.text
)
: a;
}),
],
},
t
);
}),
})
: (0, i.jsx)("div", {
className: h()(
x()["promotion-wrapper"],
x()["column-length-".concat(p.promotionColumns)]
),
children:
null === (n = f.promotion.items) || void 0 === n
? void 0
: n.map(function (e) {
return (0,
i.jsxs)("div", { className: "promotion", children: [(0, i.jsx)("div", { className: x().title, children: e.title }), (0, i.jsx)("div", { className: x().content, children: e.content }), (0, i.jsx)(o.l, { className: x()["text-link"], data: e.link, dataTrackCategory: k, dataTrackName: e.title, target: "_blank" })] }, e.title);
}),
}),
}),
],
}),
],
});
};
function g(e) {
var t = e.data.config;
return (0, i.jsx)(i.Fragment, {
children: t.isNewBanner2202
? (0, i.jsx)(l.R, (0, n.Z)({}, e))
: (0, i.jsx)(f, (0, n.Z)({}, e)),
});
}
},
61586: function (e) {
e.exports = {
nav: "U4xr2f_K",
container: "e6jElWnt",
hide: "__75cR__Bu",
"is-img": "wBy1ySoD",
line: "V1eapMfw",
list: "s4tPEFNf",
items: "__1n1hSE9g",
active: "_r_1B45e",
"btn-left": "__2IkWRAbI",
"btn-right": "YkY_4nLz",
show: "vnjyBWlM",
};
},
93876: function (e) {
e.exports = {
center: "NSZGrIUA",
clearInput: "kJd_wbTy",
ellipsis: "E3uEHh_P",
nav: "__7wOHUN9V",
"calculator-img": "TIBp7kTL",
"banner-old": "QfW61geP",
"has-nav": "WNPxGcE2",
calculator: "HI1sqKgK",
fixed: "S8UR0QvZ",
"new-banner": "LbPo8Uox",
group: "GPPUiCRR",
"img-box": "mrsi8Yol",
desc: "qlPUwaBm",
"detail-box": "_AcogkAA",
"apply-box": "__663tDRKP",
console: "oRVv546d",
"doc-index": "cv4jsycD",
"banner-title-container": "tzxOIB_0",
"banner-video-icon": "pvw1AP8f",
"event-box": "U9zegH4T",
event: "B2KOmb2H",
"icon-discountmanage": "W9mzHkrQ",
"primary-link": "__80GrcmRW",
tips: "__4C_eMh4Z",
"arrow-right": "l_oqlmfN",
V5S001: "gpvXu77B",
"similar-product": "GhbGvaK7",
"v5-promotion": "vn5rWQRM",
promotion: "__5xoSje0a",
top: "QKbIQZGD",
bottom: "RyJzTfe9",
"promotion-block": "yZLN3wmo",
"promotion-head": "O_iFKfXd",
icon: "SRKRycx2",
title: "tvUfj3o_",
"text-link-wrapper": "FAzO48dl",
tag: "Vw_bdp6V",
hot: "wf5hF7se",
content: "lUU_jKsC",
"promotion-wrapper": "yZH9SUjy",
"column-length-1": "SgSGEksV",
"column-length-2": "Ys7X_Mws",
"column-length-3": "mdI5nl1M",
en: "DIn8eqgj",
V5S001_en: "hApxemEy",
};
},
},
]);
+438
View File
@@ -0,0 +1,438 @@
"use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[3023],
{
73023: function (t, e, n) {
var r = (function () {
if ("undefined" != typeof Map) return Map;
function t(t, e) {
var n = -1;
return (
t.some(function (t, r) {
return t[0] === e && ((n = r), !0);
}),
n
);
}
return (function () {
function e() {
this.__entries__ = [];
}
return (
Object.defineProperty(e.prototype, "size", {
get: function () {
return this.__entries__.length;
},
enumerable: !0,
configurable: !0,
}),
(e.prototype.get = function (e) {
var n = t(this.__entries__, e),
r = this.__entries__[n];
return r && r[1];
}),
(e.prototype.set = function (e, n) {
var r = t(this.__entries__, e);
~r
? (this.__entries__[r][1] = n)
: this.__entries__.push([e, n]);
}),
(e.prototype.delete = function (e) {
var n = this.__entries__,
r = t(n, e);
~r && n.splice(r, 1);
}),
(e.prototype.has = function (e) {
return !!~t(this.__entries__, e);
}),
(e.prototype.clear = function () {
this.__entries__.splice(0);
}),
(e.prototype.forEach = function (t, e) {
void 0 === e && (e = null);
for (var n = 0, r = this.__entries__; n < r.length; n++) {
var i = r[n];
t.call(e, i[1], i[0]);
}
}),
e
);
})();
})(),
i =
"undefined" != typeof window &&
"undefined" != typeof document &&
window.document === document,
o =
void 0 !== n.g && n.g.Math === Math
? n.g
: "undefined" != typeof self && self.Math === Math
? self
: "undefined" != typeof window && window.Math === Math
? window
: Function("return this")(),
s =
"function" == typeof requestAnimationFrame
? requestAnimationFrame.bind(o)
: function (t) {
return setTimeout(function () {
return t(Date.now());
}, 1e3 / 60);
},
c = [
"top",
"right",
"bottom",
"left",
"width",
"height",
"size",
"weight",
],
a = "undefined" != typeof MutationObserver,
h = (function () {
function t() {
(this.connected_ = !1),
(this.mutationEventsAdded_ = !1),
(this.mutationsObserver_ = null),
(this.observers_ = []),
(this.onTransitionEnd_ = this.onTransitionEnd_.bind(this)),
(this.refresh = (function (t, e) {
var n = !1,
r = !1,
i = 0;
function o() {
n && ((n = !1), t()), r && a();
}
function c() {
s(o);
}
function a() {
var t = Date.now();
if (n) {
if (t - i < 2) return;
r = !0;
} else (n = !0), (r = !1), setTimeout(c, 20);
i = t;
}
return a;
})(this.refresh.bind(this), 20));
}
return (
(t.prototype.addObserver = function (t) {
~this.observers_.indexOf(t) || this.observers_.push(t),
this.connected_ || this.connect_();
}),
(t.prototype.removeObserver = function (t) {
var e = this.observers_,
n = e.indexOf(t);
~n && e.splice(n, 1),
!e.length && this.connected_ && this.disconnect_();
}),
(t.prototype.refresh = function () {
this.updateObservers_() && this.refresh();
}),
(t.prototype.updateObservers_ = function () {
var t = this.observers_.filter(function (t) {
return t.gatherActive(), t.hasActive();
});
return (
t.forEach(function (t) {
return t.broadcastActive();
}),
t.length > 0
);
}),
(t.prototype.connect_ = function () {
i &&
!this.connected_ &&
(document.addEventListener(
"transitionend",
this.onTransitionEnd_
),
window.addEventListener("resize", this.refresh),
a
? ((this.mutationsObserver_ = new MutationObserver(
this.refresh
)),
this.mutationsObserver_.observe(document, {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0,
}))
: (document.addEventListener(
"DOMSubtreeModified",
this.refresh
),
(this.mutationEventsAdded_ = !0)),
(this.connected_ = !0));
}),
(t.prototype.disconnect_ = function () {
i &&
this.connected_ &&
(document.removeEventListener(
"transitionend",
this.onTransitionEnd_
),
window.removeEventListener("resize", this.refresh),
this.mutationsObserver_ && this.mutationsObserver_.disconnect(),
this.mutationEventsAdded_ &&
document.removeEventListener(
"DOMSubtreeModified",
this.refresh
),
(this.mutationsObserver_ = null),
(this.mutationEventsAdded_ = !1),
(this.connected_ = !1));
}),
(t.prototype.onTransitionEnd_ = function (t) {
var e = t.propertyName,
n = void 0 === e ? "" : e;
c.some(function (t) {
return !!~n.indexOf(t);
}) && this.refresh();
}),
(t.getInstance = function () {
return (
this.instance_ || (this.instance_ = new t()), this.instance_
);
}),
(t.instance_ = null),
t
);
})(),
u = function (t, e) {
for (var n = 0, r = Object.keys(e); n < r.length; n++) {
var i = r[n];
Object.defineProperty(t, i, {
value: e[i],
enumerable: !1,
writable: !1,
configurable: !0,
});
}
return t;
},
f = function (t) {
return (t && t.ownerDocument && t.ownerDocument.defaultView) || o;
},
d = l(0, 0, 0, 0);
function p(t) {
return parseFloat(t) || 0;
}
function v(t) {
for (var e = [], n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
return e.reduce(function (e, n) {
return e + p(t["border-" + n + "-width"]);
}, 0);
}
var _ =
"undefined" != typeof SVGGraphicsElement
? function (t) {
return t instanceof f(t).SVGGraphicsElement;
}
: function (t) {
return (
t instanceof f(t).SVGElement && "function" == typeof t.getBBox
);
};
function l(t, e, n, r) {
return { x: t, y: e, width: n, height: r };
}
var b = (function () {
function t(t) {
(this.broadcastWidth = 0),
(this.broadcastHeight = 0),
(this.contentRect_ = l(0, 0, 0, 0)),
(this.target = t);
}
return (
(t.prototype.isActive = function () {
var t = (function (t) {
if (!i) return d;
if (_(t)) {
var e, n;
return l(0, 0, (n = t.getBBox()).width, n.height);
}
return (function (t) {
var e = t.clientWidth,
n = t.clientHeight;
if (!e && !n) return d;
var r,
i = f(t).getComputedStyle(t),
o = (function t(e) {
for (
var n = {},
r = 0,
i = ["top", "right", "bottom", "left"];
r < i.length;
r++
) {
var o = i[r],
s = e["padding-" + o];
n[o] = p(s);
}
return n;
})(i),
s = o.left + o.right,
c = o.top + o.bottom,
a = p(i.width),
h = p(i.height);
if (
("border-box" === i.boxSizing &&
(Math.round(a + s) !== e &&
(a -= v(i, "left", "right") + s),
Math.round(h + c) !== n &&
(h -= v(i, "top", "bottom") + c)),
(r = t),
r !== f(r).document.documentElement)
) {
var u = Math.round(a + s) - e,
_ = Math.round(h + c) - n;
1 !== Math.abs(u) && (a -= u),
1 !== Math.abs(_) && (h -= _);
}
return l(o.left, o.top, a, h);
})(t);
})(this.target);
return (
(this.contentRect_ = t),
t.width !== this.broadcastWidth ||
t.height !== this.broadcastHeight
);
}),
(t.prototype.broadcastRect = function () {
var t = this.contentRect_;
return (
(this.broadcastWidth = t.width),
(this.broadcastHeight = t.height),
t
);
}),
t
);
})(),
m = function (t, e) {
var n,
r,
i,
o,
s,
c,
a =
((r = e.x),
(i = e.y),
(o = e.width),
(s = e.height),
(c = Object.create(
("undefined" != typeof DOMRectReadOnly
? DOMRectReadOnly
: Object
).prototype
)),
u(c, {
x: r,
y: i,
width: o,
height: s,
top: i,
right: r + o,
bottom: s + i,
left: r,
}),
c);
u(this, { target: t, contentRect: a });
},
y = (function () {
function t(t, e, n) {
if (
((this.activeObservations_ = []),
(this.observations_ = new r()),
"function" != typeof t)
)
throw TypeError(
"The callback provided as parameter 1 is not a function."
);
(this.callback_ = t),
(this.controller_ = e),
(this.callbackCtx_ = n);
}
return (
(t.prototype.observe = function (t) {
if (!arguments.length)
throw TypeError("1 argument required, but only 0 present.");
if ("undefined" != typeof Element && Element instanceof Object) {
if (!(t instanceof f(t).Element))
throw TypeError('parameter 1 is not of type "Element".');
var e = this.observations_;
!e.has(t) &&
(e.set(t, new b(t)),
this.controller_.addObserver(this),
this.controller_.refresh());
}
}),
(t.prototype.unobserve = function (t) {
if (!arguments.length)
throw TypeError("1 argument required, but only 0 present.");
if ("undefined" != typeof Element && Element instanceof Object) {
if (!(t instanceof f(t).Element))
throw TypeError('parameter 1 is not of type "Element".');
var e = this.observations_;
e.has(t) &&
(e.delete(t),
e.size || this.controller_.removeObserver(this));
}
}),
(t.prototype.disconnect = function () {
this.clearActive(),
this.observations_.clear(),
this.controller_.removeObserver(this);
}),
(t.prototype.gatherActive = function () {
var t = this;
this.clearActive(),
this.observations_.forEach(function (e) {
e.isActive() && t.activeObservations_.push(e);
});
}),
(t.prototype.broadcastActive = function () {
if (this.hasActive()) {
var t = this.callbackCtx_,
e = this.activeObservations_.map(function (t) {
return new m(t.target, t.broadcastRect());
});
this.callback_.call(t, e, t), this.clearActive();
}
}),
(t.prototype.clearActive = function () {
this.activeObservations_.splice(0);
}),
(t.prototype.hasActive = function () {
return this.activeObservations_.length > 0;
}),
t
);
})(),
g = "undefined" != typeof WeakMap ? new WeakMap() : new r(),
w = function t(e) {
if (!(this instanceof t))
throw TypeError("Cannot call a class as a function.");
if (!arguments.length)
throw TypeError("1 argument required, but only 0 present.");
var n = h.getInstance(),
r = new y(e, n, this);
g.set(this, r);
};
["observe", "unobserve", "disconnect"].forEach(function (t) {
w.prototype[t] = function () {
var e;
return (e = g.get(this))[t].apply(e, arguments);
};
});
var E = void 0 !== o.ResizeObserver ? o.ResizeObserver : w;
e.Z = E;
},
},
]);
+733
View File
@@ -0,0 +1,733 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[3126],
{
12005: function (n, t, e) {
"use strict";
e.d(t, {
QO: function () {
return z;
},
zp: function () {
return na;
},
Nb: function () {
return W;
},
Kk: function () {
return function n(t, e) {
var o = t.parentNode;
return o
? o.classList.contains(e)
? o
: "BODY" === o.tagName
? null
: n(o, e)
: null;
};
},
HK: function () {
return F;
},
iz: function () {
return D;
},
eN: function () {
return j;
},
LT: function () {
return nc;
},
eS: function () {
return ni;
},
A2: function () {
return R;
},
Lc: function () {
return M;
},
U4: function () {
return U;
},
mX: function () {
return J;
},
w4: function () {
return X;
},
ig: function () {
return L;
},
Zd: function () {
return O;
},
Ky: function () {
return P;
},
cx: function () {
return k;
},
oD: function () {
return V;
},
Qq: function () {
return Q;
},
ZR: function () {
return x;
},
XT: function () {
return E;
},
pH: function () {
return G;
},
w1: function () {
return N;
},
tC: function () {
return H;
},
Yo: function () {
return Y;
},
Go: function () {
return I;
},
NN: function () {
return ne;
},
b1: function () {
return nr;
},
V1: function () {
return K;
},
PB: function () {
return nn;
},
Sw: function () {
return B;
},
z: function () {
return q;
},
QU: function () {
return C;
},
mx: function () {
return S;
},
});
var o = e(57135),
r = e(72006),
c = e(4405),
i = e(59072),
a = e(9970),
u = e(96583),
s = e(41934),
l = e(96131),
d = e(1753),
p = e(47147),
m = e(42369),
f = e(75239),
v = e(88576),
h = e(88929),
b = e(57473),
g = e(93881),
y = e.n(g),
w = e(56719),
A = e.n(w),
T = e(48522),
_ = function (n, t) {
if (
!t ||
((t = t.toUpperCase()),
/^\d{6}\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}$/.test(t))
)
return Promise.resolve();
if (
!/^\d{6}(18|19|20)\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
t
) ||
!{
11: "北京",
12: "天津",
13: "河北",
14: "山西",
15: "内蒙古",
21: "辽宁",
22: "吉林",
23: "黑龙江 ",
31: "上海",
32: "江苏",
33: "浙江",
34: "安徽",
35: "福建",
36: "江西",
37: "山东",
41: "河南",
42: "湖北",
43: "湖南",
44: "广东",
45: "广西",
46: "海南",
50: "重庆",
51: "四川",
52: "贵州",
53: "云南",
54: "西藏 ",
61: "陕西",
62: "甘肃",
63: "青海",
64: "宁夏",
65: "新疆",
71: "台湾",
81: "香港",
82: "澳门",
91: "国外 ",
}[t.substring(0, 2)]
)
return Promise.reject(Error("请输入正确的身份证号"));
if (18 === t.length) {
for (
var e = t[17],
o = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2],
r = 0,
c = 0;
c < 17;
c++
)
r += Number(t[c]) * o[c];
return e ===
["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"][r % 11]
? Promise.resolve()
: Promise.reject(Error("请输入正确的身"));
}
return Promise.resolve();
},
k = function () {
return document.documentElement.scrollTop || document.body.scrollTop;
},
C = function (n) {
(document.documentElement.scrollTop = n),
(document.body.scrollTop = n);
};
function U(n) {
return k() + n.getBoundingClientRect().top;
}
function O() {
var n = (0, s.BW)(T.q).isProdOnline ? h.ZE.online : h.ZE.sandbox;
return ""
.concat(n, "?redirect=")
.concat(
encodeURIComponent(location.href.replace(location.hash, "")) +
location.hash
);
}
function P() {
var n = (0, s.BW)(T.q).isProdOnline ? h.vY.online : h.vY.sandbox;
return ""
.concat(n, "?redirect=")
.concat(
encodeURIComponent(location.href.replace(location.hash, "")) +
location.hash
);
}
function x() {
var n = location.host.includes("")
? "bce.baidu.com"
: "bcetest.baidu.com",
t = "//".concat(n, "/api/account/v2/displayName");
return new Promise(function (n, e) {
(0, d.R)(t, { timeout: 3e3 })
.then(function (t) {
t.success || e(t);
var o = t && t.result;
!0 !== o.hasLogin && e(t);
var r = o.cookies,
c = location.hostname;
for (var i in (l.Z.remove("bce-sessionid", {
path: "/",
domain: c,
}),
r))
if ("bce-sessionid" === i) {
var a = r["bce-sessionid"];
a &&
l.Z.set("bce-sessionid", a, {
path: "/",
domain: ".".concat(c),
});
} else {
var u = r[i] || "";
l.Z.set(i, u, { path: "/", domain: ".".concat(c) });
}
n(t);
})
.catch(function (n) {
return e(n);
});
});
}
function I(n) {
return "others" === n ? "其它" : "其它" === n ? "others" : n;
}
var S = function (n) {
var t =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: "wx2e48c7f781c8f283";
f.y
.post(v.N.GET_WX_SHARE, {
appId: t,
url: encodeURIComponent(window.location.href.split("#")[0]),
})
.then(function (t) {
(0, m.wxSdkLoad)({
appId: t.result.appId,
timestamp: t.result.timestamp,
nonceStr: t.result.nonceStr,
signature: t.result.signature,
shareInfo: {
title: n.title || document.title,
desc: n.desc,
imgUrl:
n.img ||
"https://.png",
link: location.href,
success: function () {
console.info("微信sdk加载成功了");
},
},
});
})
.catch(function (n) {
console.info(n);
});
};
function E() {
var n = document.createElement("link");
(n.href =
"https://bce.bdstatic.com/developer-static/dep/editor.md/css/editormd.css"),
(n.rel = "stylesheet"),
document.head.appendChild(n);
}
function N() {
return (
!!(0, s.BW)(T.q).isClient &&
(!!window.ActiveXObject || "ActiveXObject" in window)
);
}
var Z,
R =
((Z = (0, o.Z)(function () {
var n, t;
return (0, u.__generator)(this, function (e) {
switch (e.label) {
case 0:
if (((n = window["paris_".concat(h.vw)]), (t = 600), !n))
return [2, t];
return [
4,
n.getAcsTokenWithAbcliteActiveReport(
{ subid: "" },
function (n) {
t = n;
}
),
];
case 1:
return e.sent(), [2, t];
}
});
})),
function () {
return Z.apply(this, arguments);
});
function L(n) {
return n <= 700 ? h.Um.wap : n <= 1220 ? h.Um.pcWrap : h.Um.pc;
}
var q = function (n) {
window.require
? window.require(["monitor"], function (t) {
t.default.trackBehavior(n);
})
: window.Monitor
? window.Monitor.default.trackBehavior(n)
: setTimeout(function () {
var t;
null === (t = window.Monitor) ||
void 0 === t ||
t.default.trackBehavior(n);
}, 500);
};
function z(n) {
return new Promise(function (t, e) {
new b.T(
(0, c.Z)((0, r.Z)({}, n), {
callback: function (e, o) {
n.callback && n.callback(e, o), t(e);
},
errHandler: function (n) {
e(n);
},
})
);
});
}
function W(n) {
var t = { lt: "<", gt: ">", nbsp: " ", amp: "&", quot: '"' };
return n.replace(/&(lt|gt|nbsp|amp|quot);/gi, function (n, e) {
return t[e];
});
}
function B(n) {
return n.replace(h.t0, h.V0);
}
function H() {
var n = document.createElement("script");
(n.src = "///"),
(n.async = !0),
document.body.appendChild(n);
}
var j = function (n) {
n.count = n.count || 1;
var t = [
"serviceType",
"configId",
"configGroupId",
"region",
"duration",
"timeUnit",
"count",
"specs",
].reduce(function (t, e) {
var o, r;
return "specs" !== e
? "".concat(t).concat(n[e] || "")
: null !==
(r =
null === (o = n[e]) || void 0 === o
? void 0
: o.reduce(function (n, t) {
return ""
.concat(n)
.concat(t.name || "")
.concat(t.value || "")
.concat(t.scale || "");
}, t)) && void 0 !== r
? r
: t;
}, ""),
e = (0, s.BW)(T.q).isProdOnline
? "07d92e84-7d59-46cf-84bf-e339b6d32e09"
: "8b661235-ac07-478c-9b7d-a8ab463f8c89";
return A().stringify(y()(t + e));
},
D = function () {
return {
18628: {
content: "您不是百度智能云新用户,请领取其他代金券",
okText: "确定",
url: "",
},
18656: { content: "您已领取过优惠券", okText: "确定", url: "" },
230: {
content: "您还未完成实名,请完成实名认证后再参与活动",
okText: "去实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
209: {
content: "您还未完成实名,请完成实名认证后再参与活动",
okText: "去实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
210: {
content: "您还未完成实名,请完成实名认证后再参与活动",
okText: "去实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
211: {
content: "您还未完成实名,请完成实名认证后再参与活动",
okText: "去实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
203: {
content: "您还未完成实名,请完成实名认证后再参与活动",
okText: "去实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
226: {
content: "您不是企业用户,请完成企业实名后再参与活动",
okText: "去企业实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
227: {
content: "您不是个人用户,请完成个人实名后再参与活动",
okText: "去个人实名",
// url: "https://console.bce.baidu.com/iam/#/iam/user/overview",
},
201: {
content: "您还未完成实名和激活,请激活并实名后再参与活动",
okText: "去激活",
// url: "https://console.bce.baidu.com/iam/#/iam/user/v2/activate~hideBar=1&redirect=".concat(
// encodeURIComponent(window.location.href)
// ),
},
};
},
M = function (n) {
var t, e, o;
return "DISCOUNT_COUPON" === n.couponType
? {
type: (
null == n
? void 0
: null === (o = n.conditionArgsMap) || void 0 === o
? void 0
: o.productTotalPrice
)
? "discount_limit"
: "discount",
name: "预付费单订单通用券",
isApportionmentAmount: !1,
}
: "CASH_COUPON" === n.couponType &&
(null === (t = n.conditionArgsMap) || void 0 === t
? void 0
: t.productTotalPrice)
? {
type: "single_product_order_cash_full",
name: "单产品单订单满减券",
isApportionmentAmount: !0,
}
: "CASH_COUPON" === n.couponType &&
(null == n
? void 0
: null === (e = n.conditionArgsMap) || void 0 === e
? void 0
: e.price)
? {
type: "single_product_cash_full",
name: "单订单满减券",
isApportionmentAmount: !0,
}
: "CASH_COUPON" === n.couponType && null === n.conditionArgsMap
? { type: "common", name: "通用券", isApportionmentAmount: !0 }
: {
type: "other",
name: n.conditionEffectDescription,
isApportionmentAmount: !1,
};
};
function X(n, t, e) {
var o = (0, s.BW)(T.q).isProdOnline ? h.ye.online : h.ye.sandbox;
return ""
.concat(o, "?orderId=")
.concat(n, "&succUrl=")
.concat(t, "&failUrl=")
.concat(e);
}
var Y = function (n) {
var t =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: "_blank",
e = document.createElement("a");
e.setAttribute("href", n),
e.setAttribute("target", t),
e.setAttribute("style", "display: none;"),
document.body.appendChild(e),
e.click(),
e.parentNode.removeChild(e);
},
$ = null,
G = function () {
var n =
!(arguments.length > 0) || void 0 === arguments[0] || arguments[0];
n
? (document.body.classList.remove("header-body-no-scroll"),
(document.body.style.top = null),
(document.body.style.overflowY = null),
$ && window.scrollTo({ top: $ }),
($ = null))
: ($ || ($ = window.scrollY),
document.body.classList.add("header-body-no-scroll"),
(document.body.style.top = "-".concat($ || 0, "px")),
document.body.scrollHeight > document.body.clientHeight &&
(document.body.style.overflowY = "scroll"));
};
function J(n) {
return window.innerWidth * (n / 750);
}
var K = function () {
var n = window.localStorage.getItem("portalPageUrl"),
t = ((n && JSON.parse(n)) || { prev: "" }).prev,
e = location.href.replace(location.origin, "");
location.replace(
"/404.html?from="
.concat(encodeURIComponent(t), "&target=")
.concat(encodeURIComponent(e))
);
},
Q = function (n) {
var t =
arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
return (t && h.p_[n]) || n;
},
V = function () {
var n =
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
return {
id: { validator: _, message: Q("身份证信息不正确", n) },
mobile: {
pattern: /^1[3|4|5|6|7|8|9][0-9]{9}$/,
message: Q("请正确填写手机号码", n),
},
email: {
pattern:
/^([A-Za-z0-9_\-.])+@([A-Za-z0-9_\-.])+\.([A-Za-z]{2,4})$/,
message: Q("请正确填写电子邮箱", n),
},
number: {
pattern: /^[0-9]+\.{0,1}[0-9]{0,2}$/,
message: Q("输入有误,请输入数字", n),
},
url: {
pattern:
/[-a-zA-Z0-9@:%._\\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/,
message: Q("输入的URL有误,请输入正确的URL地址", n),
},
letter: {
pattern: /^[A-Za-z]+$/,
message: Q("输入有误,请输入字母", n),
},
};
},
F = function (n) {
var t = n.formData,
e = n.pageData,
o = {
questions: Object.entries(t).map(function (n) {
var t = (0, i.Z)(n, 2),
e = t[0],
o = t[1];
return {
title: e,
answers: (0, p.kJ)(o)
? o.map(function (n) {
return { answer: n };
})
: [{ answer: o }],
};
}),
campaignId: e.serviceType,
};
return (
e.needLogin && (o.pageId = e.pageId),
e.path.includes("survey_summit") &&
((o.pageId = e.pageId), (o.needLogin = !!e.needLogin)),
o
);
},
nn = function (n, t) {
var e,
o = JSON.parse(
localStorage.getItem("PORTAL_LATEST_PRODUCT") || "[]"
),
r = [],
c = [];
return (
null == n ||
n.forEach(function (n) {
if (r.length < t) {
if ("dynamic" === n.recommendType) {
var e,
i = new Set(o),
u = new Set(
(null === (e = n.recommendKey) || void 0 === e
? void 0
: e.split(",").map(function (n) {
return n.toUpperCase();
})) || []
);
new Set(
(0, a.Z)(Array.from(i)).concat((0, a.Z)(Array.from(u)))
).size <
i.size + u.size
? r.push(n)
: c.push(n);
} else r.push(n);
}
}),
r.length < t && r.push.apply(r, (0, a.Z)(c.slice(0, t - r.length))),
r
);
},
nt = ["", "cloudtest.baidu.com"],
ne = function () {
var n = new URLSearchParams(location.search).get("track"),
t = location.pathname.startsWith("/doc/");
nt.includes(location.host) &&
(location.pathname.startsWith("/product/") ||
location.pathname.startsWith("/campaign/") ||
"/" === location.pathname ||
t ||
location.pathname.startsWith("/cloudlive/")) &&
f.y.post(
v.N.POST_PUSH_LEADS_TO_CRM,
{
sourcePath: t
? location.pathname.split("/").slice(0, 3).join("/")
: location.pathname,
},
null,
{ headers: { track: n } }
);
},
no = [
"qifu.baidu.com",
"qifu-sandbox.baidu-int.com",
"tms.baidu.com",
"tms.baidu-int.com",
],
nr = function () {
no.includes(location.host) &&
f.y.post("/api/portal/leads", {
sourcePath: location.origin + location.pathname,
});
},
nc = function (n) {
return f.y.get(v.N.GET_AI_ACCELERATE_JOIN_STATUS, { campaignId: n });
};
function ni(n, t, e) {
return e[
Object.keys(t).find(function (e) {
return t[e].includes(n);
}) || "serverErr"
];
}
var na = function (n) {
var t = n.text,
e = n.successCb,
o = n.errorCb;
if (navigator.clipboard) navigator.clipboard.writeText(t), e && e();
else {
var r = document.createElement("textarea");
(r.value = t),
(r.style.position = "absolute"),
(r.style.opacity = "0"),
(r.style.left = "-999999px"),
(r.style.top = "-999999px"),
document.body.appendChild(r),
r.focus(),
r.select(),
document.execCommand("copy") ? e && e() : o && o(),
r.remove();
}
};
},
86010: function () {},
},
]);
+492
View File
@@ -0,0 +1,492 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[3381],
{
18017: function (n, e, o) {
"use strict";
o.d(e, {
K: function () {
return h;
},
});
var t = o(59072),
c = o(4637),
i = o(41934),
s = o(98537),
r = o(16114),
u = o(48522),
a = o(12005),
l = o(39145),
d = o(19741),
f = o.n(d),
m = (0, i.BW)(u.q).isProdSandbox,
h = function (n) {
var e = (0, t.Z)((0, s.Y)(!0), 2),
o = e[0],
i = e[1],
u = (0, t.Z)((0, s.Y)(!1), 3)[2],
d = function () {
i(!1), n.onCancel && n.onCancel();
},
h = function () {
i(!1);
};
return (
(0, r.FI)(function () {
var e = function (e) {
e.data &&
e.data.activateSuccess &&
(h(),
u.current ||
((u.current = !0),
/(qifu)|(qifu-sandbox)|(tms)/.test(location.host)
? (0, a.b1)()
: (0, a.NN)()),
n.onOk && n.onOk());
};
return (
window.addEventListener("message", e, !1),
function () {
window.removeEventListener("message", e);
}
);
}),
(0, c.jsx)(l.d, {
show: o,
maskClosable: n.maskClosable,
onClose: d,
children: (0, c.jsxs)(c.Fragment, {
children: [
(0, c.jsx)("iframe", {
className: f().iframe,
width: "600",
height: "600",
src: "".concat(
m ? "ht:/cloudtest.baidu.com" : "",
"/iam/#/iam/user/v2/activate~hideBar=1"
),
}),
!n.hideCloseIcon &&
(0, c.jsx)("div", {
className: f()["close-icon"],
onClick: d,
}),
],
}),
})
);
};
},
51592: function (n, e, o) {
"use strict";
o.d(e, {
F: function () {
return v;
},
});
var t = o(59072),
c = o(4637),
i = o(41934),
s = o(98537),
r = o(16114),
u = o(48522),
a = o(674),
l = o(39145),
d = o(72344),
f = o.n(d),
m = (0, i.BW)(u.q).isProdSandbox,
h = function (n) {
var e = (0, t.Z)((0, s.Y)(!0), 2),
o = e[0],
i = e[1],
u = (0, t.Z)((0, s.Y)(!1), 3)[2],
a = function () {
i(!1), n.onCancel && n.onCancel();
},
d = function () {
i(!1);
};
return (
(0, r.FI)(function () {
var e = !1,
o = function (o) {
var t, c;
(null === (t = o.data) || void 0 === t
? void 0
: t.loginSuccess) &&
(d(),
!u.current &&
((u.current = !0), n.onOk && n.onOk({ regSuccess: e }))),
(null === (c = o.data) || void 0 === c
? void 0
: c.regSuccess) && (e = !0);
};
return (
window.addEventListener("message", o, !1),
function () {
window.removeEventListener("message", o);
}
);
}),
(0, c.jsx)(l.d, {
show: o,
maskClosable: n.maskClosable,
onClose: a,
className: "u-login-modal",
children: (0, c.jsxs)(c.Fragment, {
children: [
(0, c.jsx)("iframe", {
className: f().iframe,
width: "600",
height: "600",
src:
n.loginUrl ||
"ht:/login.bce"
.concat(m ? "test" : "", ".baidu.com/?redirect=")
.concat(
encodeURIComponent(
"ht:/".concat(
m ? "cloudtest" : "cloud",
".baidu.com/inner-login.html"
)
)
),
}),
!n.hideCloseIcon &&
(0, c.jsx)("div", {
className: f()["close-icon"],
onClick: a,
}),
],
}),
})
);
},
v = h;
v.open = function (n) {
(0, i.BW)(a.K).open({ component: h, props: n });
};
},
39145: function (n, e, o) {
"use strict";
o.d(e, {
d: function () {
return l;
},
});
var t = o(72006),
c = o(4405),
i = o(4637),
s = o(59496),
r = o(87995),
u = o(76150),
a = o.n(u);
function l(n) {
var e = n.isResetBody,
o = void 0 === e || e,
u = n.className,
l = n.style,
d = n.onClose,
f = n.maskClosable,
m = n.show,
h = n.keepModule,
v = void 0 !== h && h,
b = (0, s.useState)("0"),
p = b[0],
C = b[1],
g = (0, s.useState)("-1"),
k = g[0],
w = g[1],
y = (0, s.useState)("none"),
N = y[0],
x = y[1],
I = (0, s.useRef)(),
T = (0, s.useRef)(!1),
E = (0, s.useRef)(),
S = (0, s.useRef)(),
_ = (0, s.useRef)(null),
L = (0, s.useCallback)(
function () {
C("0"),
setTimeout(function () {
w("-1");
}, 400),
(T.current = !0),
o &&
document.body.classList.contains("header-body-no-scroll") &&
(document.body.classList.remove("header-body-no-scroll"),
(document.body.style.top = null),
(document.body.style.overflowY = null),
window.scrollTo({ top: _.current }),
(_.current = null));
},
[o]
);
(0, s.useEffect)(
function () {
return (
(E.current = document.querySelector("html")),
(S.current = document.body),
m
? (x("block"),
setTimeout(function () {
C("1"), w("1999");
}, 100),
(T.current = !1),
_.current || (_.current = window.scrollY),
document.body.classList.add("header-body-no-scroll"),
(document.body.style.top = "-".concat(_.current || 0, "px")),
document.body.scrollHeight > document.body.clientHeight &&
(document.body.style.overflowY = "scroll"))
: L(),
function () {
v || L();
}
);
},
[m, v, L]
);
var q = function () {
f && L();
},
U = function (n) {
if (n && (d && d(), !v)) {
var e = I.current.parentElement,
o = "DIV" === (null == e ? void 0 : e.tagName) ? e : I.current;
r.unmountComponentAtNode(o), o.remove();
}
};
return (0, i.jsx)("div", {
onTransitionEnd: function () {
return U(T.current);
},
className: "".concat(a()["u-modal-mask"], " ").concat(u || ""),
style: (0, c.Z)((0, t.Z)({}, l), {
opacity: p,
display: N,
zIndex: k,
}),
onClick: q,
ref: I,
children: (0, i.jsx)("div", {
onClick: function (n) {
n.stopPropagation();
},
className: "content-container",
style: { opacity: p },
children: n.children,
}),
});
}
},
23381: function (n, e, o) {
"use strict";
o.d(e, {
X: function () {
return f;
},
});
var t = o(59072),
c = o(40531);
o(67269);
var i = o(32699),
s = o(41934),
r = o(88576),
u = o(75239),
a = o(674),
l = o(18017),
d = o(13796),
f = function (n) {
var e = n.genLoginUrl,
o = n.mobile,
f = void 0 !== o && o,
m = (0, t.Z)(
(0, d.t)({
isCheckUserType: !1,
maskClosable: !0,
isImmediately: !1,
genLoginUrl: e || null,
}),
3
),
h = m[0],
v = m[2],
b = function () {
return new Promise(function (n, e) {
return (0, i.debounce)(
function () {
v(function (o) {
o.hasLogin
? u.y
.get(r.N.GET_ACCOUNT_STATUS)
.then(function (o) {
if (o.success && o.result) {
var t = o.result.code;
200 === t
? (e(o), c.default.error("接口异常,请重试"))
: 201 === t
? f
? n(t)
: (0, s.BW)(a.K).open({
component: l.K,
props: {
maskClosable: !0,
onOk: function () {
n(t);
},
},
})
: n(t);
} else e(o), c.default.error("登录异常,请重试");
})
.catch(function (n) {
e(n),
console.error(n),
c.default.error("接口异常,请重试");
})
: (e(o), c.default.error("登录异常,请重试"));
});
},
1e3,
{ leading: !0, trailing: !1 }
)();
});
};
return [h, v, b];
};
},
13796: function (n, e, o) {
"use strict";
o.d(e, {
t: function () {
return g;
},
});
var t = o(72006),
c = o(59072),
i = o(88929),
s = o(53594),
r = o(41934),
u = o(98537),
a = o(16114),
l = o(75239),
d = o(674),
f = o(42314),
m = o(59496),
h = o(48522),
v = o(12005),
b = o(51592),
p = o(88576),
C = (0, r.BW)(f.i),
g = function (n) {
var e = n.isCheckUserType,
o = void 0 === e || e,
g = n.isImmediately,
k = void 0 === g || g,
w = n.maskClosable,
y = n.hideCloseIcon,
N = n.loginCallback,
x = n.checkUserTypeCallback,
I = n.genLoginUrl,
T = (0, c.Z)((0, u.Y)((0, r.BW)(f.i).userinfo), 3),
E = T[0],
S = T[1],
_ = T[2],
L = (0, m.useState)(null),
q = L[0],
U = L[1],
Z = function () {
var n =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: x;
l.y.post(p.N.ACCOUNT_REAL_NAME_TYPE).then(function (e) {
U(e.result), n && n(e.result);
});
},
B = function () {
var n =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: N;
if (E) {
if (E.hasLogin) n && n(E);
else {
if ((0, s.tq)()) {
var e = "";
if (I) e = I();
else {
var o =
encodeURIComponent(
location.href.replace(location.hash, "")
) + location.hash,
t = (0, r.BW)(h.q).isProdSandbox ? "sandbox" : "online";
e = "".concat(i.ZE[t], "?redirect=").concat(o);
}
window.open(e, "_self");
return;
}
(0, r.BW)(d.K).open({
component: b.F,
props: {
maskClosable: w,
hideCloseIcon: y,
loginUrl: I && I(),
onOk: function (e) {
var o = e.regSuccess;
window.require
? window.require(["portalCommon"], function (e) {
e.userinfoInit(function (e) {
setTimeout(function () {
!k && n && n(e);
}, 300),
/(qifu)|(qifu-sandbox)|(tms)/.test(
location.host
)
? o && (0, v.b1)()
: o && (0, v.NN)();
});
})
: window.portalCommon.userinfoInit(function (e) {
setTimeout(function () {
!k && n && n(e);
}, 300),
/(qifu)|(qifu-sandbox)|(tms)/.test(
location.host
)
? o && (0, v.b1)()
: o && (0, v.NN)();
});
},
},
});
}
}
};
return (
(0, a.FI)(function () {
C.userinfo && S((0, t.Z)({}, C.userinfo)),
C.subscribe(function (n) {
S((0, t.Z)({}, n));
});
}),
(0, m.useEffect)(
function () {
E && k && (B(), E.hasLogin && o && Z());
},
[E]
),
[E, q, B, Z, _]
);
};
},
19741: function (n) {
n.exports = { iframe: "wI9TPBti", "close-icon": "X_sIICkW" };
},
72344: function (n) {
n.exports = { iframe: "lSRbdT1p", "close-icon": "__6HXQwAwh" };
},
76150: function (n) {
n.exports = { "u-modal-mask": "__9EcYiCyZ" };
},
},
]);
File diff suppressed because it is too large Load Diff
+727
View File
@@ -0,0 +1,727 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[4759],
{
53241: function (e, n, t) {
"use strict";
t.d(n, {
R: function () {
return l;
},
p: function () {
return s;
},
});
var r = t(72006),
i = t(4637),
o = t(16114),
c = t(59496),
a = t(4795);
t.n(a)().a;
var l = "55875f38623d4faa842ce78af0fbb631",
u = {
width: "100%",
height: "100%",
title: "",
file: "",
image: "http://cyberplayer.bcelive.com/thumbnail.jpg",
autostart: !1,
stretching: "uniform",
repeat: !1,
volume: 50,
controls: !0,
starttime: 0,
ak: l,
flv: { reconnecttime: 2 },
},
s = c.memo(
function (e) {
var n,
t,
a = (0, c.useState)(!1),
l = a[0],
s = a[1],
d = (0, c.useRef)(null),
f = (0, c.useRef)(null),
v = function () {
var n = function () {
var n;
(d.current =
null ===
(n = window.cyberplayer(
e.playerId || "playercontainer"
)) || void 0 === n
? void 0
: n.setup((0, r.Z)({}, u, e.config))),
d.current.on("error", function (e) {
var n;
console.info(e),
(null === (n = e.msg) || void 0 === n
? void 0
: n.details) !== "internalException" && s(!0);
}),
e.onload && e.onload(d.current);
};
window.cyberplayer
? n()
: window.require &&
window.require(["cyberplayer"], function (e) {
(window.cyberplayer = e), n();
});
};
(0, o.FI)(function () {
var n;
e.initSdk
? ((n = e.cyberplayerVersion),
new Promise(function (e) {
if (window.cyberplayer) {
e(!0);
return;
}
var t = document.createElement("script");
"3.5.2" === n
? (t.src =
"ht:/bce.bdstatic.com/jwplayer/3.5.2/cyberplayer.js")
: "4.4.2.1" === n
? (t.src =
"ht:/bce-cdn.bj.bcebos.com/jwplayer/4.4.2.1/cyberplayer-evs.js")
: (t.src =
"ht:/bce.bdstatic.com/portal-cloud-server/dep/cyberplayer_v4.3.2/cyberplayer.js"),
document.head.appendChild(t),
(t.onload = function () {
e(!0);
});
})).then(function () {
v();
})
: v();
});
var h = function (e) {
d.current.setControls(!0),
f.current && (clearTimeout(f.current), (f.current = null)),
e ||
(f.current = setTimeout(function () {
d.current.setControls(!1);
}, 1e3));
},
m = function () {
d.current &&
("playing" === d.current.getState() && h(!1),
"paused" === d.current.getState() && h(!0));
},
p = function () {
setTimeout(function () {
d.current && "paused" === d.current.getState()
? h(!0)
: h(!1);
});
};
return (0, i.jsxs)("div", {
className: "u-cyberplayer",
onMouseMove: m,
onClick: p,
children: [
(0, i.jsx)("div", { id: e.playerId || "playercontainer" }),
l &&
(null == e
? void 0
: null === (n = e.config) || void 0 === n
? void 0
: n.errorTip) &&
(0, i.jsx)("div", {
className: "error-tips",
children:
null == e
? void 0
: null === (t = e.config) || void 0 === t
? void 0
: t.errorTip,
}),
],
});
},
function (e, n) {
return JSON.stringify(e) === JSON.stringify(n);
}
);
},
79918: function (e, n, t) {
"use strict";
t.d(n, {
N: function () {
return s;
},
});
var r = t(72006),
i = t(4637),
o = t(39145),
c = t(59496),
a = t(53241),
l = t(24489),
u = t.n(l),
s = function (e) {
var n = (0, c.useState)(!0),
t = n[0],
l = n[1],
s = function () {
l(!1);
};
return (0, i.jsx)(o.d, {
className: u()["modal-mask"],
show: t,
maskClosable: !0,
onClose: s,
children: (0, i.jsxs)(i.Fragment, {
children: [
(0, i.jsx)("div", {
id: "playercontainer",
children: (0, i.jsx)(a.p, {
initSdk: e.initSdk,
onload: function (e) {
e.play();
},
config: (0, r.Z)(
{ controls: "over", stretching: "uniform", image: "" },
e.config
),
}),
}),
!e.hideCloseIcon &&
(0, i.jsx)("i", { className: u()["close-icon"], onClick: s }),
],
}),
});
};
},
58988: function (e, n, t) {
"use strict";
t.d(n, {
k: function () {
return f;
},
});
var r = t(72006),
i = t(59072),
o = t(4637),
c = t(47147),
a = t(12005),
l = t(98537),
u = t(16114),
s = t(59496),
d = { position: "fixed", left: 0, top: 0 };
function f(e) {
var n = (0, s.useRef)(null),
t = (0, i.Z)((0, l.Y)(null), 3),
f = t[0],
v = t[1],
h = t[2],
m = e.children,
p = e.fixedStyle,
w = e.startFixed,
x = void 0 === w ? 0 : w,
b = e.onScrollHandler,
y = e.defaultStyle,
g = e.fixedTop,
j = function (e) {
return e + (0, a.ig)(window.innerWidth);
};
return (
(0, u.FI)(function () {
var e = function () {
var e = (0, a.U4)(n.current.parentElement) + u + x;
(0, c.o8)(g) && i !== e && (i = e);
var t = document.documentElement.scrollTop;
i <= t && !h.current
? v((0, r.Z)({}, d, y))
: i > t && h.current && v(null),
b && b(t);
},
t = function () {
o !== (l = (0, a.ig)(window.innerWidth)) &&
((i = (0, c.o8)(g)
? (i =
(0, a.U4)(n.current.parentElement) -
(0, a.U4)(document.getElementById("__next")) +
l +
x +
u)
: j(g)),
(o = l));
},
i = (0, c.o8)(g) ? (0, a.U4)(n.current) + x : j(g),
o = (0, a.ig)(window.innerWidth),
l = o,
u = (0, a.U4)(n.current) - (0, a.U4)(n.current.parentElement);
return (
e(),
window.addEventListener("scroll", e),
window.addEventListener("resize", t),
function () {
window.removeEventListener("scroll", e),
window.removeEventListener("resize", t);
}
);
}),
(0, o.jsx)(o.Fragment, {
children: (0, s.cloneElement)(m, {
ref: n,
style: (0, r.Z)({}, f, p),
}),
})
);
}
},
18446: function (e, n, t) {
"use strict";
t.d(n, {
i: function () {
return p;
},
});
var r = t(59072),
i = t(4637),
o = t(58988),
c = t(16037),
a = t(98537),
l = t(16114),
u = t(59496),
s = t(32699),
d = t(84875),
f = t.n(d),
v = t(25658),
h = t(38653),
m = t.n(h),
p = function (e) {
var n = e.subNavData,
t = e.className,
d = e.scrollBindOption,
h = e.id,
p = e.wrapperRef,
w = e.hashHandlerFn,
x = (0, r.Z)(
(0, c.Y)(d || { itemSelector: ".module", fixTop: -52 }),
3
),
b = x[0],
y = x[1],
g = x[2],
j = (0, r.Z)((0, a.Y)(0), 3),
S = j[0],
N = j[1],
k = j[2],
E = (0, u.useState)(null),
C = E[0],
T = E[1],
I = (0, u.useState)(!1),
L = I[0],
F = I[1],
R = (0, u.useState)(0),
_ = R[0],
U = R[1],
W = (0, u.useRef)(null),
q = function (e) {
var n = W.current.querySelector(
"li:nth-child(".concat(e + 1, ")")
),
t = n.querySelector("span").offsetWidth,
r = n.offsetLeft + (n.offsetWidth - t) / 2;
T({ width: t, left: r });
},
Y = function (e) {
var n = W.current.offsetWidth;
if ("left" === e && 0 !== S) {
var t = Math.max(0, S - n);
W.current.scrollTo({ left: t, behavior: "smooth" }), N(t);
} else if ("right" === e && S < _ - n) {
var r = Math.min(_ - n, S + n);
W.current.scrollTo({ left: r, behavior: "smooth" }), N(r);
}
};
return (
(0, l.FI)(function () {
var e = W.current.querySelectorAll("li");
if (
(U(
Math.floor(
(0, s.reduce)(
e,
function (e, n) {
return (
e +
n.getBoundingClientRect().width +
parseInt(getComputedStyle(n, null).marginLeft, 10) +
parseInt(getComputedStyle(n, null).marginRight, 10)
);
},
0
)
)
),
location.hash)
) {
var t = decodeURIComponent(location.hash).slice(1),
r = n.findIndex(function (e) {
return e.name === t;
});
r >= 0 &&
setTimeout(function () {
return y(r);
}, 400),
r < 0 && w && w(t);
}
var i = (0, s.throttle)(function () {
return q(g.current);
}, 40);
return (
window.addEventListener("resize", i),
function () {
window.removeEventListener("resize", i);
}
);
}),
(0, u.useEffect)(
function () {
var e = W.current.offsetWidth;
if (_ > e) {
var n = W.current.querySelector(
"li:nth-child(".concat(b + 1, ")")
),
t = n.offsetLeft;
t - 92 < k.current
? W.current.scrollTo({ left: t - 92, behavior: "smooth" })
: t + 92 > k.current + e &&
W.current.scrollTo({
left: t - e + n.offsetWidth + 92,
behavior: "smooth",
});
}
q(b);
},
[b, _]
),
(0, u.useEffect)(
function () {
var e = W.current.offsetWidth;
F(_ > e && S < _ - e);
},
[S, _]
),
(0, i.jsx)("div", {
className: f()(m()["sub-nav-wrapper"], t),
id: void 0 === h ? "" : h,
ref: p,
children: (0, i.jsx)(o.k, {
children: (0, i.jsx)("div", {
className: m()["sub-nav"],
children: (0, i.jsxs)("div", {
className: "container",
children: [
S
? (0, i.jsx)(v.Q, {
className: m()["btn-left"],
src: "ht:/bce.bdstatic.com/portal-cloud-server/images/arrow_down.svg",
onClick: function () {
return Y("left");
},
})
: null,
(0, i.jsxs)("ul", {
ref: W,
onScroll: (0, s.throttle)(function () {
N(W.current.scrollLeft);
}, 40),
children: [
n.map(function (e, t) {
return (0, i.jsx)(
"li",
{
className: f()(t === b && "current"),
onClick: function () {
b !== t &&
(y(t),
history.pushState(
{ index: t },
"",
""
.concat(location.pathname)
.concat(location.search, "#")
.concat(n[t].name)
));
},
children: (0, i.jsx)("span", {
children: e.name,
}),
},
e.name
);
}),
(0, i.jsx)("li", { className: m().line, style: C }),
],
}),
L &&
(0, i.jsx)(v.Q, {
className: m()["btn-right"],
onClick: function () {
return Y("right");
},
src: "ht:/bce.bdstatic.com/portal-cloud-server/images/arrow_down.svg",
}),
],
}),
}),
}),
})
);
};
},
16037: function (e, n, t) {
"use strict";
t.d(n, {
Y: function () {
return s;
},
});
var r = t(59072),
i = t(59496),
o = t(12005),
c = t(98537),
a = t(16114),
l = t(47147),
u = t(32699),
s = function (e) {
var n = e.itemSelector,
t = e.throttleDelay,
s = void 0 === t ? 40 : t,
d = e.duration,
f = void 0 === d ? 300 : d,
v = e.defaultIndex,
h = e.fixTop,
m = void 0 === h ? 0 : h,
p = e.scrollUpHeaderFixTop,
w = void 0 === p ? 0 : p,
x = e.getItemTopList,
b = e.findCurrentIndex,
y = (0, r.Z)((0, c.Y)(void 0 === v ? 0 : v), 3),
g = y[0],
j = y[1],
S = y[2],
N = (0, i.useRef)(null),
k = (0, i.useRef)(0),
E = function () {
if (x) return x();
var e = document.querySelectorAll(n);
return Array.prototype.map.call(e, function (e) {
var n = (0, l.mf)(m) ? m() : m;
return Math.floor((0, o.U4)(e) + n);
});
};
return (
(0, a.FI)(function () {
var e = (0, u.throttle)(function () {
var e = Math.ceil((0, o.cx)()),
n = 0;
if (b) n = b(E());
else {
var t = e < k.current ? w : 0;
E().forEach(function (r, i) {
(e >= r - t || 0 === i) && (n = i);
});
}
j(n), (k.current = e);
}, s);
return (
window.addEventListener("scroll", e),
function () {
window.removeEventListener("scroll", e);
}
);
}),
[
g,
function (e) {
N.current &&
(window.cancelAnimationFrame(N.current), (N.current = null));
var n = E(),
t = n[e] - (0, o.cx)(),
r = t / (f / (1e3 / 60)),
i = t < 0 ? w : 0,
c = function () {
var t = (0, o.cx)();
if (Math.abs(n[e] - t) < Math.abs(r)) {
(0, o.QU)(n[e] - i),
window.cancelAnimationFrame(N.current);
return;
}
(0, o.QU)(r + t),
(N.current = window.requestAnimationFrame(c));
};
N.current = window.requestAnimationFrame(c);
},
S,
]
);
};
},
83646: function (e, n, t) {
"use strict";
t.d(n, {
Z: function () {
return l;
},
});
var r = t(4637),
i = t(84875),
o = t.n(i),
c = t(94654),
a = t.n(c),
l = function (e) {
var n,
t = e.data;
return (0, r.jsx)("section", {
className: a().news,
children: (0, r.jsx)("div", {
className: o()("width1180-center", a().container),
children:
null === (n = t.items) || void 0 === n
? void 0
: n.slice(0, 2).map(function (e, n) {
var i;
return (0, r.jsxs)(
"div",
{
className: a()["text-link-item"],
children: [
(0, r.jsx)("h3", { children: e.title }),
(0, r.jsx)("ul", {
children:
null === (i = e.textRows) || void 0 === i
? void 0
: i.slice(0, t.rows).map(function (t) {
return (
t.tag &&
(0, r.jsxs)("li", {
children: [
(0, r.jsx)("span", {
className: o()(
a()["text-link-tag"],
0 === n && a().red,
1 === n && a().blue
),
children: (0, r.jsx)("span", {
children: t.tag,
}),
}),
(0, r.jsx)("a", {
href: t.content.href,
target: "_blank",
"data-track-category":
"banner推广区域-两列文字链",
"data-track-name": e.title,
"data-track-value":
t.content.text,
children: t.content.text,
}),
],
})
);
}),
}),
],
},
e.title
);
}),
}),
});
};
},
24462: function (e, n, t) {
"use strict";
t.d(n, {
o: function () {
return v;
},
});
var r = t(4637),
i = t(18446),
o = t(59496),
c = t(16114),
a = t(32699),
l = t(12005),
u = t(84875),
s = t.n(u),
d = t(90571),
f = t.n(d),
v = function (e) {
var n = e.data,
t = e.isDefaultHide,
u = (0, o.useRef)(null),
d = (0, o.useState)(t),
v = d[0],
h = d[1];
return ((0, c.FI)(function () {
var e = (0, a.throttle)(function () {
(0, l.cx)() >= u.current.offsetHeight + (0, l.U4)(u.current)
? h(!1)
: h(!0);
}, 40);
return (
t && window.addEventListener("scroll", e, !1),
function () {
t && window.removeEventListener("scroll", e, !1);
}
);
}),
n.content.length)
? (0, r.jsx)(i.i, {
id: f().subNav,
subNavData: n.content.map(function (e) {
return { name: e.data.name };
}),
className: s()(
t && (v ? f().hide : f().show),
t && f()["default-hide"]
),
scrollBindOption: {
itemSelector: '[ui-type="module-box"] > section',
fixTop: -48,
},
wrapperRef: u,
})
: null;
};
},
4795: function (e) {
e.exports = { circle: "CZ1RhmKP" };
},
24489: function (e) {
e.exports = { "modal-mask": "SYpghrTF", "close-icon": "w_SYckuh" };
},
38653: function (e) {
e.exports = {
"sub-nav-wrapper": "qaNyd8vJ",
"sub-nav": "IYb6EB2J",
"btn-left": "s5hKerPy",
"btn-right": "WvR_jVJT",
line: "j_kYDLbr",
};
},
94654: function (e) {
e.exports = {
news: "SjjqV8lj",
container: "HI7LYNpY",
"text-link-item": "bNNSuWmd",
"text-link-tag": "K6jlPddq",
red: "b3hUjlA4",
blue: "GFmj0z4D",
};
},
90571: function (e) {
e.exports = {
subNav: "iEW_1Xi7",
"default-hide": "yJExnCk6",
hide: "ztKZ6GWu",
show: "xkJMZbNY",
};
},
},
]);
+76
View File
@@ -0,0 +1,76 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[4818],
{
44818: function (e, t, i) {
"use strict";
i.r(t),
i.d(t, {
V5G009A: function () {
return l;
},
});
var n = i(4637),
a = i(84875),
r = i.n(a),
c = i(37782),
s = i.n(c),
l = function (e) {
var t = e.data,
i = e.type,
a = t.render;
return (0, n.jsxs)("section", {
"ui-type": i,
className: s()[i],
children: [
(0, n.jsx)("h2", { children: a.title }),
(0, n.jsx)("div", {
className: r()(
"v5-group-base",
s().group,
s()["compact-i32"],
"no-white",
"v5g009a-group"
),
children:
null == a
? void 0
: a.items.map(function (e, t) {
return (0, n.jsx)(
"div",
{
className: s().row,
children: (0, n.jsx)("div", {
className: r()(
s().col,
s()["col-".concat(e.length)]
),
children: e.map(function (e, t) {
return (0,
n.jsxs)("a", { className: s().item, href: e.href || (e.button && e.button.href), "data-track-category": a.title, "data-track-name": e.title, children: [(0, n.jsxs)("div", { className: s()["item-header"], children: [e.image && (0, n.jsx)("div", { className: s().icon, children: (0, n.jsx)("img", { src: e.image, alt: e.title }) }), e.title && (0, n.jsx)("div", { className: s().title, children: e.title })] }), (0, n.jsx)("div", { className: s()["item-content"], children: e.desc })] }, t.toString());
}),
}),
},
t.toString()
);
}),
}),
],
});
};
},
37782: function (e) {
e.exports = {
V5G009A: "v2uiznkI",
group: "buWJmD6n",
row: "__49Ek89eD",
col: "DAMrMWiN",
item: "QzJFRG5C",
"item-header": "TPf3Wqww",
icon: "__7HtNIEKm",
title: "hP5E3eKm",
"item-content": "ojaoaho2",
V5G009AArrowMove: "PYruquQV",
};
},
},
]);
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+597
View File
@@ -0,0 +1,597 @@
"use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[5048],
{
55968: function (e, t, n) {
n.d(t, {
F: function () {
return c;
},
s: function () {
return s;
},
});
var r = n(59496),
o = n(16114),
i = n(29196);
function u() {
return (u = Object.assign
? Object.assign.bind()
: function (e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
}).apply(this, arguments);
}
function a(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r;
}
function c(e) {
var t = e.type,
n = e.label,
c = e.value,
s = e.className,
l = e.once,
f = void 0 === l || l,
d = e.useRootDom,
p = (0, r.useRef)(null);
return (
(0, o.FI)(function () {
var r = null;
if (p.current && !r && window.IntersectionObserver) {
var o = new i.c(null),
s = function () {
e.exposureHandler && e.exposureHandler(),
e.type &&
e.label &&
window &&
window._hmt &&
window._hmt.push(["_trackEvent", t, "exposure", n, c]);
};
o.subscribe(s),
(r = new IntersectionObserver(function (e) {
for (
var t,
n = (function (e, t) {
var n =
("undefined" != typeof Symbol &&
e[Symbol.iterator]) ||
e["@@iterator"];
if (n) return (n = n.call(e)).next.bind(n);
if (
Array.isArray(e) ||
(n = (function (e, t) {
if (e) {
if ("string" == typeof e) return a(e, t);
var n = Object.prototype.toString
.call(e)
.slice(8, -1);
if (
("Object" === n &&
e.constructor &&
(n = e.constructor.name),
"Map" === n || "Set" === n)
)
return Array.from(e);
if (
"Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
n
)
)
return a(e, t);
}
})(e))
) {
n && (e = n);
var r = 0;
return function () {
return r >= e.length
? { done: !0 }
: { done: !1, value: e[r++] };
};
}
throw TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
})(e);
!(t = n()).done;
) {
var i = t.value;
i.isIntersecting &&
(o.next(i.target),
f && (o.unsubscribe(s), r.unobserve(p.current)));
}
}, u({ threshold: 1 }, e.options))).observe(p.current);
}
return function () {
r && p.current && r.unobserve(p.current);
};
}),
void 0 !== d && d
? (0, r.cloneElement)(e.children, { ref: p })
: r.createElement("div", { ref: p, className: s }, e.children)
);
}
function s(e) {
var t = (0, r.useRef)(null);
return (
(0, r.useEffect)(function () {
var n = null;
try {
(n = new IntersectionObserver(function (t) {
t.forEach(function (t) {
var r = t.target;
t.isIntersecting &&
r.classList.contains("lazy") &&
(l(e.type, r, e.lazyCallback),
r.classList.remove("lazy"),
n.unobserve(r));
});
}, u({ rootMargin: "0px 0px 256px 0px" }, e.option))).observe(
t.current
);
} catch (r) {
l(e.type, t.current, e.lazyCallback);
}
return function () {
t.current && n && n.unobserve(t.current);
};
}, []),
(0, r.cloneElement)(e.children, {
ref: t,
className: e.children.props.className + " lazy",
})
);
}
function l(e, t, n) {
switch (e) {
case "background":
t.classList.add("visible");
break;
case "backgroundImage":
t.style.backgroundImage = "url(" + t.dataset.url + ")";
break;
case "all-imgs":
t.querySelectorAll("img.lazy").forEach(function (e) {
e.src = e.dataset.src;
});
break;
case "callback":
n && n(t);
break;
default:
t.src = t.dataset.src;
}
}
},
84535: function (e, t, n) {
function r(e, t, n) {
void 0 === n &&
(n = function (e, t, n) {
e[t] = n;
}),
(t =
t && "function" == typeof t
? t
: function () {
return !1;
});
for (var r = 0, o = 0; o < e.length; o++)
t(e[o], o) ? r++ : r > 0 && n(e, o - r, e[o]);
for (var o = 0; o < r; o++) e.pop();
return e;
}
function o(e, t, n) {
var r = e[t];
return (e[t] = e[n]), (e[n] = r), e;
}
n.d(t, {
un: function () {
return r;
},
wt: function () {
return o;
},
});
},
53594: function (e, t, n) {
function r() {
return Boolean(
navigator.userAgent.match(
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
)
);
}
function o() {
return (
!r() &&
!Boolean(
!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
) &&
!i()
);
}
function i() {
var e = navigator.userAgent;
return e.indexOf("Android") > -1 || e.indexOf("Adr") > -1;
}
n.d(t, {
Dt: function () {
return i;
},
b9: function () {
return o;
},
tq: function () {
return r;
},
});
},
29196: function (e, t, n) {
n.d(t, {
c: function () {
return o;
},
});
var r = 0,
o = (function () {
function e(e, t) {
void 0 === t && (t = Symbol(r++)),
(this.id = t),
(this.completed = !1),
(this.index = 0),
(this.completedHandlers = []),
(this.subscribeHandlers = []),
(this.onSubscribeHandlers = []),
e && this.next(e);
}
return (
(e.prototype.getValue = function () {
return this.value;
}),
(e.prototype.getId = function () {
return this.id;
}),
(e.prototype.next = function (e) {
var t = this;
(this.value = e),
this.subscribeHandlers.forEach(function (n) {
return n.handler(e, t.index++);
});
}),
(e.prototype.complete = function () {
!this.completed &&
((this.completed = !0),
this.completedHandlers.forEach(function (e) {
return e();
}),
this.unsubscribe());
}),
(e.prototype.throttleTime = function (t) {
var n = this;
if ((void 0 === t && (t = 0), !t || t <= 1)) return this;
var r = new e(),
o = !0;
return (
this.onCompleted(function () {
return r.complete();
}),
r.onSubscribe(function () {
n.subscribe(function (e) {
o &&
(r.next(e),
(o = !1),
setTimeout(function () {
o = !0;
}, t - 1));
});
}),
r
);
}),
(e.prototype.debounceTime = function (t) {
var n = this;
void 0 === t && (t = 10);
var r = new e(),
o = null,
i = null;
return (
this.onCompleted(function () {
return r.complete();
}),
r.onSubscribe(function () {
n.subscribe(function (e) {
clearTimeout(i),
(o = e),
(i = setTimeout(function () {
r.next(o);
}, t));
});
}),
r
);
}),
(e.prototype.subscribe = function (e) {
var t = this,
n = Symbol();
return (
this.subscribeHandlers.push({ symbol: n, handler: e }),
this.onSubscribeHandlers.forEach(function (e) {
return e();
}),
function () {
for (var e = -1, r = 0; r < t.subscribeHandlers.length; r++)
if (t.subscribeHandlers[r].symbol === n) {
e = r;
break;
}
e >= 0 && t.subscribeHandlers.splice(e, 1);
}
);
}),
(e.prototype.onSubscribe = function (e, t) {
void 0 === t && (t = !1);
var n = !1;
return (
this.onSubscribeHandlers.push(function () {
(!n || !t) && ((n = !0), e());
}),
this
);
}),
(e.prototype.unsubscribe = function (e) {
var t = this;
this.subscribeHandlers
.reduce(function (t, n, r) {
return (e && e !== n.handler) || t.push(r), t;
}, [])
.forEach(function (e, n) {
return t.subscribeHandlers.splice(e - n, 1);
});
}),
(e.prototype.onCompleted = function (e) {
return this.completedHandlers.push(e), this;
}),
e
);
})();
},
98537: function (e, t, n) {
n.d(t, {
Y: function () {
return i;
},
});
var r = n(59496),
o = n(47147);
function i(e) {
var t = (0, r.useRef)(),
n = (0, r.useState)(function () {
var n = (0, o.mf)(e) ? e() : e;
return (t.current = n), n;
}),
i = n[0],
u = n[1];
return [
i,
(0, r.useCallback)(function (e) {
(0, o.mf)(e)
? u(function (n) {
var r = e(n);
return (t.current = r), r;
})
: (u(e), (t.current = e));
}, []),
t,
];
}
},
674: function (e, t, n) {
n.d(t, {
K: function () {
return s;
},
});
var r = n(4637),
o = n(41934),
i = n(87995),
u = n(84535),
a = function () {
return (a =
Object.assign ||
function (e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var o in (t = arguments[n]))
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
return e;
}).apply(this, arguments);
},
c = function (e, t, n, r) {
var o,
i = arguments.length,
u =
i < 3
? t
: null === r
? (r = Object.getOwnPropertyDescriptor(t, n))
: r;
if (
"object" == typeof Reflect &&
"function" == typeof Reflect.decorate
)
u = Reflect.decorate(e, t, n, r);
else
for (var a = e.length - 1; a >= 0; a--)
(o = e[a]) &&
(u = (i < 3 ? o(u) : i > 3 ? o(t, n, u) : o(t, n)) || u);
return i > 3 && u && Object.defineProperty(t, n, u), u;
},
s = (function () {
function e() {
(this.nameDivMap = new Map()), (this.divNameMap = new Map());
}
return (
(e.prototype.open = function (e) {
var t = e.component,
n = t.name,
o = document.createElement("div");
i.render((0, r.jsx)(t, a({ id: o }, e.props)), o),
e.selector
? e.selector.appendChild(o)
: document.body.appendChild(o);
var u = this.nameDivMap.get(n) || [];
return (
u.push(o),
this.nameDivMap.set(n, u),
this.divNameMap.set(o, n),
o
);
}),
(e.prototype.destroyedEleAndCom = function (e) {
i.unmountComponentAtNode(e), e.remove();
}),
(e.prototype.removeDivFormMap = function (e, t) {
this.divNameMap.delete(t);
var n = this.nameDivMap.get(e) || [];
n.length > 0 &&
(0, u.un)(n, function (e) {
return e === t;
});
}),
(e.prototype.destroyed = function (e, t) {
var n = this;
setTimeout(function () {
var r = n.divNameMap.get(e);
if (t)
for (
var o = n.nameDivMap.has(r) ? n.nameDivMap.get(r) : [];
o.length > 0;
)
n.destroyedEleAndCom(o[0]), n.removeDivFormMap(r, o[0]);
else n.destroyedEleAndCom(e), n.removeDivFormMap(r, e);
}, 300);
}),
(e = c([(0, o.GS)()], e))
);
})();
},
70718: function (e, t, n) {
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.getTransitionName = t.getTransitionDirection = t.default = void 0);
var r = n(49893),
o = function () {
return { height: 0, opacity: 0 };
},
i = function (e) {
return { height: e.scrollHeight, opacity: 1 };
},
u = function (e) {
return { height: e ? e.offsetHeight : 0 };
},
a = function (e, t) {
return (
(null == t ? void 0 : t.deadline) === !0 ||
"height" === t.propertyName
);
};
(0, r.tuple)("bottomLeft", "bottomRight", "topLeft", "topRight");
var c = function (e) {
return void 0 !== e && ("topLeft" === e || "topRight" === e)
? "slide-down"
: "slide-up";
};
t.getTransitionDirection = c;
var s = function (e, t, n) {
return void 0 !== n ? n : "".concat(e, "-").concat(t);
};
(t.getTransitionName = s),
(t.default = {
motionName: "ant-motion-collapse",
onAppearStart: o,
onEnterStart: o,
onAppearActive: i,
onEnterActive: i,
onLeaveStart: u,
onLeaveActive: o,
onAppearEnd: a,
onEnterEnd: a,
onLeaveEnd: a,
motionDeadline: 500,
});
},
12181: function (e, t, n) {
var r = n(66356).default;
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.cloneElement = function (e, t) {
return u(e, e, t);
}),
(t.isFragment = function (e) {
return e && i(e) && e.type === o.Fragment;
}),
(t.isValidElement = void 0),
(t.replaceElement = u);
var o = r(n(59496)),
i = o.isValidElement;
function u(e, t, n) {
return i(e)
? o.cloneElement(e, "function" == typeof n ? n(e.props || {}) : n)
: t;
}
t.isValidElement = i;
},
49893: function (e, t) {
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.tupleNum = t.tuple = void 0);
var n = function () {
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return t;
};
t.tuple = n;
var r = function () {
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return t;
};
t.tupleNum = r;
},
84012: function (e, t, n) {
var r = n(66356).default,
o = n(98772).default;
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.default = function (e) {
var t = u.useRef(!1),
n = u.useState(e),
r = (0, i.default)(n, 2),
o = r[0],
a = r[1];
return (
u.useEffect(function () {
return (
(t.current = !1),
function () {
t.current = !0;
}
);
}, []),
[
o,
function (e, n) {
(!n || !t.current) && a(e);
},
]
);
});
var i = o(n(54306)),
u = r(n(59496));
},
},
]);
File diff suppressed because it is too large Load Diff
+641
View File
@@ -0,0 +1,641 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[5658],
{
40725: function (e, t) {
"use strict";
/*!
* content-type
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/ var r =
/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,
n = /\\([\u000b\u0020-\u00ff])/g,
i = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
function o(e) {
(this.parameters = Object.create(null)), (this.type = e);
}
t.Q = function (e) {
if (!e) throw TypeError("argument string is required");
var t,
a,
s,
c =
"object" == typeof e
? (function (e) {
var t;
if (
("function" == typeof e.getHeader
? (t = e.getHeader("content-type"))
: "object" == typeof e.headers &&
(t = e.headers && e.headers["content-type"]),
"string" != typeof t)
)
throw TypeError(
"content-type header is missing from object"
);
return t;
})(e)
: e;
if ("string" != typeof c)
throw TypeError("argument string is required to be a string");
var l = c.indexOf(";"),
u = -1 !== l ? c.slice(0, l).trim() : c.trim();
if (!i.test(u)) throw TypeError("invalid media type");
var p = new o(u.toLowerCase());
if (-1 !== l) {
for (r.lastIndex = l; (a = r.exec(c)); ) {
if (a.index !== l) throw TypeError("invalid parameter format");
(l += a[0].length),
(t = a[1].toLowerCase()),
34 === (s = a[2]).charCodeAt(0) &&
-1 !== (s = s.slice(1, -1)).indexOf("\\") &&
(s = s.replace(n, "$1")),
(p.parameters[t] = s);
}
if (l !== c.length) throw TypeError("invalid parameter format");
}
return p;
};
},
74049: function (e, t, r) {
"use strict";
var n = r(60444);
function i() {}
function o() {}
(o.resetWarningCache = i),
(e.exports = function () {
function e(e, t, r, i, o, a) {
if (a !== n) {
var s = Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw ((s.name = "Invariant Violation"), s);
}
}
function t() {
return e;
}
e.isRequired = e;
var r = {
array: e,
bigint: e,
bool: e,
func: e,
number: e,
object: e,
string: e,
symbol: e,
any: e,
arrayOf: t,
element: e,
elementType: e,
instanceOf: t,
node: e,
objectOf: t,
oneOf: t,
oneOfType: t,
shape: t,
exact: t,
checkPropTypes: o,
resetWarningCache: i,
};
return (r.PropTypes = r), r;
});
},
40507: function (e, t, r) {
e.exports = r(74049)();
},
60444: function (e) {
"use strict";
e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
},
25658: function (e, t, r) {
"use strict";
r.d(t, {
Q: function () {
return T;
},
});
var n = r(40574),
i = r(51163),
o = r(25542),
a = r(96583),
s = r(40725),
c = new Map(),
l = function (e) {
return e.cloneNode(!0);
},
u = function () {
return "file:" === window.location.protocol;
},
p = function (e, t, r) {
var n = new XMLHttpRequest();
(n.onreadystatechange = function () {
try {
if (!/\.svg/i.test(e) && 2 === n.readyState) {
var t = n.getResponseHeader("Content-Type");
if (!t) throw Error("Content type not found");
var i = (0, s.Q)(t).type;
if (!("image/svg+xml" === i || "text/plain" === i))
throw Error("Invalid content type: ".concat(i));
}
if (4 === n.readyState) {
if (404 === n.status || null === n.responseXML)
throw Error(
u()
? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver."
: "Unable to load SVG file: " + e
);
if (200 === n.status || (u() && 0 === n.status)) r(null, n);
else
throw Error(
"There was a problem injecting the SVG: " +
n.status +
" " +
n.statusText
);
}
} catch (o) {
if ((n.abort(), o instanceof Error)) r(o, n);
else throw o;
}
}),
n.open("GET", e),
(n.withCredentials = t),
n.overrideMimeType && n.overrideMimeType("text/xml"),
n.send();
},
f = {},
d = function (e, t) {
(f[e] = f[e] || []), f[e].push(t);
},
h = function (e) {
for (
var t = function (t, r) {
setTimeout(function () {
if (Array.isArray(f[e])) {
var r = c.get(e),
n = f[e][t];
r instanceof SVGSVGElement && n(null, l(r)),
r instanceof Error && n(r),
t === f[e].length - 1 && delete f[e];
}
}, 0);
},
r = 0,
n = f[e].length;
r < n;
r++
)
t(r);
},
v = function (e, t, r) {
if (c.has(e)) {
var n = c.get(e);
if (void 0 === n) {
d(e, r);
return;
}
if (n instanceof SVGSVGElement) {
r(null, l(n));
return;
}
}
c.set(e, void 0),
d(e, r),
p(e, t, function (t, r) {
var n;
t
? c.set(e, t)
: (null === (n = r.responseXML) || void 0 === n
? void 0
: n.documentElement) instanceof SVGSVGElement &&
c.set(e, r.responseXML.documentElement),
h(e);
});
},
m = function (e, t, r) {
p(e, t, function (e, t) {
var n;
e
? r(e)
: (null === (n = t.responseXML) || void 0 === n
? void 0
: n.documentElement) instanceof SVGSVGElement &&
r(null, t.responseXML.documentElement);
});
},
g = 0,
y = [],
b = {},
w = "http://www.w3.org/1999/xlink",
E = function (e, t, r, n, i, o, s) {
var c = e.getAttribute("data-src") || e.getAttribute("src");
if (!c) {
s(Error("Invalid data-src or src attribute"));
return;
}
if (-1 !== y.indexOf(e)) {
y.splice(y.indexOf(e), 1), (e = null);
return;
}
y.push(e),
e.setAttribute("src", ""),
(n ? v : m)(c, i, function (n, i) {
if (!i) {
y.splice(y.indexOf(e), 1), (e = null), s(n);
return;
}
var l,
u,
p = e.getAttribute("id");
p && i.setAttribute("id", p);
var f = e.getAttribute("title");
f && i.setAttribute("title", f);
var d = e.getAttribute("width");
d && i.setAttribute("width", d);
var h = e.getAttribute("height");
h && i.setAttribute("height", h);
var v = Array.from(
new Set(
(0, a.__spreadArray)(
(0, a.__spreadArray)(
(0, a.__spreadArray)(
[],
(i.getAttribute("class") || "").split(" "),
!0
),
["injected-svg"],
!1
),
(e.getAttribute("class") || "").split(" "),
!0
)
)
)
.join(" ")
.trim();
i.setAttribute("class", v);
var m = e.getAttribute("style");
m && i.setAttribute("style", m), i.setAttribute("data-src", c);
var E = [].filter.call(e.attributes, function (e) {
return /^data-\w[\w-]*$/.test(e.name);
});
if (
(Array.prototype.forEach.call(E, function (e) {
e.name && e.value && i.setAttribute(e.name, e.value);
}),
r)
) {
var A,
S,
x,
C,
R,
k = {
clipPath: ["clip-path"],
"color-profile": ["color-profile"],
cursor: ["cursor"],
filter: ["filter"],
linearGradient: ["fill", "stroke"],
marker: [
"marker",
"marker-start",
"marker-mid",
"marker-end",
],
mask: ["mask"],
path: [],
pattern: ["fill", "stroke"],
radialGradient: ["fill", "stroke"],
};
Object.keys(k).forEach(function (e) {
(A = e), (x = k[e]), (S = i.querySelectorAll(A + "[id]"));
for (var t = 0, r = S.length; t < r; t++)
!(function (e, t) {
(R = (C = S[e].id) + "-" + ++g),
Array.prototype.forEach.call(x, function (e) {
r = i.querySelectorAll("[" + e + '*="' + C + '"]');
for (var t = 0, n = r.length; t < n; t++) {
var o = r[t].getAttribute(e);
(!o ||
o.match(RegExp('url\\("?#' + C + '"?\\)'))) &&
r[t].setAttribute(e, "url(#" + R + ")");
}
});
for (
var r,
n = i.querySelectorAll("[*|href]"),
o = [],
a = 0,
s = n.length;
a < s;
a++
) {
var c = n[a].getAttributeNS(w, "href");
c && c.toString() === "#" + S[e].id && o.push(n[a]);
}
for (var l = 0, u = o.length; l < u; l++)
o[l].setAttributeNS(w, "href", "#" + R);
S[e].id = R;
})(t);
});
}
i.removeAttribute("xmlns:a");
for (
var I = i.querySelectorAll("script"),
T = [],
j = 0,
_ = I.length;
j < _;
j++
)
((u = I[j].getAttribute("type")) &&
"application/ecmascript" !== u &&
"application/javascript" !== u &&
"text/javascript" !== u) ||
((l = I[j].innerText || I[j].textContent) && T.push(l),
i.removeChild(I[j]));
if (T.length > 0 && ("always" === t || ("once" === t && !b[c]))) {
for (var q = 0, O = T.length; q < O; q++)
Function(T[q])(window);
b[c] = !0;
}
var W = i.querySelectorAll("style");
if (
(Array.prototype.forEach.call(W, function (e) {
e.textContent += "";
}),
i.setAttribute("xmlns", "http://www.w3.org/2000/svg"),
i.setAttribute("xmlns:xlink", w),
o(i),
!e.parentNode)
) {
y.splice(y.indexOf(e), 1),
(e = null),
s(Error("Parent node is null"));
return;
}
e.parentNode.replaceChild(i, e),
y.splice(y.indexOf(e), 1),
(e = null),
s(null, i);
});
},
A = function (e, t) {
var r = void 0 === t ? {} : t,
n = r.afterAll,
i = void 0 === n ? function () {} : n,
o = r.afterEach,
a = void 0 === o ? function () {} : o,
s = r.beforeEach,
c = void 0 === s ? function () {} : s,
l = r.cacheRequests,
u = void 0 === l || l,
p = r.evalScripts,
f = void 0 === p ? "never" : p,
d = r.httpRequestWithCredentials,
h = void 0 !== d && d,
v = r.renumerateIRIElements,
m = void 0 === v || v;
if (e && "length" in e)
for (var g = 0, y = 0, b = e.length; y < b; y++)
E(e[y], f, m, u, h, c, function (t, r) {
a(t, r), e && "length" in e && e.length === ++g && i(g);
});
else
e
? E(e, f, m, u, h, c, function (t, r) {
a(t, r), i(1), (e = null);
})
: i(0);
},
S = r(40507),
x = r(59496),
C = function (e, t) {
for (var r in e) if (!(r in t)) return !0;
for (var n in t) if (e[n] !== t[n]) return !0;
return !1;
},
R = [
"afterInjection",
"beforeInjection",
"desc",
"evalScripts",
"fallback",
"httpRequestWithCredentials",
"loading",
"renumerateIRIElements",
"src",
"title",
"useRequestCache",
"wrapper",
],
k = "http://www.w3.org/2000/svg",
I = "http://www.w3.org/1999/xlink",
T = (function (e) {
function t() {
for (var t, r = arguments.length, n = Array(r), i = 0; i < r; i++)
n[i] = arguments[i];
return (
((t = e.call.apply(e, [this].concat(n)) || this).initialState = {
hasError: !1,
isLoading: !0,
}),
(t.state = t.initialState),
(t._isMounted = !1),
(t.reactWrapper = void 0),
(t.nonReactWrapper = void 0),
(t.refCallback = function (e) {
t.reactWrapper = e;
}),
t
);
}
(r = t),
(a = e),
(r.prototype = Object.create(a.prototype)),
(r.prototype.constructor = r),
(0, o.Z)(r, a);
var r,
a,
s = t.prototype;
return (
(s.renderSVG = function () {
var e,
t = this;
if (
this.reactWrapper instanceof
((e = this.reactWrapper),
((null == e ? void 0 : e.ownerDocument) || document)
.defaultView || window).Node
) {
var r,
n,
i = this.props,
o = i.desc,
a = i.evalScripts,
s = i.httpRequestWithCredentials,
c = i.renumerateIRIElements,
l = i.src,
u = i.title,
p = i.useRequestCache,
f = this.props.onError,
d = this.props.beforeInjection,
h = this.props.afterInjection,
v = this.props.wrapper;
"svg" === v
? ((r = document.createElementNS(k, v)).setAttribute(
"xmlns",
k
),
r.setAttribute("xmlns:xlink", I),
(n = document.createElementNS(k, v)))
: ((r = document.createElement(v)),
(n = document.createElement(v))),
r.appendChild(n),
(n.dataset.src = l),
(this.nonReactWrapper = this.reactWrapper.appendChild(r));
var m = function (e) {
if ((t.removeSVG(), !t._isMounted)) {
f(e);
return;
}
t.setState(
function () {
return { hasError: !0, isLoading: !1 };
},
function () {
f(e);
}
);
};
A(n, {
afterEach: function (e, r) {
if (e) {
m(e);
return;
}
t._isMounted &&
t.setState(
function () {
return { isLoading: !1 };
},
function () {
try {
h(r);
} catch (e) {
m(e);
}
}
);
},
beforeEach: function (e) {
if ((e.setAttribute("role", "img"), o)) {
var t = e.querySelector(":scope > desc");
t && e.removeChild(t);
var r = document.createElement("desc");
(r.innerHTML = o), e.prepend(r);
}
if (u) {
var n = e.querySelector(":scope > title");
n && e.removeChild(n);
var i = document.createElement("title");
(i.innerHTML = u), e.prepend(i);
}
try {
d(e);
} catch (a) {
m(a);
}
},
cacheRequests: p,
evalScripts: a,
httpRequestWithCredentials: s,
renumerateIRIElements: c,
});
}
}),
(s.removeSVG = function () {
var e;
null != (e = this.nonReactWrapper) &&
e.parentNode &&
(this.nonReactWrapper.parentNode.removeChild(
this.nonReactWrapper
),
(this.nonReactWrapper = null));
}),
(s.componentDidMount = function () {
(this._isMounted = !0), this.renderSVG();
}),
(s.componentDidUpdate = function (e) {
var t = this;
C((0, i.Z)({}, e), this.props) &&
this.setState(
function () {
return t.initialState;
},
function () {
t.removeSVG(), t.renderSVG();
}
);
}),
(s.componentWillUnmount = function () {
(this._isMounted = !1), this.removeSVG();
}),
(s.render = function () {
var e = this.props;
e.afterInjection, e.beforeInjection, e.desc, e.evalScripts;
var t = e.fallback;
e.httpRequestWithCredentials;
var r = e.loading;
e.renumerateIRIElements, e.src, e.title, e.useRequestCache;
var o = e.wrapper,
a = (0, n.Z)(e, R);
return x.createElement(
o,
(0, i.Z)(
{},
a,
{ ref: this.refCallback },
"svg" === o ? { xmlns: k, xmlnsXlink: I } : {}
),
this.state.isLoading && r && x.createElement(r, null),
this.state.hasError && t && x.createElement(t, null)
);
}),
t
);
})(x.Component);
(T.defaultProps = {
afterInjection: function () {},
beforeInjection: function () {},
desc: "",
evalScripts: "never",
fallback: null,
httpRequestWithCredentials: !1,
loading: null,
onError: function () {},
renumerateIRIElements: !0,
title: "",
useRequestCache: !0,
wrapper: "div",
}),
(T.propTypes = {
afterInjection: S.func,
beforeInjection: S.func,
desc: S.string,
evalScripts: S.oneOf(["always", "once", "never"]),
fallback: S.oneOfType([S.func, S.object, S.string]),
httpRequestWithCredentials: S.bool,
loading: S.oneOfType([S.func, S.object, S.string]),
onError: S.func,
renumerateIRIElements: S.bool,
src: S.string.isRequired,
title: S.string,
useRequestCache: S.bool,
wrapper: S.oneOf(["div", "span", "svg"]),
});
},
},
]);
+902
View File
@@ -0,0 +1,902 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[572],
{
86090: function (n, e, t) {
"use strict";
t.r(e),
t.d(e, {
CSSMotionList: function () {
return nu;
},
default: function () {
return ni;
},
});
var r = t(24572),
o = t(75782),
u = t(91600),
i = t(26143),
c = t(59496),
a = t(47946),
f = t(75729),
s = t(84875),
l = t.n(s),
v = t(21982);
function d(n, e) {
var t = {};
return (
(t[n.toLowerCase()] = e.toLowerCase()),
(t["Webkit".concat(n)] = "webkit".concat(e)),
(t["Moz".concat(n)] = "moz".concat(e)),
(t["ms".concat(n)] = "MS".concat(e)),
(t["O".concat(n)] = "o".concat(e.toLowerCase())),
t
);
}
var p,
m,
Z,
y =
((p = (0, v.Z)()),
(m = "undefined" != typeof window ? window : {}),
(Z = {
animationend: d("Animation", "AnimationEnd"),
transitionend: d("Transition", "TransitionEnd"),
}),
!p ||
("AnimationEvent" in m || delete Z.animationend.animation,
"TransitionEvent" in m || delete Z.transitionend.transition),
Z),
E = {};
(0, v.Z)() && (E = document.createElement("div").style);
var h = {};
function k(n) {
if (h[n]) return h[n];
var e = y[n];
if (e)
for (var t = Object.keys(e), r = t.length, o = 0; o < r; o += 1) {
var u = t[o];
if (Object.prototype.hasOwnProperty.call(e, u) && u in E)
return (h[n] = e[u]), h[n];
}
return "";
}
var w = k("animationend"),
g = k("transitionend"),
A = !!(w && g),
L = w || "animationend",
b = g || "transitionend";
function C(n, e) {
return n
? "object" === (0, i.Z)(n)
? n[
e.replace(/-\w/g, function (n) {
return n[1].toUpperCase();
})
]
: "".concat(n, "-").concat(e)
: null;
}
var S = "none",
R = "appear",
M = "enter",
N = "leave",
P = "none",
T = "prepare",
O = "start",
_ = "active",
j = t(93509),
x = t(25532),
V = function () {
var n = c.useRef(null);
function e() {
x.Z.cancel(n.current);
}
return (
c.useEffect(function () {
return function () {
e();
};
}, []),
[
function t(r) {
var o =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: 2;
e();
var u = (0, x.Z)(function () {
o <= 1
? r({
isCanceled: function () {
return u !== n.current;
},
})
: t(r, o - 1);
});
n.current = u;
},
e,
]
);
},
F = (0, v.Z)() ? c.useLayoutEffect : c.useEffect,
D = [T, O, _, "end"];
function H(n) {
return n === _ || "end" === n;
}
var q = function (n, e) {
var t = (0, j.Z)(P),
r = (0, u.Z)(t, 2),
o = r[0],
i = r[1],
a = V(),
f = (0, u.Z)(a, 2),
s = f[0],
l = f[1];
return (
F(
function () {
if (o !== P && "end" !== o) {
var n = D[D.indexOf(o) + 1],
t = e(o);
!1 === t
? i(n, !0)
: s(function (e) {
function r() {
e.isCanceled() || i(n, !0);
}
!0 === t ? r() : Promise.resolve(t).then(r);
});
}
},
[n, o]
),
c.useEffect(function () {
return function () {
l();
};
}, []),
[
function () {
i(T, !0);
},
o,
]
);
},
z = function (n) {
var e = (0, c.useRef)(),
t = (0, c.useRef)(n);
t.current = n;
var r = c.useCallback(function (n) {
t.current(n);
}, []);
function o(n) {
n && (n.removeEventListener(b, r), n.removeEventListener(L, r));
}
return (
c.useEffect(function () {
return function () {
o(e.current);
};
}, []),
[
function (n) {
e.current && e.current !== n && o(e.current),
n &&
n !== e.current &&
(n.addEventListener(b, r),
n.addEventListener(L, r),
(e.current = n));
},
o,
]
);
},
I = t(40936),
K = t(49962),
Y = t(65782),
G = t(76614),
Q = (function (n) {
(0, Y.Z)(t, n);
var e = (0, G.Z)(t);
function t() {
return (0, I.Z)(this, t), e.apply(this, arguments);
}
return (
(0, K.Z)(t, [
{
key: "render",
value: function () {
return this.props.children;
},
},
]),
t
);
})(c.Component),
U = (function (n) {
var e = n;
function t(n) {
return !!(n.motionName && e);
}
"object" === (0, i.Z)(n) && (e = n.transitionSupport);
var s = c.forwardRef(function (n, e) {
var i,
s,
v,
d = n.visible,
p = void 0 === d || d,
m = n.removeOnLeave,
Z = n.forceRender,
y = n.children,
E = n.motionName,
h = n.leavedClassName,
k = n.eventProps,
w = t(n),
g = (0, c.useRef)(),
A = (0, c.useRef)(),
L = (function (n, e, t, i) {
var a = i.motionEnter,
f = void 0 === a || a,
s = i.motionAppear,
l = void 0 === s || s,
v = i.motionLeave,
d = void 0 === v || v,
p = i.motionDeadline,
m = i.motionLeaveImmediately,
Z = i.onAppearPrepare,
y = i.onEnterPrepare,
E = i.onLeavePrepare,
h = i.onAppearStart,
k = i.onEnterStart,
w = i.onLeaveStart,
g = i.onAppearActive,
A = i.onEnterActive,
L = i.onLeaveActive,
b = i.onAppearEnd,
C = i.onEnterEnd,
P = i.onLeaveEnd,
x = i.onVisibleChanged,
V = (0, j.Z)(),
D = (0, u.Z)(V, 2),
I = D[0],
K = D[1],
Y = (0, j.Z)(S),
G = (0, u.Z)(Y, 2),
Q = G[0],
U = G[1],
W = (0, j.Z)(null),
B = (0, u.Z)(W, 2),
J = B[0],
X = B[1],
$ = (0, c.useRef)(!1),
nn = (0, c.useRef)(null);
function ne() {
return t();
}
var nt = (0, c.useRef)(!1);
function nr(n) {
var e,
t = ne();
if (!n || n.deadline || n.target === t) {
var r = nt.current;
Q === R && r
? (e = null == b ? void 0 : b(t, n))
: Q === M && r
? (e = null == C ? void 0 : C(t, n))
: Q === N && r && (e = null == P ? void 0 : P(t, n)),
Q !== S && r && !1 !== e && (U(S, !0), X(null, !0));
}
}
var no = z(nr),
nu = (0, u.Z)(no, 1)[0],
ni = c.useMemo(
function () {
var n, e, t;
switch (Q) {
case R:
return (
(n = {}),
(0, r.Z)(n, T, Z),
(0, r.Z)(n, O, h),
(0, r.Z)(n, _, g),
n
);
case M:
return (
(e = {}),
(0, r.Z)(e, T, y),
(0, r.Z)(e, O, k),
(0, r.Z)(e, _, A),
e
);
case N:
return (
(t = {}),
(0, r.Z)(t, T, E),
(0, r.Z)(t, O, w),
(0, r.Z)(t, _, L),
t
);
default:
return {};
}
},
[Q]
),
nc = q(Q, function (n) {
if (n === T) {
var e,
t = ni[T];
return !!t && t(ne());
}
return (
ns in ni &&
X(
(null === (e = ni[ns]) || void 0 === e
? void 0
: e.call(ni, ne(), null)) || null
),
ns === _ &&
(nu(ne()),
p > 0 &&
(clearTimeout(nn.current),
(nn.current = setTimeout(function () {
nr({ deadline: !0 });
}, p)))),
!0
);
}),
na = (0, u.Z)(nc, 2),
nf = na[0],
ns = na[1],
nl = H(ns);
(nt.current = nl),
F(
function () {
K(e);
var t,
r = $.current;
($.current = !0),
n &&
(!r && e && l && (t = R),
r && e && f && (t = M),
((r && !e && d) || (!r && m && !e && d)) && (t = N),
t && (U(t), nf()));
},
[e]
),
(0, c.useEffect)(
function () {
((Q !== R || l) && (Q !== M || f) && (Q !== N || d)) ||
U(S);
},
[l, f, d]
),
(0, c.useEffect)(function () {
return function () {
($.current = !1), clearTimeout(nn.current);
};
}, []);
var nv = c.useRef(!1);
(0, c.useEffect)(
function () {
I && (nv.current = !0),
void 0 !== I &&
Q === S &&
((nv.current || I) && (null == x || x(I)),
(nv.current = !0));
},
[I, Q]
);
var nd = J;
return (
ni[T] &&
ns === O &&
(nd = (0, o.Z)({ transition: "none" }, nd)),
[Q, ns, nd, null != I ? I : e]
);
})(
w,
p,
function () {
try {
return g.current instanceof HTMLElement
? g.current
: (0, a.Z)(A.current);
} catch (n) {
return null;
}
},
n
),
b = (0, u.Z)(L, 4),
P = b[0],
x = b[1],
V = b[2],
D = b[3],
I = c.useRef(D);
D && (I.current = !0);
var K = c.useCallback(
function (n) {
(g.current = n), (0, f.mH)(e, n);
},
[e]
),
Y = (0, o.Z)((0, o.Z)({}, k), {}, { visible: p });
return (
y
? P !== S && t(n)
? (x === T
? (v = "prepare")
: H(x)
? (v = "active")
: x === O && (v = "start"),
(i = y(
(0, o.Z)(
(0, o.Z)({}, Y),
{},
{
className: l()(
C(E, P),
((s = {}),
(0, r.Z)(s, C(E, "".concat(P, "-").concat(v)), v),
(0, r.Z)(s, E, "string" == typeof E),
s)
),
style: V,
}
),
K
)))
: (i = D
? y((0, o.Z)({}, Y), K)
: !(void 0 === m || m) && I.current
? y((0, o.Z)((0, o.Z)({}, Y), {}, { className: h }), K)
: Z
? y(
(0, o.Z)(
(0, o.Z)({}, Y),
{},
{ style: { display: "none" } }
),
K
)
: null)
: (i = null),
c.isValidElement(i) &&
(0, f.Yr)(i) &&
(i.ref || (i = c.cloneElement(i, { ref: K }))),
c.createElement(Q, { ref: A }, i)
);
});
return (s.displayName = "CSSMotion"), s;
})(A),
W = t(51163),
B = t(68901),
J = "keep",
X = "remove",
$ = "removed";
function nn(n) {
var e;
return (
(e = n && "object" === (0, i.Z)(n) && "key" in n ? n : { key: n }),
(0, o.Z)((0, o.Z)({}, e), {}, { key: String(e.key) })
);
}
function ne() {
var n =
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
return n.map(nn);
}
var nt = ["component", "children", "onVisibleChanged", "onAllRemoved"],
nr = ["status"],
no = [
"eventProps",
"visible",
"children",
"motionName",
"motionAppear",
"motionEnter",
"motionLeave",
"motionLeaveImmediately",
"motionDeadline",
"removeOnLeave",
"leavedClassName",
"onAppearStart",
"onAppearActive",
"onAppearEnd",
"onEnterStart",
"onEnterActive",
"onEnterEnd",
"onLeaveStart",
"onLeaveActive",
"onLeaveEnd",
],
nu = (function (n) {
var e =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: U,
t = (function (n) {
(0, Y.Z)(r, n);
var t = (0, G.Z)(r);
function r() {
var n;
(0, I.Z)(this, r);
for (var e = arguments.length, u = Array(e), i = 0; i < e; i++)
u[i] = arguments[i];
return (
((n = t.call.apply(t, [this].concat(u))).state = {
keyEntities: [],
}),
(n.removeKey = function (e) {
var t = n.state.keyEntities.map(function (n) {
return n.key !== e
? n
: (0, o.Z)((0, o.Z)({}, n), {}, { status: $ });
});
return (
n.setState({ keyEntities: t }),
t.filter(function (n) {
return n.status !== $;
}).length
);
}),
n
);
}
return (
(0, K.Z)(
r,
[
{
key: "render",
value: function () {
var n = this,
t = this.state.keyEntities,
r = this.props,
o = r.component,
u = r.children,
i = r.onVisibleChanged,
a = r.onAllRemoved,
f = (0, B.Z)(r, nt),
s = o || c.Fragment,
l = {};
return (
no.forEach(function (n) {
(l[n] = f[n]), delete f[n];
}),
delete f.keys,
c.createElement(
s,
f,
t.map(function (t) {
var r = t.status,
o = (0, B.Z)(t, nr);
return c.createElement(
e,
(0, W.Z)({}, l, {
key: o.key,
visible: "add" === r || r === J,
eventProps: o,
onVisibleChanged: function (e) {
null == i || i(e, { key: o.key }),
!e &&
0 === n.removeKey(o.key) &&
a &&
a();
},
}),
u
);
})
)
);
},
},
],
[
{
key: "getDerivedStateFromProps",
value: function (n, e) {
var t = n.keys,
r = e.keyEntities,
u = ne(t);
return {
keyEntities: (function () {
var n =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: [],
e =
arguments.length > 1 && void 0 !== arguments[1]
? arguments[1]
: [],
t = [],
r = 0,
u = e.length,
i = ne(n),
c = ne(e);
i.forEach(function (n) {
for (var e = !1, i = r; i < u; i += 1) {
var a = c[i];
if (a.key === n.key) {
r < i &&
((t = t.concat(
c.slice(r, i).map(function (n) {
return (0,
o.Z)((0, o.Z)({}, n), {}, { status: "add" });
})
)),
(r = i)),
t.push(
(0, o.Z)(
(0, o.Z)({}, a),
{},
{ status: J }
)
),
(r += 1),
(e = !0);
break;
}
}
e ||
t.push(
(0, o.Z)((0, o.Z)({}, n), {}, { status: X })
);
}),
r < u &&
(t = t.concat(
c.slice(r).map(function (n) {
return (0,
o.Z)((0, o.Z)({}, n), {}, { status: "add" });
})
));
var a = {};
return (
t.forEach(function (n) {
var e = n.key;
a[e] = (a[e] || 0) + 1;
}),
Object.keys(a)
.filter(function (n) {
return a[n] > 1;
})
.forEach(function (n) {
(t = t.filter(function (e) {
var t = e.key,
r = e.status;
return t !== n || r !== X;
})).forEach(function (e) {
e.key === n && (e.status = J);
});
}),
t
);
})(r, u).filter(function (n) {
var e = r.find(function (e) {
var t = e.key;
return n.key === t;
});
return !e || e.status !== $ || n.status !== X;
}),
};
},
},
]
),
r
);
})(c.Component);
return (t.defaultProps = { component: "div" }), t;
})(A),
ni = U;
},
21982: function (n, e, t) {
"use strict";
function r() {
return !!(
"undefined" != typeof window &&
window.document &&
window.document.createElement
);
}
t.d(e, {
Z: function () {
return r;
},
});
},
47946: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return u;
},
});
var r = t(59496),
o = t(87995);
function u(n) {
var e;
return n instanceof HTMLElement || n instanceof SVGElement
? n
: n instanceof r.Component
? o.findDOMNode(n)
: null;
}
},
17967: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return o;
},
});
var r = t(59496);
function o(n, e, t) {
var o = r.useRef({});
return (
(!("value" in o.current) || t(o.current.condition, e)) &&
((o.current.value = n()), (o.current.condition = e)),
o.current.value
);
}
},
93509: function (n, e, t) {
"use strict";
t.d(e, {
Z: function () {
return u;
},
});
var r = t(91600),
o = t(59496);
function u(n) {
var e = o.useRef(!1),
t = o.useState(n),
u = (0, r.Z)(t, 2),
i = u[0],
c = u[1];
return (
o.useEffect(function () {
return (
(e.current = !1),
function () {
e.current = !0;
}
);
}, []),
[
i,
function (n, t) {
(!t || !e.current) && c(n);
},
]
);
}
},
25532: function (n, e) {
"use strict";
var t = function (n) {
return +setTimeout(n, 16);
},
r = function (n) {
return clearTimeout(n);
};
"undefined" != typeof window &&
"requestAnimationFrame" in window &&
((t = function (n) {
return window.requestAnimationFrame(n);
}),
(r = function (n) {
return window.cancelAnimationFrame(n);
}));
var o = 0,
u = new Map();
function i(n) {
u.delete(n);
}
var c = function (n) {
var e =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1;
return (
(o += 1),
!(function e(r) {
if (0 === r) i(o), n();
else {
var c = t(function () {
e(r - 1);
});
u.set(o, c);
}
})(e),
o
);
};
(c.cancel = function (n) {
var e = u.get(n);
return i(e), r(e);
}),
(e.Z = c);
},
75729: function (n, e, t) {
"use strict";
t.d(e, {
Yr: function () {
return f;
},
mH: function () {
return i;
},
sQ: function () {
return c;
},
x1: function () {
return a;
},
});
var r = t(26143),
o = t(56237),
u = t(17967);
function i(n, e) {
"function" == typeof n
? n(e)
: "object" === (0, r.Z)(n) && n && "current" in n && (n.current = e);
}
function c() {
for (var n = arguments.length, e = Array(n), t = 0; t < n; t++)
e[t] = arguments[t];
var r = e.filter(function (n) {
return n;
});
return r.length <= 1
? r[0]
: function (n) {
e.forEach(function (e) {
i(e, n);
});
};
}
function a() {
for (var n = arguments.length, e = Array(n), t = 0; t < n; t++)
e[t] = arguments[t];
return (0, u.Z)(
function () {
return c.apply(void 0, e);
},
e,
function (n, e) {
return (
n.length === e.length &&
n.every(function (n, t) {
return n === e[t];
})
);
}
);
}
function f(n) {
var e,
t,
r = (0, o.isMemo)(n) ? n.type.type : n.type;
return (
("function" != typeof r ||
(null !== (e = r.prototype) && void 0 !== e && !!e.render)) &&
("function" != typeof n ||
(null !== (t = n.prototype) && void 0 !== t && !!t.render))
);
}
},
12132: function (n) {
(n.exports = function (n) {
return n && n.__esModule ? n : { default: n };
}),
(n.exports.__esModule = !0),
(n.exports.default = n.exports);
},
},
]);
File diff suppressed because it is too large Load Diff
+485
View File
@@ -0,0 +1,485 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[6116],
{
95667: function (e, t, n) {
"use strict";
function r(e, t) {
void 0 === e && (e = "search"), void 0 === t && (t = null);
var n = (t || window.location[e]).split("?")[1],
r = {};
return (
n &&
n.split("&").forEach(function (e) {
var t = e.split("="),
n = "true" === t[1] || ("false" !== t[1] && t[1]);
r[t[0]] = n;
}),
r
);
}
function u(e, t) {
return (
void 0 === t && (t = location.pathname),
Object.keys(e).reduce(function (t, n, r) {
return ""
.concat(t)
.concat(0 === r ? "?" : "&")
.concat(n, "=")
.concat(e[n]);
}, t)
);
}
n.d(t, {
W0: function () {
return u;
},
pM: function () {
return r;
},
});
},
67269: function (e, t, n) {
"use strict";
n(57890), n(26063);
},
84875: function (e, t) {
var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/ !(function () {
"use strict";
var r = {}.hasOwnProperty;
function u() {
for (var e = [], t = 0; t < arguments.length; t++) {
var n = arguments[t];
if (n) {
var o = typeof n;
if ("string" === o || "number" === o) e.push(n);
else if (Array.isArray(n)) {
if (n.length) {
var a = u.apply(null, n);
a && e.push(a);
}
} else if ("object" === o) {
if (
n.toString !== Object.prototype.toString &&
!n.toString.toString().includes("[native code]")
) {
e.push(n.toString());
continue;
}
for (var i in n) r.call(n, i) && n[i] && e.push(i);
}
}
}
return e.join(" ");
}
e.exports
? ((u.default = u), (e.exports = u))
: void 0 !==
(n = function () {
return u;
}.apply(t, [])) && (e.exports = n);
})();
},
73407: function (e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", { value: !0 });
var r = n(21470).Z;
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.default = function (e, t) {
var n = a.default,
o = (null == t ? void 0 : t.suspense)
? {}
: {
loading: function (e) {
return e.error, e.isLoading, e.pastDelay, null;
},
};
if (
(r(e, Promise)
? (o.loader = function () {
return e;
})
: "function" == typeof e
? (o.loader = e)
: "object" == typeof e && (o = u({}, o, e)),
(o = u({}, o, t)).suspense)
)
throw Error(
"Invalid suspense option usage in next/dynamic. Read more: ht:/nextjs.org/docs/messages/invalid-dynamic-suspense"
);
if (
(o.suspense && (delete o.ssr, delete o.loading),
o.loadableGenerated &&
delete (o = u({}, o, o.loadableGenerated)).loadableGenerated,
"boolean" == typeof o.ssr && !o.suspense)
) {
if (!o.ssr) return delete o.ssr, i(n, o);
delete o.ssr;
}
return n(o);
}),
(t.noSSR = i);
var u = n(5506).Z,
o = n(57022).Z,
a = (o(n(59496)), o(n(87887)));
function i(e, t) {
return delete t.webpack, delete t.modules, e(t);
}
("function" == typeof t.default ||
("object" == typeof t.default && null !== t.default)) &&
void 0 === t.default.__esModule &&
(Object.defineProperty(t.default, "__esModule", { value: !0 }),
Object.assign(t.default, t),
(e.exports = t.default));
},
23419: function (e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.LoadableContext = void 0);
var r = (0, n(57022).Z)(n(59496)).default.createContext(null);
t.LoadableContext = r;
},
87887: function (e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", { value: !0 });
var r = n(31358).Z,
u = n(56993).Z;
Object.defineProperty(t, "__esModule", { value: !0 }),
(t.default = void 0);
var o = n(5506).Z,
a = (0, n(57022).Z)(n(59496)),
i = n(23419),
l = n(74241).useSyncExternalStore,
s = [],
c = [],
d = !1;
function f(e) {
var t = e(),
n = { loading: !0, loaded: null, error: null };
return (
(n.promise = t
.then(function (e) {
return (n.loading = !1), (n.loaded = e), e;
})
.catch(function (e) {
throw ((n.loading = !1), (n.error = e), e);
})),
n
);
}
var p = (function () {
function e(t, n) {
r(this, e),
(this._loadFn = t),
(this._opts = n),
(this._callbacks = new Set()),
(this._delay = null),
(this._timeout = null),
this.retry();
}
return (
u(e, [
{
key: "promise",
value: function () {
return this._res.promise;
},
},
{
key: "retry",
value: function () {
var e = this;
this._clearTimeouts(),
(this._res = this._loadFn(this._opts.loader)),
(this._state = { pastDelay: !1, timedOut: !1 });
var t = this._res,
n = this._opts;
t.loading &&
("number" == typeof n.delay &&
(0 === n.delay
? (this._state.pastDelay = !0)
: (this._delay = setTimeout(function () {
e._update({ pastDelay: !0 });
}, n.delay))),
"number" == typeof n.timeout &&
(this._timeout = setTimeout(function () {
e._update({ timedOut: !0 });
}, n.timeout))),
this._res.promise
.then(function () {
e._update({}), e._clearTimeouts();
})
.catch(function (t) {
e._update({}), e._clearTimeouts();
}),
this._update({});
},
},
{
key: "_update",
value: function (e) {
(this._state = o(
{},
this._state,
{
error: this._res.error,
loaded: this._res.loaded,
loading: this._res.loading,
},
e
)),
this._callbacks.forEach(function (e) {
return e();
});
},
},
{
key: "_clearTimeouts",
value: function () {
clearTimeout(this._delay), clearTimeout(this._timeout);
},
},
{
key: "getCurrentValue",
value: function () {
return this._state;
},
},
{
key: "subscribe",
value: function (e) {
var t = this;
return (
this._callbacks.add(e),
function () {
t._callbacks.delete(e);
}
);
},
},
]),
e
);
})();
function v(e) {
return (function (e, t) {
var n = function () {
if (!v) {
var t = new p(e, f);
v = {
getCurrentValue: t.getCurrentValue.bind(t),
subscribe: t.subscribe.bind(t),
retry: t.retry.bind(t),
promise: t.promise.bind(t),
};
}
return v.promise();
},
r = function () {
n();
var e = a.default.useContext(i.LoadableContext);
e &&
Array.isArray(f.modules) &&
f.modules.forEach(function (t) {
e(t);
});
},
u = function (e, t) {
r();
var n = l(v.subscribe, v.getCurrentValue, v.getCurrentValue);
return (
a.default.useImperativeHandle(
t,
function () {
return { retry: v.retry };
},
[]
),
a.default.useMemo(
function () {
var t;
return n.loading || n.error
? a.default.createElement(f.loading, {
isLoading: n.loading,
pastDelay: n.pastDelay,
timedOut: n.timedOut,
error: n.error,
retry: v.retry,
})
: n.loaded
? a.default.createElement(
(t = n.loaded) && t.__esModule ? t.default : t,
e
)
: null;
},
[e, n]
)
);
},
s = function (e, t) {
return r(), a.default.createElement(f.lazy, o({}, e, { ref: t }));
},
f = Object.assign(
{
loader: null,
loading: null,
delay: 200,
timeout: null,
webpack: null,
modules: null,
suspense: !1,
},
t
);
f.suspense && (f.lazy = a.default.lazy(f.loader));
var v = null;
if (!d) {
var y = f.webpack ? f.webpack() : f.modules;
y &&
c.push(function (e) {
var t = !0,
r = !1,
u = void 0;
try {
for (
var o, a = y[Symbol.iterator]();
!(t = (o = a.next()).done);
t = !0
) {
var i = o.value;
if (-1 !== e.indexOf(i)) return n();
}
} catch (l) {
(r = !0), (u = l);
} finally {
try {
t || null == a.return || a.return();
} finally {
if (r) throw u;
}
}
});
}
var h = f.suspense ? s : u;
return (
(h.preload = function () {
return n();
}),
(h.displayName = "LoadableComponent"),
a.default.forwardRef(h)
);
})(f, e);
}
function y(e, t) {
for (var n = []; e.length; ) {
var r = e.pop();
n.push(r(t));
}
return Promise.all(n).then(function () {
if (e.length) return y(e, t);
});
}
(v.preloadAll = function () {
return new Promise(function (e, t) {
y(s).then(e, t);
});
}),
(v.preloadReady = function () {
var e =
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
return new Promise(function (t) {
var n = function () {
return (d = !0), t();
};
y(c, e).then(n, n);
});
}),
(window.__NEXT_PRELOADREADY = v.preloadReady),
(t.default = v);
},
26063: function () {},
92881: function (e, t, n) {
e.exports = n(73407);
},
82978: function (e, t, n) {
"use strict";
/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/ var r = n(59496),
u =
"function" == typeof Object.is
? Object.is
: function (e, t) {
return (
(e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t)
);
},
o = r.useState,
a = r.useEffect,
i = r.useLayoutEffect,
l = r.useDebugValue;
function s(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !u(e, n);
} catch (r) {
return !0;
}
}
function c(e, t) {
return t();
}
var d =
"undefined" == typeof window ||
void 0 === window.document ||
void 0 === window.document.createElement
? c
: function (e, t) {
var n = t(),
r = o({ inst: { value: n, getSnapshot: t } }),
u = r[0].inst,
c = r[1];
return (
i(
function () {
(u.value = n), (u.getSnapshot = t), s(u) && c({ inst: u });
},
[e, n, t]
),
a(
function () {
return (
s(u) && c({ inst: u }),
e(function () {
s(u) && c({ inst: u });
})
);
},
[e]
),
l(n),
n
);
};
t.useSyncExternalStore =
void 0 !== r.useSyncExternalStore ? r.useSyncExternalStore : d;
},
74241: function (e, t, n) {
"use strict";
e.exports = n(82978);
},
},
]);
File diff suppressed because it is too large Load Diff
+792
View File
@@ -0,0 +1,792 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[7297],
{
41706: function (t, e, o) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.PresetStatusColorTypes = e.PresetColorTypes = void 0);
var r = o(49893),
n = (0, r.tuple)(
"success",
"processing",
"error",
"default",
"warning"
);
e.PresetStatusColorTypes = n;
var a = (0, r.tuple)(
"pink",
"red",
"yellow",
"orange",
"cyan",
"green",
"blue",
"purple",
"geekblue",
"magenta",
"volcano",
"gold",
"lime"
);
e.PresetColorTypes = a;
},
79174: function (t, e, o) {
"use strict";
var r = o(98772).default;
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = function (t) {
var e = t.arrowWidth,
o = void 0 === e ? 4 : e,
r = t.horizontalArrowShift,
l = void 0 === r ? 16 : r,
f = t.verticalArrowShift,
u = void 0 === f ? 8 : f,
c = t.autoAdjustOverflow,
p = t.arrowPointAtCenter,
d = {
left: { points: ["cr", "cl"], offset: [-4, 0] },
right: { points: ["cl", "cr"], offset: [4, 0] },
top: { points: ["bc", "tc"], offset: [0, -4] },
bottom: { points: ["tc", "bc"], offset: [0, 4] },
topLeft: { points: ["bl", "tc"], offset: [-(l + o), -4] },
leftTop: { points: ["tr", "cl"], offset: [-4, -(u + o)] },
topRight: { points: ["br", "tc"], offset: [l + o, -4] },
rightTop: { points: ["tl", "cr"], offset: [4, -(u + o)] },
bottomRight: { points: ["tr", "bc"], offset: [l + o, 4] },
rightBottom: { points: ["bl", "cr"], offset: [4, u + o] },
bottomLeft: { points: ["tl", "bc"], offset: [-(l + o), 4] },
leftBottom: { points: ["br", "cl"], offset: [-4, u + o] },
};
return (
Object.keys(d).forEach(function (t) {
(d[t] = p
? (0, n.default)((0, n.default)({}, d[t]), {
overflow: s(c),
targetOffset: i,
})
: (0, n.default)((0, n.default)({}, a.placements[t]), {
overflow: s(c),
})),
(d[t].ignoreShake = !0);
}),
d
);
}),
(e.getOverflowOptions = s);
var n = r(o(60799)),
a = o(48975),
l = { adjustX: 1, adjustY: 1 },
f = { adjustX: 0, adjustY: 0 },
i = [0, 0];
function s(t) {
return "boolean" == typeof t
? t
? l
: f
: (0, n.default)((0, n.default)({}, f), t);
}
},
39062: function (t, e, o) {
"use strict";
var r = o(66356).default,
n = o(98772).default;
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = void 0);
var a = n(o(52510)),
l = n(o(54306)),
f = n(o(60799)),
i = n(o(84875)),
s = n(o(69533)),
u = n(o(98402)),
c = r(o(59496)),
p = o(88714),
d = o(41706),
v = o(70718),
m = n(o(79174)),
g = o(12181);
n(o(99565));
var b = function (t, e) {
var o = {};
for (var r in t)
Object.prototype.hasOwnProperty.call(t, r) &&
0 > e.indexOf(r) &&
(o[r] = t[r]);
if (null != t && "function" == typeof Object.getOwnPropertySymbols)
for (
var n = 0, r = Object.getOwnPropertySymbols(t);
n < r.length;
n++
)
0 > e.indexOf(r[n]) &&
Object.prototype.propertyIsEnumerable.call(t, r[n]) &&
(o[r[n]] = t[r[n]]);
return o;
},
y = function (t, e) {
var o = {},
r = (0, f.default)({}, t);
return (
e.forEach(function (e) {
t && e in t && ((o[e] = t[e]), delete r[e]);
}),
{ picked: o, omitted: r }
);
},
w = RegExp("^(".concat(d.PresetColorTypes.join("|"), ")(-inverse)?$")),
O = c.forwardRef(function (t, e) {
var o,
r = c.useContext(p.ConfigContext),
n = r.getPopupContainer,
d = r.getPrefixCls,
O = r.direction,
h = (0, u.default)(!1, {
value: void 0 !== t.open ? t.open : t.visible,
defaultValue:
void 0 !== t.defaultOpen ? t.defaultOpen : t.defaultVisible,
}),
C = (0, l.default)(h, 2),
P = C[0],
N = C[1],
E = function () {
var e = t.title,
o = t.overlay;
return !e && !o && 0 !== e;
},
R = function (e) {
var o, r;
N(!E() && e),
E() ||
(null === (o = t.onOpenChange) ||
void 0 === o ||
o.call(t, e),
null === (r = t.onVisibleChange) ||
void 0 === r ||
r.call(t, e));
},
_ = function () {
var e = t.builtinPlacements,
o = t.arrowPointAtCenter,
r = t.autoAdjustOverflow;
return (
e ||
(0, m.default)({
arrowPointAtCenter: void 0 !== o && o,
autoAdjustOverflow: void 0 === r || r,
})
);
},
j = function (t, e) {
var o = _(),
r = Object.keys(o).find(function (t) {
var r, n;
return (
o[t].points[0] ===
(null === (r = e.points) || void 0 === r
? void 0
: r[0]) &&
o[t].points[1] ===
(null === (n = e.points) || void 0 === n ? void 0 : n[1])
);
});
if (r) {
var n = t.getBoundingClientRect(),
a = { top: "50%", left: "50%" };
/top|Bottom/.test(r)
? (a.top = "".concat(n.height - e.offset[1], "px"))
: /Top|bottom/.test(r) &&
(a.top = "".concat(-e.offset[1], "px")),
/left|Right/.test(r)
? (a.left = "".concat(n.width - e.offset[0], "px"))
: /right|Left/.test(r) &&
(a.left = "".concat(-e.offset[0], "px")),
(t.style.transformOrigin = ""
.concat(a.left, " ")
.concat(a.top));
}
},
T = t.getPopupContainer,
A = t.placement,
k = t.mouseEnterDelay,
x = t.mouseLeaveDelay,
S = b(t, [
"getPopupContainer",
"placement",
"mouseEnterDelay",
"mouseLeaveDelay",
]),
I = t.prefixCls,
L = t.openClassName,
V = t.getTooltipContainer,
D = t.overlayClassName,
B = t.color,
M = t.overlayInnerStyle,
H = t.children,
Z = d("tooltip", I),
U = d(),
X = P;
!(!("open" in t) && !("visible" in t) && E()) || (X = !1);
var Y,
z,
W = (function (t, e) {
var o = t.type;
if (
((!0 === o.__ANT_BUTTON || "button" === t.type) &&
t.props.disabled) ||
(!0 === o.__ANT_SWITCH &&
(t.props.disabled || t.props.loading)) ||
(!0 === o.__ANT_RADIO && t.props.disabled)
) {
var r = y(t.props.style, [
"position",
"left",
"right",
"top",
"bottom",
"float",
"display",
"zIndex",
]),
n = r.picked,
a = r.omitted,
l = (0, f.default)(
(0, f.default)({ display: "inline-block" }, n),
{
cursor: "not-allowed",
width: t.props.block ? "100%" : void 0,
}
),
s = (0, f.default)((0, f.default)({}, a), {
pointerEvents: "none",
}),
u = (0, g.cloneElement)(t, { style: s, className: null });
return c.createElement(
"span",
{
style: l,
className: (0, i.default)(
t.props.className,
"".concat(e, "-disabled-compatible-wrapper")
),
},
u
);
}
return t;
})(
(0, g.isValidElement)(H) && !(0, g.isFragment)(H)
? H
: c.createElement("span", null, H),
Z
),
F = W.props,
$ =
F.className && "string" != typeof F.className
? F.className
: (0, i.default)(
F.className,
(0, a.default)({}, L || "".concat(Z, "-open"), !0)
),
q = (0, i.default)(
D,
((o = {}),
(0, a.default)(o, "".concat(Z, "-rtl"), "rtl" === O),
(0, a.default)(o, "".concat(Z, "-").concat(B), B && w.test(B)),
o)
),
G = M,
J = {};
return (
B &&
!w.test(B) &&
((G = (0, f.default)((0, f.default)({}, M), { background: B })),
(J = { "--antd-arrow-background-color": B })),
c.createElement(
s.default,
(0, f.default)({}, S, {
placement: void 0 === A ? "top" : A,
mouseEnterDelay: void 0 === k ? 0.1 : k,
mouseLeaveDelay: void 0 === x ? 0.1 : x,
prefixCls: Z,
overlayClassName: q,
getTooltipContainer: T || V || n,
ref: e,
builtinPlacements: _(),
overlay:
((Y = t.title), (z = t.overlay), 0 === Y ? Y : z || Y || ""),
visible: X,
onVisibleChange: R,
onPopupAlign: j,
overlayInnerStyle: G,
arrowContent: c.createElement("span", {
className: "".concat(Z, "-arrow-content"),
style: J,
}),
motion: {
motionName: (0, v.getTransitionName)(
U,
"zoom-big-fast",
t.transitionName
),
motionDeadline: 1e3,
},
}),
X ? (0, g.cloneElement)(W, { className: $ }) : W
)
);
});
e.default = O;
},
2483: function (t, e, o) {
"use strict";
o(57890), o(72219);
},
72219: function () {},
69533: function (t, e, o) {
"use strict";
o.r(e),
o.d(e, {
Popup: function () {
return p;
},
default: function () {
return v;
},
});
var r = o(51163),
n = o(26143),
a = o(75782),
l = o(68901),
f = o(59496),
i = o(85628),
s = o(21486),
u = o(84875),
c = o.n(u);
function p(t) {
var e = t.showArrow,
o = t.arrowContent,
r = t.children,
n = t.prefixCls,
a = t.id,
l = t.overlayInnerStyle,
i = t.className,
s = t.style;
return f.createElement(
"div",
{ className: c()("".concat(n, "-content"), i), style: s },
!1 !== e &&
f.createElement(
"div",
{ className: "".concat(n, "-arrow"), key: "arrow" },
o
),
f.createElement(
"div",
{
className: "".concat(n, "-inner"),
id: a,
role: "tooltip",
style: l,
},
"function" == typeof r ? r() : r
)
);
}
var d = function (t, e) {
var o = t.overlayClassName,
u = t.trigger,
c = t.mouseEnterDelay,
d = t.mouseLeaveDelay,
v = t.overlayStyle,
m = t.prefixCls,
g = void 0 === m ? "rc-tooltip" : m,
b = t.children,
y = t.onVisibleChange,
w = t.afterVisibleChange,
O = t.transitionName,
h = t.animation,
C = t.motion,
P = t.placement,
N = t.align,
E = t.destroyTooltipOnHide,
R = void 0 !== E && E,
_ = t.defaultVisible,
j = t.getTooltipContainer,
T = t.overlayInnerStyle,
A = t.arrowContent,
k = t.overlay,
x = t.id,
S = t.showArrow,
I = (0, l.Z)(t, [
"overlayClassName",
"trigger",
"mouseEnterDelay",
"mouseLeaveDelay",
"overlayStyle",
"prefixCls",
"children",
"onVisibleChange",
"afterVisibleChange",
"transitionName",
"animation",
"motion",
"placement",
"align",
"destroyTooltipOnHide",
"defaultVisible",
"getTooltipContainer",
"overlayInnerStyle",
"arrowContent",
"overlay",
"id",
"showArrow",
]),
L = (0, f.useRef)(null);
(0, f.useImperativeHandle)(e, function () {
return L.current;
});
var V = (0, a.Z)({}, I);
"visible" in t && (V.popupVisible = t.visible);
var D = function () {
return f.createElement(
p,
{
showArrow: S,
arrowContent: A,
key: "content",
prefixCls: g,
id: x,
overlayInnerStyle: T,
},
k
);
},
B = !1,
M = !1;
if ("boolean" == typeof R) B = R;
else if (R && "object" === (0, n.Z)(R)) {
var H = R.keepParent;
(B = !0 === H), (M = !1 === H);
}
return f.createElement(
i.Z,
(0, r.Z)(
{
popupClassName: o,
prefixCls: g,
popup: D,
action: void 0 === u ? ["hover"] : u,
builtinPlacements: s.C,
popupPlacement: void 0 === P ? "right" : P,
ref: L,
popupAlign: void 0 === N ? {} : N,
getPopupContainer: j,
onPopupVisibleChange: y,
afterPopupVisibleChange: w,
popupTransitionName: O,
popupAnimation: h,
popupMotion: C,
defaultPopupVisible: _,
destroyPopupOnHide: B,
autoDestroy: M,
mouseLeaveDelay: void 0 === d ? 0.1 : d,
popupStyle: v,
mouseEnterDelay: void 0 === c ? 0 : c,
},
V
),
b
);
},
v = (0, f.forwardRef)(d);
},
21486: function (t, e, o) {
"use strict";
o.d(e, {
C: function () {
return a;
},
});
var r = { adjustX: 1, adjustY: 1 },
n = [0, 0],
a = {
left: {
points: ["cr", "cl"],
overflow: r,
offset: [-4, 0],
targetOffset: n,
},
right: {
points: ["cl", "cr"],
overflow: r,
offset: [4, 0],
targetOffset: n,
},
top: {
points: ["bc", "tc"],
overflow: r,
offset: [0, -4],
targetOffset: n,
},
bottom: {
points: ["tc", "bc"],
overflow: r,
offset: [0, 4],
targetOffset: n,
},
topLeft: {
points: ["bl", "tl"],
overflow: r,
offset: [0, -4],
targetOffset: n,
},
leftTop: {
points: ["tr", "tl"],
overflow: r,
offset: [-4, 0],
targetOffset: n,
},
topRight: {
points: ["br", "tr"],
overflow: r,
offset: [0, -4],
targetOffset: n,
},
rightTop: {
points: ["tl", "tr"],
overflow: r,
offset: [4, 0],
targetOffset: n,
},
bottomRight: {
points: ["tr", "br"],
overflow: r,
offset: [0, 4],
targetOffset: n,
},
rightBottom: {
points: ["bl", "br"],
overflow: r,
offset: [4, 0],
targetOffset: n,
},
bottomLeft: {
points: ["tl", "bl"],
overflow: r,
offset: [0, 4],
targetOffset: n,
},
leftBottom: {
points: ["br", "bl"],
overflow: r,
offset: [-4, 0],
targetOffset: n,
},
};
},
48975: function (t, e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = e.placements = void 0);
var o = { adjustX: 1, adjustY: 1 },
r = [0, 0],
n = {
left: {
points: ["cr", "cl"],
overflow: o,
offset: [-4, 0],
targetOffset: r,
},
right: {
points: ["cl", "cr"],
overflow: o,
offset: [4, 0],
targetOffset: r,
},
top: {
points: ["bc", "tc"],
overflow: o,
offset: [0, -4],
targetOffset: r,
},
bottom: {
points: ["tc", "bc"],
overflow: o,
offset: [0, 4],
targetOffset: r,
},
topLeft: {
points: ["bl", "tl"],
overflow: o,
offset: [0, -4],
targetOffset: r,
},
leftTop: {
points: ["tr", "tl"],
overflow: o,
offset: [-4, 0],
targetOffset: r,
},
topRight: {
points: ["br", "tr"],
overflow: o,
offset: [0, -4],
targetOffset: r,
},
rightTop: {
points: ["tl", "tr"],
overflow: o,
offset: [4, 0],
targetOffset: r,
},
bottomRight: {
points: ["tr", "br"],
overflow: o,
offset: [0, 4],
targetOffset: r,
},
rightBottom: {
points: ["bl", "br"],
overflow: o,
offset: [4, 0],
targetOffset: r,
},
bottomLeft: {
points: ["tl", "bl"],
overflow: o,
offset: [0, 4],
targetOffset: r,
},
leftBottom: {
points: ["br", "bl"],
overflow: o,
offset: [-4, 0],
targetOffset: r,
},
};
(e.placements = n), (e.default = n);
},
18610: function (t, e, o) {
"use strict";
var r = o(66356).default;
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = function (t) {
var e = n.useRef();
return (
(e.current = t),
n.useCallback(function () {
for (var t, o = arguments.length, r = Array(o), n = 0; n < o; n++)
r[n] = arguments[n];
return null === (t = e.current) || void 0 === t
? void 0
: t.call.apply(t, [e].concat(r));
}, [])
);
});
var n = r(o(59496));
},
38161: function (t, e, o) {
"use strict";
var r = o(98772).default,
n = o(66356).default;
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.useLayoutUpdateEffect = e.default = void 0);
var a = n(o(59496)),
l = (0, r(o(18036)).default)() ? a.useLayoutEffect : a.useEffect;
e.default = l;
var f = function (t, e) {
var o = a.useRef(!0);
l(function () {
if (!o.current) return t();
}, e),
l(function () {
return (
(o.current = !1),
function () {
o.current = !0;
}
);
}, []);
};
e.useLayoutUpdateEffect = f;
},
98402: function (t, e, o) {
"use strict";
var r,
n = o(66356).default,
a = o(98772).default;
Object.defineProperty(e, "__esModule", { value: !0 }),
(e.default = function (t, e) {
var o = e || {},
n = o.defaultValue,
a = o.value,
l = o.onChange,
d = o.postState,
v = (0, c.default)(function () {
var e,
o = void 0;
return (
p(a)
? ((o = a), (e = r.PROP))
: p(n)
? ((o = "function" == typeof n ? n() : n), (e = r.PROP))
: ((o = "function" == typeof t ? t() : t), (e = r.INNER)),
[o, e, o]
);
}),
m = (0, f.default)(v, 2),
g = m[0],
b = m[1],
y = p(a) ? a : g[0],
w = d ? d(y) : y;
(0, u.useLayoutUpdateEffect)(
function () {
b(function (t) {
var e = (0, f.default)(t, 1)[0];
return [a, r.PROP, e];
});
},
[a]
);
var O = i.useRef(),
h = (0, s.default)(function (t, e) {
b(function (e) {
var o = (0, f.default)(e, 3),
n = o[0],
a = o[1],
l = o[2],
i = "function" == typeof t ? t(n) : t;
if (i === n) return e;
var s = a === r.INNER && O.current !== l ? l : n;
return [i, r.INNER, s];
}, e);
}),
C = (0, s.default)(l);
return (
(0, u.default)(
function () {
var t = (0, f.default)(g, 3),
e = t[0],
o = t[1],
n = t[2];
e !== n && o === r.INNER && (C(e, n), (O.current = n));
},
[g]
),
[w, h]
);
});
var l,
f = a(o(54306)),
i = n(o(59496)),
s = a(o(18610)),
u = n(o(38161)),
c = a(o(84012));
function p(t) {
return void 0 !== t;
}
((l = r || (r = {}))[(l.INNER = 0)] = "INNER"),
(l[(l.PROP = 1)] = "PROP");
},
},
]);
File diff suppressed because it is too large Load Diff
+227
View File
@@ -0,0 +1,227 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[7868],
{
53241: function (e, t, r) {
"use strict";
r.d(t, {
R: function () {
return u;
},
p: function () {
return s;
},
});
var n = r(72006),
i = r(4637),
c = r(16114),
o = r(59496),
a = r(4795);
r.n(a)().a;
var u = "55875f38623d4faa842ce78af0fbb631",
l = {
width: "100%",
height: "100%",
title: "",
file: "",
image: "http://cyberplayer.bcelive.com/thumbnail.jpg",
autostart: !1,
stretching: "uniform",
repeat: !1,
volume: 50,
controls: !0,
starttime: 0,
ak: u,
flv: { reconnecttime: 2 },
},
s = o.memo(
function (e) {
var t,
r,
a = (0, o.useState)(!1),
u = a[0],
s = a[1],
d = (0, o.useRef)(null),
p = (0, o.useRef)(null),
f = function () {
var t = function () {
var t;
(d.current =
null ===
(t = window.cyberplayer(
e.playerId || "playercontainer"
)) || void 0 === t
? void 0
: t.setup((0, n.Z)({}, l, e.config))),
d.current.on("error", function (e) {
var t;
console.info(e),
(null === (t = e.msg) || void 0 === t
? void 0
: t.details) !== "internalException" && s(!0);
}),
e.onload && e.onload(d.current);
};
window.cyberplayer
? t()
: window.require &&
window.require(["cyberplayer"], function (e) {
(window.cyberplayer = e), t();
});
};
(0, c.FI)(function () {
var t;
e.initSdk
? ((t = e.cyberplayerVersion),
new Promise(function (e) {
if (window.cyberplayer) {
e(!0);
return;
}
var r = document.createElement("script");
"3.5.2" === t
? (r.src =
"https://bce.bdstatic.com/jwplayer/3.5.2/cyberplayer.js")
: "4.4.2.1" === t
? (r.src =
"https://bce-cdn.bj.bcebos.com/jwplayer/4.4.2.1/cyberplayer-evs.js")
: (r.src =
"https://bce.bdstatic.com/portal-cloud-server/dep/cyberplayer_v4.3.2/cyberplayer.js"),
document.head.appendChild(r),
(r.onload = function () {
e(!0);
});
})).then(function () {
f();
})
: f();
});
var v = function (e) {
d.current.setControls(!0),
p.current && (clearTimeout(p.current), (p.current = null)),
e ||
(p.current = setTimeout(function () {
d.current.setControls(!1);
}, 1e3));
},
y = function () {
d.current &&
("playing" === d.current.getState() && v(!1),
"paused" === d.current.getState() && v(!0));
},
b = function () {
setTimeout(function () {
d.current && "paused" === d.current.getState()
? v(!0)
: v(!1);
});
};
return (0, i.jsxs)("div", {
className: "u-cyberplayer",
onMouseMove: y,
onClick: b,
children: [
(0, i.jsx)("div", { id: e.playerId || "playercontainer" }),
u &&
(null == e
? void 0
: null === (t = e.config) || void 0 === t
? void 0
: t.errorTip) &&
(0, i.jsx)("div", {
className: "error-tips",
children:
null == e
? void 0
: null === (r = e.config) || void 0 === r
? void 0
: r.errorTip,
}),
],
});
},
function (e, t) {
return JSON.stringify(e) === JSON.stringify(t);
}
);
},
8991: function (e, t, r) {
"use strict";
r.r(t),
r.d(t, {
V5G001: function () {
return a;
},
});
var n = r(4637),
i = r(53241),
c = r(28317),
o = r.n(c);
function a(e) {
var t = e.data,
r = e.type,
c = void 0 === r ? "" : r,
a = t.render;
return (0, n.jsxs)("section", {
"ui-type": c,
className: o()[c],
children: [
(0, n.jsx)("h2", { children: a.title }),
(0, n.jsxs)("div", {
className: "".concat(o().group, " v5-group-base"),
children: [
a.content &&
(0, n.jsx)("pre", {
className: o().content,
children: (0, n.jsx)("p", { children: a.content }),
}),
a.image
? (0, n.jsx)("img", { src: a.image, alt: a.title })
: a.button &&
!a.button.disabled &&
(0, n.jsx)("a", {
href: a.button.href,
"data-track-category": a.title,
"data-track-name": a.button.text,
target: "_blank",
children: (0, n.jsx)("button", {
children: a.button.text,
}),
}),
a.video &&
(0, n.jsx)("div", {
className: o()["video-container"],
children: (0, n.jsx)(i.p, {
initSdk: !0,
config: {
image: "",
file: a.video,
autostart: !1,
isLive: !1,
errorTip: "",
controls: "over",
repeat: !0,
},
}),
}),
],
}),
],
});
}
},
4795: function (e) {
e.exports = { circle: "CZ1RhmKP" };
},
28317: function (e) {
e.exports = {
V5G001: "p2z_dbqV",
group: "Zv_rDXye",
V5G002: "DTHxn_90",
V5G002_en: "FEGxG1NO",
V5G003: "N3_D0y3l",
content: "qszzYbML",
"video-container": "fhrNT75z",
};
},
},
]);
File diff suppressed because it is too large Load Diff
+170
View File
@@ -0,0 +1,170 @@
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[8734],
{
14268: function (e, t, n) {
"use strict";
n.d(t, {
u: function () {
return i;
},
});
var a = n(4637),
s = n(84875),
r = n.n(s),
c = n(10954),
l = n.n(c),
i = function (e) {
var t = e.subTitle,
n = e.title,
s = e.type;
return t
? "string" == typeof t
? (0, a.jsx)("p", {
className: r()(l().desc, l()[s]),
children: t,
})
: (t.content || (!t.link.disabled && t.link.text)) &&
(0, a.jsxs)("p", {
className: r()(l().desc, l()[s]),
children: [
t.content && (0, a.jsx)("span", { children: t.content }),
!t.link.disabled &&
t.link.text &&
(0, a.jsx)("a", {
href: t.link.href,
target: "_blank",
"data-track-category": n,
"data-track-name": "副标题",
"data-track-value": t.link.text,
children: t.link.text,
}),
],
})
: null;
};
},
94716: function (e, t, n) {
"use strict";
n.d(t, {
T: function () {
return l;
},
});
var a = n(4637),
s = n(14268),
r = n(84875),
c = n.n(r),
l = function (e) {
var t = e.wrapperClassName,
n = e.groupClassName,
r = e.groupRef,
l = e.block,
i = e.children,
u = e.subTitleType,
d = l.type,
o = l.data.render;
return (0, a.jsxs)("section", {
className: t,
"ui-type": d,
children: [
o.title && (0, a.jsx)("h2", { children: o.title }),
(0, a.jsx)(s.u, {
subTitle: o.subTitle,
title: o.title,
type: u,
}),
(0, a.jsx)("div", {
className: c()(n, "v5-group-base"),
ref: r,
children: i,
}),
],
});
};
},
58734: function (e, t, n) {
"use strict";
n.r(t),
n.d(t, {
V5G018A: function () {
return d;
},
});
var a = n(4637),
s = n(59496),
r = n(84875),
c = n.n(r),
l = n(94716),
i = n(8189),
u = n.n(i),
d = function (e) {
var t = e.type,
n = e.data,
r = e.index,
i = n.render,
d = i.title,
o = i.items,
h = n.config.counts,
p = (0, s.useState)(o.slice(0, void 0 === h ? 2 : h))[0],
m = (0, s.useState)(r % 2 == 0)[0];
return (0, a.jsx)(l.T, {
wrapperClassName: c()(
u()[t],
m ? u()["even-module"] : u()["odd-module"]
),
block: e,
children: (0, a.jsx)("ul", {
className: c()(u().list, u()["counts-".concat(p.length)]),
children: p.map(function (e) {
var t = (0, a.jsxs)(a.Fragment, {
children: [
(0, a.jsx)("h3", { children: e.title }),
(0, a.jsx)("p", { children: e.desc }),
(0, a.jsx)("div", {
className: u().bg,
style: e.image
? { backgroundImage: "url(".concat(e.image, ")") }
: null,
}),
(0, a.jsx)("div", {
className: u()["bg-hover"],
style: e.imageHover
? { backgroundImage: "url(".concat(e.imageHover, ")") }
: null,
}),
],
});
return (0,
a.jsx)("li", { className: u().card, children: e.button && !e.button.disabled ? (0, a.jsx)("a", { className: u()["card-inner"], href: e.button.href, target: "_blank", "data-track-category": d, "data-track-name": "卡片", "data-track-value": e.title, children: t }) : (0, a.jsx)("div", { className: u()["card-inner"], children: t }) }, e.title);
}),
}),
});
};
},
10954: function (e) {
e.exports = { desc: "__69GpM8Qb", white: "dUv6_pZA" };
},
8189: function (e) {
e.exports = {
center: "J2AB0kqU",
clearInput: "gKfZ9QS5",
ellipsis: "Wbqd8Q7v",
list: "MkSh8Lp7",
bg: "__6w6G3tiH",
"bg-hover": "RTMpK72z",
card: "__03M0NCut",
"card-inner": "VCz6CIoR",
V5G018AArrow: "DWEXXTIs",
"counts-2": "A_tQ1RHN",
"counts-3": "nhws3k_H",
"counts-6": "__5KeZKmfx",
"counts-9": "uTrEyR4p",
"counts-4": "__6qNhdxwH",
"counts-8": "udJxNgEl",
"counts-5": "MTIJ99Zf",
"even-module": "LDwXjZ02",
"odd-module": "OsCajqHD",
};
},
},
]);
File diff suppressed because it is too large Load Diff
+900
View File
@@ -0,0 +1,900 @@
"use strict";
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[9823],
{
8430: function (e, n, t) {
t.d(n, {
Z: function () {
return U;
},
});
var r = t(51163),
a = t(75782),
i = t(91600),
u = t(68901),
c = t(59496),
o = t(84875),
s = t.n(o),
l = t(48487),
f = t(33750),
E = [
"prefixCls",
"invalidate",
"item",
"renderItem",
"responsive",
"responsiveDisabled",
"registerSize",
"itemKey",
"className",
"style",
"children",
"display",
"order",
"component",
],
d = void 0,
v = c.forwardRef(function (e, n) {
var t,
i = e.prefixCls,
o = e.invalidate,
f = e.item,
v = e.renderItem,
N = e.responsive,
m = e.responsiveDisabled,
h = e.registerSize,
R = e.itemKey,
S = e.className,
M = e.style,
C = e.children,
_ = e.display,
p = e.order,
I = e.component,
Z = (0, u.Z)(e, E),
A = N && !_;
function T(e) {
h(R, e);
}
c.useEffect(function () {
return function () {
T(null);
};
}, []);
var U = v && f !== d ? v(f) : C;
o ||
(t = {
opacity: A ? 0 : 1,
height: A ? 0 : d,
overflowY: A ? "hidden" : d,
order: N ? p : d,
pointerEvents: A ? "none" : d,
position: A ? "absolute" : d,
});
var y = {};
A && (y["aria-hidden"] = !0);
var O = c.createElement(
void 0 === I ? "div" : I,
(0, r.Z)(
{
className: s()(!o && i, S),
style: (0, a.Z)((0, a.Z)({}, t), M),
},
y,
Z,
{ ref: n }
),
U
);
return (
N &&
(O = c.createElement(
l.default,
{
onResize: function (e) {
T(e.offsetWidth);
},
disabled: m,
},
O
)),
O
);
});
v.displayName = "Item";
var N = t(25532),
m = t(93509),
h = ["component"],
R = ["className"],
S = ["className"],
M = function (e, n) {
var t = c.useContext(p);
if (!t) {
var a = e.component,
i = (0, u.Z)(e, h);
return c.createElement(
void 0 === a ? "div" : a,
(0, r.Z)({}, i, { ref: n })
);
}
var o = t.className,
l = (0, u.Z)(t, R),
f = e.className,
E = (0, u.Z)(e, S);
return c.createElement(
p.Provider,
{ value: null },
c.createElement(v, (0, r.Z)({ ref: n, className: s()(o, f) }, l, E))
);
},
C = c.forwardRef(M);
C.displayName = "RawItem";
var _ = [
"prefixCls",
"data",
"renderItem",
"renderRawItem",
"itemKey",
"itemWidth",
"ssr",
"style",
"className",
"maxCount",
"renderRest",
"renderRawRest",
"suffix",
"component",
"itemComponent",
"onVisibleChange",
],
p = c.createContext(null),
I = "responsive",
Z = "invalidate";
function A(e) {
return "+ ".concat(e.length, " ...");
}
var T = c.forwardRef(function (e, n) {
var t,
o,
E,
d,
h,
R,
S = e.prefixCls,
M = void 0 === S ? "rc-overflow" : S,
C = e.data,
T = void 0 === C ? [] : C,
U = e.renderItem,
y = e.renderRawItem,
O = e.itemKey,
g = e.itemWidth,
P = void 0 === g ? 10 : g,
L = e.ssr,
K = e.style,
F = e.className,
b = e.maxCount,
w = e.renderRest,
H = e.renderRawRest,
W = e.suffix,
D = e.component,
k = e.itemComponent,
x = e.onVisibleChange,
G = (0, u.Z)(e, _),
V =
((o = (0, m.Z)({})),
(E = (0, i.Z)(o, 2)[1]),
(d = (0, c.useRef)([])),
(h = 0),
(R = 0),
function (e) {
var n;
return (
(h += 1),
d.current.length < h + 1 && (d.current[h] = e),
[
d.current[h],
function (e) {
(d.current[h] =
"function" == typeof e ? e(d.current[h]) : e),
N.Z.cancel(R),
(R = (0, N.Z)(function () {
E({}, !0);
}));
},
]
);
}),
z = "full" === L,
Q = V(null),
B = (0, i.Z)(Q, 2),
Y = B[0],
X = B[1],
J = Y || 0,
j = V(new Map()),
q = (0, i.Z)(j, 2),
$ = q[0],
ee = q[1],
en = V(0),
et = (0, i.Z)(en, 2),
er = et[0],
ea = et[1],
ei = V(0),
eu = (0, i.Z)(ei, 2),
ec = eu[0],
eo = eu[1],
es = V(0),
el = (0, i.Z)(es, 2),
ef = el[0],
eE = el[1],
ed = (0, c.useState)(null),
ev = (0, i.Z)(ed, 2),
eN = ev[0],
em = ev[1],
eh = (0, c.useState)(null),
eR = (0, i.Z)(eh, 2),
eS = eR[0],
eM = eR[1],
eC = c.useMemo(
function () {
return null === eS && z ? Number.MAX_SAFE_INTEGER : eS || 0;
},
[eS, Y]
),
e_ = (0, c.useState)(!1),
ep = (0, i.Z)(e_, 2),
eI = ep[0],
eZ = ep[1],
eA = "".concat(M, "-item"),
eT = Math.max(er, ec),
eU = b === I,
ey = T.length && eU,
eO = b === Z,
eg = ey || ("number" == typeof b && T.length > b),
eP = (0, c.useMemo)(
function () {
var e = T;
return (
ey
? (e =
null === Y && z
? T
: T.slice(0, Math.min(T.length, J / P)))
: "number" == typeof b && (e = T.slice(0, b)),
e
);
},
[T, P, Y, b, ey]
),
eL = (0, c.useMemo)(
function () {
return ey ? T.slice(eC + 1) : T.slice(eP.length);
},
[T, eP, ey, eC]
),
eK = (0, c.useCallback)(
function (e, n) {
var t;
return "function" == typeof O
? O(e)
: null !== (t = O && (null == e ? void 0 : e[O])) &&
void 0 !== t
? t
: n;
},
[O]
),
eF = (0, c.useCallback)(
U ||
function (e) {
return e;
},
[U]
);
function eb(e, n, t) {
(eS !== e || (void 0 !== n && n !== eN)) &&
(eM(e),
t || (eZ(e < T.length - 1), null == x || x(e)),
void 0 !== n && em(n));
}
function ew(e, n) {
ee(function (t) {
var r = new Map(t);
return null === n ? r.delete(e) : r.set(e, n), r;
});
}
function eH(e, n) {
eE(n);
}
function eW(e) {
return $.get(eK(eP[e], e));
}
(0, f.Z)(
function () {
if (J && eT && eP) {
var e = ef,
n = eP.length,
t = n - 1;
if (!n) {
eb(0, null);
return;
}
for (var r = 0; r < n; r += 1) {
var a = eW(r);
if ((z && (a = a || 0), void 0 === a)) {
eb(r - 1, void 0, !0);
break;
}
if (
((e += a),
(0 === t && e <= J) || (r === t - 1 && e + eW(t) <= J))
) {
eb(t, null);
break;
}
if (e + eT > J) {
eb(r - 1, e - a - ef + ec);
break;
}
}
W && eW(0) + ef > J && em(null);
}
},
[J, $, ec, ef, eK, eP]
);
var eD = eI && !!eL.length,
ek = {};
null !== eN && ey && (ek = { position: "absolute", left: eN, top: 0 });
var ex = {
prefixCls: eA,
responsive: ey,
component: k,
invalidate: eO,
},
eG = y
? function (e, n) {
var t = eK(e, n);
return c.createElement(
p.Provider,
{
key: t,
value: (0, a.Z)(
(0, a.Z)({}, ex),
{},
{
order: n,
item: e,
itemKey: t,
registerSize: ew,
display: n <= eC,
}
),
},
y(e, n)
);
}
: function (e, n) {
var t = eK(e, n);
return c.createElement(
v,
(0, r.Z)({}, ex, {
order: n,
key: t,
item: e,
renderItem: eF,
itemKey: t,
registerSize: ew,
display: n <= eC,
})
);
},
eV = {
order: eD ? eC : Number.MAX_SAFE_INTEGER,
className: "".concat(eA, "-rest"),
registerSize: function (e, n) {
eo(n), ea(ec);
},
display: eD,
};
if (H)
H &&
(t = c.createElement(
p.Provider,
{ value: (0, a.Z)((0, a.Z)({}, ex), eV) },
H(eL)
));
else {
var ez = w || A;
t = c.createElement(
v,
(0, r.Z)({}, ex, eV),
"function" == typeof ez ? ez(eL) : ez
);
}
var eQ = c.createElement(
void 0 === D ? "div" : D,
(0, r.Z)({ className: s()(!eO && M, F), style: K, ref: n }, G),
eP.map(eG),
eg ? t : null,
W &&
c.createElement(
v,
(0, r.Z)({}, ex, {
responsive: eU,
responsiveDisabled: !ey,
order: eC,
className: "".concat(eA, "-suffix"),
registerSize: eH,
display: !0,
style: ek,
}),
W
)
);
return (
eU &&
(eQ = c.createElement(
l.default,
{
onResize: function (e, n) {
X(n.clientWidth);
},
disabled: !ey,
},
eQ
)),
eQ
);
});
(T.displayName = "Overflow"),
(T.Item = C),
(T.RESPONSIVE = I),
(T.INVALIDATE = Z);
var U = T;
},
48487: function (e, n, t) {
t.r(n),
t.d(n, {
default: function () {
return M;
},
});
var r = t(51163),
a = t(59496),
i = t(81706);
t(11317);
var u = t(75782),
c = t(75729),
o = t(47946),
s = t(73023),
l = new Map(),
f = new s.Z(function (e) {
e.forEach(function (e) {
var n,
t = e.target;
null === (n = l.get(t)) ||
void 0 === n ||
n.forEach(function (e) {
return e(t);
});
});
}),
E = t(40936),
d = t(49962),
v = t(65782),
N = t(76614),
m = (function (e) {
(0, v.Z)(t, e);
var n = (0, N.Z)(t);
function t() {
return (0, E.Z)(this, t), n.apply(this, arguments);
}
return (
(0, d.Z)(t, [
{
key: "render",
value: function () {
return this.props.children;
},
},
]),
t
);
})(a.Component),
h = a.createContext(null);
function R(e) {
var n = e.children,
t = e.disabled,
r = a.useRef(null),
i = a.useRef(null),
s = a.useContext(h),
E = "function" == typeof n,
d = E ? n(r) : n,
v = a.useRef({
width: -1,
height: -1,
offsetWidth: -1,
offsetHeight: -1,
}),
N = !E && a.isValidElement(d) && (0, c.Yr)(d),
R = N ? d.ref : null,
S = a.useMemo(
function () {
return (0, c.sQ)(R, r);
},
[R, r]
),
M = a.useRef(e);
M.current = e;
var C = a.useCallback(function (e) {
var n = M.current,
t = n.onResize,
r = n.data,
a = e.getBoundingClientRect(),
i = a.width,
c = a.height,
o = e.offsetWidth,
l = e.offsetHeight,
f = Math.floor(i),
E = Math.floor(c);
if (
v.current.width !== f ||
v.current.height !== E ||
v.current.offsetWidth !== o ||
v.current.offsetHeight !== l
) {
var d = { width: f, height: E, offsetWidth: o, offsetHeight: l };
v.current = d;
var N = (0, u.Z)(
(0, u.Z)({}, d),
{},
{
offsetWidth: o === Math.round(i) ? i : o,
offsetHeight: l === Math.round(c) ? c : l,
}
);
null == s || s(N, e, r),
t &&
Promise.resolve().then(function () {
t(N, e);
});
}
}, []);
return (
a.useEffect(
function () {
var e,
n,
a = (0, o.Z)(r.current) || (0, o.Z)(i.current);
return (
a &&
!t &&
((e = a),
(n = C),
l.has(e) || (l.set(e, new Set()), f.observe(e)),
l.get(e).add(n)),
function () {
var e, n;
l.has(a) &&
(l.get(a).delete(C),
l.get(a).size || (f.unobserve(a), l.delete(a)));
}
);
},
[r.current, t]
),
a.createElement(m, { ref: i }, N ? a.cloneElement(d, { ref: S }) : d)
);
}
function S(e) {
var n,
t = e.children;
return ("function" == typeof t ? [t] : (0, i.Z)(t)).map(function (
n,
t
) {
var i =
(null == n ? void 0 : n.key) ||
"".concat("rc-observer-key", "-").concat(t);
return a.createElement(R, (0, r.Z)({}, e, { key: i }), n);
});
}
S.Collection = function (e) {
var n = e.children,
t = e.onBatchResize,
r = a.useRef(0),
i = a.useRef([]),
u = a.useContext(h),
c = a.useCallback(
function (e, n, a) {
r.current += 1;
var c = r.current;
i.current.push({ size: e, element: n, data: a }),
Promise.resolve().then(function () {
c === r.current &&
(null == t || t(i.current), (i.current = []));
}),
null == u || u(e, n, a);
},
[t, u]
);
return a.createElement(h.Provider, { value: c }, n);
};
var M = S;
},
61950: function (e, n) {
var t = {
MAC_ENTER: 3,
BACKSPACE: 8,
TAB: 9,
NUM_CENTER: 12,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
PAUSE: 19,
CAPS_LOCK: 20,
ESC: 27,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
PRINT_SCREEN: 44,
INSERT: 45,
DELETE: 46,
ZERO: 48,
ONE: 49,
TWO: 50,
THREE: 51,
FOUR: 52,
FIVE: 53,
SIX: 54,
SEVEN: 55,
EIGHT: 56,
NINE: 57,
QUESTION_MARK: 63,
A: 65,
B: 66,
C: 67,
D: 68,
E: 69,
F: 70,
G: 71,
H: 72,
I: 73,
J: 74,
K: 75,
L: 76,
M: 77,
N: 78,
O: 79,
P: 80,
Q: 81,
R: 82,
S: 83,
T: 84,
U: 85,
V: 86,
W: 87,
X: 88,
Y: 89,
Z: 90,
META: 91,
WIN_KEY_RIGHT: 92,
CONTEXT_MENU: 93,
NUM_ZERO: 96,
NUM_ONE: 97,
NUM_TWO: 98,
NUM_THREE: 99,
NUM_FOUR: 100,
NUM_FIVE: 101,
NUM_SIX: 102,
NUM_SEVEN: 103,
NUM_EIGHT: 104,
NUM_NINE: 105,
NUM_MULTIPLY: 106,
NUM_PLUS: 107,
NUM_MINUS: 109,
NUM_PERIOD: 110,
NUM_DIVISION: 111,
F1: 112,
F2: 113,
F3: 114,
F4: 115,
F5: 116,
F6: 117,
F7: 118,
F8: 119,
F9: 120,
F10: 121,
F11: 122,
F12: 123,
NUMLOCK: 144,
SEMICOLON: 186,
DASH: 189,
EQUALS: 187,
COMMA: 188,
PERIOD: 190,
SLASH: 191,
APOSTROPHE: 192,
SINGLE_QUOTE: 222,
OPEN_SQUARE_BRACKET: 219,
BACKSLASH: 220,
CLOSE_SQUARE_BRACKET: 221,
WIN_KEY: 224,
MAC_FF_META: 224,
WIN_IME: 229,
isTextModifyingKeyEvent: function (e) {
var n = e.keyCode;
if (
(e.altKey && !e.ctrlKey) ||
e.metaKey ||
(n >= t.F1 && n <= t.F12)
)
return !1;
switch (n) {
case t.ALT:
case t.CAPS_LOCK:
case t.CONTEXT_MENU:
case t.CTRL:
case t.DOWN:
case t.END:
case t.ESC:
case t.HOME:
case t.INSERT:
case t.LEFT:
case t.MAC_FF_META:
case t.META:
case t.NUMLOCK:
case t.NUM_CENTER:
case t.PAGE_DOWN:
case t.PAGE_UP:
case t.PAUSE:
case t.PRINT_SCREEN:
case t.RIGHT:
case t.SHIFT:
case t.UP:
case t.WIN_KEY:
case t.WIN_KEY_RIGHT:
return !1;
default:
return !0;
}
},
isCharacterKey: function (e) {
if (
(e >= t.ZERO && e <= t.NINE) ||
(e >= t.NUM_ZERO && e <= t.NUM_MULTIPLY) ||
(e >= t.A && e <= t.Z) ||
(-1 !== window.navigator.userAgent.indexOf("WebKit") && 0 === e)
)
return !0;
switch (e) {
case t.SPACE:
case t.QUESTION_MARK:
case t.NUM_PLUS:
case t.NUM_MINUS:
case t.NUM_PERIOD:
case t.NUM_DIVISION:
case t.SEMICOLON:
case t.DASH:
case t.EQUALS:
case t.COMMA:
case t.PERIOD:
case t.SLASH:
case t.APOSTROPHE:
case t.SINGLE_QUOTE:
case t.OPEN_SQUARE_BRACKET:
case t.BACKSLASH:
case t.CLOSE_SQUARE_BRACKET:
return !0;
default:
return !1;
}
},
};
n.Z = t;
},
64333: function (e, n, t) {
t.d(n, {
Z: function () {
return a;
},
});
var r = t(59496);
function a(e) {
var n = r.useRef();
return (
(n.current = e),
r.useCallback(function () {
for (var e, t = arguments.length, r = Array(t), a = 0; a < t; a++)
r[a] = arguments[a];
return null === (e = n.current) || void 0 === e
? void 0
: e.call.apply(e, [n].concat(r));
}, [])
);
}
},
82172: function (e, n, t) {
t.d(n, {
Z: function () {
return o;
},
});
var r = t(91600),
a = t(64333),
i = t(33750),
u = t(93509);
function c(e) {
return void 0 !== e;
}
function o(e, n) {
var t = n || {},
o = t.defaultValue,
s = t.value,
l = t.onChange,
f = t.postState,
E = (0, u.Z)(function () {
return c(s)
? s
: c(o)
? "function" == typeof o
? o()
: o
: "function" == typeof e
? e()
: e;
}),
d = (0, r.Z)(E, 2),
v = d[0],
N = d[1],
m = void 0 !== s ? s : v,
h = f ? f(m) : m,
R = (0, a.Z)(l),
S = (0, u.Z)([m]),
M = (0, r.Z)(S, 2),
C = M[0],
_ = M[1];
(0, i.o)(
function () {
var e = C[0];
v !== e && R(v, e);
},
[C]
),
(0, i.o)(
function () {
c(s) || N(s);
},
[s]
);
var p = (0, a.Z)(function (e, n) {
N(e, n), _([m], n);
});
return [h, p];
}
},
87296: function (e, n, t) {
t.d(n, {
Z: function () {
return a;
},
});
var r = t(75782);
function a(e, n) {
var t = (0, r.Z)({}, e);
return (
Array.isArray(n) &&
n.forEach(function (e) {
delete t[e];
}),
t
);
}
},
},
]);
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+36
View File
@@ -0,0 +1,36 @@
self.__SSG_MANIFEST = new Set([
"\u002F",
"\u002Fai_free",
"\u002Fai_free_m",
"\u002Fcampaign\u002Fsearchall",
"\u002Fcloudai",
"\u002Fcloudlive\u002F[liveId]",
"\u002Fdoc\u002F[path]",
"\u002Fdoc\u002F[path]\u002F[type]",
"\u002Fhandbook\u002Fproduct",
"\u002Fhandbook\u002Fproduct_m",
"\u002Fhandbook\u002Fwhitebook",
"\u002Fhandbook\u002Fwhitebook_m",
"\u002Findex_m",
"\u002Fpartner\u002Fexam\u002Fapply",
"\u002Fpartner\u002Fexam\u002Fapply_m",
"\u002Fpartner\u002Fstudy\u002Fcenter",
"\u002Fpartner\u002Ftraining-camp\u002F[id]",
"\u002Fpractice\u002Fdetail\u002F[id]",
"\u002Fprice\u002Fcalculator",
"\u002Fproduct-price\u002F[type]",
"\u002Fproduct\u002F[type]",
"\u002Fproducts\u002Fall_m",
"\u002Fproducts\u002Findex",
"\u002Fpurchase\u002Fbcc\u002Forder_m",
"\u002Frank\u002F[type]",
"\u002Fsolution\u002Findex",
"\u002Fsummit\u002F[path]",
"\u002Fsurvey-test",
"\u002Fsurvey\u002F[type]\u002F[path]",
"\u002FvdbActivity",
"\u002FvdbActivity_m",
"\u002Fwenxin",
"\u002Fwenxin_m",
]);
self.__SSG_MANIFEST_CB && self.__SSG_MANIFEST_CB();
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff