@huyooo/ui 0.13.6 → 0.13.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 (54) hide show
  1. package/dist/{AuthkitAppSetting-EL2ZvAVT.js → AuthkitAppSetting-Xe-QQSQ4.js} +405 -408
  2. package/dist/{AuthkitGithubBinding-Ba9sbNEh.js → AuthkitGithubBinding-CK6ijijV.js} +330 -331
  3. package/dist/{Clipboard-CdJtMvg6.js → Clipboard-C8ncjaAJ.js} +1 -1
  4. package/dist/{Contact-Z2VFVeKK.js → Contact-mb7deQOs.js} +2 -2
  5. package/dist/CustomTable-BT-cnhLR.js +280 -0
  6. package/dist/{FeedbackItem-B_MDdk4s.js → FeedbackItem-C9FQThXG.js} +3 -3
  7. package/dist/{FeedbackModal-qrcBDDQM.js → FeedbackModal-R3NKRxr7.js} +3 -3
  8. package/dist/{MessageHandle-Y96z-IXv.js → MessageHandle-CVueKPFG.js} +2 -2
  9. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +2 -2
  10. package/dist/{PaySubscriptions-C75OtmYw.js → PaySubscriptions-BkZaeTgv.js} +5 -5
  11. package/dist/{PricingPlans-DCYIVuuT.js → PricingPlans-B-GWpft_.js} +4 -4
  12. package/dist/{ReferrerReferees-8eSsuPfa.js → ReferrerReferees-DFCwvXJ6.js} +5 -5
  13. package/dist/{Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js → Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js} +1 -1
  14. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +33 -34
  15. package/dist/WidthContainer-jOX17pDu.js +691 -0
  16. package/dist/api/billingSubscriptionApi.d.ts +3 -0
  17. package/dist/{apiClients-D56ALwwO.js → apiClients-CkI47p36.js} +11 -7
  18. package/dist/authkit.js +9 -9
  19. package/dist/common.js +2 -2
  20. package/dist/composables/Authkit/resolveRoutePermission.d.ts +4 -0
  21. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +1 -1
  23. package/dist/composables/useMessageList.d.ts +2 -2
  24. package/dist/composables.js +13 -13
  25. package/dist/feedback.js +3 -3
  26. package/dist/main.js +32 -32
  27. package/dist/message.js +3 -3
  28. package/dist/pay.js +4 -4
  29. package/dist/privateCom.js +1 -1
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/api/ai.generated.d.ts +3248 -335
  33. package/dist/types/api/billing.generated.d.ts +2162 -500
  34. package/dist/upload.js +2 -2
  35. package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
  36. package/dist/{useAuthkitAuth-B8aO6aMa.js → useAuthkitAuth-C--qS6UE.js} +1 -1
  37. package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
  38. package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
  39. package/dist/useBillingStatusOptions-D5Ehwtbj.js +145 -0
  40. package/dist/{useDownloads-DqF1USJ7.js → useDownloads-BC0QyEFr.js} +10 -10
  41. package/dist/{useEnsureAuthenticated-D99GiwEk.js → useEnsureAuthenticated-C4tsSfv6.js} +2 -2
  42. package/dist/{useLegalLinks-DRTOYp3n.js → useLegalLinks-DeXLE-yv.js} +2 -2
  43. package/dist/{useMessageNotifications-CUpk6zCE.js → useMessageNotifications-BMUx5xfX.js} +1 -1
  44. package/dist/{useSEO-CUKPmGRx.js → useSEO-BWAREYk4.js} +238 -227
  45. package/dist/{useSubscriptionCheckout-CAgy1CFj.js → useSubscriptionCheckout-CHAF20s-.js} +102 -108
  46. package/dist/{useTableHandle-CCKjahT0.js → useTableHandle-9alnSWt0.js} +1 -1
  47. package/dist/{useUploadCos-Bxctd4E6.js → useUploadCos-DGPnLOC9.js} +1 -1
  48. package/dist/user.js +1 -1
  49. package/package.json +3 -2
  50. package/dist/CustomTable-BBcd4nNL.js +0 -278
  51. package/dist/WidthContainer-Dqf_-qGk.js +0 -694
  52. package/dist/useAuthkitCreateAndUpdate-DkiLs143.js +0 -25
  53. package/dist/useAuthkitUsersProfile-CWAr0CNv.js +0 -36
  54. package/dist/useBillingStatusOptions-CottFcAr.js +0 -127
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-D56ALwwO.js";
2
+ import "./apiClients-CkI47p36.js";
3
3
  import { defineComponent as X, ref as J, openBlock as K, createBlock as Q, unref as W } from "vue";
