@funhub/platform 0.2.1 → 0.2.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) 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 +4 -11
  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/business/advertisement/ad-match.mjs +1 -1
  14. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  15. package/dist/components/biz/business/advertisement/banner-ad/material.d.mts +1 -1
  16. package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -1
  17. package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +3 -3
  18. package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -1
  19. package/dist/components/biz/business/advertisement/feed-ad/index.d.mts +31 -1
  20. package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -1
  21. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -1
  22. package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -1
  23. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  24. package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -1
  25. package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -1
  26. package/dist/components/biz/business/advertisement/index.d.mts +2 -2
  27. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -2
  28. package/dist/components/biz/business/advertisement/popup-ad/index.d.mts +1 -1
  29. package/dist/components/biz/business/advertisement/popup-ad/material.d.mts +2 -2
  30. package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -1
  31. package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +14 -5
  32. package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -1
  33. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  34. package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -1
  35. package/dist/components/biz/business/banner-carousel/client.d.mts +2 -2
  36. package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
  37. package/dist/components/biz/business/channel-list/client.mjs +1 -1
  38. package/dist/components/biz/business/channel-list/default-props.mjs +1 -1
  39. package/dist/components/biz/business/detail/shared/detail-introduction.mjs +2 -0
  40. package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
  41. package/dist/components/biz/business/detail/shared/registry.d.mts +1 -36
  42. package/dist/components/biz/business/detail/shared/registry.mjs +1 -1
  43. package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
  44. package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -1
  45. package/dist/components/biz/business/detail/video-detail-recommend/client.d.mts +13 -1
  46. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
  47. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
  48. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +1 -1
  49. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
  50. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +3 -4
  51. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
  52. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
  53. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
  54. package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
  55. package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -1
  56. package/dist/components/biz/business/header-search/shared/logo.mjs +1 -1
  57. package/dist/components/biz/business/header-search/shared/search.mjs +1 -1
  58. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +8 -0
  59. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
  60. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +8 -0
  61. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +8 -0
  62. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
  63. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +8 -0
  64. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  65. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
  66. package/dist/components/biz/business/index.d.mts +3 -12
  67. package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
  68. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
  69. package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
  70. package/dist/components/biz/business/marquee/client.mjs +1 -1
  71. package/dist/components/biz/business/marquee/marquee.module.mjs +6 -2
  72. package/dist/components/biz/business/profile/index.d.mts +1 -1
  73. package/dist/components/biz/business/profile/profile-header/client.d.mts +1 -2
  74. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  75. package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
  76. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
  77. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
  78. package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
  79. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
  80. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
  81. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
  82. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -5
  83. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
  84. package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
  85. package/dist/components/biz/business/search-history/client.mjs +1 -1
  86. package/dist/components/biz/business/search-history/schema.mjs +1 -1
  87. package/dist/components/biz/business/search-input/client.mjs +1 -1
  88. package/dist/components/biz/business/shortcut-grid/client.mjs +1 -1
  89. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  90. package/dist/components/common/collection-popup/collection-create-modal.mjs +2 -0
  91. package/dist/components/common/collection-popup/index.d.mts +0 -1
  92. package/dist/components/common/collection-popup/index.mjs +1 -1
  93. package/dist/components/common/icons/setting.mjs +1 -1
  94. package/dist/components/common/list/collection-list/collection-list-item.d.mts +0 -6
  95. package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -1
  96. package/dist/components/common/list/collection-list/collection-list.d.mts +0 -6
  97. package/dist/components/common/list/collection-list/collection-list.mjs +1 -1
  98. package/dist/components/common/series-episodes/index.d.mts +1 -3
  99. package/dist/components/common/series-episodes/index.mjs +1 -1
  100. package/dist/components/common/skeleton/search-video-card-skeleton.mjs +2 -0
  101. package/dist/components/common/tab-bar/index.mjs +1 -1
  102. package/dist/components/pages/collection-detail/detail.mjs +1 -1
  103. package/dist/components/pages/edit/page.mjs +1 -1
  104. package/dist/components/pages/home/client.mjs +1 -1
  105. package/dist/components/pages/login/login-client.mjs +1 -1
  106. package/dist/components/pages/login/register.mjs +1 -1
  107. package/dist/components/pages/login/verify.mjs +4 -1
  108. package/dist/components/pages/search/page-client.mjs +1 -1
  109. package/dist/components/pages/search/search-result/index.mjs +1 -1
  110. package/dist/components/pages/search/search-result/search-all.mjs +1 -1
  111. package/dist/components/pages/search/search-result/search-user.mjs +1 -1
  112. package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
  113. package/dist/components/pages/search/search-utils.mjs +2 -0
  114. package/dist/components/pages/search/top-header.mjs +1 -1
  115. package/dist/components/pages/search-result/page-client.mjs +1 -1
  116. package/dist/components/pages/search-result/search-all.mjs +1 -1
  117. package/dist/components/pages/search-result/search-result-skeleton.mjs +2 -0
  118. package/dist/components/pages/search-result/search-tab.mjs +1 -1
  119. package/dist/components/pages/search-result/search-user.mjs +1 -1
  120. package/dist/components/pages/search-result/search-video.mjs +2 -0
  121. package/dist/components/pages/settings/_components/reset-password-drawer.mjs +3 -3
  122. package/dist/components/pages/settings/_components/settings.mjs +1 -1
  123. package/dist/components/pages/video-list/video-list-client.mjs +1 -1
  124. package/dist/components/pages/video-list/video-list-item.mjs +2 -0
  125. package/dist/components/pages/video-list/video-list-skeleton.d.mts +3 -2
  126. package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -1
  127. package/dist/components/ui/badge.d.mts +1 -1
  128. package/dist/components/ui/box.d.mts +1 -1
  129. package/dist/components/ui/button.d.mts +2 -2
  130. package/dist/components/ui/empty.d.mts +1 -1
  131. package/dist/components/ui/image.d.mts +4 -4
  132. package/dist/components/ui/item.d.mts +1 -1
  133. package/dist/i18n/locales/en.mjs +2 -2
  134. package/dist/i18n/locales/zh-CN.mjs +2 -2
  135. package/dist/materials.d.mts +1 -6
  136. package/dist/materials.mjs +1 -1
  137. package/dist/service/generated/client.d.mts +2 -30
  138. package/dist/service/generated/client.mjs +1 -1
  139. package/dist/service/generated/tanstack.d.mts +2 -37
  140. package/dist/service/generated/tanstack.mjs +1 -1
  141. package/dist/service.d.mts +3 -3
  142. package/dist/service.mjs +1 -1
  143. package/dist/types.d.mts +7 -437
  144. package/dist/utils/helper.d.mts +1 -1
  145. package/dist/utils/helper.mjs +1 -1
  146. package/package.json +2 -7
  147. package/theme.css +59 -170
  148. package/dist/assets/icons/channel-list/channel-active-indicator.mjs +0 -2
  149. package/dist/assets/icons/common/header-menu.mjs +0 -2
  150. package/dist/assets/icons/common/header-search-icon.mjs +0 -2
  151. package/dist/assets/icons/common/right_arrow_thin.mjs +0 -2
  152. package/dist/assets/icons/marquee-close.mjs +0 -2
  153. package/dist/assets/icons/marquee-speaker.mjs +0 -2
  154. package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +0 -2
  155. package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +0 -2
  156. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/client.d.mts +0 -8
  157. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/client.mjs +0 -2
  158. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/index.d.mts +0 -5
  159. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/material.d.mts +0 -45
  160. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/material.mjs +0 -2
  161. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/schema.d.mts +0 -9
  162. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/schema.mjs +0 -2
  163. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/server.d.mts +0 -11
  164. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/server.mjs +0 -2
  165. package/dist/components/biz/business/header-search/shared/header-action.mjs +0 -2
  166. package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +0 -2
  167. package/dist/components/biz/business/header-search/shared/header-shell.mjs +0 -2
  168. package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
  169. package/dist/components/biz/business/hot-recommend/client.mjs +0 -2
  170. package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
  171. package/dist/components/biz/business/hot-recommend/material.d.mts +0 -24
  172. package/dist/components/biz/business/hot-recommend/material.mjs +0 -2
  173. package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -23
  174. package/dist/components/biz/business/hot-recommend/schema.mjs +0 -2
  175. package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
  176. package/dist/components/biz/business/hot-recommend/server.mjs +0 -2
  177. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +0 -2
  178. package/dist/components/biz/business/ranking-recommend/client.d.mts +0 -15
  179. package/dist/components/biz/business/ranking-recommend/client.mjs +0 -70
  180. package/dist/components/biz/business/ranking-recommend/material.d.mts +0 -23
  181. package/dist/components/biz/business/ranking-recommend/material.mjs +0 -2
  182. package/dist/components/biz/business/ranking-recommend/schema.d.mts +0 -23
  183. package/dist/components/biz/business/ranking-recommend/schema.mjs +0 -2
  184. package/dist/components/biz/business/ranking-recommend/server.d.mts +0 -11
  185. package/dist/components/biz/business/ranking-recommend/server.mjs +0 -2
  186. package/dist/components/biz/business/ranking-recommend/shared.d.mts +0 -15
  187. package/dist/components/biz/business/ranking-recommend/shared.mjs +0 -2
  188. package/dist/components/biz/business/search-waterfall-recommend/client.d.mts +0 -9
  189. package/dist/components/biz/business/search-waterfall-recommend/client.mjs +0 -2
  190. package/dist/components/biz/business/search-waterfall-recommend/index.d.mts +0 -4
  191. package/dist/components/biz/business/search-waterfall-recommend/material.d.mts +0 -40
  192. package/dist/components/biz/business/search-waterfall-recommend/material.mjs +0 -2
  193. package/dist/components/biz/business/search-waterfall-recommend/server.d.mts +0 -8
  194. package/dist/components/biz/business/search-waterfall-recommend/server.mjs +0 -2
  195. package/dist/components/common/collection-popup/create-collection-sheet.d.mts +0 -41
  196. package/dist/components/common/collection-popup/create-collection-sheet.mjs +0 -2
  197. package/dist/components/common/list/collection-list/collection-select-icon.mjs +0 -2
  198. package/dist/components/common/list/waterfall-recommend/index.d.mts +0 -2
  199. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.d.mts +0 -99
  200. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +0 -2
  201. package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +0 -2
  202. package/dist/components/pages/login/auth-page-styles.mjs +0 -6
  203. package/dist/components/pages/search/search-result/shared.mjs +0 -2
  204. package/dist/components/pages/search-result/search-empty.mjs +0 -2
  205. package/dist/components/pages/search-result/search-video-info.mjs +0 -2
  206. package/dist/components/pages/search-result/shared.mjs +0 -2
  207. package/dist/components/pages/search-result/top-header.mjs +0 -2
  208. package/dist/components/pages/video-list/video-list-recommend-item.mjs +0 -2
  209. package/dist/theme-tokens.d.mts +0 -9
  210. package/dist/theme-tokens.mjs +0 -2
