@huyooo/ui 1.0.3 → 1.0.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 (182) hide show
  1. package/dist/AuthkitAppSetting-BN8-xgNq.js +2674 -0
  2. package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
  3. package/dist/CustomTable-BzGfaAVH.js +276 -0
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
  5. package/dist/LandingPageDescription-BczWZHKy.js +12 -0
  6. package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
  7. package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
  8. package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
  9. package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
  10. package/dist/Menu-uCexrsKP.js +199 -0
  11. package/dist/MessageHandle-mEkCsv9e.js +1173 -0
  12. package/dist/MessageList-Ce-_LNTk.js +244 -0
  13. package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
  14. package/dist/PricingPlans-DoWP5aX7.js +427 -0
  15. package/dist/ReferrerReferees-DgygiIiE.js +237 -0
  16. package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
  17. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
  18. package/dist/WidthContainer-PeWkCK0p.js +721 -0
  19. package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
  20. package/dist/authkit.d.ts +6 -2
  21. package/dist/authkit.js +53 -44
  22. package/dist/common/authProviderIcons.d.ts +12 -0
  23. package/dist/common/globalConfig.d.ts +5 -0
  24. package/dist/common/tableColumnWidths.d.ts +11 -0
  25. package/dist/common.js +3 -3
  26. package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
  27. package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
  28. package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
  29. package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
  30. package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
  31. package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
  32. package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
  33. package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
  34. package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
  35. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
  36. package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
  37. package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
  38. package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
  39. package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
  40. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
  41. package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
  42. package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
  43. package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
  44. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
  45. package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
  46. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
  47. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
  48. package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
  49. package/dist/components/CustomTable.vue.d.ts +27 -1
  50. package/dist/components/Ellipsis.vue.d.ts +2 -6
  51. package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
  52. package/dist/components/Gradientbackground.vue.d.ts +2 -2
  53. package/dist/components/HeaderMenus.vue.d.ts +4 -1
  54. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  55. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
  56. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
  57. package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
  58. package/dist/components/Menu.vue.d.ts +2 -1
  59. package/dist/components/MenuItem.vue.d.ts +3 -1
  60. package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
  61. package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
  62. package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
  63. package/dist/components/Message/MessageList.vue.d.ts +4 -3
  64. package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
  65. package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
  66. package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
  67. package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
  68. package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
  69. package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
  70. package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
  71. package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
  72. package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
  73. package/dist/components/Message/messageBody/types.d.ts +7 -0
  74. package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
  75. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
  76. package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
  77. package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
  78. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
  79. package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
  80. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
  81. package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
  82. package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
  83. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
  84. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  85. package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
  86. package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
  87. package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
  88. package/dist/composables/Authkit/useOauth.d.ts +17 -4
  89. package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
  90. package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
  91. package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
  92. package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
  93. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
  94. package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
  95. package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
  96. package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
  97. package/dist/composables/useInfiniteList.d.ts +19 -0
  98. package/dist/composables/useMessageNotifications.d.ts +3 -6
  99. package/dist/composables.d.ts +4 -2
  100. package/dist/composables.js +50 -45
  101. package/dist/feedback.d.ts +1 -0
  102. package/dist/feedback.js +12 -11
  103. package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
  104. package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
  105. package/dist/landingPage.js +21 -21
  106. package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
  107. package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
  108. package/dist/legalDocs/index.d.ts +7 -0
  109. package/dist/legalDocs/isConfigured.d.ts +7 -0
  110. package/dist/legalDocs/open.d.ts +3 -0
  111. package/dist/legalDocs/resolveAppId.d.ts +8 -0
  112. package/dist/legalDocs/resolveTarget.d.ts +4 -0
  113. package/dist/legalDocs/types.d.ts +12 -0
  114. package/dist/main.js +320 -308
  115. package/dist/message.d.ts +3 -0
  116. package/dist/message.js +301 -21
  117. package/dist/pay.d.ts +1 -1
  118. package/dist/pay.js +14 -17
  119. package/dist/privateCom.js +1 -1
  120. package/dist/referrer.js +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/types/api/auth.generated.d.ts +1385 -328
  123. package/dist/types/api/billing.generated.d.ts +907 -76
  124. package/dist/types/api/ones.generated.d.ts +131 -2
  125. package/dist/types/api.d.ts +1 -0
  126. package/dist/types/app.d.ts +10 -0
  127. package/dist/types/user.d.ts +1 -0
  128. package/dist/upload.js +2 -2
  129. package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
  130. package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
  131. package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
  132. package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
  133. package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
  134. package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
  135. package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
  136. package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
  137. package/dist/useRoutePermission-CEiya9AM.js +218 -0
  138. package/dist/useSEO-CDWxbk8B.js +221 -0
  139. package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
  140. package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
  141. package/dist/user.js +1 -1
  142. package/dist/userMenuModal-D-nDaYqM.js +66 -0
  143. package/dist/utils/apiMiddlewares.d.ts +5 -5
  144. package/dist/utils/apiResponse.d.ts +11 -0
  145. package/dist/utils/authProviderIcon.d.ts +3 -0
  146. package/dist/utils/authkit.d.ts +20 -7
  147. package/dist/utils/formatPoints.d.ts +8 -0
  148. package/dist/utils/messageNotificationContent.d.ts +4 -0
  149. package/dist/utils/messageTextLink.d.ts +9 -0
  150. package/dist/utils/passkeySupport.d.ts +8 -0
  151. package/dist/utils/pointsFlowTypes.d.ts +10 -0
  152. package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
  153. package/dist/utils/refundStatusDisplay.d.ts +1 -0
  154. package/dist/utils/subscriptionDisplay.d.ts +7 -0
  155. package/dist/utils/userDisplay.d.ts +41 -0
  156. package/package.json +11 -3
  157. package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
  158. package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
  159. package/dist/CustomTable-nsxN4Ja4.js +0 -276
  160. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
  161. package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
  162. package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
  163. package/dist/Menu-Cy2ZPeaz.js +0 -170
  164. package/dist/MessageHandle-BG12aX0i.js +0 -924
  165. package/dist/MessageList-CrCF8mU6.js +0 -233
  166. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
  167. package/dist/PaySubscriptions-lWnEioX5.js +0 -1241
  168. package/dist/PricingPlans-DFcjOMWS.js +0 -404
  169. package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
  170. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
  171. package/dist/WidthContainer-CF3qOLWW.js +0 -688
  172. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
  173. package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
  174. package/dist/index-D3Kp6R4z.js +0 -4
  175. package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
  176. package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
  177. package/dist/useLegalLinks-Cwr45PBT.js +0 -60
  178. package/dist/useRoutePermission-CaWtjLRA.js +0 -212
  179. package/dist/useSEO-BSMQdBR9.js +0 -158
  180. package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
  181. package/dist/useTableHandle-BdujaiNX.js +0 -69
  182. /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
