@funhub/platform 0.1.36 → 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/detail/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/materials/editor-preview.mjs +2 -0
- package/dist/components/biz/business/detail/materials/registry.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-actions/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/client.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/material.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.d.mts +2 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/client.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/material.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.d.mts +2 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.mts +2 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-hero.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.d.mts +4 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.d.mts +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/client.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/component.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.d.mts +1 -3
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.d.mts +4 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.d.mts +2 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/client.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/component.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/props.schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs +1 -1
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +4 -3
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/material.d.mts +1 -1
- package/dist/components/biz/business/marquee/schema.d.mts +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/collect-tab/server.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/history-tab/server.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/like-tab/server.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/search-history/client.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +1 -1
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +1 -1
- package/dist/components/biz/business/shortcut-grid/schema.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/collection-list/collection-list-item.d.mts +1 -0
- package/dist/components/common/list/collection-list/collection-list-item.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/image.d.mts +4 -4
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/utils/schema/material.d.mts +1 -1
- package/package.json +1 -1
- package/theme.css +4 -0
- package/dist/components/biz/business/large-feature-grid/client.d.mts +0 -15
- package/dist/components/biz/business/large-feature-grid/default.mjs +0 -2
- package/dist/components/biz/business/large-feature-grid/server.d.mts +0 -13
- package/dist/components/biz/business/large-feature-grid/types.d.mts +0 -53
- 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
|
-
"use client";import{useUserStore as e}from"../../../../store/modules/user-store.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useDeleteRequest as r}from"../../../../hooks/query/use-query.mjs";import{
|
|
2
|
+
"use client";import{useUserStore as e}from"../../../../store/modules/user-store.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useDeleteRequest as r}from"../../../../hooks/query/use-query.mjs";import{useAppContext as i}from"../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as a}from"../../../../store/modules/login-modal-store.mjs";import{debounceFun as o}from"../../../../utils/tools.mjs";import s from"../../../common/interaction-animations.module.mjs";import c from"../../../common/collection-popup/index.mjs";import{useContentOperate as l}from"../../../../hooks/use-content-operate.mjs";import u from"../../../../assets/icons/detail/check-ok.mjs";import d from"../../../../assets/icons/detail/collect_nor.mjs";import f from"../../../../assets/icons/detail/collect_sel.mjs";import p from"../../../../assets/icons/detail/give_like.mjs";import m from"../../../../assets/icons/detail/give_like_sel.mjs";import h from"../../../../assets/icons/detail/share.mjs";import{useCallback as g,useMemo as _,useRef as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{toast as S}from"sonner";import{useTranslations as C}from"next-intl";function w({information:w,onUpdate:D}){let O=i()===`editor`||!w?.id||w.id.startsWith(`preview-`),k=C(`components.biz.business.detail`),[A,j]=y(!1),[M,N]=y(!1),P=v(0),F=e(e=>e.userId),I=e(e=>e.isLogin),L=r(),R=g(()=>{F&&(L([`user-profile`,`mine`,F,`user-like-video`]),L([`user-profile`,`mine`,F,`user-like-post`]),L([`user-profile`,`mine`,F,`user-collect-video`,F]),L([`user-profile`,`mine`,F,`user-collect-post`,F]))},[L,F]),{likeAnimation:z,handleLikeOperate:B,handleDefaultCollectionOperate:V,handleShareOperate:H}=l({id:w.id,isLike:w.like||!1,isDislike:w.dislike||!1,isCollect:w.collect||!1,likeCnt:E(w.static?.like_cnt),dislikeCnt:E(w.static?.dislike_cnt),contentType:w.content_type,prefetchDefaultCollection:!O,animationClasses:{like:s.likeShakeAnimation,dislike:s.dislikeShakeAnimation}}),U=g(e=>{D?.({...e})},[D]),W=g(async()=>{if(A)return;if(!I){a.getState().open();return}let e=Date.now();if(e-P.current<300)return;P.current=e,j(!0);let t=w.like||!1,n=w.dislike||!1,r=E(w.static?.like_cnt),i=E(w.static?.dislike_cnt),o=!t,s=Math.max(0,r+(o?1:-1)),c=o?!1:n,l=o&&n?Math.max(0,i-1):i;U({like:o,dislike:c,static:{...w.static,like_cnt:s,dislike_cnt:l}});try{let e=await B();if(!e){U({like:t,dislike:n,static:{...w.static,like_cnt:r,dislike_cnt:i}});return}U({like:e.isLike,dislike:e.isDislike??c,static:{...w.static,like_cnt:e.likeCnt,dislike_cnt:e.dislikeCnt??l}}),R(),window.sensors?.track?.(`detail_like_click`,{object_id:w.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),S.error(k(`detailOperate.operateFailed`))}finally{j(!1)}},[B,w,R,A,I,k,U]),G=_(()=>w.id,[w.id]),K=g(()=>{H(({isCollect:e})=>{U({collect:e})},G)},[H,G,U]);async function q(e){return await new Promise(e=>setTimeout(e,300)),e}let J=g(()=>{c.show({mode:`select`,onCollect:async e=>{try{await q({contentId:w.id,collectionId:e}),U({collect:!0}),R(),S.success(k(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),S.error(k(`detailOperate.collectFailed`))}}})},[w.id,R,k,U]),Y=g(e=>{let t=e||k(`detailOperate.defaultCollection`);S.custom(e=>x(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[x(`div`,{className:`flex items-center gap-[10px]`,children:[b(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:b(u,{className:`w-[14px] h-[14px]`})}),x(`div`,{className:`flex items-center gap-[6px]`,children:[b(`span`,{className:`text-[14px] leading-[20px]`,children:k(`detailOperate.collectAdded`)}),b(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),b(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{S.dismiss(e),J()},children:k(`detailOperate.modifyCollection`)})]}))},[J,k]),X=g(async()=>{if(M)return;if(!I){a.getState().open();return}let e=w.collect||!1;N(!0),window.sensors?.track?.(`detail_fav_click`,{object_id:w.id,action:e?`取消收藏`:`收藏`});try{let t=await V({currentCollect:e,onUpdate:({isCollect:e})=>{U({collect:e})}});if(!t?.success){S.error(t?.message||k(`detailOperate.collectFailed`));return}R(),window.sensors?.track?.(`detail_fav_click`,{object_id:w.id,action:t.isCollect?`收藏`:`取消收藏`}),!e&&t.isCollect&&Y(t.collectionTitle)}catch(e){console.error(`收藏操作失败:`,e),S.error(e?.message||k(`detailOperate.collectFailed`))}finally{N(!1)}},[V,w.collect,w.id,R,M,I,Y,k,U]),Z=_(()=>o(X,300),[X]);return x(t,{className:`w-full h-[42px] mt-[16px] flex items-center justify-between ${O?`pointer-events-none`:``}`,children:[x(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${A?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:W,children:[w.like?b(m,{className:`w-[20px] h-[20px] ${z.animationClass}`}):b(p,{className:`w-[20px] h-[20px] text-text2`}),b(n,{className:`text-[12px] text-text2 leading-[20px]`,children:w.static?w.static.like_cnt===0?k(`detailOperate.like`):T(w.static?.like_cnt):k(`detailOperate.like`)})]}),x(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${M?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:Z,children:[w.collect?b(f,{className:`w-[20px] h-[20px]`}):b(d,{className:`w-[20px] h-[20px] text-text2`}),b(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.collection`)})]}),x(t,{className:`w-[25%] h-full flex flex-col items-center justify-center cursor-pointer`,onClick:K,children:[b(h,{className:`w-[20px] h-[20px] text-text2`}),b(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.share`)})]})]})}function T(e){let t=Number(e||0);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function E(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}export{w as DetailOperate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
const e=`/static/components-thumb/video_player.png`,t=[{id:`tag-1`,name:`标签`,group:`类型`},{id:`tag-2`,name:`标签`,group:`类型`},{id:`tag-3`,name:`标签`,group:`类型`}],n=Array.from({length:6}).map((e,t)=>({id:`episode-${t+1}`,name:`第${t+1}集`,preview_m3u8_url:``,m3u8_url:``})),r={id:`preview-detail`,mid:`preview-detail`,name:`电影名称电影名称电影名称电影名称电影名称`,img_x:e,img_y:e,preview_images:[e],description:`简介文案,简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案。`,score:`9.6`,is_more_link:`y`,update_status:`1`,tags:t,links:n,content_type:0,play_count:123,episode_cnt:n.length,like:!1,dislike:!1,collect:!1,static:{like_cnt:0,dislike_cnt:0}};function i(e=6){let t=Math.max(1,Math.floor(e));return Array.from({length:t}).map((e,t)=>({...r,id:`preview-recommend-${t+1}`,name:`猜你喜欢 ${t+1}`,play_count:8e3+t*873}))}export{i as buildEditorPreviewRecommendList,r as editorPreviewInformation};
|
|
@@ -48,8 +48,8 @@ declare const videoDetailMaterials: MaterialMap<readonly [DefineMaterialOption<t
|
|
|
48
48
|
}>>;
|
|
49
49
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
50
50
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
51
|
-
custom: "custom";
|
|
52
51
|
content: "content";
|
|
52
|
+
custom: "custom";
|
|
53
53
|
}>>;
|
|
54
54
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
55
55
|
showPlayCount: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{DetailOperate as t}from"../../detail-operate.mjs";import{
|
|
2
|
+
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{DetailOperate as t}from"../../detail-operate.mjs";import{editorPreviewInformation as n}from"../editor-preview.mjs";import{jsx as r}from"react/jsx-runtime";function i({information:i,onUpdate:a}){let o=e()===`editor`||!i;return r(`div`,{className:o?`pointer-events-none`:void 0,children:r(t,{information:o?n:i,onUpdate:o?e=>{}:a})})}export{i as VideoDetailActionsClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{SeriesEpisodes as t}from"../../../../../common/series-episodes/index.mjs";import{DetailIntroduction as n}from"../../detail-introduction.mjs";import{
|
|
2
|
+
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{SeriesEpisodes as t}from"../../../../../common/series-episodes/index.mjs";import{DetailIntroduction as n}from"../../detail-introduction.mjs";import{editorPreviewInformation as r}from"../editor-preview.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({information:o,currentSeriesNum:s,onEpisodeChange:c,showTags:l=!1,showEpisodes:u=!1,isShow:d=!0}){let f=e()===`editor`||!o,p=f?r:o,m=Math.max(1,Number(s||1)),h=f?e=>{}:c,g=p?.is_more_link===`y`&&(p?.links?.length??0)>0;return a(`div`,{className:f?`pointer-events-none`:void 0,children:[i(n,{information:p,isShow:d,showTags:l}),u&&g&&i(t,{mode:`detail`,series_num:m,information:p,onEpisodeChange:h})]})}export{o as VideoDetailInfoClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoClient as t}from"./client.mjs";import{videoDetailInfoInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfo as r}from"./server.mjs";const i=e({type:`video-detail-info`,name
|
|
2
|
+
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoClient as t}from"./client.mjs";import{videoDetailInfoInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfo as r}from"./server.mjs";const i=e({type:`video-detail-info`,name:`专辑信息样式2`,icon:`/static/components-thumb/media_info_description_episode.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoMaterial};
|
|
@@ -7,14 +7,14 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
7
7
|
|
|
8
8
|
//#region components/biz/business/detail/materials/video-detail-info/schema.d.ts
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 媒体信息-简介&选集物料暂不对外开放配置。
|
|
11
11
|
*/
|
|
12
12
|
declare const videoDetailInfoInspectorPropsSchema: zod.ZodObject<{
|
|
13
13
|
showTags: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
14
14
|
showEpisodes: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
15
15
|
}, zod_v4_core0.$strip>;
|
|
16
16
|
type VideoDetailInfoInspectorProps = InferSchemaProps<typeof videoDetailInfoInspectorPropsSchema>;
|
|
17
|
-
/**
|
|
17
|
+
/** 媒体信息-简介&选集物料 props。 */
|
|
18
18
|
type VideoDetailInfoProps = VideoDetailInfoInspectorProps & {
|
|
19
19
|
/** 视频详情信息。 */information: SafeInformationType; /** 当前选集数。 */
|
|
20
20
|
currentSeriesNum: number; /** 选集变更回调。 */
|
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/detail/materials/video-detail-info/server.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 媒体信息-简介&选集物料服务端组件。
|
|
8
8
|
*/
|
|
9
9
|
declare function VideoDetailInfo(props: VideoDetailInfoProps): react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useAppContext as t}from"../../../../../../hooks/use-app-context/index.mjs";import{useCardDecoration as n}from"../../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTitle as r}from"../../detail-info-title.mjs";import{
|
|
2
|
+
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useAppContext as t}from"../../../../../../hooks/use-app-context/index.mjs";import{useCardDecoration as n}from"../../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTitle as r}from"../../detail-info-title.mjs";import{editorPreviewInformation as i}from"../editor-preview.mjs";import{jsx as a}from"react/jsx-runtime";function o({information:o}){let s=t()===`editor`||!o?i:o,{getTitleText:c}=n(),l=c(s);return l?a(e,{className:`w-full mt-[16px] px-[12px]`,children:a(r,{title:l})}):null}export{o as VideoDetailInfoTitleClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleClient as t}from"./client.mjs";import{videoDetailInfoTitleInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitle as r}from"./server.mjs";const i=e({type:`video-detail-info-title`,name
|
|
2
|
+
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleClient as t}from"./client.mjs";import{videoDetailInfoTitleInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitle as r}from"./server.mjs";const i=e({type:`video-detail-info-title`,name:`专辑信息样式1`,icon:`/static/components-thumb/media_info_basic.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleMaterial};
|
|
@@ -7,11 +7,11 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
7
7
|
|
|
8
8
|
//#region components/biz/business/detail/materials/video-detail-info-title/schema.d.ts
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 媒体信息物料暂不对外开放配置。
|
|
11
11
|
*/
|
|
12
12
|
declare const videoDetailInfoTitleInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
|
|
13
13
|
type VideoDetailInfoTitleInspectorProps = InferSchemaProps<typeof videoDetailInfoTitleInspectorPropsSchema>;
|
|
14
|
-
/**
|
|
14
|
+
/** 媒体信息物料 props。 */
|
|
15
15
|
type VideoDetailInfoTitleProps = VideoDetailInfoTitleInspectorProps & {
|
|
16
16
|
/** 视频详情信息。 */information: SafeInformationType;
|
|
17
17
|
};
|
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/detail/materials/video-detail-info-title/server.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 媒体信息物料服务端组件。
|
|
8
8
|
*/
|
|
9
9
|
declare function VideoDetailInfoTitle(props: VideoDetailInfoTitleProps): react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 媒体信息-选集物料客户端组件。
|
|
8
8
|
*/
|
|
9
9
|
declare function VideoDetailInfoTitleTagsEpisodesClient({
|
|
10
10
|
information,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useAppContext as t}from"../../../../../../hooks/use-app-context/index.mjs";import{useCardDecoration as n}from"../../../../../../hooks/use-card-decoration.mjs";import{SeriesEpisodes as r}from"../../../../../common/series-episodes/index.mjs";import{DetailInfoTags as i}from"../../detail-info-tags.mjs";import{DetailInfoTitle as a}from"../../detail-info-title.mjs";import{jsx as
|
|
2
|
+
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useAppContext as t}from"../../../../../../hooks/use-app-context/index.mjs";import{useCardDecoration as n}from"../../../../../../hooks/use-card-decoration.mjs";import{SeriesEpisodes as r}from"../../../../../common/series-episodes/index.mjs";import{DetailInfoTags as i}from"../../detail-info-tags.mjs";import{DetailInfoTitle as a}from"../../detail-info-title.mjs";import{editorPreviewInformation as o}from"../editor-preview.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l({information:l,currentSeriesNum:u,onEpisodeChange:d,showTags:f=!0,showEpisodes:p=!0}){let m=t()===`editor`||!l,h=m?o:l,g=Math.max(1,Number(u||1)),_=m?e=>{}:d,{getTitleText:v}=n(),y=v(h),b=h?.is_more_link===`y`&&(h?.links?.length??0)>0,x=f&&(h.tags?.length??0)>0,S=p&&b;return!y&&!x&&!S?null:c(e,{className:`w-full mt-[16px] ${m?`pointer-events-none`:``}`,children:[c(e,{className:`px-[12px]`,children:[y&&s(a,{title:y}),x&&s(i,{tags:h.tags||[],className:`mt-[12px]`})]}),S&&s(r,{mode:`detail`,series_num:g,information:h,onEpisodeChange:_})]})}export{l as VideoDetailInfoTitleTagsEpisodesClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleTagsEpisodesClient as t}from"./client.mjs";import{videoDetailInfoTitleTagsEpisodesInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitleTagsEpisodes as r}from"./server.mjs";const i=e({type:`video-detail-info-title-tags-episodes`,name
|
|
2
|
+
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleTagsEpisodesClient as t}from"./client.mjs";import{videoDetailInfoTitleTagsEpisodesInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitleTagsEpisodes as r}from"./server.mjs";const i=e({type:`video-detail-info-title-tags-episodes`,name:`专辑信息样式3`,icon:`/static/components-thumb/media_info_episode_list.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleTagsEpisodesMaterial};
|
|
@@ -7,14 +7,14 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
7
7
|
|
|
8
8
|
//#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.ts
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* 媒体信息-选集物料暂不对外开放配置。
|
|
11
11
|
*/
|
|
12
12
|
declare const videoDetailInfoTitleTagsEpisodesInspectorPropsSchema: zod.ZodObject<{
|
|
13
13
|
showTags: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
14
14
|
showEpisodes: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
15
15
|
}, zod_v4_core0.$strip>;
|
|
16
16
|
type VideoDetailInfoTitleTagsEpisodesInspectorProps = InferSchemaProps<typeof videoDetailInfoTitleTagsEpisodesInspectorPropsSchema>;
|
|
17
|
-
/**
|
|
17
|
+
/** 媒体信息-选集物料 props。 */
|
|
18
18
|
type VideoDetailInfoTitleTagsEpisodesProps = VideoDetailInfoTitleTagsEpisodesInspectorProps & {
|
|
19
19
|
/** 视频详情信息。 */information: SafeInformationType; /** 当前选集数。 */
|
|
20
20
|
currentSeriesNum: number; /** 选集变更回调。 */
|
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region components/biz/business/detail/materials/video-detail-info-title-tags-episodes/server.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 媒体信息-选集物料服务端组件。
|
|
8
8
|
*/
|
|
9
9
|
declare function VideoDetailInfoTitleTagsEpisodes(props: VideoDetailInfoTitleTagsEpisodesProps): react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{
|
|
2
|
+
"use client";import{useAppContext as e}from"../../../../../../hooks/use-app-context/index.mjs";import{editorPreviewInformation as t}from"../editor-preview.mjs";import{DetailHero as n}from"../../video-hero.mjs";import{jsx as r}from"react/jsx-runtime";function i({information:i,episodeIndex:a,resumeProgressSeconds:o}){let s=e()===`editor`||!i,c=s?{...t,id:``,mid:``}:i;return r(`div`,{className:s?`pointer-events-none`:void 0,children:r(n,{isVideo:!0,information:c,episodeIndex:s?0:a,resumeProgressSeconds:s?0:o})})}export{i as VideoDetailPlayerClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetGuessYouLikeVideos as e}from"../../../../../../service/generated/client.mjs";import{Box as t}from"../../../../../ui/box.mjs";import{Text as n}from"../../../../../ui/text.mjs";import{useRequest as r}from"../../../../../../hooks/query/use-query.mjs";import{useAppContext as i}from"../../../../../../hooks/use-app-context/index.mjs";import a from"../../../../../../assets/icons/detail/video_flag.mjs";import{MiniThreeCard as o}from"../../../../../common/cards/mini-three-card.mjs";import{useCardDecoration as s}from"../../../../../../hooks/use-card-decoration.mjs";import{applyPlayCountDelta as
|
|
2
|
+
"use client";import{gContentGetGuessYouLikeVideos as e}from"../../../../../../service/generated/client.mjs";import{Box as t}from"../../../../../ui/box.mjs";import{Text as n}from"../../../../../ui/text.mjs";import{useRequest as r}from"../../../../../../hooks/query/use-query.mjs";import{useAppContext as i}from"../../../../../../hooks/use-app-context/index.mjs";import a from"../../../../../../assets/icons/detail/video_flag.mjs";import{MiniThreeCard as o}from"../../../../../common/cards/mini-three-card.mjs";import{useCardDecoration as s}from"../../../../../../hooks/use-card-decoration.mjs";import{buildEditorPreviewRecommendList as c}from"../editor-preview.mjs";import{applyPlayCountDelta as ee,buildEpisodeLabel as l,clampColumns as u,mergeManualAndPool as d,mockPagedList as f,resolveRows as p}from"./utils.mjs";import{useEffect as m,useMemo as h,useRef as g,useState as te}from"react";import{jsx as _,jsxs as v}from"react/jsx-runtime";import{useTranslations as y}from"next-intl";function b({detailId:b,rows:re,columns:ie,smartTagEnabled:C,smartTagIds:w,title:T,showPlayCount:E,playCountDelta:D,showEpisode:O,enableInfinite:k,items:A}){let j=i()===`editor`,M=j||!b,ae=y(`components.biz.business.detail`),{getVerticalHoCoverImageUrl:N,getTitleText:P}=s(),[F,I]=te(1),L=g(null),R=h(()=>w??[],[w]),z=h(()=>A??[],[A]),B=!!k&&!j,V=p(re,B),H=u(ie),U=V*H,W=h(()=>c(U),[U]),{data:G}=r([`video-detail-recommend`,b],async()=>!b||M?null:await e(),{enabled:!M&&!!b}),K=h(()=>{if(M)return W;let e=G?.data?.videos;return Array.isArray(e)?e.map(e=>x(e)).filter(e=>!b||!e.id||e.id!==b):[]},[G?.data?.videos,b,W,M]),q=h(()=>new Set(z.map(e=>e.contentId)),[z]),J=h(()=>{if(M)return K;let e=K.filter(e=>!q.has(e.id));if(!C||R.length===0)return e;let t=new Set(R.map(String));return e.filter(e=>(Array.isArray(e.source_tags)?e.source_tags:String(e.source_tags||``).split(`,`).filter(Boolean)).some(e=>t.has(String(e?.id??e))))},[M,q,K,C,R]),Y=h(()=>{if(!z.length)return[];let e=new Map(J.map(e=>[e.id,e]));return z.map((t,n)=>{let r=W[n%Math.max(1,W.length)],i=e.get(t.contentId)??(M?{...r,id:t.contentId||r.id||`preview-manual-${n+1}`,name:r.name||`猜你喜欢 ${n+1}`}:null);if(!i)return null;let a=t.titleMode===`custom`?t.title:P(i),o=t.coverMode===`upload`?t.coverUrl:N(i);return{info:{...i,name:a||i.name,img_y:o||i.img_y,img_x:o||i.img_x},config:{showPlayCount:t.showPlayCount,playCountDelta:t.playCountDelta,showEpisode:t.showEpisode}}}).filter(Boolean)},[W,J,P,N,M,z]),X=h(()=>J.map(e=>({info:e})),[J]),Z=h(()=>d(Y,X,U),[Y,U,X]),Q=h(()=>{if(!B)return Z;let e=f(X,F,U,5);return F===1?Z:Z.concat(e)},[Z,F,U,X,B]),$=B&&F<5&&X.length>0;return m(()=>{B&&I(1)},[b,B]),m(()=>{if(!B)return;let e=L.current;if(!e||!$)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&I(e=>Math.min(e+1,5))});return t.observe(e),()=>{t.disconnect()}},[$,B]),Q.length?v(t,{className:`w-full mt-[16px] ${M?`pointer-events-none`:``}`,children:[_(n,{className:`block pl-[12px] mb-[8px] text-text1 text-[18px] leading-[26px] font-bold`,children:T||ae(`detailGuessLike.title`)}),_(t,{className:`w-full flex flex-wrap px-[12px]`,children:Q.map((e,t)=>{let n=e.config?.showPlayCount??E,r=e.config?.playCountDelta??D,i=e.config?.showEpisode??O,s=S(ee(e.info.play_count||0,r)),c=l(Number(e.info.update_status)===1?`done`:`updating`,e.info.episode_cnt||e.info.links?.length,e.info.episode_cnt||e.info.links?.length),u=Number.isFinite(H)&&H>0?`${100/H}%`:`33.333333%`;return _(o,{url:N(e.info),text:P(e.info),style:{width:u},bottomLeftChild:n?v(`div`,{className:`h-[20px] leading-[20px] text-[#fff] text-[12px] px-[4px] rounded-[4px] bg-[#333] ml-[4px] flex items-center`,children:[_(a,{className:`w-[16px] h-[auto] text-[#fff] mr-[4px]`}),s]}):null,bottomRightChild:i&&c?_(`div`,{className:`text-[#F59E0B] text-[12px] font-bold leading-[20px] pr-[8px]`,children:c}):null,linkPath:M?``:ne(e.info)},`guess-like-${t}`)})}),B&&_(`div`,{ref:L,className:`h-[1px] w-full`})]}):null}function x(e){return{id:e.video_id||``,mid:``,name:e.name||``,cat_id:``,cat_name:``,status:`1`,status_text:``,create_time:``,content_type:0,episode_cnt:e.episode_count||0,show_at:e.show_at??``,position:``,img_type:e.img_type??``,img_x:e.img_x??``,img_y:e.img_y??``,img_width:``,img_height:``,play_count:e.play_count,preview_images:[],duration:String(e.duration??``),score:String(e.score??``),is_more_link:e.is_more_link?`y`:`n`,update_status:String(e.update_status??``),description:e.description??``,language:``,director:``,actor:``,area:``,issue_date:``,publisher:``,series:``,number:``,tags:[],source_tags:e.source_tags??``,source_actor:[],links:Array.isArray(e.episodes)?e.episodes.map(e=>({id:e.id??``,name:e.name??``,preview_m3u8_url:e.preview_m3u8_url??``,m3u8_url:e.m3u8_url??``})):[],money:``,up_user:``,source_username:``,task_id:``,file_status:``}}function S(e){let t=Number(e||`0`);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function ne(e){if(e.content_type===0){let t=encodeURIComponent(e.name||``);return`/video/${e.id}/${t}/episode/1`}return`/post/${e.id}`}export{b as VideoDetailRecommendClient};
|
|
@@ -26,8 +26,8 @@ declare const videoDetailRecommendMaterial: DefineMaterialOption<typeof VideoDet
|
|
|
26
26
|
}>>;
|
|
27
27
|
coverUrl: zod.ZodOptional<zod.ZodString>;
|
|
28
28
|
titleMode: zod.ZodOptional<zod.ZodEnum<{
|
|
29
|
-
custom: "custom";
|
|
30
29
|
content: "content";
|
|
30
|
+
custom: "custom";
|
|
31
31
|
}>>;
|
|
32
32
|
title: zod.ZodOptional<zod.ZodString>;
|
|
33
33
|
showPlayCount: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailRecommendClient as t}from"./client.mjs";import{videoDetailRecommendInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailRecommend as r}from"./server.mjs";const i=e({type:`video-detail-recommend`,name
|
|
2
|
+
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailRecommendClient as t}from"./client.mjs";import{videoDetailRecommendInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailRecommend as r}from"./server.mjs";const i=e({type:`video-detail-recommend`,name:`详情页-推荐模块`,icon:`/static/components-thumb/video_guess_you_like.png`,category:`详情页`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailRecommendMaterial};
|
|
@@ -22,8 +22,8 @@ declare const videoDetailRecommendInspectorPropsSchema: z$1.ZodObject<{
|
|
|
22
22
|
}>>;
|
|
23
23
|
coverUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
24
24
|
titleMode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
25
|
-
custom: "custom";
|
|
26
25
|
content: "content";
|
|
26
|
+
custom: "custom";
|
|
27
27
|
}>>;
|
|
28
28
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
29
29
|
showPlayCount: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../../utils/schema/schema.mjs";import a from"zod";const o=e({rows:t({label:`行数`,defaultValue:
|
|
2
|
+
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../../utils/schema/schema.mjs";import a from"zod";const o=e({rows:t({label:`行数`,defaultValue:1}),columns:t({label:`列数`,defaultValue:2}),smartTagEnabled:n({label:`智能铺设`,defaultValue:!1}),title:r({label:`推荐位名称`,defaultValue:`猜你喜欢`}),showPlayCount:n({label:`显示播放量`,defaultValue:!0}),playCountDelta:t({label:`播放量浮动`,defaultValue:0}),showEpisode:n({label:`显示集数`,defaultValue:!0}),enableInfinite:n({label:`无限下拉`,defaultValue:!1}),smartTagIds:a.array(a.string()).optional(),items:a.array(a.object({contentId:a.string(),coverMode:a.enum([`upload`,`content`]).optional(),coverUrl:a.string().optional(),titleMode:a.enum([`custom`,`content`]).optional(),title:a.string().optional(),showPlayCount:a.boolean().optional(),playCountDelta:a.number().optional(),showEpisode:a.boolean().optional()})).optional()});({...i(o)});export{o as videoDetailRecommendInspectorPropsSchema};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{pxToVw as t}from"../../../../utils/helper.mjs";import{Image as n}from"../../../ui/image.mjs";import{Box as r}from"../../../ui/box.mjs";import{Text as i}from"../../../ui/text.mjs";import{
|
|
2
|
+
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{pxToVw as t}from"../../../../utils/helper.mjs";import{Image as n}from"../../../ui/image.mjs";import{Box as r}from"../../../ui/box.mjs";import{Text as i}from"../../../ui/text.mjs";import{useAppContext as a}from"../../../../hooks/use-app-context/index.mjs";import{useBrowseReport as o}from"../../../../hooks/use-browse-report.mjs";import{MediaPreview as s,useMediaPreview as c}from"../../../common/media-preview/index.mjs";import l from"../../../common/video-player/index.mjs";import{UserActivityMediaGrid as u}from"../../../common/list/user-activity-list/user-activity-list-item.mjs";import{memo as d,useCallback as f,useEffect as p,useMemo as m,useRef as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";import{useTranslations as y}from"next-intl";const b=d(({information:t,isVideo:n,episodeIndex:o=0,resumeProgressSeconds:l=0,className:d=``})=>{let p=a()===`editor`,h=m(()=>({id:t.id,name:t.name,preview_images:t.preview_images,img_y:t.img_y,img_x:t.img_x}),[t.id,t.name,t.preview_images,t.img_y,t.img_x]),g=m(()=>{let e=t?.medias,n=Array.isArray(e)?e.filter(Boolean):[];return n.length>0?n:(h.preview_images?.length?h.preview_images:[h.img_y||h.img_x||``].filter(Boolean)).filter(Boolean).map(e=>({media_url:e,is_video:!1,cover_image:``}))},[h.img_x,h.img_y,h.preview_images,t]),y=c(),b=m(()=>g.filter(Boolean).map(e=>{let n=e?.is_video?`video`:`image`,r=String(e?.media_url||``),i=e?.cover_image||t.img_y||t.img_x;return{src:r,type:n,...i?{cover:String(i)}:{}}}).filter(e=>!!e.src),[t.img_x,t.img_y,g]),S=f(e=>{p||!b.length||y.open(b,e)},[p,y,b]);return p?_(`img`,{src:`/static/components-thumb/video_player.png`,alt:`video-preview`,className:`w-full block`}):n?_(x,{information:t,episodeIndex:o,resumeProgressSeconds:l,isEditor:p}):v(`div`,{className:e(`w-full`,d),children:[v(r,{className:`mt-3 px-[12px] space-y-1`,children:[_(i,{as:`p`,className:`break-all`,dangerouslySetInnerHTML:{__html:t.description}}),_(u,{medias:g,onItemClick:S})]}),_(s,{})]})});b.displayName=`DetailHero`;const x=d(({information:e,episodeIndex:t,resumeProgressSeconds:n,isEditor:r})=>{let i=m(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images]);return _(S,{information:{...e,...i},episodeIndex:t,resumeProgressSeconds:n,isEditor:r})},(e,t)=>{let n=e.information,r=t.information;return n.id===r.id&&n.mid===r.mid&&n.img_width===r.img_width&&n.img_height===r.img_height&&n.img_y===r.img_y&&n.img_x===r.img_x&&e.resumeProgressSeconds===t.resumeProgressSeconds&&e.episodeIndex===t.episodeIndex&&e.isEditor===t.isEditor});x.displayName=`StableDetailPlayerBox`;function S({information:e,episodeIndex:i,resumeProgressSeconds:a,isEditor:s}){let c=y(`components.biz.business.detail`),u=h(0),d=h(0),b=Math.max(0,Number(i)||0),x=b+1,S=m(()=>e?.id,[e?.id]),E=m(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images,links:e.links}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images,e.links]),D=m(()=>E.mid||E.id,[E.id,E.mid]),O=m(()=>{let e=E.links?.[b]?.id;return e?String(e):`ep-${b+1}`},[b,E.links]),k=m(()=>`__reportData_detail_page__${E.id}:${O}`,[O,E.id]),A=m(()=>{if(s||typeof window>`u`)return 0;try{let e=sessionStorage.getItem(k);if(!e)return 0;let t=JSON.parse(e),n=Number(t.currentTime||0),r=Number(t.duration||0);if(!Number.isFinite(n)||!Number.isFinite(r))return 0;if(n>0&&r>0)return n}catch(e){console.error(`读取 sessionStorage 数据失败:`,e)}return 0},[s,k]),j=m(()=>{let e=Number(a||0);return Number.isFinite(e)&&e>0?e:0},[a]),M=m(()=>j>0?j:A,[j,A]),N=m(()=>{let t=T(e),n=t[t.length?Math.max(0,Math.min(b,t.length-1)):0]?.url||``,r=!!t.length;if(!r)return{hasVideo:!1,hlsList:[],videoUrl:``,width:1,height:1,resolution:`0x0`,aspectRatio:1,poster:``};let i=Number(E.img_width||0)||1,a=Number(E.img_height||0)||1;return{hasVideo:r,hlsList:t,videoUrl:n,width:i,height:a,resolution:C(i,a),aspectRatio:(i||1)/(a||1),poster:E.img_y||E.img_x||E.preview_images?.[0]||``}},[e.id,e.links,b,E.img_width,E.img_height,E.img_y,E.img_x,E.preview_images]),P=f((e,t)=>{u.current=e,d.current=t},[]),F=m(()=>N.videoUrl.endsWith(`m3u8`)?{startTimeSeconds:M,preload:`none`}:{startTimeSeconds:M},[M,N.videoUrl]);p(()=>{u.current=0,d.current=0},[S,b]);let I=o({contentId:S,browseEpisode:x,contentType:1,enabled:!s&&!!S,intervalMs:60*1e3,getCurrentTimeSeconds:()=>u.current,getDurationSeconds:()=>d.current});if(p(()=>{if(s)return;let e=()=>{if(!(typeof window>`u`)&&!(u.current<=0||d.current<=0))try{sessionStorage.setItem(k,JSON.stringify({episodeId:O,currentTime:u.current,duration:d.current}))}catch(e){console.error(`写入 sessionStorage 失败:`,e)}},t=()=>{e()},n=()=>{document.visibilityState===`hidden`&&e()},r=()=>{e()};return window.addEventListener(`beforeunload`,t),document.addEventListener(`visibilitychange`,n),window.addEventListener(`popstate`,r),()=>{window.removeEventListener(`beforeunload`,t),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`popstate`,r),e()}},[O,s,k]),!N.hasVideo)return _(`div`,{className:`mt-3 rounded-xl bg-bg1 px-3 py-10 text-center text-text3`,children:c(`videoHero.noVideos`)});let L=w(430,N.aspectRatio,242),R=L.height>0?t(L.height):`auto`,z=t(242);return v(g,{children:[_(r,{suppressHydrationWarning:!0,className:`w-full`,style:{height:R,maxWidth:`100%`,maxHeight:z}}),v(r,{className:`w-full relative bg-bg2 !fixed !top-[44px] !left-0 z-[10]`,children:[N.poster&&v(`div`,{className:`w-full h-full bg-bg2 absolute top-0 left-0 z-[1] overflow-hidden`,style:{height:R},children:[_(n,{src:N.poster,alt:c(`videoHero.coverAlt`),fill:!0,className:`object-cover`,priority:!0}),_(`div`,{className:`w-full h-full absolute top-0 left-0 z-[1] bg-[rgba(255,255,255,0.2)] backdrop-blur-[4px]`})]}),_(r,{suppressHydrationWarning:!0,"data-aspect-ratio":N.resolution,className:`w-full overflow-hidden flex justify-center relative z-[2]`,style:{height:R,maxWidth:`100%`,maxHeight:z,backdropFilter:`blur(0)`,WebkitBackdropFilter:`blur(0)`},children:_(l,{plyerId:`detail-player-${E.id}-${b}`,parentId:D,resolution:N.resolution||`0x0`,videoUrl:N.videoUrl,poster:N.poster,mergeConfig:F,onProgressUpdate:s?void 0:P,onPlay:s?void 0:I.handlePlay,onPause:s?void 0:I.handlePause,onEnded:s?void 0:I.handleEnded},`stable-player-${E.id}-${b}`)})]})]})}function C(e,t){return!e||!t?``:`${e}x${t}`}function w(e,t,n){let r=e/t;return r<=n?{width:e,height:r}:{width:n*t,height:n}}function T(e){let t=e.links||[];return t.length>0?t.map((e,t)=>({text:e.name||String(t+1),url:e.m3u8_url||e.preview_m3u8_url||``,definition:``,isDefault:t===0})).filter(e=>e.url):[]}export{b as DetailHero};
|