@funhub/platform 0.2.16 → 0.2.18

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 (916) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +1 -18
  2. package/dist/assets/icons/channel-list/channel-active-indicator.mjs +1 -31
  3. package/dist/assets/icons/clear.mjs +1 -17
  4. package/dist/assets/icons/close-icon.mjs +1 -18
  5. package/dist/assets/icons/close.mjs +1 -14
  6. package/dist/assets/icons/common/collect_nor.mjs +1 -21
  7. package/dist/assets/icons/common/collect_sel.mjs +1 -21
  8. package/dist/assets/icons/common/follow_sel.mjs +1 -17
  9. package/dist/assets/icons/common/follow_user.mjs +1 -17
  10. package/dist/assets/icons/common/full_screen.mjs +1 -17
  11. package/dist/assets/icons/common/god_comment.mjs +1 -17
  12. package/dist/assets/icons/common/header-menu.mjs +1 -29
  13. package/dist/assets/icons/common/header-search-icon.mjs +1 -17
  14. package/dist/assets/icons/common/heart-like.mjs +1 -31
  15. package/dist/assets/icons/common/heart-unlike.mjs +1 -18
  16. package/dist/assets/icons/common/qq.mjs +1 -32
  17. package/dist/assets/icons/common/right_arrow.mjs +1 -14
  18. package/dist/assets/icons/common/right_arrow_thin.mjs +1 -17
  19. package/dist/assets/icons/common/share.mjs +1 -17
  20. package/dist/assets/icons/common/solid-arrow.mjs +1 -17
  21. package/dist/assets/icons/common/video_play.mjs +1 -18
  22. package/dist/assets/icons/common/wechat-friends.mjs +1 -40
  23. package/dist/assets/icons/common/wechat.mjs +1 -39
  24. package/dist/assets/icons/detail/check-ok.mjs +1 -17
  25. package/dist/assets/icons/detail/comment.mjs +1 -19
  26. package/dist/assets/icons/detail/commet_at.mjs +1 -53
  27. package/dist/assets/icons/detail/give_like.mjs +1 -20
  28. package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
  29. package/dist/assets/icons/detail/min-collection.mjs +1 -38
  30. package/dist/assets/icons/detail/publish_pic.mjs +1 -27
  31. package/dist/assets/icons/detail/publish_video.mjs +1 -30
  32. package/dist/assets/icons/detail/un_like.mjs +1 -20
  33. package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
  34. package/dist/assets/icons/detail/video_flag.mjs +1 -17
  35. package/dist/assets/icons/detail/video_play.mjs +1 -18
  36. package/dist/assets/icons/dislike.mjs +1 -20
  37. package/dist/assets/icons/dislike_sel.mjs +1 -27
  38. package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
  39. package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
  40. package/dist/assets/icons/eye-icon.mjs +1 -21
  41. package/dist/assets/icons/eye-off-icon.mjs +1 -24
  42. package/dist/assets/icons/filter_dark.mjs +1 -17
  43. package/dist/assets/icons/follow_nor.mjs +1 -44
  44. package/dist/assets/icons/follow_sel.mjs +1 -31
  45. package/dist/assets/icons/left-arrow-icon.mjs +1 -18
  46. package/dist/assets/icons/left_arrow.mjs +1 -14
  47. package/dist/assets/icons/like.mjs +1 -20
  48. package/dist/assets/icons/like_sel.mjs +1 -27
  49. package/dist/assets/icons/marquee-close.mjs +1 -29
  50. package/dist/assets/icons/marquee-enter.mjs +2 -0
  51. package/dist/assets/icons/marquee-speaker.mjs +1 -22
  52. package/dist/assets/icons/publish/publish_add.mjs +1 -17
  53. package/dist/assets/icons/publish/publish_at.mjs +1 -53
  54. package/dist/assets/icons/publish/publish_collection.mjs +1 -28
  55. package/dist/assets/icons/publish/publish_pic.mjs +1 -27
  56. package/dist/assets/icons/publish/publish_video.mjs +1 -30
  57. package/dist/assets/icons/refresh.mjs +1 -18
  58. package/dist/assets/icons/search/filter.mjs +1 -17
  59. package/dist/assets/icons/search.mjs +1 -23
  60. package/dist/assets/icons/share/share-link.mjs +1 -39
  61. package/dist/assets/icons/tabs/follow.mjs +1 -20
  62. package/dist/assets/icons/tabs/follow_active.mjs +1 -17
  63. package/dist/assets/icons/tabs/home.mjs +1 -17
  64. package/dist/assets/icons/tabs/home_active.mjs +1 -17
  65. package/dist/assets/icons/tabs/mine.mjs +1 -26
  66. package/dist/assets/icons/tabs/mine_active.mjs +1 -17
  67. package/dist/assets/icons/view.mjs +1 -17
  68. package/dist/assets/images/add.mjs +1 -5
  69. package/dist/assets/images/default_avatar.mjs +1 -5
  70. package/dist/assets/images/default_collection_cover.mjs +1 -5
  71. package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
  72. package/dist/assets/images/empty/img_empty_message.mjs +1 -408
  73. package/dist/assets/images/empty/img_empty_network.mjs +1 -168
  74. package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
  75. package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
  76. package/dist/assets/images/empty/img_empty_search.mjs +1 -250
  77. package/dist/assets/images/frame.mjs +1 -5
  78. package/dist/assets/images/less.mjs +1 -5
  79. package/dist/assets/images/logo.mjs +1 -5
  80. package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +1 -29
  81. package/dist/assets/images/subscript.mjs +1 -5
  82. package/dist/assets/images/user/default_avatar.mjs +1 -5
  83. package/dist/biz.d.mts +1 -5
  84. package/dist/biz.mjs +1 -173
  85. package/dist/cli/init/create-client.mjs +1 -12
  86. package/dist/cli/init/create-sdk.mjs +1 -12
  87. package/dist/cli/init/shared/command.mjs +1 -31
  88. package/dist/cli/init/shared/constants.mjs +1 -24
  89. package/dist/cli/init/shared/create-project.mjs +2 -58
  90. package/dist/cli/init/shared/file.mjs +1 -21
  91. package/dist/cli/init/shared/package-manager.mjs +1 -42
  92. package/dist/cli/init/shared/prompts.mjs +1 -107
  93. package/dist/cli/init/shared/template.mjs +1 -59
  94. package/dist/cli.mjs +2 -128
  95. package/dist/common.d.mts +2 -1
  96. package/dist/common.mjs +1 -50
  97. package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
  98. package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
  99. package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
  100. package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
  101. package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
  102. package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
  103. package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
  104. package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
  105. package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
  106. package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
  107. package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
  108. package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
  109. package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
  110. package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
  111. package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
  112. package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
  113. package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
  114. package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
  115. package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
  116. package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
  117. package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
  118. package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
  119. package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -390
  120. package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
  121. package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
  122. package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
  123. package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
  124. package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
  125. package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
  126. package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -273
  127. package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
  128. package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
  129. package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
  130. package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
  131. package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
  132. package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
  133. package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
  134. package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
  135. package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
  136. package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -171
  137. package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
  138. package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
  139. package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
  140. package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
  141. package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
  142. package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
  143. package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -56
  144. package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
  145. package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
  146. package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
  147. package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
  148. package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -33
  149. package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
  150. package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
  151. package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
  152. package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
  153. package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
  154. package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
  155. package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
  156. package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
  157. package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
  158. package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
  159. package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
  160. package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
  161. package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
  162. package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
  163. package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
  164. package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
  165. package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
  166. package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
  167. package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
  168. package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
  169. package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
  170. package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
  171. package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
  172. package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
  173. package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
  174. package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
  175. package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
  176. package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
  177. package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
  178. package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
  179. package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
  180. package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
  181. package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
  182. package/dist/components/biz/business/advertisement/ad-match.mjs +1 -139
  183. package/dist/components/biz/business/advertisement/ad-provider.mjs +1 -50
  184. package/dist/components/biz/business/advertisement/ad-query.mjs +1 -39
  185. package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +1 -21
  186. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -274
  187. package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -21
  188. package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -55
  189. package/dist/components/biz/business/advertisement/banner-ad/server.mjs +1 -24
  190. package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -36
  191. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -109
  192. package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -21
  193. package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -11
  194. package/dist/components/biz/business/advertisement/floating-ad/server.mjs +1 -24
  195. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -187
  196. package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -21
  197. package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -42
  198. package/dist/components/biz/business/advertisement/icon-ad/server.mjs +1 -24
  199. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -161
  200. package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -21
  201. package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -36
  202. package/dist/components/biz/business/advertisement/popup-ad/server.mjs +1 -24
  203. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -370
  204. package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -21
  205. package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -34
  206. package/dist/components/biz/business/advertisement/text-ad/server.mjs +1 -24
  207. package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
  208. package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
  209. package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -62
  210. package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
  211. package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -140
  212. package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
  213. package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
  214. package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
  215. package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
  216. package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
  217. package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
  218. package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
  219. package/dist/components/biz/business/banner-carousel/client.mjs +1 -133
  220. package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
  221. package/dist/components/biz/business/banner-carousel/material.mjs +1 -22
  222. package/dist/components/biz/business/banner-carousel/schema.mjs +1 -94
  223. package/dist/components/biz/business/banner-carousel/server.mjs +1 -87
  224. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
  225. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
  226. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
  227. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
  228. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
  229. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
  230. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
  231. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
  232. package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
  233. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
  234. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
  235. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -106
  236. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
  237. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
  238. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
  239. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
  240. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
  241. package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
  242. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
  243. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
  244. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
  245. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
  246. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
  247. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
  248. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
  249. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
  250. package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
  251. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
  252. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
  253. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
  254. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
  255. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
  256. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
  257. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
  258. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
  259. package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
  260. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
  261. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
  262. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -106
  263. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
  264. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
  265. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
  266. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
  267. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
  268. package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
  269. package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -190
  270. package/dist/components/biz/business/channel-list/client.mjs +1 -148
  271. package/dist/components/biz/business/channel-list/default-props.mjs +1 -13
  272. package/dist/components/biz/business/channel-list/material.mjs +1 -21
  273. package/dist/components/biz/business/channel-list/schema.mjs +1 -40
  274. package/dist/components/biz/business/comment/comment-input.mjs +5 -772
  275. package/dist/components/biz/business/comment/comment-item.mjs +1 -190
  276. package/dist/components/biz/business/comment/comment-list.mjs +1 -722
  277. package/dist/components/biz/business/comment/comment-media.mjs +1 -57
  278. package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
  279. package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
  280. package/dist/components/biz/business/comment/time-display.mjs +1 -20
  281. package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
  282. package/dist/components/biz/business/contact/contact-item.mjs +1 -45
  283. package/dist/components/biz/business/contact/contact-list.mjs +1 -212
  284. package/dist/components/biz/business/contact/contact-search.mjs +1 -128
  285. package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -114
  286. package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -33
  287. package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -84
  288. package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -411
  289. package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
  290. package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -68
  291. package/dist/components/biz/business/detail/shared/material-route-context.mjs +1 -44
  292. package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
  293. package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
  294. package/dist/components/biz/business/detail/shared/registry.mjs +1 -55
  295. package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -225
  296. package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
  297. package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -320
  298. package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
  299. package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -896
  300. package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -108
  301. package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
  302. package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
  303. package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -47
  304. package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -201
  305. package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
  306. package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -14
  307. package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -45
  308. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
  309. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
  310. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -14
  311. package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
  312. package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -136
  313. package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
  314. package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +1 -1
  315. package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
  316. package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
  317. package/dist/components/biz/business/detail/video-detail-player-bridge-only/client.mjs +1 -17
  318. package/dist/components/biz/business/detail/video-detail-player-bridge-only/material.mjs +1 -18
  319. package/dist/components/biz/business/detail/video-detail-player-bridge-only/schema.mjs +1 -13
  320. package/dist/components/biz/business/detail/video-detail-player-bridge-only/server.mjs +1 -17
  321. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -86
  322. package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
  323. package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -35
  324. package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -18
  325. package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -555
  326. package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -75
  327. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
  328. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
  329. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
  330. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
  331. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
  332. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
  333. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
  334. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
  335. package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
  336. package/dist/components/biz/business/floating-ball/client.mjs +1 -31
  337. package/dist/components/biz/business/floating-ball/material.mjs +1 -18
  338. package/dist/components/biz/business/floating-ball/schema.mjs +1 -20
  339. package/dist/components/biz/business/floating-ball/server.mjs +1 -17
  340. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
  341. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
  342. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
  343. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
  344. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
  345. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
  346. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
  347. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
  348. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
  349. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
  350. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
  351. package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
  352. package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
  353. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -21
  354. package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
  355. package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
  356. package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
  357. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -130
  358. package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
  359. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -23
  360. package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
  361. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -38
  362. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
  363. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -20
  364. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
  365. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -32
  366. package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
  367. package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -22
  368. package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
  369. package/dist/components/biz/business/header-search/header-search/client.mjs +1 -19
  370. package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
  371. package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
  372. package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
  373. package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -53
  374. package/dist/components/biz/business/header-search/shared/header-action.mjs +1 -29
  375. package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +1 -26
  376. package/dist/components/biz/business/header-search/shared/header-shell.mjs +1 -21
  377. package/dist/components/biz/business/header-search/shared/logo.mjs +1 -25
  378. package/dist/components/biz/business/header-search/shared/search.mjs +1 -47
  379. package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
  380. package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
  381. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -229
  382. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
  383. package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
  384. package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -48
  385. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
  386. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
  387. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -211
  388. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
  389. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
  390. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -42
  391. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -897
  392. package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -24
  393. package/dist/components/biz/business/home-recommend/shared/home-recommend-play-count.mjs +1 -30
  394. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -178
  395. package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -47
  396. package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -336
  397. package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-layout.mjs +1 -73
  398. package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-tag.mjs +1 -21
  399. package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -73
  400. package/dist/components/biz/business/image-text-recommend/client.mjs +1 -443
  401. package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
  402. package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -79
  403. package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
  404. package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -33
  405. package/dist/components/biz/business/index.d.mts +0 -5
  406. package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -94
  407. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -222
  408. package/dist/components/biz/business/large-feature-grid/material.d.mts +1 -1
  409. package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
  410. package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -122
  411. package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
  412. package/dist/components/biz/business/marquee/client.mjs +1 -276
  413. package/dist/components/biz/business/marquee/material.mjs +1 -21
  414. package/dist/components/biz/business/marquee/schema.mjs +1 -86
  415. package/dist/components/biz/business/marquee/server.mjs +1 -17
  416. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
  417. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
  418. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
  419. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -154
  420. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
  421. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
  422. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
  423. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
  424. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
  425. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
  426. package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
  427. package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
  428. package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -119
  429. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
  430. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
  431. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
  432. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
  433. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
  434. package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
  435. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -343
  436. package/dist/components/biz/business/profile/profile-header/material.d.mts +1 -1
  437. package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
  438. package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
  439. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -262
  440. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -182
  441. package/dist/components/biz/business/profile/profile-main/client.mjs +1 -234
  442. package/dist/components/biz/business/profile/profile-main/empty-state.mjs +1 -43
  443. package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
  444. package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
  445. package/dist/components/biz/business/profile/profile-main/server.mjs +1 -13
  446. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -275
  447. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -747
  448. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
  449. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -176
  450. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -263
  451. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
  452. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +2 -0
  453. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -262
  454. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
  455. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
  456. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -13
  457. package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -266
  458. package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
  459. package/dist/components/biz/business/profile/tracking.mjs +1 -19
  460. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
  461. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
  462. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
  463. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
  464. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
  465. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
  466. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
  467. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
  468. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
  469. package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
  470. package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
  471. package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
  472. package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -54
  473. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
  474. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
  475. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
  476. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
  477. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
  478. package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
  479. package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
  480. package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
  481. package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
  482. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
  483. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
  484. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
  485. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
  486. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
  487. package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
  488. package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
  489. package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
  490. package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
  491. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
  492. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
  493. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
  494. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
  495. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
  496. package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
  497. package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
  498. package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
  499. package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
  500. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
  501. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
  502. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
  503. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
  504. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
  505. package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
  506. package/dist/components/biz/business/search-history/client.mjs +1 -182
  507. package/dist/components/biz/business/search-history/material.mjs +1 -18
  508. package/dist/components/biz/business/search-history/schema.mjs +1 -16
  509. package/dist/components/biz/business/search-history/server.mjs +1 -17
  510. package/dist/components/biz/business/search-input/client.mjs +1 -115
  511. package/dist/components/biz/business/search-input/material.mjs +1 -18
  512. package/dist/components/biz/business/search-input/schema.mjs +1 -11
  513. package/dist/components/biz/business/search-input/server.mjs +1 -17
  514. package/dist/components/biz/business/shortcut-grid/client.mjs +1 -86
  515. package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
  516. package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -65
  517. package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
  518. package/dist/components/biz/business/tab-bar/client.mjs +1 -131
  519. package/dist/components/biz/business/tab-bar/material.mjs +1 -21
  520. package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
  521. package/dist/components/biz/business/tab-bar/server.mjs +1 -17
  522. package/dist/components/biz/business/text-recommend/client.mjs +1 -104
  523. package/dist/components/biz/business/text-recommend/material.mjs +1 -18
  524. package/dist/components/biz/business/text-recommend/schema.mjs +1 -25
  525. package/dist/components/biz/business/text-recommend/server.mjs +1 -18
  526. package/dist/components/biz/example/button/client.mjs +1 -43
  527. package/dist/components/biz/example/button/material.mjs +1 -18
  528. package/dist/components/biz/example/button/schema.mjs +1 -44
  529. package/dist/components/biz/example/button/server.mjs +1 -32
  530. package/dist/components/biz/example/button/variants.mjs +1 -22
  531. package/dist/components/biz/renderer/renderer.d.mts +1 -1
  532. package/dist/components/biz/renderer/renderer.mjs +1 -73
  533. package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
  534. package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
  535. package/dist/components/biz/utils/helpers/url.mjs +1 -16
  536. package/dist/components/biz/utils/schema/data.mjs +1 -22
  537. package/dist/components/biz/utils/styles/helpers.mjs +1 -84
  538. package/dist/components/biz/utils/styles/schema.mjs +1 -306
  539. package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
  540. package/dist/components/biz/utils/transformers/data.mjs +1 -171
  541. package/dist/components/common/analytics-init/analytics-init.mjs +1 -75
  542. package/dist/components/common/analytics-init/index.d.mts +1 -0
  543. package/dist/components/common/analytics-init/page-lifecycle-tracker.d.mts +15 -0
  544. package/dist/components/common/analytics-init/page-lifecycle-tracker.mjs +2 -0
  545. package/dist/components/common/analytics-init/sensor-init.mjs +1 -126
  546. package/dist/components/common/at-element/index.mjs +1 -47
  547. package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
  548. package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
  549. package/dist/components/common/cards/mini-three-card.mjs +1 -55
  550. package/dist/components/common/cards/style.module.mjs +24 -12
  551. package/dist/components/common/collection-popup/create-collection-sheet.mjs +1 -271
  552. package/dist/components/common/collection-popup/index.mjs +1 -293
  553. package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
  554. package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
  555. package/dist/components/common/empty/index.mjs +1 -51
  556. package/dist/components/common/follow-button/index.mjs +1 -133
  557. package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
  558. package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -50
  559. package/dist/components/common/header-nav/client.mjs +1 -51
  560. package/dist/components/common/icons/add.mjs +1 -21
  561. package/dist/components/common/icons/comment.mjs +1 -30
  562. package/dist/components/common/icons/delete.mjs +1 -32
  563. package/dist/components/common/icons/left-arrow.mjs +1 -15
  564. package/dist/components/common/icons/more.mjs +1 -30
  565. package/dist/components/common/icons/right-arrow.mjs +1 -19
  566. package/dist/components/common/icons/setting.mjs +1 -27
  567. package/dist/components/common/icons/share.mjs +1 -20
  568. package/dist/components/common/icons/video.mjs +1 -22
  569. package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
  570. package/dist/components/common/info-card/card-header.mjs +1 -71
  571. package/dist/components/common/info-card/card-text.mjs +1 -49
  572. package/dist/components/common/interaction-animations.module.mjs +84 -14
  573. package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
  574. package/dist/components/common/keep-scroll-position/index.mjs +1 -39
  575. package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -139
  576. package/dist/components/common/list/collection-list/collection-list.mjs +1 -27
  577. package/dist/components/common/list/collection-list/collection-select-icon.mjs +1 -53
  578. package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
  579. package/dist/components/common/list/post-list/post-list.mjs +1 -143
  580. package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
  581. package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -469
  582. package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -143
  583. package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
  584. package/dist/components/common/list/video-list/video-list.mjs +1 -152
  585. package/dist/components/common/list/waterfall-recommend/recommend-badge-style.mjs +1 -18
  586. package/dist/components/common/list/waterfall-recommend/waterfall-recommend-display.mjs +1 -26
  587. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -183
  588. package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
  589. package/dist/components/common/login-dialog/login-dialog.mjs +1 -46
  590. package/dist/components/common/media-preview/index.mjs +1 -162
  591. package/dist/components/common/media-preview/video-play.mjs +1 -237
  592. package/dist/components/common/page-loading/index.mjs +1 -20
  593. package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
  594. package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -321
  595. package/dist/components/common/photo-grid/index.mjs +1 -226
  596. package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -97
  597. package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
  598. package/dist/components/common/photo-preview/index.mjs +1 -64
  599. package/dist/components/common/photo-preview/style.mjs +19 -7
  600. package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
  601. package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
  602. package/dist/components/common/popup-video/index.mjs +1 -76
  603. package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
  604. package/dist/components/common/series-episodes/index.mjs +1 -826
  605. package/dist/components/common/share-popup/share-content.mjs +1 -155
  606. package/dist/components/common/share-popup/share-drawer.mjs +1 -100
  607. package/dist/components/common/share-popup/share-popup.mjs +1 -326
  608. package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
  609. package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
  610. package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
  611. package/dist/components/common/tab-bar/index.mjs +1 -139
  612. package/dist/components/common/theme-sync/index.mjs +1 -22
  613. package/dist/components/common/top-nav-bar/client.mjs +1 -70
  614. package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
  615. package/dist/components/common/top-nav-bar/index.mjs +1 -29
  616. package/dist/components/common/top-nav-bar/normal.mjs +1 -20
  617. package/dist/components/common/user-info-initializer/index.mjs +1 -37
  618. package/dist/components/common/video-player/create-video.mjs +2 -27
  619. package/dist/components/common/video-player/index.mjs +5 -700
  620. package/dist/components/common/video-player/playing-videos.mjs +1 -73
  621. package/dist/components/common/video-player/preroll-skip-button-content.mjs +1 -20
  622. package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -281
  623. package/dist/components/common/video-player/style.module.mjs +256 -7
  624. package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -144
  625. package/dist/components/common/video-player/video-player-ref-context.mjs +1 -18
  626. package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -163
  627. package/dist/components/common/video-player/video-preroll-ad.mjs +1 -187
  628. package/dist/components/common/wait-loading.mjs +1 -119
  629. package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
  630. package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -15
  631. package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -44
  632. package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
  633. package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
  634. package/dist/components/pages/(follow)/fans/index.mjs +1 -10
  635. package/dist/components/pages/(follow)/fans/page.mjs +1 -95
  636. package/dist/components/pages/(follow)/followed/index.mjs +1 -10
  637. package/dist/components/pages/(follow)/followed/page.mjs +1 -95
  638. package/dist/components/pages/collection-add/index.mjs +1 -10
  639. package/dist/components/pages/collection-add/page.mjs +1 -166
  640. package/dist/components/pages/collection-create/form.mjs +1 -166
  641. package/dist/components/pages/collection-create/index.mjs +1 -10
  642. package/dist/components/pages/collection-create/page.mjs +1 -28
  643. package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
  644. package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +1 -137
  645. package/dist/components/pages/collection-detail/detail.mjs +1 -521
  646. package/dist/components/pages/collection-detail/index.mjs +1 -10
  647. package/dist/components/pages/collection-detail/page.mjs +1 -18
  648. package/dist/components/pages/edit/index.mjs +1 -10
  649. package/dist/components/pages/edit/page.mjs +1 -687
  650. package/dist/components/pages/feed-series/feed-series-client.mjs +1 -385
  651. package/dist/components/pages/feed-series/page.mjs +1 -97
  652. package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -273
  653. package/dist/components/pages/feedback/index.mjs +1 -10
  654. package/dist/components/pages/feedback/page.mjs +1 -10
  655. package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
  656. package/dist/components/pages/fullscreen-feed/page.mjs +1 -107
  657. package/dist/components/pages/home/channel-matcher.mjs +1 -30
  658. package/dist/components/pages/home/client.mjs +1 -158
  659. package/dist/components/pages/home/index.mjs +1 -59
  660. package/dist/components/pages/login/agreement-dialog.mjs +1 -104
  661. package/dist/components/pages/login/auth-guard.mjs +1 -37
  662. package/dist/components/pages/login/auth-page-styles.mjs +2 -17
  663. package/dist/components/pages/login/forgot.mjs +1 -136
  664. package/dist/components/pages/login/index.mjs +1 -109
  665. package/dist/components/pages/login/login-client.mjs +1 -233
  666. package/dist/components/pages/login/password.mjs +1 -186
  667. package/dist/components/pages/login/register.mjs +1 -204
  668. package/dist/components/pages/login/reset-password.mjs +1 -193
  669. package/dist/components/pages/login/tracking.mjs +1 -32
  670. package/dist/components/pages/login/verify.mjs +1 -243
  671. package/dist/components/pages/post-detail/page.mjs +1 -28
  672. package/dist/components/pages/post-detail/post-detail-client.mjs +1 -518
  673. package/dist/components/pages/profile/index.mjs +1 -10
  674. package/dist/components/pages/profile/page.mjs +1 -28
  675. package/dist/components/pages/publish/components/collection-card.mjs +1 -49
  676. package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
  677. package/dist/components/pages/publish/components/collection.mjs +1 -97
  678. package/dist/components/pages/publish/components/cover-item.mjs +1 -46
  679. package/dist/components/pages/publish/components/editor.mjs +1 -208
  680. package/dist/components/pages/publish/components/header.mjs +1 -31
  681. package/dist/components/pages/publish/components/material-grid.mjs +1 -52
  682. package/dist/components/pages/publish/components/material-item.mjs +1 -68
  683. package/dist/components/pages/publish/components/toolbar.mjs +1 -39
  684. package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
  685. package/dist/components/pages/publish/components/video-item.mjs +1 -36
  686. package/dist/components/pages/publish/constants.mjs +1 -8
  687. package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
  688. package/dist/components/pages/publish/page-client.mjs +1 -347
  689. package/dist/components/pages/publish/page.mjs +1 -11
  690. package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
  691. package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
  692. package/dist/components/pages/search/hot-recommend.mjs +1 -192
  693. package/dist/components/pages/search/hot-search.mjs +1 -70
  694. package/dist/components/pages/search/index.mjs +1 -17
  695. package/dist/components/pages/search/page-client.mjs +1 -213
  696. package/dist/components/pages/search/search-result/index.mjs +1 -31
  697. package/dist/components/pages/search/search-result/search-all.mjs +1 -167
  698. package/dist/components/pages/search/search-result/search-user.mjs +1 -306
  699. package/dist/components/pages/search/search-result/search-video-info.mjs +1 -134
  700. package/dist/components/pages/search/search-result/shared.mjs +1 -117
  701. package/dist/components/pages/search/style.module.mjs +85 -12
  702. package/dist/components/pages/search/top-header.mjs +1 -131
  703. package/dist/components/pages/search/tracking.mjs +1 -51
  704. package/dist/components/pages/search-result/page-client.mjs +1 -132
  705. package/dist/components/pages/search-result/search-all.mjs +1 -180
  706. package/dist/components/pages/search-result/search-empty.mjs +1 -52
  707. package/dist/components/pages/search-result/search-tab.mjs +1 -95
  708. package/dist/components/pages/search-result/search-user.mjs +1 -315
  709. package/dist/components/pages/search-result/search-video-info.mjs +1 -196
  710. package/dist/components/pages/search-result/shared.mjs +1 -46
  711. package/dist/components/pages/search-result/top-header.mjs +1 -105
  712. package/dist/components/pages/search-result/tracking.mjs +1 -39
  713. package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -381
  714. package/dist/components/pages/settings/_components/settings.mjs +1 -194
  715. package/dist/components/pages/settings/index.mjs +1 -10
  716. package/dist/components/pages/settings/page.mjs +1 -13
  717. package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
  718. package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
  719. package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -98
  720. package/dist/components/pages/user-follow/index.mjs +1 -10
  721. package/dist/components/pages/user-follow/page.mjs +1 -106
  722. package/dist/components/pages/user-follow/skeleton.mjs +1 -62
  723. package/dist/components/pages/video-detail/page.mjs +1 -47
  724. package/dist/components/pages/video-detail/video-detail-client.mjs +1 -390
  725. package/dist/components/pages/video-list/index.mjs +1 -61
  726. package/dist/components/pages/video-list/types.mjs +1 -16
  727. package/dist/components/pages/video-list/video-list-client.mjs +1 -146
  728. package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -110
  729. package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -117
  730. package/dist/components/ui/accordion.mjs +1 -62
  731. package/dist/components/ui/alert-dialog.mjs +1 -114
  732. package/dist/components/ui/alert.mjs +1 -50
  733. package/dist/components/ui/aspect-ratio.mjs +1 -17
  734. package/dist/components/ui/avatar.mjs +1 -107
  735. package/dist/components/ui/badge.d.mts +1 -1
  736. package/dist/components/ui/badge.mjs +1 -38
  737. package/dist/components/ui/box.mjs +1 -17
  738. package/dist/components/ui/breadcrumb.mjs +1 -84
  739. package/dist/components/ui/button-group.mjs +1 -49
  740. package/dist/components/ui/button.d.mts +2 -2
  741. package/dist/components/ui/button.mjs +1 -50
  742. package/dist/components/ui/card.mjs +1 -65
  743. package/dist/components/ui/carousel.mjs +1 -142
  744. package/dist/components/ui/checkbox.mjs +1 -25
  745. package/dist/components/ui/collapsible.mjs +1 -31
  746. package/dist/components/ui/combobox.mjs +1 -185
  747. package/dist/components/ui/context-menu.mjs +1 -150
  748. package/dist/components/ui/dialog.mjs +1 -109
  749. package/dist/components/ui/drawer.mjs +1 -91
  750. package/dist/components/ui/dropdown-menu.mjs +1 -154
  751. package/dist/components/ui/empty-icons.mjs +7 -96
  752. package/dist/components/ui/empty.d.mts +1 -1
  753. package/dist/components/ui/empty.mjs +1 -95
  754. package/dist/components/ui/field.mjs +1 -131
  755. package/dist/components/ui/hover-card.mjs +1 -43
  756. package/dist/components/ui/image.mjs +1 -257
  757. package/dist/components/ui/infinite-scroll.mjs +1 -168
  758. package/dist/components/ui/input-group.mjs +1 -90
  759. package/dist/components/ui/input.mjs +1 -19
  760. package/dist/components/ui/item.d.mts +1 -1
  761. package/dist/components/ui/item.mjs +1 -137
  762. package/dist/components/ui/kbd.mjs +1 -24
  763. package/dist/components/ui/label.mjs +1 -18
  764. package/dist/components/ui/legacy/badge.mjs +1 -80
  765. package/dist/components/ui/legacy/button.mjs +1 -55
  766. package/dist/components/ui/legacy/input.mjs +1 -22
  767. package/dist/components/ui/legacy/popover.mjs +1 -69
  768. package/dist/components/ui/link.mjs +1 -52
  769. package/dist/components/ui/list.mjs +5 -221
  770. package/dist/components/ui/loading.mjs +1 -44
  771. package/dist/components/ui/mask.mjs +1 -17
  772. package/dist/components/ui/menubar.mjs +1 -154
  773. package/dist/components/ui/native-select.mjs +1 -43
  774. package/dist/components/ui/pagination.mjs +1 -90
  775. package/dist/components/ui/popover.mjs +1 -73
  776. package/dist/components/ui/popup.mjs +1 -44
  777. package/dist/components/ui/progress.mjs +1 -53
  778. package/dist/components/ui/radio-group.mjs +1 -34
  779. package/dist/components/ui/rate.mjs +1 -69
  780. package/dist/components/ui/scroll-area.mjs +1 -43
  781. package/dist/components/ui/select.mjs +1 -113
  782. package/dist/components/ui/separator.mjs +1 -20
  783. package/dist/components/ui/sheet.mjs +1 -109
  784. package/dist/components/ui/skeleton.mjs +1 -16
  785. package/dist/components/ui/slider.mjs +1 -46
  786. package/dist/components/ui/sonner.d.mts +1 -1
  787. package/dist/components/ui/sonner.mjs +1 -34
  788. package/dist/components/ui/spinner.mjs +1 -18
  789. package/dist/components/ui/switch.mjs +1 -65
  790. package/dist/components/ui/table.mjs +1 -78
  791. package/dist/components/ui/tabs.mjs +1 -54
  792. package/dist/components/ui/text.mjs +1 -20
  793. package/dist/components/ui/textarea.mjs +1 -16
  794. package/dist/components/ui/time.mjs +1 -91
  795. package/dist/components/ui/toggle-group.mjs +1 -59
  796. package/dist/components/ui/toggle.mjs +1 -41
  797. package/dist/components/ui/tooltip.mjs +1 -49
  798. package/dist/components/ui/wheel-picker.mjs +1 -28
  799. package/dist/constants/event-key.mjs +1 -18
  800. package/dist/constants/query-key.mjs +1 -32
  801. package/dist/constants/revalidate.mjs +1 -9
  802. package/dist/constants/site.mjs +1 -11
  803. package/dist/constants/url-prefix.mjs +1 -11
  804. package/dist/hooks/image-text-recommend.mjs +1 -71
  805. package/dist/hooks/query/hydration-boundary.mjs +1 -34
  806. package/dist/hooks/query/use-query.mjs +1 -114
  807. package/dist/hooks/use-auth.mjs +1 -198
  808. package/dist/hooks/use-browse-report.mjs +1 -489
  809. package/dist/hooks/use-card-decoration.mjs +1 -96
  810. package/dist/hooks/use-content-operate.mjs +1 -526
  811. package/dist/hooks/use-first-row-height.mjs +1 -105
  812. package/dist/hooks/use-follow.mjs +1 -69
  813. package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
  814. package/dist/hooks/use-interaction-animation.mjs +1 -26
  815. package/dist/hooks/use-is-client.mjs +1 -20
  816. package/dist/hooks/use-keyboard-open.mjs +1 -56
  817. package/dist/hooks/use-like-dislike.mjs +1 -40
  818. package/dist/hooks/use-min-duration-loading.mjs +1 -63
  819. package/dist/hooks/use-search-history.mjs +1 -53
  820. package/dist/hooks/use-sticky.mjs +1 -50
  821. package/dist/hooks.mjs +1 -17
  822. package/dist/i18n/locales/en.mjs +3 -835
  823. package/dist/i18n/locales/zh-CN.mjs +3 -835
  824. package/dist/i18n/messages.mjs +1 -20
  825. package/dist/i18n/translator.mjs +1 -38
  826. package/dist/i18n.mjs +1 -165
  827. package/dist/materials.d.mts +1 -2
  828. package/dist/materials.mjs +1 -75
  829. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
  830. package/dist/pages.mjs +1 -23
  831. package/dist/seo/build-metadata.mjs +1 -163
  832. package/dist/seo/config/index.mjs +1 -22
  833. package/dist/seo/config/page.mjs +6 -301
  834. package/dist/seo/config/site.mjs +1 -25
  835. package/dist/seo/constants.mjs +1 -31
  836. package/dist/seo/helpers.mjs +1 -120
  837. package/dist/seo/resource-hints.mjs +1 -60
  838. package/dist/seo/robots.mjs +1 -36
  839. package/dist/seo/sitemap.mjs +1 -44
  840. package/dist/seo/structured-data/article.mjs +1 -51
  841. package/dist/seo/structured-data/common.mjs +1 -60
  842. package/dist/seo/structured-data/video.mjs +1 -41
  843. package/dist/seo/viewport.mjs +1 -31
  844. package/dist/seo.mjs +1 -15
  845. package/dist/service/advertisement.mjs +1 -87
  846. package/dist/service/generated/client.mjs +1 -1281
  847. package/dist/service/generated/tanstack.mjs +1 -1179
  848. package/dist/service/register-by-verify-email-code.mjs +1 -17
  849. package/dist/service.mjs +1 -6
  850. package/dist/store/create-store.mjs +1 -25
  851. package/dist/store/modules/app-config-store.mjs +1 -28
  852. package/dist/store/modules/blind-spot-ad-store.mjs +1 -95
  853. package/dist/store/modules/blocked-modal-store.mjs +1 -30
  854. package/dist/store/modules/follow-ids-store.mjs +1 -12
  855. package/dist/store/modules/login-modal-store.mjs +1 -155
  856. package/dist/store/modules/media-preview-store.mjs +1 -54
  857. package/dist/store/modules/publish-store.mjs +1 -31
  858. package/dist/store/modules/use-demo-store.mjs +1 -17
  859. package/dist/store/modules/user-store.mjs +1 -133
  860. package/dist/store/modules/video-player-ref-store.mjs +1 -13
  861. package/dist/store.mjs +1 -12
  862. package/dist/theme-tokens.mjs +1 -82
  863. package/dist/types/safe-at-user.mjs +1 -15
  864. package/dist/types/safe-comment.mjs +1 -30
  865. package/dist/types/safe-grid.mjs +1 -36
  866. package/dist/types/safe-information.d.mts +2 -0
  867. package/dist/types/safe-replay.mjs +1 -43
  868. package/dist/types/share.mjs +1 -16
  869. package/dist/ui.mjs +1 -58
  870. package/dist/utils/api-collect.mjs +1 -14
  871. package/dist/utils/browser-fingerprint.mjs +1 -53
  872. package/dist/utils/channel-storage.mjs +1 -57
  873. package/dist/utils/cn.mjs +1 -15
  874. package/dist/utils/common.d.mts +9 -1
  875. package/dist/utils/common.mjs +1 -296
  876. package/dist/utils/db.mjs +1 -80
  877. package/dist/utils/decrypt-image-client.mjs +1 -325
  878. package/dist/utils/decrypt.worker.mjs +2 -20
  879. package/dist/utils/device-id.mjs +1 -20
  880. package/dist/utils/email-validator.mjs +1 -108
  881. package/dist/utils/event-bus.mjs +1 -33
  882. package/dist/utils/follow-service.mjs +1 -87
  883. package/dist/utils/get-res-url.mjs +1 -94
  884. package/dist/utils/helper.mjs +1 -33
  885. package/dist/utils/http.mjs +1 -204
  886. package/dist/utils/image-compression.mjs +1 -59
  887. package/dist/utils/image-crop.mjs +1 -63
  888. package/dist/utils/loaders.mjs +1 -51
  889. package/dist/utils/login-modal-bridge.mjs +1 -65
  890. package/dist/utils/media.mjs +1 -128
  891. package/dist/utils/password-validator.mjs +1 -86
  892. package/dist/utils/request-user-id.mjs +1 -16
  893. package/dist/utils/s3-uploader.mjs +1 -40
  894. package/dist/utils/schema/inspector.d.mts +2 -2
  895. package/dist/utils/schema/material.d.mts +1 -1
  896. package/dist/utils/schema/material.mjs +1 -24
  897. package/dist/utils/schema/schema.mjs +1 -207
  898. package/dist/utils/schema/utils.mjs +1 -27
  899. package/dist/utils/share-manager.mjs +1 -183
  900. package/dist/utils/tools.mjs +1 -92
  901. package/dist/utils/tracking.mjs +1 -222
  902. package/dist/utils/uint8.mjs +1 -46
  903. package/dist/utils/upload-file.mjs +1 -429
  904. package/dist/utils/use-compatible-router.mjs +1 -84
  905. package/dist/utils.d.mts +2 -2
  906. package/dist/utils.mjs +1 -27
  907. package/package.json +1 -1
  908. package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
  909. package/dist/components/biz/business/hot-recommend/client.mjs +0 -243
  910. package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
  911. package/dist/components/biz/business/hot-recommend/material.d.mts +0 -25
  912. package/dist/components/biz/business/hot-recommend/material.mjs +0 -19
  913. package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -24
  914. package/dist/components/biz/business/hot-recommend/schema.mjs +0 -26
  915. package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
  916. package/dist/components/biz/business/hot-recommend/server.mjs +0 -18
