Files
baiducom/waf/static/js/8734.e07ee59138d71ea2.js
2024-09-24 17:45:24 +08:00

171 lines
5.2 KiB
JavaScript

(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",
};
},
},
]);