@huyooo/ui 0.11.5 → 0.11.7

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 (47) hide show
  1. package/dist/{AuthkitAppSetting-CSHkDxQT.js → AuthkitAppSetting-DrX6fwKt.js} +11 -10
  2. package/dist/{useEnsureAuthenticated-Cc64hF1O.js → AuthkitGithubBinding-r2oVuCSV.js} +631 -680
  3. package/dist/{Clipboard-CRZDADLE.js → Clipboard-ChMNfcO5.js} +1 -1
  4. package/dist/{Contact-Y0Yczmc9.js → Contact-Yqmjh47e.js} +2 -2
  5. package/dist/{FeedbackItem-D7MpOmoM.js → FeedbackItem-DHp_C0pN.js} +3 -3
  6. package/dist/{FeedbackModal-CvNF1D-5.js → FeedbackModal-Dzl0Alp7.js} +3 -3
  7. package/dist/{MessageHandle-B12koVQL.js → MessageHandle-BcRjYeVi.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DxDn6Ok8.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
  9. package/dist/{PaySubscriptions-B8jAtG5n.js → PaySubscriptions-BsU0XmXf.js} +2 -2
  10. package/dist/PricingPlans-Cf20-GqK.js +251 -0
  11. package/dist/{ReferrerReferees-D_Iiw9wZ.js → ReferrerReferees-B-ISyXHw.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CbVSY_vt.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js} +8 -8
  14. package/dist/{WidthContainer-B6d4xrGT.js → WidthContainer-CYYbzXj0.js} +20 -19
  15. package/dist/{apiClients-DVz12LeW.js → apiClients-KFp-rs-C.js} +19 -19
  16. package/dist/authkit.js +31 -29
  17. package/dist/common/globalConfig.d.ts +2 -0
  18. package/dist/common.js +1 -1
  19. package/dist/composables/Billing/useBillingPlans.d.ts +29 -1
  20. package/dist/composables.js +41 -40
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.d.ts +1 -0
  23. package/dist/main.js +674 -642
  24. package/dist/message.js +3 -3
  25. package/dist/pay.js +3 -3
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/upload.js +2 -2
  30. package/dist/{useAuthkitAppsAuthPageInfo-Du5d6VK-.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +1 -1
  31. package/dist/useAuthkitAuth-Doj5VYjK.js +170 -0
  32. package/dist/{useAuthkitCreateAndUpdate-Bc9D5C6R.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
  33. package/dist/useAuthkitUsersProfile-FJnHJad-.js +36 -0
  34. package/dist/{useDownloads-BFx1a-f9.js → useDownloads-CzC3gLUV.js} +1 -1
  35. package/dist/useEnsureAuthenticated-D78tsddF.js +56 -0
  36. package/dist/{useLegalLinks-Deksq9h-.js → useLegalLinks-OGVbqXVy.js} +2 -2
  37. package/dist/{useMessageNotifications-DY5xKtif.js → useMessageNotifications-DeHFJFcX.js} +1 -1
  38. package/dist/{useSEO-CvfzTZA9.js → useSEO-BZhVKEZr.js} +2 -2
  39. package/dist/useSubscriptionCheckout-BubIsxjO.js +386 -0
  40. package/dist/{useTableHandle-D71P3Ez_.js → useTableHandle-jw0P7-2a.js} +1 -1
  41. package/dist/{useUploadCos-N5pim6q1.js → useUploadCos-keDKcs0j.js} +1 -1
  42. package/dist/user.js +1 -1
  43. package/dist/utils/legacyApi.d.ts +18 -0
  44. package/package.json +1 -1
  45. package/dist/PricingPlans-CO26OcbJ.js +0 -210
  46. package/dist/useAuthkitUsersProfile-CQGyvL7g.js +0 -201
  47. package/dist/useSubscriptionCheckout-BgQJN61l.js +0 -345
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-DVz12LeW.js";
2
+ import "./apiClients-KFp-rs-C.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-Du5d6VK-.js";
6
- import { g as L } from "./apiClients-DVz12LeW.js";
5
+ import { u as M } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
6
+ import { g as L } from "./apiClients-KFp-rs-C.js";
7
7
  import { c as x } from "./index-D56hUMeD.js";
8
8
  const j = {
9
9
  class: "Footer"
@@ -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-N5pim6q1.js";
12
- import { g as A } from "./apiClients-DVz12LeW.js";
13
- import "./FeedbackModal-CvNF1D-5.js";
11
+ import { u as Z } from "./useUploadCos-keDKcs0j.js";
12
+ import { g as A } from "./apiClients-KFp-rs-C.js";
13
+ import "./FeedbackModal-Dzl0Alp7.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-DVz12LeW.js";
11
+ import { o as V, g as Te } from "./apiClients-KFp-rs-C.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as je } from "./useUploadCos-N5pim6q1.js";
15
+ import { u as je } from "./useUploadCos-keDKcs0j.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-CRZDADLE.js";
20
+ import { C as ye } from "./Clipboard-ChMNfcO5.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-DVz12LeW.js";
8
+ import { o as x } from "./apiClients-KFp-rs-C.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-Bc9D5C6R.js";
12
+ import { u as ie } from "./useAuthkitCreateAndUpdate-DomftQMK.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-DVz12LeW.js";
5
- import { D as x } from "./MessageHandle-B12koVQL.js";
4
+ import { o as $ } from "./apiClients-KFp-rs-C.js";
5
+ import { D as x } from "./MessageHandle-BcRjYeVi.js";
6
6
  const b = /* @__PURE__ */ f({
7
7
  __name: "MessageMenuItem",
8
8
  props: {
@@ -8,8 +8,8 @@ import { U as ft } from "./index-D3Kp6R4z.js";
8
8
  /* empty css */
9
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
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-DVz12LeW.js";
12
- import { u as xt } from "./useAuthkitCreateAndUpdate-Bc9D5C6R.js";
11
+ import { f as C } from "./apiClients-KFp-rs-C.js";
12
+ import { u as xt } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
13
13
  import { C as O } from "./CustomTable-BUkwlbzN.js";
14
14
  import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  function H() {
@@ -0,0 +1,251 @@
1
+ import { defineComponent as M, computed as C, openBlock as i, createBlock as E, withCtx as m, createVNode as P, onMounted as te, resolveDirective as ie, createElementBlock as s, withDirectives as se, unref as e, normalizeClass as f, createElementVNode as n, toDisplayString as l, Fragment as d, renderList as g, createCommentVNode as o, createTextVNode as z } from "vue";
2
+ import { L as ne, a as le } from "./LandingPageFAQ-CZJXvor9.js";
3
+ import { L as ae } from "./LandingPageSectionHeader-D_74W4My.js";
4
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ /* empty css */
6
+ import "./index-D3Kp6R4z.js";
7
+ /* empty css */
8
+ import { Spin as re, Button as G } from "@arco-design/web-vue";
9
+ import { Icon as H } from "@iconify/vue";
10
+ import { u as ce, a as oe } from "./useSubscriptionCheckout-BubIsxjO.js";
11
+ const ue = /* @__PURE__ */ M({
12
+ __name: "PricingFAQ",
13
+ props: {
14
+ title: {
15
+ default: "订阅常见问题"
16
+ },
17
+ subtitle: {
18
+ default: "关于试用、付款、配额、升级和取消订阅的说明。"
19
+ },
20
+ activeKeys: {
21
+ default: () => []
22
+ },
23
+ faqItems: {
24
+ default: void 0
25
+ }
26
+ },
27
+ setup(u) {
28
+ const p = [{
29
+ question: "可以先试用再付费吗?",
30
+ answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
31
+ }, {
32
+ question: "月付和年付有什么区别?",
33
+ answer: "月付适合短期验证和灵活使用,年付适合稳定团队和长期项目,通常会有更优惠的价格。"
34
+ }, {
35
+ question: "已有订阅后可以升级或切换方案吗?",
36
+ answer: "可以。升级或切换方案时,系统会根据当前订阅和新方案计算差额;如需补差价,会跳转到支付页面完成支付。"
37
+ }, {
38
+ question: "取消订阅后还能继续使用吗?",
39
+ answer: "可以。取消订阅后,当前计费周期内仍可继续使用,周期结束后订阅权益将停止续期。"
40
+ }, {
41
+ question: "配额什么时候重置?",
42
+ answer: "配额按订阅周期重置,不一定是自然月月初。例如您在 4 月 15 日订阅月付方案,下一次配额重置通常发生在 5 月 15 日。"
43
+ }, {
44
+ question: "不同方案的技术支持有什么区别?",
45
+ answer: "基础方案适合个人和轻量团队,包含常规支持;更高等级方案面向正式团队和生产场景,通常包含更高优先级支持。"
46
+ }, {
47
+ question: "是否支持退款?",
48
+ answer: "订阅可随时取消。退款规则以付费服务协议为准,如遇到重复扣费或异常支付,可以联系支持团队处理。"
49
+ }, {
50
+ question: "使用订阅服务有什么限制?",
51
+ answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
52
+ }], v = u, y = C(() => v.faqItems ?? p);
53
+ return (h, B) => (i(), E(ne, {
54
+ class: "PricingFAQ"
55
+ }, {
56
+ BlockHeader: m(() => [P(ae, {
57
+ title: u.title,
58
+ subtitle: u.subtitle
59
+ }, null, 8, ["title", "subtitle"])]),
60
+ BlockBody: m(() => [P(le, {
61
+ "active-keys": u.activeKeys,
62
+ "faq-items": y.value
63
+ }, null, 8, ["active-keys", "faq-items"])]),
64
+ _: 1
65
+ }));
66
+ }
67
+ }), Ke = /* @__PURE__ */ K(ue, [["__scopeId", "data-v-fcab2f05"]]), _e = {
68
+ class: "PricingPlans"
69
+ }, de = {
70
+ class: "PricingPlans__trialMain"
71
+ }, ge = {
72
+ class: "PricingPlans__trialCopy"
73
+ }, Pe = {
74
+ key: 0,
75
+ class: "PricingPlans__trialFeatures"
76
+ }, me = {
77
+ class: "PricingPlans__trialAction"
78
+ }, ve = {
79
+ key: 1,
80
+ class: "PricingPlans__toolbar"
81
+ }, fe = {
82
+ key: 0,
83
+ class: "PricingPlans__toggle",
84
+ role: "tablist",
85
+ "aria-label": "计费周期"
86
+ }, pe = ["onClick"], ye = {
87
+ key: 0,
88
+ class: "PricingPlans__toggleBadge"
89
+ }, he = {
90
+ key: 1,
91
+ class: "PricingPlans__note"
92
+ }, ke = {
93
+ key: 2,
94
+ class: "PricingPlans__grid"
95
+ }, be = {
96
+ class: "PricingPlans__badgeRow"
97
+ }, Ce = {
98
+ class: "PricingPlans__header"
99
+ }, Be = {
100
+ class: "PricingPlans__price"
101
+ }, Ie = {
102
+ key: 0,
103
+ class: "PricingPlans__originalPrice"
104
+ }, qe = {
105
+ class: "PricingPlans__amount"
106
+ }, Le = {
107
+ class: "PricingPlans__cycle"
108
+ }, we = {
109
+ key: 0,
110
+ class: "PricingPlans__promotion"
111
+ }, De = {
112
+ class: "PricingPlans__summary"
113
+ }, Fe = {
114
+ class: "PricingPlans__featureGroups"
115
+ }, Se = {
116
+ class: "PricingPlans__features"
117
+ }, Ae = {
118
+ key: 3,
119
+ class: "PricingPlans__empty"
120
+ }, xe = /* @__PURE__ */ M({
121
+ __name: "PricingPlans",
122
+ props: {
123
+ appName: {
124
+ default: "Huyooo"
125
+ },
126
+ defaultInterval: {
127
+ default: "month"
128
+ },
129
+ note: {
130
+ default: ""
131
+ }
132
+ },
133
+ setup(u) {
134
+ const p = u, {
135
+ plans: v,
136
+ currentSubscription: y,
137
+ listLoading: h,
138
+ billingInterval: B,
139
+ billingIntervalTabs: I,
140
+ setBillingInterval: O,
141
+ isCurrentPlan: q,
142
+ isRecommendedPlan: L,
143
+ isFreePlan: w,
144
+ isPlanActionDisabled: D,
145
+ getDisplayPrice: R,
146
+ getDisplayOriginalPrice: F,
147
+ getDisplayCycle: j,
148
+ getPromotionLabel: S,
149
+ getBadgeLabels: J,
150
+ getButtonLabel: A,
151
+ getPlanSummary: x,
152
+ getFeatureGroups: N,
153
+ loadCurrentSubscription: U,
154
+ refresh: W
155
+ } = ce(p.defaultInterval), c = C(() => v.value.find((r) => w(r))), k = C(() => v.value.filter((r) => !w(r))), {
156
+ checkout: T,
157
+ isCheckingOut: $
158
+ } = oe({
159
+ currentSubscription: y,
160
+ refreshCurrentSubscription: U
161
+ });
162
+ function X(r) {
163
+ return r === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
164
+ }
165
+ function Q(r) {
166
+ return N(r.features).flatMap((a) => a.items).slice(0, 3);
167
+ }
168
+ function Y(r) {
169
+ return (r.description || x(r, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
170
+ }
171
+ function Z(r) {
172
+ const a = A(r);
173
+ return a === "免费注册" || a === "免费开通" ? "立即体验" : a === "已订阅付费方案" ? "无需开通" : a;
174
+ }
175
+ return te(() => {
176
+ W();
177
+ }), (r, a) => {
178
+ const ee = ie("motion-slide-top");
179
+ return i(), s("section", _e, [se((i(), E(e(re), {
180
+ loading: e(h),
181
+ tip: "数据加载中",
182
+ class: "PricingPlans__spin"
183
+ }, {
184
+ default: m(() => [c.value ? (i(), s("article", {
185
+ key: 0,
186
+ class: f(["PricingPlans__trial", {
187
+ "is-current": e(q)(c.value)
188
+ }])
189
+ }, [n("div", de, [n("div", ge, [n("h2", null, l(c.value.name), 1), n("p", null, l(Y(c.value)), 1), Q(c.value).length ? (i(), s("ul", Pe, [(i(!0), s(d, null, g(Q(c.value), (t) => (i(), s("li", {
190
+ key: t.title
191
+ }, [P(e(H), {
192
+ icon: "mingcute:check-circle-fill",
193
+ class: "PricingPlans__trialFeatureIcon"
194
+ }), n("span", null, l(t.title), 1)]))), 128))])) : o("", !0)]), n("div", me, [P(e(G), {
195
+ size: "large",
196
+ class: "PricingPlans__trialButton",
197
+ loading: e($)(c.value),
198
+ disabled: e(D)(c.value),
199
+ onClick: a[0] || (a[0] = (t) => e(T)(c.value))
200
+ }, {
201
+ default: m(() => [z(l(Z(c.value)), 1)]),
202
+ _: 1
203
+ }, 8, ["loading", "disabled"])])])], 2)) : o("", !0), k.value.length ? (i(), s("div", ve, [e(I).length > 1 ? (i(), s("div", fe, [(i(!0), s(d, null, g(e(I), (t) => (i(), s("button", {
204
+ key: t.value,
205
+ type: "button",
206
+ class: f(["PricingPlans__toggleItem", {
207
+ "is-active": e(B) === t.value
208
+ }]),
209
+ onClick: (b) => e(O)(t.value)
210
+ }, [n("span", null, l(t.label), 1), t.badge ? (i(), s("span", ye, l(t.badge), 1)) : o("", !0)], 10, pe))), 128))])) : o("", !0), u.note ? (i(), s("p", he, l(u.note), 1)) : o("", !0)])) : o("", !0), k.value.length ? (i(), s("div", ke, [(i(!0), s(d, null, g(k.value, (t, b) => (i(), s("article", {
211
+ key: t.id,
212
+ class: f(["PricingPlans__card", {
213
+ "is-recommended": e(L)(t),
214
+ "is-current": e(q)(t)
215
+ }])
216
+ }, [n("div", be, [(i(!0), s(d, null, g(e(J)(t), (_) => (i(), s("span", {
217
+ key: _.type,
218
+ class: f(["PricingPlans__badge", `is-${_.type}`])
219
+ }, l(_.label), 3))), 128))]), n("div", Ce, [n("h2", null, l(t.name), 1), n("p", null, l(t.description || X(b)), 1)]), n("div", Be, [e(F)(t) ? (i(), s("span", Ie, " ¥" + l(e(F)(t)), 1)) : o("", !0), a[1] || (a[1] = n("span", {
220
+ class: "PricingPlans__currency"
221
+ }, "¥", -1)), n("span", qe, l(e(R)(t)), 1), n("span", Le, l(e(j)(t)), 1)]), e(S)(t) ? (i(), s("p", we, l(e(S)(t)), 1)) : o("", !0), n("p", De, l(e(x)(t, b)), 1), P(e(G), {
222
+ long: "",
223
+ size: "large",
224
+ class: "PricingPlans__button",
225
+ type: e(L)(t) ? "primary" : "outline",
226
+ loading: e($)(t),
227
+ disabled: e(D)(t),
228
+ onClick: (_) => e(T)(t)
229
+ }, {
230
+ default: m(() => [z(l(e(A)(t)), 1)]),
231
+ _: 2
232
+ }, 1032, ["type", "loading", "disabled", "onClick"]), a[2] || (a[2] = n("div", {
233
+ class: "PricingPlans__divider"
234
+ }, null, -1)), n("div", Fe, [(i(!0), s(d, null, g(e(N)(t.features), (_) => (i(), s("section", {
235
+ key: _.title,
236
+ class: "PricingPlans__featureGroup"
237
+ }, [n("h3", null, l(_.title), 1), n("ul", Se, [(i(!0), s(d, null, g(_.items, (V) => (i(), s("li", {
238
+ key: V.title
239
+ }, [P(e(H), {
240
+ icon: "mingcute:check-circle-fill",
241
+ class: "PricingPlans__featureIcon"
242
+ }), n("span", null, l(V.title), 1)]))), 128))])]))), 128))])], 2))), 128))])) : !c.value && !e(h) ? (i(), s("div", Ae, " 当前暂无可订阅方案 ")) : o("", !0)]),
243
+ _: 1
244
+ }, 8, ["loading"])), [[ee]])]);
245
+ };
246
+ }
247
+ }), Oe = /* @__PURE__ */ K(xe, [["__scopeId", "data-v-0cbe9538"]]);
248
+ export {
249
+ Ke as P,
250
+ Oe as a
251
+ };
@@ -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 { e as T } from "./apiClients-DVz12LeW.js";
7
- import { u as V } from "./useTableHandle-D71P3Ez_.js";
6
+ import { e as T } from "./apiClients-KFp-rs-C.js";
7
+ import { u as V } from "./useTableHandle-jw0P7-2a.js";
8
8
  import { C as y } from "./CustomTable-BUkwlbzN.js";
9
- import { C as E } from "./Clipboard-CRZDADLE.js";
10
- import { a as M } from "./useAuthkitUsersProfile-CQGyvL7g.js";
9
+ import { C as E } from "./Clipboard-ChMNfcO5.js";
10
+ import { u as M } from "./useAuthkitUsersProfile-FJnHJad-.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-N5pim6q1.js";
9
+ import { u as _ } from "./useUploadCos-keDKcs0j.js";
10
10
  const N = /* @__PURE__ */ g({
11
11
  __name: "Upload",
12
12
  props: {
@@ -3,18 +3,18 @@
3
3
  /* empty css */
4
4
  import { defineComponent as d, openBlock as a, createElementBlock as l, toDisplayString as g, createCommentVNode as b, createVNode as f, unref as s, createBlock as _, withCtx as U, createTextVNode as B, createElementVNode as u, ref as S, computed as A, onMounted as G, Fragment as F, renderSlot as C, normalizeClass as J, watch as x } from "vue";
5
5
  import { Avatar as L, Button as R, Dropdown as K } from "@arco-design/web-vue";
6
- import { a as N } from "./useAuthkitUsersProfile-CQGyvL7g.js";
6
+ import { u as N } from "./useAuthkitUsersProfile-FJnHJad-.js";
7
7
  import { u as k } 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 Q, f as W } from "./apiClients-DVz12LeW.js";
12
- import { u as Z, P as ee } from "./PaySubscriptions-B8jAtG5n.js";
13
- import { C as ne } from "./Clipboard-CRZDADLE.js";
14
- import { A as te } from "./AuthkitAppSetting-CSHkDxQT.js";
15
- import { d as se } from "./FeedbackModal-CvNF1D-5.js";
16
- import { M as ae } from "./MessageHandle-B12koVQL.js";
17
- import { R as re } from "./ReferrerReferees-D_Iiw9wZ.js";
11
+ import { u as Q, f as W } from "./apiClients-KFp-rs-C.js";
12
+ import { u as Z, P as ee } from "./PaySubscriptions-BsU0XmXf.js";
13
+ import { C as ne } from "./Clipboard-ChMNfcO5.js";
14
+ import { A as te } from "./AuthkitAppSetting-DrX6fwKt.js";
15
+ import { d as se } from "./FeedbackModal-Dzl0Alp7.js";
16
+ import { M as ae } from "./MessageHandle-BcRjYeVi.js";
17
+ import { R as re } from "./ReferrerReferees-B-ISyXHw.js";
18
18
  import { Icon as j } from "@iconify/vue";
19
19
  const oe = {
20
20
  class: "UserAvatar"
@@ -2,17 +2,18 @@
2
2
  import "./index-D3Kp6R4z.js";
3
3
  import { defineComponent as P, ref as U, watch as V, openBlock as t, createElementBlock as n, createElementVNode as s, createVNode as o, unref as u, withCtx as x, createTextVNode as H, renderSlot as N, toDisplayString as I, createCommentVNode as M, onMounted as j, onUnmounted as he, normalizeClass as S, Fragment as L, renderList as E, createBlock as pe, computed as B, onBeforeUnmount as fe, normalizeStyle as W } from "vue";
4
4
  import { Spin as q } from "@arco-design/web-vue";
5
- import { u as F, a as J } from "./useAuthkitUsersProfile-CQGyvL7g.js";
6
- import { d as _e, b as ve, a as ge } from "./apiClients-DVz12LeW.js";
7
- import { u as D } from "./useAuthkitAppsAuthPageInfo-Du5d6VK-.js";
8
- import { b as Q, f as X, w as G, a as Y, c as Z, d as ee, e as ye } from "./useSEO-CvfzTZA9.js";
9
- import "./useUploadCos-N5pim6q1.js";
5
+ import { u as F } from "./useAuthkitAuth-Doj5VYjK.js";
6
+ import { d as _e, b as ve, a as ge } from "./apiClients-KFp-rs-C.js";
7
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
8
+ import { u as J } from "./useAuthkitUsersProfile-FJnHJad-.js";
9
+ import { b as Q, f as X, w as G, a as Y, c as Z, d as ee, e as ye } from "./useSEO-BZhVKEZr.js";
10
+ import "./useUploadCos-keDKcs0j.js";
10
11
  import { useRouter as te, useRoute as ne } from "vue-router";
11
12
  import "./useUserMenu-ClPBlvaM.js";
12
- import { U as ke, c as oe, h as se, k as ae, _ as re, f as ie, j as ue, d as le, g as K, i as ce } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js";
13
+ import { U as ke, c as oe, h as se, k as ae, _ as re, f as ie, j as ue, d as le, g as K, i as ce } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js";
13
14
  /* empty css */
14
15
  import { Icon as R } from "@iconify/vue";
15
- import "./Clipboard-CRZDADLE.js";
16
+ import "./Clipboard-ChMNfcO5.js";
16
17
  /* empty css */
17
18
  import { M as be } from "./Menu-Cy2ZPeaz.js";
18
19
  import "./CollapseItem-DUzZA6tx.js";
@@ -156,7 +157,7 @@ const we = {
156
157
  key: 1
157
158
  }, void 0, !0)])])])]));
158
159
  }
159
- }), Xt = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-0eed4f11"]]), He = {
160
+ }), Yt = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-0eed4f11"]]), He = {
160
161
  class: "ContentHead"
