@funhub/platform 0.1.79 → 0.1.80

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 (38) hide show
  1. package/dist/biz.d.mts +6 -7
  2. package/dist/biz.mjs +1 -1
  3. package/dist/components/biz/business/index.d.mts +5 -6
  4. package/dist/components/biz/business/profile/index.d.mts +5 -6
  5. package/dist/components/biz/business/profile/profile-header/client.d.mts +0 -2
  6. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  7. package/dist/components/biz/business/profile/profile-header/index.d.mts +0 -1
  8. package/dist/components/biz/business/profile/profile-header/material.d.mts +2 -3
  9. package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
  10. package/dist/components/biz/business/profile/profile-header/schema.d.mts +0 -4
  11. package/dist/components/biz/business/profile/profile-main/client.d.mts +5 -4
  12. package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
  13. package/dist/components/biz/business/profile/profile-main/index.d.mts +5 -5
  14. package/dist/components/biz/business/profile/profile-main/schema.d.mts +5 -14
  15. package/dist/components/biz/business/profile/profile-main/server.d.mts +1 -1
  16. package/dist/components/biz/business/profile/profile-main/server.mjs +1 -1
  17. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
  18. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/index.d.mts +1 -1
  19. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.d.mts +3 -46
  20. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -1
  21. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/index.d.mts +1 -1
  22. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.d.mts +3 -40
  23. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -1
  24. package/dist/components/biz/business/profile/profile-main/tabs/index.d.mts +4 -4
  25. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/index.d.mts +1 -1
  26. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.d.mts +3 -31
  27. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -1
  28. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/index.d.mts +1 -1
  29. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.d.mts +3 -25
  30. package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -1
  31. package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
  32. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  33. package/dist/components/pages/profile/page.mjs +1 -1
  34. package/dist/components/ui/badge.d.mts +1 -1
  35. package/dist/components/ui/button.d.mts +2 -2
  36. package/package.json +1 -1
  37. package/dist/components/biz/business/profile/profile-header/server.d.mts +0 -36
  38. package/dist/components/biz/business/profile/profile-header/server.mjs +0 -2
package/dist/biz.d.mts CHANGED
@@ -99,21 +99,20 @@ import { BasicPostCardClient } from "./components/biz/business/post-card/variant
99
99
  import { schema as schema$5 } from "./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";
100
100
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./components/biz/business/profile/profile-header/schema.mjs";
101
101
  import { UserProfileHeaderClient } from "./components/biz/business/profile/profile-header/client.mjs";
102
- import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./components/biz/business/profile/profile-header/server.mjs";
103
102
  import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
104
- import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./components/biz/business/profile/profile-main/schema.mjs";
103
+ import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./components/biz/business/profile/profile-main/schema.mjs";
105
104
  import { UserProfileMainClient } from "./components/biz/business/profile/profile-main/client.mjs";
106
105
  import { UserProfileMain } from "./components/biz/business/profile/profile-main/server.mjs";
107
106
  import { profileMainMaterial } from "./components/biz/business/profile/profile-main/material.mjs";
108
107
  import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./components/biz/business/profile/profile-main/shell.mjs";
109
108
  import { CollectTab, CollectTabProps } from "./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";
110
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";
109
+ import { CollectTabServer } from "./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";
111
110
  import { HistoryTab, HistoryTabProps } from "./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";
112
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";
111
+ import { HistoryTabServer } from "./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";
113
112
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";
114
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";
113
+ import { LikeTabServer } from "./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";
115
114
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";
116
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";
115
+ import { PublishTabServer } from "./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";
117
116
  import { profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions } from "./components/biz/business/profile/profile-main/variants.mjs";
118
117
  import { defaultProps as defaultProps$6 } from "./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";
119
118
  import { BasicRecommendedUsersClient } from "./components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs";
@@ -154,4 +153,4 @@ import { exampleButtonMaterial } from "./components/biz/example/button/material.
154
153
  import "./components/biz/example/button/index.mjs";
155
154
  import { NodeDocument, PageDocument, PageMeta, Renderer, RendererDocument, RendererMaterial, RendererMode, RendererProps } from "./components/biz/renderer/renderer.mjs";
156
155
  import "./components/biz/renderer/index.mjs";
157
- export { 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, BuildCollectTabPrefetchParams, BuildHistoryTabPrefetchParams, BuildLikeTabPrefetchParams, BuildPublishTabPrefetchParams, BuildUserProfileHeaderPrefetchParams, 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, CollectTabAuthConfig, 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, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, 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, HistoryTabAuthConfig, 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, ImageTextRecommendClient, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, ProfileHeaderInspectorProps, ProfileMainAuthConfig, 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, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeader, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileHeaderProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildCollectTabPrefetch, buildContentUrl, buildHistoryTabPrefetch, buildLikeTabPrefetch, buildPublishTabPrefetch, buildUserProfileHeaderPrefetch, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem };
156
+ export { 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, FieldSchema, FieldType, FilterSearchClient as FilterSearch, FilterSearchBarClient as FilterSearchBar, defaultProps$17 as FilterSearchBarDefaultData, schema$17 as FilterSearchBarSchema, defaultProps$18 as FilterSearchDefaultData, schema$18 as FilterSearchSchema, 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, ImageTextRecommendClient, ImageTextRecommendProps, ImageTextRecommendServer, LikeDetailItem, LikeTab, LikeTabProps, LikeTabServer, MarqueeClient, MarqueeProps, MarqueeServer, MaterialRegistry, NodeDocument, PageDocument, PageMeta, 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, TabBarProps, TabBarServer, TagSearchClient as TagSearch, TagSearchBarClient as TagSearchBar, defaultProps$22 as TagSearchBarDefaultData, schema$24 as TagSearchBarSchema, defaultProps$23 as TagSearchDefaultData, schema$25 as TagSearchSchema, TextRecommendClient, TextRecommendProps, TextRecommendServer, UserProfileHeaderAuthConfig, UserProfileHeaderClient, UserProfileHeaderClientProps, UserProfileMain, UserProfileMainClient, UserProfileMainProps, UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps, basicBannerInspectorDefaultProps, basicBannerInspectorPropsSchema, basicBannerMaterial, buildContentUrl, buttonInspectorDefaultProps, buttonInspectorPropsSchema, commonStyleSchema, commonStylesToInline, customStylesToInline, defaultMarqueePeriod, exampleButtonMaterial, extractDataByComponentType, floatingBallInspectorDefaultProps, floatingBallInspectorPropsSchema, floatingBallMaterial, getCardSpecConfig, getChannelList, getDefaultMarqueePeriod, homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema, homeRecommendGridMaterial, homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInspectorPropsSchema, homeRecommendWaterfallMaterial, imageTextRecommendInspectorPropsSchema, imageTextRecommendMaterial, marqueeInspectorPropsSchema, marqueeMaterial, mergeStyles, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema, profileMainLikeTabOptions, profileMainMaterial, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions, searchHistoryInspectorPropsSchema, searchHistoryMaterial, searchInputInspectorDefaultProps, searchInputInspectorPropsSchema, searchInputMaterial, tabBarInspectorDefaultProps, tabBarInspectorPropsSchema, tabBarMaterial, textRecommendInspectorPropsSchema, textRecommendMaterial, transformContentListToCardItems, transformContentToCardItem };
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{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Fe from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Le}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Re from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as $}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as He,getDefaultMarqueePeriod as Ue,marqueeInspectorPropsSchema as We}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Ge}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Ke}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as qe}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Je}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ye}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Xe from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ze}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Qe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as $e}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as et,profileHeaderInspectorPropsSchema as tt}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as nt,buildUserProfileHeaderPrefetch as rt}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as it,profileHeaderMaterialWithDisabledBackground as at}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as ot,profileMainCollectTabOptions as st,profileMainHistoryTabOptions as ct,profileMainLikeTabOptions as lt,profileMainMineTabOptions as ut,profileMainProfileTabOptions as dt,profileMainTabOptions as ft}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as pt}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as mt}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ht,profileMainInspectorPropsSchema as gt}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as _t}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as vt,buildCollectTabPrefetch as yt}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as bt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as xt,buildHistoryTabPrefetch as St}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Ct}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as wt,buildLikeTabPrefetch as Tt}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as Et}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as Dt}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as Ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as kt,buildPublishTabPrefetch as At}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import jt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Mt}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Nt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Pt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ft}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as It}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import Lt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Rt}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as zt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Bt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Vt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Ht}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Ut}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Wt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Gt}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Kt,searchInputInspectorPropsSchema as qt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Jt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Yt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Xt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Zt,tabBarInspectorPropsSchema as Qt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as $t}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as en}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as tn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as nn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as rn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as an}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as on}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as sn,buttonInspectorPropsSchema as cn}from"./components/biz/example/button/schema.mjs";import{Button as ln}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as un}from"./components/biz/example/button/material.mjs";import{Renderer as dn}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce 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,Xe as BasicNavBar,Je as BasicNavBarDefaultData,Ye as BasicNavBarSchema,Qe as BasicPostCard,Ze as BasicPostCardDefaultData,N as BasicPostCardSchema,jt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Pt as BasicSearchBar,Mt as BasicSearchBarDefaultData,Nt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,ln as Button,on as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,_t as CollectTab,vt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,Lt as FilterSearchBar,Ft as FilterSearchBarDefaultData,It as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,bt as HistoryTab,xt as HistoryTabServer,Fe as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Re as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Ie as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,$ as ImageTextRecommendClient,Be as ImageTextRecommendServer,Ct as LikeTab,wt as LikeTabServer,Ge as MarqueeClient,Ke as MarqueeServer,Ot as PublishTab,kt as PublishTabServer,dn as Renderer,Vt as SearchHistoryClient,Ut as SearchHistoryServer,Gt as SearchInputClient,Jt as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,Xt as TabBarClient,$t as TabBarServer,ne as TagSearch,Bt as TagSearchBar,Rt as TagSearchBarDefaultData,zt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,tn as TextRecommendClient,rn as TextRecommendServer,nt as UserProfileHeader,$e as UserProfileHeaderClient,Et as UserProfileMain,mt as UserProfileMainClient,pt as UserProfileMainShell,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,yt as buildCollectTabPrefetch,n as buildContentUrl,St as buildHistoryTabPrefetch,Tt as buildLikeTabPrefetch,At as buildPublishTabPrefetch,rt as buildUserProfileHeaderPrefetch,sn as buttonInspectorDefaultProps,cn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,He as defaultMarqueePeriod,un as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,Ue as getDefaultMarqueePeriod,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Le as homeRecommendWaterfallMaterial,ze as imageTextRecommendInspectorPropsSchema,Ve as imageTextRecommendMaterial,We as marqueeInspectorPropsSchema,qe as marqueeMaterial,s as mergeStyles,et as profileHeaderInspectorDefaultProps,tt as profileHeaderInspectorPropsSchema,it as profileHeaderMaterial,at as profileHeaderMaterialWithDisabledBackground,ot as profileMainCollectCollectionTabOptions,st as profileMainCollectTabOptions,ct as profileMainHistoryTabOptions,ht as profileMainInspectorDefaultProps,gt as profileMainInspectorPropsSchema,lt as profileMainLikeTabOptions,Dt as profileMainMaterial,ut as profileMainMineTabOptions,dt as profileMainProfileTabOptions,ft as profileMainTabOptions,Ht as searchHistoryInspectorPropsSchema,Wt as searchHistoryMaterial,Kt as searchInputInspectorDefaultProps,qt as searchInputInspectorPropsSchema,Yt as searchInputMaterial,Zt as tabBarInspectorDefaultProps,Qt as tabBarInspectorPropsSchema,en as tabBarMaterial,nn as textRecommendInspectorPropsSchema,an as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem};
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{basicBannerInspectorDefaultProps as re,basicBannerInspectorPropsSchema as ie}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as ae}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as oe}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import se from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as ce}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as le}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import ue from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as de}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as fe}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import pe from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as me}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as he}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import ge from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _e}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as ve}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ye from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as be}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as xe}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import Se from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import Ce from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as we}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as Te,floatingBallInspectorPropsSchema as Ee}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as De}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as Oe}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as ke}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import Ae from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as je}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import Me from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ne}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as Pe}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import $ from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Fe}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Ie}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Le from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{ImageTextRecommendClient as Re}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as ze}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Be}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as Ve}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as He,getDefaultMarqueePeriod as Ue,marqueeInspectorPropsSchema as We}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Ge}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Ke}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as qe}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Je}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Ye}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Xe from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ze}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import Qe from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as $e}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as et,profileHeaderInspectorPropsSchema as tt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as nt,profileHeaderMaterialWithDisabledBackground as rt}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as it,profileMainCollectTabOptions as at,profileMainHistoryTabOptions as ot,profileMainLikeTabOptions as st,profileMainMineTabOptions as ct,profileMainProfileTabOptions as lt,profileMainTabOptions as ut}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as dt}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as ft}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as pt}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as mt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as ht}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as gt,profileMainInspectorPropsSchema as _t}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as vt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as yt}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as bt}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as xt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as St}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Ct}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as wt}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Tt from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Et}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Dt}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Ot from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as kt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as At}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import jt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Mt}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Nt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import Pt from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Ft}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as It}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Lt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Rt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as zt}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Bt,searchInputInspectorPropsSchema as Vt}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Ht}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Ut}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Wt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Gt,tabBarInspectorPropsSchema as Kt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as qt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Jt}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Yt}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Xt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Zt}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Qt}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as $t}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as en,buttonInspectorPropsSchema as tn}from"./components/biz/example/button/schema.mjs";import{Button as nn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as rn}from"./components/biz/example/button/material.mjs";import{Renderer as an}from"./components/biz/renderer/renderer.mjs";export{se as BasicBanner,d as BasicBannerDefaultData,ae as BasicBannerMaterialComponent,f as BasicBannerSchema,Ce 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,Xe as BasicNavBar,Je as BasicNavBarDefaultData,Ye as BasicNavBarSchema,Qe as BasicPostCard,Ze as BasicPostCardDefaultData,N as BasicPostCardSchema,Tt as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Ot as BasicSearchBar,Et as BasicSearchBarDefaultData,Dt as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,nn as Button,$t as ButtonClient,ee as CARD_SPEC_MAP,ue as CardGrid2x3,ce as CardGrid2x3DefaultData,pe as CardGrid2x3Infinite,de as CardGrid2x3InfiniteDefaultData,fe as CardGrid2x3InfiniteSchema,le as CardGrid2x3Schema,ge as CardGrid2x4,me as CardGrid2x4DefaultData,he as CardGrid2x4Schema,ye as CardGrid3x3,_e as CardGrid3x3DefaultData,Se as CardGrid3x3Infinite,be as CardGrid3x3InfiniteDefaultData,xe as CardGrid3x3InfiniteSchema,ve as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ft as CollectTab,bt as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,X as FilterSearch,jt as FilterSearchBar,kt as FilterSearchBarDefaultData,At as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,De as FloatingBall,we as FloatingBallClient,Ae as FullscreenFeedClient,ke as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,Me as FullscreenVideoClient,je as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,pt as HistoryTab,xt as HistoryTabServer,$ as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ne as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Le as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Fe as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,Re as ImageTextRecommendClient,Be as ImageTextRecommendServer,mt as LikeTab,St as LikeTabServer,Ge as MarqueeClient,Ke as MarqueeServer,Ct as PublishTab,wt as PublishTabServer,an as Renderer,Ft as SearchHistoryClient,Lt as SearchHistoryServer,zt as SearchInputClient,Ht as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,Wt as TabBarClient,qt as TabBarServer,ne as TagSearch,Pt as TagSearchBar,Mt as TagSearchBarDefaultData,Nt as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Yt as TextRecommendClient,Zt as TextRecommendServer,$e as UserProfileHeaderClient,vt as UserProfileMain,ht as UserProfileMainClient,dt as UserProfileMainShell,re as basicBannerInspectorDefaultProps,ie as basicBannerInspectorPropsSchema,oe as basicBannerMaterial,n as buildContentUrl,en as buttonInspectorDefaultProps,tn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,o as customStylesToInline,He as defaultMarqueePeriod,rn as exampleButtonMaterial,L as extractDataByComponentType,Te as floatingBallInspectorDefaultProps,Ee as floatingBallInspectorPropsSchema,Oe as floatingBallMaterial,e as getCardSpecConfig,t as getChannelList,Ue as getDefaultMarqueePeriod,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,Pe as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Ie as homeRecommendWaterfallMaterial,ze as imageTextRecommendInspectorPropsSchema,Ve as imageTextRecommendMaterial,We as marqueeInspectorPropsSchema,qe as marqueeMaterial,s as mergeStyles,et as profileHeaderInspectorDefaultProps,tt as profileHeaderInspectorPropsSchema,nt as profileHeaderMaterial,rt as profileHeaderMaterialWithDisabledBackground,it as profileMainCollectCollectionTabOptions,at as profileMainCollectTabOptions,ot as profileMainHistoryTabOptions,gt as profileMainInspectorDefaultProps,_t as profileMainInspectorPropsSchema,st as profileMainLikeTabOptions,yt as profileMainMaterial,ct as profileMainMineTabOptions,lt as profileMainProfileTabOptions,ut as profileMainTabOptions,It as searchHistoryInspectorPropsSchema,Rt as searchHistoryMaterial,Bt as searchInputInspectorDefaultProps,Vt as searchInputInspectorPropsSchema,Ut as searchInputMaterial,Gt as tabBarInspectorDefaultProps,Kt as tabBarInspectorPropsSchema,Jt as tabBarMaterial,Xt as textRecommendInspectorPropsSchema,Qt as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem};
@@ -72,21 +72,20 @@ import { schema as schema$13 } from "./post-card/variants/basic-post-card/schema
72
72
  import "./post-card/index.mjs";