4
4
  import { Message as Z } from "@arco-design/web-vue";
5
5
  import { Icon as $ } from "@iconify/vue";
@@ -2,8 +2,8 @@ import { defineComponent as P, ref as q, openBlock as Q, createElementBlock as t
2
2
  import { e as n, d as y, g as G, f as R, L as Z, c as h, j as b, k as J, i as S, a as O, b as d } from "./LandingPageLinkGroup-DDNRivMt.js";
3
3
  import { L as Y } from "./LandingPageSectionHeader-D_74W4My.js";
4
4
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { u as M } from "./useAuthkitAppsAuthPageInfo-RMs8sOwk.js";
6
- import { g as L } from "./apiClients-D56ALwwO.js";
5
+ import { u as M } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
6
+ import { g as L } from "./apiClients-CkI47p36.js";
7
7
  import { c as x } from "./index-D56hUMeD.js";
8
8
  const j = {
9
9
  class: "Footer"
@@ -0,0 +1,280 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ import "./index-D3Kp6R4z.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ import { defineComponent as O, ref as V, computed as k, onMounted as Z, nextTick as q, watch as I, onBeforeUnmount as ee, openBlock as o, createElementBlock as d, normalizeStyle as x, normalizeClass as C, renderSlot as R, useModel as A, createVNode as z, unref as c, withCtx as S, createElementVNode as g, createBlock as K, createCommentVNode as m, Fragment as w, renderList as W, toDisplayString as E, createTextVNode as te, mergeModels as L, useSlots as ne } from "vue";
9
+ import { Spin as ie, Checkbox as P, Tooltip as le, Empty as ae, Pagination as oe } from "@arco-design/web-vue";
10
+ import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { g as N, a as B } from "./index-D56hUMeD.js";
12
+ const se = /* @__PURE__ */ O({
13
+ __name: "Ellipsis",
14
+ props: {
15
+ open: {
16
+ type: Boolean,
17
+ required: !1,
18
+ default: () => !0
19
+ }
20
+ },
21
+ setup(v) {
22
+ const y = v, t = V(null), h = V(0), u = k(() => {
23
+ var _, b;
24
+ if (!y.open || h.value === 0)
25
+ return {};
26
+ const r = (b = (_ = t.value) == null ? void 0 : _.parentElement) == null ? void 0 : b.style.width;
27
+ return r && r !== "auto" ? {
28
+ width: r
29
+ } : {
30
+ width: `${h.value}px`
31
+ };
32
+ });
33
+ function f() {
34
+ t.value && y.open && q(() => {
35
+ t.value && (h.value = t.value.clientWidth);
36
+ });
37
+ }
38
+ function p() {
39
+ f();
40
+ }
41
+ return Z(() => {
42
+ y.open && q(() => {
43
+ f(), window.addEventListener("resize", p);
44
+ });
45
+ }), I(() => y.open, (r) => {
46
+ r ? (f(), window.addEventListener("resize", p)) : window.removeEventListener("resize", p);
47
+ }), ee(() => {
48
+ window.removeEventListener("resize", p);
49
+ }), (r, _) => (o(), d("div", {
50
+ ref_key: "ellipsisContainer",
51
+ ref: t,
52
+ class: C({
53
+ ellipsis: v.open
54
+ }),
55
+ style: x(v.open ? u.value : {})
56
+ }, [R(r.$slots, "default", {}, void 0, !0)], 6));
57
+ }
58
+ }), re = /* @__PURE__ */ j(se, [["__scopeId", "data-v-4874d041"]]), de = {
59
+ class: "CubeTableCom"
60
+ }, ue = {
61
+ class: "tableContain"
62
+ }, ce = {
63
+ class: "table-header"
64
+ }, pe = {
65
+ key: 0,
66
+ class: "header-cell checkbox-cell"
67
+ }, fe = {
68
+ class: "table-body"
69
+ }, he = ["onMouseenter", "onMouseleave"], ve = {
70
+ key: 0,
71
+ class: "contain"
72
+ }, ge = {
73
+ class: "pagination"
74
+ }, ye = /* @__PURE__ */ O({
75
+ __name: "CustomTable",
76
+ props: /* @__PURE__ */ L({
77
+ loading: {
78
+ type: Boolean,
79
+ required: !1,
80
+ default: () => !1
81
+ },
82
+ bordered: {
83
+ type: Boolean,
84
+ required: !1,
85
+ default: () => !0
86
+ },
87
+ data: {
88
+ type: Array,
89
+ required: !0
90
+ },
91
+ pagination: {
92
+ type: Object,
93
+ required: !1,
94
+ default: () => null
95
+ },
96
+ columns: {
97
+ type: Array,
98
+ required: !0
99
+ },
100
+ /** 行选择配置 */
101
+ rowSelection: {
102
+ type: Object,
103
+ required: !1,
104
+ default: void 0
105
+ },
106
+ /** 行数据的唯一标识字段,默认 'id' */
107
+ rowKey: {
108
+ type: String,
109
+ required: !1,
110
+ default: "id"
111
+ }
112
+ }, {
113
+ selectedKeys: {
114
+ default: () => []
115
+ },
116
+ selectedKeysModifiers: {},
117
+ activeKey: {
118
+ default: -1
119
+ },
120
+ activeKeyModifiers: {}
121
+ }),
122
+ emits: /* @__PURE__ */ L(["mouseenter", "mouseleave", "pageChange", "pageSizeChange"], ["update:selectedKeys", "update:activeKey"]),
123
+ setup(v, {
124
+ emit: y
125
+ }) {
126
+ const t = v, h = y, u = A(v, "selectedKeys"), f = A(v, "activeKey");
127
+ function p(e, i) {
128
+ return e[t.rowKey] ?? String(i);
129
+ }
130
+ function r(e, i) {
131
+ const s = p(e, i);
132
+ return u.value.includes(s);
133
+ }
134
+ const _ = k(() => t.data.length === 0 ? !1 : t.data.every((e, i) => r(e, i))), b = k(() => {
135
+ if (t.data.length === 0) return !1;
136
+ const e = t.data.filter((i, s) => r(i, s)).length;
137
+ return e > 0 && e < t.data.length;
138
+ });
139
+ function H(e, i, s) {
140
+ const n = p(e, i);
141
+ s ? u.value.includes(n) || (u.value = [...u.value, n]) : u.value = u.value.filter((l) => l !== n);
142
+ }
143
+ function J(e) {
144
+ if (Array.isArray(e) ? e.length > 0 : e) {
145
+ const s = t.data.map((l, a) => p(l, a)), n = /* @__PURE__ */ new Set([...u.value, ...s]);
146
+ u.value = Array.from(n);
147
+ } else {
148
+ const s = new Set(t.data.map((n, l) => p(n, l)));
149
+ u.value = u.value.filter((n) => !s.has(n));
150
+ }
151
+ }
152
+ const U = k(() => {
153
+ const e = t.columns.map((i) => i.width ? `${i.width}px` : i.minWidth ? `minmax(${i.minWidth}px, 1fr)` : "minmax(120px, 1fr)");
154
+ return t.rowSelection && e.unshift("48px"), e.join(" ");
155
+ }), D = k(() => `${t.columns.reduce((i, s) => {
156
+ const n = Number(s.width || s.minWidth || 120);
157
+ return i + n;
158
+ }, t.rowSelection ? 48 : 0)}px`);
159
+ function M(e) {
160
+ const i = {};
161
+ return e.maxWidth && (i.maxWidth = `${e.maxWidth}px`), i;
162
+ }
163
+ function F(e) {
164
+ h("pageChange", e);
165
+ }
166
+ function G(e) {
167
+ h("pageSizeChange", e);
168
+ }
169
+ function Q(e) {
170
+ const i = ne();
171
+ return e ? !!i[e] : !1;
172
+ }
173
+ function T(e) {
174
+ return typeof e.cellClassName != "string" ? !1 : e.cellClassName.split(/\s+/).includes("catalog-cell-wrap");
175
+ }
176
+ function X(e) {
177
+ f.value = e, h("mouseenter", e);
178
+ }
179
+ function Y(e) {
180
+ f.value = -1, h("mouseleave", e);
181
+ }
182
+ return (e, i) => (o(), d("div", de, [z(c(ie), {
183
+ loading: t.loading,
184
+ tip: "数据加载中"
185
+ }, {
186
+ default: S(() => {
187
+ var s;
188
+ return [g("div", ue, [g("div", {
189
+ class: "flex-table",
190
+ style: x({
191
+ "grid-template-columns": U.value,
192
+ "min-width": D.value
193
+ })
194
+ }, [g("div", ce, [t.rowSelection ? (o(), d("div", pe, [t.rowSelection.showCheckedAll !== !1 ? (o(), K(c(P), {
195
+ key: 0,
196
+ "model-value": _.value,
197
+ indeterminate: b.value,
198
+ onChange: J
199
+ }, null, 8, ["model-value", "indeterminate"])) : m("", !0)])) : m("", !0), (o(!0), d(w, null, W(t.columns, (n, l) => (o(), d("div", {
200
+ key: l,
201
+ class: C(["header-cell", {
202
+ fixed: n.fixed,
203
+ fixedBackground: n.fixed,
204
+ lastBorder: l === t.columns.length - 1
205
+ }]),
206
+ style: x(M(n))
207
+ }, E(n.title), 7))), 128))]), g("div", fe, [(o(!0), d(w, null, W(t.data, (n, l) => (o(), d("div", {
208
+ key: p(n, l),
209
+ class: C(["table-row", {
210
+ trListHover: l === f.value,
211
+ "row-selected": r(n, l)
212
+ }]),
213
+ onMouseenter: (a) => X(l),
214
+ onMouseleave: (a) => Y(l)
215
+ }, [t.rowSelection ? (o(), d("div", {
216
+ key: 0,
217
+ class: C(["body-cell checkbox-cell", {
218
+ trListHover: l === f.value,
219
+ "row-selected": r(n, l)
220
+ }])
221
+ }, [z(c(P), {
222
+ "model-value": r(n, l),
223
+ onChange: (a) => H(n, l, a)
224
+ }, null, 8, ["model-value", "onChange"])], 2)) : m("", !0), (o(!0), d(w, null, W(t.columns, (a, $) => (o(), d("div", {
225
+ key: $,
226
+ class: C(["body-cell", {
227
+ [a.cellClassName]: typeof a.cellClassName == "string",
228
+ fixed: a.fixed,
229
+ trListHover: l === f.value,
230
+ "row-selected": r(n, l),
231
+ lastBorder: $ === t.columns.length - 1
232
+ }]),
233
+ style: x(M(a))
234
+ }, [g("div", {
235
+ class: C(["body-cell-inner", {
236
+ "body-cell-inner--wrap": T(a)
237
+ }])
238
+ }, [z(re, {
239
+ open: !!a.ellipsis && !T(a)
240
+ }, {
241
+ default: S(() => [Q(a.slotName) ? R(e.$slots, a.slotName, {
242
+ key: 0,
243
+ record: n
244
+ }, void 0, !0) : (o(), d(w, {
245
+ key: 1
246
+ }, [a.dataIndex ? (o(), d(w, {
247
+ key: 0
248
+ }, [a.tooltip ? (o(), K(c(le), {
249
+ key: 0,
250
+ content: c(N)(c(B)(n, a.dataIndex)),
251
+ position: "bottom"
252
+ }, {
253
+ default: S(() => [g("span", null, E(c(N)(c(B)(n, a.dataIndex))), 1)]),
254
+ _: 2
255
+ }, 1032, ["content"])) : (o(), d(w, {
256
+ key: 1
257
+ }, [te(E(c(N)(c(B)(n, a.dataIndex))), 1)], 64))], 64)) : m("", !0)], 64))]),
258
+ _: 2
259
+ }, 1032, ["open"])], 2)], 6))), 128))], 42, he))), 128))])], 4), t.data.length === 0 ? (o(), d("div", ve, [z(c(ae))])) : m("", !0)]), g("div", ge, [t.pagination ? (o(), K(c(oe), {
260
+ key: 0,
261
+ modelValue: t.pagination.current,
262
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => t.pagination.current = n),
263
+ total: ((s = t.pagination) == null ? void 0 : s.total) || 0,
264
+ pageSize: t.pagination.pageSize,
265
+ showTotal: t.pagination.showTotal ?? !0,
266
+ showJumper: t.pagination.showJumper ?? !1,
267
+ showPageSize: t.pagination.showPageSize ?? !0,
268
+ pageSizeOptions: t.pagination.pageSizeOptions ?? [10, 20, 50, 100],
269
+ onChange: F,
270
+ onPageSizeChange: G
271
+ }, null, 8, ["modelValue", "total", "pageSize", "showTotal", "showJumper", "showPageSize", "pageSizeOptions"])) : m("", !0)])];
272
+ }),
273
+ _: 3
274
+ }, 8, ["loading"])]));
275
+ }
276
+ }), Ee = /* @__PURE__ */ j(ye, [["__scopeId", "data-v-fd072185"]]);
277
+ export {
278
+ Ee as C,
279
+ re as E
280
+ };
@@ -8,9 +8,9 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { u as Z } from "./useUploadCos-Bxctd4E6.js";
12
- import { g as A } from "./apiClients-D56ALwwO.js";
13
- import "./FeedbackModal-qrcBDDQM.js";
11
+ import { u as Z } from "./useUploadCos-DGPnLOC9.js";
12
+ import { g as A } from "./apiClients-CkI47p36.js";
13
+ import "./FeedbackModal-R3NKRxr7.js";
14
14
  import { Icon as Y } from "@iconify/vue";
15
15
  const H = f({
16
16
  name: "IconDown",
@@ -8,16 +8,16 @@ import { M as Oe } from "./Menu-Cy2ZPeaz.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { o as V, g as Te } from "./apiClients-D56ALwwO.js";
11
+ import { o as V, g as Te } from "./apiClients-CkI47p36.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as je } from "./useUploadCos-Bxctd4E6.js";
15
+ import { u as je } from "./useUploadCos-DGPnLOC9.js";
16
16
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  import { M as Ae } from "./MessageList-Bo6YCfRO.js";
18
18
  import { f as j } from "./index-D56hUMeD.js";
19
19
  import { Bubble as ve, Prompts as Ne, Sender as Pe } from "ant-design-x-vue";
20
- import { C as ye } from "./Clipboard-CdJtMvg6.js";
20
+ import { C as ye } from "./Clipboard-C8ncjaAJ.js";
21
21
  import { Icon as We } from "@iconify/vue";
22
22
  import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
23
23
  const Ke = B({
@@ -5,11 +5,11 @@ import { U as ee } from "./index-D3Kp6R4z.js";
5
5
  /* empty css */
6
6
  import { M as q } from "./MessageList-Bo6YCfRO.js";
7
7
  import { Spin as te, Breadcrumb as K, BreadcrumbItem as D, Tag as U, Modal as ae } from "@arco-design/web-vue";
8
- import { o as x } from "./apiClients-D56ALwwO.js";
8
+ import { o as x } from "./apiClients-CkI47p36.js";
9
9
  import { TiptapEditor as se, TiptapTitle as ne } from "@huyooo/vue-tiptap";
10
10
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { Icon as le } from "@iconify/vue";
12
- import { u as ie } from "./useAuthkitCreateAndUpdate-DkiLs143.js";
12
+ import { u as ie } from "./useAuthkitCreateAndUpdate-u-ceTc-m.js";
13
13
  import { M as oe } from "./Menu-Cy2ZPeaz.js";
14
14
  function J(h, u = {}) {
15
15
  const {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as f, ref as p, openBlock as t, createElementBlock as i, normalizeClass as K, createBlock as d, unref as S, createCommentVNode as v, 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-D56ALwwO.js";
5
- import { D as x } from "./MessageHandle-Y96z-IXv.js";
4
+ import { o as $ } from "./apiClients-CkI47p36.js";
5
+ import { D as x } from "./MessageHandle-CVueKPFG.js";
6
6
  const b = /* @__PURE__ */ f({
7
7
  __name: "MessageMenuItem",
8
8
  props: {
@@ -6,13 +6,13 @@
6
6
  import { U as Ct } from "./index-D3Kp6R4z.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import { e as B, g as Z } from "./apiClients-D56ALwwO.js";
9
+ import { f as B, g as Z } from "./apiClients-CkI47p36.js";
10
10
  import { ref as g, computed as A, onUnmounted as Ae, defineComponent as It, openBlock as l, createElementBlock as r, Fragment as Q, createVNode as u, unref as n, isRef as xt, withCtx as s, createElementVNode as a, toDisplayString as o, createBlock as q, createTextVNode as d, createCommentVNode as T, renderList as Ne, normalizeClass as Oe } from "vue";
11
11
  import { Message as S, Modal as We, Button as k, Popconfirm as ae, Tabs as Nt, TabPane as ne, Spin as me, Empty as Te, Progress as Ot, Tag as X, Tooltip as Wt } from "@arco-design/web-vue";
12
- import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-CottFcAr.js";
13
- import { u as Et } from "./useAuthkitCreateAndUpdate-DkiLs143.js";
14
- import { C as fe } from "./CustomTable-BBcd4nNL.js";
15
- import { C as Lt } from "./Clipboard-CdJtMvg6.js";
12
+ import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-D5Ehwtbj.js";
13
+ import { u as Et } from "./useAuthkitCreateAndUpdate-u-ceTc-m.js";
14
+ import { C as fe } from "./CustomTable-BT-cnhLR.js";
15
+ import { C as Lt } from "./Clipboard-C8ncjaAJ.js";
16
16
  import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  function ze() {
18
18
  return {
@@ -1,17 +1,17 @@
1
1
  /* empty css */
2
2
  import "./index-D3Kp6R4z.js";
3
- import "./apiClients-D56ALwwO.js";
3
+ import "./apiClients-CkI47p36.js";
4
4
  /* empty css */
5
5
  import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as H, toDisplayString as r, createVNode as v, withCtx as b, createTextVNode as R, resolveDirective as me, withDirectives as fe, normalizeClass as L, Fragment as w, renderList as C, createCommentVNode as p } from "vue";
6
6
  import { Spin as ne, Button as A, Message as Z } from "@arco-design/web-vue";
7
7
  import { useRoute as pe, useRouter as ve } from "vue-router";
8
- import { b as ye } from "./PaySubscriptions-C75OtmYw.js";
8
+ import { b as ye } from "./PaySubscriptions-BkZaeTgv.js";
9
9
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { L as he, a as ke } from "./LandingPageFAQ-CZJXvor9.js";
11
11
  import { L as be } from "./LandingPageSectionHeader-D_74W4My.js";
12
12
  import { Icon as ee } from "@iconify/vue";
13
- import { u as Te, a as Ie } from "./useSubscriptionCheckout-CAgy1CFj.js";
14
- import { u as we } from "./useEnsureAuthenticated-D99GiwEk.js";
13
+ import { u as Te, a as Ie } from "./useSubscriptionCheckout-CHAF20s-.js";
14
+ import { u as we } from "./useEnsureAuthenticated-C4tsSfv6.js";
15
15
  const pt = "/Pay/Return";
16
16
  function V(a) {
17
17
  const u = typeof a.scene == "string" ? a.scene : null, l = typeof a.orderId == "string" ? a.orderId : null, c = typeof a.returnTo == "string" ? a.returnTo.trim() : null, _ = c != null && c.startsWith("/") && !c.startsWith("//") ? c : null;
@@ -3,11 +3,11 @@
3
3
  import { U as P } from "./index-D3Kp6R4z.js";
4
4
  import { defineComponent as w, ref as d, openBlock as p, createBlock as v, unref as a, withCtx as g, createElementVNode as n, toDisplayString as _, createCommentVNode as z, createVNode as A, createTextVNode as U } from "vue";
5
5
  import { Modal as D } from "@arco-design/web-vue";
6
- import { f as T } from "./apiClients-D56ALwwO.js";
7
- import { u as V } from "./useTableHandle-CCKjahT0.js";
8
- import { C as y } from "./CustomTable-BBcd4nNL.js";
9
- import { C as E } from "./Clipboard-CdJtMvg6.js";
10
- import { u as M } from "./useAuthkitUsersProfile-CWAr0CNv.js";
6
+ import { e as T } from "./apiClients-CkI47p36.js";
7
+ import { u as V } from "./useTableHandle-9alnSWt0.js";
8
+ import { C as y } from "./CustomTable-BT-cnhLR.js";
9
+ import { C as E } from "./Clipboard-C8ncjaAJ.js";
10
+ import { u as M } from "./useAuthkitUsersProfile-BC5EsA2f.js";
11
11
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const H = {
13
13
  class: "invite-code-section"
@@ -6,7 +6,7 @@
6
6
  /* empty css */
7
7
  import { defineComponent as g, openBlock as F, createBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
8
8
  import { Upload as S } from "@arco-design/web-vue";
9
- import { u as _ } from "./useUploadCos-Bxctd4E6.js";
9
+ import { u as _ } from "./useUploadCos-DGPnLOC9.js";
10
10
  const N = /* @__PURE__ */ g({
11
11
  __name: "Upload",
12
12
  props: {
@@ -3,18 +3,19 @@
3
3
  /* empty css */
4
4
  import { defineComponent as m, openBlock as r, createElementBlock as p, toDisplayString as U, createCommentVNode as k, createVNode as d, unref as s, createBlock as _, withCtx as v, createTextVNode as $, createElementVNode as l, ref as h, computed as A, onMounted as J, Fragment as F, renderSlot as C, normalizeClass as K, watch as x } from "vue";
5
5
  import { Avatar as L, Button as D, Dropdown as Q } from "@arco-design/web-vue";
6
- import { u as R } from "./useAuthkitUsersProfile-CWAr0CNv.js";
6
+ import { u as R } from "./useAuthkitUsersProfile-BC5EsA2f.js";
7
7
  import { u as y } from "./useUserMenu-ClPBlvaM.js";
8
8
  /* empty css */
9
9
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
- import { u as W, e as Z } from "./apiClients-D56ALwwO.js";
12
- import { u as ee, o as ne, P as te } from "./PaySubscriptions-C75OtmYw.js";
13
- import { C as se } from "./Clipboard-CdJtMvg6.js";
14
- import { A as ae } from "./AuthkitAppSetting-EL2ZvAVT.js";
15
- import { d as oe } from "./FeedbackModal-qrcBDDQM.js";
16
- import { M as re } from "./MessageHandle-Y96z-IXv.js";
17
- import { R as ie } from "./ReferrerReferees-8eSsuPfa.js";
11
+ import { u as W } from "./apiClients-CkI47p36.js";
12
+ import { u as Z, o as ee, P as ne } from "./PaySubscriptions-BkZaeTgv.js";
13
+ import { d as te } from "./useBillingStatusOptions-D5Ehwtbj.js";
14
+ import { C as se } from "./Clipboard-C8ncjaAJ.js";
15
+ import { A as ae } from "./AuthkitAppSetting-Xe-QQSQ4.js";
16
+ import { d as oe } from "./FeedbackModal-R3NKRxr7.js";
17
+ import { M as re } from "./MessageHandle-CVueKPFG.js";
18
+ import { R as ie } from "./ReferrerReferees-DFCwvXJ6.js";
18
19
  import { Icon as j } from "@iconify/vue";
19
20
  const le = {
20
21
  class: "UserAvatar"
@@ -205,7 +206,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
205
206
  pendingInvoice: i,
206
207
  loading: g,
207
208
  refresh: I
208
- } = ee(), S = h(0), B = A(() => a.value), P = A(() => {
209
+ } = Z(), S = h(0), B = A(() => a.value), P = A(() => {
209
210
  var f, b;
210
211
  return n.currentVersionName ? n.currentVersionName : ((f = B.value) == null ? void 0 : f.type) === "trial" ? "免费试用" : ((b = B.value) == null ? void 0 : b.productName) || "未订阅";
211
212
  }), u = A(() => {
@@ -216,22 +217,20 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
216
217
  return ((f = B.value) == null ? void 0 : f.type) === "trial" ? S.value > 0 ? "升级" : "" : ((b = B.value) == null ? void 0 : b.type) === "subscription" ? S.value > 1 ? "修改订阅" : "" : S.value > 0 ? "订阅" : "";
217
218
  }), X = A(() => n.canUpgrade && !!H.value);
218
219
  function Y() {
219
- ne();
220
+ ee();
220
221
  }
221
222
  async function q() {
222
- const {
223
- data: f
224
- } = await Z.products.listActive.post();
223
+ const f = await te.productOptions();
225
224
  S.value = Array.isArray(f) ? f.length : 0;
226
225
  }
227
226
  return J(() => {
228
227
  n.showSubscription && (I(), q());
229
228
  }), (f, b) => {
230
- var N, V, O, T, z, E;
229
+ var N, O, V, T, z, E;
231
230
  return r(), p(F, null, [d(Be, {
232
231
  "avatar-url": (N = s(o)) == null ? void 0 : N.avatarUrl,
233
- nickname: (V = s(o)) == null ? void 0 : V.nickname,
234
- email: (O = s(o)) == null ? void 0 : O.email,
232
+ nickname: (O = s(o)) == null ? void 0 : O.nickname,
233
+ email: (V = s(o)) == null ? void 0 : V.email,
235
234
  "referrer-id": (T = s(o)) == null ? void 0 : T.referrerId
236
235
  }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), e.showSubscription ? (r(), _(De, {
237
236
  key: 0,
@@ -256,7 +255,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
256
255
  class: "UserMenu__content"
257
256
  }, Ne = {
258
257
  class: "UserMenu__header"
259
- }, Ve = /* @__PURE__ */ m({
258
+ }, Oe = /* @__PURE__ */ m({
260
259
  __name: "UserMenu",
261
260
  props: {
262
261
  position: {
@@ -310,7 +309,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
310
309
  key: 0
311
310
  }));
312
311
  }
313
- }), mn = /* @__PURE__ */ M(Ve, [["__scopeId", "data-v-bbd2c44f"]]), Oe = ["disabled"], Te = {
312
+ }), fn = /* @__PURE__ */ M(Oe, [["__scopeId", "data-v-bbd2c44f"]]), Ve = ["disabled"], Te = {
314
313
  class: "UserMenuItem__label"
315
314
  }, ze = {
316
315
  key: 0,
@@ -357,9 +356,9 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
357
356
  icon: e.icon,
358
357
  width: 16,
359
358
  height: 16
360
- }, null, 8, ["icon"])) : k("", !0)], !0)])) : k("", !0)], 10, Oe));
359
+ }, null, 8, ["icon"])) : k("", !0)], !0)])) : k("", !0)], 10, Ve));
361
360
  }
