@funhub/platform 0.2.0-beta.0 → 0.2.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/assets/icons/detail/collect_nor.mjs +2 -0
  2. package/dist/assets/icons/detail/collect_sel.mjs +2 -0
  3. package/dist/assets/icons/detail/share.mjs +2 -0
  4. package/dist/assets/icons/marquee-enter.mjs +2 -0
  5. package/dist/assets/icons/right_arrow.mjs +2 -0
  6. package/dist/assets/icons/search/avatar.mjs +2 -0
  7. package/dist/assets/images/marquee.mjs +2 -0
  8. package/dist/biz.d.mts +2 -9
  9. package/dist/biz.mjs +1 -1
  10. package/dist/common.d.mts +2 -5
  11. package/dist/common.mjs +1 -1
  12. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  13. package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -1
  14. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -1
  15. package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -1
  16. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  17. package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -1
  18. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  19. package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -1
  20. package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
  21. package/dist/components/biz/business/channel-list/client.mjs +1 -1
  22. package/dist/components/biz/business/channel-list/default-props.mjs +1 -1
  23. package/dist/components/biz/business/detail/shared/detail-introduction.mjs +2 -0
  24. package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
  25. package/dist/components/biz/business/detail/shared/registry.d.mts +1 -36
  26. package/dist/components/biz/business/detail/shared/registry.mjs +1 -1
  27. package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -1
  28. package/dist/components/biz/business/detail/video-detail-recommend/client.d.mts +13 -1
  29. package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
  30. package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
  31. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +1 -1
  32. package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
  33. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +3 -4
  34. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
  35. package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
  36. package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
  37. package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
  38. package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -1
  39. package/dist/components/biz/business/header-search/shared/logo.mjs +1 -1
  40. package/dist/components/biz/business/header-search/shared/search.mjs +1 -1
  41. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  42. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
  43. package/dist/components/biz/business/index.d.mts +1 -10
  44. package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
  45. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
  46. package/dist/components/biz/business/marquee/client.mjs +1 -1
  47. package/dist/components/biz/business/marquee/marquee.module.mjs +6 -2
  48. package/dist/components/biz/business/profile/index.d.mts +1 -1
  49. package/dist/components/biz/business/profile/profile-header/client.d.mts +1 -2
  50. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  51. package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
  52. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
  53. package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
  54. package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
  55. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
  56. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
  57. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
  58. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -5
  59. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
  60. package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
  61. package/dist/components/biz/business/search-history/client.mjs +1 -1
  62. package/dist/components/biz/business/search-history/schema.mjs +1 -1
  63. package/dist/components/biz/business/search-input/client.mjs +1 -1
  64. package/dist/components/biz/business/shortcut-grid/client.mjs +1 -1
  65. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  66. package/dist/components/common/collection-popup/collection-create-modal.mjs +2 -0
  67. package/dist/components/common/collection-popup/index.d.mts +0 -1
  68. package/dist/components/common/collection-popup/index.mjs +1 -1
  69. package/dist/components/common/icons/setting.mjs +1 -1
  70. package/dist/components/common/list/collection-list/collection-list-item.d.mts +0 -6
  71. package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -1
  72. package/dist/components/common/list/collection-list/collection-list.d.mts +0 -6
  73. package/dist/components/common/list/collection-list/collection-list.mjs +1 -1
  74. package/dist/components/common/series-episodes/index.d.mts +1 -3
  75. package/dist/components/common/series-episodes/index.mjs +1 -1
  76. package/dist/components/common/skeleton/search-video-card-skeleton.mjs +2 -0
  77. package/dist/components/common/tab-bar/index.mjs +1 -1
  78. package/dist/components/pages/collection-detail/detail.mjs +1 -1
  79. package/dist/components/pages/edit/page.mjs +1 -1
  80. package/dist/components/pages/home/client.mjs +1 -1
  81. package/dist/components/pages/search/page-client.mjs +1 -1
  82. package/dist/components/pages/search/search-result/index.mjs +1 -1
  83. package/dist/components/pages/search/search-result/search-all.mjs +1 -1
  84. package/dist/components/pages/search/search-result/search-user.mjs +1 -1
  85. package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
  86. package/dist/components/pages/search/search-utils.mjs +2 -0
  87. package/dist/components/pages/search/top-header.mjs +1 -1
  88. package/dist/components/pages/search-result/page-client.mjs +1 -1
  89. package/dist/components/pages/search-result/search-all.mjs +1 -1
  90. package/dist/components/pages/search-result/search-result-skeleton.mjs +2 -0
  91. package/dist/components/pages/search-result/search-tab.mjs +1 -1
  92. package/dist/components/pages/search-result/search-user.mjs +1 -1
  93. package/dist/components/pages/search-result/search-video.mjs +2 -0
  94. package/dist/components/pages/settings/_components/settings.mjs +1 -1
  95. package/dist/components/pages/video-list/video-list-client.mjs +1 -1
  96. package/dist/components/pages/video-list/video-list-item.mjs +2 -0
  97. package/dist/components/pages/video-list/video-list-skeleton.d.mts +3 -2
  98. package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -1
  99. package/dist/components/ui/box.d.mts +1 -1
  100. package/dist/i18n/locales/en.mjs +2 -2
  101. package/dist/i18n/locales/zh-CN.mjs +2 -2
  102. package/dist/materials.d.mts +1 -6
  103. package/dist/materials.mjs +1 -1
  104. package/dist/service/generated/client.d.mts +2 -30
  105. package/dist/service/generated/client.mjs +1 -1
  106. package/dist/service/generated/tanstack.d.mts +2 -37
  107. package/dist/service/generated/tanstack.mjs +1 -1
  108. package/dist/service.d.mts +3 -3
  109. package/dist/service.mjs +1 -1
  110. package/dist/types.d.mts +7 -437
  111. package/dist/utils/helper.d.mts +1 -1
  112. package/dist/utils/helper.mjs +1 -1
  113. package/dist/utils/schema/inspector.d.mts +2 -2
  114. package/package.json +1 -1
  115. package/theme.css +59 -170
  116. package/dist/assets/icons/channel-list/channel-active-indicator.mjs +0 -2
  117. package/dist/assets/icons/common/header-menu.mjs +0 -2
  118. package/dist/assets/icons/common/header-search-icon.mjs +0 -2
  119. package/dist/assets/icons/common/right_arrow_thin.mjs +0 -2
  120. package/dist/assets/icons/marquee-close.mjs +0 -2
  121. package/dist/assets/icons/marquee-speaker.mjs +0 -2
  122. package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +0 -2
  123. package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +0 -2
  124. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/client.d.mts +0 -8
  125. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/client.mjs +0 -2
  126. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/index.d.mts +0 -5
  127. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/material.d.mts +0 -45
  128. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/material.mjs +0 -2
  129. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/schema.d.mts +0 -9
  130. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/schema.mjs +0 -2
  131. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/server.d.mts +0 -11
  132. package/dist/components/biz/business/detail/video-detail-waterfall-recommend/server.mjs +0 -2
  133. package/dist/components/biz/business/header-search/shared/header-action.mjs +0 -2
  134. package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +0 -2
  135. package/dist/components/biz/business/header-search/shared/header-shell.mjs +0 -2
  136. package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
  137. package/dist/components/biz/business/hot-recommend/client.mjs +0 -2
  138. package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
  139. package/dist/components/biz/business/hot-recommend/material.d.mts +0 -24
  140. package/dist/components/biz/business/hot-recommend/material.mjs +0 -2
  141. package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -23
  142. package/dist/components/biz/business/hot-recommend/schema.mjs +0 -2
  143. package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
  144. package/dist/components/biz/business/hot-recommend/server.mjs +0 -2
  145. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +0 -2
  146. package/dist/components/biz/business/ranking-recommend/client.d.mts +0 -15
  147. package/dist/components/biz/business/ranking-recommend/client.mjs +0 -70
  148. package/dist/components/biz/business/ranking-recommend/material.d.mts +0 -23
  149. package/dist/components/biz/business/ranking-recommend/material.mjs +0 -2
  150. package/dist/components/biz/business/ranking-recommend/schema.d.mts +0 -23
  151. package/dist/components/biz/business/ranking-recommend/schema.mjs +0 -2
  152. package/dist/components/biz/business/ranking-recommend/server.d.mts +0 -11
  153. package/dist/components/biz/business/ranking-recommend/server.mjs +0 -2
  154. package/dist/components/biz/business/ranking-recommend/shared.d.mts +0 -15
  155. package/dist/components/biz/business/ranking-recommend/shared.mjs +0 -2
  156. package/dist/components/biz/business/search-waterfall-recommend/client.d.mts +0 -9
  157. package/dist/components/biz/business/search-waterfall-recommend/client.mjs +0 -2
  158. package/dist/components/biz/business/search-waterfall-recommend/index.d.mts +0 -4
  159. package/dist/components/biz/business/search-waterfall-recommend/material.d.mts +0 -40
  160. package/dist/components/biz/business/search-waterfall-recommend/material.mjs +0 -2
  161. package/dist/components/biz/business/search-waterfall-recommend/server.d.mts +0 -8
  162. package/dist/components/biz/business/search-waterfall-recommend/server.mjs +0 -2
  163. package/dist/components/common/collection-popup/create-collection-sheet.d.mts +0 -41
  164. package/dist/components/common/collection-popup/create-collection-sheet.mjs +0 -2
  165. package/dist/components/common/list/collection-list/collection-select-icon.mjs +0 -2
  166. package/dist/components/common/list/waterfall-recommend/index.d.mts +0 -2
  167. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.d.mts +0 -99
  168. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +0 -2
  169. package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +0 -2
  170. package/dist/components/pages/search/search-result/shared.mjs +0 -2
  171. package/dist/components/pages/search-result/search-empty.mjs +0 -2
  172. package/dist/components/pages/search-result/search-video-info.mjs +0 -2
  173. package/dist/components/pages/search-result/shared.mjs +0 -2
  174. package/dist/components/pages/search-result/top-header.mjs +0 -2
  175. package/dist/components/pages/video-list/video-list-recommend-item.mjs +0 -2
package/dist/biz.d.mts CHANGED
@@ -108,10 +108,6 @@ import { HomeRecommendWaterfallClient } from "./components/biz/business/home-rec
108
108
  import { schema as schema$22 } from "./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";
109
109
  import { HomeRecommendWaterfall } from "./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";
110
110
  import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
111
- import { hotRecommendInspectorPropsSchema } from "./components/biz/business/hot-recommend/schema.mjs";
112
- import { HotRecommendClient, HotRecommendProps } from "./components/biz/business/hot-recommend/client.mjs";
113
- import { HotRecommendServer } from "./components/biz/business/hot-recommend/server.mjs";
114
- import { hotRecommendMaterial } from "./components/biz/business/hot-recommend/material.mjs";
115
111
  import { imageTextRecommendInspectorPropsSchema } from "./components/biz/business/image-text-recommend/schema.mjs";
116
112
  import { ImageTextRecommendClient, ImageTextRecommendProps } from "./components/biz/business/image-text-recommend/client.mjs";
117
113
  import { ImageTextRecommendServer } from "./components/biz/business/image-text-recommend/server.mjs";
@@ -127,7 +123,7 @@ import { defaultProps as defaultProps$5 } from "./components/biz/business/post-c
127
123
  import { BasicPostCardClient } from "./components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs";
128
124
  import { schema as schema$5 } from "./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";
129
125
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./components/biz/business/profile/profile-header/schema.mjs";
130
- import { UserProfileHeaderClient, defaultBackground } from "./components/biz/business/profile/profile-header/client.mjs";
126
+ import { UserProfileHeaderClient } from "./components/biz/business/profile/profile-header/client.mjs";
131
127
  import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
132
128
  import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./components/biz/business/profile/profile-main/schema.mjs";
133
129
  import { UserProfileMainClient } from "./components/biz/business/profile/profile-main/client.mjs";
