@funhub/platform 0.1.61 → 0.1.62

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 (806) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +18 -1
  2. package/dist/assets/icons/clear.mjs +17 -1
  3. package/dist/assets/icons/close-icon.mjs +18 -1
  4. package/dist/assets/icons/close.mjs +14 -1
  5. package/dist/assets/icons/common/collect_nor.mjs +21 -1
  6. package/dist/assets/icons/common/collect_sel.mjs +21 -1
  7. package/dist/assets/icons/common/follow_sel.mjs +17 -1
  8. package/dist/assets/icons/common/follow_user.mjs +17 -1
  9. package/dist/assets/icons/common/full_screen.mjs +17 -1
  10. package/dist/assets/icons/common/god_comment.mjs +17 -1
  11. package/dist/assets/icons/common/heart-like.mjs +31 -1
  12. package/dist/assets/icons/common/heart-unlike.mjs +18 -1
  13. package/dist/assets/icons/common/qq.mjs +32 -1
  14. package/dist/assets/icons/common/right_arrow.mjs +14 -1
  15. package/dist/assets/icons/common/share.mjs +17 -1
  16. package/dist/assets/icons/common/solid-arrow.mjs +17 -1
  17. package/dist/assets/icons/common/video_play.mjs +18 -1
  18. package/dist/assets/icons/common/wechat-friends.mjs +40 -1
  19. package/dist/assets/icons/common/wechat.mjs +39 -1
  20. package/dist/assets/icons/detail/check-ok.mjs +17 -1
  21. package/dist/assets/icons/detail/collect_nor.mjs +21 -1
  22. package/dist/assets/icons/detail/collect_sel.mjs +21 -1
  23. package/dist/assets/icons/detail/comment.mjs +19 -1
  24. package/dist/assets/icons/detail/commet_at.mjs +53 -1
  25. package/dist/assets/icons/detail/give_like.mjs +20 -1
  26. package/dist/assets/icons/detail/give_like_sel.mjs +27 -1
  27. package/dist/assets/icons/detail/min-collection.mjs +38 -1
  28. package/dist/assets/icons/detail/publish_pic.mjs +27 -1
  29. package/dist/assets/icons/detail/publish_video.mjs +30 -1
  30. package/dist/assets/icons/detail/share.mjs +17 -1
  31. package/dist/assets/icons/detail/un_like.mjs +20 -1
  32. package/dist/assets/icons/detail/un_like_sel.mjs +27 -1
  33. package/dist/assets/icons/detail/video_flag.mjs +17 -1
  34. package/dist/assets/icons/detail/video_play.mjs +18 -1
  35. package/dist/assets/icons/dislike.mjs +20 -1
  36. package/dist/assets/icons/dislike_sel.mjs +27 -1
  37. package/dist/assets/icons/empty/img-empty-adduser.mjs +463 -1
  38. package/dist/assets/icons/empty/img-empty-nodata.mjs +194 -1
  39. package/dist/assets/icons/eye-icon.mjs +21 -1
  40. package/dist/assets/icons/eye-off-icon.mjs +21 -1
  41. package/dist/assets/icons/filter_dark.mjs +17 -1
  42. package/dist/assets/icons/follow_nor.mjs +44 -1
  43. package/dist/assets/icons/follow_sel.mjs +31 -1
  44. package/dist/assets/icons/left-arrow-icon.mjs +18 -1
  45. package/dist/assets/icons/left_arrow.mjs +14 -1
  46. package/dist/assets/icons/like.mjs +20 -1
  47. package/dist/assets/icons/like_sel.mjs +27 -1
  48. package/dist/assets/icons/publish/publish_add.mjs +17 -1
  49. package/dist/assets/icons/publish/publish_at.mjs +53 -1
  50. package/dist/assets/icons/publish/publish_collection.mjs +28 -1
  51. package/dist/assets/icons/publish/publish_pic.mjs +27 -1
  52. package/dist/assets/icons/publish/publish_video.mjs +30 -1
  53. package/dist/assets/icons/refresh.mjs +18 -1
  54. package/dist/assets/icons/right_arrow.mjs +14 -1
  55. package/dist/assets/icons/search/avatar.mjs +36 -1
  56. package/dist/assets/icons/search/filter.mjs +17 -1
  57. package/dist/assets/icons/search/video.mjs +27 -1
  58. package/dist/assets/icons/search.mjs +23 -1
  59. package/dist/assets/icons/share/share-link.mjs +39 -1
  60. package/dist/assets/icons/tabs/follow.mjs +20 -1
  61. package/dist/assets/icons/tabs/follow_active.mjs +17 -1
  62. package/dist/assets/icons/tabs/home.mjs +17 -1
  63. package/dist/assets/icons/tabs/home_active.mjs +17 -1
  64. package/dist/assets/icons/tabs/mine.mjs +26 -1
  65. package/dist/assets/icons/tabs/mine_active.mjs +17 -1
  66. package/dist/assets/icons/view.mjs +17 -1
  67. package/dist/assets/images/add.mjs +5 -1
  68. package/dist/assets/images/default_avatar.mjs +5 -1
  69. package/dist/assets/images/default_collection_cover.mjs +5 -1
  70. package/dist/assets/images/empty/img_empty_adduser.mjs +463 -1
  71. package/dist/assets/images/empty/img_empty_message.mjs +408 -1
  72. package/dist/assets/images/empty/img_empty_network.mjs +168 -1
  73. package/dist/assets/images/empty/img_empty_nodata.mjs +194 -1
  74. package/dist/assets/images/empty/img_empty_picture.mjs +59 -1
  75. package/dist/assets/images/empty/img_empty_search.mjs +250 -1
  76. package/dist/assets/images/frame.mjs +5 -1
  77. package/dist/assets/images/less.mjs +5 -1
  78. package/dist/assets/images/logo.mjs +5 -1
  79. package/dist/assets/images/marquee.mjs +5 -1
  80. package/dist/assets/images/subscript.mjs +5 -1
  81. package/dist/assets/images/user/default_avatar.mjs +5 -1
  82. package/dist/biz.mjs +145 -1
  83. package/dist/common.mjs +44 -1
  84. package/dist/components/biz/basics/card-item/defaults/default-props.mjs +10 -1
  85. package/dist/components/biz/basics/card-item/runtime/client.mjs +83 -1
  86. package/dist/components/biz/basics/card-item/runtime/corners.mjs +33 -1
  87. package/dist/components/biz/basics/card-item/schema/component.mjs +14 -1
  88. package/dist/components/biz/basics/card-item/schema/data.schema.mjs +8 -1
  89. package/dist/components/biz/basics/card-item/schema/event.schema.mjs +8 -1
  90. package/dist/components/biz/basics/card-item/schema/index.mjs +17 -1
  91. package/dist/components/biz/basics/card-item/schema/props.schema.mjs +18 -1
  92. package/dist/components/biz/basics/card-item/schema/style.schema.mjs +7 -1
  93. package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +13 -1
  94. package/dist/components/biz/basics/card-layout/runtime/client.mjs +38 -1
  95. package/dist/components/biz/basics/card-layout/schema/component.mjs +14 -1
  96. package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +8 -1
  97. package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +5 -1
  98. package/dist/components/biz/basics/card-layout/schema/index.mjs +17 -1
  99. package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +28 -1
  100. package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +7 -1
  101. package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +268 -1
  102. package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +11 -1
  103. package/dist/components/biz/basics/fullscreen-feed/index.mjs +12 -1
  104. package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +97 -1
  105. package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +125 -1
  106. package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +391 -1
  107. package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +107 -1
  108. package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +134 -1
  109. package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +232 -1
  110. package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +25 -152
  111. package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +193 -1
  112. package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +212 -1
  113. package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +273 -1
  114. package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +373 -1
  115. package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +14 -1
  116. package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +11 -1
  117. package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +13 -1
  118. package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +17 -1
  119. package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +20 -1
  120. package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +5 -1
  121. package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +19 -1
  122. package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +9 -1
  123. package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +169 -1
  124. package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +14 -1
  125. package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +9 -1
  126. package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +23 -1
  127. package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +17 -1
  128. package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +78 -1
  129. package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +7 -1
  130. package/dist/components/biz/basics/search/shared/components/search-box.mjs +55 -1
  131. package/dist/components/biz/basics/search/shared/config/default-data.mjs +15 -1
  132. package/dist/components/biz/basics/search/shared/config/schema.mjs +50 -1
  133. package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +10 -1
  134. package/dist/components/biz/basics/search/variants/basic-search/index.mjs +12 -1
  135. package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +31 -1
  136. package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +14 -1
  137. package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +8 -1
  138. package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +7 -1
  139. package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +17 -1
  140. package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +7 -1
  141. package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +7 -1
  142. package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +14 -1
  143. package/dist/components/biz/basics/search/variants/filter-search/index.mjs +12 -1
  144. package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +63 -1
  145. package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +14 -1
  146. package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +8 -1
  147. package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +7 -1
  148. package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +17 -1
  149. package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +22 -1
  150. package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +7 -1
  151. package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +10 -1
  152. package/dist/components/biz/basics/search/variants/simple-search/index.mjs +9 -1
  153. package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +37 -1
  154. package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +14 -1
  155. package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +8 -1
  156. package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +7 -1
  157. package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +17 -1
  158. package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +7 -1
  159. package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +7 -1
  160. package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +18 -1
  161. package/dist/components/biz/basics/search/variants/tag-search/index.mjs +9 -1
  162. package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +67 -1
  163. package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +14 -1
  164. package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +8 -1
  165. package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +7 -1
  166. package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +17 -1
  167. package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +37 -1
  168. package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +7 -1
  169. package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +15 -1
  170. package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +12 -1
  171. package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +64 -1
  172. package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +21 -1
  173. package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +126 -1
  174. package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +14 -1
  175. package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +53 -1
  176. package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +5 -1
  177. package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +17 -1
  178. package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +40 -1
  179. package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +7 -1
  180. package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +25 -1
  181. package/dist/components/biz/business/banner-carousel/client.mjs +121 -1
  182. package/dist/components/biz/business/banner-carousel/default-props.mjs +15 -1
  183. package/dist/components/biz/business/banner-carousel/material.mjs +21 -1
  184. package/dist/components/biz/business/banner-carousel/schema.mjs +85 -1
  185. package/dist/components/biz/business/banner-carousel/server.mjs +22 -1
  186. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +8 -1
  187. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +9 -1
  188. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +41 -1
  189. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +14 -1
  190. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +8 -1
  191. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +5 -1
  192. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +17 -1
  193. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +12 -1
  194. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +7 -1
  195. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +8 -1
  196. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +9 -1
  197. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +107 -1
  198. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +14 -1
  199. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +8 -1
  200. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +5 -1
  201. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +17 -1
  202. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +12 -1
  203. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +7 -1
  204. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +8 -1
  205. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +9 -1
  206. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +41 -1
  207. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +14 -1
  208. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +8 -1
  209. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +5 -1
  210. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +17 -1
  211. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +12 -1
  212. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +7 -1
  213. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +8 -1
  214. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +9 -1
  215. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +41 -1
  216. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +14 -1
  217. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +8 -1
  218. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +5 -1
  219. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +17 -1
  220. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +12 -1
  221. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +7 -1
  222. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +8 -1
  223. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +9 -1
  224. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +107 -1
  225. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +14 -1
  226. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +8 -1
  227. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +5 -1
  228. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +17 -1
  229. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +12 -1
  230. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +7 -1
  231. package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +180 -1
  232. package/dist/components/biz/business/channel-list/client.mjs +111 -1
  233. package/dist/components/biz/business/channel-list/default-props.mjs +12 -1
  234. package/dist/components/biz/business/channel-list/material.mjs +21 -1
  235. package/dist/components/biz/business/channel-list/schema.mjs +39 -1
  236. package/dist/components/biz/business/comment/comment-input.mjs +772 -5
  237. package/dist/components/biz/business/comment/comment-item.mjs +190 -1
  238. package/dist/components/biz/business/comment/comment-list.mjs +722 -1
  239. package/dist/components/biz/business/comment/comment-media.mjs +57 -1
  240. package/dist/components/biz/business/comment/comment-rich-text.mjs +69 -1
  241. package/dist/components/biz/business/comment/reply-detail.mjs +978 -1
  242. package/dist/components/biz/business/comment/time-display.mjs +20 -1
  243. package/dist/components/biz/business/comment/use-keyboard-handler.mjs +142 -1
  244. package/dist/components/biz/business/contact/contact-item.mjs +45 -1
  245. package/dist/components/biz/business/contact/contact-list.mjs +212 -1
  246. package/dist/components/biz/business/contact/contact-search.mjs +128 -1
  247. package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +105 -1
  248. package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +24 -1
  249. package/dist/components/biz/business/detail/shared/detail-info-title.mjs +82 -1
  250. package/dist/components/biz/business/detail/shared/detail-introduction.mjs +64 -1
  251. package/dist/components/biz/business/detail/shared/detail-operate.mjs +330 -1
  252. package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +63 -1
  253. package/dist/components/biz/business/detail/shared/editor-preview.mjs +67 -1
  254. package/dist/components/biz/business/detail/shared/metadata-utils.mjs +21 -1
  255. package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +184 -1
  256. package/dist/components/biz/business/detail/shared/registry.mjs +55 -1
  257. package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +25 -1
  258. package/dist/components/biz/business/detail/shared/seo-config.mjs +28 -1
  259. package/dist/components/biz/business/detail/shared/video-hero.mjs +393 -1
  260. package/dist/components/biz/business/detail/video-detail-actions/client.mjs +28 -1
  261. package/dist/components/biz/business/detail/video-detail-actions/material.mjs +18 -1
  262. package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +11 -1
  263. package/dist/components/biz/business/detail/video-detail-actions/server.mjs +17 -1
  264. package/dist/components/biz/business/detail/video-detail-info/client.mjs +40 -1
  265. package/dist/components/biz/business/detail/video-detail-info/material.mjs +18 -1
  266. package/dist/components/biz/business/detail/video-detail-info/schema.mjs +20 -1
  267. package/dist/components/biz/business/detail/video-detail-info/server.mjs +17 -1
  268. package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +27 -1
  269. package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +18 -1
  270. package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +11 -1
  271. package/dist/components/biz/business/detail/video-detail-info-title/server.mjs +17 -1
  272. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +49 -1
  273. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +18 -1
  274. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +20 -1
  275. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +17 -1
  276. package/dist/components/biz/business/detail/video-detail-player/client.mjs +36 -1
  277. package/dist/components/biz/business/detail/video-detail-player/material.mjs +18 -1
  278. package/dist/components/biz/business/detail/video-detail-player/schema.mjs +11 -1
  279. package/dist/components/biz/business/detail/video-detail-player/server.mjs +17 -1
  280. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +269 -1
  281. package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +18 -1
  282. package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +58 -1
  283. package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +17 -1
  284. package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +51 -1
  285. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +12 -1
  286. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +9 -1
  287. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +66 -1
  288. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +14 -1
  289. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +43 -1
  290. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +5 -1
  291. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +17 -1
  292. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +32 -1
  293. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +7 -1
  294. package/dist/components/biz/business/floating-ball/client.mjs +31 -1
  295. package/dist/components/biz/business/floating-ball/material.mjs +18 -1
  296. package/dist/components/biz/business/floating-ball/schema.mjs +22 -1
  297. package/dist/components/biz/business/floating-ball/server.mjs +17 -1
  298. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +11 -1
  299. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +9 -1
  300. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +71 -1
  301. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +14 -1
  302. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +11 -1
  303. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +17 -1
  304. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +11 -1
  305. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +9 -1
  306. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +64 -1
  307. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +14 -1
  308. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +11 -1
  309. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +17 -1
  310. package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +522 -1
  311. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +29 -1
  312. package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +18 -1
  313. package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +11 -1
  314. package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +17 -1
  315. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +36 -1
  316. package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +18 -1
  317. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +24 -1
  318. package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +17 -1
  319. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +45 -1
  320. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +18 -1
  321. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +22 -1
  322. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +17 -1
  323. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +33 -1
  324. package/dist/components/biz/business/header-search/header-logo-search/material.mjs +18 -1
  325. package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +24 -1
  326. package/dist/components/biz/business/header-search/header-logo-search/server.mjs +17 -1
  327. package/dist/components/biz/business/header-search/header-search/client.mjs +20 -1
  328. package/dist/components/biz/business/header-search/header-search/material.mjs +18 -1
  329. package/dist/components/biz/business/header-search/header-search/schema.mjs +11 -1
  330. package/dist/components/biz/business/header-search/header-search/server.mjs +17 -1
  331. package/dist/components/biz/business/header-search/shared/avatar.mjs +44 -1
  332. package/dist/components/biz/business/header-search/shared/logo.mjs +28 -1
  333. package/dist/components/biz/business/header-search/shared/search.mjs +28 -1
  334. package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +48 -1
  335. package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +14 -1
  336. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +181 -1
  337. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +18 -1
  338. package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +24 -1
  339. package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +41 -1
  340. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +44 -1
  341. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +14 -1
  342. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +157 -1
  343. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +18 -1
  344. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +24 -1
  345. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +37 -1
  346. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +459 -1
  347. package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +24 -1
  348. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +125 -1
  349. package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +231 -1
  350. package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +38 -1
  351. package/dist/components/biz/business/image-text-recommend/client.mjs +379 -1
  352. package/dist/components/biz/business/image-text-recommend/material.mjs +21 -1
  353. package/dist/components/biz/business/image-text-recommend/schema.mjs +117 -1
  354. package/dist/components/biz/business/image-text-recommend/server.mjs +65 -1
  355. package/dist/components/biz/business/large-feature-grid/card-item.mjs +84 -1
  356. package/dist/components/biz/business/large-feature-grid/client.mjs +88 -1
  357. package/dist/components/biz/business/large-feature-grid/material.mjs +21 -1
  358. package/dist/components/biz/business/large-feature-grid/schema.mjs +81 -1
  359. package/dist/components/biz/business/large-feature-grid/server.mjs +16 -1
  360. package/dist/components/biz/business/marquee/client.mjs +212 -1
  361. package/dist/components/biz/business/marquee/marquee.module.mjs +13 -25
  362. package/dist/components/biz/business/marquee/material.mjs +21 -1
  363. package/dist/components/biz/business/marquee/schema.mjs +91 -1
  364. package/dist/components/biz/business/marquee/server.mjs +17 -1
  365. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +21 -1
  366. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +9 -1
  367. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +180 -1
  368. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +148 -1
  369. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +14 -1
  370. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +9 -1
  371. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +27 -1
  372. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +17 -1
  373. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +92 -1
  374. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +7 -1
  375. package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +8 -1
  376. package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +9 -1
  377. package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +120 -1
  378. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +14 -1
  379. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +8 -1
  380. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +5 -1
  381. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +17 -1
  382. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +5 -1
  383. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +7 -1
  384. package/dist/components/biz/business/profile/profile-header/client.mjs +289 -1
  385. package/dist/components/biz/business/profile/profile-header/material.mjs +60 -1
  386. package/dist/components/biz/business/profile/profile-header/schema.mjs +11 -1
  387. package/dist/components/biz/business/profile/profile-header/server.mjs +111 -1
  388. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +235 -1
  389. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +135 -1
  390. package/dist/components/biz/business/profile/profile-main/client.mjs +137 -1
  391. package/dist/components/biz/business/profile/profile-main/material.mjs +18 -1
  392. package/dist/components/biz/business/profile/profile-main/schema.mjs +11 -1
  393. package/dist/components/biz/business/profile/profile-main/server.mjs +161 -1
  394. package/dist/components/biz/business/profile/profile-main/shell.mjs +211 -1
  395. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +489 -1
  396. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +213 -1
  397. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +251 -1
  398. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +47 -1
  399. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +251 -1
  400. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +45 -1
  401. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +149 -1
  402. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +43 -1
  403. package/dist/components/biz/business/profile/profile-main/utils.mjs +248 -1
  404. package/dist/components/biz/business/profile/profile-main/variants.mjs +40 -1
  405. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +15 -1
  406. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +9 -1
  407. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +168 -1
  408. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +119 -1
  409. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +14 -1
  410. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +9 -1
  411. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +17 -1
  412. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +17 -1
  413. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +54 -1
  414. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +7 -1
  415. package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +15 -1
  416. package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +9 -1
  417. package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +52 -1
  418. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +14 -1
  419. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +9 -1
  420. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +5 -1
  421. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +17 -1
  422. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +117 -1
  423. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +7 -1
  424. package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +22 -1
  425. package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +9 -1
  426. package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +53 -1
  427. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +14 -1
  428. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +9 -1
  429. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +5 -1
  430. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +17 -1
  431. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +117 -1
  432. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +7 -1
  433. package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +15 -1
  434. package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +9 -1
  435. package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +52 -1
  436. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +14 -1
  437. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +9 -1
  438. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +25 -1
  439. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +17 -1
  440. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +128 -1
  441. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +7 -1
  442. package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +15 -1
  443. package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +12 -1
  444. package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +58 -1
  445. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +14 -1
  446. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +9 -1
  447. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +38 -1
  448. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +17 -1
  449. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +144 -1
  450. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +7 -1
  451. package/dist/components/biz/business/search-history/client.mjs +121 -1
  452. package/dist/components/biz/business/search-history/material.mjs +18 -1
  453. package/dist/components/biz/business/search-history/schema.mjs +20 -1
  454. package/dist/components/biz/business/search-history/server.mjs +22 -1
  455. package/dist/components/biz/business/search-input/client.mjs +139 -1
  456. package/dist/components/biz/business/search-input/material.mjs +18 -1
  457. package/dist/components/biz/business/search-input/schema.mjs +11 -1
  458. package/dist/components/biz/business/search-input/server.mjs +21 -1
  459. package/dist/components/biz/business/shortcut-grid/client.mjs +64 -1
  460. package/dist/components/biz/business/shortcut-grid/material.mjs +18 -1
  461. package/dist/components/biz/business/shortcut-grid/schema.mjs +70 -1
  462. package/dist/components/biz/business/shortcut-grid/server.mjs +17 -1
  463. package/dist/components/biz/business/tab-bar/client.mjs +78 -1
  464. package/dist/components/biz/business/tab-bar/material.mjs +21 -1
  465. package/dist/components/biz/business/tab-bar/schema.mjs +69 -1
  466. package/dist/components/biz/business/tab-bar/server.mjs +18 -1
  467. package/dist/components/biz/business/text-recommend/client.mjs +80 -1
  468. package/dist/components/biz/business/text-recommend/material.mjs +18 -1
  469. package/dist/components/biz/business/text-recommend/schema.mjs +28 -1
  470. package/dist/components/biz/business/text-recommend/server.mjs +18 -1
  471. package/dist/components/biz/example/button/client.mjs +43 -1
  472. package/dist/components/biz/example/button/material.mjs +18 -1
  473. package/dist/components/biz/example/button/schema.mjs +47 -1
  474. package/dist/components/biz/example/button/server.mjs +32 -1
  475. package/dist/components/biz/example/button/variants.mjs +22 -1
  476. package/dist/components/biz/renderer/renderer.mjs +73 -1
  477. package/dist/components/biz/utils/constants/card-spec.mjs +48 -1
  478. package/dist/components/biz/utils/helpers/get-channel-list.mjs +14 -1
  479. package/dist/components/biz/utils/helpers/url.mjs +16 -1
  480. package/dist/components/biz/utils/schema/data.mjs +22 -1
  481. package/dist/components/biz/utils/styles/helpers.mjs +84 -1
  482. package/dist/components/biz/utils/styles/schema.mjs +306 -1
  483. package/dist/components/biz/utils/transformers/card-grid.mjs +71 -1
  484. package/dist/components/biz/utils/transformers/data.mjs +171 -1
  485. package/dist/components/common/at-element/index.mjs +47 -1
  486. package/dist/components/common/background-preview-modal/background-preview-modal.mjs +73 -1
  487. package/dist/components/common/blocked-dialog/blocked-dialog.mjs +54 -1
  488. package/dist/components/common/cards/mini-three-card.mjs +55 -1
  489. package/dist/components/common/cards/style.module.mjs +12 -24
  490. package/dist/components/common/collection-popup/collection-create-modal.mjs +130 -1
  491. package/dist/components/common/collection-popup/index.mjs +292 -1
  492. package/dist/components/common/debug-locale-switcher/index.mjs +59 -1
  493. package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +66 -1
  494. package/dist/components/common/empty/index.mjs +51 -1
  495. package/dist/components/common/follow-button/index.mjs +133 -1
  496. package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +35 -1
  497. package/dist/components/common/funhub-provider/funhub-provider.mjs +85 -1
  498. package/dist/components/common/header-nav/client.mjs +51 -1
  499. package/dist/components/common/icons/add.mjs +21 -1
  500. package/dist/components/common/icons/comment.mjs +30 -1
  501. package/dist/components/common/icons/delete.mjs +32 -1
  502. package/dist/components/common/icons/left-arrow.mjs +15 -1
  503. package/dist/components/common/icons/more.mjs +30 -1
  504. package/dist/components/common/icons/right-arrow.mjs +19 -1
  505. package/dist/components/common/icons/setting.mjs +45 -1
  506. package/dist/components/common/icons/share.mjs +20 -1
  507. package/dist/components/common/icons/video.mjs +22 -1
  508. package/dist/components/common/image-crop/image-crop.mjs +182 -1
  509. package/dist/components/common/image-crop/show-image-crop.mjs +102 -1
  510. package/dist/components/common/image-crop-modal/image-crop-modal.mjs +128 -2
  511. package/dist/components/common/info-card/card-header.mjs +70 -1
  512. package/dist/components/common/info-card/card-text.mjs +49 -1
  513. package/dist/components/common/interaction-animations.module.mjs +14 -84
  514. package/dist/components/common/intl-provider/intl-provider.mjs +21 -1
  515. package/dist/components/common/keep-scroll-position/index.mjs +39 -1
  516. package/dist/components/common/list/collection-list/collection-list-item.mjs +93 -1
  517. package/dist/components/common/list/collection-list/collection-list.mjs +21 -1
  518. package/dist/components/common/list/post-list/post-list-item.mjs +54 -1
  519. package/dist/components/common/list/post-list/post-list.mjs +143 -1
  520. package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +269 -1
  521. package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +468 -1
  522. package/dist/components/common/list/user-activity-list/user-activity-list.mjs +139 -1
  523. package/dist/components/common/list/video-list/video-list-item.mjs +104 -1
  524. package/dist/components/common/list/video-list/video-list.mjs +152 -1
  525. package/dist/components/common/locale-sync/locale-sync.mjs +62 -1
  526. package/dist/components/common/login-dialog/login-dialog.mjs +29 -1
  527. package/dist/components/common/media-preview/index.mjs +162 -1
  528. package/dist/components/common/media-preview/video-play.mjs +237 -1
  529. package/dist/components/common/page-loading/index.mjs +20 -1
  530. package/dist/components/common/page-skeleton/page-skeleton.mjs +7 -1
  531. package/dist/components/common/photo-grid/common-photo-grid.mjs +321 -1
  532. package/dist/components/common/photo-grid/index.mjs +226 -1
  533. package/dist/components/common/photo-preview/common-photo-preview.mjs +97 -1
  534. package/dist/components/common/photo-preview/decrypt-loading.mjs +66 -2
  535. package/dist/components/common/photo-preview/index.mjs +64 -1
  536. package/dist/components/common/photo-preview/style.mjs +7 -19
  537. package/dist/components/common/picker/gender-picker/gender-picker.mjs +66 -1
  538. package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +78 -1
  539. package/dist/components/common/popup-video/index.mjs +76 -1
  540. package/dist/components/common/popup-video/popup-video.module.mjs +7 -16
  541. package/dist/components/common/series-episodes/index.mjs +429 -1
  542. package/dist/components/common/share-popup/share-content.mjs +152 -1
  543. package/dist/components/common/share-popup/share-drawer.mjs +100 -1
  544. package/dist/components/common/share-popup/share-popup.mjs +300 -1
  545. package/dist/components/common/skeleton/post-list-item-skeleton.mjs +99 -1
  546. package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +146 -1
  547. package/dist/components/common/skeleton/video-list-item-skeleton.mjs +110 -1
  548. package/dist/components/common/tab-bar/index.mjs +125 -1
  549. package/dist/components/common/theme-sync/index.mjs +22 -1
  550. package/dist/components/common/top-nav-bar/client.mjs +63 -1
  551. package/dist/components/common/top-nav-bar/fullscreen.mjs +27 -1
  552. package/dist/components/common/top-nav-bar/index.mjs +29 -1
  553. package/dist/components/common/top-nav-bar/normal.mjs +20 -1
  554. package/dist/components/common/video-player/create-video.mjs +27 -2
  555. package/dist/components/common/video-player/index.mjs +701 -5
  556. package/dist/components/common/video-player/playing-videos.mjs +73 -1
  557. package/dist/components/common/video-player/process-m3u8-cache.mjs +282 -1
  558. package/dist/components/common/video-player/style.module.mjs +7 -259
  559. package/dist/components/common/wait-loading.mjs +119 -1
  560. package/dist/components/pages/(follow)/_components/follow-button/index.mjs +80 -1
  561. package/dist/components/pages/(follow)/_components/header-nav/index.mjs +13 -1
  562. package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +43 -1
  563. package/dist/components/pages/(follow)/_components/user-list/index.mjs +139 -1
  564. package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +46 -1
  565. package/dist/components/pages/(follow)/fans/index.mjs +10 -1
  566. package/dist/components/pages/(follow)/fans/page.mjs +95 -1
  567. package/dist/components/pages/(follow)/followed/index.mjs +10 -1
  568. package/dist/components/pages/(follow)/followed/page.mjs +95 -1
  569. package/dist/components/pages/collection-add/index.mjs +10 -1
  570. package/dist/components/pages/collection-add/page.mjs +161 -1
  571. package/dist/components/pages/collection-create/form.mjs +163 -1
  572. package/dist/components/pages/collection-create/index.mjs +10 -1
  573. package/dist/components/pages/collection-create/page.mjs +28 -1
  574. package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +183 -1
  575. package/dist/components/pages/collection-detail/detail.mjs +518 -1
  576. package/dist/components/pages/collection-detail/index.mjs +10 -1
  577. package/dist/components/pages/collection-detail/page.mjs +18 -1
  578. package/dist/components/pages/edit/index.mjs +10 -1
  579. package/dist/components/pages/edit/page.mjs +576 -1
  580. package/dist/components/pages/feed-series/feed-series-client.mjs +382 -1
  581. package/dist/components/pages/feed-series/page.mjs +97 -1
  582. package/dist/components/pages/feedback/_components/feedback-form.mjs +263 -1
  583. package/dist/components/pages/feedback/index.mjs +10 -1
  584. package/dist/components/pages/feedback/page.mjs +10 -1
  585. package/dist/components/pages/fullscreen-feed/index.mjs +10 -1
  586. package/dist/components/pages/fullscreen-feed/page.mjs +104 -1
  587. package/dist/components/pages/home/channel-matcher.mjs +30 -1
  588. package/dist/components/pages/home/client.mjs +169 -1
  589. package/dist/components/pages/home/index.mjs +56 -1
  590. package/dist/components/pages/login/agreement-dialog.mjs +104 -1
  591. package/dist/components/pages/login/auth-guard.mjs +36 -1
  592. package/dist/components/pages/login/forgot.mjs +130 -1
  593. package/dist/components/pages/login/index.mjs +107 -1
  594. package/dist/components/pages/login/login-client.mjs +214 -1
  595. package/dist/components/pages/login/password.mjs +186 -1
  596. package/dist/components/pages/login/register.mjs +189 -1
  597. package/dist/components/pages/login/reset-password.mjs +193 -1
  598. package/dist/components/pages/login/verify.mjs +212 -3
  599. package/dist/components/pages/post-detail/page.mjs +28 -1
  600. package/dist/components/pages/post-detail/post-detail-client.mjs +516 -1
  601. package/dist/components/pages/profile/index.mjs +10 -1
  602. package/dist/components/pages/profile/page.mjs +28 -1
  603. package/dist/components/pages/publish/components/collection-card.mjs +49 -1
  604. package/dist/components/pages/publish/components/collection-popup.mjs +81 -1
  605. package/dist/components/pages/publish/components/collection.mjs +97 -1
  606. package/dist/components/pages/publish/components/cover-item.mjs +46 -1
  607. package/dist/components/pages/publish/components/editor.mjs +208 -1
  608. package/dist/components/pages/publish/components/header.mjs +31 -1
  609. package/dist/components/pages/publish/components/material-grid.mjs +52 -1
  610. package/dist/components/pages/publish/components/material-item.mjs +68 -1
  611. package/dist/components/pages/publish/components/toolbar.mjs +39 -1
  612. package/dist/components/pages/publish/components/upload-progress.mjs +53 -1
  613. package/dist/components/pages/publish/components/video-item.mjs +36 -1
  614. package/dist/components/pages/publish/constants.mjs +8 -1
  615. package/dist/components/pages/publish/hooks/use-file-upload.mjs +162 -1
  616. package/dist/components/pages/publish/page-client.mjs +345 -1
  617. package/dist/components/pages/publish/page.mjs +11 -1
  618. package/dist/components/pages/publish/utils/file-upload.mjs +155 -1
  619. package/dist/components/pages/publish/utils/publish-utils.mjs +11 -1
  620. package/dist/components/pages/search/hot-recommend.mjs +185 -1
  621. package/dist/components/pages/search/hot-search.mjs +70 -1
  622. package/dist/components/pages/search/index.mjs +17 -1
  623. package/dist/components/pages/search/page-client.mjs +159 -1
  624. package/dist/components/pages/search/search-result/index.mjs +22 -1
  625. package/dist/components/pages/search/search-result/search-all.mjs +223 -1
  626. package/dist/components/pages/search/search-result/search-user.mjs +203 -1
  627. package/dist/components/pages/search/search-result/search-video-info.mjs +301 -1
  628. package/dist/components/pages/search/search-utils.mjs +48 -1
  629. package/dist/components/pages/search/style.module.mjs +13 -113
  630. package/dist/components/pages/search/top-header.mjs +89 -1
  631. package/dist/components/pages/search-result/page-client.mjs +110 -1
  632. package/dist/components/pages/search-result/search-all.mjs +79 -1
  633. package/dist/components/pages/search-result/search-tab.mjs +89 -1
  634. package/dist/components/pages/search-result/search-user.mjs +258 -1
  635. package/dist/components/pages/search-result/search-video.mjs +226 -1
  636. package/dist/components/pages/settings/_components/reset-password-drawer.mjs +256 -1
  637. package/dist/components/pages/settings/_components/settings.mjs +183 -1
  638. package/dist/components/pages/settings/index.mjs +10 -1
  639. package/dist/components/pages/settings/page.mjs +13 -1
  640. package/dist/components/pages/user-follow/_components/follow-no-login.mjs +34 -1
  641. package/dist/components/pages/user-follow/_components/follow-top-header.mjs +25 -1
  642. package/dist/components/pages/user-follow/_components/post-tab.mjs +96 -1
  643. package/dist/components/pages/user-follow/index.mjs +10 -1
  644. package/dist/components/pages/user-follow/page.mjs +106 -1
  645. package/dist/components/pages/user-follow/skeleton.mjs +62 -1
  646. package/dist/components/pages/video-detail/page.mjs +47 -1
  647. package/dist/components/pages/video-detail/video-detail-client.mjs +338 -1
  648. package/dist/components/pages/video-list/index.mjs +58 -1
  649. package/dist/components/pages/video-list/types.mjs +16 -1
  650. package/dist/components/pages/video-list/video-list-client.mjs +111 -1
  651. package/dist/components/pages/video-list/video-list-item.mjs +35 -1
  652. package/dist/components/ui/accordion.mjs +62 -1
  653. package/dist/components/ui/alert-dialog.mjs +114 -1
  654. package/dist/components/ui/alert.mjs +50 -1
  655. package/dist/components/ui/aspect-ratio.mjs +17 -1
  656. package/dist/components/ui/avatar.mjs +97 -1
  657. package/dist/components/ui/badge.d.mts +1 -1
  658. package/dist/components/ui/badge.mjs +38 -1
  659. package/dist/components/ui/box.mjs +17 -1
  660. package/dist/components/ui/breadcrumb.mjs +84 -1
  661. package/dist/components/ui/button-group.mjs +49 -1
  662. package/dist/components/ui/button.d.mts +2 -2
  663. package/dist/components/ui/button.mjs +50 -1
  664. package/dist/components/ui/card.mjs +65 -1
  665. package/dist/components/ui/carousel.mjs +142 -1
  666. package/dist/components/ui/checkbox.mjs +25 -1
  667. package/dist/components/ui/collapsible.mjs +31 -1
  668. package/dist/components/ui/combobox.mjs +185 -1
  669. package/dist/components/ui/context-menu.mjs +150 -1
  670. package/dist/components/ui/dialog.mjs +109 -1
  671. package/dist/components/ui/drawer.mjs +91 -1
  672. package/dist/components/ui/dropdown-menu.mjs +154 -1
  673. package/dist/components/ui/empty-icons.mjs +96 -7
  674. package/dist/components/ui/empty.mjs +95 -1
  675. package/dist/components/ui/field.mjs +131 -1
  676. package/dist/components/ui/hover-card.mjs +43 -1
  677. package/dist/components/ui/image.d.mts +4 -4
  678. package/dist/components/ui/image.mjs +202 -1
  679. package/dist/components/ui/infinite-scroll.mjs +134 -1
  680. package/dist/components/ui/input-group.mjs +90 -1
  681. package/dist/components/ui/input.mjs +19 -1
  682. package/dist/components/ui/item.mjs +137 -1
  683. package/dist/components/ui/kbd.mjs +24 -1
  684. package/dist/components/ui/label.mjs +18 -1
  685. package/dist/components/ui/legacy/badge.mjs +80 -1
  686. package/dist/components/ui/legacy/button.mjs +55 -1
  687. package/dist/components/ui/legacy/input.mjs +22 -1
  688. package/dist/components/ui/legacy/popover.mjs +69 -1
  689. package/dist/components/ui/link.mjs +29 -1
  690. package/dist/components/ui/list.mjs +221 -5
  691. package/dist/components/ui/loading.mjs +44 -1
  692. package/dist/components/ui/mask.mjs +17 -1
  693. package/dist/components/ui/menubar.mjs +154 -1
  694. package/dist/components/ui/native-select.mjs +43 -1
  695. package/dist/components/ui/pagination.mjs +90 -1
  696. package/dist/components/ui/popover.mjs +73 -1
  697. package/dist/components/ui/popup.mjs +44 -1
  698. package/dist/components/ui/progress.mjs +53 -1
  699. package/dist/components/ui/radio-group.mjs +34 -1
  700. package/dist/components/ui/rate.mjs +69 -1
  701. package/dist/components/ui/scroll-area.mjs +43 -1
  702. package/dist/components/ui/select.mjs +113 -1
  703. package/dist/components/ui/separator.mjs +20 -1
  704. package/dist/components/ui/sheet.mjs +109 -1
  705. package/dist/components/ui/skeleton.mjs +16 -1
  706. package/dist/components/ui/slider.mjs +46 -1
  707. package/dist/components/ui/sonner.mjs +34 -1
  708. package/dist/components/ui/spinner.mjs +18 -1
  709. package/dist/components/ui/switch.mjs +65 -1
  710. package/dist/components/ui/table.mjs +78 -1
  711. package/dist/components/ui/tabs.mjs +54 -1
  712. package/dist/components/ui/text.mjs +20 -1
  713. package/dist/components/ui/textarea.mjs +16 -1
  714. package/dist/components/ui/time.mjs +91 -1
  715. package/dist/components/ui/toggle-group.mjs +59 -1
  716. package/dist/components/ui/toggle.mjs +41 -1
  717. package/dist/components/ui/tooltip.mjs +49 -1
  718. package/dist/components/ui/wheel-picker.mjs +28 -1
  719. package/dist/constants/event-key.mjs +18 -1
  720. package/dist/constants/query-key.mjs +32 -1
  721. package/dist/constants/revalidate.mjs +9 -1
  722. package/dist/constants/site.mjs +11 -1
  723. package/dist/constants/url-prefix.mjs +8 -1
  724. package/dist/hooks/image-text-recommend.mjs +71 -1
  725. package/dist/hooks/query/hydration-boundary.mjs +34 -1
  726. package/dist/hooks/query/use-query.mjs +114 -1
  727. package/dist/hooks/use-auth.mjs +198 -1
  728. package/dist/hooks/use-browse-report.mjs +466 -1
  729. package/dist/hooks/use-card-decoration.mjs +92 -1
  730. package/dist/hooks/use-content-operate.mjs +514 -1
  731. package/dist/hooks/use-follow.mjs +69 -1
  732. package/dist/hooks/use-fullscreen-gestures.mjs +144 -1
  733. package/dist/hooks/use-interaction-animation.mjs +26 -1
  734. package/dist/hooks/use-keyboard-open.mjs +56 -1
  735. package/dist/hooks/use-like-dislike.mjs +40 -1
  736. package/dist/hooks/use-search-history.mjs +40 -1
  737. package/dist/hooks/use-sticky.mjs +38 -1
  738. package/dist/hooks.mjs +14 -1
  739. package/dist/i18n/locales/en.mjs +813 -3
  740. package/dist/i18n/locales/zh-CN.mjs +813 -3
  741. package/dist/i18n/messages.mjs +20 -1
  742. package/dist/i18n/translator.mjs +38 -1
  743. package/dist/i18n.mjs +165 -1
  744. package/dist/materials.mjs +63 -1
  745. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +17 -1
  746. package/dist/pages.mjs +22 -1
  747. package/dist/seo/build-metadata.mjs +163 -1
  748. package/dist/seo/config/index.mjs +22 -1
  749. package/dist/seo/config/page.mjs +301 -6
  750. package/dist/seo/config/site.mjs +25 -1
  751. package/dist/seo/constants.mjs +31 -1
  752. package/dist/seo/helpers.mjs +120 -1
  753. package/dist/seo/resource-hints.mjs +60 -1
  754. package/dist/seo/robots.mjs +36 -1
  755. package/dist/seo/sitemap.mjs +44 -1
  756. package/dist/seo/structured-data/article.mjs +51 -1
  757. package/dist/seo/structured-data/common.mjs +60 -1
  758. package/dist/seo/structured-data/video.mjs +41 -1
  759. package/dist/seo/viewport.mjs +31 -1
  760. package/dist/seo.mjs +15 -1
  761. package/dist/service/generated/client.mjs +1138 -1
  762. package/dist/service/generated/tanstack.mjs +1049 -1
  763. package/dist/service.mjs +4 -1
  764. package/dist/store/create-store.mjs +25 -1
  765. package/dist/store/modules/app-config-store.mjs +28 -1
  766. package/dist/store/modules/blocked-modal-store.mjs +30 -1
  767. package/dist/store/modules/follow-ids-store.mjs +12 -1
  768. package/dist/store/modules/login-modal-store.mjs +135 -1
  769. package/dist/store/modules/media-preview-store.mjs +54 -1
  770. package/dist/store/modules/publish-store.mjs +31 -1
  771. package/dist/store/modules/use-demo-store.mjs +17 -1
  772. package/dist/store/modules/user-store.mjs +113 -1
  773. package/dist/store.mjs +10 -1
  774. package/dist/types/safe-at-user.mjs +15 -1
  775. package/dist/types/safe-comment.mjs +30 -1
  776. package/dist/types/safe-grid.mjs +36 -1
  777. package/dist/types/safe-replay.mjs +43 -1
  778. package/dist/types/share.mjs +16 -1
  779. package/dist/ui.mjs +57 -1
  780. package/dist/utils/api-collect.mjs +14 -1
  781. package/dist/utils/channel-storage.mjs +57 -1
  782. package/dist/utils/cn.mjs +15 -1
  783. package/dist/utils/common.mjs +296 -1
  784. package/dist/utils/db.mjs +80 -1
  785. package/dist/utils/decrypt-image-client.mjs +198 -1
  786. package/dist/utils/decrypt.worker.mjs +20 -2
  787. package/dist/utils/event-bus.mjs +33 -1
  788. package/dist/utils/follow-service.mjs +87 -1
  789. package/dist/utils/get-res-url.mjs +94 -1
  790. package/dist/utils/helper.mjs +41 -1
  791. package/dist/utils/http.mjs +194 -1
  792. package/dist/utils/image-compression.mjs +59 -1
  793. package/dist/utils/image-crop.mjs +110 -1
  794. package/dist/utils/loaders.mjs +51 -1
  795. package/dist/utils/media.mjs +128 -1
  796. package/dist/utils/password-validator.mjs +86 -1
  797. package/dist/utils/s3-uploader.mjs +40 -1
  798. package/dist/utils/schema/material.mjs +24 -1
  799. package/dist/utils/schema/schema.mjs +200 -1
  800. package/dist/utils/schema/utils.mjs +33 -1
  801. package/dist/utils/share-manager.mjs +156 -1
  802. package/dist/utils/tools.mjs +105 -1
  803. package/dist/utils/uint8.mjs +46 -1
  804. package/dist/utils/upload-file.mjs +429 -1
  805. package/dist/utils.mjs +21 -1
  806. package/package.json +1 -1
