@huyooo/ui 0.15.2 → 0.17.0

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 (69) hide show
  1. package/dist/{AuthkitAppSetting-Ds7mYFV5.js → AuthkitAppSetting-jfSU-9BO.js} +655 -646
  2. package/dist/{AuthkitGithubBinding-LVDS1PNQ.js → AuthkitGithubBinding-Co5Z_cD0.js} +260 -255
  3. package/dist/{Clipboard-R3AURqvU.js → Clipboard-Bo7gdpR6.js} +1 -1
  4. package/dist/{Contact-B3AMSHoN.js → Contact-B09Z0y_t.js} +2 -2
  5. package/dist/{FeedbackItem-DkvSQT33.js → FeedbackItem-BP-SiJ2u.js} +98 -184
  6. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +1396 -0
  7. package/dist/{MessageHandle-CEQtGyVZ.js → MessageHandle-BG12aX0i.js} +56 -56
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-87v_RIQa.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js} +2 -2
  9. package/dist/{PaySubscriptions-D3g1OhiA.js → PaySubscriptions-BFq89DCI.js} +4 -4
  10. package/dist/{PricingPlans-DXea7rl0.js → PricingPlans-TZT6j_Jq.js} +4 -4
  11. package/dist/{ReferrerReferees-BxmZ1w_L.js → ReferrerReferees-jWOIvXrk.js} +18 -18
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DLKSHzxG.js → Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BVtXbwch.js} +63 -63
  14. package/dist/{WidthContainer-DKasAIgU.js → WidthContainer-Ct44rKyS.js} +9 -9
  15. package/dist/{apiClients-DT7o0IpO.js → apiClients-DrGX2iJy.js} +81 -78
  16. package/dist/authkit.js +9 -9
  17. package/dist/common/authPanelWidth.d.ts +2 -0
  18. package/dist/common.js +1 -1
  19. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +11 -14
  20. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -14
  21. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -0
  22. package/dist/components/Feedback/FeedbackForm.vue.d.ts +1 -0
  23. package/dist/components/Feedback/FeedbackMessageAttachments.vue.d.ts +15 -0
  24. package/dist/components/Feedback/FeedbackVideoPreview.vue.d.ts +33 -0
  25. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +1 -1
  26. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +1 -1
  27. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +2 -2
  28. package/dist/composables/Authkit/readInviteCodeFromLocation.d.ts +2 -0
  29. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
  30. package/dist/composables/Authkit/useOauth.d.ts +5 -9
  31. package/dist/composables/feedbackAttachmentPolicy.d.ts +6 -0
  32. package/dist/composables/uploadFeedbackAttachment.d.ts +9 -0
  33. package/dist/composables/useFeedbackPendingAttachments.d.ts +98 -0
  34. package/dist/composables.js +13 -13
  35. package/dist/feedback.d.ts +0 -1
  36. package/dist/feedback.js +9 -10
  37. package/dist/main.js +134 -135
  38. package/dist/message.js +4 -4
  39. package/dist/pay.js +4 -4
  40. package/dist/privateCom.js +1 -1
  41. package/dist/referrer.js +1 -1
  42. package/dist/style.css +1 -1
  43. package/dist/types/api/ai.generated.d.ts +10 -10
  44. package/dist/types/api/auth.generated.d.ts +24 -20
  45. package/dist/types/api/billing.generated.d.ts +206 -514
  46. package/dist/types/api/ones.generated.d.ts +46 -8
  47. package/dist/types/api.d.ts +1 -1
  48. package/dist/types/feedback.d.ts +12 -44
  49. package/dist/types/user.d.ts +1 -1
  50. package/dist/upload.js +2 -2
  51. package/dist/{useAuthkitAppsAuthPageInfo-DScDQfj5.js → useAuthkitAppsAuthPageInfo-DWd0bDP-.js} +1 -1
  52. package/dist/{useAuthkitAuth-DpdKRuJm.js → useAuthkitAuth-DmS-H7M2.js} +60 -53
  53. package/dist/{useAuthkitCreateAndUpdate-MzA4qtTh.js → useAuthkitCreateAndUpdate-oo9517Gj.js} +1 -1
  54. package/dist/{useAuthkitUsersProfile-aw_A7IWb.js → useAuthkitUsersProfile-BZDk21c8.js} +2 -2
  55. package/dist/{useBillingStatusOptions-CAsu1hrf.js → useBillingStatusOptions-B7xLU3fs.js} +1 -1
  56. package/dist/{useEnsureAuthenticated-BEKhtQAl.js → useEnsureAuthenticated-BuIbxqsO.js} +2 -2
  57. package/dist/{useLegalLinks-BijRF_ZD.js → useLegalLinks--qFGF7lO.js} +2 -2
  58. package/dist/{useMessageNotifications-CFku0c2R.js → useMessageNotifications-D85_-mDq.js} +1 -1
  59. package/dist/{useRoutePermission-v4_0B-aO.js → useRoutePermission-chEi45Nb.js} +2 -2
  60. package/dist/{useSEO-CbHCw4gq.js → useSEO-C6DLicfe.js} +1 -1
  61. package/dist/{useSubscriptionCheckout-BjPiHSjA.js → useSubscriptionCheckout-BRk5h9aC.js} +3 -3
  62. package/dist/{useTableHandle-TDJa_Czn.js → useTableHandle-BdujaiNX.js} +1 -1
  63. package/dist/{useUploadCos-CvG6EL5Q.js → useUploadCos-BRKRzSy3.js} +6 -4
  64. package/dist/user.js +1 -1
  65. package/dist/utils/apiMiddlewares.d.ts +4 -4
  66. package/dist/utils/feedbackMessage.d.ts +8 -0
  67. package/package.json +2 -1
  68. package/dist/FeedbackModal-C45pNoiw.js +0 -1050
  69. package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -19