@@ -1,404 +0,0 @@
1
- /* empty css */
2
- import "./index-D3Kp6R4z.js";
3
- import "./apiClients-DrGX2iJy.js";
4
- /* empty css */
5
- import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as t, createElementBlock as s, createElementVNode as i, unref as e, createBlock as H, toDisplayString as r, createVNode as v, withCtx as b, createTextVNode as L, resolveDirective as me, withDirectives as fe, normalizeClass as B, Fragment as I, renderList as w, createCommentVNode as p } from "vue";
6
- import { Spin as ne, Button as R, Message as Z } from "@arco-design/web-vue";
7
- import { useRoute as pe, useRouter as ve } from "vue-router";
8
- import { b as ye } from "./PaySubscriptions-lWnEioX5.js";
9
- import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { L as he, a as ke } from "./LandingPageFAQ-CZJXvor9.js";
11
- import { L as be } from "./LandingPageSectionHeader-D_74W4My.js";
12
- import { Icon as ee } from "@iconify/vue";
13
- import { u as Te, a as Ie } from "./useSubscriptionCheckout-BRk5h9aC.js";
14
- import { u as we } from "./useEnsureAuthenticated-BuIbxqsO.js";
15
- const pt = "/Pay/Return";
16
- function V(a) {
17
- const u = typeof a.scene == "string" ? a.scene : null, l = typeof a.orderId == "string" ? a.orderId : null, c = typeof a.returnTo == "string" ? a.returnTo.trim() : null, _ = c != null && c.startsWith("/") && !c.startsWith("//") ? c : null;
18
- return u !== "subscription" && u !== "recharge" && u !== "agreement" ? {
19
- scene: null,
20
- orderId: l,
21
- returnTo: _
22
- } : {
23
- scene: u,
24
- orderId: (l == null ? void 0 : l.trim()) || null,
25
- returnTo: _
26
- };
27
- }
28
- function Ce(a, u) {
29
- const {
30
- returnTo: l
31
- } = V(a);
32
- return l || u;
33
- }
34
- const Be = {
35
- class: "payment-return-page"
36
- }, Le = {
37
- class: "payment-return-card"
38
- }, Re = {
39
- key: 1,
40
- class: "payment-return-icon success"
41
- }, Ae = {
42
- key: 2,
43
- class: "payment-return-icon failed"
44
- }, De = {
45
- key: 3,
46
- class: "payment-return-actions"
47
- }, $e = {
48
- key: 4,
49
- class: "payment-return-actions"
50
- }, qe = /* @__PURE__ */ z({
51
- __name: "PaymentReturnPage",
52
- props: {
53
- defaultReturnTo: {
54
- default: "/Pricing"
55
- }
56
- },
57
- setup(a) {
58
- const u = a, l = pe(), c = ve();
59
- function _() {
60
- return Ce(l.query, u.defaultReturnTo);
61
- }
62
- const {
63
- phase: g,
64
- message: y,
65
- checking: q,
66
- confirmPayment: A,
67
- stopPolling: F,
68
- verifyNow: S
69
- } = ye(_), D = k(() => g.value === "success" ? "支付成功" : g.value === "failed" ? "支付未完成" : "正在确认支付");
70
- function C() {
71
- c.replace(_());
72
- }
73
- async function N() {
74
- const {
75
- scene: m,
76
- orderId: o
77
- } = V(l.query);
78
- if (!m || !o) {
79
- Z.error("支付参数无效");
80
- return;
81
- }
82
- try {
83
- const f = await S(m, o);
84
- if (f.success) {
85
- g.value = "success", y.value = f.message || "支付成功", window.setTimeout(() => {
86
- c.replace(_());
87
- }, 1200);
88
- return;
89
- }
90
- y.value = f.message || "等待支付确认...";
91
- } catch (f) {
92
- Z.error(f instanceof Error ? f.message : "确认支付失败");
93
- }
94
- }
95
- return te(() => {
96
- const {
97
- scene: m,
98
- orderId: o
99
- } = V(l.query);
100
- if (!m || !o) {
101
- g.value = "failed", y.value = "缺少支付回跳参数";
102
- return;
103
- }
104
- if (m === "agreement") {
105
- g.value = "success", y.value = "签约流程已完成,正在返回...", window.setTimeout(() => {
106
- c.replace(_());
107
- }, 1200);
108
- return;
109
- }
110
- A(m, o);
111
- }), Pe(F), (m, o) => (t(), s("div", Be, [i("div", Le, [e(g) === "loading" ? (t(), H(e(ne), {
112
- key: 0,
113
- size: 36
114
- })) : e(g) === "success" ? (t(), s("div", Re, "✓")) : (t(), s("div", Ae, "!")), i("h1", null, r(D.value), 1), i("p", null, r(e(y)), 1), e(g) === "loading" ? (t(), s("div", De, [v(e(R), {
115
- loading: e(q),
116
- type: "primary",
117
- onClick: N
118
- }, {
119
- default: b(() => [...o[0] || (o[0] = [L(" 我已完成支付 ", -1)])]),
120
- _: 1
121
- }, 8, ["loading"]), v(e(R), {
122
- onClick: C
123
- }, {
124
- default: b(() => [...o[1] || (o[1] = [L("返回", -1)])]),
125
- _: 1
126
- })])) : (t(), s("div", $e, [v(e(R), {
127
- type: "primary",
128
- onClick: C
129
- }, {
130
- default: b(() => [...o[2] || (o[2] = [L("返回", -1)])]),
131
- _: 1
132
- })]))])]));
133
- }
134
- }), vt = /* @__PURE__ */ G(qe, [["__scopeId", "data-v-b72bedf1"]]), Fe = /* @__PURE__ */ z({
135
- __name: "PricingFAQ",
136
- props: {
137
- title: {
138
- default: "订阅常见问题"
139
- },
140
- subtitle: {
141
- default: "关于试用、付款、配额、升级和取消订阅的说明。"
142
- },
143
- activeKeys: {
144
- default: () => []
145
- },
146
- faqItems: {
147
- default: void 0
148
- }
149
- },
150
- setup(a) {
151
- const u = [{
152
- question: "可以先试用再付费吗?",
153
- answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
154
- }, {
155
- question: "月付和年付有什么区别?",
156
- answer: "月付适合短期验证和灵活使用,年付适合稳定团队和长期项目,通常会有更优惠的价格。"
157
- }, {
158
- question: "已有订阅后可以升级或切换方案吗?",
159
- answer: "可以。升级或切换方案时,系统会根据当前订阅和新方案计算差额;如需补差价,会跳转到支付页面完成支付。"
160
- }, {
161
- question: "取消订阅后还能继续使用吗?",
162
- answer: "可以。取消订阅后,当前计费周期内仍可继续使用,周期结束后订阅权益将停止续期。"
163
- }, {
164
- question: "配额什么时候重置?",
165
- answer: "配额按订阅周期重置,不一定是自然月月初。例如您在 4 月 15 日订阅月付方案,下一次配额重置通常发生在 5 月 15 日。"
166
- }, {
167
- question: "不同方案的技术支持有什么区别?",
168
- answer: "基础方案适合个人和轻量团队,包含常规支持;更高等级方案面向正式团队和生产场景,通常包含更高优先级支持。"
169
- }, {
170
- question: "是否支持退款?",
171
- answer: "订阅可随时取消。退款规则以付费服务协议为准,如遇到重复扣费或异常支付,可以联系支持团队处理。"
172
- }, {
173
- question: "使用订阅服务有什么限制?",
174
- answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
175
- }], l = a, c = k(() => l.faqItems ?? u);
176
- return (_, g) => (t(), H(he, {
177
- class: "PricingFAQ"
178
- }, {
179
- BlockHeader: b(() => [v(be, {
180
- title: a.title,
181
- subtitle: a.subtitle
182
- }, null, 8, ["title", "subtitle"])]),
183
- BlockBody: b(() => [v(ke, {
184
- "active-keys": a.activeKeys,
185
- "faq-items": c.value
186
- }, null, 8, ["active-keys", "faq-items"])]),
187
- _: 1
188
- }));
189
- }
190
- }), yt = /* @__PURE__ */ G(Fe, [["__scopeId", "data-v-fcab2f05"]]), Se = {
191
- class: "PricingPlans"
192
- }, Ne = {
193
- class: "PricingPlans__trialMain"
194
- }, Ee = {
195
- class: "PricingPlans__trialCopy"
196
- }, xe = {
197
- key: 0,
198
- class: "PricingPlans__trialFeatures"
199
- }, Me = {
200
- class: "PricingPlans__trialAction"
201
- }, Qe = {
202
- key: 1,
203
- class: "PricingPlans__toolbar"
204
- }, Ve = {
205
- key: 0,
206
- class: "PricingPlans__toggle",
207
- role: "tablist",
208
- "aria-label": "计费周期"
209
- }, ze = ["onClick"], He = {
210
- key: 0,
211
- class: "PricingPlans__toggleBadge"
212
- }, Ge = {
213
- key: 1,
214
- class: "PricingPlans__note"
215
- }, Ke = {
216
- class: "PricingPlans__badgeRow"
217
- }, Oe = {
218
- class: "PricingPlans__header"
219
- }, Ue = {
220
- class: "PricingPlans__price"
221
- }, We = {
222
- key: 0,
223
- class: "PricingPlans__originalPrice"
224
- }, je = {
225
- class: "PricingPlans__amount"
226
- }, Ye = {
227
- class: "PricingPlans__cycle"
228
- }, Je = {
229
- key: 0,
230
- class: "PricingPlans__promotion"
231
- }, Xe = {
232
- class: "PricingPlans__summary"
233
- }, Ze = {
234
- class: "PricingPlans__featureGroups"
235
- }, et = {
236
- class: "PricingPlans__features"
237
- }, tt = {
238
- key: 3,
239
- class: "PricingPlans__empty"
240
- }, nt = /* @__PURE__ */ z({
241
- __name: "PricingPlans",
242
- props: {
243
- appName: {
244
- default: "Huyooo"
245
- },
246
- defaultInterval: {
247
- default: "month"
248
- },
249
- note: {
250
- default: ""
251
- }
252
- },
253
- setup(a) {
254
- const u = a, {
255
- products: l,
256
- plans: c,
257
- currentSubscription: _,
258
- currentLoading: g,
259
- listLoading: y,
260
- billingInterval: q,
261
- billingIntervalTabs: A,
262
- setBillingInterval: F,
263
- currentTrial: S,
264
- isCurrentPlan: D,
265
- isRecommendedPlan: C,
266
- isFreePlan: N,
267
- isPlanActionDisabled: m,
268
- getDisplayPrice: o,
269
- getDisplayOriginalPrice: f,
270
- getDisplayCycle: se,
271
- getPromotionLabel: K,
272
- getBadgeLabels: ie,
273
- getButtonLabel: re,
274
- getPlanSummary: O,
275
- getFeatureGroups: U,
276
- loadCurrentSubscription: W,
277
- refresh: ae
278
- } = Te(u.defaultInterval), T = k(() => {
279
- if (!_.value)
280
- for (const d of l.value) {
281
- const P = d.prices.find((M) => M.type === "free");
282
- if (P)
283
- return {
284
- ...d,
285
- features: P.features ?? [],
286
- selectedPrice: P
287
- };
288
- }
289
- }), $ = k(() => c.value.filter((d) => !N(d))), j = k(() => !!localStorage.getItem("jwtToken")), E = k(() => !!S.value), x = k(() => j.value && g.value && !E.value), Y = k(() => E.value || x.value), {
290
- checkout: le,
291
- isCheckingOut: oe
292
- } = Ie({
293
- currentSubscription: _,
294
- refreshCurrentSubscription: W
295
- }), {
296
- ensureAuthenticated: ce
297
- } = we();
298
- function ue(d) {
299
- return d === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
300
- }
301
- function J(d) {
302
- return U(d.features).flatMap((P) => P.items).slice(0, 3);
303
- }
304
- function de(d) {
305
- return (d.description || O(d, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
306
- }
307
- function _e() {
308
- return x.value ? "权益加载中" : E.value ? "正在体验当前权益" : "立即体验";
309
- }
310
- async function ge() {
311
- if (!Y.value) {
312
- if (j.value) {
313
- await W();
314
- return;
315
- }
316
- ce();
317
- }
318
- }
319
- return te(() => {
320
- ae();
321
- }), (d, P) => {
322
- const M = me("motion-slide-top");
323
- return t(), s("section", Se, [fe((t(), H(e(ne), {
324
- loading: e(y),
325
- tip: "数据加载中",
326
- class: "PricingPlans__spin"
327
- }, {
328
- default: b(() => [T.value ? (t(), s("article", {
329
- key: 0,
330
- class: B(["PricingPlans__trial", {
331
- "is-current": e(D)(T.value)
332
- }])
333
- }, [i("div", Ne, [i("div", Ee, [i("h2", null, r(T.value.name), 1), i("p", null, r(de(T.value)), 1), J(T.value).length ? (t(), s("ul", xe, [(t(!0), s(I, null, w(J(T.value), (n) => (t(), s("li", {
334
- key: n.title
335
- }, [v(e(ee), {
336
- icon: "mingcute:check-circle-fill",
337
- class: "PricingPlans__trialFeatureIcon"
338
- }), i("span", null, r(n.title), 1)]))), 128))])) : p("", !0)]), i("div", Me, [v(e(R), {
339
- size: "large",
340
- class: "PricingPlans__trialButton",
341
- loading: x.value,
342
- disabled: Y.value,
343
- onClick: ge
344
- }, {
345
- default: b(() => [L(r(_e()), 1)]),
346
- _: 1
347
- }, 8, ["loading", "disabled"])])])], 2)) : p("", !0), $.value.length ? (t(), s("div", Qe, [e(A).length > 1 ? (t(), s("div", Ve, [(t(!0), s(I, null, w(e(A), (n) => (t(), s("button", {
348
- key: n.value,
349
- type: "button",
350
- class: B(["PricingPlans__toggleItem", {
351
- "is-active": e(q) === n.value
352
- }]),
353
- onClick: (Q) => e(F)(n.value)
354
- }, [i("span", null, r(n.label), 1), n.badge ? (t(), s("span", He, r(n.badge), 1)) : p("", !0)], 10, ze))), 128))])) : p("", !0), a.note ? (t(), s("p", Ge, r(a.note), 1)) : p("", !0)])) : p("", !0), $.value.length ? (t(), s("div", {
355
- key: 2,
356
- class: B(["PricingPlans__grid", {
357
- "PricingPlans__grid--compact": $.value.length <= 2
358
- }])
359
- }, [(t(!0), s(I, null, w($.value, (n, Q) => (t(), s("article", {
360
- key: n.id,
361
- class: B(["PricingPlans__card", {
362
- "is-recommended": e(C)(n),
363
- "is-current": e(D)(n)
364
- }])
365
- }, [i("div", Ke, [(t(!0), s(I, null, w(e(ie)(n), (h) => (t(), s("span", {
366
- key: h.type,
367
- class: B(["PricingPlans__badge", `is-${h.type}`])
368
- }, r(h.label), 3))), 128))]), i("div", Oe, [i("h2", null, r(n.name), 1), i("p", null, r(n.description || ue(Q)), 1)]), i("div", Ue, [e(f)(n) ? (t(), s("span", We, " ¥" + r(e(f)(n)), 1)) : p("", !0), P[0] || (P[0] = i("span", {
369
- class: "PricingPlans__currency"
370
- }, "¥", -1)), i("span", je, r(e(o)(n)), 1), i("span", Ye, r(e(se)(n)), 1)]), e(K)(n) ? (t(), s("p", Je, r(e(K)(n)), 1)) : p("", !0), i("p", Xe, r(e(O)(n, Q)), 1), v(e(R), {
371
- long: "",
372
- size: "large",
373
- class: "PricingPlans__button",
374
- type: e(C)(n) ? "primary" : "outline",
375
- loading: e(oe)(n),
376
- disabled: e(m)(n),
377
- onClick: (h) => e(le)(n)
378
- }, {
379
- default: b(() => [L(r(e(re)(n)), 1)]),
380
- _: 2
381
- }, 1032, ["type", "loading", "disabled", "onClick"]), P[1] || (P[1] = i("div", {
382
- class: "PricingPlans__divider"
383
- }, null, -1)), i("div", Ze, [(t(!0), s(I, null, w(e(U)(n.features), (h) => (t(), s("section", {
384
- key: h.title,
385
- class: "PricingPlans__featureGroup"
386
- }, [i("h3", null, r(h.title), 1), i("ul", et, [(t(!0), s(I, null, w(h.items, (X) => (t(), s("li", {
387
- key: X.title
388
- }, [v(e(ee), {
389
- icon: "mingcute:check-circle-fill",
390
- class: "PricingPlans__featureIcon"
391
- }), i("span", null, r(X.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !T.value && !e(y) ? (t(), s("div", tt, " 当前暂无可订阅方案 ")) : p("", !0)]),
392
- _: 1
393
- }, 8, ["loading"])), [[M]])]);
394
- };
395
- }
396
- }), ht = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-8cdab97c"]]);
397
- export {
398
- pt as P,
399
- vt as a,
400
- yt as b,
401
- ht as c,
402
- V as p,
403
- Ce as r
404
- };
@@ -1,106 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- import { U as P } from "./index-D3Kp6R4z.js";
4
- import { defineComponent as w, ref as p, openBlock as d, createBlock as v, unref as a, withCtx as g, createElementVNode as r, toDisplayString as _, createCommentVNode as z, createVNode as A, createTextVNode as U } from "vue";
5
- import { Modal as D } from "@arco-design/web-vue";
6
- import { e as T } from "./apiClients-DrGX2iJy.js";
7
- import { u as V } from "./useTableHandle-BdujaiNX.js";
8
- import { C as y } from "./CustomTable-nsxN4Ja4.js";
9
- import { C as E } from "./Clipboard-Bo7gdpR6.js";
10
- import { u as M } from "./useAuthkitUsersProfile-BZDk21c8.js";
11
- import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const H = {
13
- class: "invite-code-section"
14
- }, L = {
15
- class: "invite-code-value"
16
- }, O = /* @__PURE__ */ w({
17
- __name: "ReferrerReferees",
18
- emits: ["cancel"],
19
- setup(W, {
20
- expose: C,
21
- emit: h
22
- }) {
23
- const b = h, {
24
- pagination: t,
25
- dataSource: c,
26
- setPage: f
27
- } = V("被邀请人"), {
28
- userProfile: s
29
- } = M(), x = [{
30
- dataIndex: "email",
31
- slotName: "email",
32
- title: "被邀请人邮箱",
33
- ellipsis: !0,
34
- tooltip: !0
35
- }, {
36
- dataIndex: "createAt",
37
- slotName: "createAt",
38
- title: "创建日期",
39
- ellipsis: !0,
40
- tooltip: !0
41
- }], o = p(!1);
42
- async function u() {
43
- o.value = !0;
44
- const {
45
- data: e
46
- } = await T.referrer.referees.post({
47
- current: t.value.current,
48
- pageSize: t.value.pageSize
49
- });
50
- o.value = !1, e && (c.value = e.items, t.value.total = e.count);
51
- }
52
- function I(e) {
53
- f(e, t.value.pageSize), u();
54
- }
55
- function S(e) {
56
- f(t.value.current, e), u();
57
- }
58
- const i = p(!1);
59
- function k() {
60
- i.value = !1, b("cancel");
61
- }
62
- function N(e) {
63
- i.value = e, e && u();
64
- }
65
- return C({
66
- setData: N
67
- }), (e, n) => (d(), v(a(D), {
68
- visible: i.value,
69
- "onUpdate:visible": n[0] || (n[0] = (l) => i.value = l),
70
- title: "被邀请人详情",
71
- width: a(P),
72
- "ok-loading": o.value,
73
- footer: !1,
74
- "mask-closable": !1,
75
- "unmount-on-close": "",
76
- onCancel: k
77
- }, {
78
- default: g(() => {
79
- var l, m;
80
- return [r("div", H, [n[1] || (n[1] = r("div", {
81
- class: "invite-code-label"
82
- }, "我的邀请码:", -1)), r("div", L, [r("span", null, _(((l = a(s)) == null ? void 0 : l.personalInviteCode) || "-"), 1), (m = a(s)) != null && m.personalInviteCode ? (d(), v(E, {
83
- key: 0,
84
- value: a(s).personalInviteCode,
85
- message: "邀请码复制成功"
86
- }, null, 8, ["value"])) : z("", !0)])]), A(y, {
87
- columns: x,
88
- data: a(c),
89
- loading: o.value,
90
- pagination: a(t),
91
- onPageChange: I,
92
- onPageSizeChange: S
93
- }, {
94
- email: g(({
95
- record: R
96
- }) => [U(_(R.refereeInfo.email || "-"), 1)]),
97
- _: 1
98
- }, 8, ["data", "loading", "pagination"])];
99
- }),
100
- _: 1
101
- }, 8, ["visible", "width", "ok-loading"]));
102
- }
103
- }), ee = /* @__PURE__ */ B(O, [["__scopeId", "data-v-44239639"]]);
104
- export {
105
- ee as R
106
- };