@@ -166,9 +162,6 @@ import { SearchInputInspectorProps, searchInputInspectorDefaultProps, searchInpu
166
162
  import { SearchInputClient, SearchInputProps } from "./components/biz/business/search-input/client.mjs";
167
163
  import { SearchInputServer } from "./components/biz/business/search-input/server.mjs";
168
164
  import { searchInputMaterial } from "./components/biz/business/search-input/material.mjs";
169
- import { SearchWaterfallRecommendClient, SearchWaterfallRecommendProps } from "./components/biz/business/search-waterfall-recommend/client.mjs";
170
- import { SearchWaterfallRecommendServer } from "./components/biz/business/search-waterfall-recommend/server.mjs";
171
- import { searchWaterfallRecommendMaterial } from "./components/biz/business/search-waterfall-recommend/material.mjs";
172
165
  import { TabBarInspectorProps, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema } from "./components/biz/business/tab-bar/schema.mjs";
173
166
  import { TabBarClient, TabBarItem, TabBarItemConfigType, TabBarProps } from "./components/biz/business/tab-bar/client.mjs";
174
167
  import { TabBarServer } from "./components/biz/business/tab-bar/server.mjs";
@@ -185,4 +178,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
185
178
  import "./components/biz/example/button/index.mjs";
186
179
  import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
187
180
  import "./components/biz/renderer/index.mjs";
188
- export { AdProvider, AdProviderProps, AdProviderValue, AdRuntimeProvider, AdRuntimeProviderProps, AdsMatchExtData, AdsMatchQueryOptions, BannerAd, BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdServer, BannerAdStyleSize, BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FeedAdBadge, FeedAdItemLike, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingAd, FloatingAdEditableProps, FloatingAdInspectorProps, FloatingAdItem, FloatingAdProps, FloatingAdServer, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, HotRecommendClient, HotRecommendProps, HotRecommendServer, IconAd, IconAdInspectorProps, IconAdItem, IconAdProps, IconAdServer, ImageTextRecommendClient, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, PopupAd, PopupAdInspectorProps, PopupAdItem, PopupAdProps, PopupAdServer, ProfileHeaderInspectorProps, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputInspectorProps, SearchInputProps, SearchInputServer, SearchWaterfallRecommendClient, SearchWaterfallRecommendProps, SearchWaterfallRecommendServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarInspectorProps, TabBarItem, TabBarItemConfigType, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextAd, TextAdInspectorProps, TextAdItem, TextAdProps, TextAdServer, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, adaptBannerAdProps, adaptFloatingAdItem, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdMaterial, bannerAdStyleSizeOptions, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildAdsMatchRequest, buildContentUrl, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, createAdsMatchPrefetchItem, createAdsMatchQueryFn, customStylesToInline, defaultBackground, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema, floatingAdMaterial, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getAdsMatchQueryKey, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, getFeedAdIcon, getFeedAdJumpUrl, getFirstMatchedMaterial, hasMatchedAds, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, hotRecommendInspectorPropsSchema, hotRecommendMaterial, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema, iconAdMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, isFeedAdItem, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, parseAdsMatchExtData, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema, popupAdMaterial, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, resolveAdsAppCode, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, searchWaterfallRecommendMaterial, sortAdsMatchMaterials, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textAdInspectorDefaultProps, textAdInspectorPropsSchema, textAdMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem, useAdProvider };
181
+ export { AdProvider, AdProviderProps, AdProviderValue, AdRuntimeProvider, AdRuntimeProviderProps, AdsMatchExtData, AdsMatchQueryOptions, BannerAd, BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdServer, BannerAdStyleSize, BaseComponentProps, BasicBannerClient as BasicBanner, defaultProps as BasicBannerDefaultData, BasicBanner as BasicBannerMaterialComponent, schema as BasicBannerSchema, BasicFeatureGridClient as BasicFeatureGrid, defaultProps$1 as BasicFeatureGridDefaultData, schema$1 as BasicFeatureGridSchema, BasicFullscreen, FullscreenFeedClient as BasicFullscreenFeed, defaultProps$2 as BasicFullscreenFeedDefaultData, schema$2 as BasicFullscreenFeedSchema, BasicLogoClient as BasicLogo, defaultProps$3 as BasicLogoDefaultData, schema$3 as BasicLogoSchema, BasicNavBarClient as BasicNavBar, defaultProps$4 as BasicNavBarDefaultData, schema$4 as BasicNavBarSchema, BasicPostCardClient as BasicPostCard, defaultProps$5 as BasicPostCardDefaultData, schema$5 as BasicPostCardSchema, BasicRecommendedUsersClient as BasicRecommendedUsers, defaultProps$6 as BasicRecommendedUsersDefaultData, schema$6 as BasicRecommendedUsersSchema, BasicSearchClient as BasicSearch, BasicSearchBarClient as BasicSearchBar, defaultProps$7 as BasicSearchBarDefaultData, schema$7 as BasicSearchBarSchema, defaultProps$8 as BasicSearchDefaultData, schema$8 as BasicSearchSchema, Button, ButtonClient, ButtonInspectorProps, ButtonProps, CARD_SPEC_MAP, CardCornerMode, CardGrid2x3Client as CardGrid2x3, defaultProps$9 as CardGrid2x3DefaultData, CardGrid2x3InfiniteClient as CardGrid2x3Infinite, defaultProps$10 as CardGrid2x3InfiniteDefaultData, schema$9 as CardGrid2x3InfiniteSchema, schema$10 as CardGrid2x3Schema, CardGrid2x4Client as CardGrid2x4, defaultProps$11 as CardGrid2x4DefaultData, schema$11 as CardGrid2x4Schema, CardGrid3x3Client as CardGrid3x3, defaultProps$12 as CardGrid3x3DefaultData, CardGrid3x3InfiniteClient as CardGrid3x3Infinite, defaultProps$13 as CardGrid3x3InfiniteDefaultData, schema$12 as CardGrid3x3InfiniteSchema, schema$13 as CardGrid3x3Schema, defaultProps$14 as CardItemDefaultData, schema$14 as CardItemSchema, defaultProps$15 as CardLayoutDefaultData, schema$15 as CardLayoutSchema, CardSpec, ChannelDataItem, CollectTab, CollectTabProps, CollectTabServer, CommonStyleSchema, ComponentMaterial, ComponentSchema, ComponentType, ContentBlockItem, DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType, DetailSearchBarClient as DetailSearchBar, defaultProps$16 as DetailSearchBarDefaultData, schema$16 as DetailSearchBarSchema, EventDefinition, EventSchema, ExtractedDataItem, FeedAdBadge, FeedAdItemLike, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, FloatingAd, FloatingAdEditableProps, FloatingAdInspectorProps, FloatingAdItem, FloatingAdProps, FloatingAdServer, FloatingBall, FloatingBallClient, FloatingBallClientProps, FloatingBallInspectorProps, FullscreenPostFeedClient as FullscreenFeedClient, defaultProps$19 as FullscreenPostFeedDefaultData, schema$19 as FullscreenPostFeedSchema, FullscreenVideoFeedClient as FullscreenVideoClient, defaultProps$20 as FullscreenVideoFeedDefaultData, schema$20 as FullscreenVideoFeedSchema, HistoryTab, HistoryTabProps, HistoryTabServer, HomeRecommendGridClient as HomeRecommendGrid, homeRecommendGridInspectorDefaultProps as HomeRecommendGridDefaultData, HomeRecommendGrid as HomeRecommendGridMaterialComponent, schema$21 as HomeRecommendGridSchema, HomeRecommendWaterfallClient as HomeRecommendWaterfall, homeRecommendWaterfallInspectorDefaultProps as HomeRecommendWaterfallDefaultData, HomeRecommendWaterfall as HomeRecommendWaterfallMaterialComponent, schema$22 as HomeRecommendWaterfallSchema, IconAd, IconAdInspectorProps, IconAdItem, IconAdProps, IconAdServer, ImageTextRecommendClient, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, PopupAd, PopupAdInspectorProps, PopupAdItem, PopupAdProps, PopupAdServer, ProfileHeaderInspectorProps, ProfileMainInspectorProps, PropDefinition, PropSchema, PublishTab, PublishTabProps, PublishTabServer, PublishTabUserInfo, RawContentData, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps, SearchHistoryClient, SearchHistoryProps, SearchHistoryServer, SearchInputClient, SearchInputInspectorProps, SearchInputProps, SearchInputServer, SimpleSearchClient as SimpleSearch, defaultProps$21 as SimpleSearchDefaultData, schema$23 as SimpleSearchSchema, StylePropDefinition, StyleSchema, TabBarClient, TabBarInspectorProps, TabBarItem, TabBarItemConfigType, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextAd, TextAdInspectorProps, TextAdItem, TextAdProps, TextAdServer, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, adaptBannerAdProps, adaptFloatingAdItem, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdMaterial, bannerAdStyleSizeOptions, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildAdsMatchRequest, buildContentUrl, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, createAdsMatchPrefetchItem, createAdsMatchQueryFn, customStylesToInline, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema, floatingAdMaterial, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getAdsMatchQueryKey, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, getFeedAdIcon, getFeedAdJumpUrl, getFirstMatchedMaterial, hasMatchedAds, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema, iconAdMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, isFeedAdItem, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, parseAdsMatchExtData, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema, popupAdMaterial, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, resolveAdsAppCode, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, sortAdsMatchMaterials, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textAdInspectorDefaultProps, textAdInspectorPropsSchema, textAdMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem, useAdProvider };
package/dist/biz.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{adaptBannerAdProps as re,adaptFloatingAdItem as ie,adaptIconAdProps as ae,adaptPopupAdMaterials as oe,adaptTextAdProps as se,buildAdsMatchRequest as ce,getFirstMatchedMaterial as le,hasMatchedAds as ue,parseAdsMatchExtData as de,resolveAdsAppCode as fe,sortAdsMatchMaterials as pe}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as me,createAdsMatchQueryFn as he,getAdsMatchQueryKey as ge}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as _e,useAdProvider as ve}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as ye}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{BannerAd as be}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{bannerAdInspectorDefaultProps as xe,bannerAdInspectorPropsSchema as Se,bannerAdStyleSizeOptions as Ce}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAdServer as we}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as Te}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as Ee,getFeedAdIcon as De,getFeedAdJumpUrl as Oe,isFeedAdItem as ke}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{FloatingAd as Ae}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{floatingAdInspectorDefaultProps as je,floatingAdInspectorPropsSchema as Me}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAdServer as Ne}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as Pe}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{IconAd as Fe}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{iconAdInspectorDefaultProps as Ie,iconAdInspectorPropsSchema as Le}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAdServer as Re}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as ze}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as Be}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as Ve,popupAdInspectorPropsSchema as He}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as Ue}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as We}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{TextAd as Ge}from"./components/biz/business/advertisement/text-ad/client.mjs";import{textAdInspectorDefaultProps as Ke,textAdInspectorPropsSchema as qe}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAdServer as Je}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as Ye}from"./components/biz/business/advertisement/text-ad/material.mjs";import{basicBannerInspectorDefaultProps as Xe,basicBannerInspectorPropsSchema as Ze}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Qe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as $e}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import et from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as tt}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import rt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as it}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as at}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import ot from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as st}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ct}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import lt from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as ut}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as dt}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ft from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as $}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as pt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import mt from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import ht from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as gt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as _t,floatingBallInspectorPropsSchema as vt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as yt}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as bt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as Ct}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import wt from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Tt}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Et}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Dt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ot}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as kt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import At from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{HotRecommendClient as jt}from"./components/biz/business/hot-recommend/client.mjs";import{hotRecommendInspectorPropsSchema as Mt}from"./components/biz/business/hot-recommend/schema.mjs";import{HotRecommendServer as Nt}from"./components/biz/business/hot-recommend/server.mjs";import{hotRecommendMaterial as Pt}from"./components/biz/business/hot-recommend/material.mjs";import{ImageTextRecommendClient as Ft}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as It}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Lt}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Rt}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as zt,getDefaultMarqueePeriod as Bt,marqueeInspectorPropsSchema as Vt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Ht}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Ut}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Wt}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Gt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Kt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import qt from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Jt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Yt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Xt,defaultBackground as Zt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Qt,profileHeaderInspectorPropsSchema as $t}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as en,profileHeaderMaterialWithDisabledBackground as tn}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as nn,profileMainCollectTabOptions as rn,profileMainHistoryTabOptions as an,profileMainLikeTabOptions as on,profileMainMineTabOptions as sn,profileMainProfileTabOptions as cn,profileMainTabOptions as ln}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as un}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as dn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as fn}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as pn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as mn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as hn,profileMainInspectorPropsSchema as gn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as _n}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as vn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as yn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as bn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as xn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Sn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Cn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import wn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Tn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as En}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Dn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as On}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as kn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import An from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as jn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Mn}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Nn from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Pn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Fn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as In}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Ln}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Rn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as zn,searchInputInspectorPropsSchema as Bn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Vn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Hn}from"./components/biz/business/search-input/material.mjs";import Un from"./components/biz/business/search-waterfall-recommend/client.mjs";import{SearchWaterfallRecommendServer as Wn}from"./components/biz/business/search-waterfall-recommend/server.mjs";import{searchWaterfallRecommendMaterial as Gn}from"./components/biz/business/search-waterfall-recommend/material.mjs";import{TabBarClient as Kn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as qn,tabBarInspectorPropsSchema as Jn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Yn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Xn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Zn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Qn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as $n}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as er}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as tr}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as nr,buttonInspectorPropsSchema as rr}from"./components/biz/example/button/schema.mjs";import{Button as ir}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as ar}from"./components/biz/example/button/material.mjs";import{Renderer as or}from"./components/biz/renderer/renderer.mjs";export{_e as AdProvider,ye as AdRuntimeProvider,be as BannerAd,we as BannerAdServer,et as BasicBanner,d as BasicBannerDefaultData,Qe as BasicBannerMaterialComponent,f as BasicBannerSchema,ht as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,qt as BasicNavBar,Gt as BasicNavBarDefaultData,Kt as BasicNavBarSchema,Yt as BasicPostCard,Jt as BasicPostCardDefaultData,N as BasicPostCardSchema,wn as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Dn as BasicSearchBar,Tn as BasicSearchBarDefaultData,En as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,ir as Button,tr as ButtonClient,ee as CARD_SPEC_MAP,rt as CardGrid2x3,tt as CardGrid2x3DefaultData,ot as CardGrid2x3Infinite,it as CardGrid2x3InfiniteDefaultData,at as CardGrid2x3InfiniteSchema,nt as CardGrid2x3Schema,lt as CardGrid2x4,st as CardGrid2x4DefaultData,ct as CardGrid2x4Schema,ft as CardGrid3x3,ut as CardGrid3x3DefaultData,mt as CardGrid3x3Infinite,$ as CardGrid3x3InfiniteDefaultData,pt as CardGrid3x3InfiniteSchema,dt as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,dn as CollectTab,yn as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,Ee as FeedAdBadge,X as FilterSearch,An as FilterSearchBar,On as FilterSearchBarDefaultData,kn as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,Ae as FloatingAd,Ne as FloatingAdServer,yt as FloatingBall,gt as FloatingBallClient,St as FullscreenFeedClient,xt as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,wt as FullscreenVideoClient,Ct as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,fn as HistoryTab,bn as HistoryTabServer,Dt as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Tt as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,At as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ot as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,jt as HotRecommendClient,Nt as HotRecommendServer,Fe as IconAd,Re as IconAdServer,Ft as ImageTextRecommendClient,Lt as ImageTextRecommendServer,pn as LikeTab,xn as LikeTabServer,Ht as MarqueeClient,Ut as MarqueeServer,Be as PopupAd,Ue as PopupAdServer,Sn as PublishTab,Cn as PublishTabServer,or as Renderer,Pn as SearchHistoryClient,In as SearchHistoryServer,Rn as SearchInputClient,Vn as SearchInputServer,Un as SearchWaterfallRecommendClient,Wn as SearchWaterfallRecommendServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,Kn as TabBarClient,Yn as TabBarServer,ne as TagSearch,Nn as TagSearchBar,jn as TagSearchBarDefaultData,Mn as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Ge as TextAd,Je as TextAdServer,Zn as TextRecommendClient,$n as TextRecommendServer,Xt as UserProfileHeaderClient,_n as UserProfileMain,mn as UserProfileMainClient,un as UserProfileMainShell,re as adaptBannerAdProps,ie as adaptFloatingAdItem,ae as adaptIconAdProps,oe as adaptPopupAdMaterials,se as adaptTextAdProps,xe as bannerAdInspectorDefaultProps,Se as bannerAdInspectorPropsSchema,Te as bannerAdMaterial,Ce as bannerAdStyleSizeOptions,Xe as basicBannerInspectorDefaultProps,Ze as basicBannerInspectorPropsSchema,$e as basicBannerMaterial,ce as buildAdsMatchRequest,n as buildContentUrl,nr as buttonInspectorDefaultProps,rr as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,me as createAdsMatchPrefetchItem,he as createAdsMatchQueryFn,o as customStylesToInline,Zt as defaultBackground,zt as defaultMarqueePeriod,ar as exampleButtonMaterial,L as extractDataByComponentType,je as floatingAdInspectorDefaultProps,Me as floatingAdInspectorPropsSchema,Pe as floatingAdMaterial,_t as floatingBallInspectorDefaultProps,vt as floatingBallInspectorPropsSchema,bt as floatingBallMaterial,ge as getAdsMatchQueryKey,e as getCardSpecConfig,t as getChannelList,Bt as getDefaultMarqueePeriod,De as getFeedAdIcon,Oe as getFeedAdJumpUrl,le as getFirstMatchedMaterial,ue as hasMatchedAds,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Et as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,kt as homeRecommendWaterfallMaterial,Mt as hotRecommendInspectorPropsSchema,Pt as hotRecommendMaterial,Ie as iconAdInspectorDefaultProps,Le as iconAdInspectorPropsSchema,ze as iconAdMaterial,It as imageTextRecommendInspectorPropsSchema,Rt as imageTextRecommendMaterial,ke as isFeedAdItem,Vt as marqueeInspectorPropsSchema,Wt as marqueeMaterial,s as mergeStyles,de as parseAdsMatchExtData,Ve as popupAdInspectorDefaultProps,He as popupAdInspectorPropsSchema,We as popupAdMaterial,Qt as profileHeaderInspectorDefaultProps,$t as profileHeaderInspectorPropsSchema,en as profileHeaderMaterial,tn as profileHeaderMaterialWithDisabledBackground,nn as profileMainCollectCollectionTabOptions,rn as profileMainCollectTabOptions,an as profileMainHistoryTabOptions,hn as profileMainInspectorDefaultProps,gn as profileMainInspectorPropsSchema,on as profileMainLikeTabOptions,vn as profileMainMaterial,sn as profileMainMineTabOptions,cn as profileMainProfileTabOptions,ln as profileMainTabOptions,fe as resolveAdsAppCode,Fn as searchHistoryInspectorPropsSchema,Ln as searchHistoryMaterial,zn as searchInputInspectorDefaultProps,Bn as searchInputInspectorPropsSchema,Hn as searchInputMaterial,Gn as searchWaterfallRecommendMaterial,pe as sortAdsMatchMaterials,qn as tabBarInspectorDefaultProps,Jn as tabBarInspectorPropsSchema,Xn as tabBarMaterial,Ke as textAdInspectorDefaultProps,qe as textAdInspectorPropsSchema,Ye as textAdMaterial,Qn as textRecommendInspectorPropsSchema,er as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem,ve as useAdProvider};
2
+ import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItem as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,getFirstMatchedMaterial as C,hasMatchedAds as w,parseAdsMatchExtData as T,resolveAdsAppCode as E,sortAdsMatchMaterials as D}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as O,createAdsMatchQueryFn as k,getAdsMatchQueryKey as A}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as j,useAdProvider as M}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as N}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as P,bannerAdInspectorPropsSchema as F,bannerAdStyleSizeOptions as I}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as L}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as R}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as z}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as B,getFeedAdIcon as V,getFeedAdJumpUrl as H,isFeedAdItem as U}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{floatingAdInspectorDefaultProps as W,floatingAdInspectorPropsSchema as G}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAd as K}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{FloatingAdServer as q}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as J}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as Y,iconAdInspectorPropsSchema as X}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as ie}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as ae}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as oe}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as se}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as ce,popupAdInspectorPropsSchema as le}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as ue}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as de}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as fe,textAdInspectorPropsSchema as pe}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as me}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as he}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as ge}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as _e}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as ye}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as be}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as xe}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import Se from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as Ce}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import we from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as De}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Oe}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as ke}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Ae}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as je}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Me,extractDataByComponentType as Ne}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Ie}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Le}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Re}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import ze from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Be}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import Ve from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as He}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ue from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as We}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ge}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import Ke from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as qe}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Je}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import Ye from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Xe,basicBannerInspectorPropsSchema as Ze}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Qe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as $e}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import et from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as tt}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import rt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as it}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as at}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import ot from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as st}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ct}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ut}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import dt from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as pt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import mt from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import ht from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as gt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as _t,floatingBallInspectorPropsSchema as vt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as yt}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as bt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as Ct}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import wt from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Tt}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Et}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Dt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ot}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as kt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import At from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as jt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Mt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Nt}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Pt}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Ft,getDefaultMarqueePeriod as It,marqueeInspectorPropsSchema as Lt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Rt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as zt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Bt}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Vt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ht}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Ut from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Wt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Gt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Kt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as qt,profileHeaderInspectorPropsSchema as Jt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Yt,profileHeaderMaterialWithDisabledBackground as Xt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Zt,profileMainCollectTabOptions as Qt,profileMainHistoryTabOptions as $t,profileMainLikeTabOptions as en,profileMainMineTabOptions as tn,profileMainProfileTabOptions as nn,profileMainTabOptions as rn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as an}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as on}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as sn}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as cn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as ln}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as un,profileMainInspectorPropsSchema as dn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as fn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as pn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as mn}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as hn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as gn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as _n}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import yn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as bn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as xn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Sn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as kn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as An}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as jn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Mn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Nn}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Pn,searchInputInspectorPropsSchema as Fn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as In}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Ln}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Rn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as zn,tabBarInspectorPropsSchema as Bn}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Vn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Hn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Un}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Wn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Gn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Kn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as qn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Jn,buttonInspectorPropsSchema as Yn}from"./components/biz/example/button/schema.mjs";import{Button as Xn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as Zn}from"./components/biz/example/button/material.mjs";import{Renderer as Qn}from"./components/biz/renderer/renderer.mjs";export{j as AdProvider,N as AdRuntimeProvider,L as BannerAd,R as BannerAdServer,et as BasicBanner,l as BasicBannerDefaultData,Qe as BasicBannerMaterialComponent,u as BasicBannerSchema,ht as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,ze as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Re as BasicFullscreenFeedSchema,Ve as BasicLogo,_e as BasicLogoDefaultData,Be as BasicLogoSchema,Ut as BasicNavBar,Vt as BasicNavBarDefaultData,Ht as BasicNavBarSchema,Gt as BasicPostCard,Wt as BasicPostCardDefaultData,ke as BasicPostCardSchema,yn as BasicRecommendedUsers,Ae as BasicRecommendedUsersDefaultData,je as BasicRecommendedUsersSchema,Ue as BasicSearch,Sn as BasicSearchBar,bn as BasicSearchBarDefaultData,xn as BasicSearchBarSchema,ve as BasicSearchDefaultData,He as BasicSearchSchema,Xn as Button,qn as ButtonClient,ee as CARD_SPEC_MAP,rt as CardGrid2x3,tt as CardGrid2x3DefaultData,ot as CardGrid2x3Infinite,it as CardGrid2x3InfiniteDefaultData,at as CardGrid2x3InfiniteSchema,nt as CardGrid2x3Schema,$ as CardGrid2x4,st as CardGrid2x4DefaultData,ct as CardGrid2x4Schema,dt as CardGrid3x3,lt as CardGrid3x3DefaultData,mt as CardGrid3x3Infinite,ft as CardGrid3x3InfiniteDefaultData,pt as CardGrid3x3InfiniteSchema,ut as CardGrid3x3Schema,Pe as CardItemDefaultData,Fe as CardItemSchema,Ie as CardLayoutDefaultData,Le as CardLayoutSchema,te as CardSpec,on as CollectTab,mn as CollectTabServer,Me as ComponentType,t as DataBindingUIMode,n as DataSourceType,we as DetailSearchBar,ye as DetailSearchBarDefaultData,Ce as DetailSearchBarSchema,B as FeedAdBadge,Ke as FilterSearch,Tn as FilterSearchBar,Cn as FilterSearchBarDefaultData,wn as FilterSearchBarSchema,We as FilterSearchDefaultData,Ge as FilterSearchSchema,K as FloatingAd,q as FloatingAdServer,yt as FloatingBall,gt as FloatingBallClient,St as FullscreenFeedClient,xt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,wt as FullscreenVideoClient,Ct as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,sn as HistoryTab,hn as HistoryTabServer,Dt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Tt as HomeRecommendGridMaterialComponent,Ee as HomeRecommendGridSchema,At as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Ot as HomeRecommendWaterfallMaterialComponent,Oe as HomeRecommendWaterfallSchema,ie as IconAd,ae as IconAdServer,jt as ImageTextRecommendClient,Nt as ImageTextRecommendServer,cn as LikeTab,gn as LikeTabServer,Rt as MarqueeClient,zt as MarqueeServer,se as PopupAd,ue as PopupAdServer,_n as PublishTab,vn as PublishTabServer,Qn as Renderer,kn as SearchHistoryClient,jn as SearchHistoryServer,Nn as SearchInputClient,In as SearchInputServer,Se as SimpleSearch,be as SimpleSearchDefaultData,xe as SimpleSearchSchema,Rn as TabBarClient,Vn as TabBarServer,Ye as TagSearch,On as TagSearchBar,En as TagSearchBarDefaultData,Dn as TagSearchBarSchema,qe as TagSearchDefaultData,Je as TagSearchSchema,me as TextAd,he as TextAdServer,Un as TextRecommendClient,Gn as TextRecommendServer,Kt as UserProfileHeaderClient,fn as UserProfileMain,ln as UserProfileMainClient,an as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItem,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,P as bannerAdInspectorDefaultProps,F as bannerAdInspectorPropsSchema,z as bannerAdMaterial,I as bannerAdStyleSizeOptions,Xe as basicBannerInspectorDefaultProps,Ze as basicBannerInspectorPropsSchema,$e as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,Jn as buttonInspectorDefaultProps,Yn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,O as createAdsMatchPrefetchItem,k as createAdsMatchQueryFn,i as customStylesToInline,Ft as defaultMarqueePeriod,Zn as exampleButtonMaterial,Ne as extractDataByComponentType,W as floatingAdInspectorDefaultProps,G as floatingAdInspectorPropsSchema,J as floatingAdMaterial,_t as floatingBallInspectorDefaultProps,vt as floatingBallInspectorPropsSchema,bt as floatingBallMaterial,A as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,It as getDefaultMarqueePeriod,V as getFeedAdIcon,H as getFeedAdJumpUrl,C as getFirstMatchedMaterial,w as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Te as homeRecommendGridInspectorPropsSchema,Et as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,De as homeRecommendWaterfallInspectorPropsSchema,kt as homeRecommendWaterfallMaterial,Y as iconAdInspectorDefaultProps,X as iconAdInspectorPropsSchema,oe as iconAdMaterial,Mt as imageTextRecommendInspectorPropsSchema,Pt as imageTextRecommendMaterial,U as isFeedAdItem,Lt as marqueeInspectorPropsSchema,Bt as marqueeMaterial,a as mergeStyles,T as parseAdsMatchExtData,ce as popupAdInspectorDefaultProps,le as popupAdInspectorPropsSchema,de as popupAdMaterial,qt as profileHeaderInspectorDefaultProps,Jt as profileHeaderInspectorPropsSchema,Yt as profileHeaderMaterial,Xt as profileHeaderMaterialWithDisabledBackground,Zt as profileMainCollectCollectionTabOptions,Qt as profileMainCollectTabOptions,$t as profileMainHistoryTabOptions,un as profileMainInspectorDefaultProps,dn as profileMainInspectorPropsSchema,en as profileMainLikeTabOptions,pn as profileMainMaterial,tn as profileMainMineTabOptions,nn as profileMainProfileTabOptions,rn as profileMainTabOptions,E as resolveAdsAppCode,An as searchHistoryInspectorPropsSchema,Mn as searchHistoryMaterial,Pn as searchInputInspectorDefaultProps,Fn as searchInputInspectorPropsSchema,Ln as searchInputMaterial,D as sortAdsMatchMaterials,zn as tabBarInspectorDefaultProps,Bn as tabBarInspectorPropsSchema,Hn as tabBarMaterial,fe as textAdInspectorDefaultProps,pe as textAdInspectorPropsSchema,ge as textAdMaterial,Wn as textRecommendInspectorPropsSchema,Kn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,M as useAdProvider};
package/dist/common.d.mts CHANGED
@@ -5,7 +5,6 @@ import "./components/common/analytics-init/index.mjs";
5
5
  import { BlockedDialog } from "./components/common/blocked-dialog/blocked-dialog.mjs";
