@huyooo/ui 0.9.7 → 0.9.9

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 (60) hide show
  1. package/dist/{AuthkitAuthModal-C7uInLdY.js → AuthkitAuthModal-CIqo_ytT.js} +28 -28
  2. package/dist/{AuthkitSignInPhone-8uhC9TZk.js → AuthkitSignInPhone-GEP_InIp.js} +11 -14
  3. package/dist/{Clipboard-cVQOko5l.js → Clipboard-BsST2Mjo.js} +13 -13
  4. package/dist/{CollapseItem-Cw1vcdLu.js → CollapseItem-DN-GUAQA.js} +9 -9
  5. package/dist/{Contact-DUmCnXqQ.js → Contact-D1RLCHL7.js} +7 -7
  6. package/dist/{CustomTable-BCOwLyRJ.js → CustomTable-CVZ4mFzi.js} +6 -6
  7. package/dist/{FeedbackItem-fkgvLHJD.js → FeedbackItem-BhBJPtoI.js} +8 -8
  8. package/dist/{FeedbackModal-CIZ40lMX.js → FeedbackModal-Ci0sZsOa.js} +10 -10
  9. package/dist/{LandingPageSectionHeader-BU7Qtxaj.js → LandingPageSectionHeader-1h01zdKJ.js} +168 -222
  10. package/dist/{LandingPageSectionTabs-DYNXKElT.js → LandingPageSectionTabs-BRTZaLEe.js} +374 -365
  11. package/dist/Logo-D7fyXyB-.js +67 -0
  12. package/dist/{Menu-DXrn5cEL.js → Menu-v8cCDSzi.js} +9 -9
  13. package/dist/{MessageHandle-DTzrBuMx.js → MessageHandle-Dkpc4axC.js} +9 -9
  14. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CmCk86SN.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js} +10 -10
  15. package/dist/{PaySubscriptions-DyhcLb_v.js → PaySubscriptions-ygmbIpWM.js} +84 -86
  16. package/dist/{ReferrerReferees-DxsvdWMg.js → ReferrerReferees-BlHsWD6F.js} +10 -10
  17. package/dist/{Upload.vue_vue_type_script_setup_true_lang-BWn8nk3F.js → Upload.vue_vue_type_script_setup_true_lang-C4-In_x4.js} +3 -3
  18. package/dist/{UserAccountMenu-BV_lg4Mh.js → UserAccountMenu-C6MK8Ulm.js} +16 -16
  19. package/dist/WidthContainer-IvPa1ayt.js +655 -0
  20. package/dist/apiClients-DJchWBAG.js +201 -0
  21. package/dist/authkit.js +14 -14
  22. package/dist/common/globalConfig.d.ts +11 -2
  23. package/dist/common.js +14 -13
  24. package/dist/components/DefaultLayout.vue.d.ts +10 -0
  25. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +9 -8
  26. package/dist/components/Header.vue.d.ts +7 -1
  27. package/dist/components/HeaderMenus.vue.d.ts +11 -1
  28. package/dist/components/LandingPage/LandingPageBrandInfo.vue.d.ts +2 -0
  29. package/dist/components/LandingPage/PageContent.vue.d.ts +18 -0
  30. package/dist/components/Logo.vue.d.ts +23 -8
  31. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +10 -197
  32. package/dist/composables.d.ts +1 -1
  33. package/dist/composables.js +26 -24
  34. package/dist/feedback.js +3 -3
  35. package/dist/head.d.ts +7 -0
  36. package/dist/{index-Cr5RQSnA.js → index-CUfrjRxu.js} +2 -2
  37. package/dist/{index-Bb-d5pBq.js → index-D56hUMeD.js} +1 -1
  38. package/dist/landingPage.d.ts +2 -1
  39. package/dist/landingPage.js +29 -27
  40. package/dist/main.d.ts +2 -1
  41. package/dist/{index.js → main.js} +742 -721
  42. package/dist/message.js +3 -3
  43. package/dist/pay.js +1 -1
  44. package/dist/privateCom.js +1 -1
  45. package/dist/referrer.js +1 -1
  46. package/dist/style.css +1 -1
  47. package/dist/upload.js +2 -2
  48. package/dist/{useAuthkitAppsAuthPageInfo-xaOevaqO.js → useAuthkitAppsAuthPageInfo-C3EHOtlk.js} +1 -1
  49. package/dist/{useAuthkitCreateAndUpdate-CrSEPNA3.js → useAuthkitCreateAndUpdate-CPkogY7K.js} +1 -1
  50. package/dist/{useAuthkitUsersProfile-TtiVCE3D.js → useAuthkitUsersProfile-BqW74gfs.js} +1 -3
  51. package/dist/{useDownloads-DskduMrh.js → useDownloads-CMQtTjNj.js} +1 -1
  52. package/dist/{useMessageNotifications-CMGnvtH8.js → useMessageNotifications-SIM85vdb.js} +1 -1
  53. package/dist/{useSEO-BjcQPhFP.js → useSEO-DeAU9YEc.js} +56 -54
  54. package/dist/{useTableHandle-LnJV7C1S.js → useTableHandle-CWu0LbeI.js} +1 -1
  55. package/dist/{useUploadCos-CPplFhAR.js → useUploadCos-BO3W_uqs.js} +125 -125
  56. package/dist/user.js +1 -1
  57. package/package.json +5 -5
  58. package/dist/WidthContainer-DijLkJHM.js +0 -585
  59. package/dist/apiClients-DACL0EIt.js +0 -188
  60. package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +0 -64