362
- }), w = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-d357ac04"]]), fn = /* @__PURE__ */ m({
361
+ }), w = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-d357ac04"]]), _n = /* @__PURE__ */ m({
363
362
  __name: "UserMenuModals",
364
363
  setup(e) {
365
364
  const {
@@ -388,7 +387,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
388
387
  }), (u, H) => (r(), p(F, null, [d(ae, {
389
388
  ref_key: "appSettingRef",
390
389
  ref: g
391
- }, null, 512), d(te, {
390
+ }, null, 512), d(ne, {
392
391
  ref_key: "paySubsRef",
393
392
  ref: I
394
393
  }, null, 512), d(re, {
@@ -431,7 +430,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
431
430
  })])]);
432
431
  };
433
432
  }
434
- }), _n = /* @__PURE__ */ M(qe, [["__scopeId", "data-v-cc0eb033"]]), vn = /* @__PURE__ */ m({
433
+ }), vn = /* @__PURE__ */ M(qe, [["__scopeId", "data-v-cc0eb033"]]), gn = /* @__PURE__ */ m({
435
434
  __name: "UserMenuMessageItem",
436
435
  setup(e) {
437
436
  const {
@@ -445,7 +444,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
445
444
  _: 1
446
445
  }, 8, ["onClick"]));
447
446
  }
