@24city/web-console 0.3.11 → 0.3.13

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.
@@ -1,13 +1,13 @@
1
1
  import { jsxs as o, jsx as e, Fragment as x } from "react/jsx-runtime";
2
- import { Card as A, Button as P, Typography as ne, Tag as we, Skeleton as H, Banner as De, RadioGroup as Be, Avatar as Ve, Progress as je, Space as pe, Modal as qe } from "@douyinfe/semi-ui";
3
- import { IconExternalOpen as Se, IconGift as He, IconRefresh as Pe, IconLock as Ge, IconDesktop as Ke, IconUserGroup as Ce, IconShield as Qe, IconTick as re, IconMinus as Ye, IconCrown as Je, IconUser as _e, IconChevronRight as We, IconExit as Xe, IconClose as Ze } from "@douyinfe/semi-icons";
2
+ import { Card as z, Button as P, Typography as ne, Tag as we, Skeleton as H, Banner as De, RadioGroup as Ve, Avatar as Be, Progress as je, Space as pe, Modal as qe } from "@douyinfe/semi-ui";
3
+ import { IconExternalOpen as Se, IconGift as He, IconRefresh as Pe, IconLock as Ge, IconDesktop as Ye, IconUserGroup as Ce, IconShield as Ke, IconTick as re, IconMinus as Qe, IconCrown as Je, IconUser as _e, IconChevronRight as We, IconExit as Xe, IconClose as Ze } from "@douyinfe/semi-icons";
4
4
  import { useParams as et, useNavigate as oe, useLocation as ce, Navigate as le } from "react-router";
5
5
  import { S as tt, F as ae, e as q, c as nt } from "./page-YBG0dEN1.js";
6
- import { u as Y, a as D, b as R } from "./context-CaVim6ZO.js";
7
- import { q as M, m as at, u as de, C as $e, i as st, d as ge, r as fe } from "./logout-signal-CsnJzWTz.js";
8
- import { J, K as ke, s as W, n as it, L as Le, o as se, T as Ie, R as Te, j as xe, t as he, g as G, p as Ee, C as ze, B as rt, m as ot, D as ct, y as lt, N as dt, O as ht, r as mt, i as ut, F as pt, u as Ae, H as _t, I as gt, Q as ft, z as Nt } from "./wallet-badge-3oCaCiNm.js";
6
+ import { u as Q, a as D, b as R } from "./context-CaVim6ZO.js";
7
+ import { q as M, m as at, u as de, D as $e, i as st, d as ge, r as fe } from "./logout-signal-XyvlxcEc.js";
8
+ import { M as J, N as ke, u as W, p as it, O as Le, q as se, Y as Te, V as Ie, k as xe, v as he, h as G, r as Ee, G as Ae, D as rt, o as ot, H as ct, B as lt, R as dt, S as ht, t as mt, j as ut, F as pt, w as ze, J as _t, K as gt, T as ft, C as Nt } from "./wallet-badge-DIJeoyjn.js";
9
9
  import { L as me } from "./link-button-PqZcqU6s.js";
