Files
damai-wx/pages/search/index.js
MagicalKudzu f67fb8b6b3 更新
2025-12-17 14:19:22 +08:00

3513 lines
144 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

require("../../@babel/runtime/helpers/Objectvalues"), require("../../@babel/runtime/helpers/Arrayincludes");
var e = require("../../@babel/runtime/helpers/slicedToArray"),
n = require("../../@babel/runtime/helpers/createForOfIteratorHelper");
(wx.webpackJsonp = wx.webpackJsonp || []).push([
[3053], {
1397: function (t, a, i) {
var l = i(4160),
r = i(4107),
o = i(5652),
c = i(2555),
s = i(4576),
d = i(3526),
u = i(9371),
m = "SEARCH_USER_SEARCH_HISTORYWORDS",
v = "search",
p = function (e) {
return e.ALL = "ALL", e.PERFORM = "PERFORM", e.ARTIST = "ARTIST", e.BRAND = "BRAND", e.TRAVEL = "TRAVEL", e.BANNER = "BANNER", e
}({}),
h = function (e) {
return e.SCROLL = "SCROLL", e.INPUT = "INPUT", e.USE_HISTORY = "USE_HISTORY", e.TAB_CHANGE = "TAB_CHANGE", e.CONFIRM_SEARCH = "CONFIRM_SEARCH", e
}({}),
y = (0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)({}, p.ALL, "searchHome"), p.PERFORM, "searchPerformance"), p.ARTIST, "searchArtist"), p.BRAND, "searchBrandIP"), p.TRAVEL, "searchScenicSpot"),
f = (0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)({}, p.ALL, "结果"), p.PERFORM, "演出"), p.ARTIST, "艺人"), p.BRAND, "厂牌"), p.TRAVEL, "景点"),
A = [{
title: "全部",
index: p.ALL
}, {
title: "演出",
index: p.PERFORM
}, {
title: "艺人",
index: p.ARTIST
}, {
title: "厂牌",
index: p.BRAND
}, {
title: "景点",
index: p.TRAVEL
}],
N = (0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)({}, p.PERFORM, 7594), p.ARTIST, 7593), p.BRAND, 7592), p.TRAVEL, 7881), p.BANNER, 7896), "NEW_BRAND", 7954), "NEAR_SPOT", 7968),
g = 7592,
b = 7630,
x = 7979,
_ = function (e) {
return e["厂牌号"] = "https://img.alicdn.com/imgextra/i1/O1CN01t4sjLC1wpYc5NUwSd_!!6000000006357-2-tps-87-36.png", e["音乐节"] = "https://img.alicdn.com/imgextra/i1/O1CN0136mYi51eOO29dI1gQ_!!6000000003861-2-tps-89-35.png", e["休闲"] = "https://img.alicdn.com/imgextra/i3/O1CN01cudtFH1FQLKZQ7l51_!!6000000000481-2-tps-72-36.png", e["活动"] = "https://img.alicdn.com/imgextra/i2/O1CN0189v1iQ1KO7UA0qynS_!!6000000001153-2-tps-72-36.png", e["展览"] = "https://img.alicdn.com/imgextra/i2/O1CN01NQDc5S1YPrcHradYX_!!6000000003052-2-tps-72-36.png", e["体育"] = "https://img.alicdn.com/imgextra/i1/O1CN01wPvgTF1qtmZaw5d54_!!6000000005554-2-tps-72-36.png", e["音乐"] = "https://img.alicdn.com/imgextra/i1/O1CN01G5J0CK1b2ucHI6ryY_!!6000000003408-2-tps-72-36.png", e["剧场"] = "https://img.alicdn.com/imgextra/i1/O1CN01qmm02P1qzHKCd4TpD_!!6000000005566-2-tps-72-36.png", e
}({}),
T = "4",
w = function (e) {
return e.UNANNOUNCED = "0", e.ANNOUNCED_UNSURE_CITY = "1", e.ANNOUNCED_PART_CITY = "2", e.ONLINE = "3", e
}({}),
C = function (e) {
return e.DISCOUNT_ITEM = "1", e.CONCERTS_ITEM = "2", e.OTHERS_ITEM = "3", e
}({}),
k = function (e) {
return e[e.NUll_ITEM = -99] = "NUll_ITEM", e[e.NEW_ITEM = 1] = "NEW_ITEM", e[e.HOT_ITEM = 2] = "HOT_ITEM", e[e.BOOM_ITEM = 3] = "BOOM_ITEM", e
}({}),
E = "1",
S = "2",
j = i(4269),
R = i(4752),
I = i(7852),
L = i(2573),
O = i.n(L),
D = i(758),
M = function (e) {
return R.Ay.sendGoldLog("EXP", "/yanchu.search.searchhistory_exp", (0, r.A)({
spmC: "searchhistory",
spmD: "ditem_".concat(null == e ? void 0 : e.index)
}, e))
},
P = function (e) {
return R.Ay.sendGoldLog("CLK", "/yanchu.search.searchhistory_clk", (0, r.A)({
spmC: "searchhistory",
spmD: "ditem_".concat(null == e ? void 0 : e.index)
}, e))
},
B = function (e) {
return R.Ay.sendGoldLog("CLK", "/yanchu.search.bonus_clk", (0, r.A)({
spmC: "bonus",
spmD: "denter"
}, e))
},
F = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.artist_dotherwishcity.clk", (0, r.A)({
spmC: "artist",
spmD: "otherwishcity"
}, e))
},
U = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.artist_dotherwishcity.exp", (0, r.A)({
spmC: "artist",
spmD: "otherwishcity"
}, e))
},
H = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.search_otherwishcity.clk", (0, r.A)({
spmC: "brand",
spmD: "otherwishcity"
}, e))
},
W = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.search_otherwishcity.exp", (0, r.A)({
spmC: "brand",
spmD: "otherwishcity"
}, e))
},
G = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.artist_druletips.clk", (0, r.A)({
spmC: "artist",
spmD: "ruletips"
}, e))
},
V = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.artist_druletips.exp", (0, r.A)({
spmC: "artist",
spmD: "ruletips"
}, e))
},
z = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.artist_dwishcity.clk", (0, r.A)({
spmC: "artist",
spmD: "wishcity_".concat(null == e ? void 0 : e.index)
}, e))
},
Y = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.artist_dwishcity.exp", (0, r.A)({
spmC: "artist",
spmD: "wishcity_".concat(null == e ? void 0 : e.index)
}, e))
},
X = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.search_wishcity.clk", (0, r.A)({
spmC: "brand",
spmD: "wishcity_".concat(null == e ? void 0 : e.index)
}, e))
},
K = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.search_wishcity.exp", (0, r.A)({
spmC: "brand",
spmD: "wishcity_".concat(null == e ? void 0 : e.index)
}, e))
},
J = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("EXP", "/yanchu.brandbanner_item.exp", (0, r.A)({
spmC: "brandbanner",
spmD: "item_".concat(null == e ? void 0 : e.index)
}, e))
},
q = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return R.Ay.sendGoldLog("CLK", "/yanchu.brandbanner_item.clk", (0, r.A)({
spmC: "brandbanner",
spmD: "item_".concat(null == e ? void 0 : e.index)
}, e))
},
Z = function (e) {
return e.PLACE_HOLDER = "0", e.SUGGEST = "1", e.TEXT = "2", e.HISTORY = "3", e.COUNTRY_HOT_WORD = "4", e.LOCAL_HOT_WORD = "5", e.BRING_IN_WORD = "6", e
}({}),
Q = function () {
var e = (0, c.A)((0, o.A)().m((function e(n) {
var t, a, i, l, r, c, s, d;
return (0, o.A)().w((function (e) {
for (;;) switch (e.n) {
case 0:
return e.n = 1, (0, I.KM)();
case 1:
if (d = e.v) {
e.n = 2;
break
}
d = {};
case 2:
t = d.name, i = (a = n || {}).keyword, l = a.type_v2, r = a.card_res_cnt, c = a.item_index, s = a.tab_type, ee({
spmc: "search",
spmd: "item",
clickEventName: "/yanchu.search_item.clk",
args: {
keyword: i,
type_v2: l,
city: t,
card_res_cnt: r,
item_index: c,
tab_type: s
}
});
case 3:
return e.a(2)
}
}), e)
})));
return function (n) {
return e.apply(this, arguments)
}
}(),
$ = function (e) {
var n = e.spmc,
t = e.spmd,
a = e.args,
i = e.exposeEventName,
l = e.itemId;
i && R.Ay.sendGoldLog("EXP", i, (0, r.A)({
spmC: n,
spmD: t,
item_id: l
}, a))
},
ee = function (e) {
var n = e.spmc,
t = e.spmd,
a = e.args,
i = e.clickEventName,
l = e.itemId;
i && R.Ay.sendGoldLog("CLK", i, (0, r.A)({
spmC: n,
spmD: t,
item_id: l
}, a))
},
ne = i(6070),
te = function (e) {
var n = e.isClearable,
t = void 0 === n || n,
a = e.title,
i = void 0 === a ? "" : a,
l = e.keywords,
r = void 0 === l ? [] : l,
o = e.onTapClearBtn,
c = void 0 === o ? function () {} : o,
s = e.onTapKeyword,
d = void 0 === s ? function () {} : s;
return (0, D.useEffect)((function () {
null == r || r.forEach((function (e, n) {
M({
keyword: e.word,
index: n
})
}))
}), [r]), r && 0 !== r.length ? (0, ne.jsxs)(j.Ss, {
className: "keyword",
children: [(0, ne.jsxs)(j.Ss, {
className: "keyword__header",
children: [(0, ne.jsx)(j.Ss, {
className: "keyword__header__title",
children: i
}), t ? (0, ne.jsx)(j.Ss, {
className: "keyword__header__clear-btn",
onClick: c,
children: (0, ne.jsx)(j.Ss, {
className: "iconfont icon-delete"
})
}) : null]
}), (0, ne.jsx)(j.Ss, {
className: "keyword__body",
children: r.map((function (e, n) {
return (0, ne.jsx)(j.Ss, {
className: "keyword__body__item",
onClick: function () {
P({
keyword: e.word,
index: n
}), d(e.word)
},
children: e.word
}, n)
}))
})]
}) : null
},
ae = i(4911),
ie = i(7805),
le = i(2945),
re = i(334),
oe = function (e) {
var n = e.className,
t = e.data,
a = void 0 === t ? {} : t,
i = e.cityCode,
l = e.cityName,
o = decodeURIComponent(decodeURIComponent(l)),
c = a.searchRankingList,
s = void 0 === c ? [] : c,
u = a.localSearchRankingList,
m = void 0 === u ? [] : u,
v = s.filter((function (e) {
return !(null == e || !e.keyword)
})),
p = m.slice(0, 10).filter((function (e) {
return !(null == e || !e.keyword)
})),
h = 0 !== i && p.length >= 8,
y = p.map((function (e) {
return "log-local-word-".concat(e.id)
}));
(0, le.ry)(y, (function (e, n, t) {
var a, i = (null == t || null === (a = t.dataset) || void 0 === a ? void 0 : a.alog) || {};
! function (e) {
R.Ay.sendGoldLog("EXP", "/yanchu.localhotsearch.dhotword_exp", (0, r.A)({
spmC: "localhotsearch",
spmD: "hotword_".concat(null == e ? void 0 : e.index)
}, e))
}((0, r.A)({
index: e,
city: o
}, i))
}), [m], {
useDom: !0
}), (0, D.useEffect)((function () {
null == v || v.forEach((function (e, n) {
! function (e) {
R.Ay.sendGoldLog("EXP", "/yanchu.search.hotword_exp", (0, r.A)({
spmC: "hotword",
spmD: "ditem_".concat(null == e ? void 0 : e.index)
}, e))
}({
keyword: e.keyword,
index: n
})
}))
}), [s]);
var f = function (e, n) {
Q({
keyword: e.keyword,
type_v2: Z.COUNTRY_HOT_WORD,
item_index: n
}),
function (e) {
R.Ay.sendGoldLog("CLK", "/yanchu.search.hotword_clk", (0, r.A)({
spmC: "hotword",
spmD: "ditem_".concat(null == e ? void 0 : e.index)
}, e))
}({
keyword: e.keyword,
index: n
}), ae.A.navTo(e.url, {
spm: "".concat(ie.c, ".search.countryhotsearch.hotword_").concat(n)
})
},
A = function (e, n) {
Q({
keyword: e.keyword,
type_v2: Z.LOCAL_HOT_WORD,
item_index: n
}),
function (e) {
R.Ay.sendGoldLog("CLK", "/yanchu.localhotsearch.dhotword_clk", (0, r.A)({
spmC: "localhotsearch",
spmD: "hotword_".concat(null == e ? void 0 : e.index)
}, e))
}({
city: o,
keyword: e.keyword,
index: n
}), e.type === E ? ae.A.navTo("/subPackages/detail/item?id=".concat(e.id), {
spm: "".concat(ie.c, ".search.localhotsearch.hotword_").concat(n)
}) : e.type === S && ae.A.navTo("".concat(re.A.h5_shows_url, "scenery.html"), {
id: e.id
})
};
return v.length || p.length ? (0, ne.jsxs)("div", {
className: (0, d.A)("hot-search", n),
children: [!!v.length && (0, ne.jsxs)("div", {
className: (0, d.A)("hot-wrapper", "hot-country", {
"only-one": !h
}),
children: [(0, ne.jsx)("div", {
className: "title-bar",
children: (0, ne.jsx)(j._V, {
className: "title-image",
mode: "heightFix",
src: "https://gw.alicdn.com/imgextra/i4/O1CN01gvWFX31hRXfkHaJtX_!!6000000004274-2-tps-240-45.png"
})
}), (0, ne.jsx)("div", {
className: "hot-content",
children: v.map((function (e, n) {
return (0, ne.jsxs)("div", {
className: (0, d.A)("word"),
onClick: function () {
return f(e, n)
},
children: [(0, ne.jsx)("div", {
className: "num",
children: n + 1
}), (0, ne.jsx)("div", {
className: "item-name",
children: e.keyword
}), e.tagType === k.NEW_ITEM && (0, ne.jsx)("div", {
className: "item-tag tag-blue",
children: "新"
}), e.tagType === k.HOT_ITEM && (0, ne.jsx)("div", {
className: "item-tag tag-red",
children: "热"
}), e.tagType === k.BOOM_ITEM && (0, ne.jsx)("div", {
className: "item-tag tag-purple",
children: "爆"
})]
}, n)
}))
})]
}), h && (0, ne.jsxs)("div", {
className: (0, d.A)("hot-wrapper hot-local", {
"only-one": !v.length
}),
children: [(0, ne.jsxs)("div", {
className: "title-bar",
children: [(0, ne.jsx)(j._V, {
className: "title-image",
mode: "heightFix",
src: "https://gw.alicdn.com/imgextra/i1/O1CN01NDGLGk2ALhetnOrWb_!!6000000008187-2-tps-227-44.png"
}), (0, ne.jsx)("span", {
className: "city-dot",
children: "·"
}), (0, ne.jsx)("span", {
className: "city-name",
children: o
})]
}), (0, ne.jsx)("div", {
className: "hot-content",
children: p.map((function (e, n) {
return (0, ne.jsxs)("div", {
"data-alog": {
keyword: e.keyword
},
className: (0, d.A)("word", y[n]),
onClick: function () {
return A(e, n)
},
children: [(0, ne.jsx)("div", {
className: "num",
children: n + 1
}), (0, ne.jsx)("div", {
className: "item-name",
children: e.keyword
}), e.type === C.DISCOUNT_ITEM && (null == e ? void 0 : e.tag) && (0, ne.jsx)("div", {
className: "item-tag tag-red",
children: e.tag
}), "2" === e.type && (0, ne.jsx)("div", {
className: "item-tag tag-green",
children: "景点"
})]
}, e.id)
}))
})]
})]
}) : null
},
ce = i(9933),
se = i(7654),
de = i(2614),
ue = i(7266),
me = i(3266),
ve = (0, me.A)('<path d="M48 10c2.2 0 4 1.8 4 4v30h30c2.2 0 4 1.8 4 4s-1.8 4-4 4H52v30c0 2.2-1.8 4-4 4s-4-1.8-4-4V52H14c-2.2 0-4-1.8-4-4s1.8-4 4-4h30V14c0-2.2 1.8-4 4-4z"/>', "AddLargeIcon"),
pe = function (e) {
var n = e.data,
t = e.className,
a = e.onClick,
i = e.index,
l = e.type;
return (0, ne.jsxs)(j.Ss, {
onClick: function () {
ee({
clickEventName: "/yanchu.project_dtour_city.clk",
spmc: "project",
spmd: "tour_city_".concat(i),
itemId: null == n ? void 0 : n.itemId,
args: {
tab_type: y[l]
}
}), a(n, null == n ? void 0 : n.itemId)
},
className: (0, d.A)("city-card", "touring-city-log-".concat(i), t, (null == n ? void 0 : n.highlight) + "" == "true" ? "" : "city-card-offline"),
children: [(0, ne.jsx)("div", {
className: "city-card-title",
children: (null == n ? void 0 : n.city) || (0, ne.jsx)(ne.Fragment, {
children: " "
})
}), (0, ne.jsx)("div", {
className: "city-card-date",
children: (null == n ? void 0 : n.showTime) || (0, ne.jsx)(ne.Fragment, {
children: " "
})
}), (0, ne.jsx)("div", {
className: (0, d.A)("city-card-status", {
"city-offline": n.highlight + "" != "true"
}),
children: (null == n ? void 0 : n.itemSaleStatusDesc) || (0, ne.jsx)(ne.Fragment, {
children: " "
})
})]
})
},
he = i(7427),
ye = function (e) {
var n = e.content,
t = e.onClick,
a = e.className;
return (0, ne.jsxs)(j.Ss, {
className: "get-more",
children: [(0, ne.jsx)(j.Ss, {
className: "show-divider"
}), (0, ne.jsxs)(j.Ss, {
onClick: function () {
null == t || t()
},
className: (0, d.A)("get-more-content", a),
children: [n, (0, ne.jsx)(he.A, {
style: {
color: "#666"
}
})]
})]
})
},
fe = i(1942),
Ae = function (e) {
var n, t = e.data;
return (0, ne.jsxs)(j.Ss, {
className: "touring-artist-header",
children: [(0, ne.jsx)(fe.A, {
lazy: !0,
className: "artist-poster-img",
src: (0, ce.zp)({
url: null == t ? void 0 : t.verticalPic,
width: 300,
ignorePng: !1
}),
placeholder: (0, ne.jsx)("div", {
className: "image-placeholder"
})
}), (0, ne.jsxs)("div", {
className: "artist-show-content",
children: [(0, ne.jsx)("div", {
className: "artist-show-title",
children: null != t && null !== (n = t.highlightWordColumn) && void 0 !== n && n.includes("tourName") ? function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
if (!n || 0 === n.length) return e;
var t = new RegExp(n.map((function (e) {
return "(".concat(e, ")")
})).join("|"), "i"),
a = e.split(t);
return a.map((function (e, t) {
return -1 === n.indexOf(e) ? e : (0, ne.jsx)("i", {
style: {
color: "#ff2869",
fontStyle: "normal"
},
children: e
}, "".concat(e, "-").concat(t))
}))
}(null == t ? void 0 : t.tourName, null == t ? void 0 : t.highlightWord) : null == t ? void 0 : t.tourName
}), (0, ne.jsx)("div", {
className: "artist-show-desc",
children: null == t ? void 0 : t.tourDesc
})]
})]
})
},
Ne = i(9521),
ge = i(3438),
be = function (e) {
var n = e.data,
t = e.serverTime,
a = (0, D.useRef)(!1);
return (0, ne.jsxs)(j.Ss, {
className: "touring-countdown ".concat(t >= (null == n ? void 0 : n.upTime) || a.current ? "countdown-hide" : ""),
children: [(0, ne.jsxs)("div", {
className: "touring-countdown-desc",
children: [(0, ne.jsx)(Ne.A, {
style: {
fontSize: "12px",
color: "#ff2869",
verticalAlign: "middle",
marginTop: "-3px"
}
}), " ".concat(null == n ? void 0 : n.onSaleTime)]
}), (0, ne.jsx)(ge.A, {
serverTimestamp: t || Date.now(),
endTimestamp: null == n ? void 0 : n.upTime,
renderContent: function (e) {
var n = e.total,
t = e.days,
i = e.hoursWithDays,
l = e.minutes,
r = e.seconds;
return a.current = !(n > 0), (0, ne.jsxs)("div", {
className: "countdown-list",
children: [(0, ne.jsx)("div", {
className: "countdown-time",
children: t
}), (0, ne.jsx)("div", {
className: "countdown-unit",
children: "天"
}), (0, ne.jsx)("div", {
className: "countdown-time",
children: i
}), (0, ne.jsx)("div", {
className: "countdown-unit",
children: ":"
}), (0, ne.jsx)("div", {
className: "countdown-time",
children: l
}), (0, ne.jsx)("div", {
className: "countdown-unit",
children: ":"
}), (0, ne.jsx)("div", {
className: "countdown-time",
children: r
})]
})
}
})]
})
},
xe = i(7422),
_e = function (e) {
var n, t, a, i, l = e.className,
o = e.data,
c = e.setActiveIndex,
s = e.type,
d = e.onClick,
u = e.serverTime,
m = null == o || null === (n = o.tourCityVOList) || void 0 === n ? void 0 : n.length,
h = null == o || null === (t = o.action) || void 0 === t || null === (t = t.item) || void 0 === t ? void 0 : t.trackInfo,
f = "1" === o.tourType,
A = null != o && o.artistIpId && null != o && o.artistId && "3" === (null == o ? void 0 : o.status) || ["1", "2"].includes(null == o ? void 0 : o.ipStatus) ? 1 : 0;
(0, le.Ay)("more-touring-city-log", (function () {
$({
exposeEventName: "/yanchu.project_dtour_city_more.exp",
spmc: "project",
spmd: "tour_city_more",
args: {
tab_type: y[s]
}
})
})), (0, le.Ay)("touring-log", (function () {
$((0, r.A)((0, r.A)({}, h), {}, {
exposeEventName: "/yanchu.project_dtour_top_item.exp",
spmc: "project",
args: (0, r.A)((0, r.A)({}, (null == h ? void 0 : h.args) || {}), {}, {
tab_type: y[s]
})
}))
})), (0, le.Ay)("add-times-card", (function () {
! function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
R.Ay.sendGoldLog("EXP", "/yanchu.project_dtour_askforcity.exp", (0, r.A)({
spmC: "project",
spmD: "tour_askforcity"
}, e))
}({
tab_type: y[s]
})
})), (0, le.ry)(null == o || null === (a = o.tourCityVOList) || void 0 === a ? void 0 : a.map((function (e, n) {
return "touring-city-log-".concat(n)
})), (function (e) {
var n, t = ((null == o || null === (n = o.tourCityVOList) || void 0 === n ? void 0 : n[e]) || {}).itemId;
$({
exposeEventName: "/yanchu.project_dtour_city.exp",
spmc: "project",
spmd: "tour_city_".concat(e),
args: {
itemId: t,
tab_type: y[s]
}
})
}), [o]);
return (0, ne.jsxs)(j.Ss, {
className: "touring ".concat(l, " touring-log"),
children: [!f && (0, ne.jsx)(de.A, {
type: "touring",
data: (0, ue.G)(o),
onClick: function () {
ee((0, r.A)((0, r.A)({}, h), {}, {
clickEventName: "/yanchu.project_dtour_top_item.clk",
spmc: "project",
args: (0, r.A)((0, r.A)({}, (null == h ? void 0 : h.args) || {}), {}, {
tab_type: y[s]
})
})), d(o, null == o ? void 0 : o.id)
}
}), f && (0, ne.jsx)(Ae, {
data: o
}), (null == o ? void 0 : o.snapUpInfo) && (0, ne.jsx)(be, {
data: null == o ? void 0 : o.snapUpInfo,
serverTime: u
}), (0, ne.jsxs)(j.Ss, {
className: "touring-city-list",
children: [null == o || null === (i = o.tourCityVOList) || void 0 === i ? void 0 : i.map((function (e, n) {
return s !== p.ALL || s === p.ALL && n < 6 ? (0, ne.jsx)(pe, {
onClick: d,
data: e,
index: n,
className: "touring-city-item",
type: s
}, n) : null
})), !!A && (s === p.ALL && m < 6 || s !== p.ALL) && (0, ne.jsxs)("div", {
className: "touring-city-item add-times-card",
onClick: function () {
if (!["1", "2"].includes(null == o ? void 0 : o.ipStatus) || null != o && o.ipid) {
! function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
R.Ay.sendGoldLog("CLK", "/yanchu.project_dtour_askforcity.clk", (0, r.A)({
spmC: "project",
spmD: "tour_askforcity"
}, e))
}({
tab_type: y[s]
});
var e = ["1", "2"].includes(null == o ? void 0 : o.ipStatus) ? "".concat(re.A.h5_shows_url, "dramas.html?ipId=").concat(null == o ? void 0 : o.ipid, "&tourDialog=1") : "https://m.damai.cn/shows/artist.html?artistId=".concat(null == o ? void 0 : o.artistId, "&show_city_layer=true");
ae.A.navTo(e, {
spm: "".concat(xe.A.spmA, ".").concat(v, ".project.tour_askforcity")
})
}
},
children: [(0, ne.jsx)(ve, {
className: "add-icon",
color: "primary"
}), (0, ne.jsx)("div", {
className: "label-text",
children: "求加场"
})]
})]
}), m + A > 6 && s === p.ALL && (0, ne.jsx)(ye, {
className: "more-touring-city-log",
onClick: function () {
ee({
clickEventName: "/yanchu.project_dtour_city_more.clk",
spmc: "project",
spmd: "tour_city_more",
args: {
tab_type: y[s]
}
}), c(null == p ? void 0 : p.PERFORM)
},
content: "查看全部".concat(m, "个巡演")
})]
})
},
Te = function (e) {
var n, t, a, i = e.list,
l = void 0 === i ? [] : i,
o = e.onClick,
c = e.className,
s = e.type,
u = e.setActiveIndex,
m = e.showGetMore,
v = void 0 === m || m,
h = e.handleDmShowCardClick,
f = e.serverTime,
A = e.performData,
N = e.curSearchTypeRef,
g = (null == A || null === (n = A.action) || void 0 === n || null === (n = n.item) || void 0 === n ? void 0 : n.trackInfo) || {},
b = (null === (t = l[0]) || void 0 === t || null === (t = t.data.tourCityVOList) || void 0 === t ? void 0 : t.length) > 0;
return (0, le.Ay)("more-show-list-log", (function () {
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.project_dmore.exp"
}, g), {}, {
spmc: "project",
spmd: "more",
args: (0, r.A)((0, r.A)({}, (null == g ? void 0 : g.args) || {}), {}, {
tab_type: y[s]
})
}))
})), (0, le.ry)(null == l ? void 0 : l.map((function (e, n) {
return "show-card-log-".concat(n)
})), (function (e) {
var n, t = (null == l || null === (n = l[e]) || void 0 === n || null === (n = n.data) || void 0 === n || null === (n = n.action) || void 0 === n ? void 0 : n.item) || {};
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.project_ditem.exp"
}, t), {}, {
spmc: "project",
spmd: "".concat(null == t ? void 0 : t.spmd).concat(e),
args: (0, r.A)((0, r.A)({}, (null == t ? void 0 : t.args) || {}), {}, {
type_v2: N.current,
tab_type: y[s]
})
}))
}), [l]), 0 === (null == l ? void 0 : l.length) ? null : (0, ne.jsxs)(j.Ss, {
onClick: function () {
null == o || o()
},
className: (0, d.A)("show-list", c),
children: [b && (0, ne.jsx)(_e, {
type: s,
onClick: function (e, n) {
h(e, n)
},
className: "show-card-touring",
setActiveIndex: u,
data: null === (a = l[0]) || void 0 === a ? void 0 : a.data,
serverTime: f
}), (0, ne.jsxs)(j.Ss, {
className: "show-card-list",
children: [null == l ? void 0 : l.map((function (e, n) {
var t, a, i = null == e ? void 0 : e.data;
return 0 === n && b ? null : (0, ne.jsxs)(j.Ss, {
className: "show-card-container",
children: [(0, ne.jsx)(de.A, {
className: "show-card show-card-log-".concat(n),
onClick: function () {
var e, t = ((null == i || null === (e = i.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo,
a = void 0 === t ? {} : t;
ee((0, r.A)((0, r.A)({
clickEventName: "/yanchu.project_ditem.clk"
}, a), {}, {
spmc: "project",
spmd: "".concat(a.spmd).concat(n),
args: (0, r.A)((0, r.A)({}, a.args || {}), {}, {
type_v2: N.current,
tab_type: y[s]
})
})), h(i, null == i ? void 0 : i.id)
},
data: (0, ue.G)(i)
}), (null == e || null === (t = e.data) || void 0 === t ? void 0 : t.snapUpInfo) && (0, ne.jsx)(be, {
data: null == e || null === (a = e.data) || void 0 === a ? void 0 : a.snapUpInfo,
serverTime: f
}), n + 1 !== (null == l ? void 0 : l.length) && (0, ne.jsx)(j.Ss, {
className: "show-divider"
})]
}, "".concat(i.id, "-").concat(n))
})), v && (0, ne.jsx)(ye, {
className: "more-show-list-log",
onClick: function () {
ee((0, r.A)((0, r.A)({}, g), {}, {
spmc: "project",
spmd: "more",
clickEventName: "/yanchu.project_dmore.clk",
args: (0, r.A)((0, r.A)({}, (null == g ? void 0 : g.args) || {}), {}, {
tab_type: y[s]
})
})), u(p.PERFORM)
},
content: "查看全部演出"
})]
})]
})
},
we = i(8460),
Ce = i(872),
ke = i(6454),
Ee = i(1209),
Se = i(1126);
function je(e) {
var n = e || {},
t = n.star,
a = n.className;
return D.createElement("div", {
className: (0, ke.A)("dm-rating", a)
}, D.createElement("div", {
className: "dm-rating-icon"
}), D.createElement("div", {
className: "dm-rating-score"
}, t), D.createElement(Se.A, {
className: "dm-rating-star",
size: "xsmall",
allowHalf: !0,
readOnly: !0,
value: Number(t) / 2
}))
}
var Re = i(9152);
function Ie(e) {
var n = e || {},
t = n.className,
a = n.style,
i = n.tag,
l = n.type;
return i ? D.createElement("div", {
className: (0, ke.A)("section-tag", t),
style: a
}, D.createElement("div", {
className: (0, ke.A)("section-tag-icon-".concat(l), "section-tag-icon")
}), D.createElement(Re.A, {
variant: "contained",
className: "section-tag-content"
}, i)) : null
}
function Le(e) {
var n = e.data,
t = e.onClick,
a = void 0 === t ? function () {} : t,
i = e.type,
l = void 0 === i ? "detail" : i,
r = e.isZLife,
o = e.contentSlot,
c = e.titleSrc,
s = e.id,
d = e.keyword;
return D.createElement(Ce.A, {
className: "dm-single-card",
onClick: function (e) {
null == a || a(e, n)
}
}, "detail" === l ? D.createElement(fe.A, {
fit: "cover",
lazy: !0,
className: "dm-single-card-avatar",
src: (0, ce.zp)({
url: null == n ? void 0 : n.picUrl
})
}) : "search-artist" === l ? D.createElement("div", {
className: "".concat(l, "-avatar")
}, D.createElement("div", {
className: "search-artist-icon"
}), D.createElement(fe.A, {
fit: "cover",
lazy: !0,
fallback: D.createElement("div", {
className: "placeholder-img"
}),
placeholder: D.createElement("div", {
className: "placeholder-img"
}),
className: "".concat(l, "-img"),
src: (0, ce.zp)({
url: null == n ? void 0 : n.picUrl
})
})) : "search-ip" === l ? D.createElement("div", {
className: "".concat(l, "-avatar")
}, D.createElement(fe.A, {
fit: "cover",
lazy: !0,
className: "".concat(l, "-img"),
src: (0, ce.zp)({
url: null == n ? void 0 : n.picUrl
})
}), D.createElement("div", {
className: "search-ip-shadow1"
}), D.createElement("div", {
className: "search-ip-shadow2"
})) : "search-brand" === l || "search-new-brand" === l ? D.createElement("div", {
className: "search-artist-avatar"
}, "true" === "".concat(null == n ? void 0 : n.vAccount) ? D.createElement("div", {
className: "search-artist-icon"
}) : null, D.createElement(fe.A, {
fit: "cover",
placeholder: D.createElement("div", {
className: "placeholder-img"
}),
fallback: D.createElement("div", {
className: "placeholder-img"
}),
lazy: !0,
className: "search-artist-img",
src: (0, ce.zp)({
url: null == n ? void 0 : n.picUrl
})
})) : null, D.createElement("div", {
className: (0, ke.A)("dm-single-card-content", {
"padding-left-small": "search-ip" === l
})
}, D.createElement("div", {
className: "dm-single-card-content-title"
}, D.createElement("div", {
className: "dm-single-card-section-text"
}, null == n ? void 0 : n.name), ((null == n ? void 0 : n.tag) || (null == n ? void 0 : n.label)) && D.createElement(Ie, {
className: "dm-single-card-section-tag",
tag: (null == n ? void 0 : n.tag) || (null == n ? void 0 : n.label),
type: null == n ? void 0 : n.type
}), c ? D.createElement("img", {
className: "count-slot-icon",
src: c,
alt: ""
}) : null), o || D.createElement("div", {
className: "dm-single-card-content-desc"
}, null == n ? void 0 : n.desc)), function () {
var e, t;
return "detail" === l ? !r && D.createElement(he.A, {
className: "dm-single-card-icon"
}) || null : "search-artist" === l ? D.createElement(Ee.A, {
className: "search-artist-rating"
}, "去主页") : "search-ip" === l || "search-brand" === l ? (null == n ? void 0 : n.star) ? D.createElement("div", {
className: "search-ip-rating"
}, D.createElement(je, {
star: null == n ? void 0 : n.star
})) : D.createElement(Ee.A, {
className: "search-artist-rating"
}, "去主页") : "search-new-brand" === l ? D.createElement(Ce.A, {
className: "search-new-brand-rating",
dynamicData: {
brand_id: s,
keyword: d
}
}, D.createElement(Ee.A, {
className: "search-new-brand-rating-btn"
}, "去主页", (null == (e = null == n ? void 0 : n.couponInfo) ? void 0 : e.tag) ? D.createElement(Ce.A, {
dynamicData: {
brand_id: s,
keyword: d
},
className: "brand-discount-tag"
}, D.createElement("div", {
className: "button-tag-content"
}, D.createElement("img", {
className: "button-tag-bottom",
alt: ""
}), null == (t = null == n ? void 0 : n.couponInfo) ? void 0 : t.tag)) : null)) : null
}())
}
var Oe = i(2499);
function De(e) {
var n = e || {},
t = n.list,
a = void 0 === t ? [] : t,
i = n.onClick;
return D.createElement(Oe.A, {
scrollX: !0,
className: "dm-multi-card tph"
}, a.map((function (e, n) {
return function (e, n) {
return D.createElement("div", {
className: "dm-multi-card-card",
key: (null == e ? void 0 : e.id) || n,
onClick: function (n) {
null == i || i(n, e)
}
}, D.createElement("div", {
className: "dm-multi-card-item"
}, D.createElement(fe.A, {
fit: "cover",
lazy: !0,
className: "dm-multi-card-item-avatar",
src: (0, ce.zp)({
url: null == e ? void 0 : e.picUrl
})
}), D.createElement(Ie, {
className: "dm-multi-card-item-tag",
tag: (null == e ? void 0 : e.tag) || (null == e ? void 0 : e.label),
type: null == e ? void 0 : e.type
}), D.createElement("div", {
className: "dm-multi-card-item-name"
}, null == e ? void 0 : e.name), D.createElement("div", {
className: "dm-multi-card-item-desc"
}, null == e ? void 0 : e.desc)))
}(e, n)
})))
}
var Me = Object.defineProperty,
Pe = Object.getOwnPropertySymbols,
Be = Object.prototype.hasOwnProperty,
Fe = Object.prototype.propertyIsEnumerable,
Ue = function (e, n, t) {
return n in e ? Me(e, n, {
enumerable: !0,
configurable: !0,
writable: !0,
value: t
}) : e[n] = t
},
He = "bui-dm-brand-artist",
We = D.forwardRef((function (e, t) {
var a = e,
i = a.list,
l = void 0 === i ? [] : i,
r = a.title,
o = void 0 === r ? "厂牌/主创" : r,
c = a.showTitle,
s = void 0 === c || c,
d = a.className,
u = a.onClick,
m = void 0 === u ? function () {} : u,
v = a.contentSlot,
p = a.isZLife,
h = void 0 !== p && p,
y = a.type,
f = a.titleSrc,
A = a.id,
N = a.keyword,
g = function (e, t) {
var a = {};
for (var i in e) Be.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i]);
if (null != e && Pe) {
var l, r = n(Pe(e));
try {
for (r.s(); !(l = r.n()).done;) {
i = l.value;
t.indexOf(i) < 0 && Fe.call(e, i) && (a[i] = e[i])
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
}
return a
}(a, ["list", "title", "showTitle", "className", "onClick", "contentSlot", "isZLife", "type", "titleSrc", "id", "keyword"]);
return 0 === l.length ? null : D.createElement("div", function (e, t) {
for (var a in t || (t = {})) Be.call(t, a) && Ue(e, a, t[a]);
if (Pe) {
var i, l = n(Pe(t));
try {
for (l.s(); !(i = l.n()).done;) {
a = i.value;
Fe.call(t, a) && Ue(e, a, t[a])
}
} catch (e) {
l.e(e)
} finally {
l.f()
}
}
return e
}({
ref: t,
className: (0, ke.A)(He, d)
}, g), s && D.createElement("div", {
className: (0, ke.A)("".concat(He, "-title"))
}, o), D.createElement("div", {
className: (0, ke.A)("".concat(He, "-container"))
}, l.length > 1 ? D.createElement(De, {
list: l,
onClick: m
}) : D.createElement(Le, {
contentSlot: v,
type: y,
data: l[0],
onClick: m,
isZLife: h,
titleSrc: f,
id: A,
keyword: N
})))
}));
We.displayName = "SectionBrandArtist";
var Ge = We,
Ve = i(2424),
ze = function (e) {
return e.NUMBER = "NUM", e.TEXT = "TEXT", e.PICTURE = "PIC", e.DIVIDER = "DIVIDER", e
}(ze || {}),
Ye = function (e) {
return e.SHOW_NOT_CONFIRM = "0", e.SHOW_CONFIRM_CITY_NOT_CONFIRM = "1", e.SHOW_CONFIRM_PART_CITY_CONFIRM = "2", e.SHOW_SALE = "3", e
}(Ye || {}),
Xe = function (e) {
return e.BIND = "1", e.NOT_BIND = "0", e
}(Xe || {});
var Ke = Object.defineProperty,
Je = Object.defineProperties,
qe = Object.getOwnPropertyDescriptors,
Ze = Object.getOwnPropertySymbols,
Qe = Object.prototype.hasOwnProperty,
$e = Object.prototype.propertyIsEnumerable,
en = function (e, n, t) {
return n in e ? Ke(e, n, {
enumerable: !0,
configurable: !0,
writable: !0,
value: t
}) : e[n] = t
},
nn = D.forwardRef((function (t, a) {
var i, l, r = t,
o = r.title,
c = r.tag,
s = r.content,
d = (r.url, r.showStatus),
u = r.className,
m = r.subTitle,
v = function (e, t) {
var a = {};
for (var i in e) Qe.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i]);
if (null != e && Ze) {
var l, r = n(Ze(e));
try {
for (r.s(); !(l = r.n()).done;) {
i = l.value;
t.indexOf(i) < 0 && $e.call(e, i) && (a[i] = e[i])
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
}
return a
}(r, ["title", "tag", "content", "url", "showStatus", "className", "subTitle"]),
p = null == (i = null == m ? void 0 : m.find((function (e) {
return e.valueType === ze.NUMBER
}))) ? void 0 : i.value,
h = null == (l = null == m ? void 0 : m.find((function (e) {
return e.valueType === ze.TEXT
}))) ? void 0 : l.value,
y = function (e) {
return String(e).replace(/(?=(\B\d{3})+$)/g, ",")
},
f = function () {
var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
begin: 0,
end: 0,
step: 0,
interval: 1e3,
format: function (e) {
return e.current
},
auto: !1
},
t = n.begin,
a = void 0 === t ? 0 : t,
i = n.end,
l = void 0 === i ? 0 : i,
r = n.step,
o = void 0 === r ? 0 : r,
c = n.interval,
s = void 0 === c ? 1e3 : c,
d = n.format,
u = void 0 === d ? function (e) {
return e.current
} : d,
m = n.auto,
v = void 0 !== m && m,
p = (0, D.useState)(!1),
h = e(p, 2),
y = h[0],
f = h[1],
A = (0, D.useState)(a),
N = e(A, 2),
g = N[0],
b = N[1],
x = (0, D.useState)(!0),
_ = e(x, 2),
T = _[0],
w = _[1],
C = (0, D.useState)(!0),
k = e(C, 2),
E = k[0],
S = k[1],
j = (0, D.useRef)(0),
R = function () {
return clearTimeout(j.current)
},
I = (0, D.useCallback)((function () {
var e = g + o;
b(e > l ? l : e)
}), [g, l, o]),
L = (0, D.useCallback)((function () {
R(), S(!0)
}), []),
O = (0, D.useCallback)((function () {
L(), w(!0)
}), [L]),
M = (0, D.useCallback)((function () {
L(), O(), b(a)
}), [a, L, O]),
P = (0, D.useCallback)((function () {
(E || T) && (T ? M() : I(), w(!1), S(!1))
}), [E, T, M, I]);
return (0, D.useEffect)((function () {
return !T && (g >= l ? O() : j.current = setTimeout(I, s)), R
}), [O, I, T, g, s, l]), !y && v && (P(), f(!0)), {
start: P,
pause: L,
stop: O,
reset: M,
value: u({
current: g,
isStop: T,
isPause: E
}),
isPause: E,
isStop: T
}
}({
begin: 0,
end: Number(p),
step: parseInt("" + Number(p) / 25, 10) || 1,
interval: 30,
auto: !0,
format: function (e) {
var n = e.current;
return y(n)
}
});
return c || s || o ? D.createElement("div", function (e, n) {
return Je(e, qe(n))
}(function (e, t) {
for (var a in t || (t = {})) Qe.call(t, a) && en(e, a, t[a]);
if (Ze) {
var i, l = n(Ze(t));
try {
for (l.s(); !(i = l.n()).done;) {
a = i.value;
$e.call(t, a) && en(e, a, t[a])
}
} catch (e) {
l.e(e)
} finally {
l.f()
}
}
return e
}({
className: (0, ke.A)("want-see-city-notice", u)
}, v), {
onClick: function () {}
}), D.createElement("div", {
className: (0, ke.A)("want-see-city-notice-block", {
"not-confirm": d !== Ye.SHOW_NOT_CONFIRM && d !== Ye.SHOW_CONFIRM_CITY_NOT_CONFIRM
})
}, c && D.createElement(Re.A, {
className: (0, ke.A)("want-see-city-notice-tag", {
"no-show": d === Ye.SHOW_NOT_CONFIRM,
"make-wish": d === Ye.SHOW_CONFIRM_PART_CITY_CONFIRM || d === Ye.SHOW_SALE,
"has-confirm-show": d === Ye.SHOW_CONFIRM_CITY_NOT_CONFIRM
}),
variant: "contained"
}, c), d === Ye.SHOW_NOT_CONFIRM || d === Ye.SHOW_CONFIRM_CITY_NOT_CONFIRM ? D.createElement("div", {
className: "want-see-city-notice-wrap"
}, s && D.createElement("div", {
className: "want-see-city-notice-content"
}, o), p && D.createElement("div", {
className: "want-see-city-notice-extra-title"
}, D.createElement("b", null, function (e) {
return function (e) {
return /^\d+$/.test(e)
}(e) ? f.isStop ? y(e) : f.value : e
}(p)), h)) : D.createElement("span", {
className: "make-wish-text"
}, o))) : null
}));
nn.displayName = "WantSeeCityNotice";
var tn = nn,
an = Object.defineProperty,
ln = Object.getOwnPropertySymbols,
rn = Object.prototype.hasOwnProperty,
on = Object.prototype.propertyIsEnumerable,
cn = function (e, n, t) {
return n in e ? an(e, n, {
enumerable: !0,
configurable: !0,
writable: !0,
value: t
}) : e[n] = t
},
sn = D.forwardRef((function (e, t) {
var a = e,
i = a.className,
l = a.showStatus,
r = a.artistTourNotice,
o = a.artistTourCities,
c = void 0 === o ? [] : o,
s = a.logConfig,
d = a.onCityItemClick,
u = a.onOtherCityClick,
m = (a.onNoticeClick, function (e, t) {
var a = {};
for (var i in e) rn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i]);
if (null != e && ln) {
var l, r = n(ln(e));
try {
for (r.s(); !(l = r.n()).done;) {
i = l.value;
t.indexOf(i) < 0 && on.call(e, i) && (a[i] = e[i])
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
}
return a
}(a, ["className", "showStatus", "artistTourNotice", "artistTourCities", "logConfig", "onCityItemClick", "onOtherCityClick", "onNoticeClick"])),
v = r || {},
p = v.title,
h = v.subTitle,
y = v.statusDesc,
f = v.desc;
return D.createElement("div", function (e, t) {
for (var a in t || (t = {})) rn.call(t, a) && cn(e, a, t[a]);
if (ln) {
var i, l = n(ln(t));
try {
for (l.s(); !(i = l.n()).done;) {
a = i.value;
on.call(t, a) && cn(e, a, t[a])
}
} catch (e) {
l.e(e)
} finally {
l.f()
}
}
return e
}({
className: (0, ke.A)("bui-artist-tour-cities", i),
ref: t
}, m), D.createElement(tn, {
tag: y,
content: f,
showStatus: l,
subTitle: h,
title: p
}), D.createElement("div", {
className: "tour-cities"
}, !!(null == c ? void 0 : c.length) && c.map((function (e, n) {
var t = (null == e ? void 0 : e.wantSeeStatus) === Xe.BIND;
return D.createElement("div", {
key: n,
className: (0, ke.A)("want-see-city-item", null == e ? void 0 : e.logClassName, {
"has-confirm-city": (null == e ? void 0 : e.status) === Xe.BIND,
"has-want-see-city": t
}),
onClick: function (t) {
return null == d ? void 0 : d(t, e, n)
}
}, D.createElement("div", {
className: "city-name"
}, null == e ? void 0 : e.cityName), (null == e ? void 0 : e.showTime) && D.createElement("div", {
className: "city-show-time"
}, null == e ? void 0 : e.showTime), D.createElement("div", {
className: (0, ke.A)("city-location-info", {
"city-location-info-highlight": "true" === "".concat(null == e ? void 0 : e.tagHigh),
"place-bottom": null == e ? void 0 : e.showTime
})
}, (null == e ? void 0 : e.tag) || D.createElement("span", null, " ")), !(null == e ? void 0 : e.showTime) && D.createElement(Ee.A, {
className: "city-want-see-btn"
}, t ? D.createElement(D.Fragment, null, D.createElement(fe.A, {
className: (0, ke.A)("city-want-see-btn-img-icon", "city-want-see-btn-icon"),
src: "//gw.alicdn.com/imgextra/i2/O1CN01kQW38k1vGv3lWvOms_!!6000000006146-2-tps-32-30.png"
}), "已想看") : D.createElement(D.Fragment, null, D.createElement(Ve.A, {
htmlColor: "#8896b1",
className: "city-want-see-btn-icon"
}), "想看")), (null == e ? void 0 : e.hotStatus) === Xe.BIND && D.createElement(fe.A, {
className: "city-hot-tag",
src: (0, ce.xn)("/i1/O1CN01cbgV0O1gZ2USrz8SJ_!!6000000004155-2-tps-48-33.png", "small")
}))
})), !!(null == c ? void 0 : c.length) && D.createElement("div", {
className: (0, ke.A)("want-see-other-city", "want-see-city-item", null == s ? void 0 : s.otherCityClass),
onClick: u
}, D.createElement(ve, {
className: "want-see-other-city-icon",
htmlColor: "#8896b1"
}), D.createElement("div", {
className: "want-see-other-city-text"
}, [Ye.SHOW_CONFIRM_PART_CITY_CONFIRM, Ye.SHOW_SALE].includes(l) ? "求加场" : "想看其它城市"))))
}));
sn.displayName = "DmSearchTourCities";
var dn = sn,
un = i(4545),
mn = i(5885),
vn = Object.defineProperty,
pn = Object.getOwnPropertySymbols,
hn = Object.prototype.hasOwnProperty,
yn = Object.prototype.propertyIsEnumerable,
fn = function (e, n, t) {
return n in e ? vn(e, n, {
enumerable: !0,
configurable: !0,
writable: !0,
value: t
}) : e[n] = t
},
An = D.forwardRef((function (e, t) {
var a = e,
i = a.className,
l = a.showStatus,
r = a.artistTourNotice,
o = a.onNoticeClick,
c = function (e, t) {
var a = {};
for (var i in e) hn.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i]);
if (null != e && pn) {
var l, r = n(pn(e));
try {
for (r.s(); !(l = r.n()).done;) {
i = l.value;
t.indexOf(i) < 0 && yn.call(e, i) && (a[i] = e[i])
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
}
return a
}(a, ["className", "showStatus", "artistTourNotice", "onNoticeClick"]);
return (null == r ? void 0 : r.statusDesc) && ((null == r ? void 0 : r.desc) || []).length ? D.createElement("div", function (e, t) {
for (var a in t || (t = {})) hn.call(t, a) && fn(e, a, t[a]);
if (pn) {
var i, l = n(pn(t));
try {
for (l.s(); !(i = l.n()).done;) {
a = i.value;
yn.call(t, a) && fn(e, a, t[a])
}
} catch (e) {
l.e(e)
} finally {
l.f()
}
}
return e
}({
className: (0, ke.A)("bui-dm-notice-bar", i, {
"primary-notice-bar": l !== Ye.SHOW_NOT_CONFIRM
}),
ref: t,
onClick: o
}, c), D.createElement("div", {
className: "notice-left"
}, D.createElement(Re.A, {
className: (0, ke.A)("notice-tag"),
variant: "contained"
}, r.statusDesc), D.createElement("div", {
className: "notice-content"
}, function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
return (null == e ? void 0 : e.length) ? e.map((function (e, n) {
var t, a = e.valueType,
i = e.value;
switch (a) {
case ze.NUMBER:
t = D.createElement("b", {
className: "diff-value-bold",
key: n
}, i);
break;
case ze.TEXT:
t = D.createElement("span", {
className: "diff-value-text",
key: n
}, i);
break;
case ze.PICTURE:
t = D.createElement(fe.A, {
className: "diff-value-icon",
src: (0, ce.xn)(i || "", "small"),
key: n,
placeholder: null
});
break;
case ze.DIVIDER:
t = D.createElement(un.A, {
key: n
});
break;
default:
t = null
}
return t
})) : null
}(r.desc))), !!(null == r ? void 0 : r.schema) && l === Ye.SHOW_NOT_CONFIRM && D.createElement(mn.A, {
className: "notice-tip-icon",
htmlColor: "#959aa5"
})) : null
}));
An.displayName = "TourNoticeBar";
var Nn, gn = An,
bn = {
api: "mtop.damai.wireless.search.rangkinglist.get",
v: "4.0",
data: {}
},
xn = {
api: "mtop.damai.wireless.search.searchegg.get",
v: "1.1",
data: {}
},
_n = {
api: "mtop.damai.mec.aristotle.get",
v: "3.0",
data: {}
},
Tn = {
api: "mtop.damai.wireless.follow.relation.update.v2",
v: "1.0",
data: {}
},
wn = i(9887),
Cn = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return new wn.p((0, r.A)((0, r.A)({}, bn), e)).create()
},
kn = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return new wn.p((0, r.A)((0, r.A)({}, xn), e)).create()
},
En = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return new wn.p((0, r.A)((0, r.A)((0, r.A)({}, _n), e), {}, {
downgradeConfig: n
})).create()
},
Sn = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return new wn.p((0, r.A)((0, r.A)({}, Tn), e)).create()
},
jn = i(3816),
Rn = function (e, n, t) {
if (n === p.ARTIST) {
if (t === w.UNANNOUNCED) return (null == e ? void 0 : e.artistTourCities) || []
} else if (n === p.BRAND) {
var a = (null == e ? void 0 : e.cityStationList) || [];
return (a = a.slice(0, 7)).map((function (e) {
return (0, r.A)({
address: e.tag
}, e)
}))
}
return []
},
In = i(6005),
Ln = {
exp: [{
cssSelector: ".search-new-brand-rating .brand-discount-tag",
spmC: "brandcoupon",
spmD: "item",
logkey: "/yanchu.brandcoupon_item.exp",
data: ["brand_id", "keyword"]
}, {
cssSelector: ".dm-single-card .search-new-brand-rating",
spmC: "brandhome",
spmD: "item",
logkey: "/yanchu.brandhome_item.exp",
data: ["brand_id", "keyword"]
}],
clk: [{
cssSelector: ".dm-single-card .search-new-brand-rating",
spmC: "brandhome",
spmD: "item",
logkey: "/yanchu.brandhome_item.clk",
data: ["brand_id", "keyword"]
}]
},
On = "notice-bar-log",
Dn = "other-city-exp-log",
Mn = "new-brand-banner",
Pn = function (e) {
var n, t = e.data,
a = e.type,
i = e.className,
l = e.handleArtistBrandClick,
u = e.index,
m = e.exposeEventName,
h = e.spmc,
f = e.activeTab,
A = e.activeTabType,
N = e.curSearchTypeRef,
b = e.keyword,
T = function (e, n) {
var t, a, i, l, r = (0, s.A)(e, 1)[0],
o = null == r ? void 0 : r.data,
c = "";
return n === p.ARTIST ? (i = null == o ? void 0 : o.status, l = null == o ? void 0 : o.artistIpId, c = null == o ? void 0 : o.artistId) : n === p.BRAND && (i = null == o ? void 0 : o.ipStatus, l = null == o ? void 0 : o.id, c = null == o ? void 0 : o.id), {
picUrl: null == o ? void 0 : o.headPic,
name: null == o ? void 0 : o.name,
fansCount: null == o ? void 0 : o.fansCount,
star: null == o ? void 0 : o.score,
tourInfos: null == o ? void 0 : o.tourInfos,
subType: null == o ? void 0 : o.subType,
performanceCount: null == o ? void 0 : o.performanceCount,
type: null == r ? void 0 : r.type,
url: null == o || null === (t = o.action) || void 0 === t || null === (t = t.item) || void 0 === t ? void 0 : t.actionUrl,
trackInfo: null == o || null === (a = o.action) || void 0 === a || null === (a = a.item) || void 0 === a ? void 0 : a.trackInfo,
status: i,
artistId: null == o ? void 0 : o.artistId,
artistIpId: l,
logId: c,
artistTourNotice: null == o ? void 0 : o.artistTourNotice,
artistTourCities: Rn(o, n, i),
couponInfo: null == o ? void 0 : o.couponInfo,
bannerInfo: null == o ? void 0 : o.bannerInfo,
vAccount: null == o ? void 0 : o.vAccount,
id: null == o ? void 0 : o.id
}
}(t, A),
C = ((null == T ? void 0 : T.artistTourCities) || []).map((function (e, n) {
return (0, r.A)((0, r.A)({}, e), {}, {
logClassName: "city-log-".concat(null == T ? void 0 : T.logId, "-").concat(n)
})
})),
k = "search-artist" === a ? "search-artist-log" : "search-brand-log",
E = (0, D.useState)(C),
S = (0, s.A)(E, 2),
j = S[0],
R = S[1];
(0, le.Ay)(On, (function () {
V({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
})
})), (0, le.Ay)(Dn, (function () {
p.BRAND === A ? W({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
}) : p.ARTIST === A && U({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
})
})), (0, le.Ay)(Mn, (function () {
J({
keyword: b,
brand_id: null == T ? void 0 : T.id
})
})), (0, le.ry)(C.map((function (e, n) {
return "city-log-".concat(null == T ? void 0 : T.logId, "-").concat(n)
})), (function (e) {
p.BRAND === A ? K({
biz_id: null == T ? void 0 : T.logId,
index: e,
tab_type: y[f]
}) : p.ARTIST === A && Y({
biz_id: null == T ? void 0 : T.logId,
index: e,
tab_type: y[f]
})
}), []);
var I = function () {
var e, n = null == T || null === (e = T.artistTourNotice) || void 0 === e ? void 0 : e.schema;
n && (null == T ? void 0 : T.status) === w.UNANNOUNCED && (G({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
}), ae.A.navTo(n, {
spm: "".concat(xe.A.spmA, ".").concat(v, ".artist.ruletips")
}))
},
L = function () {
var e = (0, c.A)((0, o.A)().m((function e(n, t) {
var a, i, l, d, u, m, v, h, N, g, b;
return (0, o.A)().w((function (e) {
for (;;) switch (e.n) {
case 0:
return e.n = 1, jn.A.isLogin();
case 1:
if (e.v) {
e.n = 3;
break
}
return e.n = 2, jn.A.login();
case 2:
if (a = e.v, a.success) {
e.n = 3;
break
}
return O().showToast({
title: "登录失败,请重试",
icon: "none"
}), e.a(2);
case 3:
i = n.wantSeeStatus, l = n.cityId, d = n.cityName, u = n.type, m = n.targetId, v = "IP_GROUP", h = "IP_CITY_REMIND", N = l, p.BRAND === A ? (2 !== (g = +u) && 3 !== g || (v = "PROJECT_GROUP", N = void 0), 2 === g ? h = "PROJECT" : 3 === g && (h = "ITEM"), X({
biz_id: null == T ? void 0 : T.logId,
index: t,
tab_type: y[f]
})) : p.ARTIST === A && (m = null == T ? void 0 : T.artistIpId, z({
biz_id: null == T ? void 0 : T.logId,
index: t,
tab_type: y[f]
})), Sn({
group: v,
targetType: h,
operateType: b = "1" === i ? "0" : "1",
targetId: m,
subTargetId: N,
extras: JSON.stringify({
cityId: l,
cityName: d
}),
pageName: "DM_SEARCH_DETAIL"
}).then(function () {
var e = (0, c.A)((0, o.A)().m((function e(t) {
var a, i, c, d;
return (0, o.A)().w((function (e) {
for (;;) switch (e.n) {
case 0:
if (a = (0, s.A)(t, 2), i = a[0], c = a[1], !i && null != c && c.success) {
e.n = 1;
break
}
return O().showToast({
title: "请稍后重试哦~",
icon: "none"
}), e.a(2);
case 1:
O().showToast({
title: 1 === (null == c ? void 0 : c.status) ? "想看成功,已为你反馈心愿~" : "已取消想看",
icon: "none"
}), d = j.findIndex((function (e) {
return (null == e ? void 0 : e.cityId) === l
})), R((function (e) {
return e.splice(d, 1, (0, r.A)((0, r.A)({}, n), {}, {
wantSeeStatus: b
})), (0, we.A)(e)
}));
case 2:
return e.a(2)
}
}), e)
})));
return function (n) {
return e.apply(this, arguments)
}
}()).catch((function (e) {}));
case 4:
return e.a(2)
}
}), e)
})));
return function (n, t) {
return e.apply(this, arguments)
}
}(),
M = function (e, n, t) {
return (0, ne.jsxs)("div", {
className: "search-count",
children: [(0, ne.jsx)("span", {
className: "count-key",
children: e
}), t && n ? !!e && (0, ne.jsx)("span", {
className: "count-value",
children: n
}) : (0, ne.jsx)("span", {
className: "count-value",
children: n
})]
})
};
return (0, ne.jsxs)("div", {
className: "brand-artist ".concat(k),
children: [(0, ne.jsx)(Ce.A, {
onMutate: function (e) {
(0, In.E0)(e, Ln)
},
onAutoClick: function (e, n) {
(0, In.MQ)(e, n, Ln)
},
children: (0, ne.jsx)(Ge, {
showTitle: !1,
className: i,
type: a,
onClick: function () {
var e, n;
ee((0, r.A)((0, r.A)({
clickEventName: m
}, null == T ? void 0 : T.trackInfo), {}, {
spmc: h,
spmd: "".concat(null == T || null === (e = T.trackInfo) || void 0 === e ? void 0 : e.spmd).concat(u),
args: (0, r.A)((0, r.A)({}, (null == T || null === (n = T.trackInfo) || void 0 === n ? void 0 : n.args) || {}), {}, {
type_v2: N.current,
tab_type: y[f]
})
})), T.url && l(T.url)
},
contentSlot: (0, ne.jsx)("div", {
className: "count-slot",
children: function () {
var e;
if ("search-artist" === a) return (0, ne.jsxs)("div", {
className: "count-slot count-slot-artist",
children: [(0, ne.jsx)("div", {
className: "count-slot-fans",
children: M(null == T ? void 0 : T.fansCount, "粉丝", !0)
}), (0, ne.jsx)("div", {
className: "row-divider"
}), (0, ne.jsx)("div", {
className: "count-slot-shows",
children: M("".concat(null !== (e = null == T ? void 0 : T.performanceCount) && void 0 !== e ? e : 0, "场"), "在售演出", !1)
})]
});
if ("search-ip" === a || "search-brand" === a) {
var n = (null == T ? void 0 : T.type) === g;
return (0, ne.jsxs)("div", {
className: "count-slot-ip",
children: [(0, ne.jsxs)("div", {
className: "count-slot-fans",
children: [(0, ne.jsx)("div", {
children: M(null == T ? void 0 : T.fansCount, "粉丝 ".concat(n ? "| " : ""), !0)
}), n && (0, ne.jsx)("div", {
style: {
marginLeft: "4px"
},
children: M("".concat((null == T ? void 0 : T.performanceCount) || 0, "场"), "在售演出", !1)
})]
}), (0, ne.jsx)("div", {
className: "count-slot-city",
children: M("", null == T ? void 0 : T.tourInfos, !1)
})]
})
}
if ("search-new-brand" === a) {
var t = (null == T ? void 0 : T.fansCount) && "0" !== "".concat(null == T ? void 0 : T.fansCount),
i = (null == T ? void 0 : T.performanceCount) && "0" !== "".concat(null == T ? void 0 : T.performanceCount);
return (0, ne.jsxs)("div", {
className: "count-slot-ip",
children: [(0, ne.jsxs)("div", {
className: "count-slot-fans",
children: [(0, ne.jsx)("div", {
children: t ? M(null == T ? void 0 : T.fansCount, "粉丝", !0) : null
}), t && i ? M("", " ", !1) : null, i ? (0, ne.jsx)("div", {
style: {
marginLeft: "4px"
},
children: M("".concat((null == T ? void 0 : T.performanceCount) || 0, "场"), "在售演出", !1)
}) : null]
}), (0, ne.jsx)("div", {
className: "count-slot-city",
children: M("", null == T ? void 0 : T.tourInfos, !1)
})]
})
}
}()
}),
titleSrc: function () {
if ("search-ip" === a || "search-brand" === a || "search-new-brand" === a) {
var e = Number(null == T ? void 0 : T.type) === g || Number(null == T ? void 0 : T.type) === x ? "厂牌号" : null == T ? void 0 : T.subType;
return _[e] || ""
}
return ""
}(),
list: [T],
id: null == T ? void 0 : T.id,
keyword: b
})
}), j.length > 0 && (0, ne.jsx)(dn, {
showStatus: null == T ? void 0 : T.status,
onCityItemClick: function (e, n, t) {
return L(n, t)
},
onNoticeClick: I,
onOtherCityClick: function () {
if (p.BRAND === A) H({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
}), ae.A.navTo("".concat(re.A.h5_shows_url, "dramas.html?ipId=").concat(T.artistIpId, "&cityDialog=1"), {
spm: "".concat(xe.A.spmA, ".").concat(v, ".artist.otherwishcity")
});
else if (p.ARTIST === A) {
if (null == T || !T.artistId) return;
F({
biz_id: null == T ? void 0 : T.logId,
tab_type: y[f]
}), ae.A.navTo("https://m.damai.cn/shows/artist.html?artistId=".concat(T.artistId, "&show_city_layer=true"), {
spm: "".concat(xe.A.spmA, ".").concat(v, ".artist.otherwishcity")
})
}
},
artistTourNotice: null == T ? void 0 : T.artistTourNotice,
artistTourCities: j,
logConfig: {
otherCityClass: Dn,
noticeBarClass: On
}
}), [w.ANNOUNCED_PART_CITY, w.ANNOUNCED_UNSURE_CITY].includes(null == T ? void 0 : T.status) && (0, ne.jsx)("div", {
className: "notice-wrapper",
children: (0, ne.jsx)(gn, {
className: (0, d.A)("notice-bar", On),
showStatus: null == T ? void 0 : T.status,
artistTourNotice: null == T ? void 0 : T.artistTourNotice,
onNoticeClick: I
})
}), "search-new-brand" === a && null != T && T.bannerInfo ? (0, ne.jsx)("div", {
className: "new-brand-banner",
onClick: function () {
var e;
q({
keyword: b,
brand_id: null == T ? void 0 : T.id
}), ae.A.navTo(null == T || null === (e = T.bannerInfo) || void 0 === e ? void 0 : e.jumpUrl, {
spm: "".concat(xe.A.spmA, ".").concat(v, ".brandbanner.item")
})
},
children: (0, ne.jsx)("img", {
alt: "",
className: "banner-img",
src: (0, ce.zp)({
url: null == T || null === (n = T.bannerInfo) || void 0 === n ? void 0 : n.pic
})
})
}) : null]
})
},
Bn = i(2012),
Fn = function (e) {
var n = e.metadata,
t = e.spots,
a = void 0 === t ? [] : t,
i = a.map((function (e) {
var n;
return "log-near-spot-".concat(null == e || null === (n = e.data) || void 0 === n ? void 0 : n.id)
}));
(0, le.ry)(i, (function (e, n, t) {
var a, i = (null == t || null === (a = t.dataset) || void 0 === a ? void 0 : a.alog) || {};
! function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
R.Ay.sendGoldLog("EXP", "/yanchu.list_tour_card.exp", (0, r.A)({
spmC: "list",
spmD: "tour_card_".concat(null == e ? void 0 : e.index)
}, e))
}((0, r.A)({
index: e
}, i))
}), [a], {
useDom: !0
});
var l = function (e, n) {
(function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
R.Ay.sendGoldLog("CLK", "/yanchu.list_tour_card.clk", (0, r.A)({
spmC: "list",
spmD: "tour_card_".concat(null == e ? void 0 : e.index)
}, e))
})({
view_id: e,
index: n
}), ae.A.navTo((0, Bn.Jv)({
page: "shows_scenery",
query: {
id: e,
spm: "".concat(ie.c, ".search.list.tour_card_").concat(n)
}
}))
};
return a.length <= 2 ? null : (0, ne.jsxs)("div", {
className: "near-spot",
children: [(0, ne.jsx)("div", {
className: "near-spot-header",
children: (0, ne.jsxs)("div", {
className: "near-spot-header-back-pic",
children: [(0, ne.jsx)("div", {
className: "near-spot-header-title",
children: null == n ? void 0 : n.title
}), (0, ne.jsxs)("div", {
className: "near-spot-header-position",
children: [(0, ne.jsx)("img", {
className: "near-spot-header-position-icon",
alt: "",
src: "https://gw.alicdn.com/imgextra/i2/O1CN01eamJ4Q1mWBxwV6RoT_!!6000000004961-2-tps-64-64.png"
}), (null == n ? void 0 : n.venueName) && (0, ne.jsxs)("div", {
className: "near-spot-header-position-text",
children: [null == n ? void 0 : n.cityName, "·", null == n ? void 0 : n.venueName]
})]
})]
})
}), (0, ne.jsx)("div", {
className: "near-spot-body",
children: (0, ne.jsx)("div", {
className: "near-spot-items",
children: a.slice(0, 8).map((function (e, n) {
var t, a = null == e ? void 0 : e.data,
r = null === (t = a.marketPromotionTags) || void 0 === t || null === (t = t[0]) || void 0 === t ? void 0 : t.shortTag;
return (0, ne.jsxs)("div", {
"data-alog": {
view_id: a.id
},
className: (0, d.A)("near-spot-item", i[n]),
onClick: function () {
return l(a.id, n)
},
children: [(0, ne.jsx)("div", {
className: "near-spot-item-image-container",
children: (0, ne.jsx)("div", {
className: "near-spot-item-image",
style: {
backgroundImage: "url(".concat(a.verticalPic, ")")
},
children: (0, ne.jsxs)("div", {
className: "near-spot-item-image-tags",
children: [
["5A", "4A"].includes(a.nameTag) && (0, ne.jsx)("div", {
className: "near-spot-item-image-level-tag",
children: a.nameTag
}), r && (0, ne.jsx)("div", {
className: "near-spot-item-image-promo-tag",
children: r
})
]
})
})
}), (0, ne.jsx)("div", {
className: "near-spot-item-title",
children: a.name
}), (0, ne.jsx)("div", {
className: "near-spot-item-distance",
children: a.distanceStr
}), a.priceLow && (0, ne.jsxs)("div", {
className: "near-spot-item-price",
children: [(0, ne.jsx)("div", {
className: "near-spot-item-price-currency",
children: "¥"
}), (0, ne.jsx)("div", {
className: "near-spot-item-price-num",
children: a.priceLow
}), (0, ne.jsx)("div", {
className: "near-spot-item-price-suffix",
children: "起"
})]
})]
}, a.id)
}))
})
})]
})
},
Un = function (e) {
var n, t, a, i, l, o, c, s, u, m, v, h, A, x = e.className,
_ = e.dataList,
T = e.keyword,
w = e.setActiveIndex,
C = e.serverTime,
k = e.handleDmShowCardClick,
E = e.handleArtistBrandClick,
S = e.handleTravelCardClick,
R = e.curSearchTypeRef,
I = e.activeTab,
L = null == _ || null === (n = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.PERFORM
}))) || void 0 === n || null === (n = n[0]) || void 0 === n ? void 0 : n.nodes,
O = null == _ || null === (t = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.PERFORM
}))) || void 0 === t || null === (t = t[0]) || void 0 === t ? void 0 : t.data,
D = null == _ || null === (a = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.ARTIST
}))) || void 0 === a || null === (a = a[0]) || void 0 === a ? void 0 : a.nodes,
M = null == _ || null === (i = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.ARTIST
}))) || void 0 === i || null === (i = i[0]) || void 0 === i ? void 0 : i.data,
P = null == _ || null === (l = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.BRAND
}))) || void 0 === l || null === (l = l[0]) || void 0 === l ? void 0 : l.nodes,
B = null == _ || null === (o = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.BRAND
}))) || void 0 === o || null === (o = o[0]) || void 0 === o ? void 0 : o.data,
F = null == _ || null === (c = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.NEW_BRAND
}))) || void 0 === c || null === (c = c[0]) || void 0 === c ? void 0 : c.nodes,
U = null == _ || null === (s = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.NEW_BRAND
}))) || void 0 === s || null === (s = s[0]) || void 0 === s ? void 0 : s.data,
H = "true" === "".concat(null == _ || null === (u = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.NEW_BRAND
}))) || void 0 === u || null === (u = u[0]) || void 0 === u ? void 0 : u.more),
W = null == _ || null === (m = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.TRAVEL
}))) || void 0 === m || null === (m = m[0]) || void 0 === m ? void 0 : m.nodes,
G = null == _ || null === (v = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.BANNER
}))) || void 0 === v || null === (v = v[0]) || void 0 === v || null === (v = v.nodes) || void 0 === v || null === (v = v[0]) || void 0 === v ? void 0 : v.data,
V = null == G || null === (h = G.action) || void 0 === h || null === (h = h.item) || void 0 === h ? void 0 : h.trackInfo,
z = null == _ || null === (A = _.filter((function (e) {
return Number(null == e ? void 0 : e.type) === N.NEAR_SPOT
}))) || void 0 === A || null === (A = A[0]) || void 0 === A ? void 0 : A.nodes,
Y = null == P ? void 0 : P[0],
X = null == L ? void 0 : L.length,
K = g === (null == Y ? void 0 : Y.type) || b === (null == Y ? void 0 : Y.type);
(0, le.Ay)("all-tab-banner", (function () {
$({
exposeEventName: null == V ? void 0 : V.exposeEventName,
spmc: "banner",
spmd: "".concat(null == V ? void 0 : V.spmd),
args: (0, r.A)({}, (null == V ? void 0 : V.args) || {})
})
})), (0, le.Ay)("all-tab-artist-log", (function () {
var e, n = ((null == D || null === (e = D[0]) || void 0 === e || null === (e = e.data) || void 0 === e || null === (e = e.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo;
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.artist_ditem.exp"
}, n), {}, {
spmc: "artist",
spmd: "".concat(null == n ? void 0 : n.spmd, "0"),
args: (0, r.A)((0, r.A)({}, (null == n ? void 0 : n.args) || {}), {}, {
type_v2: R.current,
tab_type: y[p.ALL]
})
}))
})), (0, le.Ay)("all-tab-brand-log", (function () {
var e, n = ((null == P || null === (e = P[0]) || void 0 === e || null === (e = e.data) || void 0 === e || null === (e = e.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo;
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.brand_ditem.exp"
}, n), {}, {
spmc: "brand",
spmd: "".concat(null == n ? void 0 : n.spmd, "0"),
args: (0, r.A)((0, r.A)({}, (null == n ? void 0 : n.args) || {}), {}, {
type_v2: R.current,
tab_type: y[p.ALL]
})
}))
})), (0, le.Ay)("all-tab-travel-log", (function () {
var e;
$({
exposeEventName: "/yanchu.search_tourist_item.exp",
spmc: "tourist",
spmd: "item_0",
args: {
view_id: null === (e = W[0]) || void 0 === e || null === (e = e.data) || void 0 === e ? void 0 : e.id,
type_v2: R.current,
tab_type: y[p.ALL],
contentlabel: f[p.ALL]
}
})
})), (0, le.Ay)("more-brand-log", (function () {
$({
spmc: "brand",
spmd: "more",
exposeEventName: "/yanchu.brand_dmore.exp",
args: {
tab_type: y[p.ALL]
}
})
})), (0, le.Ay)("more-artist-log", (function () {
$({
spmc: "artist",
spmd: "more",
exposeEventName: "/yanchu.artist_dmore.exp",
args: {
tab_type: y[p.ALL]
}
})
}));
return (0, ne.jsxs)(j.Ss, {
className: (0, d.A)("all-tab-wrapper", x),
children: [function () {
var e = null == _ ? void 0 : _.map((function (e) {
var n, t;
switch (Number(null !== (n = null == e ? void 0 : e.type) && void 0 !== n ? n : "")) {
case N.NEAR_SPOT:
return (0, ne.jsx)(Fn, {
metadata: null == e ? void 0 : e.data,
spots: z
});
case N.BANNER:
return null != G && G.img ? (0, ne.jsx)(j.Ss, {
className: "all-tab-banner-box",
children: (0, ne.jsx)(j.Ss, {
className: "all-tab-banner",
style: {
backgroundImage: 'url("'.concat((0, ce.zp)({
url: G.img
}), '")')
},
onClick: function () {
ee({
clickEventName: null == V ? void 0 : V.clickEventName,
spmc: "banner",
spmd: "".concat(null == V ? void 0 : V.spmd),
args: (0, r.A)({}, (null == V ? void 0 : V.args) || {})
}), ae.A.navTo(G.url)
}
})
}) : null;
case N.PERFORM:
return (0, ne.jsx)(Te, {
className: "all-tab-show-list",
performData: O,
type: p.ALL,
handleDmShowCardClick: k,
setActiveIndex: w,
list: X > 10 ? null == L ? void 0 : L.slice(0, 10) : L,
showGetMore: (null == L ? void 0 : L.length) >= 10,
serverTime: C,
curSearchTypeRef: R
});
case N.ARTIST:
return (null == D ? void 0 : D.length) > 0 ? (0, ne.jsxs)("div", {
className: "all-tab-wrapper-artist all-tab-artist-log",
children: [(0, ne.jsx)(Pn, {
handleArtistBrandClick: E,
exposeEventName: "/yanchu.artist_ditem.clk",
index: 0,
type: "search-artist",
className: "all-tab-wrapper-item",
data: D,
activeTab: I,
activeTabType: p.ARTIST,
curSearchTypeRef: R,
spmc: "artist"
}), (null == D ? void 0 : D.length) > 1 && (0, ne.jsx)(ye, {
className: "more-artist-log",
content: "查看全部艺人",
onClick: function () {
var e, n = ((null == M || null === (e = M.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo;
ee((0, r.A)((0, r.A)({
clickEventName: "/yanchu.artist_dmore.clk"
}, n), {}, {
spmc: "artist",
spmd: "more",
args: (0, r.A)((0, r.A)({}, (null == n ? void 0 : n.args) || {}), {}, {
tab_type: y[p.ALL]
})
})), w(p.ARTIST)
}
})]
}) : null;
case N.BRAND:
return (null == P ? void 0 : P.length) > 0 && (0, ne.jsxs)("div", {
className: "all-tab-wrapper-brand all-tab-brand-log",
children: [(0, ne.jsx)(Pn, {
handleArtistBrandClick: E,
type: K ? "search-brand" : "search-ip",
className: "all-tab-wrapper-item",
exposeEventName: "/yanchu.brand_ditem.clk",
index: 0,
data: P,
activeTab: I,
activeTabType: p.BRAND,
curSearchTypeRef: R,
spmc: "brand"
}), (null == P ? void 0 : P.length) > 1 && (0, ne.jsx)(ye, {
className: "more-brand-log",
content: "查看全部厂牌",
onClick: function () {
var e, n = ((null == B || null === (e = B.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo;
ee((0, r.A)((0, r.A)({
clickEventName: "/yanchu.brand_dmore.clk"
}, n), {}, {
spmc: "brand",
spmd: "more",
args: (0, r.A)((0, r.A)({}, (null == n ? void 0 : n.args) || {}), {}, {
tab_type: y[p.ALL]
})
})), w(p.BRAND)
}
})]
});
case N.TRAVEL:
return (null == W ? void 0 : W.length) > 0 && (0, ne.jsxs)("div", {
className: "all-tab-wrapper-travel all-tab-travel-log",
children: [(0, ne.jsx)(se.A, {
data: null === (t = W[0]) || void 0 === t ? void 0 : t.data,
onClick: function () {
var e;
S(), ee({
clickEventName: "/yanchu.search_tourist_item.clk",
spmc: "tourist",
spmd: "item_0",
args: {
view_id: null === (e = W[0]) || void 0 === e || null === (e = e.data) || void 0 === e ? void 0 : e.id,
type_v2: R.current,
tab_type: y[p.ALL],
contentlabel: f[p.ALL]
}
})
}
}), (null == W ? void 0 : W.length) > 1 && (0, ne.jsx)(ye, {
className: "more-travel-log",
content: "查看全部景点",
onClick: function () {
w(p.TRAVEL)
}
})]
});
case N.NEW_BRAND:
return (null == F ? void 0 : F.length) > 0 && (0, ne.jsxs)("div", {
className: "all-tab-wrapper-brand all-tab-brand-log",
children: [(0, ne.jsx)(Pn, {
handleArtistBrandClick: E,
type: "search-new-brand",
className: "all-tab-wrapper-item",
exposeEventName: "/yanchu.brand_ditem.clk",
index: 0,
data: F,
activeTab: I,
activeTabType: p.BRAND,
curSearchTypeRef: R,
spmc: "brand",
keyword: T
}), H && (0, ne.jsx)(ye, {
className: "more-brand-log",
content: "查看全部厂牌",
onClick: function () {
var e, n = ((null == U || null === (e = U.action) || void 0 === e ? void 0 : e.item) || {}).trackInfo;
ee((0, r.A)((0, r.A)({
clickEventName: "/yanchu.brand_dmore.clk"
}, n), {}, {
spmc: "brand",
spmd: "more",
args: (0, r.A)((0, r.A)({}, (null == n ? void 0 : n.args) || {}), {}, {
tab_type: y[p.ALL]
})
})), w(p.BRAND)
}
})]
})
}
}));
return (0, ne.jsx)(ne.Fragment, {
children: null == e ? void 0 : e.map((function (e) {
return e || null
}))
})
}(), !!T && (0, ne.jsxs)(j.Ss, {
className: "search-tips",
children: ["“", T, "”相关搜索结果只有这么多啦;"]
})]
})
},
Hn = function (e) {
var n = e.className,
t = e.keyword,
a = e.activeTab,
i = e.exception,
l = e.hasMore,
r = e.isLoading,
o = e.actionType,
c = (0, D.useMemo)((function () {
return null != i && i.isError ? {
text: "加载失败,上拉重新加载",
status: "end"
} : l ? r && o === h.SCROLL ? {
text: "加载中...",
status: "loading"
} : {
text: "",
status: ""
} : {
text: "“".concat(t, "”相关").concat(f[a], "只有这么多啦;"),
status: "end"
}
}), [t, a, i, l, r, o]);
return (0, ne.jsx)(j.Ss, {
className: (0, d.A)("footer-tips", {
"is-end": "end" === c.status
}, n),
children: c.text
})
},
Wn = function (e) {
var n = e.className,
t = e.keyword,
a = e.activeTab,
i = e.dataList,
l = e.exception,
r = e.hasMore,
o = e.scrollLoading,
c = e.actionType,
s = e.onScrollPage,
u = e.serverTime,
m = e.handleDmShowCardClick,
v = e.curSearchTypeRef;
return (0, ne.jsxs)(j.BM, {
className: (0, d.A)("perform-tab-wrapper", n),
scrollY: !0,
enhanced: !0,
enableFlex: !0,
lowerThreshold: 200,
onScrollToLower: s,
children: [(0, ne.jsx)(Te, {
type: p.PERFORM,
className: "perform-show-list",
list: i,
handleDmShowCardClick: m,
showGetMore: !1,
serverTime: u,
curSearchTypeRef: v
}), (0, ne.jsx)(Hn, {
keyword: t,
activeTab: a,
exception: l,
hasMore: r,
isLoading: o,
actionType: c
})]
})
},
Gn = function (e) {
var n = e.className,
t = e.keyword,
a = e.activeTab,
i = e.dataList,
l = void 0 === i ? [] : i,
o = e.exception,
c = e.hasMore,
s = e.scrollLoading,
u = e.actionType,
m = e.onScrollPage,
v = e.handleArtistBrandClick,
p = e.curSearchTypeRef;
return (0, le.ry)(null == l ? void 0 : l.map((function (e, n) {
return "artist-tab-log-".concat(n)
})), (function (e) {
var n, t = ((null == l || null === (n = l[e]) || void 0 === n || null === (n = n.data) || void 0 === n || null === (n = n.action) || void 0 === n ? void 0 : n.item) || {}).trackInfo,
i = void 0 === t ? {} : t;
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.artist_ditem.exp"
}, i), {}, {
spmc: "artist",
spmd: "".concat(null == i ? void 0 : i.spmd).concat(e),
args: (0, r.A)((0, r.A)({}, (null == i ? void 0 : i.args) || {}), {}, {
type_v2: p.current,
tab_type: y[a]
})
}))
}), [l]), (0, ne.jsxs)(j.BM, {
className: (0, d.A)("artist-tab-wrapper", n),
scrollY: !0,
enhanced: !0,
enableFlex: !0,
lowerThreshold: 200,
onScrollToLower: m,
children: [(0, ne.jsx)("div", {
className: "brand-tab-wrapper-list",
children: null == l ? void 0 : l.map((function (e, n) {
return (0, ne.jsxs)(j.Ss, {
className: "artist-tab-log-".concat(n),
children: [(0, ne.jsx)(Pn, {
className: "all-tab-wrapper-item",
data: [e],
index: n,
exposeEventName: "/yanchu.artist_ditem.clk",
type: "search-artist",
activeTab: a,
activeTabType: a,
handleArtistBrandClick: v,
curSearchTypeRef: p,
spmc: "artist"
}), n + 1 !== (null == l ? void 0 : l.length) && (0, ne.jsx)(j.Ss, {
className: "show-divider"
})]
}, "".concat(null == e ? void 0 : e.id, "-").concat(n))
}))
}), (0, ne.jsx)(Hn, {
keyword: t,
activeTab: a,
exception: o,
hasMore: c,
isLoading: s,
actionType: u
})]
})
},
Vn = function (e) {
var n = e.className,
t = e.keyword,
a = e.activeTab,
i = e.dataList,
l = void 0 === i ? [] : i,
o = e.exception,
c = e.hasMore,
s = e.scrollLoading,
u = e.actionType,
m = e.onScrollPage,
v = e.handleArtistBrandClick,
p = e.curSearchTypeRef;
return (0, le.ry)(null == l ? void 0 : l.map((function (e, n) {
return "brand-tab-log-".concat(n)
})), (function (e) {
var n, t = ((null == l || null === (n = l[e]) || void 0 === n || null === (n = n.data) || void 0 === n || null === (n = n.action) || void 0 === n ? void 0 : n.item) || {}).trackInfo,
i = void 0 === t ? {} : t;
$((0, r.A)((0, r.A)({
exposeEventName: "/yanchu.brand_ditem.exp"
}, i), {}, {
spmc: "brand",
spmd: "".concat(null == i ? void 0 : i.spmd).concat(e),
args: (0, r.A)((0, r.A)({}, (null == i ? void 0 : i.args) || {}), {}, {
type_v2: p.current,
tab_type: y[a]
})
}))
}), [l]), (0, ne.jsxs)(j.BM, {
className: (0, d.A)("brand-tab-wrapper", n),
scrollY: !0,
enhanced: !0,
enableFlex: !0,
lowerThreshold: 200,
onScrollToLower: m,
children: [(0, ne.jsx)("div", {
className: "brand-tab-wrapper-list",
children: null == l ? void 0 : l.map((function (e, n) {
var t, i, o = g === (null == e ? void 0 : e.type) || b === (null == e ? void 0 : e.type),
c = (null == e || null === (t = e.data) || void 0 === t ? void 0 : t.cityStationList) || [],
s = (null == e || null === (i = e.data) || void 0 === i || null === (i = i.action) || void 0 === i || null === (i = i.cityFooter) || void 0 === i ? void 0 : i.trackInfo) || {};
return (0, ne.jsxs)(j.Ss, {
className: "brand-tab-log-".concat(n),
children: [(0, ne.jsx)(Pn, {
className: "all-tab-wrapper-item",
index: n,
exposeEventName: "/yanchu.brand_ditem.clk",
type: o ? "search-brand" : "search-ip",
data: [e],
activeTab: a,
activeTabType: a,
handleArtistBrandClick: v,
curSearchTypeRef: p,
spmc: "brand"
}), c.length > 7 ? (0, ne.jsx)(ye, {
className: "more-show-list-log",
onClick: function () {
ee((0, r.A)((0, r.A)({}, s), {}, {
clickEventName: "/yanchu.search_wishcity.clk",
args: (0, r.A)((0, r.A)({}, (null == s ? void 0 : s.args) || {}), {}, {
tab_type: y[a]
})
})),
function (e) {
var n, t = null == e || null === (n = e.data) || void 0 === n ? void 0 : n.id;
if (t) {
var a = "".concat(re.A.h5_shows_url, "dramas.html?ipId=").concat(t, "&tourDialog=1");
ae.A.navTo(a)
}
}(e)
},
content: "查看全部".concat(c.length, "个巡演城市")
}) : null, n + 1 !== (null == l ? void 0 : l.length) && (0, ne.jsx)(j.Ss, {
className: "show-divider"
})]
}, n)
}))
}), (0, ne.jsx)(Hn, {
keyword: t,
activeTab: a,
exception: o,
hasMore: c,
isLoading: s,
actionType: u
})]
})
},
zn = function (e) {
var n = e.className,
t = e.list,
a = void 0 === t ? [] : t,
i = e.type,
l = e.handleTravelCardClick,
r = e.curSearchTypeRef;
return (0, le.ry)(null == a ? void 0 : a.map((function (e, n) {
return "tour-card-log-".concat(n)
})), (function (e) {
var n, t = (null == a || null === (n = a[e]) || void 0 === n ? void 0 : n.data) || {};
$({
exposeEventName: "/yanchu.search_tourist_item.exp",
spmc: "tourist",
spmd: "item_".concat(e),
args: {
view_id: null == t ? void 0 : t.id,
type_v2: r.current,
tab_type: y[i],
contentlabel: f[i]
}
})
}), [a]), 0 === (null == a ? void 0 : a.length) ? null : (0, ne.jsx)(j.Ss, {
className: (0, d.A)("travel-list", n),
children: null == a ? void 0 : a.map((function (e, n) {
var t = (null == e ? void 0 : e.data) || {};
return (0, ne.jsx)(se.A, {
className: "travel-card-item tour-card-log-".concat(n),
onClick: function () {
ee({
clickEventName: "/yanchu.search_tourist_item.clk",
spmc: "tourist",
spmd: "item_".concat(n),
args: {
view_id: null == t ? void 0 : t.id,
type_v2: r.current,
tab_type: y[i],
contentlabel: f[i]
}
}), l()
},
data: t
}, "".concat(t.id, "-").concat(n))
}))
})
},
Yn = function (e) {
var n = e.className,
t = e.dataList,
a = e.keyword,
i = e.activeTab,
l = e.exception,
r = e.hasMore,
o = e.scrollLoading,
c = e.actionType,
s = e.onScrollPage,
u = e.handleTravelCardClick,
m = e.curSearchTypeRef;
return (0, ne.jsxs)(j.BM, {
className: (0, d.A)("travel-tab-wrapper", n),
scrollY: !0,
enhanced: !0,
enableFlex: !0,
lowerThreshold: 200,
onScrollToLower: s,
children: [(0, ne.jsx)(zn, {
className: "travel-tour-list",
type: p.TRAVEL,
list: t,
handleTravelCardClick: u,
curSearchTypeRef: m
}), (0, ne.jsx)(Hn, {
keyword: a,
activeTab: i,
exception: l,
hasMore: r,
isLoading: o,
actionType: c
})]
})
},
Xn = i(7963);
function Kn() {
var e = I.Di.getUserSelectedCitySite(),
n = (0, D.useState)({}),
t = (0, s.A)(n, 2),
a = t[0],
i = t[1],
l = (0, D.useState)(null),
r = (0, s.A)(l, 2),
o = r[0],
c = r[1];
return (0, L.useLoad)((function () {
var e;
null === (e = Nn = (0, Xn.A)({
spmB: v
})) || void 0 === e || e.sendFCP()
})), (0, D.useEffect)((function () {
o && O().setStorage({
key: m,
data: JSON.stringify(o),
success: function () {},
fail: function (e) {}
})
}), [o]), (0, D.useEffect)((function () {
Cn({
cityId: e.damaiId,
comboChannel: "4"
}).then((function (e) {
var n = (0, s.A)(e, 2),
t = n[0],
a = n[1];
t || i(a)
})).finally((function () {
var e, n, t, a;
null === (e = Nn) || void 0 === e || null === (n = e.sendFMP) || void 0 === n || n.call(e), null === (t = Nn) || void 0 === t || null === (a = t.sendFLT) || void 0 === a || a.call(t)
}));
try {
O().getStorage({
key: m,
success: function (e) {
e.data && c(JSON.parse(e.data))
}
})
} catch (e) {}
}), []), [o, a, c]
}
var Jn, qn = (0, me.A)('<path d="M46.3 8c21.2 0 38.3 17.1 38.3 38.3 0 9.7-3.6 18.5-9.5 25.2l12.1 12.1c1 1 1 2.6 0 3.6s-2.6 1-3.6 0l-12-12.1C64.8 81 56 84.6 46.3 84.6 25.1 84.6 8 67.5 8 46.3S25.1 8 46.3 8zm0 6C28.5 14 14 28.5 14 46.3s14.4 32.3 32.3 32.3 32.3-14.4 32.3-32.3S64.1 14 46.3 14z"/>', "SearchOutlinedIcon"),
Zn = (0, D.forwardRef)((function (e, n) {
var t = e.keyword,
a = e.isClearable,
i = void 0 === a || a,
l = e.placeholder,
r = e.onTapClearBtn,
o = void 0 === r ? function () {} : r,
c = e.onInput,
d = void 0 === c ? function () {} : c,
u = e.onConfirm,
m = void 0 === u ? function () {} : u,
v = (0, D.useState)(!0),
p = (0, s.A)(v, 2),
h = p[0],
y = p[1],
f = (0, D.useState)(""),
A = (0, s.A)(f, 2),
N = A[0],
g = A[1];
(0, D.useEffect)((function () {
g(t)
}), [t]);
return (0, ne.jsxs)(j.Ss, {
ref: n,
className: "input-container",
children: [(0, ne.jsx)(qn, {
className: "icon-search-flag",
htmlColor: "#FFCADB"
}), (0, ne.jsx)(j.pd, {
className: "input",
type: "text",
value: N,
focus: h,
placeholder: l,
placeholderStyle: "color:#9C9CA5;",
confirmType: "search",
maxlength: 50,
onInput: function (e) {
var n = e.detail.value;
g(n), d(n)
},
onConfirm: function (e) {
var n = e.detail.value;
!n && g(l), m(n)
}
}), N && i ? (0, ne.jsx)(j.Ss, {
className: "clear-btn",
onClick: function () {
y(!0), g(""), o()
}
}) : null]
})
})),
Qn = (0, D.memo)(Zn, (function (e, n) {
return JSON.stringify(e) === JSON.stringify(n)
})),
$n = i(208),
et = i(2645),
nt = i.n(et),
tt = i(7389),
at = i(9892),
it = i(8477),
lt = (0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)({}, p.ALL, 1), p.PERFORM, 1), p.ARTIST, 1), p.BRAND, 1), p.TRAVEL, 1),
rt = "",
ot = (0, u.A)((0, u.A)((0, u.A)((0, u.A)((0, u.A)({}, p.ALL, !0), p.PERFORM, !0), p.ARTIST, !0), p.BRAND, !0), p.TRAVEL, !0),
ct = nt()((function (e, n) {
n(e, h.INPUT)
}), 500);
function st() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
n = e.curSearchTypeRef,
t = I.Di.getUserSelectedCitySite(),
a = (0, D.useState)({}),
i = (0, s.A)(a, 2),
l = i[0],
d = i[1],
m = (0, D.useState)(p.ALL),
v = (0, s.A)(m, 2),
f = v[0],
A = v[1],
g = (0, D.useState)(h.INPUT),
b = (0, s.A)(g, 2),
x = b[0],
_ = b[1],
w = (0, D.useState)(""),
C = (0, s.A)(w, 2),
k = C[0],
E = C[1],
S = (0, D.useState)(ot),
j = (0, s.A)(S, 2),
R = j[0],
L = j[1],
O = (0, D.useState)(0),
M = (0, s.A)(O, 2),
P = M[0],
B = M[1],
F = (0, D.useState)(),
U = (0, s.A)(F, 2),
H = U[0],
W = U[1],
G = (0, D.useState)(!1),
V = (0, s.A)(G, 2),
z = V[0],
Y = V[1],
X = (0, D.useState)(!1),
K = (0, s.A)(X, 2),
J = K[0],
q = K[1],
Z = (0, D.useRef)(0),
$ = (0, D.useMemo)((function () {
var e, n;
return f === p.ALL ? null == l || null === (e = l[f]) || void 0 === e ? void 0 : e.some((function (e) {
var n;
return !(null == e || null === (n = e.nodes) || void 0 === n || !n.length)
})) : !(null == l || null === (n = l[f]) || void 0 === n || !n.length)
}), [f, l]);
(0, at.A)((function () {
_(h.TAB_CHANGE), oe({
keyword: k
})
}), [f]);
var ee = function (e, n) {
_(n);
var t = null == e ? void 0 : e.trim(),
a = "".concat(n, "-").concat(f, "-").concat(t);
t && a !== rt && (oe({
keyword: t
}), rt = a)
};
(0, D.useEffect)((function () {
if (!k) return rt = "", te(), A(p.ALL), L(ot), void d({});
ct(k, ee)
}), [k]);
var ne = function () {
lt[f] = 1
},
te = function () {
W(void 0), Y(!1)
},
ae = function (e) {
var n = e.index;
te(), A(n)
},
ie = function (e, n) {
d((function (t) {
var a = (0, r.A)({}, t);
return a[f] && n === h.SCROLL ? a[f] = [].concat((0, we.A)(a[f]), (0, we.A)(e)) : a[f] = e || [], (0, r.A)({}, a)
}))
},
le = function (e) {
var n = {};
return e.forEach((function (e) {
n[e.type] || (n[e.type] = []), n[e.type].push(e)
})), n
},
re = function () {
var e = (0, c.A)((0, o.A)().m((function e(n) {
var t, a, i, l, c;
return (0, o.A)().w((function (e) {
for (;;) switch (e.p = e.n) {
case 0:
if (e.p = 0, _(h.SCROLL), Y(!0), R[f]) {
e.n = 1;
break
}
return e.a(2);
case 1:
return lt[f] += 1, e.n = 2, se(n);
case 2:
if (a = e.v, i = a.responseData, !a.responseError) {
e.n = 3;
break
}
return e.a(2);
case 3:
l = new $n.WX(i), c = null == l ? void 0 : l.byComponentType(N[f]), ie((null == c || null === (t = c.data) || void 0 === t ? void 0 : t.nodes) || [], h.SCROLL), L((function (e) {
var n;
return (0, r.A)((0, r.A)({}, e), {}, (0, u.A)({}, f, null == c || null === (n = c.data) || void 0 === n ? void 0 : n.more))
})), e.n = 5;
break;
case 4:
e.p = 4, e.v;
case 5:
return e.p = 5, Y(!1), e.f(5);
case 6:
return e.a(2)
}
}), e, null, [
[0, 4, 5, 6]
])
})));
return function (n) {
return e.apply(this, arguments)
}
}(),
oe = function () {
var e = (0, c.A)((0, o.A)().m((function e(t) {
var a, i, l, c, s, d, m, v, A, g, b, x, _, T, w, C, k, E;
return (0, o.A)().w((function (e) {
for (;;) switch (e.p = e.n) {
case 0:
return a = (t || {}).keyword, Z.current += 1, i = Z.current, e.p = 1, q(!0), ne(), e.n = 2, se(t);
case 2:
if (d = e.v, m = d.responseData, v = d.responseError, i === Z.current) {
e.n = 3;
break
}
return e.a(2);
case 3:
if (!v) {
e.n = 4;
break
}
return e.a(2);
case 4:
if (A = ce(m), g = A.cmsData, b = A.dataList, x = A.errorMsg, _ = A.level3Arr, T = le(_), !x) {
e.n = 5;
break
}
return de({
isError: !0,
message: x
}), e.a(2);
case 5:
w = "true" === String(null == m || null === (l = m.data) || void 0 === l ? void 0 : l.comboDegrade), C = w ? "CDN" : null == m || null === (c = m.data) || void 0 === c ? void 0 : c.searchRequestId, (0, it.ag)(C, a), k = Object.keys(T), E = (null == k ? void 0 : k.length) > 0 ? k.map((function (e) {
return "".concat(e, ":").concat(T[e].length)
})).join("|") : w ? "CDN_NULL" : "", Q({
keyword: a,
type_v2: n.current,
tab_type: y[f],
card_res_cnt: E
}), B(null == m || null === (s = m.data) || void 0 === s ? void 0 : s.serverTime), L((function (e) {
var n, t = f !== p.ALL && "true" === "".concat(null == g || null === (n = g.byComponentType(N[f])) || void 0 === n || null === (n = n.data) || void 0 === n ? void 0 : n.more);
return (0, r.A)((0, r.A)({}, e), {}, (0, u.A)({}, f, t))
})), ie(b, h.INPUT), e.n = 7;
break;
case 6:
e.p = 6, e.v;
case 7:
return e.p = 7, i === Z.current && q(!1), e.f(7);
case 8:
return e.a(2)
}
}), e, null, [
[1, 6, 7, 8]
])
})));
return function (n) {
return e.apply(this, arguments)
}
}(),
ce = function (e) {
var n, t, a, i, l, r, o, c, s, d = new $n.WX(e),
u = null == d ? void 0 : d.componentsArr,
m = null == d || null === (n = d.byComponentType(N.PERFORM)) || void 0 === n ? void 0 : n.data,
v = null == d || null === (t = d.byComponentType(N.ARTIST)) || void 0 === t ? void 0 : t.data,
h = null == d || null === (a = d.byComponentType(N.BRAND)) || void 0 === a ? void 0 : a.data,
y = null == d || null === (i = d.byComponentType(N.TRAVEL)) || void 0 === i ? void 0 : i.data,
A = (null == m ? void 0 : m.nodes) || [],
g = (null == v ? void 0 : v.nodes) || [],
b = (null == h ? void 0 : h.nodes) || [],
x = (null == y ? void 0 : y.nodes) || [],
_ = [],
T = [],
w = (null == m || null === (l = m.data) || void 0 === l ? void 0 : l.contain_sensitive_words) || "",
C = (null == v || null === (r = v.data) || void 0 === r ? void 0 : r.contain_sensitive_words) || "",
k = (null == h || null === (o = h.data) || void 0 === o ? void 0 : o.contain_sensitive_words) || "",
E = (null == h || null === (c = h.data) || void 0 === c ? void 0 : c.contain_sensitive_words) || "";
switch (f) {
case p.ALL:
u.forEach((function (e) {
var n, t, a = e.type; - 1 !== (null === (n = Object.values(N)) || void 0 === n ? void 0 : n.indexOf(Number(a))) && _.push(null == d || null === (t = d.byComponentType(a)) || void 0 === t ? void 0 : t.data)
})), T = d.getLevel3ArrByComponents(_), s = w || C || k;
break;
case p.PERFORM:
_ = A, T = d.getLevel3ArrByComponents([m]), s = w;
break;
case p.ARTIST:
_ = g, T = d.getLevel3ArrByComponents([v]), s = C;
break;
case p.BRAND:
_ = b, T = d.getLevel3ArrByComponents([h]), s = k;
break;
case p.TRAVEL:
_ = x, T = d.getLevel3ArrByComponents([y]), s = E
}
return {
cmsData: d,
dataList: _,
errorMsg: s,
level3Arr: T
}
},
se = function () {
var e = (0, c.A)((0, o.A)().m((function e(n) {
var a, i, l, r, c, d, u, m, v, h, A, N;
return (0, o.A)().w((function (e) {
for (;;) switch (e.p = e.n) {
case 0:
if (a = {
errorCode: tt.bo.FLOW_CONTROL,
returnMessage: tt.n5.error
}, e.p = 1, l = null == n || null === (i = n.keyword) || void 0 === i ? void 0 : i.trim(), Jn) {
e.n = 3;
break
}
return e.n = 2, I.Di.getLocation();
case 2:
Jn = e.v;
case 3:
c = (r = Jn || {}).longitude
d = r.latitude
u = f === p.ALL ? "5.3" : "5.0"
m = f === p.TRAVEL ? "1.0" : u
e.n = 4
return En({
args: JSON.stringify({
pageNo: lt[f],
pageSize: f === p.ALL ? void 0 : 15,
keyword: l,
longitude: "0" === "".concat(c) ? void 0 : c,
latitude: "0" === "".concat(d) ? void 0 : d,
comboDamaiCityId: t.damaiId,
comboChannel: T
}),
patternName: y[f],
patternVersion: m
}, {
downgradeOpt: {
reqParam: {
pageIndex: lt[f],
patternName: y[f],
patternVersion: m,
urlElements: [y[f], m, "bak", T, "3.0", l],
useCdnWhenNodesNull: !1
}
}
});
case 4:
return v = e.v, h = (0, s.A)(v, 2), A = h[0], N = h[1], de({
isError: !!A
}), e.a(2, {
responseData: N,
responseError: A ? a : null
});
case 5:
throw e.p = 5, e.v, de({
isError: !0
}), {
responseData: {},
responseError: a
};
case 6:
return e.a(2)
}
}), e, null, [
[1, 5]
])
})));
return function (n) {
return e.apply(this, arguments)
}
}(),
de = function (e) {
W(e)
},
ue = function () {
var e = (0, c.A)((0, o.A)().m((function e(n) {
var t, a, i, l, r;
return (0, o.A)().w((function (e) {
for (;;) switch (e.p = e.n) {
case 0:
return e.p = 0, e.n = 1, kn({
keyword: null == n || null === (t = n.keyword) || void 0 === t ? void 0 : t.trim()
});
case 1:
if (a = e.v, i = (0, s.A)(a, 2), l = i[0], r = i[1], !l) {
e.n = 2;
break
}
return e.a(2);
case 2:
return e.a(2, r);
case 3:
e.p = 3, e.v;
case 4:
return e.a(2)
}
}), e, null, [
[0, 3]
])
})));
return function (n) {
return e.apply(this, arguments)
}
}(),
me = nt()((function () {
re({
keyword: k
})
}), 300);
return {
keyword: k,
actionType: x,
activeTab: f,
dataSource: l,
exception: H,
hasMore: R,
loading: J,
scrollLoading: z,
activeTabHasData: $,
setKeyword: E,
setActiveTab: A,
changeTab: ae,
handleScrollPage: me,
onSearchWords: oe,
onInputSearch: ee,
handleSearchEgg: ue,
serverTime: P
}
}
var dt = i(3490),
ut = i(8773),
mt = i(5215),
vt = i(1091),
pt = i(6432),
ht = "search-tabs",
yt = function () {
var e = (0, L.useRouter)(),
n = e.params,
t = void 0 === n ? {} : n;
(0, pt.hZ)("utm_value", (null == t ? void 0 : t.utm) || ""), (0, pt.hZ)("sqm_value", (null == t ? void 0 : t.sqm) || "");
var a = null == t ? void 0 : t.keyword,
i = decodeURIComponent((null == t ? void 0 : t.hint) || "") || "搜索演出比赛",
l = t.citycode,
u = t.cityname;
if (!l || !u) {
var m = I.Di.getUserSelectedCitySite();
u = m.name, l = m.damaiId
}
var v = (0, D.useState)(""),
y = (0, s.A)(v, 2),
N = y[0],
g = y[1],
b = Kn(),
x = (0, s.A)(b, 3),
_ = x[0],
T = x[1],
w = x[2],
C = (0, D.useRef)(""),
k = st({
curSearchTypeRef: C
}),
E = k.keyword,
S = k.actionType,
M = k.activeTab,
P = k.dataSource,
F = k.exception,
U = k.hasMore,
H = k.loading,
W = k.scrollLoading,
G = k.activeTabHasData,
V = k.onInputSearch,
z = k.setKeyword,
Y = k.changeTab,
X = k.setActiveTab,
K = k.onSearchWords,
J = k.handleScrollPage,
q = k.handleSearchEgg,
Q = k.serverTime,
$ = (0, D.useMemo)((function () {
return !(null == E || !E.trim())
}), [E]),
ie = function () {
var e = (0, c.A)((0, o.A)().m((function e(n) {
var t;
return (0, o.A)().w((function (e) {
for (;;) switch (e.n) {
case 0:
return g(n), e.n = 1, q({
keyword: n
});
case 1:
null != (t = e.v) && t.url && (B({
keyword: n
}), ae.A.navTo(t.url), setTimeout((function () {
z("")
}), 100));
case 2:
return e.a(2)
}
}), e)
})));
return function (n) {
return e.apply(this, arguments)
}
}();
(0, L.useDidShow)((function () {
R.Ay.sendPV({}, (0, r.A)({
_pageRoute: "pages/search/index"
}, null == e ? void 0 : e.params))
})), (0, D.useEffect)((function () {
if (a && "undefined" !== a) {
var e = decodeURIComponent(a);
C.current = Z.BRING_IN_WORD, z(e), V(e, h.INPUT)
}
}), []), (0, D.useEffect)((function () {
var e = N.trim();
e && (!_ || !_.some((function (n) {
return n.word === e
}))) && w((function (n) {
return [{
word: e
}].concat((n || []).slice(0, 9))
}))
}), [N]), (0, le.Ay)(ht, (function () {
R.Ay.sendGoldLog("EXP", "/yanchu.search.tab_exp", {
spmC: "tab",
spmD: "dtab"
})
}), [E]);
var re = function (e, n) {
var t = +n >= 1e8 && +n < 1e11 && 2;
g(E), (0, vt.A)(n, t || (null == e ? void 0 : e.type), {
item: e,
contentlabel: null == e ? void 0 : e.name
})
},
ce = function (e) {
g(E), ae.A.navTo(e)
},
se = function () {
g(E)
},
de = function (e) {
(function (e) {
R.Ay.sendGoldLog("CLK", "/yanchu.top_dtab.clk", (0, r.A)({
spmC: "tab",
spmD: "dtab_".concat(null == e ? void 0 : e.index)
}, e))
})({
index: A.findIndex((function (n) {
return n.index === e
})) + 1
}), Y({
index: e
}), X(e)
};
return (0, ne.jsxs)(j.Ss, {
className: "container bui-default-light",
children: [(0, ne.jsxs)(j.Ss, {
className: (0, d.A)("header-wrapper", {
"is-searching": $
}),
children: [(0, ne.jsxs)(j.Ss, {
className: "header",
children: [(0, ne.jsx)(j.Ss, {
className: "header__input",
children: (0, ne.jsx)(Qn, {
keyword: E,
placeholder: i,
onTapClearBtn: function () {
return z("")
},
onInput: function (e) {
C.current = Z.TEXT, z(e)
},
onConfirm: function (e) {
! function (e) {
var n = e || i;
ee({
spmc: "top",
spmd: "searchbtn",
clickEventName: "/yanchu.top_searchbtn.clk",
args: {
keyword: n
}
}), C.current = e ? Z.TEXT : Z.PLACE_HOLDER, z(n), ie(n)
}(e)
}
})
}), (0, ne.jsx)(j.Ss, {
className: "header__cancel",
onClick: function () {
O().navigateBack({
delta: 1
})
},
children: "取消"
})]
}), $ && (0, ne.jsx)(j.Ss, {
className: "tabs-wrapper",
children: (0, ne.jsx)(dt.A, {
className: ht,
align: "start",
tabs: A,
value: M,
onChange: function (e, n) {
var t = n.index;
de(t)
}
})
})]
}), (0, ne.jsx)(j.Ss, {
className: (0, d.A)("content", {
"is-searching": $
}),
children: $ ? (0, ne.jsxs)(ne.Fragment, {
children: [!H && !(null != F && F.isError) && G && (0, ne.jsxs)(ne.Fragment, {
children: [(0, ne.jsx)(ut.A, {
className: "search-tab",
value: M,
index: p.ALL,
children: (0, ne.jsx)(Un, {
setActiveIndex: de,
dataList: null == P ? void 0 : P[p.ALL],
handleDmShowCardClick: re,
handleArtistBrandClick: ce,
handleTravelCardClick: se,
keyword: E,
serverTime: Q,
curSearchTypeRef: C,
activeTab: M
})
}), (0, ne.jsx)(ut.A, {
className: "search-tab",
value: M,
index: p.PERFORM,
children: (0, ne.jsx)(Wn, {
handleDmShowCardClick: re,
dataList: null == P ? void 0 : P[p.PERFORM],
keyword: E,
activeTab: M,
exception: F,
hasMore: U.PERFORM,
scrollLoading: W,
actionType: S,
onScrollPage: J,
serverTime: Q,
curSearchTypeRef: C
})
}), (0, ne.jsx)(ut.A, {
className: "search-tab",
value: M,
index: p.ARTIST,
children: (0, ne.jsx)(Gn, {
handleArtistBrandClick: ce,
dataList: null == P ? void 0 : P[p.ARTIST],
keyword: E,
activeTab: M,
exception: F,
hasMore: U.ARTIST,
scrollLoading: W,
actionType: S,
onScrollPage: J,
curSearchTypeRef: C
})
}), (0, ne.jsx)(ut.A, {
className: "search-tab",
value: M,
index: p.BRAND,
children: (0, ne.jsx)(Vn, {
handleArtistBrandClick: ce,
dataList: null == P ? void 0 : P[p.BRAND],
keyword: E,
activeTab: M,
exception: F,
hasMore: U.BRAND,
scrollLoading: W,
actionType: S,
onScrollPage: J,
setActiveIndex: de,
curSearchTypeRef: C
})
}), (0, ne.jsx)(ut.A, {
className: "travel-tab",
value: M,
index: p.TRAVEL,
children: (0, ne.jsx)(Yn, {
dataList: null == P ? void 0 : P[p.TRAVEL],
keyword: E,
activeTab: M,
exception: F,
hasMore: U.TRAVEL,
scrollLoading: W,
actionType: S,
onScrollPage: J,
curSearchTypeRef: C,
handleTravelCardClick: se
})
})]
}), H && S !== h.SCROLL && (0, ne.jsx)(j.Ss, {
className: "content-loading",
children: "加载中..."
}), (null == F ? void 0 : F.isError) && (0, ne.jsx)(mt.A, {
className: (0, d.A)("common-error-empty", {
"no-btn": !(null == F || !F.message)
}),
theme: "show",
type: "common",
message: "",
subTitle: (null == F ? void 0 : F.message) || "小二很忙,系统很累,请稍后再试吧~",
onClick: function () {
return K({
keyword: E
})
}
}), !1 === (null == F ? void 0 : F.isError) && !G && (0, ne.jsx)(mt.A, {
className: "common-error-empty",
theme: "show",
type: "empty",
message: "",
subTitle: '抱歉,没有搜索到"'.concat(E, '"的相关').concat(f[M]),
showButton: !1
})]
}) : (0, ne.jsxs)(j.Ss, {
className: "content__keyword",
children: [(0, ne.jsx)(te, {
title: "搜索历史",
keywords: _,
isClearable: !0,
onTapClearBtn: function () {
return O().showModal({
content: "确认清空搜索历史?",
success: function (e) {
e.confirm && w([])
}
})
},
onTapKeyword: function (e) {
C.current = Z.HISTORY, z(e), ie(e)
}
}), (0, ne.jsx)(oe, {
className: (0, d.A)(_ && _.length ? "has-history" : "no-history"),
data: T,
cityCode: l,
cityName: u
})]
})
})]
})
};
Page((0, l.eU)(yt, "pages/search/index", {
root: {
cn: []
}
}, {
enablePullDownRefresh: !1,
navigationBarTitleText: "搜索",
navigationBarTextStyle: "black",
backgroundTextStyle: "light",
navigationBarBackgroundColor: "#ffffff",
spmB: "search"
} || {}))
}
},
function (e) {
e.O(0, [6907, 8096, 2076], (function () {
return n = 1397, e(e.s = n);
var n
})), e.O()
}
]);