@huyooo/ui 0.11.11 → 0.11.14

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 (42) hide show
  1. package/dist/{AuthkitAppSetting-DrX6fwKt.js → AuthkitAppSetting-p_ZzaAK3.js} +6 -6
  2. package/dist/{AuthkitGithubBinding-r2oVuCSV.js → AuthkitGithubBinding-Cwly1un7.js} +7 -7
  3. package/dist/{Clipboard-ChMNfcO5.js → Clipboard-k0jtK4CJ.js} +1 -1
  4. package/dist/{Contact-Yqmjh47e.js → Contact-BGZm3i5l.js} +2 -2
  5. package/dist/{FeedbackItem-DHp_C0pN.js → FeedbackItem-opB6y-f2.js} +3 -3
  6. package/dist/{FeedbackModal-Dzl0Alp7.js → FeedbackModal-9CNnFC6B.js} +3 -3
  7. package/dist/{MessageHandle-BcRjYeVi.js → MessageHandle-BZBT7Ii1.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbKvsNKj.js} +2 -2
  9. package/dist/{PaySubscriptions-BsU0XmXf.js → PaySubscriptions-DS4kJNb_.js} +187 -171
  10. package/dist/{PricingPlans-YroHYNiM.js → PricingPlans-v8ZL2XaL.js} +23 -23
  11. package/dist/{ReferrerReferees-B-ISyXHw.js → ReferrerReferees-DhS91Ulf.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js → Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js} +91 -91
  14. package/dist/{WidthContainer-CYYbzXj0.js → WidthContainer-ektCstwj.js} +8 -8
  15. package/dist/{apiClients-KFp-rs-C.js → apiClients-B8bOvWw_.js} +28 -27
  16. package/dist/authkit.js +9 -9
  17. package/dist/common/globalConfig.d.ts +8 -0
  18. package/dist/common.js +1 -1
  19. package/dist/composables.js +12 -12
  20. package/dist/feedback.js +3 -3
  21. package/dist/main.js +30 -30
  22. package/dist/message.js +3 -3
  23. package/dist/pay.js +3 -3
  24. package/dist/privateCom.js +1 -1
  25. package/dist/referrer.js +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/upload.js +2 -2
  28. package/dist/{useAuthkitAppsAuthPageInfo-B9_VzVkQ.js → useAuthkitAppsAuthPageInfo-6ncIP9RT.js} +1 -1
  29. package/dist/{useAuthkitAuth-Doj5VYjK.js → useAuthkitAuth-Bj8XxPtO.js} +1 -1
  30. package/dist/{useAuthkitCreateAndUpdate-DomftQMK.js → useAuthkitCreateAndUpdate-CUf8HARI.js} +1 -1
  31. package/dist/{useAuthkitUsersProfile-FJnHJad-.js → useAuthkitUsersProfile-CoQceogN.js} +2 -2
  32. package/dist/{useDownloads-CzC3gLUV.js → useDownloads-B8FzX8T_.js} +1 -1
  33. package/dist/{useEnsureAuthenticated-D78tsddF.js → useEnsureAuthenticated-MpHmn2co.js} +2 -2
  34. package/dist/{useLegalLinks-OGVbqXVy.js → useLegalLinks-CVHYmza0.js} +2 -2
  35. package/dist/{useMessageNotifications-DeHFJFcX.js → useMessageNotifications-Bstn2qtG.js} +1 -1
  36. package/dist/{useSEO-BZhVKEZr.js → useSEO-DU86KCMJ.js} +2 -2
  37. package/dist/{useSubscriptionCheckout-DmxORGSV.js → useSubscriptionCheckout-Dv8Rq5jU.js} +2 -2
  38. package/dist/{useTableHandle-jw0P7-2a.js → useTableHandle-B9aFmwYM.js} +1 -1
  39. package/dist/{useUploadCos-keDKcs0j.js → useUploadCos-DTMIoW7p.js} +1 -1
  40. package/dist/user.js +1 -1
  41. package/dist/utils/pricing.d.ts +1 -0
  42. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { U as ft } from "./index-D3Kp6R4z.js";