10
- import { useState as bt, useRef as K, useEffect as X, useSyncExternalStore as yt, useCallback as Ne } from "react";
10
+ import { useState as bt, useRef as Y, useEffect as X, useSyncExternalStore as yt, useCallback as Ne } from "react";
11
11
  const vt = {
12
12
  /** 统一资料(显示名称)、修改登录密码、登录设备与导出个人数据 */
13
13
  settings: "/app/settings",
@@ -26,7 +26,7 @@ const vt = {
26
26
  } catch {
27
27
  return null;
28
28
  }
29
- }, Q = (t, n) => {
29
+ }, K = (t, n) => {
30
30
  const a = Me(t);
31
31
  return a ? `${a}${vt[n]}` : null;
32
32
  }, ie = (t, n) => {
@@ -34,7 +34,7 @@ const vt = {
34
34
  if (!a) return null;
35
35
  const i = new URLSearchParams();
36
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), `${a}/plans?${i.toString()}`;
37
- }, wt = "_center_14d6l_7", St = "_aside_14d6l_21", Pt = "_identityCard_14d6l_27", Ct = "_identity_14d6l_27", $t = "_identityAvatar_14d6l_42", kt = "_identityText_14d6l_55", Lt = "_identityName_14d6l_64", It = "_identitySpace_14d6l_76", Tt = "_identitySpaceName_14d6l_91", xt = "_identityRole_14d6l_98", Et = "_identityStats_14d6l_108", zt = "_identityStat_14d6l_108", At = "_identityStatLabel_14d6l_129", Mt = "_identityStatValue_14d6l_135", Ft = "_nav_14d6l_147", Ut = "_navItem_14d6l_156", Rt = "_navIcon_14d6l_191", Ot = "_navLabel_14d6l_202", Dt = "_navArrow_14d6l_207", Bt = "_asideFoot_14d6l_223", Vt = "_logout_14d6l_228", jt = "_main_14d6l_249", qt = "_head_14d6l_262", Ht = "_title_14d6l_268", Gt = "_description_14d6l_277", Kt = "_card_14d6l_286", Qt = "_usage_14d6l_285", Yt = "_fields_14d6l_318", Jt = "_field_14d6l_318", Wt = "_fieldLabel_14d6l_331", Xt = "_fieldValue_14d6l_337", Zt = "_fieldText_14d6l_345", en = "_fieldMuted_14d6l_358", tn = "_fieldHint_14d6l_364", nn = "_mono_14d6l_370", an = "_inlineTag_14d6l_379", sn = "_settingList_14d6l_384", rn = "_settingRow_14d6l_389", on = "_settingIcon_14d6l_405", cn = "_settingText_14d6l_418", ln = "_settingTitle_14d6l_426", dn = "_settingDescription_14d6l_433", hn = "_settingAction_14d6l_439", mn = "_note_14d6l_443", un = "_centerLink_14d6l_463", pn = "_centerLinkIcon_14d6l_469", _n = "_heroCard_14d6l_477", gn = "_hero_14d6l_477", fn = "_heroMain_14d6l_501", Nn = "_heroEyebrow_14d6l_510", bn = "_heroEyebrowText_14d6l_525", yn = "_heroValue_14d6l_536", vn = "_heroMeta_14d6l_546", wn = "_heroActions_14d6l_560", Sn = "_heroFoot_14d6l_569", Pn = "_ownerOnly_14d6l_587", Cn = "_heroSkeleton_14d6l_709", s = {
37
+ }, wt = "_center_14d6l_7", St = "_aside_14d6l_21", Pt = "_identityCard_14d6l_27", Ct = "_identity_14d6l_27", $t = "_identityAvatar_14d6l_42", kt = "_identityText_14d6l_55", Lt = "_identityName_14d6l_64", Tt = "_identitySpace_14d6l_76", It = "_identitySpaceName_14d6l_91", xt = "_identityRole_14d6l_98", Et = "_identityStats_14d6l_108", At = "_identityStat_14d6l_108", zt = "_identityStatLabel_14d6l_129", Mt = "_identityStatValue_14d6l_135", Ft = "_nav_14d6l_147", Ut = "_navItem_14d6l_156", Rt = "_navIcon_14d6l_191", Ot = "_navLabel_14d6l_202", Dt = "_navArrow_14d6l_207", Vt = "_asideFoot_14d6l_223", Bt = "_logout_14d6l_228", jt = "_main_14d6l_249", qt = "_head_14d6l_262", Ht = "_title_14d6l_268", Gt = "_description_14d6l_277", Yt = "_card_14d6l_286", Kt = "_usage_14d6l_285", Qt = "_fields_14d6l_318", Jt = "_field_14d6l_318", Wt = "_fieldLabel_14d6l_331", Xt = "_fieldValue_14d6l_337", Zt = "_fieldText_14d6l_345", en = "_fieldMuted_14d6l_358", tn = "_fieldHint_14d6l_364", nn = "_mono_14d6l_370", an = "_inlineTag_14d6l_379", sn = "_settingList_14d6l_384", rn = "_settingRow_14d6l_389", on = "_settingIcon_14d6l_405", cn = "_settingText_14d6l_418", ln = "_settingTitle_14d6l_426", dn = "_settingDescription_14d6l_433", hn = "_settingAction_14d6l_439", mn = "_note_14d6l_443", un = "_centerLink_14d6l_463", pn = "_centerLinkIcon_14d6l_469", _n = "_heroCard_14d6l_477", gn = "_hero_14d6l_477", fn = "_heroMain_14d6l_501", Nn = "_heroEyebrow_14d6l_510", bn = "_heroEyebrowText_14d6l_525", yn = "_heroValue_14d6l_536", vn = "_heroMeta_14d6l_546", wn = "_heroActions_14d6l_560", Sn = "_heroFoot_14d6l_569", Pn = "_ownerOnly_14d6l_587", Cn = "_heroSkeleton_14d6l_709", s = {
38
38
  center: wt,
39
39
  aside: St,
40
40
  identityCard: Pt,
@@ -42,27 +42,27 @@ const vt = {
42
42
  identityAvatar: $t,
43
43
  identityText: kt,
44
44
  identityName: Lt,
45
- identitySpace: It,
46
- identitySpaceName: Tt,
45
+ identitySpace: Tt,
46
+ identitySpaceName: It,
47
47
  identityRole: xt,
48
48
  identityStats: Et,
49
- identityStat: zt,
50
- identityStatLabel: At,
49
+ identityStat: At,
50
+ identityStatLabel: zt,
51
51
  identityStatValue: Mt,
52
52
  nav: Ft,
53
53
  navItem: Ut,
54
54
  navIcon: Rt,
55
55
  navLabel: Ot,
56
56
  navArrow: Dt,
57
- asideFoot: Bt,
58
- logout: Vt,
57
+ asideFoot: Vt,
58
+ logout: Bt,
59
59
  main: jt,
60
60
  head: qt,
61
61
  title: Ht,
62
62
  description: Gt,
63
- card: Kt,
64
- usage: Qt,
65
- fields: Yt,
63
+ card: Yt,
64
+ usage: Kt,
65
+ fields: Qt,
66
66
  field: Jt,
67
67
  fieldLabel: Wt,
68
68
  fieldValue: Xt,
@@ -127,16 +127,16 @@ const vt = {
127
127
  i ? /* @__PURE__ */ e("div", { className: s.settingAction, children: i }) : null
128
128
  ] }), $n = ({ data: t }) => {
129
129
  var f;
130
- const n = Y(), { PointsDetail: a } = D(), { session: i, activeSpace: r, activeSpaceId: c, globalUserId: l, wallet: d } = t, p = Q(i == null ? void 0 : i.accountCenterUrl, "points"), _ = r ? J(r) : "当前空间", h = (f = d.data) == null ? void 0 : f.availablePoints;
130
+ const n = Q(), { PointsDetail: a } = D(), { session: i, activeSpace: r, activeSpaceId: c, globalUserId: l, wallet: d } = t, _ = K(i == null ? void 0 : i.accountCenterUrl, "points"), m = r ? J(r) : "当前空间", h = (f = d.data) == null ? void 0 : f.availablePoints;
131
131
  return /* @__PURE__ */ o(x, { children: [
132
- /* @__PURE__ */ o(A, { className: s.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
132
+ /* @__PURE__ */ o(z, { className: s.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
133
133
  /* @__PURE__ */ o("div", { className: s.hero, "data-tone": "primary", children: [
134
134
  /* @__PURE__ */ o("div", { className: s.heroMain, children: [
135
- /* @__PURE__ */ o("span", { className: s.heroEyebrow, title: _, children: [
135
+ /* @__PURE__ */ o("span", { className: s.heroEyebrow, title: m, children: [
136
136
  /* @__PURE__ */ e(He, { "aria-hidden": "true" }),
137
137
  /* @__PURE__ */ o("span", { className: s.heroEyebrowText, children: [
138
138
  "可用积分 · ",
139
- _
139
+ m
140
140
  ] })
141
141
  ] }),
142
142
  /* @__PURE__ */ e("span", { className: s.heroValue, "aria-live": "polite", children: d.isPending ? "读取中" : d.isError || h === void 0 ? "暂不可用" : M(h) }),
@@ -144,7 +144,7 @@ const vt = {
144
144
  ] }),
145
145
  /* @__PURE__ */ o("div", { className: s.heroActions, children: [
146
146
  /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(Pe, { "aria-hidden": "true" }), disabled: d.isFetching, onClick: () => void d.refetch(), children: "刷新" }),
147
- /* @__PURE__ */ e(F, { type: "primary", href: p, label: "全部积分消耗(在统一账号中心打开)", children: "全部积分消耗" })
147
+ /* @__PURE__ */ e(F, { type: "primary", href: _, label: "全部积分消耗(在统一账号中心打开)", children: "全部积分消耗" })
148
148
  ] })
149
149
  ] }),
150
150
  /* @__PURE__ */ e("div", { className: s.heroFoot, children: /* @__PURE__ */ e("span", { children: a ? `下面是你本人在 ${n.shortName} 里的扣费明细;当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。` : "当前空间在 24.city 各产品里的全部积分消耗,请到统一账号中心查看。" }) })
@@ -159,22 +159,22 @@ const vt = {
159
159
  ] })
160
160
  ] }), kn = ({ data: t }) => {
161
161
  var f;
162
- const n = Y(), { session: a, activeSpace: i, profile: r, globalUserId: c } = t, l = a == null ? void 0 : a.accountCenterUrl, d = ((f = r.data) == null ? void 0 : f.nickName) ?? "", p = ke(i == null ? void 0 : i.role), _ = Q(l, "settings"), h = Q(l, "spaces");
162
+ const n = Q(), { session: a, activeSpace: i, profile: r, globalUserId: c } = t, l = a == null ? void 0 : a.accountCenterUrl, d = ((f = r.data) == null ? void 0 : f.nickName) ?? "", _ = ke(i == null ? void 0 : i.role), m = K(l, "settings"), h = K(l, "spaces");
163
163
  return /* @__PURE__ */ o(x, { children: [
164
- /* @__PURE__ */ e(A, { title: "账号信息", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ o("div", { className: s.fields, children: [
164
+ /* @__PURE__ */ e(z, { title: "账号信息", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ o("div", { className: s.fields, children: [
165
165
  /* @__PURE__ */ e(j, { label: "昵称", hint: `首次登录 ${n.shortName} 时从统一账号带来`, children: /* @__PURE__ */ e("span", { className: s.fieldText, children: d || (r.isPending ? "读取中" : "未设置") }) }),
166
166
  /* @__PURE__ */ e(j, { label: "统一账号 ID", hint: "联系客服时可以提供", children: /* @__PURE__ */ e(ne.Text, { copyable: { copyTip: "复制", successTip: "已复制" }, className: s.mono, children: c }) }),
167
167
  /* @__PURE__ */ e(j, { label: "当前空间", children: /* @__PURE__ */ o("span", { className: s.fieldText, children: [
168
168
  i ? J(i) : "暂不可用",
169
169
  i && W(i) ? /* @__PURE__ */ e(we, { size: "small", color: "blue", className: s.inlineTag, children: "团队" }) : null,
170
- p ? /* @__PURE__ */ o("span", { className: s.fieldMuted, children: [
170
+ _ ? /* @__PURE__ */ o("span", { className: s.fieldMuted, children: [
171
171
  "· 我是",
172
- p
172
+ _
173
173
  ] }) : null
174
174
  ] }) }),
175
175
  /* @__PURE__ */ e(j, { label: "本次登录有效至", hint: "到期后重新登录即可", children: /* @__PURE__ */ e("span", { className: s.fieldText, children: a ? at(a.absoluteExpiresAt) : "暂无" }) })
176
176
  ] }) }),
177
- /* @__PURE__ */ o(A, { title: "登录与安全", className: s.card, bordered: !1, headerLine: !1, children: [
177
+ /* @__PURE__ */ o(z, { title: "登录与安全", className: s.card, bordered: !1, headerLine: !1, children: [
178
178
  /* @__PURE__ */ o("div", { className: s.settingList, children: [
179
179
  /* @__PURE__ */ e(
180
180
  Z,
@@ -182,16 +182,16 @@ const vt = {
182
182
  icon: /* @__PURE__ */ e(Ge, {}),
183
183
  title: "登录密码",
184
184
  description: "验证已绑定的手机号后修改。改完后,24.city 所有产品都用新密码登录。",
185
- action: /* @__PURE__ */ e(F, { href: _, label: "修改密码(在统一账号中心打开)", children: "修改密码" })
185
+ action: /* @__PURE__ */ e(F, { href: m, label: "修改密码(在统一账号中心打开)", children: "修改密码" })
186
186
  }
187
187
  ),
188
188
  /* @__PURE__ */ e(
189
189
  Z,
190
190
  {
191
- icon: /* @__PURE__ */ e(Ke, {}),
191
+ icon: /* @__PURE__ */ e(Ye, {}),
192
192
  title: "登录设备与个人数据",
193
193
  description: "查看登录过的设备,导出你的个人数据。",
194
- action: /* @__PURE__ */ e(F, { href: _, label: "查看登录设备(在统一账号中心打开)", children: "前往查看" })
194
+ action: /* @__PURE__ */ e(F, { href: m, label: "查看登录设备(在统一账号中心打开)", children: "前往查看" })
195
195
  }
196
196
  ),
197
197
  /* @__PURE__ */ e(
@@ -205,8 +205,8 @@ const vt = {
205
205
  )
206
206
  ] }),
207
207
  /* @__PURE__ */ o("div", { className: s.note, children: [
208
- /* @__PURE__ */ e(Qe, { "aria-hidden": "true" }),
209
- /* @__PURE__ */ e("span", { children: _ ? `${n.shortName} 使用 24.city 统一账号登录,不保存你的密码和验证码。以上设置在统一账号中心修改,所有产品同步生效。` : "统一账号中心的地址暂时不可用,请稍后刷新页面再试。" })
208
+ /* @__PURE__ */ e(Ke, { "aria-hidden": "true" }),
209
+ /* @__PURE__ */ e("span", { children: m ? `${n.shortName} 使用 24.city 统一账号登录,不保存你的密码和验证码。以上设置在统一账号中心修改,所有产品同步生效。` : "统一账号中心的地址暂时不可用,请稍后刷新页面再试。" })
210
210
  ] })
211
211
  ] })
212
212
  ] });
@@ -218,9 +218,9 @@ const vt = {
218
218
  tone: "team",
219
219
  tagline: "团队一起用,套餐和积分共用",
220
220
  benefits: ["成员共用套餐和积分"]
221
- }, In = (t, n) => t.spaceType === "team" ? n.teamPlanCopy ?? Ln : t.isDefault || t.tier <= 0 ? ee.free : t.tier === 1 ? ee.standard : ee.pro, Fe = (t, n = {}) => {
221
+ }, Tn = (t, n) => t.spaceType === "team" ? n.teamPlanCopy ?? Ln : t.isDefault || t.tier <= 0 ? ee.free : t.tier === 1 ? ee.standard : ee.pro, Fe = (t, n = {}) => {
222
222
  var a;
223
- return ((a = n.planCopy) == null ? void 0 : a[t.code]) ?? In(t, n);
223
+ return ((a = n.planCopy) == null ? void 0 : a[t.code]) ?? Tn(t, n);
224
224
  }, Ue = (t, n = [], a = {}) => {
225
225
  const i = [], r = (c, l = !0) => {
226
226
  i.some((d) => d.text === c) || i.push({ text: c, included: l });
@@ -229,29 +229,29 @@ const vt = {
229
229
  for (const c of it(t, n, a)) r(c.text, c.included);
230
230
  for (const c of Fe(t, a).benefits) r(c);
231
231
  return i;
232
- }, Tn = (t, n) => t.prices.filter((r) => r.billingPeriod === n && r.amountCents > 0).reduce((r, c) => !r || c.amountCents < r.amountCents ? c : r, null) ?? Le(t), xn = (t, n) => {
232
+ }, In = (t, n) => t.prices.filter((r) => r.billingPeriod === n && r.amountCents > 0).reduce((r, c) => !r || c.amountCents < r.amountCents ? c : r, null) ?? Le(t), xn = (t, n) => {
233
233
  if (n.billingPeriod !== "year") return "";
234
234
  const a = se({ amountCents: Math.round(n.amountCents / 12), currency: n.currency }), i = t.prices.find((c) => c.billingPeriod === "month" && c.currency === n.currency && c.amountCents > 0), r = i ? i.amountCents * 12 - n.amountCents : 0;
235
235
  return r > 0 ? `约 ${a}/月 · 比月付省 ${se({ amountCents: r, currency: n.currency })}` : `约 ${a}/月`;
236
- }, En = "_subtitle_m4zgm_7", zn = "_grid_m4zgm_16", An = "_skeleton_m4zgm_22", Mn = "_card_m4zgm_30", Fn = "_section_m4zgm_62", Un = "_badge_m4zgm_90", Rn = "_top_m4zgm_109", On = "_art_m4zgm_139", Dn = "_name_m4zgm_160", Bn = "_tagline_m4zgm_178", Vn = "_price_m4zgm_195", jn = "_amount_m4zgm_202", qn = "_period_m4zgm_218", Hn = "_priceNote_m4zgm_227", Gn = "_body_m4zgm_244", Kn = "_benefits_m4zgm_252", Qn = "_benefit_m4zgm_252", Yn = "_check_m4zgm_268", Jn = "_action_m4zgm_304", Wn = "_cta_m4zgm_304", Xn = "_ctaCurrent_m4zgm_345", Zn = "_ctaNote_m4zgm_354", u = {
236
+ }, En = "_subtitle_m4zgm_7", An = "_grid_m4zgm_16", zn = "_skeleton_m4zgm_22", Mn = "_card_m4zgm_30", Fn = "_section_m4zgm_62", Un = "_badge_m4zgm_90", Rn = "_top_m4zgm_109", On = "_art_m4zgm_139", Dn = "_name_m4zgm_160", Vn = "_tagline_m4zgm_178", Bn = "_price_m4zgm_195", jn = "_amount_m4zgm_202", qn = "_period_m4zgm_218", Hn = "_priceNote_m4zgm_227", Gn = "_body_m4zgm_244", Yn = "_benefits_m4zgm_252", Kn = "_benefit_m4zgm_252", Qn = "_check_m4zgm_268", Jn = "_action_m4zgm_304", Wn = "_cta_m4zgm_304", Xn = "_ctaCurrent_m4zgm_345", Zn = "_ctaNote_m4zgm_354", p = {
237
237
  subtitle: En,
238
- grid: zn,
239
- skeleton: An,
238
+ grid: An,
239
+ skeleton: zn,
240
240
  card: Mn,
241
241
  section: Fn,
242
242
  badge: Un,
243
243
  top: Rn,
244
244
  art: On,
245
245
  name: Dn,
246
- tagline: Bn,
247
- price: Vn,
246
+ tagline: Vn,
247
+ price: Bn,
248
248
  amount: jn,
249
249
  period: qn,
250
250
  priceNote: Hn,
251
251
  body: Gn,
252
- benefits: Kn,
253
- benefit: Qn,
254
- check: Yn,
252
+ benefits: Yn,
253
+ benefit: Kn,
254
+ check: Qn,
255
255
  action: Jn,
256
256
  cta: Wn,
257
257
  ctaCurrent: Xn,
@@ -268,101 +268,101 @@ const vt = {
268
268
  action: c,
269
269
  custom: l
270
270
  }) => {
271
- const d = Fe(t, l), p = n ? xn(t, n) : "长期有效", _ = d.badge ?? (r ? "推荐升级" : void 0);
271
+ const d = Fe(t, l), _ = n ? xn(t, n) : "长期有效", m = d.badge ?? (r ? "推荐升级" : void 0);
272
272
  return /* @__PURE__ */ o(
273
273
  "div",
274
274
  {
275
- className: u.card,
275
+ className: p.card,
276
276
  "data-tone": d.tone,
277
277
  "data-current": i ? "true" : "false",
278
278
  "data-focus": r && !i ? "true" : "false",
279
279
  role: "group",
280
280
  "aria-label": t.name,
281
281
  children: [
282
- i ? /* @__PURE__ */ e("span", { className: u.badge, "data-kind": "current", children: "当前套餐" }) : _ ? /* @__PURE__ */ e("span", { className: u.badge, children: _ }) : null,
283
- /* @__PURE__ */ o("div", { className: d.tone === "pro" ? `${u.top} semi-always-light` : u.top, children: [
284
- /* @__PURE__ */ e("span", { className: u.art, "aria-hidden": "true" }),
285
- /* @__PURE__ */ e("span", { className: u.name, children: t.name }),
286
- /* @__PURE__ */ e("span", { className: u.tagline, children: d.tagline }),
287
- /* @__PURE__ */ e("span", { className: u.price, children: n ? /* @__PURE__ */ o(x, { children: [
288
- /* @__PURE__ */ e("span", { className: u.amount, children: se(n) }),
289
- /* @__PURE__ */ e("span", { className: u.period, children: ea[n.billingPeriod] })
290
- ] }) : /* @__PURE__ */ e("span", { className: u.amount, children: "免费" }) }),
291
- /* @__PURE__ */ e("span", { className: u.priceNote, children: p || " " })
282
+ i ? /* @__PURE__ */ e("span", { className: p.badge, "data-kind": "current", children: "当前套餐" }) : m ? /* @__PURE__ */ e("span", { className: p.badge, children: m }) : null,
283
+ /* @__PURE__ */ o("div", { className: d.tone === "pro" ? `${p.top} semi-always-light` : p.top, children: [
284
+ /* @__PURE__ */ e("span", { className: p.art, "aria-hidden": "true" }),
285
+ /* @__PURE__ */ e("span", { className: p.name, children: t.name }),
286
+ /* @__PURE__ */ e("span", { className: p.tagline, children: d.tagline }),
287
+ /* @__PURE__ */ e("span", { className: p.price, children: n ? /* @__PURE__ */ o(x, { children: [
288
+ /* @__PURE__ */ e("span", { className: p.amount, children: se(n) }),
289
+ /* @__PURE__ */ e("span", { className: p.period, children: ea[n.billingPeriod] })
290
+ ] }) : /* @__PURE__ */ e("span", { className: p.amount, children: "免费" }) }),
291
+ /* @__PURE__ */ e("span", { className: p.priceNote, children: _ || " " })
292
292
  ] }),
293
- /* @__PURE__ */ o("div", { className: u.body, children: [
294
- /* @__PURE__ */ e("div", { className: u.benefits, role: "list", "aria-label": `${t.name}权益`, children: Ue(t, a, l).map((h) => /* @__PURE__ */ o("div", { className: u.benefit, "data-included": h.included ? "true" : "false", role: "listitem", children: [
295
- /* @__PURE__ */ e("span", { className: u.check, "aria-hidden": "true", children: h.included ? /* @__PURE__ */ e(re, {}) : /* @__PURE__ */ e(Ye, {}) }),
293
+ /* @__PURE__ */ o("div", { className: p.body, children: [
294
+ /* @__PURE__ */ e("div", { className: p.benefits, role: "list", "aria-label": `${t.name}权益`, children: Ue(t, a, l).map((h) => /* @__PURE__ */ o("div", { className: p.benefit, "data-included": h.included ? "true" : "false", role: "listitem", children: [
295
+ /* @__PURE__ */ e("span", { className: p.check, "aria-hidden": "true", children: h.included ? /* @__PURE__ */ e(re, {}) : /* @__PURE__ */ e(Qe, {}) }),
296
296
  /* @__PURE__ */ e("span", { children: h.text })
297
297
  ] }, h.text)) }),
298
- /* @__PURE__ */ e("div", { className: u.action, children: c })
298
+ /* @__PURE__ */ e("div", { className: p.action, children: c })
299
299
  ] })
300
300
  ]
301
301
  }
302
302
  );
303
303
  }, aa = ({ data: t, focusPlan: n }) => {
304
- const { config: a } = R(), i = Ie(), r = D(), { session: c, activeSpace: l, activeSpaceId: d, subscription: p, wallet: _, allowed: h } = t, f = Te(h), [y, k] = bt("month"), C = l ? W(l) : !1, v = xe(l), g = p.isError && he(p.error), w = p.data ?? null, I = (f.data ?? []).filter((m) => m.spaceType === (C ? "team" : "personal")), T = `${window.location.origin}${G(a.routes.app, "subscription")}`, S = (m) => {
304
+ const { config: a } = R(), i = Te(), r = D(), { session: c, activeSpace: l, activeSpaceId: d, subscription: _, wallet: m, allowed: h } = t, f = Ie(h), [y, k] = bt("month"), C = l ? W(l) : !1, v = xe(l), g = _.isError && he(_.error), w = _.data ?? null, T = (f.data ?? []).filter((u) => u.spaceType === (C ? "team" : "personal")), I = `${window.location.origin}${G(a.routes.app, "subscription")}`, S = (u) => {
305
305
  var L;
306
- return ie(c == null ? void 0 : c.accountCenterUrl, { productCode: (L = _.data) == null ? void 0 : L.productCode, returnUrl: T, spaceId: C ? d : void 0, priceCode: m });
307
- }, E = be(I, "month") && be(I, "year"), z = K(null), b = K(!1), B = !!(n && I.some((m) => m.code === n));
306
+ return ie(c == null ? void 0 : c.accountCenterUrl, { productCode: (L = m.data) == null ? void 0 : L.productCode, returnUrl: I, spaceId: C ? d : void 0, priceCode: u });
307
+ }, E = be(T, "month") && be(T, "year"), A = Y(null), b = Y(!1), V = !!(n && T.some((u) => u.code === n));
308
308
  X(() => {
309
- var m, L;
310
- !B || b.current || (b.current = !0, (L = (m = z.current) == null ? void 0 : m.scrollIntoView) == null || L.call(m, { behavior: "smooth", block: "start" }));
311
- }, [B]);
312
- const Re = (m, L, O) => {
313
- if (m.isDefault || !L)
314
- return O ? /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", block: !0, disabled: !0, className: u.ctaCurrent, children: "正在使用" }) : /* @__PURE__ */ e("span", { className: u.ctaNote, children: "会员到期后回到免费版" });
315
- if (!v) return /* @__PURE__ */ e("span", { className: u.ctaNote, children: g ? "请团队所有者续费" : "请团队所有者购买" });
316
- const V = O ? "续费" : g ? `续费${m.name}` : !w || w.isDefault ? "立即开通" : m.tier > w.tier ? `升级到${m.name}` : `选择${m.name}`, ue = S(L.code);
309
+ var u, L;
310
+ !V || b.current || (b.current = !0, (L = (u = A.current) == null ? void 0 : u.scrollIntoView) == null || L.call(u, { behavior: "smooth", block: "start" }));
311
+ }, [V]);
312
+ const Re = (u, L, O) => {
313
+ if (u.isDefault || !L)
314
+ return O ? /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", block: !0, disabled: !0, className: p.ctaCurrent, children: "正在使用" }) : /* @__PURE__ */ e("span", { className: p.ctaNote, children: "会员到期后回到免费版" });
315
+ if (!v) return /* @__PURE__ */ e("span", { className: p.ctaNote, children: g ? "请团队所有者续费" : "请团队所有者购买" });
316
+ const B = O ? "续费" : g ? `续费${u.name}` : !w || w.isDefault ? "立即开通" : u.tier > w.tier ? `升级到${u.name}` : `选择${u.name}`, ue = S(L.code);
317
317
  if (!ue) return null;
318
- const Oe = V.includes(m.name) ? V : `${V}${m.name}`;
318
+ const Oe = B.includes(u.name) ? B : `${B}${u.name}`;
319
319
  return /* @__PURE__ */ e(
320
320
  me,
321
321
  {
322
322
  block: !0,
323
- className: u.cta,
323
+ className: p.cta,
324
324
  href: ue,
325
325
  target: "_blank",
326
326
  "aria-label": `${Oe}(在统一账号中心打开)`,
327
- onClick: () => i("plan.selected", { target: L.code, props: { plan: m.code } }),
328
- children: V
327
+ onClick: () => i("plan.selected", { target: L.code, props: { plan: u.code } }),
328
+ children: B
329
329
  }
330
330
  );
331
331
  };
332
- return f.isPending ? /* @__PURE__ */ e(A, { title: "会员套餐", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e("div", { className: u.grid, children: [0, 1, 2].map((m) => /* @__PURE__ */ e("div", { className: u.skeleton, children: /* @__PURE__ */ e(H, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(H.Paragraph, { rows: 4 }) }) }, m)) }) }) : f.isError ? /* @__PURE__ */ e(A, { title: "会员套餐", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e(De, { type: "info", fullMode: !1, closeIcon: null, description: "暂时读不到套餐价格,可以在统一账号中心查看全部套餐。", children: /* @__PURE__ */ e(F, { size: "small", href: S(), label: "查看全部套餐(在统一账号中心打开)", children: "查看全部套餐" }) }) }) : I.length ? /* @__PURE__ */ e("div", { ref: z, children: /* @__PURE__ */ o(
333
- A,
332
+ return f.isPending ? /* @__PURE__ */ e(z, { title: "会员套餐", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e("div", { className: p.grid, children: [0, 1, 2].map((u) => /* @__PURE__ */ e("div", { className: p.skeleton, children: /* @__PURE__ */ e(H, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(H.Paragraph, { rows: 4 }) }) }, u)) }) }) : f.isError ? /* @__PURE__ */ e(z, { title: "会员套餐", className: s.card, bordered: !1, headerLine: !1, children: /* @__PURE__ */ e(De, { type: "info", fullMode: !1, closeIcon: null, description: "暂时读不到套餐价格,可以在统一账号中心查看全部套餐。", children: /* @__PURE__ */ e(F, { size: "small", href: S(), label: "查看全部套餐(在统一账号中心打开)", children: "查看全部套餐" }) }) }) : T.length ? /* @__PURE__ */ e("div", { ref: A, children: /* @__PURE__ */ o(
333
+ z,
334
334
  {
335
335
  title: "会员套餐",
336
- className: `${s.card} ${u.section}`,
336
+ className: `${s.card} ${p.section}`,
337
337
  bordered: !1,
338
338
  headerLine: !1,
339
339
  headerExtraContent: E ? /* @__PURE__ */ e(
340
- Be,
340
+ Ve,
341
341
  {
342
342
  type: "button",
343
343
  buttonSize: "small",
344
344
  options: ta,
345
345
  value: y,
346
- onChange: (m) => k(m.target.value),
346
+ onChange: (u) => k(u.target.value),
347
347
  "aria-label": "付费周期"
348
348
  }
349
349
  ) : null,
350
350
  children: [
351
- /* @__PURE__ */ e("span", { className: u.subtitle, children: "价格取自 24.city 统一账号中心,点按钮去统一账号中心付款,付款后回到这里。" }),
352
- /* @__PURE__ */ e("div", { className: u.grid, children: I.map((m) => {
353
- const L = Tn(m, y), O = !!(w && w.planCode === m.code);
351
+ /* @__PURE__ */ e("span", { className: p.subtitle, children: "价格取自 24.city 统一账号中心,点按钮去统一账号中心付款,付款后回到这里。" }),
352
+ /* @__PURE__ */ e("div", { className: p.grid, children: T.map((u) => {
353
+ const L = In(u, y), O = !!(w && w.planCode === u.code);
354
354
  return /* @__PURE__ */ e(
355
355
  na,
356
356
  {
357
- plan: m,
357
+ plan: u,
358
358
  price: L,
359
359
  catalog: f.data ?? [],
360
360
  current: O,
361
- focus: m.code === n,
362
- action: Re(m, L, O),
361
+ focus: u.code === n,
362
+ action: Re(u, L, O),
363
363
  custom: r
364
364
  },
365
- m.code
365
+ u.code
366
366
  );
367
367
  }) })
368
368
  ]
@@ -383,7 +383,7 @@ const vt = {
383
383
  ctaIcon: _a,
384
384
  price: ga
385
385
  }, fa = ({ href: t, plan: n }) => {
386
- const a = Y(), { teamPromoHighlights: i = [] } = D(), r = n ? Le(n) : null, c = [
386
+ const a = Q(), { teamPromoHighlights: i = [] } = D(), r = n ? Le(n) : null, c = [
387
387
  n && n.includedSeats > 0 ? `含 ${M(n.includedSeats)} 个成员席位` : "",
388
388
  n && n.monthlyPoints > 0 ? `每月 ${M(n.monthlyPoints)} 积分` : "",
389
389
  "套餐和积分团队共用",
@@ -415,11 +415,11 @@ const vt = {
415
415
  ] }) : null
416
416
  ] });
417
417
  }, Na = ({ data: t, focusPlan: n }) => {
418
- var z;
419
- const { config: a } = R(), { session: i, activeSpace: r, activeSpaceId: c, wallet: l, subscription: d, allowed: p } = t, _ = Te(p), h = i == null ? void 0 : i.accountCenterUrl, f = r ? W(r) : !1, y = xe(r), k = r ? J(r) : "当前空间", C = `${window.location.origin}${G(a.routes.app, "subscription")}`, v = (z = l.data) == null ? void 0 : z.productCode, g = ie(h, { productCode: v, returnUrl: C, spaceId: f ? c : void 0 }), w = ie(h, { productCode: v, returnUrl: C, spaceType: "team" }), I = Q(h, "orders"), T = d.isError && he(d.error), S = d.data, E = (b) => y ? /* @__PURE__ */ e(F, { type: "primary", href: g, label: `${b}(在统一账号中心打开)`, children: b }) : /* @__PURE__ */ e("span", { className: s.ownerOnly, children: T ? "请团队所有者续费" : "请团队所有者购买" });
418
+ var A;
419
+ const { config: a } = R(), { session: i, activeSpace: r, activeSpaceId: c, wallet: l, subscription: d, allowed: _ } = t, m = Ie(_), h = i == null ? void 0 : i.accountCenterUrl, f = r ? W(r) : !1, y = xe(r), k = r ? J(r) : "当前空间", C = `${window.location.origin}${G(a.routes.app, "subscription")}`, v = (A = l.data) == null ? void 0 : A.productCode, g = ie(h, { productCode: v, returnUrl: C, spaceId: f ? c : void 0 }), w = ie(h, { productCode: v, returnUrl: C, spaceType: "team" }), T = K(h, "orders"), I = d.isError && he(d.error), S = d.data, E = (b) => y ? /* @__PURE__ */ e(F, { type: "primary", href: g, label: `${b}(在统一账号中心打开)`, children: b }) : /* @__PURE__ */ e("span", { className: s.ownerOnly, children: I ? "请团队所有者续费" : "请团队所有者购买" });
420
420
  return /* @__PURE__ */ o(x, { children: [
421
- /* @__PURE__ */ o(A, { className: s.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
422
- /* @__PURE__ */ o("div", { className: s.hero, "data-tone": T ? "warning" : "primary", children: [
421
+ /* @__PURE__ */ o(z, { className: s.heroCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
422
+ /* @__PURE__ */ o("div", { className: s.hero, "data-tone": I ? "warning" : "primary", children: [
423
423
  /* @__PURE__ */ o("div", { className: s.heroMain, children: [
424
424
  /* @__PURE__ */ o("span", { className: s.heroEyebrow, title: k, children: [
425
425
  /* @__PURE__ */ e(Je, { "aria-hidden": "true" }),
@@ -428,14 +428,14 @@ const vt = {
428
428
  k
429
429
  ] })
430
430
  ] }),
431
- d.isPending ? /* @__PURE__ */ e(H, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(H.Paragraph, { rows: 2, className: s.heroSkeleton }) }) : T ? /* @__PURE__ */ o(x, { children: [
431
+ d.isPending ? /* @__PURE__ */ e(H, { loading: !0, active: !0, placeholder: /* @__PURE__ */ e(H.Paragraph, { rows: 2, className: s.heroSkeleton }) }) : I ? /* @__PURE__ */ o(x, { children: [
432
432
  /* @__PURE__ */ e("span", { className: s.heroValue, children: "团队版已到期" }),
433
433
  /* @__PURE__ */ e("span", { className: s.heroMeta, children: "该团队的团队版已到期,请在统一账号中心续费后再使用,续费后成员继续共用套餐和积分。" })
434
434
  ] }) : d.isError ? /* @__PURE__ */ o(x, { children: [
435
435
  /* @__PURE__ */ e("span", { className: s.heroValue, children: "暂不可用" }),
436
436
  /* @__PURE__ */ e("span", { className: s.heroMeta, children: "暂时读不到当前套餐,请稍后重试。" })
437
437
  ] }) : S ? /* @__PURE__ */ o(x, { children: [
438
- /* @__PURE__ */ e("span", { className: s.heroValue, children: ze(S) }),
438
+ /* @__PURE__ */ e("span", { className: s.heroValue, children: Ae(S) }),
439
439
  /* @__PURE__ */ o("span", { className: s.heroMeta, children: [
440
440
  /* @__PURE__ */ e(we, { size: "small", color: "green", children: "生效中" }),
441
441
  rt(S)
@@ -446,33 +446,33 @@ const vt = {
446
446
  ] })
447
447
  ] }),
448
448
  /* @__PURE__ */ o("div", { className: s.heroActions, children: [
449
- d.isError && !T ? /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(Pe, { "aria-hidden": "true" }), onClick: () => void d.refetch(), children: "重试" }) : null,
450
- d.isPending ? null : T ? E("续费团队版") : S && !S.isDefault ? E("续费或升级") : E(S ? "升级套餐" : "选择套餐")
449
+ d.isError && !I ? /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", icon: /* @__PURE__ */ e(Pe, { "aria-hidden": "true" }), onClick: () => void d.refetch(), children: "重试" }) : null,
450
+ d.isPending ? null : I ? E("续费团队版") : S && !S.isDefault ? E("续费或升级") : E(S ? "升级套餐" : "选择套餐")
451
451
  ] })
452
452
  ] }),
453
453
  /* @__PURE__ */ o("div", { className: s.heroFoot, children: [
454
454
  /* @__PURE__ */ e("span", { children: "套餐属于当前空间,对 24.city 所有产品同时生效;购买、续费和发票在统一账号中心办理。" }),
455
- /* @__PURE__ */ e(F, { type: "text", size: "small", href: I, label: "订单记录(在统一账号中心打开)", children: "订单记录" })
455
+ /* @__PURE__ */ e(F, { type: "text", size: "small", href: T, label: "订单记录(在统一账号中心打开)", children: "订单记录" })
456
456
  ] })
457
457
  ] }),
458
458
  /* @__PURE__ */ e(aa, { data: t, focusPlan: n }),
459
- r && !f ? /* @__PURE__ */ e(fa, { href: w, plan: ot(_.data) }) : null
459
+ r && !f ? /* @__PURE__ */ e(fa, { href: w, plan: ot(m.data) }) : null
460
460
  ] });
461
- }, ba = ({ subscription: t }) => t.isPending ? "读取中" : t.isError ? he(t.error) ? "团队版已到期" : "暂不可用" : t.data ? ze(t.data) : "未开通", ya = ({ wallet: t }) => t.isPending ? "读取中" : t.data ? M(t.data.availablePoints) : "暂不可用", os = () => {
462
- var z;
463
- const { section: t = "" } = et(), { config: n } = R(), a = Y(), i = D(), { PointsDetail: r } = i, c = ct(i), l = c.find((b) => b.key === t), d = oe(), p = lt(ce().state), _ = dt(), { confirmLogout: h, pending: f } = ht(), y = n.routes.app;
461
+ }, ba = ({ subscription: t }) => t.isPending ? "读取中" : t.isError ? he(t.error) ? "团队版已到期" : "暂不可用" : t.data ? Ae(t.data) : "未开通", ya = ({ wallet: t }) => t.isPending ? "读取中" : t.data ? M(t.data.availablePoints) : "暂不可用", os = () => {
462
+ var A;
463
+ const { section: t = "" } = et(), { config: n } = R(), a = Q(), i = D(), { PointsDetail: r } = i, c = ct(i), l = c.find((b) => b.key === t), d = oe(), _ = lt(ce().state), m = dt(), { confirmLogout: h, pending: f } = ht(), y = n.routes.app;
464
464
  if (!mt(t) && !l) return /* @__PURE__ */ e(le, { replace: !0, to: G(y, "profile") });
465
465
  const k = {
466
466
  profile: "你的统一账号与当前空间。密码、登录设备和团队成员在 24.city 统一账号中心管理,所有产品同步生效。",
467
467
  subscription: "当前空间的套餐与权益,以统一账号中心为准;购买、续费和升级都在统一账号中心完成。",
468
468
  points: r ? `当前空间的可用积分,以及你在 ${a.shortName} 里的扣费明细。` : "当前空间的可用积分,由统一账号中心记账。"
469
- }, C = l ? l.description : k[t], v = ut(y, c).items, g = v.find((b) => b.to === G(y, t)), { activeSpace: w, profile: I, allowed: T } = _, S = ((z = I.data) == null ? void 0 : z.nickName) ?? "", E = ke(w == null ? void 0 : w.role);
469
+ }, C = l ? l.description : k[t], v = ut(y, c).items, g = v.find((b) => b.to === G(y, t)), { activeSpace: w, profile: T, allowed: I } = m, S = ((A = T.data) == null ? void 0 : A.nickName) ?? "", E = ke(w == null ? void 0 : w.role);
470
470
  return /* @__PURE__ */ o("div", { className: s.center, children: [
471
- /* @__PURE__ */ e("aside", { className: s.aside, "aria-label": "个人中心", children: /* @__PURE__ */ o(A, { className: s.identityCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
471
+ /* @__PURE__ */ e("aside", { className: s.aside, "aria-label": "个人中心", children: /* @__PURE__ */ o(z, { className: s.identityCard, bordered: !1, bodyStyle: { padding: 0 }, children: [
472
472
  /* @__PURE__ */ o("div", { className: s.identity, children: [
473
- /* @__PURE__ */ e(Ve, { size: "medium", shape: "circle", className: s.identityAvatar, children: S ? Array.from(S)[0] : /* @__PURE__ */ e(_e, { "aria-hidden": "true" }) }),
473
+ /* @__PURE__ */ e(Be, { size: "medium", shape: "circle", className: s.identityAvatar, children: S ? Array.from(S)[0] : /* @__PURE__ */ e(_e, { "aria-hidden": "true" }) }),
474
474
  /* @__PURE__ */ o("div", { className: s.identityText, children: [
475
- /* @__PURE__ */ e("span", { className: s.identityName, title: S || void 0, children: S || (I.isPending ? "" : pt) }),
475
+ /* @__PURE__ */ e("span", { className: s.identityName, title: S || void 0, children: S || (T.isPending ? "" : pt) }),
476
476
  w ? /* @__PURE__ */ o("span", { className: s.identitySpace, children: [
477
477
  W(w) ? /* @__PURE__ */ e(Ce, { "aria-hidden": "true" }) : /* @__PURE__ */ e(_e, { "aria-hidden": "true" }),
478
478
  /* @__PURE__ */ e("span", { className: s.identitySpaceName, children: J(w) }),
@@ -480,25 +480,25 @@ const vt = {
480
480
  ] }) : null
481
481
  ] })
482
482
  ] }),
483
- T ? /* @__PURE__ */ o("div", { className: s.identityStats, children: [
483
+ I ? /* @__PURE__ */ o("div", { className: s.identityStats, children: [
484
484
  /* @__PURE__ */ o("div", { className: s.identityStat, children: [
485
485
  /* @__PURE__ */ e("span", { className: s.identityStatLabel, children: "当前套餐" }),
486
- /* @__PURE__ */ e("span", { className: s.identityStatValue, children: ba(_) })
486
+ /* @__PURE__ */ e("span", { className: s.identityStatValue, children: ba(m) })
487
487
  ] }),
488
488
  /* @__PURE__ */ o("div", { className: s.identityStat, children: [
489
489
  /* @__PURE__ */ e("span", { className: s.identityStatLabel, children: "可用积分" }),
490
- /* @__PURE__ */ e("span", { className: s.identityStatValue, children: ya(_) })
490
+ /* @__PURE__ */ e("span", { className: s.identityStatValue, children: ya(m) })
491
491
  ] })
492
492
  ] }) : null,
493
493
  /* @__PURE__ */ e("nav", { className: s.nav, "aria-label": "个人中心分区", children: v.map((b) => {
494
- const B = b === g;
494
+ const V = b === g;
495
495
  return /* @__PURE__ */ o(
496
496
  P,
497
497
  {
498
498
  theme: "borderless",
499
499
  type: "tertiary",
500
500
  className: s.navItem,
501
- "aria-current": B ? "page" : void 0,
501
+ "aria-current": V ? "page" : void 0,
502
502
  onClick: () => d(b.to),
503
503
  children: [
504
504
  b.icon ? /* @__PURE__ */ e("span", { className: s.navIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(b.icon, {}) }) : null,
@@ -516,7 +516,7 @@ const vt = {
516
516
  /* @__PURE__ */ e(ne.Title, { heading: 1, className: s.title, children: g == null ? void 0 : g.label }),
517
517
  /* @__PURE__ */ e(ne.Paragraph, { className: s.description, children: C })
518
518
  ] }),
519
- T ? l ? /* @__PURE__ */ e(l.Component, { data: _ }) : t === "profile" ? /* @__PURE__ */ e(kn, { data: _ }) : t === "subscription" ? /* @__PURE__ */ e(Na, { data: _, focusPlan: p }) : /* @__PURE__ */ e($n, { data: _ }) : /* @__PURE__ */ e(tt, {})
519
+ I ? l ? /* @__PURE__ */ e(l.Component, { data: m }) : t === "profile" ? /* @__PURE__ */ e(kn, { data: m }) : t === "subscription" ? /* @__PURE__ */ e(Na, { data: m, focusPlan: _ }) : /* @__PURE__ */ e($n, { data: m }) : /* @__PURE__ */ e(tt, {})
520
520
  ] })
521
521
  ] });
522
522
  }, va = "_meter_o7x3q_7", wa = "_head_o7x3q_16", Sa = "_label_o7x3q_24", Pa = "_value_o7x3q_33", Ca = "_bar_o7x3q_53", $a = "_note_o7x3q_57", U = {
@@ -526,12 +526,12 @@ const vt = {
526
526
  value: Pa,
527
527
  bar: Ca,
528
528
  note: $a
529
- }, te = (t) => t.toLocaleString("zh-CN", { maximumFractionDigits: 0 }), ka = ({ unit: t, used: n, total: a, status: i }) => i === "loading" ? "…" : i === "error" || n === void 0 || a === void 0 ? "暂不可用" : Ae(a) ? `已用 ${te(n)} ${t} · 不限` : `已用 ${te(n)}/${te(a)} ${t}`, La = ({ used: t, total: n, status: a }) => a !== void 0 || t === void 0 || n === void 0 || n <= 0 || Ae(n) ? null : Math.min(1, Math.max(0, t / n)), cs = (t) => {
530
- const { label: n, note: a, exhausted: i, status: r } = t, c = ka(t), l = La(t), d = r === void 0 && (i ?? (l !== null && l >= 1)), p = d ? "warning" : c === "暂不可用" ? "muted" : void 0;
529
+ }, te = (t) => t.toLocaleString("zh-CN", { maximumFractionDigits: 0 }), ka = ({ unit: t, used: n, total: a, status: i }) => i === "loading" ? "…" : i === "error" || n === void 0 || a === void 0 ? "暂不可用" : ze(a) ? `已用 ${te(n)} ${t} · 不限` : `已用 ${te(n)}/${te(a)} ${t}`, La = ({ used: t, total: n, status: a }) => a !== void 0 || t === void 0 || n === void 0 || n <= 0 || ze(n) ? null : Math.min(1, Math.max(0, t / n)), cs = (t) => {
530
+ const { label: n, note: a, exhausted: i, status: r } = t, c = ka(t), l = La(t), d = r === void 0 && (i ?? (l !== null && l >= 1)), _ = d ? "warning" : c === "暂不可用" ? "muted" : void 0;
531
531
  return /* @__PURE__ */ o("div", { className: U.meter, role: "group", "aria-label": n, children: [
532
532
  /* @__PURE__ */ o("div", { className: U.head, children: [
533
533
  /* @__PURE__ */ e("span", { className: U.label, children: n }),
534
- /* @__PURE__ */ e("span", { className: U.value, "data-tone": p, children: c })
534
+ /* @__PURE__ */ e("span", { className: U.value, "data-tone": _, children: c })
535
535
  ] }),
536
536
  l !== null ? /* @__PURE__ */ e(
537
537
  je,
@@ -548,10 +548,10 @@ const vt = {
548
548
  a ? /* @__PURE__ */ e("span", { className: U.note, children: a }) : null
549
549
  ] });
550
550
  }, ls = () => {
551
- const t = ce(), n = oe(), { accountApi: a, config: i } = R(), { bootstrapped: r, serviceUnavailable: c, session: l } = de(), d = $e(new URLSearchParams(t.search).get("returnPath"), i.routes.app), p = a.startLogin(d, i.routes.app);
551
+ const t = ce(), n = oe(), { accountApi: a, config: i } = R(), { bootstrapped: r, serviceUnavailable: c, session: l } = de(), d = new URLSearchParams(t.search), _ = $e(d.get("returnPath"), i.routes.app), m = a.startLogin(_, i.routes.app, { entry: d.get("entry") ?? void 0 });
552
552
  return X(() => {
553
- r && !l && !c && !st() && !ge() && window.location.replace(p);
554
- }, [r, p, c, l]), r && l ? /* @__PURE__ */ e(le, { to: d, replace: !0 }) : r && !l && ge() ? /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
553
+ r && !l && !c && !st() && !ge() && window.location.replace(m);
554
+ }, [r, m, c, l]), r && l ? /* @__PURE__ */ e(le, { to: _, replace: !0 }) : r && !l && ge() ? /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
555
555
  q,
556
556
  {
557
557
  status: "info",
@@ -564,7 +564,7 @@ const vt = {
564
564
  theme: "solid",
565
565
  type: "primary",
566
566
  onClick: () => {
567
- fe(), window.location.replace(p);
567
+ fe(), window.location.replace(m);
568
568
  },
569
569
  children: "重新登录"
570
570
  }
@@ -586,17 +586,17 @@ const vt = {
586
586
  q,
587
587
  {
588
588
  status: "error",
589
- title: "统一账号服务暂不可用",
590
- description: "请稍后重试。",
589
+ title: "服务暂时不可用",
590
+ description: "服务可能正在更新,请稍后重试。",
591
591
  extra: /* @__PURE__ */ o(pe, { spacing: 12, children: [
592
- /* @__PURE__ */ e(P, { theme: "solid", type: "primary", onClick: () => window.location.replace(p), children: "重试" }),
592
+ /* @__PURE__ */ e(P, { theme: "solid", type: "primary", onClick: () => window.location.replace(m), children: "重试" }),
593
593
  /* @__PURE__ */ e(P, { theme: "light", type: "tertiary", onClick: () => n(i.routes.publicHome), children: "返回首页" })
594
594
  ] })
595
595
  }
596
596
  ) }) : /* @__PURE__ */ e(q, { status: "loading", title: "正在前往统一登录…" }) });
597
- }, Ia = "_pill_1hckq_2", Ta = "_upgrade_1hckq_24", ye = {
598
- pill: Ia,
599
- upgrade: Ta
597
+ }, Ta = "_pill_1hckq_2", Ia = "_upgrade_1hckq_24", ye = {
598
+ pill: Ta,
599
+ upgrade: Ia
600
600
  }, ds = ({ quota: t, unit: n, onUpgrade: a }) => {
601
601
  if (!t) return null;
602
602
  const i = _t(t);
@@ -612,8 +612,8 @@ const vt = {
612
612
  q,
613
613
  {
614
614
  status: "error",
615
- title: "账号服务暂不可用",
616
- description: "无法确认当前会话与空间,应用已停止加载受保护数据。",
615
+ title: "服务暂时不可用",
616
+ description: "服务可能正在更新,请稍后重新加载;长时间无法恢复请联系管理员。",
617
617
  extra: /* @__PURE__ */ e(P, { theme: "solid", type: "primary", onClick: () => window.location.reload(), children: "重新加载" })
618
618
  }
619
619
  ) }) });
@@ -622,24 +622,24 @@ const vt = {
622
622
  return /* @__PURE__ */ e(le, { to: `${a.routes.login}?returnPath=${encodeURIComponent(l)}`, replace: !0 });
623
623
  }
624
624
  return /* @__PURE__ */ e(x, { children: t });
625
- }, xa = "_modal_6pw0p_6", Ea = "_hero_6pw0p_15", za = "_close_6pw0p_15", Aa = "_badge_6pw0p_35", Ma = "_art_6pw0p_48", Fa = "_title_6pw0p_61", Ua = "_description_6pw0p_69", Ra = "_body_6pw0p_76", Oa = "_offer_6pw0p_83", Da = "_offerName_6pw0p_89", Ba = "_lines_6pw0p_95", Va = "_line_6pw0p_95", ja = "_check_6pw0p_110", qa = "_cta_6pw0p_123", Ha = "_ctaPrice_6pw0p_140", Ga = "_ownerOnly_6pw0p_150", Ka = "_later_6pw0p_158", N = {
625
+ }, xa = "_modal_6pw0p_6", Ea = "_hero_6pw0p_15", Aa = "_close_6pw0p_15", za = "_badge_6pw0p_35", Ma = "_art_6pw0p_48", Fa = "_title_6pw0p_61", Ua = "_description_6pw0p_69", Ra = "_body_6pw0p_76", Oa = "_offer_6pw0p_83", Da = "_offerName_6pw0p_89", Va = "_lines_6pw0p_95", Ba = "_line_6pw0p_95", ja = "_check_6pw0p_110", qa = "_cta_6pw0p_123", Ha = "_ctaPrice_6pw0p_140", Ga = "_ownerOnly_6pw0p_150", Ya = "_later_6pw0p_158", N = {
626
626
  modal: xa,
627
627
  hero: Ea,
628
- close: za,
629
- badge: Aa,
628
+ close: Aa,
629
+ badge: za,
630
630
  art: Ma,
631
631
  title: Fa,
632
632
  description: Ua,
633
633
  body: Ra,
634
634
  offer: Oa,
635
635
  offerName: Da,
636
- lines: Ba,
637
- line: Va,
636
+ lines: Va,
637
+ line: Ba,
638
638
  check: ja,
639
639
  cta: qa,
640
640
  ctaPrice: Ha,
641
641
  ownerOnly: Ga,
642
- later: Ka
642
+ later: Ya
643
643
  }, ms = ({
644
644
  title: t,
645
645
  description: n,
@@ -647,12 +647,12 @@ const vt = {
647
647
  trigger: i,
648
648
  onClose: r
649
649
  }) => {
650
- const c = oe(), l = Ie(), d = K(Date.now()), p = K(!1);
650
+ const c = oe(), l = Te(), d = Y(Date.now()), _ = Y(!1);
651
651
  X(() => {
652
652
  const g = i ?? a;
653
- return d.current = Date.now(), l("upgrade_modal.opened", { target: g }), () => l("upgrade_modal.closed", { target: g, props: { durationMs: Date.now() - d.current, upgraded: p.current } });
653
+ return d.current = Date.now(), l("upgrade_modal.opened", { target: g }), () => l("upgrade_modal.closed", { target: g, props: { durationMs: Date.now() - d.current, upgraded: _.current } });
654
654
  }, []);
655
- const _ = D(), { offer: h, plans: f, canBuy: y, subscriptionPath: k } = ft(), C = h ? Ue(h.plan, f.data ?? [], _).filter((g) => g.included).slice(0, 5).map((g) => g.text) : [], v = h != null && h.price ? `${Ee(h.price)}起` : "";
655
+ const m = D(), { offer: h, plans: f, canBuy: y, subscriptionPath: k } = ft(), C = h ? Ue(h.plan, f.data ?? [], m).filter((g) => g.included).slice(0, 5).map((g) => g.text) : [], v = h != null && h.price ? `${Ee(h.price)}起` : "";
656
656
  return (
657
657
  // Semi 把 className 挂在最外层包装上(遮罩和弹窗的共同父元素),不在 .semi-modal 上:宽度用 width 属性给。
658
658
  // header={null} 时 Semi 连关闭按钮也不渲染,右上角的关闭按钮自己画在插画区里。
@@ -694,7 +694,7 @@ const vt = {
694
694
  className: N.cta,
695
695
  "aria-label": `立即升级${v ? `,${v}` : ""}(打开订阅与套餐)`,
696
696
  onClick: () => {
697
- p.current = !0, r(), c(k, { state: Nt(h == null ? void 0 : h.plan.code) });
697
+ _.current = !0, r(), c(k, { state: Nt(h == null ? void 0 : h.plan.code) });
698
698
  },
699
699
  children: [
700
700
  "立即升级",
@@ -706,7 +706,7 @@ const vt = {
706
706
  ] })
707
707
  ] })
708
708
  );
709
- }, Qa = /^[a-z0-9][a-z0-9._:-]{0,99}$/, Ya = () => {
709
+ }, Ka = /^[a-z0-9][a-z0-9._:-]{0,99}$/, Qa = () => {
710
710
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
711
711
  return {
712
712
  get: (a) => t.get(a),
@@ -721,12 +721,12 @@ const vt = {
721
721
  };
722
722
  }, ve = /* @__PURE__ */ new WeakMap(), Ja = (t) => {
723
723
  let n = ve.get(t);
724
- return n || (n = Ya(), ve.set(t, n)), n;
724
+ return n || (n = Qa(), ve.set(t, n)), n;
725
725
  }, us = (t, { enabled: n = !0 } = {}) => {
726
- var _;
727
- if (!Qa.test(t))
726
+ var m;
727
+ if (!Ka.test(t))
728
728
  throw new Error(`useShowOnce 的标识无效:${t}(小写字母、数字和 . _ : -,最长 100 个字符)`);
729
- const { accountApi: a } = R(), i = ((_ = de().session) == null ? void 0 : _.globalUserId) ?? null, r = Ja(a), c = i ? `${i}
729
+ const { accountApi: a } = R(), i = ((m = de().session) == null ? void 0 : m.globalUserId) ?? null, r = Ja(a), c = i ? `${i}
730
730
  ${t}` : null, l = yt(
731
731
  r.subscribe,
732
732
  () => c ? r.get(c) : void 0,
@@ -756,10 +756,10 @@ ${t}` : null, l = yt(
756
756
  }, [a, n, c, t, r]);
757
757
  const d = Ne(() => {
758
758
  c && r.set(c, "done");
759
- }, [c, r]), p = Ne(() => {
759
+ }, [c, r]), _ = Ne(() => {
760
760
  c && r.set(c, "open");
761
761
  }, [c, r]);
762
- return { visible: l === "open", close: d, open: p };
762
+ return { visible: l === "open", close: d, open: _ };
763
763
  };
764
764
  export {
765
765
  os as A,
@@ -775,10 +775,10 @@ export {
775
775
  $n as b,
776
776
  kn as c,
777
777
  Na as d,
778
- Q as e,
778
+ K as e,
779
779
  Fe as f,
780
780
  ie as g,
781
- Tn as h,
781
+ In as h,
782
782
  Ue as p,
783
783
  us as u,
784
784
  xn as y