@@ -0,0 +1,67 @@
1
+ import { defineComponent as u, computed as n, openBlock as i, createElementBlock as c, normalizeStyle as r, createCommentVNode as m, createElementVNode as S, toDisplayString as g } from "vue";
2
+ import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const y = ["src"], z = /* @__PURE__ */ u({
4
+ __name: "Logo",
5
+ props: {
6
+ name: {
7
+ type: String,
8
+ required: !1,
9
+ default: ""
10
+ },
11
+ icon: {
12
+ type: String,
13
+ required: !1,
14
+ default: ""
15
+ },
16
+ /** 传入时覆盖默认主题色 */
17
+ color: {
18
+ type: String,
19
+ required: !1,
20
+ default: ""
21
+ },
22
+ /** 传入时覆盖默认字号 */
23
+ fontSize: {
24
+ type: String,
25
+ required: !1,
26
+ default: ""
27
+ },
28
+ iconSize: {
29
+ type: String,
30
+ required: !1,
31
+ default: "32px"
32
+ }
33
+ },
34
+ emits: ["to"],
35
+ setup(t, {
36
+ emit: l
37
+ }) {
38
+ const e = t, a = l, s = n(() => ({
39
+ width: e.iconSize,
40
+ height: e.iconSize
41
+ })), d = n(() => {
42
+ const o = {};
43
+ return e.fontSize && (o.fontSize = e.fontSize), e.color && (o.color = e.color), o;
44
+ });
45
+ function f() {
46
+ a("to");
47
+ }
48
+ return (o, _) => (i(), c("div", {
49
+ class: "Logo",
50
+ onClick: f
51
+ }, [t.icon ? (i(), c("img", {
52
+ key: 0,
53
+ class: "icon",
54
+ src: t.icon,
55
+ alt: "logo",
56
+ loading: "lazy",
57
+ decoding: "async",
58
+ style: r(s.value)
59
+ }, null, 12, y)) : m("", !0), S("div", {
60
+ class: "text",
61
+ style: r(d.value)
62
+ }, g(t.name), 5)]));
63
+ }
64
+ }), q = /* @__PURE__ */ p(z, [["__scopeId", "data-v-7306d591"]]);
65
+ export {
66
+ q as L
67
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, createElementBlock as i, createCommentVNode as m, openBlock as u, normalizeClass as k, createBlock as h, createElementVNode as d, unref as y, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as z, withCtx as F, withDirectives as G, vShow as L } from "vue";
1
+ import { defineComponent as $, openBlock as u, createElementBlock as i, normalizeClass as m, createBlock as h, unref as k, createCommentVNode as y, createElementVNode as d, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as z, withCtx as F, withDirectives as G, vShow as L } from "vue";
2
2
  import { Icon as C } from "@iconify/vue";
