@funhub/platform 0.2.4 → 0.2.6

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 (231) hide show
  1. package/dist/assets/icons/detail/collect_nor.mjs +2 -0
  2. package/dist/assets/icons/detail/collect_sel.mjs +2 -0
  3. package/dist/assets/icons/detail/share.mjs +2 -0
  4. package/dist/assets/icons/eye-off-icon.mjs +1 -1
  5. package/dist/assets/icons/marquee-enter.mjs +2 -0
  6. package/dist/assets/icons/right_arrow.mjs +2 -0
  7. package/dist/assets/icons/search/avatar.mjs +2 -0
  8. package/dist/assets/images/marquee.mjs +2 -0
  9. package/dist/biz.d.mts +6 -10
  10. package/dist/biz.mjs +1 -1
  11. package/dist/common.d.mts +2 -5
  12. package/dist/common.mjs +1 -1
  13. package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -1
  14. package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
  15. package/dist/components/biz/business/advertisement/ad-match.d.mts +3 -7
  16. package/dist/components/biz/business/advertisement/ad-match.mjs +1 -1
  17. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  18. package/dist/components/biz/business/advertisement/banner-ad/material.d.mts +2 -2
  19. package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -1
  20. package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +4 -9
  21. package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -1
  22. package/dist/components/biz/business/advertisement/feed-ad/index.d.mts +31 -1
  23. package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -1
  24. package/dist/components/biz/business/advertisement/floating-ad/client.d.mts +3 -4
  25. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -1
  26. package/dist/components/biz/business/advertisement/floating-ad/index.d.mts +1 -1
  27. package/dist/components/biz/business/advertisement/floating-ad/material.d.mts +0 -5
  28. package/dist/components/biz/business/advertisement/floating-ad/schema.d.mts +6 -21
  29. package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -1
  30. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  31. package/dist/components/biz/business/advertisement/icon-ad/material.d.mts +1 -1
  32. package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -1
  33. package/dist/components/biz/business/advertisement/icon-ad/schema.d.mts +1 -7
  34. package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -1
  35. package/dist/components/biz/business/advertisement/index.d.mts +4 -4
  36. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -2
  37. package/dist/components/biz/business/advertisement/popup-ad/index.d.mts +1 -1
  38. package/dist/components/biz/business/advertisement/popup-ad/material.d.mts +2 -2
  39. package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +15 -14
  40. package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -1
  41. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  42. package/dist/components/biz/business/advertisement/text-ad/material.d.mts +1 -1
  43. package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -1
  44. package/dist/components/biz/business/advertisement/text-ad/schema.d.mts +1 -5
  45. package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -1
  46. package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -1
  47. package/dist/components/biz/business/banner-carousel/client.d.mts +1 -2
  48. package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
  49. package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -1
  50. package/dist/components/biz/business/channel-list/client.mjs +1 -1
  51. package/dist/components/biz/business/channel-list/default-props.mjs +1 -1
  52. package/dist/components/biz/business/detail/shared/detail-introduction.mjs +2 -0
  53. package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
  54. package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -1
  55. package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
  56. package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -1
  57. package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
  58. package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -1
  59. package/dist/components/biz/business/detail/video-detail-recommend/client.d.mts +13 -1
  60. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
  61. package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -1
  62. package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -1
  63. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
  64. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +1 -1
  65. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
  66. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +3 -4
  67. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
  68. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
  69. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
  70. package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
  71. package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -1
  72. package/dist/components/biz/business/header-search/shared/logo.mjs +1 -1
  73. package/dist/components/biz/business/header-search/shared/search.mjs +1 -1
  74. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +8 -0
  75. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
  76. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +8 -0
  77. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +8 -0
  78. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
  79. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +8 -0
  80. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  81. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
  82. package/dist/components/biz/business/index.d.mts +5 -10
  83. package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
  84. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
  85. package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
  86. package/dist/components/biz/business/marquee/client.mjs +1 -1
  87. package/dist/components/biz/business/marquee/marquee.module.mjs +6 -2
  88. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
  89. package/dist/components/biz/business/profile/index.d.mts +1 -1
  90. package/dist/components/biz/business/profile/profile-header/client.d.mts +1 -2
  91. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  92. package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
  93. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
  94. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
  95. package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
  96. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
  97. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
  98. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
  99. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -5
  100. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
  101. package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
  102. package/dist/components/biz/business/search-history/client.mjs +1 -1
  103. package/dist/components/biz/business/search-history/schema.mjs +1 -1
  104. package/dist/components/biz/business/search-input/client.mjs +1 -1
  105. package/dist/components/biz/business/shortcut-grid/client.mjs +1 -1
  106. package/dist/components/biz/business/tab-bar/client.d.mts +2 -0
  107. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  108. package/dist/components/common/collection-popup/collection-create-modal.mjs +2 -0
  109. package/dist/components/common/collection-popup/index.d.mts +0 -1
  110. package/dist/components/common/collection-popup/index.mjs +1 -1
  111. package/dist/components/common/icons/setting.mjs +1 -1
  112. package/dist/components/common/list/collection-list/collection-list-item.d.mts +0 -8
  113. package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -1
  114. package/dist/components/common/list/collection-list/collection-list.d.mts +0 -6
  115. package/dist/components/common/list/collection-list/collection-list.mjs +1 -1
  116. package/dist/components/common/series-episodes/index.d.mts +1 -3
  117. package/dist/components/common/series-episodes/index.mjs +1 -1
  118. package/dist/components/common/skeleton/search-video-card-skeleton.mjs +2 -0
  119. package/dist/components/common/tab-bar/index.mjs +1 -1
  120. package/dist/components/common/video-player/index.d.mts +2 -1
  121. package/dist/components/common/video-player/video-blind-ad-overlay.mjs +2 -0
  122. package/dist/components/common/video-player/video-player-ref-context.mjs +2 -0
  123. package/dist/components/pages/collection-detail/detail.mjs +1 -1
  124. package/dist/components/pages/edit/page.mjs +1 -1
  125. package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
  126. package/dist/components/pages/home/client.mjs +1 -1
  127. package/dist/components/pages/login/login-client.mjs +1 -1
  128. package/dist/components/pages/login/register.mjs +1 -1
  129. package/dist/components/pages/login/verify.mjs +4 -1
  130. package/dist/components/pages/publish/components/collection.mjs +1 -1
  131. package/dist/components/pages/search/page-client.mjs +1 -1
  132. package/dist/components/pages/search/search-result/index.mjs +1 -1
  133. package/dist/components/pages/search/search-result/search-all.mjs +1 -1
  134. package/dist/components/pages/search/search-result/search-user.mjs +1 -1
  135. package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
  136. package/dist/components/pages/search/search-utils.mjs +2 -0
  137. package/dist/components/pages/search/top-header.mjs +1 -1
  138. package/dist/components/pages/search-result/page-client.mjs +1 -1
  139. package/dist/components/pages/search-result/search-all.mjs +1 -1
  140. package/dist/components/pages/search-result/search-result-skeleton.mjs +2 -0
  141. package/dist/components/pages/search-result/search-tab.mjs +1 -1
  142. package/dist/components/pages/search-result/search-user.mjs +1 -1
  143. package/dist/components/pages/search-result/search-video.mjs +2 -0
  144. package/dist/components/pages/settings/_components/reset-password-drawer.mjs +2 -2
  145. package/dist/components/pages/settings/_components/settings.mjs +1 -1
  146. package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -1
  147. package/dist/components/pages/video-list/video-list-client.mjs +1 -1
  148. package/dist/components/pages/video-list/video-list-item.mjs +2 -0
  149. package/dist/components/pages/video-list/video-list-skeleton.d.mts +3 -2
  150. package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -1
  151. package/dist/components/ui/badge.d.mts +1 -1
  152. package/dist/components/ui/box.d.mts +1 -1
  153. package/dist/components/ui/button.d.mts +2 -2
  154. package/dist/components/ui/image.d.mts +4 -4
  155. package/dist/components/ui/input-group.d.mts +1 -1
  156. package/dist/components/ui/item.d.mts +1 -1
  157. package/dist/hooks/use-is-client.d.mts +10 -0
  158. package/dist/hooks/use-is-client.mjs +2 -0
  159. package/dist/hooks.d.mts +2 -1
  160. package/dist/hooks.mjs +1 -1
  161. package/dist/i18n/locales/en.mjs +2 -2
  162. package/dist/i18n/locales/zh-CN.mjs +2 -2
  163. package/dist/materials.d.mts +1 -3
  164. package/dist/materials.mjs +1 -1
  165. package/dist/service/generated/client.d.mts +10 -2
  166. package/dist/service/generated/client.mjs +1 -1
  167. package/dist/service/generated/tanstack.d.mts +12 -2
  168. package/dist/service/generated/tanstack.mjs +1 -1
  169. package/dist/service.d.mts +3 -3
  170. package/dist/service.mjs +1 -1
  171. package/dist/store/modules/blind-spot-ad-store.d.mts +116 -0
  172. package/dist/store/modules/blind-spot-ad-store.mjs +2 -0
  173. package/dist/store/modules/video-player-ref-store.d.mts +21 -0
  174. package/dist/store/modules/video-player-ref-store.mjs +2 -0
  175. package/dist/store.d.mts +3 -1
  176. package/dist/store.mjs +1 -1
  177. package/dist/types.d.mts +171 -33
  178. package/dist/utils/helper.d.mts +1 -1
  179. package/dist/utils/helper.mjs +1 -1
  180. package/dist/utils/schema/inspector.d.mts +2 -2
  181. package/package.json +2 -8
  182. package/theme.css +59 -170
  183. package/dist/assets/icons/channel-list/channel-active-indicator.mjs +0 -2
  184. package/dist/assets/icons/common/header-menu.mjs +0 -2
  185. package/dist/assets/icons/common/header-search-icon.mjs +0 -2
  186. package/dist/assets/icons/common/right_arrow_thin.mjs +0 -2
  187. package/dist/assets/icons/marquee-close.mjs +0 -2
  188. package/dist/assets/icons/marquee-speaker.mjs +0 -2
  189. package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +0 -2
  190. package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +0 -2
  191. package/dist/components/biz/business/header-search/shared/header-action.mjs +0 -2
  192. package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +0 -2
  193. package/dist/components/biz/business/header-search/shared/header-shell.mjs +0 -2
  194. package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
  195. package/dist/components/biz/business/hot-recommend/client.mjs +0 -2
  196. package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
  197. package/dist/components/biz/business/hot-recommend/material.d.mts +0 -24
  198. package/dist/components/biz/business/hot-recommend/material.mjs +0 -2
  199. package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -23
  200. package/dist/components/biz/business/hot-recommend/schema.mjs +0 -2
  201. package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
  202. package/dist/components/biz/business/hot-recommend/server.mjs +0 -2
  203. package/dist/components/biz/business/profile/profile-main/empty-state.mjs +0 -2
  204. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +0 -2
  205. package/dist/components/biz/business/ranking-recommend/client.d.mts +0 -17
  206. package/dist/components/biz/business/ranking-recommend/client.mjs +0 -70
  207. package/dist/components/biz/business/ranking-recommend/material.d.mts +0 -35
  208. package/dist/components/biz/business/ranking-recommend/material.mjs +0 -2
  209. package/dist/components/biz/business/ranking-recommend/schema.d.mts +0 -35
  210. package/dist/components/biz/business/ranking-recommend/schema.mjs +0 -2
  211. package/dist/components/biz/business/ranking-recommend/server.d.mts +0 -11
  212. package/dist/components/biz/business/ranking-recommend/server.mjs +0 -2
  213. package/dist/components/biz/business/ranking-recommend/shared/query.mjs +0 -2
  214. package/dist/components/biz/business/ranking-recommend/shared.d.mts +0 -15
  215. package/dist/components/biz/business/ranking-recommend/shared.mjs +0 -2
  216. package/dist/components/common/collection-popup/create-collection-sheet.d.mts +0 -41
  217. package/dist/components/common/collection-popup/create-collection-sheet.mjs +0 -2
  218. package/dist/components/common/list/collection-list/collection-select-icon.mjs +0 -2
  219. package/dist/components/common/list/waterfall-recommend/index.d.mts +0 -2
  220. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.d.mts +0 -116
  221. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +0 -2
  222. package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +0 -2
  223. package/dist/components/pages/login/auth-page-styles.mjs +0 -6
  224. package/dist/components/pages/search/search-result/shared.mjs +0 -2
  225. package/dist/components/pages/search-result/search-empty.mjs +0 -2
  226. package/dist/components/pages/search-result/search-video-info.mjs +0 -2
  227. package/dist/components/pages/search-result/shared.mjs +0 -2
  228. package/dist/components/pages/search-result/top-header.mjs +0 -2
  229. package/dist/components/pages/video-list/video-list-recommend-item.mjs +0 -2
  230. package/dist/theme-tokens.d.mts +0 -9
  231. package/dist/theme-tokens.mjs +0 -2