448
- }), gn = /* @__PURE__ */ m({
447
+ }), bn = /* @__PURE__ */ m({
449
448
  __name: "UserMenuSettingItem",
450
449
  setup(e) {
451
450
  const {
@@ -459,7 +458,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
459
458
  _: 1
460
459
  }, 8, ["onClick"]));
461
460
  }
462
- }), bn = /* @__PURE__ */ m({
461
+ }), Un = /* @__PURE__ */ m({
463
462
  __name: "UserMenuSubscriptionItem",
464
463
  setup(e) {
465
464
  const {
@@ -473,7 +472,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
473
472
  _: 1
474
473
  }));
475
474
  }
476
- }), Un = /* @__PURE__ */ m({
475
+ }), kn = /* @__PURE__ */ m({
477
476
  __name: "UserMenuFeedbackItem",
478
477
  setup(e) {
479
478
  const {
@@ -487,7 +486,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
487
486
  _: 1
488
487
  }, 8, ["onClick"]));
489
488
  }
490
- }), kn = /* @__PURE__ */ m({
489
+ }), yn = /* @__PURE__ */ m({
491
490
  __name: "UserMenuInvitationsItem",
492
491
  setup(e) {
493
492
  const {
@@ -503,19 +502,19 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
503
502
  }
504
503
  });
505
504
  export {
506
- _n as U,
507
- Un as _,
505
+ vn as U,
506
+ kn as _,
508
507
  de as a,
509
508
  Be as b,
510
- mn as c,
509
+ fn as c,
511
510
  ge as d,
512
511
  He as e,
513
- kn as f,
512
+ yn as f,
514
513
  w as g,
515
- vn as h,
516
- fn as i,
517
- gn as j,
518
- bn as k,
514
+ gn as h,
515
+ _n as i,
516
+ bn as j,
517
+ Un as k,
519
518
  me as l,
520
519
  De as m
521
520
  };