@@ -1,2 +1,232 @@
1
1
 
2
- import{pContentGetPopularVideoList as e}from"../../../../../service/generated/client.mjs";import{resolveHomeRecommendFeedMode as t}from"./home-recommend-default-config.mjs";import{HOME_RECOMMEND_CARD_CONFIG_FIELD as n}from"./home-recommend-preview.mjs";import{batchGetHomeRecommendVideoDetailMap as r}from"./home-recommend-video-detail.mjs";function i(e){return typeof e==`string`?e.trim():``}function a(e){return typeof e==`string`?e.trim():``}function o(e){let t=Number(e);if(!(!Number.isFinite(t)||t<0))return t}function s(e,t){let n=e,r=i(n.video_id||e.id||e.mid)||t,a=o(n.play_count),s=o(n.like_count),c=o(n.collect_count),l=Array.isArray(n.episodes)?n.episodes.length:0,u=a!==void 0||s!==void 0||c!==void 0?{browse_cnt:a,like_cnt:s,collect_cnt:c}:void 0;return{id:r,mid:i(e.mid),name:e.name||``,img_x:e.img_x||``,img_y:e.img_y||``,img_type:e.img_type,cat_id:e.cat_id,cat_name:e.cat_name,status:e.status,status_text:e.status_text,show_at:e.show_at,update_status:e.update_status,description:e.description,language:e.language,director:e.director,issue_date:e.issue_date,actor:e.actor,up_user:e.up_user,time:e.time,money:e.money,source_username:e.source_username,task_id:e.task_id,error_msg:e.error_msg,file_status:e.file_status,score:o(e.score)??void 0,duration:o(e.duration)??void 0,episode_cnt:l>0?l:void 0,type:e.is_more_link?2:1,static:u}}function c(e){let t={showPlayCount:e.showPlayCount,playCountDelta:e.playCountDelta,showEpisode:e.showEpisode};if(!(t.showPlayCount===void 0&&t.playCountDelta===void 0&&t.showEpisode===void 0))return t}function l(e,t){let r=a(t.coverUrl),i=t.coverMode===`upload`||r&&t.coverMode!==`content`?r:e.img_y||e.img_x||``,o=a(t.title),s=t.titleMode===`custom`||o&&t.titleMode!==`content`?o:e.name||``,l=a(t.description),u=a(t.badge_url),d=c(t);return{...e,name:s||e.name,img_y:i||e.img_y||e.img_x,img_x:i||e.img_x||e.img_y,description:l||e.description,badge_url:u||e.badge_url,[n]:d}}function u(e){let t=i(e.contentId),n=a(e.coverUrl),r=a(e.title),o=a(e.description);return{id:t,mid:t,name:r||``,img_x:n,img_y:n,description:o,type:1}}function d(e,t){if(!Array.isArray(e)||e.length===0||!Array.isArray(t)||t.length===0)return e;let n=t.map(e=>({...e,contentId:i(e.contentId)})),r=new Map;return n.forEach(e=>{e.contentId&&r.set(e.contentId,e)}),e.map((e,t)=>{let a=i(e.id||e.mid),o=a?r.get(a):void 0,s=n[t],c=o||(s?.contentId?void 0:s);return c?l(e,c):e})}async function f(e){let t=(Array.isArray(e)?e:[]).map(e=>({...e,contentId:i(e.contentId)})).filter(e=>!!e.contentId);if(!t.length)return[];let n=await r(t.map(e=>({id:e.contentId})));return t.map(e=>{let t=n.get(e.contentId||``);return l(t?s(t,e.contentId||``):u(e),e)})}async function p(t){try{let n=await e({page_size:t});return{videos:Array.isArray(n.data?.videos)?n.data.videos:[],nextCursor:n.data?.cursor||``,loaded:!0}}catch(e){return console.error(`推荐位获取热门视频失败(server)`,e),{videos:[],nextCursor:``,loaded:!1}}}async function m({smartTagEnabled:e,pageSize:n=16,items:r=[]}){let i=t(e),a={list:[],icons:[],title:``,cursor:``,show_style:void 0};if(i===`manual-with-video-detail`)try{let e=await f(r);return{feedMode:i,data:{...a,list:e,cursor:``}}}catch(e){return console.error(`推荐位智能铺设补齐视频详情失败(server)`,e),{feedMode:i,data:{...a,list:[],cursor:``}}}let o=await p(n),s=o.loaded?d(o.videos,r):a.list,c=o.loaded?o.nextCursor:a.cursor||``;return{feedMode:i,data:{...a,list:s,icons:[],cursor:c}}}export{m as resolveHomeRecommendServerData};
2
+ import { pContentGetPopularVideoList } from "../../../../../service/generated/client.mjs";
3
+ import { resolveHomeRecommendFeedMode } from "./home-recommend-default-config.mjs";
4
+ import { HOME_RECOMMEND_CARD_CONFIG_FIELD } from "./home-recommend-preview.mjs";
5
+ import { batchGetHomeRecommendVideoDetailMap } from "./home-recommend-video-detail.mjs";
6
+
7
+ //#region components/biz/business/home-recommend/shared/home-recommend-server-data.ts
8
+ const DEFAULT_PAGE_SIZE = 16;
9
+ /**
10
+ * 归一化视频 ID。
11
+ */
12
+ function normalizeVideoId(value) {
13
+ return typeof value === "string" ? value.trim() : "";
14
+ }
15
+ /**
16
+ * 归一化文本文案。
17
+ */
18
+ function normalizeText(value) {
19
+ return typeof value === "string" ? value.trim() : "";
20
+ }
21
+ /**
22
+ * 归一化为非负数字。
23
+ */
24
+ function toNonNegativeNumber(value) {
25
+ const normalized = Number(value);
26
+ if (!Number.isFinite(normalized) || normalized < 0) return;
27
+ return normalized;
28
+ }
29
+ function buildShowVideoFromDetail(detail, fallbackId) {
30
+ const ext = detail;
31
+ const resolvedId = normalizeVideoId(ext.video_id || detail.id || detail.mid) || fallbackId;
32
+ const browseCount = toNonNegativeNumber(ext.play_count);
33
+ const likeCount = toNonNegativeNumber(ext.like_count);
34
+ const collectCount = toNonNegativeNumber(ext.collect_count);
35
+ const episodeCount = Array.isArray(ext.episodes) ? ext.episodes.length : 0;
36
+ const staticInfo = browseCount !== void 0 || likeCount !== void 0 || collectCount !== void 0 ? {
37
+ browse_cnt: browseCount,
38
+ like_cnt: likeCount,
39
+ collect_cnt: collectCount
40
+ } : void 0;
41
+ return {
42
+ id: resolvedId,
43
+ mid: normalizeVideoId(detail.mid),
44
+ name: detail.name || "",
45
+ img_x: detail.img_x || "",
46
+ img_y: detail.img_y || "",
47
+ img_type: detail.img_type,
48
+ cat_id: detail.cat_id,
49
+ cat_name: detail.cat_name,
50
+ status: detail.status,
51
+ status_text: detail.status_text,
52
+ show_at: detail.show_at,
53
+ update_status: detail.update_status,
54
+ description: detail.description,
55
+ language: detail.language,
56
+ director: detail.director,
57
+ issue_date: detail.issue_date,
58
+ actor: detail.actor,
59
+ up_user: detail.up_user,
60
+ time: detail.time,
61
+ money: detail.money,
62
+ source_username: detail.source_username,
63
+ task_id: detail.task_id,
64
+ error_msg: detail.error_msg,
65
+ file_status: detail.file_status,
66
+ score: toNonNegativeNumber(detail.score) ?? void 0,
67
+ duration: toNonNegativeNumber(detail.duration) ?? void 0,
68
+ episode_cnt: episodeCount > 0 ? episodeCount : void 0,
69
+ type: detail.is_more_link ? 2 : 1,
70
+ static: staticInfo
71
+ };
72
+ }
73
+ /**
74
+ * 生成单卡展示配置。
75
+ */
76
+ function resolveCardDisplayConfig(config) {
77
+ const nextConfig = {
78
+ showPlayCount: config.showPlayCount,
79
+ playCountDelta: config.playCountDelta,
80
+ showEpisode: config.showEpisode
81
+ };
82
+ if (nextConfig.showPlayCount === void 0 && nextConfig.playCountDelta === void 0 && nextConfig.showEpisode === void 0) return;
83
+ return nextConfig;
84
+ }
85
+ /**
86
+ * 将配置覆盖到视频详情卡片数据。
87
+ */
88
+ function mergeItemConfigWithDetail(detailItem, config) {
89
+ const configCoverUrl = normalizeText(config.coverUrl);
90
+ const resolvedCover = config.coverMode === "upload" || Boolean(configCoverUrl) && config.coverMode !== "content" ? configCoverUrl : detailItem.img_y || detailItem.img_x || "";
91
+ const configTitle = normalizeText(config.title);
92
+ const resolvedTitle = config.titleMode === "custom" || Boolean(configTitle) && config.titleMode !== "content" ? configTitle : detailItem.name || "";
93
+ const configDescription = normalizeText(config.description);
94
+ const nextBadge = normalizeText(config.badge_url);
95
+ const cardDisplayConfig = resolveCardDisplayConfig(config);
96
+ return {
97
+ ...detailItem,
98
+ name: resolvedTitle || detailItem.name,
99
+ img_y: resolvedCover || detailItem.img_y || detailItem.img_x,
100
+ img_x: resolvedCover || detailItem.img_x || detailItem.img_y,
101
+ description: configDescription || detailItem.description,
102
+ badge_url: nextBadge || detailItem.badge_url,
103
+ [HOME_RECOMMEND_CARD_CONFIG_FIELD]: cardDisplayConfig
104
+ };
105
+ }
106
+ /**
107
+ * 当详情接口未返回命中数据时,使用 props 配置生成兜底卡片。
108
+ */
109
+ function buildFallbackItemFromConfig(config) {
110
+ const id = normalizeVideoId(config.contentId);
111
+ const cover = normalizeText(config.coverUrl);
112
+ const title = normalizeText(config.title);
113
+ const description = normalizeText(config.description);
114
+ return {
115
+ id,
116
+ mid: id,
117
+ name: title || "",
118
+ img_x: cover,
119
+ img_y: cover,
120
+ description,
121
+ type: 1
122
+ };
123
+ }
124
+ /**
125
+ * popular 数据源:将 props 配置覆盖到接口返回数据(props 优先)。
126
+ * 覆盖顺序:
127
+ * 1. contentId 精确匹配;
128
+ * 2. 未声明 contentId 的配置按索引覆盖。
129
+ */
130
+ function applyPopularItemConfigOverrides(videos, items) {
131
+ if (!Array.isArray(videos) || videos.length === 0 || !Array.isArray(items) || items.length === 0) return videos;
132
+ const normalizedItems = items.map((item) => ({
133
+ ...item,
134
+ contentId: normalizeVideoId(item.contentId)
135
+ }));
136
+ const configMapById = /* @__PURE__ */ new Map();
137
+ normalizedItems.forEach((item) => {
138
+ if (item.contentId) configMapById.set(item.contentId, item);
139
+ });
140
+ return videos.map((video, index) => {
141
+ const videoId = normalizeVideoId(video.id || video.mid);
142
+ const configById = videoId ? configMapById.get(videoId) : void 0;
143
+ const configByIndex = normalizedItems[index];
144
+ const config = configById || (configByIndex?.contentId ? void 0 : configByIndex);
145
+ if (!config) return video;
146
+ return mergeItemConfigWithDetail(video, config);
147
+ });
148
+ }
149
+ /**
150
+ * 智能铺设模式:根据 props 里的 contentId 批量补齐视频详情。
151
+ */
152
+ async function buildSmartTagVideoSource(items) {
153
+ const normalizedItems = (Array.isArray(items) ? items : []).map((item) => ({
154
+ ...item,
155
+ contentId: normalizeVideoId(item.contentId)
156
+ })).filter((item) => Boolean(item.contentId));
157
+ if (!normalizedItems.length) return [];
158
+ const detailMap = await batchGetHomeRecommendVideoDetailMap(normalizedItems.map((item) => ({ id: item.contentId })));
159
+ return normalizedItems.map((item) => {
160
+ const detail = detailMap.get(item.contentId || "");
161
+ return mergeItemConfigWithDetail(detail ? buildShowVideoFromDetail(detail, item.contentId || "") : buildFallbackItemFromConfig(item), item);
162
+ });
163
+ }
164
+ /**
165
+ * 拉取热门视频列表(首屏)。
166
+ */
167
+ async function fetchPopularVideoSource(pageSize) {
168
+ try {
169
+ const response = await pContentGetPopularVideoList({ page_size: pageSize });
170
+ return {
171
+ videos: Array.isArray(response.data?.videos) ? response.data.videos : [],
172
+ nextCursor: response.data?.cursor || "",
173
+ loaded: true
174
+ };
175
+ } catch (error) {
176
+ console.error("推荐位获取热门视频失败(server)", error);
177
+ return {
178
+ videos: [],
179
+ nextCursor: "",
180
+ loaded: false
181
+ };
182
+ }
183
+ }
184
+ /**
185
+ * 在服务端根据智能铺设开关决定推荐位数据来源并准备首屏数据。
186
+ */
187
+ async function resolveHomeRecommendServerData({ smartTagEnabled, pageSize = DEFAULT_PAGE_SIZE, items = [] }) {
188
+ const feedMode = resolveHomeRecommendFeedMode(smartTagEnabled);
189
+ const baseData = {
190
+ list: [],
191
+ icons: [],
192
+ title: "",
193
+ cursor: "",
194
+ show_style: void 0
195
+ };
196
+ if (feedMode === "manual-with-video-detail") try {
197
+ const mergedList = await buildSmartTagVideoSource(items);
198
+ return {
199
+ feedMode,
200
+ data: {
201
+ ...baseData,
202
+ list: mergedList,
203
+ cursor: ""
204
+ }
205
+ };
206
+ } catch (error) {
207
+ console.error("推荐位智能铺设补齐视频详情失败(server)", error);
208
+ return {
209
+ feedMode,
210
+ data: {
211
+ ...baseData,
212
+ list: [],
213
+ cursor: ""
214
+ }
215
+ };
216
+ }
217
+ const popularSource = await fetchPopularVideoSource(pageSize);
218
+ const videos = popularSource.loaded ? applyPopularItemConfigOverrides(popularSource.videos, items) : baseData.list;
219
+ const nextCursor = popularSource.loaded ? popularSource.nextCursor : baseData.cursor || "";
220
+ return {
221
+ feedMode,
222
+ data: {
223
+ ...baseData,
224
+ list: videos,
225
+ icons: [],
226
+ cursor: nextCursor
227
+ }
228
+ };
229
+ }
230
+
231
+ //#endregion
232
+ export { resolveHomeRecommendServerData };
@@ -1,2 +1,39 @@
1
1
 