161
162
  }, ze = {
162
163
  class: "title"
@@ -181,7 +182,7 @@ const we = {
181
182
  const e = m;
182
183
  return (c, _) => (t(), n("div", He, [s("h1", ze, I(e.title), 1), e.description ? (t(), n("p", Ee, I(e.description), 1)) : M("", !0)]));
183
184
  }
184
- }), Yt = /* @__PURE__ */ T(De, [["__scopeId", "data-v-209a7bef"]]), Ke = {
185
+ }), Zt = /* @__PURE__ */ T(De, [["__scopeId", "data-v-209a7bef"]]), Ke = {
185
186
  key: 0,
186
187
  class: "desktop-menus"
187
188
  }, Oe = {
@@ -588,7 +589,7 @@ const we = {
588
589
  key: 1
589
590
  }, void 0, !0)])], 6));
590
591
  }
591
- }), Zt = /* @__PURE__ */ T(_t, [["__scopeId", "data-v-52a72efd"]]), vt = /* @__PURE__ */ P({
592
+ }), en = /* @__PURE__ */ T(_t, [["__scopeId", "data-v-52a72efd"]]), vt = /* @__PURE__ */ P({
592
593
  __name: "Gradientbackground",
593
594
  props: {
594
595
  width: {
@@ -646,7 +647,7 @@ const we = {
646
647
  style: W(_.value)
647
648
  }, null, 4)], 4));