@@ -1,979 +1,2 @@
1
1
 
2
- 'use client';
3
-
4
- import { cn } from "../../../../utils/cn.mjs";
5
- import { debounceFun, getCurrentSecondTime, parseTextAtUserIds, replaceAtUserElement } from "../../../../utils/common.mjs";
6
- import { useFollowIdsState } from "../../../../store/modules/follow-ids-store.mjs";
7
- import { useUserStore } from "../../../../store/modules/user-store.mjs";
8
- import { gCommunityGetComments, pCommunityCreateComment, pCommunityDislikeComment, pCommunityLikeComment, pInteractionFollow, pInteractionUnfollow } from "../../../../service/generated/client.mjs";
9
- import { checkFollowStatus } from "../../../../utils/follow-service.mjs";
10
- import { useRouter } from "../../../../utils/use-compatible-router.mjs";
11
- import { Image } from "../../../ui/image.mjs";
12
- import { Dialog, DialogContent } from "../../../ui/dialog.mjs";
13
- import { InfiniteScroll } from "../../../ui/infinite-scroll.mjs";
14
- import { useLikeDislike } from "../../../../hooks/use-like-dislike.mjs";
15
- import { useKeepAliveState } from "../../../common/keep-scroll-position/index.mjs";
16
- import SvgClose from "../../../../assets/icons/close.mjs";
17
- import SvgFollowSel from "../../../../assets/icons/common/follow_sel.mjs";
18
- import SvgFollowUser from "../../../../assets/icons/common/follow_user.mjs";
19
- import { UnfollowConfirmDialog } from "../../../common/follow-button/unfollow-confirm-dialog.mjs";
20
- import SvgGiveLike from "../../../../assets/icons/detail/give_like.mjs";
21
- import SvgGiveLikeSel from "../../../../assets/icons/detail/give_like_sel.mjs";
22
- import CommentInput from "./comment-input.mjs";
23
- import SvgUnLike from "../../../../assets/icons/detail/un_like.mjs";
24
- import SvgUnLikeSel from "../../../../assets/icons/detail/un_like_sel.mjs";
25
- import { CommentMedia } from "./comment-media.mjs";
26
- import { CommentRichText } from "./comment-rich-text.mjs";
27
- import { TimeDisplay } from "./time-display.mjs";
28
- import { CommentItem } from "./comment-item.mjs";
29
- import { mapApiReplayToReplay } from "../../../../types/safe-replay.mjs";
30
- import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
31
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
32
- import { toast } from "sonner";
33
- import { useTranslations } from "next-intl";
34
-
35
- //#region components/biz/business/comment/reply-detail.tsx
36
- /**
37
- * 将接口时间字段转换为秒级时间戳,兼容秒/毫秒/ISO 字符串。
38
- */
39
- function parseToSecondTimestamp(value) {
40
- if (value === void 0 || value === null) return 0;
41
- const numericValue = typeof value === "number" ? value : Number(value);
42
- if (!Number.isNaN(numericValue) && numericValue > 0) {
43
- if (numericValue > 0xe8d4a51000) return Math.floor(numericValue / 1e3);
44
- return Math.floor(numericValue);
45
- }
46
- const parsed = Date.parse(String(value));
47
- if (Number.isNaN(parsed)) return 0;
48
- return Math.floor(parsed / 1e3);
49
- }
50
- /**
51
- * 将评论媒体转换为 SafeNineGridInfoType 数组(优先 medias)。
52
- */
53
- function convertMediaArrayToNineGridInfo(images, videos, medias) {
54
- const result = [];
55
- if (Array.isArray(medias) && medias.length > 0) {
56
- medias.forEach((media) => {
57
- const isVideo = Boolean(media?.is_video);
58
- const mediaUrl = String(media?.media_url || "");
59
- const coverImage = String(media?.cover_image || "");
60
- if (!mediaUrl && !coverImage) return;
61
- result.push({
62
- cover_image: coverImage,
63
- cover_image_thumbnail: coverImage,
64
- cover_image_radio: 1,
65
- cover_image_resolution: String(media?.cover_image_resolution || ""),
66
- image_url: isVideo ? "" : mediaUrl,
67
- image_thumbnail: isVideo ? "" : mediaUrl,
68
- image_radio: 1,
69
- image_resolution: String(media?.image_resolution || ""),
70
- is_video: isVideo,
71
- resolution: String(media?.video_resolution || ""),
72
- video_duration: Number(media?.video_duration || 0),
73
- video_url: isVideo ? mediaUrl : "",
74
- video_size: Number(media?.video_size || 0),
75
- video_codec_info: {
76
- hls_info: [],
77
- video_codec_deal: false
78
- }
79
- });
80
- });
81
- return result;
82
- }
83
- if (images?.length) images.forEach((imageUrl) => {
84
- result.push({
85
- cover_image: "",
86
- cover_image_thumbnail: "",
87
- cover_image_radio: 1,
88
- cover_image_resolution: "",
89
- image_url: imageUrl,
90
- image_thumbnail: imageUrl,
91
- image_radio: 1,
92
- image_resolution: "",
93
- is_video: false,
94
- resolution: "",
95
- video_duration: 0,
96
- video_url: "",
97
- video_size: 0,
98
- video_codec_info: {
99
- hls_info: [],
100
- video_codec_deal: false
101
- }
102
- });
103
- });
104
- if (videos?.length) videos.forEach((videoUrl) => {
105
- result.push({
106
- cover_image: "",
107
- cover_image_thumbnail: "",
108
- cover_image_radio: 1,
109
- cover_image_resolution: "",
110
- image_url: "",
111
- image_thumbnail: "",
112
- image_radio: 1,
113
- image_resolution: "",
114
- is_video: true,
115
- resolution: "",
116
- video_duration: 0,
117
- video_url: videoUrl,
118
- video_size: 0,
119
- video_codec_info: {
120
- hls_info: [],
121
- video_codec_deal: false
122
- }
123
- });
124
- });
125
- return result;
126
- }
127
- /**
128
- * 将 Community 评论结构映射到 SafeParentReplayType。
129
- */
130
- function mapCommunityCommentToParentReply(comment) {
131
- const mentionedUsers = mapCommunityMentionedUsers(comment.mentioned_users);
132
- const resolvedAtUsers = mentionedUsers.length > 0 ? mentionedUsers : parseAtUsersFromHtml(comment.content || "");
133
- return {
134
- id: String(comment.comment_id ?? comment.id ?? ""),
135
- user_name: comment.user?.nickname || comment.user?.username || "",
136
- text: comment.content || "",
137
- type: "4",
138
- files: [],
139
- at_users: resolvedAtUsers,
140
- cover_image: "",
141
- nine_grid_content_info: convertMediaArrayToNineGridInfo(comment?.images, comment?.videos, comment?.medias)
142
- };
143
- }
144
- /**
145
- * 将 Community 评论结构映射到 SafeReplayType
146
- */
147
- function mapCommunityCommentToSafeReply(comment, parentComment) {
148
- const likeFlag = comment.is_liked ? "1" : comment.is_dislike ? "2" : "0";
149
- const mentionedUsers = mapCommunityMentionedUsers(comment.mentioned_users);
150
- const resolvedAtUsers = mentionedUsers.length > 0 ? mentionedUsers : parseAtUsersFromHtml(comment.content || "");
151
- const resolvedId = String(comment.comment_id ?? comment.id ?? "");
152
- const rawLikeCnt = typeof comment.like_count === "number" ? comment.like_count : 0;
153
- const reply = mapApiReplayToReplay({
154
- id: resolvedId,
155
- like_cnt: (comment.is_liked && rawLikeCnt === 0 ? 1 : rawLikeCnt).toString(),
156
- dislike_cnt: (comment.dislike_count || 0).toString(),
157
- created_at: parseToSecondTimestamp(comment.create_time),
158
- text: comment.content || "",
159
- type: "4",
160
- like_flag: likeFlag,
161
- user_id: comment.user_id || "",
162
- user_name: comment.user?.nickname || comment.user?.username || "",
163
- avatar: comment.user?.avatar_url || "",
164
- reply_cnt: (comment.reply_count || 0).toString(),
165
- nine_grid_content_info: convertMediaArrayToNineGridInfo(comment?.images, comment?.videos, comment?.medias),
166
- at_users: resolvedAtUsers,
167
- parent_reply: void 0
168
- });
169
- if (parentComment) reply.parent_reply = mapCommunityCommentToParentReply(parentComment);
170
- return reply;
171
- }
172
- /**
173
- * 将评论里的 @ 用户信息转换为 SafeAtUserType。
174
- */
175
- function mapCommunityMentionedUsers(mentionedUsers) {
176
- if (!Array.isArray(mentionedUsers)) return [];
177
- return mentionedUsers.map((user) => ({
178
- user_id: user.user_id || "",
179
- name: user.nickname || user.username || "",
180
- avatar: user.avatar_url || "",
181
- birthday: "",
182
- signature: user.signature || ""
183
- }));
184
- }
185
- /**
186
- * 从富文本中解析 @mention 信息,用于本地新增回复的高亮展示。
187
- */
188
- function parseAtUsersFromHtml(text) {
189
- if (!text) return [];
190
- const result = /* @__PURE__ */ new Map();
191
- const mentionRegex = /<span[^>]*class=['"]mention['"][^>]*data-id=['"]([^'"]+)['"][^>]*>@([^<]*)<\/span>/g;
192
- let match;
193
- while ((match = mentionRegex.exec(text)) !== null) {
194
- const id = match[1] ? String(match[1]) : "";
195
- const name = (match[2] ? String(match[2]) : "").replace(/^@/, "") || id;
196
- if (!id || result.has(id)) continue;
197
- result.set(id, {
198
- user_id: id,
199
- name,
200
- avatar: "",
201
- birthday: "",
202
- signature: ""
203
- });
204
- }
205
- if (result.size > 0) return Array.from(result.values());
206
- const placeholderRegex = /<@_user>(\w+)<\/@_user>/g;
207
- while ((match = placeholderRegex.exec(text)) !== null) {
208
- const id = match[1] ? String(match[1]) : "";
209
- if (!id || result.has(id)) continue;
210
- result.set(id, {
211
- user_id: id,
212
- name: id,
213
- avatar: "",
214
- birthday: "",
215
- signature: ""
216
- });
217
- }
218
- return Array.from(result.values());
219
- }
220
- /**
221
- * 将评论附件转换为 createComment 的 medias 结构。
222
- */
223
- function buildCommentMedias(list) {
224
- if (!Array.isArray(list) || list.length === 0) return [];
225
- return list.map((item) => {
226
- const isVideo = Boolean(item.is_video);
227
- const mediaUrl = isVideo ? String(item.video_url || "") : String(item.image_url || item.cover_image || "");
228
- const coverImage = String(item.cover_image || item.image_url || "");
229
- return {
230
- media_url: mediaUrl,
231
- is_video: isVideo,
232
- image_resolution: String(item.image_resolution || ""),
233
- cover_image: coverImage,
234
- cover_image_resolution: String(item.cover_image_resolution || ""),
235
- video_resolution: String(item.resolution || ""),
236
- video_duration: Number(item.video_duration || 0),
237
- video_size: Number(item.video_size || 0)
238
- };
239
- }).filter((media) => Boolean(media.media_url));
240
- }
241
- /**
242
- * 将 Community 评论列表扁平化,包含 sub_comments。
243
- */
244
- function flattenCommunityCommentReplies(comments, parentComment) {
245
- const result = [];
246
- comments.forEach((item) => {
247
- result.push(mapCommunityCommentToSafeReply(item, parentComment));
248
- if (item.sub_comments?.length) result.push(...flattenCommunityCommentReplies(item.sub_comments, item));
249
- });
250
- return result;
251
- }
252
- /**
253
- * 将数量转换为紧凑格式展示。
254
- */
255
- function formatCount(value) {
256
- const num = Number(value) || 0;
257
- if (num >= 1e4) return `${(num / 1e4).toFixed(1)}w`;
258
- if (num >= 1e3) return `${(num / 1e3).toFixed(1)}k`;
259
- return String(num);
260
- }
261
- /**
262
- * 回复详情点赞节流。
263
- */
264
- const replyDetailLikeDebounce = debounceFun((reply, _informationId, _commentId) => {
265
- try {
266
- if (!reply?.id) return;
267
- pCommunityLikeComment({
268
- comment_id: reply.id,
269
- is_like: reply.like_flag !== "1"
270
- }, { revalidate: false });
271
- } catch (error) {
272
- console.error("点赞回复失败:", error);
273
- }
274
- }, 200);
275
- /**
276
- * 回复详情点踩节流。
277
- */
278
- const replyDetailDislikeDebounce = debounceFun((reply, _informationId, _commentId) => {
279
- try {
280
- if (!reply?.id) return;
281
- pCommunityDislikeComment({
282
- comment_id: reply.id,
283
- is_dislike: reply.like_flag !== "2"
284
- }, { revalidate: false });
285
- } catch (error) {
286
- console.error("点踩回复失败:", error);
287
- }
288
- }, 200);
289
- /**
290
- * 回复详情顶部评论区。
291
- */
292
- const ReplyDetailHeader = memo(({ comment, updateFollow, onRequireLogin }) => {
293
- const { userInfo, userId, isLogin } = useUserStore();
294
- const resolvedUserId = userInfo?.userId || userInfo?.user_id || userId || "";
295
- return /* @__PURE__ */ jsx("div", {
296
- className: "w-full bg-bg1",
297
- children: /* @__PURE__ */ jsx(CommentItem, {
298
- comment,
299
- variant: "light",
300
- isLogin,
301
- onRequireLogin,
302
- rightSlot: useMemo(() => Boolean(resolvedUserId) && String(resolvedUserId) === String(comment.user_id || ""), [comment.user_id, resolvedUserId]) ? /* @__PURE__ */ jsx(Fragment$1, {}) : /* @__PURE__ */ jsx(ReplyFollowButton, {
303
- userId: comment.user_id,
304
- hasFollow: comment.is_follow,
305
- onChange: updateFollow,
306
- onRequireLogin
307
- }),
308
- showReplyButton: false
309
- })
310
- });
311
- });
312
- /**
313
- * 回复详情关注按钮。
314
- */
315
- function ReplyFollowButton({ userId: followUserId, hasFollow = false, onChange, onRequireLogin }) {
316
- const t = useTranslations("components.biz.business.comment");
317
- const { isLogin, userInfo, userId } = useUserStore();
318
- const { followIds } = useFollowIdsState();
319
- const [isFollow, setIsFollow] = useState(hasFollow);
320
- const [confirmOpen, setConfirmOpen] = useState(false);
321
- const resolvedUserId = userInfo?.userId || userInfo?.user_id || userId || "";
322
- const isSelf = useMemo(() => Boolean(resolvedUserId) && String(resolvedUserId) === String(followUserId || ""), [followUserId, resolvedUserId]);
323
- const isHasFollowedStatus = useMemo(() => hasFollow || followIds.includes(followUserId), [
324
- followIds,
325
- hasFollow,
326
- followUserId
327
- ]);
328
- useEffect(() => {
329
- setIsFollow(isHasFollowedStatus);
330
- }, [isHasFollowedStatus]);
331
- /**
332
- * 改变关注状态。
333
- */
334
- const changeFollowStatus = useCallback(async () => {
335
- try {
336
- if (!resolvedUserId || !followUserId || followUserId === "0") {
337
- toast.error(t("replyDetail.loginRequired"));
338
- return;
339
- }
340
- if (isFollow) {
341
- const res = await pInteractionUnfollow({
342
- follower_id: String(resolvedUserId),
343
- followee_id: followUserId
344
- });
345
- if (res.code !== 0) {
346
- toast.error(res.message || t("replyDetail.unfollowFailed"));
347
- return;
348
- }
349
- } else {
350
- const res = await pInteractionFollow({
351
- follower_id: String(resolvedUserId),
352
- followee_id: followUserId
353
- });
354
- if (res.code !== 0) {
355
- toast.error(res.message || t("replyDetail.followFailed"));
356
- return;
357
- }
358
- }
359
- window.sensors?.track("detail_follow_click", {
360
- object_id: "",
361
- action: isFollow ? "取消关注" : "关注",
362
- author_id: followUserId
363
- });
364
- sessionStorage.setItem("user_page_refresh", "1");
365
- } catch (error) {
366
- console.error("关注或取消关注失败:", error);
367
- toast.error(isFollow ? t("replyDetail.unfollowFailed") : t("replyDetail.followFailed"));
368
- return;
369
- }
370
- const nextFollow = !isFollow;
371
- onChange?.(nextFollow);
372
- setIsFollow(nextFollow);
373
- const { followIds: prevIds, setFollowIds } = useFollowIdsState.getState();
374
- const next = new Set(prevIds);
375
- if (nextFollow) next.add(followUserId);
376
- else next.delete(followUserId);
377
- setFollowIds(Array.from(next));
378
- }, [
379
- followUserId,
380
- isFollow,
381
- onChange,
382
- resolvedUserId,
383
- t
384
- ]);
385
- /**
386
- * 点击关注按钮。
387
- */
388
- const followHandler = useCallback(() => {
389
- if (!isLogin) {
390
- onRequireLogin?.();
391
- return;
392
- }
393
- if (isFollow) {
394
- setConfirmOpen(true);
395
- return;
396
- }
397
- changeFollowStatus();
398
- }, [
399
- changeFollowStatus,
400
- isFollow,
401
- isLogin,
402
- onRequireLogin
403
- ]);
404
- function handleConfirmUnfollow() {
405
- setConfirmOpen(false);
406
- changeFollowStatus();
407
- }
408
- function handleCancelUnfollow() {
409
- setConfirmOpen(false);
410
- }
411
- if (isSelf || !followUserId || followUserId === "0") return null;
412
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
413
- className: cn("h-[28px] rounded-[14px] px-[8px] border border-solid cursor-pointer flex items-center justify-center", !isFollow ? "border-theme5" : "border-text3"),
414
- onClick: followHandler,
415
- children: !isFollow ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SvgFollowUser, { className: "block w-[12px] h-[12px] text-theme5 shrink-0" }), /* @__PURE__ */ jsx("span", {
416
- className: "block text-theme5 text-[12px] leading-[18px] ml-[4px] shrink-0",
417
- children: t("replyDetail.follow")
418
- })] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(SvgFollowSel, { className: "w-[12px] h-[12px] text-text3 shrink-0" }), /* @__PURE__ */ jsx("span", {
419
- className: "text-text3 text-[12px] leading-[18px] ml-[4px] shrink-0",
420
- children: t("replyDetail.followed")
421
- })] })
422
- }), /* @__PURE__ */ jsx(UnfollowConfirmDialog, {
423
- open: confirmOpen,
424
- onOpenChange: setConfirmOpen,
425
- onCancel: handleCancelUnfollow,
426
- onConfirm: handleConfirmUnfollow
427
- })] });
428
- }
429
- /**
430
- * 0ms 节流:用于输入框失焦时先重置状态。
431
- */
432
- const replyDetailDebounce0 = debounceFun((callback) => {
433
- callback();
434
- }, 0);
435
- /**
436
- * 跟随列表滚动位置变化,自动保存/恢复滚动位置。
437
- */
438
- function useScrollPositionEffect(containerRef, scrollTop, onScrollTopChange, key) {
439
- const restoredRef = useRef(false);
440
- useEffect(() => {
441
- restoredRef.current = false;
442
- }, [key]);
443
- useEffect(() => {
444
- const container = containerRef.current;
445
- if (!container) return;
446
- if (!restoredRef.current && scrollTop > 0) {
447
- container.scrollTop = scrollTop;
448
- restoredRef.current = true;
449
- }
450
- const handleScroll = () => {
451
- restoredRef.current = true;
452
- onScrollTopChange(container.scrollTop);
453
- };
454
- container.addEventListener("scroll", handleScroll, { passive: true });
455
- return () => container.removeEventListener("scroll", handleScroll);
456
- }, [
457
- containerRef,
458
- onScrollTopChange,
459
- scrollTop,
460
- key
461
- ]);
462
- }
463
- /**
464
- * 回复列表。
465
- */
466
- const ReplyList = memo(({ commentId, informationId, handleReplyComment, onReplyListUpdate }) => {
467
- const t = useTranslations("components.biz.business.comment");
468
- const [replyList, setReplyList] = useKeepAliveState(`replay-detail-list-${commentId}`, []);
469
- const [hasMore, setHasMore] = useKeepAliveState(`replay-detail-has-more-${commentId}`, true);
470
- const [page, setPage] = useKeepAliveState(`replay-detail-page-${commentId}`, 1);
471
- const { getLikedListData, getDislikedListData } = useLikeDislike();
472
- const fetchInProgressRef = useRef(false);
473
- /**
474
- * 获取回复列表。
475
- */
476
- const fetchReplyList = useCallback(async () => {
477
- if (!commentId || !informationId) return;
478
- if (fetchInProgressRef.current) return;
479
- fetchInProgressRef.current = true;
480
- try {
481
- const result = await gCommunityGetComments({
482
- content_id: informationId,
483
- parent_id: commentId,
484
- page,
485
- page_size: 20,
486
- sort_by: "latest"
487
- });
488
- if (result.code !== 0) throw new Error(result.message || t("replyDetail.fetchRepliesFailed"));
489
- const list = result.data?.data?.comments ?? [];
490
- const data = flattenCommunityCommentReplies(list);
491
- if ((result.data?.data?.has_more ?? false) === false || list.length < 20) setHasMore(false);
492
- setReplyList((prevList) => {
493
- const existingIds = new Set(prevList.map((item) => item.id));
494
- const filteredData = data.filter((item) => !existingIds.has(item.id));
495
- return [...prevList, ...filteredData];
496
- });
497
- if (data.length > 0) setPage(page + 1);
498
- } catch (error) {
499
- console.error("获取回复列表失败:", error);
500
- setHasMore(false);
501
- } finally {
502
- fetchInProgressRef.current = false;
503
- }
504
- }, [
505
- commentId,
506
- informationId,
507
- page,
508
- setReplyList,
509
- setHasMore,
510
- setPage,
511
- t
512
- ]);
513
- /**
514
- * 更新回复列表。
515
- */
516
- const updateReplyList = useCallback((newReply) => {
517
- setReplyList((prevList) => [newReply, ...prevList]);
518
- }, [setReplyList]);
519
- useEffect(() => {
520
- onReplyListUpdate(updateReplyList);
521
- }, [onReplyListUpdate, updateReplyList]);
522
- /**
523
- * 当评论ID改变时,重置状态并加载第一页数据。
524
- */
525
- useEffect(() => {
526
- if (commentId && informationId) {
527
- setReplyList((prev) => prev.length === 0 ? prev : []);
528
- setHasMore((prev) => prev === true ? prev : true);
529
- setPage((prev) => prev === 1 ? prev : 1);
530
- }
531
- }, [
532
- commentId,
533
- informationId,
534
- setReplyList,
535
- setHasMore,
536
- setPage
537
- ]);
538
- /**
539
- * 点赞回复。
540
- */
541
- const handleLikeReply = useCallback((reply) => {
542
- setReplyList((prevList) => getLikedListData(prevList, reply.id));
543
- replyDetailLikeDebounce(reply, informationId, commentId);
544
- }, [
545
- commentId,
546
- getLikedListData,
547
- informationId,
548
- setReplyList
549
- ]);
550
- /**
551
- * 点踩回复。
552
- */
553
- const handleDislikeReply = useCallback((reply) => {
554
- if (reply.like_flag !== "2") toast.message(t("replyDetail.dislikeHint"));
555
- setReplyList((prevList) => getDislikedListData(prevList, reply.id));
556
- replyDetailDislikeDebounce(reply, informationId, commentId);
557
- }, [
558
- commentId,
559
- getDislikedListData,
560
- informationId,
561
- setReplyList,
562
- t
563
- ]);
564
- const [scrollTop, setScrollTop] = useKeepAliveState(`replay-detail-scroll-top-${commentId}`, 0);
565
- const containerRef = useRef(null);
566
- useScrollPositionEffect(containerRef, scrollTop, setScrollTop, commentId);
567
- useEffect(() => {
568
- if (!commentId || !informationId) return;
569
- if (replyList.length === 0 && hasMore) fetchReplyList();
570
- }, [
571
- commentId,
572
- informationId,
573
- fetchReplyList,
574
- replyList.length,
575
- hasMore
576
- ]);
577
- /**
578
- * 加载更多。
579
- */
580
- const handleLoadMore = useCallback(async () => {
581
- await fetchReplyList();
582
- }, [fetchReplyList]);
583
- return /* @__PURE__ */ jsxs("div", {
584
- ref: containerRef,
585
- className: "w-full pb-[66px]",
586
- children: [replyList.map((item, index) => /* @__PURE__ */ jsx(ReplyCommentItem, {
587
- replyItem: item,
588
- replyComment: handleReplyComment,
589
- onLikeReply: handleLikeReply,
590
- onDislikeReply: handleDislikeReply
591
- }, `${item.id}-${index}`)), /* @__PURE__ */ jsx(InfiniteScroll, {
592
- loadMore: handleLoadMore,
593
- hasMore
594
- })]
595
- });
596
- });
597
- /**
598
- * 回复列表项。
599
- */
600
- function ReplyCommentItem({ replyItem, replyComment, onLikeReply, onDislikeReply }) {
601
- const t = useTranslations("components.biz.business.comment");
602
- const router = useRouter();
603
- const isUnderReview = replyItem.status === "0";
604
- /**
605
- * 点赞回复。
606
- */
607
- function handleLikeClick() {
608
- onLikeReply?.(replyItem);
609
- }
610
- /**
611
- * 点踩回复。
612
- */
613
- function handleDislikeClick() {
614
- onDislikeReply?.(replyItem);
615
- }
616
- /**
617
- * 回复该回复。
618
- */
619
- function handleReplyClick() {
620
- replyComment(replyItem);
621
- }
622
- return /* @__PURE__ */ jsxs("div", {
623
- className: "p-[16px] flex flex-col",
624
- children: [/* @__PURE__ */ jsxs("div", {
625
- className: "flex flex-row justify-between",
626
- children: [/* @__PURE__ */ jsxs("button", {
627
- type: "button",
628
- className: "flex flex-row items-center text-left",
629
- onClick: () => {
630
- router.push(`/profile/${replyItem.user_id}`);
631
- },
632
- children: [/* @__PURE__ */ jsx("div", {
633
- className: "w-[38px] h-[38px] rounded-full overflow-hidden relative bg-bg2",
634
- children: replyItem.avatar && /* @__PURE__ */ jsx(Image, {
635
- src: replyItem.avatar,
636
- fill: true,
637
- objectFit: "cover",
638
- alt: "avatar"
639
- })
640
- }), /* @__PURE__ */ jsxs("div", {
641
- className: "ml-[12px] flex flex-col",
642
- children: [/* @__PURE__ */ jsx("span", {
643
- className: "text-text2 text-[14px] leading-[14px] max-w-[180px] text-ellipsis overflow-hidden whitespace-nowrap",
644
- children: replyItem.user_name
645
- }), /* @__PURE__ */ jsx("span", {
646
- className: "mt-[8px] text-text3 text-[12px] leading-[12px]",
647
- children: /* @__PURE__ */ jsx(TimeDisplay, { timestamp: replyItem.created_at })
648
- })]
649
- })]
650
- }), isUnderReview ? /* @__PURE__ */ jsx("div", {
651
- className: "px-[8px] py-[4px] bg-text3/10 rounded-[12px]",
652
- children: /* @__PURE__ */ jsx("span", {
653
- className: "text-text3 text-[12px] leading-[12px]",
654
- children: t("replyDetail.underReview")
655
- })
656
- }) : /* @__PURE__ */ jsxs("div", {
657
- className: "flex flex-row items-center",
658
- children: [/* @__PURE__ */ jsxs("div", {
659
- className: "px-[4px] flex flex-col items-center",
660
- onClick: handleLikeClick,
661
- children: [replyItem.like_flag === "1" ? /* @__PURE__ */ jsx(SvgGiveLikeSel, { className: "w-[14px] h-[14px]" }) : /* @__PURE__ */ jsx(SvgGiveLike, { className: "w-[14px] h-[14px] text-text3" }), /* @__PURE__ */ jsx("span", {
662
- className: "mt-[4px] text-text3 text-[12px] leading-[12px]",
663
- children: replyItem.like_cnt === "0" ? t("replyDetail.like") : formatCount(replyItem.like_cnt)
664
- })]
665
- }), /* @__PURE__ */ jsxs("div", {
666
- className: "ml-[12px] px-[4px] flex flex-col items-center",
667
- onClick: handleDislikeClick,
668
- children: [replyItem.like_flag === "2" ? /* @__PURE__ */ jsx(SvgUnLikeSel, { className: "w-[14px] h-[14px]" }) : /* @__PURE__ */ jsx(SvgUnLike, { className: "w-[14px] h-[14px] text-text3" }), /* @__PURE__ */ jsx("span", {
669
- className: "mt-[4px] text-text3 text-[12px] leading-[12px]",
670
- children: replyItem.dislike_cnt === "0" ? t("replyDetail.dislike") : formatCount(replyItem.dislike_cnt)
671
- })]
672
- })]
673
- })]
674
- }), /* @__PURE__ */ jsxs("div", {
675
- className: "mt-[4px] pl-[50px] flex flex-col",
676
- children: [
677
- replyItem.text && /* @__PURE__ */ jsx(CommentRichText, {
678
- className: "text-text1 text-[14px] leading-[22px] break-all",
679
- text: replyItem.text,
680
- atUsers: replyItem.at_users
681
- }),
682
- /* @__PURE__ */ jsx(CommentMedia, {
683
- list: replyItem.nine_grid_content_info,
684
- disabled: isUnderReview,
685
- hasText: Boolean(replyItem.text),
686
- playerId: replyItem.id
687
- }),
688
- replyItem.parent_reply && replyItem.parent_reply.text && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
689
- className: "mt-[4px] flex flex-row items-center text-[14px] leading-[22px] relative pl-[8px]",
690
- children: [/* @__PURE__ */ jsx("div", { className: "w-[2px] h-full bg-line1 mr-[8px] absolute left-0 top-0 bottom-0 m-auto" }), /* @__PURE__ */ jsxs("span", {
691
- className: "text-theme1",
692
- children: [
693
- replyItem.parent_reply.user_name,
694
- ":",
695
- replyItem.parent_reply.text && /* @__PURE__ */ jsx("span", {
696
- className: "text-text1",
697
- children: /* @__PURE__ */ jsx(CommentRichText, {
698
- text: replyItem.parent_reply.text,
699
- atUsers: replyItem.parent_reply.at_users
700
- })
701
- })
702
- ]
703
- })]
704
- }), /* @__PURE__ */ jsx("div", {
705
- className: "mt-1",
706
- children: /* @__PURE__ */ jsx(CommentMedia, {
707
- list: replyItem.parent_reply.nine_grid_content_info,
708
- disabled: isUnderReview,
709
- hasText: Boolean(replyItem.parent_reply.text),
710
- playerId: replyItem.parent_reply.id
711
- })
712
- })] }),
713
- /* @__PURE__ */ jsx("div", {
714
- className: "mt-[4px] w-[fit-content] h-[30px] px-[12px] text-text1 text-[14px] leading-[22px] flex flex-row items-center bg-bg1 rounded-[15px]",
715
- onClick: handleReplyClick,
716
- children: /* @__PURE__ */ jsx("span", { children: t("replyDetail.reply") })
717
- })
718
- ]
719
- })]
720
- });
721
- }
722
- /**
723
- * 回复详情弹层。
724
- */
725
- function ReplyDetail({ comment, information, contentType, visible, onClose, onReplyComment, onReplyAdded, onRequireLogin }) {
726
- const t = useTranslations("components.biz.business.comment");
727
- const commentRef = useRef(null);
728
- const [replyComment, setReplyComment] = useState(() => mapApiReplayToReplay({}));
729
- const [isClickReplyButton, setIsClickReplyButton] = useState(false);
730
- const { userInfo, userId: storeUserId } = useUserStore();
731
- const { followIds, setFollowIds } = useFollowIdsState();
732
- const resolvedUserId = userInfo?.userId || userInfo?.user_id || storeUserId || "";
733
- const resolvedUserName = userInfo?.name || userInfo?.nick_name || userInfo?.nickname || userInfo?.user_name || "";
734
- const resolvedUserAvatar = userInfo?.avatar || userInfo?.avatar_url || "";
735
- const followCheckRef = useRef({
736
- commentId: "",
737
- userId: ""
738
- });
739
- /**
740
- * CreateComment 接口 data 字段在不同端/版本里可能是:
741
- * - { comment_id: '123' }
742
- * - ['123']
743
- * - { data: ['123'] }
744
- * 统一兜底解析,避免拿不到 comment_id 后本地用时间戳/0 作为 id,进一步把 parent_id 传错(深层回复会放大这个问题)。
745
- */
746
- function resolveCreatedCommentId(data) {
747
- if (!data) return "";
748
- if (Array.isArray(data)) return String(data[0] || "");
749
- if (typeof data === "object") {
750
- if (Object.prototype.hasOwnProperty.call(data, "comment_id")) return String(data.comment_id ?? "");
751
- if (Array.isArray(data.data)) return String(data.data[0] || "");
752
- }
753
- return "";
754
- }
755
- /**
756
- * 弹窗打开时刷新关注状态(同步 followIds/评论头部按钮)。
757
- */
758
- useEffect(() => {
759
- if (!visible) return;
760
- if (!resolvedUserId || !comment.user_id) return;
761
- if (comment.user_id === "0") return;
762
- if (String(resolvedUserId) === String(comment.user_id)) return;
763
- if (followCheckRef.current.commentId === comment.id && followCheckRef.current.userId === resolvedUserId) return;
764
- followCheckRef.current = {
765
- commentId: comment.id,
766
- userId: resolvedUserId
767
- };
768
- (async () => {
769
- const result = await checkFollowStatus({
770
- app_id: 0,
771
- follower_id: resolvedUserId,
772
- followee_ids: [comment.user_id]
773
- });
774
- if (!result.success || !result.data?.is_following_map) return;
775
- const isFollowed = Boolean(result.data.is_following_map[comment.user_id]);
776
- comment.is_follow = isFollowed;
777
- const next = new Set(followIds);
778
- if (isFollowed) next.add(comment.user_id);
779
- else next.delete(comment.user_id);
780
- setFollowIds(Array.from(next));
781
- })();
782
- }, [
783
- comment,
784
- followIds,
785
- resolvedUserId,
786
- setFollowIds,
787
- visible
788
- ]);
789
- /**
790
- * 回复回复:定位到输入框。
791
- */
792
- const handleReplyComment = useCallback((reply) => {
793
- setReplyComment(reply);
794
- setTimeout(() => {
795
- setIsClickReplyButton(true);
796
- commentRef.current?.focus();
797
- }, 10);
798
- }, []);
799
- /**
800
- * 输入框失焦:重置回复态。
801
- */
802
- function handleInputBlur() {
803
- replyDetailDebounce0(() => {
804
- setIsClickReplyButton(false);
805
- });
806
- }
807
- /**
808
- * 回复评论(统一入口)。
809
- */
810
- async function handlePublishComment({ text, imageVideoInfoList }) {
811
- /**
812
- * 统一处理发布失败提示。
813
- */
814
- const handlePublishFailure = (result) => {
815
- if (result.success) return result;
816
- toast.error(result.message || t("replyDetail.publishReplyFailed"));
817
- return {
818
- ...result,
819
- toastHandled: true
820
- };
821
- };
822
- if (isClickReplyButton) {
823
- const result = await publishReplyReply({
824
- text,
825
- imageVideoInfoList
826
- });
827
- setIsClickReplyButton(false);
828
- return handlePublishFailure(result);
829
- } else {
830
- const result = await publishReplyComment({
831
- text,
832
- imageVideoInfoList
833
- });
834
- setIsClickReplyButton(false);
835
- return handlePublishFailure(result);
836
- }
837
- }
838
- /**
839
- * 发布回复评论(直接回复评论)。
840
- */
841
- async function publishReplyComment({ text, imageVideoInfoList }) {
842
- return await onReplyComment?.({
843
- text,
844
- imageVideoInfoList,
845
- callback: (replyId) => {
846
- const localAtUsers = parseAtUsersFromHtml(text);
847
- if (!replyId || replyId === "0") return;
848
- const newReply = mapApiReplayToReplay({
849
- id: replyId,
850
- user_id: resolvedUserId,
851
- user_name: resolvedUserName,
852
- avatar: resolvedUserAvatar,
853
- text,
854
- created_at: getCurrentSecondTime(),
855
- type: "4",
856
- nine_grid_content_info: imageVideoInfoList,
857
- at_users: localAtUsers
858
- });
859
- updateReplyListFn?.(newReply);
860
- }
861
- }) ?? { success: true };
862
- }
863
- /**
864
- * 发布回复回复(回复某条回复)。
865
- */
866
- async function publishReplyReply({ text, imageVideoInfoList }) {
867
- if (!replyComment?.id || replyComment.id === "0") return {
868
- success: false,
869
- message: t("replyDetail.invalidReplyTarget")
870
- };
871
- const medias = buildCommentMedias(imageVideoInfoList);
872
- const mentionedUserIds = parseTextAtUserIds(text);
873
- const resolvedSourceType = contentType === "video" ? 1 : 2;
874
- try {
875
- const result = await pCommunityCreateComment({
876
- content_id: information.id,
877
- content: replaceAtUserElement(text),
878
- medias,
879
- mentioned_users: mentionedUserIds,
880
- parent_id: replyComment.id,
881
- source_type: resolvedSourceType
882
- }, { revalidate: false });
883
- if (result.code !== 0) return {
884
- success: false,
885
- message: result.message || t("replyDetail.publishReplyFailed")
886
- };
887
- const replyId = resolveCreatedCommentId(result.data);
888
- if (!replyId || replyId === "0") return {
889
- success: false,
890
- message: t("replyDetail.publishReplyFailed")
891
- };
892
- const newReply = mapApiReplayToReplay({
893
- id: replyId,
894
- user_id: resolvedUserId,
895
- user_name: resolvedUserName,
896
- avatar: resolvedUserAvatar,
897
- text,
898
- created_at: getCurrentSecondTime(),
899
- type: "4",
900
- nine_grid_content_info: imageVideoInfoList,
901
- at_users: parseAtUsersFromHtml(text)
902
- });
903
- newReply.parent_reply = replyComment;
904
- updateReplyListFn?.(newReply);
905
- onReplyAdded?.();
906
- return { success: true };
907
- } catch (error) {
908
- console.error("发布回复回复失败:", error);
909
- return {
910
- success: false,
911
- message: t("replyDetail.publishReplyFailed")
912
- };
913
- }
914
- }
915
- const [updateReplyListFn, setUpdateReplyListFn] = useState(null);
916
- /**
917
- * 处理更新回复列表的函数。
918
- */
919
- const handleReplyListUpdate = useCallback((updateFn) => {
920
- setUpdateReplyListFn(() => updateFn);
921
- }, []);
922
- /**
923
- * 评论输入框占位符。
924
- */
925
- const inputPlaceholder = isClickReplyButton ? `回复@${replyComment.user_name}` : "";
926
- /**
927
- * 弹窗开关回调。
928
- */
929
- function handleDialogOpenChange(next) {
930
- if (!next) onClose();
931
- }
932
- return /* @__PURE__ */ jsx(Dialog, {
933
- open: visible,
934
- onOpenChange: handleDialogOpenChange,
935
- children: /* @__PURE__ */ jsxs(DialogContent, {
936
- showCloseButton: false,
937
- className: "fixed left-0 right-0 bottom-0 top-[84px] z-[1000] h-auto w-full max-w-none translate-x-0 translate-y-0 rounded-none bg-bg2 p-0 text-text1 !flex !flex-col !gap-0",
938
- children: [/* @__PURE__ */ jsxs("div", {
939
- className: "w-full h-[60px] bg-bg1 flex items-center justify-center relative",
940
- children: [/* @__PURE__ */ jsx("button", {
941
- type: "button",
942
- className: "w-[48px] focus-within:outline-none focus-within:border-none focus-within:ring-0 h-full flex items-center justify-center absolute left-0 top-0",
943
- onClick: onClose,
944
- children: /* @__PURE__ */ jsx(SvgClose, { className: "w-[16px] h-[16px] text-text1" })
945
- }), /* @__PURE__ */ jsx("span", {
946
- className: "text-[18px] font-bold",
947
- children: t("replyDetail.commentDetail")
948
- })]
949
- }), /* @__PURE__ */ jsxs("div", {
950
- className: "flex-1 min-h-0 w-full overflow-y-auto bg-bg2",
951
- children: [
952
- /* @__PURE__ */ jsx(ReplyDetailHeader, {
953
- comment,
954
- updateFollow: (hasFollow) => {
955
- comment.is_follow = hasFollow;
956
- },
957
- onRequireLogin
958
- }),
959
- /* @__PURE__ */ jsx(ReplyList, {
960
- commentId: comment.id,
961
- informationId: information.id,
962
- handleReplyComment,
963
- onReplyListUpdate: handleReplyListUpdate
964
- }),
965
- /* @__PURE__ */ jsx(CommentInput, {
966
- placeholder: inputPlaceholder,
967
- onInputBlur: handleInputBlur,
968
- onPublish: handlePublishComment,
969
- onRequireLogin,
970
- ref: commentRef
971
- })
972
- ]
973
- })]
974
- })
975
- });
976
- }
977
-
978
- //#endregion
979
- export { ReplyDetail as default };
2
+ "use client";import{debounceFun as e,formatCompactCount as t,getCurrentSecondTime as n,parseTextAtUserIds as r,replaceAtUserElement as i}from"../../../../utils/common.mjs";import{cn as a}from"../../../../utils/cn.mjs";import{useFollowIdsState as o}from"../../../../store/modules/follow-ids-store.mjs";import{useUserStore as s}from"../../../../store/modules/user-store.mjs";import{gCommunityGetComments as c,pCommunityCreateComment as l,pCommunityDislikeComment as u,pCommunityLikeComment as d,pInteractionFollow as f,pInteractionUnfollow as p}from"../../../../service/generated/client.mjs";import{checkFollowStatus as m}from"../../../../utils/follow-service.mjs";import{useRouter as h}from"../../../../utils/use-compatible-router.mjs";import{Image as g}from"../../../ui/image.mjs";import{Dialog as _,DialogContent as v}from"../../../ui/dialog.mjs";import{InfiniteScroll as y}from"../../../ui/infinite-scroll.mjs";import{useLikeDislike as b}from"../../../../hooks/use-like-dislike.mjs";import{useKeepAliveState as x}from"../../../common/keep-scroll-position/index.mjs";import S from"../../../../assets/icons/close.mjs";import C from"../../../../assets/icons/common/follow_sel.mjs";import w from"../../../../assets/icons/common/follow_user.mjs";import{UnfollowConfirmDialog as T}from"../../../common/follow-button/unfollow-confirm-dialog.mjs";import E from"../../../../assets/icons/detail/give_like.mjs";import D from"../../../../assets/icons/detail/give_like_sel.mjs";import O from"./comment-input.mjs";import k from"../../../../assets/icons/detail/un_like.mjs";import A from"../../../../assets/icons/detail/un_like_sel.mjs";import{CommentMedia as j}from"./comment-media.mjs";import{CommentRichText as M}from"./comment-rich-text.mjs";import{TimeDisplay as N}from"./time-display.mjs";import{CommentItem as P}from"./comment-item.mjs";import{mapApiReplayToReplay as F}from"../../../../types/safe-replay.mjs";import{toast as I}from"sonner";import{memo as L,useCallback as R,useEffect as z,useMemo as B,useRef as V,useState as H}from"react";import{Fragment as U,jsx as W,jsxs as G}from"react/jsx-runtime";import{useTranslations as K}from"next-intl";function q(e){if(e==null)return 0;let t=typeof e==`number`?e:Number(e);if(!Number.isNaN(t)&&t>0)return t>0xe8d4a51000?Math.floor(t/1e3):Math.floor(t);let n=Date.parse(String(e));return Number.isNaN(n)?0:Math.floor(n/1e3)}function J(e,t,n){let r=[];return Array.isArray(n)&&n.length>0?(n.forEach(e=>{let t=!!e?.is_video,n=String(e?.media_url||``),i=String(e?.cover_image||``);!n&&!i||r.push({cover_image:i,cover_image_thumbnail:i,cover_image_radio:1,cover_image_resolution:String(e?.cover_image_resolution||``),image_url:t?``:n,image_thumbnail:t?``:n,image_radio:1,image_resolution:String(e?.image_resolution||``),is_video:t,resolution:String(e?.video_resolution||``),video_duration:Number(e?.video_duration||0),video_url:t?n:``,video_size:Number(e?.video_size||0),video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r):(e?.length&&e.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:e,image_thumbnail:e,image_radio:1,image_resolution:``,is_video:!1,resolution:``,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),t?.length&&t.forEach(e=>{r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:``,image_thumbnail:``,image_radio:1,image_resolution:``,is_video:!0,resolution:``,video_duration:0,video_url:e,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}),r)}function Y(e){let t=Z(e.mentioned_users),n=t.length>0?t:Q(e.content||``);return{id:String(e.comment_id??e.id??``),user_name:e.user?.nickname||e.user?.username||``,text:e.content||``,type:`4`,files:[],at_users:n,cover_image:``,nine_grid_content_info:J(e?.images,e?.videos,e?.medias)}}function X(e,t){let n=e.is_liked?`1`:e.is_dislike?`2`:`0`,r=Z(e.mentioned_users),i=r.length>0?r:Q(e.content||``),a=String(e.comment_id??e.id??``),o=typeof e.like_count==`number`?e.like_count:0,s=F({id:a,like_cnt:(e.is_liked&&o===0?1:o).toString(),dislike_cnt:(e.dislike_count||0).toString(),created_at:q(e.create_time),text:e.content||``,type:`4`,like_flag:n,user_id:e.user_id||``,user_name:e.user?.nickname||e.user?.username||``,avatar:e.user?.avatar_url||``,reply_cnt:(e.reply_count||0).toString(),nine_grid_content_info:J(e?.images,e?.videos,e?.medias),at_users:i,parent_reply:void 0});return t&&(s.parent_reply=Y(t)),s}function Z(e){return Array.isArray(e)?e.map(e=>({user_id:e.user_id||``,name:e.nickname||e.username||``,avatar:e.avatar_url||``,birthday:``,signature:e.signature||``})):[]}function Q(e){if(!e)return[];let t=new Map,n=/<span[^>]*class=['"]mention['"][^>]*data-id=['"]([^'"]+)['"][^>]*>@([^<]*)<\/span>/g,r;for(;(r=n.exec(e))!==null;){let e=r[1]?String(r[1]):``,n=(r[2]?String(r[2]):``).replace(/^@/,``)||e;!e||t.has(e)||t.set(e,{user_id:e,name:n,avatar:``,birthday:``,signature:``})}if(t.size>0)return Array.from(t.values());let i=/<@_user>(\w+)<\/@_user>/g;for(;(r=i.exec(e))!==null;){let e=r[1]?String(r[1]):``;!e||t.has(e)||t.set(e,{user_id:e,name:e,avatar:``,birthday:``,signature:``})}return Array.from(t.values())}function ee(e){return!Array.isArray(e)||e.length===0?[]:e.map(e=>{let t=!!e.is_video,n=t?String(e.video_url||``):String(e.image_url||e.cover_image||``),r=String(e.cover_image||e.image_url||``);return{media_url:n,is_video:t,image_resolution:String(e.image_resolution||``),cover_image:r,cover_image_resolution:String(e.cover_image_resolution||``),video_resolution:String(e.resolution||``),video_duration:Number(e.video_duration||0),video_size:Number(e.video_size||0)}}).filter(e=>!!e.media_url)}function $(e,t){let n=[];return e.forEach(e=>{n.push(X(e,t)),e.sub_comments?.length&&n.push(...$(e.sub_comments,e))}),n}const te=e((e,t,n)=>{try{if(!e?.id)return;d({comment_id:e.id,is_like:e.like_flag!==`1`},{revalidate:!1})}catch(e){console.error(`点赞回复失败:`,e)}},200),ne=e((e,t,n)=>{try{if(!e?.id)return;u({comment_id:e.id,is_dislike:e.like_flag!==`2`},{revalidate:!1})}catch(e){console.error(`点踩回复失败:`,e)}},200),re=L(({comment:e,updateFollow:t,onRequireLogin:n})=>{let{userInfo:r,userId:i,isLogin:a}=s(),o=r?.userId||r?.user_id||i||``;return W(`div`,{className:`w-full bg-bg1`,children:W(P,{comment:e,variant:`light`,isLogin:a,onRequireLogin:n,rightSlot:B(()=>!!o&&String(o)===String(e.user_id||``),[e.user_id,o])?W(U,{}):W(ie,{userId:e.user_id,hasFollow:e.is_follow,onChange:t,onRequireLogin:n}),showReplyButton:!1})})});function ie({userId:e,hasFollow:t=!1,onChange:n,onRequireLogin:r}){let i=K(`components.biz.business.comment`),{isLogin:c,userInfo:l,userId:u}=s(),{followIds:d}=o(),[m,h]=H(t),[g,_]=H(!1),v=l?.userId||l?.user_id||u||``,y=B(()=>!!v&&String(v)===String(e||``),[e,v]),b=B(()=>t||d.includes(e),[d,t,e]);z(()=>{h(b)},[b]);let x=R(async()=>{try{if(!v||!e||e===`0`){I.error(i(`replyDetail.loginRequired`));return}if(m){let t=await p({follower_id:String(v),followee_id:e});if(t.code!==0){I.error(t.message||i(`replyDetail.unfollowFailed`));return}}else{let t=await f({follower_id:String(v),followee_id:e});if(t.code!==0){I.error(t.message||i(`replyDetail.followFailed`));return}}window.sensors?.track(`detail_follow_click`,{object_id:``,action:m?`取消关注`:`关注`,author_id:e}),sessionStorage.setItem(`user_page_refresh`,`1`)}catch(e){console.error(`关注或取消关注失败:`,e),I.error(i(m?`replyDetail.unfollowFailed`:`replyDetail.followFailed`));return}let t=!m;n?.(t),h(t);let{followIds:r,setFollowIds:a}=o.getState(),s=new Set(r);t?s.add(e):s.delete(e),a(Array.from(s))},[e,m,n,v,i]),S=R(()=>{if(!c){r?.();return}if(m){_(!0);return}x()},[x,m,c,r]);function E(){_(!1),x()}function D(){_(!1)}return y||!e||e===`0`?null:G(U,{children:[W(`div`,{className:a(`h-[28px] rounded-[14px] px-[8px] border border-solid cursor-pointer flex items-center justify-center`,m?`border-text3`:`border-theme5`),onClick:S,children:m?G(U,{children:[W(C,{className:`w-[12px] h-[12px] text-text3 shrink-0`}),W(`span`,{className:`text-text3 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`replyDetail.followed`)})]}):G(U,{children:[W(w,{className:`block w-[12px] h-[12px] text-theme5 shrink-0`}),W(`span`,{className:`block text-theme5 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`replyDetail.follow`)})]})}),W(T,{open:g,onOpenChange:_,onCancel:D,onConfirm:E})]})}const ae=e(e=>{e()},0);function oe(e,t,n,r){let i=V(!1);z(()=>{i.current=!1},[r]),z(()=>{let r=e.current;if(!r)return;!i.current&&t>0&&(r.scrollTop=t,i.current=!0);let a=()=>{i.current=!0,n(r.scrollTop)};return r.addEventListener(`scroll`,a,{passive:!0}),()=>r.removeEventListener(`scroll`,a)},[e,n,t,r])}const se=L(({commentId:e,informationId:t,handleReplyComment:n,onReplyListUpdate:r})=>{let i=K(`components.biz.business.comment`),[a,o]=x(`replay-detail-list-${e}`,[]),[s,l]=x(`replay-detail-has-more-${e}`,!0),[u,d]=x(`replay-detail-page-${e}`,1),{getLikedListData:f,getDislikedListData:p}=b(),m=V(!1),h=R(async()=>{if(!(!e||!t)&&!m.current){m.current=!0;try{let n=await c({content_id:t,parent_id:e,page:u,page_size:20,sort_by:`latest`});if(n.code!==0)throw Error(n.message||i(`replyDetail.fetchRepliesFailed`));let r=n.data?.data?.comments??[],a=$(r);((n.data?.data?.has_more??!1)===!1||r.length<20)&&l(!1),o(e=>{let t=new Set(e.map(e=>e.id)),n=a.filter(e=>!t.has(e.id));return[...e,...n]}),a.length>0&&d(u+1)}catch(e){console.error(`获取回复列表失败:`,e),l(!1)}finally{m.current=!1}}},[e,t,u,o,l,d,i]),g=R(e=>{o(t=>[e,...t])},[o]);z(()=>{r(g)},[r,g]),z(()=>{e&&t&&(o(e=>e.length===0?e:[]),l(e=>e===!0?e:!0),d(e=>e===1?e:1))},[e,t,o,l,d]);let _=R(n=>{o(e=>f(e,n.id)),te(n,t,e)},[e,f,t,o]),v=R(n=>{n.like_flag!==`2`&&I.message(i(`replyDetail.dislikeHint`)),o(e=>p(e,n.id)),ne(n,t,e)},[e,p,t,o,i]),[S,C]=x(`replay-detail-scroll-top-${e}`,0),w=V(null);oe(w,S,C,e),z(()=>{!e||!t||a.length===0&&s&&h()},[e,t,h,a.length,s]);let T=R(async()=>{await h()},[h]);return G(`div`,{ref:w,className:`w-full pb-[66px]`,children:[a.map((e,t)=>W(ce,{replyItem:e,replyComment:n,onLikeReply:_,onDislikeReply:v},`${e.id}-${t}`)),W(y,{loadMore:T,hasMore:s})]})});function ce({replyItem:e,replyComment:n,onLikeReply:r,onDislikeReply:i}){let a=K(`components.biz.business.comment`),o=h(),s=e.status===`0`;function c(){r?.(e)}function l(){i?.(e)}function u(){n(e)}return G(`div`,{className:`p-[16px] flex flex-col`,children:[G(`div`,{className:`flex flex-row justify-between`,children:[G(`button`,{type:`button`,className:`flex flex-row items-center text-left`,onClick:()=>{o.push(`/profile/${e.user_id}`)},children:[W(`div`,{className:`w-[38px] h-[38px] rounded-full overflow-hidden relative bg-bg2`,children:e.avatar&&W(g,{src:e.avatar,fill:!0,objectFit:`cover`,alt:`avatar`})}),G(`div`,{className:`ml-[12px] flex flex-col`,children:[W(`span`,{className:`text-text2 text-[14px] leading-[14px] max-w-[180px] text-ellipsis overflow-hidden whitespace-nowrap`,children:e.user_name}),W(`span`,{className:`mt-[8px] text-text3 text-[12px] leading-[12px]`,children:W(N,{timestamp:e.created_at})})]})]}),s?W(`div`,{className:`px-[8px] py-[4px] bg-text3/10 rounded-[12px]`,children:W(`span`,{className:`text-text3 text-[12px] leading-[12px]`,children:a(`replyDetail.underReview`)})}):G(`div`,{className:`flex flex-row items-center`,children:[G(`div`,{className:`px-[4px] flex flex-col items-center`,onClick:c,children:[e.like_flag===`1`?W(D,{className:`w-[14px] h-[14px]`}):W(E,{className:`w-[14px] h-[14px] text-text3`}),W(`span`,{className:`mt-[4px] text-text3 text-[12px] leading-[12px]`,children:e.like_cnt===`0`?a(`replyDetail.like`):t(e.like_cnt)})]}),G(`div`,{className:`ml-[12px] px-[4px] flex flex-col items-center`,onClick:l,children:[e.like_flag===`2`?W(A,{className:`w-[14px] h-[14px]`}):W(k,{className:`w-[14px] h-[14px] text-text3`}),W(`span`,{className:`mt-[4px] text-text3 text-[12px] leading-[12px]`,children:e.dislike_cnt===`0`?a(`replyDetail.dislike`):t(e.dislike_cnt)})]})]})]}),G(`div`,{className:`mt-[4px] pl-[50px] flex flex-col`,children:[e.text&&W(M,{className:`text-text1 text-[14px] leading-[22px] break-all`,text:e.text,atUsers:e.at_users}),W(j,{list:e.nine_grid_content_info,disabled:s,hasText:!!e.text,playerId:e.id}),e.parent_reply&&e.parent_reply.text&&G(U,{children:[G(`div`,{className:`mt-[4px] flex flex-row items-center text-[14px] leading-[22px] relative pl-[8px]`,children:[W(`div`,{className:`w-[2px] h-full bg-line1 mr-[8px] absolute left-0 top-0 bottom-0 m-auto`}),G(`span`,{className:`text-theme1`,children:[e.parent_reply.user_name,`:`,e.parent_reply.text&&W(`span`,{className:`text-text1`,children:W(M,{text:e.parent_reply.text,atUsers:e.parent_reply.at_users})})]})]}),W(`div`,{className:`mt-1`,children:W(j,{list:e.parent_reply.nine_grid_content_info,disabled:s,hasText:!!e.parent_reply.text,playerId:e.parent_reply.id})})]}),W(`div`,{className:`mt-[4px] w-[fit-content] h-[30px] px-[12px] text-text1 text-[14px] leading-[22px] flex flex-row items-center bg-bg1 rounded-[15px]`,onClick:u,children:W(`span`,{children:a(`replyDetail.reply`)})})]})]})}function le({comment:e,information:t,contentType:a,visible:c,onClose:u,onReplyComment:d,onReplyAdded:f,onRequireLogin:p}){let h=K(`components.biz.business.comment`),g=V(null),[y,b]=H(()=>F({})),[x,C]=H(!1),{userInfo:w,userId:T}=s(),{followIds:E,setFollowIds:D}=o(),k=w?.userId||w?.user_id||T||``,A=w?.name||w?.nick_name||w?.nickname||w?.user_name||``,j=w?.avatar||w?.avatar_url||``,M=V({commentId:``,userId:``});function N(e){if(!e)return``;if(Array.isArray(e))return String(e[0]||``);if(typeof e==`object`){if(Object.prototype.hasOwnProperty.call(e,`comment_id`))return String(e.comment_id??``);if(Array.isArray(e.data))return String(e.data[0]||``)}return``}z(()=>{c&&(!k||!e.user_id||e.user_id!==`0`&&String(k)!==String(e.user_id)&&(M.current.commentId===e.id&&M.current.userId===k||(M.current={commentId:e.id,userId:k},(async()=>{let t=await m({app_id:0,follower_id:k,followee_ids:[e.user_id]});if(!t.success||!t.data?.is_following_map)return;let n=!!t.data.is_following_map[e.user_id];e.is_follow=n;let r=new Set(E);n?r.add(e.user_id):r.delete(e.user_id),D(Array.from(r))})())))},[e,E,k,D,c]);let P=R(e=>{b(e),setTimeout(()=>{C(!0),g.current?.focus()},10)},[]);function L(){ae(()=>{C(!1)})}async function B({text:e,imageVideoInfoList:t}){let n=e=>e.success?e:(I.error(e.message||h(`replyDetail.publishReplyFailed`)),{...e,toastHandled:!0});if(x){let r=await q({text:e,imageVideoInfoList:t});return C(!1),n(r)}else{let r=await U({text:e,imageVideoInfoList:t});return C(!1),n(r)}}async function U({text:e,imageVideoInfoList:t}){return await d?.({text:e,imageVideoInfoList:t,callback:r=>{let i=Q(e);if(!r||r===`0`)return;let a=F({id:r,user_id:k,user_name:A,avatar:j,text:e,created_at:n(),type:`4`,nine_grid_content_info:t,at_users:i});J?.(a)}})??{success:!0}}async function q({text:e,imageVideoInfoList:o}){if(!y?.id||y.id===`0`)return{success:!1,message:h(`replyDetail.invalidReplyTarget`)};let s=ee(o),c=r(e),u=a===`video`?1:2;try{let r=await l({content_id:t.id,content:i(e),medias:s,mentioned_users:c,parent_id:y.id,source_type:u},{revalidate:!1});if(r.code!==0)return{success:!1,message:r.message||h(`replyDetail.publishReplyFailed`)};let a=N(r.data);if(!a||a===`0`)return{success:!1,message:h(`replyDetail.publishReplyFailed`)};let d=F({id:a,user_id:k,user_name:A,avatar:j,text:e,created_at:n(),type:`4`,nine_grid_content_info:o,at_users:Q(e)});return d.parent_reply=y,J?.(d),f?.(),{success:!0}}catch(e){return console.error(`发布回复回复失败:`,e),{success:!1,message:h(`replyDetail.publishReplyFailed`)}}}let[J,Y]=H(null),X=R(e=>{Y(()=>e)},[]),Z=x?`回复@${y.user_name}`:``;function $(e){e||u()}return W(_,{open:c,onOpenChange:$,children:G(v,{showCloseButton:!1,className:`fixed left-0 right-0 bottom-0 top-[84px] z-[1000] h-auto w-full max-w-none translate-x-0 translate-y-0 rounded-none bg-bg2 p-0 text-text1 !flex !flex-col !gap-0`,children:[G(`div`,{className:`w-full h-[60px] bg-bg1 flex items-center justify-center relative`,children:[W(`button`,{type:`button`,className:`w-[48px] focus-within:outline-none focus-within:border-none focus-within:ring-0 h-full flex items-center justify-center absolute left-0 top-0`,onClick:u,children:W(S,{className:`w-[16px] h-[16px] text-text1`})}),W(`span`,{className:`text-[18px] font-bold`,children:h(`replyDetail.commentDetail`)})]}),G(`div`,{className:`flex-1 min-h-0 w-full overflow-y-auto bg-bg2`,children:[W(re,{comment:e,updateFollow:t=>{e.is_follow=t},onRequireLogin:p}),W(se,{commentId:e.id,informationId:t.id,handleReplyComment:P,onReplyListUpdate:X}),W(O,{placeholder:Z,onInputBlur:L,onPublish:B,onRequireLogin:p,ref:g})]})]})})}export{le as default};