@24city/web-console 0.3.6 → 0.3.8

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/GUIDELINES.md +29 -2
  3. package/README.md +3 -3
  4. package/dist/account/account-api.d.ts +7 -0
  5. package/dist/account/index.d.ts +1 -0
  6. package/dist/account/index.js +60 -59
  7. package/dist/account/use-show-once.d.ts +26 -0
  8. package/dist/chunks/{auth-provider-CqiyTeOt.js → auth-provider-7FOj7Y84.js} +1 -1
  9. package/dist/chunks/{console-layout-Os4sQzMP.js → console-layout-B4OlW1IZ.js} +1 -1
  10. package/dist/chunks/logout-signal-CLdquzzn.js +378 -0
  11. package/dist/chunks/{stale-build-DG-Tb2RA.js → stale-build-DwUlkKYm.js} +2 -2
  12. package/dist/chunks/text-link-WWzQqJ14.js +196 -0
  13. package/dist/chunks/use-show-once-Bz1ojVqb.js +768 -0
  14. package/dist/chunks/{wallet-badge-Dt8fv-Du.js → wallet-badge-COpdEDYI.js} +1 -1
  15. package/dist/chunks/waterfall-DOeGU8Zs.js +752 -0
  16. package/dist/index.js +197 -192
  17. package/dist/layout/index.js +1 -1
  18. package/dist/list/content-square.d.ts +36 -7
  19. package/dist/list/cover-tabs.d.ts +36 -0
  20. package/dist/list/filter-panel.d.ts +8 -5
  21. package/dist/list/index.d.ts +1 -0
  22. package/dist/list/index.js +26 -23
  23. package/dist/page/guide-modal.d.ts +37 -0
  24. package/dist/page/index.d.ts +1 -0
  25. package/dist/page/index.js +22 -21
  26. package/dist/runtime/index.js +2 -2
  27. package/dist/styles.css +820 -157
  28. package/dist/testing/fixtures.js +33 -27
  29. package/package.json +1 -1
  30. package/dist/chunks/logout-signal-CiD_zY5M.js +0 -365
  31. package/dist/chunks/text-link-Bb5f1eLW.js +0 -106
  32. package/dist/chunks/upgrade-modal-DyPkV9OB.js +0 -713
  33. package/dist/chunks/waterfall-ZMzEjGwK.js +0 -614
