@huyooo/ui 0.7.26 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/{AuthkitAuthModal-C1Kgu1TA.js → AuthkitAuthModal-DPf1AlaQ.js} +736 -792
  2. package/dist/{AuthkitSignInPhone-BG7r63dN.js → AuthkitSignInPhone-CWzkKKL0.js} +99 -99
  3. package/dist/{Clipboard-8rWlOPTZ.js → Clipboard-D9v7JOBm.js} +1 -1
  4. package/dist/{Contact-Bpl7sIjY.js → Contact-ytZiAQRw.js} +2 -2
  5. package/dist/{FeedbackItem-DMpvHrOD.js → FeedbackItem-i0oANWbH.js} +3 -3
  6. package/dist/{FeedbackModal-DIhSPUPO.js → FeedbackModal-DHWN4Jhy.js} +266 -301
  7. package/dist/MessageHandle-42tZkEyh.js +1147 -0
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BRficqbp.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-Dt5A9Six.js} +38 -37
  9. package/dist/{PaySubscriptions-F5sNex0h.js → PaySubscriptions-CX3DhX82.js} +129 -169
  10. package/dist/ReferrerReferees-CdAsYLZl.js +106 -0
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-D7ZGc2ZS.js → Upload.vue_vue_type_script_setup_true_lang-7AFuqo0A.js} +1 -1
  12. package/dist/{UserAccountMenu-CkUtqNxY.js → UserAccountMenu-DBVdpUn8.js} +7 -7
  13. package/dist/{WidthContainer-DSQui1pX.js → WidthContainer-CFNPAWZ8.js} +7 -7
  14. package/dist/apiClients-myKy30Xh.js +167 -0
  15. package/dist/authkit.js +6 -6
  16. package/dist/common/globalConfig.d.ts +2 -2
  17. package/dist/common.js +1 -1
  18. package/dist/components/Authkit/Auth/AuthkitAuthContainer.vue.d.ts +1 -1
  19. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
  20. package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +1 -1
  21. package/dist/components/LandingPage/LandingPageStats.vue.d.ts +1 -1
  22. package/dist/components/Logo.vue.d.ts +1 -1
  23. package/dist/components/MenuItem.vue.d.ts +1 -1
  24. package/dist/components/Message/MessageTabs.vue.d.ts +2 -2
  25. package/dist/components/Upload/Upload.vue.d.ts +2 -2
  26. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  27. package/dist/components/User/UserPanel.vue.d.ts +2 -2
  28. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
  29. package/dist/composables.js +9 -9
  30. package/dist/feedback.js +3 -3
  31. package/dist/index.js +191 -189
  32. package/dist/main.d.ts +1 -2
  33. package/dist/message.js +3 -3
  34. package/dist/pay.js +1 -1
  35. package/dist/privateCom.js +1 -1
  36. package/dist/referrer.js +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/types/api/auth.generated.d.ts +2975 -0
  39. package/dist/types/api/billing.generated.d.ts +2036 -0
  40. package/dist/types/api/ones.generated.d.ts +5188 -0
  41. package/dist/upload.js +2 -2
  42. package/dist/{useAuthkitAppsAuthPageInfo-CtsTqri7.js → useAuthkitAppsAuthPageInfo-Bb7RIaTy.js} +13 -27
  43. package/dist/{useAuthkitCreateAndUpdate-BUyZbiBj.js → useAuthkitCreateAndUpdate-DXdMyzQQ.js} +1 -1
  44. package/dist/useAuthkitUsersProfile-4plbUlY5.js +174 -0
  45. package/dist/{useDownloads-Cl_-B4sP.js → useDownloads-gcrEJA6i.js} +1 -1
  46. package/dist/useMessageNotifications-Bph752i8.js +78 -0
  47. package/dist/{useSEO-C_4yDk7S.js → useSEO-D1NT53Rv.js} +2 -2
  48. package/dist/{useTableHandle-6ekhLVbK.js → useTableHandle-DrYIPjL5.js} +1 -1
  49. package/dist/{useUploadCos-dYc8op7M.js → useUploadCos-F3oBTo2B.js} +159 -181
  50. package/dist/user.js +1 -1
  51. package/dist/utils/apiClients.d.ts +6 -0
  52. package/dist/utils/apiMiddlewares.d.ts +16 -0
  53. package/package.json +8 -3
  54. package/dist/MessageHandle-WA95I84_.js +0 -1207
  55. package/dist/MessageNotifications-DmgFNjH7.js +0 -35
  56. package/dist/ReferrerReferees-DMA8Tj5i.js +0 -113
  57. package/dist/api/Authkit/Users.d.ts +0 -15
  58. package/dist/api/Authkit/apps.d.ts +0 -2
  59. package/dist/api/Authkit/auth.d.ts +0 -50
  60. package/dist/api/Authkit/oauth.d.ts +0 -12
  61. package/dist/api/Authkit/verify.d.ts +0 -25
  62. package/dist/api/Buckets/Files.d.ts +0 -7
  63. package/dist/api/Buckets.d.ts +0 -2
  64. package/dist/api/Invoices.d.ts +0 -32
  65. package/dist/api/Message/ChangelogNotifications.d.ts +0 -17
  66. package/dist/api/Message/EventNotifications.d.ts +0 -16
  67. package/dist/api/Message/MessageNotifications.d.ts +0 -25
  68. package/dist/api/Message/NoticeNotifications.d.ts +0 -37
  69. package/dist/api/Messages.d.ts +0 -2
  70. package/dist/api/Orders.d.ts +0 -9
  71. package/dist/api/Products.d.ts +0 -20
  72. package/dist/api/Quotas.d.ts +0 -21
  73. package/dist/api/Referrer.d.ts +0 -1
  74. package/dist/api/Subscriptions.d.ts +0 -35
  75. package/dist/api/index.d.ts +0 -8
  76. package/dist/request-B4CMspsP.js +0 -196
  77. package/dist/useAuthkitUsersProfile-B7wHZwe-.js +0 -257
  78. package/dist/useMessageNotifications-CP7gi893.js +0 -78
  79. package/dist/utils/request.d.ts +0 -26