3
3
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const O = {
@@ -27,18 +27,18 @@ const O = {
27
27
  emit: v
28
28
  }) {
29
29
  const t = f, p = v;
30
- return (s, l) => t.hidden ? m("", !0) : (u(), i("div", {
30
+ return (s, l) => t.hidden ? y("", !0) : (u(), i("div", {
31
31
  key: 0,
32
- class: k(["menu-item", {
32
+ class: m(["menu-item", {
33
33
  "menu-item--active": t.active
34
34
  }]),
35
35
  onClick: l[0] || (l[0] = (w) => p("click"))
36
- }, [t.icon ? (u(), h(y(C), {
36
+ }, [t.icon ? (u(), h(k(C), {
37
37
  key: 0,
38
38
  class: "menu-item__icon",
39
39
  icon: t.icon,
40
40
  width: 16
41
- }, null, 8, ["icon"])) : m("", !0), d("span", O, A(t.name), 1)], 2));
41
+ }, null, 8, ["icon"])) : y("", !0), d("span", O, A(t.name), 1)], 2));
42
42
  }
43
43
  }), I = /* @__PURE__ */ N(T, [["__scopeId", "data-v-6d3265a2"]]), j = {
44
44
  class: "menu"
@@ -121,17 +121,17 @@ const O = {
121
121
  }, [e.children && e.children.length > 0 ? (u(), i(g, {
122
122
  key: 0
123
123
  }, [d("div", {
124
- class: k(["menu-group__header", {
124
+ class: m(["menu-group__header", {
125
125
  "menu-group__header--active": W(e)
126
126
  }]),
127
127
  onClick: (o) => V(e.path || c.toString())
128
- }, [d("div", H, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), h(y(C), {
128
+ }, [d("div", H, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), h(k(C), {
129
129
  key: 0,
130
130
  class: "menu-group__icon",
131
131
  icon: ((_ = e == null ? void 0 : e.meta) == null ? void 0 : _.icon) || (e == null ? void 0 : e.icon),
132
132
  width: 16
133
- }, null, 8, ["icon"])) : m("", !0), d("span", J, A(e.name), 1)]), E(y(C), {
134
- class: k(["menu-group__arrow", {
133
+ }, null, 8, ["icon"])) : y("", !0), d("span", J, A(e.name), 1)]), E(k(C), {
134
+ class: m(["menu-group__arrow", {
135
135
  "menu-group__arrow--expanded": s.value.includes(e.path || c.toString())
136
136
  }]),
137
137
  icon: "mingcute:down-line",
@@ -1,17 +1,17 @@
1
- import { ref as p, defineComponent as T, createBlock as _, openBlock as a, unref as i, withCtx as f, createVNode as w, createCommentVNode as A, createElementBlock as C, normalizeClass as K, createElementVNode as I, renderSlot as D, toDisplayString as z, createTextVNode as S, Fragment as F, renderList as W, createSlots as te, mergeProps as q, watch as ae, computed as J, mergeModels as Q, useModel as se, isRef as ne } from "vue";
1
+ import { ref as p, defineComponent as T, openBlock as a, createBlock as _, unref as i, withCtx as f, createVNode as w, createCommentVNode as A, createElementBlock as C, normalizeClass as K, createElementVNode as I, renderSlot as D, toDisplayString as z, createTextVNode as S, Fragment as F, renderList as W, createSlots as te, mergeProps as q, watch as ae, computed as J, useModel as se, isRef as ne, mergeModels as Q } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import { Spin as X, Empty as Y, Tag as B, Button as ie, Breadcrumb as H, BreadcrumbItem as V, Modal as oe } from "@arco-design/web-vue";
8
- import { o as L } from "./apiClients-DACL0EIt.js";
8
+ import { o as L } from "./apiClients-DJchWBAG.js";
9
9
  import { TiptapEditor as le, TiptapTitle as re } from "@huyooo/vue-tiptap";
10
10
  import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { useIntersectionObserver as ue } from "@vueuse/core";
12
12
  import { Icon as de } from "@iconify/vue";
13
- import { u as ce } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
14
- import { M as fe } from "./Menu-DXrn5cEL.js";
13
+ import { u as ce } from "./useAuthkitCreateAndUpdate-CPkogY7K.js";
14
+ import { M as fe } from "./Menu-v8cCDSzi.js";
15
15
  function Z(s, l = {}) {
16
16
  const {
17
17
  pageSize: t = 10,
@@ -137,7 +137,7 @@ const pe = /* @__PURE__ */ T({
137
137
  _: 1
138
138
  }, 8, ["loading"]));
139
139
  }
140
- }), j = /* @__PURE__ */ x(pe, [["__scopeId", "data-v-8eec0226"]]), ge = /* @__PURE__ */ T({
140
+ }), j = /* @__PURE__ */ x(pe, [["__scopeId", "data-v-6ccdedc3"]]), ge = /* @__PURE__ */ T({
141
141
  __name: "MessageChangelogNotificationsDetails",
142
142
  props: {
143
143
  id: {
@@ -218,7 +218,7 @@ const pe = /* @__PURE__ */ T({
218
218
  description: s.finishedText
219
219
  }, null, 8, ["description"])])) : A("", !0)], 512));
220
220
  }
221
- }), _e = /* @__PURE__ */ x(ye, [["__scopeId", "data-v-b513f798"]]), he = {
221
+ }), _e = /* @__PURE__ */ x(ye, [["__scopeId", "data-v-a3e8fd4e"]]), he = {
222
222
  class: "message-item__content"
223
223
  }, be = {
224
224
  class: "message-item__header"
@@ -465,7 +465,7 @@ const pe = /* @__PURE__ */ T({
465
465
  id: i(t)
466
466
  }, null, 8, ["id"])]))]));