@@ -1,22 +1,22 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
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
- import { Avatar as L, Button as D, Dropdown as Q } from "@arco-design/web-vue";
6
- import { u as R } from "./useAuthkitUsersProfile-aw_A7IWb.js";
4
+ import { defineComponent as m, openBlock as i, 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 C, onMounted as J, Fragment as L, renderSlot as A, normalizeClass as K, watch as x } from "vue";
5
+ import { Avatar as j, Button as D, Dropdown as Q } from "@arco-design/web-vue";
6
+ import { u as R } from "./useAuthkitUsersProfile-BZDk21c8.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 } from "./apiClients-DT7o0IpO.js";
12
- import { u as Z, o as ee, P as ne } from "./PaySubscriptions-D3g1OhiA.js";
13
- import { d as te } from "./useBillingStatusOptions-CAsu1hrf.js";
14
- import { C as se } from "./Clipboard-R3AURqvU.js";
15
- import { A as ae } from "./AuthkitAppSetting-Ds7mYFV5.js";
16
- import { d as oe } from "./FeedbackModal-C45pNoiw.js";
17
- import { M as re } from "./MessageHandle-CEQtGyVZ.js";
18
- import { R as ie } from "./ReferrerReferees-BxmZ1w_L.js";
19
- import { Icon as j } from "@iconify/vue";
11
+ import { u as W } from "./apiClients-DrGX2iJy.js";
12
+ import { u as Z, o as ee, P as ne } from "./PaySubscriptions-BFq89DCI.js";
13
+ import { d as te } from "./useBillingStatusOptions-B7xLU3fs.js";
14
+ import { C as se } from "./Clipboard-Bo7gdpR6.js";
15
+ import { A as ae } from "./AuthkitAppSetting-jfSU-9BO.js";
16
+ import { c as oe } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js";
17
+ import { M as ie } from "./MessageHandle-BG12aX0i.js";
18
+ import { R as re } from "./ReferrerReferees-jWOIvXrk.js";
19
+ import { Icon as F } from "@iconify/vue";
20
20
  const le = {
21
21
  class: "UserAvatar"
22
22
  }, ue = {
@@ -33,7 +33,7 @@ const le = {
33
33
  }
34
34
  },
