251 lines
10 KiB
JavaScript
251 lines
10 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 258d1983af3dc9c8.198b926b86.js
|
|
* Module id: 334583
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(462214),
|
|
r = e.i(358379),
|
|
n = e.i(228949),
|
|
a = e.i(962869),
|
|
o = e.i(549116);
|
|
e.i(606823);
|
|
var l = e.i(448345);
|
|
e.i(370357);
|
|
var s = e.i(492394),
|
|
c = e.i(185264);
|
|
e.i(693602);
|
|
var u = e.i(995422),
|
|
d = e.i(573132),
|
|
f = e.i(50602),
|
|
m = e.i(734911),
|
|
h = e.i(452195);
|
|
let g = (e) => {
|
|
let t = (0, r.useCallback)(() => (0, d.createTeam)(e), [e]);
|
|
return (0, l.useDataFetchingHooks)(t);
|
|
};
|
|
e.s([
|
|
"FreeTeamModal",
|
|
0,
|
|
(e) => {
|
|
let { currentLoginUserInfo: l } = (0, s.usePersonalInfo)(),
|
|
{ syncVipInfo: d } = (0, c.useUserVipInfo)(),
|
|
[p, b] = (0, r.useState)(0),
|
|
{ createNewTeamModalVisible: v } = (0,
|
|
c.useTeamVipPurchaseModalStore)(),
|
|
{
|
|
isLoading: x,
|
|
fetchData: y,
|
|
res: w,
|
|
} = g({ memberCount: 0 === p ? 20 : 100 });
|
|
(0, r.useEffect)(() => {
|
|
w?.teamId &&
|
|
((0, a.setFlag)(a.OpenInviteMemberAction),
|
|
u.isTV
|
|
? window.location.reload()
|
|
: (window.location.href = "/team-detail"));
|
|
}, [w, u.isTV]);
|
|
let C = () => {
|
|
(0, o.closeNewTeamModal)();
|
|
};
|
|
return v
|
|
? (0, t.jsx)(m.Modal, {
|
|
opened: v,
|
|
onClose: C,
|
|
centered: !0,
|
|
size: "auto",
|
|
withCloseButton: !1,
|
|
closeOnEscape: !1,
|
|
classNames: {
|
|
content:
|
|
"!bg-[transparent] shadow-none no-scrollbar !overflow-visible",
|
|
body: "px-10",
|
|
overlay: "backdrop-blur-[7px]",
|
|
},
|
|
children: (0, t.jsxs)("div", {
|
|
className: `${h.default.mainC} !p-0`,
|
|
children: [
|
|
(0, t.jsx)(f.LoadingOverlay, { visible: x }),
|
|
(0, t.jsx)("img", {
|
|
className: "w-[390px]",
|
|
src: "https://liblibai-online.liblib.cloud/web/1656e2f1b3c74f1ba823b610f1b2cbdf/c9acfa8c-1096-404d-827c-8cfcdedcd4f2.jpg",
|
|
alt: "",
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className: h.default.inner,
|
|
children: [
|
|
(0, t.jsxs)("svg", {
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
width: "24",
|
|
height: "24",
|
|
viewBox: "0 0 24 24",
|
|
fill: "none",
|
|
className: h.default.closeBtn,
|
|
onClick: () => {
|
|
C();
|
|
},
|
|
children: [
|
|
(0, t.jsx)("rect", {
|
|
x: "18.1113",
|
|
y: "3.73816",
|
|
width: "2",
|
|
height: "20",
|
|
transform: "rotate(45 18.1113 3.73816)",
|
|
fill: "#2F3640",
|
|
}),
|
|
(0, t.jsx)("rect", {
|
|
x: "3.96924",
|
|
y: "5.15225",
|
|
width: "2",
|
|
height: "20",
|
|
transform: "rotate(-45 3.96924 5.15225)",
|
|
fill: "#2F3640",
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className: "text-[26px] text-[#333] font-[500]",
|
|
children: "创建团队",
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className:
|
|
"mt-6 flex justify-center gap-5 items-center",
|
|
children: [
|
|
(0, t.jsxs)("div", {
|
|
className: "flex flex-col items-center gap-4",
|
|
children: [
|
|
(0, t.jsxs)("div", {
|
|
className: "relative",
|
|
children: [
|
|
(0, t.jsx)(n.default, {
|
|
avatarWidth: "72px",
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className:
|
|
"flex justify-center absolute -bottom-1 left-0 right-0",
|
|
children: (0, t.jsx)("div", {
|
|
className:
|
|
"bg-[#FCF3E6] text-[#E08909] rounded-full px-[10px] text-[12px] font-[500] leading-[22px]",
|
|
children: "个人",
|
|
}),
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className:
|
|
"text-[12px] text-[#999] font-[500] max-w-[100px] truncate",
|
|
children: l?.nickname,
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsxs)("svg", {
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
width: "24",
|
|
height: "24",
|
|
viewBox: "0 0 24 24",
|
|
fill: "none",
|
|
className: "relative -top-4 w-6",
|
|
children: [
|
|
(0, t.jsx)("path", {
|
|
d: "M11.4302 5.92969L17.5002 11.9997L11.4302 18.0697",
|
|
stroke: "#D0D0D0",
|
|
strokeWidth: "1.5",
|
|
strokeMiterlimit: "10",
|
|
strokeLinecap: "round",
|
|
strokeLinejoin: "round",
|
|
}),
|
|
(0, t.jsx)("path", {
|
|
d: "M6.43018 5.92969L12.5002 11.9997L6.43018 18.0697",
|
|
stroke: "#D0D0D0",
|
|
strokeWidth: "1.5",
|
|
strokeMiterlimit: "10",
|
|
strokeLinecap: "round",
|
|
strokeLinejoin: "round",
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className: "flex flex-col items-center gap-4",
|
|
children: [
|
|
(0, t.jsxs)("div", {
|
|
className: "relative",
|
|
children: [
|
|
(0, t.jsx)("img", {
|
|
src: "https://liblibai-online.liblib.cloud/web/1656e2f1b3c74f1ba823b610f1b2cbdf/8086e376-e9b2-4124-9826-cf6c1453ae05.png",
|
|
className: "w-[80px] p-1",
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className:
|
|
"flex justify-center absolute -bottom-1 left-0 right-0 ",
|
|
children: (0, t.jsx)("div", {
|
|
className: h.default.teamLabel,
|
|
children: "团队",
|
|
}),
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className:
|
|
"text-[12px] text-[#333333] font-[500] max-w-[100px] truncate",
|
|
children: [l?.nickname, "的团队"],
|
|
}),
|
|
],
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className:
|
|
"text-[12px] mt-7 w-full text-[#191919] font-[500]",
|
|
children: [
|
|
(0, t.jsx)("span", {
|
|
className: "text-[#FF2D2D] mr-1",
|
|
children: "*",
|
|
}),
|
|
"预估使用人数",
|
|
],
|
|
}),
|
|
(0, t.jsxs)("div", {
|
|
className:
|
|
"flex items-center w-full text-[12px] gap-2 mt-2",
|
|
children: [
|
|
(0, t.jsx)("div", {
|
|
className: `${h.default.btn} ${0 === p ? h.default.selectedBtn : h.default.normalBtn}`,
|
|
onClick: () => b(0),
|
|
children: "1-20人",
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className: `${h.default.btn} ${1 === p ? h.default.selectedBtn : h.default.normalBtn}`,
|
|
onClick: () => b(1),
|
|
children: "20人以上",
|
|
}),
|
|
],
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className: h.default.mainBtn,
|
|
onClick: () => {
|
|
x || y();
|
|
},
|
|
children: "免费创建团队",
|
|
}),
|
|
(0, t.jsx)("div", {
|
|
className:
|
|
"text-[#999] text-[12px] mt-2 leading-[22px]",
|
|
children: "团队可邀请多人加入,一人付费全员共享",
|
|
}),
|
|
],
|
|
}),
|
|
],
|
|
}),
|
|
})
|
|
: null;
|
|
},
|
|
"useCreateTeamHooks",
|
|
0,
|
|
g,
|
|
]);
|
|
};
|
|
|
|
export default moduleFactory;
|