2
- import{pContentBatchGetVideoDetail as e}from"../../../../../service/generated/client.mjs";function t(e){return typeof e==`string`?e.trim():``}function n(e){return t(e.id||e.mid)}async function r(r){let i=Array.from(new Set(r.map(n).filter(Boolean)));if(!i.length)return new Map;let a=[];try{let t=await e({ids:i});a=Array.isArray(t.data?.videos)?t.data.videos:[]}catch(e){console.warn(`推荐位批量获取视频详情失败,降级为空详情映射`,e)}let o=new Map;return a.forEach(e=>{let n=t(e.video_id||e.id||e.mid);n&&o.set(n,e)}),o}export{r as batchGetHomeRecommendVideoDetailMap};
2
+ import { pContentBatchGetVideoDetail } from "../../../../../service/generated/client.mjs";
3
+
4
+ //#region components/biz/business/home-recommend/shared/home-recommend-video-detail.ts
5
+ /**
6
+ * 将值归一化为视频 ID。
7
+ */
8
+ function normalizeVideoId(value) {
9
+ return typeof value === "string" ? value.trim() : "";
10
+ }
11
+ /**
12
+ * 解析推荐位卡片对应的视频 ID。
13
+ */
14
+ function resolveItemVideoId(item) {
15
+ return normalizeVideoId(item.id || item.mid);
16
+ }
17
+ /**
18
+ * 批量拉取视频详情并按视频 ID 建索引。
19
+ */
20
+ async function batchGetHomeRecommendVideoDetailMap(items) {
21
+ const ids = Array.from(new Set(items.map(resolveItemVideoId).filter(Boolean)));
22
+ if (!ids.length) return /* @__PURE__ */ new Map();
23
+ let videos = [];
24
+ try {
25
+ const response = await pContentBatchGetVideoDetail({ ids });
26
+ videos = Array.isArray(response.data?.videos) ? response.data.videos : [];
27
+ } catch (error) {
28
+ console.warn("推荐位批量获取视频详情失败,降级为空详情映射", error);
29
+ }
30
+ const map = /* @__PURE__ */ new Map();
31
+ videos.forEach((video) => {
32
+ const id = normalizeVideoId(video.video_id || video.id || video.mid);
33
+ if (id) map.set(id, video);
34
+ });
35
+ return map;
36
+ }
37
+
38
+ //#endregion
39
+ export { batchGetHomeRecommendVideoDetailMap };
@@ -1,2 +1,380 @@
1
1
 