73
73
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./profile/profile-header/schema.mjs";
74
74
  import { UserProfileHeaderClient } from "./profile/profile-header/client.mjs";
75
- import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./profile/profile-header/server.mjs";
76
75
  import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile/profile-header/material.mjs";
77
- import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile/profile-main/schema.mjs";
76
+ import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile/profile-main/schema.mjs";
78
77
  import { UserProfileMainClient } from "./profile/profile-main/client.mjs";
79
78
  import { UserProfileMain } from "./profile/profile-main/server.mjs";
80
79
  import { profileMainMaterial } from "./profile/profile-main/material.mjs";
81
80
  import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./profile/profile-main/shell.mjs";
82
81
  import { CollectTab, CollectTabProps } from "./profile/profile-main/tabs/collect-tab/client.mjs";
83
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./profile/profile-main/tabs/collect-tab/server.mjs";
82
+ import { CollectTabServer } from "./profile/profile-main/tabs/collect-tab/server.mjs";
84
83
  import { HistoryTab, HistoryTabProps } from "./profile/profile-main/tabs/history-tab/client.mjs";
85
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./profile/profile-main/tabs/history-tab/server.mjs";
84
+ import { HistoryTabServer } from "./profile/profile-main/tabs/history-tab/server.mjs";
86
85
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./profile/profile-main/tabs/like-tab/client.mjs";
87
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./profile/profile-main/tabs/like-tab/server.mjs";
86
+ import { LikeTabServer } from "./profile/profile-main/tabs/like-tab/server.mjs";
88
87
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./profile/profile-main/tabs/publish-tab/client.mjs";
89
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./profile/profile-main/tabs/publish-tab/server.mjs";
88
+ import { PublishTabServer } from "./profile/profile-main/tabs/publish-tab/server.mjs";
90
89
  import { profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions } from "./profile/profile-main/variants.mjs";
91
90
  import "./profile/index.mjs";
92
91
  import { defaultProps as defaultProps$12 } from "./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";
@@ -1,21 +1,20 @@
1
1
 
2
2
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./profile-header/schema.mjs";
3
3
  import { UserProfileHeaderClient } from "./profile-header/client.mjs";
4
- import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./profile-header/server.mjs";
5
4
  import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile-header/material.mjs";
6
5
  import "./profile-header/index.mjs";
7
- import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile-main/schema.mjs";
6
+ import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile-main/schema.mjs";
8
7
  import { UserProfileMainClient } from "./profile-main/client.mjs";
9
8
  import { UserProfileMain } from "./profile-main/server.mjs";
10
9
  import { profileMainMaterial } from "./profile-main/material.mjs";
11
10
  import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./profile-main/shell.mjs";
12
11
  import { CollectTab, CollectTabProps } from "./profile-main/tabs/collect-tab/client.mjs";
13
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./profile-main/tabs/collect-tab/server.mjs";
12
+ import { CollectTabServer } from "./profile-main/tabs/collect-tab/server.mjs";
14
13
  import { HistoryTab, HistoryTabProps } from "./profile-main/tabs/history-tab/client.mjs";
15
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./profile-main/tabs/history-tab/server.mjs";
14
+ import { HistoryTabServer } from "./profile-main/tabs/history-tab/server.mjs";
16
15
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./profile-main/tabs/like-tab/client.mjs";
17
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./profile-main/tabs/like-tab/server.mjs";
16
+ import { LikeTabServer } from "./profile-main/tabs/like-tab/server.mjs";
18
17
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./profile-main/tabs/publish-tab/client.mjs";
19
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./profile-main/tabs/publish-tab/server.mjs";
18
+ import { PublishTabServer } from "./profile-main/tabs/publish-tab/server.mjs";
20
19
  import { profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions } from "./profile-main/variants.mjs";
21
20
  import "./profile-main/index.mjs";