4
+ import { U as gt } from "./index-D3Kp6R4z.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
9
- import { ref as v, computed as f, defineComponent as gt, openBlock as s, createBlock as P, unref as n, isRef as yt, withCtx as o, createElementVNode as i, createElementBlock as l, toDisplayString as u, createTextVNode as d, createVNode as c, createCommentVNode as g, Fragment as bt, renderList as _t } from "vue";
10
- import { Modal as kt, Button as w, Popconfirm as ht, Tabs as St, TabPane as D, Tag as K, Spin as wt, Empty as Ct, Progress as It } from "@arco-design/web-vue";
11
- import { f as C } from "./apiClients-KFp-rs-C.js";
12
- import { u as xt } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
13
- import { C as O } from "./CustomTable-BUkwlbzN.js";
14
- import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- function H() {
9
+ import { ref as v, computed as f, defineComponent as yt, openBlock as s, createBlock as I, unref as n, isRef as bt, withCtx as o, createElementVNode as i, createElementBlock as r, toDisplayString as c, createTextVNode as p, createVNode as d, createCommentVNode as g, Fragment as _t, renderList as kt } from "vue";
10
+ import { Modal as ht, Button as w, Popconfirm as St, Tabs as wt, TabPane as D, Tag as O, Spin as Pt, Empty as Ct, Progress as xt } from "@arco-design/web-vue";
11
+ import { f as P, g as F } from "./apiClients-B8bOvWw_.js";
12
+ import { u as It } from "./useAuthkitCreateAndUpdate-CUf8HARI.js";
13
+ import { C as H } from "./CustomTable-BUkwlbzN.js";
14
+ import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ function j() {
16
16
  return {
17
17
  current: null,
18
18
  trial: null,
@@ -23,126 +23,141 @@ function H() {
23
23
  pendingInvoice: null
24
24
  };
25
25
  }
26
- function zt() {
27
- const m = v(H()), I = v(!1), E = f(() => m.value.current), z = f(() => m.value.trial), L = f(() => m.value.entitlement), y = f(() => m.value.features), k = f(() => m.value.quotas), r = f(() => m.value.pointsBalance), T = f(() => m.value.pendingInvoice);
26
+ function At() {
27
+ const l = v(j()), C = v(!1), E = f(() => l.value.current), z = f(() => l.value.trial), L = f(() => l.value.entitlement), y = f(() => l.value.features), k = f(() => l.value.quotas), u = f(() => l.value.pointsBalance), U = f(() => l.value.pendingInvoice);
28
28
  async function A() {
29
- I.value = !0;
29
+ C.value = !0;
30
30
  try {
31
31
  const {
32
- data: N,
33
- error: W
34
- } = await C.subscriptions.summary.post();
35
- if (W)
36
- throw new Error(W.message || "获取订阅摘要失败");
37
- m.value = N || H();
32
+ data: W,
33
+ error: N
34
+ } = await P.subscriptions.summary.post();
35
+ if (N)
36
+ throw new Error(N.message || "获取订阅摘要失败");
37
+ l.value = W || j();
38
38
  } finally {
39
- I.value = !1;
39
+ C.value = !1;
40
40
  }
41
41
  }
42
42
  return {
43
- summary: m,
43
+ summary: l,
44
44
  current: E,
45
45
  trial: z,
46
46
  entitlement: L,
47
47
  features: y,
48
48
  quotas: k,
49
- pointsBalance: r,
50
- pendingInvoice: T,
51
- loading: I,
49
+ pointsBalance: u,
50
+ pendingInvoice: U,
51
+ loading: C,
52
52
  refresh: A
53
53
  };
54
54
  }
55
- const At = {
55
+ function Wt(l) {
56
+ return /^https?:\/\//i.test(l) || l.startsWith("//");
57
+ }
58
+ function Nt() {
59
+ if (F.openPricing) {
60
+ F.openPricing();
61
+ return;
62
+ }
63
+ const l = F.pricingUrl || "/Pricing";
64
+ if (Wt(l)) {
65
+ window.open(l, "_blank", "noopener,noreferrer");
66
+ return;
67
+ }
68
+ window.location.assign(l);
69
+ }
70
+ const Et = {
56
71
  class: "content"
57
- }, Nt = {
72
+ }, Lt = {
58
73
  key: 0,
59
74
  class: "current-subscription-card"
60
- }, Wt = {
75
+ }, Ut = {
61
76
  class: "subscription-header"
62
- }, Et = {
77
+ }, Tt = {
63
78
  class: "subscription-info"
64
- }, Lt = {
79
+ }, $t = {
65
80
  class: "subscription-actions"
66
- }, Tt = {
81
+ }, Bt = {
67
82
  class: "subscription-details"
68
- }, $t = {
83
+ }, qt = {
69
84
  key: 0,
70
85
  class: "detail-item"
71
- }, Bt = {
86
+ }, Dt = {
72
87
  key: 1,
73
88
  class: "detail-item"
74
- }, Ut = {
89
+ }, Ft = {
75
90
  key: 2,
76
91
  class: "detail-item"
77
- }, qt = {
92
+ }, Vt = {
78
93
  class: "label"
79
- }, Dt = {
94
+ }, Mt = {
80
95
  key: 3,
81
96
  class: "detail-item warning"
82
- }, Ft = {
97
+ }, Rt = {
83
98
  key: 4,
84
99
  class: "detail-item"
85
- }, Vt = {
100
+ }, Kt = {
86
101
  key: 0,
87
102
  class: "pending-invoice-alert"
88
- }, Mt = {
103
+ }, Ot = {
89
104
  key: 1,
90
105
  class: "no-subscription-row"
91
- }, Rt = {
106
+ }, Ht = {
92
107
  key: 1
93
- }, Kt = {
108
+ }, jt = {
94
109
  key: 0,
95
110
  class: "quotas-loading"
96
- }, Ot = {
111
+ }, Gt = {
97
112
  key: 1,
98
113
  class: "no-quotas"
99
- }, Ht = {
114
+ }, Jt = {
100
115
  key: 2,
101
116
  class: "quotas-grid"
102
- }, jt = {
117
+ }, Qt = {
103
118
  class: "quota-header"
104
- }, Gt = {
119
+ }, Xt = {
105
120
  class: "quota-name"
106
- }, Jt = {
121
+ }, Yt = {
107
122
  class: "quota-period"
108
- }, Qt = {
123
+ }, Zt = {
109
124
  class: "quota-progress"
110
- }, Xt = {
125
+ }, te = {
111
126
  class: "quota-detail"
112
- }, Yt = {
127
+ }, ee = {
113
128
  key: 0
114
- }, Zt = {
129
+ }, ne = {
115
130
  key: 1
116
- }, te = {
131
+ }, ae = {
117
132
  key: 2,
118
133
  class: "reset-time"
119
- }, ee = /* @__PURE__ */ gt({
134
+ }, ie = /* @__PURE__ */ yt({
120
135
  __name: "PaySubscriptions",
121
136
  emits: ["confirm", "cancel"],
122
- setup(m, {
123
- expose: I,
137
+ setup(l, {
138
+ expose: C,
124
139
  emit: E
125
140
  }) {
126
141
  const z = E, {
127
142
  changeType: L,
128
143
  show: y
129
- } = xt(z), k = v("subscriptions"), {
130
- current: r,
131
- entitlement: T,
144
+ } = It(z), k = v("subscriptions"), {
145
+ current: u,
146
+ entitlement: U,
132
147
  quotas: A,
133
- pointsBalance: N,
134
- pendingInvoice: W,
135
- loading: j,
136
- refresh: $
137
- } = zt(), h = f(() => T.value), F = v([]), B = v(!1), b = v({
148
+ pointsBalance: W,
149
+ pendingInvoice: N,
150
+ loading: G,
151
+ refresh: T
152
+ } = At(), h = f(() => U.value), V = v([]), $ = v(!1), b = v({
138
153
  current: 1,
139
154
  pageSize: 10,
140
155
  total: 0
141
- }), V = v([]), U = v(!1), _ = v({
156
+ }), M = v([]), B = v(!1), _ = v({
142
157
  current: 1,
143
158
  pageSize: 10,
144
159
  total: 0
145
- }), G = f(() => j.value), J = [{
160
+ }), J = f(() => G.value), Q = [{
146
161
  dataIndex: "productName",
147
162
  title: "产品",
148
163
  minWidth: 120
@@ -173,7 +188,7 @@ const At = {
173
188
  dataIndex: "createAt",
174
189
  title: "创建时间",
175
190
  minWidth: 160
176
- }], Q = [{
191
+ }], X = [{
177
192
  dataIndex: "productName",
178
193
  title: "产品",
179
194
  minWidth: 120
@@ -206,7 +221,7 @@ const At = {
206
221
  minWidth: 100,
207
222
  fixed: "right"
208
223
  }];
209
- function X(t) {
224
+ function Y(t) {
210
225
  return {
211
226
  trialing: "blue",
212
227
  active: "green",
@@ -216,7 +231,7 @@ const At = {
216
231
  incomplete: "red"
217
232
  }[t] || "gray";
218
233
  }
219
- function Y(t) {
234
+ function Z(t) {
220
235
  return {
221
236
  trialing: "试用中",
222
237
  active: "已激活",
@@ -227,7 +242,7 @@ const At = {
227
242
  paused: "已暂停"
228
243
  }[t] || t;
229
244
  }
230
- function Z(t) {
245
+ function tt(t) {
231
246
  return {
232
247
  draft: "gray",
233
248
  open: "orange",
@@ -236,7 +251,7 @@ const At = {
236
251
  uncollectible: "red"
237
252
  }[t] || "gray";
238
253
  }
239
- function tt(t) {
254
+ function et(t) {
240
255
  return {
241
256
  draft: "草稿",
242
257
  open: "待支付",
@@ -245,7 +260,7 @@ const At = {
245
260
  uncollectible: "无法收款"
246
261
  }[t] || t;
247
262
  }
248
- function et(t) {
263
+ function nt(t) {
249
264
  return {
250
265
  day: "每天",
251
266
  week: "每周",
@@ -254,252 +269,252 @@ const At = {
254
269
  lifetime: "不重置"
255
270
  }[t] || t;
256
271
  }
257
- function M(t, e = 1) {
258
- const p = e > 1 ? `每 ${e} ` : "按", S = {
259
- day: `${p}天`,
260
- week: `${p}周`,
261
- month: `${p}月`,
262
- year: `${p}年`
272
+ function R(t, e = 1) {
273
+ const m = e > 1 ? `每 ${e} ` : "按", S = {
274
+ day: `${m}天`,
275
+ week: `${m}周`,
276
+ month: `${m}月`,
277
+ year: `${m}年`
263
278
  };
264
279
  return t ? S[t] || t : "-";
265
280
  }
266
- function nt(t, e, p = 1) {
281
+ function at(t, e, m = 1) {
267
282
  if (typeof t != "number") return "-";
268
- const S = M(e, p).replace("按", "").replace("每 ", "");
283
+ const S = R(e, m).replace("按", "").replace("每 ", "");
269
284
  return `¥${(t / 100).toFixed(2)} / ${S}`;
270
285
  }
271
- function at() {
286
+ function it() {
272
287
  y.value = !1, z("cancel");
273
288
  }
274
- function R() {
275
- window.location.assign("/Pricing");
289
+ function K() {
290
+ Nt();
276
291
  }
277
- function it(t) {
292
+ function st(t) {
278
293
  window.open(t, "_blank", "noopener,noreferrer");
279
294
  }
280
- async function st() {
281
- await $();
295
+ async function ot() {
296
+ await T();
282
297
  }
283
298
  async function x() {
284
- B.value = !0;
299
+ $.value = !0;
285
300
  const {
286
301
  data: t
287
- } = await C.subscriptions.my.post({
302
+ } = await P.subscriptions.my.post({
288
303
  current: b.value.current,
289
304
  pageSize: b.value.pageSize
290
305
  });
291
- B.value = !1, t && (F.value = t.items, b.value.total = t.count);
306
+ $.value = !1, t && (V.value = t.items, b.value.total = t.count);
292
307
  }
293
308
  async function q() {
294
- U.value = !0;
309
+ B.value = !0;
295
310
  const {
296
311
  data: t
297
- } = await C.invoices.my.post({
312
+ } = await P.invoices.my.post({
298
313
  current: _.value.current,
299
314
  pageSize: _.value.pageSize
300
315
  });
301
- U.value = !1, t && (V.value = t.items, _.value.total = t.count);
316
+ B.value = !1, t && (M.value = t.items, _.value.total = t.count);
302
317
  }
303
- async function ot(t) {
318
+ async function lt(t) {
304
319
  const {
305
320
  data: e
306
- } = await C.invoices.pay.post({
321
+ } = await P.invoices.pay.post({
307
322
  id: t.id
308
323
  });
309
- e != null && e.alipayUrl && it(e.alipayUrl);
324
+ e != null && e.alipayUrl && st(e.alipayUrl);
310
325
  }
311
- async function lt() {
312
- if (!r.value) return;
326
+ async function rt() {
327
+ if (!u.value) return;
313
328
  const {
314
329
  error: t
315
- } = await C.subscriptions.cancel.post({
316
- subscriptionId: r.value.id,
330
+ } = await P.subscriptions.cancel.post({
331
+ subscriptionId: u.value.id,
317
332
  cancelAtPeriodEnd: !0
318
333
  });
319
- t || (await $(), await x());
334
+ t || (await T(), await x());
320
335
  }
321
- async function rt() {
322
- if (!r.value) return;
336
+ async function ut() {
337
+ if (!u.value) return;
323
338
  const {
324
339
  error: t
325
- } = await C.subscriptions.resume.post({
326
- subscriptionId: r.value.id
340
+ } = await P.subscriptions.resume.post({
341
+ subscriptionId: u.value.id
327
342
  });
328
- t || (await $(), await x());
343
+ t || (await T(), await x());
329
344
  }
330
- function ut(t) {
345
+ function ct(t) {
331
346
  b.value.current = t, x();
332
347
  }
333
- function ct(t) {
348
+ function dt(t) {
334
349
  b.value.pageSize = t, b.value.current = 1, x();
335
350
  }
336
- function dt(t) {
351
+ function pt(t) {
337
352
  _.value.current = t, q();
338
353
  }
339
- function pt(t) {
354
+ function mt(t) {
340
355
  _.value.pageSize = t, _.value.current = 1, q();
341
356
  }
342
- function mt(t) {
357
+ function vt(t) {
343
358
  return (t == null ? void 0 : t.target) === "invoices" ? "invoices" : (t == null ? void 0 : t.target) === "quotas" ? "quotas" : "subscriptions";
344
359
  }
345
- function vt(t, e) {
346
- y.value = e, L.value = "编辑", k.value = mt(t), e && (st(), x(), q());
360
+ function ft(t, e) {
361
+ y.value = e, L.value = "编辑", k.value = vt(t), e && (ot(), x(), q());
347
362
  }
348
- return I({
349
- setData: vt
350
- }), (t, e) => (s(), P(n(kt), {
363
+ return C({
364
+ setData: ft
365
+ }), (t, e) => (s(), I(n(ht), {
351
366
  visible: n(y),
352
- "onUpdate:visible": e[2] || (e[2] = (p) => yt(y) ? y.value = p : null),
367
+ "onUpdate:visible": e[2] || (e[2] = (m) => bt(y) ? y.value = m : null),
353
368
  loading: !1,
354
369
  "body-class": "SubscriptionsbodyClass",
355
370
  "mask-closable": !1,
356
371
  footer: !1,
357
- width: n(ft),
358
- onCancel: at
372
+ width: n(gt),
373
+ onCancel: it
359
374
  }, {
360
- title: o(() => [...e[3] || (e[3] = [d(" 订阅管理 ", -1)])]),
375
+ title: o(() => [...e[3] || (e[3] = [p(" 订阅管理 ", -1)])]),
361
376
  default: o(() => {
362
- var p, S;
363
- return [i("div", At, [h.value ? (s(), l("div", Nt, [i("div", Wt, [i("div", Et, [i("h3", null, u(h.value.productName), 1)]), i("div", Lt, [h.value.type === "trial" ? (s(), P(n(w), {
377
+ var m, S;
378
+ return [i("div", Et, [h.value ? (s(), r("div", Lt, [i("div", Ut, [i("div", Tt, [i("h3", null, c(h.value.productName), 1)]), i("div", $t, [h.value.type === "trial" ? (s(), I(n(w), {
364
379
  key: 0,
365
380
  type: "primary",
366
381
  size: "small",
367
- onClick: R
382
+ onClick: K
368
383
  }, {
369
- default: o(() => [...e[4] || (e[4] = [d(" 立即订阅 ", -1)])]),
384
+ default: o(() => [...e[4] || (e[4] = [p(" 立即订阅 ", -1)])]),
370
385
  _: 1
371
- })) : (p = n(r)) != null && p.cancelAtPeriodEnd ? (s(), P(n(w), {
386
+ })) : (m = n(u)) != null && m.cancelAtPeriodEnd ? (s(), I(n(w), {
372
387
  key: 1,
373
388
  type: "primary",
374
389
  size: "small",
375
- onClick: rt
390
+ onClick: ut
376
391
  }, {
377
- default: o(() => [...e[5] || (e[5] = [d(" 恢复订阅 ", -1)])]),
392
+ default: o(() => [...e[5] || (e[5] = [p(" 恢复订阅 ", -1)])]),
378
393
  _: 1
379
- })) : n(r) ? (s(), P(n(ht), {
394
+ })) : n(u) ? (s(), I(n(St), {
380
395
  key: 2,
381
396
  content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
382
- onOk: lt
397
+ onOk: rt
383
398
  }, {
384
- default: o(() => [c(n(w), {
399
+ default: o(() => [d(n(w), {
385
400
  type: "outline",
386
401
  size: "small",
387
402
  status: "warning"
388
403
  }, {
389
- default: o(() => [...e[6] || (e[6] = [d(" 取消订阅 ", -1)])]),
404
+ default: o(() => [...e[6] || (e[6] = [p(" 取消订阅 ", -1)])]),
390
405
  _: 1
391
406
  })]),
392
407
  _: 1
393
- })) : g("", !0)])]), i("div", Tt, [n(r) ? (s(), l("div", $t, [e[7] || (e[7] = i("span", {
408
+ })) : g("", !0)])]), i("div", Bt, [n(u) ? (s(), r("div", qt, [e[7] || (e[7] = i("span", {
394
409
  class: "label"
395
- }, "计费周期:", -1)), i("span", null, u(M(n(r).interval, n(r).intervalCount)), 1)])) : g("", !0), n(r) ? (s(), l("div", Bt, [e[8] || (e[8] = i("span", {
410
+ }, "计费周期:", -1)), i("span", null, c(R(n(u).interval, n(u).intervalCount)), 1)])) : g("", !0), n(u) ? (s(), r("div", Dt, [e[8] || (e[8] = i("span", {
396
411
  class: "label"
397
- }, "价格:", -1)), i("span", null, u(nt(n(r).unitAmount, n(r).interval, n(r).intervalCount)), 1)])) : g("", !0), h.value.endAt ? (s(), l("div", Ut, [i("span", qt, u(h.value.type === "trial" ? "试用有效期至:" : "当前周期结束:"), 1), i("span", null, u(h.value.endAt), 1)])) : g("", !0), (S = n(r)) != null && S.cancelAtPeriodEnd ? (s(), l("div", Dt, [...e[9] || (e[9] = [i("span", {
412
+ }, "价格:", -1)), i("span", null, c(at(n(u).unitAmount, n(u).interval, n(u).intervalCount)), 1)])) : g("", !0), h.value.endAt ? (s(), r("div", Ft, [i("span", Vt, c(h.value.type === "trial" ? "试用有效期至:" : "当前周期结束:"), 1), i("span", null, c(h.value.endAt), 1)])) : g("", !0), (S = n(u)) != null && S.cancelAtPeriodEnd ? (s(), r("div", Mt, [...e[9] || (e[9] = [i("span", {
398
413
  class: "label"
399
- }, "订阅将于周期结束后停止", -1)])])) : g("", !0), n(N) ? (s(), l("div", Ft, [e[10] || (e[10] = i("span", {
414
+ }, "订阅将于周期结束后停止", -1)])])) : g("", !0), n(W) ? (s(), r("div", Rt, [e[10] || (e[10] = i("span", {
400
415
  class: "label"
401
- }, "积分余额:", -1)), i("span", null, u(n(N).totalPoints), 1)])) : g("", !0)]), n(W) ? (s(), l("div", Vt, [e[12] || (e[12] = i("div", null, [i("strong", null, "存在待支付账单"), i("span", null, "请前往账单记录选择具体账单完成支付。")], -1)), c(n(w), {
416
+ }, "积分余额:", -1)), i("span", null, c(n(W).totalPoints), 1)])) : g("", !0)]), n(N) ? (s(), r("div", Kt, [e[12] || (e[12] = i("div", null, [i("strong", null, "存在待支付账单"), i("span", null, "请前往账单记录选择具体账单完成支付。")], -1)), d(n(w), {
402
417
  type: "primary",
403
418
  status: "warning",
404
419
  size: "small",
405
420
  onClick: e[0] || (e[0] = (a) => k.value = "invoices")
406
421
  }, {
407
- default: o(() => [...e[11] || (e[11] = [d(" 去处理 ", -1)])]),
422
+ default: o(() => [...e[11] || (e[11] = [p(" 去处理 ", -1)])]),
408
423
  _: 1
409
- })])) : g("", !0)])) : (s(), l("div", Mt, [e[14] || (e[14] = i("span", {
424
+ })])) : g("", !0)])) : (s(), r("div", Ot, [e[14] || (e[14] = i("span", {
410
425
  class: "no-subscription-text"
411
- }, "暂无方案", -1)), c(n(w), {
426
+ }, "暂无方案", -1)), d(n(w), {
412
427
  type: "primary",
413
428
  size: "small",
414
- onClick: R
429
+ onClick: K
415
430
  }, {
416
- default: o(() => [...e[13] || (e[13] = [d("查看价格方案", -1)])]),
431
+ default: o(() => [...e[13] || (e[13] = [p("查看价格方案", -1)])]),
417
432
  _: 1
418
- })])), c(n(St), {
433
+ })])), d(n(wt), {
419
434
  "active-key": k.value,
420
435
  "onUpdate:activeKey": e[1] || (e[1] = (a) => k.value = a),
421
436
  class: "subscription-tabs"
422
437
  }, {
423
- default: o(() => [c(n(D), {
438
+ default: o(() => [d(n(D), {
424
439
  key: "subscriptions",
425
440
  title: "订阅历史"
426
441
  }, {
427
- default: o(() => [c(O, {
428
- columns: J,
429
- data: F.value,
430
- loading: B.value,
442
+ default: o(() => [d(H, {
443
+ columns: Q,
444
+ data: V.value,
445
+ loading: $.value,
431
446
  pagination: b.value,
432
- onPageChange: ut,
433
- onPageSizeChange: ct
447
+ onPageChange: ct,
448
+ onPageSizeChange: dt
434
449
  }, {
435
450
  status: o(({
436
451
  record: a
437
- }) => [c(n(K), {
438
- color: X(a.status)
452
+ }) => [d(n(O), {
453
+ color: Y(a.status)
439
454
  }, {
440
- default: o(() => [d(u(Y(a.status)), 1)]),
455
+ default: o(() => [p(c(Z(a.status)), 1)]),
441
456
  _: 2
442
457
  }, 1032, ["color"])]),
443
458
  interval: o(({
444
459
  record: a
445
- }) => [d(u(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
460
+ }) => [p(c(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
446
461
  unitAmount: o(({
447
462
  record: a
448
- }) => [d(u(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
463
+ }) => [p(c(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
449
464
  _: 1
450
465
  }, 8, ["data", "loading", "pagination"])]),
451
466
  _: 1
452
- }), c(n(D), {
467
+ }), d(n(D), {
453
468
  key: "invoices",
454
469
  title: "账单记录"
455
470
  }, {
456
- default: o(() => [c(O, {
457
- columns: Q,
458
- data: V.value,
459
- loading: U.value,
471
+ default: o(() => [d(H, {
472
+ columns: X,
473
+ data: M.value,
474
+ loading: B.value,
460
475
  pagination: _.value,
461
- onPageChange: dt,
462
- onPageSizeChange: pt
476
+ onPageChange: pt,
477
+ onPageSizeChange: mt
463
478
  }, {
464
479
  status: o(({
465
480
  record: a
466
- }) => [c(n(K), {
467
- color: Z(a.status)
481
+ }) => [d(n(O), {
482
+ color: tt(a.status)
468
483
  }, {
469
- default: o(() => [d(u(tt(a.status)), 1)]),
484
+ default: o(() => [p(c(et(a.status)), 1)]),
470
485
  _: 2
471
486
  }, 1032, ["color"])]),
472
487
  total: o(({
473
488
  record: a
474
- }) => [d(" ¥" + u((a.total / 100).toFixed(2)), 1)]),
489
+ }) => [p(" ¥" + c((a.total / 100).toFixed(2)), 1)]),
475
490
  actions: o(({
476
491
  record: a
477
- }) => [a.status === "open" ? (s(), P(n(w), {
492
+ }) => [a.status === "open" ? (s(), I(n(w), {
478
493
  key: 0,
479
494
  type: "primary",
480
495
  status: "warning",
481
496
  size: "mini",
482
- onClick: (ne) => ot(a)
497
+ onClick: (se) => lt(a)
483
498
  }, {
484
- default: o(() => [...e[15] || (e[15] = [d(" 去支付 ", -1)])]),
499
+ default: o(() => [...e[15] || (e[15] = [p(" 去支付 ", -1)])]),
485
500
  _: 1
486
- }, 8, ["onClick"])) : (s(), l("span", Rt, "-"))]),
501
+ }, 8, ["onClick"])) : (s(), r("span", Ht, "-"))]),
487
502
  _: 1
488
503
  }, 8, ["data", "loading", "pagination"])]),
489
504
  _: 1
490
- }), c(n(D), {
505
+ }), d(n(D), {
491
506
  key: "quotas",
492
507
  title: "配额使用"
493
508
  }, {
494
- default: o(() => [G.value ? (s(), l("div", Kt, [c(n(wt))])) : n(A).length === 0 ? (s(), l("div", Ot, [c(n(Ct), {
509
+ default: o(() => [J.value ? (s(), r("div", jt, [d(n(Pt))])) : n(A).length === 0 ? (s(), r("div", Gt, [d(n(Ct), {
495
510
  description: "暂无配额限制"
496
- })])) : (s(), l("div", Ht, [(s(!0), l(bt, null, _t(n(A), (a) => (s(), l("div", {
511
+ })])) : (s(), r("div", Jt, [(s(!0), r(_t, null, kt(n(A), (a) => (s(), r("div", {
497
512
  key: a.featureKey,
498
513
  class: "quota-card"
499
- }, [i("div", jt, [i("span", Gt, u(a.name), 1), i("span", Jt, u(et(a.period)), 1)]), i("div", Qt, [c(n(It), {
514
+ }, [i("div", Qt, [i("span", Xt, c(a.name), 1), i("span", Yt, c(nt(a.period)), 1)]), i("div", Zt, [d(n(xt), {
500
515
  percent: a.percentage,
501
516
  status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
502
- }, null, 8, ["percent", "status"])]), i("div", Xt, [a.unlimited ? (s(), l("span", Yt, "无限制")) : (s(), l("span", Zt, "已使用 " + u(a.used) + " / " + u(a.limit), 1)), a.resetsAt ? (s(), l("span", te, u(a.resetsAt) + " 重置", 1)) : g("", !0)])]))), 128))]))]),
517
+ }, null, 8, ["percent", "status"])]), i("div", te, [a.unlimited ? (s(), r("span", ee, "无限制")) : (s(), r("span", ne, "已使用 " + c(a.used) + " / " + c(a.limit), 1)), a.resetsAt ? (s(), r("span", ae, c(a.resetsAt) + " 重置", 1)) : g("", !0)])]))), 128))]))]),
503
518
  _: 1
504
519
  })]),
505
520
  _: 1
@@ -508,8 +523,9 @@ const At = {
508
523
  _: 1
509
524
  }, 8, ["visible", "width"]));
510
525
  }
511
- }), ye = /* @__PURE__ */ Pt(ee, [["__scopeId", "data-v-610f8628"]]);
526
+ }), ke = /* @__PURE__ */ zt(ie, [["__scopeId", "data-v-a5f046fb"]]);
512
527
  export {
513
- ye as P,
514
- zt as u
528
+ ke as P,
529
+ Nt as o,
530
+ At as u
515
531
  };