@@ -1,8 +1,9 @@
1
- import { defineComponent as m, ref as p, createElementBlock as l, createCommentVNode as v, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, toDisplayString as A, Fragment as h, renderList as N } from "vue";
1
+ import { defineComponent as v, ref as p, createElementBlock as l, createCommentVNode as m, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, toDisplayString as A, Fragment as h, renderList as N } from "vue";
2
2
  import { Icon as D } from "@iconify/vue";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { D as $, n as x } from "./MessageHandle-WA95I84_.js";
5
- const F = /* @__PURE__ */ m({
4
+ import { o as $ } from "./apiClients-myKy30Xh.js";
5
+ import { D as x } from "./MessageHandle-42tZkEyh.js";
6
+ const E = /* @__PURE__ */ v({
6
7
  __name: "MessageMenuItem",
7
8
  props: {
8
9
  hidden: {
@@ -27,28 +28,28 @@ const F = /* @__PURE__ */ m({
27
28
  }
28
29
  },
29
30
  setup(u) {
30
- const n = u, a = p(!1);
31
- function s() {
32
- a.value = !0;
31
+ const n = u, o = p(!1);
32
+ function c() {
33
+ o.value = !0;
33
34
  }
34
35
  function i() {
35
- a.value = !1;
36
+ o.value = !1;
36
37
  }
37
- return (r, o) => n.hidden ? v("", !0) : (t(), l("div", {
38
+ return (r, a) => n.hidden ? m("", !0) : (t(), l("div", {
38
39
  key: 0,
39
40
  class: K(["List", {
40
41
  Active: n.active,
41
- Hover: a.value && !n.active
42
+ Hover: o.value && !n.active
42
43
  }]),
43
- onMouseover: s,
44
+ onMouseover: c,
44
45
  onMouseout: i
45
46
  }, [n.icon ? (t(), d(S(D), {
46
47
  key: 0,
47
48
  class: "icon",
48
49
  icon: n.icon
49
- }, null, 8, ["icon"])) : v("", !0), _("span", null, A(n.name), 1)], 34));
50
+ }, null, 8, ["icon"])) : m("", !0), _("span", null, A(n.name), 1)], 34));
50
51
  }
51
- }), B = /* @__PURE__ */ I(F, [["__scopeId", "data-v-9eaa7e6a"]]), E = {
52
+ }), B = /* @__PURE__ */ I(E, [["__scopeId", "data-v-9eaa7e6a"]]), F = {
52
53
  class: "Menu"
53
54
  }, H = {
54
55
  class: "TitleContent"
@@ -56,7 +57,7 @@ const F = /* @__PURE__ */ m({
56
57
  class: "Title"
57
58
  }, O = {
58
59
  class: "MenuItem2"
59
- }, T = /* @__PURE__ */ m({
60
+ }, T = /* @__PURE__ */ v({
60
61
  __name: "MessageMenu",
61
62
  props: {
62
63
  menus: {
@@ -72,11 +73,11 @@ const F = /* @__PURE__ */ m({
72
73
  setup(u, {
73
74
  emit: n
74
75
  }) {
75
- const a = u, s = n;
76
- function i(r, o) {
77
- console.log(r, "itemitemitemitem"), s("change", r, o);
76
+ const o = u, c = n;
77
+ function i(r, a) {
78
+ console.log(r, "itemitemitemitem"), c("change", r, a);
78
79
  }
79
- return (r, o) => (t(), l("div", E, [(t(!0), l(h, null, N(a.menus, (e, f) => {
80
+ return (r, a) => (t(), l("div", F, [(t(!0), l(h, null, N(o.menus, (e, f) => {
80
81
  var y, g, k;
81
82
  return t(), l("div", {
82
83
  key: f
@@ -86,16 +87,16 @@ const F = /* @__PURE__ */ m({
86
87
  key: 0,
87
88
  class: "icon",
88
89
  icon: e.meta.icon
89
- }, null, 8, ["icon"])) : v("", !0), _("span", L, A(e.name), 1)]), _("span", O, [(t(!0), l(h, null, N(e.children, (c, M) => {
90
- var q, C;
90
+ }, null, 8, ["icon"])) : m("", !0), _("span", L, A(e.name), 1)]), _("span", O, [(t(!0), l(h, null, N(e.children, (s, M) => {
91
+ var C, q;
91
92
  return t(), d(B, {
92
93
  key: M,
93
- hidden: ((q = c.meta) == null ? void 0 : q.hidden) || !1,
94
- path: c.path,
95
- icon: (C = c.meta) == null ? void 0 : C.icon,
96
- name: c.name,
97
- active: a.selectedKeys.includes(c.path),
98
- onClick: (V) => i(c, M)
94
+ hidden: ((C = s.meta) == null ? void 0 : C.hidden) || !1,
95
+ path: s.path,
96
+ icon: (q = s.meta) == null ? void 0 : q.icon,
97
+ name: s.name,
98
+ active: o.selectedKeys.includes(s.path),
99
+ onClick: (V) => i(s, M)
99
100
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
100
101
  }), 128))])], 64)) : (t(), d(B, {
101
102
  key: 1,
@@ -103,12 +104,12 @@ const F = /* @__PURE__ */ m({
103
104
  path: e.path,
104
105
  icon: (k = e.meta) == null ? void 0 : k.icon,
105
106
  name: e.name,
106
- active: a.selectedKeys.includes(e.path),
107
- onClick: (c) => i(e, f)
107
+ active: o.selectedKeys.includes(e.path),
108
+ onClick: (s) => i(e, f)
108
109
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
109
110
  }), 128))]));
110
111
  }
111
- }), G = /* @__PURE__ */ I(T, [["__scopeId", "data-v-660c1eb8"]]), J = /* @__PURE__ */ m({
112
+ }), J = /* @__PURE__ */ I(T, [["__scopeId", "data-v-660c1eb8"]]), P = /* @__PURE__ */ v({
112
113
  __name: "MessageNoticeNotificationsDetails",
113
114
  props: {
114
115
  id: {
@@ -117,25 +118,25 @@ const F = /* @__PURE__ */ m({
117
118
  }
118
119
  },
119
120
  setup(u) {
120
- const n = p(!1), a = p(null), s = p(""), i = u;
121
+ const n = p(!1), o = p(null), c = p(""), i = u;
121
122
  async function r() {
122
123
  n.value = !0;
123
124
  const {
124
- data: o
125
- } = await x({
125
+ data: a
126
+ } = await $.messageCenter.noticeNotifications.findOne.post({
126
127
  id: i.id
127
128
  });
128
- n.value = !1, o && (a.value = o.content, s.value = o.title);
129
+ n.value = !1, a && (o.value = a.content, c.value = a.title);
129
130
  }
130
- return r(), (o, e) => (t(), d($, {
131
- content: a.value,
132
- title: s.value,
131
+ return r(), (a, e) => (t(), d(x, {
132
+ content: o.value,
133
+ title: c.value,
133
134
  loading: n.value
134
135
  }, null, 8, ["content", "title", "loading"]));
135
136
  }
136
137
  });
137
138
  export {
138
- G as M,
139
- J as _,
139
+ J as M,
140
+ P as _,
140
141
  B as a
141
142
  };
@@ -5,126 +5,86 @@
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { defineComponent as nt, ref as d, createBlock as I, openBlock as r, unref as o, isRef as it, withCtx as s, createElementVNode as n, createElementBlock as c, createVNode as u, toDisplayString as l, createTextVNode as p, createCommentVNode as $, Fragment as st, renderList as ot } from "vue";
9
- import { Modal as lt, Tag as w, Button as A, Popconfirm as rt, Empty as q, Tabs as ut, TabPane as z, Spin as ct, Progress as dt } from "@arco-design/web-vue";
10
- import { c as f, g as b } from "./request-B4CMspsP.js";
11
- import { u as pt } from "./useAuthkitCreateAndUpdate-BUyZbiBj.js";
8
+ import { defineComponent as et, ref as c, createBlock as C, openBlock as u, unref as o, isRef as at, withCtx as s, createElementVNode as n, createElementBlock as d, createVNode as r, toDisplayString as l, createTextVNode as p, createCommentVNode as L, Fragment as nt, renderList as it } from "vue";
9
+ import { Modal as st, Tag as P, Button as I, Popconfirm as ot, Empty as q, Tabs as lt, TabPane as w, Spin as ut, Progress as rt } from "@arco-design/web-vue";
10
+ import { d as g } from "./apiClients-myKy30Xh.js";
11
+ import { u as dt } from "./useAuthkitCreateAndUpdate-DXdMyzQQ.js";
12
12
  import { C as B } from "./CustomTable-BCOwLyRJ.js";
13
- import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- function vt(m) {
15
- return f({
16
- url: `${b.billingPrefixUrl}/subscriptions/cancel`,
17
- method: "post",
18
- data: m
19
- });
20
- }
21
- function gt(m) {
22
- return f({
23
- url: `${b.billingPrefixUrl}/subscriptions/resume`,
24
- method: "post",
25
- data: m
26
- });
27
- }
28
- function ft(m) {
29
- return f({
30
- url: `${b.billingPrefixUrl}/subscriptions/my`,
31
- method: "post",
32
- data: m || {}
33
- });
34
- }
35
- function bt() {
36
- return f({
37
- url: `${b.billingPrefixUrl}/subscriptions/current`,
38
- method: "post"
39
- });
40
- }
41
- function _t(m) {
42
- return f({
43
- url: `${b.billingPrefixUrl}/invoices/my`,
44
- method: "post",
45
- data: m || {}
46
- });
47
- }
48
- function yt() {
49
- return f({
50
- url: `${b.billingPrefixUrl}/quotas/my`,
51
- method: "post"
52
- });
53
- }
54
- const ht = {
13
+ import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const pt = {
55
15
  class: "content"
56
- }, xt = {
16
+ }, vt = {
57
17
  key: 0,
58
18
  class: "current-subscription-card"
59
- }, kt = {
19
+ }, mt = {
60
20
  class: "subscription-header"
61
- }, Pt = {
21
+ }, gt = {
62
22
  class: "subscription-info"
63
- }, St = {
23
+ }, ft = {
64
24
  class: "subscription-actions"
65
- }, Ct = {
25
+ }, _t = {
66
26
  class: "subscription-details"
67
- }, It = {
27
+ }, bt = {
68
28
  class: "detail-item"
69
- }, wt = {
29
+ }, yt = {
70
30
  class: "detail-item"
71
- }, At = {
31
+ }, ht = {
72
32
  key: 0,
73
33
  class: "detail-item"
74
- }, zt = {
34
+ }, kt = {
75
35
  key: 1,
76
36
  class: "detail-item"
77
- }, Nt = {
37
+ }, St = {
78
38
  key: 2,
79
39
  class: "detail-item warning"
80
- }, Wt = {
40
+ }, xt = {
81
41
  key: 1,
82
42
  class: "no-subscription"
83
- }, Et = {
43
+ }, Ct = {
84
44
  key: 0,
85
45
  class: "quotas-loading"
86
- }, Ut = {
46
+ }, Pt = {
87
47
  key: 1,
88
48
  class: "no-quotas"
89
- }, Tt = {
49
+ }, It = {
90
50
  key: 2,
91
51
  class: "quotas-grid"
92
- }, Lt = {
52
+ }, wt = {
93
53
  class: "quota-header"
94
- }, $t = {
54
+ }, At = {
95
55
  class: "quota-name"
96
- }, qt = {
56
+ }, zt = {
97
57
  class: "quota-period"
98
- }, Bt = {
58
+ }, Nt = {
99
59
  class: "quota-progress"
100
- }, Ft = {
60
+ }, Wt = {
101
61
  class: "quota-detail"
102
- }, Mt = {
62
+ }, Et = {
103
63
  key: 0
104
- }, Vt = {
64
+ }, Tt = {
105
65
  key: 1
106
- }, Rt = {
66
+ }, Lt = {
107
67
  key: 2,
108
68
  class: "reset-time"
109
- }, Dt = /* @__PURE__ */ nt({
69
+ }, qt = /* @__PURE__ */ et({
110
70
  __name: "PaySubscriptions",
111
71
  emits: ["confirm", "cancel"],
112
- setup(m, {
72
+ setup(Bt, {
113
73
  expose: F,
114
- emit: M
74
+ emit: V
115
75
  }) {
116
- const N = M, {
117
- changeType: V,
118
- show: _
119
- } = pt(N), W = d("subscriptions"), i = d(null), E = d([]), x = d(!1), v = d({
76
+ const A = V, {
77
+ changeType: U,
78
+ show: f
79
+ } = dt(A), z = c("subscriptions"), i = c(null), N = c([]), y = c(!1), v = c({
120
80
  current: 1,
121
81
  pageSize: 10,
122
82
  total: 0
123
- }), U = d([]), k = d(!1), g = d({
83
+ }), W = c([]), h = c(!1), m = c({
124
84
  current: 1,
125
85
  pageSize: 10,
126
86
  total: 0
127
- }), h = d([]), P = d(!1), R = [{
87
+ }), b = c([]), k = c(!1), D = [{
128
88
  dataIndex: "productName",
129
89
  title: "产品",
130
90
  minWidth: 120
@@ -155,7 +115,7 @@ const ht = {
155
115
  dataIndex: "createAt",
156
116
  title: "创建时间",
157
117
  minWidth: 160
158
- }], D = [{
118
+ }], K = [{
159
119
  dataIndex: "productName",
160
120
  title: "产品",
161
121
  minWidth: 120
@@ -182,7 +142,7 @@ const ht = {
182
142
  title: "创建时间",
183
143
  minWidth: 160
184
144
  }];
185
- function T(t) {
145
+ function E(t) {
186
146
  return {
187
147
  trialing: "blue",
188
148
  active: "green",
@@ -192,7 +152,7 @@ const ht = {
192
152
  incomplete: "red"
193
153
  }[t] || "gray";
194
154
  }
195
- function L(t) {
155
+ function T(t) {
196
156
  return {
197
157
  trialing: "试用中",
198
158
  active: "已激活",
@@ -203,7 +163,7 @@ const ht = {
203
163
  paused: "已暂停"
204
164
  }[t] || t;
205
165
  }
206
- function K(t) {
166
+ function R(t) {
207
167
  return {
208
168
  draft: "gray",
209
169
  open: "orange",
@@ -212,7 +172,7 @@ const ht = {
212
172
  uncollectible: "red"
213
173
  }[t] || "gray";
214
174
  }
215
- function O(t) {
175
+ function M(t) {
216
176
  return {
217
177
  draft: "草稿",
218
178
  open: "待支付",
@@ -221,7 +181,7 @@ const ht = {
221
181
  uncollectible: "无法收款"
222
182
  }[t] || t;
223
183
  }
224
- function Q(t) {
184
+ function O(t) {
225
185
  return {
226
186
  day: "每天",
227
187
  week: "每周",
@@ -230,111 +190,111 @@ const ht = {
230
190
  lifetime: "永久"
231
191
  }[t] || t;
232
192
  }
233
- function j() {
234
- _.value = !1, N("cancel");
193
+ function Q() {
194
+ f.value = !1, A("cancel");
235
195
  }
236
- function G() {
196
+ function $() {
237
197
  window.open("/Pricing", "_blank");
238
198
  }
239
199
  async function S() {
240
200
  const {
241
201
  data: t
242
- } = await bt();
202
+ } = await g.subscriptions.current.post({});
243
203
  i.value = t;
244
204
  }
245
- async function y() {
246
- x.value = !0;
205
+ async function _() {
206
+ y.value = !0;
247
207
  const {
248
208
  data: t
249
- } = await ft({
209
+ } = await g.subscriptions.my.post({
250
210
  current: v.value.current,
251
211
  pageSize: v.value.pageSize
252
212
  });
253
- x.value = !1, t && (E.value = t.items, v.value.total = t.count);
213
+ y.value = !1, t && (N.value = t.items, v.value.total = t.count);
254
214
  }
255
- async function C() {
256
- k.value = !0;
215
+ async function x() {
216
+ h.value = !0;
257
217
  const {
258
218
  data: t
259
- } = await _t({
260
- current: g.value.current,
261
- pageSize: g.value.pageSize
219
+ } = await g.invoices.my.post({
220
+ current: m.value.current,
221
+ pageSize: m.value.pageSize
262
222
  });
263
- k.value = !1, t && (U.value = t.items, g.value.total = t.count);
223
+ h.value = !1, t && (W.value = t.items, m.value.total = t.count);
264
224
  }
265
- async function H() {
266
- P.value = !0;
225
+ async function j() {
226
+ k.value = !0;
267
227
  const {
268
228
  data: t
269
- } = await yt();
270
- P.value = !1, t && t.hasSubscription ? h.value = t.quotas : h.value = [];
229
+ } = await g.quotas.my.post({});
230
+ k.value = !1, t && t.hasSubscription ? b.value = t.quotas : b.value = [];
271
231
  }
272
- async function J() {
232
+ async function G() {
273
233
  if (!i.value) return;
274
234
  const {
275
235
  error: t
276
- } = await vt({
236
+ } = await g.subscriptions.cancel.post({
277
237
  subscriptionId: i.value.id,
278
238
  cancelAtPeriodEnd: !0
279
239
  });
280
- t || (await S(), await y());
240
+ t || (await S(), await _());
281
241
  }
282
- async function X() {
242
+ async function H() {
283
243
  if (!i.value) return;
284
244
  const {
285
245
  error: t
286
- } = await gt({
246
+ } = await g.subscriptions.resume.post({
287
247
  subscriptionId: i.value.id
288
248
  });
289
- t || (await S(), await y());
249
+ t || (await S(), await _());
290
250
  }
291
- function Y(t) {
292
- v.value.current = t, y();
251
+ function J(t) {
252
+ v.value.current = t, _();
293
253
  }
294
- function Z(t) {
295
- v.value.pageSize = t, v.value.current = 1, y();
254
+ function X(t) {
255
+ v.value.pageSize = t, v.value.current = 1, _();
296
256
  }
297
- function tt(t) {
298
- g.value.current = t, C();
257
+ function Y(t) {
258
+ m.value.current = t, x();
299
259
  }
300
- function et(t) {
301
- g.value.pageSize = t, g.value.current = 1, C();
260
+ function Z(t) {
261
+ m.value.pageSize = t, m.value.current = 1, x();
302
262
  }
303
- function at(t, e) {
304
- _.value = e, V.value = "编辑", e && (S(), y(), C(), H());
263
+ function tt(t, e) {
264
+ f.value = e, U.value = "编辑", e && (S(), _(), x(), j());
305
265
  }
306
266
  return F({
307
- setData: at
308
- }), (t, e) => (r(), I(o(lt), {
309
- visible: o(_),
310
- "onUpdate:visible": e[1] || (e[1] = (a) => it(_) ? _.value = a : null),
267
+ setData: tt
268
+ }), (t, e) => (u(), C(o(st), {
269
+ visible: o(f),
270
+ "onUpdate:visible": e[1] || (e[1] = (a) => at(f) ? f.value = a : null),
311
271
  loading: !1,
312
272
  "body-class": "SubscriptionsbodyClass",
313
273
  "mask-closable": !1,
314
274
  footer: !1,
315
275
  width: "90%",
316
- onCancel: j
276
+ onCancel: Q
317
277
  }, {
318
278
  title: s(() => [...e[2] || (e[2] = [p(" 订阅管理 ", -1)])]),
319
- default: s(() => [n("div", ht, [i.value ? (r(), c("div", xt, [n("div", kt, [n("div", Pt, [n("h3", null, l(i.value.productName), 1), u(o(w), {
320
- color: T(i.value.status)
279
+ default: s(() => [n("div", pt, [i.value ? (u(), d("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, l(i.value.productName), 1), r(o(P), {
280
+ color: E(i.value.status)
321
281
  }, {
322
- default: s(() => [p(l(L(i.value.status)), 1)]),
282
+ default: s(() => [p(l(T(i.value.status)), 1)]),
323
283
  _: 1
324
- }, 8, ["color"])]), n("div", St, [i.value.cancelAtPeriodEnd ? (r(), I(o(A), {
284
+ }, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (u(), C(o(I), {
325
285
  key: 0,
326
286
  type: "primary",
327
287
  size: "small",
328
- onClick: X
288
+ onClick: H
329
289
  }, {
330
290
  default: s(() => [...e[3] || (e[3] = [p(" 恢复订阅 ", -1)])]),
331
291
  _: 1
332
- })) : (r(), I(o(rt), {
292
+ })) : (u(), C(o(ot), {
333
293
  key: 1,
334
294
  content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
335
- onOk: J
295
+ onOk: G
336
296
  }, {
337
- default: s(() => [u(o(A), {
297
+ default: s(() => [r(o(I), {
338
298
  type: "outline",
339
299
  size: "small",
340
300
  status: "warning"
@@ -343,50 +303,50 @@ const ht = {
343
303
  _: 1
344
304
  })]),
345
305
  _: 1
346
- }))])]), n("div", Ct, [n("div", It, [e[5] || (e[5] = n("span", {
306
+ }))])]), n("div", _t, [n("div", bt, [e[5] || (e[5] = n("span", {
347
307
  class: "label"
348
- }, "计费周期:", -1)), n("span", null, l(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div", wt, [e[6] || (e[6] = n("span", {
308
+ }, "计费周期:", -1)), n("span", null, l(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div", yt, [e[6] || (e[6] = n("span", {
349
309
  class: "label"
350
- }, "价格:", -1)), n("span", null, "¥" + l(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + l(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (r(), c("div", At, [e[7] || (e[7] = n("span", {
310
+ }, "价格:", -1)), n("span", null, "¥" + l(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + l(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (u(), d("div", ht, [e[7] || (e[7] = n("span", {
351
311
  class: "label"
352
- }, "试用结束:", -1)), n("span", null, l(i.value.trialEnd), 1)])) : (r(), c("div", zt, [e[8] || (e[8] = n("span", {
312
+ }, "试用结束:", -1)), n("span", null, l(i.value.trialEnd), 1)])) : (u(), d("div", kt, [e[8] || (e[8] = n("span", {
353
313
  class: "label"
354
- }, "当前周期结束:", -1)), n("span", null, l(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (r(), c("div", Nt, [...e[9] || (e[9] = [n("span", {
314
+ }, "当前周期结束:", -1)), n("span", null, l(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (u(), d("div", St, [...e[9] || (e[9] = [n("span", {
355
315
  class: "label"
356
- }, "订阅将于周期结束后停止", -1)])])) : $("", !0)])])) : (r(), c("div", Wt, [u(o(q), {
316
+ }, "订阅将于周期结束后停止", -1)])])) : L("", !0)])])) : (u(), d("div", xt, [r(o(q), {
357
317
  description: "暂无订阅"
358
318
  }, {
359
- default: s(() => [u(o(A), {
319
+ default: s(() => [r(o(I), {
360
320
  type: "primary",
361
- onClick: G
321
+ onClick: $
362
322
  }, {
363
323
  default: s(() => [...e[10] || (e[10] = [p("查看价格方案", -1)])]),
364
324
  _: 1
365
325
  })]),
366
326
  _: 1
367
- })])), u(o(ut), {
368
- "active-key": W.value,
369
- "onUpdate:activeKey": e[0] || (e[0] = (a) => W.value = a),
327
+ })])), r(o(lt), {
328
+ "active-key": z.value,
329
+ "onUpdate:activeKey": e[0] || (e[0] = (a) => z.value = a),
370
330
  class: "subscription-tabs"
371
331
  }, {
372
- default: s(() => [u(o(z), {
332
+ default: s(() => [r(o(w), {
373
333
  key: "subscriptions",
374
334
  title: "订阅历史"
375
335
  }, {
376
- default: s(() => [u(B, {
377
- columns: R,
378
- data: E.value,
379
- loading: x.value,
336
+ default: s(() => [r(B, {
337
+ columns: D,
338
+ data: N.value,
339
+ loading: y.value,
380
340
  pagination: v.value,
381
- onPageChange: Y,
382
- onPageSizeChange: Z
341
+ onPageChange: J,
342
+ onPageSizeChange: X
383
343
  }, {
384
344
  status: s(({
385
345
  record: a
386
- }) => [u(o(w), {
387
- color: T(a.status)
346
+ }) => [r(o(P), {
347
+ color: E(a.status)
388
348
  }, {
389
- default: s(() => [p(l(L(a.status)), 1)]),
349
+ default: s(() => [p(l(T(a.status)), 1)]),
390
350
  _: 2
391
351
  }, 1032, ["color"])]),
392
352
  interval: s(({
@@ -398,24 +358,24 @@ const ht = {
398
358
  _: 1
399
359
  }, 8, ["data", "loading", "pagination"])]),
400
360
  _: 1
401
- }), u(o(z), {
361
+ }), r(o(w), {
402
362
  key: "invoices",
403
363
  title: "账单记录"
404
364
  }, {
405
- default: s(() => [u(B, {
406
- columns: D,
407
- data: U.value,
408
- loading: k.value,
409
- pagination: g.value,
410
- onPageChange: tt,
411
- onPageSizeChange: et
365
+ default: s(() => [r(B, {
366
+ columns: K,
367
+ data: W.value,
368
+ loading: h.value,
369
+ pagination: m.value,
370
+ onPageChange: Y,
371
+ onPageSizeChange: Z
412
372
  }, {
413
373
  status: s(({
414
374
  record: a
415
- }) => [u(o(w), {
416
- color: K(a.status)
375
+ }) => [r(o(P), {
376
+ color: R(a.status)
417
377
  }, {
418
- default: s(() => [p(l(O(a.status)), 1)]),
378
+ default: s(() => [p(l(M(a.status)), 1)]),
419
379
  _: 2
420
380
  }, 1032, ["color"])]),
421
381
  total: s(({
@@ -424,19 +384,19 @@ const ht = {
424
384
  _: 1
425
385
  }, 8, ["data", "loading", "pagination"])]),
426
386
  _: 1
427
- }), u(o(z), {
387
+ }), r(o(w), {
428
388
  key: "quotas",
429
389
  title: "配额使用"
430
390
  }, {
431
- default: s(() => [P.value ? (r(), c("div", Et, [u(o(ct))])) : h.value.length === 0 ? (r(), c("div", Ut, [u(o(q), {
391
+ default: s(() => [k.value ? (u(), d("div", Ct, [r(o(ut))])) : b.value.length === 0 ? (u(), d("div", Pt, [r(o(q), {
432
392
  description: "暂无配额限制"
433
- })])) : (r(), c("div", Tt, [(r(!0), c(st, null, ot(h.value, (a) => (r(), c("div", {
393
+ })])) : (u(), d("div", It, [(u(!0), d(nt, null, it(b.value, (a) => (u(), d("div", {
434
394
  key: a.featureKey,
435
395
  class: "quota-card"
436
- }, [n("div", Lt, [n("span", $t, l(a.name), 1), n("span", qt, l(Q(a.period)), 1)]), n("div", Bt, [u(o(dt), {
396
+ }, [n("div", wt, [n("span", At, l(a.name), 1), n("span", zt, l(O(a.period)), 1)]), n("div", Nt, [r(o(rt), {
437
397
  percent: a.percentage,
438
398
  status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
439
- }, null, 8, ["percent", "status"])]), n("div", Ft, [a.unlimited ? (r(), c("span", Mt, "无限制")) : (r(), c("span", Vt, "已使用 " + l(a.used) + " / " + l(a.limit), 1)), a.resetsAt ? (r(), c("span", Rt, l(a.resetsAt) + " 重置", 1)) : $("", !0)])]))), 128))]))]),
399
+ }, null, 8, ["percent", "status"])]), n("div", Wt, [a.unlimited ? (u(), d("span", Et, "无限制")) : (u(), d("span", Tt, "已使用 " + l(a.used) + " / " + l(a.limit), 1)), a.resetsAt ? (u(), d("span", Lt, l(a.resetsAt) + " 重置", 1)) : L("", !0)])]))), 128))]))]),
440
400
  _: 1
441
401
  })]),
442
402
  _: 1
@@ -444,7 +404,7 @@ const ht = {
444
404
  _: 1
445
405
  }, 8, ["visible"]));
446
406
  }
447
- }), ne = /* @__PURE__ */ mt(Dt, [["__scopeId", "data-v-33e045de"]]);
407
+ }), Jt = /* @__PURE__ */ ct(qt, [["__scopeId", "data-v-41a879d8"]]);
448
408
  export {
449
- ne as S
409
+ Jt as S
450
410
  };