648
649
  }
649
- }), en = /* @__PURE__ */ T(vt, [["__scopeId", "data-v-64c41f65"]]), gt = {
650
+ }), tn = /* @__PURE__ */ T(vt, [["__scopeId", "data-v-64c41f65"]]), gt = {
650
651
  class: "SvgIcon"
651
652
  }, yt = ["href", "fill"], kt = /* @__PURE__ */ P({
652
653
  __name: "SvgIcon",
@@ -673,21 +674,21 @@ const we = {
673
674
  fill: e.color
674
675
  }, null, 8, yt)]));
675
676
  }
676
- }), tn = /* @__PURE__ */ T(kt, [["__scopeId", "data-v-9d0b08a0"]]), bt = {}, wt = {
677
+ }), nn = /* @__PURE__ */ T(kt, [["__scopeId", "data-v-9d0b08a0"]]), bt = {}, wt = {
677
678
  class: "WidthContainer"
678
679
  };
679
680
  function $t(m, e) {
680
681
  return t(), n("div", wt, [N(m.$slots, "default", {}, void 0, !0)]);
681
682
  }
682
- const nn = /* @__PURE__ */ T(bt, [["render", $t], ["__scopeId", "data-v-d06aac1f"]]);
683
+ const on = /* @__PURE__ */ T(bt, [["render", $t], ["__scopeId", "data-v-d06aac1f"]]);
683
684
  export {
684
- Xt as A,
685
- Yt as C,
686
- Zt as D,
687
- en as G,
685
+ Yt as A,
686
+ Zt as C,
687
+ en as D,
688
+ tn as G,
688
689
  dt as H,
689
- tn as S,
690
- nn as W,
690
+ nn as S,
691
+ on as W,
691
692
  Ie as a,
692
693
  nt as b
693
694
  };
