@huyooo/ui 1.0.6 → 2.0.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 (75) hide show
  1. package/dist/AuthkitAppSetting-rtYZcSAR.js +2677 -0
  2. package/dist/{Contact-BWuVR9ho.js → Contact-CcWf3UEZ.js} +9 -9
  3. package/dist/{CustomTable-BzGfaAVH.js → CustomTable-HDwqEcmB.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DpOmbAg-.js +1491 -0
  5. package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-C0tsIbz9.js} +747 -748
  6. package/dist/MessageHandle-BUufez4S.js +1233 -0
  7. package/dist/{MessageList-Ce-_LNTk.js → MessageList-rttvPmxV.js} +4 -4
  8. package/dist/PaySubscriptions-p75aBnHm.js +1331 -0
  9. package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CQ0qk9Hb.js} +99 -105
  10. package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BU9IEQgz.js} +47 -46
  11. package/dist/Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js +78 -0
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js} +64 -65
  13. package/dist/WidthContainer-DSE4QbW0.js +717 -0
  14. package/dist/api/billingSubscriptionApi.d.ts +4 -1
  15. package/dist/apiClients-Ctcq8NZs.js +245 -0
  16. package/dist/authkit.js +10 -10
  17. package/dist/common/globalConfig.d.ts +36 -18
  18. package/dist/common.js +2 -2
  19. package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
  20. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
  21. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +30 -0
  22. package/dist/components/Upload/Upload.vue.d.ts +6 -6
  23. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
  24. package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
  25. package/dist/composables/uploadFeedbackAttachment.d.ts +2 -1
  26. package/dist/composables/useMessageList.d.ts +2 -1
  27. package/dist/composables.d.ts +2 -2
  28. package/dist/composables.js +46 -46
  29. package/dist/feedback.js +2 -2
  30. package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-DiCqMUX3.js} +4 -4
  31. package/dist/{index-BkLvw1PU.js → index-Cn6LcfZO.js} +1 -1
  32. package/dist/legalDocs/resolveAppId.d.ts +1 -1
  33. package/dist/main.d.ts +4 -3
  34. package/dist/main.js +464 -469
  35. package/dist/message.js +53 -52
  36. package/dist/pay.js +4 -4
  37. package/dist/privateCom.js +1 -1
  38. package/dist/referrer.js +1 -1
  39. package/dist/{useUploadCos-C8BqFPkx.js → runtime-BzCSCUNv.js} +2712 -2609
  40. package/dist/runtime.d.ts +18 -0
  41. package/dist/style.css +1 -1
  42. package/dist/types/api/auth.generated.d.ts +0 -10
  43. package/dist/upload/browserCosTransport.d.ts +25 -0
  44. package/dist/upload/browserUploadService.d.ts +20 -0
  45. package/dist/upload.d.ts +2 -1
  46. package/dist/upload.js +5 -4
  47. package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js} +18 -21
  48. package/dist/useAuthkitAuth-BPTZUSkM.js +272 -0
  49. package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-Bbv7vZZn.js} +1 -1
  50. package/dist/useAuthkitUsersProfile-CW_exa7E.js +39 -0
  51. package/dist/useBillingStatusOptions-Br-iL77Z.js +61 -0
  52. package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-CncOvj2H.js} +2 -2
  53. package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-D44qU_q0.js} +25 -25
  54. package/dist/useMessageNotifications-D9uikt21.js +80 -0
  55. package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BrQX7NTq.js} +2 -2
  56. package/dist/{useSEO-CDWxbk8B.js → useSEO-_TNouXE_.js} +89 -86
  57. package/dist/useSubscriptionCheckout-BDDCRxSs.js +353 -0
  58. package/dist/user.js +1 -1
  59. package/dist/utils/apiClients.d.ts +20 -12
  60. package/dist/utils/apiMiddlewares.d.ts +9 -23
  61. package/package.json +1 -1
  62. package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
  63. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +0 -1480
  64. package/dist/MessageHandle-mEkCsv9e.js +0 -1173
  65. package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
  66. package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
  67. package/dist/WidthContainer-PeWkCK0p.js +0 -721
  68. package/dist/apiClients-BcXOLuYu.js +0 -272
  69. package/dist/composables/Upload/useUploadCos.d.ts +0 -12
  70. package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
  71. package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
  72. package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
  73. package/dist/useMessageNotifications-CAphguOm.js +0 -75
  74. package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
  75. package/dist/utils/billingFetch.d.ts +0 -1