467
467
  }
468
- }), Ve = /* @__PURE__ */ x(Re, [["__scopeId", "data-v-73f27e02"]]), Ee = /* @__PURE__ */ T({
468
+ }), Ve = /* @__PURE__ */ x(Re, [["__scopeId", "data-v-5fd47205"]]), Ee = /* @__PURE__ */ T({
469
469
  __name: "MessageEventNotificationsDetails",
470
470
  props: {
471
471
  id: {
@@ -610,7 +610,7 @@ const pe = /* @__PURE__ */ T({
610
610
  onClick: (u) => r(n.key)
611
611
  }, z(n.label), 11, je))), 128))]));
612
612
  }
613
- }), Ge = /* @__PURE__ */ x(Pe, [["__scopeId", "data-v-fafcc3ad"]]), Je = {
613
+ }), Ge = /* @__PURE__ */ x(Pe, [["__scopeId", "data-v-75a2d8f6"]]), Je = {
614
614
  class: "tabs"
615
615
  }, Qe = /* @__PURE__ */ T({
616
616
  __name: "MessageTabs",
@@ -1075,7 +1075,7 @@ const pe = /* @__PURE__ */ T({
1075
1075
  _: 1
1076
1076
  }, 8, ["visible"]));
1077
1077
  }
1078
- }), rt = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-24962020"]]), ut = /* @__PURE__ */ T({
1078
+ }), rt = /* @__PURE__ */ x(lt, [["__scopeId", "data-v-2cd1a92a"]]), ut = /* @__PURE__ */ T({
1079
1079
  __name: "MessageHandle",
1080
1080
  setup(s, {
1081
1081
  expose: l
@@ -1,9 +1,9 @@
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";
1
+ import { defineComponent as f, ref as p, openBlock as t, createElementBlock as l, normalizeClass as K, createBlock as d, unref as S, createCommentVNode as m, createElementVNode as _, 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 { o as $ } from "./apiClients-DACL0EIt.js";
5
- import { D as x } from "./MessageHandle-DTzrBuMx.js";
6
- const E = /* @__PURE__ */ v({
4
+ import { o as $ } from "./apiClients-DJchWBAG.js";
5
+ import { D as x } from "./MessageHandle-Dkpc4axC.js";
6
+ const E = /* @__PURE__ */ f({
7
7
  __name: "MessageMenuItem",
8
8
  props: {
9
9
  hidden: {
@@ -49,7 +49,7 @@ const E = /* @__PURE__ */ v({
49
49
  icon: n.icon
50
50
  }, null, 8, ["icon"])) : m("", !0), _("span", null, A(n.name), 1)], 34));
51
51
  }
52
- }), B = /* @__PURE__ */ I(E, [["__scopeId", "data-v-9eaa7e6a"]]), F = {
52
+ }), B = /* @__PURE__ */ I(E, [["__scopeId", "data-v-f0855e00"]]), F = {
53
53
  class: "Menu"
54
54
  }, H = {
55
55
  class: "TitleContent"
@@ -57,7 +57,7 @@ const E = /* @__PURE__ */ v({
57
57
  class: "Title"
58
58
  }, O = {
59
59
  class: "MenuItem2"
60
- }, T = /* @__PURE__ */ v({
60
+ }, T = /* @__PURE__ */ f({
61
61
  __name: "MessageMenu",
62
62
  props: {
63
63
  menus: {
@@ -77,10 +77,10 @@ const E = /* @__PURE__ */ v({
77
77
  function i(r, a) {
78
78
  console.log(r, "itemitemitemitem"), c("change", r, a);
79
79
  }
80
- return (r, a) => (t(), l("div", F, [(t(!0), l(h, null, N(o.menus, (e, f) => {
80
+ return (r, a) => (t(), l("div", F, [(t(!0), l(h, null, N(o.menus, (e, v) => {
81
81
  var y, g, k;
82
82
  return t(), l("div", {
83
- key: f
83
+ key: v
84
84
  }, [e.children && e.children.length !== 0 ? (t(), l(h, {
85
85
  key: 0
86
86
  }, [_("span", H, [(y = e == null ? void 0 : e.meta) != null && y.icon ? (t(), d(S(D), {
@@ -105,11 +105,11 @@ const E = /* @__PURE__ */ v({
105
105
  icon: (k = e.meta) == null ? void 0 : k.icon,
106
106
  name: e.name,
107
107
  active: o.selectedKeys.includes(e.path),
108
- onClick: (s) => i(e, f)
108
+ onClick: (s) => i(e, v)
109
109
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
110
110
  }), 128))]));
111
111
  }
112
- }), J = /* @__PURE__ */ I(T, [["__scopeId", "data-v-660c1eb8"]]), P = /* @__PURE__ */ v({
112
+ }), J = /* @__PURE__ */ I(T, [["__scopeId", "data-v-69fdb7e1"]]), P = /* @__PURE__ */ f({
113
113
  __name: "MessageNoticeNotificationsDetails",
114
114
  props: {
115
115
  id: {
@@ -5,11 +5,11 @@
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
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-DACL0EIt.js";
11
- import { u as dt } from "./useAuthkitCreateAndUpdate-CrSEPNA3.js";
12
- import { C as B } from "./CustomTable-BCOwLyRJ.js";
8
+ import { defineComponent as tt, ref as c, openBlock as l, createBlock as C, unref as u, isRef as et, withCtx as s, createElementVNode as n, createElementBlock as d, toDisplayString as o, createVNode as r, createTextVNode as p, createCommentVNode as L, Fragment as at, renderList as nt } from "vue";
9
+ import { Modal as it, Tag as P, Button as I, Popconfirm as st, Tabs as ot, TabPane as w, Spin as lt, Empty as ut, Progress as rt } from "@arco-design/web-vue";
10
+ import { f as g } from "./apiClients-DJchWBAG.js";
11
+ import { u as dt } from "./useAuthkitCreateAndUpdate-CPkogY7K.js";
12
+ import { C as q } from "./CustomTable-CVZ4mFzi.js";
13
13
  import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const pt = {
15
15
  class: "content"
@@ -22,9 +22,9 @@ const pt = {
22
22
  class: "subscription-info"
23
23
  }, ft = {
24
24
  class: "subscription-actions"
25
- }, _t = {
26
- class: "subscription-details"
27
25
  }, bt = {
26
+ class: "subscription-details"
27
+ }, _t = {
28
28
  class: "detail-item"
29
29
  }, yt = {
30
30
  class: "detail-item"
@@ -39,7 +39,7 @@ const pt = {
39
39
  class: "detail-item warning"
40
40
  }, xt = {
41
41
  key: 1,
42
- class: "no-subscription"
42
+ class: "no-subscription-row"
43
43
  }, Ct = {
44
44
  key: 0,
45
45
  class: "quotas-loading"
@@ -66,15 +66,15 @@ const pt = {
66
66
  }, Lt = {
67
67
  key: 2,
68
68
  class: "reset-time"
69
- }, qt = /* @__PURE__ */ et({
69
+ }, qt = /* @__PURE__ */ tt({
70
70
  __name: "PaySubscriptions",
71
71
  emits: ["confirm", "cancel"],
72
72
  setup(Bt, {
73
- expose: F,
74
- emit: V
73
+ expose: B,
74
+ emit: F
75
75
  }) {
76
- const A = V, {
77
- changeType: U,
76
+ const A = F, {
77
+ changeType: V,
78
78
  show: f
79
79
  } = dt(A), z = c("subscriptions"), i = c(null), N = c([]), y = c(!1), v = c({
80
80
  current: 1,
@@ -84,7 +84,7 @@ const pt = {
84
84
  current: 1,
85
85
  pageSize: 10,
86
86
  total: 0
87
- }), b = c([]), k = c(!1), D = [{
87
+ }), _ = c([]), k = c(!1), U = [{
88
88
  dataIndex: "productName",
89
89
  title: "产品",
90
90
  minWidth: 120
@@ -115,7 +115,7 @@ const pt = {
115
115
  dataIndex: "createAt",
116
116
  title: "创建时间",
117
117
  minWidth: 160
118
- }], K = [{
118
+ }], D = [{
119
119
  dataIndex: "productName",
120
120
  title: "产品",
121
121
  minWidth: 120
@@ -163,7 +163,7 @@ const pt = {
163
163
  paused: "已暂停"
164
164
  }[t] || t;
165
165
  }
166
- function R(t) {
166
+ function K(t) {
167
167
  return {
168
168
  draft: "gray",
169
169
  open: "orange",
@@ -172,7 +172,7 @@ const pt = {
172
172
  uncollectible: "red"
173
173
  }[t] || "gray";
174
174
  }
175
- function M(t) {
175
+ function R(t) {
176
176
  return {
177
177
  draft: "草稿",
178
178
  open: "待支付",
@@ -181,7 +181,7 @@ const pt = {
181
181
  uncollectible: "无法收款"
182
182
  }[t] || t;
183
183
  }
184
- function O(t) {
184
+ function M(t) {
185
185
  return {
186
186
  day: "每天",
187
187
  week: "每周",
@@ -190,10 +190,10 @@ const pt = {
190
190
  lifetime: "永久"
191
191
  }[t] || t;
192
192
  }
193
- function Q() {
193
+ function O() {
194
194
  f.value = !1, A("cancel");
195
195
  }
196
- function $() {
196
+ function Q() {
197
197
  window.open("/Pricing", "_blank");
198
198
  }
199
199
  async function S() {
@@ -202,7 +202,7 @@ const pt = {
202
202
  } = await g.subscriptions.current.post({});
203
203
  i.value = t;
204
204
  }
205
- async function _() {
205
+ async function b() {
206
206
  y.value = !0;
207
207
  const {
208
208
  data: t
@@ -222,14 +222,14 @@ const pt = {
222
222
  });
223
223
  h.value = !1, t && (W.value = t.items, m.value.total = t.count);
224
224
  }
225
- async function j() {
225
+ async function $() {
226
226
  k.value = !0;
227
227
  const {
228
228
  data: t
229
229
  } = await g.quotas.my.post({});
230
- k.value = !1, t && t.hasSubscription ? b.value = t.quotas : b.value = [];
230
+ k.value = !1, t && t.hasSubscription ? _.value = t.quotas : _.value = [];
231
231
  }
232
- async function G() {
232
+ async function j() {
233
233
  if (!i.value) return;
234
234
  const {
235
235
  error: t
@@ -237,64 +237,64 @@ const pt = {
237
237
  subscriptionId: i.value.id,
238
238
  cancelAtPeriodEnd: !0
239
239
  });
240
- t || (await S(), await _());
240
+ t || (await S(), await b());
241
241
  }
242
- async function H() {
242
+ async function G() {
243
243
  if (!i.value) return;
244
244
  const {
245
245
  error: t
246
246
  } = await g.subscriptions.resume.post({
247
247
  subscriptionId: i.value.id
248
248
  });
249
- t || (await S(), await _());
249
+ t || (await S(), await b());
250
+ }
251
+ function H(t) {
252
+ v.value.current = t, b();
250
253
  }
251
254
  function J(t) {
252
- v.value.current = t, _();
255
+ v.value.pageSize = t, v.value.current = 1, b();
253
256
  }
254
257
  function X(t) {
255
- v.value.pageSize = t, v.value.current = 1, _();
256
- }
257
- function Y(t) {
258
258
  m.value.current = t, x();
259
259
  }
260
- function Z(t) {
260
+ function Y(t) {
261
261
  m.value.pageSize = t, m.value.current = 1, x();
262
262
  }
263
- function tt(t, e) {
264
- f.value = e, U.value = "编辑", e && (S(), _(), x(), j());
263
+ function Z(t, e) {
264
+ f.value = e, V.value = "编辑", e && (S(), b(), x(), $());
265
265
  }
266
- return F({
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),
266
+ return B({
267
+ setData: Z
268
+ }), (t, e) => (l(), C(u(it), {
269
+ visible: u(f),
270
+ "onUpdate:visible": e[1] || (e[1] = (a) => et(f) ? f.value = a : null),
271
271
  loading: !1,
272
272
  "body-class": "SubscriptionsbodyClass",
273
273
  "mask-closable": !1,
274
274
  footer: !1,
275
275
  width: "90%",
276
- onCancel: Q
276
+ onCancel: O
277
277
  }, {
278
278
  title: s(() => [...e[2] || (e[2] = [p(" 订阅管理 ", -1)])]),
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), {
279
+ default: s(() => [n("div", pt, [i.value ? (l(), d("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, o(i.value.productName), 1), r(u(P), {
280
280
  color: E(i.value.status)
281
281
  }, {
282
- default: s(() => [p(l(T(i.value.status)), 1)]),
282
+ default: s(() => [p(o(T(i.value.status)), 1)]),
283
283
  _: 1
284
- }, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (u(), C(o(I), {
284
+ }, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (l(), C(u(I), {
285
285
  key: 0,
286
286
  type: "primary",
287
287
  size: "small",
288
- onClick: H
288
+ onClick: G
289
289
  }, {
290
290
  default: s(() => [...e[3] || (e[3] = [p(" 恢复订阅 ", -1)])]),
291
291
  _: 1
292
- })) : (u(), C(o(ot), {
292
+ })) : (l(), C(u(st), {
293
293
  key: 1,
294
294
  content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
295
- onOk: G
295
+ onOk: j
296
296
  }, {
297
- default: s(() => [r(o(I), {
297
+ default: s(() => [r(u(I), {
298
298
  type: "outline",
299
299
  size: "small",
300
300
  status: "warning"
@@ -303,100 +303,98 @@ const pt = {
303
303
  _: 1
304
304
  })]),
305
305
  _: 1
306
- }))])]), n("div", _t, [n("div", bt, [e[5] || (e[5] = n("span", {
306
+ }))])]), n("div", bt, [n("div", _t, [e[5] || (e[5] = n("span", {
307
307
  class: "label"
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", {
308
+ }, "计费周期:", -1)), n("span", null, o(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div", yt, [e[6] || (e[6] = n("span", {
309
309
  class: "label"
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", {
310
+ }, "价格:", -1)), n("span", null, "¥" + o(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + o(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (l(), d("div", ht, [e[7] || (e[7] = n("span", {
311
311
  class: "label"
312
- }, "试用结束:", -1)), n("span", null, l(i.value.trialEnd), 1)])) : (u(), d("div", kt, [e[8] || (e[8] = n("span", {
312
+ }, "试用结束:", -1)), n("span", null, o(i.value.trialEnd), 1)])) : (l(), d("div", kt, [e[8] || (e[8] = n("span", {
313
313
  class: "label"
314
- }, "当前周期结束:", -1)), n("span", null, l(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (u(), d("div", St, [...e[9] || (e[9] = [n("span", {
314
+ }, "当前周期结束:", -1)), n("span", null, o(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (l(), d("div", St, [...e[9] || (e[9] = [n("span", {
315
315
  class: "label"
316
- }, "订阅将于周期结束后停止", -1)])])) : L("", !0)])])) : (u(), d("div", xt, [r(o(q), {
317
- description: "暂无订阅"
316
+ }, "订阅将于周期结束后停止", -1)])])) : L("", !0)])])) : (l(), d("div", xt, [e[11] || (e[11] = n("span", {
317
+ class: "no-subscription-text"
318
+ }, "暂无订阅", -1)), r(u(I), {
319
+ type: "primary",
320
+ size: "small",
321
+ onClick: Q
318
322
  }, {
319
- default: s(() => [r(o(I), {
320
- type: "primary",
321
- onClick: $
322
- }, {
323
- default: s(() => [...e[10] || (e[10] = [p("查看价格方案", -1)])]),
324
- _: 1
325
- })]),
323
+ default: s(() => [...e[10] || (e[10] = [p("查看价格方案", -1)])]),
326
324
  _: 1
327
- })])), r(o(lt), {
325
+ })])), r(u(ot), {
328
326
  "active-key": z.value,
329
327
  "onUpdate:activeKey": e[0] || (e[0] = (a) => z.value = a),
330
328
  class: "subscription-tabs"
331
329
  }, {
332
- default: s(() => [r(o(w), {
330
+ default: s(() => [r(u(w), {
333
331
  key: "subscriptions",
334
332
  title: "订阅历史"
335
333
  }, {
336
- default: s(() => [r(B, {
337
- columns: D,
334
+ default: s(() => [r(q, {
335
+ columns: U,
338
336
  data: N.value,
339
337
  loading: y.value,
340
338
  pagination: v.value,
341
- onPageChange: J,
342
- onPageSizeChange: X
339
+ onPageChange: H,
340
+ onPageSizeChange: J
343
341
  }, {
344
342
  status: s(({
345
343
  record: a
346
- }) => [r(o(P), {
344
+ }) => [r(u(P), {
347
345
  color: E(a.status)
348
346
  }, {
349
- default: s(() => [p(l(T(a.status)), 1)]),
347
+ default: s(() => [p(o(T(a.status)), 1)]),
350
348
  _: 2
351
349
  }, 1032, ["color"])]),
352
350
  interval: s(({
353
351
  record: a
354
- }) => [p(l(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
352
+ }) => [p(o(a.interval === "month" ? "按月" : a.interval === "year" ? "按年" : a.interval || "-"), 1)]),
355
353
  unitAmount: s(({
356
354
  record: a
357
- }) => [p(l(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
355
+ }) => [p(o(a.unitAmount ? `¥${(a.unitAmount / 100).toFixed(2)}` : "-"), 1)]),
358
356
  _: 1
359
357
  }, 8, ["data", "loading", "pagination"])]),
360
358
  _: 1
361
- }), r(o(w), {
359
+ }), r(u(w), {
362
360
  key: "invoices",
363
361
  title: "账单记录"
364
362
  }, {
365
- default: s(() => [r(B, {
366
- columns: K,
363
+ default: s(() => [r(q, {
364
+ columns: D,
367
365
  data: W.value,
368
366
  loading: h.value,
369
367
  pagination: m.value,
370
- onPageChange: Y,
371
- onPageSizeChange: Z
368
+ onPageChange: X,
369
+ onPageSizeChange: Y
372
370
  }, {
373
371
  status: s(({
374
372
  record: a
375
- }) => [r(o(P), {
376
- color: R(a.status)
373
+ }) => [r(u(P), {
374
+ color: K(a.status)
377
375
  }, {
378
- default: s(() => [p(l(M(a.status)), 1)]),
376
+ default: s(() => [p(o(R(a.status)), 1)]),
379
377
  _: 2
380
378
  }, 1032, ["color"])]),
381
379
  total: s(({
382
380
  record: a
383
- }) => [p(" ¥" + l((a.total / 100).toFixed(2)), 1)]),
381
+ }) => [p(" ¥" + o((a.total / 100).toFixed(2)), 1)]),
384
382
  _: 1
385
383
  }, 8, ["data", "loading", "pagination"])]),
386
384
  _: 1
387
- }), r(o(w), {
385
+ }), r(u(w), {
388
386
  key: "quotas",
389
387
  title: "配额使用"
390
388
  }, {
391
- default: s(() => [k.value ? (u(), d("div", Ct, [r(o(ut))])) : b.value.length === 0 ? (u(), d("div", Pt, [r(o(q), {
389
+ default: s(() => [k.value ? (l(), d("div", Ct, [r(u(lt))])) : _.value.length === 0 ? (l(), d("div", Pt, [r(u(ut), {
392
390
  description: "暂无配额限制"
393
- })])) : (u(), d("div", It, [(u(!0), d(nt, null, it(b.value, (a) => (u(), d("div", {
391
+ })])) : (l(), d("div", It, [(l(!0), d(at, null, nt(_.value, (a) => (l(), d("div", {
394
392
  key: a.featureKey,
395
393
  class: "quota-card"
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), {
394
+ }, [n("div", wt, [n("span", At, o(a.name), 1), n("span", zt, o(M(a.period)), 1)]), n("div", Nt, [r(u(rt), {
397
395
  percent: a.percentage,
398
396
  status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
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))]))]),
397
+ }, null, 8, ["percent", "status"])]), n("div", Wt, [a.unlimited ? (l(), d("span", Et, "无限制")) : (l(), d("span", Tt, "已使用 " + o(a.used) + " / " + o(a.limit), 1)), a.resetsAt ? (l(), d("span", Lt, o(a.resetsAt) + " 重置", 1)) : L("", !0)])]))), 128))]))]),
400
398
  _: 1
401
399
  })]),
402
400
  _: 1
@@ -404,7 +402,7 @@ const pt = {
404
402
  _: 1
405
403
  }, 8, ["visible"]));
406
404
  }
407
- }), Jt = /* @__PURE__ */ ct(qt, [["__scopeId", "data-v-41a879d8"]]);
405
+ }), Jt = /* @__PURE__ */ ct(qt, [["__scopeId", "data-v-2a69da54"]]);
408
406
  export {
409
407
  Jt as S
410
408
  };