api替换

This commit is contained in:
谢宇宁
2026-11-07 11:14:16 +07:00
parent 0676511eee
commit 38e7edc756
171 changed files with 75869 additions and 1586 deletions
@@ -1,5 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/src_1fapn5h3r0s0-._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1tm80q5b-38hs._.js"],
chunks: ["static/chunks/src_03nh1ny_1upyk._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1tm80q5b-38hs._.js"],
source: "entry"
});
@@ -1,5 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/src_1fapn5h3r0s0-._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/node_modules_1wppmbwp-_2wc._.js","static/chunks/src_1f3ifnztulvuh._.js","static/chunks/node_modules_xgplayer_dist_index_min_css_133k4e2i_djjm.css","static/chunks/node_modules_xgplayer_es_plugins_0axc4cawd0pyo._.js","static/chunks/node_modules_xgplayer_es_player_1-svvw04ko9hh.js","static/chunks/node_modules_xgplayer_es_13l-_cmkijzyo._.js","static/chunks/node_modules_xgplayer-subtitles_es_0le5lb77rm6ob._.js","static/chunks/node_modules_1rc9l3uxi31fi._.js","static/chunks/node_modules_xgplayer-hls_es_1984chmyty8a0._.js","static/chunks/node_modules_xgplayer-streaming-shared_es_0twepkplrsp1l._.js","static/chunks/node_modules_xgplayer-transmuxer_es_0n8gz3g27_otl._.js","static/chunks/node_modules_10j0vhfspwf2w._.js"],
chunks: ["static/chunks/src_03nh1ny_1upyk._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/node_modules_1krh5f60-_0ky._.js","static/chunks/src_1f3ifnztulvuh._.js","static/chunks/node_modules_xgplayer_dist_index_min_css_133k4e2i_djjm.css","static/chunks/node_modules_xgplayer_es_plugins_0axc4cawd0pyo._.js","static/chunks/node_modules_xgplayer_es_player_1-svvw04ko9hh.js","static/chunks/node_modules_xgplayer_es_13l-_cmkijzyo._.js","static/chunks/node_modules_xgplayer-subtitles_es_0le5lb77rm6ob._.js","static/chunks/node_modules_1rc9l3uxi31fi._.js","static/chunks/node_modules_xgplayer-hls_es_1984chmyty8a0._.js","static/chunks/node_modules_xgplayer-streaming-shared_es_0twepkplrsp1l._.js","static/chunks/node_modules_xgplayer-transmuxer_es_0n8gz3g27_otl._.js","static/chunks/node_modules_10j0vhfspwf2w._.js"],
source: "entry"
});
@@ -1,5 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/src_1fapn5h3r0s0-._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1tt3dkub452cm._.js"],
chunks: ["static/chunks/src_03nh1ny_1upyk._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1tt3dkub452cm._.js"],
source: "entry"
});
@@ -1,5 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/src_1fapn5h3r0s0-._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/node_modules_1wppmbwp-_2wc._.js","static/chunks/src_1f3ifnztulvuh._.js","static/chunks/node_modules_xgplayer_dist_index_min_css_133k4e2i_djjm.css","static/chunks/node_modules_xgplayer_es_plugins_0axc4cawd0pyo._.js","static/chunks/node_modules_xgplayer_es_player_1-svvw04ko9hh.js","static/chunks/node_modules_xgplayer_es_13l-_cmkijzyo._.js","static/chunks/node_modules_xgplayer-subtitles_es_0le5lb77rm6ob._.js","static/chunks/node_modules_1rc9l3uxi31fi._.js","static/chunks/node_modules_xgplayer-hls_es_1984chmyty8a0._.js","static/chunks/node_modules_xgplayer-streaming-shared_es_0twepkplrsp1l._.js","static/chunks/node_modules_xgplayer-transmuxer_es_0n8gz3g27_otl._.js","static/chunks/node_modules_10j0vhfspwf2w._.js"],
chunks: ["static/chunks/src_03nh1ny_1upyk._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/node_modules_1krh5f60-_0ky._.js","static/chunks/src_1f3ifnztulvuh._.js","static/chunks/node_modules_xgplayer_dist_index_min_css_133k4e2i_djjm.css","static/chunks/node_modules_xgplayer_es_plugins_0axc4cawd0pyo._.js","static/chunks/node_modules_xgplayer_es_player_1-svvw04ko9hh.js","static/chunks/node_modules_xgplayer_es_13l-_cmkijzyo._.js","static/chunks/node_modules_xgplayer-subtitles_es_0le5lb77rm6ob._.js","static/chunks/node_modules_1rc9l3uxi31fi._.js","static/chunks/node_modules_xgplayer-hls_es_1984chmyty8a0._.js","static/chunks/node_modules_xgplayer-streaming-shared_es_0twepkplrsp1l._.js","static/chunks/node_modules_xgplayer-transmuxer_es_0n8gz3g27_otl._.js","static/chunks/node_modules_10j0vhfspwf2w._.js"],
source: "entry"
});
@@ -1,5 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/src_1fapn5h3r0s0-._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1-8qwjw2nq0gn._.js"],
chunks: ["static/chunks/src_03nh1ny_1upyk._.js","static/chunks/node_modules_1mqpzaajz52kk._.js","static/chunks/src_1hgxmgbnmdhh-._.css","static/chunks/src_1-8qwjw2nq0gn._.js"],
source: "entry"
});
@@ -0,0 +1,29 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[project]/node_modules/xgplayer-hls/es/index.js [app-client] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
"static/chunks/node_modules_xgplayer-hls_es_1984chmyty8a0._.js",
"static/chunks/node_modules_xgplayer-streaming-shared_es_0twepkplrsp1l._.js",
"static/chunks/node_modules_xgplayer-transmuxer_es_0n8gz3g27_otl._.js",
"static/chunks/node_modules_10j0vhfspwf2w._.js"
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/node_modules/xgplayer-hls/es/index.js [app-client] (ecmascript)");
});
});
}),
"[project]/node_modules/xgplayer/es/index.js [app-client] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
"static/chunks/node_modules_xgplayer_es_plugins_0axc4cawd0pyo._.js",
"static/chunks/node_modules_xgplayer_es_player_1-svvw04ko9hh.js",
"static/chunks/node_modules_xgplayer_es_13l-_cmkijzyo._.js",
"static/chunks/node_modules_xgplayer-subtitles_es_0le5lb77rm6ob._.js",
"static/chunks/node_modules_1rc9l3uxi31fi._.js"
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[project]/node_modules/xgplayer/es/index.js [app-client] (ecmascript)");
});
});
}),
]);
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -464,7 +464,6 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$common$
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$common$2f$decrypted$2d$image$2e$tsx__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/components/common/decrypted-image.tsx [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$play$2f$XgPlayHost$2e$tsx__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/components/play/XgPlayHost.tsx [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/lib/api/playlet.ts [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/lib/auth/session.ts [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$media$2f$playback$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/lib/media/playback.ts [app-client] (ecmascript)");
;
var _s = __turbopack_context__.k.signature(), _s1 = __turbopack_context__.k.signature();
@@ -476,7 +475,6 @@ var _s = __turbopack_context__.k.signature(), _s1 = __turbopack_context__.k.sign
;
;
;
;
function PlayGlyph() {
return /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("svg", {
viewBox: "0 0 72 72",
@@ -491,7 +489,7 @@ function PlayGlyph() {
strokeWidth: "2"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 15,
lineNumber: 14,
columnNumber: 7
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("path", {
@@ -500,13 +498,13 @@ function PlayGlyph() {
stroke: "none"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 16,
lineNumber: 15,
columnNumber: 7
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 14,
lineNumber: 13,
columnNumber: 5
}, this);
}
@@ -526,7 +524,7 @@ _c = PlayGlyph;
children: "本集请在 黄果短剧 App 观看"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 29,
lineNumber: 28,
columnNumber: 13
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("p", {
@@ -537,13 +535,13 @@ _c = PlayGlyph;
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 30,
lineNumber: 29,
columnNumber: 13
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 28,
lineNumber: 27,
columnNumber: 11
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(__TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$common$2f$app$2d$download$2e$tsx__$5b$app$2d$client$5d$__$28$ecmascript$29$__["AppDownloadLink"], {
@@ -562,51 +560,51 @@ _c = PlayGlyph;
rx: "3"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 34,
lineNumber: 33,
columnNumber: 15
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("path", {
d: "M10 5h4M11 19h2"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 35,
lineNumber: 34,
columnNumber: 15
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 33,
lineNumber: 32,
columnNumber: 13
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("span", {
children: "下载 App 继续观看"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 37,
lineNumber: 36,
columnNumber: 13
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 32,
lineNumber: 31,
columnNumber: 11
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 27,
lineNumber: 26,
columnNumber: 9
}, this) : /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("p", {
className: "hg-app-gate-fallback",
children: "本集视频暂未开放,请稍后再试"
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 41,
lineNumber: 40,
columnNumber: 9
}, this)
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 25,
lineNumber: 24,
columnNumber: 5
}, this);
}
@@ -626,7 +624,6 @@ function PlayScreen(param) {
let { basePath, poster, title, episode, total, src: initialSrc, canWatch: initialCanWatch = true, statusText: initialStatusText, chapterId, playletId, playletSlug, episodeBase } = param;
_s1();
const router = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$navigation$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRouter"])();
const reportedKeyRef = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"])(null);
const [started, setStarted] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])(false);
const [src, setSrc] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])("");
const [canWatch, setCanWatch] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])(initialCanWatch);
@@ -661,20 +658,10 @@ function PlayScreen(param) {
void ({
"PlayScreen.useEffect": async ()=>{
try {
await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ensureGuestSession"])();
const token = (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["authToken"])();
if (!token || cancelled) {
if (!cancelled) {
setLoadingSrc(false);
setStatusText(`第 ${episode} 集 · 片源加载失败`);
}
return;
}
const data = await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["fetchPlayletChapterDetail"])({
chapterId,
playletId,
playletSlug,
token
playletSlug
});
if (cancelled) return;
const nextSrc = data.canWatch ? (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$media$2f$playback$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["resolvePlayURL"])(data.videoUrl) : "";
@@ -716,34 +703,6 @@ function PlayScreen(param) {
const openEpisode = (next)=>{
router.push(episodeBase ? `${episodeBase}/${next}` : `${basePath}/play/${next}`);
};
const onPlaySuccess = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallback"])({
"PlayScreen.useCallback[onPlaySuccess]": async ()=>{
if (!chapterId || !playletId) return;
const key = `${playletId}:${chapterId}`;
if (reportedKeyRef.current === key) return;
reportedKeyRef.current = key;
try {
await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ensureGuestSession"])();
const token = (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["authToken"])();
if (!token) {
reportedKeyRef.current = null;
return;
}
await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["reportPlayletChapterWatch"])({
chapterId,
playletId
}, token);
} catch (error) {
reportedKeyRef.current = null;
if ("TURBOPACK compile-time truthy", 1) {
console.warn("[playlet-chapter-watch]", error);
}
}
}
}["PlayScreen.useCallback[onPlaySuccess]"], [
chapterId,
playletId
]);
const playable = Boolean(canWatch && src);
const startPlayback = ()=>{
if (canWatch) setStarted(true);
@@ -759,13 +718,12 @@ function PlayScreen(param) {
src: src,
poster: poster,
clickToPlay: false,
onPlaySuccess: onPlaySuccess,
onEnded: ()=>{
if (episode < total) openEpisode(episode + 1);
}
}, `${chapterId || episode}-${src}`, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 210,
lineNumber: 177,
columnNumber: 9
}, this) : null,
showCover ? /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("div", {
@@ -777,7 +735,7 @@ function PlayScreen(param) {
alt: `${title}封面`
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 224,
lineNumber: 190,
columnNumber: 11
}, this),
canWatch && !loadingSrc ? /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
@@ -788,18 +746,18 @@ function PlayScreen(param) {
onClick: startPlayback,
children: /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(PlayGlyph, {}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 227,
lineNumber: 193,
columnNumber: 15
}, this)
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 226,
lineNumber: 192,
columnNumber: 13
}, this) : !canWatch && !loadingSrc ? /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(AppGate, {
title: title
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 230,
lineNumber: 196,
columnNumber: 13
}, this) : /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("div", {
className: "play-screen-overlay",
@@ -809,28 +767,28 @@ function PlayScreen(param) {
children: status
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 233,
lineNumber: 199,
columnNumber: 15
}, this)
}, void 0, false, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 232,
lineNumber: 198,
columnNumber: 13
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 223,
lineNumber: 189,
columnNumber: 9
}, this) : null
]
}, void 0, true, {
fileName: "[project]/src/components/play/PlayScreen.tsx",
lineNumber: 208,
lineNumber: 175,
columnNumber: 5
}, this);
}
_s1(PlayScreen, "mQWya7G/QfWDzzz47aI34ALgXns=", false, function() {
_s1(PlayScreen, "jiSek6L8yknEOI5gMrfF3i4L8vM=", false, function() {
return [
__TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$navigation$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRouter"]
];
@@ -1104,21 +1062,12 @@ __turbopack_context__.s([
]);
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/next/dist/compiled/react/jsx-dev-runtime.js [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f40$heroui$2f$react$2f$dist$2f$components$2f$toast$2f$toast$2d$queue$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/@heroui/react/dist/components/toast/toast-queue.js [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$common$2f$app$2d$download$2e$tsx__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/components/common/app-download.tsx [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/lib/api/playlet.ts [app-client] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/lib/auth/session.ts [app-client] (ecmascript)");
;
var _s = __turbopack_context__.k.signature();
"use client";
;
;
;
;
;
const iconPaths = {
like: "M855.738182 198.283636A252.043636 252.043636 0 0 0 670.254545 116.363636a225.28 225.28 0 0 0-160.814545 63.069091 248.32 248.32 0 0 0-152.901818-53.294545A251.578182 251.578182 0 0 0 171.287273 209.454545 287.883636 287.883636 0 0 0 162.909091 588.567273l256 275.083636a122.181818 122.181818 0 0 0 90.065454 39.563636 121.716364 121.716364 0 0 0 89.832728-39.563636l256-272.989091 2.792727-3.723636a290.443636 290.443636 0 0 0-1.861818-388.654546z",
save: "M857.6 327.68l-104.494545-34.210909a178.036364 178.036364 0 0 1-90.763637-66.56l-64-89.367273a104.96 104.96 0 0 0-23.272727-23.272727 106.123636 106.123636 0 0 0-148.48 23.272727l-64.930909 89.367273a179.665455 179.665455 0 0 1-90.763637 66.792727l-104.494545 33.978182a106.821818 106.821818 0 0 0-53.061818 162.909091l93.090909 128.930909a35.84 35.84 0 0 1 6.981818 21.643636v158.952728a109.381818 109.381818 0 0 0 5.12 33.512727 105.658182 105.658182 0 0 0 133.818182 67.956364l128-39.33091a107.985455 107.985455 0 0 1 64.232727 0l127.534546 39.33091a106.123636 106.123636 0 0 0 139.636363-101.469091v-158.254546a35.84 35.84 0 0 1 6.981818-21.643636l93.09091-128.930909a104.494545 104.494545 0 0 0 15.127272-29.556364 106.821818 106.821818 0 0 0-69.352727-134.050909z m-192 83.549091a34.909091 34.909091 0 0 1-48.174545 10.938182l-46.545455-29.090909a34.909091 34.909091 0 0 1 37.003636-59.112728l46.545455 29.090909a34.909091 34.909091 0 0 1 11.170909 48.174546z",
share: "M910.661818 117.992727a114.734545 114.734545 0 0 0-113.803636-16.756363L134.050909 363.752727a138.472727 138.472727 0 0 0-15.592727 250.181818l97.978182 54.225455 1.861818 162.909091a87.272727 87.272727 0 0 0 137.309091 69.818182L482.210909 814.545455l180.363636 99.374545a138.472727 138.472727 0 0 0 203.869091-101.236364L954.181818 224.814545a113.803636 113.803636 0 0 0-43.52-106.821818z",
phone: "M756.363636 69.818182h-488.727272A128.232727 128.232727 0 0 0 139.636364 197.818182v628.363636a128.232727 128.232727 0 0 0 128 128h488.727272a128 128 0 0 0 128-128v-628.363636A128 128 0 0 0 756.363636 69.818182z m-139.636363 698.181818h-209.454546a34.909091 34.909091 0 0 1 0-69.818182h209.454546a34.909091 34.909091 0 0 1 0 69.818182z"
};
@@ -1133,57 +1082,18 @@ function ActionIcon(param) {
d: iconPaths[name]
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 22,
lineNumber: 17,
columnNumber: 7
}, this)
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 21,
lineNumber: 16,
columnNumber: 5
}, this);
}
_c = ActionIcon;
function PlayDetailActions(param) {
let { dramaId, showDownload = false, isLike = false, isCollect = false } = param;
_s();
const [liked, setLiked] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])(isLike);
const [saved, setSaved] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])(isCollect);
const [pending, setPending] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"])(false);
(0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useEffect"])({
"PlayDetailActions.useEffect": ()=>{
setLiked(isLike);
setSaved(isCollect);
}
}["PlayDetailActions.useEffect"], [
dramaId,
isLike,
isCollect
]);
async function toggle(kind) {
if (pending || !dramaId) return;
const next = kind === "like" ? !liked : !saved;
if (kind === "like") setLiked(next);
else setSaved(next);
setPending(true);
try {
await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ensureGuestSession"])();
const token = (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$auth$2f$session$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["authToken"])();
if (!token) throw new Error("缺少登录态");
if (kind === "like") await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["setPlayletLike"])({
id: dramaId,
isLike: next
}, token);
else await (0, __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$lib$2f$api$2f$playlet$2e$ts__$5b$app$2d$client$5d$__$28$ecmascript$29$__["setPlayletCollect"])({
id: dramaId,
isCollect: next
}, token);
} catch {
if (kind === "like") setLiked(!next);
else setSaved(!next);
} finally{
setPending(false);
}
}
let { showDownload = false } = param;
async function onShare() {
const url = ("TURBOPACK compile-time truthy", 1) ? window.location.href : "TURBOPACK unreachable";
if (!url) return;
@@ -1221,58 +1131,6 @@ function PlayDetailActions(param) {
return /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("div", {
className: "play-detail-actions",
children: [
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
type: "button",
"data-play-action": "like",
"aria-pressed": liked,
onClick: ()=>toggle("like"),
children: [
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(ActionIcon, {
name: "like"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 103,
columnNumber: 9
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("span", {
children: liked ? "已点赞" : "点赞"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 104,
columnNumber: 9
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 102,
columnNumber: 7
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
type: "button",
"data-play-action": "save",
"aria-pressed": saved,
onClick: ()=>toggle("save"),
children: [
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(ActionIcon, {
name: "save"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 107,
columnNumber: 9
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("span", {
children: saved ? "已收藏" : "收藏"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 108,
columnNumber: 9
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 106,
columnNumber: 7
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("button", {
type: "button",
"data-play-action": "share",
@@ -1282,20 +1140,20 @@ function PlayDetailActions(param) {
name: "share"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 111,
lineNumber: 63,
columnNumber: 9
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])("span", {
children: "分享"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 112,
lineNumber: 64,
columnNumber: 9
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 110,
lineNumber: 62,
columnNumber: 7
}, this),
showDownload ? /*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(__TURBOPACK__imported__module__$5b$project$5d2f$src$2f$components$2f$common$2f$app$2d$download$2e$tsx__$5b$app$2d$client$5d$__$28$ecmascript$29$__["AppDownloadLink"], {
@@ -1306,30 +1164,29 @@ function PlayDetailActions(param) {
children: "下载 APP"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 116,
lineNumber: 68,
columnNumber: 11
}, this),
/*#__PURE__*/ (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$dev$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxDEV"])(ActionIcon, {
name: "phone"
}, void 0, false, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 117,
lineNumber: 69,
columnNumber: 11
}, this)
]
}, void 0, true, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 115,
lineNumber: 67,
columnNumber: 9
}, this) : null
]
}, void 0, true, {
fileName: "[project]/src/components/play/play-detail-actions.tsx",
lineNumber: 101,
lineNumber: 61,
columnNumber: 5
}, this);
}
_s(PlayDetailActions, "lzqudJ0GmhswpfdRp7f8saVHPyo=");
_c1 = PlayDetailActions;
var _c, _c1;
__turbopack_context__.k.register(_c, "ActionIcon");
File diff suppressed because one or more lines are too long
@@ -3176,7 +3176,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$next$2f$dist
/**
* 浏览器接口根地址。
* 留空时走同域 `/api/*`,由服务端转到 API_PROXY_TARGET。
*/ const DEFAULT_UPSTREAM = "https://sgdj-h5.80sygtm.com";
*/ const DEFAULT_UPSTREAM = "https://webhgbapi.mfcg.me";
const raw = ("TURBOPACK compile-time value", "");
const API_BASE_URL = (("TURBOPACK compile-time truthy", 1) ? raw : "TURBOPACK unreachable").replace(/\/$/, "");
function pointsAtThisServer(base) {
File diff suppressed because one or more lines are too long