@@ -1,713 +0,0 @@
1
- import { jsxs as r, jsx as e, Fragment as L } from "react/jsx-runtime";
2
- import { Card as T, Button as v, Typography as ee, Tag as fe, 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 ye, IconGift as Be, IconRefresh as be, 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, IconClose as Je } from "@douyinfe/semi-icons";
4
- import { useParams as Ke, useNavigate as ie, useLocation as re, Navigate as ce } from "react-router";
5
- import { S as Xe, F as te, e as j, c as We } 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 Ze, u as we, C as Se, i as et, d as _e, r as pe } from "./logout-signal-CiD_zY5M.js";
8
- import { H as Y, I as Ce, q as J, l as tt, J as Pe, m as ae, O as $e, i as ke, r as oe, g as H, n as Le, z as Ie, y as at, k as nt, B as st, w as it, L as rt, M as ct, p as ot, h as lt, F as dt, s as xe, D as ht, G as mt, N as _t, x as pt } from "./wallet-badge-Dt8fv-Du.js";
9
- import { L as le } from "./link-button-PqZcqU6s.js";
10
- import { useState as ut, useRef as ue, useEffect as Te } from "react";
11
- const gt = {
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 a = (t == null ? void 0 : t.trim()) ?? "";
22
- if (!a) return null;
23
- try {
24
- const s = new URL(a);
25
- return s.protocol !== "https:" && s.protocol !== "http:" ? null : `${s.origin}${s.pathname.replace(/\/+$/, "")}`;
26
- } catch {
27
- return null;
28
- }
29
- }, G = (t, a) => {
30
- const s = Ae(t);
31
- return s ? `${s}${gt[a]}` : null;
32
- }, ne = (t, a) => {
33
- const s = Ae(t);
34
- if (!s) return null;
35
- const i = new URLSearchParams();
36
- return a.productCode && i.set("product_code", a.productCode), i.set("return_url", a.returnUrl), a.spaceId && i.set("space_id", a.spaceId), a.spaceType && i.set("space_type", a.spaceType), a.priceCode && i.set("price_code", a.priceCode), `${s}/plans?${i.toString()}`;
37
- }, Nt = "_center_14d6l_7", ft = "_aside_14d6l_21", yt = "_identityCard_14d6l_27", bt = "_identity_14d6l_27", vt = "_identityAvatar_14d6l_42", wt = "_identityText_14d6l_55", St = "_identityName_14d6l_64", Ct = "_identitySpace_14d6l_76", Pt = "_identitySpaceName_14d6l_91", $t = "_identityRole_14d6l_98", kt = "_identityStats_14d6l_108", Lt = "_identityStat_14d6l_108", It = "_identityStatLabel_14d6l_129", xt = "_identityStatValue_14d6l_135", Tt = "_nav_14d6l_147", At = "_navItem_14d6l_156", zt = "_navIcon_14d6l_191", Et = "_navLabel_14d6l_202", Ft = "_navArrow_14d6l_207", Mt = "_asideFoot_14d6l_223", Ut = "_logout_14d6l_228", Rt = "_main_14d6l_249", Ot = "_head_14d6l_262", Dt = "_title_14d6l_268", Bt = "_description_14d6l_277", Vt = "_card_14d6l_286", jt = "_usage_14d6l_285", qt = "_fields_14d6l_318", Ht = "_field_14d6l_318", Gt = "_fieldLabel_14d6l_331", Qt = "_fieldValue_14d6l_337", Yt = "_fieldText_14d6l_345", Jt = "_fieldMuted_14d6l_358", Kt = "_fieldHint_14d6l_364", Xt = "_mono_14d6l_370", Wt = "_inlineTag_14d6l_379", Zt = "_settingList_14d6l_384", ea = "_settingRow_14d6l_389", ta = "_settingIcon_14d6l_405", aa = "_settingText_14d6l_418", na = "_settingTitle_14d6l_426", sa = "_settingDescription_14d6l_433", ia = "_settingAction_14d6l_439", ra = "_note_14d6l_443", ca = "_centerLink_14d6l_463", oa = "_centerLinkIcon_14d6l_469", la = "_heroCard_14d6l_477", da = "_hero_14d6l_477", ha = "_heroMain_14d6l_501", ma = "_heroEyebrow_14d6l_510", _a = "_heroEyebrowText_14d6l_525", pa = "_heroValue_14d6l_536", ua = "_heroMeta_14d6l_546", ga = "_heroActions_14d6l_560", Na = "_heroFoot_14d6l_569", fa = "_ownerOnly_14d6l_587", ya = "_heroSkeleton_14d6l_709", n = {
38
- center: Nt,
39
- aside: ft,
40
- identityCard: yt,
41
- identity: bt,
42
- identityAvatar: vt,
43
- identityText: wt,
44
- identityName: St,
45
- identitySpace: Ct,
46
- identitySpaceName: Pt,
47
- identityRole: $t,
48
- identityStats: kt,
49
- identityStat: Lt,
50
- identityStatLabel: It,
51
- identityStatValue: xt,
52
- nav: Tt,
53
- navItem: At,
54
- navIcon: zt,
55
- navLabel: Et,
56
- navArrow: Ft,
57
- asideFoot: Mt,
58
- logout: Ut,
59
- main: Rt,
60
- head: Ot,
61
- title: Dt,
62
- description: Bt,
63
- card: Vt,
64
- usage: jt,
65
- fields: qt,
66
- field: Ht,
67
- fieldLabel: Gt,
68
- fieldValue: Qt,
69
- fieldText: Yt,
70
- fieldMuted: Jt,
71
- fieldHint: Kt,
72
- mono: Xt,
73
- inlineTag: Wt,
74
- settingList: Zt,
75
- settingRow: ea,
76
- settingIcon: ta,
77
- settingText: aa,
78
- settingTitle: na,
79
- settingDescription: sa,
80
- settingAction: ia,
81
- note: ra,
82
- centerLink: ca,
83
- centerLinkIcon: oa,
84
- heroCard: la,
85
- hero: da,
86
- heroMain: ha,
87
- heroEyebrow: ma,
88
- heroEyebrowText: _a,
89
- heroValue: pa,
90
- heroMeta: ua,
91
- heroActions: ga,
92
- heroFoot: Na,
93
- ownerOnly: fa,
94
- heroSkeleton: ya
95
- }, E = ({
96
- href: t,
97
- children: a,
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: n.centerLink,
111
- children: [
112
- a,
113
- /* @__PURE__ */ e(ye, { className: n.centerLinkIcon, "aria-hidden": "true" })
114
- ]
115
- }
116
- ) : null, X = ({
117
- icon: t,
118
- title: a,
119
- description: s,
120
- action: i
121
- }) => /* @__PURE__ */ r("div", { className: n.settingRow, children: [
122
- /* @__PURE__ */ e("span", { className: n.settingIcon, "aria-hidden": "true", children: t }),
123
- /* @__PURE__ */ r("div", { className: n.settingText, children: [
124
- /* @__PURE__ */ e("span", { className: n.settingTitle, children: a }),
125
- /* @__PURE__ */ e("span", { className: n.settingDescription, children: s })
126
- ] }),
127
- i ? /* @__PURE__ */ e("div", { className: n.settingAction, children: i }) : null
128
- ] }), ba = ({ data: t }) => {
129
- var g;
130
- const a = Q(), { PointsDetail: s } = O(), { session: i, activeSpace: c, activeSpaceId: l, globalUserId: o, wallet: d } = t, u = G(i == null ? void 0 : i.accountCenterUrl, "points"), _ = c ? Y(c) : "当前空间", p = (g = d.data) == null ? void 0 : g.availablePoints;
131
- return /* @__PURE__ */ r(L, { children: [
132
- /* @__PURE__ */ r(T, { className: n.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
133
- /* @__PURE__ */ r("div", { className: n.hero, "data-tone": "primary", children: [
134
- /* @__PURE__ */ r("div", { className: n.heroMain, children: [
135
- /* @__PURE__ */ r("span", { className: n.heroEyebrow, title: _, children: [
136
- /* @__PURE__ */ e(Be, { "aria-hidden": "true" }),
137
- /* @__PURE__ */ r("span", { className: n.heroEyebrowText, children: [
138
- "可用积分 · ",
139
- _
140
- ] })
141
- ] }),
142
- /* @__PURE__ */ e("span", { className: n.heroValue, "aria-live": "polite", children: d.isPending ? "读取中" : d.isError || p === void 0 ? "暂不可用" : z(p) }),
143
- /* @__PURE__ */ e("span", { className: n.heroMeta, children: "积分属于当前空间,24.city 各产品共用。" })
144
- ] }),
145
- /* @__PURE__ */ r("div", { className: n.heroActions, children: [
146
- /* @__PURE__ */ e(v, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(be, { "aria-hidden": "true" }), disabled: d.isFetching, onClick: () => void d.refetch(), children: "刷新" }),
147
- /* @__PURE__ */ e(E, { type: "primary", href: u, label: "全部积分消耗(在统一账号中心打开)", children: "全部积分消耗" })
148
- ] })
149
- ] }),
150
- /* @__PURE__ */ e("div", { className: n.heroFoot, children: /* @__PURE__ */ e("span", { children: s ? `下面是你本人在 ${a.shortName} 里的扣费明细;当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。` : "当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。" }) })
151
- ] }),
152
- s ? /* @__PURE__ */ e("div", { className: n.usage, children: /* @__PURE__ */ e(s, { activeSpaceId: l, globalUserId: o }) }) : null
153
- ] });
154
- }, V = ({ label: t, children: a, hint: s }) => /* @__PURE__ */ r("div", { className: n.field, children: [
155
- /* @__PURE__ */ e("span", { className: n.fieldLabel, children: t }),
156
- /* @__PURE__ */ r("div", { className: n.fieldValue, children: [
157
- a,
158
- s ? /* @__PURE__ */ e("span", { className: n.fieldHint, children: s }) : null
159
- ] })
160
- ] }), va = ({ data: t }) => {
161
- var g;
162
- const a = 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) ?? "", u = Ce(i == null ? void 0 : i.role), _ = G(o, "settings"), p = G(o, "spaces");
163
- return /* @__PURE__ */ r(L, { children: [
164
- /* @__PURE__ */ e(T, { title: "账号信息", className: n.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ r("div", { className: n.fields, children: [
165
- /* @__PURE__ */ e(V, { label: "昵称", hint: `首次登录 ${a.shortName} 时从统一账号带来`, children: /* @__PURE__ */ e("span", { className: n.fieldText, children: d || (c.isPending ? "读取中" : "未设置") }) }),
166
- /* @__PURE__ */ e(V, { label: "统一账号 ID", hint: "联系客服时可以提供", children: /* @__PURE__ */ e(ee.Text, { copyable: { copyTip: "复制", successTip: "已复制" }, className: n.mono, children: l }) }),
167
- /* @__PURE__ */ e(V, { label: "当前空间", children: /* @__PURE__ */ r("span", { className: n.fieldText, children: [
168
- i ? Y(i) : "暂不可用",
169
- i && J(i) ? /* @__PURE__ */ e(fe, { size: "small", color: "blue", className: n.inlineTag, children: "团队" }) : null,
170
- u ? /* @__PURE__ */ r("span", { className: n.fieldMuted, children: [
171
- "· 我是",
172
- u
173
- ] }) : null
174
- ] }) }),
175
- /* @__PURE__ */ e(V, { label: "本次登录有效至", hint: "到期后重新登录即可", children: /* @__PURE__ */ e("span", { className: n.fieldText, children: s ? Ze(s.absoluteExpiresAt) : "暂无" }) })
176
- ] }) }),
177
- /* @__PURE__ */ r(T, { title: "登录与安全", className: n.card, bordered: !1, headerLine: !1, children: [
178
- /* @__PURE__ */ r("div", { className: n.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: p, label: "管理空间与成员(在统一账号中心打开)", children: "前往管理" })
204
- }
205
- )
206
- ] }),
207
- /* @__PURE__ */ r("div", { className: n.note, children: [
208
- /* @__PURE__ */ e(qe, { "aria-hidden": "true" }),
209
- /* @__PURE__ */ e("span", { children: _ ? `${a.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
- }, wa = {
218
- tone: "team",
219
- tagline: "团队一起用,套餐和积分共用",
220
- benefits: ["成员共用套餐和积分"]
221
- }, Sa = (t, a) => t.spaceType === "team" ? a.teamPlanCopy ?? wa : t.isDefault || t.tier <= 0 ? W.free : t.tier === 1 ? W.standard : W.pro, ze = (t, a = {}) => {
222
- var s;
223
- return ((s = a.planCopy) == null ? void 0 : s[t.code]) ?? Sa(t, a);
224
- }, Ee = (t, a = [], 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 tt(t, a, s)) c(l.text, l.included);
230
- for (const l of ze(t, s).benefits) c(l);
231
- return i;
232
- }, Ca = (t, a) => t.prices.filter((c) => c.billingPeriod === a && c.amountCents > 0).reduce((c, l) => !c || l.amountCents < c.amountCents ? l : c, null) ?? Pe(t), Pa = (t, a) => {
233
- if (a.billingPeriod !== "year") return "";
234
- const s = ae({ amountCents: Math.round(a.amountCents / 12), currency: a.currency }), i = t.prices.find((l) => l.billingPeriod === "month" && l.currency === a.currency && l.amountCents > 0), c = i ? i.amountCents * 12 - a.amountCents : 0;
235
- return c > 0 ? `约 ${s}/月 · 比月付省 ${ae({ amountCents: c, currency: a.currency })}` : `约 ${s}/月`;
236
- }, $a = "_subtitle_m4zgm_7", ka = "_grid_m4zgm_16", La = "_skeleton_m4zgm_22", Ia = "_card_m4zgm_30", xa = "_section_m4zgm_62", Ta = "_badge_m4zgm_90", Aa = "_top_m4zgm_109", za = "_art_m4zgm_139", Ea = "_name_m4zgm_160", Fa = "_tagline_m4zgm_178", Ma = "_price_m4zgm_195", Ua = "_amount_m4zgm_202", Ra = "_period_m4zgm_218", Oa = "_priceNote_m4zgm_227", Da = "_body_m4zgm_244", Ba = "_benefits_m4zgm_252", Va = "_benefit_m4zgm_252", ja = "_check_m4zgm_268", qa = "_action_m4zgm_304", Ha = "_cta_m4zgm_304", Ga = "_ctaCurrent_m4zgm_345", Qa = "_ctaNote_m4zgm_354", m = {
237
- subtitle: $a,
238
- grid: ka,
239
- skeleton: La,
240
- card: Ia,
241
- section: xa,
242
- badge: Ta,
243
- top: Aa,
244
- art: za,
245
- name: Ea,
246
- tagline: Fa,
247
- price: Ma,
248
- amount: Ua,
249
- period: Ra,
250
- priceNote: Oa,
251
- body: Da,
252
- benefits: Ba,
253
- benefit: Va,
254
- check: ja,
255
- action: qa,
256
- cta: Ha,
257
- ctaCurrent: Ga,
258
- ctaNote: Qa
259
- }, Ya = { month: "/月", year: "/年", one_time: "" }, Ja = [
260
- { label: "按月付", value: "month" },
261
- { label: "按年付", value: "year" }
262
- ], ge = (t, a) => t.some((s) => s.prices.some((i) => i.billingPeriod === a && i.amountCents > 0)), Ka = ({
263
- plan: t,
264
- price: a,
265
- catalog: s,
266
- current: i,
267
- focus: c,
268
- action: l,
269
- custom: o
270
- }) => {
271
- const d = ze(t, o), u = a ? Pa(t, a) : "长期有效", _ = 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: a ? /* @__PURE__ */ r(L, { children: [
288
- /* @__PURE__ */ e("span", { className: m.amount, children: ae(a) }),
289
- /* @__PURE__ */ e("span", { className: m.period, children: Ya[a.billingPeriod] })
290
- ] }) : /* @__PURE__ */ e("span", { className: m.amount, children: "免费" }) }),
291
- /* @__PURE__ */ e("span", { className: m.priceNote, children: u || " " })
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((p) => /* @__PURE__ */ r("div", { className: m.benefit, "data-included": p.included ? "true" : "false", role: "listitem", children: [
295
- /* @__PURE__ */ e("span", { className: m.check, "aria-hidden": "true", children: p.included ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(He, {}) }),
296
- /* @__PURE__ */ e("span", { children: p.text })
297
- ] }, p.text)) }),
298
- /* @__PURE__ */ e("div", { className: m.action, children: l })
299
- ] })
300
- ]
301
- }
302
- );
303
- }, Xa = ({ data: t, focusPlan: a }) => {
304
- const { config: s } = D(), i = O(), { session: c, activeSpace: l, activeSpaceId: o, subscription: d, wallet: u, allowed: _ } = t, p = $e(_), [g, y] = ut("month"), A = l ? J(l) : !1, F = ke(l), I = d.isError && oe(d.error), C = d.data ?? null, b = (p.data ?? []).filter((h) => h.spaceType === (A ? "team" : "personal")), M = `${window.location.origin}${H(s.routes.app, "subscription")}`, P = (h) => {
305
- var $;
306
- return ne(c == null ? void 0 : c.accountCenterUrl, { productCode: ($ = u.data) == null ? void 0 : $.productCode, returnUrl: M, spaceId: A ? o : void 0, priceCode: h });
307
- }, w = ge(b, "month") && ge(b, "year"), k = ue(null), x = ue(!1), f = !!(a && b.some((h) => h.code === a));
308
- Te(() => {
309
- var h, $;
310
- !f || x.current || (x.current = !0, ($ = (h = k.current) == null ? void 0 : h.scrollIntoView) == null || $.call(h, { behavior: "smooth", block: "start" }));
311
- }, [f]);
312
- const K = (h, $, R) => {
313
- if (h.isDefault || !$)
314
- return R ? /* @__PURE__ */ e(v, { 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: I ? "请团队所有者续费" : "请团队所有者购买" });
316
- const B = R ? "续费" : I ? `续费${h.name}` : !C || C.isDefault ? "立即开通" : h.tier > C.tier ? `升级到${h.name}` : `选择${h.name}`, de = P($.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 p.isPending ? /* @__PURE__ */ e(T, { title: "会员套餐", className: n.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)) }) }) : p.isError ? /* @__PURE__ */ e(T, { title: "会员套餐", className: n.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e(Me, { type: "info", fullMode: !1, closeIcon: null, description: "暂时读不到套餐价格,可以在统一账号中心查看全部套餐。", children: /* @__PURE__ */ e(E, { size: "small", href: P(), label: "查看全部套餐(在统一账号中心打开)", children: "查看全部套餐" }) }) }) : b.length ? /* @__PURE__ */ e("div", { ref: k, children: /* @__PURE__ */ r(
322
- T,
323
- {
324
- title: "会员套餐",
325
- className: `${n.card} ${m.section}`,
326
- bordered: !1,
327
- headerLine: !1,
328
- headerExtraContent: w ? /* @__PURE__ */ e(
329
- Ue,
330
- {
331
- type: "button",
332
- buttonSize: "small",
333
- options: Ja,
334
- value: g,
335
- onChange: (h) => y(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: b.map((h) => {
342
- const $ = Ca(h, g), R = !!(C && C.planCode === h.code);
343
- return /* @__PURE__ */ e(
344
- Ka,
345
- {
346
- plan: h,
347
- price: $,
348
- catalog: p.data ?? [],
349
- current: R,
350
- focus: h.code === a,
351
- action: K(h, $, R),
352
- custom: i
353
- },
354
- h.code
355
- );
356
- }) })
357
- ]
358
- }
359
- ) }) : null;
360
- }, Wa = "_team_13j8p_7", Za = "_art_13j8p_22", en = "_text_13j8p_30", tn = "_eyebrow_13j8p_39", an = "_title_13j8p_49", nn = "_description_13j8p_57", sn = "_highlights_13j8p_63", rn = "_highlight_13j8p_63", cn = "_highlightIcon_13j8p_83", on = "_action_13j8p_88", ln = "_cta_13j8p_96", dn = "_ctaIcon_13j8p_116", hn = "_price_13j8p_121", S = {
361
- team: Wa,
362
- art: Za,
363
- text: en,
364
- eyebrow: tn,
365
- title: an,
366
- description: nn,
367
- highlights: sn,
368
- highlight: rn,
369
- highlightIcon: cn,
370
- action: on,
371
- cta: ln,
372
- ctaIcon: dn,
373
- price: hn
374
- }, mn = ({ href: t, plan: a }) => {
375
- const s = Q(), { teamPromoHighlights: i = [] } = O(), c = a ? Pe(a) : null, l = [
376
- a && a.includedSeats > 0 ? `含 ${z(a.includedSeats)} 个成员席位` : "",
377
- a && a.monthlyPoints > 0 ? `每月 ${z(a.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(ye, { 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
- }, _n = ({ data: t, focusPlan: a }) => {
407
- var x;
408
- const { config: s } = D(), { session: i, activeSpace: c, activeSpaceId: l, wallet: o, subscription: d, allowed: u } = t, _ = $e(u), p = i == null ? void 0 : i.accountCenterUrl, g = c ? J(c) : !1, y = ke(c), A = c ? Y(c) : "当前空间", F = `${window.location.origin}${H(s.routes.app, "subscription")}`, I = (x = o.data) == null ? void 0 : x.productCode, C = ne(p, { productCode: I, returnUrl: F, spaceId: g ? l : void 0 }), b = ne(p, { productCode: I, returnUrl: F, spaceType: "team" }), M = G(p, "orders"), P = d.isError && oe(d.error), w = d.data, k = (f) => y ? /* @__PURE__ */ e(E, { type: "primary", href: C, label: `${f}(在统一账号中心打开)`, children: f }) : /* @__PURE__ */ e("span", { className: n.ownerOnly, children: P ? "请团队所有者续费" : "请团队所有者购买" });
409
- return /* @__PURE__ */ r(L, { children: [
410
- /* @__PURE__ */ r(T, { className: n.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
411
- /* @__PURE__ */ r("div", { className: n.hero, "data-tone": P ? "warning" : "primary", children: [
412
- /* @__PURE__ */ r("div", { className: n.heroMain, children: [
413
- /* @__PURE__ */ r("span", { className: n.heroEyebrow, title: A, children: [
414
- /* @__PURE__ */ e(Ge, { "aria-hidden": "true" }),
415
- /* @__PURE__ */ r("span", { className: n.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: n.heroSkeleton }) }) : P ? /* @__PURE__ */ r(L, { children: [
421
- /* @__PURE__ */ e("span", { className: n.heroValue, children: "团队版已到期" }),
422
- /* @__PURE__ */ e("span", { className: n.heroMeta, children: "该团队的团队版已到期,请在统一账号中心续费后再使用,续费后成员继续共用套餐和积分。" })
423
- ] }) : d.isError ? /* @__PURE__ */ r(L, { children: [
424
- /* @__PURE__ */ e("span", { className: n.heroValue, children: "暂不可用" }),
425
- /* @__PURE__ */ e("span", { className: n.heroMeta, children: "暂时读不到当前套餐,请稍后重试。" })
426
- ] }) : w ? /* @__PURE__ */ r(L, { children: [
427
- /* @__PURE__ */ e("span", { className: n.heroValue, children: Ie(w) }),
428
- /* @__PURE__ */ r("span", { className: n.heroMeta, children: [
429
- /* @__PURE__ */ e(fe, { size: "small", color: "green", children: "生效中" }),
430
- at(w)
431
- ] })
432
- ] }) : /* @__PURE__ */ r(L, { children: [
433
- /* @__PURE__ */ e("span", { className: n.heroValue, children: "未开通" }),
434
- /* @__PURE__ */ e("span", { className: n.heroMeta, children: "当前空间还没有生效的套餐。" })
435
- ] })
436
- ] }),
437
- /* @__PURE__ */ r("div", { className: n.heroActions, children: [
438
- d.isError && !P ? /* @__PURE__ */ e(v, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(be, { "aria-hidden": "true" }), onClick: () => void d.refetch(), children: "重试" }) : null,
439
- d.isPending ? null : P ? k("续费团队版") : w && !w.isDefault ? k("续费或升级") : k(w ? "升级套餐" : "选择套餐")
440
- ] })
441
- ] }),
442
- /* @__PURE__ */ r("div", { className: n.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(Xa, { data: t, focusPlan: a }),
448
- c && !g ? /* @__PURE__ */ e(mn, { href: b, plan: nt(_.data) }) : null
449
- ] });
450
- }, pn = ({ subscription: t }) => t.isPending ? "读取中" : t.isError ? oe(t.error) ? "团队版已到期" : "暂不可用" : t.data ? Ie(t.data) : "未开通", un = ({ wallet: t }) => t.isPending ? "读取中" : t.data ? z(t.data.availablePoints) : "暂不可用", Zn = () => {
451
- var x;
452
- const { section: t = "" } = Ke(), { config: a } = D(), s = Q(), i = O(), { PointsDetail: c } = i, l = st(i), o = l.find((f) => f.key === t), d = ie(), u = it(re().state), _ = rt(), { confirmLogout: p, pending: g } = ct(), y = a.routes.app;
453
- if (!ot(t) && !o) return /* @__PURE__ */ e(ce, { replace: !0, to: H(y, "profile") });
454
- const A = {
455
- profile: "你的统一账号与当前空间。密码、登录设备和团队成员在 24.city 统一账号中心管理,所有产品同步生效。",
456
- subscription: "当前空间的套餐与权益,以统一账号中心为准;购买、续费和升级都在统一账号中心完成。",
457
- points: c ? `当前空间的可用积分,以及你在 ${s.shortName} 里的扣费明细。` : "当前空间的可用积分,由统一账号中心记账。"
458
- }, F = o ? o.description : A[t], I = lt(y, l).items, C = I.find((f) => f.to === H(y, t)), { activeSpace: b, profile: M, allowed: P } = _, w = ((x = M.data) == null ? void 0 : x.nickName) ?? "", k = Ce(b == null ? void 0 : b.role);
459
- return /* @__PURE__ */ r("div", { className: n.center, children: [
460
- /* @__PURE__ */ e("aside", { className: n.aside, "aria-label": "个人中心", children: /* @__PURE__ */ r(T, { className: n.identityCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
461
- /* @__PURE__ */ r("div", { className: n.identity, children: [
462
- /* @__PURE__ */ e(Re, { size: "medium", shape: "circle", className: n.identityAvatar, children: w ? Array.from(w)[0] : /* @__PURE__ */ e(me, { "aria-hidden": "true" }) }),
463
- /* @__PURE__ */ r("div", { className: n.identityText, children: [
464
- /* @__PURE__ */ e("span", { className: n.identityName, title: w || void 0, children: w || (M.isPending ? "" : dt) }),
465
- b ? /* @__PURE__ */ r("span", { className: n.identitySpace, children: [
466
- J(b) ? /* @__PURE__ */ e(ve, { "aria-hidden": "true" }) : /* @__PURE__ */ e(me, { "aria-hidden": "true" }),
467
- /* @__PURE__ */ e("span", { className: n.identitySpaceName, children: Y(b) }),
468
- k ? /* @__PURE__ */ e("span", { className: n.identityRole, children: k }) : null
469
- ] }) : null
470
- ] })
471
- ] }),
472
- P ? /* @__PURE__ */ r("div", { className: n.identityStats, children: [
473
- /* @__PURE__ */ r("div", { className: n.identityStat, children: [
474
- /* @__PURE__ */ e("span", { className: n.identityStatLabel, children: "当前套餐" }),
475
- /* @__PURE__ */ e("span", { className: n.identityStatValue, children: pn(_) })
476
- ] }),
477
- /* @__PURE__ */ r("div", { className: n.identityStat, children: [
478
- /* @__PURE__ */ e("span", { className: n.identityStatLabel, children: "可用积分" }),
479
- /* @__PURE__ */ e("span", { className: n.identityStatValue, children: un(_) })
480
- ] })
481
- ] }) : null,
482
- /* @__PURE__ */ e("nav", { className: n.nav, "aria-label": "个人中心分区", children: I.map((f) => {
483
- const K = f === C;
484
- return /* @__PURE__ */ r(
485
- v,
486
- {
487
- theme: "borderless",
488
- type: "tertiary",
489
- className: n.navItem,
490
- "aria-current": K ? "page" : void 0,
491
- onClick: () => d(f.to),
492
- children: [
493
- f.icon ? /* @__PURE__ */ e("span", { className: n.navIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(f.icon, {}) }) : null,
494
- /* @__PURE__ */ e("span", { className: n.navLabel, children: f.label }),
495
- /* @__PURE__ */ e(Qe, { className: n.navArrow, "aria-hidden": "true" })
496
- ]
497
- },
498
- f.key
499
- );
500
- }) }),
501
- /* @__PURE__ */ e("div", { className: n.asideFoot, children: /* @__PURE__ */ e(v, { theme: "borderless", type: "tertiary", className: n.logout, icon: /* @__PURE__ */ e(Ye, { "aria-hidden": "true" }), disabled: g, onClick: p, children: "退出登录" }) })
502
- ] }) }),
503
- /* @__PURE__ */ r("div", { className: n.main, children: [
504
- /* @__PURE__ */ r("header", { className: n.head, children: [
505
- /* @__PURE__ */ e(ee.Title, { heading: 1, className: n.title, children: C == null ? void 0 : C.label }),
506
- /* @__PURE__ */ e(ee.Paragraph, { className: n.description, children: F })
507
- ] }),
508
- P ? o ? /* @__PURE__ */ e(o.Component, { data: _ }) : t === "profile" ? /* @__PURE__ */ e(va, { data: _ }) : t === "subscription" ? /* @__PURE__ */ e(_n, { data: _, focusPlan: u }) : /* @__PURE__ */ e(ba, { data: _ }) : /* @__PURE__ */ e(Xe, {})
509
- ] })
510
- ] });
511
- }, gn = "_meter_o7x3q_7", Nn = "_head_o7x3q_16", fn = "_label_o7x3q_24", yn = "_value_o7x3q_33", bn = "_bar_o7x3q_53", vn = "_note_o7x3q_57", U = {
512
- meter: gn,
513
- head: Nn,
514
- label: fn,
515
- value: yn,
516
- bar: bn,
517
- note: vn
518
- }, Z = (t) => t.toLocaleString("zh-CN", { maximumFractionDigits: 0 }), wn = ({ unit: t, used: a, total: s, status: i }) => i === "loading" ? "…" : i === "error" || a === void 0 || s === void 0 ? "暂不可用" : xe(s) ? `已用 ${Z(a)} ${t} · 不限` : `已用 ${Z(a)}/${Z(s)} ${t}`, Sn = ({ used: t, total: a, status: s }) => s !== void 0 || t === void 0 || a === void 0 || a <= 0 || xe(a) ? null : Math.min(1, Math.max(0, t / a)), es = (t) => {
519
- const { label: a, note: s, exhausted: i, status: c } = t, l = wn(t), o = Sn(t), d = c === void 0 && (i ?? (o !== null && o >= 1)), u = d ? "warning" : l === "暂不可用" ? "muted" : void 0;
520
- return /* @__PURE__ */ r("div", { className: U.meter, role: "group", "aria-label": a, children: [
521
- /* @__PURE__ */ r("div", { className: U.head, children: [
522
- /* @__PURE__ */ e("span", { className: U.label, children: a }),
523
- /* @__PURE__ */ e("span", { className: U.value, "data-tone": u, 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": a,
534
- "aria-valuetext": l
535
- }
536
- ) : null,
537
- s ? /* @__PURE__ */ e("span", { className: U.note, children: s }) : null
538
- ] });
539
- }, ts = () => {
540
- const t = re(), a = ie(), { accountApi: s, config: i } = D(), { bootstrapped: c, serviceUnavailable: l, session: o } = we(), d = Se(new URLSearchParams(t.search).get("returnPath"), i.routes.app), u = s.startLogin(d, i.routes.app);
541
- return Te(() => {
542
- c && !o && !l && !et() && !_e() && window.location.replace(u);
543
- }, [c, u, 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
- v,
552
- {
553
- theme: "solid",
554
- type: "primary",
555
- onClick: () => {
556
- pe(), window.location.replace(u);
557
- },
558
- children: "重新登录"
559
- }
560
- ),
561
- /* @__PURE__ */ e(
562
- v,
563
- {
564
- theme: "light",
565
- type: "tertiary",
566
- onClick: () => {
567
- pe(), a(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(v, { theme: "solid", type: "primary", onClick: () => window.location.replace(u), children: "重试" }),
582
- /* @__PURE__ */ e(v, { theme: "light", type: "tertiary", onClick: () => a(i.routes.publicHome), children: "返回首页" })
583
- ] })
584
- }
585
- ) }) : /* @__PURE__ */ e(j, { status: "loading", title: "正在前往统一登录…" }) });
586
- }, Cn = "_pill_1hckq_2", Pn = "_upgrade_1hckq_24", Ne = {
587
- pill: Cn,
588
- upgrade: Pn
589
- }, as = ({ quota: t, unit: a, onUpgrade: s }) => {
590
- if (!t) return null;
591
- const i = ht(t);
592
- return /* @__PURE__ */ r("span", { className: Ne.pill, "data-full": i ? "true" : "false", role: "status", children: [
593
- /* @__PURE__ */ e("span", { children: mt(t, a) }),
594
- i ? /* @__PURE__ */ e(v, { theme: "borderless", type: "tertiary", size: "small", className: Ne.upgrade, onClick: s, children: "升级" }) : null
595
- ] });
596
- }, ns = ({ children: t }) => {
597
- const a = re(), { config: s } = D(), { bootstrapped: i, serviceUnavailable: c, session: l } = we();
598
- if (!i) return /* @__PURE__ */ e(We, {});
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(v, { theme: "solid", type: "primary", onClick: () => window.location.reload(), children: "重新加载" })
607
- }
608
- ) }) });
609
- if (!l || l.purpose !== "user") {
610
- const o = Se(a.pathname + a.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
- }, $n = "_modal_6pw0p_6", kn = "_hero_6pw0p_15", Ln = "_close_6pw0p_15", In = "_badge_6pw0p_35", xn = "_art_6pw0p_48", Tn = "_title_6pw0p_61", An = "_description_6pw0p_69", zn = "_body_6pw0p_76", En = "_offer_6pw0p_83", Fn = "_offerName_6pw0p_89", Mn = "_lines_6pw0p_95", Un = "_line_6pw0p_95", Rn = "_check_6pw0p_110", On = "_cta_6pw0p_123", Dn = "_ctaPrice_6pw0p_140", Bn = "_ownerOnly_6pw0p_150", Vn = "_later_6pw0p_158", N = {
615
- modal: $n,
616
- hero: kn,
617
- close: Ln,
618
- badge: In,
619
- art: xn,
620
- title: Tn,
621
- description: An,
622
- body: zn,
623
- offer: En,
624
- offerName: Fn,
625
- lines: Mn,
626
- line: Un,
627
- check: Rn,
628
- cta: On,
629
- ctaPrice: Dn,
630
- ownerOnly: Bn,
631
- later: Vn
632
- }, ss = ({
633
- title: t,
634
- description: a,
635
- art: s = "engine",
636
- onClose: i
637
- }) => {
638
- const c = ie(), l = O(), { offer: o, plans: d, canBuy: u, subscriptionPath: _ } = _t(), p = o ? Ee(o.plan, d.data ?? [], l).filter((y) => y.included).slice(0, 5).map((y) => y.text) : [], g = o != null && o.price ? `${Le(o.price)}起` : "";
639
- return (
640
- // Semi 把 className 挂在最外层包装上(遮罩和弹窗的共同父元素),不在 .semi-modal 上:宽度用 width 属性给。
641
- // header={null} 时 Semi 连关闭按钮也不渲染,右上角的关闭按钮自己画在插画区里。
642
- /* @__PURE__ */ r(De, { visible: !0, header: null, footer: null, onCancel: i, className: N.modal, width: 400, centered: !0, children: [
643
- /* @__PURE__ */ r("div", { className: N.hero, "data-art": s, children: [
644
- /* @__PURE__ */ e(
645
- v,
646
- {
647
- theme: "borderless",
648
- type: "tertiary",
649
- size: "small",
650
- icon: /* @__PURE__ */ e(Je, { "aria-hidden": "true" }),
651
- "aria-label": "关闭",
652
- className: N.close,
653
- onClick: i
654
- }
655
- ),
656
- /* @__PURE__ */ e("span", { className: N.badge, children: "会员专享" }),
657
- /* @__PURE__ */ e("span", { className: N.art, "aria-hidden": "true" }),
658
- /* @__PURE__ */ e("span", { className: N.title, children: t }),
659
- /* @__PURE__ */ e("span", { className: N.description, children: a })
660
- ] }),
661
- /* @__PURE__ */ r("div", { className: N.body, children: [
662
- o ? /* @__PURE__ */ r("span", { className: N.offer, children: [
663
- "升级到",
664
- /* @__PURE__ */ e("span", { className: N.offerName, children: o.plan.name }),
665
- "即可使用,同时获得:"
666
- ] }) : /* @__PURE__ */ e("span", { className: N.offer, children: "升级套餐即可使用。" }),
667
- p.length ? /* @__PURE__ */ e("div", { className: N.lines, role: "list", "aria-label": "升级后的权益", children: p.map((y) => /* @__PURE__ */ r("div", { className: N.line, role: "listitem", children: [
668
- /* @__PURE__ */ e("span", { className: N.check, "aria-hidden": "true", children: /* @__PURE__ */ e(se, {}) }),
669
- y
670
- ] }, y)) }) : null,
671
- u ? /* @__PURE__ */ r(
672
- v,
673
- {
674
- theme: "light",
675
- type: "tertiary",
676
- block: !0,
677
- className: N.cta,
678
- "aria-label": `立即升级${g ? `,${g}` : ""}(打开订阅与套餐)`,
679
- onClick: () => {
680
- i(), c(_, { state: pt(o == null ? void 0 : o.plan.code) });
681
- },
682
- children: [
683
- "立即升级",
684
- g ? /* @__PURE__ */ e("span", { className: N.ctaPrice, children: g }) : null
685
- ]
686
- }
687
- ) : /* @__PURE__ */ e("span", { className: N.ownerOnly, children: "团队套餐由所有者在统一账号中心升级,请联系团队所有者。" }),
688
- /* @__PURE__ */ e(v, { theme: "borderless", type: "tertiary", block: !0, className: N.later, onClick: i, children: "暂不升级" })
689
- ] })
690
- ] })
691
- );
692
- };
693
- export {
694
- Zn as A,
695
- E as C,
696
- ts as L,
697
- Xa as P,
698
- as as Q,
699
- ns as R,
700
- X as S,
701
- mn as T,
702
- ss as U,
703
- es as a,
704
- ba as b,
705
- va as c,
706
- _n as d,
707
- G as e,
708
- ze as f,
709
- ne as g,
710
- Ca as h,
711
- Ee as p,
712
- Pa as y
713
- };