@huyooo/ui 2.1.3 → 2.1.4

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 (45) hide show
  1. package/dist/{AuthkitAppSetting-1FsF45E3.js → AuthkitAppSetting-BJWwY3T-.js} +9 -9
  2. package/dist/{Contact-DBG20I8Y.js → Contact-BTQf8tEx.js} +3 -3
  3. package/dist/{CustomTable-HDwqEcmB.js → CustomTable-BY0oHLXc.js} +1 -1
  4. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-hveEkBb4.js → FeedbackModal.vue_vue_type_script_setup_true_lang-BJj1bNKu.js} +5 -5
  5. package/dist/{LandingPageSectionTabs-BT08gT7_.js → LandingPageSectionTabs-Bl6X2W5W.js} +2 -2
  6. package/dist/{LegalDocViewer-DvsnAv6f.js → LegalDocViewer-DCDSLVjc.js} +10 -10
  7. package/dist/{MessageHandle-BUufez4S.js → MessageHandle-DDGFSJMg.js} +3 -3
  8. package/dist/{MessageList-rttvPmxV.js → MessageList-CE5E_5Uv.js} +1 -1
  9. package/dist/{PaySubscriptions-Bv6LQ_Pf.js → PaySubscriptions-CXLqpfgf.js} +6 -6
  10. package/dist/{PricingPlans-CQaXgOIR.js → PricingPlans-CXk2DNb4.js} +4 -4
  11. package/dist/{ReferrerReferees-CGrH-gYJ.js → ReferrerReferees-ZhroFXBA.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CgZQOZYt.js → Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Di-VAlur.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-COM36ViG.js} +9 -9
  14. package/dist/{WidthContainer-BzU8aEwN.js → WidthContainer-CDf1GiFk.js} +10 -10
  15. package/dist/apiClients-CWSwNzGk.js +272 -0
  16. package/dist/authkit.js +10 -10
  17. package/dist/common.js +2 -2
  18. package/dist/composables.js +13 -13
  19. package/dist/feedback.js +2 -2
  20. package/dist/{fetchAuthPageAboutUs-DV7ArpNZ.js → fetchAuthPageAboutUs-CLQlGhQy.js} +2 -2
  21. package/dist/{index-Cn6LcfZO.js → index-BYH7DaQf.js} +1 -1
  22. package/dist/landingPage.js +1 -1
  23. package/dist/main.js +31 -31
  24. package/dist/message.js +5 -5
  25. package/dist/pay.js +4 -4
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/{runtime-Dp7MgwhI.js → runtime-DDJRAtkv.js} +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/upload.js +2 -2
  31. package/dist/{useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js → useAuthkitAppsAuthPageInfo-2izIyMfu.js} +6 -2
  32. package/dist/{useAuthkitAuth-cHrJMM8E.js → useAuthkitAuth-CWHJs8zY.js} +2 -2
  33. package/dist/{useAuthkitCreateAndUpdate-Bbv7vZZn.js → useAuthkitCreateAndUpdate-COI5KVPJ.js} +1 -1
  34. package/dist/{useAuthkitUsersProfile-8FzLTfUJ.js → useAuthkitUsersProfile-DX2PYmdU.js} +13 -9
  35. package/dist/{useBillingStatusOptions-Br-iL77Z.js → useBillingStatusOptions-C6edto7H.js} +1 -1
  36. package/dist/{useEnsureAuthenticated-C8qS8DLL.js → useEnsureAuthenticated-RZ1DflLz.js} +2 -2
  37. package/dist/{useLegalDocs-C4qk5CTb.js → useLegalDocs-xXYvYpPC.js} +2 -2
  38. package/dist/{useMessageNotifications-D9uikt21.js → useMessageNotifications-pxa5LHjV.js} +1 -1
  39. package/dist/{usePageSEO-Dl6_kBWP.js → usePageSEO-B3stKP3n.js} +2 -2
  40. package/dist/{useRoutePermission-DYPZgvYv.js → useRoutePermission-ZOeRg6Wq.js} +3 -3
  41. package/dist/{useSubscriptionCheckout-CYU2Ke0y.js → useSubscriptionCheckout-DAwwBVAk.js} +3 -3
  42. package/dist/user.js +1 -1
  43. package/dist/utils/passkeySupport.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/apiClients-Ctcq8NZs.js +0 -245
@@ -4,20 +4,20 @@ import { U as Be } from "./userMenuModal-D-nDaYqM.js";
4
4
  import { defineComponent as J, ref as A, computed as $, openBlock as h, createElementBlock as M, createElementVNode as z, createVNode as p, unref as n, withCtx as o, createTextVNode as k, createCommentVNode as E, toDisplayString as O, createBlock as I, onUnmounted as Ae, withDirectives as qe, vShow as Le, onMounted as de, Fragment as ie, createSlots as Me, normalizeClass as Pe, renderList as Ke, watch as Ie } from "vue";
5
5
  import { Avatar as Ee, Input as Q, Textarea as Fe, Button as T, Message as G, Form as le, FormItem as L, Alert as Y, Space as me, Popconfirm as He, Link as Ce, InputPassword as We, Result as Ge, Modal as Ye } from "@arco-design/web-vue";
6
6
  /* empty css */