35
35
  setup(e) {
36
- return (n, o) => (r(), p("div", le, [e.nickname ? (r(), p("span", ue, U(e.nickname), 1)) : k("", !0), d(s(L), {
36
+ return (n, o) => (i(), p("div", le, [e.nickname ? (i(), p("span", ue, U(e.nickname), 1)) : k("", !0), d(s(j), {
37
37
  "image-url": e.avatar,
38
38
  size: 32,
39
39
  "object-fit": "cover"
@@ -45,7 +45,7 @@ const le = {
45
45
  const {
46
46
  open: n
47
47
  } = W();
48
- return (o, t) => (r(), _(s(D), {
48
+ return (o, t) => (i(), _(s(D), {
49
49
  type: "primary",
50
50
  class: "UserSignInButton",
51
51
  onClick: t[0] || (t[0] = (a) => s(n)())
@@ -59,7 +59,7 @@ const le = {
59
59
  role: "separator"
60
60
  };
61
61
  function ve(e, n) {
62
- return r(), p("div", _e);
62
+ return i(), p("div", _e);
63
63
  }
64
64
  const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97"]]), be = {
65
65
  class: "UserBasicInformation"
@@ -84,29 +84,29 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
84
84
  avatarUrl: {
85
85
  default: ""
86
86
  },
87
- referrerId: {
87
+ personalInviteCode: {
88
88
  default: ""
89
89
  }
90
90
  },
91
91
  setup(e) {
92
- return (n, o) => (r(), p("div", be, [d(s(L), {
92
+ return (n, o) => (i(), p("div", be, [d(s(j), {
93
93
  "image-url": e.avatarUrl,
94
94
  size: 42,
95
95
  "object-fit": "cover"
96
- }, null, 8, ["image-url"]), l("div", Ue, [l("span", ke, U(e.nickname), 1), l("span", ye, U(e.email), 1), e.referrerId ? (r(), p("span", Ie, [l("span", null, "我的邀请码:" + U(e.referrerId), 1), d(se, {
97
- value: e.referrerId,
96
+ }, null, 8, ["image-url"]), l("div", Ue, [l("span", ke, U(e.nickname), 1), l("span", ye, U(e.email), 1), e.personalInviteCode ? (i(), p("span", Ie, [l("span", null, "我的邀请码:" + U(e.personalInviteCode), 1), d(se, {
97
+ value: e.personalInviteCode,
98
98
  message: "邀请码复制成功"
99
99
  }, null, 8, ["value"])])) : k("", !0)])]));
100
100
  }
101
- }), Be = /* @__PURE__ */ M($e, [["__scopeId", "data-v-cc49789c"]]), Me = {
101
+ }), Be = /* @__PURE__ */ M($e, [["__scopeId", "data-v-0e109acc"]]), Me = {
102
102
  class: "UserSubscriptionBaseInformation"
103
103
  }, Se = {
104
104
  class: "UserSubscriptionBaseInformation__row"
105
105
  }, he = {
106
106
  class: "UserSubscriptionBaseInformation__info"
107
- }, Ae = {
108
- class: "UserSubscriptionBaseInformation__plan"
109
107
  }, Ce = {
108
+ class: "UserSubscriptionBaseInformation__plan"
109
+ }, Ae = {
110
110
  key: 0
111
111
  }, xe = {
112
112
  key: 1,
@@ -142,9 +142,9 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
142
142
  emit: n
143
143
  }) {
144
144
  const o = n;
145
- return (t, a) => (r(), p("div", Me, [l("div", Se, [l("div", he, [a[3] || (a[3] = l("span", {
145
+ return (t, a) => (i(), p("div", Me, [l("div", Se, [l("div", he, [a[3] || (a[3] = l("span", {
146
146
  class: "UserSubscriptionBaseInformation__label"
147
- }, "当前权益:", -1)), l("span", Ae, U(e.currentVersionName), 1)]), e.canUpgrade ? (r(), _(s(D), {
147
+ }, "当前权益:", -1)), l("span", Ce, U(e.currentVersionName), 1)]), e.canUpgrade ? (i(), _(s(D), {
148
148
  key: 0,
149
149
  type: "primary",
150
150
  size: "mini",
@@ -154,7 +154,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
154
154
  }, {
155
155
  default: v(() => [$(U(e.actionLabel), 1)]),
156
156
  _: 1
157
- }, 8, ["loading"])) : k("", !0)]), e.expireDate ? (r(), p("span", Ce, "有效期至: " + U(e.expireDate), 1)) : k("", !0), typeof e.pointsBalance == "number" ? (r(), p("div", xe, [l("span", null, "积分余额: " + U(e.pointsBalance), 1), d(s(D), {
157
+ }, 8, ["loading"])) : k("", !0)]), e.expireDate ? (i(), p("span", Ae, "有效期至: " + U(e.expireDate), 1)) : k("", !0), typeof e.pointsBalance == "number" ? (i(), p("div", xe, [l("span", null, "积分余额: " + U(e.pointsBalance), 1), d(s(D), {
158
158
  type: "text",
159
159
  size: "mini",
160
160
  class: "UserSubscriptionBaseInformation__pointsAction",
@@ -163,7 +163,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
163
163
  }, {
164
164
  default: v(() => [...a[4] || (a[4] = [$(" 充值 ", -1)])]),
165
165
  _: 1
166
- }, 8, ["loading"])])) : k("", !0), typeof e.pendingInvoiceTotal == "number" && e.pendingInvoiceTotal > 0 ? (r(), p("div", we, [a[6] || (a[6] = l("span", {
166
+ }, 8, ["loading"])])) : k("", !0), typeof e.pendingInvoiceTotal == "number" && e.pendingInvoiceTotal > 0 ? (i(), p("div", we, [a[6] || (a[6] = l("span", {
167
167
  class: "UserSubscriptionBaseInformation__warning"
168
168
  }, " 有待支付订阅账单 ", -1)), d(s(D), {
169
169
  type: "primary",
@@ -203,19 +203,19 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
203
203
  } = y(), {
204
204
  entitlement: a,
205
205
  pointsBalance: c,
206
- pendingInvoice: i,
206
+ pendingInvoice: r,
207
207
  loading: g,
208
208
  refresh: I
209
- } = Z(), S = h(0), B = A(() => a.value), P = A(() => {
209
+ } = Z(), S = h(0), B = C(() => a.value), P = C(() => {
210
210
  var f, b;
211
211
  return n.currentVersionName ? n.currentVersionName : ((f = B.value) == null ? void 0 : f.type) === "trial" ? "免费试用" : ((b = B.value) == null ? void 0 : b.productName) || "未订阅";
212
- }), u = A(() => {
212
+ }), u = C(() => {
213
213
  var f;
214
214
  return n.expireDate || ((f = B.value) == null ? void 0 : f.endAt) || "";
215
- }), H = A(() => {
215
+ }), H = C(() => {
216
216
  var f, b;
217
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 ? "订阅" : "";
218
- }), X = A(() => n.canUpgrade && !!H.value);
218
+ }), X = C(() => n.canUpgrade && !!H.value);
219
219
  function Y() {
220
220
  ee();
221
221
  }
@@ -227,17 +227,17 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
227
227
  n.showSubscription && (I(), q());
228
228
  }), (f, b) => {
229
229
  var N, O, V, T, z, E;
230
- return r(), p(F, null, [d(Be, {
230
+ return i(), p(L, null, [d(Be, {
231
231
  "avatar-url": (N = s(o)) == null ? void 0 : N.avatarUrl,
232
232
  nickname: (O = s(o)) == null ? void 0 : O.nickname,
233
233
  email: (V = s(o)) == null ? void 0 : V.email,
234
- "referrer-id": (T = s(o)) == null ? void 0 : T.referrerId
235
- }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), e.showSubscription ? (r(), _(De, {
234
+ "personal-invite-code": (T = s(o)) == null ? void 0 : T.personalInviteCode
235
+ }, null, 8, ["avatar-url", "nickname", "email", "personal-invite-code"]), e.showSubscription ? (i(), _(De, {
236
236
  key: 0,
237
237
  "current-version-name": P.value,
238
238
  "expire-date": u.value,
239
239
  "points-balance": (z = s(c)) == null ? void 0 : z.totalPoints,
240
- "pending-invoice-total": (E = s(i)) == null ? void 0 : E.total,
240
+ "pending-invoice-total": (E = s(r)) == null ? void 0 : E.total,
241
241
  loading: s(g),
242
242
  "can-upgrade": X.value,
243
243
  "action-label": H.value,
@@ -275,11 +275,11 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
275
275
  } = R(), {
276
276
  isOpen: t,
277
277
  setOpen: a
278
- } = y(), c = A({
278
+ } = y(), c = C({
279
279
  get: () => t.value,
280
- set: (i) => a(i)
280
+ set: (r) => a(r)
281
281
  });
282
- return (i, g) => s(o) ? (r(), _(s(Q), {
282
+ return (r, g) => s(o) ? (i(), _(s(Q), {
283
283
  key: 1,
284
284
  "popup-visible": c.value,
285
285
  "onUpdate:popupVisible": g[0] || (g[0] = (I) => c.value = I),
@@ -291,12 +291,12 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
291
291
  "--user-menu-translate-y": e.dropdownOffsetY ?? "0"
292
292
  }
293
293
  }, {
294
- content: v(() => [l("div", Re, [l("div", Ne, [C(i.$slots, "header", {
294
+ content: v(() => [l("div", Re, [l("div", Ne, [A(r.$slots, "header", {
295
295
  user: s(n)
296
- }, () => [d(He)], !0)]), i.$slots.items ? (r(), _(ge, {
296
+ }, () => [d(He)], !0)]), r.$slots.items ? (i(), _(ge, {
297
297
  key: 0
298
- })) : k("", !0), C(i.$slots, "items", {}, void 0, !0)])]),
299
- default: v(() => [C(i.$slots, "trigger", {
298
+ })) : k("", !0), A(r.$slots, "items", {}, void 0, !0)])]),
299
+ default: v(() => [A(r.$slots, "trigger", {
300
300
  user: s(n)
301
301
  }, () => {
302
302
  var I;
@@ -305,7 +305,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
305
305
  }, null, 8, ["avatar"])];
306
306
  }, !0)]),
307
307
  _: 3
308
- }, 8, ["popup-visible", "position", "popup-style"])) : (r(), _(me, {
308
+ }, 8, ["popup-visible", "position", "popup-style"])) : (i(), _(me, {
309
309
  key: 0
310
310
  }));
311
311
  }
@@ -340,10 +340,10 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
340
340
  const o = e, t = n, {
341
341
  close: a
342
342
  } = y();
343
- function c(i) {
344
- i.stopPropagation(), !o.disabled && (o.closeOnClick && a(), t("click", i));
343
+ function c(r) {
344
+ r.stopPropagation(), !o.disabled && (o.closeOnClick && a(), t("click", r));
345
345
  }
346
- return (i, g) => (r(), p("button", {
346
+ return (r, g) => (i(), p("button", {
347
347
  type: "button",
348
348
  class: K(["UserMenuItem", {
349
349
  "is-danger": e.danger,
@@ -351,7 +351,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
351
351
  }]),
352
352
  disabled: e.disabled,
353
353
  onClick: c
354
- }, [l("span", Te, [C(i.$slots, "default", {}, void 0, !0)]), i.$slots.icon || e.icon ? (r(), p("span", ze, [C(i.$slots, "icon", {}, () => [e.icon ? (r(), _(s(j), {
354
+ }, [l("span", Te, [A(r.$slots, "default", {}, void 0, !0)]), r.$slots.icon || e.icon ? (i(), p("span", ze, [A(r.$slots, "icon", {}, () => [e.icon ? (i(), _(s(F), {
355
355
  key: 0,
356
356
  icon: e.icon,
357
357
  width: 16,
@@ -367,7 +367,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
367
367
  subscriptionsOptions: t,
368
368
  messagesTrigger: a,
369
369
  feedbackTrigger: c,
370
- invitationsTrigger: i
370
+ invitationsTrigger: r
371
371
  } = y(), g = h(null), I = h(null), S = h(null), B = h(null), P = h(null);
372
372
  return x(n, () => {
373
373
  var u;
@@ -381,31 +381,31 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
381
381
  }), x(c, () => {
382
382
  var u;
383
383
  (u = B.value) == null || u.setData(!0);
384
- }), x(i, () => {
384
+ }), x(r, () => {
385
385
  var u;
386
386
  (u = P.value) == null || u.setData(!0);
387
- }), (u, H) => (r(), p(F, null, [d(ae, {
387
+ }), (u, H) => (i(), p(L, null, [d(ae, {
388
388
  ref_key: "appSettingRef",
389
389
  ref: g
390
390
  }, null, 512), d(ne, {
391
391
  ref_key: "paySubsRef",
392
392
  ref: I
393
- }, null, 512), d(re, {
393
+ }, null, 512), d(ie, {
394
394
  ref_key: "messageHandleRef",
395
395
  ref: S
396
396
  }, null, 512), d(oe, {
397
397
  ref_key: "feedbackModalRef",
398
398
  ref: B
399
- }, null, 512), d(ie, {
399
+ }, null, 512), d(re, {
400
400
  ref_key: "refereesRef",
401
401
  ref: P
402
402
  }, null, 512)], 64));
403
403
  }
404
- }), Fe = {
404
+ }), Le = {
405
405
  class: "UserAccountMenu"
406
- }, Le = {
407
- class: "UserAccountMenu__avatar"
408
406
  }, je = {
407
+ class: "UserAccountMenu__avatar"
408
+ }, Fe = {
409
409
  class: "UserAccountMenu__meta"
410
410
  }, Xe = {
411
411
  class: "UserAccountMenu__name"
@@ -420,12 +420,12 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
420
420
  toggle: o
421
421
  } = y();
422
422
  return (t, a) => {
423
- var c, i;
424
- return r(), p("div", Fe, [l("div", Le, [C(t.$slots, "avatar", {}, void 0, !0)]), l("div", je, [l("div", Xe, U(((c = s(n)) == null ? void 0 : c.nickname) || ""), 1), l("div", Ye, U(((i = s(n)) == null ? void 0 : i.email) || ""), 1)]), l("div", {
423
+ var c, r;
424
+ return i(), p("div", Le, [l("div", je, [A(t.$slots, "avatar", {}, void 0, !0)]), l("div", Fe, [l("div", Xe, U(((c = s(n)) == null ? void 0 : c.nickname) || ""), 1), l("div", Ye, U(((r = s(n)) == null ? void 0 : r.email) || ""), 1)]), l("div", {
425
425
  class: "UserAccountMenu__arrow",
426
426
  onClick: a[0] || (a[0] = //@ts-ignore
427
427
  (...g) => s(o) && s(o)(...g))
428
- }, [d(s(j), {
428
+ }, [d(s(F), {
429
429
  icon: "lucide:chevrons-up-down"
430
430
  })])]);
431
431
  };
@@ -436,7 +436,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
436
436
  const {
437
437
  openMessages: n
438
438
  } = y();
439
- return (o, t) => (r(), _(w, {
439
+ return (o, t) => (i(), _(w, {
440
440
  icon: "lucide:chevron-right",
441
441
  onClick: s(n)
442
442
  }, {
@@ -450,7 +450,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
450
450
  const {
451
451
  openSetting: n
452
452
  } = y();
453
- return (o, t) => (r(), _(w, {
453
+ return (o, t) => (i(), _(w, {
454
454
  icon: "lucide:user-round",
455
455
  onClick: s(n)
456
456
  }, {
@@ -464,7 +464,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
464
464
  const {
465
465
  openSubscriptions: n
466
466
  } = y();
467
- return (o, t) => (r(), _(w, {
467
+ return (o, t) => (i(), _(w, {
468
468
  icon: "lucide:chevron-right",
469
469
  onClick: t[0] || (t[0] = (a) => s(n)())
470
470
  }, {
@@ -478,7 +478,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
478
478
  const {
479
479
  openFeedback: n
480
480
  } = y();
481
- return (o, t) => (r(), _(w, {
481
+ return (o, t) => (i(), _(w, {
482
482
  icon: "lucide:chevron-right",
483
483
  onClick: s(n)
484
484
  }, {
@@ -492,7 +492,7 @@ const ge = /* @__PURE__ */ M(fe, [["render", ve], ["__scopeId", "data-v-c7d18d97
492
492
  const {
493
493
  openInvitations: n
494
494
  } = y();
495
- return (o, t) => (r(), _(w, {
495
+ return (o, t) => (i(), _(w, {
496
496
  icon: "lucide:chevron-right",
497
497
  onClick: s(n)
498
498
  }, {
@@ -2,20 +2,20 @@
2
2
  import "./index-D3Kp6R4z.js";
3
3
  import { defineComponent as P, ref as U, watch as V, openBlock as n, createElementBlock as o, createElementVNode as r, createVNode as a, unref as i, withCtx as x, createTextVNode as z, renderSlot as G, toDisplayString as I, createCommentVNode as $, onMounted as j, onUnmounted as me, normalizeClass as S, Fragment as L, renderList as D, createBlock as he, computed as B, onBeforeUnmount as pe, normalizeStyle as W } from "vue";
4
4
  import { Spin as q } from "@arco-design/web-vue";
5
- import { u as F } from "./useAuthkitAuth-DpdKRuJm.js";
6
- import { d as fe, b as _e } from "./apiClients-DT7o0IpO.js";
7
- import { u as N } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
8
- import { u as J } from "./useAuthkitUsersProfile-aw_A7IWb.js";
9
- import { b as Q, f as X, w as O, a as Y, c as Z } from "./useRoutePermission-v4_0B-aO.js";
10
- import "./useUploadCos-CvG6EL5Q.js";
5
+ import { u as F } from "./useAuthkitAuth-DmS-H7M2.js";
6
+ import { d as fe, b as _e } from "./apiClients-DrGX2iJy.js";
7
+ import { u as N } from "./useAuthkitAppsAuthPageInfo-DWd0bDP-.js";
8
+ import { u as J } from "./useAuthkitUsersProfile-BZDk21c8.js";
9
+ import { b as Q, f as X, w as O, a as Y, c as Z } from "./useRoutePermission-chEi45Nb.js";
10
+ import "./useUploadCos-BRKRzSy3.js";
11
11
  import { useRouter as ee, useRoute as te } from "vue-router";
12
12
  import "@unhead/vue";
13
13
  import "./useUserMenu-ClPBlvaM.js";
14
- import "./useBillingStatusOptions-CAsu1hrf.js";
15
- import { U as ve, c as ne, h as oe, k as se, _ as ae, f as re, j as ie, d as ue, g as K, i as le } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js";
14
+ import "./useBillingStatusOptions-B7xLU3fs.js";
15
+ import { U as ve, c as ne, h as oe, k as se, _ as ae, f as re, j as ie, d as ue, g as K, i as le } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BVtXbwch.js";
16
16
  /* empty css */
17
17
  import { Icon as R } from "@iconify/vue";
18
- import "./Clipboard-R3AURqvU.js";
18
+ import "./Clipboard-Bo7gdpR6.js";
19
19
  /* empty css */
20
20
  import { M as ge } from "./Menu-Cy2ZPeaz.js";
21
21
  import "./CollapseItem-DUzZA6tx.js";
@@ -1,17 +1,17 @@
1
1
  import { eden as n, defineMiddleware as c, createClient as S } from "@vafast/api-client";
2
- import { ref as p, computed as m } from "vue";
2
+ import { ref as h, computed as m } from "vue";
3
3
  /* empty css */
4
4
  import { Message as j } from "@arco-design/web-vue";
5
- function C(e, t = 3) {
6
- const r = e.indexOf("@");
7
- if (r > 1) {
8
- const a = e.slice(0, t), i = e.slice(r);
9
- return a + "***" + i;
5
+ function ee(e, r = 3) {
6
+ const t = e.indexOf("@");
7
+ if (t > 1) {
8
+ const i = e.slice(0, r), a = e.slice(t);
9
+ return i + "***" + a;
10
10
  }
11
11
  return e;
12
12
  }
13
13
  const f = /* @__PURE__ */ new Set();
14
- function ee(e) {
14
+ function re(e) {
15
15
  return f.add(e), () => {
16
16
  f.delete(e);
17
17
  };
@@ -34,19 +34,19 @@ function B() {
34
34
  function O(e) {
35
35
  try {
36
36
  localStorage.setItem("jwtToken", e);
37
- } catch (t) {
38
- console.warn("Failed to update jwtToken in localStorage:", t);
37
+ } catch (r) {
38
+ console.warn("Failed to update jwtToken in localStorage:", r);
39
39
  }
40
40
  }
41
- const v = p(void 0);
41
+ const v = h(void 0);
42
42
  function x(e) {
43
- var t, r;
44
- 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;
43
+ var r, t;
44
+ return e === "system" ? typeof window < "u" && ((t = (r = window.matchMedia) == null ? void 0 : r.call(window, "(prefers-color-scheme: dark)")) != null && t.matches) ? "dark" : "light" : e;
45
45
  }
46
46
  function g(e) {
47
47
  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")));
48
48
  }
49
- function re(e) {
49
+ function te(e) {
50
50
  v.value = e, g(x(e));
51
51
  }
52
52
  let o = {
@@ -65,10 +65,10 @@ let o = {
65
65
  region: "ap-beijing",
66
66
  web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
67
67
  }, M = {};
68
- function te(e) {
68
+ function oe(e) {
69
69
  Object.assign(M, e);
70
70
  }
71
- function oe(e) {
71
+ function ie(e) {
72
72
  o.appId = e.appId, e.theme !== void 0 && (v.value = e.theme, g(x(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.pricingUrl !== void 0 && (o.pricingUrl = e.pricingUrl || "/Pricing"), e.openPricing !== void 0 && (o.openPricing = e.openPricing), 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);
73
73
  }
74
74
  function $(e) {
@@ -89,50 +89,54 @@ function _(e) {
89
89
  function D(e) {
90
90
  return n(e);
91
91
  }
92
- const k = p(!1), y = p("signIn");
92
+ const p = h(!1), y = h("signIn");
93
93
  function N(e) {
94
- e != null && e.view && (y.value = e.view), k.value = !0;
94
+ e != null && e.view && (y.value = e.view), p.value = !0;
95
95
  }
96
96
  function F() {
97
- k.value = !1;
97
+ p.value = !1;
98
98
  }
99
99
  function q() {
100
100
  return {
101
101
  open: N,
102
102
  close: F,
103
- isOpen: m(() => k.value),
103
+ isOpen: m(() => p.value),
104
104
  view: m(() => y.value)
105
105
  };
106
106
  }
107
- const d = 40101, U = 401;
107
+ const k = 40101, U = 401;
108
108
  function G(e) {
109
- var t;
110
- return e.status === U || ((t = e.error) == null ? void 0 : t.code) === U;
109
+ var r;
110
+ return e.status === U || ((r = e.error) == null ? void 0 : r.code) === U;
111
+ }
112
+ function H(e) {
113
+ var r;
114
+ return G(e) && ((r = e.error) == null ? void 0 : r.code) !== k;
111
115
  }
112
- function H() {
116
+ function J() {
113
117
  const {
114
118
  open: e
115
119
  } = q();
116
120
  e();
117
121
  }
118
122
  function T() {
119
- E(), H();
123
+ E(), J();
120
124
  }
121
- let u = !1, h = [];
122
- function P(e, t = null) {
123
- h.forEach(({
124
- resolve: r,
125
- reject: a
125
+ let u = !1, d = [];
126
+ function P(e, r = null) {
127
+ d.forEach(({
128
+ resolve: t,
129
+ reject: i
126
130
  }) => {
127
- e ? a(e) : t && r(t);
128
- }), h = [];
131
+ e ? i(e) : r && t(r);
132
+ }), d = [];
129
133
  }
130
- async function J() {
134
+ async function V() {
131
135
  const e = B();
132
136
  if (!e)
133
137
  throw new Error("No refresh token available");
134
138
  try {
135
- const r = await (await fetch(`${o.authPrefixUrl}/auth/refresh`, {
139
+ const t = await (await fetch(`${o.authPrefixUrl}/auth/refresh`, {
136
140
  method: "POST",
137
141
  headers: {
138
142
  "Content-Type": "application/json",
@@ -142,54 +146,53 @@ async function J() {
142
146
  refreshToken: e
143
147
  })
144
148
  })).json();
145
- if (r.jwtToken)
146
- return O(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
147
- throw new Error(r.message || "Token refresh failed");
148
- } catch (t) {
149
- throw console.error("Token refresh failed:", t), t;
149
+ if (t.jwtToken)
150
+ return O(t.jwtToken), t.refreshToken && localStorage.setItem("refreshToken", t.refreshToken), t.jwtToken;
151
+ throw new Error(t.message || "Token refresh failed");
152
+ } catch (r) {
153
+ throw console.error("Token refresh failed:", r), r;
150
154
  }
151
155
  }
152
- const V = c(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
156
+ const W = c(async (e, r) => (e.headers.set("app-id", o.appId), r()), {
153
157
  name: "app-id"
154
- }), W = c(async (e, t) => {
155
- const r = localStorage.getItem("jwtToken");
156
- return r && e.headers.set("authorization", `Bearer ${r}`), t();
158
+ }), X = c(async (e, r) => {
159
+ const t = localStorage.getItem("jwtToken");
160
+ return t && e.headers.set("authorization", `Bearer ${t}`), r();
157
161
  }, {
158
162
  name: "token"
159
- }), w = c(async (e, t) => {
160
- var a;
161
- const r = await t();
162
- if (((a = r.error) == null ? void 0 : a.code) === d) {
163
+ }), w = c(async (e, r) => {
164
+ var i;
165
+ const t = await r();
166
+ if (((i = t.error) == null ? void 0 : i.code) === k) {
163
167
  if (u)
164
- return new Promise((i, b) => {
165
- h.push({
168
+ return new Promise((a, b) => {
169
+ d.push({
166
170
  resolve: async (I) => {
167
171
  e.headers.set("authorization", `Bearer ${I}`);
168
- const R = await t();
169
- i(R);
172
+ const R = await r();
173
+ a(R);
170
174
  },
171
175
  reject: () => {
172
- b(r);
176
+ b(t);
173
177
  }
174
178
  });
175
179
  });
176
180
  u = !0;
177
181
  try {
178
- const i = await J();
179
- return P(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
180
- } catch (i) {
181
- return P(i, null), T(), r;
182
+ const a = await V();
183
+ return P(null, a), e.headers.set("authorization", `Bearer ${a}`), await r();
184
+ } catch (a) {
185
+ return P(a, null), T(), t;
182
186
  } finally {
183
187
  u = !1;
184
188
  }
185
189
  }
186
- return r;
190
+ return t;
187
191
  }, {
188
192
  name: "token-refresh"
189
- }), A = c(async (e, t) => {
190
- var a;
191
- const r = await t();
192
- return G(r) && ((a = r.error) == null ? void 0 : a.code) !== d ? (T(), r) : (r.error && r.error.code !== d && j.error(r.error.message || "请求失败"), r);
193
+ }), A = c(async (e, r) => {
194
+ const t = await r();
195
+ return H(t) ? (T(), t) : (t.error && t.error.code !== k && j.error(t.error.message || "请求失败"), t);
193
196
  }, {
194
197
  name: "error-message"
195
198
  });
@@ -200,37 +203,37 @@ function s(e) {
200
203
  return S({
201
204
  baseURL: e,
202
205
  timeout: 3e4
203
- }).use(V).use(W).use(w).use(A);
206
+ }).use(W).use(X).use(w).use(A);
204
207
  }
205
208
  function l(e) {
206
- let t = null;
209
+ let r = null;
207
210
  return new Proxy({}, {
208
- get(r, a) {
209
- return t || (t = e()), t[a];
211
+ get(t, i) {
212
+ return r || (r = e()), r[i];
210
213
  }
211
214
  });
212
215
  }
213
- const ie = l(() => z(s(o.authPrefixUrl))), ne = l(() => K(s(o.billingPrefixUrl))), se = l(() => _(s(o.onesPrefixUrl))), le = l(() => L(s(o.logPrefixUrl))), ce = l(() => $(s(o.aiPrefixUrl))), ue = l(() => D(s(o.webhookPrefixUrl)));
216
+ const ne = l(() => z(s(o.authPrefixUrl))), se = l(() => K(s(o.billingPrefixUrl))), le = l(() => _(s(o.onesPrefixUrl))), ce = l(() => L(s(o.logPrefixUrl))), ue = l(() => $(s(o.aiPrefixUrl))), fe = l(() => D(s(o.webhookPrefixUrl)));
214
217
  export {
215
218
  M as a,
216
219
  v as b,
217
- te as c,
218
- re as d,
219
- ie as e,
220
- ee as f,
220
+ oe as c,
221
+ te as d,
222
+ ne as e,
223
+ re as f,
221
224
  o as g,
222
- ne as h,
223
- V as i,
225
+ se as h,
226
+ W as i,
224
227
  w as j,
225
228
  A as k,
226
- ce as l,
227
- le as m,
229
+ ue as l,
230
+ ce as m,
228
231
  ae as n,
229
- se as o,
230
- C as p,
232
+ le as o,
233
+ ee as p,
231
234
  E as r,
232
- oe as s,
233
- W as t,
235
+ ie as s,
236
+ X as t,
234
237
  q as u,
235
- ue as w
238
+ fe as w
236
239
  };