@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
package/dist/message.d.ts CHANGED
@@ -10,8 +10,11 @@ export { default as MessageMenu } from './components/Message/MessageMenu.vue';
10
10
  export { default as MessageMenuItem } from './components/Message/MessageMenuItem.vue';
11
11
  export { default as MessageHandle } from './components/Message/MessageHandle.vue';
12
12
  export { default as MessageList } from './components/Message/MessageList.vue';
13
+ export { default as MessageNotificationDetails } from './components/Message/MessageNotificationDetails.vue';
13
14
  export { default as MessageNotifications } from './components/Message/MessageNotifications.vue';
14
15
  export { default as MessageTabs } from './components/Message/MessageTabs.vue';
15
16
  export { default as MessageNoticeNotifications } from './components/Message/MessageNoticeNotifications.vue';
16
17
  export { default as MessageNoticeNotificationsDetails } from './components/Message/MessageNoticeNotificationsDetails.vue';
18
+ export { hasMessageBody, listRegisteredMessageBodyTypes, registerMessageBody, resolveMessageBodyComponent, } from './components/Message/messageBody/messageBodyRegistry';
19
+ export type { MessageBodyProps } from './components/Message/messageBody/types';
17
20
  export { useMessageNotifications } from './composables/useMessageNotifications';
package/dist/message.js CHANGED
@@ -1,23 +1,303 @@
1
- import { _ as a, C as i, a as t, b as o, D as g, E as M, c as n, M as f, N as c, d as N, e as r } from "./MessageHandle-BG12aX0i.js";
2
- import { I as m, M as p } from "./MessageList-CrCF8mU6.js";
3
- import { M as D, a as x, _ as C } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js";
4
- import { u as d } from "./useMessageNotifications-D85_-mDq.js";
1
+ import { r as L, D as q } from "./MessageHandle-mEkCsv9e.js";
2
+ import { _ as Ce, C as De, a as Be, b as Ae, E as Ie, c as Te, M as Le, N as Pe, d as $e, e as qe, f as Se, h as Ee, l as He, g as Ve } from "./MessageHandle-mEkCsv9e.js";
3
+ /* empty css */
4
+ import { M as Ke } from "./MessageList-Ce-_LNTk.js";
5
+ import { h as C, defineComponent as m, computed as d, openBlock as r, createBlock as g, unref as v, withCtx as S, resolveDynamicComponent as E, createElementBlock as l, toDisplayString as y, Fragment as h, renderList as D, createCommentVNode as b, ref as M, normalizeClass as H, createElementVNode as k } from "vue";
6
+ import { Tag as V, Descriptions as F } from "@arco-design/web-vue";
7
+ /* empty css */
8
+ import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { useRouter as K } from "vue-router";
10
+ import { I as je } from "./userMenuModal-D-nDaYqM.js";
11
+ import { Icon as $ } from "@iconify/vue";
12
+ import { o as O } from "./apiClients-BcXOLuYu.js";
13
+ import { u as ze } from "./useMessageNotifications-CAphguOm.js";
14
+ function N(e) {
15
+ return !!e && typeof e == "object" && !Array.isArray(e);
16
+ }
17
+ function j(e) {
18
+ return N(e) ? e.color === void 0 || typeof e.color == "string" : !1;
19
+ }
20
+ function w(e) {
21
+ return N(e) ? typeof e.href == "string" && (e.target === void 0 || typeof e.target == "string") : !1;
22
+ }
23
+ function z(e) {
24
+ return !N(e) || typeof e.type != "string" || typeof e.text != "string" ? !1 : e.type === "text" ? !0 : e.type === "tag" ? e.tagProps === void 0 || j(e.tagProps) : e.type === "link" ? w(e.linkProps) : !1;
25
+ }
26
+ function J(e) {
27
+ return N(e) ? typeof e.key == "string" && typeof e.label == "string" && z(e.value) : !1;
28
+ }
29
+ function R(e) {
30
+ const t = Array.isArray(e.items) ? e.items.filter(J) : [];
31
+ return {
32
+ title: typeof e.title == "string" && e.title.trim() ? e.title.trim() : void 0,
33
+ items: t
34
+ };
35
+ }
36
+ function W(e) {
37
+ var t;
38
+ if (e.type === "tag")
39
+ return C(V, {
40
+ color: ((t = e.tagProps) == null ? void 0 : t.color) ?? "gray"
41
+ }, () => e.text);
42
+ if (e.type === "link") {
43
+ const s = e.linkProps.target ?? "_blank";
44
+ return C("a", {
45
+ href: e.linkProps.href,
46
+ target: s,
47
+ rel: s === "_blank" ? "noopener noreferrer" : void 0
48
+ }, e.text);
49
+ }
50
+ return C("span", e.text);
51
+ }
52
+ const G = {
53
+ key: 1,
54
+ class: "descriptions-message-body__fallback"
55
+ }, Q = /* @__PURE__ */ m({
56
+ __name: "DescriptionsMessageBody",
57
+ props: {
58
+ data: {},
59
+ title: {},
60
+ description: {},
61
+ type: {}
62
+ },
63
+ setup(e) {
64
+ const t = e, s = d(() => R(t.data)), o = d(() => s.value.title), i = d(() => s.value.items), a = d(() => {
65
+ try {
66
+ return JSON.stringify(t.data, null, 2);
67
+ } catch {
68
+ return String(t.data);
69
+ }
70
+ });
71
+ return (c, n) => i.value.length > 0 ? (r(), g(v(F), {
72
+ key: 0,
73
+ class: "descriptions-message-body",
74
+ title: o.value,
75
+ column: 1,
76
+ bordered: "",
77
+ size: "medium",
78
+ data: i.value
79
+ }, {
80
+ value: S(({
81
+ data: p
82
+ }) => [(r(), g(E(v(W)(p.value))))]),
83
+ _: 1
84
+ }, 8, ["title", "data"])) : (r(), l("pre", G, y(a.value), 1));
85
+ }
86
+ }), U = /* @__PURE__ */ x(Q, [["__scopeId", "data-v-d80f7fab"]]);
87
+ function X(e) {
88
+ const t = e.link;
89
+ if (t && typeof t == "object" && !Array.isArray(t)) {
90
+ const o = t, i = typeof o.href == "string" ? o.href.trim() : "", a = typeof o.label == "string" ? o.label.trim() : "点击查看详情";
91
+ if (i)
92
+ return {
93
+ href: i,
94
+ label: a || "点击查看详情"
95
+ };
96
+ }
97
+ const s = typeof e.linkHref == "string" ? e.linkHref.trim() : "";
98
+ if (s) {
99
+ const o = typeof e.linkLabel == "string" ? e.linkLabel.trim() : "点击查看详情";
100
+ return {
101
+ href: s,
102
+ label: o || "点击查看详情"
103
+ };
104
+ }
105
+ return null;
106
+ }
107
+ function Y(e) {
108
+ return e.split(/\r?\n/).map((t) => t.trim()).filter(Boolean);
109
+ }
110
+ function Z(e) {
111
+ return /^https?:\/\//i.test(e) || e.startsWith("//");
112
+ }
113
+ const ee = {
114
+ class: "text-message-body"
115
+ }, te = ["href"], se = /* @__PURE__ */ m({
116
+ __name: "TextMessageBody",
117
+ props: {
118
+ data: {},
119
+ title: {},
120
+ description: {},
121
+ type: {}
122
+ },
123
+ setup(e) {
124
+ const t = e, s = K(), o = d(() => {
125
+ var n;
126
+ return typeof t.data.text == "string" ? t.data.text : ((n = t.description) == null ? void 0 : n.trim()) || "";
127
+ }), i = d(() => Y(o.value)), a = d(() => X(t.data));
128
+ function c(n) {
129
+ var u;
130
+ const p = (u = a.value) == null ? void 0 : u.href;
131
+ !p || Z(p) || (n.preventDefault(), s.push(p));
132
+ }
133
+ return (n, p) => (r(), l("div", ee, [(r(!0), l(h, null, D(i.value, (u, _) => (r(), l("p", {
134
+ key: _,
135
+ class: "text-message-body__paragraph"
136
+ }, y(u), 1))), 128)), a.value ? (r(), l("a", {
137
+ key: 0,
138
+ href: a.value.href,
139
+ class: "text-message-body__link",
140
+ onClick: c
141
+ }, y(a.value.label), 9, te)) : b("", !0)]));
142
+ }
143
+ }), ne = /* @__PURE__ */ x(se, [["__scopeId", "data-v-4096fbb8"]]);
144
+ function re() {
145
+ L("text", ne), L("descriptions", U);
146
+ }
147
+ const oe = /* @__PURE__ */ m({
148
+ __name: "MessageMenuItem",
149
+ props: {
150
+ hidden: {
151
+ type: Boolean,
152
+ required: !0
153
+ },
154
+ path: {
155
+ type: String,
156
+ required: !0
157
+ },
158
+ icon: {
159
+ type: String,
160
+ required: !0
161
+ },
162
+ name: {
163
+ type: String,
164
+ required: !0
165
+ },
166
+ active: {
167
+ type: Boolean,
168
+ required: !0
169
+ }
170
+ },
171
+ setup(e) {
172
+ const t = e, s = M(!1);
173
+ function o() {
174
+ s.value = !0;
175
+ }
176
+ function i() {
177
+ s.value = !1;
178
+ }
179
+ return (a, c) => t.hidden ? b("", !0) : (r(), l("div", {
180
+ key: 0,
181
+ class: H(["List", {
182
+ Active: t.active,
183
+ Hover: s.value && !t.active
184
+ }]),
185
+ onMouseover: o,
186
+ onMouseout: i
187
+ }, [t.icon ? (r(), g(v($), {
188
+ key: 0,
189
+ class: "icon",
190
+ icon: t.icon
191
+ }, null, 8, ["icon"])) : b("", !0), k("span", null, y(t.name), 1)], 34));
192
+ }
193
+ }), P = /* @__PURE__ */ x(oe, [["__scopeId", "data-v-e1a181b9"]]), ie = {
194
+ class: "Menu"
195
+ }, ae = {
196
+ class: "TitleContent"
197
+ }, ce = {
198
+ class: "Title"
199
+ }, le = {
200
+ class: "MenuItem2"
201
+ }, pe = /* @__PURE__ */ m({
202
+ __name: "MessageMenu",
203
+ props: {
204
+ menus: {
205
+ type: Array,
206
+ required: !0
207
+ },
208
+ selectedKeys: {
209
+ type: Array,
210
+ required: !0
211
+ }
212
+ },
213
+ emits: ["update:selectedKeys", "change"],
214
+ setup(e, {
215
+ emit: t
216
+ }) {
217
+ const s = e, o = t;
218
+ function i(a, c) {
219
+ o("change", a, c);
220
+ }
221
+ return (a, c) => (r(), l("div", ie, [(r(!0), l(h, null, D(s.menus, (n, p) => {
222
+ var u, _, B;
223
+ return r(), l("div", {
224
+ key: p
225
+ }, [n.children && n.children.length !== 0 ? (r(), l(h, {
226
+ key: 0
227
+ }, [k("span", ae, [(u = n == null ? void 0 : n.meta) != null && u.icon ? (r(), g(v($), {
228
+ key: 0,
229
+ class: "icon",
230
+ icon: n.meta.icon
231
+ }, null, 8, ["icon"])) : b("", !0), k("span", ce, y(n.name), 1)]), k("span", le, [(r(!0), l(h, null, D(n.children, (f, A) => {
232
+ var I, T;
233
+ return r(), g(P, {
234
+ key: A,
235
+ hidden: ((I = f.meta) == null ? void 0 : I.hidden) || !1,
236
+ path: f.path,
237
+ icon: (T = f.meta) == null ? void 0 : T.icon,
238
+ name: f.name,
239
+ active: s.selectedKeys.includes(f.path),
240
+ onClick: (ue) => i(f, A)
241
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
242
+ }), 128))])], 64)) : (r(), g(P, {
243
+ key: 1,
244
+ hidden: ((_ = n.meta) == null ? void 0 : _.hidden) || !1,
245
+ path: n.path,
246
+ icon: (B = n.meta) == null ? void 0 : B.icon,
247
+ name: n.name,
248
+ active: s.selectedKeys.includes(n.path),
249
+ onClick: (f) => i(n, p)
250
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
251
+ }), 128))]));
252
+ }
253
+ }), ve = /* @__PURE__ */ x(pe, [["__scopeId", "data-v-bc22aac1"]]), be = /* @__PURE__ */ m({
254
+ __name: "MessageNoticeNotificationsDetails",
255
+ props: {
256
+ id: {
257
+ type: String,
258
+ required: !0
259
+ }
260
+ },
261
+ setup(e) {
262
+ const t = M(!1), s = M(null), o = M(""), i = e;
263
+ async function a() {
264
+ t.value = !0;
265
+ const {
266
+ data: c
267
+ } = await O.messageCenter.noticeNotifications.findOne.post({
268
+ id: i.id
269
+ });
270
+ t.value = !1, c && (s.value = c.content, o.value = c.title);
271
+ }
272
+ return a(), (c, n) => (r(), g(q, {
273
+ content: s.value,
274
+ title: o.value,
275
+ loading: t.value
276
+ }, null, 8, ["content", "title", "loading"]));
277
+ }
278
+ });
279
+ re();
5
280
  export {
6
- m as InfiniteLoading,
7
- a as MessageAppMessage,
8
- i as MessageChangelogNotifications,
9
- t as MessageChangelogNotificationsDetails,
10
- o as MessageCustomTabs,
11
- g as MessageDetails,
12
- M as MessageEventNotifications,
13
- n as MessageEventNotificationsDetails,
14
- f as MessageHandle,
15
- p as MessageList,
16
- D as MessageMenu,
17
- x as MessageMenuItem,
18
- c as MessageNoticeNotifications,
19
- C as MessageNoticeNotificationsDetails,
20
- N as MessageNotifications,
21
- r as MessageTabs,
22
- d as useMessageNotifications
281
+ je as InfiniteLoading,
282
+ Ce as MessageAppMessage,
283
+ De as MessageChangelogNotifications,
284
+ Be as MessageChangelogNotificationsDetails,
285
+ Ae as MessageCustomTabs,
286
+ q as MessageDetails,
287
+ Ie as MessageEventNotifications,
288
+ Te as MessageEventNotificationsDetails,
289
+ Le as MessageHandle,
290
+ Ke as MessageList,
291
+ ve as MessageMenu,
292
+ P as MessageMenuItem,
293
+ Pe as MessageNoticeNotifications,
294
+ be as MessageNoticeNotificationsDetails,
295
+ $e as MessageNotificationDetails,
296
+ qe as MessageNotifications,
297
+ Se as MessageTabs,
298
+ Ee as hasMessageBody,
299
+ He as listRegisteredMessageBodyTypes,
300
+ L as registerMessageBody,
301
+ Ve as resolveMessageBodyComponent,
302
+ ze as useMessageNotifications
23
303
  };
package/dist/pay.d.ts CHANGED
@@ -7,4 +7,4 @@ export { usePaymentPolling, usePaymentReturnPage, verifyPaymentStatus, type Paym
7
7
  export { useBillingPlans, type BillingFeatureItem, type BillingInterval, type BillingIntervalKey, type BillingIntervalTab, type BillingPlan, type BillingPrice, type BillingProduct, type BillingProductFeature, type BillingSubscription, } from './composables/Billing/useBillingPlans';
8
8
  export { useBillingSubscriptionSummary, type BillingSubscriptionSummary, type BillingSubscriptionSummaryCurrent, type BillingSubscriptionSummaryFeature, type BillingSubscriptionSummaryPendingInvoice, type BillingSubscriptionSummaryPointsBalance, type BillingSubscriptionSummaryQuota, } from './composables/Billing/useBillingSubscriptionSummary';
9
9
  export { useSubscriptionCheckout } from './composables/Billing/useSubscriptionCheckout';
10
- export { createBillingStatusOptions, useInvoiceStatusOptions, usePointsRechargeStatusOptions, useRefundStatusOptions, INVOICE_STATUS_FALLBACK, POINTS_RECHARGE_STATUS_FALLBACK, REFUND_STATUS_FALLBACK, type BillingStatusOption, } from './composables/Billing/useBillingStatusOptions';
10
+ export { createBillingStatusOptions, useInvoiceStatusOptions, usePointsRechargeStatusOptions, useRefundStatusOptions, type BillingStatusOption, } from './composables/Billing/useBillingStatusOptions';
package/dist/pay.js CHANGED
@@ -1,26 +1,23 @@
1
- import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-lWnEioX5.js";
2
- import { P, a as o, b as S, c as p, p as A, r as m } from "./PricingPlans-DFcjOMWS.js";
3
- import { u as c, a as l } from "./useSubscriptionCheckout-BRk5h9aC.js";
4
- import { I as g, P as y, R as _, c as b, u as f, a as B, b as C } from "./useBillingStatusOptions-B7xLU3fs.js";
1
+ import { P as e, u as t, a as n, b as u, v as r } from "./PaySubscriptions-CXkEjqr2.js";
2
+ import { P as o, a as P, b as p, c as m, p as c, r as l } from "./PricingPlans-DoWP5aX7.js";
3
+ import { u as y, a as S } from "./useSubscriptionCheckout-d_M_rKRa.js";
4
+ import { c as b, u as f, a as v, b as x } from "./useBillingStatusOptions-CfHQOFNw.js";
5
5
  export {
6
- g as INVOICE_STATUS_FALLBACK,
7
- P as PAYMENT_RETURN_PATH,
8
- y as POINTS_RECHARGE_STATUS_FALLBACK,
6
+ o as PAYMENT_RETURN_PATH,
9
7
  e as PaySubscriptions,
10
- o as PaymentReturnPage,
11
- S as PricingFAQ,
12
- p as PricingPlans,
13
- _ as REFUND_STATUS_FALLBACK,
8
+ P as PaymentReturnPage,
9
+ p as PricingFAQ,
10
+ m as PricingPlans,
14
11
  b as createBillingStatusOptions,
15
- A as parsePaymentReturnQuery,
16
- m as resolvePaymentReturnTarget,
17
- c as useBillingPlans,
12
+ c as parsePaymentReturnQuery,
13
+ l as resolvePaymentReturnTarget,
14
+ y as useBillingPlans,
18
15
  t as useBillingSubscriptionSummary,
19
16
  f as useInvoiceStatusOptions,
20
17
  n as usePaymentPolling,
21
18
  u as usePaymentReturnPage,
22
- B as usePointsRechargeStatusOptions,
23
- C as useRefundStatusOptions,
24
- l as useSubscriptionCheckout,
19
+ v as usePointsRechargeStatusOptions,
20
+ x as useRefundStatusOptions,
21
+ S as useSubscriptionCheckout,
25
22
  r as verifyPaymentStatus
26
23
  };
@@ -1,4 +1,4 @@
1
- import { C as a, F as r, I as e } from "./Contact-M6iyuyNL.js";
1
+ import { C as a, F as r, I as e } from "./Contact-DBH8CyKp.js";
2
2
  export {
3
3
  a as Contact,
4
4
  r as Footer,
package/dist/referrer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as f } from "./ReferrerReferees-Cn7KaO8z.js";
1
+ import { R as f } from "./ReferrerReferees-DgygiIiE.js";
2
2
  export {
3
3
  f as ReferrerReferees
4
4
  };