Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

125 lines
4.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 531fec74779be1e3.a9da5a4aa8.js
* Module id: 632341
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214),
i = e.i(358379);
e.i(693602);
var r = e.i(321661),
s = e.i(734911),
a = e.i(41671),
n = e.i(722573),
l = e.i(677588),
o = e.i(41114),
h = e.i(661251);
function d({
project: e,
templateUuid: d,
tabName: u,
className: c = "",
disabled: f = !1,
children: g,
}) {
let { projectUuid: m, recommendOtherRes: p } = e ?? {},
[v, y] = (0, i.useState)(!1),
E = (0, i.useCallback)(
(e) => {
e.stopPropagation(),
!f &&
d &&
((0, l.reportLog)({
e: "libtv.feed.card.view_process.click",
var: {
project_uuid: m ?? "",
tab_name: u ?? "",
utLogMap: p?.utLogMap || null,
},
}),
y(!0));
},
[d, f],
),
T = (0, i.useCallback)(() => {
y(!1);
}, []);
return d
? (0, t.jsxs)("div", {
className: c,
children: [
(0, t.jsx)(n.Tooltip, {
label: "用户未公开画布",
disabled: !f,
withArrow: !0,
children: (0, t.jsx)("div", {
role: "button",
tabIndex: 0,
className: "inline-flex cursor-pointer",
onClick: E,
children:
g ??
(0, t.jsxs)("div", {
className: (0, o.cn)(
"text-fg-muted flex h-[32px] shrink-0 cursor-pointer items-center justify-center gap-0.5 whitespace-nowrap rounded-lg px-3 text-xs transition-colors duration-200",
!f &&
"hover:text-fg-default hover:bg-black/[0.08] dark:hover:bg-white/10",
f && "cursor-not-allowed opacity-50",
),
children: [
"查看创作过程",
(0, t.jsx)(a.Icons.arrowRight, {
width: 14,
height: 14,
}),
],
}),
}),
}),
(0, t.jsxs)(s.Modal, {
opened: v,
onClose: T,
centered: !0,
withCloseButton: !1,
padding: 0,
radius: "lg",
size: (0, r.isMobile)()
? "calc(100vw - 60px)"
: "calc(100vw - 160px)",
styles: {
content: { backgroundColor: "#1a1a1a", overflow: "hidden" },
body: {
height: "calc(100vh - 80px)",
padding: 0,
border: "0.5px solid #525252",
borderRadius: "16px",
overflow: "hidden",
},
overlay: {
backgroundColor: "rgba(0, 0, 0, 0.14)",
backdropFilter: "blur(4px)",
},
},
children: [
(0, t.jsx)("button", {
type: "button",
className:
"border-border-default bg-bg-surface text-fg-default absolute right-4 top-4 z-50 flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg border shadow-sm transition-colors hover:bg-neutral-200 dark:border-transparent dark:bg-white/10 dark:text-white/80 dark:shadow-none dark:hover:bg-white/20 dark:hover:text-white",
onClick: T,
"aria-label": "关闭",
children: (0, t.jsx)(a.Icons.x, { width: 18, height: 18 }),
}),
v && (0, t.jsx)(h.default, { templateUuid: d }),
],
}),
],
})
: null;
}
e.s([], 260097), e.s(["ViewProcessModal", () => d], 632341);
};
export default moduleFactory;