@@ -11,8 +11,6 @@ declare function UserProfileHeaderClient({
11
11
  enableCustomBackground,
12
12
  showBackButton,
13
13
  requireLogin,
14
- cookieToken,
15
- cookieUserId,
16
14
  isEditorPreview,
17
15
  className,
18
16
  mode
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as u,useMutation as d,useRequest as f,useUpdateRequest as p}from"../../../../../hooks/query/use-query.mjs";import{LeftArrowIcon as m}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as h}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as g}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as _}from"./user-profile-cover-background.mjs";import{useEffect as v,useMemo as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{toast as C}from"sonner";import{useTranslations as w}from"next-intl";import T from"next/link";import{useRouter as ee}from"next/navigation";const E=n.persist,D=`https://guadd-sg-ccs-sing-dev.s3.ap-southeast-1.amazonaws.com/default/default_avatar.png`,O=`/images/mine/img_mine_head_bg.png`;function te({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=l(),c=u(),f=p(),{mutateAsync:m,isPending:h}=d(async e=>a(e)),{mutateAsync:g,isPending:_}=d(async e=>o(e)),v=h||_;async function y(){if(!v){if(!n){s();return}try{if(r){let t=await g({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.unfollowSuccess`)),b(!1),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.unfollowFailed`))}else{let t=await m({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.followSuccess`)),b(!0),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.followFailed`))}}catch(e){console.error(`关注操作失败`,e),C.error(i(`client.operationFailed`))}}}function b(t){f([`user-profile`,`profile`,e],e=>!e||!e.data?e:{...e,data:{...e.data,is_following:t}})}return x(t,{variant:r?`outline`:`default`,className:`rounded-full disabled:opacity-100`,onClick:y,disabled:v,children:i(v?`client.processing`:r?`client.followed`:`client.follow`)})}function k({id:a,enableCustomBackground:o=!0,showBackButton:u=!0,requireLogin:d=!1,cookieToken:p,cookieUserId:C,isEditorPreview:k=!1,className:A,mode:j=`renderer`}){let M=w(`components.pages.profile`);w(`components.pages.profile.components`);let N=k||j===`editor`,ne=!N,re=ee(),{open:ie}=l(),{isLogin:ae,userId:P,token:F}=n(),[I,L]=b(!1);v(()=>{if(!E){L(!0);return}L(E.hasHydrated());let e=E.onHydrate(()=>{L(!1)}),t=E.onFinishHydration(()=>{L(!0)});return()=>{e(),t()}},[]);let R=N?!1:I?ae&&!!P&&!!F:!!C&&!!p,z=N?``:I?P:P||C,B=z,V=a==null||!!a&&!!B&&a===B,oe=!V&&!!a,H=V?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:U}=f(N?[`editor-preview`,...H]:H,()=>a?i({target_user_id:a,user_id:z||a}):r({user_id:a||z||``}),{staleTime:0,enabled:ne&&(!!a||!!z)}),W=y(()=>{let e=U?U.data:void 0;return e?{userId:e.user_id,isFollowing:e.is_following||!1,name:e.nick_name||`User${a??``}`,avatar:e.avatar||D,followingCnt:e.following_count??0,followersCnt:e.follower_count??0,likeCnt:e.like_count??0,signature:e.signature||``,background:e.bg_image||O}:{}},[a,U]),G=N||d&&V&&!R,K=!G&&!R&&oe,q=V&&R&&!G,J=!R,se=o&&q,ce=o&&J,le={name:M(`client.welcomeToPlanet`),description:M(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function Y(){ie()}function X(){re.back()}let ue=G?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}):K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.follow`)}):R?V?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:M(`client.editProfile`)})}):x(te,{userId:a||``,currentUserId:z,isFollowing:W?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:M(`client.loginNow`)}),Z=G?le:W,Q=Z.name||``,$=Z.description||Z.signature||``;Z.followingCnt,Z.followersCnt,Z.likeCnt;let de=Z.avatar||``;return S(s,{className:e(`flex flex-col relative`,A),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,onClick:X,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!u}),children:x(m,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!V}),children:x(h,{})})]}),x(_,{isMine:se,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ce?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(g,{isMine:q,src:de,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),x(s,{className:`flex divide-x divide-text1/5 py-4 h-12`})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{as:`p`,className:`text-text1 text-xl overflow-hidden whitespace-nowrap text-ellipsis font-bold `,children:Q}),ue]}),$&&x(c,{as:`p`,className:`text-sm pt-1 pb-0 line-clamp-2 break-all text-text1/66`,children:$})]})]})}export{k as UserProfileHeaderClient};
2
+ "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{Skeleton as c}from"../../../../ui/skeleton.mjs";import{Text as l}from"../../../../ui/text.mjs";import{useLoginModalStore as u}from"../../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as d,useMutation as f,useRequest as p,useUpdateRequest as m}from"../../../../../hooks/query/use-query.mjs";import{LeftArrowIcon as h}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as g}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as _}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as v}from"./user-profile-cover-background.mjs";import{useEffect as y,useMemo as b,useState as ee}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{toast as C}from"sonner";import{useTranslations as w}from"next-intl";import T from"next/link";import{useRouter as E}from"next/navigation";const D=n.persist,O=`https://guadd-sg-ccs-sing-dev.s3.ap-southeast-1.amazonaws.com/default/default_avatar.png`,k=`/images/mine/img_mine_head_bg.png`;function te({showBackButton:n,isMine:r,enableCustomBackground:i,className:a}){return S(s,{className:e(`flex flex-col relative`,a),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!n}),disabled:!0,children:x(h,{className:`w-4 h-4`})}),x(s,{className:e({invisible:!r}),children:x(g,{})})]}),x(s,{className:i?`h-33.75`:`h-24`,children:x(c,{className:`h-full w-full rounded-none`})}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(c,{className:`absolute bottom-3 left-0 h-22 w-22 rounded-full`}),x(s,{className:`py-4 h-12`})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{className:`h-7 w-[132px]`}),x(c,{className:`h-10 w-[104px] rounded-full shrink-0`})]}),S(s,{className:`min-h-11 pt-1 pb-0 flex flex-col gap-2`,children:[x(c,{className:`h-4 w-[76%]`}),x(c,{className:`h-4 w-[58%]`})]})]})]})}function A({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=u(),c=d(),l=m(),{mutateAsync:p,isPending:h}=f(async e=>a(e)),{mutateAsync:g,isPending:_}=f(async e=>o(e)),v=h||_;async function y(){if(!v){if(!n){s();return}try{if(r){let t=await g({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.unfollowSuccess`)),b(!1),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.unfollowFailed`))}else{let t=await p({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.followSuccess`)),b(!0),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.followFailed`))}}catch(e){console.error(`关注操作失败`,e),C.error(i(`client.operationFailed`))}}}function b(t){l([`user-profile`,`profile`,e],e=>!e||!e.data?e:{...e,data:{...e.data,is_following:t}})}return x(t,{variant:r?`outline`:`default`,className:`rounded-full disabled:opacity-100`,onClick:y,disabled:v,children:i(v?`client.processing`:r?`client.followed`:`client.follow`)})}function j({id:a,enableCustomBackground:o=!0,showBackButton:c=!0,requireLogin:d=!1,isEditorPreview:f=!1,className:m,mode:C=`renderer`}){let j=w(`components.pages.profile`);w(`components.pages.profile.components`);let M=f||C===`editor`,N=!M,ne=E(),{open:re}=u(),{isLogin:ie,userId:P,token:F}=n(),[ae,I]=ee(!1);y(()=>{if(!D){I(!0);return}I(D.hasHydrated());let e=D.onHydrate(()=>{I(!1)}),t=D.onFinishHydration(()=>{I(!0)});return()=>{e(),t()}},[]);let L=M?!1:ie&&!!P&&!!F,R=M?``:P,z=R,B=a==null||!!a&&!!z&&a===z,oe=!B&&!!a,V=B?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:H,isLoading:U}=p(M?[`editor-preview`,...V]:V,()=>a?i({target_user_id:a,user_id:R||a}):r({user_id:a||R||``}),{staleTime:0,enabled:N&&(!!a||!!R)}),W=b(()=>{let e=H?H.data:void 0;return e?{userId:e.user_id,isFollowing:e.is_following||!1,name:e.nick_name||`User${a??``}`,avatar:e.avatar||O,followingCnt:e.following_count??0,followersCnt:e.follower_count??0,likeCnt:e.like_count??0,signature:e.signature||``,background:e.bg_image||k}:{}},[a,H]),G=M||d&&B&&!L,K=!G&&!L&&oe,q=B&&L&&!G,J=!L,se=o&&q,ce=o&&J,le={name:j(`client.welcomeToPlanet`),description:j(`client.exploreAdventures`),avatar:O,followingCnt:0,followersCnt:0,likeCnt:0,background:k};function Y(){re()}function X(){ne.back()}let ue=G?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}):K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.follow`)}):L?B?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:j(`client.editProfile`)})}):x(A,{userId:a||``,currentUserId:R,isFollowing:W?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}),Z=G?le:W,Q=Z.name||``,$=Z.description||Z.signature||``;Z.followingCnt,Z.followersCnt,Z.likeCnt;let de=Z.avatar||``;return N&&U&&!H?x(te,{showBackButton:c,isMine:B,enableCustomBackground:o,className:m}):S(s,{className:e(`flex flex-col relative`,m),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,onClick:X,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!c}),children:x(h,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!B}),children:x(g,{})})]}),x(v,{isMine:se,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ce?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(_,{isMine:q,src:de,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),x(s,{className:`flex divide-x divide-text1/5 py-4 h-12`})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(l,{as:`p`,className:`text-text1 text-xl overflow-hidden whitespace-nowrap text-ellipsis font-bold `,children:Q}),ue]}),x(s,{className:`min-h-11 pt-1 pb-0`,children:$&&x(l,{as:`p`,className:`text-sm line-clamp-2 break-all text-text1/66`,children:$})})]})]})}export{j as UserProfileHeaderClient};
@@ -1,5 +1,4 @@
1
1
 
2
2
  import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./schema.mjs";
3
3
  import { UserProfileHeaderClient } from "./client.mjs";
4
- import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./server.mjs";
5
4
  import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./material.mjs";
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
3
3
  import { UserProfileHeaderClient } from "./client.mjs";
4
- import { UserProfileHeader } from "./server.mjs";
5
4
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
5
  import * as zod from "zod";
7
6
  import * as zod_v4_core0 from "zod/v4/core";
@@ -10,7 +9,7 @@ import * as zod_v4_core0 from "zod/v4/core";
10
9
  declare const profileHeaderMaterial: DefineMaterialOption<({
11
10
  mode,
12
11
  ...props
13
- }: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, ({
12
+ }: React.ComponentProps<typeof UserProfileHeaderClient>) => react_jsx_runtime0.JSX.Element, ({
14
13
  mode,
15
14
  ...props
16
15
  }: React.ComponentProps<typeof UserProfileHeaderClient>) => react_jsx_runtime0.JSX.Element, zod.ZodObject<{
@@ -22,7 +21,7 @@ declare const profileHeaderMaterial: DefineMaterialOption<({
22
21
  declare const profileHeaderMaterialWithDisabledBackground: DefineMaterialOption<({
23
22
  mode,
24
23
  ...props
25
- }: React.ComponentProps<typeof UserProfileHeader>) => react_jsx_runtime0.JSX.Element, ({
24
+ }: React.ComponentProps<typeof UserProfileHeaderClient>) => react_jsx_runtime0.JSX.Element, ({
26
25
  mode,
27
26
  ...props
28
27
  }: React.ComponentProps<typeof UserProfileHeaderClient>) => react_jsx_runtime0.JSX.Element, zod.ZodObject<{
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileHeader as r}from"./server.mjs";import{jsx as i}from"react/jsx-runtime";function a(e){return e===`editor`?{id:void 0,requireLogin:!0,cookieToken:``,cookieUserId:``,token:``,currentUserId:``}:{}}const o=e({type:`profile-header`,category:`内容组件`,name:`用户信息模块(有背景图)`,icon:`/static/components-thumb/user_profile_with_background.png`,serverComponent:({mode:e=`renderer`,...t})=>i(r,{...t,...a(e),mode:e}),clientComponent:({mode:e=`renderer`,...n})=>i(t,{...n,...a(e),mode:e}),propsSchema:n}),s=e({type:`profile-header-with-disabled-background`,category:`内容组件`,name:`用户信息模块(无背景图)`,icon:`/static/components-thumb/user_profile_plain.png`,serverComponent:({mode:e=`renderer`,...t})=>i(r,{...t,...a(e),mode:e,enableCustomBackground:!1}),clientComponent:({mode:e=`renderer`,...n})=>i(t,{...n,...a(e),mode:e,enableCustomBackground:!1}),propsSchema:n});export{o as profileHeaderMaterial,s as profileHeaderMaterialWithDisabledBackground};
2
+ import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileHeaderClient as t}from"./client.mjs";import{profileHeaderInspectorPropsSchema as n}from"./schema.mjs";import{jsx as r}from"react/jsx-runtime";function i(e){return e===`editor`?{id:void 0,requireLogin:!0,cookieToken:``,cookieUserId:``,token:``,currentUserId:``}:{}}const a=e({type:`profile-header`,category:`内容组件`,name:`用户信息模块(有背景图)`,icon:`/static/components-thumb/user_profile_with_background.png`,serverComponent:({mode:e=`renderer`,...n})=>r(t,{...n,...i(e),mode:e}),clientComponent:({mode:e=`renderer`,...n})=>r(t,{...n,...i(e),mode:e}),propsSchema:n}),o=e({type:`profile-header-with-disabled-background`,category:`内容组件`,name:`用户信息模块(无背景图)`,icon:`/static/components-thumb/user_profile_plain.png`,serverComponent:({mode:e=`renderer`,...n})=>r(t,{...n,...i(e),mode:e,enableCustomBackground:!1}),clientComponent:({mode:e=`renderer`,...n})=>r(t,{...n,...i(e),mode:e,enableCustomBackground:!1}),propsSchema:n});export{a as profileHeaderMaterial,o as profileHeaderMaterialWithDisabledBackground};
@@ -28,10 +28,6 @@ interface UserProfileHeaderClientProps extends ProfileHeaderInspectorProps {
28
28
  showBackButton?: boolean;
29
29
  /** 是否要求登录。 */
30
30
  requireLogin?: boolean;
31
- /** 服务端透传的登录 Token。 */
32
- cookieToken?: string;
33
- /** 服务端透传的当前用户 ID。 */
34
- cookieUserId?: string;
35
31
  /** 是否为编辑器预览模式。 */
36
32
  isEditorPreview?: boolean;
37
33
  /** 头部容器附加类名。 */
@@ -4,15 +4,16 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region components/biz/business/profile/profile-main/client.d.ts
6
6
  /**
7
- * 用户资料主体物料客户端组件。
7
+ * 用户资料主体客户端组件。
8
8
  */
9
9
  declare function UserProfileMainClient({
10
10
  id,
11
+ showCreateAction,
12
+ requireLogin,
11
13
  className,
12
- cookieUserId,
13
14
  currentUserId,
14
- requireLogin,
15
- mode
15
+ mode,
16
+ tab
16
17
  }: UserProfileMainProps): react_jsx_runtime0.JSX.Element;
17
18
  //#endregion
18
19
  export { UserProfileMainClient };
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{VideoList as e}from"../../../../common/list/video-list/video-list.mjs";import{UserProfileMainShell as t}from"./shell.mjs";import{jsx as n}from"react/jsx-runtime";function r(e){return e*1e3}const i=[{id:`00d21b841126c976`,title:`朝朝暮暮都是你`,coverImage:`/md-204/uploads/default/other/2024-04-15/2750647625e6193940163169b77fb566.jpg`,duration:192,viewCount:237,createTime:1772175066,isMoreLink:!0},{id:`009f2e1820718add`,title:`狗哥的乡村爱情故事`,coverImage:`/md-204/uploads/default/other/2024-04-11/579bc5eb807d29657828945330b0ac47.jpg`,duration:74,viewCount:191,createTime:1770714221,isMoreLink:!0},{id:`02e2a11f78a3ffbf`,title:`唯爱百分之十二`,coverImage:`/md-204/resource/b6/b689e34f40d0e5baccb8f79630b99425.jpg`,duration:3348,viewCount:214,createTime:1770347155,isMoreLink:!0},{id:`2c19073cbd3c5c5a`,title:`疯狂磕学家`,coverImage:`/md-204/uploads/default/other/2024-08-23/5e174eeb8f2009dd7bb797fcabd5a649.jpg`,duration:2359,viewCount:17,createTime:1769757646,isMoreLink:!0},{id:`07e029915c2a9c96`,title:`我和祖宗做交易`,coverImage:`/md-204/uploads/default/other/2024-05-23/b53e50fa75986b41aac766c253a91fea.jpg`,duration:194,viewCount:75,createTime:1769670600,isMoreLink:!0},{id:`0ae1056a620b286f`,title:`识汝不识丁`,coverImage:`/md-204/uploads/default/other/2024-08-24/8958d46da3087a420d1d55e691dcb10a.jpg`,duration:2053,viewCount:13,createTime:1769651310,isMoreLink:!0},{id:`05564bf1aaf5fad6`,title:`我们的天空`,coverImage:`/md-204/resource/1a/1af6ce7117dcda390cf08db26e832684.jpg`,duration:2737,viewCount:180,createTime:1769566315,isMoreLink:!0},{id:`00f61e5be01409bb`,title:`我初初爱你`,coverImage:`/md-204/resource/bd/bd657a65bc6adc202a94acb8aca33f38.jpg`,duration:2898,viewCount:362,createTime:1769410683,isMoreLink:!0},{id:`062cd69d44fcb772`,title:`料理情缘`,coverImage:`/md-204/uploads/default/other/2023-11-27/de0491f07909b05fa012d15552e02cd0.png`,duration:2726,viewCount:33,createTime:1769157580,isMoreLink:!0},{id:`05751871b640b1a7`,title:`穷小伙被碎玻璃割伤眼睛,却因祸得福获得了一只超能神眼,人生直接开挂,之前欺负他的人统统匍匐在他脚下,征服姐妹花,走向人生巅峰!`,coverImage:`/md-204/dcc-file/29/29a0fdc86f0d756ad8f123e81693d233-small.jpgbnc`,duration:9236,viewCount:137,createTime:1769157575,isMoreLink:!1}].map(e=>({id:e.id,title:e.title,coverImage:e.coverImage,duration:e.duration,authorName:``,viewCount:e.viewCount,publishTime:r(e.createTime),is_more_link:e.isMoreLink}));function a({id:r,className:a,cookieUserId:o,currentUserId:s,requireLogin:c=!1,mode:l=`renderer`}){let u=l===`editor`?``:s||o||``,d=r==null||!!u&&r===u;return n(t,{profileId:r,currentUserId:u,isMine:d,renderMode:c&&d&&!u?`login-required`:`content`,className:a,children:n(e,{list:i,loading:!1,hasMore:!1,showVideoProgress:!1})})}export{a as UserProfileMainClient};
2
+ "use client";import{useUserStore as e}from"../../../../../store/modules/user-store.mjs";import{gUserViewUserInfo as t}from"../../../../../service/generated/client.mjs";import{useRequest as n}from"../../../../../hooks/query/use-query.mjs";import{VideoList as r}from"../../../../common/list/video-list/video-list.mjs";import{profileMainMineTabOptions as i,profileMainProfileTabOptions as a}from"./variants.mjs";import{UserProfileMainShell as o}from"./shell.mjs";import{CollectTab as s}from"./tabs/collect-tab/client.mjs";import{HistoryTab as c}from"./tabs/history-tab/client.mjs";import{LikeTab as l}from"./tabs/like-tab/client.mjs";import{useMemo as u}from"react";import{jsx as d}from"react/jsx-runtime";import{parseAsString as f,useQueryState as p}from"nuqs";function m(e){return e*1e3}const h=[{id:`00d21b841126c976`,title:`朝朝暮暮都是你`,coverImage:`/md-204/uploads/default/other/2024-04-15/2750647625e6193940163169b77fb566.jpg`,duration:192,viewCount:237,createTime:1772175066,isMoreLink:!0},{id:`009f2e1820718add`,title:`狗哥的乡村爱情故事`,coverImage:`/md-204/uploads/default/other/2024-04-11/579bc5eb807d29657828945330b0ac47.jpg`,duration:74,viewCount:191,createTime:1770714221,isMoreLink:!0},{id:`02e2a11f78a3ffbf`,title:`唯爱百分之十二`,coverImage:`/md-204/resource/b6/b689e34f40d0e5baccb8f79630b99425.jpg`,duration:3348,viewCount:214,createTime:1770347155,isMoreLink:!0},{id:`2c19073cbd3c5c5a`,title:`疯狂磕学家`,coverImage:`/md-204/uploads/default/other/2024-08-23/5e174eeb8f2009dd7bb797fcabd5a649.jpg`,duration:2359,viewCount:17,createTime:1769757646,isMoreLink:!0},{id:`07e029915c2a9c96`,title:`我和祖宗做交易`,coverImage:`/md-204/uploads/default/other/2024-05-23/b53e50fa75986b41aac766c253a91fea.jpg`,duration:194,viewCount:75,createTime:1769670600,isMoreLink:!0},{id:`0ae1056a620b286f`,title:`识汝不识丁`,coverImage:`/md-204/uploads/default/other/2024-08-24/8958d46da3087a420d1d55e691dcb10a.jpg`,duration:2053,viewCount:13,createTime:1769651310,isMoreLink:!0},{id:`05564bf1aaf5fad6`,title:`我们的天空`,coverImage:`/md-204/resource/1a/1af6ce7117dcda390cf08db26e832684.jpg`,duration:2737,viewCount:180,createTime:1769566315,isMoreLink:!0},{id:`00f61e5be01409bb`,title:`我初初爱你`,coverImage:`/md-204/resource/bd/bd657a65bc6adc202a94acb8aca33f38.jpg`,duration:2898,viewCount:362,createTime:1769410683,isMoreLink:!0},{id:`062cd69d44fcb772`,title:`料理情缘`,coverImage:`/md-204/uploads/default/other/2023-11-27/de0491f07909b05fa012d15552e02cd0.png`,duration:2726,viewCount:33,createTime:1769157580,isMoreLink:!0},{id:`05751871b640b1a7`,title:`穷小伙被碎玻璃割伤眼睛,却因祸得福获得了一只超能神眼,人生直接开挂,之前欺负他的人统统匍匐在他脚下,征服姐妹花,走向人生巅峰!`,coverImage:`/md-204/dcc-file/29/29a0fdc86f0d756ad8f123e81693d233-small.jpgbnc`,duration:9236,viewCount:137,createTime:1769157575,isMoreLink:!1}].map(e=>({id:e.id,title:e.title,coverImage:e.coverImage,duration:e.duration,authorName:``,viewCount:e.viewCount,publishTime:m(e.createTime),is_more_link:e.isMoreLink}));function g({isMine:e,tab:t}){let n=e?i:a;return t&&n.includes(t)?t:n[0]}function _(e,t){return e&&(t===`collect`||t===`like`)}function v({id:i,showCreateAction:a=!1,requireLogin:m=!1,className:v,currentUserId:y,mode:b=`renderer`,tab:x}){let S=b===`renderer`,C=e(e=>e.userId),[w]=p(`tab`,f),T=b===`editor`?``:y||C||``,E=i==null||!!T&&i===T,D=!E&&!!i,O=E?T:i?String(i):void 0,k=E?[`user-profile`,`mine`]:[`user-profile`,`profile`,i],A=u(()=>g({isMine:E,tab:w??x}),[E,x,w]),j=S&&_(D,A)&&!!i,{data:M}=n([`user-profile`,`privacy`,i,T],async()=>await t({target_user_id:String(i),user_id:T||String(i)}),{staleTime:0,enabled:j}),N=`content`;if(b===`editor`)N=`content`;else if(m&&E&&!T)N=`login-required`;else if(j&&M){let e=M.data??{},t=Number(e.collections_open??1)>0,n=Number(e.like_open??1)>0;A===`collect`&&!t&&(N=`privacy-collect`),A===`like`&&!n&&(N=`privacy-like`)}let P=N===`content`&&(!j||!!M),F=null;if(b===`editor`)F=d(r,{list:h,loading:!1,hasMore:!1,showVideoProgress:!1});else if(P)switch(A){case`like`:F=d(l,{mode:b,isMine:E,targetUserId:O,queryKeyPrefix:k});break;case`history`:F=d(c,{mode:b,targetUserId:O,queryKeyPrefix:k});break;default:F=d(s,{mode:b,isMine:E,userId:O,showCreateAction:a&&E,queryKeyPrefix:k});break}return d(o,{profileId:i,currentUserId:T,isMine:E,renderMode:N,className:v,children:F})}export{v as UserProfileMainClient};
@@ -1,16 +1,16 @@
1
1
 
2
- import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./schema.mjs";
2
+ import { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./schema.mjs";
3
3
  import { UserProfileMainClient } from "./client.mjs";
4
4
  import { UserProfileMain } from "./server.mjs";
5
5
  import { profileMainMaterial } from "./material.mjs";
6
6
  import { UserProfileMainRenderMode, UserProfileMainShell, UserProfileMainShellProps } from "./shell.mjs";
7
7
  import { CollectTab, CollectTabProps } from "./tabs/collect-tab/client.mjs";
8
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./tabs/collect-tab/server.mjs";
8
+ import { CollectTabServer } from "./tabs/collect-tab/server.mjs";
9
9
  import { HistoryTab, HistoryTabProps } from "./tabs/history-tab/client.mjs";
10
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./tabs/history-tab/server.mjs";
10
+ import { HistoryTabServer } from "./tabs/history-tab/server.mjs";
11
11
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./tabs/like-tab/client.mjs";
12
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./tabs/like-tab/server.mjs";
12
+ import { LikeTabServer } from "./tabs/like-tab/server.mjs";
13
13
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./tabs/publish-tab/client.mjs";
14
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./tabs/publish-tab/server.mjs";
14
+ import { PublishTabServer } from "./tabs/publish-tab/server.mjs";
15
15
  import "./tabs/index.mjs";
16
16
  import { profileMainCollectCollectionTabOptions, profileMainCollectTabOptions, profileMainHistoryTabOptions, profileMainLikeTabOptions, profileMainMineTabOptions, profileMainProfileTabOptions, profileMainTabOptions } from "./variants.mjs";
@@ -1,5 +1,5 @@
1
1
 
2
- import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
2
+ import { InferSchemaProps, MaterialComponentMode } from "../../../../../utils/schema/schema.mjs";
3
3
  import "../../../../../utils/schema/index.mjs";
4
4
  import * as zod from "zod";
5
5
  import * as zod_v4_core0 from "zod/v4/core";
@@ -23,28 +23,19 @@ interface ProfileMainRuntimeTabProps {
23
23
  collectTab?: string;
24
24
  collectCollectionTab?: string;
25
25
  }
26
- interface ProfileMainAuthConfig {
27
- headers?: Record<string, string>;
28
- }
29
26
  interface UserProfileMainProps extends ProfileMainInspectorProps, ProfileMainRuntimeTabProps {
27
+ /** 渲染模式。 */
28
+ mode?: MaterialComponentMode;
30
29
  /** 用户 ID。 */
31
30
  id?: string;
32
31
  /** 是否显示创建入口。 */
33
32
  showCreateAction?: boolean;
34
33
  /** 是否要求登录。 */
35
34
  requireLogin?: boolean;
36
- /** 服务端透传的登录 Token。 */
37
- cookieToken?: string;
38
- /** 服务端透传的当前用户 ID。 */
39
- cookieUserId?: string;
40
35
  /** 主体容器附加类名。 */
41
36
  className?: string;
42
- /** 当前登录 Token。 */
43
- token?: string;
44
- /** 当前登录用户 ID。 */
37
+ /** 当前登录用户 ID,默认优先读取客户端用户状态。 */
45
38
  currentUserId?: string;
46
- /** 服务端请求头。 */
47
- authConfig?: ProfileMainAuthConfig;
48
39
  }
49
40
  //#endregion
50
- export { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema };
41
+ export { ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema };
@@ -4,7 +4,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region components/biz/business/profile/profile-main/server.d.ts
6
6
  /**
7
- * 用户资料主体服务端组件(用于物料注册),内部包含预取逻辑。
7
+ * 用户资料主体兼容包装组件。
8
8
  */
9
9
  declare function UserProfileMain(props: UserProfileMainProps): react_jsx_runtime0.JSX.Element;
10
10
  //#endregion
@@ -1,2 +1,2 @@
1
1
 
2
- import{gUserViewUserInfo as e}from"../../../../../service/generated/client.mjs";import{profileMainCollectCollectionTabOptions as t,profileMainCollectTabOptions as n,profileMainHistoryTabOptions as r,profileMainLikeTabOptions as i,profileMainMineTabOptions as a,profileMainProfileTabOptions as o}from"./variants.mjs";import{UserProfileMainShell as s}from"./shell.mjs";import{CollectTabServer as c}from"./tabs/collect-tab/server.mjs";import{HistoryTabServer as l}from"./tabs/history-tab/server.mjs";import{LikeTabServer as u}from"./tabs/like-tab/server.mjs";import{jsx as d}from"react/jsx-runtime";import{cookies as f}from"next/headers";function p({isMine:e,tab:t}){let n=e?a:o;return t&&n.includes(t)?t:n[0]}function m(e,t,n){return e&&t.includes(e)?e:n}function h(e,t){let n={};if(e&&(n.Authorization=`Bearer ${e}`),t&&(n[`X-User-Id`]=t),Object.keys(n).length!==0)return{headers:n}}async function g({cookieToken:e,cookieUserId:t,token:n,currentUserId:r,authConfig:i}){let a=``,o=``;try{let e=await f();a=e.get(`token`)?.value||``,o=e.get(`userId`)?.value||``}catch{}let s=e||a,c=t||o,l=n||s,u=r||c;return{token:l,currentUserId:u,authConfig:i||h(l,u)}}function _(e,t){return e&&(t===`collect`||t===`like`)}function v(e){let{mode:t=`renderer`,...n}=e;return d(y,{...n,mode:t})}async function y({mode:a=`renderer`,id:o,showCreateAction:f=!1,requireLogin:h=!1,cookieToken:v,cookieUserId:y,className:b,token:x=``,currentUserId:S=``,authConfig:C,tab:w,likeTab:T,historyTab:E,collectTab:D,collectCollectionTab:O}){let k=a===`editor`,A=await g({cookieToken:v,cookieUserId:y,token:x,currentUserId:S,authConfig:C}),j=A.token,M=A.currentUserId,N=A.authConfig,P=!!j,F=o==null||!!M&&o===M,I=!F&&!!o,L=F?M:o?String(o):void 0,R=F?[`user-profile`,`mine`]:[`user-profile`,`profile`,o],z=p({isMine:F,tab:w}),B=`content`;if(h&&F&&!P&&(B=`login-required`),!k&&B===`content`&&_(I,z)){let t=(await e({target_user_id:String(o),user_id:M||String(o)},N))?.data??{},n=Number(t.collections_open??1)>0,r=Number(t.like_open??1)>0;z===`collect`&&!n&&(B=`privacy-collect`),z===`like`&&!r&&(B=`privacy-like`)}let V=k?[]:void 0,H=null;if(B===`content`)switch(z){case`like`:H=d(u,{mode:a,isMine:F,targetUserId:L,queryKeyPrefix:R,resolvedLikeTab:m(T,i,`video`),prefetch:V});break;case`history`:H=d(l,{mode:a,targetUserId:L,queryKeyPrefix:R,resolvedHistoryTab:m(E,r,`video`),authConfig:N,prefetch:V});break;default:H=d(c,{mode:a,isMine:F,userId:L,showCreateAction:f&&F,queryKeyPrefix:R,resolvedCollectTab:m(D,n,`video`),resolvedCollectCollectionTab:m(O,t,`created`),authConfig:N,prefetch:V});break}return d(s,{profileId:o,currentUserId:M,isMine:F,renderMode:B,className:b,children:H})}export{v as UserProfileMain};
2
+ import{UserProfileMainClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as UserProfileMain};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{Box as r}from"../../../../ui/box.mjs";import{EmptyState as i}from"../../../../ui/empty.mjs";import{Tabs as a,TabsList as o,TabsTrigger as s}from"../../../../ui/tabs.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{profileMainMineTabOptions as u,profileMainProfileTabOptions as d}from"./variants.mjs";import{useEffect as f,useMemo as p,useRef as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{useTranslations as _}from"next-intl";import{useRouter as v}from"next/navigation";import{parseAsString as y,useQueryState as b}from"nuqs";function x(e){return e?[...u]:[...d]}function S(e,t){let n=x(t);return n.includes(e)?e:n[0]}function C(e){let t=window.getComputedStyle(e);return/auto|scroll|overlay/.test(t.overflowY)}function w(e){if(typeof window>`u`)return null;let t=e?.parentElement??null;for(;t;){if(C(t))return t;t=t.parentElement}let n=document.getElementById(`app-scroll-container`);return n instanceof HTMLElement?n:null}function T(e){return typeof window>`u`?0:e?e.scrollTop:window.scrollY||window.pageYOffset||0}function E(e,t){if(!(typeof window>`u`)){if(e){e.scrollTo({top:t});return}window.scrollTo({top:t,left:0})}}function D({profileId:u,currentUserId:d,isMine:C,renderMode:D,className:O,children:k}){let A=v(),j=_(`components.pages.profile`),M=m(null),N=m(!1),P=l(e=>e.open),F=l(e=>e.isOpen),I=n(e=>e.isLogin),L=n(e=>e.userId),R=x(C),[z,B]=b(`tab`,y.withDefault(`collect`)),V=p(()=>S(z,C),[C,z]),H=C?d||L||``:u,U=p(()=>`profile-scroll:${H||(C?`mine`:`guest`)}:${V}`,[C,V,H]);f(()=>{z!==V&&B(V,{shallow:!1})},[V,B,z]),f(()=>{if(F&&!I){N.current=!0;return}!F&&N.current&&(N.current=!1,I&&A.refresh())},[F,A,I]),f(()=>{if(typeof window>`u`)return;let e=w(M.current),t=window.sessionStorage.getItem(U),n=t?Number(t):0;Number.isFinite(n)&&n>0&&requestAnimationFrame(()=>{E(e,n)});let r=!1,i=()=>{r||(r=!0,requestAnimationFrame(()=>{window.sessionStorage.setItem(U,String(T(e))),r=!1}))};return e?(e.addEventListener(`scroll`,i,{passive:!0}),()=>{e.removeEventListener(`scroll`,i)}):(window.addEventListener(`scroll`,i,{passive:!0}),()=>{window.removeEventListener(`scroll`,i)})},[U]);let W={collect:j(`client.collect`),like:j(`client.like`),history:j(`client.history`)},G=k;return D===`login-required`?G=g(r,{className:`flex gap-4 flex-col items-center justify-center py-10 text-center`,children:[h(c,{className:`text-base text-text1`,children:j(`client.loginToView`)}),h(t,{size:`lg`,variant:`secondary`,onClick:P,children:j(`client.loginNow`)})]}):D===`privacy-collect`?G=h(i,{type:`no-content`,text:j(`client.collectionNotPublic`)}):D===`privacy-like`&&(G=h(i,{type:`no-content`,text:j(`client.likeNotPublic`)})),g(r,{ref:M,className:e(O),children:[h(r,{className:`border-b bg-bg1 sticky z-10 top-0 border-text1/5 h-10`,children:h(a,{value:V,onValueChange:e=>{B(e,{shallow:!1})},className:`w-fit`,children:h(o,{variant:`default`,className:`inline-flex h-9`,children:R.map(e=>h(s,{value:e,className:`p-2.5 !text-base !w-fit data-active:!text-lg data-active:font-bold`,children:W[e]},e))})})}),h(r,{className:`p-2`,children:G})]})}export{D as UserProfileMainShell};
2
+ "use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{Box as r}from"../../../../ui/box.mjs";import{EmptyState as i}from"../../../../ui/empty.mjs";import{Tabs as a,TabsList as o,TabsTrigger as s}from"../../../../ui/tabs.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useLoginModalStore as l}from"../../../../../store/modules/login-modal-store.mjs";import{profileMainMineTabOptions as u,profileMainProfileTabOptions as d}from"./variants.mjs";import{useEffect as f,useMemo as p,useRef as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import{useTranslations as _}from"next-intl";import{parseAsString as v,useQueryState as y}from"nuqs";function b(e){return e?[...u]:[...d]}function x(e,t){let n=b(t);return n.includes(e)?e:n[0]}function S(e){let t=window.getComputedStyle(e);return/auto|scroll|overlay/.test(t.overflowY)}function C(e){if(typeof window>`u`)return null;let t=e?.parentElement??null;for(;t;){if(S(t))return t;t=t.parentElement}let n=document.getElementById(`app-scroll-container`);return n instanceof HTMLElement?n:null}function w(e){return typeof window>`u`?0:e?e.scrollTop:window.scrollY||window.pageYOffset||0}function T(e,t){if(!(typeof window>`u`)){if(e){e.scrollTo({top:t});return}window.scrollTo({top:t,left:0})}}function E({profileId:u,currentUserId:d,isMine:S,renderMode:E,className:D,children:O}){let k=_(`components.pages.profile`),A=m(null),j=l(e=>e.open),M=n(e=>e.userId),N=b(S),[P,F]=y(`tab`,v.withDefault(`collect`)),I=p(()=>x(P,S),[S,P]),L=S?d||M||``:u,R=p(()=>`profile-scroll:${L||(S?`mine`:`guest`)}:${I}`,[S,I,L]);f(()=>{P!==I&&F(I,{shallow:!1})},[I,F,P]),f(()=>{if(typeof window>`u`)return;let e=C(A.current),t=window.sessionStorage.getItem(R),n=t?Number(t):0;Number.isFinite(n)&&n>0&&requestAnimationFrame(()=>{T(e,n)});let r=!1,i=()=>{r||(r=!0,requestAnimationFrame(()=>{window.sessionStorage.setItem(R,String(w(e))),r=!1}))};return e?(e.addEventListener(`scroll`,i,{passive:!0}),()=>{e.removeEventListener(`scroll`,i)}):(window.addEventListener(`scroll`,i,{passive:!0}),()=>{window.removeEventListener(`scroll`,i)})},[R]);let z={collect:k(`client.collect`),like:k(`client.like`),history:k(`client.history`)},B=O;return E===`login-required`?B=g(r,{className:`flex gap-4 flex-col items-center justify-center py-10 text-center`,children:[h(c,{className:`text-base text-text1`,children:k(`client.loginToView`)}),h(t,{size:`lg`,variant:`secondary`,onClick:j,children:k(`client.loginNow`)})]}):E===`privacy-collect`?B=h(i,{type:`no-content`,text:k(`client.collectionNotPublic`)}):E===`privacy-like`&&(B=h(i,{type:`no-content`,text:k(`client.likeNotPublic`)})),g(r,{ref:A,className:e(D),children:[h(r,{className:`border-b bg-bg1 sticky z-10 top-0 border-text1/5 h-10`,children:h(a,{value:I,onValueChange:e=>{F(e,{shallow:!1})},className:`w-fit`,children:h(o,{variant:`default`,className:`inline-flex h-9`,children:N.map(e=>h(s,{value:e,className:`p-2.5 !text-base !w-fit data-active:!text-lg data-active:font-bold`,children:z[e]},e))})})}),h(r,{className:`p-2`,children:B})]})}export{E as UserProfileMainShell};
@@ -1,3 +1,3 @@
1
1
 
2
2
  import { CollectTab, CollectTabProps } from "./client.mjs";
3
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./server.mjs";
3
+ import { CollectTabServer } from "./server.mjs";
@@ -1,54 +1,11 @@
1
1
 
2
- import { PrefetchItem } from "../../../../../../../hooks/query/hydration-boundary.mjs";
3
- import "../../../../../../../hooks.mjs";
4
2
  import { CollectTabProps } from "./client.mjs";
5
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
4
 
7
5
  //#region components/biz/business/profile/profile-main/tabs/collect-tab/server.d.ts
8
- interface CollectTabAuthConfig {
9
- headers?: Record<string, string>;
10
- }
11
- interface BuildCollectTabPrefetchParams {
12
- /** Query Key 前缀。 */
13
- queryKeyPrefix: Array<string | number | undefined>;
14
- /** 目标用户 ID。 */
15
- targetUserId?: string;
16
- /** 当前激活的收藏子 Tab。 */
17
- resolvedCollectTab: string;
18
- /** 当前激活的收藏合集子 Tab。 */
19
- resolvedCollectCollectionTab: string;
20
- /** 服务端请求头配置。 */
21
- authConfig?: CollectTabAuthConfig;
22
- }
23
6
  /**
24
- * 构建收藏 Tab 首屏预取任务。
7
+ * 收藏 Tab 兼容包装组件。
25
8
  */
26
- declare function buildCollectTabPrefetch({
27
- queryKeyPrefix,
28
- targetUserId,
29
- resolvedCollectTab,
30
- resolvedCollectCollectionTab,
31
- authConfig
32
- }: BuildCollectTabPrefetchParams): PrefetchItem[];
33
- interface CollectTabServerProps extends CollectTabProps {
34
- /** 外部透传的预取任务。 */
35
- prefetch?: PrefetchItem[];
36
- /** 当前激活的收藏子 Tab。 */
37
- resolvedCollectTab?: string;
38
- /** 当前激活的收藏合集子 Tab。 */
39
- resolvedCollectCollectionTab?: string;
40
- /** 服务端请求头配置。 */
41
- authConfig?: CollectTabAuthConfig;
42
- }
43
- /**
44
- * 收藏 Tab 服务端包装组件。
45
- */
46
- declare function CollectTabServer({
47
- prefetch,
48
- resolvedCollectTab,
49
- resolvedCollectCollectionTab,
50
- authConfig,
51
- ...props
52
- }: CollectTabServerProps): react_jsx_runtime0.JSX.Element;
9
+ declare function CollectTabServer(props: CollectTabProps): react_jsx_runtime0.JSX.Element;
53
10
  //#endregion
54
- export { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch };
11
+ export { CollectTabServer };
@@ -1,2 +1,2 @@
1
1
 
2
- import{gCommunityGetSubscribedCollections as e,gCommunityGetUserCollections as t,gInteractionListCollects as n}from"../../../../../../../service/generated/client.mjs";import{HydrationBoundary as r}from"../../../../../../../hooks/query/hydration-boundary.mjs";import{defaultPageSize as i}from"../../utils.mjs";import{CollectTab as a}from"./client.mjs";import{jsx as o}from"react/jsx-runtime";import s from"dayjs";function c({queryKeyPrefix:e,targetUserId:t,resolvedCollectTab:n,resolvedCollectCollectionTab:r,authConfig:i}){return t?n===`collection`?[{type:`infinite`,queryKey:r===`subscribed`?[...e,`user-collection-subscribed`,t]:[...e,`user-collection-created`,t],async queryFn(e){return r===`subscribed`?f({targetUserId:t,page:e,authConfig:i}):d({targetUserId:t,page:e,authConfig:i})},initialPageParam:1,getNextPageParam(){}}]:[{type:`infinite`,queryKey:n===`post`?[...e,`user-collect-post`,t]:[...e,`user-collect-video`,t],async queryFn(e){return u({targetUserId:t,page:e,contentType:1,authConfig:i})},initialPageParam:1,getNextPageParam(){}}]:[]}function l({prefetch:e,resolvedCollectTab:t=`video`,resolvedCollectCollectionTab:n=`created`,authConfig:i,...s}){let{mode:l=`renderer`,...u}=s;return o(r,{prefetch:e??c({queryKeyPrefix:u.queryKeyPrefix??[],targetUserId:u.userId,resolvedCollectTab:t,resolvedCollectCollectionTab:n,authConfig:i}),children:o(a,{...u,mode:l})})}async function u({targetUserId:e,page:t,contentType:r,authConfig:a}){let o=await n({user_id:e,folder_id:``,content_type:r,page:t,page_size:i},a),s=o.data.collect_infos?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},c=r===1?(o.data?.video_infos??[]).map(e=>h(e,s)):(o.data?.post_infos??[]).map(e=>m(e,s));return{data:{list:c,total:o.data?.total??c.length}}}async function d({targetUserId:e,page:n,authConfig:r}){let a=await t({page:n,user_id:e,page_size:i},r),o=a.data?.data?.collections??[];return{data:{list:o.map(v),total:a.data?.data?.total??o.length}}}async function f({targetUserId:t,page:n,authConfig:r}){let a=(await e({page:n,user_id:t,page_size:i},r)).data?.data,o=a?.collections??[];return{data:{list:o.map(v),total:a?.total??o.length}}}function p(e){if(e.cover_image)return e.cover_image;let t=``;return(Array.isArray(e.medias)?e.medias:[]).find(e=>e?(!e.is_video&&!t&&e.media_url&&(t=e.media_url),!!e.cover_image):!1)?.cover_image||t}function m(e,t){let n=t[e.content_id||``]?.create_time,r=p(e);return{id:e.content_id||``,title:e.content||``,coverImage:r,publishTime:s(n).toDate().getTime()}}function h(e,t){let n=t[e.id||``]?.create_time;return{is_more_link:e.is_more_link,id:e.id||``,title:e.name||``,coverImage:e.img_x||``,duration:Number(e.duration??0),authorName:e.up_user||e.source_username||``,viewCount:e.play_count??0,publishTime:s(n).toDate().getTime()}}function g(e){let t=p(e);return{contentType:e.source_type,id:e.content_id,title:e.title||e.content,coverImage:t,isVideo:!1,isMovie:!1}}function _(e){return Array.from({length:3},(t,n)=>({id:`${e}-placeholder-${n}`,isPlaceholder:!0}))}function v(e){let t=e.contents??[],n=(Array.isArray(t)?t:[]).slice(0,3).map(g),r=e.content_count??n.length;return{id:e.collection_id||``,title:e.title||``,contentCount:r,contents:r===0?_(e.collection_id||`collection`):n}}export{l as CollectTabServer,c as buildCollectTabPrefetch};
2
+ import{CollectTab as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as CollectTabServer};
@@ -1,3 +1,3 @@
1
1
 
2
2
  import { HistoryTab, HistoryTabProps } from "./client.mjs";
3
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./server.mjs";
3
+ import { HistoryTabServer } from "./server.mjs";
@@ -1,48 +1,11 @@
1
1
 
2
- import { PrefetchItem } from "../../../../../../../hooks/query/hydration-boundary.mjs";
3
- import "../../../../../../../hooks.mjs";
4
2
  import { HistoryTabProps } from "./client.mjs";
5
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
4
 
7
5
  //#region components/biz/business/profile/profile-main/tabs/history-tab/server.d.ts
8
- interface HistoryTabAuthConfig {
9
- headers?: Record<string, string>;
10
- }
11
- interface BuildHistoryTabPrefetchParams {
12
- /** Query Key 前缀。 */
13
- queryKeyPrefix: Array<string | number | undefined>;
14
- /** 目标用户 ID。 */
15
- targetUserId?: string;
16
- /** 当前激活的历史子 Tab。 */
17
- resolvedHistoryTab: string;
18
- /** 服务端请求头配置。 */
19
- authConfig?: HistoryTabAuthConfig;
20
- }
21
6
  /**
22
- * 构建历史 Tab 首屏预取任务。
7
+ * 历史 Tab 兼容包装组件。
23
8
  */
24
- declare function buildHistoryTabPrefetch({
25
- queryKeyPrefix,
26
- targetUserId,
27
- resolvedHistoryTab,
28
- authConfig
29
- }: BuildHistoryTabPrefetchParams): PrefetchItem[];
30
- interface HistoryTabServerProps extends HistoryTabProps {
31
- /** 外部透传的预取任务。 */
32
- prefetch?: PrefetchItem[];
33
- /** 当前激活的历史子 Tab。 */
34
- resolvedHistoryTab?: string;
35
- /** 服务端请求头配置。 */
36
- authConfig?: HistoryTabAuthConfig;
37
- }
38
- /**
39
- * 历史 Tab 服务端包装组件。
40
- */
41
- declare function HistoryTabServer({
42
- prefetch,
43
- resolvedHistoryTab,
44
- authConfig,
45
- ...props
46
- }: HistoryTabServerProps): react_jsx_runtime0.JSX.Element;
9
+ declare function HistoryTabServer(props: HistoryTabProps): react_jsx_runtime0.JSX.Element;
47
10
  //#endregion
48
- export { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch };
11
+ export { HistoryTabServer };
@@ -1,2 +1,2 @@
1
1
 
2
- import{HydrationBoundary as e}from"../../../../../../../hooks/query/hydration-boundary.mjs";import{getHistoryData as t,likeContentType as n}from"../../utils.mjs";import{HistoryTab as r}from"./client.mjs";import{jsx as i}from"react/jsx-runtime";function a({queryKeyPrefix:e,targetUserId:r,resolvedHistoryTab:i,authConfig:a}){return r?[{type:`infinite`,queryKey:i===`post`?[...e,`user-history-post`]:[...e,`user-history-video`],async queryFn(e){return t({targetUserId:r,page:e,contentType:n.video,authConfig:a})},initialPageParam:1,getNextPageParam(){}}]:[]}function o({prefetch:t,resolvedHistoryTab:n=`video`,authConfig:o,...s}){let{mode:c=`renderer`,...l}=s;return i(e,{prefetch:t??a({queryKeyPrefix:l.queryKeyPrefix??[],targetUserId:l.targetUserId,resolvedHistoryTab:n,authConfig:o}),children:i(r,{...l,mode:c})})}export{o as HistoryTabServer,a as buildHistoryTabPrefetch};
2
+ import{HistoryTab as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as HistoryTabServer};
@@ -1,13 +1,13 @@
1
1
 
2
2
  import { CollectTab, CollectTabProps } from "./collect-tab/client.mjs";
3
- import { BuildCollectTabPrefetchParams, CollectTabAuthConfig, CollectTabServer, buildCollectTabPrefetch } from "./collect-tab/server.mjs";
3
+ import { CollectTabServer } from "./collect-tab/server.mjs";
4
4
  import "./collect-tab/index.mjs";
5
5
  import { HistoryTab, HistoryTabProps } from "./history-tab/client.mjs";
6
- import { BuildHistoryTabPrefetchParams, HistoryTabAuthConfig, HistoryTabServer, buildHistoryTabPrefetch } from "./history-tab/server.mjs";
6
+ import { HistoryTabServer } from "./history-tab/server.mjs";
7
7
  import "./history-tab/index.mjs";
8
8
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./like-tab/client.mjs";
9
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./like-tab/server.mjs";
9
+ import { LikeTabServer } from "./like-tab/server.mjs";
10
10
  import "./like-tab/index.mjs";
11
11
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./publish-tab/client.mjs";
12
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./publish-tab/server.mjs";
12
+ import { PublishTabServer } from "./publish-tab/server.mjs";
13
13
  import "./publish-tab/index.mjs";
@@ -1,3 +1,3 @@
1
1
 
2
2
  import { LikeDetailItem, LikeTab, LikeTabProps } from "./client.mjs";
3
- import { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch } from "./server.mjs";
3
+ import { LikeTabServer } from "./server.mjs";
@@ -1,39 +1,11 @@
1
1
 
2
- import { PrefetchItem } from "../../../../../../../hooks/query/hydration-boundary.mjs";
3
- import "../../../../../../../hooks.mjs";
4
2
  import { LikeTabProps } from "./client.mjs";
5
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
4
 
7
5
  //#region components/biz/business/profile/profile-main/tabs/like-tab/server.d.ts
8
- interface BuildLikeTabPrefetchParams {
9
- /** Query Key 前缀。 */
10
- queryKeyPrefix: Array<string | number | undefined>;
11
- /** 目标用户 ID。 */
12
- targetUserId?: string;
13
- /** 当前激活的点赞子 Tab。 */
14
- resolvedLikeTab: string;
15
- }
16
6
  /**
17
- * 构建点赞 Tab 首屏预取任务。
7
+ * 点赞 Tab 兼容包装组件。
18
8
  */
19
- declare function buildLikeTabPrefetch({
20
- queryKeyPrefix,
21
- targetUserId,
22
- resolvedLikeTab
23
- }: BuildLikeTabPrefetchParams): PrefetchItem[];
24
- interface LikeTabServerProps extends LikeTabProps {
25
- /** 外部透传的预取任务。 */
26
- prefetch?: PrefetchItem[];
27
- /** 当前激活的点赞子 Tab。 */
28
- resolvedLikeTab?: string;
29
- }
30
- /**
31
- * 点赞 Tab 服务端包装组件。
32
- */
33
- declare function LikeTabServer({
34
- prefetch,
35
- resolvedLikeTab,
36
- ...props
37
- }: LikeTabServerProps): react_jsx_runtime0.JSX.Element;
9
+ declare function LikeTabServer(props: LikeTabProps): react_jsx_runtime0.JSX.Element;
38
10
  //#endregion
39
- export { BuildLikeTabPrefetchParams, LikeTabServer, buildLikeTabPrefetch };
11
+ export { LikeTabServer };
@@ -1,2 +1,2 @@
1
1
 
2
- import{HydrationBoundary as e}from"../../../../../../../hooks/query/hydration-boundary.mjs";import{getLikeData as t,likeContentType as n}from"../../utils.mjs";import{LikeTab as r}from"./client.mjs";import{jsx as i}from"react/jsx-runtime";function a({queryKeyPrefix:e,targetUserId:r,resolvedLikeTab:i}){return r?[{type:`infinite`,queryKey:i===`post`?[...e,`user-like-post`]:[...e,`user-like-video`],async queryFn(e){return t({targetUserId:r,page:e,contentType:n.video})},initialPageParam:1,getNextPageParam(){}}]:[]}function o({prefetch:t,resolvedLikeTab:n=`video`,...o}){let{mode:s=`renderer`,...c}=o;return i(e,{prefetch:t??a({queryKeyPrefix:c.queryKeyPrefix??[],targetUserId:c.targetUserId,resolvedLikeTab:n}),children:i(r,{...c,mode:s})})}export{o as LikeTabServer,a as buildLikeTabPrefetch};
2
+ import{LikeTab as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as LikeTabServer};
@@ -1,3 +1,3 @@
1
1
 
2
2
  import { PublishTab, PublishTabProps, PublishTabUserInfo } from "./client.mjs";
3
- import { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch } from "./server.mjs";
3
+ import { PublishTabServer } from "./server.mjs";
@@ -1,33 +1,11 @@
1
1
 
2
- import { PrefetchItem } from "../../../../../../../hooks/query/hydration-boundary.mjs";
3
- import "../../../../../../../hooks.mjs";
4
2
  import { PublishTabProps } from "./client.mjs";
5
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
4
 
7
5
  //#region components/biz/business/profile/profile-main/tabs/publish-tab/server.d.ts
8
- interface BuildPublishTabPrefetchParams {
9
- /** Query Key 前缀。 */
10
- queryKeyPrefix: Array<string | number | undefined>;
11
- /** 目标用户 ID。 */
12
- targetUserId?: string;
13
- }
14
6
  /**
15
- * 构建发布 Tab 首屏预取任务。
7
+ * 发布 Tab 兼容包装组件。
16
8
  */
17
- declare function buildPublishTabPrefetch({
18
- queryKeyPrefix,
19
- targetUserId
20
- }: BuildPublishTabPrefetchParams): PrefetchItem[];
21
- interface PublishTabServerProps extends PublishTabProps {
22
- /** 外部透传的预取任务。 */
23
- prefetch?: PrefetchItem[];
24
- }
25
- /**
26
- * 发布 Tab 服务端包装组件。
27
- */
28
- declare function PublishTabServer({
29
- prefetch,
30
- ...props
31
- }: PublishTabServerProps): react_jsx_runtime0.JSX.Element;
9
+ declare function PublishTabServer(props: PublishTabProps): react_jsx_runtime0.JSX.Element;
32
10
  //#endregion
33
- export { BuildPublishTabPrefetchParams, PublishTabServer, buildPublishTabPrefetch };
11
+ export { PublishTabServer };
@@ -1,2 +1,2 @@
1
1
 
2
- import{HydrationBoundary as e}from"../../../../../../../hooks/query/hydration-boundary.mjs";import{PublishTab as t}from"./client.mjs";import{jsx as n}from"react/jsx-runtime";function r({queryKeyPrefix:e,targetUserId:t}){return t?[{type:`infinite`,queryKey:[...e,`user-publish`],async queryFn(e){return{data:{list:[],total:0,has_more:!1}}},initialPageParam:1,getNextPageParam(){}}]:[]}function i({prefetch:i,...a}){let{mode:o=`renderer`,...s}=a;return n(e,{prefetch:i??r({queryKeyPrefix:s.queryKeyPrefix??[],targetUserId:s.targetUserId}),children:n(t,{...s,mode:o})})}export{i as PublishTabServer,r as buildPublishTabPrefetch};
2
+ import{PublishTab as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){return t(e,{...n})}export{n as PublishTabServer};
@@ -1,2 +1,2 @@
1
1
 
2
- import{gInteractionGetBrowseList as e,gInteractionGetLikeList as t}from"../../../../../service/generated/client.mjs";import n from"dayjs";const r=10,i={video:1,post:2};function a(e){if(e.cover_image)return e.cover_image;let t=``;return e.medias?.find(e=>e?(!e.is_video&&!t&&e.media_url&&(t=e.media_url),!!e.cover_image):!1)?.cover_image||t}function o(e,t){let r=e.name,i=n(t?t?.[e.content_id||``]?.create_time:e.create_time).toDate().getTime(),o=a(e);return{id:e.content_id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.author?.nickname,avatar:e.author?.avatar},info:{name:r,content_id:e.content_id,user_id:e.user_id,content:e.content,tags:e.tags,cover_image:o,like_count:e.like_count,dislike_count:e.dislike_count,comment_count:e.comment_count,share_count:e.share_count,view_count:e.view_count,create_time:e.create_time,update_time:e.update_time,author:e.author?{user_id:e.author.user_id,username:e.author.username,nickname:e.author.nickname,avatar_url:e.author.avatar}:void 0},statics_cnt:{browse_cnt:e.view_count||0},publish_time:i,parent_content_info:{type:0}}}}function s(e,t){let r=e.is_more_link,i=n(t?t?.[e.id||``]?.create_time:e.show_at).toDate().getTime(),a=Number(e.duration??0),o=Number.isFinite(a)?Math.max(0,Math.floor(a)):0;return{id:e.id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.source_username||e.up_user||e.director||e.actor,avatar:void 0},info:{is_more_link:r,name:e.name,content_id:e.id,content:e.description,tags:e.tags?.map(e=>e.name).filter(e=>!!e),cover_image:e.img_y||e.img_x,create_time:e.show_at,video_duration:o},statics_cnt:{browse_cnt:e.play_count||0},publish_time:i,parent_content_info:{type:0}}}}function c(e,t){let r=e.name,i=e.is_more_link,o=t[e.content_id||``].browse_time,s=n(o).toDate().getTime(),c=a(e);return{id:e.content_id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.author?.nickname,avatar:e.author?.avatar},info:{is_more_link:i,name:r||e.content,title:r||e.content,content_id:e.content_id,user_id:e.user_id,content:e.content,tags:e.tags,cover_image:c,like_count:e.like_count,dislike_count:e.dislike_count,comment_count:e.comment_count,share_count:e.share_count,view_count:e.view_count,create_time:e.create_time,update_time:e.update_time,author:e.author?{user_id:e.author.user_id,username:e.author.username,nickname:e.author.nickname,avatar_url:e.author.avatar}:void 0},statics_cnt:{browse_cnt:e.view_count||0},publish_time:s,parent_content_info:{type:0}}}}function l(e,t){let r=e.is_more_link,i=t[e.id||``].browse_time,a=n(i).toDate().getTime(),o=Number(e.duration??0),s=Number.isFinite(o)?Math.max(0,Math.floor(o)):0,c=t[e.id||``]?.browse_duration||0,l=Number(t[e.id||``]?.browse_episode),u=0,d=0;return Number.isNaN(l)||(u=l),s&&c&&(d=Math.min(100,Math.floor(c/s*100))),{id:e.id||``,content_play_progress:{percent:d,series_num:u},detail:{user_info:{name:e.source_username||e.up_user||e.director||e.actor,avatar:void 0},info:{is_more_link:r,name:e.name,content_id:e.id,content:e.description,tags:e.tags?.map(e=>e.name).filter(e=>!!e),cover_image:e.img_y||e.img_x,create_time:e.show_at,video_duration:s},statics_cnt:{browse_cnt:e.play_count||0},publish_time:a,parent_content_info:{type:0}}}}async function u({targetUserId:e,page:n,contentType:r,pageSize:a=10}){if(!e)return{data:{list:[],total:0}};let c=await t({user_id:e,page:n,content_type:r,page_size:a}),l=c.data.like_infos?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},u=r===i.post?(c.data?.post_infos??[]).map(e=>o(e,l)):(c.data?.video_infos??[]).map(e=>s(e,l)),d=c.data?.has_more,f=typeof d==`boolean`?d:void 0;return{data:{list:u,total:c.data?.total??u.length,has_more:f}}}async function d({targetUserId:t,page:n,contentType:r,pageSize:a=10,authConfig:o}){if(!t)return{data:{list:[],total:0}};let s=await e({user_id:t,page:n,page_size:a,content_type:r},o),u=s.data.records?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},d=r===i.post?(s.data?.post_infos??[]).map(e=>c(e,u)):(s.data?.video_infos??[]).map(e=>l(e,u)),f=s.data?.has_more?!0:void 0;return{data:{list:d,total:s.data?.total??d.length,has_more:f}}}export{r as defaultPageSize,d as getHistoryData,u as getLikeData,i as likeContentType};
2
+ import{gInteractionGetBrowseList as e,gInteractionGetLikeList as t}from"../../../../../service/generated/client.mjs";import n from"dayjs";const r={video:1,post:2};function i(e){if(e.cover_image)return e.cover_image;let t=``;return e.medias?.find(e=>e?(!e.is_video&&!t&&e.media_url&&(t=e.media_url),!!e.cover_image):!1)?.cover_image||t}function a(e,t){let r=e.name,a=n(t?t?.[e.content_id||``]?.create_time:e.create_time).toDate().getTime(),o=i(e);return{id:e.content_id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.author?.nickname,avatar:e.author?.avatar},info:{name:r,content_id:e.content_id,user_id:e.user_id,content:e.content,tags:e.tags,cover_image:o,like_count:e.like_count,dislike_count:e.dislike_count,comment_count:e.comment_count,share_count:e.share_count,view_count:e.view_count,create_time:e.create_time,update_time:e.update_time,author:e.author?{user_id:e.author.user_id,username:e.author.username,nickname:e.author.nickname,avatar_url:e.author.avatar}:void 0},statics_cnt:{browse_cnt:e.view_count||0},publish_time:a,parent_content_info:{type:0}}}}function o(e,t){let r=e.is_more_link,i=n(t?t?.[e.id||``]?.create_time:e.show_at).toDate().getTime(),a=Number(e.duration??0),o=Number.isFinite(a)?Math.max(0,Math.floor(a)):0;return{id:e.id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.source_username||e.up_user||e.director||e.actor,avatar:void 0},info:{is_more_link:r,name:e.name,content_id:e.id,content:e.description,tags:e.tags?.map(e=>e.name).filter(e=>!!e),cover_image:e.img_y||e.img_x,create_time:e.show_at,video_duration:o},statics_cnt:{browse_cnt:e.play_count||0},publish_time:i,parent_content_info:{type:0}}}}function s(e,t){let r=e.name,a=e.is_more_link,o=t[e.content_id||``].browse_time,s=n(o).toDate().getTime(),c=i(e);return{id:e.content_id||``,content_play_progress:{percent:0,series_num:0},detail:{user_info:{name:e.author?.nickname,avatar:e.author?.avatar},info:{is_more_link:a,name:r||e.content,title:r||e.content,content_id:e.content_id,user_id:e.user_id,content:e.content,tags:e.tags,cover_image:c,like_count:e.like_count,dislike_count:e.dislike_count,comment_count:e.comment_count,share_count:e.share_count,view_count:e.view_count,create_time:e.create_time,update_time:e.update_time,author:e.author?{user_id:e.author.user_id,username:e.author.username,nickname:e.author.nickname,avatar_url:e.author.avatar}:void 0},statics_cnt:{browse_cnt:e.view_count||0},publish_time:s,parent_content_info:{type:0}}}}function c(e,t){let r=e.is_more_link,i=t[e.id||``].browse_time,a=n(i).toDate().getTime(),o=Number(e.duration??0),s=Number.isFinite(o)?Math.max(0,Math.floor(o)):0,c=t[e.id||``]?.browse_duration||0,l=Number(t[e.id||``]?.browse_episode),u=0,d=0;return Number.isNaN(l)||(u=l),s&&c&&(d=Math.min(100,Math.floor(c/s*100))),{id:e.id||``,content_play_progress:{percent:d,series_num:u},detail:{user_info:{name:e.source_username||e.up_user||e.director||e.actor,avatar:void 0},info:{is_more_link:r,name:e.name,content_id:e.id,content:e.description,tags:e.tags?.map(e=>e.name).filter(e=>!!e),cover_image:e.img_y||e.img_x,create_time:e.show_at,video_duration:s},statics_cnt:{browse_cnt:e.play_count||0},publish_time:a,parent_content_info:{type:0}}}}async function l({targetUserId:e,page:n,contentType:i,pageSize:s=10}){if(!e)return{data:{list:[],total:0}};let c=await t({user_id:e,page:n,content_type:i,page_size:s}),l=c.data.like_infos?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},u=i===r.post?(c.data?.post_infos??[]).map(e=>a(e,l)):(c.data?.video_infos??[]).map(e=>o(e,l)),d=c.data?.has_more,f=typeof d==`boolean`?d:void 0;return{data:{list:u,total:c.data?.total??u.length,has_more:f}}}async function u({targetUserId:t,page:n,contentType:i,pageSize:a=10,authConfig:o}){if(!t)return{data:{list:[],total:0}};let l=await e({user_id:t,page:n,page_size:a,content_type:i},o),u=l.data.records?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},d=i===r.post?(l.data?.post_infos??[]).map(e=>s(e,u)):(l.data?.video_infos??[]).map(e=>c(e,u)),f=l.data?.has_more?!0:void 0;return{data:{list:d,total:l.data?.total??d.length,has_more:f}}}export{u as getHistoryData,l as getLikeData,r as likeContentType};
@@ -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{useMemo as r,useState as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{usePathname as s,useRouter as c}from"next/navigation";const l=[];function u(e,t){return e.domainId===`home`&&t===`/`||e.domainId===`mine`&&t.includes(`/mine`)}function d(e){if(e.configType===1)switch(e.functionPageType){case`搜索`:return`/search`;case`个人中心`:return`/user/mine`;case`内容列表`:return`/video-list?tags=${e.tags}&title=${e.title}`;default:return`/`}let t=(e.domainId??``).toString().trim();return t?`/domain/category/${t}`:`/`}function f(f){let{items:p=l,mode:m=`renderer`}=f,h=c(),g=s(),[_,v]=i(0),y=r(()=>{if(m===`editor`)return 0;let e=(p??[]).findIndex(e=>u(e,g));return e>=0?e:_},[p,g,m,_]),b=r(()=>(p??[]).some(e=>e.label!=null&&String(e.label).trim()!==``),[p]);if(!p?.length)return null;let x=(e,t)=>{m!==`editor`&&(v(t),h.push(d(e)))},S=`flex min-w-0 flex-1 cursor-pointer flex-col items-center justify-center ${b?`gap-1`:``}`;return a(t,{className:`fixed bottom-0 left-0 right-0 z-50 safe-area-bottom bg-bg1 border-t border-line1 backdrop-blur-[2px] py-3 shadow-[0px_-4px_10px_0px_rgba(0,0,0,0.02)]`,children:a(t,{className:`flex w-full items-center`,children:p.map((r,i)=>{let s=y===i,c=s&&r.activeIcon?r.activeIcon:r.icon,l=typeof r.label==`string`?r.label:String(r.label??``);return o(t,{className:S,onClick:()=>x(r,i),children:[a(t,{className:`relative size-[22px] shrink-0`,children:c?a(e,{src:c,alt:l,fill:!0,className:`object-contain`}):a(t,{className:`size-full rounded-sm ${s?`bg-theme5`:`bg-text3`}`})}),b&&a(n,{className:`truncate text-center text-[10px] leading-[10px] font-medium min-w-0 max-w-full px-0.5 ${s?`text-theme5`:`text-text2`}`,children:l})]},i)})})})}export{f as TabBarClient};
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{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{usePathname as o,useRouter as s}from"next/navigation";const c=[];function l(e,t){return e.domainId===`home`&&t===`/`||e.domainId===`mine`&&t.includes(`/mine`)}function u(e){if(e.configType===1)switch(e.functionPageType){case`搜索`:return`/search`;case`个人中心`:return`/user/mine`;case`内容列表`:return`/video-list?tags=${e.tags}&title=${e.title}`;default:return`/`}let t=(e.domainId??``).toString().trim();return t?`/domain/category/${t}`:`/`}function d(d){let{items:f=c,mode:p=`renderer`}=d,m=s(),h=o(),g=r(()=>{if(p===`editor`)return 0;let e=(f??[]).findIndex(e=>l(e,h));return e>=0?e:0},[f,h,p]),_=r(()=>(f??[]).some(e=>e.label!=null&&String(e.label).trim()!==``),[f]);if(!f?.length)return null;let v=e=>{p!==`editor`&&m.push(u(e))},y=`flex min-w-0 flex-1 cursor-pointer flex-col items-center justify-center ${_?`gap-1`:``}`;return i(t,{className:`fixed bottom-0 left-0 right-0 z-50 safe-area-bottom bg-bg1 border-t border-line1 backdrop-blur-[2px] py-3 shadow-[0px_-4px_10px_0px_rgba(0,0,0,0.02)]`,children:i(t,{className:`flex w-full items-center`,children:f.map((r,o)=>{let s=g===o,c=s&&r.activeIcon?r.activeIcon:r.icon,l=typeof r.label==`string`?r.label:String(r.label??``);return a(t,{className:y,onClick:()=>v(r),children:[i(t,{className:`relative size-[22px] shrink-0`,children:c?i(e,{src:c,alt:l,fill:!0,className:`object-contain`}):i(t,{className:`size-full rounded-sm ${s?`bg-theme5`:`bg-text3`}`})}),_&&i(n,{className:`truncate text-center text-[10px] leading-[10px] font-medium min-w-0 max-w-full px-0.5 ${s?`text-theme5`:`text-text2`}`,children:l})]},o)})})})}export{d as TabBarClient};
@@ -1,2 +1,2 @@
1
1
 
2
- import{UserProfileHeader as e}from"../../biz/business/profile/profile-header/server.mjs";import{UserProfileMain as t}from"../../biz/business/profile/profile-main/server.mjs";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";function a(a){let{id:o,showCreateAction:s,showBackButton:c,requireLogin:l,tab:u,likeTab:d,historyTab:f,collectTab:p,collectCollectionTab:m}=a;return i(n,{children:[r(e,{id:o,showBackButton:c,requireLogin:l}),r(t,{id:o,showCreateAction:s,requireLogin:l,tab:u,likeTab:d,historyTab:f,collectTab:p,collectCollectionTab:m})]})}export{a as UserProfilePage};
2
+ import{UserProfileHeaderClient as e}from"../../biz/business/profile/profile-header/client.mjs";import{UserProfileMain as t}from"../../biz/business/profile/profile-main/server.mjs";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";function a(a){let{id:o,showCreateAction:s,showBackButton:c,requireLogin:l,tab:u,likeTab:d,historyTab:f,collectTab:p,collectCollectionTab:m}=a;return i(n,{children:[r(e,{id:o,showBackButton:c,requireLogin:l}),r(t,{id:o,showCreateAction:s,requireLogin:l,tab:u,likeTab:d,historyTab:f,collectTab:p,collectCollectionTab:m})]})}export{a as UserProfilePage};
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
6
6
  //#region components/ui/badge.d.ts
7
7
  /** badgeVariants 工具定义。 */
8
8
  declare const badgeVariants: (props?: ({
9
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
9
+ variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
10
10
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  /** Badge 组件。 */
12
12
  declare function Badge({
@@ -7,8 +7,8 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
7
7
  //#region components/ui/button.d.ts
8
8
  /** buttonVariants 工具定义。 */
9
9
  declare const buttonVariants: (props?: ({
10
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
11
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
10
+ variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
11
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
14
14
  type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.1.79",
4
+ "version": "0.1.80",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"
@@ -1,36 +0,0 @@
1
-
2
- import { UserProfileHeaderAuthConfig, UserProfileHeaderClientProps } from "./schema.mjs";
3
- import { PrefetchItem } from "../../../../../hooks/query/hydration-boundary.mjs";
4
- import "../../../../../hooks.mjs";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
-
7
- //#region components/biz/business/profile/profile-header/server.d.ts
8
- interface BuildUserProfileHeaderPrefetchParams {
9
- /** 路由目标用户 ID。 */
10
- id?: string;
11
- /** 当前登录用户 ID。 */
12
- currentUserId: string;
13
- /** 当前登录 Token。 */
14
- token: string;
15
- /** 服务端请求头。 */
16
- authConfig?: UserProfileHeaderAuthConfig;
17
- }
18
- /**
19
- * 构建用户资料头部预取任务。
20
- */
21
- declare function buildUserProfileHeaderPrefetch({
22
- id,
23
- currentUserId,
24
- token,
25
- authConfig
26
- }: BuildUserProfileHeaderPrefetchParams): PrefetchItem[];
27
- type UserProfileHeaderProps = UserProfileHeaderClientProps;
28
- /**
29
- * 用户资料头部服务端组件(用于物料注册),内部包含预取逻辑。
30
- */
31
- declare function UserProfileHeader({
32
- mode,
33
- ...props
34
- }: UserProfileHeaderProps): react_jsx_runtime0.JSX.Element;
35
- //#endregion
36
- export { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch };
@@ -1,2 +0,0 @@
1
-
2
- import{gUserGetUserInfo as e,gUserViewUserInfo as t}from"../../../../../service/generated/client.mjs";import{HydrationBoundary as n}from"../../../../../hooks/query/hydration-boundary.mjs";import{UserProfileHeaderClient as r}from"./client.mjs";import{jsx as i}from"react/jsx-runtime";import{cookies as a}from"next/headers";function o(e,t){let n={};if(e&&(n.Authorization=`Bearer ${e}`),t&&(n[`X-User-Id`]=t),Object.keys(n).length!==0)return{headers:n}}async function s({cookieToken:e,cookieUserId:t,token:n,currentUserId:r,authConfig:i}){let s=``,c=``;try{let e=await a();s=e.get(`token`)?.value||``,c=e.get(`userId`)?.value||``}catch{}let l=e||s,u=t||c,d=n||l,f=r||u;return{cookieToken:l,cookieUserId:u,token:d,currentUserId:f,authConfig:i||o(d,f)}}function c({id:n,currentUserId:r,token:i,authConfig:a}){return n||r&&i?[{queryKey:n==null||r&&n===r?[`user-profile`,`mine`]:[`user-profile`,`profile`,n],async queryFn(){return n==null?e({user_id:r},a):t({target_user_id:n,user_id:r||n},a)}}]:[]}function l({mode:e=`renderer`,...t}){return i(u,{...t,mode:e})}async function u({mode:e=`renderer`,cookieToken:t,cookieUserId:a,token:o=``,currentUserId:l=``,authConfig:u,...d}){if(e===`editor`)return i(r,{...d,mode:e,isEditorPreview:!0});let f=await s({cookieToken:t,cookieUserId:a,token:o,currentUserId:l,authConfig:u}),p=c({id:d.id,currentUserId:f.currentUserId,token:f.token,authConfig:f.authConfig});return p.length===0?i(r,{...d,mode:e,cookieToken:f.cookieToken,cookieUserId:f.cookieUserId}):i(n,{prefetch:p,children:i(r,{...d,mode:e,cookieToken:f.cookieToken,cookieUserId:f.cookieUserId})})}export{l as UserProfileHeader,c as buildUserProfileHeaderPrefetch};