6
6
  import "./components/common/blocked-dialog/index.mjs";
7
7
  import { MiniThreeCard } from "./components/common/cards/mini-three-card.mjs";
8
- import { CreateCollectionSheet } from "./components/common/collection-popup/create-collection-sheet.mjs";
9
8
  import { CollectionPopupComponent, CollectionPopupHost } from "./components/common/collection-popup/index.mjs";
10
9
  import { DebugLocaleSwitcher } from "./components/common/debug-locale-switcher/index.mjs";
11
10
  import { DeleteConfirmDialog, DeleteConfirmDialogProps } from "./components/common/delete-confirm-dialog/delete-confirm-dialog.mjs";
@@ -38,8 +37,6 @@ import "./components/common/list/user-activity-list/index.mjs";
38
37
  import { VideoListItem, VideoListItemProps } from "./components/common/list/video-list/video-list-item.mjs";
39
38
  import { VideoList, VideoListProps } from "./components/common/list/video-list/video-list.mjs";
40
39
  import "./components/common/list/video-list/index.mjs";
41
- import { WaterfallRecommend, WaterfallRecommendCardKind, WaterfallRecommendColumnName, WaterfallRecommendColumns, WaterfallRecommendItem, WaterfallRecommendProps } from "./components/common/list/waterfall-recommend/waterfall-recommend.mjs";
42
- import "./components/common/list/waterfall-recommend/index.mjs";
43
40
  import { LocaleSync } from "./components/common/locale-sync/locale-sync.mjs";
44
41
  import { LoginDialog } from "./components/common/login-dialog/login-dialog.mjs";
45
42
  import "./components/common/login-dialog/index.mjs";
@@ -50,7 +47,7 @@ import { closePhotoPreview, photoPreview } from "./components/common/photo-previ
50
47
  import { GenderPicker, GenderPickerOption, GenderPickerProps } from "./components/common/picker/gender-picker/gender-picker.mjs";
51
48
  import "./components/common/picker/index.mjs";
52
49
  import { PopupVideo } from "./components/common/popup-video/index.mjs";
53
- import { DetailStyleOneActiveBorderLayer, SeriesEpisodes, SeriesEpisodesProps } from "./components/common/series-episodes/index.mjs";
50
+ import { SeriesEpisodes, SeriesEpisodesProps } from "./components/common/series-episodes/index.mjs";
54
51
  import { ShareContent } from "./components/common/share-popup/share-content.mjs";
55
52
  import { ShareDrawer, ShareDrawerProps } from "./components/common/share-popup/share-drawer.mjs";
56
53
  import { ActionButton, ShareDataType, SharePlatform, SharePopupComponent, defaultActions, defaultPlatforms } from "./components/common/share-popup/share-popup.mjs";
@@ -61,4 +58,4 @@ import { TopNavBarServer } from "./components/common/top-nav-bar/index.mjs";
61
58
  import { UserInfoInitializer } from "./components/common/user-info-initializer/index.mjs";
62
59
  import { CommonPlayer, CommonPlayerRef } from "./components/common/video-player/index.mjs";
63
60
  import { WaitLoading } from "./components/common/wait-loading.mjs";