package/theme.css CHANGED
@@ -1,135 +1,24 @@
1
1
  :root {
2
2
  --tab-bar-height: 56px;
3
- --tab-bar-top-gap: 8px;
4
- --tab-bar-safe-area-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
5
- --tab-bar-occupied-height: calc(var(--tab-bar-height) + var(--tab-bar-safe-area-bottom));
6
- /* app-v1 全量语义变量(Figma 定稿节点聚合) */
7
- --color-brand-primary: #c043e8;
8
- --color-brand-accent-purple: #9012ff;
9
- --color-brand-tag-gradient-start: #ca3fe9;
10
- --color-brand-tag-gradient-end: #9756e3;
11
- --color-brand-action-gradient-end: #6c43ee;
12
- --color-brand-rating: #ffc039;
13
- --color-brand-hot-ranking: #c922ef;
14
- --color-brand-link: #9054e5;
15
- --color-text-primary: #ffffff;
16
- --color-text-secondary: rgba(255, 255, 255, 0.9);
17
- --color-text-white80: rgba(255, 255, 255, 0.8);
18
- --color-text-tertiary: rgba(255, 255, 255, 0.6);
19
- --color-text-quaternary: rgba(255, 255, 255, 0.5);
20
- --color-text-dimmed: rgba(255, 255, 255, 0.7);
21
- --color-text-disabled: rgba(255, 255, 255, 0.3);
22
- --color-text-inactive: #bfbfbf;
23
- --color-text-muted: #747474;
24
- --color-surface-tab-bg: #121212;
25
- --color-surface-card-fallback: #282129;
26
- --color-surface-chip-bg: #1b1b1b;
27
- --color-surface-chip-gray20: rgba(217, 217, 217, 0.2);
28
- --color-surface-white20: rgba(255, 255, 255, 0.2);
29
- --color-surface-white10: rgba(255, 255, 255, 0.1);
30
- --color-surface-mask-black40: rgba(0, 0, 0, 0.4);
31
- --color-surface-mask-black60: rgba(0, 0, 0, 0.6);
32
- --color-surface-panel-dark: #060315;
33
- --color-surface-field-bg: rgba(173, 163, 191, 0.1);
34
- --color-border-search-highlight: rgba(230, 42, 255, 0.9);
35
- --color-border-panel-glow: rgba(219, 55, 255, 0.4);
36
- --color-border-danger: #ff1eff;
37
- --color-border-required: rgba(255, 0, 0, 0.7);
38
- --color-neutral-black: #000000;
39
- --color-neutral-white: #ffffff;
40
- --color-overlay-mask-start: rgba(8, 2, 17, 0);
41
- --color-overlay-mask-end70: rgba(8, 2, 17, 0.7);
42
- --color-overlay-mask-end80: rgba(8, 2, 17, 0.8);
43
- --color-overlay-top-bar-black30: rgba(0, 0, 0, 0.3);
44
- --color-overlay-create-top-black50: rgba(0, 0, 0, 0.5);
45
- --color-overlay-create-mid-purple27: rgba(116, 18, 131, 0.27);
46
- --color-overlay-create-bottom-purple0: rgba(75, 24, 87, 0);
47
- --color-overlay-panel-fade-start90: rgba(6, 3, 21, 0.9);
48
- --color-overlay-panel-fade-end0: rgba(6, 3, 21, 0);
49
- --gradient-brand-tag: linear-gradient(90deg, #ca3fe9 0%, #9756e3 100%);
50
- --gradient-action-button: linear-gradient(90deg, #9756e3 0%, #6c43ee 100%);
51
- --gradient-card-mask-strong: linear-gradient(180deg, rgba(8, 2, 17, 0) 28.624%, rgba(8, 2, 17, 0.8) 77.695%);
52
- --gradient-card-mask-medium: linear-gradient(180deg, rgba(8, 2, 17, 0) 46.087%, rgba(8, 2, 17, 0.7) 83.152%);
53
- --gradient-card-mask-light: linear-gradient(180deg, rgba(8, 2, 17, 0) 44.638%, rgba(8, 2, 17, 0.7) 82.699%);
54
- --gradient-detail-hero-blur: linear-gradient(180deg, rgba(8, 2, 17, 0) 41.303%, rgba(8, 2, 17, 0.7) 61.091%);
55
- --gradient-search-panel-fade: linear-gradient(180deg, rgba(6, 3, 21, 0.9) 19.905%, rgba(6, 3, 21, 0) 100%);
56
- --gradient-search-hot-card: linear-gradient(180deg, rgba(151, 86, 227, 0.4) 21.144%, rgba(151, 86, 227, 0) 87.065%);
57
- --gradient-create-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(116, 18, 131, 0.27) 28.215%, rgba(75, 24, 87, 0) 100%);
58
- --font-family-sans: 'PingFang SC';
59
- --font-family-numeric: 'DIN';
60
- --font-family-numeric-black: 'DIN_Black';
61
- --font-sans: var(--font-family-sans);
62
- --font-mono: var(--font-family-numeric);
63
- --font-size-xs: 10px;
64
- --font-size-sm: 12px;
65
- --font-size-md: 14px;
66
- --font-size-status: 15px;
67
- --font-size-base: 16px;
68
- --font-size-lg: 18px;
69
- --font-size-xl: 20px;
70
- --line-height-xs: 14px;
71
- --line-height-sm: 14px;
72
- --line-height-tight: 16px;
73
- --line-height-md: 20px;
74
- --line-height-status: 22px;
75
- --line-height-base: 24px;
76
- --line-height-lg: 24px;
77
- --font-weight-regular: 400;
78
- --font-weight-medium: 500;
79
- --font-weight-semibold: 600;
80
- --font-weight-bold: 700;
81
- --radius-sm: 4px;
82
- --radius-md: 8px;
83
- --radius-lg: 12px;
84
- --radius-xl: 16px;
85
- --radius-sheet: 24px;
86
- --radius-pill: 100px;
87
- --effect-backdrop-blur-card-mask: 2px;
88
- --effect-backdrop-blur-card-mask-lite: 1.5px;
89
- --effect-backdrop-blur-detail-hero: 4px;
90
- --effect-backdrop-blur-modal-sheet: 50px;
91
- --color-cover-text-primary: #ffffff;
92
- --color-cover-text-secondary: #747474;
93
- --color-cover-gray-11: #121212;
94
- --color-cover-gray-6: #d9d9d9;
95
- --color-cover-light-gray-6: #e0e0e0;
96
- --color-cover-surface-dark: #1b1b1b;
97
- --color-cover-gray11: var(--color-cover-gray-11);
98
- --color-cover-gray6: var(--color-cover-gray-6);
99
- --color-cover-light-gray6: var(--color-cover-light-gray-6);
100
- --gradient-cover-overlay: linear-gradient(158.6385deg, #000000 14.614%, rgba(18, 18, 18, 0.1) 50.185%);
101
- --gradient-cover-cover-overlay: var(--gradient-cover-overlay);
102
- --font-family-cover-latin: 'Inter';
103
- --font-family-cover-zh: 'PingFang SC';
104
- --font-family-cover-numeric: 'Poppins';
105
- --font-size-cover-16: 16px;
106
- --font-size-cover-28: 28px;
107
- --font-size-cover-36: 36px;
108
- --font-size-cover-48: 48px;
109
- --font-size-cover-64: 64px;
110
- --font-size-cover-80: 80px;
111
- --font-size-cover-110: 110px;
112
- --font-size-cover-140: 140px;
113
-
114
- /* 默认是白天模式的颜色(旧变量别名,兼容历史引用) */
115
- --color-bg1: var(--color-surface-tab-bg);
116
- --color-bg2: var(--color-surface-chip-bg);
117
- --color-bg3: var(--color-surface-card-fallback);
118
- --color-bg4: var(--color-surface-white20);
119
- --color-text1: var(--color-text-primary);
120
- --color-text2: var(--color-text-secondary);
121
- --color-text3: var(--color-text-tertiary);
122
- --color-text4: var(--color-brand-primary);
123
- --color-line1: var(--color-surface-chip-gray20);
124
- --color-line2: var(--color-border-panel-glow);
125
- --color-theme1: var(--color-brand-accent-purple);
126
- --color-theme2: var(--gradient-action-button);
127
- --color-theme3: var(--color-surface-chip-gray20);
128
- --color-theme4: var(--color-brand-link);
129
- --color-theme5: var(--color-brand-primary);
130
- --color-theme6: var(--color-brand-tag-gradient-start);
131
- /** 叠层色:兼容旧变量,映射到新遮罩层级 */
132
- --color-overlay: var(--color-overlay-mask-end70);
3
+ /* 默认是白天模式的颜色 */
4
+ --color-bg1: #ffffff;
5
+ --color-bg2: #f9f9f9;
6
+ --color-bg3: #f2f5fa;
7
+ --color-bg4: rgba(253, 76, 94, 0.1);
8
+ --color-text1: #333333;
9
+ --color-text2: #666666;
10
+ --color-text3: #999999;
11
+ --color-text4: rgb(253, 76, 94);
12
+ --color-line1: rgba(0, 0, 0, 0.05);
13
+ --color-line2: rgba(253, 76, 94, 0.4);
14
+ --color-theme1: #1fa7ff;
15
+ --color-theme2: linear-gradient(135deg, #4fd8ff 0%, #07bfff 100%);
16
+ --color-theme3: rgba(0, 173, 251, 0.2);
17
+ --color-theme4: #00adfb;
18
+ --color-theme5: rgb(253, 76, 94);
19
+ --color-theme6: #cd3f4e;
20
+ /** 叠层色:用于深色区域上的半透明浮层,亮色 #FFFFFF·10% */
21
+ --color-overlay: rgba(255, 255, 255, 0.1);
133
22
 
134
23
  /* shadcn/ui */
135
24
  --background: oklch(1 0 0);
@@ -138,8 +27,8 @@
138
27
  --card-foreground: oklch(0.145 0 0);
139
28
  --popover: oklch(1 0 0);
140
29
  --popover-foreground: oklch(0.145 0 0);
141
- --primary: var(--color-brand-primary);
142
- --primary-foreground: #ffffff;
30
+ --primary: rgb(253, 76, 94);
31
+ --primary-foreground: oklch(0.97 0.01 343);
143
32
  --secondary: oklch(0.967 0.001 286.375);
144
33
  --secondary-foreground: oklch(0.21 0.006 285.885);
145
34
  --muted: oklch(0.97 0 0);
@@ -149,43 +38,43 @@
149
38
  --destructive: oklch(0.58 0.22 27);
150
39
  --border: oklch(0.922 0 0);
151
40
  --input: oklch(0.922 0 0);
152
- --ring: var(--color-brand-primary);
153
- --chart-1: #c043e8;
154
- --chart-2: #9012ff;
155
- --chart-3: #ffc039;
156
- --chart-4: #9756e3;
157
- --chart-5: #6c43ee;
41
+ --ring: oklch(0.708 0 0);
42
+ --chart-1: oklch(0.82 0.11 346);
43
+ --chart-2: oklch(0.73 0.18 350);
44
+ --chart-3: rgb(253, 76, 94);
45
+ --chart-4: rgb(253, 76, 94);
46
+ --chart-5: oklch(0.52 0.2 4);
158
47
  --radius: 0.625rem;
159
48
  --sidebar: oklch(0.985 0 0);
160
49
  --sidebar-foreground: oklch(0.145 0 0);
161
- --sidebar-primary: var(--color-brand-primary);
162
- --sidebar-primary-foreground: #ffffff;
50
+ --sidebar-primary: rgb(253, 76, 94);
51
+ --sidebar-primary-foreground: oklch(0.97 0.01 343);
163
52
  --sidebar-accent: oklch(0.97 0 0);
164
53
  --sidebar-accent-foreground: oklch(0.205 0 0);
165
54
  --sidebar-border: oklch(0.922 0 0);
166
- --sidebar-ring: var(--color-brand-primary);
55
+ --sidebar-ring: oklch(0.708 0 0);
167
56
  }
168
57
 
169
58
  .dark {
170
59
  /* 黑夜模式的颜色 */
171
- --color-bg1: var(--color-surface-tab-bg);
172
- --color-bg2: var(--color-surface-chip-bg);
173
- --color-bg3: var(--color-surface-card-fallback);
174
- --color-bg4: var(--color-surface-white20);
175
- --color-text1: var(--color-text-primary);
176
- --color-text2: var(--color-text-secondary);
177
- --color-text3: var(--color-text-tertiary);
178
- --color-text4: var(--color-brand-primary);
179
- --color-line1: var(--color-surface-chip-gray20);
180
- --color-line2: var(--color-border-panel-glow);
181
- --color-theme1: var(--color-brand-accent-purple);
182
- --color-theme2: var(--gradient-action-button);
183
- --color-theme3: var(--color-surface-chip-gray20);
184
- --color-theme4: var(--color-brand-link);
185
- --color-theme5: var(--color-brand-primary);
186
- --color-theme6: var(--color-brand-tag-gradient-start);
187
- /** 叠层色:兼容旧变量,映射到新遮罩层级 */
188
- --color-overlay: var(--color-overlay-mask-end70);
60
+ --color-bg1: #171717;
61
+ --color-bg2: #222222;
62
+ --color-bg3: #fe5a5c;
63
+ --color-bg4: rgba(253, 76, 94, 0.1);
64
+ --color-text1: #d7d7d7;
65
+ --color-text2: #a3a3a3;
66
+ --color-text3: #717171;
67
+ --color-text4: #f2f5fa;
68
+ --color-line1: rgba(255, 255, 255, 0.05);
69
+ --color-line2: rgba(253, 76, 94, 0.4);
70
+ --color-theme1: #1fa7ff;
71
+ --color-theme2: linear-gradient(135deg, #4fd8ff 0%, #07bfff 100%);
72
+ --color-theme3: rgba(0, 173, 251, 0.2);
73
+ --color-theme4: #00adfb;
74
+ --color-theme5: rgb(253, 76, 94);
75
+ --color-theme6: #cd3f4e;
76
+ /** 叠层色:暗色 #000000·10% */
77
+ --color-overlay: rgba(0, 0, 0, 0.1);
189
78
 
190
79
  /* shadcn/ui */
191
80
  --background: oklch(0.145 0 0);
@@ -194,8 +83,8 @@
194
83
  --card-foreground: oklch(0.985 0 0);
195
84
  --popover: oklch(0.205 0 0);
196
85
  --popover-foreground: oklch(0.985 0 0);
197
- --primary: var(--color-brand-primary);
198
- --primary-foreground: #ffffff;
86
+ --primary: rgb(253, 76, 94);
87
+ --primary-foreground: oklch(0.97 0.01 343);
199
88
  --secondary: oklch(0.274 0.006 286.033);
200
89
  --secondary-foreground: oklch(0.985 0 0);
201
90
  --muted: oklch(0.269 0 0);
@@ -205,18 +94,18 @@
205
94
  --destructive: oklch(0.704 0.191 22.216);
206
95
  --border: oklch(1 0 0 / 10%);
207
96
  --input: oklch(1 0 0 / 15%);
208
- --ring: var(--color-brand-primary);
209
- --chart-1: #c043e8;
210
- --chart-2: #9012ff;
211
- --chart-3: #ffc039;
212
- --chart-4: #9756e3;
213
- --chart-5: #6c43ee;
97
+ --ring: oklch(0.556 0 0);
98
+ --chart-1: oklch(0.82 0.11 346);
99
+ --chart-2: oklch(0.73 0.18 350);
100
+ --chart-3: rgb(253, 76, 94);
101
+ --chart-4: rgb(253, 76, 94);
102
+ --chart-5: oklch(0.52 0.2 4);
214
103
  --sidebar: oklch(0.205 0 0);
215
104
  --sidebar-foreground: oklch(0.985 0 0);
216
- --sidebar-primary: var(--color-brand-primary);
217
- --sidebar-primary-foreground: #ffffff;
105
+ --sidebar-primary: oklch(0.73 0.18 350);
106
+ --sidebar-primary-foreground: oklch(0.97 0.01 343);
218
107
  --sidebar-accent: oklch(0.269 0 0);
219
108
  --sidebar-accent-foreground: oklch(0.985 0 0);
220
109
  --sidebar-border: oklch(1 0 0 / 10%);
221
- --sidebar-ring: var(--color-brand-primary);
110
+ --sidebar-ring: oklch(0.556 0 0);
222
111
  }
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{preserveAspectRatio:`none`,width:`1em`,height:`1em`,overflow:`visible`,style:{display:`block`},viewBox:`0 0 39.0008 11.0008`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`path`,{id:`Vector 5 (Stroke)`,d:`M34.5347 0.383066C35.9803 -0.426451 37.8081 0.0889314 38.6177 1.53443C39.4272 2.98 38.9119 4.80785 37.4664 5.61744L32.0298 8.66236C27.8162 11.022 22.6472 10.8762 18.5728 8.28346C16.6595 7.06589 14.2802 6.83256 12.1666 7.65455L4.08745 10.7962C2.54334 11.3964 0.805117 10.6313 0.204639 9.08717C-0.395644 7.54305 0.369538 5.80483 1.91362 5.20435L9.99175 2.06275C13.8859 0.548379 18.2685 0.978784 21.7935 3.22193C24.005 4.62925 26.8111 4.70779 29.0982 3.42701L34.5347 0.383066Z`,fill:`url(#paint0_linear_0_9)`}),e.createElement(`defs`,null,e.createElement(`linearGradient`,{id:`paint0_linear_0_9`,x1:3.00054,y1:6.00025,x2:36.0005,y2:6.00025,gradientUnits:`userSpaceOnUse`},e.createElement(`stop`,{stopColor:`#CA3FE9`}),e.createElement(`stop`,{offset:1,stopColor:`#9756E3`}))));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`path`,{d:`M4 7H20`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`}),e.createElement(`path`,{d:`M4 12H20`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`}),e.createElement(`path`,{d:`M4 17H20`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`}));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 20 20`,fill:`none`,...t},e.createElement(`g`,{opacity:.5},e.createElement(`path`,{d:`M9.16602 1.66635C9.38593 1.66635 9.60352 1.67788 9.81868 1.69646C9.53468 2.1952 9.33435 2.74761 9.23602 3.33465C9.21268 3.33437 9.18935 3.33302 9.16602 3.33302C5.94321 3.33302 3.33286 5.94359 3.33268 9.1664C3.33268 12.3893 5.9431 14.9997 9.16602 14.9997C10.7457 14.9997 12.1783 14.3723 13.2285 13.3534L13.353 13.2289C14.3718 12.1787 14.9993 10.7459 14.9993 9.1664C14.9993 9.14281 14.9972 9.11906 14.9969 9.09556C15.5842 8.99731 16.1362 8.7969 16.6351 8.5129C16.6537 8.72823 16.666 8.94623 16.666 9.1664C16.666 10.9362 16.052 12.5641 15.0253 13.8474L18.5939 17.4159L17.4155 18.5943L13.847 15.0257C12.5638 16.0525 10.936 16.6664 9.16602 16.6664C5.02602 16.6664 1.66602 13.3064 1.66602 9.1664C1.66619 5.0265 5.02612 1.66635 9.16602 1.66635ZM13.7738 1.09913C13.9209 0.744306 14.4112 0.744296 14.5583 1.09913L14.769 1.60857C15.129 2.47756 15.8007 3.1715 16.6448 3.54705L17.243 3.81316C17.5848 3.96551 17.5848 4.46318 17.243 4.61557L16.6098 4.89715C15.7868 5.26321 15.1272 5.93257 14.7609 6.77296L14.555 7.24416C14.4047 7.58927 13.9274 7.58927 13.777 7.24416L13.5719 6.77296C13.2057 5.93244 12.5453 5.26325 11.7222 4.89715L11.089 4.61557C10.7472 4.46319 10.7472 3.9655 11.089 3.81316L11.6872 3.54705C12.5314 3.1715 13.2031 2.47758 13.563 1.60857L13.7738 1.09913Z`,fill:`white`})));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`none`,width:`1em`,height:`1em`,...t},e.createElement(`path`,{d:`M8.94894 8.36398L3.99914 13.3137L5.41334 14.7279L11.7773 8.36398L5.41334 2L3.99914 3.41421L8.94894 8.36398Z`,fill:`currentColor`}));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{preserveAspectRatio:`none`,width:`1em`,height:`1em`,overflow:`visible`,style:{display:`block`},viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`g`,{id:`Group 91`},e.createElement(`rect`,{id:`Rectangle 63`,opacity:0,width:20,height:20,fill:`var(--fill-0, white)`,fillOpacity:.5}),e.createElement(`path`,{id:`Vector`,d:`M9.99998 8.61116L14.8611 3.75L16.25 5.13889L11.3889 10L16.25 14.8611L14.8611 16.25L9.99998 11.3889L5.13889 16.25L3.75 14.8611L8.61111 10L3.75 5.13889L5.13889 3.75L9.99998 8.61116Z`,fill:`var(--fill-0, white)`,fillOpacity:.5})));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{preserveAspectRatio:`none`,width:`1em`,height:`1em`,overflow:`visible`,style:{display:`block`},viewBox:`0 0 16.6667 16.6667`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t},e.createElement(`g`,{id:`Group 76`},e.createElement(`g`,{id:`Rectangle 49`}),e.createElement(`path`,{id:`Vector`,d:`M1.73609 11.1112H4.43671L8.11345 14.1194C8.17547 14.1701 8.25317 14.1978 8.33331 14.1978C8.52505 14.1978 8.68054 14.0424 8.68054 13.8506V2.81608C8.68054 2.73593 8.65283 2.65824 8.60206 2.59621C8.4806 2.44779 8.26186 2.42592 8.11345 2.54735L4.43671 5.55558H1.73609C1.35256 5.55558 1.04165 5.86649 1.04165 6.25003V10.4167C1.04165 10.8003 1.35256 11.1112 1.73609 11.1112ZM16.3194 8.33331C16.3194 10.6194 15.3152 12.671 13.7237 14.071L12.7392 13.0864C14.0804 11.94 14.9305 10.236 14.9305 8.33331C14.9305 6.43065 14.0804 4.72657 12.7392 3.58024L13.7237 2.59567C15.3152 3.99559 16.3194 6.04717 16.3194 8.33331ZM12.8472 8.33331C12.8472 7.00574 12.2264 5.82323 11.2592 5.06021L10.2668 6.05265C10.987 6.55453 11.4583 7.38887 11.4583 8.33331C11.4583 9.27776 10.987 10.1121 10.2668 10.6139L11.2592 11.6064C12.2264 10.8434 12.8472 9.66081 12.8472 8.33331Z`,fill:`var(--fill-0, white)`,fillOpacity:.9})));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- import*as e from"react";const t=t=>e.createElement(`svg`,{preserveAspectRatio:`none`,viewBox:`0 0 77 63`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,...t},e.createElement(`path`,{d:`M0 8C0 3.58172 3.58172 0 8 0H36.279C37.7322 0 39.1579 0.395804 40.4031 1.14491L55.3968 10.1652C56.9219 11.0827 58.7095 11.4654 60.4765 11.2528L68.0443 10.3423C72.8072 9.76919 77 13.4878 77 18.285V55C77 59.4183 73.4183 63 69 63H8C3.58172 63 0 59.4183 0 55V8Z`,fill:`url(#paint0_linear)`,fillOpacity:.3}),e.createElement(`defs`,null,e.createElement(`linearGradient`,{id:`paint0_linear`,x1:38.5,y1:0,x2:38.5,y2:63,gradientUnits:`userSpaceOnUse`},e.createElement(`stop`,{stopColor:`#6B30B9`}),e.createElement(`stop`,{offset:1,stopColor:`#2B1943`}))));export{t as default};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{gContentGetGuessYouLikeVideos as e,pContentBatchGetVideoDetail as t}from"../../../../../service/generated/client.mjs";import{useRequest as n}from"../../../../../hooks/query/use-query.mjs";import{useKeepAliveState as r}from"../../../../common/keep-scroll-position/index.mjs";import{useCardDecoration as i}from"../../../../../hooks/use-card-decoration.mjs";import{buildEditorPreviewRecommendList as a}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as o}from"../shared/runtime-context-provider.mjs";import{applyPlayCountDelta as s,clampColumns as c,mergeManualAndPool as ee,normalizeRecommendRuntimeProps as te,resolveRows as ne}from"./utils.mjs";import{useCallback as re,useEffect as l,useMemo as u,useState as ie}from"react";function d({rows:d,columns:f,smartTagEnabled:h,smartTagIds:g,title:fe,showPlayCount:pe,playCountDelta:me,showEpisode:he,enableInfinite:ge,items:v,mode:y=`renderer`}){let b=o()?.detailId||``,x=y===`editor`,S=x,{getVerticalHoCoverImageUrl:C,getTitleText:w}=i(),T=u(()=>te({smartTagEnabled:h,smartTagIds:g,enableInfinite:ge,items:v}),[ge,v,h,g]),E=T.smartTagEnabled,D=T.smartTagIds,O=u(()=>T.items??[],[T.items]),k=T.enableInfinite&&!x,A=!E,j=k&&E&&!S,_e=ne(d,k),M=c(f),N=_e*M,P=Math.max(1,N),F=u(()=>[`video-detail-recommend`,b||`unknown`,P,D.join(`,`)].join(`:`),[b,P,D]),[ve,I]=r(`${F}:pool`,[]),[L,R]=r(`${F}:has-more`,!1),[z,B]=ie(!1),V=u(()=>a(N),[N]),{data:H,isFetching:ye,isPending:be}=n([`video-detail-recommend`,b,j?`paged`:`all`,P,D.join(`,`)],async()=>S?null:await e({page_size:P,tags:D}),{enabled:!S&&E,refetchOnMount:`always`}),U=u(()=>S?V:p(H?.data?.videos),[H?.data?.videos,V,S]);l(()=>{if(!j){B(!1);return}I(e=>{if(!U.length)return e;if(!e.length)return U;let t=[...U],n=new Set(U.map(e=>e.id).filter(Boolean));return e.forEach(e=>{(!e.id||!n.has(e.id))&&(t.push(e),e.id&&n.add(e.id))}),t});let e=m(H?.data?.videos,P);R(t=>t||e),B(!1)},[H?.data?.videos,U,P,R,I,j]);let W=j?ve:U,G=u(()=>A?Array.from(new Set(O.map(e=>_(e.contentId)).filter(Boolean))):[],[O,A]),{data:K,isFetching:xe,isPending:Se}=n([`video-detail-recommend-manual-details`,G.join(`,`)],async()=>{if(!G.length)return[];let e=await t({ids:G});return(Array.isArray(e.data?.videos)?e.data.videos:[]).map(e=>ae(e))},{enabled:G.length>0,refetchOnMount:`always`}),q=u(()=>A?new Set(O.map(e=>_(e.contentId)).filter(Boolean)):new Set,[O,A]),J=u(()=>S?W:W.filter(e=>!q.has(e.id)),[W,S,q]),Y=u(()=>{if(!A||!O.length)return[];let e=new Map;return W.forEach(t=>{let n=_(t.id);n&&e.set(n,t)}),(K||[]).forEach(t=>{let n=_(t.id);n&&e.set(n,t)}),O.map((t,n)=>{let r=S?V[n%Math.max(1,V.length)]:le(t,n),i=_(t.contentId),a=typeof t.coverUrl==`string`?t.coverUrl.trim():``,o=e.get(i)??{...r,id:i||r.id||`preview-manual-${n+1}`,name:r.name||`猜你喜欢 ${n+1}`,img_y:a||r.img_y,img_x:a||r.img_x},s=t.titleMode===`custom`?t.title:w(o),c=t.coverMode===`content`?C(o)||a:a||C(o);return{info:{...o,name:s||o.name,img_y:c||o.img_y,img_x:c||o.img_x},config:{showPlayCount:t.showPlayCount,playCountDelta:t.playCountDelta,showEpisode:t.showEpisode}}}).filter(Boolean)},[V,W,w,C,S,K,O,A]),X=u(()=>J.map(e=>({info:e})),[J]),Ce=A&&O.length>0,we=u(()=>Ce?Y:ee(Y,X,N),[Ce,Y,N,X]),Z=u(()=>{if(j||k){if(!Y.length)return X;let e=new Set(Y.map(e=>e.info.id).filter(Boolean));return Y.concat(X.filter(t=>!e.has(t.info.id)))}return we},[we,Y,X,k,j]),Q=L&&Z.length>0?Math.max(0,Z.length-4):-1,$=Q>=0?`${F}:${Q}`:``,Te=String(fe||``).trim(),Ee=re(async()=>{if(!(!j||!L||z)){B(!0);try{let t=await e({page_size:P,tags:D}),n=Array.isArray(t.data?.videos)?t.data.videos:[],r=p(n),i=0;I(e=>{let t=new Set(e.map(e=>e.id).filter(Boolean)),n=[...e];return r.forEach(e=>{(!e.id||!t.has(e.id))&&(n.push(e),e.id&&t.add(e.id))}),i=n.length-e.length,n}),R(m(n,P)&&i>0)}catch(e){console.error(`猜你喜欢分页加载失败`,e),R(!1)}finally{B(!1)}}},[L,z,P,D,R,I,j]);l(()=>{if(!$||!L||z||!j)return;let e=document.querySelector(`[data-detail-recommend-trigger="${$}"]`);if(!(e instanceof HTMLElement))return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&!z&&Ee()});return t.observe(e),()=>{t.disconnect()}},[Ee,L,z,j,$]);let De=!S&&(z||E&&(ye||be)||G.length>0&&(xe||Se));return{uiItems:u(()=>Z.map((e,t)=>{let n=pe!==!1&&(e.config?.showPlayCount??!0),r=Number(e.config?.playCountDelta??me??0),i=e.config?.showEpisode??he;return{sourceIndex:t,info:e.info,title:w(e.info),coverUrl:C(e.info),detailPath:y===`renderer`?ce(e.info):``,playCountText:se(s(e.info.play_count||0,r)),videoInfoText:oe(e.info),showPlayCount:n,showEpisode:i,score:ue(e.info.score),cardKind:de(e.info)}}),[Z,w,C,y,me,he,pe]),shouldShowLoading:De,isPreview:S,resolvedColumns:M,resolvedModuleTitle:Te,triggerIndex:Q,triggerMarker:$}}function f(e){let t=e.is_more_link?`y`:`n`;return{id:e.video_id||``,mid:``,name:e.name||``,cat_id:``,cat_name:``,status:`1`,status_text:``,create_time:``,content_type:e.content_type,episode_cnt:e.episode_count||0,show_at:e.show_at??``,position:``,img_type:e.img_type??``,img_x:e.img_x??``,img_y:e.img_y??``,img_width:``,img_height:``,play_count:e.play_count,preview_images:[],duration:String(e.duration??``),score:String(e.score??``),is_more_link:t,update_status:String(e.update_status??``),description:e.description??``,language:``,director:``,actor:``,area:``,issue_date:``,publisher:``,series:``,number:``,tags:[],source_tags:e.source_tags??``,source_actor:[],links:Array.isArray(e.episodes)?e.episodes.map(e=>({id:e.id??``,name:e.name??``,preview_m3u8_url:e.preview_m3u8_url??``,m3u8_url:e.m3u8_url??``})):[],money:``,up_user:``,source_username:``,task_id:``,file_status:``}}function p(e){return Array.isArray(e)?e.map(e=>f(e)):[]}function ae(e){let t=String(e?.id||e?.mid||e?.video_id||``),n=e?.is_more_link===`y`?`y`:`n`,r=Array.isArray(e?.links)?e.links.map(e=>({id:String(e?.id||``),name:String(e?.name||``),preview_m3u8_url:String(e?.preview_m3u8_url||``),m3u8_url:String(e?.m3u8_url||``)})):[],i=Array.isArray(e?.video_episodes)?e.video_episodes.length:0,a=Number(e?.episode_cnt||i||r.length||0);return{id:t,mid:String(e?.mid||t),name:String(e?.name||``),cat_id:String(e?.cat_id||``),cat_name:String(e?.cat_name||``),status:String(e?.status||`1`),status_text:String(e?.status_text||``),create_time:String(e?.create_time||``),content_type:e?.content_type,episode_cnt:Number.isFinite(a)?a:0,show_at:String(e?.show_at||``),position:String(e?.position||``),img_type:String(e?.img_type||``),img_x:String(e?.img_x||``),img_y:String(e?.img_y||``),img_width:String(e?.img_width||``),img_height:String(e?.img_height||``),play_count:Number(e?.play_count??e?.browse_count??0),preview_images:Array.isArray(e?.preview_images)?e.preview_images:[],duration:String(e?.duration||``),score:String(e?.score||``),is_more_link:n,update_status:String(e?.update_status||``),description:String(e?.description||``),language:String(e?.language||``),director:String(e?.director||``),actor:String(e?.actor||``),area:String(e?.area||``),issue_date:String(e?.issue_date||``),publisher:String(e?.publisher||``),series:String(e?.series||``),number:String(e?.number||``),tags:Array.isArray(e?.tags)?e.tags:[],source_tags:String(e?.source_tags||``),source_actor:Array.isArray(e?.source_actor)?e.source_actor:[],links:r,money:String(e?.money||``),up_user:String(e?.up_user||``),source_username:String(e?.source_username||``),task_id:String(e?.task_id||``),file_status:String(e?.file_status||``)}}function m(e,t){if(!Array.isArray(e)||e.length===0)return!1;let n=e[0];if(typeof n?.has_more==`boolean`)return n.has_more;let r=Number(n?.total??0);return Number.isFinite(r)&&r>0?r>t:e.length>=t}function oe(e){if(h(e)){let t=Number(e.episode_cnt||e.links?.length||0);return t>0?`全${t}集`:``}return g(Number(e.duration||0))}function h(e){return e.is_more_link===`y`}function g(e){if(!Number.isFinite(e)||e<=0)return``;let t=Math.floor(e),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 se(e){let t=Number(e||`0`);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function ce(e){let t=encodeURIComponent(e.name||``);return`/video/${e.id}/${t}/episode/1`}function _(e){return typeof e==`string`?e.trim():``}function le(e,t){let n=_(e.contentId)||`manual-${t+1}`,r=typeof e.coverUrl==`string`?e.coverUrl.trim():``,i=typeof e.title==`string`?e.title.trim():``,a=typeof e.description==`string`?e.description.trim():``;return{id:n,mid:n,name:i||`猜你喜欢 ${t+1}`,cat_id:``,cat_name:``,status:`1`,status_text:``,create_time:``,content_type:1,episode_cnt:0,show_at:``,position:``,img_type:``,img_x:r,img_y:r,img_width:``,img_height:``,play_count:0,preview_images:[],duration:``,score:``,is_more_link:`n`,update_status:``,description:a,language:``,director:``,actor:``,area:``,issue_date:``,publisher:``,series:``,number:``,tags:[],source_tags:``,source_actor:[],links:[],money:``,up_user:``,source_username:``,task_id:``,file_status:``}}function ue(e){let t=Number(e);if(!(!Number.isFinite(t)||t<=0))return t>10&&t<=100?t/10:Math.min(t,10)}function de(e){return String(e.img_type??``).trim().toLowerCase()===`long`?`short`:`tall`}export{d as useVideoDetailRecommendData};
@@ -1,8 +0,0 @@
1
-
2
- import { VideoDetailWaterfallRecommendProps } from "./schema.mjs";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region components/biz/business/detail/video-detail-waterfall-recommend/client.d.ts
6
- declare function VideoDetailWaterfallRecommendClient(props: VideoDetailWaterfallRecommendProps): react_jsx_runtime0.JSX.Element | null;
7
- //#endregion
8
- export { VideoDetailWaterfallRecommendClient };
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{Box as e}from"../../../../ui/box.mjs";import t from"../../../../ui/loading.mjs";import{WaterfallRecommend as n}from"../../../../common/list/waterfall-recommend/waterfall-recommend.mjs";import{useVideoDetailRecommendData as r}from"../video-detail-recommend/shared.mjs";import{useCallback as i,useMemo as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c(e){let t=[],n=[],r=0,i=0;return e.forEach(e=>{let a=(e.cardKind===`short`?120:218)+16;r<=i?(t.push(e),r+=a):(n.push(e),i+=a)}),{left:t,right:n}}function l(l){let{uiItems:u,shouldShowLoading:d,isPreview:f,resolvedModuleTitle:p,triggerIndex:m,triggerMarker:h}=r(l),g=a(()=>u.map((e,t)=>({key:e.info.id?`detail-waterfall-${e.info.id}-${t}`:`detail-waterfall-${t}`,sourceIndex:e.sourceIndex,href:e.detailPath||`#`,cardKind:e.cardKind,coverUrl:e.coverUrl,title:e.title,metaPrimaryText:e.showEpisode?e.videoInfoText:``,heatText:e.showPlayCount?e.playCountText:``,score:e.score})),[u]),_=a(()=>c(g),[g]),v=!!p,y=i(({item:e})=>{if(!(e.sourceIndex!==m||!h))return e=>{e&&e.setAttribute(`data-detail-recommend-trigger`,h)}},[m,h]);return g.length?s(e,{className:f?`mt-[16px] w-full pointer-events-none`:`mt-[16px] w-full`,children:[o(n,{title:p,columns:_,sectionClassName:`w-full`,headerClassName:v?`mb-[8px] flex items-center justify-between px-[12px]`:`hidden`,titleClassName:`flex-1 min-w-0 text-[18px] leading-[26px] font-bold line-clamp-1 text-text1`,containerClassName:`relative flex w-full gap-[15px] px-[12px]`,getItemRef:y}),d&&o(e,{className:`w-full flex justify-center py-[12px]`,children:o(t,{size:`medium`,showLabel:!1,className:`text-theme5`})})]}):null}export{l as VideoDetailWaterfallRecommendClient};
@@ -1,5 +0,0 @@
1
-
2
- import { VideoDetailWaterfallRecommendProps } from "./schema.mjs";
3
- import { VideoDetailWaterfallRecommendClient } from "./client.mjs";
4
- import { VideoDetailWaterfallRecommend } from "./server.mjs";
5
- import { videoDetailWaterfallRecommendMaterial } from "./material.mjs";
@@ -1,45 +0,0 @@
1
-
2
- import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
4
- import { VideoDetailWaterfallRecommendClient } from "./client.mjs";
5
- import { VideoDetailWaterfallRecommend } from "./server.mjs";
6
- import "../../../../../utils.mjs";
7
- import * as zod from "zod";
8
- import * as zod_v4_core0 from "zod/v4/core";
9
-
10
- //#region components/biz/business/detail/video-detail-waterfall-recommend/material.d.ts
11
- declare const videoDetailWaterfallRecommendMaterial: DefineMaterialOption<typeof VideoDetailWaterfallRecommend, typeof VideoDetailWaterfallRecommendClient, zod.ZodObject<{
12
- readonly rows: zod.ZodNumber & SchemaHasDefaultValue;
13
- readonly columns: zod.ZodNumber & SchemaHasDefaultValue;
14
- readonly smartTagEnabled: zod.ZodBoolean & SchemaHasDefaultValue;
15
- readonly title: zod.ZodString & SchemaHasDefaultValue;
16
- readonly showPlayCount: zod.ZodBoolean & SchemaHasDefaultValue;
17
- readonly playCountDelta: zod.ZodNumber & SchemaHasDefaultValue;
18
- readonly showEpisode: zod.ZodBoolean & SchemaHasDefaultValue;
19
- readonly enableInfinite: zod.ZodBoolean & SchemaHasDefaultValue;
20
- readonly smartTagIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21
- readonly items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
22
- contentId: zod.ZodString;
23
- coverMode: zod.ZodOptional<zod.ZodEnum<{
24
- content: "content";
25
- upload: "upload";
26
- }>>;
27
- coverUrl: zod.ZodOptional<zod.ZodString>;
28
- titleMode: zod.ZodOptional<zod.ZodEnum<{
29
- content: "content";
30
- custom: "custom";
31
- }>>;
32
- title: zod.ZodOptional<zod.ZodString>;
33
- description: zod.ZodOptional<zod.ZodString>;
34
- showPlayCount: zod.ZodOptional<zod.ZodBoolean>;
35
- playCountDelta: zod.ZodOptional<zod.ZodNumber>;
36
- showEpisode: zod.ZodOptional<zod.ZodBoolean>;
37
- }, zod_v4_core0.$strip>>>;
38
- } & {
39
- mode: zod.ZodOptional<zod.ZodEnum<{
40
- renderer: "renderer";
41
- editor: "editor";
42
- }>>;
43
- }, zod_v4_core0.$strip>, "video-detail-waterfall-recommend", "详情页">;
44
- //#endregion
45
- export { videoDetailWaterfallRecommendMaterial };
@@ -1,2 +0,0 @@
1
-
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{VideoDetailWaterfallRecommendClient as t}from"./client.mjs";import{videoDetailWaterfallRecommendInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailWaterfallRecommend as r}from"./server.mjs";const i=e({type:`video-detail-waterfall-recommend`,name:`详情页-瀑布流`,icon:`/static/components-thumb/grid_waterfall_two_column.png`,category:`详情页`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailWaterfallRecommendMaterial};
@@ -1,9 +0,0 @@
1
-
2
- import { VideoDetailRecommendProps } from "../video-detail-recommend/schema.mjs";
3
- import "../../../../../utils.mjs";
4
- import "zod";
5
-
6
- //#region components/biz/business/detail/video-detail-waterfall-recommend/schema.d.ts
7
- type VideoDetailWaterfallRecommendProps = VideoDetailRecommendProps;
8
- //#endregion
9
- export { VideoDetailWaterfallRecommendProps };
@@ -1,2 +0,0 @@
1
-
2
- import{videoDetailRecommendInspectorPropsSchema as e}from"../video-detail-recommend/schema.mjs";const t=e;export{t as videoDetailWaterfallRecommendInspectorPropsSchema};
@@ -1,11 +0,0 @@
1
-
2
- import { VideoDetailWaterfallRecommendProps } from "./schema.mjs";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region components/biz/business/detail/video-detail-waterfall-recommend/server.d.ts
6
- /**
7
- * 详情页瀑布流推荐物料服务端组件。
8
- */
9
- declare function VideoDetailWaterfallRecommend(props: VideoDetailWaterfallRecommendProps): react_jsx_runtime0.JSX.Element;
10
- //#endregion
11
- export { VideoDetailWaterfallRecommend };
@@ -1,2 +0,0 @@
1
-
2
- import{normalizeRecommendRuntimeProps as e}from"../video-detail-recommend/utils.mjs";import{VideoDetailWaterfallRecommendClient as t}from"./client.mjs";import{jsx as n}from"react/jsx-runtime";function r(r){let{mode:i=`renderer`,...a}=r;return n(t,{...e(a),mode:i})}export{r as VideoDetailWaterfallRecommend};
@@ -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{jsx as n}from"react/jsx-runtime";import r from"next/link";function i(i){let{ariaLabel:a,fallbackIcon:o,href:s,imageAlt:c=`header-action`,imageClassName:l,imageSrc:u,className:d}=i;return n(r,{href:s,"aria-label":a,className:e(`relative flex shrink-0 items-center justify-center text-text1`,d),children:u?n(t,{src:u,alt:c,fill:!0,sizes:`40px`,className:e(`object-cover`,l)}):o})}export{i as HeaderAction};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import t from"../../../../../assets/icons/common/header-search-icon.mjs";import{jsx as n}from"react/jsx-runtime";import r from"next/link";function i(i){let{ariaLabel:a=`打开搜索页`,href:o=`/search`,className:s,iconClassName:c}=i;return n(r,{href:o,"aria-label":a,className:e(`flex h-[24px] w-[24px] shrink-0 items-center justify-center text-text1`,s),children:n(t,{className:e(`h-[24px] w-[24px]`,c),"aria-hidden":!0})})}export{i as HeaderSearchIcon};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Box as t}from"../../../../ui/box.mjs";import{jsx as n}from"react/jsx-runtime";function r(r){let{children:i,className:a,mode:o=`renderer`}=r;return n(t,{as:`header`,className:e(`flex items-center px-[12px] py-[8px]`,o===`editor`&&`pointer-events-none`,a),children:i})}export{r as HeaderShell};
@@ -1,17 +0,0 @@
1
-
2
- import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
3
- import "../../../../utils.mjs";
4
- import { hotRecommendInspectorPropsSchema } from "./schema.mjs";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
-
7
- //#region components/biz/business/hot-recommend/client.d.ts
8
- type HotRecommendProps = InferSchemaProps<typeof hotRecommendInspectorPropsSchema>;
9
- interface ClientProps extends HotRecommendProps {
10
- onItemClick?: (keyword: string) => void;
11
- }
12
- /**
13
- * 热门推荐物料组件 - 客户端部分
14
- */
15
- declare function HotRecommendClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
16
- //#endregion
17
- export { HotRecommendClient, HotRecommendProps };
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{useRouter as e}from"../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useCallback as r,useId as i,useMemo as a,useRef as o,useState as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";import{usePathname as u,useSearchParams as d}from"next/navigation";const f=[];function p(e,t){if(e.length<=t)return[...e];let n=[...e];for(let e=0;e<t;e++){let t=e+Math.floor(Math.random()*(n.length-e));[n[e],n[t]]=[n[t],n[e]]}return n.slice(0,t)}function m({className:e=``}){let t=i().replace(/:/g,``);return l(`svg`,{viewBox:`0 0 62.4481 14.192`,fill:`none`,"aria-hidden":!0,className:e,children:[l(`g`,{children:[c(`path`,{d:`M50.7201 4V3.04H47.9841V0.768H50.7201V0H53.3281V0.768H57.1201V0H59.7441V0.768H62.4481V3.04H59.7441V4H57.1201V3.04H53.3281V4H50.7201ZM48.1281 8.32C48.4587 8.32 48.8054 8.27733 49.1681 8.192C49.5307 8.096 49.8934 7.968 50.2561 7.808C50.6294 7.63733 50.9867 7.43467 51.3281 7.2C51.6801 6.95467 52.0054 6.688 52.3041 6.4H48.3041V4.464H53.5681C53.7067 4.112 53.7761 3.72267 53.7761 3.296H56.4641C56.4641 3.68 56.4107 4.06933 56.3041 4.464H62.1121V6.4H55.5041C55.4401 6.51733 55.3707 6.62933 55.2961 6.736C55.2321 6.832 55.1574 6.93867 55.0721 7.056H61.1841V7.536C61.1841 7.94133 61.1147 8.33067 60.9761 8.704C60.8481 9.07733 60.5921 9.39733 60.2081 9.664H62.3041V11.488H59.2801V11.696C59.2801 12.1653 59.2267 12.5547 59.1201 12.864C59.0134 13.1733 58.8534 13.4187 58.6401 13.6C58.4267 13.792 58.1601 13.9253 57.8401 14C57.5201 14.0747 57.1521 14.112 56.7361 14.112H54.7361V12.432H55.2481C55.5894 12.4213 55.8561 12.4 56.0481 12.368C56.2507 12.336 56.4001 12.288 56.4961 12.224C56.6027 12.16 56.6721 12.0853 56.7041 12C56.7361 11.9147 56.7521 11.8133 56.7521 11.696V11.488H53.2161V9.664H56.7521V9.44C57.2321 9.44 57.6267 9.39733 57.9361 9.312C58.2454 9.216 58.4747 9.04 58.6241 8.784H54.4641V7.856C54.1547 8.208 53.8187 8.544 53.4561 8.864C53.1041 9.17333 52.7254 9.456 52.3201 9.712V14.176H49.7761V10.784C49.2534 10.912 48.7041 10.976 48.1281 10.976V8.32Z`,fill:`url(#${t})`}),c(`path`,{d:`M40.3361 0.0159912C40.3361 0.805325 40.2614 1.53066 40.1121 2.19199H46.3841V4.28799H44.3361V5.45599H46.1601V7.31199H44.3361V8.47999H46.1601V10.352H44.3361V11.648H46.4961V13.968H40.1121V14.192H37.5681V5.63199C37.3441 5.69599 37.1201 5.72799 36.8961 5.72799V2.92799C37.2694 2.92799 37.5361 2.68799 37.6961 2.20799C37.8561 1.72799 37.9361 0.997325 37.9361 0.0159912H40.3361ZM33.2641 0.0159912H35.6641V2.20799H36.6721V4.57599H35.6641V6.20799L36.6881 6.09599V8.47999L35.6641 8.62399V10.992C35.6641 11.408 35.6427 11.8027 35.6001 12.176C35.5574 12.56 35.4507 12.8907 35.2801 13.168C35.1201 13.456 34.8801 13.68 34.5601 13.84C34.2401 14.0107 33.8081 14.096 33.2641 14.096H32.1921V11.872H32.6241C32.9014 11.872 33.0774 11.7973 33.1521 11.648C33.2267 11.488 33.2641 11.184 33.2641 10.736V8.97599L31.9841 9.15199V6.63999L33.2641 6.49599V4.57599H32.0641V2.20799H33.2641V0.0159912ZM41.6001 0.0159912H44.4161L44.4641 1.90399H41.6481L41.6001 0.0159912ZM40.1121 5.45599H41.8881V4.28799H40.1121V5.45599ZM40.1121 8.47999H41.8881V7.31199H40.1121V8.47999ZM40.1121 11.648H41.8881V10.352H40.1121V11.648Z`,fill:`url(#${t})`}),c(`path`,{d:`M16.6721 2.49599L16.6081 0.0159912H19.8401L19.9041 2.49599H16.6721ZM24.9601 14.192V11.68H25.7121C26.0427 11.68 26.2987 11.6587 26.4801 11.616C26.6721 11.5733 26.8161 11.4987 26.9121 11.392C27.0081 11.2747 27.0667 11.12 27.0881 10.928C27.1094 10.736 27.1201 10.4907 27.1201 10.192V2.68799H20.8001V0.175991H29.9521V10.448C29.9521 11.2267 29.8827 11.8613 29.7441 12.352C29.6161 12.8427 29.3921 13.2213 29.0721 13.488C28.7521 13.7653 28.3201 13.952 27.7761 14.048C27.2321 14.144 26.5494 14.192 25.7281 14.192H24.9601ZM16.5441 14.192V3.23199H19.3761V14.192H16.5441Z`,fill:`url(#${t})`}),c(`path`,{d:`M6.48499e-05 7.18399V5.10399L1.87206 5.02399V3.82399H0.176065V1.45599H1.87206V0.0159912H4.25607V1.45599H6.00007V3.82399H4.25607V4.91199L5.84007 4.84799V6.92799L4.25607 6.99199V8.36799C4.25607 8.73066 4.22407 9.06132 4.16007 9.35999C4.09607 9.65866 3.97873 9.91466 3.80806 10.128C3.64807 10.3413 3.41873 10.5067 3.12007 10.624C2.83207 10.7413 2.45873 10.8 2.00006 10.8H0.592065V8.68799H1.05606C1.24806 8.68799 1.3974 8.66666 1.50406 8.62399C1.6214 8.58132 1.70673 8.52266 1.76006 8.44799C1.8134 8.36266 1.8454 8.26666 1.85606 8.15999C1.86673 8.04266 1.87206 7.91999 1.87206 7.79199V7.10399L6.48499e-05 7.18399ZM13.8081 10.864C12.7627 10.864 12.0054 10.624 11.5361 10.144C11.0774 9.66399 10.8481 8.86933 10.8481 7.75999V3.82399H9.84007V4.87999V5.02399H10.5121V6.68799H9.76007C9.6854 7.46666 9.55206 8.12266 9.36006 8.65599C9.17873 9.18932 8.9174 9.62133 8.57607 9.95199C8.2454 10.2827 7.8294 10.5227 7.32807 10.672C6.82673 10.8213 6.2294 10.896 5.53607 10.896V8.79999C5.8774 8.79999 6.1654 8.76799 6.40007 8.70399C6.6454 8.63999 6.84273 8.52799 6.99207 8.36799C7.1414 8.20799 7.25873 7.99466 7.34407 7.72799C7.4294 7.45066 7.48807 7.10399 7.52007 6.68799H6.35207V5.02399H7.58406V4.84799V3.82399H6.44807V1.45599H7.60007V0.0159912H9.85606V1.45599H13.2321V7.24799C13.2321 7.66399 13.2747 7.92533 13.3601 8.03199C13.4561 8.13866 13.6321 8.19199 13.8881 8.19199H14.3521V10.864H13.8081ZM0.144065 14.192L0.256065 11.232H3.21606L3.10406 14.192H0.144065ZM11.3921 14.192L11.2481 11.232H14.2241L14.3681 14.192H11.3921ZM4.17606 14.192L4.03207 11.296H6.73607L6.86407 14.192H4.17606ZM7.77607 14.192L7.63207 11.296H10.3841L10.5121 14.192H7.77607Z`,fill:`url(#${t})`})]}),c(`defs`,{children:l(`linearGradient`,{id:t,x1:`33.7161`,y1:`-4.59601`,x2:`60.7161`,y2:`18.404`,gradientUnits:`userSpaceOnUse`,children:[c(`stop`,{stopColor:`#E914E9`}),c(`stop`,{offset:`1`,stopColor:`#6C43EE`})]})})]})}function h({className:e=``}){return c(`svg`,{viewBox:`0 0 16.6667 16.6667`,fill:`none`,"aria-hidden":!0,className:e,children:c(`path`,{d:`M8.33333 1.66667C6.04287 1.66667 4.0209 2.82188 2.82036 4.58333H5V6.25H0V1.25H1.66667V3.3328C3.18651 1.30972 5.60637 0 8.33333 0C12.9357 0 16.6667 3.73096 16.6667 8.33333H15C15 4.65143 12.0152 1.66667 8.33333 1.66667ZM1.66667 8.33333C1.66667 12.0152 4.65143 15 8.33333 15C10.6238 15 12.6458 13.8447 13.8463 12.0833H11.6667V10.4167H16.6667V15.4167H15V13.3338C13.4802 15.3569 11.0603 16.6667 8.33333 16.6667C3.73096 16.6667 0 12.9357 0 8.33333H1.66667Z`,fill:`currentColor`})})}function g({variant:e,className:t=``}){let n=i().replace(/:/g,``),r=e===`gold`?`#FFF047`:`#D7D7D7`;return l(`svg`,{viewBox:`0 0 10 8`,fill:`none`,"aria-hidden":!0,className:t,children:[c(`path`,{d:`M0.72289 1.44405L2.67531 2.6057L4.62168 0.173795C4.77092 -0.0126857 5.06132 -0.0558774 5.27027 0.0773202C5.31202 0.103935 5.34852 0.136533 5.37837 0.173795L7.32476 2.6057L9.27714 1.44405C9.49083 1.31693 9.77946 1.36845 9.92192 1.55913C9.98315 1.64113 10.0097 1.73991 9.99682 1.83779L9.23283 7.63352C9.20526 7.84249 9.00682 8 8.77105 8H1.22899C0.99323 8 0.794784 7.84249 0.767236 7.63352L0.00322932 1.83779C-0.0267734 1.61019 0.155642 1.40398 0.410663 1.3772C0.520333 1.36569 0.631013 1.38938 0.72289 1.44405ZM5.00005 5.51033C5.51357 5.51033 5.92993 5.13878 5.92993 4.68043C5.92993 4.22209 5.51357 3.85054 5.00005 3.85054C4.48647 3.85054 4.07016 4.22209 4.07016 4.68043C4.07016 5.13878 4.48647 5.51033 5.00005 5.51033Z`,fill:`url(#${n})`}),c(`defs`,{children:l(`linearGradient`,{id:n,x1:`5`,y1:`0`,x2:`5`,y2:`8`,gradientUnits:`userSpaceOnUse`,children:[c(`stop`,{stopColor:r}),c(`stop`,{offset:`1`,stopColor:r,stopOpacity:`0`})]})})]})}function _(i){let{title:_,displayCount:v=4,items:y=f,onItemClick:b,mode:x=`renderer`}=i,S=x===`editor`,C=e(),w=u(),T=d(),E=_.trim()||`热门推荐`,D=Math.max(1,v||0),[O,k]=s(0),[A,j]=s(!1),M=o(null),N=r(()=>{A||(j(!0),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{k(e=>e+1),j(!1),M.current=null},500))},[A]),P=a(()=>p(y,D),[D,y,O]);if(y.length===0)return null;let F=e=>{if(b){b(e);return}let t=new URLSearchParams(T.toString());t.set(`q`,e);let n=w.includes(`/search-result`)?w:`/search-result`;C.push(`${n}?${t.toString()}`)};return l(t,{className:`relative mx-[16px] mt-[24px] overflow-hidden rounded-[12px] bg-black${S?` pointer-events-none`:``}`,children:[c(t,{className:`pointer-events-none absolute inset-0 rounded-[12px]`,style:{background:`linear-gradient(180deg, #9756E3 0%, #6C43EE 100%), linear-gradient(180deg, rgba(255,30,255,0.7) 0%, rgba(108,67,238,0) 100%)`,padding:`0.5px`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,maskComposite:`exclude`}}),c(t,{className:`pointer-events-none absolute inset-x-0 top-0 rounded-t-[12px] mix-blend-plus-lighter`,style:{height:`259px`,background:`linear-gradient(180deg, rgba(151,86,227,0.4) 0%, rgba(151,86,227,0) 85%)`}}),l(t,{className:`relative px-[24px] pb-[18px] pt-[22px]`,children:[l(t,{className:`flex items-center justify-between`,children:[E===`热门推荐`?c(m,{className:`h-[14.192px] w-[62.448px] shrink-0`}):c(n,{className:`shrink-0 bg-[linear-gradient(90deg,#E914E9_0%,#6C43EE_100%)] bg-clip-text font-["PingFang_SC"] text-[16px] font-semibold leading-none text-transparent`,children:E}),c(`button`,{type:`button`,"aria-label":`刷新`,className:`flex h-[20px] w-[20px] shrink-0 items-center justify-center text-white/40 transition-opacity active:opacity-70`,onClick:N,children:c(h,{className:`h-[16.6667px] w-[16.6667px] ${A?`animate-spin`:``}`})})]}),c(t,{className:`mt-[7px]`,children:P.map((e,r)=>{let i=r<3,a=r<2,o=i?`text-[#C922EF]`:`text-white/70`,s=i?`text-white/90`:`text-white/70`;return l(t,{children:[l(`button`,{type:`button`,className:`flex h-[48px] w-full items-center gap-[4px] text-left transition-opacity active:opacity-70`,onClick:()=>F(e.label),children:[l(t,{className:`relative flex h-[24px] w-[20px] shrink-0 items-end justify-center`,children:[a?c(g,{variant:r===0?`gold`:`silver`,className:`absolute left-1/2 top-0 h-[8px] w-[10px] -translate-x-1/2`}):null,c(n,{className:`font-['DIN_Black'] text-[14px] font-normal not-italic leading-[24px] ${o}`,children:r+1})]}),c(n,{className:`min-w-0 flex-1 truncate font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] ${s}`,children:e.label})]}),r<P.length-1?c(t,{className:`h-px w-full bg-white/[0.08]`}):null]},`${e.label}-${r}`)})})]})]})}export{_ as HotRecommendClient};
@@ -1,5 +0,0 @@
1
-
2
- import { hotRecommendInspectorPropsSchema } from "./schema.mjs";
3
- import { HotRecommendClient, HotRecommendProps } from "./client.mjs";
4
- import { HotRecommendServer } from "./server.mjs";
5
- import { hotRecommendMaterial } from "./material.mjs";
@@ -1,24 +0,0 @@
1
-
2
- import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
3
- import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
4
- import "../../../../utils.mjs";
5
- import { HotRecommendClient } from "./client.mjs";
6
- import { HotRecommendServer } from "./server.mjs";
7
- import * as zod from "zod";
8
- import * as zod_v4_core0 from "zod/v4/core";
9
-
10
- //#region components/biz/business/hot-recommend/material.d.ts
11
- declare const hotRecommendMaterial: DefineMaterialOption<typeof HotRecommendServer, typeof HotRecommendClient, zod.ZodObject<{
12
- readonly title: zod.ZodString & SchemaHasDefaultValue;
13
- readonly displayCount: zod.ZodNumber & SchemaHasDefaultValue;
14
- readonly items: zod.ZodArray<zod.ZodObject<{
15
- label: zod.ZodString & SchemaHasDefaultValue;
16
- }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
17
- } & {
18
- mode: zod.ZodOptional<zod.ZodEnum<{
19
- renderer: "renderer";
20
- editor: "editor";
21
- }>>;
22
- }, zod_v4_core0.$strip>, "hot-recommend", "内容组件">;
23
- //#endregion
24
- export { hotRecommendMaterial };
@@ -1,2 +0,0 @@
1
-
2
- import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{HotRecommendClient as t}from"./client.mjs";import{hotRecommendInspectorPropsSchema as n}from"./schema.mjs";import{HotRecommendServer as r}from"./server.mjs";const i=e({type:`hot-recommend`,name:`热门推荐`,icon:`/static/components-thumb/search_recommend_text.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as hotRecommendMaterial};
@@ -1,23 +0,0 @@
1
-
2
- import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
3
- import "../../../../utils.mjs";
4
- import { z } from "zod";
5
-
6
- //#region components/biz/business/hot-recommend/schema.d.ts
7
- /**
8
- * 热门推荐物料属性定义
9
- */
10
- declare const hotRecommendInspectorPropsSchema: z.ZodObject<{
11
- readonly title: z.ZodString & SchemaHasDefaultValue;
12
- readonly displayCount: z.ZodNumber & SchemaHasDefaultValue;
13
- readonly items: z.ZodArray<z.ZodObject<{
14
- label: z.ZodString & SchemaHasDefaultValue;
15
- }, z.core.$strip>> & SchemaHasDefaultValue;
16
- } & {
17
- mode: z.ZodOptional<z.ZodEnum<{
18
- renderer: "renderer";
19
- editor: "editor";
20
- }>>;
21
- }, z.core.$strip>;
22
- //#endregion
23
- export { hotRecommendInspectorPropsSchema };
@@ -1,2 +0,0 @@
1
-
2
- import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import{z as t}from"zod";const n=e(e=>({title:e.string(`热门推荐`,{label:`标题名称`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:e.number(4,{label:`展示数`}),items:e.array(t.object({label:e.string(`东野圭吾作品:11字迷案`,{label:`热词`})}),{label:`推荐位模块`,defaultValue:[{label:`东野圭吾作品:11字迷案`},{label:`嫌疑人X的献身:高智商博弈`},{label:`白夜行:原著同名悬疑改编`},{label:`神探伽利略:校园连环谜案`},{label:`假面饭店:密室追凶夜`},{label:`恶意:东野圭吾高分作品`}]})}));export{n as hotRecommendInspectorPropsSchema};
@@ -1,11 +0,0 @@
1
-
2
- import { HotRecommendProps } from "./client.mjs";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region components/biz/business/hot-recommend/server.d.ts
6
- /**
7
- * 热门推荐物料组件 - 服务端部分
8
- */
9
- declare function HotRecommendServer(props: HotRecommendProps): Promise<react_jsx_runtime0.JSX.Element>;
10
- //#endregion
11
- export { HotRecommendServer };
@@ -1,2 +0,0 @@
1
-
2
- import{HotRecommendClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";async function n(n){let{mode:r=`renderer`,...i}=n;return t(e,{...i,mode:r})}export{n as HotRecommendServer};
@@ -1,2 +0,0 @@
1
-
2
- "use client";import{Box as e}from"../../../../../../ui/box.mjs";import{EmptyState as t}from"../../../../../../ui/empty.mjs";import{InfiniteScroll as n}from"../../../../../../ui/infinite-scroll.mjs";import{Skeleton as r}from"../../../../../../ui/skeleton.mjs";import{WaterfallRecommend as i}from"../../../../../../common/list/waterfall-recommend/waterfall-recommend.mjs";import{useMemo as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c(e){let t=Number.isFinite(e)?Math.max(0,e):0;return t<=0?``:t>=1e8?`${(t/1e8).toFixed(1).replace(/\.0$/,``)}亿`:t>=1e4?`${(t/1e4).toFixed(1).replace(/\.0$/,``)}W`:`${Math.floor(t)}`}function l(e){let t=Number(e);if(!(!Number.isFinite(t)||t<=0))return t>10&&t<=100?t/10:Math.min(t,10)}function u(e,t){let n=String(e.imgType||``).trim().toLowerCase();return n===`long`?`short`:n===`short`?`tall`:t%3==1?`short`:`tall`}function d(e){return e.map((e,t)=>({key:e.id?`collect-video-waterfall-${e.id}-${t}`:`collect-video-waterfall-${t}`,sourceIndex:t,href:`/video/${e.id}/${e.title}`,cardKind:u(e,t),coverUrl:e.coverImage,title:e.title,metaPrimaryText:e.metaPrimaryText||``,heatText:c(e.viewCount),score:l(e.score)}))}function f(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 p(){return s(e,{className:`flex w-full gap-[15px]`,children:[s(e,{className:`flex min-w-0 flex-1 flex-col gap-[16px]`,children:[o(r,{className:`h-[218px] w-full rounded-[8px] bg-white/8`}),o(r,{className:`h-[120px] w-full rounded-[8px] bg-white/8`}),o(r,{className:`h-[218px] w-full rounded-[8px] bg-white/8`})]}),s(e,{className:`flex min-w-0 flex-1 flex-col gap-[16px]`,children:[o(r,{className:`h-[120px] w-full rounded-[8px] bg-white/8`}),o(r,{className:`h-[218px] w-full rounded-[8px] bg-white/8`}),o(r,{className:`h-[120px] w-full rounded-[8px] bg-white/8`})]})]})}function m({list:e,loading:r=!1,hasMore:s=!1,loadMore:c,emptyText:l=``}){let u=a(()=>d(e),[e]),m=a(()=>f(u),[u]);return r&&e.length===0?o(p,{}):u.length===0?o(t,{type:`no-content`,text:l,className:`!pt-[72px]`}):o(n,{loadMore:async()=>{await c?.()},hasMore:!!c&&s,noMoreText:`没有更多了`,className:`w-full`,children:o(i,{title:``,columns:m,sectionClassName:`w-full`,headerClassName:`hidden`,containerClassName:`relative flex w-full gap-[15px]`})})}export{m as CollectVideoWaterfall};
@@ -1,15 +0,0 @@
1
-
2
- import { RankingRecommendInspectorProps } from "./schema.mjs";
3
- import { RankingCardItem } from "./shared.mjs";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region components/biz/business/ranking-recommend/client.d.ts
7
- type RankingRecommendProps = RankingRecommendInspectorProps & {
8
- prefetchItems?: RankingCardItem[];
9
- };
10
- /**
11
- * 推荐榜物料组件 - 客户端部分
12
- */
13
- declare function RankingRecommendClient(props: RankingRecommendProps): react_jsx_runtime0.JSX.Element | null;
14
- //#endregion
15
- export { RankingRecommendClient, RankingRecommendProps };