@@ -1,17 +1,17 @@
1
- import { eden as n, defineMiddleware as u, createClient as I } from "@vafast/api-client";
1
+ import { eden as n, defineMiddleware as f, createClient as I } from "@vafast/api-client";
2
2
  import { ref as k, computed as b } from "vue";
3
3
  /* empty css */
4
4
  import { Message as A } from "@arco-design/web-vue";
5
5
  const P = k(void 0);
6
- function v(e) {
6
+ function U(e) {
7
7
  var t, r;
8
8
  return e === "system" ? typeof window < "u" && ((r = (t = window.matchMedia) == null ? void 0 : t.call(window, "(prefers-color-scheme: dark)")) != null && r.matches) ? "dark" : "light" : e;
9
9
  }
10
- function U(e) {
10
+ function v(e) {
11
11
  typeof document > "u" || (e === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
12
12
  }
13
13
  function X(e) {
14
- P.value = e, U(v(e));
14
+ P.value = e, v(U(e));
15
15
  }
16
16
  let o = {
17
17
  appId: "",
@@ -32,7 +32,7 @@ function H(e) {
32
32
  Object.assign(R, e);
33
33
  }
34
34
  function Q(e) {
35
- o.appId = e.appId, e.theme !== void 0 && (P.value = e.theme, U(v(e.theme))), o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", e.onesPrefixUrl !== void 0 && (o.onesPrefixUrl = e.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
35
+ o.appId = e.appId, e.theme !== void 0 && (P.value = e.theme, v(U(e.theme))), o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", (e.onesPrefixUrl !== void 0 || e.prefixUrl !== void 0) && (o.onesPrefixUrl = e.onesPrefixUrl ?? e.prefixUrl ?? o.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
36
36
  }
37
37
  function j(e) {
38
38
  return n(e);
@@ -88,7 +88,7 @@ function z(e) {
88
88
  function _() {
89
89
  p.value = !1;
90
90
  }
91
- function w() {
91
+ function T() {
92
92
  return {
93
93
  open: z,
94
94
  close: _,
@@ -97,7 +97,7 @@ function w() {
97
97
  };
98
98
  }
99
99
  const d = 40101;
100
- let f = !1, h = [];
100
+ let u = !1, h = [];
101
101
  function m(e, t = null) {
102
102
  h.forEach(({
103
103
  resolve: r,
@@ -128,22 +128,22 @@ async function F() {
128
128
  throw console.error("Token refresh failed:", t), t;
129
129
  }
130
130
  }
131
- const L = u(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
131
+ const L = f(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
132
132
  name: "app-id"
133
- }), N = u(async (e, t) => {
133
+ }), N = f(async (e, t) => {
134
134
  const r = localStorage.getItem("jwtToken");
135
135
  return r && e.headers.set("authorization", `Bearer ${r}`), t();
136
136
  }, {
137
137
  name: "token"
138
- }), q = u(async (e, t) => {
138
+ }), q = f(async (e, t) => {
139
139
  var a;
140
140
  const r = await t();
141
141
  if (((a = r.error) == null ? void 0 : a.code) === d) {
142
- if (f)
142
+ if (u)
143
143
  return new Promise((i, c) => {
144
144
  h.push({
145
- resolve: async (T) => {
146
- e.headers.set("authorization", `Bearer ${T}`);
145
+ resolve: async (w) => {
146
+ e.headers.set("authorization", `Bearer ${w}`);
147
147
  const g = await t();
148
148
  i(g);
149
149
  },
@@ -152,7 +152,7 @@ const L = u(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
152
152
  }
153
153
  });
154
154
  });
155
- f = !0;
155
+ u = !0;
156
156
  try {
157
157
  const i = await F();
158
158
  return m(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
@@ -160,23 +160,23 @@ const L = u(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
160
160
  m(i, null), x();
161
161
  const {
162
162
  open: c
163
- } = w();
163
+ } = T();
164
164
  return c(), r;
165
165
  } finally {
166
- f = !1;
166
+ u = !1;
167
167
  }
168
168
  }
169
169
  return r;
170
170
  }, {
171
171
  name: "token-refresh"
172
- }), D = u(async (e, t) => {
172
+ }), D = f(async (e, t) => {
173
173
  var a;
174
174
  const r = await t();
175
175
  if (r.status === 401 && ((a = r.error) == null ? void 0 : a.code) !== d) {
176
176
  x();
177
177
  const {
178
178
  open: i
179
- } = w();
179
+ } = T();
180
180
  return i(), r;
181
181
  }
182
182
  return r.error && r.error.code !== d && A.error(r.error.message || "请求失败"), r;
@@ -211,6 +211,6 @@ export {
211
211
  re as l,
212
212
  ee as o,
213
213
  Q as s,
214
- w as u,
214
+ T as u,
215
215
  oe as w
216
216
  };