@@ -1,16 +1,16 @@
1
1
  /* empty css */
2
2
  import "./userMenuModal-D-nDaYqM.js";
3
- import { f as ve } from "./apiClients-BcXOLuYu.js";
3
+ import { g as ve } from "./apiClients-Ctcq8NZs.js";
4
4
  /* empty css */
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 A, ref as ye, resolveDirective as he, withDirectives as ke, normalizeClass as R, Fragment as I, renderList as C, createCommentVNode as y } from "vue";
6
- import { Spin as se, Button as D, Message as B } from "@arco-design/web-vue";
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
+ 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-CXkEjqr2.js";
8
+ import { b as we } from "./PaySubscriptions-p75aBnHm.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-d_M_rKRa.js";
13
- import { u as Ae } from "./useEnsureAuthenticated-DNkCCy_Y.js";
12
+ import { u as Le, a as Re } from "./useSubscriptionCheckout-BDDCRxSs.js";
13
+ import { u as Ae } from "./useEnsureAuthenticated-CncOvj2H.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;
@@ -40,10 +40,10 @@ const Se = {
40
40
  }, Fe = {
41
41
  key: 2,
42
42
  class: "payment-return-icon failed"
43
- }, Ee = {
43
+ }, Ne = {
44
44
  key: 3,
45
45
  class: "payment-return-actions"
46
- }, Ne = {
46
+ }, Ee = {
47
47
  key: 4,
48
48
  class: "payment-return-actions"
49
49
  }, xe = /* @__PURE__ */ K({
@@ -59,14 +59,14 @@ const Se = {
59
59
  return De(c.query, _.defaultReturnTo);
60
60
  }
61
61
  const {
62
- phase: f,
63
- message: b,
64
- checking: E,
65
- confirmPayment: S,
66
- stopPolling: N,
67
- verifyNow: $
68
- } = we(P), q = h(() => f.value === "success" ? "支付成功" : f.value === "failed" ? "支付未完成" : "正在确认支付");
69
- function L() {
62
+ phase: g,
63
+ message: f,
64
+ checking: N,
65
+ confirmPayment: D,
66
+ stopPolling: E,
67
+ verifyNow: S
68
+ } = we(P), $ = h(() => g.value === "success" ? "支付成功" : g.value === "failed" ? "支付未完成" : "正在确认支付");
69
+ function B() {
70
70
  d.replace(P());
71
71
  }
72
72
  async function x() {
@@ -75,21 +75,21 @@ const Se = {
75
75
  orderId: u
76
76
  } = G(c.query);
77
77
  if (!m || !u) {
78
- B.error("支付参数无效");
78
+ F.error("支付参数无效");
79
79
  return;
80
80
  }
81
- try {
82
- const v = await $(m, u);
83
- if (v.success) {
84
- f.value = "success", b.value = v.message || "支付成功", window.setTimeout(() => {
85
- d.replace(P());
86
- }, 1200);
87
- return;
88
- }
89
- b.value = v.message || "等待支付确认...";
90
- } catch (v) {
91
- B.error(v instanceof Error ? v.message : "确认支付失败");
81
+ const b = await S(m, u);
82
+ if (b.error) {
83
+ g.value = "failed", f.value = b.message || "确认支付失败";
84
+ return;
92
85
  }
86
+ if (b.success) {
87
+ g.value = "success", f.value = b.message || "支付成功", window.setTimeout(() => {
88
+ d.replace(P());
89
+ }, 1200);
90
+ return;
91
+ }
92
+ f.value = b.message || "等待支付确认...";
93
93
  }
94
94
  return ne(() => {
95
95
  const {
@@ -97,40 +97,40 @@ const Se = {
97
97
  orderId: u
98
98
  } = G(c.query);
99
99
  if (!m || !u) {
100
- f.value = "failed", b.value = "缺少支付回跳参数";
100
+ g.value = "failed", f.value = "缺少支付回跳参数";
101
101
  return;
102
102
  }
103
103
  if (m === "agreement") {
104
- f.value = "success", b.value = "签约流程已完成,正在返回...", window.setTimeout(() => {
104
+ g.value = "success", f.value = "签约流程已完成,正在返回...", window.setTimeout(() => {
105
105
  d.replace(P());
106
106
  }, 1200);
107
107
  return;
108
108
  }
109
- S(m, u);
110
- }), pe(N), (m, u) => (n(), s("div", Se, [i("div", $e, [e(f) === "loading" ? (n(), O(e(se), {
109
+ D(m, u);
110
+ }), pe(E), (m, u) => (n(), s("div", Se, [i("div", $e, [e(g) === "loading" ? (n(), O(e(se), {
111
111
  key: 0,
112
112
  size: 36
113
- })) : e(f) === "success" ? (n(), s("div", qe, "✓")) : (n(), s("div", Fe, "!")), i("h1", null, a(q.value), 1), i("p", null, a(e(b)), 1), e(f) === "loading" ? (n(), s("div", Ee, [k(e(D), {
114
- loading: e(E),
113
+ })) : e(g) === "success" ? (n(), s("div", qe, "✓")) : (n(), s("div", Fe, "!")), i("h1", null, a($.value), 1), i("p", null, a(e(f)), 1), e(g) === "loading" ? (n(), s("div", Ne, [k(e(A), {
114
+ loading: e(N),
115
115
  type: "primary",
116
116
  onClick: x
117
117
  }, {
118
- default: w(() => [...u[0] || (u[0] = [A(" 我已完成支付 ", -1)])]),
118
+ default: w(() => [...u[0] || (u[0] = [R(" 我已完成支付 ", -1)])]),
119
119
  _: 1
120
- }, 8, ["loading"]), k(e(D), {
121
- onClick: L
120
+ }, 8, ["loading"]), k(e(A), {
121
+ onClick: B
122
122
  }, {
123
- default: w(() => [...u[1] || (u[1] = [A("返回", -1)])]),
123
+ default: w(() => [...u[1] || (u[1] = [R("返回", -1)])]),
124
124
  _: 1
125
- })])) : (n(), s("div", Ne, [k(e(D), {
125
+ })])) : (n(), s("div", Ee, [k(e(A), {
126
126
  type: "primary",
127
- onClick: L
127
+ onClick: B
128
128
  }, {
129
- default: w(() => [...u[2] || (u[2] = [A("返回", -1)])]),
129
+ default: w(() => [...u[2] || (u[2] = [R("返回", -1)])]),
130
130
  _: 1
131
131
  })]))])]));
132
132
  }
133
- }), bt = /* @__PURE__ */ U(xe, [["__scopeId", "data-v-b72bedf1"]]), Me = /* @__PURE__ */ K({
133
+ }), bt = /* @__PURE__ */ U(xe, [["__scopeId", "data-v-65b534f9"]]), Me = /* @__PURE__ */ K({
134
134
  __name: "PricingFAQ",
135
135
  props: {
136
136
  title: {
@@ -172,7 +172,7 @@ const Se = {
172
172
  question: "使用订阅服务有什么限制?",
173
173
  answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
174
174
  }], c = l, d = h(() => c.faqItems ?? _);
175
- return (P, f) => (n(), O(Ie, {
175
+ return (P, g) => (n(), O(Ie, {
176
176
  class: "PricingFAQ"
177
177
  }, {
178
178
  BlockHeader: w(() => [k(Be, {
@@ -254,18 +254,18 @@ const Se = {
254
254
  products: c,
255
255
  plans: d,
256
256
  currentSubscription: P,
257
- currentLoading: f,
258
- listLoading: b,
259
- billingInterval: E,
260
- billingIntervalTabs: S,
261
- setBillingInterval: N,
262
- currentTrial: $,
263
- isCurrentPlan: q,
264
- isRecommendedPlan: L,
257
+ currentLoading: g,
258
+ listLoading: f,
259
+ billingInterval: N,
260
+ billingIntervalTabs: D,
261
+ setBillingInterval: E,
262
+ currentTrial: S,
263
+ isCurrentPlan: $,
264
+ isRecommendedPlan: B,
265
265
  isFreePlan: x,
266
266
  isPlanActionDisabled: m,
267
267
  getDisplayPrice: u,
268
- getDisplayOriginalPrice: v,
268
+ getDisplayOriginalPrice: b,
269
269
  getDisplayCycle: ie,
270
270
  getPromotionLabel: W,
271
271
  getBadgeLabels: re,
@@ -274,10 +274,10 @@ const Se = {
274
274
  getFeatureGroups: Y,
275
275
  loadCurrentSubscription: M,
276
276
  refresh: le
277
- } = Le(_.defaultInterval), p = h(() => {
277
+ } = Le(_.defaultInterval), v = h(() => {
278
278
  if (!P.value)
279
279
  for (const r of c.value) {
280
- const o = r.prices.find((g) => g.type === "free");
280
+ const o = r.prices.find((p) => p.type === "free");
281
281
  if (o)
282
282
  return {
283
283
  ...r,
@@ -285,11 +285,11 @@ const Se = {
285
285
  selectedPrice: o
286
286
  };
287
287
  }
288
- }), F = h(() => d.value.filter((r) => !x(r))), Q = ye(!1), oe = h(() => !!localStorage.getItem("jwtToken")), V = h(() => !!$.value), ce = h(() => {
289
- var g, t;
290
- const r = $.value, o = (t = (g = p.value) == null ? void 0 : g.selectedPrice) == null ? void 0 : t.id;
288
+ }), q = h(() => d.value.filter((r) => !x(r))), Q = ye(!1), oe = h(() => !!localStorage.getItem("jwtToken")), V = h(() => !!S.value), ce = h(() => {
289
+ var p, t;
290
+ const r = S.value, o = (t = (p = v.value) == null ? void 0 : p.selectedPrice) == null ? void 0 : t.id;
291
291
  return !r || !o ? !1 : r.priceId === o;
292
- }), z = h(() => Q.value || oe.value && f.value && !V.value), J = h(() => V.value || z.value), {
292
+ }), z = h(() => Q.value || oe.value && g.value && !V.value), J = h(() => V.value || z.value), {
293
293
  checkout: ue,
294
294
  isCheckingOut: de
295
295
  } = Re({
@@ -311,30 +311,24 @@ const Se = {
311
311
  return z.value ? "权益加载中" : ce.value ? "正在体验免费体验" : V.value ? "已有当前权益" : "立即体验";
312
312
  }
313
313
  async function me() {
314
- var o;
315
- const r = p.value;
316
- if (!((o = r == null ? void 0 : r.selectedPrice) != null && o.id)) {
317
- B.warning("当前暂无可用体验方案");
314
+ var p;
315
+ const r = v.value;
316
+ if (!((p = r == null ? void 0 : r.selectedPrice) != null && p.id)) {
317
+ F.warning("当前暂无可用体验方案");
318
318
  return;
319
319
  }
320
320
  Q.value = !0;
321
- try {
322
- const {
323
- error: g
324
- } = await ve.trials.start.post({
325
- priceId: r.selectedPrice.id
326
- });
327
- if (g) {
328
- const t = g.message || "领取免费体验失败";
329
- t.includes("已领取") && B.info(t), await M();
330
- return;
331
- }
332
- B.success("免费体验已开始"), await M();
333
- } catch (g) {
334
- B.error(g instanceof Error ? g.message : "领取免费体验失败");
335
- } finally {
336
- Q.value = !1;
321
+ const {
322
+ error: o
323
+ } = await ve().billing.trials.start.post({
324
+ priceId: r.selectedPrice.id
325
+ });
326
+ if (Q.value = !1, o) {
327
+ const t = o.message || "领取免费体验失败";
328
+ t.includes("已领取") && F.info(t), await M();
329
+ return;
337
330
  }
331
+ F.success("免费体验已开始"), await M();
338
332
  }
339
333
  async function Z() {
340
334
  J.value || _e(() => Z()) && await me();
@@ -342,64 +336,64 @@ const Se = {
342
336
  return ne(() => {
343
337
  le();
344
338
  }), (r, o) => {
345
- const g = he("motion-slide-top");
339
+ const p = he("motion-slide-top");
346
340
  return n(), s("section", Qe, [ke((n(), O(e(se), {
347
- loading: e(b),
341
+ loading: e(f),
348
342
  tip: "数据加载中",
349
343
  class: "PricingPlans__spin"
350
344
  }, {
351
- default: w(() => [p.value ? (n(), s("article", {
345
+ default: w(() => [v.value ? (n(), s("article", {
352
346
  key: 0,
353
- class: R(["PricingPlans__trial", {
354
- "is-current": e(q)(p.value)
347
+ class: L(["PricingPlans__trial", {
348
+ "is-current": e($)(v.value)
355
349
  }])
356
- }, [i("div", Ve, [i("div", ze, [i("h2", null, a(p.value.name), 1), i("p", null, a(Pe(p.value)), 1), X(p.value).length ? (n(), s("ul", He, [(n(!0), s(I, null, C(X(p.value), (t) => (n(), s("li", {
350
+ }, [i("div", Ve, [i("div", ze, [i("h2", null, a(v.value.name), 1), i("p", null, a(Pe(v.value)), 1), X(v.value).length ? (n(), s("ul", He, [(n(!0), s(I, null, C(X(v.value), (t) => (n(), s("li", {
357
351
  key: t.title
358
352
  }, [k(e(te), {
359
353
  icon: "mingcute:check-circle-fill",
360
354
  class: "PricingPlans__trialFeatureIcon"
361
- }), i("span", null, a(t.title), 1)]))), 128))])) : y("", !0)]), i("div", Ge, [k(e(D), {
355
+ }), i("span", null, a(t.title), 1)]))), 128))])) : y("", !0)]), i("div", Ge, [k(e(A), {
362
356
  size: "large",
363
357
  class: "PricingPlans__trialButton",
364
358
  loading: z.value,
365
359
  disabled: J.value,
366
360
  onClick: Z
367
361
  }, {
368
- default: w(() => [A(a(fe()), 1)]),
362
+ default: w(() => [R(a(fe()), 1)]),
369
363
  _: 1
370
- }, 8, ["loading", "disabled"])])])], 2)) : y("", !0), F.value.length ? (n(), s("div", Ke, [e(S).length > 1 ? (n(), s("div", Oe, [(n(!0), s(I, null, C(e(S), (t) => (n(), s("button", {
364
+ }, 8, ["loading", "disabled"])])])], 2)) : y("", !0), q.value.length ? (n(), s("div", Ke, [e(D).length > 1 ? (n(), s("div", Oe, [(n(!0), s(I, null, C(e(D), (t) => (n(), s("button", {
371
365
  key: t.value,
372
366
  type: "button",
373
- class: R(["PricingPlans__toggleItem", {
374
- "is-active": e(E) === t.value
367
+ class: L(["PricingPlans__toggleItem", {
368
+ "is-active": e(N) === t.value
375
369
  }]),
376
- onClick: (H) => e(N)(t.value)
377
- }, [i("span", null, a(t.label), 1), t.badge ? (n(), s("span", We, a(t.badge), 1)) : y("", !0)], 10, Ue))), 128))])) : y("", !0), l.note ? (n(), s("p", je, a(l.note), 1)) : y("", !0)])) : y("", !0), F.value.length ? (n(), s("div", {
370
+ onClick: (H) => e(E)(t.value)
371
+ }, [i("span", null, a(t.label), 1), t.badge ? (n(), s("span", We, a(t.badge), 1)) : y("", !0)], 10, Ue))), 128))])) : y("", !0), l.note ? (n(), s("p", je, a(l.note), 1)) : y("", !0)])) : y("", !0), q.value.length ? (n(), s("div", {
378
372
  key: 2,
379
- class: R(["PricingPlans__grid", {
380
- "PricingPlans__grid--compact": F.value.length <= 2
373
+ class: L(["PricingPlans__grid", {
374
+ "PricingPlans__grid--compact": q.value.length <= 2
381
375
  }])
382
- }, [(n(!0), s(I, null, C(F.value, (t, H) => (n(), s("article", {
376
+ }, [(n(!0), s(I, null, C(q.value, (t, H) => (n(), s("article", {
383
377
  key: t.id,
384
- class: R(["PricingPlans__card", {
385
- "is-recommended": e(L)(t),
386
- "is-current": e(q)(t)
378
+ class: L(["PricingPlans__card", {
379
+ "is-recommended": e(B)(t),
380
+ "is-current": e($)(t)
387
381
  }])
388
382
  }, [i("div", Ye, [(n(!0), s(I, null, C(e(re)(t), (T) => (n(), s("span", {
389
383
  key: T.type,
390
- class: R(["PricingPlans__badge", `is-${T.type}`])
391
- }, a(T.label), 3))), 128))]), i("div", Je, [i("h2", null, a(t.name), 1), i("p", null, a(t.description || ge(H)), 1)]), i("div", Xe, [e(v)(t) ? (n(), s("span", Ze, " ¥" + a(e(v)(t)), 1)) : y("", !0), o[0] || (o[0] = i("span", {
384
+ class: L(["PricingPlans__badge", `is-${T.type}`])
385
+ }, a(T.label), 3))), 128))]), i("div", Je, [i("h2", null, a(t.name), 1), i("p", null, a(t.description || ge(H)), 1)]), i("div", Xe, [e(b)(t) ? (n(), s("span", Ze, " ¥" + a(e(b)(t)), 1)) : y("", !0), o[0] || (o[0] = i("span", {
392
386
  class: "PricingPlans__currency"
393
- }, "¥", -1)), i("span", et, a(e(u)(t)), 1), i("span", tt, a(e(ie)(t)), 1)]), e(W)(t) ? (n(), s("p", nt, a(e(W)(t)), 1)) : y("", !0), i("p", st, a(e(j)(t, H)), 1), k(e(D), {
387
+ }, "¥", -1)), i("span", et, a(e(u)(t)), 1), i("span", tt, a(e(ie)(t)), 1)]), e(W)(t) ? (n(), s("p", nt, a(e(W)(t)), 1)) : y("", !0), i("p", st, a(e(j)(t, H)), 1), k(e(A), {
394
388
  long: "",
395
389
  size: "large",
396
390
  class: "PricingPlans__button",
397
- type: e(L)(t) ? "primary" : "outline",
391
+ type: e(B)(t) ? "primary" : "outline",
398
392
  loading: e(de)(t),
399
393
  disabled: e(m)(t),
400
394
  onClick: (T) => e(ue)(t)
401
395
  }, {
402
- default: w(() => [A(a(e(ae)(t)), 1)]),
396
+ default: w(() => [R(a(e(ae)(t)), 1)]),
403
397
  _: 2
404
398
  }, 1032, ["type", "loading", "disabled", "onClick"]), o[1] || (o[1] = i("div", {
405
399
  class: "PricingPlans__divider"
@@ -411,12 +405,12 @@ const Se = {
411
405
  }, [k(e(te), {
412
406
  icon: "mingcute:check-circle-fill",
413
407
  class: "PricingPlans__featureIcon"
414
- }), i("span", null, a(ee.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !p.value && !e(b) ? (n(), s("div", at, " 当前暂无可订阅方案 ")) : y("", !0)]),
408
+ }), i("span", null, a(ee.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !v.value && !e(f) ? (n(), s("div", at, " 当前暂无可订阅方案 ")) : y("", !0)]),
415
409
  _: 1
416
- }, 8, ["loading"])), [[g]])]);
410
+ }, 8, ["loading"])), [[p]])]);
417
411
  };
418
412
  }
419
- }), wt = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-ac377d88"]]);
413
+ }), wt = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-5d08c742"]]);
420
414
  export {
421
415
  kt as P,
422
416
  bt as a,
@@ -1,14 +1,14 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  import { U as V } from "./userMenuModal-D-nDaYqM.js";
4
- import { defineComponent as U, computed as C, openBlock as I, createElementBlock as b, createVNode as N, unref as o, withCtx as k, createTextVNode as A, toDisplayString as h, createElementVNode as m, createCommentVNode as w, ref as _, createBlock as x } from "vue";
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 { e as B } from "./apiClients-BcXOLuYu.js";
7
- import { C as P } from "./CustomTable-BzGfaAVH.js";
8
- import { C as G } from "./index-BkLvw1PU.js";
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";
9
9
  /* empty css */
10
10
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as H } from "./useAuthkitUsersProfile-DJlMsftY.js";
11
+ import { u as H } from "./useAuthkitUsersProfile-CW_exa7E.js";
12
12
  const j = {
13
13
  email: "邮箱",
14
14
  phone: "手机",
@@ -34,11 +34,11 @@ function L(e, t) {
34
34
  function S(e) {
35
35
  return i(e.email) || i(e.phone);
36
36
  }
37
- function he(e) {
37
+ function ge(e) {
38
38
  const t = S(e);
39
39
  return L(e.nickname, e.userId) ? i(e.nickname) : t || i(e.nickname);
40
40
  }
41
- function ge(e) {
41
+ function he(e) {
42
42
  const t = S(e);
43
43
  return !L(e.nickname, e.userId) || !t ? "" : t;
44
44
  }
@@ -75,20 +75,20 @@ const X = {
75
75
  userId: {}
76
76
  },
77
77
  setup(e) {
78
- const t = e, r = C(() => T(t.user, t.userId)), a = C(() => J(t.user)), n = C(() => K(t.user, t.userId)), l = C(() => Q(t.user));
79
- return (c, v) => (I(), b("div", X, [N(o(W), {
78
+ const t = e, r = k(() => T(t.user, t.userId)), a = k(() => J(t.user)), n = k(() => K(t.user, t.userId)), l = k(() => Q(t.user));
79
+ return (c, p) => (M(), R("div", X, [b(o(W), {
80
80
  size: 32,
81
81
  "image-url": l.value,
82
82
  "object-fit": "cover"
83
83
  }, {
84
- default: k(() => [A(h(n.value), 1)]),
84
+ default: I(() => [A(g(n.value), 1)]),
85
85
  _: 1
86
- }, 8, ["image-url"]), m("div", Y, [m("span", Z, h(r.value), 1), a.value ? (I(), b("span", F, h(a.value), 1)) : w("", !0)])]));
86
+ }, 8, ["image-url"]), m("div", Y, [m("span", Z, g(r.value), 1), a.value ? (M(), R("span", F, g(a.value), 1)) : w("", !0)])]));
87
87
  }
88
88
  }), te = /* @__PURE__ */ D(ee, [["__scopeId", "data-v-8e8704b9"]]);
89
89
  function re(e, t = {}) {
90
90
  const r = t.pageSize ?? 10, a = _([]), n = _(!1), l = _(!1), c = _(1);
91
- async function v() {
91
+ async function p() {
92
92
  if (!n.value) {
93
93
  c.value = 1, l.value = !1, n.value = !0;
94
94
  try {
@@ -102,7 +102,7 @@ function re(e, t = {}) {
102
102
  }
103
103
  }
104
104
  }
105
- async function M() {
105
+ async function N() {
106
106
  if (!(n.value || l.value)) {
107
107
  c.value += 1, n.value = !0;
108
108
  try {
@@ -120,8 +120,8 @@ function re(e, t = {}) {
120
120
  items: a,
121
121
  loading: n,
122
122
  finished: l,
123
- refresh: v,
124
- loadMore: M
123
+ refresh: p,
124
+ loadMore: N
125
125
  };
126
126
  }
127
127
  const ae = {
@@ -158,80 +158,81 @@ const ae = {
158
158
  tooltip: !0
159
159
  }], {
160
160
  items: c,
161
- loading: v,
162
- finished: M,
161
+ loading: p,
162
+ finished: N,
163
163
  refresh: s,
164
164
  loadMore: f
165
165
  } = re(async ({
166
- current: p,
166
+ current: v,
167
167
  pageSize: d
168
168
  }) => {
169
169
  const {
170
- data: u
171
- } = await B.referrer.referees.post({
172
- current: p,
170
+ data: u,
171
+ error: C
172
+ } = await B().auth.referrer.referees.post({
173
+ current: v,
173
174
  pageSize: d
174
175
  });
175
- return u ? {
176
- items: u.items ?? []
177
- } : {
176
+ return C || !u ? {
178
177
  items: []
178
+ } : {
179
+ items: u.items ?? []
179
180
  };
180
- }), g = _(!1);
181
+ }), h = _(!1);
181
182
  function $() {
182
- g.value = !1, a("cancel");
183
+ h.value = !1, a("cancel");
183
184
  }
184
- function E(p) {
185
- g.value = p, p && s();
185
+ function E(v) {
186
+ h.value = v, v && s();
186
187
  }
187
188
  return t({
188
189
  setData: E,
189
190
  refresh: s
190
- }), (p, d) => (I(), x(o(z), {
191
- visible: g.value,
192
- "onUpdate:visible": d[0] || (d[0] = (u) => g.value = u),
191
+ }), (v, d) => (M(), x(o(z), {
192
+ visible: h.value,
193
+ "onUpdate:visible": d[0] || (d[0] = (u) => h.value = u),
193
194
  title: "我的邀请",
194
195
  width: o(V),
195
- "ok-loading": o(v),
196
+ "ok-loading": o(p),
196
197
  footer: !1,
197
198
  "mask-closable": !1,
198
199
  "unmount-on-close": "",
199
200
  onCancel: $
200
201
  }, {
201
- default: k(() => {
202
- var u, R;
202
+ default: I(() => {
203
+ var u, C;
203
204
  return [m("div", ae, [d[1] || (d[1] = m("div", {
204
205
  class: "invite-code-label"
205
- }, "我的邀请码:", -1)), m("div", ne, [m("span", null, h(((u = o(n)) == null ? void 0 : u.personalInviteCode) || "-"), 1), (R = o(n)) != null && R.personalInviteCode ? (I(), x(G, {
206
+ }, "我的邀请码:", -1)), m("div", ne, [m("span", null, g(((u = o(n)) == null ? void 0 : u.personalInviteCode) || "-"), 1), (C = o(n)) != null && C.personalInviteCode ? (M(), x(G, {
206
207
  key: 0,
207
208
  value: o(n).personalInviteCode,
208
209
  message: "邀请码复制成功"
209
- }, null, 8, ["value"])) : w("", !0)])]), N(P, {
210
+ }, null, 8, ["value"])) : w("", !0)])]), b(P, {
210
211
  columns: l,
211
212
  data: o(c),
212
- loading: o(v),
213
+ loading: o(p),
213
214
  "infinite-scroll": "",
214
- finished: o(M),
215
+ finished: o(N),
215
216
  onLoadMore: o(f)
216
217
  }, {
217
- referee: k(({
218
+ referee: I(({
218
219
  record: y
219
- }) => [N(te, {
220
+ }) => [b(te, {
220
221
  user: y.refereeInfo,
221
222
  "user-id": y.refereeId
222
223
  }, null, 8, ["user", "user-id"])]),
223
- registerMethod: k(({
224
+ registerMethod: I(({
224
225
  record: y
225
- }) => [A(h(o(O)(y.registerMethod)), 1)]),
226
+ }) => [A(g(o(O)(y.registerMethod)), 1)]),
226
227
  _: 1
227
228
  }, 8, ["data", "loading", "finished", "onLoadMore"])];
228
229
  }),
229
230
  _: 1
230
231
  }, 8, ["visible", "width", "ok-loading"]));
231
232
  }
232
- }), ye = /* @__PURE__ */ D(oe, [["__scopeId", "data-v-5844abd6"]]);
233
+ }), Ce = /* @__PURE__ */ D(oe, [["__scopeId", "data-v-2a9dbbaf"]]);
233
234
  export {
234
- ye as R,
235
- ge as a,
236
- he as g
235
+ Ce as R,
236
+ he as a,
237
+ ge as g
237
238
  };
@@ -0,0 +1,78 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import { defineComponent as g, openBlock as h, createBlock as v, unref as y, mergeProps as E, createSlots as S, withCtx as p, renderSlot as l } from "vue";
8
+ import { Upload as q } from "@arco-design/web-vue";
9
+ import { u as I } from "./runtime-BzCSCUNv.js";
10
+ const j = /* @__PURE__ */ g({
11
+ __name: "Upload",
12
+ props: {
13
+ options: {
14
+ type: Object,
15
+ required: !1,
16
+ default: () => null
17
+ },
18
+ bucketId: {
19
+ type: String,
20
+ required: !0
21
+ }
22
+ },
23
+ emits: ["progress", "fileFinish", "fail"],
24
+ setup(a, {
25
+ emit: m
26
+ }) {
27
+ const e = m, r = a, c = I().upload;
28
+ function d(o) {
29
+ return o instanceof Error ? o : new Error("上传失败");
30
+ }
31
+ function f(o) {
32
+ const {
33
+ onProgress: i,
34
+ onError: b,
35
+ onSuccess: k,
36
+ fileItem: n
37
+ } = o;
38
+ if (!n.file)
39
+ return {
40
+ abort() {
41
+ }
42
+ };
43
+ const s = c.upload({
44
+ file: n.file,
45
+ bucketId: r.bucketId,
46
+ onProgress(t) {
47
+ e("progress", t), i(t);
48
+ }
49
+ });
50
+ return s.result.then((t) => {
51
+ e("fileFinish", t), k(t);
52
+ }).catch((t) => {
53
+ const u = d(t);
54
+ e("fail", u), b(u);
55
+ }), {
56
+ abort() {
57
+ s.abort();
58
+ }
59
+ };
60
+ }
61
+ return (o, i) => (h(), v(y(q), E({
62
+ "custom-request": f
63
+ }, r.options), S({
64
+ _: 2
65
+ }, [o.$slots["upload-button"] ? {
66
+ name: "upload-button",
67
+ fn: p(() => [l(o.$slots, "upload-button")]),
68
+ key: "0"
69
+ } : void 0, o.$slots["upload-item"] ? {
70
+ name: "upload-item",
71
+ fn: p(() => [l(o.$slots, "upload-item")]),
72
+ key: "1"
73
+ } : void 0]), 1040));
74
+ }
75
+ });
76
+ export {
77
+ j as _
78
+ };