64
- export { ActionButton, AddIcon, AnalyticsInit, BlockedDialog, CollectionList, CollectionListItem, CollectionListItemProps, CollectionListMediaItem, CollectionListProps, CollectionPopupComponent, CollectionPopupHost, CommentIcon, CommonPhotoGrid, CommonPlayer, CommonPlayerRef, CreateCollectionSheet, DebugLocaleSwitcher, DeleteConfirmDialog, DeleteConfirmDialogProps, DeleteIcon, DetailStyleOneActiveBorderLayer, Empty, FunhubProvider, FunhubProviderProps, GenderPicker, GenderPickerOption, GenderPickerProps, HeaderNav, IntlProvider, IntlProviderProps, LeftArrowIcon, LocaleSync, LoginDialog, MediaPreview, MiniThreeCard, MoreIcon, PageSkeleton, SeriesEpisodePage as PhotoGrid, PopupVideo, PostList, PostListItem, PostListItemProps, PostListProps, RightArrowIcon, SeriesEpisodes, SeriesEpisodesProps, SettingIcon, ShareContent, ShareDataType, ShareDrawer, ShareDrawerProps, ShareIcon, SharePlatform, SharePopupComponent, TabBar, ThemeSync, TopNavBarServer, UserActivityList, UserActivityListItem, UserActivityListItemProps, UserActivityListProps, UserActivityMediaGrid, UserActivityMediaGridProps, MediaPreview as UserActivityMediaPreview, UserInfoInitializer, VideoList, VideoListItem, VideoListItemProps, VideoListProps, WaitLoading, WaterfallRecommend, WaterfallRecommendCardKind, WaterfallRecommendColumnName, WaterfallRecommendColumns, WaterfallRecommendItem, WaterfallRecommendProps, closePhotoPreview, defaultActions, defaultPlatforms, photoPreview, useMediaPreview };
61
+ export { ActionButton, AddIcon, AnalyticsInit, BlockedDialog, CollectionList, CollectionListItem, CollectionListItemProps, CollectionListMediaItem, CollectionListProps, CollectionPopupComponent, CollectionPopupHost, CommentIcon, CommonPhotoGrid, CommonPlayer, CommonPlayerRef, DebugLocaleSwitcher, DeleteConfirmDialog, DeleteConfirmDialogProps, DeleteIcon, Empty, FunhubProvider, FunhubProviderProps, GenderPicker, GenderPickerOption, GenderPickerProps, HeaderNav, IntlProvider, IntlProviderProps, LeftArrowIcon, LocaleSync, LoginDialog, MediaPreview, MiniThreeCard, MoreIcon, PageSkeleton, SeriesEpisodePage as PhotoGrid, PopupVideo, PostList, PostListItem, PostListItemProps, PostListProps, RightArrowIcon, SeriesEpisodes, SeriesEpisodesProps, SettingIcon, ShareContent, ShareDataType, ShareDrawer, ShareDrawerProps, ShareIcon, SharePlatform, SharePopupComponent, TabBar, ThemeSync, TopNavBarServer, UserActivityList, UserActivityListItem, UserActivityListItemProps, UserActivityListProps, UserActivityMediaGrid, UserActivityMediaGridProps, MediaPreview as UserActivityMediaPreview, UserInfoInitializer, VideoList, VideoListItem, VideoListItemProps, VideoListProps, WaitLoading, closePhotoPreview, defaultActions, defaultPlatforms, photoPreview, useMediaPreview };
package/dist/common.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{MediaPreview as e,useMediaPreview as t}from"./components/common/media-preview/index.mjs";import{CreateCollectionSheet as n}from"./components/common/collection-popup/create-collection-sheet.mjs";import{CollectionPopupComponent as r,CollectionPopupHost as i}from"./components/common/collection-popup/index.mjs";import a from"./components/common/share-popup/share-content.mjs";import{ShareDrawer as o}from"./components/common/share-popup/share-drawer.mjs";import{IntlProvider as s}from"./components/common/intl-provider/intl-provider.mjs";import{SharePopupComponent as c,defaultActions as l,defaultPlatforms as u}from"./components/common/share-popup/share-popup.mjs";import d from"./components/common/video-player/index.mjs";import{AnalyticsInit as f}from"./components/common/analytics-init/analytics-init.mjs";import{BlockedDialog as p}from"./components/common/blocked-dialog/blocked-dialog.mjs";import{MiniThreeCard as m}from"./components/common/cards/mini-three-card.mjs";import{DebugLocaleSwitcher as h}from"./components/common/debug-locale-switcher/index.mjs";import{DeleteConfirmDialog as g}from"./components/common/delete-confirm-dialog/delete-confirm-dialog.mjs";import _ from"./components/common/empty/index.mjs";import{FunhubProvider as v}from"./components/common/funhub-provider/funhub-provider.mjs";import{LeftArrowIcon as y}from"./components/common/icons/left-arrow.mjs";import{HeaderNav as b}from"./components/common/header-nav/client.mjs";import{AddIcon as x}from"./components/common/icons/add.mjs";import{CommentIcon as S}from"./components/common/icons/comment.mjs";import{DeleteIcon as C}from"./components/common/icons/delete.mjs";import{MoreIcon as w}from"./components/common/icons/more.mjs";import{RightArrowIcon as T}from"./components/common/icons/right-arrow.mjs";import{SettingIcon as E}from"./components/common/icons/setting.mjs";import{ShareIcon as D}from"./components/common/icons/share.mjs";import{CollectionListItem as O}from"./components/common/list/collection-list/collection-list-item.mjs";import{CollectionList as k}from"./components/common/list/collection-list/collection-list.mjs";import{PostListItem as A}from"./components/common/list/post-list/post-list-item.mjs";import{PostList as j}from"./components/common/list/post-list/post-list.mjs";import{UserActivityList as M}from"./components/common/list/user-activity-list/user-activity-list.mjs";import{UserActivityListItem as N,UserActivityMediaGrid as P}from"./components/common/list/user-activity-list/user-activity-list-item.mjs";import{VideoListItem as F}from"./components/common/list/video-list/video-list-item.mjs";import{VideoList as I}from"./components/common/list/video-list/video-list.mjs";import{WaterfallRecommend as L}from"./components/common/list/waterfall-recommend/waterfall-recommend.mjs";import{LocaleSync as R}from"./components/common/locale-sync/locale-sync.mjs";import{LoginDialog as z}from"./components/common/login-dialog/login-dialog.mjs";import{PageSkeleton as B}from"./components/common/page-skeleton/page-skeleton.mjs";import V from"./components/common/photo-grid/index.mjs";import H from"./components/common/photo-grid/common-photo-grid.mjs";import{closePhotoPreview as U,photoPreview as W}from"./components/common/photo-preview/index.mjs";import{GenderPicker as G}from"./components/common/picker/gender-picker/gender-picker.mjs";import K from"./components/common/popup-video/index.mjs";import{DetailStyleOneActiveBorderLayer as q,SeriesEpisodes as J}from"./components/common/series-episodes/index.mjs";import{TabBar as Y}from"./components/common/tab-bar/index.mjs";import{ThemeSync as X}from"./components/common/theme-sync/index.mjs";import{TopNavBarServer as Z}from"./components/common/top-nav-bar/index.mjs";import{UserInfoInitializer as Q}from"./components/common/user-info-initializer/index.mjs";import{WaitLoading as $}from"./components/common/wait-loading.mjs";export{x as AddIcon,f as AnalyticsInit,p as BlockedDialog,k as CollectionList,O as CollectionListItem,r as CollectionPopupComponent,i as CollectionPopupHost,S as CommentIcon,H as CommonPhotoGrid,d as CommonPlayer,n as CreateCollectionSheet,h as DebugLocaleSwitcher,g as DeleteConfirmDialog,C as DeleteIcon,q as DetailStyleOneActiveBorderLayer,_ as Empty,v as FunhubProvider,G as GenderPicker,b as HeaderNav,s as IntlProvider,y as LeftArrowIcon,R as LocaleSync,z as LoginDialog,e as MediaPreview,m as MiniThreeCard,w as MoreIcon,B as PageSkeleton,V as PhotoGrid,K as PopupVideo,j as PostList,A as PostListItem,T as RightArrowIcon,J as SeriesEpisodes,E as SettingIcon,a as ShareContent,o as ShareDrawer,D as ShareIcon,c as SharePopupComponent,Y as TabBar,X as ThemeSync,Z as TopNavBarServer,M as UserActivityList,N as UserActivityListItem,P as UserActivityMediaGrid,e as UserActivityMediaPreview,Q as UserInfoInitializer,I as VideoList,F as VideoListItem,$ as WaitLoading,L as WaterfallRecommend,U as closePhotoPreview,l as defaultActions,u as defaultPlatforms,W as photoPreview,t as useMediaPreview};
2
+ import{MediaPreview as e,useMediaPreview as t}from"./components/common/media-preview/index.mjs";import{CollectionPopupComponent as n,CollectionPopupHost as r}from"./components/common/collection-popup/index.mjs";import i from"./components/common/share-popup/share-content.mjs";import{ShareDrawer as a}from"./components/common/share-popup/share-drawer.mjs";import{IntlProvider as o}from"./components/common/intl-provider/intl-provider.mjs";import{SharePopupComponent as s,defaultActions as c,defaultPlatforms as l}from"./components/common/share-popup/share-popup.mjs";import u from"./components/common/video-player/index.mjs";import{AnalyticsInit as d}from"./components/common/analytics-init/analytics-init.mjs";import{BlockedDialog as f}from"./components/common/blocked-dialog/blocked-dialog.mjs";import{MiniThreeCard as p}from"./components/common/cards/mini-three-card.mjs";import{DebugLocaleSwitcher as m}from"./components/common/debug-locale-switcher/index.mjs";import{DeleteConfirmDialog as h}from"./components/common/delete-confirm-dialog/delete-confirm-dialog.mjs";import g from"./components/common/empty/index.mjs";import{FunhubProvider as _}from"./components/common/funhub-provider/funhub-provider.mjs";import{LeftArrowIcon as v}from"./components/common/icons/left-arrow.mjs";import{HeaderNav as y}from"./components/common/header-nav/client.mjs";import{AddIcon as b}from"./components/common/icons/add.mjs";import{CommentIcon as x}from"./components/common/icons/comment.mjs";import{DeleteIcon as S}from"./components/common/icons/delete.mjs";import{MoreIcon as C}from"./components/common/icons/more.mjs";import{RightArrowIcon as w}from"./components/common/icons/right-arrow.mjs";import{SettingIcon as T}from"./components/common/icons/setting.mjs";import{ShareIcon as E}from"./components/common/icons/share.mjs";import{CollectionListItem as D}from"./components/common/list/collection-list/collection-list-item.mjs";import{CollectionList as O}from"./components/common/list/collection-list/collection-list.mjs";import{PostListItem as k}from"./components/common/list/post-list/post-list-item.mjs";import{PostList as A}from"./components/common/list/post-list/post-list.mjs";import{UserActivityList as j}from"./components/common/list/user-activity-list/user-activity-list.mjs";import{UserActivityListItem as M,UserActivityMediaGrid as N}from"./components/common/list/user-activity-list/user-activity-list-item.mjs";import{VideoListItem as P}from"./components/common/list/video-list/video-list-item.mjs";import{VideoList as F}from"./components/common/list/video-list/video-list.mjs";import{LocaleSync as I}from"./components/common/locale-sync/locale-sync.mjs";import{LoginDialog as L}from"./components/common/login-dialog/login-dialog.mjs";import{PageSkeleton as R}from"./components/common/page-skeleton/page-skeleton.mjs";import z from"./components/common/photo-grid/index.mjs";import B from"./components/common/photo-grid/common-photo-grid.mjs";import{closePhotoPreview as V,photoPreview as H}from"./components/common/photo-preview/index.mjs";import{GenderPicker as U}from"./components/common/picker/gender-picker/gender-picker.mjs";import W from"./components/common/popup-video/index.mjs";import{SeriesEpisodes as G}from"./components/common/series-episodes/index.mjs";import{TabBar as K}from"./components/common/tab-bar/index.mjs";import{ThemeSync as q}from"./components/common/theme-sync/index.mjs";import{TopNavBarServer as J}from"./components/common/top-nav-bar/index.mjs";import{UserInfoInitializer as Y}from"./components/common/user-info-initializer/index.mjs";import{WaitLoading as X}from"./components/common/wait-loading.mjs";export{b as AddIcon,d as AnalyticsInit,f as BlockedDialog,O as CollectionList,D as CollectionListItem,n as CollectionPopupComponent,r as CollectionPopupHost,x as CommentIcon,B as CommonPhotoGrid,u as CommonPlayer,m as DebugLocaleSwitcher,h as DeleteConfirmDialog,S as DeleteIcon,g as Empty,_ as FunhubProvider,U as GenderPicker,y as HeaderNav,o as IntlProvider,v as LeftArrowIcon,I as LocaleSync,L as LoginDialog,e as MediaPreview,p as MiniThreeCard,C as MoreIcon,R as PageSkeleton,z as PhotoGrid,W as PopupVideo,A as PostList,k as PostListItem,w as RightArrowIcon,G as SeriesEpisodes,T as SettingIcon,i as ShareContent,a as ShareDrawer,E as ShareIcon,s as SharePopupComponent,K as TabBar,q as ThemeSync,J as TopNavBarServer,j as UserActivityList,M as UserActivityListItem,N as UserActivityMediaGrid,e as UserActivityMediaPreview,Y as UserInfoInitializer,F as VideoList,P as VideoListItem,X as WaitLoading,V as closePhotoPreview,c as defaultActions,l as defaultPlatforms,H as photoPreview,t as useMediaPreview};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Carousel as n,CarouselContent as r,CarouselItem as i}from"../../../../ui/carousel.mjs";import{Text as a}from"../../../../ui/text.mjs";import o from"../../../../ui/link.mjs";import{adaptBannerAdProps as s,hasMatchedAds as c}from"../ad-match.mjs";import{useAdProvider as l}from"../ad-provider.mjs";import u from"clsx";import{useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _={small:{minHeight:`140px`,aspectRatio:`2.3 / 1`},medium:{minHeight:`180px`,aspectRatio:`2 / 1`},large:{aspectRatio:`7 / 4`}};function v({mode:v=`renderer`,displayCount:y,switchInterval:b=3e3,styleSize:x=`large`,items:S,pointerEventsDisabled:C=!1}){let w=l(),T=f(()=>c(w?.matchData)?s(w?.matchData):{displayCount:y,switchInterval:b,styleSize:x,items:S},[w?.matchData,y,S,x,b]),[E,D]=m(),[O,k]=m(0),A=p(null),j=f(()=>typeof T.displayCount==`number`?T.items.slice(0,Math.max(T.displayCount,0)):T.items,[T]);if(d(()=>{if(!E||j.length<=1)return;let e=()=>{k(E.selectedScrollSnap())};return E.on(`select`,e),e(),()=>{E.off(`select`,e)}},[E,j.length]),d(()=>{if(!(!E||j.length<=1))return A.current=setInterval(()=>{if(E.canScrollNext()){E.scrollNext();return}E.scrollTo(0)},T.switchInterval??3e3),()=>{A.current&&=(clearInterval(A.current),null)}},[E,T.switchInterval,j.length]),j.length===0)return null;let M=T.styleSize??`large`,N=_[M];return h(t,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:C?`none`:void 0},children:g(n,{setApi:D,opts:{align:`start`,loop:j.length>1},className:`w-full`,children:[h(r,{className:`ml-0`,children:j.map((n,r)=>h(i,{className:`pl-0`,children:g(o,{href:n.jumpUrl,className:u(`relative block w-full overflow-hidden bg-white`),style:{minHeight:N.minHeight,aspectRatio:N.aspectRatio,borderRadius:`10px`},children:[h(t,{className:`absolute inset-0`,children:h(e,{src:n.coverUrl,alt:n.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),h(t,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),h(t,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:h(a,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),n.title?h(a,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:M===`large`?`14px`:M===`medium`?`26px`:`20px`,lineHeight:`normal`,fontWeight:500},children:n.title}):null]})},`${n.jumpUrl}-${r}`))}),j.length>1?h(t,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:j.map((e,n)=>h(t,{className:`rounded-full transition-all duration-300`,style:{width:n===O?`16px`:`8px`,height:`8px`,backgroundColor:n===O?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},n))}):null]})})}export{v as BannerAd};
2
+ "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Carousel as n,CarouselContent as r,CarouselItem as i}from"../../../../ui/carousel.mjs";import{Text as a}from"../../../../ui/text.mjs";import o from"../../../../ui/link.mjs";import{adaptBannerAdProps as s,hasMatchedAds as c}from"../ad-match.mjs";import{useAdProvider as l}from"../ad-provider.mjs";import{bannerAdInspectorDefaultProps as u}from"./schema.mjs";import d from"clsx";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={small:{minHeight:`140px`,aspectRatio:`2.3 / 1`},medium:{minHeight:`180px`,aspectRatio:`2 / 1`},large:{aspectRatio:`7 / 4`}};function y({mode:y=`renderer`,displayCount:b,switchInterval:x=3e3,styleSize:S=`large`,items:C,pointerEventsDisabled:w=!1}){let T=y===`editor`?{...u,displayCount:b,switchInterval:x,styleSize:S,items:C}:{displayCount:b,switchInterval:x,styleSize:S,items:C},E=l(),D=p(()=>c(E?.matchData)?s(E?.matchData):{displayCount:T.displayCount,switchInterval:T.switchInterval,styleSize:T.styleSize,items:T.items},[E?.matchData,T.displayCount,T.items,T.styleSize,T.switchInterval]),[O,k]=h(),[A,j]=h(0),M=m(null),N=p(()=>typeof D.displayCount==`number`?D.items.slice(0,Math.max(D.displayCount,0)):D.items,[D]);if(f(()=>{if(!O||N.length<=1)return;let e=()=>{j(O.selectedScrollSnap())};return O.on(`select`,e),e(),()=>{O.off(`select`,e)}},[O,N.length]),f(()=>{if(!(!O||N.length<=1))return M.current=setInterval(()=>{if(O.canScrollNext()){O.scrollNext();return}O.scrollTo(0)},D.switchInterval??3e3),()=>{M.current&&=(clearInterval(M.current),null)}},[O,D.switchInterval,N.length]),N.length===0)return null;let P=D.styleSize??`large`,F=v[P];return g(t,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:w?`none`:void 0},children:_(n,{setApi:k,opts:{align:`start`,loop:N.length>1},className:`w-full`,children:[g(r,{className:`ml-0`,children:N.map((n,r)=>g(i,{className:`pl-0`,children:_(o,{href:n.jumpUrl,className:d(`relative block w-full overflow-hidden bg-white`),style:{minHeight:F.minHeight,aspectRatio:F.aspectRatio,borderRadius:`10px`},children:[g(t,{className:`absolute inset-0`,children:g(e,{src:n.coverUrl,alt:n.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),g(t,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),g(t,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:g(a,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),n.title?g(a,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:P===`large`?`14px`:P===`medium`?`26px`:`20px`,lineHeight:`normal`,fontWeight:500},children:n.title}):null]})},`${n.jumpUrl}-${r}`))}),N.length>1?g(t,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:N.map((e,n)=>g(t,{className:`rounded-full transition-all duration-300`,style:{width:n===A?`16px`:`8px`,height:`8px`,backgroundColor:n===A?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},n))}):null]})})}export{y as BannerAd};
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{BannerAd as t}from"./client.mjs";import{bannerAdInspectorPropsSchema as n}from"./schema.mjs";import{BannerAdServer as r}from"./server.mjs";const i=e({type:`banner-ad`,name:`Banner广告`,icon:`/static/components-thumb/carousel_banner.png`,category:`广告组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as bannerAdMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{bannerAdInspectorPropsSchema as t}from"./schema.mjs";import{BannerAd as n}from"./client.mjs";import{BannerAdServer as r}from"./server.mjs";const i=e({type:`banner-ad`,name:`Banner广告`,icon:`/static/components-thumb/carousel_banner.png`,category:`广告组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as bannerAdMaterial};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import n from"../../../../ui/link.mjs";import{adaptFloatingAdItem as r}from"../ad-match.mjs";import{useAdProvider as i}from"../ad-provider.mjs";import{useMemo as a}from"react";import{jsx as o}from"react/jsx-runtime";function s({mode:s=`renderer`,ad:c,materialUrl:l,jumpUrl:u,name:d,bottomOffset:f=100,rightOffset:p=20,pointerEventsDisabled:m=!1,onClick:h}){let g=i(),_=a(()=>{let e=c??{materialUrl:l||``,jumpUrl:u||``,name:d};return r(g?.matchData)??e},[c,g?.matchData,u,l,d]);if(!_.materialUrl||!_.jumpUrl)return null;let v=o(t,{className:`relative flex h-full w-full overflow-hidden`,style:{borderRadius:`8px`},"aria-label":_.name||`悬浮广告`,children:o(t,{className:`absolute inset-0`,children:o(e,{src:_.materialUrl,alt:_.name||`悬浮广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})})}),y={bottom:`${f}px`,right:`${p}px`,width:`75px`,height:`75px`,pointerEvents:m?`none`:void 0};return h?o(t,{className:`fixed z-50 block cursor-pointer`,style:y,onClick:h,children:v}):o(n,{href:_.jumpUrl,className:`fixed z-50 block`,style:y,children:v})}export{s as FloatingAd};
2
+ "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import n from"../../../../ui/link.mjs";import{adaptFloatingAdItem as r}from"../ad-match.mjs";import{useAdProvider as i}from"../ad-provider.mjs";import{floatingAdInspectorDefaultProps as a}from"./schema.mjs";import{useMemo as o}from"react";import{jsx as s}from"react/jsx-runtime";function c({mode:c=`renderer`,ad:l,materialUrl:u,jumpUrl:d,name:f,bottomOffset:p=100,rightOffset:m=20,pointerEventsDisabled:h=!1,onClick:g}){let _=c===`editor`?{...a,materialUrl:u,jumpUrl:d,name:f}:{materialUrl:u,jumpUrl:d,name:f},v=i(),y=o(()=>{let e=l??{materialUrl:_.materialUrl||``,jumpUrl:_.jumpUrl||``,name:_.name};return r(v?.matchData)??e},[l,v?.matchData,_.jumpUrl,_.materialUrl,_.name]);if(!y.materialUrl||!y.jumpUrl)return null;let b=s(t,{className:`relative flex h-full w-full overflow-hidden`,style:{borderRadius:`8px`},"aria-label":y.name||`悬浮广告`,children:s(t,{className:`absolute inset-0`,children:s(e,{src:y.materialUrl,alt:y.name||`悬浮广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})})}),x={bottom:`${p}px`,right:`${m}px`,width:`75px`,height:`75px`,pointerEvents:h?`none`:void 0};return g?s(t,{className:`fixed z-50 block cursor-pointer`,style:x,onClick:g,children:b}):s(n,{href:y.jumpUrl,className:`fixed z-50 block`,style:x,children:b})}export{c as FloatingAd};
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{FloatingAd as t}from"./client.mjs";import{floatingAdInspectorPropsSchema as n}from"./schema.mjs";import{FloatingAdServer as r}from"./server.mjs";const i=e({type:`floating-ad`,name:`悬浮广告`,icon:`/static/components-thumb/floating_action_button.png`,category:`广告组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as floatingAdMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{floatingAdInspectorPropsSchema as t}from"./schema.mjs";import{FloatingAd as n}from"./client.mjs";import{FloatingAdServer as r}from"./server.mjs";const i=e({type:`floating-ad`,name:`悬浮广告`,icon:`/static/components-thumb/floating_action_button.png`,category:`广告组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as floatingAdMaterial};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import r from"../../../../ui/link.mjs";import{adaptIconAdProps as i,hasMatchedAds as a}from"../ad-match.mjs";import{useAdProvider as o}from"../ad-provider.mjs";import{useMemo as s}from"react";import{jsx as c,jsxs as l}from"react/jsx-runtime";function u({mode:u=`renderer`,displayCount:d,items:f,pointerEventsDisabled:p=!1}){let m=o(),h=s(()=>a(m?.matchData)?i(m?.matchData):{displayCount:d,items:f},[m?.matchData,d,f]),g=Math.min(Math.max(h.displayCount,0),Math.min(h.items.length,5)),_=h.items.slice(0,g);return _.length===0?null:c(t,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:p?`none`:void 0},children:c(t,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:_.length>=5?`space-between`:`flex-start`},children:_.map((i,a)=>c(r,{href:i.jumpUrl,className:`block shrink-0`,style:{width:`100px`},children:l(t,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[c(t,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:c(e,{src:i.icon,alt:i.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),c(n,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:i.title}),c(t,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:c(n,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:i.badgeText||`广告`})})]})},`${i.jumpUrl}-${a}`))})})}export{u as IconAd};
2
+ "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import r from"../../../../ui/link.mjs";import{adaptIconAdProps as i,hasMatchedAds as a}from"../ad-match.mjs";import{useAdProvider as o}from"../ad-provider.mjs";import{iconAdInspectorDefaultProps as s}from"./schema.mjs";import{useMemo as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";function d({mode:d=`renderer`,displayCount:f,items:p,pointerEventsDisabled:m=!1}){let h=d===`editor`?{...s,displayCount:f,items:p}:{displayCount:f,items:p},g=o(),_=c(()=>a(g?.matchData)?i(g?.matchData):{displayCount:h.displayCount,items:h.items},[g?.matchData,h.displayCount,h.items]),v=Math.min(Math.max(_.displayCount,0),Math.min(_.items.length,5)),y=_.items.slice(0,v);return y.length===0?null:l(t,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:m?`none`:void 0},children:l(t,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:y.length>=5?`space-between`:`flex-start`},children:y.map((i,a)=>l(r,{href:i.jumpUrl,className:`block shrink-0`,style:{width:`100px`},children:u(t,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[l(t,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:l(e,{src:i.icon,alt:i.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),l(n,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:i.title}),l(t,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:l(n,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:i.badgeText||`广告`})})]})},`${i.jumpUrl}-${a}`))})})}export{d as IconAd};
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{IconAd as t}from"./client.mjs";import{iconAdInspectorPropsSchema as n}from"./schema.mjs";import{IconAdServer as r}from"./server.mjs";const i=e({type:`icon-ad`,name:`图标广告`,icon:`/static/components-thumb/shortcut_grid_5.png`,category:`广告组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as iconAdMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{iconAdInspectorPropsSchema as t}from"./schema.mjs";import{IconAd as n}from"./client.mjs";import{IconAdServer as r}from"./server.mjs";const i=e({type:`icon-ad`,name:`图标广告`,icon:`/static/components-thumb/shortcut_grid_5.png`,category:`广告组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as iconAdMaterial};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{adaptTextAdProps as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{useEffect as o,useMemo as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=`text_ad_list`;let f=null;function p(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function m(e,t){return p(e.closedAt,t)}function h(){if(f)return f;if(typeof window>`u`)return{};let e=window.localStorage.getItem(d);if(!e)return f={},{};try{let t=JSON.parse(e);return f=t&&typeof t==`object`?t:{},f}catch{return f={},{}}}function g(e){f=e,!(typeof window>`u`)&&window.localStorage.setItem(d,JSON.stringify(e))}function _(e){return h()[e]??{}}function v(e,t){g({...h(),[e]:t})}function y({displayCount:d,items:f,mode:p=`renderer`}){let h=a(),g=e(),y=p===`editor`,[b,x]=c(!1),[S,C]=c(y),[w,T]=c(y),E=s(()=>i(h?.matchData)?r(h?.matchData):{displayCount:d,items:f},[h?.matchData,d,f]),D=s(()=>{let e=E.items.filter(e=>e.text?.trim());return typeof E.displayCount==`number`?e.slice(0,Math.max(E.displayCount,0)):e},[E]),O=D[0],k=s(()=>D.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[D]);if(o(()=>{x(!0)},[]),o(()=>{if(b){if(y){C(!0),T(!0);return}if(!k||!O){C(!1),T(!0);return}C(!m(_(k),`daily`)),T(!0)}},[O,y,b,k]),!O||!y&&(!b||!w||!S))return null;function A(){k&&v(k,{..._(k),closedAt:Date.now()})}function j(e){e.jumpUrl&&g.push(e.jumpUrl)}function M(e){e.stopPropagation(),C(!1),A()}function N(){y||(C(!1),A(),j(O))}return l(t,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:u(t,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:N,children:[u(t,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[l(t,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:l(n,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),l(n,{className:`truncate`,style:{flex:`1 0 0`,color:`#FD4C5E`,fontSize:`14px`,lineHeight:`normal`,fontWeight:400},children:O.text})]}),u(t,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[l(t,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:l(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:l(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),u(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:M,children:[l(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),l(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{y as TextAd};
2
+ "use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{adaptTextAdProps as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{textAdInspectorDefaultProps as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";const f=`text_ad_list`;let p=null;function m(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function h(e,t){return m(e.closedAt,t)}function g(){if(p)return p;if(typeof window>`u`)return{};let e=window.localStorage.getItem(f);if(!e)return p={},{};try{let t=JSON.parse(e);return p=t&&typeof t==`object`?t:{},p}catch{return p={},{}}}function _(e){p=e,!(typeof window>`u`)&&window.localStorage.setItem(f,JSON.stringify(e))}function v(e){return g()[e]??{}}function y(e,t){_({...g(),[e]:t})}function b({displayCount:f,items:p,mode:m=`renderer`}){let g=m===`editor`?{...o,displayCount:f,items:p}:{displayCount:f,items:p},_=a(),b=e(),x=m===`editor`,[S,C]=l(!1),[w,T]=l(x),[E,D]=l(x),O=c(()=>i(_?.matchData)?r(_?.matchData):{displayCount:g.displayCount,items:g.items},[_?.matchData,g.displayCount,g.items]),k=c(()=>{let e=O.items.filter(e=>e.text?.trim());return typeof O.displayCount==`number`?e.slice(0,Math.max(O.displayCount,0)):e},[O]),A=k[0],j=c(()=>k.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[k]);if(s(()=>{C(!0)},[]),s(()=>{if(S){if(x){T(!0),D(!0);return}if(!j||!A){T(!1),D(!0);return}T(!h(v(j),`daily`)),D(!0)}},[A,x,S,j]),!A||!x&&(!S||!E||!w))return null;function M(){j&&y(j,{...v(j),closedAt:Date.now()})}function N(e){e.jumpUrl&&b.push(e.jumpUrl)}function P(e){e.stopPropagation(),T(!1),M()}function F(){x||(T(!1),M(),N(A))}return u(t,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:d(t,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:F,children:[d(t,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[u(t,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:u(n,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),u(n,{className:`truncate`,style:{flex:`1 0 0`,color:`#FD4C5E`,fontSize:`14px`,lineHeight:`normal`,fontWeight:400},children:A.text})]}),d(t,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[u(t,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:u(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:u(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),d(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:P,children:[u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{b as TextAd};
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{TextAd as t}from"./client.mjs";import{textAdInspectorPropsSchema as n}from"./schema.mjs";import{TextAdServer as r}from"./server.mjs";const i=e({type:`text-ad`,name:`文字广告`,icon:`/static/components-thumb/marquee_clickable_closable.png`,category:`广告组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as textAdMaterial};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{textAdInspectorPropsSchema as t}from"./schema.mjs";import{TextAd as n}from"./client.mjs";import{TextAdServer as r}from"./server.mjs";const i=e({type:`text-ad`,name:`文字广告`,icon:`/static/components-thumb/marquee_clickable_closable.png`,category:`广告组件`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as textAdMaterial};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Button as t}from"../../../ui/button.mjs";import{Image as n}from"../../../ui/image.mjs";import{Box as r}from"../../../ui/box.mjs";import{Carousel as i,CarouselContent as a,CarouselItem as o}from"../../../ui/carousel.mjs";import{Text as s}from"../../../ui/text.mjs";import c from"../../../ui/link.mjs";import l from"../../../../assets/icons/detail/video_flag.mjs";import{defaultProps as u}from"./default-props.mjs";import d from"clsx";import{useIsClient as f}from"foxact/use-is-client";import{useEffect as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={list:[]};function y(e){let t=Number(e||0);if(!Number.isFinite(t)||t<=0)return`0`;if(t>=1e4){let e=t/1e4;return`${e%1==0?e:e.toFixed(1)}万`}if(t>=1e3){let e=t/1e3;return`${e%1==0?e:e.toFixed(1)}千`}return String(Math.floor(t))}function b(e){let t=e.playCount;if(typeof t==`number`&&Number.isFinite(t))return t;let n=e.video;if(!n||typeof n!=`object`)return 0;let r=n;return Number(r.static?.browse_cnt??r.play_count??0)||0}function x({mode:x=`renderer`,props:S=v,styles:C,events:w}){let T=x===`editor`,{autoplay:E=u.autoplay,interval:D=u.interval,loop:O=u.loop,showTitle:k=u.showTitle,showIndicator:A=u.showIndicator,list:j=[]}={...u,...S},[M,N]=h(),[P,F]=h(0),I=f(),L=m(null);if(p(()=>{if(!M||!I)return;let e=()=>{F(M.selectedScrollSnap())};return M.on(`select`,e),e(),()=>{M.off(`select`,e)}},[M,w,I]),p(()=>{if(!(!E||!M||j.length<=1))return L.current=setInterval(()=>{M.canScrollNext()?M.scrollNext():O&&M.scrollTo(0)},D*1e3),()=>{L.current&&=(clearInterval(L.current),null)}},[E,M,D,O,j.length]),!j||j.length===0)return null;let R=j[P],z=C?e(C,{}):void 0,B=R?.badgeUrl||``,V=R?.showPlayCount??!0,H=R?.showEpisodeCount??!0,U=b(R),W=typeof R?.episodeInfo==`string`?R.episodeInfo.trim():``;return _(r,{className:d(`relative w-full overflow-hidden rounded-[8px]`,T&&`pointer-events-none`),style:z,children:[g(i,{setApi:N,opts:{align:`start`,loop:O,skipSnaps:!1,dragFree:!1},className:`w-full`,children:g(a,{className:`ml-0`,children:j.map((e,t)=>g(o,{className:`pl-0`,children:g(c,{href:e.target,className:`block relative w-full h-[219px] overflow-hidden rounded-[8px] touch-manipulation`,children:g(n,{src:e.coverUrl,alt:e.title||`Banner ${t+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},t))})}),g(r,{className:`absolute inset-0 pointer-events-none flex flex-col justify-end`,style:{background:`linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%)`},children:_(r,{className:`flex items-end justify-between gap-2 p-[8px]`,children:[_(r,{className:`flex-1 min-w-0 flex flex-col gap-[4px]`,children:[k&&R?.title!=null&&g(s,{as:`p`,className:`text-white text-[16px] leading-[24px] font-bold line-clamp-1`,children:String(R.title)}),_(r,{className:`flex items-center gap-[8px]`,children:[V&&_(r,{className:`flex items-center gap-[4px] px-[4px] py-0 rounded-[4px] bg-white/10 shrink-0`,children:[g(l,{className:`w-[12px] h-[12px] text-white shrink-0`}),g(s,{as:`span`,className:`text-white text-[12px] leading-[20px]`,children:y(U)})]}),H&&W&&g(s,{as:`span`,className:`text-white text-[12px] leading-[20px] shrink-0`,children:W})]})]}),A&&j.length>1&&g(r,{className:`flex items-center gap-[4px] py-[4px] shrink-0 pointer-events-auto`,children:j.map((e,n)=>g(t,{type:`button`,size:`xs`,className:d(`transition-all duration-300 rounded-full !p-0 shrink-0`,n===P?`w-[10px] h-[6px] bg-theme5`:`w-[6px] h-[6px] bg-white/30`),style:{padding:`0 !important`},"aria-label":`跳转到第 ${n+1} 个 Banner`,onClick:()=>M?.scrollTo(n)},n))})]})}),B&&g(r,{className:`absolute top-0 right-0 overflow-hidden rounded-bl-[8px] pointer-events-none`,children:g(n,{src:B,alt:``,width:37,height:20,className:`object-contain`,unoptimized:!0})})]})}export{x as default};
2
+ "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Button as t}from"../../../ui/button.mjs";import{Image as n}from"../../../ui/image.mjs";import{Box as r}from"../../../ui/box.mjs";import{Carousel as i,CarouselContent as a,CarouselItem as o}from"../../../ui/carousel.mjs";import{Text as s}from"../../../ui/text.mjs";import c from"../../../ui/link.mjs";import l from"../../../../assets/icons/detail/video_flag.mjs";import{defaultProps as u}from"./default-props.mjs";import d from"clsx";import{useIsClient as f}from"foxact/use-is-client";import{useEffect as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={list:[]};function y(e){let t=Number(e||0);if(!Number.isFinite(t)||t<=0)return`0`;if(t>=1e4){let e=t/1e4;return`${e%1==0?e:e.toFixed(1)}万`}if(t>=1e3){let e=t/1e3;return`${e%1==0?e:e.toFixed(1)}千`}return String(Math.floor(t))}function b(e){let t=e.playCount;if(typeof t==`number`&&Number.isFinite(t))return t;let n=e.video;if(!n||typeof n!=`object`)return 0;let r=n;return Number(r.static?.browse_cnt??r.play_count??0)||0}function x({mode:x=`renderer`,props:S=v,styles:C,events:w}){let T=x===`editor`,{autoplay:E=u.autoplay,interval:D=u.interval,loop:O=u.loop,showTitle:k=u.showTitle,showIndicator:A=u.showIndicator,list:j=[]}={...u,...S},[M,N]=h(),[P,F]=h(0),I=f(),L=m(null);if(p(()=>{if(!M||!I)return;let e=()=>{F(M.selectedScrollSnap())};return M.on(`select`,e),e(),()=>{M.off(`select`,e)}},[M,w,I]),p(()=>{if(!(!E||!M||j.length<=1))return L.current=setInterval(()=>{M.canScrollNext()?M.scrollNext():O&&M.scrollTo(0)},D*1e3),()=>{L.current&&=(clearInterval(L.current),null)}},[E,M,D,O,j.length]),!j||j.length===0)return null;let R=j[P],z=C?e(C,{}):void 0,B=R?.badgeUrl||``,V=R?.showPlayCount??!0,H=R?.showEpisodeCount??!0,U=b(R),W=typeof R?.episodeInfo==`string`?R.episodeInfo.trim():``;return _(r,{className:d(`relative w-full overflow-hidden`,T&&`pointer-events-none`),style:z,children:[g(i,{setApi:N,opts:{align:`start`,loop:O,skipSnaps:!1,dragFree:!1},className:`w-full`,children:g(a,{className:`ml-0`,children:j.map((e,t)=>g(o,{className:`pl-0`,children:g(c,{href:e.target,className:`block relative w-full h-[219px] overflow-hidden touch-manipulation`,children:g(n,{src:e.coverUrl,alt:e.title||`Banner ${t+1}`,fill:!0,objectFit:`cover`,unoptimized:!0})})},t))})}),g(r,{className:`absolute inset-0 pointer-events-none flex flex-col justify-end`,style:{background:`linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%)`},children:_(r,{className:`flex items-end justify-between gap-2 p-[8px]`,children:[_(r,{className:`flex-1 min-w-0 flex flex-col gap-[4px]`,children:[k&&R?.title!=null&&g(s,{as:`p`,className:`text-white text-[16px] leading-[24px] font-bold line-clamp-1`,children:String(R.title)}),_(r,{className:`flex items-center gap-[8px]`,children:[V&&_(r,{className:`flex items-center gap-[4px] px-[4px] py-0 rounded-[4px] bg-white/10 shrink-0`,children:[g(l,{className:`w-[12px] h-[12px] text-white shrink-0`}),g(s,{as:`span`,className:`text-white text-[12px] leading-[20px]`,children:y(U)})]}),H&&W&&g(s,{as:`span`,className:`text-white text-[12px] leading-[20px] shrink-0`,children:W})]})]}),A&&j.length>1&&g(r,{className:`flex items-center gap-[4px] py-[4px] shrink-0 pointer-events-auto`,children:j.map((e,n)=>g(t,{type:`button`,size:`xs`,className:d(`transition-all duration-300 rounded-full !p-0 shrink-0`,n===P?`w-[10px] h-[6px] bg-theme5`:`w-[6px] h-[6px] bg-white/30`),style:{padding:`0 !important`},"aria-label":`跳转到第 ${n+1} 个 Banner`,onClick:()=>M?.scrollTo(n)},n))})]})}),B&&g(r,{className:`absolute top-0 right-0 overflow-hidden rounded-bl-[8px] pointer-events-none`,children:g(n,{src:B,alt:``,width:37,height:20,className:`object-contain`,unoptimized:!0})})]})}export{x as default};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Box as t}from"../../../ui/box.mjs";import n from"../../../ui/link.mjs";import{urlPrefix as r}from"../../../../constants/url-prefix.mjs";import{useSticky as i}from"../../../../hooks/use-sticky.mjs";import a from"../../../../assets/icons/channel-list/channel-active-indicator.mjs";import o from"../../../../assets/icons/common/header-menu.mjs";import s,{loadHiddenChannelIdsFromStorage as c}from"./channel-filter-dialog.mjs";import{defaultProps as l}from"./default-props.mjs";import{clsx as u}from"clsx";import{useEffect as d,useMemo as f,useState as p}from"react";import{Fragment as m,jsx as h,jsxs as g}from"react/jsx-runtime";import{usePathname as _}from"next/navigation";import{useTranslations as v}from"next-intl";const y={},b=`h-[26px]`;function x(e,t){let n=`${r.DOMAIN}/`,i=t.indexOf(n),a=i!==-1,o=a?t.slice(i+n.length).split(`/`)[0]:void 0;return e.isDefault?a&&o?`${r.DOMAIN}/${o}`:`/`:a&&o?`${r.DOMAIN}/${o}/${encodeURIComponent(e.name)}`:`${r.CHANNEL}/${encodeURIComponent(e.name)}`}function S(r){let S=v(`components.biz.business.navBar.variants.basicNavBar.runtime`),{mode:C=`renderer`,styles:w,events:T,...E}=r,D=_()??`/`,O=C===`editor`,k=E||y,A={...l,...k},[j,M]=p(!1),{isSticky:N,ref:P}=i(),[F,I]=p(!1),[L,R]=p(A.list),z=f(()=>A.list.find(e=>e.isDefault)?.name??null,[A.list]),B=f(()=>A.currentChannelId??z,[A.currentChannelId,z]);d(()=>{let e=c();R(e?.length?A.list.filter(t=>!e.includes(t.name)):A.list)},[A.list]);let V=e=>{R(e)},H=(e,t)=>{T?.onChannelChange?.(e,t)},U=w?e(w,{}):void 0,W=()=>{M(!0),T?.onFilterClick?.()};return d(()=>{let e=()=>{let e=window.scrollY??document.documentElement.scrollTop??0,t=window.innerHeight,n=document.documentElement.scrollHeight;I(e+t>=n-1)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>{window.removeEventListener(`scroll`,e)}},[]),g(m,{children:[N&&h(t,{className:u(`w-full`,b)}),h(t,{as:`nav`,ref:P,className:u(`w-full transition-all duration-200 bg-bg1`,O&&`pointer-events-none`,N&&`fixed top-0 left-0 right-0 z-50`),style:U,children:g(t,{className:u(`relative flex w-full items-center px-4`,b,A.modifiable&&`gap-2`),children:[h(t,{className:`[-webkit-overflow-scrolling:touch] [-ms-overflow-style:none] [scrollbar-width:none] flex h-full min-w-0 flex-1 items-center overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,children:h(t,{className:`inline-flex h-full min-w-full items-center gap-[23.8px]`,children:L.map((e,r)=>{let i=B===e.name||B===null&&r===0;return h(n,{href:x(e,D),webviewNavMode:`spa`,className:u(`group relative inline-flex h-full shrink-0 cursor-pointer whitespace-nowrap transition-all duration-200`,i?`text-white`:`text-white/70`),onClick:()=>H(e,r),children:i?g(t,{className:u(`inline-grid grid-cols-1 grid-rows-1 place-items-start`,b),children:[h(t,{as:`span`,className:`relative z-[1] block h-[24px] text-center text-[20px] font-['PingFang_SC'] font-semibold leading-[24px] text-white transition-all duration-200`,children:e.name}),h(t,{"aria-hidden":`true`,className:`col-start-1 row-start-1 ml-px mt-[15px] h-[11px] w-[39px]`,children:h(a,{className:`block h-full w-full`})})]}):h(t,{className:`inline-flex h-full items-center`,children:h(t,{as:`span`,className:`block h-[24px] text-center text-[16px] font-['PingFang_SC'] font-normal leading-[24px] transition-all duration-200`,children:e.name})})},e.name||`channel-${r}`)})})}),A.modifiable?h(`button`,{type:`button`,"aria-label":S(`moreChannelEntry`),className:`relative flex size-6 shrink-0 items-center justify-center border-0 bg-transparent p-0`,onClick:W,children:h(o,{"aria-hidden":`true`,className:`h-[24px] w-[24px] text-white`})}):null]})}),h(s,{open:j,onOpenChange:M,channels:A.list,currentChannelId:B,onChannelClick:H,onChannelsChange:V})]})}export{S as default};
2
+ "use client";import{mergeStyles as e}from"../../utils/styles/helpers.mjs";import{Box as t}from"../../../ui/box.mjs";import n from"../../../ui/link.mjs";import{urlPrefix as r}from"../../../../constants/url-prefix.mjs";import{useSticky as i}from"../../../../hooks/use-sticky.mjs";import a from"../../../../assets/icons/filter_dark.mjs";import o,{loadHiddenChannelIdsFromStorage as s}from"./channel-filter-dialog.mjs";import{defaultProps as c}from"./default-props.mjs";import{clsx as l}from"clsx";import{useEffect as u,useMemo as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";import{usePathname as g}from"next/navigation";const _={};function v(e,t){let n=`${r.DOMAIN}/`,i=t.indexOf(n),a=i!==-1,o=a?t.slice(i+n.length).split(`/`)[0]:void 0;return e.isDefault?a&&o?`${r.DOMAIN}/${o}`:`/`:a&&o?`${r.DOMAIN}/${o}/${encodeURIComponent(e.name)}`:`${r.CHANNEL}/${encodeURIComponent(e.name)}`}function y(r){let{mode:y=`renderer`,styles:b,events:x,...S}=r,C=g()??`/`,w=y===`editor`,T=S||_,E={...c,...T},[D,O]=f(!1),{isSticky:k,ref:A}=i(),[j,M]=f(!1),[N,P]=f(E.list),F=d(()=>E.list.find(e=>e.isDefault)?.name??null,[E.list]),I=d(()=>E.currentChannelId??F,[E.currentChannelId,F]);u(()=>{let e=s();P(e?.length?E.list.filter(t=>!e.includes(t.name)):E.list)},[E.list]);let L=e=>{P(e)},R=(e,t)=>{x?.onChannelChange?.(e,t)},z=b?e(b,{}):void 0;return u(()=>{let e=()=>{let e=window.scrollY??document.documentElement.scrollTop??0,t=window.innerHeight,n=document.documentElement.scrollHeight;M(e+t>=n-1)};return window.addEventListener(`scroll`,e,{passive:!0}),e(),()=>{window.removeEventListener(`scroll`,e)}},[]),h(p,{children:[k&&m(t,{className:`w-full h-11`}),m(t,{as:`nav`,ref:A,className:l(`w-full transition-all duration-200 bg-bg1`,w&&`pointer-events-none`,k&&`fixed top-0 left-0 right-0 z-50`),style:z,children:h(t,{className:`relative flex items-center h-[44px]`,children:[m(t,{className:`flex-1 overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitOverflowScrolling:`touch`},children:m(t,{className:`flex items-center h-full pl-4 pr-4 gap-4`,children:N.map((e,t)=>{let r=I===e.name||I===null&&t===0;return m(n,{href:v(e,C),webviewNavMode:`spa`,className:l(`whitespace-nowrap cursor-pointer transition-all duration-200`,`flex items-center justify-center h-11`,`${r?`text-xl`:`text-base`}`),style:{fontWeight:r?`bold`:`normal`,color:r?`var(--color-theme5)`:`var(--color-text2)`},onClick:()=>R(e,t),children:e.name},e.name||`channel-${t}`)})})}),r.modifiable?m(t,{className:`flex items-center gap-[12px] px-[8px]`,children:m(t,{className:`flex items-center justify-center cursor-pointer w-7 h-8`,onClick:()=>{O(!0),x?.onFilterClick?.()},children:m(a,{className:`w-5 h-5`,style:{color:`var(--color-text1)`}})})}):null]})}),m(o,{open:D,onOpenChange:O,channels:E.list,currentChannelId:I,onChannelClick:R,onChannelsChange:L})]})}export{y as default};
@@ -1,2 +1,2 @@
1
1
 
2
- const e={currentChannelId:null,isFullfeed:!1,modifiable:!0,list:[]};export{e as defaultProps};
2
+ const e={currentChannelId:null,isFullfeed:!1,list:[]};export{e as defaultProps};
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{Box as e}from"../../../../ui/box.mjs";import{Text as t}from"../../../../ui/text.mjs";import{useCardDecoration as n}from"../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTags as r}from"./detail-info-tags.mjs";import{DetailInfoTitle as i}from"./detail-info-title.mjs";import{useEffect as a,useMemo as o,useRef as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useTranslations as d}from"next-intl";function f({information:f,isShow:m,showTags:h=!0}){let g=d(`components.biz.business.detail`),{getTitleText:_}=n(),v=o(()=>_(f),[_,f]),y=o(()=>f.description||``,[f.description]),[b,x]=c(!1),[S,C]=c(!1),w=s(null),T=o(()=>p(f.score),[f.score]),E=f.tags||[],D=h&&E.length>0;a(()=>{x(!1)},[y]),a(()=>{if(b){C(!0);return}let e=w.current;if(!y||!m||!e){C(!1);return}let t=()=>{C(e.scrollHeight>e.clientHeight+1)};t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[y,b,m]);function O(){x(e=>!e)}return!v&&!y&&!D?null:u(e,{className:`w-full pt-4 px-[12px]`,children:[u(e,{className:`w-full flex items-start justify-between min-w-0`,children:[l(e,{className:`flex-1 pr-[12px] min-w-0`,children:l(i,{title:v})}),u(e,{className:`ml-4 shrink-0 flex flex-col items-center`,children:[l(e,{className:`text-[28px] leading-[36px] h-[36px] font-bold text-[#FF9F1A]`,children:T}),l(t,{className:`text-[12px] text-text2 leading-4`,children:g(`detailIntroduction.score`)})]})]}),y&&m&&u(e,{className:`mt-[12px]`,children:[l(`p`,{ref:w,className:`text-[14px] leading-[22px] text-text2 break-all ${b?``:`line-clamp-1`}`,children:y}),S&&l(`button`,{type:`button`,className:`mt-[8px] text-theme5 inline-flex items-center text-[12px] leading-[18px] text-text2`,onClick:O,children:g(b?`detailIntroduction.collapse`:`detailIntroduction.expand`)})]}),D&&l(r,{tags:E,className:`mt-[12px]`})]})}function p(e){let t=Number(e||`0`);return Number.isFinite(t)?(t>10?t/10:t).toFixed(1):`0`}export{f as DetailIntroduction};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{pCommunityMoveCollectionContent as t}from"../../../../../service/generated/client.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Text as r}from"../../../../ui/text.mjs";import{useLoginModalStore as i}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as a}from"../../../../../hooks/query/use-query.mjs";import o from"../../../../common/interaction-animations.module.mjs";import s from"../../../../common/collection-popup/index.mjs";import c from"../../../../common/share-popup/share-popup.mjs";import{useInteractionAnimation as l}from"../../../../../hooks/use-interaction-animation.mjs";import{useContentOperate as ee}from"../../../../../hooks/use-content-operate.mjs";import te from"../../../../../assets/icons/detail/check-ok.mjs";import{useCallback as u,useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{toast as _}from"sonner";import{usePathname as v,useSearchParams as y}from"next/navigation";import{useTranslations as b}from"next-intl";function x({className:e}){return h(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:h(`path`,{d:`M21.2121 6.89394C21.2121 4.25805 19.0753 2.12121 16.4394 2.12121C14.8261 2.12121 13.3991 2.92114 12.5336 4.15024C12.3349 4.4321 12.0115 4.59976 11.6667 4.59976C11.3218 4.59976 10.9984 4.4321 10.7997 4.15024C9.93421 2.92114 8.50725 2.12121 6.89394 2.12121C4.25804 2.12121 2.12121 4.25805 2.12121 6.89394C2.12121 9.40321 3.62133 11.9321 5.72562 14.0572C7.68391 16.0348 10.0088 17.5016 11.6667 18.137C13.3246 17.5016 15.6494 16.0348 17.6077 14.0572C19.712 11.9321 21.2121 9.40321 21.2121 6.89394ZM23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function S({className:e}){return h(`svg`,{viewBox:`0 0 24 21`,fill:`none`,className:e,children:h(`path`,{d:`M23.3333 6.89394C23.3333 10.2178 21.3863 13.2566 19.1158 15.5497C16.8347 17.8533 14.0447 19.5915 12.0012 20.2706C11.7841 20.3428 11.5493 20.3428 11.3321 20.2706C9.28858 19.5915 6.4986 17.8533 4.21757 15.5497C1.94701 13.2566 0 10.2178 0 6.89394C0 3.08654 3.08652 0 6.89394 0C8.74758 0 10.4287 0.733771 11.6667 1.92235C12.9047 0.733771 14.5858 0 16.4394 0C20.2468 0 23.3333 3.08654 23.3333 6.89394Z`,fill:`currentColor`})})}function C({className:e}){return h(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:h(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06ZM9.37675 8.14386C9.22265 8.45841 8.92279 8.6767 8.57614 8.72697L3.33644 9.48615L7.1365 13.2013C7.38683 13.446 7.50059 13.799 7.43996 14.1438L6.54096 19.2509L11.1675 16.7859L11.2866 16.731C11.5714 16.6219 11.8921 16.6405 12.1649 16.7859L16.7946 19.253L15.9028 14.1427C15.8428 13.7988 15.9559 13.4467 16.2052 13.2023L20.0001 9.48511L14.7967 8.72697C14.4525 8.67672 14.155 8.46057 14.0002 8.14904L11.6719 3.45827L9.37675 8.14386Z`,fill:`currentColor`})})}function ne({className:e}){return h(`svg`,{viewBox:`0 0 24 23`,fill:`none`,className:e,children:h(`path`,{d:`M11.6636 2.65236e-06C12.0673 -0.000898131 12.437 0.227705 12.6165 0.589326L15.6522 6.70732L22.4258 7.69539C22.8246 7.75364 23.1564 8.03302 23.2813 8.41625C23.4062 8.79955 23.3021 9.22064 23.0141 9.50272L18.0882 14.3261L19.2585 21.0292C19.3281 21.4283 19.1639 21.8323 18.836 22.0701C18.5077 22.3079 18.072 22.3385 17.7143 22.1478L11.6657 18.9226L5.61917 22.1478C5.26131 22.3386 4.82579 22.3082 4.49748 22.0701C4.16923 21.832 4.00582 21.4276 4.07595 21.0282L5.25356 14.3271L0.319396 9.50376C0.0308898 9.2217 -0.0728394 8.79987 0.0521809 8.41625C0.177201 8.03266 0.509448 7.7533 0.90872 7.69539L7.71753 6.70732L10.7139 0.593469L10.7884 0.464005C10.9835 0.177012 11.3103 0.000910321 11.6636 2.65236e-06Z`,fill:`currentColor`})})}function w({className:e}){return h(`svg`,{viewBox:`0 0 24 24`,fill:`none`,className:e,children:h(`path`,{d:`M11.7968 0.0846035C12.212 -0.0873746 12.69 0.00771373 13.0078 0.325488L23.0077 10.3254C23.22 10.5377 23.3375 10.8271 23.3332 11.1273C23.3288 11.4272 23.2029 11.7123 22.9849 11.9183L12.985 21.3627C12.6625 21.6673 12.1901 21.7509 11.7827 21.5754C11.3753 21.3998 11.1111 20.9991 11.1111 20.5554V15.6216C8.22953 15.9648 6.08879 17.6095 4.58982 19.3391C3.74967 20.3085 3.13167 21.2821 2.7246 22.0148C2.52173 22.38 2.37311 22.6823 2.27646 22.8894C2.22828 22.9927 2.19344 23.0722 2.17121 23.1238C2.16011 23.1495 2.15201 23.169 2.14734 23.1802C2.1451 23.1856 2.14372 23.1893 2.143 23.191C1.94502 23.6852 1.42342 23.9699 0.900603 23.8692C0.377728 23.7684 0 23.3102 0 22.7776C0 17.9877 0.696606 13.8374 2.60632 10.8582C4.41013 8.04448 7.21019 6.40446 11.1111 6.14686V1.11107C11.1111 0.661725 11.3817 0.256615 11.7968 0.0846035ZM13.3333 7.22216C13.3333 7.8358 12.8358 8.33326 12.2222 8.33326C8.37436 8.33326 5.97849 9.71592 4.47697 12.0583C3.44269 13.6719 2.79177 15.8074 2.46852 18.4168C2.60946 18.2401 2.75584 18.061 2.91014 17.8829C4.8356 15.6613 7.89407 13.3332 12.2222 13.3332C12.8358 13.3332 13.3333 13.8307 13.3333 14.4443V17.9773L20.6282 11.0882L13.3333 3.79335V7.22216Z`,fill:`currentColor`})})}function T({mode:T=`renderer`,information:O,onUpdate:k}){let A=T===`editor`||!O?.id||O.id.startsWith(`preview-`),j=`${v()}?${y()?.toString()||``}`,M=p(j),N=b(`components.biz.business.detail`),P=l(),[F,I]=m(!1),[L,R]=m(!1),z=p(0),B=p(0),V=e(e=>e.userId),H=e(e=>e.isLogin),U=a();d(()=>{M.current!==j&&(c.clear(),M.current=j)},[j]),d(()=>()=>{c.clear()},[]);let W=u(()=>{V&&(U([`user-profile`,`mine`,V,`user-like-video`]),U([`user-profile`,`mine`,V,`user-like-post`]),U([`user-profile`,`mine`,V,`user-collect-video`,V]),U([`user-profile`,`mine`,V,`user-collect-post`,V]))},[U,V]),{likeAnimation:G,handleLikeOperate:K,handleDefaultCollectionOperate:q,handleShareOperate:J}=ee({id:O.id,isLike:O.like||!1,isDislike:O.dislike||!1,isCollect:O.collect||!1,likeCnt:D(O.static?.like_cnt),dislikeCnt:D(O.static?.dislike_cnt),contentType:1,prefetchDefaultCollection:!A,animationClasses:{like:o.likeShakeAnimation,dislike:o.dislikeShakeAnimation}}),Y=u(e=>{k?.({...e})},[k]),X=u(async()=>{if(F)return;if(!H){i.getState().open();return}let e=Date.now();if(e-z.current<300)return;z.current=e,I(!0);let t=O.like||!1,n=O.dislike||!1,r=D(O.static?.like_cnt),a=D(O.static?.dislike_cnt),o=!t,s=Math.max(0,r+(o?1:-1)),c=o?!1:n,l=o&&n?Math.max(0,a-1):a;Y({like:o,dislike:c,static:{...O.static,like_cnt:s,dislike_cnt:l}});try{let e=await K();if(!e){Y({like:t,dislike:n,static:{...O.static,like_cnt:r,dislike_cnt:a}});return}Y({like:e.isLike,dislike:e.isDislike??c,static:{...O.static,like_cnt:e.likeCnt,dislike_cnt:e.dislikeCnt??l}}),W(),window.sensors?.track?.(`detail_like_click`,{object_id:O.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),_.error(N(`detailOperate.operateFailed`))}finally{I(!1)}},[K,O,W,F,H,N,Y]),Z=f(()=>O.id,[O.id]),re=u(()=>{J(({isCollect:e})=>{Y({collect:e})},Z)},[J,Z,Y]),Q=u(()=>{s.show({mode:`select`,onCollect:async e=>{try{let n=await t({new_collection_id:e,content_id:O.id});if(n.code!==0)throw Error(n.message||N(`detailOperate.collectFailed`));Y({collect:!0}),W(),_.success(N(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),_.error(N(`detailOperate.collectFailed`))}}})},[O.id,W,N,Y]),$=u(e=>{let t=e||N(`detailOperate.defaultCollection`);_.custom(e=>g(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[g(`div`,{className:`flex items-center gap-[10px]`,children:[h(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:h(te,{className:`w-[14px] h-[14px]`})}),g(`div`,{className:`flex items-center gap-[6px]`,children:[h(`span`,{className:`text-[14px] leading-[20px]`,children:N(`detailOperate.collectAdded`)}),h(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),h(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{_.dismiss(e),Q()},children:N(`detailOperate.modifyCollection`)})]}))},[Q,N]),ie=u(async()=>{if(L)return;if(!H){i.getState().open();return}let e=Date.now();if(e-B.current<300)return;B.current=e;let t=O.collect||!1,n=!t;R(!0),Y({collect:n}),n&&P.trigger(o.likeShakeAnimation),window.sensors?.track?.(`detail_fav_click`,{object_id:O.id,action:t?`取消收藏`:`收藏`});try{let e=await q({currentCollect:t,onUpdate:({isCollect:e})=>{Y({collect:e})}});if(!e?.success){Y({collect:t}),_.error(e?.message||N(`detailOperate.collectFailed`));return}Y({collect:e.isCollect??n}),W(),window.sensors?.track?.(`detail_fav_click`,{object_id:O.id,action:e.isCollect?`收藏`:`取消收藏`}),!t&&e.isCollect&&$(e.collectionTitle),t&&e.isCollect===!1&&_.success(N(`detailOperate.uncollectSuccess`))}catch(e){Y({collect:t}),console.error(`收藏操作失败:`,e),_.error(e?.message||N(`detailOperate.collectFailed`))}finally{R(!1)}},[P,q,O.id,O.collect,W,L,H,$,N,Y]);return g(n,{className:`mt-[16px] flex h-[52px] w-full items-center justify-between px-[48px] opacity-70 ${A?`pointer-events-none`:``}`,children:[g(n,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${F?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:X,children:[O.like?h(S,{className:`size-[28px] text-[#FF5D8F] ${G.animationClass}`}):h(x,{className:`size-[28px] text-white`}),h(r,{className:`text-center text-[14px] leading-[22px] text-white`,children:O.static?O.static.like_cnt===0?N(`detailOperate.like`):E(O.static?.like_cnt):N(`detailOperate.like`)})]}),g(n,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] ${L?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:ie,children:[O.collect?h(ne,{className:`size-[28px] text-[#FFC039] ${P.animationClass}`}):h(C,{className:`size-[28px] text-white`}),h(r,{className:`text-center text-[14px] leading-[22px] text-white`,children:N(`detailOperate.collection`)})]}),g(n,{className:`flex h-full w-[43px] flex-col items-center justify-center gap-[2px] cursor-pointer`,onClick:re,children:[h(w,{className:`size-[28px] text-white`}),h(r,{className:`text-center text-[14px] leading-[22px] text-white`,children:N(`detailOperate.share`)})]})]})}function E(e){let t=Number(e||0);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function D(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}export{T as DetailOperate};
2
+ "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{pCommunityMoveCollectionContent as t}from"../../../../../service/generated/client.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Text as r}from"../../../../ui/text.mjs";import{useLoginModalStore as i}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as a}from"../../../../../hooks/query/use-query.mjs";import o from"../../../../common/interaction-animations.module.mjs";import s from"../../../../common/collection-popup/index.mjs";import c from"../../../../common/share-popup/share-popup.mjs";import{useInteractionAnimation as l}from"../../../../../hooks/use-interaction-animation.mjs";import{useContentOperate as u}from"../../../../../hooks/use-content-operate.mjs";import d from"../../../../../assets/icons/detail/check-ok.mjs";import f from"../../../../../assets/icons/detail/collect_nor.mjs";import p from"../../../../../assets/icons/detail/collect_sel.mjs";import ee from"../../../../../assets/icons/detail/give_like.mjs";import m from"../../../../../assets/icons/detail/give_like_sel.mjs";import te from"../../../../../assets/icons/detail/share.mjs";import{useCallback as h,useEffect as g,useMemo as _,useRef as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{toast as S}from"sonner";import{usePathname as C,useSearchParams as ne}from"next/navigation";import{useTranslations as w}from"next-intl";function T({mode:T=`renderer`,information:O,onUpdate:k}){let A=T===`editor`||!O?.id||O.id.startsWith(`preview-`),j=`${C()}?${ne()?.toString()||``}`,M=v(j),N=w(`components.biz.business.detail`),P=l(),[F,I]=y(!1),[L,R]=y(!1),z=v(0),B=v(0),V=e(e=>e.userId),H=e(e=>e.isLogin),U=a();g(()=>{M.current!==j&&(c.clear(),M.current=j)},[j]),g(()=>()=>{c.clear()},[]);let W=h(()=>{V&&(U([`user-profile`,`mine`,V,`user-like-video`]),U([`user-profile`,`mine`,V,`user-like-post`]),U([`user-profile`,`mine`,V,`user-collect-video`,V]),U([`user-profile`,`mine`,V,`user-collect-post`,V]))},[U,V]),{likeAnimation:G,handleLikeOperate:K,handleDefaultCollectionOperate:q,handleShareOperate:J}=u({id:O.id,isLike:O.like||!1,isDislike:O.dislike||!1,isCollect:O.collect||!1,likeCnt:D(O.static?.like_cnt),dislikeCnt:D(O.static?.dislike_cnt),contentType:1,prefetchDefaultCollection:!A,animationClasses:{like:o.likeShakeAnimation,dislike:o.dislikeShakeAnimation}}),Y=h(e=>{k?.({...e})},[k]),X=h(async()=>{if(F)return;if(!H){i.getState().open();return}let e=Date.now();if(e-z.current<300)return;z.current=e,I(!0);let t=O.like||!1,n=O.dislike||!1,r=D(O.static?.like_cnt),a=D(O.static?.dislike_cnt),o=!t,s=Math.max(0,r+(o?1:-1)),c=o?!1:n,l=o&&n?Math.max(0,a-1):a;Y({like:o,dislike:c,static:{...O.static,like_cnt:s,dislike_cnt:l}});try{let e=await K();if(!e){Y({like:t,dislike:n,static:{...O.static,like_cnt:r,dislike_cnt:a}});return}Y({like:e.isLike,dislike:e.isDislike??c,static:{...O.static,like_cnt:e.likeCnt,dislike_cnt:e.dislikeCnt??l}}),W(),window.sensors?.track?.(`detail_like_click`,{object_id:O.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),S.error(N(`detailOperate.operateFailed`))}finally{I(!1)}},[K,O,W,F,H,N,Y]),Z=_(()=>O.id,[O.id]),re=h(()=>{J(({isCollect:e})=>{Y({collect:e})},Z)},[J,Z,Y]),Q=h(()=>{s.show({mode:`select`,onCollect:async e=>{try{let n=await t({new_collection_id:e,content_id:O.id});if(n.code!==0)throw Error(n.message||N(`detailOperate.collectFailed`));Y({collect:!0}),W(),S.success(N(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),S.error(N(`detailOperate.collectFailed`))}}})},[O.id,W,N,Y]),$=h(e=>{let t=e||N(`detailOperate.defaultCollection`);S.custom(e=>x(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[x(`div`,{className:`flex items-center gap-[10px]`,children:[b(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:b(d,{className:`w-[14px] h-[14px]`})}),x(`div`,{className:`flex items-center gap-[6px]`,children:[b(`span`,{className:`text-[14px] leading-[20px]`,children:N(`detailOperate.collectAdded`)}),b(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),b(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{S.dismiss(e),Q()},children:N(`detailOperate.modifyCollection`)})]}))},[Q,N]),ie=h(async()=>{if(L)return;if(!H){i.getState().open();return}let e=Date.now();if(e-B.current<300)return;B.current=e;let t=O.collect||!1,n=!t;R(!0),Y({collect:n}),n&&P.trigger(o.likeShakeAnimation),window.sensors?.track?.(`detail_fav_click`,{object_id:O.id,action:t?`取消收藏`:`收藏`});try{let e=await q({currentCollect:t,onUpdate:({isCollect:e})=>{Y({collect:e})}});if(!e?.success){Y({collect:t}),S.error(e?.message||N(`detailOperate.collectFailed`));return}Y({collect:e.isCollect??n}),W(),window.sensors?.track?.(`detail_fav_click`,{object_id:O.id,action:e.isCollect?`收藏`:`取消收藏`}),!t&&e.isCollect&&$(e.collectionTitle),t&&e.isCollect===!1&&S.success(N(`detailOperate.uncollectSuccess`))}catch(e){Y({collect:t}),console.error(`收藏操作失败:`,e),S.error(e?.message||N(`detailOperate.collectFailed`))}finally{R(!1)}},[P,q,O.id,O.collect,W,L,H,$,N,Y]);return x(n,{className:`w-full h-[42px] mt-[16px] flex items-center justify-between ${A?`pointer-events-none`:``}`,children:[x(n,{className:`w-[25%] h-full flex flex-col items-center justify-center ${F?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:X,children:[O.like?b(m,{className:`w-[20px] h-[20px] ${G.animationClass}`}):b(ee,{className:`w-[20px] h-[20px] text-text2`}),b(r,{className:`text-[12px] text-text2 leading-[20px]`,children:O.static?O.static.like_cnt===0?N(`detailOperate.like`):E(O.static?.like_cnt):N(`detailOperate.like`)})]}),x(n,{className:`w-[25%] h-full flex flex-col items-center justify-center ${L?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:ie,children:[O.collect?b(p,{className:`w-[20px] h-[20px] ${P.animationClass}`}):b(f,{className:`w-[20px] h-[20px] text-text2`}),b(r,{className:`text-[12px] text-text2 leading-[20px]`,children:N(`detailOperate.collection`)})]}),x(n,{className:`w-[25%] h-full flex flex-col items-center justify-center cursor-pointer`,onClick:re,children:[b(te,{className:`w-[20px] h-[20px] text-text2`}),b(r,{className:`text-[12px] text-text2 leading-[20px]`,children:N(`detailOperate.share`)})]})]})}function E(e){let t=Number(e||0);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function D(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}export{T as DetailOperate};
@@ -20,9 +20,6 @@ import "../video-detail-actions/index.mjs";
20
20
  import { VideoDetailRecommendClient } from "../video-detail-recommend/client.mjs";
21
21
  import { VideoDetailRecommend } from "../video-detail-recommend/server.mjs";
22
22
  import "../video-detail-recommend/index.mjs";
23
- import { VideoDetailWaterfallRecommendClient } from "../video-detail-waterfall-recommend/client.mjs";
24
- import { VideoDetailWaterfallRecommend } from "../video-detail-waterfall-recommend/server.mjs";
25
- import "../video-detail-waterfall-recommend/index.mjs";
26
23
  import "../../../../../utils.mjs";
27
24
  import z$1 from "zod";
28
25
 
@@ -90,38 +87,6 @@ declare const videoDetailMaterials: MaterialMap<readonly [DefineMaterialOption<t
90
87
  renderer: "renderer";
91
88
  editor: "editor";
92
89
  }>>;
93
- }, z$1.core.$strip>, "video-detail-recommend", "详情页">, DefineMaterialOption<typeof VideoDetailWaterfallRecommend, typeof VideoDetailWaterfallRecommendClient, z$1.ZodObject<{
94
- readonly rows: z$1.ZodNumber & SchemaHasDefaultValue;
95
- readonly columns: z$1.ZodNumber & SchemaHasDefaultValue;
96
- readonly smartTagEnabled: z$1.ZodBoolean & SchemaHasDefaultValue;
97
- readonly title: z$1.ZodString & SchemaHasDefaultValue;
98
- readonly showPlayCount: z$1.ZodBoolean & SchemaHasDefaultValue;
99
- readonly playCountDelta: z$1.ZodNumber & SchemaHasDefaultValue;
100
- readonly showEpisode: z$1.ZodBoolean & SchemaHasDefaultValue;
101
- readonly enableInfinite: z$1.ZodBoolean & SchemaHasDefaultValue;
102
- readonly smartTagIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
103
- readonly items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
104
- contentId: z$1.ZodString;
105
- coverMode: z$1.ZodOptional<z$1.ZodEnum<{
106
- content: "content";
107
- upload: "upload";
108
- }>>;
109
- coverUrl: z$1.ZodOptional<z$1.ZodString>;
110
- titleMode: z$1.ZodOptional<z$1.ZodEnum<{
111
- content: "content";
112
- custom: "custom";
113
- }>>;
114
- title: z$1.ZodOptional<z$1.ZodString>;
115
- description: z$1.ZodOptional<z$1.ZodString>;
116
- showPlayCount: z$1.ZodOptional<z$1.ZodBoolean>;
117
- playCountDelta: z$1.ZodOptional<z$1.ZodNumber>;
118
- showEpisode: z$1.ZodOptional<z$1.ZodBoolean>;
119
- }, z$1.core.$strip>>>;
120
- } & {
121
- mode: z$1.ZodOptional<z$1.ZodEnum<{
122
- renderer: "renderer";
123
- editor: "editor";
124
- }>>;
125
- }, z$1.core.$strip>, "video-detail-waterfall-recommend", "详情页">]>;
90
+ }, z$1.core.$strip>, "video-detail-recommend", "详情页">]>;
126
91
  //#endregion
127
92
  export { videoDetailMaterials };