@@ -1,116 +0,0 @@
1
-
2
- import { ReactNode } from "react";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region components/common/list/waterfall-recommend/waterfall-recommend.d.ts
6
- type WaterfallRecommendCardKind = 'tall' | 'short';
7
- type WaterfallRecommendColumnName = 'left' | 'right';
8
- /**
9
- * 瀑布流卡片纯 UI 数据。
10
- * 外部负责把业务数据组织成这个结构后传入。
11
- */
12
- interface WaterfallRecommendItem {
13
- /** 唯一 key。 */
14
- key: string;
15
- /** 原始序号,便于外部做曝光/分页触发。 */
16
- sourceIndex: number;
17
- /** 卡片跳转链接。 */
18
- href: string;
19
- /** 卡片高度类型。 */
20
- cardKind: WaterfallRecommendCardKind;
21
- /** 封面地址。 */
22
- coverUrl?: string;
23
- /** 标题。 */
24
- title: string;
25
- /** 左上角角标。 */
26
- badgeImageUrl?: string;
27
- /** 左上角文字标签(如"独播")。 */
28
- badgeText?: string;
29
- /** 右上角集数文字(如"24集全")。 */
30
- episodeText?: string;
31
- /** 标题下第一行辅助文案。 */
32
- metaPrimaryText?: string;
33
- /** 热度文案。 */
34
- heatText?: string;
35
- /** 评分,0-10。 */
36
- score?: number;
37
- /**
38
- * 选择模式下的业务 ID(如视频 id)。
39
- * 未设置时该卡片在选择模式下不可切换。
40
- */
41
- selectionId?: string;
42
- }
43
- /**
44
- * 瀑布流左右列数据。
45
- * 外部负责完成分列后传入。
46
- */
47
- interface WaterfallRecommendColumns {
48
- left: WaterfallRecommendItem[];
49
- right: WaterfallRecommendItem[];
50
- }
51
- interface WaterfallRecommendProps {
52
- /** 区块标题。 */
53
- title: string;
54
- /** 右上角“更多”链接。 */
55
- moreHref?: string;
56
- /** 右上角“更多”点击事件。 */
57
- onMoreClick?: () => void;
58
- /** 右上角“更多”图标。 */
59
- moreIcon?: ReactNode;
60
- /** 区块数据。 */
61
- columns: WaterfallRecommendColumns;
62
- /** 外层区块样式类。 */
63
- sectionClassName?: string;
64
- /** 标题行样式类。 */
65
- headerClassName?: string;
66
- /** 标题样式类。 */
67
- titleClassName?: string;
68
- /** 更多入口样式类。 */
69
- moreLinkClassName?: string;
70
- /** 内容区样式类。 */
71
- containerClassName?: string;
72
- /** 容器内覆盖层。 */
73
- overlay?: ReactNode;
74
- /** 底部附加内容。 */
75
- footer?: ReactNode;
76
- /**
77
- * 外部注入 item ref,用于分页触发、首行测量等逻辑。
78
- */
79
- getItemRef?: (params: {
80
- item: WaterfallRecommendItem;
81
- column: WaterfallRecommendColumnName;
82
- columnIndex: number;
83
- }) => ((node: HTMLDivElement | null) => void) | undefined;
84
- /**
85
- * 是否处于选择模式(默认 false,不影响既有用法)。
86
- * 为 true 时卡片不跳转,展示与收藏夹一致的选择圈,并隐藏角标/标题等头部信息区。
87
- */
88
- selectionMode?: boolean;
89
- /** 已选中的业务 ID 集合。 */
90
- selectedIds?: Set<string>;
91
- /** 切换某项选中状态。 */
92
- onToggleSelection?: (id: string) => void;
93
- }
94
- /**
95
- * 纯 UI 瀑布流组件。
96
- */
97
- declare function WaterfallRecommend({
98
- title,
99
- moreHref,
100
- onMoreClick,
101
- moreIcon,
102
- columns,
103
- sectionClassName,
104
- headerClassName,
105
- titleClassName,
106
- moreLinkClassName,
107
- containerClassName,
108
- overlay,
109
- footer,
110
- getItemRef,
111
- selectionMode,
112
- selectedIds,
113
- onToggleSelection
114
- }: WaterfallRecommendProps): react_jsx_runtime0.JSX.Element;
115
- //#endregion
116
- export { WaterfallRecommend, WaterfallRecommendCardKind, WaterfallRecommendColumnName, WaterfallRecommendColumns, WaterfallRecommendItem, WaterfallRecommendProps };
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../ui/link.mjs";import{CollectionSelectIcon as i,CollectionSelectedIcon as a}from"../collection-list/collection-select-icon.mjs";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c={backgroundImage:`var(--gradient-card-mask-strong)`},l={color:`var(--color-brand-rating)`};function u({title:e,moreHref:i,onMoreClick:a,moreIcon:c,columns:l,sectionClassName:u=`w-full`,headerClassName:f=`mb-[16px] flex items-center justify-between px-[16px]`,titleClassName:p=`flex-1 min-w-0 text-[18px] leading-[24px] font-medium line-clamp-1 text-text2`,moreLinkClassName:m=`ml-[8px] flex size-[24px] shrink-0 items-center justify-center opacity-50`,containerClassName:h=`relative flex w-full gap-[15px] px-[16px]`,overlay:g,footer:_,getItemRef:v,selectionMode:y=!1,selectedIds:b,onToggleSelection:x}){return s(t,{className:u,children:[s(t,{className:f,children:[o(n,{className:p,children:e}),c&&i&&o(r,{href:i,"aria-label":`更多`,className:m,children:c}),c&&!i&&a&&o(`button`,{type:`button`,"aria-label":`更多`,className:m,onClick:a,children:c})]}),s(t,{className:h,children:[o(t,{className:`flex-1 min-w-0 flex flex-col`,children:l.left.map((e,t)=>o(`div`,{ref:v?.({item:e,column:`left`,columnIndex:t}),children:o(d,{item:e,selectionMode:y,selectedIds:b,onToggleSelection:x})},e.key))}),o(t,{className:`flex-1 min-w-0 flex flex-col`,children:l.right.map((e,t)=>o(`div`,{ref:v?.({item:e,column:`right`,columnIndex:t}),children:o(d,{item:e,selectionMode:y,selectedIds:b,onToggleSelection:x})},e.key))}),g]}),_]})}function d({item:l,selectionMode:u=!1,selectedIds:d,onToggleSelection:m}){let h=l.cardKind===`short`?120:218,g=!!l.metaPrimaryText||!!l.heatText,_=l.cardKind===`short`?`absolute inset-x-0 bottom-0 z-10 flex flex-col justify-end px-[10px] pb-[14px]`:`absolute inset-x-0 bottom-0 z-10 flex flex-col justify-end px-[9px] pb-[14px]`,v=l.selectionId??``,y=!!(v&&d?.has(v));function b(){!u||!v||m?.(v)}let x=s(t,{className:`relative w-full overflow-hidden rounded-[8px] bg-[#18111f]`,style:{height:`${h}px`},children:[l.coverUrl&&o(e,{src:l.coverUrl,alt:l.title||`推荐封面`,fill:!0,objectFit:`cover`,className:`object-cover`}),o(t,{className:`pointer-events-none absolute inset-0 rounded-[8px]`,style:c,"aria-hidden":!0}),u&&o(t,{className:`pointer-events-none absolute left-[8px] top-[8px] z-20`,children:o(y?a:i,{})}),!u&&s(t,{className:`absolute left-[8px] right-[8px] top-[8px] z-10 flex items-center justify-between`,children:[s(t,{className:`flex items-center`,children:[l.badgeImageUrl&&o(f,{url:l.badgeImageUrl}),!l.badgeImageUrl&&l.badgeText&&o(t,{className:`flex items-center justify-center rounded-[4px] px-[4px] py-[2px]`,style:{backgroundImage:`linear-gradient(90deg, #CA3FE9 0%, #9756E3 100%)`},children:o(n,{className:`text-[10px] font-semibold leading-[14px] text-white`,children:l.badgeText})})]}),l.episodeText&&o(n,{className:`text-[14px] leading-[18px] text-white`,children:l.episodeText})]}),!u&&o(t,{className:_,children:s(t,{className:`flex flex-col gap-[4px]`,children:[s(t,{className:`flex min-w-0 flex-col gap-[2px]`,children:[o(n,{as:`h3`,className:`line-clamp-1 text-[14px] leading-[20px] font-medium text-text1`,children:l.title}),g&&s(t,{className:`flex min-w-0 items-center gap-[10px] text-[14px] leading-[20px] font-normal text-text3`,children:[l.metaPrimaryText&&o(n,{as:`span`,className:`min-w-0 truncate text-[14px] leading-[20px] font-normal text-text3`,children:l.metaPrimaryText}),l.heatText&&o(n,{as:`span`,className:`shrink-0 text-[14px] leading-[20px] font-normal text-text3`,children:l.heatText})]})]}),l.score!==void 0&&o(p,{score:l.score})]})})]});return u?o(`button`,{type:`button`,className:`mb-[16px] block w-full cursor-pointer border-0 bg-transparent p-0 text-left`,onClick:b,"aria-pressed":y,disabled:!v,children:x}):o(r,{href:l.href,className:`mb-[16px] block w-full`,children:x})}function f({url:t}){return o(e,{src:t,alt:`角标`,width:96,height:18,className:`h-[18px] w-auto max-w-[96px] object-contain`})}function p({score:e}){let r=Math.max(0,Math.min(e,10)),i=Math.ceil(r/2);return s(t,{className:`flex items-center gap-[8px]`,children:[o(t,{className:`flex h-[14px] w-[86px] items-center gap-[4px]`,children:Array.from({length:5},(e,t)=>o(m,{active:t<i},`waterfall-star-${t}`))}),o(n,{as:`span`,className:`font-mono font-bold text-[12px] leading-[15px]`,style:l,children:e.toFixed(1)})]})}function m({active:e}){return o(t,{className:`size-[14px] shrink-0`,children:o(h,{className:e?``:`opacity-25`,style:l})})}function h({className:e,style:t}){return o(`svg`,{viewBox:`0 0 14 14`,fill:`currentColor`,"aria-hidden":!0,className:`size-full ${e||``}`.trim(),style:t,children:o(`path`,{d:`M7 0.75L8.775 4.348L12.75 4.926L9.875 7.728L10.554 11.686L7 9.818L3.446 11.686L4.125 7.728L1.25 4.926L5.225 4.348L7 0.75Z`})})}export{u as WaterfallRecommend};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{cn as e}from"../../../../utils/cn.mjs";import{Image as t}from"../../../ui/image.mjs";import{Text as n}from"../../../ui/text.mjs";import{CollectionSelectIcon as r,CollectionSelectedIcon as i}from"../../../common/list/collection-list/collection-select-icon.mjs";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{useTranslations as s}from"next-intl";import c from"next/link";function l(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`18`,height:`14`,viewBox:`0 0 18 14`,fill:`none`,...e,children:a(`path`,{d:`M11.34 6.138L7.5195 4.0635C7.3395 3.9645 7.1415 3.9105 6.957 3.9105C6.4035 3.9105 6.003 4.3335 6.003 4.9185V8.991C6.003 9.576 6.4035 9.999 6.957 9.999C7.146 9.999 7.3395 9.945 7.5195 9.8505L11.358 7.776C11.7045 7.587 11.907 7.29 11.907 6.966C11.907 6.6375 11.7 6.3315 11.34 6.138ZM14.7105 0L3.1995 1.1205C1.431 1.1205 0 2.5515 0 4.32V9.7155C0 11.484 1.431 12.915 3.1995 12.915L14.715 13.914C16.4835 13.914 17.9145 12.483 17.9145 10.7145V3.1995C17.9133 2.35053 17.5752 1.53673 16.9745 0.936838C16.3737 0.336945 15.5595 -8.37344e-07 14.7105 0ZM16.3125 10.7145C16.3125 10.9243 16.2712 11.132 16.1909 11.3258C16.1106 11.5197 15.9929 11.6958 15.8446 11.8441C15.6963 11.9924 15.5202 12.1101 15.3263 12.1904C15.1325 12.2707 14.9248 12.312 14.715 12.312L3.1995 11.313C2.98971 11.313 2.78198 11.2717 2.58816 11.1914C2.39435 11.1111 2.21824 10.9934 2.0699 10.8451C1.92156 10.6968 1.80388 10.5207 1.7236 10.3268C1.64332 10.133 1.602 9.92529 1.602 9.7155V4.32C1.602 3.89632 1.77031 3.48999 2.0699 3.1904C2.36949 2.89081 2.77582 2.7225 3.1995 2.7225L14.7105 1.602C14.9203 1.602 15.128 1.64332 15.3218 1.7236C15.5157 1.80388 15.6918 1.92156 15.8401 2.0699C15.9884 2.21824 16.1061 2.39435 16.1864 2.58816C16.2667 2.78198 16.308 2.98971 16.308 3.1995V10.7145H16.3125Z`,fill:`currentColor`})})}function u(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e||0)):0;if(t<=0)return``;let n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return n>0?`${a(n)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}function d(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e||0)):0;return t>=1e8?`${(t/1e8).toFixed(1).replace(/\.0$/,``)}亿`:t>=1e4?`${(t/1e4).toFixed(1).replace(/\.0$/,``)}w`:`${t}`}function f({id:f,title:p,coverImage:m,duration:h=0,episodeCount:g=0,viewCount:_=0,is_more_link:v=!1,isEditMode:y=!1,isSelected:b=!1,onToggleSelection:x}){let S=s(`components.ui.list.videoList`),C=`/video/${f}/${p}`,w=S(v?`videoListItem.series`:`videoListItem.movie`),T=v?g>0?`${g}集全`:``:u(h),E=d(_);function D(){x?.(f)}function O(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),D())}return o(`div`,{className:`relative w-full`,children:[o(`div`,{className:`relative h-[228px] w-full overflow-hidden rounded-[8px]`,children:[a(t,{src:m||`/empty/default-cover.png`,alt:p||S(`videoListItem.coverAlt`),fill:!0,className:`object-cover`}),a(`div`,{className:`pointer-events-none absolute inset-0 rounded-[8px] bg-[linear-gradient(180deg,rgba(8,2,17,0.56)_3.289%,rgba(8,2,17,0)_27.697%,rgba(8,2,17,0.8)_74.178%)]`}),y&&a(`div`,{className:`absolute left-3 top-3 z-20`,children:a(b?i:r,{})}),!y&&o(`div`,{className:e(`absolute left-2 right-2 top-3 z-10 flex items-start justify-between gap-2`),children:[a(`div`,{className:`inline-flex h-5 items-center justify-center rounded-[4px] bg-white/20 px-1 text-center text-[12px] leading-[14px] text-white`,children:a(n,{className:`text-[12px] leading-[14px] text-white`,children:w})}),T?a(n,{className:`shrink-0 text-[14px] leading-4 text-white`,children:T}):null]}),o(`div`,{className:`absolute bottom-3 left-[10px] right-[10px] z-10 flex items-end gap-2`,children:[a(n,{className:`min-w-0 flex-1 line-clamp-2 text-[16px] font-normal leading-6 text-[var(--color-text-white80)]`,dangerouslySetInnerHTML:{__html:p}}),o(`div`,{className:`mb-1 flex shrink-0 items-center gap-1 text-[12px] leading-5 text-white`,children:[a(l,{className:`h-[14px] w-[18px] opacity-80`}),a(n,{className:`text-[12px] leading-5 text-white`,children:E})]})]})]}),y?a(`button`,{type:`button`,className:`absolute inset-0 z-30 block w-full rounded-[8px] text-left`,onClick:D,onKeyDown:O,"aria-pressed":b,children:a(`span`,{className:`sr-only`,children:p||S(`videoListItem.coverAlt`)})}):a(c,{href:C,className:`absolute inset-0 z-30 block rounded-[8px]`,"aria-label":p||S(`videoListItem.coverAlt`)})]})}export{f as CollectionDetailVideoCard};
@@ -1,6 +0,0 @@
1
-
2
- const e={backgroundColor:`var(--color-surface-panel-dark)`,backgroundImage:`
3
- radial-gradient(88% 52% at 8% 3%, rgba(144, 18, 255, 0.32) 0%, rgba(144, 18, 255, 0.14) 32%, rgba(6, 3, 21, 0) 70%),
4
- radial-gradient(72% 48% at 100% 100%, rgba(108, 67, 238, 0.16) 0%, rgba(6, 3, 21, 0) 70%),
5
- linear-gradient(180deg, #080211 0%, #060315 100%)
6
- `},t={backgroundImage:`var(--gradient-brand-tag)`,backgroundClip:`text`,WebkitBackgroundClip:`text`,color:`transparent`};export{t as authGradientTextStyle,e as authPanelBackgroundStyle};
@@ -1,2 +0,0 @@
1
-
2
- import{getPostDetailPagePath as e}from"../../../../utils/tools.mjs";const t=[{label:`综合`,value:1},{label:`最新`,value:2},{label:`最热`,value:3}];function n(e){return!Number.isFinite(e)||e<=0?``:e>=1e8?`${(e/1e8).toFixed(1).replace(/\.0$/,``)}亿热度`:e>=1e4?`${(e/1e4).toFixed(1).replace(/\.0$/,``)}万热度`:`${Math.floor(e)}热度`}function r(e){let t=Number(e);if(!(!Number.isFinite(t)||t<=0))return t>10&&t<=100?t/10:Math.min(t,10)}function i(e){return String(e.img_type??``).trim().toLowerCase()===`long`?`short`:`tall`}function a(e){let t=[],n=[],r=0,i=0;return e.forEach(e=>{let a=(e.cardKind===`short`?120:218)+16;if(r<=i){t.push(e),r+=a;return}n.push(e),i+=a}),{left:t,right:n}}function o(e){return String(e.name||``).trim()}function s(e){return e.img_y||e.img_x||``}function c(e){return String(e.group_name||e.description||``).trim()}function l(t){let n=String(t.video_id||``).trim();return n?e({id:n,contentType:0}):`#`}function u(e){return a(e.filter(e=>String(e.video_id||``).trim()).map((e,t)=>({key:`${e.video_id??`video`}-${t}`,sourceIndex:t,href:l(e),cardKind:i(e),coverUrl:s(e),title:o(e),metaPrimaryText:c(e),heatText:n(Number(e.play_count||0)),score:r(e.score)})))}function d(e){for(let t of e)if(typeof t==`string`&&t.trim())return t.trim();return``}function f(e){return d([e.nick_name,e.nickname,e.display_id,e.user_id])}function p(e){return d([e.signature,e.description,e.text,e.introduce,e.bio])}function m(e){let t=Number(e||0);return!Number.isFinite(t)||t<=0?`0`:t>=1e8?`${(t/1e8).toFixed(1).replace(/\.0$/,``)}亿`:t>=1e4?`${(t/1e4).toFixed(1).replace(/\.0$/,``)}万`:`${Math.floor(t)}`}export{t as SEARCH_RESULT_SORT_OPTIONS,u as buildSearchVideoWaterfallColumns,m as formatSearchFollowerCount,p as resolveSearchUserDescription,f as resolveSearchUserName};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{Box as e}from"../../ui/box.mjs";import{Text as t}from"../../ui/text.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i(){return r(`svg`,{width:`64`,height:`64`,viewBox:`0 0 64 64`,fill:`none`,"aria-hidden":!0,children:[n(`path`,{d:`M0 56V8C0 3.58172 3.58172 0 8 0H44.1975L63.9564 19.1496V56C63.9564 60.4183 60.3747 64 55.9564 64H8C3.58172 64 0 60.4183 0 56Z`,fill:`#1B1829`,stroke:`#322F3E`}),n(`path`,{d:`M44.198 11.2184V0L63.9996 19.2184H52.198C47.7797 19.2184 44.198 15.6367 44.198 11.2184Z`,fill:`#302D3E`}),n(`path`,{transform:`translate(20.982, 21.076)`,d:`M10.0632 0C15.621 0 20.1265 4.50548 20.1265 10.0632C20.1265 12.2975 19.3968 14.3606 18.1649 16.0304L21.5505 19.415C22.1398 20.0045 22.1399 20.961 21.5505 21.5505C20.961 22.1399 20.0045 22.1398 19.415 21.5505L16.0304 18.1649C14.3606 19.3968 12.2975 20.1265 10.0632 20.1265C4.50548 20.1265 0 15.621 0 10.0632C0 4.50548 4.50548 0 10.0632 0ZM10.0632 3.01897C6.17282 3.01897 3.01897 6.17282 3.01897 10.0632C3.01897 13.9537 6.17282 17.1075 10.0632 17.1075C13.9537 17.1075 17.1075 13.9537 17.1075 10.0632C17.1075 6.17282 13.9537 3.01897 10.0632 3.01897Z`,fill:`#54525E`})]})}function a({text:a}){return r(e,{className:`flex flex-1 flex-col items-center pt-[72px]`,children:[n(i,{}),n(t,{className:`mt-[16px] text-center text-[15px] font-normal text-[#54525E]`,children:a})]})}export{a as SearchResultEmpty};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{gContentGetRecommendVideoList as e}from"../../../service/generated/client.mjs";import{Box as t}from"../../ui/box.mjs";import{InfiniteScroll as n}from"../../ui/infinite-scroll.mjs";import{Skeleton as r}from"../../ui/skeleton.mjs";import{usePaginated as i}from"../../../hooks/query/use-query.mjs";import{getPostDetailPagePath as a}from"../../../utils/tools.mjs";import o from"../../../assets/icons/common/right_arrow_thin.mjs";import{WaterfallRecommend as s}from"../../common/list/waterfall-recommend/waterfall-recommend.mjs";import{SearchResultEmpty as c}from"./search-empty.mjs";import{memo as l,useCallback as u,useMemo as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{useTranslations as m}from"next-intl";function h(){return p(t,{className:`flex w-full justify-between gap-[16px] px-[16px]`,children:[p(t,{className:`flex w-[171px] shrink-0 flex-col gap-[16px]`,children:[f(r,{className:`h-[218px] w-[171px] rounded-[8px] bg-white/8`}),f(r,{className:`h-[120px] w-[171px] rounded-[8px] bg-white/8`}),f(r,{className:`h-[218px] w-[171px] rounded-[8px] bg-white/8`})]}),p(t,{className:`flex w-[171px] shrink-0 flex-col gap-[16px]`,children:[f(r,{className:`h-[120px] w-[171px] rounded-[8px] bg-white/8`}),f(r,{className:`h-[218px] w-[171px] rounded-[8px] bg-white/8`}),f(r,{className:`h-[120px] w-[171px] rounded-[8px] bg-white/8`})]})]})}function g(e){let t=Number(e);if(!(!Number.isFinite(t)||t<=0))return t>10&&t<=100?t/10:Math.min(t,10)}function _(e){return String(e.img_type??``).trim().toLowerCase()===`long`?`short`:`tall`}function v(e){let t=String(e.source_tags||``).trim();if(t)return t.split(`,`)[0]?.trim()||void 0}function y(e){let t=Number(e.episode_count||0);if(!t||t<=0)return;let n=Number(e.update_status??-1);return n===1?`${t}集全`:n===0?`更新中`:`${t}集`}function b(e){let t=Number(e||0);return!Number.isFinite(t)||t<=0?``:t>=1e4?`${(t/1e4).toFixed(t>=1e5?0:1).replace(/\.0$/,``)}W`:t>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,``)}K`:`${Math.floor(t)}`}function x(e){let t=e.filter(e=>String(e.video_id||``).trim()).map((e,t)=>{let n=String(e.video_id||``).trim(),r=String(e.name||``).trim(),i=String(e.group_name||e.description||``).trim();return{key:`${n}-${t}`,sourceIndex:t,href:n?a({id:n,contentType:0}):`#`,cardKind:_(e),coverUrl:String(e.img_y||e.img_x||``).trim(),title:r,badgeText:v(e),episodeText:y(e),metaPrimaryText:i||void 0,heatText:b(e.play_count)||void 0,score:g(e.score)}}),n=[],r=[],i=0,o=0;return t.forEach(e=>{let t=(e.cardKind===`short`?120:218)+16;i<=o?(n.push(e),i+=t):(r.push(e),o+=t)}),{left:n,right:r}}function S(){return f(o,{className:`size-[16px]`})}const C=l(({list:e,title:t,onMoreClick:n,sectionClassName:r=`w-full`})=>{let i=d(()=>x(e),[e]);return e.length===0?null:f(s,{title:t||``,columns:i,sectionClassName:r,titleClassName:`min-w-0 flex-1 text-[18px] leading-[24px] font-medium line-clamp-1 text-white`,moreLinkClassName:`ml-[8px] flex size-[24px] shrink-0 items-center justify-center text-white/50`,moreIcon:n?f(S,{}):void 0,onMoreClick:n})});C.displayName=`SearchVideoWaterfall`;const w=l(({inputVal:r,sort:a,refreshVersion:o})=>{let s=m(`components.pages.search.searchResult`),l=u(async t=>await e({data_type:2,extra_params:JSON.stringify({type:3,keywords:r,sort:a}),page:t||1,page_size:20}),[r,a]),g=i({key:d(()=>[`search-result`,`video`,r,a,o],[r,o,a]),initialPageParam:1,async queryFn(e){return(await l(e))?.data?.videos??{has_more:!1,total:0,list:[]}},getNextPageParam(e,t){if(e.has_more)return t.length+1}}),_=d(()=>(g.data?.pages??[]).flatMap(e=>e.list??[]),[g.data?.pages]),v=!!((g.isPending||g.isFetching)&&_.length===0),y=u(async()=>{try{await g.fetchNextPage()}catch(e){console.error(`获取视频搜索结果失败`,e)}},[g]);return v?f(h,{}):_.length===0?f(c,{text:s(`searchVideoInfo.noRelevantContent`)}):p(t,{className:`w-full pb-[24px]`,children:[f(C,{list:_}),g.hasNextPage&&f(n,{loadMore:async e=>y(),hasMore:g.hasNextPage,className:`w-full`})]})});w.displayName=`SearchVideoInfo`;export{C as SearchVideoWaterfall,w as default};
@@ -1,2 +0,0 @@
1
-
2
- const e=[{label:`综合`,value:1},{label:`最新`,value:2},{label:`最热`,value:3}];function t(e){for(let t of e)if(typeof t==`string`&&t.trim())return t.trim();return``}function n(e){return t([e.nick_name,e.nickname,e.display_id,e.user_id])}function r(e){return t([e.signature,e.description,e.text,e.introduce,e.bio])}function i(e){let t=Number(e||0);return!Number.isFinite(t)||t<=0?`0`:t>=1e8?`${(t/1e8).toFixed(1).replace(/\.0$/,``)}亿`:t>=1e4?`${(t/1e4).toFixed(1).replace(/\.0$/,``)}万`:`${Math.floor(t)}`}export{e as SEARCH_RESULT_SORT_OPTIONS,i as formatSearchFollowerCount,r as resolveSearchUserDescription,n as resolveSearchUserName};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{useRouter as e}from"../../../utils/use-compatible-router.mjs";import{Input as t}from"../../ui/input.mjs";import{toast as n}from"../../../ui.mjs";import{useKeepAliveEffect as r,useKeepAliveState as i}from"../../common/keep-scroll-position/index.mjs";import{LeftArrowIcon as a}from"../../common/icons/left-arrow.mjs";import{memo as o,useCallback as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{useSearchParams as u}from"next/navigation";import{useTranslations as d}from"next-intl";const f=o(({setSearchInputVal:o,initInputVal:f,initInputVersion:p,addSearchHistory:m})=>{let h=d(`components.pages.search`),g=e(),[_,v]=i(`search-input-val`,``),y=u().get(`q`),b=e=>{v(e.target.value)},x=s(e=>{o(e),m(e)},[m,o]);r(()=>{f&&(v(f),x(f))},[x,f,p,v],`search-init-input-effect`),r(()=>{y&&(v(y),x(y))},[x,v,y],`search-url-params-effect`);function S(){if(n.dismiss(),window.location.search.split(`from_code=`)[1]){g.push(`/`);return}g.back()}return c(`div`,{className:`app-top-nav w-full`,children:l(`header`,{className:`flex h-[60px] items-center gap-[8px] px-[16px] pb-[10px] pt-[16px]`,children:[c(`button`,{type:`button`,"aria-label":`返回`,className:`flex size-[24px] shrink-0 items-center justify-center text-white`,onClick:S,children:c(a,{className:`h-[16px] w-[16px]`})}),c(`div`,{className:`relative h-[34px] min-w-0 flex-1`,children:l(`div`,{className:`flex h-full min-w-0 flex-1 items-center overflow-hidden rounded-[100px] border-[0.5px] border-[rgba(230,42,255,0.9)] bg-black/40 backdrop-blur-[2px]`,children:[c(`div`,{className:`flex h-full min-w-0 flex-1 items-center pl-[20px] pr-[8px]`,children:c(t,{placeholder:h(`topHeader.placeholder`),maxLength:20,value:_,className:`!h-[24px] !w-full !rounded-none !border-0 !bg-transparent !px-0 !py-0 !text-[14px] !leading-[24px] !text-white/90 placeholder:!text-white/90`,onChange:b,onKeyDown:e=>{if(e.key===`Enter`){if(e.preventDefault(),!_.trim())return;x(_.trim())}}})}),c(`button`,{type:`button`,className:`mx-[2px] flex h-[30px] w-[56px] shrink-0 items-center justify-center rounded-[100px] bg-[linear-gradient(90deg,#9756E3_0%,#6C43EE_100%)] text-[14px] leading-[20px] text-white`,onClick:()=>{_.trim()&&x(_.trim())},children:h(`topHeader.search`)})]})})]})})});f.displayName=`SearchTopHeader`;export{f as default};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{Image as e}from"../../ui/image.mjs";import{Box as t}from"../../ui/box.mjs";import{Text as n}from"../../ui/text.mjs";import{memo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import o from"next/link";function s(e){return e.img_x??e.img_y??``}function c(e){return e.img_y??e.img_x??``}function l(e){return!Number.isFinite(e)||e==null||e<=0?``:(e>10?e/10:e).toFixed(1)}function u(e){let t=[...Array.isArray(e.tags)?e.tags.map(e=>e?.name?.trim()??``):[]];return Array.from(new Set(t.filter(Boolean))).slice(0,5)}function d(e){return e?.trim()||``}function f({item:r,href:f=``}){let p=r.name,m=s(r),h=c(r),g=l(r.score),_=u(r),v=d(r.description);return a(o,{href:f,className:`cursor-pointer rounded-[16px] border border-[#8d44ff]/60 bg-[rgba(255,255,255,0.1)] p-[16px] shadow-[0_20px_40px_rgba(0,0,0,0.18)] backdrop-blur-[12px]`,"aria-label":p,children:[i(t,{className:`relative aspect-[326/207] overflow-hidden rounded-[8px] bg-[linear-gradient(180deg,#2d1147_0%,#13031f_100%)]`,children:m?i(e,{src:m,alt:p,fill:!0,className:`object-cover`}):null}),a(t,{className:`mt-[16px] flex gap-[16px]`,children:[i(t,{className:`relative h-[88px] w-[64px] shrink-0 overflow-hidden rounded-[4px] border border-white/20 bg-white/5`,children:h?i(e,{src:h,alt:`${p} 海报`,fill:!0,className:`object-cover`}):null}),a(t,{className:`min-w-0 flex-1`,children:[a(t,{className:`flex items-start justify-between gap-[12px]`,children:[i(n,{as:`h3`,className:`min-w-0 flex-1 line-clamp-1 text-[18px] font-medium leading-[25px] text-white`,children:p}),g?i(n,{className:`shrink-0 text-[18px] font-semibold leading-[20px] text-[#ffc039] tabular-nums`,children:g}):null]}),_.length>0?i(t,{className:`mt-[8px] flex flex-wrap gap-[6px]`,children:_.map(e=>i(t,{className:`flex h-[18px] items-center justify-center rounded-[4px] bg-white/20 px-[4px] py-[2px]`,children:i(n,{className:`text-[12px] leading-[14px] text-white`,children:e})},e))}):null]})]}),i(n,{as:`p`,className:`mt-[12px] line-clamp-3 text-[14px] leading-[24px] text-white/[0.55]`,children:v})]})}const p=r(f);p.displayName=`VideoListRecommendItem`;export{p as VideoListRecommendItem};
@@ -1,9 +0,0 @@
1
-
2
- import { CSSProperties } from "react";
3
-
4
- //#region theme-tokens.d.ts
5
- declare const FUNHUB_THEME_COLOR_TOKENS: ReadonlyArray<readonly [string, string]>;
6
- declare const FUNHUB_THEME_COLOR_TOKEN_STYLE: CSSProperties;
7
- declare function applyFunhubThemeColorTokens(node: HTMLElement | null): void;
8
- //#endregion
9
- export { FUNHUB_THEME_COLOR_TOKENS, FUNHUB_THEME_COLOR_TOKEN_STYLE, applyFunhubThemeColorTokens };
@@ -1,2 +0,0 @@
1
-
2
- const e=[[`--color-brand-primary`,`#c043e8`],[`--color-brand-accent-purple`,`#9012ff`],[`--color-brand-tag-gradient-start`,`#ca3fe9`],[`--color-brand-tag-gradient-end`,`#9756e3`],[`--color-brand-action-gradient-end`,`#6c43ee`],[`--color-brand-rating`,`#ffc039`],[`--color-brand-hot-ranking`,`#c922ef`],[`--color-brand-link`,`#9054e5`],[`--color-text-primary`,`#ffffff`],[`--color-text-secondary`,`rgba(255, 255, 255, 0.9)`],[`--color-text-white80`,`rgba(255, 255, 255, 0.8)`],[`--color-text-tertiary`,`rgba(255, 255, 255, 0.6)`],[`--color-text-quaternary`,`rgba(255, 255, 255, 0.5)`],[`--color-text-dimmed`,`rgba(255, 255, 255, 0.7)`],[`--color-text-disabled`,`rgba(255, 255, 255, 0.3)`],[`--color-text-inactive`,`#bfbfbf`],[`--color-text-muted`,`#747474`],[`--color-surface-tab-bg`,`#121212`],[`--color-surface-card-fallback`,`#282129`],[`--color-surface-chip-bg`,`#1b1b1b`],[`--color-surface-chip-gray20`,`rgba(217, 217, 217, 0.2)`],[`--color-surface-white20`,`rgba(255, 255, 255, 0.2)`],[`--color-surface-white10`,`rgba(255, 255, 255, 0.1)`],[`--color-surface-mask-black40`,`rgba(0, 0, 0, 0.4)`],[`--color-surface-mask-black60`,`rgba(0, 0, 0, 0.6)`],[`--color-surface-panel-dark`,`#060315`],[`--color-surface-field-bg`,`rgba(173, 163, 191, 0.1)`],[`--color-border-search-highlight`,`rgba(230, 42, 255, 0.9)`],[`--color-border-panel-glow`,`rgba(219, 55, 255, 0.4)`],[`--color-border-danger`,`#ff1eff`],[`--color-border-required`,`rgba(255, 0, 0, 0.7)`],[`--color-neutral-black`,`#000000`],[`--color-neutral-white`,`#ffffff`],[`--color-overlay-mask-start`,`rgba(8, 2, 17, 0)`],[`--color-overlay-mask-end70`,`rgba(8, 2, 17, 0.7)`],[`--color-overlay-mask-end80`,`rgba(8, 2, 17, 0.8)`],[`--color-overlay-top-bar-black30`,`rgba(0, 0, 0, 0.3)`],[`--color-overlay-create-top-black50`,`rgba(0, 0, 0, 0.5)`],[`--color-overlay-create-mid-purple27`,`rgba(116, 18, 131, 0.27)`],[`--color-overlay-create-bottom-purple0`,`rgba(75, 24, 87, 0)`],[`--color-overlay-panel-fade-start90`,`rgba(6, 3, 21, 0.9)`],[`--color-overlay-panel-fade-end0`,`rgba(6, 3, 21, 0)`],[`--color-cover-text-primary`,`#ffffff`],[`--color-cover-text-secondary`,`#747474`],[`--color-cover-gray-11`,`#121212`],[`--color-cover-gray-6`,`#d9d9d9`],[`--color-cover-light-gray-6`,`#e0e0e0`],[`--color-cover-surface-dark`,`#1b1b1b`],[`--color-cover-gray11`,`var(--color-cover-gray-11)`],[`--color-cover-gray6`,`var(--color-cover-gray-6)`],[`--color-cover-light-gray6`,`var(--color-cover-light-gray-6)`],[`--color-bg1`,`var(--color-surface-tab-bg)`],[`--color-bg2`,`var(--color-surface-chip-bg)`],[`--color-bg3`,`var(--color-surface-card-fallback)`],[`--color-bg4`,`var(--color-surface-white20)`],[`--color-text1`,`var(--color-text-primary)`],[`--color-text2`,`var(--color-text-secondary)`],[`--color-text3`,`var(--color-text-tertiary)`],[`--color-text4`,`var(--color-brand-primary)`],[`--color-line1`,`var(--color-surface-chip-gray20)`],[`--color-line2`,`var(--color-border-panel-glow)`],[`--color-theme1`,`var(--color-brand-accent-purple)`],[`--color-theme2`,`var(--gradient-action-button)`],[`--color-theme3`,`var(--color-surface-chip-gray20)`],[`--color-theme4`,`var(--color-brand-link)`],[`--color-theme5`,`var(--color-brand-primary)`],[`--color-theme6`,`var(--color-brand-tag-gradient-start)`],[`--color-overlay`,`var(--color-overlay-mask-end70)`]],t=Object.fromEntries(e);function n(t){t&&e.forEach(([e,n])=>{t.style.setProperty(e,n)})}export{e as FUNHUB_THEME_COLOR_TOKENS,t as FUNHUB_THEME_COLOR_TOKEN_STYLE,n as applyFunhubThemeColorTokens};