7
- import { f as Je, g as U, b as je, h as Re } from "./apiClients-Ctcq8NZs.js";
8
- import { C as Qe } from "./index-Cn6LcfZO.js";
7
+ import { f as Je, g as U, b as je, h as Re } from "./apiClients-CWSwNzGk.js";
8
+ import { C as Qe } from "./index-BYH7DaQf.js";
9
9
  /* empty css */
10
- import { u as ne } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
11
- import { u as Se, g as Xe } from "./runtime-Dp7MgwhI.js";
10
+ import { u as ne } from "./useAuthkitUsersProfile-DX2PYmdU.js";
11
+ import { u as Se, g as Xe } from "./runtime-DDJRAtkv.js";
12
12
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { C as Ze } from "./CustomTable-HDwqEcmB.js";
16
- import { u as Ve } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
15
+ import { C as Ze } from "./CustomTable-BY0oHLXc.js";
16
+ import { u as Ve } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
17
17
  import { Icon as et } from "@iconify/vue";
18
18
  import { i as tt, M as it } from "./Menu-uCexrsKP.js";
19
- import { u as nt } from "./useAuthkitAuth-cHrJMM8E.js";
20
- import { u as at } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
19
+ import { u as nt } from "./useAuthkitAuth-CWHJs8zY.js";
20
+ import { u as at } from "./useAuthkitCreateAndUpdate-COI5KVPJ.js";
21
21
  const ot = {
22
22
  class: "personal-information"
23
23
  }, st = {
@@ -1040,7 +1040,7 @@ function se() {
1040
1040
  return typeof window > "u" ? "非浏览器环境,无法使用 Passkey" : window.isSecureContext ? be() ? null : "当前浏览器不支持 Passkey,请使用 Chrome / Safari / Edge" : "Passkey 需要在安全环境下使用(HTTPS,或 localhost)";
1041
1041
  }
1042
1042
  function Lt(e) {
1043
- return e instanceof Error ? e.name === "NotAllowedError" ? "已取消操作" : e.message.includes("WebAuthn is not supported") ? se() || "当前环境不支持 Passkey" : e.name === "NotSupportedError" ? "当前设备无可用认证器" : e.message || "Passkey 操作失败" : "Passkey 操作失败";
1043
+ return e instanceof Error ? e.name === "NotAllowedError" ? "已取消操作" : e.message.includes("WebAuthn is not supported") ? se() || "当前环境不支持 Passkey" : e.name === "NotSupportedError" ? "当前设备无可用认证器" : /failed to fetch|networkerror|load failed|network request failed/i.test(e.message) ? "网络异常,Passkey 验证失败,请稍后重试" : e.message || "Passkey 操作失败" : "Passkey 操作失败";
1044
1044
  }
1045
1045
  function Mt() {
1046
1046
  const e = navigator.userAgent;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as K, computed as D, ref as H, openBlock as F, createElementBlock as a, createVNode as B, withCtx as Q, unref as q, Fragment as P, renderList as U, createBlock as W, createTextVNode as c, toDisplayString as l, createElementVNode as g } from "vue";
2
2
  import { l as p, e as i, d as y, g as n, f as G, L as R, c as e, j as Z, k as b, i as J, a as S, b as O } from "./LandingPageLinkGroup-C4iHX7Hz.js";
3
3
  import { _ as t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { u as d } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
5
- import { u as x } from "./useLegalDocs-C4qk5CTb.js";
4
+ import { u as d } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
5
+ import { u as x } from "./useLegalDocs-xXYvYpPC.js";
6
6
  import { c as M } from "./index-D56hUMeD.js";
7
- import { u as m } from "./runtime-Dp7MgwhI.js";
7
+ import { u as m } from "./runtime-DDJRAtkv.js";
8
8
  const j = {
9
9
  class: "Footer"
10
10
  }, N = "京ICP备2024077422号", f = "https://beian.miit.gov.cn/#/Integrated/index", X = "support@huyooo.com", z = /* @__PURE__ */ K({
@@ -2,7 +2,7 @@
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import { I as Y } from "./userMenuModal-D-nDaYqM.js";
5
- import "./index-Cn6LcfZO.js";
5
+ import "./index-BYH7DaQf.js";
6
6
  /* empty css */
7
7
  import { defineComponent as L, openBlock as o, createElementBlock as s, normalizeClass as g, renderSlot as S, computed as m, useModel as W, createVNode as _, unref as r, withCtx as k, createElementVNode as u, normalizeStyle as N, createBlock as b, createCommentVNode as c, Fragment as p, renderList as B, toDisplayString as M, createTextVNode as Z, mergeModels as A, useSlots as I } from "vue";
8
8
  import { Spin as ee, Checkbox as T, Tooltip as E, Empty as te, Pagination as ie } from "@arco-design/web-vue";
@@ -5,17 +5,17 @@ import { defineComponent as j, useModel as nt, openBlock as s, createBlock as B,
5
5
  import { ImagePreviewGroup as we, Avatar as fe, Space as ve, Descriptions as dt, DescriptionsItem as ie, Tag as te, Spin as ft, Empty as vt, Button as _e, Message as ae, Form as pt, FormItem as Q, Input as mt, Select as Ae, Option as Re, Textarea as gt, Breadcrumb as bt, BreadcrumbItem as Pe, Modal as kt } from "@arco-design/web-vue";
6
6
  import { M as yt } from "./Menu-uCexrsKP.js";
7
7
  /* empty css */
8
- import { C as pe } from "./index-Cn6LcfZO.js";
8
+ import { C as pe } from "./index-BYH7DaQf.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { g as me } from "./apiClients-Ctcq8NZs.js";
11
+ import { g as me } from "./apiClients-CWSwNzGk.js";
12
12
  /* empty css */
13
- import { e as _t, u as Me } from "./runtime-Dp7MgwhI.js";
13
+ import { e as _t, u as Me } from "./runtime-DDJRAtkv.js";
14
14
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- import { r as ht, m as Be, a as wt, M as Ct } from "./MessageList-rttvPmxV.js";
15
+ import { r as ht, m as Be, a as wt, M as Ct } from "./MessageList-CE5E_5Uv.js";
16
16
  import { f as se } from "./index-D56hUMeD.js";
17
17
  import { Bubble as Le, Sender as St } from "ant-design-x-vue";
18
- import { u as Ut } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
18
+ import { u as Ut } from "./useAuthkitUsersProfile-DX2PYmdU.js";
19
19
  import { u as xt } from "./useUserMenu-ClPBlvaM.js";
20
20
  /* empty css */
21
21
  import { Icon as $t } from "@iconify/vue";
@@ -462,7 +462,7 @@ const q = /* @__PURE__ */ _(fe, [["render", be], ["__scopeId", "data-v-102e7fdf"
462
462
  class: "hero-image"
463
463
  }, null, 8, Je)])) : (s(), n("div", Ke, [f(o.$slots, "heroSource", {}, void 0, !0)]))]));