2
- "use client";import e from"../../../../utils/get-res-url.mjs";import{pContentBatchGetVideoDetail as t,pContentGetPopularVideoList as n}from"../../../../service/generated/client.mjs";import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as r,buildImageTextRecommendChosenTags as i,buildImageTextRecommendRemoteMap as a,buildImageTextRecommendSmartPicked as o,getImageTextRecommendFixedIds as s,getImageTextRecommendLayoutTags as c,resolveImageTextRecommendVideoId as l}from"../../../../hooks/image-text-recommend.mjs";import u from"../../../../assets/images/frame.mjs";import ee from"../../../../assets/images/subscript.mjs";import{useCallback as d,useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";import y from"next/image";import{useTranslations as te}from"next-intl";import ne from"next/link";const b=[];function x(t,n){if(!t||!t.trim())return n;if(t.startsWith(`http`)||t.startsWith(`//`)||t.startsWith(`data:`))return t;let r=e();return r?`${r}${t.startsWith(`/`)?t:`/${t}`}`:t}function S(e){if(e==null)return``;let t=e;return t.img_y||t.media?.img_y||``}function C(e){return e==null?``:e.name||``}function w(e){let t=e,n=t.type;return typeof n==`number`?n:t.is_more_link===!0||Number(t.episode_cnt||t.episode_count||t.episodes?.length||t.links?.length||0)>1?2:1}function T(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 E(e,t){let n=e,r=Number(n.episode_cnt??0);if(!Number.isFinite(r)||r<=0)return``;let i=n.update_status;return t(r,i===0||i===`0`)}function D(e,t,n){return e?w(e)===2&&n?E(e,n):T(Number(e.duration??e.detail?.duration??0)):``}function O(e,t){if(!(e??``).trim())return``;let n=encodeURIComponent((t??``).trim()||``);return`/video/${e.trim()}/${n}/episode/1`}function re(e){if(!e)return``;let t=e,n=Number(t.static?.browse_cnt??0);if(!Number.isFinite(n)||n<=0)return``;if(n>=1e6){let e=(n/1e6).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}M`:`${e}M`}if(n>=1e3){let e=(n/1e3).toFixed(1);return e.endsWith(`.0`)?`${e.slice(0,-2)}k`:`${e}k`}return Math.floor(n).toString()}function k(){let e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function A(e){let{title:w,items:T=b,commonPlayCount:E,commonEpisodes:A,layout:j,allEpisodesText:M,mode:N=`renderer`,initialRemoteMap:P,initialSmartList:F,initialLoadedBatchIndex:I,initialDataFromServer:L}=e,R=te(`components.biz.business.imageTextRecommend`),z=N===`editor`,[B,V]=h(L&&P!=null?P:{}),[H,U]=h(L&&F!=null?F:[]),[W,G]=h(L&&I!=null?I:0),K=m(null),q=!!j?.enabled,J=p(()=>c(j),[j]),Y=T?.length??0,X=p(()=>s(T,q),[q,T]),Z=p(()=>X.length>0?Math.ceil(X.length/r):0,[X.length]),Q=d((e,t)=>R(t?`updatedTo`:`allEpisodes`,{count:e}),[R]),$=d(async(e,n)=>{if(e.length===0)return;let r=a((await t({ids:e})).data?.videos??[]);V(e=>n?{...e,...r}:r)},[]);f(()=>{if(z||L||!T||T.length===0)return;let e=!1;async function t(){if(X.length===0){e||(V({}),G(0));return}if(X.length<=r){await $(X,!1),e||G(1);return}await $(X.slice(0,r),!1),e||G(1)}async function a(){let t=i(J,Y),r=(await n({page_size:Math.max(20,Y*10),tags:t.length?Array.from(new Set(t)):void 0})).data?.videos??[];e||U(o(r,t,Y))}return(async()=>{try{q?await a():await t()}catch{e||(V({}),U([]),G(0))}})(),()=>{e=!0}},[z,L,q,T,J,Y,X,$]),f(()=>{if(z||q||X.length<=r||W<1||W>=Z)return;let e=K.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;if(!t?.isIntersecting)return;let n=W,i=n*r,a=X.slice(i,i+r);a.length!==0&&($(a,!0),G(n+1))},{root:null,rootMargin:`0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[z,q,X,W,Z,$]),f(()=>{if(z||!q||Y<=0)return;let e,t=!1;function r(){e=window.setTimeout(()=>{let e=i(J,Y);n({page_size:Math.max(20,Y*10),tags:e.length?Array.from(new Set(e)):void 0}).then(n=>{t||U(o(n.data?.videos??[],e,Y))}).catch(()=>{t||U([])}).finally(()=>{t||r()})},k())}return r(),()=>{t=!0,e!==void 0&&window.clearTimeout(e)}},[z,q,J,Y]);let ie=p(()=>!T||T.length===0?b:T.map((e,t)=>{let n=String(e?.contentId??``).trim(),r=q?H[t]:n?B[n]:void 0,i=(e?.title??``).trim()||(r?C(r):``),a=(e?.cover??``).trim()||(e?.useVideoPoster?S(r):``),o=(e?.contentDescription??``).trim(),s=D(r,M,Q),c=re(r);return{...e,contentId:n||(r?l(r):``),title:i,cover:a,contentDescription:o,episodeOrDurationText:s,playCountText:c}}),[M,Q,q,T,B,H]);if(!T||T.length===0)return null;let ae=!q&&X.length>r&&W>=1&&W<Z?W*r-2:-1;return v(`div`,{className:z?`bg-bg1 px-3 py-3 pointer-events-none`:`bg-bg1 px-3 py-3`,children:[w&&_(`div`,{className:`mb-3 flex items-center justify-between`,children:_(`h2`,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:w})}),_(`div`,{className:`flex overflow-x-auto pb-2 scrollbar-hide space-x-2`,children:ie.map((e,t)=>{let n=q?E:e.showPlayCount??!1,r=(e.playCountText??``).trim(),i=r!==``,a=q?A:e.showEpisodes??!1,o=(e.episodeOrDurationText??``).trim(),s=a&&o!==``,c=N===`renderer`?O(e.contentId??``,e.title??``):``,l=v(g,{children:[v(`div`,{className:`relative aspect-[116.67/155.56] rounded-lg overflow-hidden bg-bg2`,children:[z||e.cover?_(y,{src:x(e.cover,u),alt:e.title??``,fill:!0,sizes:`116.67px`,className:`object-cover text-[10px] text-text3`,unoptimized:!0}):_(`div`,{className:`w-full h-full flex items-center justify-center text-text3 text-xs`,children:R(`noCover`)}),!q&&(e.badge??``).trim()?_(`div`,{className:`absolute top-0 right-0 w-8 h-8`,children:_(y,{src:(e.badge??``).trim()||ee,alt:``,fill:!0,sizes:`32px`,className:`object-contain object-right-top`,unoptimized:!0})}):null,v(`div`,{className:`absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pb-1 pt-3 px-1 flex justify-between items-center gap-1`,children:[_(`div`,{className:`flex items-center min-w-0 shrink`,children:n&&i?v(`div`,{className:`flex items-center gap-1 rounded bg-overlay px-1 py-0`,children:[_(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`10`,viewBox:`0 0 12 10`,fill:`none`,className:`shrink-0`,"aria-hidden":!0,children:_(`path`,{d:`M7.56 5.18437L5.013 6.56737C4.893 6.63337 4.761 6.66937 4.638 6.66937C4.269 6.66937 4.002 6.38737 4.002 5.99737V3.28237C4.002 2.89237 4.269 2.61037 4.638 2.61037C4.764 2.61037 4.893 2.64637 5.013 2.70937L7.572 4.09237C7.803 4.21837 7.938 4.41637 7.938 4.63237C7.938 4.85137 7.8 5.05537 7.56 5.18437ZM9.807 9.27637L2.133 8.52937C0.954 8.52937 0 7.57537 0 6.39637V2.79937C0 1.62037 0.954 0.666368 2.133 0.666368L9.81 0.000367165C10.989 0.000367165 11.943 0.954367 11.943 2.13337V7.14337C11.9422 7.70935 11.7168 8.25188 11.3163 8.65181C10.9158 9.05174 10.373 9.27637 9.807 9.27637ZM10.875 2.13337C10.875 1.99351 10.8475 1.85502 10.7939 1.72581C10.7404 1.5966 10.662 1.47919 10.5631 1.3803C10.4642 1.2814 10.3468 1.20296 10.2176 1.14944C10.0883 1.09591 9.94986 1.06837 9.81 1.06837L2.133 1.73437C1.99314 1.73437 1.85465 1.76191 1.72544 1.81544C1.59623 1.86896 1.47883 1.9474 1.37993 2.0463C1.28104 2.14519 1.20259 2.2626 1.14907 2.39181C1.09555 2.52102 1.068 2.65951 1.068 2.79937V6.39637C1.068 6.67882 1.1802 6.94971 1.37993 7.14944C1.57966 7.34916 1.85054 7.46137 2.133 7.46137L9.807 8.20837C9.94686 8.20837 10.0853 8.18082 10.2146 8.1273C10.3438 8.07378 10.4612 7.99533 10.5601 7.89644C10.659 7.79754 10.7374 7.68014 10.7909 7.55093C10.8445 7.42171 10.872 7.28323 10.872 7.14337V2.13337H10.875Z`,fill:`white`})}),_(`span`,{className:`text-white text-[12px] leading-[20px]`,children:r})]}):null}),_(`div`,{className:`flex items-center shrink-0`,children:s?_(`span`,{className:`text-white text-[12px] leading-[20px]`,children:o}):null})]})]}),_(`div`,{className:`mt-2 py-2`,children:_(`h3`,{className:`text-[16px] text-text1 truncate font-bold leading-[24px]`,children:e.title})})]});return _(`div`,{ref:t===ae?K:void 0,className:`flex-shrink-0 w-[116.67px]`,children:c?_(ne,{href:c,className:`block rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,children:l}):l},t)})})]})}export{A as ImageTextRecommendClient};
2
+ 'use client';
3
+
4
+ import getResUrl from "../../../../utils/get-res-url.mjs";
5
+ import { pContentBatchGetVideoDetail, pContentGetPopularVideoList } from "../../../../service/generated/client.mjs";
6
+ import { IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId } from "../../../../hooks/image-text-recommend.mjs";
7
+ import frame_default from "../../../../assets/images/frame.mjs";
8
+ import subscript_default from "../../../../assets/images/subscript.mjs";
9
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
10
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
+ import NextImage from "next/image";
12
+ import { useTranslations } from "next-intl";
13
+ import Link from "next/link";
14
+
15
+ //#region components/biz/business/image-text-recommend/client.tsx
16
+ const DEFAULT_ITEMS = [];
17
+ /**
18
+ * 封面展示地址:相对路径(如接口返回的 img_y)拼接 CDN 前缀,绝对 URL 或静态资源原样返回。
19
+ */
20
+ function resolveCoverDisplaySrc(cover, defaultCover) {
21
+ if (!cover || !cover.trim()) return defaultCover;
22
+ if (cover.startsWith("http") || cover.startsWith("//") || cover.startsWith("data:")) return cover;
23
+ const base = getResUrl();
24
+ if (!base) return cover;
25
+ return `${base}${cover.startsWith("/") ? cover : `/${cover}`}`;
26
+ }
27
+ /**
28
+ * 解析封面 URL。本物料仅使用竖图封面(img_y),与智能铺设接口返回字段一致。
29
+ */
30
+ function resolveCoverUrl(item) {
31
+ if (item == null) return "";
32
+ const maybe = item;
33
+ return maybe.img_y || maybe.media?.img_y || "";
34
+ }
35
+ function resolveVideoTitle(item) {
36
+ if (item == null) return "";
37
+ return item.name || "";
38
+ }
39
+ function resolveVideoType(item) {
40
+ const maybe = item;
41
+ const raw = maybe.type;
42
+ if (typeof raw === "number") return raw;
43
+ if (maybe.is_more_link === true) return 2;
44
+ if (Number(maybe.episode_cnt || maybe.episode_count || maybe.episodes?.length || maybe.links?.length || 0) > 1) return 2;
45
+ return 1;
46
+ }
47
+ function formatDuration(duration) {
48
+ if (!Number.isFinite(duration) || duration <= 0) return "";
49
+ const totalSeconds = Math.floor(duration);
50
+ const hours = Math.floor(totalSeconds / 3600);
51
+ const minutes = Math.floor(totalSeconds % 3600 / 60);
52
+ const seconds = totalSeconds % 60;
53
+ const pad = (v) => String(v).padStart(2, "0");
54
+ if (hours > 0) return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`;
55
+ return `${pad(minutes)}:${pad(seconds)}`;
56
+ }
57
+ /**
58
+ * 根据 update_status 与 episode_cnt 生成集数展示文案(文案由 formatter 提供,走 i18n)。
59
+ * update_status 为 0 表示更新中 → updatedTo;为 1 表示已完结 → allEpisodes;数量取 episode_cnt。
60
+ */
61
+ function formatEpisodeDescription(rawVideo, formatter) {
62
+ const maybe = rawVideo;
63
+ const count = Number(maybe.episode_cnt ?? 0);
64
+ if (!Number.isFinite(count) || count <= 0) return "";
65
+ const status = maybe.update_status;
66
+ return formatter(count, status === 0 || status === "0");
67
+ }
68
+ function resolveContentDescription(rawVideo, _allEpisodesText, episodeFormatter) {
69
+ if (!rawVideo) return "";
70
+ if (resolveVideoType(rawVideo) === 2 && episodeFormatter) return formatEpisodeDescription(rawVideo, episodeFormatter);
71
+ return formatDuration(Number(rawVideo.duration ?? rawVideo.detail?.duration ?? 0));
72
+ }
73
+ /**
74
+ * 与首页推荐一致:生成视频详情页路径,电影与剧集均用 /video/{id}/{name}/episode/1。
75
+ */
76
+ function buildVideoDetailPath(contentId, title) {
77
+ if (!(contentId ?? "").trim()) return "";
78
+ const encodedName = encodeURIComponent((title ?? "").trim() || "");
79
+ return `/video/${contentId.trim()}/${encodedName}/episode/1`;
80
+ }
81
+ /**
82
+ * 解析播放量文案。两接口统一响应中播放量取 static.browse_cnt(浏览次数),为空则不显示。
83
+ */
84
+ function resolvePlayCountText(video) {
85
+ if (!video) return "";
86
+ const maybe = video;
87
+ const count = Number(maybe.static?.browse_cnt ?? 0);
88
+ if (!Number.isFinite(count) || count <= 0) return "";
89
+ if (count >= 1e6) {
90
+ const m = (count / 1e6).toFixed(1);
91
+ return m.endsWith(".0") ? `${m.slice(0, -2)}M` : `${m}M`;
92
+ }
93
+ if (count >= 1e3) {
94
+ const k = (count / 1e3).toFixed(1);
95
+ return k.endsWith(".0") ? `${k.slice(0, -2)}k` : `${k}k`;
96
+ }
97
+ return Math.floor(count).toString();
98
+ }
99
+ function getMsUntilNextDay() {
100
+ const now = /* @__PURE__ */ new Date();
101
+ const next = new Date(now);
102
+ next.setHours(24, 0, 0, 0);
103
+ return next.getTime() - now.getTime();
104
+ }
105
+ /**
106
+ * 图文推荐物料组件 - 客户端部分
107
+ * - 智能铺设开启:按标签调用热门列表接口,随机铺设推荐位,T+1 自动更新
108
+ * - 智能铺设关闭:按配置的内容 ID 取数;超过 8 个时分批拉取(每批 8 个),滚动到倒数第二个时触发下一批
109
+ */
110
+ function ImageTextRecommendClient(props) {
111
+ const { title, items = DEFAULT_ITEMS, commonPlayCount, commonEpisodes, layout, allEpisodesText, mode = "renderer", initialRemoteMap, initialSmartList, initialLoadedBatchIndex, initialDataFromServer } = props;
112
+ const t = useTranslations("components.biz.business.imageTextRecommend");
113
+ const isEditor = mode === "editor";
114
+ const [remoteMap, setRemoteMap] = useState(initialDataFromServer && initialRemoteMap != null ? initialRemoteMap : {});
115
+ const [smartList, setSmartList] = useState(initialDataFromServer && initialSmartList != null ? initialSmartList : []);
116
+ /** 关闭智能铺设且 id 数 > 8 时,已拉取的批次数(0=未拉取,1=已拉取第 1 批,以此类推) */
117
+ const [loadedBatchIndex, setLoadedBatchIndex] = useState(initialDataFromServer && initialLoadedBatchIndex != null ? initialLoadedBatchIndex : 0);
118
+ const sentinelRef = useRef(null);
119
+ const isSmartEnabled = !!layout?.enabled;
120
+ const smartTags = useMemo(() => getImageTextRecommendLayoutTags(layout), [layout]);
121
+ const targetCount = items?.length ?? 0;
122
+ /** 关闭智能铺设时,配置中的全部 contentId(去空) */
123
+ const fixedIds = useMemo(() => getImageTextRecommendFixedIds(items, isSmartEnabled), [isSmartEnabled, items]);
124
+ const totalBatches = useMemo(() => fixedIds.length > 0 ? Math.ceil(fixedIds.length / IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE) : 0, [fixedIds.length]);
125
+ /** 集数展示文案:更新中用 updatedTo,已完结用 allEpisodes(i18n) */
126
+ const episodeFormatter = useCallback((count, isUpdating) => isUpdating ? t("updatedTo", { count }) : t("allEpisodes", { count }), [t]);
127
+ /** 拉取一批 id 并合并进 remoteMap(仅客户端触底加载下一批时调用;首批由服务端完成) */
128
+ const fetchFixedBatch = useCallback(async (batchIds, merge) => {
129
+ if (batchIds.length === 0) return;
130
+ const map = buildImageTextRecommendRemoteMap((await pContentBatchGetVideoDetail({ ids: batchIds })).data?.videos ?? []);
131
+ setRemoteMap((prev) => merge ? {
132
+ ...prev,
133
+ ...map
134
+ } : map);
135
+ }, []);
136
+ useEffect(() => {
137
+ if (isEditor) return;
138
+ if (initialDataFromServer) return;
139
+ if (!items || items.length === 0) return;
140
+ let cancelled = false;
141
+ async function runFixed() {
142
+ if (fixedIds.length === 0) {
143
+ if (!cancelled) {
144
+ setRemoteMap({});
145
+ setLoadedBatchIndex(0);
146
+ }
147
+ return;
148
+ }
149
+ if (fixedIds.length <= IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE) {
150
+ await fetchFixedBatch(fixedIds, false);
151
+ if (!cancelled) setLoadedBatchIndex(1);
152
+ return;
153
+ }
154
+ await fetchFixedBatch(fixedIds.slice(0, IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE), false);
155
+ if (!cancelled) setLoadedBatchIndex(1);
156
+ }
157
+ async function fetchSmart() {
158
+ const chosenTags = buildImageTextRecommendChosenTags(smartTags, targetCount);
159
+ const list = (await pContentGetPopularVideoList({
160
+ page_size: Math.max(20, targetCount * 10),
161
+ tags: chosenTags.length ? Array.from(new Set(chosenTags)) : void 0
162
+ })).data?.videos ?? [];
163
+ if (!cancelled) setSmartList(buildImageTextRecommendSmartPicked(list, chosenTags, targetCount));
164
+ }
165
+ (async () => {
166
+ try {
167
+ if (isSmartEnabled) await fetchSmart();
168
+ else await runFixed();
169
+ } catch {
170
+ if (!cancelled) {
171
+ setRemoteMap({});
172
+ setSmartList([]);
173
+ setLoadedBatchIndex(0);
174
+ }
175
+ }
176
+ })();
177
+ return () => {
178
+ cancelled = true;
179
+ };
180
+ }, [
181
+ isEditor,
182
+ initialDataFromServer,
183
+ isSmartEnabled,
184
+ items,
185
+ smartTags,
186
+ targetCount,
187
+ fixedIds,
188
+ fetchFixedBatch
189
+ ]);
190
+ useEffect(() => {
191
+ if (isEditor || isSmartEnabled || fixedIds.length <= IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE) return;
192
+ if (loadedBatchIndex < 1 || loadedBatchIndex >= totalBatches) return;
193
+ const el = sentinelRef.current;
194
+ if (!el) return;
195
+ const observer = new IntersectionObserver((entries) => {
196
+ const [entry] = entries;
197
+ if (!entry?.isIntersecting) return;
198
+ const nextBatchIndex = loadedBatchIndex;
199
+ const start = nextBatchIndex * IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE;
200
+ const batchIds = fixedIds.slice(start, start + IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE);
201
+ if (batchIds.length === 0) return;
202
+ fetchFixedBatch(batchIds, true);
203
+ setLoadedBatchIndex(nextBatchIndex + 1);
204
+ }, {
205
+ root: null,
206
+ rootMargin: "0px",
207
+ threshold: 0
208
+ });
209
+ observer.observe(el);
210
+ return () => observer.disconnect();
211
+ }, [
212
+ isEditor,
213
+ isSmartEnabled,
214
+ fixedIds,
215
+ loadedBatchIndex,
216
+ totalBatches,
217
+ fetchFixedBatch
218
+ ]);
219
+ useEffect(() => {
220
+ if (isEditor) return;
221
+ if (!isSmartEnabled) return;
222
+ if (targetCount <= 0) return;
223
+ let timer;
224
+ let cancelled = false;
225
+ function scheduleNext() {
226
+ timer = window.setTimeout(() => {
227
+ const chosenTags = buildImageTextRecommendChosenTags(smartTags, targetCount);
228
+ pContentGetPopularVideoList({
229
+ page_size: Math.max(20, targetCount * 10),
230
+ tags: chosenTags.length ? Array.from(new Set(chosenTags)) : void 0
231
+ }).then((res) => {
232
+ if (cancelled) return;
233
+ setSmartList(buildImageTextRecommendSmartPicked(res.data?.videos ?? [], chosenTags, targetCount));
234
+ }).catch(() => {
235
+ if (!cancelled) setSmartList([]);
236
+ }).finally(() => {
237
+ if (!cancelled) scheduleNext();
238
+ });
239
+ }, getMsUntilNextDay());
240
+ }
241
+ scheduleNext();
242
+ return () => {
243
+ cancelled = true;
244
+ if (timer !== void 0) window.clearTimeout(timer);
245
+ };
246
+ }, [
247
+ isEditor,
248
+ isSmartEnabled,
249
+ smartTags,
250
+ targetCount
251
+ ]);
252
+ const resolvedItems = useMemo(() => {
253
+ if (!items || items.length === 0) return DEFAULT_ITEMS;
254
+ return items.map((cfg, index) => {
255
+ const fixedId = String(cfg?.contentId ?? "").trim();
256
+ const remote = isSmartEnabled ? smartList[index] : fixedId ? remoteMap[fixedId] : void 0;
257
+ const title = (cfg?.title ?? "").trim() || (remote ? resolveVideoTitle(remote) : "");
258
+ const cover = (cfg?.cover ?? "").trim() || (cfg?.useVideoPoster ? resolveCoverUrl(remote) : "");
259
+ const contentDescription = (cfg?.contentDescription ?? "").trim();
260
+ const episodeOrDurationText = resolveContentDescription(remote, allEpisodesText, episodeFormatter);
261
+ const playCountText = resolvePlayCountText(remote);
262
+ return {
263
+ ...cfg,
264
+ contentId: fixedId || (remote ? resolveImageTextRecommendVideoId(remote) : ""),
265
+ title,
266
+ cover,
267
+ contentDescription,
268
+ episodeOrDurationText,
269
+ playCountText
270
+ };
271
+ });
272
+ }, [
273
+ allEpisodesText,
274
+ episodeFormatter,
275
+ isSmartEnabled,
276
+ items,
277
+ remoteMap,
278
+ smartList
279
+ ]);
280
+ if (!items || items.length === 0) return null;
281
+ /** 关闭智能铺设且分批时:被观察的「倒数第二个」卡片索引,用于触底加载下一批 */
282
+ const sentinelIndex = !isSmartEnabled && fixedIds.length > IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE && loadedBatchIndex >= 1 && loadedBatchIndex < totalBatches ? loadedBatchIndex * IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE - 2 : -1;
283
+ return /* @__PURE__ */ jsxs("div", {
284
+ className: isEditor ? "bg-bg1 px-3 py-3 pointer-events-none" : "bg-bg1 px-3 py-3",
285
+ children: [title && /* @__PURE__ */ jsx("div", {
286
+ className: "mb-3 flex items-center justify-between",
287
+ children: /* @__PURE__ */ jsx("h2", {
288
+ className: "text-[18px] font-bold text-text1 leading-[26px]",
289
+ children: title
290
+ })
291
+ }), /* @__PURE__ */ jsx("div", {
292
+ className: "flex overflow-x-auto pb-2 scrollbar-hide space-x-2",
293
+ children: resolvedItems.map((item, index) => {
294
+ const showPlayCount = isSmartEnabled ? commonPlayCount : item.showPlayCount ?? false;
295
+ const playCountRaw = (item.playCountText ?? "").trim();
296
+ const hasPlayCount = playCountRaw !== "";
297
+ const showEpisodes = isSmartEnabled ? commonEpisodes : item.showEpisodes ?? false;
298
+ const episodeOrDuration = (item.episodeOrDurationText ?? "").trim();
299
+ const showEpisodesContent = showEpisodes && episodeOrDuration !== "";
300
+ const detailPath = mode === "renderer" ? buildVideoDetailPath(item.contentId ?? "", item.title ?? "") : "";
301
+ const cardContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
302
+ className: "relative aspect-[116.67/155.56] rounded-lg overflow-hidden bg-bg2",
303
+ children: [
304
+ isEditor || item.cover ? /* @__PURE__ */ jsx(NextImage, {
305
+ src: resolveCoverDisplaySrc(item.cover, frame_default),
306
+ alt: item.title ?? "",
307
+ fill: true,
308
+ sizes: "116.67px",
309
+ className: "object-cover text-[10px] text-text3",
310
+ unoptimized: true
311
+ }) : /* @__PURE__ */ jsx("div", {
312
+ className: "w-full h-full flex items-center justify-center text-text3 text-xs",
313
+ children: t("noCover")
314
+ }),
315
+ !isSmartEnabled && (item.badge ?? "").trim() ? /* @__PURE__ */ jsx("div", {
316
+ className: "absolute top-0 right-0 w-8 h-8",
317
+ children: /* @__PURE__ */ jsx(NextImage, {
318
+ src: (item.badge ?? "").trim() || subscript_default,
319
+ alt: "",
320
+ fill: true,
321
+ sizes: "32px",
322
+ className: "object-contain object-right-top",
323
+ unoptimized: true
324
+ })
325
+ }) : null,
326
+ /* @__PURE__ */ jsxs("div", {
327
+ className: "absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent pb-1 pt-3 px-1 flex justify-between items-center gap-1",
328
+ children: [/* @__PURE__ */ jsx("div", {
329
+ className: "flex items-center min-w-0 shrink",
330
+ children: showPlayCount && hasPlayCount ? /* @__PURE__ */ jsxs("div", {
331
+ className: "flex items-center gap-1 rounded bg-overlay px-1 py-0",
332
+ children: [/* @__PURE__ */ jsx("svg", {
333
+ xmlns: "http://www.w3.org/2000/svg",
334
+ width: "12",
335
+ height: "10",
336
+ viewBox: "0 0 12 10",
337
+ fill: "none",
338
+ className: "shrink-0",
339
+ "aria-hidden": true,
340
+ children: /* @__PURE__ */ jsx("path", {
341
+ d: "M7.56 5.18437L5.013 6.56737C4.893 6.63337 4.761 6.66937 4.638 6.66937C4.269 6.66937 4.002 6.38737 4.002 5.99737V3.28237C4.002 2.89237 4.269 2.61037 4.638 2.61037C4.764 2.61037 4.893 2.64637 5.013 2.70937L7.572 4.09237C7.803 4.21837 7.938 4.41637 7.938 4.63237C7.938 4.85137 7.8 5.05537 7.56 5.18437ZM9.807 9.27637L2.133 8.52937C0.954 8.52937 0 7.57537 0 6.39637V2.79937C0 1.62037 0.954 0.666368 2.133 0.666368L9.81 0.000367165C10.989 0.000367165 11.943 0.954367 11.943 2.13337V7.14337C11.9422 7.70935 11.7168 8.25188 11.3163 8.65181C10.9158 9.05174 10.373 9.27637 9.807 9.27637ZM10.875 2.13337C10.875 1.99351 10.8475 1.85502 10.7939 1.72581C10.7404 1.5966 10.662 1.47919 10.5631 1.3803C10.4642 1.2814 10.3468 1.20296 10.2176 1.14944C10.0883 1.09591 9.94986 1.06837 9.81 1.06837L2.133 1.73437C1.99314 1.73437 1.85465 1.76191 1.72544 1.81544C1.59623 1.86896 1.47883 1.9474 1.37993 2.0463C1.28104 2.14519 1.20259 2.2626 1.14907 2.39181C1.09555 2.52102 1.068 2.65951 1.068 2.79937V6.39637C1.068 6.67882 1.1802 6.94971 1.37993 7.14944C1.57966 7.34916 1.85054 7.46137 2.133 7.46137L9.807 8.20837C9.94686 8.20837 10.0853 8.18082 10.2146 8.1273C10.3438 8.07378 10.4612 7.99533 10.5601 7.89644C10.659 7.79754 10.7374 7.68014 10.7909 7.55093C10.8445 7.42171 10.872 7.28323 10.872 7.14337V2.13337H10.875Z",
342
+ fill: "white"
343
+ })
344
+ }), /* @__PURE__ */ jsx("span", {
345
+ className: "text-white text-[12px] leading-[20px]",
346
+ children: playCountRaw
347
+ })]
348
+ }) : null
349
+ }), /* @__PURE__ */ jsx("div", {
350
+ className: "flex items-center shrink-0",
351
+ children: showEpisodesContent ? /* @__PURE__ */ jsx("span", {
352
+ className: "text-white text-[12px] leading-[20px]",
353
+ children: episodeOrDuration
354
+ }) : null
355
+ })]
356
+ })
357
+ ]
358
+ }), /* @__PURE__ */ jsx("div", {
359
+ className: "mt-2 py-2",
360
+ children: /* @__PURE__ */ jsx("h3", {
361
+ className: "text-[16px] text-text1 truncate font-bold leading-[24px]",
362
+ children: item.title
363
+ })
364
+ })] });
365
+ return /* @__PURE__ */ jsx("div", {
366
+ ref: index === sentinelIndex ? sentinelRef : void 0,
367
+ className: "flex-shrink-0 w-[116.67px]",
368
+ children: detailPath ? /* @__PURE__ */ jsx(Link, {
369
+ href: detailPath,
370
+ className: "block rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
371
+ children: cardContent
372
+ }) : cardContent
373
+ }, index);
374
+ })
375
+ })]
376
+ });
377
+ }
378
+
379
+ //#endregion
380
+ export { ImageTextRecommendClient };