@funhub/platform 0.1.37 → 0.1.38
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.
- package/config/tailwind/index.cjs +4 -0
- package/config/tailwind/index.mjs +4 -0
- package/dist/assets/images/subscript.mjs +2 -0
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/business/comment/comment-input.mjs +1 -1
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/variants.d.mts +3 -3
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -1
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/material.d.mts +6 -2
- package/dist/components/biz/business/tab-bar/schema.d.mts +6 -2
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/client.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.d.mts +2 -0
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.d.mts +2 -0
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/package.json +1 -1
- package/theme.css +4 -0
- package/dist/components/common/icons/edit.mjs +0 -2
|
@@ -43,6 +43,7 @@ const platformTailwindColors = {
|
|
|
43
43
|
'text4': 'var(--color-text4)',
|
|
44
44
|
'line1': 'var(--color-line1)',
|
|
45
45
|
'line2': 'var(--color-line2)',
|
|
46
|
+
'overlay': 'var(--color-overlay)',
|
|
46
47
|
'theme1': 'var(--color-theme1)',
|
|
47
48
|
'theme3': 'var(--color-theme3)',
|
|
48
49
|
'theme4': 'var(--color-theme4)',
|
|
@@ -162,6 +163,9 @@ const platformTailwindUtilityPolyfills = {
|
|
|
162
163
|
'.bg-text3\\/10': {
|
|
163
164
|
backgroundColor: 'color-mix(in srgb, var(--color-text3) 10%, transparent)',
|
|
164
165
|
},
|
|
166
|
+
'.bg-bg1\\/10': {
|
|
167
|
+
backgroundColor: 'color-mix(in srgb, var(--color-bg1) 10%, transparent)',
|
|
168
|
+
},
|
|
165
169
|
'.bg-line1\\/20': {
|
|
166
170
|
backgroundColor: 'color-mix(in srgb, var(--color-line1) 20%, transparent)',
|
|
167
171
|
},
|
|
@@ -44,6 +44,7 @@ const platformTailwindColors = {
|
|
|
44
44
|
'text4': 'var(--color-text4)',
|
|
45
45
|
'line1': 'var(--color-line1)',
|
|
46
46
|
'line2': 'var(--color-line2)',
|
|
47
|
+
'overlay': 'var(--color-overlay)',
|
|
47
48
|
'theme1': 'var(--color-theme1)',
|
|
48
49
|
'theme3': 'var(--color-theme3)',
|
|
49
50
|
'theme4': 'var(--color-theme4)',
|
|
@@ -163,6 +164,9 @@ const platformTailwindUtilityPolyfills = {
|
|
|
163
164
|
'.bg-text3\\/10': {
|
|
164
165
|
backgroundColor: 'color-mix(in srgb, var(--color-text3) 10%, transparent)',
|
|
165
166
|
},
|
|
167
|
+
'.bg-bg1\\/10': {
|
|
168
|
+
backgroundColor: 'color-mix(in srgb, var(--color-bg1) 10%, transparent)',
|
|
169
|
+
},
|
|
166
170
|
'.bg-line1\\/20': {
|
|
167
171
|
backgroundColor: 'color-mix(in srgb, var(--color-line1) 20%, transparent)',
|
|
168
172
|
},
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
var e=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAUCAYAAAAKuPQLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABYRJREFUeAFdVktslFUU/s4//4DtlMRNB4kLhwjR8LIsuqWFhESh6EQBMSpBjRjkGR9I4mOkxgRMiISHEFygURQDxMaoJLpoQ1wpKia+UWgXCkwXqNDWdmbu8d5z7r3z15nM/Pe/j/P8zncuNXoeNkQAw9gf25F9EsM9oU+2T2LWp5tze8O6+7ox2X2cWXf/RCau+3f2Otzkd0yNcznCzpbj5waR+SQsop2SaADrOPxUjdXqTLdD4yxk9+beSQy3E37dLckhN27KgDrO4d9+zR1EtK4Bc/H6/fNfv1ruuDEaFVRmFIsgisZZI0hNc+sSC+K4T41Qw+AlIUZdDRdHueEPOX/cKvtgwI23pS21/qvlkhiWiNeSGu8pgkJRKV7Z1Pk3M9mAYATpV0Z+nfweKs5wcyqd/BPhuMlEkzvyhZaKps9tS6Iw9Y7Uk2TNatDMElAsIlm9RlIgiubNp7T3tWZKXdoVc5I2ZKJ5w4FT3sGAwOCIOkPeFR/1bdceur07lUn7ZrwXGSwQ9/cjt2MHUCig/tKOmCofhQB+hAilq9Yht3wlYfRaBC0PX7KGfRixhcI01D49htqpQ5lC8UZaecZwOWUFrY+UUcUeaTRyHVytQgyvXuF08zZCcTqotUBkn/nePeJj/eMTMGe/EMH1t/ehPvAJmlUcFDakOvNdK4D2GTrPWigeWwoC4J7UbSQPbMMKYwmE3ZzbsgV88QLT4iUSZJq7APXKs4w5Cyi3ZClqB3cjv24jqK0gBVH/8oxEaWplv8MS0NrmU2P1j1wjHv4T44croKFWTzNKIVoOkYJKAnSfa4oV57FR37cX9ePHyLhoFdvlsKleIQxfVkHVy2BJFSkSB89LuiYOvarRGr2O8e0PMlcvYWxzD8b3PIV00Qo444Ip4AiXqDsNdUNQOqTANi6sNn003YJ83nyYYpGFbizoHcbQWoBLIRXaQp0iN28hcstWyVztxJswcxci6eyixtl+5Fc+gbSzG/UzHzGP/q1+xELhSfhKhYdYq82DXCrCBTZxVbdpK0z/53ps8Hekm56xRrWB2i2mNj6nELfRccIa33/NjYu/UDJzFtJla9D4agD5ZQ9grHc9Wna/j7FXHgMP/hQIwmOtSdKk/ERKCVlABnay/8mjj6N+9EjkrNruCtcqT6Nx9KAV/pvF1C7Lx+fR+PFbwSTNnE1TXz6AxEZo4lBvZKC0swsTJw8jv+hu0UK+M3hWbNKQx0ESQs/eWsQCt5W0qxcYvCDpoua6byT2M3yJk9IsJHM6lKOHfsX4zo0wP3yD/IYX5Uzt5BEkt9yG+ul3bdVOw9S1222Ub440miFlJumJNhj24KCSGGJOhQ5EtxIjlW61gB5B0nMvcqvXUs4+nTFTDn5AaL8JafddYm6ucxHyT76AXPdySw17uH76Pc6VZqMx9LPI/Pfw81IYU+7bIDQjZY/YRhEi5niqz85sZTLNFuHLM1my1BpQhhn4THPd2mrxcwU8dB61t/YDI/9IeeQf2SrE16j+QeaNXjYWyPlV62lKV49Umjn9jpCtc3zi1AGhD8/4sfNqK/IBqZXL3XaqH6GvBTKjbK9zzB3H2kwDDuM5E8/5Oa/YqBH+yhKbuZfHWbnKl0jyfX0DNpd7fcNUA6CU32y6mWbr+5SG24ReFrkmsh4yN4koYVJB6RnmcK1BYPfEqUiR7LRGnFNK8GRPvv96IBIC/6qvAQQiiEPqtcES0GyysVdi8tXIzysPmajJV5/d29f3Vx7pYjvaF4zgmDb2Brn2YwILA5k7lXcCsWVIxzfRIOP3SpslvdY0LzEZXHkZhP99xsp3lpKEKzbXHe6OoymK+bZiTZPXBCMmNvNwa7U0KrANV2QO12VwhhM9bm2j1uQajzPgP4Ua9dkriCuvAAAAAElFTkSuQmCC`;export{e as default};
|
package/dist/biz.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{CARD_SPEC_MAP as e,CardSpec as t,getCardSpecConfig as n}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as r}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as i}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as a,DataSourceType as o}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as s,customStylesToInline as c,mergeStyles as l}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as u}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as d,transformContentToCardItem as f}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as p}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as h,basicBannerInspectorPropsSchema as g}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as _}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as v}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import y from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as b}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as x}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import S from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as C}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as w}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import T from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as E}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as D}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import O from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as k}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as A}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import j from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as M}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as N}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import P from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as F}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as I}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import L from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as R}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as z,floatingBallInspectorPropsSchema as B}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as V}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as H}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as U}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{BasicFullscreen as W}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{schema as G}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import K from"./components/biz/basics/fullscreen-feed/index.mjs";import{defaultProps as q}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as J}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import Y from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as X}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as Z}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import Q from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as $}from"./components/biz/business/home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as ee}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as te}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as ne}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as re}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import ie from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{defaultProps as ae}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as oe}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import se from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as ce}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import le from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{schema as ue}from"./components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as de,homeRecommendGridInspectorPropsSchema as fe}from"./components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as pe}from"./components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as me}from"./components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs";import he from"./components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as ge}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as _e}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as ve,homeRecommendWaterfallInspectorPropsSchema as ye}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as be}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as xe}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs";import Se from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as Ce}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as we}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as Te}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ee}from"./components/biz/business/marquee/material.mjs";import{defaultProps as De}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Oe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import ke from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ae}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as je}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import Me from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ne}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Pe,profileHeaderInspectorPropsSchema as Fe}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as Ie,buildUserProfileHeaderPrefetch as Le}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as Re,profileHeaderMaterialWithDisabledBackground as ze}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Be,profileMainCollectTabOptions as Ve,profileMainHistoryTabOptions as He,profileMainLikeTabOptions as Ue,profileMainMineTabOptions as We,profileMainProfileTabOptions as Ge,profileMainTabOptions as Ke}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as qe}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as Je}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as Ye,profileMainInspectorPropsSchema as Xe}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as Ze}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Qe,buildCollectTabPrefetch as $e}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as et}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as tt,buildHistoryTabPrefetch as nt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as rt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as it,buildLikeTabPrefetch as at}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as ot}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as st,buildPublishTabPrefetch as ct}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as lt}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as ut}from"./components/biz/business/profile/profile-main/material.mjs";import{defaultProps as dt}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ft}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import pt 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 ht}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import gt from"./components/biz/basics/search/variants/basic-search/index.mjs";import{schema as _t}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import vt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as yt}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{defaultProps as bt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as xt}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import St from"./components/biz/basics/search/variants/filter-search/index.mjs";import{schema as Ct}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import wt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Tt}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{defaultProps as Et}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Dt}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import Ot from"./components/biz/basics/search/variants/tag-search/index.mjs";import{schema as kt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import At from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as jt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Mt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Nt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Pt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ft}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as It}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Lt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Rt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as zt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Bt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Vt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Ht}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Ut}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Wt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Gt}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Kt}from"./components/biz/business/text-recommend/material.mjs";import{VideoHorizontalListClient as qt}from"./components/biz/business/video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as Jt}from"./components/biz/business/video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as Yt}from"./components/biz/business/video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as Xt}from"./components/biz/business/video-horizontal-list/material.mjs";import{ComponentType as Zt,extractDataByComponentType as Qt}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as $t}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as en}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as tn}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as nn}from"./components/biz/basics/card-layout/schema/index.mjs";import{ButtonClient as rn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as an,buttonInspectorPropsSchema as on}from"./components/biz/example/button/schema.mjs";import{Button as sn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as cn}from"./components/biz/example/button/material.mjs";import{Renderer as ln}from"./components/biz/renderer/renderer.mjs";export{y as BasicBanner,p as BasicBannerDefaultData,_ as BasicBannerMaterialComponent,m as BasicBannerSchema,L as BasicFeatureGrid,F as BasicFeatureGridDefaultData,I as BasicFeatureGridSchema,W as BasicFullscreen,K as BasicFullscreenFeed,U as BasicFullscreenFeedDefaultData,G as BasicFullscreenFeedSchema,ie as BasicLogo,ee as BasicLogoDefaultData,re as BasicLogoSchema,ke as BasicNavBar,De as BasicNavBarDefaultData,Oe as BasicNavBarSchema,Me as BasicPostCard,Ae as BasicPostCardDefaultData,je as BasicPostCardSchema,pt as BasicRecommendedUsers,dt as BasicRecommendedUsersDefaultData,ft as BasicRecommendedUsersSchema,gt as BasicSearch,vt as BasicSearchBar,mt as BasicSearchBarDefaultData,_t as BasicSearchBarSchema,te as BasicSearchDefaultData,ht as BasicSearchSchema,sn as Button,rn as ButtonClient,e as CARD_SPEC_MAP,S as CardGrid2x3,b as CardGrid2x3DefaultData,T as CardGrid2x3Infinite,C as CardGrid2x3InfiniteDefaultData,w as CardGrid2x3InfiniteSchema,x as CardGrid2x3Schema,O as CardGrid2x4,E as CardGrid2x4DefaultData,D as CardGrid2x4Schema,j as CardGrid3x3,k as CardGrid3x3DefaultData,P as CardGrid3x3Infinite,M as CardGrid3x3InfiniteDefaultData,N as CardGrid3x3InfiniteSchema,A as CardGrid3x3Schema,$t as CardItemDefaultData,en as CardItemSchema,tn as CardLayoutDefaultData,nn as CardLayoutSchema,t as CardSpec,Ze as CollectTab,Qe as CollectTabServer,Zt as ComponentType,a as DataBindingUIMode,o as DataSourceType,le as DetailSearchBar,ne as DetailSearchBarDefaultData,ce as DetailSearchBarSchema,St as FilterSearch,wt as FilterSearchBar,bt as FilterSearchBarDefaultData,Ct as FilterSearchBarSchema,yt as FilterSearchDefaultData,xt as FilterSearchSchema,V as FloatingBall,R as FloatingBallClient,Y as FullscreenFeedClient,q as FullscreenPostFeedDefaultData,J as FullscreenPostFeedSchema,Q as FullscreenVideoClient,X as FullscreenVideoFeedDefaultData,Z as FullscreenVideoFeedSchema,et as HistoryTab,tt as HistoryTabServer,he as HomeRecommendGrid,$ as HomeRecommendGridDefaultData,pe as HomeRecommendGridMaterialComponent,ue as HomeRecommendGridSchema,Se as HomeRecommendWaterfall,ge as HomeRecommendWaterfallDefaultData,be as HomeRecommendWaterfallMaterialComponent,_e as HomeRecommendWaterfallSchema,rt as LikeTab,it as LikeTabServer,Ce as MarqueeClient,Te as MarqueeServer,ot as PublishTab,st as PublishTabServer,ln as Renderer,jt as SearchHistoryClient,Nt as SearchHistoryServer,Ft as SearchInputClient,Lt as SearchInputServer,se as SimpleSearch,ae as SimpleSearchDefaultData,oe as SimpleSearchSchema,zt as TabBarClient,Vt as TabBarServer,Ot as TagSearch,At as TagSearchBar,Et as TagSearchBarDefaultData,kt as TagSearchBarSchema,Tt as TagSearchDefaultData,Dt as TagSearchSchema,Ut as TextRecommendClient,Gt as TextRecommendServer,Ie as UserProfileHeader,Ne as UserProfileHeaderClient,lt as UserProfileMain,Je as UserProfileMainClient,qe as UserProfileMainShell,qt as VideoHorizontalListClient,Yt as VideoHorizontalListServer,h as basicBannerInspectorDefaultProps,g as basicBannerInspectorPropsSchema,v as basicBannerMaterial,$e as buildCollectTabPrefetch,i as buildContentUrl,nt as buildHistoryTabPrefetch,at as buildLikeTabPrefetch,ct as buildPublishTabPrefetch,Le as buildUserProfileHeaderPrefetch,an as buttonInspectorDefaultProps,on as buttonInspectorPropsSchema,u as commonStyleSchema,s as commonStylesToInline,c as customStylesToInline,cn as exampleButtonMaterial,Qt as extractDataByComponentType,z as floatingBallInspectorDefaultProps,B as floatingBallInspectorPropsSchema,H as floatingBallMaterial,n as getCardSpecConfig,r as getChannelList,de as homeRecommendGridInspectorDefaultProps,fe as homeRecommendGridInspectorPropsSchema,me as homeRecommendGridMaterial,ve as homeRecommendWaterfallInspectorDefaultProps,ye as homeRecommendWaterfallInspectorPropsSchema,xe as homeRecommendWaterfallMaterial,we as marqueeInspectorPropsSchema,Ee as marqueeMaterial,l as mergeStyles,Pe as profileHeaderInspectorDefaultProps,Fe as profileHeaderInspectorPropsSchema,Re as profileHeaderMaterial,ze as profileHeaderMaterialWithDisabledBackground,Be as profileMainCollectCollectionTabOptions,Ve as profileMainCollectTabOptions,He as profileMainHistoryTabOptions,Ye as profileMainInspectorDefaultProps,Xe as profileMainInspectorPropsSchema,Ue as profileMainLikeTabOptions,ut as profileMainMaterial,We as profileMainMineTabOptions,Ge as profileMainProfileTabOptions,Ke as profileMainTabOptions,Mt as searchHistoryInspectorPropsSchema,Pt as searchHistoryMaterial,It as searchInputInspectorPropsSchema,Rt as searchInputMaterial,Bt as tabBarInspectorPropsSchema,Ht as tabBarMaterial,Wt as textRecommendInspectorPropsSchema,Kt as textRecommendMaterial,d as transformContentListToCardItems,f as transformContentToCardItem,Jt as videoHorizontalListInspectorPropsSchema,Xt as videoHorizontalListMaterial};
|
|
2
|
+
import{CARD_SPEC_MAP as e,CardSpec as t,getCardSpecConfig as n}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as r}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as i}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as a,DataSourceType as o}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as s,customStylesToInline as c,mergeStyles as l}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as u}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as d,transformContentToCardItem as f}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as p}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as h,basicBannerInspectorPropsSchema as g}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as _}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as v}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import y from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as b}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as x}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import S from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as C}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as w}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import T from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as E}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as D}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import O from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as k}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as A}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import j from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as M}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as N}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import P from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as F}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as I}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import L from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as R}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as z,floatingBallInspectorPropsSchema as B}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as V}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as H}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as U}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{BasicFullscreen as W}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{schema as G}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import K from"./components/biz/basics/fullscreen-feed/index.mjs";import{defaultProps as q}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as J}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import Y from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as X}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as Z}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import Q from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as $}from"./components/biz/business/home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as ee}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as te}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as ne}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as re}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import ie from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{defaultProps as ae}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as oe}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import se from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as ce}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import le from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{schema as ue}from"./components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as de,homeRecommendGridInspectorPropsSchema as fe}from"./components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as pe}from"./components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as me}from"./components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs";import he from"./components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as ge}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as _e}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as ve,homeRecommendWaterfallInspectorPropsSchema as ye}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as be}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as xe}from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs";import Se from"./components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as Ce}from"./components/biz/business/marquee/client.mjs";import{marqueeInspectorPropsSchema as we}from"./components/biz/business/marquee/schema.mjs";import{MarqueeServer as Te}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ee}from"./components/biz/business/marquee/material.mjs";import{defaultProps as De}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Oe}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import ke from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Ae}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as je}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import Me from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Ne}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Pe,profileHeaderInspectorPropsSchema as Fe}from"./components/biz/business/profile/profile-header/schema.mjs";import{UserProfileHeader as Ie,buildUserProfileHeaderPrefetch as Le}from"./components/biz/business/profile/profile-header/server.mjs";import{profileHeaderMaterial as Re,profileHeaderMaterialWithDisabledBackground as ze}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as Be,profileMainCollectTabOptions as Ve,profileMainHistoryTabOptions as He,profileMainLikeTabOptions as Ue,profileMainMineTabOptions as We,profileMainProfileTabOptions as Ge,profileMainTabOptions as Ke}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as qe}from"./components/biz/business/profile/profile-main/shell.mjs";import{UserProfileMainClient as Je}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as Ye,profileMainInspectorPropsSchema as Xe}from"./components/biz/business/profile/profile-main/schema.mjs";import{CollectTab as Ze}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Qe,buildCollectTabPrefetch as $e}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as et}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as tt,buildHistoryTabPrefetch as nt}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as rt}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as it,buildLikeTabPrefetch as at}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as ot}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as st}from"./components/biz/business/profile/profile-main/material.mjs";import{PublishTab as ct}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as lt,buildPublishTabPrefetch as ut}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import{defaultProps as dt}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ft}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import pt 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 ht}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import gt from"./components/biz/basics/search/variants/basic-search/index.mjs";import{schema as _t}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import vt from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as yt}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{defaultProps as bt}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as xt}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import St from"./components/biz/basics/search/variants/filter-search/index.mjs";import{schema as Ct}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import wt from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as Tt}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{defaultProps as Et}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as Dt}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import Ot from"./components/biz/basics/search/variants/tag-search/index.mjs";import{schema as kt}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import At from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as jt}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Mt}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Nt}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Pt}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as Ft}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorPropsSchema as It}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as Lt}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Rt}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as zt}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorPropsSchema as Bt}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Vt}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Ht}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Ut}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as Wt}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Gt}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Kt}from"./components/biz/business/text-recommend/material.mjs";import{VideoHorizontalListClient as qt}from"./components/biz/business/video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as Jt}from"./components/biz/business/video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as Yt}from"./components/biz/business/video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as Xt}from"./components/biz/business/video-horizontal-list/material.mjs";import{ComponentType as Zt,extractDataByComponentType as Qt}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as $t}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as en}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as tn}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as nn}from"./components/biz/basics/card-layout/schema/index.mjs";import{ButtonClient as rn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as an,buttonInspectorPropsSchema as on}from"./components/biz/example/button/schema.mjs";import{Button as sn}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as cn}from"./components/biz/example/button/material.mjs";import{Renderer as ln}from"./components/biz/renderer/renderer.mjs";export{y as BasicBanner,p as BasicBannerDefaultData,_ as BasicBannerMaterialComponent,m as BasicBannerSchema,L as BasicFeatureGrid,F as BasicFeatureGridDefaultData,I as BasicFeatureGridSchema,W as BasicFullscreen,K as BasicFullscreenFeed,U as BasicFullscreenFeedDefaultData,G as BasicFullscreenFeedSchema,ie as BasicLogo,ee as BasicLogoDefaultData,re as BasicLogoSchema,ke as BasicNavBar,De as BasicNavBarDefaultData,Oe as BasicNavBarSchema,Me as BasicPostCard,Ae as BasicPostCardDefaultData,je as BasicPostCardSchema,pt as BasicRecommendedUsers,dt as BasicRecommendedUsersDefaultData,ft as BasicRecommendedUsersSchema,gt as BasicSearch,vt as BasicSearchBar,mt as BasicSearchBarDefaultData,_t as BasicSearchBarSchema,te as BasicSearchDefaultData,ht as BasicSearchSchema,sn as Button,rn as ButtonClient,e as CARD_SPEC_MAP,S as CardGrid2x3,b as CardGrid2x3DefaultData,T as CardGrid2x3Infinite,C as CardGrid2x3InfiniteDefaultData,w as CardGrid2x3InfiniteSchema,x as CardGrid2x3Schema,O as CardGrid2x4,E as CardGrid2x4DefaultData,D as CardGrid2x4Schema,j as CardGrid3x3,k as CardGrid3x3DefaultData,P as CardGrid3x3Infinite,M as CardGrid3x3InfiniteDefaultData,N as CardGrid3x3InfiniteSchema,A as CardGrid3x3Schema,$t as CardItemDefaultData,en as CardItemSchema,tn as CardLayoutDefaultData,nn as CardLayoutSchema,t as CardSpec,Ze as CollectTab,Qe as CollectTabServer,Zt as ComponentType,a as DataBindingUIMode,o as DataSourceType,le as DetailSearchBar,ne as DetailSearchBarDefaultData,ce as DetailSearchBarSchema,St as FilterSearch,wt as FilterSearchBar,bt as FilterSearchBarDefaultData,Ct as FilterSearchBarSchema,yt as FilterSearchDefaultData,xt as FilterSearchSchema,V as FloatingBall,R as FloatingBallClient,Y as FullscreenFeedClient,q as FullscreenPostFeedDefaultData,J as FullscreenPostFeedSchema,Q as FullscreenVideoClient,X as FullscreenVideoFeedDefaultData,Z as FullscreenVideoFeedSchema,et as HistoryTab,tt as HistoryTabServer,he as HomeRecommendGrid,$ as HomeRecommendGridDefaultData,pe as HomeRecommendGridMaterialComponent,ue as HomeRecommendGridSchema,Se as HomeRecommendWaterfall,ge as HomeRecommendWaterfallDefaultData,be as HomeRecommendWaterfallMaterialComponent,_e as HomeRecommendWaterfallSchema,rt as LikeTab,it as LikeTabServer,Ce as MarqueeClient,Te as MarqueeServer,ct as PublishTab,lt as PublishTabServer,ln as Renderer,jt as SearchHistoryClient,Nt as SearchHistoryServer,Ft as SearchInputClient,Lt as SearchInputServer,se as SimpleSearch,ae as SimpleSearchDefaultData,oe as SimpleSearchSchema,zt as TabBarClient,Vt as TabBarServer,Ot as TagSearch,At as TagSearchBar,Et as TagSearchBarDefaultData,kt as TagSearchBarSchema,Tt as TagSearchDefaultData,Dt as TagSearchSchema,Ut as TextRecommendClient,Gt as TextRecommendServer,Ie as UserProfileHeader,Ne as UserProfileHeaderClient,ot as UserProfileMain,Je as UserProfileMainClient,qe as UserProfileMainShell,qt as VideoHorizontalListClient,Yt as VideoHorizontalListServer,h as basicBannerInspectorDefaultProps,g as basicBannerInspectorPropsSchema,v as basicBannerMaterial,$e as buildCollectTabPrefetch,i as buildContentUrl,nt as buildHistoryTabPrefetch,at as buildLikeTabPrefetch,ut as buildPublishTabPrefetch,Le as buildUserProfileHeaderPrefetch,an as buttonInspectorDefaultProps,on as buttonInspectorPropsSchema,u as commonStyleSchema,s as commonStylesToInline,c as customStylesToInline,cn as exampleButtonMaterial,Qt as extractDataByComponentType,z as floatingBallInspectorDefaultProps,B as floatingBallInspectorPropsSchema,H as floatingBallMaterial,n as getCardSpecConfig,r as getChannelList,de as homeRecommendGridInspectorDefaultProps,fe as homeRecommendGridInspectorPropsSchema,me as homeRecommendGridMaterial,ve as homeRecommendWaterfallInspectorDefaultProps,ye as homeRecommendWaterfallInspectorPropsSchema,xe as homeRecommendWaterfallMaterial,we as marqueeInspectorPropsSchema,Ee as marqueeMaterial,l as mergeStyles,Pe as profileHeaderInspectorDefaultProps,Fe as profileHeaderInspectorPropsSchema,Re as profileHeaderMaterial,ze as profileHeaderMaterialWithDisabledBackground,Be as profileMainCollectCollectionTabOptions,Ve as profileMainCollectTabOptions,He as profileMainHistoryTabOptions,Ye as profileMainInspectorDefaultProps,Xe as profileMainInspectorPropsSchema,Ue as profileMainLikeTabOptions,st as profileMainMaterial,We as profileMainMineTabOptions,Ge as profileMainProfileTabOptions,Ke as profileMainTabOptions,Mt as searchHistoryInspectorPropsSchema,Pt as searchHistoryMaterial,It as searchInputInspectorPropsSchema,Rt as searchInputMaterial,Bt as tabBarInspectorPropsSchema,Ht as tabBarMaterial,Wt as textRecommendInspectorPropsSchema,Kt as textRecommendMaterial,d as transformContentListToCardItems,f as transformContentToCardItem,Jt as videoHorizontalListInspectorPropsSchema,Xt as videoHorizontalListMaterial};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
`&&(n++,n>t))break;r+=i}return r}function pe(e,t){if(!t)return;let n=window.getSelection(),r=null;n&&n.rangeCount>0&&(r=n.getRangeAt(0)),(!r||!e.contains(r.commonAncestorContainer))&&(e.focus(),r=document.createRange(),r.selectNodeContents(e),r.collapse(!1)),r.deleteContents();let i=document.createDocumentFragment(),a=t.split(`
|
|
4
4
|
`);a.forEach((e,t)=>{e&&i.appendChild(document.createTextNode(e)),t<a.length-1&&i.appendChild(document.createElement(`br`))});let o=i.lastChild;if(r.insertNode(i),n&&o){let e=document.createRange();e.setStartAfter(o),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}}const me=d(({imageVideoInfoList:t,onDelete:n,variant:r=`dark`})=>{if(t.length===0)return null;let i=r===`light`;return _(`div`,{className:e(`w-full overflow-hidden`,i?`px-4`:`h-[76px] px-[16px]`),children:_(`div`,{className:e(i?`flex items-center gap-3 overflow-x-auto py-3`:`w-full h-[calc(100%+60px)] pb-[60px] overflow-x-auto flex items-center flex-nowrap`),children:t.map((t,r)=>{let a=t.is_video?t.cover_image||t.image_url:t.image_url||t.cover_image;return v(`div`,{className:e(`w-[60px] h-[60px] rounded-[8px] overflow-hidden shrink-0 flex items-center justify-center bg-bg2 relative`,!i&&r>0&&`ml-[12px]`),onClick:e=>{e.target.closest(`[data-delete-button]`)&&e.stopPropagation()},children:[a&&_(c,{src:a,alt:`media`,fill:!0,objectFit:`cover`}),_(`button`,{type:`button`,className:`cursor-pointer absolute top-0 right-0 p-[4px] z-[1]`,"data-delete-button":`true`,onClick:()=>n(r),children:_(l,{className:`w-[12px] h-[12px] text-[#fff] drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]`})}),t.is_video&&_(`div`,{className:`absolute w-[24px] h-[24px] rounded-[12px] bg-[rgba(0,0,0,0.5)] top-0 right-0 bottom-0 left-0 m-auto flex items-center justify-center`,children:_(u,{className:`w-[12px] h-[12px] text-[#fff]`})})]},`${t.is_video?`video`:`image`}-${r}`)})})})});me.displayName=`CommentUploadGroup`;function b({disabled:t,onClick:n,children:r,variant:i=`dark`}){return _(`button`,{type:`button`,className:e(`flex h-12 flex-1 items-center justify-center`,i===`light`?`text-text2 hover:bg-bg2/60`:`text-white hover:bg-white/10`,t&&`opacity-40`),disabled:t,onClick:n,children:r})}function x({ref:c,value:l=``,onChange:u,onPublish:d,onInputBlur:x,placeholder:he=``,className:ge=``,maxLength:S=200,publishText:_e=``,autoFocus:ve,disabled:C,onRequireLogin:w,variant:ye=`dark`}){let T=ue(`components.biz.business.comment`),E=ye===`light`,be=_e||T(`commentInput.publishDefault`),xe=m(()=>{let e=he||T(`commentInput.placeholder`);return e.length>15?`${e.slice(0,15)}...`:e},[he,T]),[D,O]=g(l),[k,A]=g(!1),[j,M]=g(!1),Se=h(null),N=h(null),P=h(!1),F=h(0),Ce=h(0),[I,L]=g([]),[R,z]=g(!1),[B,V]=g(null),[H,we]=g(!1),U=C||H,{isLogin:W}=r(),{open:G}=ne(),{containerStyle:Te,onFocus:K,onBlur:Ee,inputRef:De}=ce(j),q=f(()=>{w?w():G()},[w,G]);p(()=>{N.current&&l&&(N.current.innerHTML=l)},[l]),p(()=>{typeof window>`u`||window.dispatchEvent(new CustomEvent(`funhub:visible-contact-change`,{detail:{visible:R}}))},[R]),p(()=>{if(!(!ve||!N.current)){if(!W){q();return}N.current.focus(),A(!0)}},[ve,q,W]),p(()=>{let e=e=>{let t=e.target,n=t.closest(`[data-delete-button]`),r=t.tagName===`INPUT`||t.tagName===`TEXTAREA`;n||r||Se.current?.contains(t)||Date.now()-F.current>100&&A(!1)};return document.addEventListener(`click`,e),()=>document.removeEventListener(`click`,e)},[]),le(c,()=>({focus:()=>{let e=N.current;if(!(!e||P.current)){P.current=!0;try{if(!W){q();return}if(document.activeElement===e&&k)return;e.focus(),F.current=Date.now(),A(!0),j||M(!0),K()}catch(e){console.warn(`CommentInput focus error`,e),A(!0)}finally{P.current=!1}}}}),[j,q,W,K,k]);let Oe=()=>{F.current=Date.now()},J=f(()=>{if(!N.current)return;let e=document.createRange(),t=window.getSelection();e.selectNodeContents(N.current),e.collapse(!1),t?.removeAllRanges(),t?.addRange(e)},[]),Y=f(e=>{N.current&&(N.current.innerHTML=e)},[]),X=f(e=>{let t=e.querySelectorAll(`img,video,audio,iframe,object,embed,svg,canvas`);if(t.length===0)return!1;t.forEach(e=>e.remove());let n=Date.now();return n-Ce.current>1500&&(Ce.current=n,y.info(T(`commentInput.pasteFileNotSupported`))),!0},[T]),ke=f(e=>{let t=N.current;if(!t)return;if(U){e.preventDefault();return}if(!W){e.preventDefault(),q(),t.blur();return}let r=e.clipboardData;if(r&&Array.from(r.items||[]).some(e=>e.kind===`file`)){e.preventDefault(),e.stopPropagation(),y.info(T(`commentInput.pasteFileNotSupported`));return}let i=de(e);if(!i){e.preventDefault();return}e.preventDefault(),e.stopPropagation();let a=i.replace(/\r\n/g,`
|
|
5
5
|
`).replace(/\r/g,`
|
|
6
|
-
`),o=n(t.innerHTML||``).length,s=S?Math.max(0,S-o):1/0;if(s<=0)return;pe(t,Number.isFinite(s)?fe(a,s):a),X(t);let c=t.innerHTML||``;O(c),u?.(c)},[q,U,W,S,u,X,T]),Ae=f(e=>{let t=e.currentTarget.innerHTML||``;X(e.currentTarget)&&(t=e.currentTarget.innerHTML||``);let r=n(t);S&&r.length>S&&(t=t.substring(0,S),Y(t),J()),O(t),u?.(t)},[S,J,u,Y,X]),je=f(e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer?.files;t&&t.length>0&&y.info(T(`commentInput.dragFileNotSupported`))},[T]),Me=f(e=>{e.preventDefault()},[]),Ne=()=>{if(!U){if(!W){q(),N.current?.blur();return}F.current=Date.now(),A(!0),j||M(!0),K()}},Pe=()=>{if(U){H&&y.info(T(`commentInput.publishing`));return}if(!W){q(),N.current?.blur();return}F.current=Date.now(),k||A(!0),j||M(!0),K()},Fe=()=>{setTimeout(()=>{Date.now()-F.current>200&&document.activeElement!==N.current&&(A(!1),x?.())},150),Ee()},Ie=f(()=>{O(``),Y(``),L([]),A(!1)},[Y]),Le=m(()=>n(D).trim().length===0,[D]),Z=m(()=>!Le||I.length>0,[I.length,Le]),Re=f(async()=>{if(!W){q();return}if(I.some(e=>e.is_video))return;let e=await i(`file`,`image/*`);if(!e||e.length===0)return;let t=9-I.length,n=Array.from(e).slice(0,t);if(n.length===0)return;let r=[],a=0,c=n.length;try{for(let e=0;e<n.length;e++){let t=n[e];V({currentFiles:r.length,totalFiles:c,currentTasks:r.length+a,totalTasks:c});try{let{width:e,height:n}=await o(t),i=await s(t,1,!0);r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:i.objectKey,image_thumbnail:i.objectKey,image_radio:Number((e/n).toFixed(2)),image_resolution:`${e}x${n}`,is_video:!1,resolution:`${e}x${n}`,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}catch(e){console.error(`上传图片失败`,e),a+=1}}r.length===0?y.error(T(`commentInput.imageUploadFailed`)):(a>0&&y.warning(T(`commentInput.partialImageUploadFailed`)),L(e=>[...e,...r]))}finally{V(null)}},[q,I,W,T]),ze=f(async()=>{if(!W){q();return}if(I.length>0){y.error(T(`commentInput.cannotSelectVideoWhenImageSelected`));return}let e=await i(`file`,`video/*`);if(!e||e.length===0)return;let t=e[0];try{V({currentFiles:0,totalFiles:1,currentTasks:0,totalTasks:2});let e=await s(t,2,!1),[n,r,i,o]=await a(t);V({currentFiles:0,totalFiles:1,currentTasks:1,totalTasks:2});let c=await s(n,1,!0);L([{cover_image:c.objectKey,cover_image_thumbnail:c.objectKey,cover_image_radio:Number((r/i).toFixed(2)),cover_image_resolution:`${r}x${i}`,image_url:c.objectKey,image_thumbnail:c.objectKey,image_radio:Number((r/i).toFixed(2)),image_resolution:`${r}x${i}`,is_video:!0,resolution:`${r}x${i}`,video_duration:o,video_url:e.objectKey,video_size:t.size,video_codec_info:{hls_info:[],video_codec_deal:!1}}])}catch(e){console.error(`视频上传失败`,e),y.error(T(`commentInput.videoUploadFailed`))}finally{V(null)}},[q,I.length,W,T]),Be=f(async e=>{if(e.preventDefault(),e.stopPropagation(),!(!Z||C||H)){if(!W){w?w():G();return}try{we(!0);let e=await d?.({text:D===`<br>`?``:D,imageVideoInfoList:I});if(e&&e.success===!1){e.toastHandled||y.error(e.message
|
|
6
|
+
`),o=n(t.innerHTML||``).length,s=S?Math.max(0,S-o):1/0;if(s<=0)return;pe(t,Number.isFinite(s)?fe(a,s):a),X(t);let c=t.innerHTML||``;O(c),u?.(c)},[q,U,W,S,u,X,T]),Ae=f(e=>{let t=e.currentTarget.innerHTML||``;X(e.currentTarget)&&(t=e.currentTarget.innerHTML||``);let r=n(t);S&&r.length>S&&(t=t.substring(0,S),Y(t),J()),O(t),u?.(t)},[S,J,u,Y,X]),je=f(e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer?.files;t&&t.length>0&&y.info(T(`commentInput.dragFileNotSupported`))},[T]),Me=f(e=>{e.preventDefault()},[]),Ne=()=>{if(!U){if(!W){q(),N.current?.blur();return}F.current=Date.now(),A(!0),j||M(!0),K()}},Pe=()=>{if(U){H&&y.info(T(`commentInput.publishing`));return}if(!W){q(),N.current?.blur();return}F.current=Date.now(),k||A(!0),j||M(!0),K()},Fe=()=>{setTimeout(()=>{Date.now()-F.current>200&&document.activeElement!==N.current&&(A(!1),x?.())},150),Ee()},Ie=f(()=>{O(``),Y(``),L([]),A(!1)},[Y]),Le=m(()=>n(D).trim().length===0,[D]),Z=m(()=>!Le||I.length>0,[I.length,Le]),Re=f(async()=>{if(!W){q();return}if(I.some(e=>e.is_video))return;let e=await i(`file`,`image/*`);if(!e||e.length===0)return;let t=9-I.length,n=Array.from(e).slice(0,t);if(n.length===0)return;let r=[],a=0,c=n.length;try{for(let e=0;e<n.length;e++){let t=n[e];V({currentFiles:r.length,totalFiles:c,currentTasks:r.length+a,totalTasks:c});try{let{width:e,height:n}=await o(t),i=await s(t,1,!0);r.push({cover_image:``,cover_image_thumbnail:``,cover_image_radio:1,cover_image_resolution:``,image_url:i.objectKey,image_thumbnail:i.objectKey,image_radio:Number((e/n).toFixed(2)),image_resolution:`${e}x${n}`,is_video:!1,resolution:`${e}x${n}`,video_duration:0,video_url:``,video_size:0,video_codec_info:{hls_info:[],video_codec_deal:!1}})}catch(e){console.error(`上传图片失败`,e),a+=1}}r.length===0?y.error(T(`commentInput.imageUploadFailed`)):(a>0&&y.warning(T(`commentInput.partialImageUploadFailed`)),L(e=>[...e,...r]))}finally{V(null)}},[q,I,W,T]),ze=f(async()=>{if(!W){q();return}if(I.length>0){y.error(T(`commentInput.cannotSelectVideoWhenImageSelected`));return}let e=await i(`file`,`video/*`);if(!e||e.length===0)return;let t=e[0];try{V({currentFiles:0,totalFiles:1,currentTasks:0,totalTasks:2});let e=await s(t,2,!1),[n,r,i,o]=await a(t);V({currentFiles:0,totalFiles:1,currentTasks:1,totalTasks:2});let c=await s(n,1,!0);L([{cover_image:c.objectKey,cover_image_thumbnail:c.objectKey,cover_image_radio:Number((r/i).toFixed(2)),cover_image_resolution:`${r}x${i}`,image_url:c.objectKey,image_thumbnail:c.objectKey,image_radio:Number((r/i).toFixed(2)),image_resolution:`${r}x${i}`,is_video:!0,resolution:`${r}x${i}`,video_duration:o,video_url:e.objectKey,video_size:t.size,video_codec_info:{hls_info:[],video_codec_deal:!1}}])}catch(e){console.error(`视频上传失败`,e),y.error(T(`commentInput.videoUploadFailed`))}finally{V(null)}},[q,I.length,W,T]),Be=f(async e=>{if(e.preventDefault(),e.stopPropagation(),!(!Z||C||H)){if(!W){w?w():G();return}try{we(!0);let e=await d?.({text:D===`<br>`?``:D,imageVideoInfoList:I});if(e&&e.success===!1){e.toastHandled||y.error(e.message||`发布评论失败`);return}y.success(T(`commentInput.publishSuccess`)),Ie(),u?.(``)}catch(e){console.error(`发布评论失败:`,e),y.error(T(`commentInput.publishCommentFailed`))}finally{we(!1)}}},[Ie,C,I,D,W,Z,H,u,d,w,G,T]),Q=m(()=>!I.some(e=>e.is_video)&&I.length<9,[I]),$=m(()=>I.length===0,[I.length]),Ve=f(e=>{z(!1);let r=`${n(D).trim().length===0?``:D}${t(e)} `;O(r),Y(r),setTimeout(()=>{J()},16)},[D,J,Y]);function He(e){z(e)}function Ue(){z(!1)}let We=_(`button`,{type:`button`,className:e(`shrink-0 whitespace-nowrap rounded-full px-4 py-2 text-sm font-medium`,Z&&!H?`bg-theme5 text-white`:`bg-bg2 text-text3`),onClick:Be,disabled:!Z||U,children:H?T(`commentInput.publishing`):be}),Ge=_(`button`,{type:`button`,className:e(`ml-[14px] shrink-0 whitespace-nowrap px-[14px] py-[10px] text-[16px] leading-[16px]`,Z&&!H?`text-theme5`:`text-text3`),onClick:Be,disabled:!Z||U,children:H?T(`commentInput.publishing`):be}),Ke=H?_(`span`,{className:e(`ml-[14px] text-[16px] leading-[16px] text-text3`),children:T(`commentInput.publishing`)}):null,qe=E?Te:{...Te,boxShadow:k?`0px -4px 10px 0px rgba(0,0,0,0.1)`:`none`},Je=E?`comment-input-container g-safe-area rounded-2xl border border-line1/20 bg-white text-text1 shadow-sm`:`comment-input-container bg-bg1 g-safe-area text-text1`,Ye=k?E?v(`div`,{className:`flex border-t border-line1/20`,children:[_(b,{disabled:!Q,onClick:()=>{U||Q&&setTimeout(()=>{Re()},400)},variant:`light`,children:T(`commentInput.image`)}),_(b,{disabled:!$,onClick:()=>{U||$&&setTimeout(()=>{ze()},400)},variant:`light`,children:T(`commentInput.video`)}),_(b,{disabled:U,onClick:()=>{U||z(!0)},variant:`light`,children:`@`})]}):v(`div`,{className:`flex h-[50px] items-center justify-around border-t border-line1 px-[8px]`,children:[_(`button`,{type:`button`,className:e(`flex h-full items-center justify-center px-[12px]`,(!Q||U)&&`opacity-50`),onClick:()=>{U||Q&&setTimeout(()=>{Re()},400)},children:_(ie,{className:`h-[22px] w-[22px]`})}),_(`button`,{type:`button`,className:e(`flex h-full items-center justify-center px-[12px]`,(!$||U)&&`opacity-50`),onClick:()=>{U||$&&setTimeout(()=>{ze()},400)},children:_(ae,{className:`h-[22px] w-[22px]`})}),_(`button`,{type:`button`,className:e(`flex h-full items-center justify-center px-[12px]`,U&&`opacity-50`),onClick:()=>{U||z(!0)},children:_(re,{className:`h-[22px] w-[22px]`})})]}):null,Xe=E?``:`mx-auto w-full max-w-[840px]`;return v(`div`,{style:qe,className:e(Je,ge),onMouseDown:Oe,onTouchStart:Oe,onClick:Oe,ref:Se,children:[B&&_(oe,{currentFiles:B.currentFiles,totalFiles:B.totalFiles,currentTasks:B.currentTasks,totalTasks:B.totalTasks}),v(`div`,{className:Xe,children:[k&&_(me,{imageVideoInfoList:I,onDelete:e=>L(t=>t.filter((t,n)=>n!==e)),variant:ye}),v(`div`,{className:e(`px-4 py-3`,E?`flex items-center gap-3`:`flex items-center justify-between`),children:[v(`div`,{className:e(`relative min-w-0 flex-1 rounded-[20px] bg-bg2`,E?`rounded-2xl`:``),children:[!W&&_(`div`,{className:`absolute inset-0 z-[1] cursor-text`,onClick:q}),Le&&_(`span`,{className:e(`pointer-events-none absolute left-3 top-[10px] text-sm text-text3`),children:xe}),_(`div`,{ref:e=>{N.current=e,De(e)},contentEditable:!U,suppressContentEditableWarning:!0,className:e(`max-h-24 min-h-[40px] w-full cursor-text overflow-y-auto px-3 py-[10px] text-sm leading-5 outline-none break-all whitespace-pre-wrap text-text1`,U&&`cursor-not-allowed opacity-60`),"data-placeholder":xe,onInput:Ae,onFocus:Ne,onClick:Pe,onBlur:Fe,onPaste:ke,onDrop:je,onDragOver:Me})]}),k?E?We:Ge:Ke]}),Ye]}),_(ee,{open:R,onOpenChange:He,children:_(te,{showCloseButton:!1,initialFocus:!1,className:`fixed left-0 right-0 bottom-0 top-[84px] z-[1000] w-full max-w-none translate-x-0 translate-y-0 rounded-none bg-bg2 p-0`,children:_(se,{onSelect:Ve,onClose:Ue})})})]})}x.displayName=`CommentInput`;export{x as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorPropsSchema as ie}from"./marquee/schema.mjs";import{MarqueeServer as ae}from"./marquee/server.mjs";import{marqueeMaterial as oe}from"./marquee/material.mjs";import{defaultProps as se}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as ce}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import le from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as ue}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as de}from"./post-card/variants/basic-post-card/schema/index.mjs";import fe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as pe}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as me,profileHeaderInspectorPropsSchema as he}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as ge,buildUserProfileHeaderPrefetch as _e}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ve,profileHeaderMaterialWithDisabledBackground as ye}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as be,profileMainCollectTabOptions as xe,profileMainHistoryTabOptions as Se,profileMainLikeTabOptions as Ce,profileMainMineTabOptions as we,profileMainProfileTabOptions as Te,profileMainTabOptions as Ee}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as De}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Oe}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ke,profileMainInspectorPropsSchema as Ae}from"./profile/profile-main/schema.mjs";import{CollectTab as je}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Me,buildCollectTabPrefetch as Ne}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Pe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Fe,buildHistoryTabPrefetch as Ie}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Le}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as Re,buildLikeTabPrefetch as ze}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Be}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ve,buildPublishTabPrefetch as He}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as Ue}from"./profile/profile-main/server.mjs";import{profileMainMaterial as We}from"./profile/profile-main/material.mjs";import{defaultProps as Ge}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Ke}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import qe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Je}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ye}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Xe from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ze}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Qe}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import $e from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as et}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as tt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import nt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as rt}from"./search-history/client.mjs";import{searchHistoryInspectorPropsSchema as it}from"./search-history/schema.mjs";import{SearchHistoryServer as at}from"./search-history/server.mjs";import{searchHistoryMaterial as ot}from"./search-history/material.mjs";import{SearchInputClient as st}from"./search-input/client.mjs";import{searchInputInspectorPropsSchema as ct}from"./search-input/schema.mjs";import{SearchInputServer as lt}from"./search-input/server.mjs";import{searchInputMaterial as ut}from"./search-input/material.mjs";import{TabBarClient as dt}from"./tab-bar/client.mjs";import{tabBarInspectorPropsSchema as ft}from"./tab-bar/schema.mjs";import{TabBarServer as pt}from"./tab-bar/server.mjs";import{tabBarMaterial as mt}from"./tab-bar/material.mjs";import{TextRecommendClient as ht}from"./text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as gt}from"./text-recommend/schema.mjs";import{TextRecommendServer as _t}from"./text-recommend/server.mjs";import{textRecommendMaterial as vt}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as yt}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as bt}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as xt}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as St}from"./video-horizontal-list/material.mjs";var Ct=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>le,BasicNavBarDefaultData:()=>se,BasicNavBarSchema:()=>ce,BasicPostCard:()=>fe,BasicPostCardDefaultData:()=>ue,BasicPostCardSchema:()=>de,BasicRecommendedUsers:()=>qe,BasicRecommendedUsersDefaultData:()=>Ge,BasicRecommendedUsersSchema:()=>Ke,BasicSearchBar:()=>Xe,BasicSearchBarDefaultData:()=>Je,BasicSearchBarSchema:()=>Ye,CardGrid2x3:()=>u,CardGrid2x3DefaultData:()=>c,CardGrid2x3Infinite:()=>p,CardGrid2x3InfiniteDefaultData:()=>d,CardGrid2x3InfiniteSchema:()=>f,CardGrid2x3Schema:()=>l,CardGrid2x4:()=>g,CardGrid2x4DefaultData:()=>m,CardGrid2x4Schema:()=>h,CardGrid3x3:()=>y,CardGrid3x3DefaultData:()=>_,CardGrid3x3Infinite:()=>S,CardGrid3x3InfiniteDefaultData:()=>b,CardGrid3x3InfiniteSchema:()=>x,CardGrid3x3Schema:()=>v,CollectTab:()=>je,CollectTabServer:()=>Me,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>$e,FilterSearchBarDefaultData:()=>Ze,FilterSearchBarSchema:()=>Qe,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Pe,HistoryTabServer:()=>Fe,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Le,LikeTabServer:()=>Re,MarqueeClient:()=>re,MarqueeServer:()=>ae,PublishTab:()=>Be,PublishTabServer:()=>Ve,SearchHistoryClient:()=>rt,SearchHistoryServer:()=>at,SearchInputClient:()=>st,SearchInputServer:()=>lt,TabBarClient:()=>dt,TabBarServer:()=>pt,TagSearchBar:()=>nt,TagSearchBarDefaultData:()=>et,TagSearchBarSchema:()=>tt,TextRecommendClient:()=>ht,TextRecommendServer:()=>_t,UserProfileHeader:()=>ge,UserProfileHeaderClient:()=>pe,UserProfileMain:()=>Ue,UserProfileMainClient:()=>Oe,UserProfileMainShell:()=>De,VideoHorizontalListClient:()=>yt,VideoHorizontalListServer:()=>xt,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Ne,buildHistoryTabPrefetch:()=>Ie,buildLikeTabPrefetch:()=>ze,buildPublishTabPrefetch:()=>He,buildUserProfileHeaderPrefetch:()=>_e,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorPropsSchema:()=>ie,marqueeMaterial:()=>oe,profileHeaderInspectorDefaultProps:()=>me,profileHeaderInspectorPropsSchema:()=>he,profileHeaderMaterial:()=>ve,profileHeaderMaterialWithDisabledBackground:()=>ye,profileMainCollectCollectionTabOptions:()=>be,profileMainCollectTabOptions:()=>xe,profileMainHistoryTabOptions:()=>Se,profileMainInspectorDefaultProps:()=>ke,profileMainInspectorPropsSchema:()=>Ae,profileMainLikeTabOptions:()=>Ce,profileMainMaterial:()=>We,profileMainMineTabOptions:()=>we,profileMainProfileTabOptions:()=>Te,profileMainTabOptions:()=>Ee,searchHistoryInspectorPropsSchema:()=>it,searchHistoryMaterial:()=>ot,searchInputInspectorPropsSchema:()=>ct,searchInputMaterial:()=>ut,tabBarInspectorPropsSchema:()=>ft,tabBarMaterial:()=>mt,textRecommendInspectorPropsSchema:()=>gt,textRecommendMaterial:()=>vt,videoHorizontalListInspectorPropsSchema:()=>bt,videoHorizontalListMaterial:()=>St});export{Ct as business_exports};
|
|
2
|
+
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorPropsSchema as ie}from"./marquee/schema.mjs";import{MarqueeServer as ae}from"./marquee/server.mjs";import{marqueeMaterial as oe}from"./marquee/material.mjs";import{defaultProps as se}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as ce}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import le from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as ue}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as de}from"./post-card/variants/basic-post-card/schema/index.mjs";import fe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as pe}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as me,profileHeaderInspectorPropsSchema as he}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as ge,buildUserProfileHeaderPrefetch as _e}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ve,profileHeaderMaterialWithDisabledBackground as ye}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as be,profileMainCollectTabOptions as xe,profileMainHistoryTabOptions as Se,profileMainLikeTabOptions as Ce,profileMainMineTabOptions as we,profileMainProfileTabOptions as Te,profileMainTabOptions as Ee}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as De}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Oe}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ke,profileMainInspectorPropsSchema as Ae}from"./profile/profile-main/schema.mjs";import{CollectTab as je}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Me,buildCollectTabPrefetch as Ne}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Pe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Fe,buildHistoryTabPrefetch as Ie}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Le}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as Re,buildLikeTabPrefetch as ze}from"./profile/profile-main/tabs/like-tab/server.mjs";import{UserProfileMain as Be}from"./profile/profile-main/server.mjs";import{profileMainMaterial as Ve}from"./profile/profile-main/material.mjs";import{PublishTab as He}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ue,buildPublishTabPrefetch as We}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{defaultProps as Ge}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Ke}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import qe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Je}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ye}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Xe from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ze}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Qe}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import $e from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as et}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as tt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import nt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as rt}from"./search-history/client.mjs";import{searchHistoryInspectorPropsSchema as it}from"./search-history/schema.mjs";import{SearchHistoryServer as at}from"./search-history/server.mjs";import{searchHistoryMaterial as ot}from"./search-history/material.mjs";import{SearchInputClient as st}from"./search-input/client.mjs";import{searchInputInspectorPropsSchema as ct}from"./search-input/schema.mjs";import{SearchInputServer as lt}from"./search-input/server.mjs";import{searchInputMaterial as ut}from"./search-input/material.mjs";import{TabBarClient as dt}from"./tab-bar/client.mjs";import{tabBarInspectorPropsSchema as ft}from"./tab-bar/schema.mjs";import{TabBarServer as pt}from"./tab-bar/server.mjs";import{tabBarMaterial as mt}from"./tab-bar/material.mjs";import{TextRecommendClient as ht}from"./text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as gt}from"./text-recommend/schema.mjs";import{TextRecommendServer as _t}from"./text-recommend/server.mjs";import{textRecommendMaterial as vt}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as yt}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as bt}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as xt}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as St}from"./video-horizontal-list/material.mjs";var Ct=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>le,BasicNavBarDefaultData:()=>se,BasicNavBarSchema:()=>ce,BasicPostCard:()=>fe,BasicPostCardDefaultData:()=>ue,BasicPostCardSchema:()=>de,BasicRecommendedUsers:()=>qe,BasicRecommendedUsersDefaultData:()=>Ge,BasicRecommendedUsersSchema:()=>Ke,BasicSearchBar:()=>Xe,BasicSearchBarDefaultData:()=>Je,BasicSearchBarSchema:()=>Ye,CardGrid2x3:()=>u,CardGrid2x3DefaultData:()=>c,CardGrid2x3Infinite:()=>p,CardGrid2x3InfiniteDefaultData:()=>d,CardGrid2x3InfiniteSchema:()=>f,CardGrid2x3Schema:()=>l,CardGrid2x4:()=>g,CardGrid2x4DefaultData:()=>m,CardGrid2x4Schema:()=>h,CardGrid3x3:()=>y,CardGrid3x3DefaultData:()=>_,CardGrid3x3Infinite:()=>S,CardGrid3x3InfiniteDefaultData:()=>b,CardGrid3x3InfiniteSchema:()=>x,CardGrid3x3Schema:()=>v,CollectTab:()=>je,CollectTabServer:()=>Me,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>$e,FilterSearchBarDefaultData:()=>Ze,FilterSearchBarSchema:()=>Qe,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Pe,HistoryTabServer:()=>Fe,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Le,LikeTabServer:()=>Re,MarqueeClient:()=>re,MarqueeServer:()=>ae,PublishTab:()=>He,PublishTabServer:()=>Ue,SearchHistoryClient:()=>rt,SearchHistoryServer:()=>at,SearchInputClient:()=>st,SearchInputServer:()=>lt,TabBarClient:()=>dt,TabBarServer:()=>pt,TagSearchBar:()=>nt,TagSearchBarDefaultData:()=>et,TagSearchBarSchema:()=>tt,TextRecommendClient:()=>ht,TextRecommendServer:()=>_t,UserProfileHeader:()=>ge,UserProfileHeaderClient:()=>pe,UserProfileMain:()=>Be,UserProfileMainClient:()=>Oe,UserProfileMainShell:()=>De,VideoHorizontalListClient:()=>yt,VideoHorizontalListServer:()=>xt,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Ne,buildHistoryTabPrefetch:()=>Ie,buildLikeTabPrefetch:()=>ze,buildPublishTabPrefetch:()=>We,buildUserProfileHeaderPrefetch:()=>_e,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorPropsSchema:()=>ie,marqueeMaterial:()=>oe,profileHeaderInspectorDefaultProps:()=>me,profileHeaderInspectorPropsSchema:()=>he,profileHeaderMaterial:()=>ve,profileHeaderMaterialWithDisabledBackground:()=>ye,profileMainCollectCollectionTabOptions:()=>be,profileMainCollectTabOptions:()=>xe,profileMainHistoryTabOptions:()=>Se,profileMainInspectorDefaultProps:()=>ke,profileMainInspectorPropsSchema:()=>Ae,profileMainLikeTabOptions:()=>Ce,profileMainMaterial:()=>Ve,profileMainMineTabOptions:()=>we,profileMainProfileTabOptions:()=>Te,profileMainTabOptions:()=>Ee,searchHistoryInspectorPropsSchema:()=>it,searchHistoryMaterial:()=>ot,searchInputInspectorPropsSchema:()=>ct,searchInputMaterial:()=>ut,tabBarInspectorPropsSchema:()=>ft,tabBarMaterial:()=>mt,textRecommendInspectorPropsSchema:()=>gt,textRecommendMaterial:()=>vt,videoHorizontalListInspectorPropsSchema:()=>bt,videoHorizontalListMaterial:()=>St});export{Ct as business_exports};
|
|
@@ -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{useDeleteRequest as l,useMutation as u,useRequest as d,useUpdateRequest as f}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as p}from"../../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as m}from"../../../../../store/modules/login-modal-store.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
|
|
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{useDeleteRequest as l,useMutation as u,useRequest as d,useUpdateRequest as f}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as p}from"../../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as m}from"../../../../../store/modules/login-modal-store.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({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=m(),c=l(),d=f(),{mutateAsync:p,isPending:h}=u(async e=>a(e)),{mutateAsync:g,isPending:_}=u(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){d([`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 A({id:a,enableCustomBackground:o=!0,showBackButton:l=!0,requireLogin:u=!1,cookieToken:f,cookieUserId:C,isEditorPreview:A=!1,className:j}){let M=w(`components.pages.profile`);w(`components.pages.profile.components`);let ne=p(),N=A||ne===`editor`,re=!N,ie=E(),{open:ae}=m(),{isLogin:P,userId:F,token:I}=n(),[L,R]=ee(!1);y(()=>{if(!D){R(!0);return}R(D.hasHydrated());let e=D.onHydrate(()=>{R(!1)}),t=D.onFinishHydration(()=>{R(!0)});return()=>{e(),t()}},[]);let z=N?!1:L?P&&!!F&&!!I:!!C&&!!f,B=N?``:L?F:F||C,V=B,H=a==null||!!a&&!!V&&a===V,U=!H&&!!a,W=H?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:G}=d(N?[`editor-preview`,...W]:W,()=>a?i({target_user_id:a,user_id:B||a}):r({user_id:a||B||``}),{staleTime:0,enabled:re&&(!!a||!!B)}),K=b(()=>{let e=G?G.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,G]),q=u&&H&&!z,oe=!z&&U,J=H&&z&&!q,Y=!z,se=o&&J,ce=o&&Y,le={name:M(`client.welcomeToPlanet`),description:M(`client.exploreAdventures`),avatar:O,followingCnt:0,followersCnt:0,likeCnt:0,background:k};function X(){ae()}function ue(){ie.back()}let de=q?x(t,{className:`rounded-full`,size:`lg`,onClick:X,children:M(`client.loginNow`)}):oe?x(t,{className:`rounded-full`,size:`lg`,onClick:X,children:M(`client.follow`)}):z?H?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:M(`client.editProfile`)})}):x(te,{userId:a||``,currentUserId:B,isFollowing:K?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:X,children:M(`client.loginNow`)}),Z=q?le:K,Q=Z.name||``,$=Z.description||Z.signature||``;Z.followingCnt,Z.followersCnt,Z.likeCnt;let fe=Z.avatar||``;return S(s,{className:e(`flex flex-col relative`,j),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:ue,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!l}),children:x(h,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!H}),children:x(g,{})})]}),x(v,{isMine:se,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ce?X:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(_,{isMine:J,src:fe,alt:Q||`avatar`,onUnauthorizedClick:Y?X: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 line-clamp-2 font-bold`,children:Q}),de]}),$&&x(c,{as:`p`,className:`text-sm py-1 line-clamp-3 text-text1/66`,children:$})]})]})}export{A as UserProfileHeaderClient};
|
|
@@ -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";const a=e({type:`profile-header`,category
|
|
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";const a=e({type:`profile-header`,category:`内容组件`,name:`用户信息模块(有背景图)`,icon:`/static/components-thumb/user_profile_with_background.png`,serverComponent:r,clientComponent:t,propsSchema:n}),o=e({type:`profile-header-with-disabled-background`,category:`内容组件`,name:`用户信息模块(无背景图)`,icon:`/static/components-thumb/user_profile_plain.png`,serverComponent:e=>i(r,{...e,enableCustomBackground:!1}),clientComponent:e=>i(t,{...e,enableCustomBackground:!1}),propsSchema:n});export{a as profileHeaderMaterial,o as profileHeaderMaterialWithDisabledBackground};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileMainClient as t}from"./client.mjs";import{profileMainInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileMain as r}from"./server.mjs";const i=e({type:`profile-main`,category
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{UserProfileMainClient as t}from"./client.mjs";import{profileMainInspectorPropsSchema as n}from"./schema.mjs";import{UserProfileMain as r}from"./server.mjs";const i=e({type:`profile-main`,category:`内容组件`,name:`用户行为模块`,icon:`/icon/profile-main.png`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as profileMainMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{gUserViewUserInfo as e}from"../../../../../service/generated/client.mjs";import{getAppContextResolved as t}from"../../../../../hooks/get-app-context.mjs";import{profileMainCollectCollectionTabOptions as n,profileMainCollectTabOptions as r,profileMainHistoryTabOptions as i,profileMainLikeTabOptions as a,profileMainMineTabOptions as o,profileMainProfileTabOptions as s}from"./variants.mjs";import{UserProfileMainShell as c}from"./shell.mjs";import{CollectTabServer as l}from"./tabs/collect-tab/server.mjs";import{HistoryTabServer as u}from"./tabs/history-tab/server.mjs";import{LikeTabServer as d}from"./tabs/like-tab/server.mjs";import{
|
|
2
|
+
import{gUserViewUserInfo as e}from"../../../../../service/generated/client.mjs";import{getAppContextResolved as t}from"../../../../../hooks/get-app-context.mjs";import{profileMainCollectCollectionTabOptions as n,profileMainCollectTabOptions as r,profileMainHistoryTabOptions as i,profileMainLikeTabOptions as a,profileMainMineTabOptions as o,profileMainProfileTabOptions as s}from"./variants.mjs";import{UserProfileMainShell as c}from"./shell.mjs";import{CollectTabServer as l}from"./tabs/collect-tab/server.mjs";import{HistoryTabServer as u}from"./tabs/history-tab/server.mjs";import{LikeTabServer as d}from"./tabs/like-tab/server.mjs";import{jsx as f}from"react/jsx-runtime";function p({isMine:e,tab:t}){let n=e?o:s;return t&&n.includes(t)?t:n[0]}function m(e,t,n){return e&&t.includes(e)?e:n}function h(e,t){return e&&(t===`collect`||t===`like`)}function g(e){return f(_,{...e})}async function _({id:o,showCreateAction:s=!1,requireLogin:g=!1,cookieToken:_,cookieUserId:v,className:y,token:b=``,currentUserId:x=``,authConfig:S,tab:C,likeTab:w,historyTab:T,collectTab:E,collectCollectionTab:D}){let O=(await t()).value===`editor`,k=b||_||``,A=x||v||``,j=!!k,M=o==null||!!A&&o===A,N=!M&&!!o,P=M?A:o?String(o):void 0,F=M?[`user-profile`,`mine`]:[`user-profile`,`profile`,o],I=p({isMine:M,tab:C}),L=`content`;if(g&&M&&!j&&(L=`login-required`),!O&&L===`content`&&h(N,I)){let t=(await e({target_user_id:String(o),user_id:A||String(o)},S))?.data??{},n=Number(t.collections_open??1)>0,r=Number(t.like_open??1)>0;I===`collect`&&!n&&(L=`privacy-collect`),I===`like`&&!r&&(L=`privacy-like`)}let R=O?[]:void 0,z=null;if(L===`content`)switch(I){case`like`:z=f(d,{isMine:M,targetUserId:P,queryKeyPrefix:F,resolvedLikeTab:m(w,a,`video`),prefetch:R});break;case`history`:z=f(u,{targetUserId:P,queryKeyPrefix:F,resolvedHistoryTab:m(T,i,`video`),authConfig:S,prefetch:R});break;default:z=f(l,{isMine:M,userId:P,showCreateAction:s&&M,queryKeyPrefix:F,resolvedCollectTab:m(E,r,`video`),resolvedCollectCollectionTab:m(D,n,`created`),authConfig:S,prefetch:R});break}return f(c,{isMine:M,renderMode:L,className:y,children:z})}export{g 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{Box as n}from"../../../../ui/box.mjs";import{EmptyState as r}from"../../../../ui/empty.mjs";import{Tabs as i,TabsList as a,TabsTrigger as o}from"../../../../ui/tabs.mjs";import{Text as s}from"../../../../ui/text.mjs";import{useLoginModalStore as c}from"../../../../../store/modules/login-modal-store.mjs";import{profileMainMineTabOptions as l,profileMainProfileTabOptions as u}from"./variants.mjs";import{useEffect as d,useMemo as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{useTranslations as h}from"next-intl";import{parseAsString as g,useQueryState as _}from"nuqs";function v(e){return e?[...l]:[...u]}function y(e,t){let n=v(t);return n.includes(e)?e:n[0]}function b({isMine:l,renderMode:u,className:b,children:x}){let S=h(`components.pages.profile`),{open:C}=c(),w=v(l),[T,E]=_(`tab`,g.withDefault(`collect`)),D=f(()=>y(T,l),[l,T]);d(()=>{T!==D&&E(D,{shallow:!1})},[D,E,T]);let O={collect:S(`client.collect`),
|
|
2
|
+
"use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{Box as n}from"../../../../ui/box.mjs";import{EmptyState as r}from"../../../../ui/empty.mjs";import{Tabs as i,TabsList as a,TabsTrigger as o}from"../../../../ui/tabs.mjs";import{Text as s}from"../../../../ui/text.mjs";import{useLoginModalStore as c}from"../../../../../store/modules/login-modal-store.mjs";import{profileMainMineTabOptions as l,profileMainProfileTabOptions as u}from"./variants.mjs";import{useEffect as d,useMemo as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{useTranslations as h}from"next-intl";import{parseAsString as g,useQueryState as _}from"nuqs";function v(e){return e?[...l]:[...u]}function y(e,t){let n=v(t);return n.includes(e)?e:n[0]}function b({isMine:l,renderMode:u,className:b,children:x}){let S=h(`components.pages.profile`),{open:C}=c(),w=v(l),[T,E]=_(`tab`,g.withDefault(`collect`)),D=f(()=>y(T,l),[l,T]);d(()=>{T!==D&&E(D,{shallow:!1})},[D,E,T]);let O={collect:S(`client.collect`),like:S(`client.like`),history:S(`client.history`)},k=x;return u===`login-required`?k=m(n,{className:`flex gap-4 flex-col items-center justify-center py-10 text-center`,children:[p(s,{className:`text-base text-text1`,children:S(`client.loginToView`)}),p(t,{size:`lg`,variant:`secondary`,onClick:C,children:S(`client.loginNow`)})]}):u===`privacy-collect`?k=p(r,{type:`no-content`,text:S(`client.collectionNotPublic`)}):u===`privacy-like`&&(k=p(r,{type:`no-content`,text:S(`client.likeNotPublic`)})),m(n,{className:e(b),children:[p(n,{className:`border-b bg-bg1 sticky z-10 top-0 border-text1/5 h-10`,children:p(i,{value:D,onValueChange:e=>{E(e,{shallow:!1})},className:`w-fit`,children:p(a,{variant:`default`,className:`inline-flex h-9`,children:w.map(e=>p(o,{value:e,className:`p-2.5 !text-base !w-fit data-active:!text-lg data-active:font-bold`,children:O[e]},e))})})}),p(n,{className:`p-2`,children:k})]})}export{b as UserProfileMainShell};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{gCommunityGetSubscribedCollections as n,gCommunityGetUserCollections as r,gInteractionListCollects as i,pInteractionBatchDeleteCollects as a}from"../../../../../../../service/generated/client.mjs";import{Box as o}from"../../../../../../ui/box.mjs";import{Checkbox as ee}from"../../../../../../ui/checkbox.mjs";import{Tabs as s,TabsList as
|
|
2
|
+
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{gCommunityGetSubscribedCollections as n,gCommunityGetUserCollections as r,gInteractionListCollects as i,pInteractionBatchDeleteCollects as a}from"../../../../../../../service/generated/client.mjs";import{Box as o}from"../../../../../../ui/box.mjs";import{Checkbox as ee}from"../../../../../../ui/checkbox.mjs";import{Tabs as s,TabsList as te,TabsTrigger as c}from"../../../../../../ui/tabs.mjs";import{Text as ne}from"../../../../../../ui/text.mjs";import{useMutation as re,usePaginated as l,useUpdateRequest as ie}from"../../../../../../../hooks/query/use-query.mjs";import{useAppContext as ae}from"../../../../../../../hooks/use-app-context/index.mjs";import{CollectionList as oe}from"../../../../../../common/list/collection-list/collection-list.mjs";import{PostList as se}from"../../../../../../common/list/post-list/post-list.mjs";import{VideoList as ce}from"../../../../../../common/list/video-list/video-list.mjs";import{useEffect as u,useMemo as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{toast as h}from"sonner";import{useTranslations as g}from"next-intl";import _ from"dayjs";import le from"next/link";import{parseAsString as v,useQueryState as y}from"nuqs";const b={video:1,post:2};function ue(e,t){if(!e)return e;let n=0,r=e.pages.map(e=>({page:e,filteredList:(e.data?.list??T).filter(e=>{let r=e?.id??``,i=t.has(r);return i&&(n+=1),!i})}));return{...e,pages:r.map(({page:e,filteredList:t})=>{if(!e.data)return e;let r=typeof e.data.total==`number`?Math.max(0,e.data.total-n):e.data.total;return{...e,data:{...e.data,list:t,total:r}}})}}function x(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 de(e,t){let n=t[e.content_id||``]?.create_time,r=x(e);return{id:e.content_id||``,title:e.content||``,coverImage:r,publishTime:_(n).toDate().getTime()}}function fe(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:_(n).toDate().getTime()}}function S(e){let t=x(e);return{contentType:e.source_type,id:e.content_id,title:e.title||e.content,coverImage:t,isVideo:!1,isMovie:!1}}function C(e){return Array.from({length:3},(t,n)=>({id:`${e}-placeholder-${n}`,isPlaceholder:!0}))}function w(e){let t=(e.contents??[]).slice(0,3).map(S),n=e.content_count??t.length;return{id:e.collection_id||``,title:e.title||``,contentCount:n,contents:n===0?C(e.collection_id||`collection`):t}}const T=[],pe=[`video`,`post`,`collection`],me=[`created`,`subscribed`];function E({userId:_,showCreateAction:x=!1,queryKeyPrefix:S,isMine:C=!1}){let E=g(),D=g(`components.pages.profile.components.tabs`),O=ae()===`renderer`,k=S??[],[A,j]=y(`collectTab`,v.withDefault(`video`)),[M,N]=y(`collectCollectionTab`,v.withDefault(`created`)),P=d(()=>pe.includes(A)?A:`video`,[A]),F=d(()=>me.includes(M)?M:`created`,[M]),[I,L]=f(!1),[R,z]=f(()=>new Set),{userId:he,userInfo:ge}=t(),B=_||he||ge?.userId||``,_e=ie();async function ve(e,t){if(!B)return{data:{list:[],total:0}};let n=await i({user_id:B,folder_id:``,content_type:t,page:e,page_size:10}),r=n.data.collect_infos?.reduce((e,t)=>(t.content_id&&(e[t.content_id]=t),e),{})||{},a=t===b.video?(n.data?.video_infos??[]).map(e=>fe(e,r)):(n.data?.post_infos??[]).map(e=>de(e,r));return{data:{list:a,total:n.data?.total??a.length}}}let V=l({key:[...k,`user-collect-video`,B],initialPageParam:1,async queryFn(e){return ve(e,b.video)},options:{staleTime:0,enabled:O},getNextPageParam(e,t){if((e?.data?.list||[]).length!==0)return t.length+1}}),H=l({key:[...k,`user-collect-post`,B],initialPageParam:1,options:{staleTime:0,enabled:O},async queryFn(e){return{data:{list:[],total:0,has_more:!1}}},getNextPageParam(e,t){if((e?.data?.list||[]).length!==0)return t.length+1}});async function ye(e){if(!B)return{data:{list:[],total:0}};let t=await r({page:e,user_id:_,page_size:10}),n=t.data?.data?.collections??[];return{data:{list:n.map(w),total:t.data?.data?.total??n.length}}}async function be(e){if(!B)return{data:{list:[],total:0}};let t=(await n({page:e,user_id:_,page_size:10})).data?.data,r=t?.collections??[];return{data:{list:r.map(w),total:t?.total??r.length}}}let U=l({key:[...k,`user-collection-created`,B],initialPageParam:1,options:{staleTime:0,enabled:O},async queryFn(e){return ye(e)},getNextPageParam(e,t){if((e?.data?.list||[]).length!==0)return t.length+1}}),W=l({key:[...k,`user-collection-subscribed`,B],initialPageParam:1,options:{staleTime:0,enabled:O},async queryFn(e){return be(e)},getNextPageParam(e,t){if((e?.data?.list||[]).length!==0)return t.length+1}}),G=d(()=>V.data?.pages.flatMap(e=>e.data?.list??T)??T,[V.data]),K=d(()=>H.data?.pages.flatMap(e=>e.data?.list??T)??T,[H.data]),xe=d(()=>U.data?.pages.flatMap(e=>e.data?.list??T)??T,[U.data]),Se=d(()=>W.data?.pages.flatMap(e=>e.data?.list??T)??T,[W.data]),Ce=P===`video`?G:P===`post`?K:T,q=new Set(Ce.map(e=>e.id)),J=P===`video`?V:H,Y=F===`created`?U:W,we=F===`created`?xe:Se,X=P===`video`,Te=[...k,`user-collect-video`,B],Ee=[...k,`user-collect-post`,B],{mutateAsync:De,isPending:Z}=re(async e=>await a({app_id:0,user_id:B,folder_id:``,content_type:X?1:2,content_ids:e})),Oe=()=>{L(!I),z(new Set)};u(()=>{z(new Set),P===`collection`&&L(!1)},[P]),u(()=>{A!==P&&j(P)},[P,A,j]),u(()=>{M!==F&&N(F)},[F,M,N]);let Q=e=>{z(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},ke=()=>{R.size===q.size&&q.size>0?z(new Set):z(new Set(q))},Ae=async()=>{if(!(R.size===0||Z)){if(!B){h.error(D(`collectTab.pleaseLogin`));return}try{let e=Array.from(R),t=await De(e);if(t.code===0){h.success(D(`collectTab.uncollectedSuccess`));let t=new Set(e);_e(X?Te:Ee,e=>ue(e,t)),z(new Set),L(!1)}else h.error(t.message||D(`collectTab.uncollectFailed`))}catch(e){console.error(`取消收藏失败`,e),h.error(D(`collectTab.operationFailed`))}}},$=async()=>{if(O){if(P===`collection`){await Y.fetchNextPage();return}await J.fetchNextPage()}};return m(o,{children:[m(o,{className:`flex justify-between items-center`,children:[p(s,{value:P,onValueChange:e=>{j(e)},children:m(te,{variant:`tag`,children:[p(c,{value:`video`,className:`text-sm`,children:D(`collectTab.video`)}),p(c,{value:`collection`,className:`text-sm`,children:D(`collectTab.collections`)})]})}),P===`collection`?p(le,{href:`/collection/create`,className:`flex items-center justify-center rounded-full text-text3 text-sm`,children:E(`components.pages.collectionCreate.form.create`)}):C&&p(e,{variant:`ghost`,size:`sm`,className:`h-6.25 px-0 text-sm text-text3`,onClick:Oe,children:D(I?`collectTab.cancel`:`collectTab.edit`)})]}),p(o,{className:`pt-2`,children:P===`video`?p(ce,{list:G,showVideoProgress:!1,loading:J.isFetching,hasMore:J.hasNextPage??!1,loadMore:$,emptyText:D(`collectTab.emptyContent`),isEditMode:I,selectedIds:R,onToggleSelection:Q}):P===`post`?p(se,{list:K,loading:J.isFetching,hasMore:J.hasNextPage??!1,loadMore:$,emptyText:D(`collectTab.emptyContent`),isEditMode:I,selectedIds:R,onToggleSelection:Q}):p(oe,{list:we,loading:Y.isFetching,hasMore:Y.hasNextPage??!1,loadMore:$,emptyText:D(`collectTab.emptyContent`)})}),I&&P!==`collection`&&m(o,{style:{bottom:`calc(56px + env(safe-area-inset-bottom, 0px))`},className:`flex fixed z-10 left-0 w-full items-center justify-between px-3 py-2 bg-bg1 `,children:[m(o,{className:`flex items-center gap-2`,children:[p(ee,{checked:R.size===q.size&&q.size>0,onCheckedChange:ke}),p(ne,{className:`text-sm text-text1`,children:D(`collectTab.selectAll`)})]}),p(e,{className:`rounded-full py-2.5 h-auto px-6.5`,variant:R.size>0?`default`:`outline`,disabled:R.size===0||Z,onClick:Ae,children:D(Z?`collectTab.processing`:`collectTab.delete`)})]})]})}export{E as CollectTab};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionBatchClearBrowse as n}from"../../../../../../../service/generated/client.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Checkbox as i}from"../../../../../../ui/checkbox.mjs";import{
|
|
2
|
+
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionBatchClearBrowse as n}from"../../../../../../../service/generated/client.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Checkbox as i}from"../../../../../../ui/checkbox.mjs";import{Text as a}from"../../../../../../ui/text.mjs";import{useMutation as o,usePaginated as s,useUpdateRequest as ee}from"../../../../../../../hooks/query/use-query.mjs";import{useAppContext as c}from"../../../../../../../hooks/use-app-context/index.mjs";import{PostList as l}from"../../../../../../common/list/post-list/post-list.mjs";import{VideoList as u}from"../../../../../../common/list/video-list/video-list.mjs";import{getHistoryData as d,likeContentType as f}from"../../utils.mjs";import{useEffect as p,useMemo as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";import{toast as v}from"sonner";import{useTranslations as y}from"next-intl";import{parseAsString as b,useQueryState as x}from"nuqs";function S(e){let{detail:t}=e,{info:n,publish_time:r}=t;return{id:e.id,title:n.title||n.text||``,coverImage:n.cover_image_thumbnail||n.cover_image||n.cover_horizontal_image_thumbnail||void 0,publishTime:r}}function C(e){let{detail:t,content_play_progress:n}=e,{user_info:r,info:i,statics_cnt:a,publish_time:o,parent_content_info:s}=t;return{is_more_link:i.is_more_link,id:e.id,title:i.title||i.text||i.name||``,coverImage:i.cover_image_thumbnail||i.cover_image||i.cover_horizontal_image_thumbnail||``,duration:Number(i.video_duration??0),progress:n?.percent??0,seriesNum:n?.series_num,authorName:r.name,viewCount:i?.play_count??a?.browse_cnt??0,publishTime:o,type:s?.type}}function w(e,t,n){if(!e)return e;let r=0,i=e.pages.map(e=>({page:e,filteredList:(e.data?.list??[]).filter(e=>{let i=n(e)??``,a=t.has(i);return a&&(r+=1),!a})}));return{...e,pages:i.map(({page:e,filteredList:t})=>{if(!e.data)return e;let n=typeof e.data.total==`number`?Math.max(0,e.data.total-r):e.data.total;return{...e,data:{...e.data,list:t,total:n}}})}}const T=[`video`,`post`];function E({targetUserId:E,queryKeyPrefix:D}){let O=y(`components.pages.profile.components.tabs`),k=c()===`renderer`,A=D??[],[j,M]=x(`historyTab`,b.withDefault(`video`)),N=m(()=>T.includes(j)?j:`video`,[j]),[P,F]=h(!1),[I,L]=h(()=>new Set),R=t(e=>e.userId),z=ee(),B=[...A,`user-history-video`],V=[...A,`user-history-post`],H=s({key:B,initialPageParam:1,async queryFn(e){return d({targetUserId:E,page:e,contentType:f.video})},options:{staleTime:0,enabled:k},getNextPageParam(e,t){if(!((e?.data?.list??[]).length===0||e?.data?.total===0))return t.length+1}}),U=s({key:V,initialPageParam:1,async queryFn(e){return{data:{list:[],total:0,has_more:!1}}},options:{staleTime:0,enabled:k},getNextPageParam(e,t){if(!((e?.data?.list??[]).length===0||e?.data?.total===0))return t.length+1}}),W=N===`video`?H:U,G=H.data?.pages.flatMap(e=>(e.data?.list??[]).map(C))??[],K=U.data?.pages.flatMap(e=>(e.data?.list??[]).map(S))??[],q=N===`video`?G:K,J=new Set(q.map(e=>e.id)),Y=N===`video`,{mutateAsync:X,isPending:Z}=o(async e=>await n({app_id:0,user_id:R,content_type:e.contentType,content_ids:e.contentIds}));p(()=>{L(new Set)},[N]),p(()=>{j!==N&&M(N)},[N,j,M]);let Q=e=>{L(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},te=()=>{I.size===J.size&&J.size>0?L(new Set):L(new Set(J))},ne=async()=>{if(!(I.size===0||Z)){if(!R){v.error(O(`historyTab.pleaseLogin`));return}try{let e=Array.from(I),t=await X({contentIds:e,contentType:Y?1:2});if(t.code===0){v.success(O(`historyTab.historyDeletedSuccess`));let t=new Set(e);z(Y?B:V,e=>w(e,t,e=>e.id)),L(new Set),F(!1)}else v.error(t.message||O(`historyTab.deleteFailed`))}catch(e){console.error(`删除浏览记录失败`,e),v.error(O(`historyTab.operationFailed`))}}},$=async()=>{k&&await W.fetchNextPage()};return _(r,{children:[g(r,{className:``,children:N===`video`?g(u,{showVideoProgress:!0,list:G,loading:W.isFetching,hasMore:W.hasNextPage??!1,loadMore:$,emptyText:O(`historyTab.emptyContent`),isEditMode:P,selectedIds:I,onToggleSelection:Q}):g(l,{list:K,loading:W.isFetching,hasMore:W.hasNextPage??!1,loadMore:$,emptyText:O(`historyTab.emptyContent`),isEditMode:P,selectedIds:I,onToggleSelection:Q})}),P&&_(r,{style:{bottom:`calc(56px + env(safe-area-inset-bottom, 0px))`},className:`flex fixed z-10 left-0 w-full items-center justify-between px-3 py-2 bg-bg1 `,children:[_(r,{className:`flex items-center gap-2`,children:[g(i,{checked:I.size===J.size&&J.size>0,onCheckedChange:te}),g(a,{className:`text-sm text-text1`,children:O(`historyTab.selectAll`)})]}),g(e,{className:`rounded-full py-2.5 h-auto px-6.5`,variant:I.size>0?`default`:`outline`,disabled:I.size===0||Z,onClick:ne,children:O(Z?`historyTab.processing`:`historyTab.delete`)})]})]})}export{E as HistoryTab};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionUnifiedBatchLikeDislike as n}from"../../../../../../../service/generated/client.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Checkbox as i}from"../../../../../../ui/checkbox.mjs";import{
|
|
2
|
+
"use client";import{Button as e}from"../../../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../../../store/modules/user-store.mjs";import{pInteractionUnifiedBatchLikeDislike as n}from"../../../../../../../service/generated/client.mjs";import{Box as r}from"../../../../../../ui/box.mjs";import{Checkbox as i}from"../../../../../../ui/checkbox.mjs";import{Text as a}from"../../../../../../ui/text.mjs";import{useMutation as o,usePaginated as s,useUpdateRequest as c}from"../../../../../../../hooks/query/use-query.mjs";import{useAppContext as l}from"../../../../../../../hooks/use-app-context/index.mjs";import{PostList as u}from"../../../../../../common/list/post-list/post-list.mjs";import{VideoList as d}from"../../../../../../common/list/video-list/video-list.mjs";import{getLikeData as f,likeContentType as p}from"../../utils.mjs";import{useEffect as m,useMemo as h,useState as g}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{toast as y}from"sonner";import{useTranslations as ee}from"next-intl";import{parseAsString as b,useQueryState as x}from"nuqs";function S(e,t,n){if(!e)return e;let r=0,i=e.pages.map(e=>({page:e,filteredList:(e.data?.list??[]).filter(e=>{let i=n(e)??``,a=t.has(i);return a&&(r+=1),!a})}));return{...e,pages:i.map(({page:e,filteredList:t})=>{if(!e.data)return e;let n=typeof e.data.total==`number`?Math.max(0,e.data.total-r):e.data.total;return{...e,data:{...e.data,list:t,total:n}}})}}function C(e){let{detail:t}=e,{info:n,publish_time:r}=t;return{id:e.id,title:n?.name||n?.text||n?.content||``,coverImage:n?.cover_image_thumbnail||n?.cover_image||n?.cover_horizontal_image_thumbnail||``,publishTime:r??0}}function w(e){let{detail:t}=e,{user_info:n,info:r,statics_cnt:i,publish_time:a,parent_content_info:o}=t;return{id:e.id,is_more_link:r?.is_more_link||!1,title:r?.name||r?.text||r?.content||``,coverImage:r?.cover_image_thumbnail||r?.cover_image||r?.cover_horizontal_image_thumbnail||``,duration:Number(r?.video_duration??0),progress:e.content_play_progress?.percent??0,seriesNum:e.content_play_progress?.series_num,authorName:n?.name||``,viewCount:r?.play_count??i?.browse_cnt??0,publishTime:a??0,type:o?.type}}const T=[`video`,`post`];function E({targetUserId:E,queryKeyPrefix:D,isMine:te=!1}){let O=ee(`components.pages.profile.components.tabs`),k=l()===`renderer`,A=D??[],[j,M]=x(`likeTab`,b.withDefault(`video`)),N=h(()=>T.includes(j)?j:`video`,[j]),[P,F]=g(!1),[I,L]=g(()=>new Set),R=t(e=>e.userId),z=c(),B=[...A,`user-like-video`],V=[...A,`user-like-post`],H=s({key:B,initialPageParam:1,async queryFn(e){return f({targetUserId:E,page:e,contentType:p.video})},options:{staleTime:0,enabled:k},getNextPageParam(e,t){if(typeof e?.data?.has_more==`boolean`)return e.data.has_more?t.length+1:void 0;if(!((e?.data?.list??[]).length===0||e?.data?.total===0))return t.length+1}});console.log({videoData:H});let U=s({key:V,options:{staleTime:0,enabled:k},initialPageParam:1,async queryFn(e){return{data:{list:[],total:0,has_more:!1}}},getNextPageParam(e,t){if(typeof e?.data?.has_more==`boolean`)return e.data.has_more?t.length+1:void 0;if(!((e?.data?.list??[]).length===0||e?.data?.total===0))return t.length+1}}),W=N===`video`?H:U,G=H.data?.pages.flatMap(e=>(e.data?.list??[]).map(w))??[],K=U.data?.pages.flatMap(e=>(e.data?.list??[]).map(C))??[],q=N===`video`?G:K,J=new Set(q.map(e=>e.id)),Y=N===`video`,{mutateAsync:X,isPending:Z}=o(async e=>await n({app_id:0,user_id:R,action:`cancel_like`,content_ids:e,content_type:Y?1:2}));m(()=>{L(new Set)},[N]),m(()=>{j!==N&&M(N)},[N,j,M]);let Q=e=>{L(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},ne=()=>{I.size===J.size&&J.size>0?L(new Set):L(new Set(J))},re=async()=>{if(!(I.size===0||Z)){if(!R){y.error(O(`likeTab.pleaseLogin`));return}try{let e=Array.from(I),t=await X(e);if(t.code===0){y.success(O(`likeTab.unlikedSuccess`));let t=new Set(e);z(Y?B:V,e=>S(e,t,e=>e.id)),L(new Set),F(!1)}else y.error(t.message||O(`likeTab.unlikeFailed`))}catch(e){console.error(`取消点赞失败`,e),y.error(O(`likeTab.operationFailed`))}}},$=async()=>{k&&await W.fetchNextPage()};return v(r,{children:[_(r,{className:``,children:N===`video`?_(d,{list:G,loading:W.isFetching,hasMore:W.hasNextPage??!1,loadMore:$,emptyText:O(`likeTab.emptyContent`),isEditMode:P,selectedIds:I,showVideoProgress:!1,onToggleSelection:Q}):_(u,{list:K,loading:W.isFetching,hasMore:W.hasNextPage??!1,loadMore:$,emptyText:O(`likeTab.emptyContent`),isEditMode:P,selectedIds:I,onToggleSelection:Q})}),P&&v(r,{style:{bottom:`calc(56px + env(safe-area-inset-bottom, 0px))`},className:`flex fixed z-10 left-0 w-full items-center justify-between px-3 py-2 bg-bg1 `,children:[v(r,{className:`flex items-center gap-2`,children:[_(i,{checked:I.size===J.size&&J.size>0,onCheckedChange:ne}),_(a,{className:`text-sm text-text1`,children:O(`likeTab.selectAll`)})]}),_(e,{className:`rounded-full py-2.5 h-auto px-6.5`,variant:I.size>0?`default`:`outline`,disabled:I.size===0||Z,onClick:re,children:O(Z?`likeTab.processing`:`likeTab.delete`)})]})]})}export{E as LikeTab};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{pCommunityDeleteContent as e}from"../../../../../../../service/generated/client.mjs";import{useDeleteRequest as t,useMutation as n,usePaginated as r,useUpdateRequest as i}from"../../../../../../../hooks/query/use-query.mjs";import{useAppContext as a}from"../../../../../../../hooks/use-app-context/index.mjs";import{DeleteConfirmDialog as o}from"../../../../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{UserActivityList as s}from"../../../../../../common/list/user-activity-list/user-activity-list.mjs";import{
|
|
2
|
+
"use client";import{pCommunityDeleteContent as e}from"../../../../../../../service/generated/client.mjs";import{useDeleteRequest as t,useMutation as n,usePaginated as r,useUpdateRequest as i}from"../../../../../../../hooks/query/use-query.mjs";import{useAppContext as a}from"../../../../../../../hooks/use-app-context/index.mjs";import{DeleteConfirmDialog as o}from"../../../../../../common/delete-confirm-dialog/delete-confirm-dialog.mjs";import{UserActivityList as s}from"../../../../../../common/list/user-activity-list/user-activity-list.mjs";import{useState as c}from"react";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{toast as f}from"sonner";import{useTranslations as p}from"next-intl";function m(e,t,n){if(!e)return e;let r=0,i=e.pages.map(e=>({page:e,filteredList:(e.data?.list??[]).filter(e=>{let i=n(e)??``,a=t.has(i);return a&&(r+=1),!a})}));return{...e,pages:i.map(({page:e,filteredList:t})=>{if(!e.data)return e;let n=typeof e.data.total==`number`?Math.max(0,e.data.total-r):e.data.total;return{...e,data:{...e.data,list:t,total:n}}})}}function h({targetUserId:h,queryKeyPrefix:g,isMine:_=!1}){let v=p(`components.pages.profile.components.tabs`),y=a()===`renderer`,b=g??[],x=t(),S=i(),[C,w]=c(null),{mutateAsync:T,isPending:E}=n(async t=>await e({content_id:t})),{data:D,isFetching:O,fetchNextPage:k,hasNextPage:A}=r({key:[...b,`user-publish`],initialPageParam:1,async queryFn(e){return{data:{list:[],total:0,has_more:!1}}},options:{staleTime:0,enabled:y},getNextPageParam(e,t){let n=e?.data||{},r=n.list||[];if(typeof n.has_more==`boolean`)return n.has_more?t.length+1:void 0;if(!(r.length===0||n.total===0))return t.length+1}}),j=D?.pages.flatMap(e=>(e?.data||{}).list||[])??[];function M(e){w(e)}function N(){w(null)}async function P(){if(!(!C||E))try{await T(C);let e=new Set([C]);S([...b,`user-publish`],t=>m(t,e,e=>e.content_id)),f.success(v(`publishTab.deleteSuccess`)),w(null)}catch(e){console.error(`删除内容失败`,e),f.error(v(`publishTab.deleteFailed`))}}let F=j.map(e=>({...e,isDeleting:E&&C===e.content_id,onDelete:()=>M(e.content_id??``)})),I=async()=>{y&&await k()};function L(){x([...b,`user-publish`]),x(b)}function R(e){console.log(`分享到微信:`,e)}function z(e){console.log(`分享到QQ:`,e)}function B(e){console.log(`分享到朋友圈:`,e)}return d(l,{children:[u(s,{list:F,loading:O,hasMore:A,loadMore:I,canEdit:_,showGroupHeaders:!1,emptyText:v(`publishTab.emptyText`),onActionSuccess:L,onShareWeChat:R,onShareQQ:z,onShareMoments:B}),u(o,{open:!!C,onOpenChange:e=>!e&&N(),onCancel:N,onConfirm:P,isConfirming:E})]})}export{h as PublishTab};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{HydrationBoundary as e}from"../../../../../../../hooks/query/hydration-boundary.mjs";import{
|
|
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}){return n(e,{prefetch:i??r({queryKeyPrefix:a.queryKeyPrefix??[],targetUserId:a.targetUserId}),children:n(t,{...a})})}export{i as PublishTabServer,r as buildPublishTabPrefetch};
|