@24city/web-console 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,696 @@
1
+ import { jsxs as r, jsx as e, Fragment as L } from "react/jsx-runtime";
2
+ import { Card as T, Button as C, Typography as ee, Tag as Ne, Skeleton as q, Banner as Me, RadioGroup as Ue, Avatar as Re, Progress as Oe, Space as he, Modal as De } from "@douyinfe/semi-ui";
3
+ import { IconExternalOpen as fe, IconGift as Be, IconRefresh as ye, IconLock as Ve, IconDesktop as je, IconUserGroup as ve, IconShield as qe, IconTick as se, IconMinus as He, IconCrown as Ge, IconUser as me, IconChevronRight as Qe, IconExit as Ye } from "@douyinfe/semi-icons";
4
+ import { useParams as Je, useNavigate as ie, useLocation as re, Navigate as ce } from "react-router";
5
+ import { S as Ke, F as te, e as j, c as Xe } from "./page-YBG0dEN1.js";
6
+ import { u as Q, a as O, b as D } from "./context-CaVim6ZO.js";
7
+ import { q as z, m as We, u as Se, C as Ce, i as Ze, d as _e, r as ue } from "./logout-signal-CiD_zY5M.js";
8
+ import { H as Y, I as Pe, q as J, l as et, J as $e, m as ne, O as ke, i as we, r as oe, g as H, n as Le, z as xe, y as tt, k as nt, B as at, w as st, L as it, M as rt, p as ct, h as ot, F as lt, s as Ie, D as dt, G as ht, N as mt, x as _t } from "./wallet-badge-Dt8fv-Du.js";
9
+ import { L as le } from "./link-button-giJEcTmG.js";
10
+ import { useState as ut, useRef as pe, useEffect as Te } from "react";
11
+ const pt = {
12
+ /** 统一资料(显示名称)、修改登录密码、登录设备与导出个人数据 */
13
+ settings: "/app/settings",
14
+ /** 当前空间在 24.city 各产品里的积分消耗 */
15
+ points: "/app/points",
16
+ /** 套餐和商品订单 */
17
+ orders: "/app/orders",
18
+ /** 加入的空间、团队成员与邀请 */
19
+ spaces: "/app/spaces"
20
+ }, Ae = (t) => {
21
+ const n = (t == null ? void 0 : t.trim()) ?? "";
22
+ if (!n) return null;
23
+ try {
24
+ const s = new URL(n);
25
+ return s.protocol !== "https:" && s.protocol !== "http:" ? null : `${s.origin}${s.pathname.replace(/\/+$/, "")}`;
26
+ } catch {
27
+ return null;
28
+ }
29
+ }, G = (t, n) => {
30
+ const s = Ae(t);
31
+ return s ? `${s}${pt[n]}` : null;
32
+ }, ae = (t, n) => {
33
+ const s = Ae(t);
34
+ if (!s) return null;
35
+ const i = new URLSearchParams();
36
+ return n.productCode && i.set("product_code", n.productCode), i.set("return_url", n.returnUrl), n.spaceId && i.set("space_id", n.spaceId), n.spaceType && i.set("space_type", n.spaceType), n.priceCode && i.set("price_code", n.priceCode), `${s}/plans?${i.toString()}`;
37
+ }, gt = "_center_14d6l_7", bt = "_aside_14d6l_21", Nt = "_identityCard_14d6l_27", ft = "_identity_14d6l_27", yt = "_identityAvatar_14d6l_42", vt = "_identityText_14d6l_55", St = "_identityName_14d6l_64", Ct = "_identitySpace_14d6l_76", Pt = "_identitySpaceName_14d6l_91", $t = "_identityRole_14d6l_98", kt = "_identityStats_14d6l_108", wt = "_identityStat_14d6l_108", Lt = "_identityStatLabel_14d6l_129", xt = "_identityStatValue_14d6l_135", It = "_nav_14d6l_147", Tt = "_navItem_14d6l_156", At = "_navIcon_14d6l_191", zt = "_navLabel_14d6l_202", Et = "_navArrow_14d6l_207", Ft = "_asideFoot_14d6l_223", Mt = "_logout_14d6l_228", Ut = "_main_14d6l_249", Rt = "_head_14d6l_262", Ot = "_title_14d6l_268", Dt = "_description_14d6l_277", Bt = "_card_14d6l_286", Vt = "_usage_14d6l_285", jt = "_fields_14d6l_318", qt = "_field_14d6l_318", Ht = "_fieldLabel_14d6l_331", Gt = "_fieldValue_14d6l_337", Qt = "_fieldText_14d6l_345", Yt = "_fieldMuted_14d6l_358", Jt = "_fieldHint_14d6l_364", Kt = "_mono_14d6l_370", Xt = "_inlineTag_14d6l_379", Wt = "_settingList_14d6l_384", Zt = "_settingRow_14d6l_389", en = "_settingIcon_14d6l_405", tn = "_settingText_14d6l_418", nn = "_settingTitle_14d6l_426", an = "_settingDescription_14d6l_433", sn = "_settingAction_14d6l_439", rn = "_note_14d6l_443", cn = "_centerLink_14d6l_463", on = "_centerLinkIcon_14d6l_469", ln = "_heroCard_14d6l_477", dn = "_hero_14d6l_477", hn = "_heroMain_14d6l_501", mn = "_heroEyebrow_14d6l_510", _n = "_heroEyebrowText_14d6l_525", un = "_heroValue_14d6l_536", pn = "_heroMeta_14d6l_546", gn = "_heroActions_14d6l_560", bn = "_heroFoot_14d6l_569", Nn = "_ownerOnly_14d6l_587", fn = "_heroSkeleton_14d6l_709", a = {
38
+ center: gt,
39
+ aside: bt,
40
+ identityCard: Nt,
41
+ identity: ft,
42
+ identityAvatar: yt,
43
+ identityText: vt,
44
+ identityName: St,
45
+ identitySpace: Ct,
46
+ identitySpaceName: Pt,
47
+ identityRole: $t,
48
+ identityStats: kt,
49
+ identityStat: wt,
50
+ identityStatLabel: Lt,
51
+ identityStatValue: xt,
52
+ nav: It,
53
+ navItem: Tt,
54
+ navIcon: At,
55
+ navLabel: zt,
56
+ navArrow: Et,
57
+ asideFoot: Ft,
58
+ logout: Mt,
59
+ main: Ut,
60
+ head: Rt,
61
+ title: Ot,
62
+ description: Dt,
63
+ card: Bt,
64
+ usage: Vt,
65
+ fields: jt,
66
+ field: qt,
67
+ fieldLabel: Ht,
68
+ fieldValue: Gt,
69
+ fieldText: Qt,
70
+ fieldMuted: Yt,
71
+ fieldHint: Jt,
72
+ mono: Kt,
73
+ inlineTag: Xt,
74
+ settingList: Wt,
75
+ settingRow: Zt,
76
+ settingIcon: en,
77
+ settingText: tn,
78
+ settingTitle: nn,
79
+ settingDescription: an,
80
+ settingAction: sn,
81
+ note: rn,
82
+ centerLink: cn,
83
+ centerLinkIcon: on,
84
+ heroCard: ln,
85
+ hero: dn,
86
+ heroMain: hn,
87
+ heroEyebrow: mn,
88
+ heroEyebrowText: _n,
89
+ heroValue: un,
90
+ heroMeta: pn,
91
+ heroActions: gn,
92
+ heroFoot: bn,
93
+ ownerOnly: Nn,
94
+ heroSkeleton: fn
95
+ }, E = ({
96
+ href: t,
97
+ children: n,
98
+ type: s = "secondary",
99
+ size: i = "default",
100
+ label: c
101
+ }) => t ? /* @__PURE__ */ r(
102
+ le,
103
+ {
104
+ theme: s === "primary" ? "solid" : s === "text" ? "borderless" : "light",
105
+ type: s === "primary" ? "primary" : "tertiary",
106
+ size: i,
107
+ href: t,
108
+ target: "_blank",
109
+ "aria-label": c,
110
+ className: a.centerLink,
111
+ children: [
112
+ n,
113
+ /* @__PURE__ */ e(fe, { className: a.centerLinkIcon, "aria-hidden": "true" })
114
+ ]
115
+ }
116
+ ) : null, X = ({
117
+ icon: t,
118
+ title: n,
119
+ description: s,
120
+ action: i
121
+ }) => /* @__PURE__ */ r("div", { className: a.settingRow, children: [
122
+ /* @__PURE__ */ e("span", { className: a.settingIcon, "aria-hidden": "true", children: t }),
123
+ /* @__PURE__ */ r("div", { className: a.settingText, children: [
124
+ /* @__PURE__ */ e("span", { className: a.settingTitle, children: n }),
125
+ /* @__PURE__ */ e("span", { className: a.settingDescription, children: s })
126
+ ] }),
127
+ i ? /* @__PURE__ */ e("div", { className: a.settingAction, children: i }) : null
128
+ ] }), yn = ({ data: t }) => {
129
+ var g;
130
+ const n = Q(), { PointsDetail: s } = O(), { session: i, activeSpace: c, activeSpaceId: l, globalUserId: o, wallet: d } = t, p = G(i == null ? void 0 : i.accountCenterUrl, "points"), _ = c ? Y(c) : "当前空间", u = (g = d.data) == null ? void 0 : g.availablePoints;
131
+ return /* @__PURE__ */ r(L, { children: [
132
+ /* @__PURE__ */ r(T, { className: a.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
133
+ /* @__PURE__ */ r("div", { className: a.hero, "data-tone": "primary", children: [
134
+ /* @__PURE__ */ r("div", { className: a.heroMain, children: [
135
+ /* @__PURE__ */ r("span", { className: a.heroEyebrow, title: _, children: [
136
+ /* @__PURE__ */ e(Be, { "aria-hidden": "true" }),
137
+ /* @__PURE__ */ r("span", { className: a.heroEyebrowText, children: [
138
+ "可用积分 · ",
139
+ _
140
+ ] })
141
+ ] }),
142
+ /* @__PURE__ */ e("span", { className: a.heroValue, "aria-live": "polite", children: d.isPending ? "读取中" : d.isError || u === void 0 ? "暂不可用" : z(u) }),
143
+ /* @__PURE__ */ e("span", { className: a.heroMeta, children: "积分属于当前空间,24.city 各产品共用。" })
144
+ ] }),
145
+ /* @__PURE__ */ r("div", { className: a.heroActions, children: [
146
+ /* @__PURE__ */ e(C, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(ye, { "aria-hidden": "true" }), disabled: d.isFetching, onClick: () => void d.refetch(), children: "刷新" }),
147
+ /* @__PURE__ */ e(E, { type: "primary", href: p, label: "全部积分消耗(在统一账号中心打开)", children: "全部积分消耗" })
148
+ ] })
149
+ ] }),
150
+ /* @__PURE__ */ e("div", { className: a.heroFoot, children: /* @__PURE__ */ e("span", { children: s ? `下面是你本人在 ${n.shortName} 里的扣费明细;当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。` : "当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。" }) })
151
+ ] }),
152
+ s ? /* @__PURE__ */ e("div", { className: a.usage, children: /* @__PURE__ */ e(s, { activeSpaceId: l, globalUserId: o }) }) : null
153
+ ] });
154
+ }, V = ({ label: t, children: n, hint: s }) => /* @__PURE__ */ r("div", { className: a.field, children: [
155
+ /* @__PURE__ */ e("span", { className: a.fieldLabel, children: t }),
156
+ /* @__PURE__ */ r("div", { className: a.fieldValue, children: [
157
+ n,
158
+ s ? /* @__PURE__ */ e("span", { className: a.fieldHint, children: s }) : null
159
+ ] })
160
+ ] }), vn = ({ data: t }) => {
161
+ var g;
162
+ const n = Q(), { session: s, activeSpace: i, profile: c, globalUserId: l } = t, o = s == null ? void 0 : s.accountCenterUrl, d = ((g = c.data) == null ? void 0 : g.nickName) ?? "", p = Pe(i == null ? void 0 : i.role), _ = G(o, "settings"), u = G(o, "spaces");
163
+ return /* @__PURE__ */ r(L, { children: [
164
+ /* @__PURE__ */ e(T, { title: "账号信息", className: a.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ r("div", { className: a.fields, children: [
165
+ /* @__PURE__ */ e(V, { label: "昵称", hint: `首次登录 ${n.shortName} 时从统一账号带来`, children: /* @__PURE__ */ e("span", { className: a.fieldText, children: d || (c.isPending ? "读取中" : "未设置") }) }),
166
+ /* @__PURE__ */ e(V, { label: "统一账号 ID", hint: "联系客服时可以提供", children: /* @__PURE__ */ e(ee.Text, { copyable: { copyTip: "复制", successTip: "已复制" }, className: a.mono, children: l }) }),
167
+ /* @__PURE__ */ e(V, { label: "当前空间", children: /* @__PURE__ */ r("span", { className: a.fieldText, children: [
168
+ i ? Y(i) : "暂不可用",
169
+ i && J(i) ? /* @__PURE__ */ e(Ne, { size: "small", color: "blue", className: a.inlineTag, children: "团队" }) : null,
170
+ p ? /* @__PURE__ */ r("span", { className: a.fieldMuted, children: [
171
+ "· 我是",
172
+ p
173
+ ] }) : null
174
+ ] }) }),
175
+ /* @__PURE__ */ e(V, { label: "本次登录有效至", hint: "到期后重新登录即可", children: /* @__PURE__ */ e("span", { className: a.fieldText, children: s ? We(s.absoluteExpiresAt) : "暂无" }) })
176
+ ] }) }),
177
+ /* @__PURE__ */ r(T, { title: "登录与安全", className: a.card, bordered: !1, headerLine: !1, children: [
178
+ /* @__PURE__ */ r("div", { className: a.settingList, children: [
179
+ /* @__PURE__ */ e(
180
+ X,
181
+ {
182
+ icon: /* @__PURE__ */ e(Ve, {}),
183
+ title: "登录密码",
184
+ description: "验证已绑定的手机号后修改。改完后,24.city 所有产品都用新密码登录。",
185
+ action: /* @__PURE__ */ e(E, { href: _, label: "修改密码(在统一账号中心打开)", children: "修改密码" })
186
+ }
187
+ ),
188
+ /* @__PURE__ */ e(
189
+ X,
190
+ {
191
+ icon: /* @__PURE__ */ e(je, {}),
192
+ title: "登录设备与个人数据",
193
+ description: "查看登录过的设备,导出你的个人数据。",
194
+ action: /* @__PURE__ */ e(E, { href: _, label: "查看登录设备(在统一账号中心打开)", children: "前往查看" })
195
+ }
196
+ ),
197
+ /* @__PURE__ */ e(
198
+ X,
199
+ {
200
+ icon: /* @__PURE__ */ e(ve, {}),
201
+ title: "空间与成员",
202
+ description: "查看你加入的空间;团队所有者和管理员在这里邀请、管理成员。",
203
+ action: /* @__PURE__ */ e(E, { href: u, label: "管理空间与成员(在统一账号中心打开)", children: "前往管理" })
204
+ }
205
+ )
206
+ ] }),
207
+ /* @__PURE__ */ r("div", { className: a.note, children: [
208
+ /* @__PURE__ */ e(qe, { "aria-hidden": "true" }),
209
+ /* @__PURE__ */ e("span", { children: _ ? `${n.shortName} 使用 24.city 统一账号登录,不保存你的密码和验证码。以上设置在统一账号中心修改,所有产品同步生效。` : "统一账号中心的地址暂时不可用,请稍后刷新页面再试。" })
210
+ ] })
211
+ ] })
212
+ ] });
213
+ }, W = {
214
+ free: { tone: "basic", tagline: "先免费体验", benefits: [] },
215
+ standard: { tone: "standard", badge: "推荐", tagline: "个人用户的常用之选", benefits: ["按积分扣费,用多少扣多少"] },
216
+ pro: { tone: "pro", tagline: "高频使用,积分更充足", benefits: ["每月积分更多,适合批量使用"] }
217
+ }, Sn = {
218
+ tone: "team",
219
+ tagline: "团队一起用,套餐和积分共用",
220
+ benefits: ["成员共用套餐和积分"]
221
+ }, Cn = (t, n) => t.spaceType === "team" ? n.teamPlanCopy ?? Sn : t.isDefault || t.tier <= 0 ? W.free : t.tier === 1 ? W.standard : W.pro, ze = (t, n = {}) => {
222
+ var s;
223
+ return ((s = n.planCopy) == null ? void 0 : s[t.code]) ?? Cn(t, n);
224
+ }, Ee = (t, n = [], s = {}) => {
225
+ const i = [], c = (l, o = !0) => {
226
+ i.some((d) => d.text === l) || i.push({ text: l, included: o });
227
+ };
228
+ t.monthlyPoints > 0 && c(t.isDefault ? `每月赠送 ${z(t.monthlyPoints)} 积分` : `每月 ${z(t.monthlyPoints)} 积分`), t.spaceType === "team" && t.includedSeats > 0 && c(`含 ${z(t.includedSeats)} 个成员席位`);
229
+ for (const l of et(t, n, s)) c(l.text, l.included);
230
+ for (const l of ze(t, s).benefits) c(l);
231
+ return i;
232
+ }, Pn = (t, n) => t.prices.filter((c) => c.billingPeriod === n && c.amountCents > 0).reduce((c, l) => !c || l.amountCents < c.amountCents ? l : c, null) ?? $e(t), $n = (t, n) => {
233
+ if (n.billingPeriod !== "year") return "";
234
+ const s = ne({ amountCents: Math.round(n.amountCents / 12), currency: n.currency }), i = t.prices.find((l) => l.billingPeriod === "month" && l.currency === n.currency && l.amountCents > 0), c = i ? i.amountCents * 12 - n.amountCents : 0;
235
+ return c > 0 ? `约 ${s}/月 · 比月付省 ${ne({ amountCents: c, currency: n.currency })}` : `约 ${s}/月`;
236
+ }, kn = "_subtitle_m4zgm_7", wn = "_grid_m4zgm_16", Ln = "_skeleton_m4zgm_22", xn = "_card_m4zgm_30", In = "_section_m4zgm_62", Tn = "_badge_m4zgm_90", An = "_top_m4zgm_109", zn = "_art_m4zgm_139", En = "_name_m4zgm_160", Fn = "_tagline_m4zgm_178", Mn = "_price_m4zgm_195", Un = "_amount_m4zgm_202", Rn = "_period_m4zgm_218", On = "_priceNote_m4zgm_227", Dn = "_body_m4zgm_244", Bn = "_benefits_m4zgm_252", Vn = "_benefit_m4zgm_252", jn = "_check_m4zgm_268", qn = "_action_m4zgm_304", Hn = "_cta_m4zgm_304", Gn = "_ctaCurrent_m4zgm_345", Qn = "_ctaNote_m4zgm_354", m = {
237
+ subtitle: kn,
238
+ grid: wn,
239
+ skeleton: Ln,
240
+ card: xn,
241
+ section: In,
242
+ badge: Tn,
243
+ top: An,
244
+ art: zn,
245
+ name: En,
246
+ tagline: Fn,
247
+ price: Mn,
248
+ amount: Un,
249
+ period: Rn,
250
+ priceNote: On,
251
+ body: Dn,
252
+ benefits: Bn,
253
+ benefit: Vn,
254
+ check: jn,
255
+ action: qn,
256
+ cta: Hn,
257
+ ctaCurrent: Gn,
258
+ ctaNote: Qn
259
+ }, Yn = { month: "/月", year: "/年", one_time: "" }, Jn = [
260
+ { label: "按月付", value: "month" },
261
+ { label: "按年付", value: "year" }
262
+ ], ge = (t, n) => t.some((s) => s.prices.some((i) => i.billingPeriod === n && i.amountCents > 0)), Kn = ({
263
+ plan: t,
264
+ price: n,
265
+ catalog: s,
266
+ current: i,
267
+ focus: c,
268
+ action: l,
269
+ custom: o
270
+ }) => {
271
+ const d = ze(t, o), p = n ? $n(t, n) : "长期有效", _ = d.badge ?? (c ? "推荐升级" : void 0);
272
+ return /* @__PURE__ */ r(
273
+ "div",
274
+ {
275
+ className: m.card,
276
+ "data-tone": d.tone,
277
+ "data-current": i ? "true" : "false",
278
+ "data-focus": c && !i ? "true" : "false",
279
+ role: "group",
280
+ "aria-label": t.name,
281
+ children: [
282
+ i ? /* @__PURE__ */ e("span", { className: m.badge, "data-kind": "current", children: "当前套餐" }) : _ ? /* @__PURE__ */ e("span", { className: m.badge, children: _ }) : null,
283
+ /* @__PURE__ */ r("div", { className: d.tone === "pro" ? `${m.top} semi-always-light` : m.top, children: [
284
+ /* @__PURE__ */ e("span", { className: m.art, "aria-hidden": "true" }),
285
+ /* @__PURE__ */ e("span", { className: m.name, children: t.name }),
286
+ /* @__PURE__ */ e("span", { className: m.tagline, children: d.tagline }),
287
+ /* @__PURE__ */ e("span", { className: m.price, children: n ? /* @__PURE__ */ r(L, { children: [
288
+ /* @__PURE__ */ e("span", { className: m.amount, children: ne(n) }),
289
+ /* @__PURE__ */ e("span", { className: m.period, children: Yn[n.billingPeriod] })
290
+ ] }) : /* @__PURE__ */ e("span", { className: m.amount, children: "免费" }) }),
291
+ /* @__PURE__ */ e("span", { className: m.priceNote, children: p || " " })
292
+ ] }),
293
+ /* @__PURE__ */ r("div", { className: m.body, children: [
294
+ /* @__PURE__ */ e("div", { className: m.benefits, role: "list", "aria-label": `${t.name}权益`, children: Ee(t, s, o).map((u) => /* @__PURE__ */ r("div", { className: m.benefit, "data-included": u.included ? "true" : "false", role: "listitem", children: [
295
+ /* @__PURE__ */ e("span", { className: m.check, "aria-hidden": "true", children: u.included ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(He, {}) }),
296
+ /* @__PURE__ */ e("span", { children: u.text })
297
+ ] }, u.text)) }),
298
+ /* @__PURE__ */ e("div", { className: m.action, children: l })
299
+ ] })
300
+ ]
301
+ }
302
+ );
303
+ }, Xn = ({ data: t, focusPlan: n }) => {
304
+ const { config: s } = D(), i = O(), { session: c, activeSpace: l, activeSpaceId: o, subscription: d, wallet: p, allowed: _ } = t, u = ke(_), [g, f] = ut("month"), A = l ? J(l) : !1, F = we(l), x = d.isError && oe(d.error), P = d.data ?? null, y = (u.data ?? []).filter((h) => h.spaceType === (A ? "team" : "personal")), M = `${window.location.origin}${H(s.routes.app, "subscription")}`, $ = (h) => {
305
+ var k;
306
+ return ae(c == null ? void 0 : c.accountCenterUrl, { productCode: (k = p.data) == null ? void 0 : k.productCode, returnUrl: M, spaceId: A ? o : void 0, priceCode: h });
307
+ }, v = ge(y, "month") && ge(y, "year"), w = pe(null), I = pe(!1), N = !!(n && y.some((h) => h.code === n));
308
+ Te(() => {
309
+ var h, k;
310
+ !N || I.current || (I.current = !0, (k = (h = w.current) == null ? void 0 : h.scrollIntoView) == null || k.call(h, { behavior: "smooth", block: "start" }));
311
+ }, [N]);
312
+ const K = (h, k, R) => {
313
+ if (h.isDefault || !k)
314
+ return R ? /* @__PURE__ */ e(C, { theme: "light", type: "tertiary", block: !0, disabled: !0, className: m.ctaCurrent, children: "正在使用" }) : /* @__PURE__ */ e("span", { className: m.ctaNote, children: "会员到期后回到免费版" });
315
+ if (!F) return /* @__PURE__ */ e("span", { className: m.ctaNote, children: x ? "请团队所有者续费" : "请团队所有者购买" });
316
+ const B = R ? "续费" : x ? `续费${h.name}` : !P || P.isDefault ? "立即开通" : h.tier > P.tier ? `升级到${h.name}` : `选择${h.name}`, de = $(k.code);
317
+ if (!de) return null;
318
+ const Fe = B.includes(h.name) ? B : `${B}${h.name}`;
319
+ return /* @__PURE__ */ e(le, { block: !0, className: m.cta, href: de, target: "_blank", "aria-label": `${Fe}(在统一账号中心打开)`, children: B });
320
+ };
321
+ return u.isPending ? /* @__PURE__ */ e(T, { title: "会员套餐", className: a.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e("div", { className: m.grid, children: [0, 1, 2].map((h) => /* @__PURE__ */ e("div", { className: m.skeleton, children: /* @__PURE__ */ e(q, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(q.Paragraph, { rows: 4 }) }) }, h)) }) }) : u.isError ? /* @__PURE__ */ e(T, { title: "会员套餐", className: a.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e(Me, { type: "info", fullMode: !1, closeIcon: null, description: "暂时读不到套餐价格,可以在统一账号中心查看全部套餐。", children: /* @__PURE__ */ e(E, { size: "small", href: $(), label: "查看全部套餐(在统一账号中心打开)", children: "查看全部套餐" }) }) }) : y.length ? /* @__PURE__ */ e("div", { ref: w, children: /* @__PURE__ */ r(
322
+ T,
323
+ {
324
+ title: "会员套餐",
325
+ className: `${a.card} ${m.section}`,
326
+ bordered: !1,
327
+ headerLine: !1,
328
+ headerExtraContent: v ? /* @__PURE__ */ e(
329
+ Ue,
330
+ {
331
+ type: "button",
332
+ buttonSize: "small",
333
+ options: Jn,
334
+ value: g,
335
+ onChange: (h) => f(h.target.value),
336
+ "aria-label": "付费周期"
337
+ }
338
+ ) : null,
339
+ children: [
340
+ /* @__PURE__ */ e("span", { className: m.subtitle, children: "价格取自 24.city 统一账号中心,点按钮去统一账号中心付款,付款后回到这里。" }),
341
+ /* @__PURE__ */ e("div", { className: m.grid, children: y.map((h) => {
342
+ const k = Pn(h, g), R = !!(P && P.planCode === h.code);
343
+ return /* @__PURE__ */ e(
344
+ Kn,
345
+ {
346
+ plan: h,
347
+ price: k,
348
+ catalog: u.data ?? [],
349
+ current: R,
350
+ focus: h.code === n,
351
+ action: K(h, k, R),
352
+ custom: i
353
+ },
354
+ h.code
355
+ );
356
+ }) })
357
+ ]
358
+ }
359
+ ) }) : null;
360
+ }, Wn = "_team_13j8p_7", Zn = "_art_13j8p_22", ea = "_text_13j8p_30", ta = "_eyebrow_13j8p_39", na = "_title_13j8p_49", aa = "_description_13j8p_57", sa = "_highlights_13j8p_63", ia = "_highlight_13j8p_63", ra = "_highlightIcon_13j8p_83", ca = "_action_13j8p_88", oa = "_cta_13j8p_96", la = "_ctaIcon_13j8p_116", da = "_price_13j8p_121", S = {
361
+ team: Wn,
362
+ art: Zn,
363
+ text: ea,
364
+ eyebrow: ta,
365
+ title: na,
366
+ description: aa,
367
+ highlights: sa,
368
+ highlight: ia,
369
+ highlightIcon: ra,
370
+ action: ca,
371
+ cta: oa,
372
+ ctaIcon: la,
373
+ price: da
374
+ }, ha = ({ href: t, plan: n }) => {
375
+ const s = Q(), { teamPromoHighlights: i = [] } = O(), c = n ? $e(n) : null, l = [
376
+ n && n.includedSeats > 0 ? `含 ${z(n.includedSeats)} 个成员席位` : "",
377
+ n && n.monthlyPoints > 0 ? `每月 ${z(n.monthlyPoints)} 积分` : "",
378
+ "套餐和积分团队共用",
379
+ ...i
380
+ ].filter(Boolean);
381
+ return /* @__PURE__ */ r("section", { className: S.team, "aria-label": "开通团队版", children: [
382
+ /* @__PURE__ */ e("span", { className: S.art, "aria-hidden": "true" }),
383
+ /* @__PURE__ */ r("div", { className: S.text, children: [
384
+ /* @__PURE__ */ e("span", { className: S.eyebrow, children: "团队版" }),
385
+ /* @__PURE__ */ r("span", { className: S.title, children: [
386
+ "和同事一起用 ",
387
+ s.shortName
388
+ ] }),
389
+ /* @__PURE__ */ e("span", { className: S.description, children: "开通团队版会创建一个团队空间,你是所有者;套餐、席位和积分归团队共用。" }),
390
+ /* @__PURE__ */ e("div", { className: S.highlights, role: "list", "aria-label": "团队版要点", children: l.map((o) => /* @__PURE__ */ r("span", { className: S.highlight, role: "listitem", children: [
391
+ /* @__PURE__ */ e(se, { className: S.highlightIcon, "aria-hidden": "true" }),
392
+ o
393
+ ] }, o)) })
394
+ ] }),
395
+ t ? /* @__PURE__ */ r("div", { className: S.action, children: [
396
+ /* @__PURE__ */ r(le, { className: S.cta, href: t, target: "_blank", "aria-label": "开通团队版(在统一账号中心打开)", children: [
397
+ "开通团队版",
398
+ /* @__PURE__ */ e(fe, { className: S.ctaIcon, "aria-hidden": "true" })
399
+ ] }),
400
+ c ? /* @__PURE__ */ r("span", { className: S.price, children: [
401
+ Le(c),
402
+ "起"
403
+ ] }) : null
404
+ ] }) : null
405
+ ] });
406
+ }, ma = ({ data: t, focusPlan: n }) => {
407
+ var I;
408
+ const { config: s } = D(), { session: i, activeSpace: c, activeSpaceId: l, wallet: o, subscription: d, allowed: p } = t, _ = ke(p), u = i == null ? void 0 : i.accountCenterUrl, g = c ? J(c) : !1, f = we(c), A = c ? Y(c) : "当前空间", F = `${window.location.origin}${H(s.routes.app, "subscription")}`, x = (I = o.data) == null ? void 0 : I.productCode, P = ae(u, { productCode: x, returnUrl: F, spaceId: g ? l : void 0 }), y = ae(u, { productCode: x, returnUrl: F, spaceType: "team" }), M = G(u, "orders"), $ = d.isError && oe(d.error), v = d.data, w = (N) => f ? /* @__PURE__ */ e(E, { type: "primary", href: P, label: `${N}(在统一账号中心打开)`, children: N }) : /* @__PURE__ */ e("span", { className: a.ownerOnly, children: $ ? "请团队所有者续费" : "请团队所有者购买" });
409
+ return /* @__PURE__ */ r(L, { children: [
410
+ /* @__PURE__ */ r(T, { className: a.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
411
+ /* @__PURE__ */ r("div", { className: a.hero, "data-tone": $ ? "warning" : "primary", children: [
412
+ /* @__PURE__ */ r("div", { className: a.heroMain, children: [
413
+ /* @__PURE__ */ r("span", { className: a.heroEyebrow, title: A, children: [
414
+ /* @__PURE__ */ e(Ge, { "aria-hidden": "true" }),
415
+ /* @__PURE__ */ r("span", { className: a.heroEyebrowText, children: [
416
+ "当前套餐 · ",
417
+ A
418
+ ] })
419
+ ] }),
420
+ d.isPending ? /* @__PURE__ */ e(q, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(q.Paragraph, { rows: 2, className: a.heroSkeleton }) }) : $ ? /* @__PURE__ */ r(L, { children: [
421
+ /* @__PURE__ */ e("span", { className: a.heroValue, children: "团队版已到期" }),
422
+ /* @__PURE__ */ e("span", { className: a.heroMeta, children: "该团队的团队版已到期,请在统一账号中心续费后再使用,续费后成员继续共用套餐和积分。" })
423
+ ] }) : d.isError ? /* @__PURE__ */ r(L, { children: [
424
+ /* @__PURE__ */ e("span", { className: a.heroValue, children: "暂不可用" }),
425
+ /* @__PURE__ */ e("span", { className: a.heroMeta, children: "暂时读不到当前套餐,请稍后重试。" })
426
+ ] }) : v ? /* @__PURE__ */ r(L, { children: [
427
+ /* @__PURE__ */ e("span", { className: a.heroValue, children: xe(v) }),
428
+ /* @__PURE__ */ r("span", { className: a.heroMeta, children: [
429
+ /* @__PURE__ */ e(Ne, { size: "small", color: "green", children: "生效中" }),
430
+ tt(v)
431
+ ] })
432
+ ] }) : /* @__PURE__ */ r(L, { children: [
433
+ /* @__PURE__ */ e("span", { className: a.heroValue, children: "未开通" }),
434
+ /* @__PURE__ */ e("span", { className: a.heroMeta, children: "当前空间还没有生效的套餐。" })
435
+ ] })
436
+ ] }),
437
+ /* @__PURE__ */ r("div", { className: a.heroActions, children: [
438
+ d.isError && !$ ? /* @__PURE__ */ e(C, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(ye, { "aria-hidden": "true" }), onClick: () => void d.refetch(), children: "重试" }) : null,
439
+ d.isPending ? null : $ ? w("续费团队版") : v && !v.isDefault ? w("续费或升级") : w(v ? "升级套餐" : "选择套餐")
440
+ ] })
441
+ ] }),
442
+ /* @__PURE__ */ r("div", { className: a.heroFoot, children: [
443
+ /* @__PURE__ */ e("span", { children: "套餐属于当前空间,对 24.city 所有产品同时生效;购买、续费和发票在统一账号中心办理。" }),
444
+ /* @__PURE__ */ e(E, { type: "text", size: "small", href: M, label: "订单记录(在统一账号中心打开)", children: "订单记录" })
445
+ ] })
446
+ ] }),
447
+ /* @__PURE__ */ e(Xn, { data: t, focusPlan: n }),
448
+ c && !g ? /* @__PURE__ */ e(ha, { href: y, plan: nt(_.data) }) : null
449
+ ] });
450
+ }, _a = ({ subscription: t }) => t.isPending ? "读取中" : t.isError ? oe(t.error) ? "团队版已到期" : "暂不可用" : t.data ? xe(t.data) : "未开通", ua = ({ wallet: t }) => t.isPending ? "读取中" : t.data ? z(t.data.availablePoints) : "暂不可用", Xa = () => {
451
+ var I;
452
+ const { section: t = "" } = Je(), { config: n } = D(), s = Q(), i = O(), { PointsDetail: c } = i, l = at(i), o = l.find((N) => N.key === t), d = ie(), p = st(re().state), _ = it(), { confirmLogout: u, pending: g } = rt(), f = n.routes.app;
453
+ if (!ct(t) && !o) return /* @__PURE__ */ e(ce, { replace: !0, to: H(f, "profile") });
454
+ const A = {
455
+ profile: "你的统一账号与当前空间。密码、登录设备和团队成员在 24.city 统一账号中心管理,所有产品同步生效。",
456
+ subscription: "当前空间的套餐与权益,以统一账号中心为准;购买、续费和升级都在统一账号中心完成。",
457
+ points: c ? `当前空间的可用积分,以及你在 ${s.shortName} 里的扣费明细。` : "当前空间的可用积分,由统一账号中心记账。"
458
+ }, F = o ? o.description : A[t], x = ot(f, l).items, P = x.find((N) => N.to === H(f, t)), { activeSpace: y, profile: M, allowed: $ } = _, v = ((I = M.data) == null ? void 0 : I.nickName) ?? "", w = Pe(y == null ? void 0 : y.role);
459
+ return /* @__PURE__ */ r("div", { className: a.center, children: [
460
+ /* @__PURE__ */ e("aside", { className: a.aside, "aria-label": "个人中心", children: /* @__PURE__ */ r(T, { className: a.identityCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
461
+ /* @__PURE__ */ r("div", { className: a.identity, children: [
462
+ /* @__PURE__ */ e(Re, { size: "medium", shape: "circle", className: a.identityAvatar, children: v ? Array.from(v)[0] : /* @__PURE__ */ e(me, { "aria-hidden": "true" }) }),
463
+ /* @__PURE__ */ r("div", { className: a.identityText, children: [
464
+ /* @__PURE__ */ e("span", { className: a.identityName, title: v || void 0, children: v || (M.isPending ? "" : lt) }),
465
+ y ? /* @__PURE__ */ r("span", { className: a.identitySpace, children: [
466
+ J(y) ? /* @__PURE__ */ e(ve, { "aria-hidden": "true" }) : /* @__PURE__ */ e(me, { "aria-hidden": "true" }),
467
+ /* @__PURE__ */ e("span", { className: a.identitySpaceName, children: Y(y) }),
468
+ w ? /* @__PURE__ */ e("span", { className: a.identityRole, children: w }) : null
469
+ ] }) : null
470
+ ] })
471
+ ] }),
472
+ $ ? /* @__PURE__ */ r("div", { className: a.identityStats, children: [
473
+ /* @__PURE__ */ r("div", { className: a.identityStat, children: [
474
+ /* @__PURE__ */ e("span", { className: a.identityStatLabel, children: "当前套餐" }),
475
+ /* @__PURE__ */ e("span", { className: a.identityStatValue, children: _a(_) })
476
+ ] }),
477
+ /* @__PURE__ */ r("div", { className: a.identityStat, children: [
478
+ /* @__PURE__ */ e("span", { className: a.identityStatLabel, children: "可用积分" }),
479
+ /* @__PURE__ */ e("span", { className: a.identityStatValue, children: ua(_) })
480
+ ] })
481
+ ] }) : null,
482
+ /* @__PURE__ */ e("nav", { className: a.nav, "aria-label": "个人中心分区", children: x.map((N) => {
483
+ const K = N === P;
484
+ return /* @__PURE__ */ r(
485
+ C,
486
+ {
487
+ theme: "borderless",
488
+ type: "tertiary",
489
+ className: a.navItem,
490
+ "aria-current": K ? "page" : void 0,
491
+ onClick: () => d(N.to),
492
+ children: [
493
+ N.icon ? /* @__PURE__ */ e("span", { className: a.navIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(N.icon, {}) }) : null,
494
+ /* @__PURE__ */ e("span", { className: a.navLabel, children: N.label }),
495
+ /* @__PURE__ */ e(Qe, { className: a.navArrow, "aria-hidden": "true" })
496
+ ]
497
+ },
498
+ N.key
499
+ );
500
+ }) }),
501
+ /* @__PURE__ */ e("div", { className: a.asideFoot, children: /* @__PURE__ */ e(C, { theme: "borderless", type: "tertiary", className: a.logout, icon: /* @__PURE__ */ e(Ye, { "aria-hidden": "true" }), disabled: g, onClick: u, children: "退出登录" }) })
502
+ ] }) }),
503
+ /* @__PURE__ */ r("div", { className: a.main, children: [
504
+ /* @__PURE__ */ r("header", { className: a.head, children: [
505
+ /* @__PURE__ */ e(ee.Title, { heading: 1, className: a.title, children: P == null ? void 0 : P.label }),
506
+ /* @__PURE__ */ e(ee.Paragraph, { className: a.description, children: F })
507
+ ] }),
508
+ $ ? o ? /* @__PURE__ */ e(o.Component, { data: _ }) : t === "profile" ? /* @__PURE__ */ e(vn, { data: _ }) : t === "subscription" ? /* @__PURE__ */ e(ma, { data: _, focusPlan: p }) : /* @__PURE__ */ e(yn, { data: _ }) : /* @__PURE__ */ e(Ke, {})
509
+ ] })
510
+ ] });
511
+ }, pa = "_meter_o7x3q_7", ga = "_head_o7x3q_16", ba = "_label_o7x3q_24", Na = "_value_o7x3q_33", fa = "_bar_o7x3q_53", ya = "_note_o7x3q_57", U = {
512
+ meter: pa,
513
+ head: ga,
514
+ label: ba,
515
+ value: Na,
516
+ bar: fa,
517
+ note: ya
518
+ }, Z = (t) => t.toLocaleString("zh-CN", { maximumFractionDigits: 0 }), va = ({ unit: t, used: n, total: s, status: i }) => i === "loading" ? "…" : i === "error" || n === void 0 || s === void 0 ? "暂不可用" : Ie(s) ? `已用 ${Z(n)} ${t} · 不限` : `已用 ${Z(n)}/${Z(s)} ${t}`, Sa = ({ used: t, total: n, status: s }) => s !== void 0 || t === void 0 || n === void 0 || n <= 0 || Ie(n) ? null : Math.min(1, Math.max(0, t / n)), Wa = (t) => {
519
+ const { label: n, note: s, exhausted: i, status: c } = t, l = va(t), o = Sa(t), d = c === void 0 && (i ?? (o !== null && o >= 1)), p = d ? "warning" : l === "暂不可用" ? "muted" : void 0;
520
+ return /* @__PURE__ */ r("div", { className: U.meter, role: "group", "aria-label": n, children: [
521
+ /* @__PURE__ */ r("div", { className: U.head, children: [
522
+ /* @__PURE__ */ e("span", { className: U.label, children: n }),
523
+ /* @__PURE__ */ e("span", { className: U.value, "data-tone": p, children: l })
524
+ ] }),
525
+ o !== null ? /* @__PURE__ */ e(
526
+ Oe,
527
+ {
528
+ className: U.bar,
529
+ size: "large",
530
+ percent: Math.round(o * 100),
531
+ stroke: d ? "var(--semi-color-warning)" : "var(--app-strong-bg)",
532
+ orbitStroke: "var(--semi-color-fill-1)",
533
+ "aria-label": n,
534
+ "aria-valuetext": l
535
+ }
536
+ ) : null,
537
+ s ? /* @__PURE__ */ e("span", { className: U.note, children: s }) : null
538
+ ] });
539
+ }, Za = () => {
540
+ const t = re(), n = ie(), { accountApi: s, config: i } = D(), { bootstrapped: c, serviceUnavailable: l, session: o } = Se(), d = Ce(new URLSearchParams(t.search).get("returnPath"), i.routes.app), p = s.startLogin(d, i.routes.app);
541
+ return Te(() => {
542
+ c && !o && !l && !Ze() && !_e() && window.location.replace(p);
543
+ }, [c, p, l, o]), c && o ? /* @__PURE__ */ e(ce, { to: d, replace: !0 }) : c && !o && _e() ? /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(
544
+ j,
545
+ {
546
+ status: "info",
547
+ title: "已退出登录",
548
+ description: "您已在其他窗口退出 24.city 统一账号。需要继续使用时请重新登录。",
549
+ extra: /* @__PURE__ */ r(he, { spacing: 12, children: [
550
+ /* @__PURE__ */ e(
551
+ C,
552
+ {
553
+ theme: "solid",
554
+ type: "primary",
555
+ onClick: () => {
556
+ ue(), window.location.replace(p);
557
+ },
558
+ children: "重新登录"
559
+ }
560
+ ),
561
+ /* @__PURE__ */ e(
562
+ C,
563
+ {
564
+ theme: "light",
565
+ type: "tertiary",
566
+ onClick: () => {
567
+ ue(), n(i.routes.publicHome);
568
+ },
569
+ children: "返回首页"
570
+ }
571
+ )
572
+ ] })
573
+ }
574
+ ) }) : /* @__PURE__ */ e(te, { children: l ? /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(
575
+ j,
576
+ {
577
+ status: "error",
578
+ title: "统一账号服务暂不可用",
579
+ description: "请稍后重试。",
580
+ extra: /* @__PURE__ */ r(he, { spacing: 12, children: [
581
+ /* @__PURE__ */ e(C, { theme: "solid", type: "primary", onClick: () => window.location.replace(p), children: "重试" }),
582
+ /* @__PURE__ */ e(C, { theme: "light", type: "tertiary", onClick: () => n(i.routes.publicHome), children: "返回首页" })
583
+ ] })
584
+ }
585
+ ) }) : /* @__PURE__ */ e(j, { status: "loading", title: "正在前往统一登录…" }) });
586
+ }, Ca = "_pill_1hckq_2", Pa = "_upgrade_1hckq_24", be = {
587
+ pill: Ca,
588
+ upgrade: Pa
589
+ }, es = ({ quota: t, unit: n, onUpgrade: s }) => {
590
+ if (!t) return null;
591
+ const i = dt(t);
592
+ return /* @__PURE__ */ r("span", { className: be.pill, "data-full": i ? "true" : "false", role: "status", children: [
593
+ /* @__PURE__ */ e("span", { children: ht(t, n) }),
594
+ i ? /* @__PURE__ */ e(C, { theme: "borderless", type: "tertiary", size: "small", className: be.upgrade, onClick: s, children: "升级" }) : null
595
+ ] });
596
+ }, ts = ({ children: t }) => {
597
+ const n = re(), { config: s } = D(), { bootstrapped: i, serviceUnavailable: c, session: l } = Se();
598
+ if (!i) return /* @__PURE__ */ e(Xe, {});
599
+ if (c)
600
+ return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e("div", { role: "alert", children: /* @__PURE__ */ e(
601
+ j,
602
+ {
603
+ status: "error",
604
+ title: "账号服务暂不可用",
605
+ description: "无法确认当前会话与空间,应用已停止加载受保护数据。",
606
+ extra: /* @__PURE__ */ e(C, { theme: "solid", type: "primary", onClick: () => window.location.reload(), children: "重新加载" })
607
+ }
608
+ ) }) });
609
+ if (!l || l.purpose !== "user") {
610
+ const o = Ce(n.pathname + n.search, s.routes.app);
611
+ return /* @__PURE__ */ e(ce, { to: `${s.routes.login}?returnPath=${encodeURIComponent(o)}`, replace: !0 });
612
+ }
613
+ return /* @__PURE__ */ e(L, { children: t });
614
+ }, $a = "_modal_19bot_6", ka = "_hero_19bot_27", wa = "_badge_19bot_39", La = "_art_19bot_52", xa = "_title_19bot_65", Ia = "_description_19bot_73", Ta = "_body_19bot_80", Aa = "_offer_19bot_87", za = "_offerName_19bot_93", Ea = "_lines_19bot_99", Fa = "_line_19bot_99", Ma = "_check_19bot_114", Ua = "_cta_19bot_127", Ra = "_ctaPrice_19bot_144", Oa = "_ownerOnly_19bot_154", Da = "_later_19bot_162", b = {
615
+ modal: $a,
616
+ hero: ka,
617
+ badge: wa,
618
+ art: La,
619
+ title: xa,
620
+ description: Ia,
621
+ body: Ta,
622
+ offer: Aa,
623
+ offerName: za,
624
+ lines: Ea,
625
+ line: Fa,
626
+ check: Ma,
627
+ cta: Ua,
628
+ ctaPrice: Ra,
629
+ ownerOnly: Oa,
630
+ later: Da
631
+ }, ns = ({
632
+ title: t,
633
+ description: n,
634
+ art: s = "engine",
635
+ onClose: i
636
+ }) => {
637
+ const c = ie(), l = O(), { offer: o, plans: d, canBuy: p, subscriptionPath: _ } = mt(), u = o ? Ee(o.plan, d.data ?? [], l).filter((f) => f.included).slice(0, 5).map((f) => f.text) : [], g = o != null && o.price ? `${Le(o.price)}起` : "";
638
+ return /* @__PURE__ */ r(De, { visible: !0, header: null, footer: null, onCancel: i, className: b.modal, centered: !0, children: [
639
+ /* @__PURE__ */ r("div", { className: b.hero, "data-art": s, children: [
640
+ /* @__PURE__ */ e("span", { className: b.badge, children: "会员专享" }),
641
+ /* @__PURE__ */ e("span", { className: b.art, "aria-hidden": "true" }),
642
+ /* @__PURE__ */ e("span", { className: b.title, children: t }),
643
+ /* @__PURE__ */ e("span", { className: b.description, children: n })
644
+ ] }),
645
+ /* @__PURE__ */ r("div", { className: b.body, children: [
646
+ o ? /* @__PURE__ */ r("span", { className: b.offer, children: [
647
+ "升级到",
648
+ /* @__PURE__ */ e("span", { className: b.offerName, children: o.plan.name }),
649
+ "即可使用,同时获得:"
650
+ ] }) : /* @__PURE__ */ e("span", { className: b.offer, children: "升级套餐即可使用。" }),
651
+ u.length ? /* @__PURE__ */ e("div", { className: b.lines, role: "list", "aria-label": "升级后的权益", children: u.map((f) => /* @__PURE__ */ r("div", { className: b.line, role: "listitem", children: [
652
+ /* @__PURE__ */ e("span", { className: b.check, "aria-hidden": "true", children: /* @__PURE__ */ e(se, {}) }),
653
+ f
654
+ ] }, f)) }) : null,
655
+ p ? /* @__PURE__ */ r(
656
+ C,
657
+ {
658
+ theme: "light",
659
+ type: "tertiary",
660
+ block: !0,
661
+ className: b.cta,
662
+ "aria-label": `立即升级${g ? `,${g}` : ""}(打开订阅与套餐)`,
663
+ onClick: () => {
664
+ i(), c(_, { state: _t(o == null ? void 0 : o.plan.code) });
665
+ },
666
+ children: [
667
+ "立即升级",
668
+ g ? /* @__PURE__ */ e("span", { className: b.ctaPrice, children: g }) : null
669
+ ]
670
+ }
671
+ ) : /* @__PURE__ */ e("span", { className: b.ownerOnly, children: "团队套餐由所有者在统一账号中心升级,请联系团队所有者。" }),
672
+ /* @__PURE__ */ e(C, { theme: "borderless", type: "tertiary", block: !0, className: b.later, onClick: i, children: "暂不升级" })
673
+ ] })
674
+ ] });
675
+ };
676
+ export {
677
+ Xa as A,
678
+ E as C,
679
+ Za as L,
680
+ Xn as P,
681
+ es as Q,
682
+ ts as R,
683
+ X as S,
684
+ ha as T,
685
+ ns as U,
686
+ Wa as a,
687
+ yn as b,
688
+ vn as c,
689
+ ma as d,
690
+ G as e,
691
+ ze as f,
692
+ ae as g,
693
+ Pn as h,
694
+ Ee as p,
695
+ $n as y
696
+ };