464
464
  }
465
- }), ha = /* @__PURE__ */ _(Qe, [["__scopeId", "data-v-9070fb47"]]), Xe = {
465
+ }), ha = /* @__PURE__ */ _(Qe, [["__scopeId", "data-v-7d0caa2c"]]), Xe = {
466
466
  class: "logos-list"
467
467
  }, Ye = /* @__PURE__ */ p({
468
468
  __name: "LandingPageLogos",
@@ -901,7 +901,7 @@ const $a = /* @__PURE__ */ _(Ct, [["render", St], ["__scopeId", "data-v-1f26d3ee
901
901
  _: 2
902
902
  }, 1024)])]))), 128))])], 2)], 2)]));
903
903
  }
904
- }), Pa = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-a5edd8ef"]]), Qt = ["onClick"], Xt = ["src", "alt"], Yt = {
904
+ }), Pa = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-19bea14c"]]), Qt = ["onClick"], Xt = ["src", "alt"], Yt = {
905
905
  class: "card-content"
906
906
  }, es = {
907
907
  class: "card-title"
@@ -4,23 +4,23 @@ import { useRouter as we, useRoute as qe } from "vue-router";
4
4
  /* empty css */
5
5
  import "./userMenuModal-D-nDaYqM.js";
6
6
  import { Message as ae, Form as E, FormItem as P, Input as C, Button as L, Link as Y, Tabs as ce, TabPane as pe, Checkbox as Oe, Modal as xe, List as Le, ListItem as oe, ListItemMeta as le, Avatar as te, Alert as ve, Spin as Be, Empty as Me } from "@arco-design/web-vue";
7
- import { a as F, u as N } from "./useAuthkitAuth-cHrJMM8E.js";
8
- import { g as B, u as _e } from "./apiClients-Ctcq8NZs.js";
9
- import { u as j } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
10
- import { o as ge, j as Fe, k as he, l as ke, u as De, m as He, n as X, p as Ee, i as Se, S as W, q as K, r as ze, s as Ie, t as ne, v as Ge, w as Ne, b as je } from "./AuthkitAppSetting-1FsF45E3.js";
7
+ import { a as F, u as N } from "./useAuthkitAuth-CWHJs8zY.js";
8
+ import { g as B, u as _e } from "./apiClients-CWSwNzGk.js";
9
+ import { u as j } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
10
+ import { o as ge, j as Fe, k as he, l as ke, u as De, m as He, n as X, p as Ee, i as Se, S as W, q as K, r as ze, s as Ie, t as ne, v as Ge, w as Ne, b as je } from "./AuthkitAppSetting-BJWwY3T-.js";
11
11
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  /* empty css */
13
- import "./index-Cn6LcfZO.js";
13
+ import "./index-BYH7DaQf.js";
14
14
  /* empty css */
15
- import { u as Ae, L as We, i as Ke } from "./useLegalDocs-C4qk5CTb.js";
16
- import { u as me } from "./runtime-Dp7MgwhI.js";
17
- import { u as Pe } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
15
+ import { u as Ae, L as We, i as Ke } from "./useLegalDocs-xXYvYpPC.js";
16
+ import { u as me } from "./runtime-DDJRAtkv.js";
17
+ import { u as Pe } from "./useAuthkitUsersProfile-DX2PYmdU.js";
18
18
  /* empty css */
19
19
  /* empty css */
20
- import "./CustomTable-HDwqEcmB.js";
20
+ import "./CustomTable-BY0oHLXc.js";
21
21
  /* empty css */
22
22
  import { TiptapEditor as Je, TiptapTitle as Qe } from "@huyooo/vue-tiptap";
23
- import { f as Xe } from "./fetchAuthPageAboutUs-DV7ArpNZ.js";
23
+ import { f as Xe } from "./fetchAuthPageAboutUs-CLQlGhQy.js";
24
24
  const Ye = ["title", "aria-label", "disabled"], Ze = {
25
25
  key: 0,
26
26
  class: "OAuthItem__spinner"
@@ -3,13 +3,13 @@ import { defineComponent as $, computed as D, openBlock as p, createElementBlock
3
3
  /* empty css */
4
4
  import { U as re } from "./userMenuModal-D-nDaYqM.js";
5
5
  /* empty css */
6
- import { M as q, a as j, u as ue } from "./MessageList-rttvPmxV.js";
6
+ import { M as q, a as j, u as ue } from "./MessageList-CE5E_5Uv.js";
7
7
  import { Descriptions as ce, Spin as ae, Breadcrumb as F, BreadcrumbItem as E, Tag as K, Modal as de } from "@arco-design/web-vue";
8
- import { g as A } from "./apiClients-Ctcq8NZs.js";
8
+ import { g as A } from "./apiClients-CWSwNzGk.js";
9
9
  import { TiptapEditor as pe, TiptapTitle as fe } from "@huyooo/vue-tiptap";
10
10
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { Icon as ge } from "@iconify/vue";
12
- import { u as ve } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
12
+ import { u as ve } from "./useAuthkitCreateAndUpdate-COI5KVPJ.js";
13
13
  import { M as ye } from "./Menu-uCexrsKP.js";
14
14
  function P(a, t, u) {
15
15
  if (a == null || a === "")
@@ -1,5 +1,5 @@
1
1
  import { ref as z, computed as I, readonly as V, defineComponent as b, openBlock as i, createElementBlock as v, normalizeClass as M, createElementVNode as m, createCommentVNode as k, renderSlot as r, toDisplayString as B, createBlock as g, unref as f, withCtx as l, createTextVNode as c, createVNode as N, Fragment as S, renderList as L, createSlots as _, mergeProps as p } from "vue";
2
- import { g as C } from "./apiClients-Ctcq8NZs.js";
2
+ import { g as C } from "./apiClients-CWSwNzGk.js";
3
3
  /* empty css */
4
4
  import { I as E } from "./userMenuModal-D-nDaYqM.js";
5
5
  import { Tag as $, Button as P, Empty as U } from "@arco-design/web-vue";
@@ -6,14 +6,14 @@
6
6
  import { U as Nt } from "./userMenuModal-D-nDaYqM.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import { g as S } from "./apiClients-Ctcq8NZs.js";
9
+ import { g as S } from "./apiClients-CWSwNzGk.js";
10
10
  import { ref as _, computed as W, onUnmounted as Fe, defineComponent as zt, openBlock as l, createElementBlock as d, Fragment as X, createVNode as c, unref as n, isRef as Tt, withCtx as i, createElementVNode as a, toDisplayString as r, createBlock as K, createTextVNode as g, createCommentVNode as O, renderList as Te, normalizeClass as Ae } from "vue";
11
11
  import { Modal as Oe, Button as P, Popconfirm as Z, Tabs as At, TabPane as ee, Spin as de, Empty as We, Progress as Ot, Tooltip as pe, Tag as J, Message as M } from "@arco-design/web-vue";
12
- import { u as Wt, b as Lt, a as Rt } from "./useBillingStatusOptions-Br-iL77Z.js";
13
- import { u as Et } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
14
- import { g as $t } from "./runtime-Dp7MgwhI.js";
15
- import { C as ve } from "./CustomTable-HDwqEcmB.js";
16
- import { C as Le } from "./index-Cn6LcfZO.js";
12
+ import { u as Wt, b as Lt, a as Rt } from "./useBillingStatusOptions-C6edto7H.js";
13
+ import { u as Et } from "./useAuthkitCreateAndUpdate-COI5KVPJ.js";
14
+ import { g as $t } from "./runtime-DDJRAtkv.js";
15
+ import { C as ve } from "./CustomTable-BY0oHLXc.js";
16
+ import { C as Le } from "./index-BYH7DaQf.js";
17
17
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  function Be() {
19
19
  return {
@@ -1,16 +1,16 @@
1
1
  /* empty css */
2
2
  import "./userMenuModal-D-nDaYqM.js";
3
- import { g as ve } from "./apiClients-Ctcq8NZs.js";
3
+ import { g as ve } from "./apiClients-CWSwNzGk.js";
4
4
  /* empty css */
5
5
  import { defineComponent as K, computed as h, onMounted as ne, onUnmounted as pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as O, toDisplayString as a, createVNode as k, withCtx as w, createTextVNode as R, ref as ye, resolveDirective as he, withDirectives as ke, normalizeClass as L, Fragment as I, renderList as C, createCommentVNode as y } from "vue";
6
6
  import { Spin as se, Button as A, Message as F } from "@arco-design/web-vue";
7
7
  import { useRoute as be, useRouter as Te } from "vue-router";
8
- import { b as we } from "./PaySubscriptions-Bv6LQ_Pf.js";
8
+ import { b as we } from "./PaySubscriptions-CXLqpfgf.js";
9
9
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { L as Ie, a as Ce, b as Be } from "./LandingPageSectionHeader-3hiuw6G0.js";
11
11
  import { Icon as te } from "@iconify/vue";
12
- import { u as Le, a as Re } from "./useSubscriptionCheckout-CYU2Ke0y.js";
13
- import { u as Ae } from "./useEnsureAuthenticated-C8qS8DLL.js";
12
+ import { u as Le, a as Re } from "./useSubscriptionCheckout-DAwwBVAk.js";
13
+ import { u as Ae } from "./useEnsureAuthenticated-RZ1DflLz.js";
14
14
  const kt = "/Pay/Return";
15
15
  function G(l) {
16
16
  const _ = typeof l.scene == "string" ? l.scene : null, c = typeof l.orderId == "string" ? l.orderId : null, d = typeof l.returnTo == "string" ? l.returnTo.trim() : null, P = d != null && d.startsWith("/") && !d.startsWith("//") ? d : null;
@@ -3,12 +3,12 @@
3
3
  import { U as V } from "./userMenuModal-D-nDaYqM.js";
4
4
  import { defineComponent as U, computed as k, openBlock as M, createElementBlock as R, createVNode as b, unref as o, withCtx as I, createTextVNode as A, toDisplayString as g, createElementVNode as m, createCommentVNode as w, ref as _, createBlock as x } from "vue";
5
5
  import { Avatar as W, Modal as z } from "@arco-design/web-vue";
6
- import { g as B } from "./apiClients-Ctcq8NZs.js";
7
- import { C as P } from "./CustomTable-HDwqEcmB.js";
8
- import { C as G } from "./index-Cn6LcfZO.js";
6
+ import { g as B } from "./apiClients-CWSwNzGk.js";
7
+ import { C as P } from "./CustomTable-BY0oHLXc.js";
8
+ import { C as G } from "./index-BYH7DaQf.js";
9
9
  /* empty css */
10
10
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as H } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
11
+ import { u as H } from "./useAuthkitUsersProfile-DX2PYmdU.js";
12
12
  const j = {
13
13
  email: "邮箱",
14
14
  phone: "手机",
@@ -6,7 +6,7 @@
6
6
  /* empty css */
7
7
  import { defineComponent as k, openBlock as h, createBlock as y, unref as S, mergeProps as q, createSlots as v, withCtx as p, renderSlot as a } from "vue";
8
8
  import { Upload as I } from "@arco-design/web-vue";
9
- import { u as _ } from "./runtime-Dp7MgwhI.js";
9
+ import { u as _ } from "./runtime-DDJRAtkv.js";
10
10
  const j = /* @__PURE__ */ k({
11
11
  __name: "Upload",
12
12
  props: {
@@ -1,20 +1,20 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import "./index-Cn6LcfZO.js";
3
+ import "./index-BYH7DaQf.js";
4
4
  import { defineComponent as m, computed as b, openBlock as r, createElementBlock as p, toDisplayString as $, createCommentVNode as U, createVNode as _, unref as t, createBlock as v, withCtx as g, createTextVNode as k, ref as C, createElementVNode as d, watch as x, onMounted as ne, Fragment as q, normalizeClass as G, renderSlot as A } from "vue";
5
5
  import { Avatar as J, Button as N, Dropdown as te, Badge as se } from "@arco-design/web-vue";
6
- import { u as R } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
6
+ import { u as R } from "./useAuthkitUsersProfile-DX2PYmdU.js";
7
7
  import { u as y } from "./useUserMenu-ClPBlvaM.js";
8
8
  /* empty css */
9
- import { g as K, a as ae, R as oe } from "./ReferrerReferees-CGrH-gYJ.js";
9
+ import { g as K, a as ae, R as oe } from "./ReferrerReferees-ZhroFXBA.js";
10
10
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
- import { u as ie } from "./apiClients-Ctcq8NZs.js";
13
- import { f as re, u as le, g as ue, c as ce, s as de, P as pe } from "./PaySubscriptions-Bv6LQ_Pf.js";
14
- import { d as me } from "./useBillingStatusOptions-Br-iL77Z.js";
15
- import { A as fe } from "./AuthkitAppSetting-1FsF45E3.js";
16
- import { c as _e, u as Q } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-hveEkBb4.js";
17
- import { M as ve } from "./MessageHandle-BUufez4S.js";
12
+ import { u as ie } from "./apiClients-CWSwNzGk.js";
13
+ import { f as re, u as le, g as ue, c as ce, s as de, P as pe } from "./PaySubscriptions-CXLqpfgf.js";
14
+ import { d as me } from "./useBillingStatusOptions-C6edto7H.js";
15
+ import { A as fe } from "./AuthkitAppSetting-BJWwY3T-.js";
16
+ import { c as _e, u as Q } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-BJj1bNKu.js";
17
+ import { M as ve } from "./MessageHandle-DDGFSJMg.js";
18
18
  import "./Menu-uCexrsKP.js";
19
19
  import { Icon as ge } from "@iconify/vue";
20
20
  const be = {
@@ -2,27 +2,27 @@
2
2
  import "./userMenuModal-D-nDaYqM.js";
3
3
  import { defineComponent as P, ref as A, watch as N, openBlock as n, createElementBlock as s, createElementVNode as a, createVNode as r, unref as u, withCtx as B, createTextVNode as H, renderSlot as W, toDisplayString as T, createCommentVNode as x, onMounted as F, onBeforeUnmount as J, normalizeClass as M, Fragment as L, renderList as D, createBlock as Q, Teleport as ge, nextTick as j, computed as U, normalizeStyle as O } from "vue";
4
4
  import { Spin as X } from "@arco-design/web-vue";
5
- import { u as Y } from "./useAuthkitAuth-cHrJMM8E.js";
6
- import "./apiClients-Ctcq8NZs.js";
7
- import { u as ye } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
8
- import { s as be, a as ke } from "./runtime-Dp7MgwhI.js";
5
+ import { u as Y } from "./useAuthkitAuth-CWHJs8zY.js";
6
+ import "./apiClients-CWSwNzGk.js";
7
+ import { u as ye } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
8
+ import { s as be, a as ke } from "./runtime-DDJRAtkv.js";
9
9
  import "@vafast/api-client";
10
- import "./useAuthkitUsersProfile-8FzLTfUJ.js";
10
+ import "./useAuthkitUsersProfile-DX2PYmdU.js";
11
11
  import { useRouter as Z, useRoute as ee } from "vue-router";
12
- import { b as te, c as ne, f as oe, w as se, a as ae, d as re } from "./useRoutePermission-DYPZgvYv.js";
12
+ import { b as te, c as ne, f as oe, w as se, a as ae, d as re } from "./useRoutePermission-ZOeRg6Wq.js";
13
13
  import "@unhead/vue";
14
14
  import "./useUserMenu-ClPBlvaM.js";
15
- import { c as ie, h as ue, k as le, _ as ce, f as de, j as me, d as pe, g as R, U as we, i as he } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Di-VAlur.js";
16
- import "./PaySubscriptions-Bv6LQ_Pf.js";
15
+ import { c as ie, h as ue, k as le, _ as ce, f as de, j as me, d as pe, g as R, U as we, i as he } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-COM36ViG.js";
16
+ import "./PaySubscriptions-CXLqpfgf.js";
17
17
  /* empty css */
18
18
  /* empty css */
19
19
  import { M as $e } from "./Menu-uCexrsKP.js";
20
20
  import "./CollapseItem-DUzZA6tx.js";
21
21
  /* empty css */
22
22
  /* empty css */
23
- import "./index-Cn6LcfZO.js";
23
+ import "./index-BYH7DaQf.js";
24
24
  /* empty css */
25
- import "./CustomTable-HDwqEcmB.js";
25
+ import "./CustomTable-BY0oHLXc.js";
26
26
  import "@vueuse/core";
27
27
  import "./index-D56hUMeD.js";
28
28
  import { Icon as z } from "@iconify/vue";
@@ -0,0 +1,272 @@
1
+ import { eden as f, defineMiddleware as p, createClient as j } from "@vafast/api-client";
2
+ /* empty css */
3
+ import { Message as $ } from "@arco-design/web-vue";
4
+ import { ref as M, computed as A } from "vue";
5
+ function g(e, t = 3) {
6
+ const n = e.indexOf("@");
7
+ if (n > 1) {
8
+ const o = e.slice(0, t), u = e.slice(n);
9
+ return o + "***" + u;
10
+ }
11
+ return e;
12
+ }
13
+ function O(e) {
14
+ const t = e.trim();
15
+ return t.length < 7 ? t : `${t.slice(0, 3)}****${t.slice(-4)}`;
16
+ }
17
+ const z = {
18
+ normal: "正常",
19
+ pending: "待完善",
20
+ forbidden: "已禁用",
21
+ deleted: "已注销"
22
+ };
23
+ function se(e) {
24
+ return e ? z[e] ?? e : "-";
25
+ }
26
+ function ue(e) {
27
+ var n, o, u, h, m, w, i, a, r;
28
+ const t = [];
29
+ if ((n = e.email) != null && n.trim() && t.push(g(e.email.trim())), (o = e.phone) != null && o.trim() && t.push(O(e.phone.trim())), e.wechat) {
30
+ const s = (u = e.wechat.nickname) == null ? void 0 : u.trim();
31
+ t.push(s ? `微信(${s})` : "微信");
32
+ }
33
+ return (m = (h = e.github) == null ? void 0 : h.login) != null && m.trim() && t.push(`GitHub(${e.github.login.trim()})`), (i = (w = e.google) == null ? void 0 : w.email) != null && i.trim() && t.push(g(e.google.email.trim())), (r = (a = e.microsoft) == null ? void 0 : a.email) != null && r.trim() && t.push(g(e.microsoft.email.trim())), t.length > 0 ? t.join(" / ") : "-";
34
+ }
35
+ const k = /* @__PURE__ */ new Set();
36
+ function le(e) {
37
+ return k.add(e), () => {
38
+ k.delete(e);
39
+ };
40
+ }
41
+ function P() {
42
+ try {
43
+ localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
44
+ } catch (e) {
45
+ console.warn("Failed to clear localStorage:", e);
46
+ }
47
+ k.forEach((e) => e());
48
+ }
49
+ function ce(e) {
50
+ try {
51
+ localStorage.setItem("jwtToken", e.jwtToken), localStorage.setItem("refreshToken", e.refreshToken);
52
+ } catch (t) {
53
+ console.warn("Failed to set localStorage:", t);
54
+ }
55
+ }
56
+ function H() {
57
+ try {
58
+ return localStorage.getItem("refreshToken");
59
+ } catch (e) {
60
+ return console.warn("Failed to get refreshToken from localStorage:", e), null;
61
+ }
62
+ }
63
+ function L(e) {
64
+ try {
65
+ localStorage.setItem("jwtToken", e);
66
+ } catch (t) {
67
+ console.warn("Failed to update jwtToken in localStorage:", t);
68
+ }
69
+ }
70
+ function N(e) {
71
+ return f(e);
72
+ }
73
+ function _(e) {
74
+ return f(e);
75
+ }
76
+ function B(e) {
77
+ return f(e);
78
+ }
79
+ function x(e) {
80
+ return f(e);
81
+ }
82
+ function D(e) {
83
+ return f(e);
84
+ }
85
+ function F(e) {
86
+ return f(e);
87
+ }
88
+ const y = M(!1), S = M("signIn");
89
+ function q(e) {
90
+ e != null && e.view && (S.value = e.view), y.value = !0;
91
+ }
92
+ function J() {
93
+ y.value = !1, S.value = "signIn";
94
+ }
95
+ function K() {
96
+ return {
97
+ open: q,
98
+ close: J,
99
+ isOpen: A(() => y.value),
100
+ view: A(() => S.value)
101
+ };
102
+ }
103
+ const T = 40101, E = 401, G = ["/apps/authPageInfo", "/users/profile"];
104
+ function Q(e) {
105
+ var t;
106
+ return e.status === E || ((t = e.error) == null ? void 0 : t.code) === E;
107
+ }
108
+ function V(e) {
109
+ var t;
110
+ return Q(e) && ((t = e.error) == null ? void 0 : t.code) !== T;
111
+ }
112
+ function W() {
113
+ const {
114
+ open: e
115
+ } = K();
116
+ e();
117
+ }
118
+ function I() {
119
+ P(), W();
120
+ }
121
+ function X() {
122
+ P();
123
+ }
124
+ function b(e) {
125
+ return G.some((t) => e.includes(t));
126
+ }
127
+ function R(e) {
128
+ if (e.type === "network" || e.type === "timeout" || e.type === "abort")
129
+ return !0;
130
+ const t = e.message || "";
131
+ return /failed to fetch|networkerror|load failed|network request failed|请求超时|请求已取消|network error/i.test(t);
132
+ }
133
+ function Z(e, t) {
134
+ return !!(e.meta.get("silentError") === !0 || b(e.path) && R(t));
135
+ }
136
+ function Y(e) {
137
+ return R(e) ? e.type === "timeout" || e.message.includes("超时") ? "请求超时,请稍后重试" : e.type === "abort" || e.message.includes("取消") ? "请求已取消" : "网络异常,请稍后重试" : e.message || "请求失败";
138
+ }
139
+ function ee(e, t, n) {
140
+ console.warn(n ? "[api:silent]" : "[api]", e.method, e.path, t.type || "unknown", t.code, t.message);
141
+ }
142
+ async function te(e) {
143
+ const t = H();
144
+ if (!t)
145
+ throw new Error("No refresh token available");
146
+ try {
147
+ const o = await (await fetch(`${e.authPrefixUrl}/auth/refresh`, {
148
+ method: "POST",
149
+ headers: {
150
+ "Content-Type": "application/json",
151
+ "app-id": e.appId
152
+ },
153
+ body: JSON.stringify({
154
+ refreshToken: t
155
+ })
156
+ })).json();
157
+ if (o.jwtToken)
158
+ return L(o.jwtToken), o.refreshToken && localStorage.setItem("refreshToken", o.refreshToken), o.jwtToken;
159
+ throw new Error(o.message || "Token refresh failed");
160
+ } catch (n) {
161
+ throw console.error("Token refresh failed:", n), n;
162
+ }
163
+ }
164
+ function v(e) {
165
+ let t = !1, n = [];
166
+ function o(i, a = null) {
167
+ n.forEach(({
168
+ resolve: r,
169
+ reject: s
170
+ }) => {
171
+ i ? s(i) : a && r(a);
172
+ }), n = [];
173
+ }
174
+ const u = p(async (i, a) => (i.headers.set("app-id", e.appId), a()), {
175
+ name: "app-id"
176
+ }), h = p(async (i, a) => {
177
+ const r = e.getAccessToken();
178
+ return r && i.headers.set("authorization", `Bearer ${r}`), a();
179
+ }, {
180
+ name: "token"
181
+ }), m = p(async (i, a) => {
182
+ var s;
183
+ const r = await a();
184
+ if (((s = r.error) == null ? void 0 : s.code) !== T)
185
+ return r;
186
+ if (t)
187
+ return new Promise((l, U) => {
188
+ n.push({
189
+ resolve: async (C) => {
190
+ i.headers.set("authorization", `Bearer ${C}`), l(await a());
191
+ },
192
+ reject: () => U(r)
193
+ });
194
+ });
195
+ t = !0;
196
+ try {
197
+ const l = await te(e);
198
+ return o(null, l), i.headers.set("authorization", `Bearer ${l}`), await a();
199
+ } catch (l) {
200
+ return o(l, null), I(), r;
201
+ } finally {
202
+ t = !1;
203
+ }
204
+ }, {
205
+ name: "token-refresh"
206
+ }), w = p(async (i, a) => {
207
+ const r = await a();
208
+ if (V(r))
209
+ return b(i.path) ? (X(), r) : (I(), r);
210
+ if (r.error && r.error.code !== T) {
211
+ const s = Z(i, r.error);
212
+ ee(i, r.error, s), s || $.error(Y(r.error));
213
+ }
214
+ return r;
215
+ }, {
216
+ name: "error-message"
217
+ });
218
+ return {
219
+ appIdMiddleware: u,
220
+ tokenMiddleware: h,
221
+ tokenRefreshMiddleware: m,
222
+ errorMessageMiddleware: w
223
+ };
224
+ }
225
+ function fe(e, t) {
226
+ const {
227
+ tokenRefreshMiddleware: n,
228
+ errorMessageMiddleware: o
229
+ } = v(t);
230
+ return e.use(n).use(o);
231
+ }
232
+ function c(e, t) {
233
+ return j({
234
+ baseURL: e,
235
+ timeout: 3e4
236
+ }).use(t.appIdMiddleware).use(t.tokenMiddleware).use(t.tokenRefreshMiddleware).use(t.errorMessageMiddleware);
237
+ }
238
+ function re(e) {
239
+ const t = v(e);
240
+ return {
241
+ auth: _(c(e.authPrefixUrl, t)),
242
+ billing: B(c(e.billingPrefixUrl, t)),
243
+ ones: D(c(e.onesPrefixUrl, t)),
244
+ log: x(c(e.logPrefixUrl, t)),
245
+ ai: N(c(e.aiPrefixUrl, t)),
246
+ webhook: F(c(e.webhookPrefixUrl, t))
247
+ };
248
+ }
249
+ let d = null;
250
+ function he(e) {
251
+ if (d)
252
+ throw new Error("Huyooo UI Runtime 已初始化,不能重复创建");
253
+ return d = re(e), d;
254
+ }
255
+ function de() {
256
+ if (!d)
257
+ throw new Error("请先在应用入口调用 app.use(createHuyoooUI(config))");
258
+ return d;
259
+ }
260
+ export {
261
+ ue as b,
262
+ v as c,
263
+ se as f,
264
+ de as g,
265
+ g as h,
266
+ he as i,
267
+ le as o,
268
+ P as r,
269
+ ce as s,
270
+ K as u,
271
+ fe as w
272
+ };
package/dist/authkit.js CHANGED
@@ -1,13 +1,13 @@
1
- import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as n, e as k, f as d, S as g, g as l, h as p, u as P, i as f } from "./AuthkitAppSetting-1FsF45E3.js";
2
- import { A as m, a as S, b as L, c as O, d as U, E as w, e as x, f as B, g as D, O as E, h as b, P as y, i as C, j as I, _ as v, R as V, S as _, k as R, l as T, m as G, n as M, o as j, p as z, L as F } from "./LegalDocViewer-DvsnAv6f.js";
3
- import { u as Y } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
4
- import { u as H } from "./useAuthkitAuth-cHrJMM8E.js";
5
- import { u as N } from "./apiClients-Ctcq8NZs.js";
6
- import { u as W } from "./useEnsureAuthenticated-C8qS8DLL.js";
7
- import { L as Z, a as $, b as tt, i as at, o as st, r as it, c as et, u as ut } from "./useLegalDocs-C4qk5CTb.js";
8
- import { f as At } from "./fetchAuthPageAboutUs-DV7ArpNZ.js";
9
- import { u as rt } from "./useAuthkitUsersProfile-8FzLTfUJ.js";
10
- import { u as kt } from "./useAuthkitCreateAndUpdate-Bbv7vZZn.js";
1
+ import { A as s, B as i, a as e, _ as u, b as h, O as A, P as o, c as r, d as n, e as k, f as d, S as g, g as l, h as p, u as P, i as f } from "./AuthkitAppSetting-BJWwY3T-.js";
2
+ import { A as m, a as S, b as L, c as O, d as U, E as w, e as x, f as B, g as D, O as E, h as b, P as y, i as C, j as I, _ as v, R as V, S as _, k as R, l as T, m as G, n as M, o as j, p as z, L as F } from "./LegalDocViewer-DCDSLVjc.js";
3
+ import { u as Y } from "./useAuthkitAppsAuthPageInfo-2izIyMfu.js";
4
+ import { u as H } from "./useAuthkitAuth-CWHJs8zY.js";
5
+ import { u as N } from "./apiClients-CWSwNzGk.js";
6
+ import { u as W } from "./useEnsureAuthenticated-RZ1DflLz.js";
7
+ import { L as Z, a as $, b as tt, i as at, o as st, r as it, c as et, u as ut } from "./useLegalDocs-xXYvYpPC.js";
8
+ import { f as At } from "./fetchAuthPageAboutUs-CLQlGhQy.js";
9
+ import { u as rt } from "./useAuthkitUsersProfile-DX2PYmdU.js";
10
+ import { u as kt } from "./useAuthkitCreateAndUpdate-COI5KVPJ.js";
11
11
  export {
12
12
  s as AuthkitAppSetting,
13
13
  m as AuthkitAuth,
package/dist/common.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-BzU8aEwN.js";
1
+ import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-CDf1GiFk.js";
2
2
  import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
3
- import { C as x, E as b } from "./CustomTable-HDwqEcmB.js";
3
+ import { C as x, E as b } from "./CustomTable-BY0oHLXc.js";
4
4
  import { L } from "./Logo-B9DFBxDU.js";
5
5
  import { M as g, a as A } from "./Menu-uCexrsKP.js";
6
6
  export {