@funhub/platform 0.2.31 → 0.2.32
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/dist/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/channel-list/channel-active-indicator.mjs +1 -31
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/header-menu.mjs +1 -29
- package/dist/assets/icons/common/header-search-icon.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/right_arrow_thin.mjs +1 -17
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -24
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/marquee-close.mjs +1 -29
- package/dist/assets/icons/marquee-enter.mjs +1 -17
- package/dist/assets/icons/marquee-speaker.mjs +1 -22
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/shortcut-grid/shortcut-grid-card-bg-primary.mjs +1 -29
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -169
- package/dist/cli/init/create-client.mjs +1 -12
- package/dist/cli/init/create-sdk.mjs +1 -12
- package/dist/cli/init/shared/command.mjs +1 -31
- package/dist/cli/init/shared/constants.mjs +1 -24
- package/dist/cli/init/shared/create-project.mjs +2 -58
- package/dist/cli/init/shared/file.mjs +1 -21
- package/dist/cli/init/shared/package-manager.mjs +1 -42
- package/dist/cli/init/shared/prompts.mjs +1 -107
- package/dist/cli/init/shared/template.mjs +1 -66
- package/dist/cli.mjs +2 -128
- package/dist/common.mjs +1 -51
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -390
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -270
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -376
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -171
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -56
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -33
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/advertisement/ad-match.mjs +1 -142
- package/dist/components/biz/business/advertisement/ad-provider.mjs +1 -50
- package/dist/components/biz/business/advertisement/ad-query.mjs +1 -39
- package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -274
- package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -55
- package/dist/components/biz/business/advertisement/banner-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -36
- package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -109
- package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -11
- package/dist/components/biz/business/advertisement/floating-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -187
- package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -42
- package/dist/components/biz/business/advertisement/icon-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -203
- package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -48
- package/dist/components/biz/business/advertisement/popup-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -370
- package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -34
- package/dist/components/biz/business/advertisement/text-ad/server.mjs +1 -24
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -62
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -140
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -133
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -22
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -94
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -87
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -190
- package/dist/components/biz/business/channel-list/client.mjs +1 -157
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -13
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -40
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -182
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -969
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -114
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -33
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -84
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -432
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/material-route-context.mjs +1 -44
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -55
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -225
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -320
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -902
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -97
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -47
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -201
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -14
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -14
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -136
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/client.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/schema.mjs +1 -13
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -89
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -35
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -35
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -548
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -60
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -20
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -21
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -142
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -23
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -38
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -20
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -32
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -19
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -53
- package/dist/components/biz/business/header-search/shared/header-action.mjs +1 -29
- package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +1 -26
- package/dist/components/biz/business/header-search/shared/header-shell.mjs +1 -21
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -25
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -47
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -229
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -47
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -211
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -42
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -890
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -24
- package/dist/components/biz/business/home-recommend/shared/home-recommend-play-count.mjs +1 -31
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -178
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -47
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -336
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-layout.mjs +1 -73
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-tag.mjs +1 -21
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -73
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -436
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -79
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -33
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -106
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -256
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -127
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -303
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -86
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -159
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -119
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -343
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -262
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -182
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -235
- package/dist/components/biz/business/profile/profile-main/empty-state.mjs +1 -43
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -275
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -747
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -178
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -259
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -258
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -266
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/profile/tracking.mjs +1 -19
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -54
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -182
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -16
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -115
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -17
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -86
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -65
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -157
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
- package/dist/components/biz/business/tab-bar/server.mjs +1 -17
- package/dist/components/biz/business/text-recommend/client.mjs +1 -104
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -25
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -44
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -67
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/analytics-init/analytics-init.mjs +1 -75
- package/dist/components/common/analytics-init/page-lifecycle-tracker.mjs +1 -248
- package/dist/components/common/analytics-init/sensor-init.mjs +1 -126
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/create-collection-sheet.mjs +1 -271
- package/dist/components/common/collection-popup/index.mjs +1 -293
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -50
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -27
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -71
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -139
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -27
- package/dist/components/common/list/collection-list/collection-select-icon.mjs +1 -53
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -469
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -143
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -100
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/list/waterfall-recommend/recommend-badge-style.mjs +1 -18
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend-display.mjs +1 -26
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -183
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -46
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -321
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -97
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.mjs +1 -64
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -98
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -826
- package/dist/components/common/share-popup/share-content.mjs +1 -155
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -326
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -150
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -70
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/user-info-initializer/index.mjs +1 -37
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -700
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/preroll-skip-button-content.mjs +1 -20
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -281
- package/dist/components/common/video-player/style.module.mjs +260 -7
- package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -155
- package/dist/components/common/video-player/video-player-ref-context.mjs +1 -18
- package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -167
- package/dist/components/common/video-player/video-preroll-ad.mjs +1 -187
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -44
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -164
- package/dist/components/pages/collection-create/form.mjs +1 -164
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +1 -135
- package/dist/components/pages/collection-detail/detail.mjs +1 -539
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -683
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -383
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -271
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -105
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -149
- package/dist/components/pages/home/index.mjs +1 -59
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/auth-page-styles.mjs +2 -17
- package/dist/components/pages/login/forgot.mjs +1 -136
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -233
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -204
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/tracking.mjs +1 -32
- package/dist/components/pages/login/verify.mjs +1 -243
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -192
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -211
- package/dist/components/pages/search/search-result/index.mjs +1 -31
- package/dist/components/pages/search/search-result/search-all.mjs +1 -167
- package/dist/components/pages/search/search-result/search-user.mjs +1 -306
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -134
- package/dist/components/pages/search/search-result/shared.mjs +1 -114
- package/dist/components/pages/search/style.module.mjs +85 -12
- package/dist/components/pages/search/top-header.mjs +1 -131
- package/dist/components/pages/search/tracking.mjs +1 -51
- package/dist/components/pages/search-result/page-client.mjs +1 -130
- package/dist/components/pages/search-result/search-all.mjs +1 -180
- package/dist/components/pages/search-result/search-empty.mjs +1 -52
- package/dist/components/pages/search-result/search-tab.mjs +1 -95
- package/dist/components/pages/search-result/search-user.mjs +1 -315
- package/dist/components/pages/search-result/search-video-info.mjs +1 -195
- package/dist/components/pages/search-result/shared.mjs +1 -46
- package/dist/components/pages/search-result/top-header.mjs +1 -105
- package/dist/components/pages/search-result/tracking.mjs +1 -39
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -381
- package/dist/components/pages/settings/_components/settings.mjs +1 -192
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -395
- package/dist/components/pages/video-list/index.mjs +1 -61
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -144
- package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -94
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -91
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -107
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -257
- package/dist/components/ui/infinite-scroll.mjs +1 -168
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -52
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -11
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -489
- package/dist/hooks/use-card-decoration.mjs +1 -96
- package/dist/hooks/use-content-operate.mjs +1 -526
- package/dist/hooks/use-first-row-height.mjs +1 -105
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-is-client.mjs +1 -20
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-min-duration-loading.mjs +1 -63
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -17
- package/dist/i18n/locales/en.mjs +3 -836
- package/dist/i18n/locales/zh-CN.mjs +3 -836
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -73
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -23
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/advertisement.mjs +1 -88
- package/dist/service/generated/client.mjs +1 -1281
- package/dist/service/generated/tanstack.mjs +1 -1179
- package/dist/service/register-by-verify-email-code.mjs +1 -17
- package/dist/service.mjs +1 -6
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blind-spot-ad-store.mjs +1 -95
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -155
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -133
- package/dist/store/modules/video-player-ref-store.mjs +1 -13
- package/dist/store.mjs +1 -12
- package/dist/theme-tokens.mjs +1 -82
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -58
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/browser-fingerprint.mjs +1 -53
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -311
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/device-id.mjs +1 -20
- package/dist/utils/email-validator.mjs +1 -108
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -33
- package/dist/utils/http.mjs +1 -202
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -63
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/request-user-id.mjs +1 -16
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -207
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -92
- package/dist/utils/tracking.mjs +1 -183
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils/use-compatible-router.mjs +1 -84
- package/dist/utils.mjs +1 -27
- package/package.json +1 -1
- package/theme.css +1 -1
|
@@ -1,827 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
'use client';
|
|
3
|
-
|
|
4
|
-
import { trackPageClick } from "../../../utils/tracking.mjs";
|
|
5
|
-
import { Box } from "../../ui/box.mjs";
|
|
6
|
-
import { Text } from "../../ui/text.mjs";
|
|
7
|
-
import { Sheet, SheetContent, SheetHeader, SheetTitle } from "../../ui/sheet.mjs";
|
|
8
|
-
import { Switch } from "../../ui/switch.mjs";
|
|
9
|
-
import { useKeepAliveState } from "../keep-scroll-position/index.mjs";
|
|
10
|
-
import SvgRightArrow from "../../../assets/icons/common/right_arrow.mjs";
|
|
11
|
-
import Popup from "../../ui/popup.mjs";
|
|
12
|
-
import { toast } from "sonner";
|
|
13
|
-
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
14
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { useTranslations } from "next-intl";
|
|
16
|
-
|
|
17
|
-
//#region components/common/series-episodes/index.tsx
|
|
18
|
-
const SHEET_EPISODES_PER_GROUP = 50;
|
|
19
|
-
const POPUP_EPISODES_PER_GROUP = 50;
|
|
20
|
-
const EPISODE_SWITCH_SUCCESS_TOAST_DELAY_MS = 1e3;
|
|
21
|
-
const INLINE_EPISODE_MID_RIGHT_TRIGGER_RATIO = .5;
|
|
22
|
-
const DETAIL_SERIES_POPUP_QUERY_EVENT = "funhub:detail-series-popup-query";
|
|
23
|
-
const DETAIL_SERIES_POPUP_CLOSE_EVENT = "funhub:detail-series-popup-close";
|
|
24
|
-
const DETAIL_STYLE_ONE_ACTIVE_EPISODE_BACKGROUND_FILL = "linear-gradient(90deg, rgba(246,206,255,0.1) 0%, rgba(246,206,255,0.1) 100%), linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%)";
|
|
25
|
-
const DETAIL_STYLE_ONE_ACTIVE_EPISODE_BORDER_GRADIENT = "linear-gradient(90deg, rgba(255,30,172,0.7) 0%, rgba(108,67,238,0) 100%), linear-gradient(180deg, #9756E3 0%, #6C43EE 100%)";
|
|
26
|
-
const DETAIL_STYLE_ONE_ACTIVE_EPISODE_INNER_RADIUS = "7.5px";
|
|
27
|
-
/**
|
|
28
|
-
* 判断是否为「详情选集弹窗状态查询」事件。
|
|
29
|
-
*/
|
|
30
|
-
function isDetailSeriesPopupQueryEvent(event) {
|
|
31
|
-
return event.type === DETAIL_SERIES_POPUP_QUERY_EVENT && event instanceof CustomEvent;
|
|
32
|
-
}
|
|
33
|
-
function EpisodeTitleToggleIcon({ active }) {
|
|
34
|
-
if (active) return /* @__PURE__ */ jsxs("svg", {
|
|
35
|
-
width: "24",
|
|
36
|
-
height: "24",
|
|
37
|
-
viewBox: "0 0 24 24",
|
|
38
|
-
fill: "none",
|
|
39
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
className: "shrink-0",
|
|
41
|
-
"aria-hidden": true,
|
|
42
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
43
|
-
cx: "16",
|
|
44
|
-
cy: "12",
|
|
45
|
-
r: "3",
|
|
46
|
-
fill: "white"
|
|
47
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
48
|
-
d: "M8 5H16C19.866 5 23 8.13401 23 12C23 15.866 19.866 19 16 19H8C4.13401 19 1 15.866 1 12C1 8.13401 4.13401 5 8 5ZM16 15C17.6569 15 19 13.6569 19 12C19 10.3431 17.6569 9 16 9C14.3431 9 13 10.3431 13 12C13 13.6569 14.3431 15 16 15Z",
|
|
49
|
-
fill: "#9054E5"
|
|
50
|
-
})]
|
|
51
|
-
});
|
|
52
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
53
|
-
width: "24",
|
|
54
|
-
height: "24",
|
|
55
|
-
viewBox: "0 0 24 24",
|
|
56
|
-
fill: "none",
|
|
57
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
58
|
-
className: "shrink-0",
|
|
59
|
-
"aria-hidden": true,
|
|
60
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
61
|
-
d: "M1.5 12C1.5 8.68629 4.18629 6 7.5 6H16.5C19.8137 6 22.5 8.68629 22.5 12C22.5 15.3137 19.8137 18 16.5 18H7.5C4.18629 18 1.5 15.3137 1.5 12Z",
|
|
62
|
-
stroke: "currentColor",
|
|
63
|
-
strokeWidth: "1.5",
|
|
64
|
-
strokeOpacity: "0.6"
|
|
65
|
-
}), /* @__PURE__ */ jsx("circle", {
|
|
66
|
-
cx: "9",
|
|
67
|
-
cy: "12",
|
|
68
|
-
r: "3",
|
|
69
|
-
fill: "rgba(255,255,255,0.6)"
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function DetailPopupCloseIcon() {
|
|
74
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
75
|
-
width: "20",
|
|
76
|
-
height: "20",
|
|
77
|
-
viewBox: "0 0 20 20",
|
|
78
|
-
fill: "none",
|
|
79
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
80
|
-
className: "block h-[20px] w-[20px]",
|
|
81
|
-
"aria-hidden": true,
|
|
82
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
83
|
-
d: "M10 8.61116L14.8611 3.75L16.25 5.13889L11.3889 10L16.25 14.8611L14.8611 16.25L10 11.3889L5.13889 16.25L3.75 14.8611L8.61111 10L3.75 5.13889L5.13889 3.75L10 8.61116Z",
|
|
84
|
-
fill: "currentColor"
|
|
85
|
-
})
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* 构建分集标题展示文案:
|
|
90
|
-
* - 始终包含「第 N 集」前缀
|
|
91
|
-
* - 有视频标题时拼接在后面
|
|
92
|
-
* - 若标题本身已等于分集文案,避免重复
|
|
93
|
-
*/
|
|
94
|
-
function buildEpisodeDisplayTitle(episodeLabel, rawTitle) {
|
|
95
|
-
const normalizedTitle = String(rawTitle || "").trim();
|
|
96
|
-
if (!normalizedTitle) return episodeLabel;
|
|
97
|
-
const compactEpisodeLabel = episodeLabel.replace(/\s+/g, "");
|
|
98
|
-
if (normalizedTitle.replace(/\s+/g, "") === compactEpisodeLabel) return episodeLabel;
|
|
99
|
-
return `${episodeLabel} ${normalizedTitle}`;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* 把后端/业务侧的「剧集列表」规范化为统一结构:
|
|
103
|
-
* - `series_num`: 优先从 name 解析数字,否则按 index+1
|
|
104
|
-
* - `title`: 数字则显示 `第{n}集`,非数字则尽量透传 name
|
|
105
|
-
*/
|
|
106
|
-
function normalizeEpisodes(list, fallbackIdPrefix, formatEpisodeLabel) {
|
|
107
|
-
return (list || []).map((item, index) => {
|
|
108
|
-
const parsed = Number.parseInt(item?.id || "", 10);
|
|
109
|
-
const seriesNum = Number.isNaN(parsed) ? index + 1 : parsed;
|
|
110
|
-
const rawName = item?.name || "";
|
|
111
|
-
const displayName = buildEpisodeDisplayTitle(formatEpisodeLabel(seriesNum), rawName);
|
|
112
|
-
return {
|
|
113
|
-
id: item?.id || `${fallbackIdPrefix}-${seriesNum}`,
|
|
114
|
-
series_num: seriesNum,
|
|
115
|
-
title: displayName
|
|
116
|
-
};
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* 详情页:保持兼容既有文案(`第{name}集`),并用 name 参与编号解析。
|
|
121
|
-
*/
|
|
122
|
-
function normalizeEpisodesForDetail(list, fallbackIdPrefix, formatEpisodeLabel) {
|
|
123
|
-
return (list || []).map((item, index) => {
|
|
124
|
-
const parsedSeriesNum = Number(item?.id);
|
|
125
|
-
const seriesNum = Number.isNaN(parsedSeriesNum) ? index + 1 : parsedSeriesNum;
|
|
126
|
-
const displayName = formatEpisodeLabel(seriesNum);
|
|
127
|
-
return {
|
|
128
|
-
id: item?.id || `${fallbackIdPrefix}-${seriesNum}`,
|
|
129
|
-
series_num: seriesNum,
|
|
130
|
-
title: displayName
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* 构建「选集」弹层的摘要文案。
|
|
136
|
-
*/
|
|
137
|
-
function buildSeriesSummaryText(total, updateStatus, t) {
|
|
138
|
-
if (total <= 0) return t("singleContent");
|
|
139
|
-
if (updateStatus === "1") return t("completedSeriesTotal", { total });
|
|
140
|
-
return t("ongoingSeriesTotal", { total });
|
|
141
|
-
}
|
|
142
|
-
function DetailStyleOneActiveBorderLayer() {
|
|
143
|
-
return /* @__PURE__ */ jsx("span", {
|
|
144
|
-
"aria-hidden": true,
|
|
145
|
-
className: "pointer-events-none absolute inset-0 overflow-hidden rounded-[8px] p-[0.5px]",
|
|
146
|
-
style: { backgroundImage: DETAIL_STYLE_ONE_ACTIVE_EPISODE_BORDER_GRADIENT },
|
|
147
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
148
|
-
className: "block h-full w-full",
|
|
149
|
-
style: {
|
|
150
|
-
borderRadius: DETAIL_STYLE_ONE_ACTIVE_EPISODE_INNER_RADIUS,
|
|
151
|
-
backgroundColor: "#000000",
|
|
152
|
-
backgroundImage: DETAIL_STYLE_ONE_ACTIVE_EPISODE_BACKGROUND_FILL
|
|
153
|
-
}
|
|
154
|
-
})
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
function SeriesEpisodes(props) {
|
|
158
|
-
if (props.mode === "detail") return /* @__PURE__ */ jsx(DetailSeriesEpisodes, {
|
|
159
|
-
information: props.information,
|
|
160
|
-
series_num: props.series_num,
|
|
161
|
-
onEpisodeChange: props.onEpisodeChange
|
|
162
|
-
});
|
|
163
|
-
return /* @__PURE__ */ jsx(SelectorSeriesEpisodes, {
|
|
164
|
-
open: props.open,
|
|
165
|
-
variant: props.variant,
|
|
166
|
-
title: props.title,
|
|
167
|
-
videoTitle: props.videoTitle,
|
|
168
|
-
updateStatus: props.updateStatus,
|
|
169
|
-
summaryText: props.summaryText,
|
|
170
|
-
seriesList: props.seriesList,
|
|
171
|
-
activeEpisodeId: props.activeEpisodeId,
|
|
172
|
-
showEpisodeTitle: props.showEpisodeTitle,
|
|
173
|
-
onToggleTitle: props.onToggleTitle,
|
|
174
|
-
onClose: props.onClose,
|
|
175
|
-
onSelectEpisode: props.onSelectEpisode,
|
|
176
|
-
popupBodyStyle: props.popupBodyStyle,
|
|
177
|
-
popupStylePreset: props.popupStylePreset
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* SelectorSeriesEpisodes
|
|
182
|
-
*
|
|
183
|
-
* 用于「只需要弹层」的场景(例如全屏流/剧集页)。
|
|
184
|
-
*/
|
|
185
|
-
function SelectorSeriesEpisodes({ open, variant, title, videoTitle, updateStatus, summaryText, seriesList, activeEpisodeId, showEpisodeTitle = false, onToggleTitle, onClose, onSelectEpisode, popupBodyStyle, popupStylePreset = "default" }) {
|
|
186
|
-
const t = useTranslations("components.common.seriesEpisodes");
|
|
187
|
-
const canToggleTitle = Boolean(onToggleTitle);
|
|
188
|
-
const useTitleLayout = canToggleTitle && showEpisodeTitle;
|
|
189
|
-
const useDetailStyleOnePopup = variant === "popup" && popupStylePreset === "detail-style-one";
|
|
190
|
-
const episodesPerGroup = variant === "popup" ? POPUP_EPISODES_PER_GROUP : SHEET_EPISODES_PER_GROUP;
|
|
191
|
-
const listRef = useRef(null);
|
|
192
|
-
const scrollToTopRafRef = useRef(null);
|
|
193
|
-
const episodes = useMemo(() => {
|
|
194
|
-
return normalizeEpisodes(seriesList, "episode", (episode) => t("episodeLabel", { episode }));
|
|
195
|
-
}, [seriesList, t]);
|
|
196
|
-
const episodeGroups = useMemo(() => {
|
|
197
|
-
if (episodes.length === 0) return [];
|
|
198
|
-
const groups = [];
|
|
199
|
-
episodes.forEach((item, index) => {
|
|
200
|
-
const groupIndex = Math.floor(index / episodesPerGroup);
|
|
201
|
-
if (!groups[groupIndex]) groups[groupIndex] = [];
|
|
202
|
-
groups[groupIndex].push(item);
|
|
203
|
-
});
|
|
204
|
-
return groups;
|
|
205
|
-
}, [episodes, episodesPerGroup]);
|
|
206
|
-
const activeGroupIndex = useMemo(() => {
|
|
207
|
-
if (!activeEpisodeId) return 0;
|
|
208
|
-
const activeIndex = episodes.findIndex((item) => item.id === activeEpisodeId);
|
|
209
|
-
if (activeIndex < 0) return 0;
|
|
210
|
-
return Math.floor(activeIndex / episodesPerGroup);
|
|
211
|
-
}, [
|
|
212
|
-
activeEpisodeId,
|
|
213
|
-
episodes,
|
|
214
|
-
episodesPerGroup
|
|
215
|
-
]);
|
|
216
|
-
const [groupIndex, setGroupIndex] = useState(activeGroupIndex);
|
|
217
|
-
useEffect(() => {
|
|
218
|
-
setGroupIndex(activeGroupIndex);
|
|
219
|
-
}, [activeGroupIndex]);
|
|
220
|
-
const resolvedSummaryText = useMemo(() => {
|
|
221
|
-
if (typeof summaryText === "string" && summaryText.trim()) return summaryText;
|
|
222
|
-
return buildSeriesSummaryText(episodes.length, updateStatus, t);
|
|
223
|
-
}, [
|
|
224
|
-
episodes.length,
|
|
225
|
-
summaryText,
|
|
226
|
-
t,
|
|
227
|
-
updateStatus
|
|
228
|
-
]);
|
|
229
|
-
const resolvedTitle = title || t("selectorTitle");
|
|
230
|
-
const resolvedVideoTitle = String(videoTitle || "").trim();
|
|
231
|
-
const resolveEpisodeButtonTitle = useCallback((item) => {
|
|
232
|
-
return buildEpisodeDisplayTitle(t("episodeLabel", { episode: item.series_num }), resolvedVideoTitle);
|
|
233
|
-
}, [resolvedVideoTitle, t]);
|
|
234
|
-
function scrollToTop() {
|
|
235
|
-
const el = listRef.current;
|
|
236
|
-
if (!el) return;
|
|
237
|
-
if (scrollToTopRafRef.current) {
|
|
238
|
-
window.cancelAnimationFrame(scrollToTopRafRef.current);
|
|
239
|
-
scrollToTopRafRef.current = null;
|
|
240
|
-
}
|
|
241
|
-
el.scrollTop = 0;
|
|
242
|
-
try {
|
|
243
|
-
el.scrollTo({
|
|
244
|
-
top: 0,
|
|
245
|
-
left: 0,
|
|
246
|
-
behavior: "auto"
|
|
247
|
-
});
|
|
248
|
-
} catch {}
|
|
249
|
-
scrollToTopRafRef.current = window.requestAnimationFrame(() => {
|
|
250
|
-
scrollToTopRafRef.current = null;
|
|
251
|
-
const latest = listRef.current;
|
|
252
|
-
if (latest) latest.scrollTop = 0;
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
useEffect(() => {
|
|
256
|
-
if (open) scrollToTop();
|
|
257
|
-
}, [
|
|
258
|
-
open,
|
|
259
|
-
showEpisodeTitle,
|
|
260
|
-
groupIndex
|
|
261
|
-
]);
|
|
262
|
-
function handleToggleTitle(nextValue) {
|
|
263
|
-
if (!onToggleTitle) return;
|
|
264
|
-
onToggleTitle(nextValue);
|
|
265
|
-
scrollToTop();
|
|
266
|
-
}
|
|
267
|
-
function handleSelectEpisode(item) {
|
|
268
|
-
onSelectEpisode?.(item.id, item.series_num);
|
|
269
|
-
onClose();
|
|
270
|
-
}
|
|
271
|
-
const columns = useTitleLayout ? 2 : 5;
|
|
272
|
-
const groupTabs = episodeGroups.length > 1 ? /* @__PURE__ */ jsx("div", {
|
|
273
|
-
className: "shrink-0 w-full flex gap-[8px] overflow-x-auto",
|
|
274
|
-
children: episodeGroups.map((group, index) => {
|
|
275
|
-
if (group.length === 0) return null;
|
|
276
|
-
const isActive = index === groupIndex;
|
|
277
|
-
const start = index * episodesPerGroup + 1;
|
|
278
|
-
const end = Math.min((index + 1) * episodesPerGroup, episodes.length);
|
|
279
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
280
|
-
className: `shrink-0 px-[16px] py-[6px] rounded-[16px] text-[14px] transition-colors cursor-pointer relative overflow-hidden ${isActive ? "text-theme5 bg-bg2" : "text-text2 bg-bg2"}`,
|
|
281
|
-
onClick: () => {
|
|
282
|
-
setGroupIndex(index);
|
|
283
|
-
scrollToTop();
|
|
284
|
-
},
|
|
285
|
-
children: [
|
|
286
|
-
start,
|
|
287
|
-
"-",
|
|
288
|
-
end,
|
|
289
|
-
isActive && /* @__PURE__ */ jsx("div", { className: "absolute w-full h-full top-0 left-0 opacity-20 bg-theme5" })
|
|
290
|
-
]
|
|
291
|
-
}, `series-group-${index}`);
|
|
292
|
-
})
|
|
293
|
-
}) : null;
|
|
294
|
-
const summaryRow = /* @__PURE__ */ jsxs("div", {
|
|
295
|
-
className: "pb-[8px] flex justify-between",
|
|
296
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
297
|
-
className: "text-[16px] text-text1",
|
|
298
|
-
children: resolvedSummaryText
|
|
299
|
-
}), canToggleTitle && /* @__PURE__ */ jsxs("div", {
|
|
300
|
-
className: "flex items-center gap-[4px]",
|
|
301
|
-
children: [/* @__PURE__ */ jsx(Switch, {
|
|
302
|
-
size: "sm",
|
|
303
|
-
className: "data-checked:bg-theme5 h-[20px] w-[33px]",
|
|
304
|
-
checked: showEpisodeTitle,
|
|
305
|
-
onCheckedChange: (value) => {
|
|
306
|
-
handleToggleTitle(Boolean(value));
|
|
307
|
-
}
|
|
308
|
-
}), /* @__PURE__ */ jsx("button", {
|
|
309
|
-
type: "button",
|
|
310
|
-
className: "text-[16px] text-text1",
|
|
311
|
-
onClick: () => {
|
|
312
|
-
handleToggleTitle(!showEpisodeTitle);
|
|
313
|
-
},
|
|
314
|
-
children: t("episodeTitle")
|
|
315
|
-
})]
|
|
316
|
-
})]
|
|
317
|
-
});
|
|
318
|
-
const grid = /* @__PURE__ */ jsx("div", {
|
|
319
|
-
className: `grid w-full gap-2 ${columns === 2 ? "grid-cols-2" : "grid-cols-5"}`,
|
|
320
|
-
children: (episodeGroups[groupIndex] || []).map((item, index) => {
|
|
321
|
-
const isActive = Boolean(activeEpisodeId && item.id === activeEpisodeId);
|
|
322
|
-
return /* @__PURE__ */ jsx("button", {
|
|
323
|
-
type: "button",
|
|
324
|
-
"data-episode-id": item.id,
|
|
325
|
-
onClick: () => {
|
|
326
|
-
handleSelectEpisode(item);
|
|
327
|
-
},
|
|
328
|
-
className: `flex items-center justify-center w-full h-[56px] rounded-[8px] transition-colors ${isActive ? "" : "bg-white/10"} cursor-pointer select-none transition-colors relative overflow-hidden ${useTitleLayout ? "h-[72px] px-[10px] text-[14px]" : ""} ${index % columns === 0 ? "" : "border-l-0"}`,
|
|
329
|
-
children: useTitleLayout ? /* @__PURE__ */ jsx("span", {
|
|
330
|
-
className: "block w-full truncate leading-[22px]",
|
|
331
|
-
children: resolveEpisodeButtonTitle(item)
|
|
332
|
-
}) : item.series_num
|
|
333
|
-
}, item.id);
|
|
334
|
-
})
|
|
335
|
-
});
|
|
336
|
-
const popupGroupTabs = episodeGroups.length > 1 ? /* @__PURE__ */ jsx("div", {
|
|
337
|
-
className: "flex gap-[8px] overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
338
|
-
children: episodeGroups.map((group, index) => {
|
|
339
|
-
if (group.length === 0) return null;
|
|
340
|
-
const isActive = index === groupIndex;
|
|
341
|
-
const start = index * episodesPerGroup + 1;
|
|
342
|
-
const end = Math.min((index + 1) * episodesPerGroup, episodes.length);
|
|
343
|
-
return /* @__PURE__ */ jsx("button", {
|
|
344
|
-
type: "button",
|
|
345
|
-
className: `flex h-[28px] w-[72px] shrink-0 items-center justify-center rounded-[100px] px-[4px] transition-colors ${isActive ? "bg-[linear-gradient(90deg,#9756E3_0%,#6C43EE_100%)] text-white" : "bg-white/20 text-white"}`,
|
|
346
|
-
onClick: () => {
|
|
347
|
-
setGroupIndex(index);
|
|
348
|
-
scrollToTop();
|
|
349
|
-
},
|
|
350
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
351
|
-
className: "font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[20px]",
|
|
352
|
-
children: [
|
|
353
|
-
start,
|
|
354
|
-
"-",
|
|
355
|
-
end
|
|
356
|
-
]
|
|
357
|
-
})
|
|
358
|
-
}, `series-popup-group-${index}`);
|
|
359
|
-
})
|
|
360
|
-
}) : null;
|
|
361
|
-
const popupSummaryRow = /* @__PURE__ */ jsxs("div", {
|
|
362
|
-
className: "flex items-center justify-between",
|
|
363
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
364
|
-
className: "font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] text-white/60",
|
|
365
|
-
children: resolvedSummaryText
|
|
366
|
-
}), canToggleTitle && /* @__PURE__ */ jsxs("button", {
|
|
367
|
-
type: "button",
|
|
368
|
-
className: "flex items-center gap-[3px] text-white/60",
|
|
369
|
-
onClick: () => {
|
|
370
|
-
handleToggleTitle(!showEpisodeTitle);
|
|
371
|
-
},
|
|
372
|
-
children: [/* @__PURE__ */ jsx(EpisodeTitleToggleIcon, { active: showEpisodeTitle }), /* @__PURE__ */ jsx("span", {
|
|
373
|
-
className: "font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] text-white/60",
|
|
374
|
-
children: t("episodeTitle")
|
|
375
|
-
})]
|
|
376
|
-
})]
|
|
377
|
-
});
|
|
378
|
-
const popupGrid = useTitleLayout ? /* @__PURE__ */ jsx("div", {
|
|
379
|
-
className: "flex w-full flex-col gap-[12px]",
|
|
380
|
-
children: (episodeGroups[groupIndex] || []).map((item) => {
|
|
381
|
-
const isActive = Boolean(activeEpisodeId && item.id === activeEpisodeId);
|
|
382
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
383
|
-
type: "button",
|
|
384
|
-
"data-episode-id": item.id,
|
|
385
|
-
onClick: () => {
|
|
386
|
-
handleSelectEpisode(item);
|
|
387
|
-
},
|
|
388
|
-
className: `relative flex w-full items-start overflow-hidden rounded-[8px] px-[16px] py-[18px] text-left transition-colors ${isActive ? useDetailStyleOnePopup ? "" : "border border-[#FF1EFF] bg-[linear-gradient(90deg,rgba(246,206,255,0.1)_0%,rgba(246,206,255,0.1)_100%),linear-gradient(90deg,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0.1)_100%)]" : "bg-white/10"}`,
|
|
389
|
-
children: [isActive && useDetailStyleOnePopup && /* @__PURE__ */ jsx(DetailStyleOneActiveBorderLayer, {}), /* @__PURE__ */ jsx("span", {
|
|
390
|
-
className: `relative z-[1] block w-full truncate font-['PingFang_SC'] text-[14px] ${isActive ? "font-medium leading-[16px] text-[#CA3FE9]" : "font-normal leading-[16px] text-white/80"}`,
|
|
391
|
-
children: resolveEpisodeButtonTitle(item)
|
|
392
|
-
})]
|
|
393
|
-
}, `popup-${item.id}`);
|
|
394
|
-
})
|
|
395
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
396
|
-
className: "grid w-full grid-cols-[repeat(6,52px)] justify-between gap-y-[8px]",
|
|
397
|
-
children: (episodeGroups[groupIndex] || []).map((item) => {
|
|
398
|
-
const isActive = Boolean(activeEpisodeId && item.id === activeEpisodeId);
|
|
399
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
400
|
-
type: "button",
|
|
401
|
-
"data-episode-id": item.id,
|
|
402
|
-
onClick: () => {
|
|
403
|
-
handleSelectEpisode(item);
|
|
404
|
-
},
|
|
405
|
-
className: `relative flex h-[52px] w-[52px] items-center justify-center overflow-hidden rounded-[8px] transition-colors ${isActive ? useDetailStyleOnePopup ? "text-[#9756E3]" : "border border-[#E62AFF]/90 bg-[linear-gradient(90deg,rgba(246,206,255,0.1)_0%,rgba(246,206,255,0.1)_100%),linear-gradient(90deg,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0.1)_100%)] text-[#9756E3]" : "bg-white/10 text-white/80"}`,
|
|
406
|
-
children: [isActive && useDetailStyleOnePopup && /* @__PURE__ */ jsx(DetailStyleOneActiveBorderLayer, {}), /* @__PURE__ */ jsx("span", {
|
|
407
|
-
className: "relative z-[1] font-['PingFang_SC'] text-[16px] font-medium not-italic leading-[16px]",
|
|
408
|
-
children: item.series_num
|
|
409
|
-
})]
|
|
410
|
-
}, `popup-${item.id}`);
|
|
411
|
-
})
|
|
412
|
-
});
|
|
413
|
-
if (variant === "sheet") return /* @__PURE__ */ jsx(Sheet, {
|
|
414
|
-
open,
|
|
415
|
-
onOpenChange: (next) => !next && onClose(),
|
|
416
|
-
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
417
|
-
side: "bottom",
|
|
418
|
-
showCloseButton: true,
|
|
419
|
-
className: "min-h-[50vh] bg-bg1 text-text1 rounded-t-2xl border-t border-white/10",
|
|
420
|
-
children: [
|
|
421
|
-
/* @__PURE__ */ jsx(SheetHeader, {
|
|
422
|
-
className: "pt-3 pb-0",
|
|
423
|
-
children: /* @__PURE__ */ jsx(SheetTitle, {
|
|
424
|
-
className: "flex items-center justify-between text-lg text-text1",
|
|
425
|
-
children: resolvedTitle
|
|
426
|
-
})
|
|
427
|
-
}),
|
|
428
|
-
/* @__PURE__ */ jsxs("div", {
|
|
429
|
-
className: "px-4 pb-2 flex flex-col gap-3",
|
|
430
|
-
children: [groupTabs, summaryRow]
|
|
431
|
-
}),
|
|
432
|
-
/* @__PURE__ */ jsx("div", {
|
|
433
|
-
ref: listRef,
|
|
434
|
-
className: "flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto px-4",
|
|
435
|
-
children: grid
|
|
436
|
-
})
|
|
437
|
-
]
|
|
438
|
-
})
|
|
439
|
-
});
|
|
440
|
-
return /* @__PURE__ */ jsx(Popup, {
|
|
441
|
-
open,
|
|
442
|
-
onOpenChange: (next) => {
|
|
443
|
-
if (!next) onClose();
|
|
444
|
-
},
|
|
445
|
-
showCloseButton: false,
|
|
446
|
-
className: "!gap-0 !border-0 !bg-transparent !p-0 !shadow-none",
|
|
447
|
-
overlayClassName: "bg-black/50 backdrop-blur-0",
|
|
448
|
-
children: /* @__PURE__ */ jsxs(Box, {
|
|
449
|
-
className: "flex h-full w-full flex-col overflow-hidden rounded-t-[16px] bg-black text-text1",
|
|
450
|
-
style: {
|
|
451
|
-
height: "70vh",
|
|
452
|
-
...popupBodyStyle
|
|
453
|
-
},
|
|
454
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
455
|
-
className: "shrink-0 flex items-center justify-between px-[16px] pt-[32px]",
|
|
456
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
457
|
-
className: "font-['PingFang_SC'] text-[18px] font-medium not-italic leading-[24px] text-white",
|
|
458
|
-
children: resolvedTitle
|
|
459
|
-
}), /* @__PURE__ */ jsx("button", {
|
|
460
|
-
type: "button",
|
|
461
|
-
"aria-label": "关闭",
|
|
462
|
-
className: "flex h-[24px] w-[24px] items-center justify-center text-white opacity-60",
|
|
463
|
-
onClick: onClose,
|
|
464
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
465
|
-
className: "flex h-[24px] w-[24px] items-center overflow-hidden p-[2px]",
|
|
466
|
-
children: /* @__PURE__ */ jsx(DetailPopupCloseIcon, {})
|
|
467
|
-
})
|
|
468
|
-
})]
|
|
469
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
470
|
-
className: "flex-1 h-0 w-full px-[16px] pb-[24px]",
|
|
471
|
-
children: /* @__PURE__ */ jsxs(Box, {
|
|
472
|
-
className: "flex h-full flex-col",
|
|
473
|
-
children: [
|
|
474
|
-
popupGroupTabs && /* @__PURE__ */ jsx(Box, {
|
|
475
|
-
className: "mt-[16px] shrink-0",
|
|
476
|
-
children: popupGroupTabs
|
|
477
|
-
}),
|
|
478
|
-
/* @__PURE__ */ jsx(Box, {
|
|
479
|
-
className: "mt-[16px] shrink-0",
|
|
480
|
-
children: popupSummaryRow
|
|
481
|
-
}),
|
|
482
|
-
/* @__PURE__ */ jsx(Box, {
|
|
483
|
-
ref: listRef,
|
|
484
|
-
className: `flex-1 overflow-y-auto pb-[17px] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${useTitleLayout ? "mt-[12px]" : "mt-[8px]"}`,
|
|
485
|
-
children: popupGrid
|
|
486
|
-
})
|
|
487
|
-
]
|
|
488
|
-
})
|
|
489
|
-
})]
|
|
490
|
-
})
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* DetailSeriesEpisodes
|
|
495
|
-
*
|
|
496
|
-
* 用于视频详情页:包含“选集入口 + 横向集数条 + 弹层”。
|
|
497
|
-
*/
|
|
498
|
-
function DetailSeriesEpisodes({ information, series_num, onEpisodeChange }) {
|
|
499
|
-
const t = useTranslations("components.common");
|
|
500
|
-
const [selectSeriesVisible, setSelectSeriesVisible] = useKeepAliveState(`detail-series-popup-${information.id}`, false);
|
|
501
|
-
const [showEpisodeTitle, setShowEpisodeTitle] = useKeepAliveState(`detail-series-title-toggle-${information.id}`, false);
|
|
502
|
-
const [savedEpisodeScrollLeft, setSavedEpisodeScrollLeft] = useKeepAliveState(`detail-series-scroll-left-${information.id}`, null);
|
|
503
|
-
const [optimisticSeriesNum, setOptimisticSeriesNum] = useState(series_num);
|
|
504
|
-
useEffect(() => {
|
|
505
|
-
setOptimisticSeriesNum(series_num);
|
|
506
|
-
}, [information.id, series_num]);
|
|
507
|
-
/**
|
|
508
|
-
* 对外暴露「关闭选集弹窗」事件,供 WebView 导航守卫主动收口。
|
|
509
|
-
*/
|
|
510
|
-
useEffect(() => {
|
|
511
|
-
if (typeof window === "undefined") return;
|
|
512
|
-
const handleCloseSeriesPopup = () => {
|
|
513
|
-
setSelectSeriesVisible(false);
|
|
514
|
-
};
|
|
515
|
-
window.addEventListener(DETAIL_SERIES_POPUP_CLOSE_EVENT, handleCloseSeriesPopup);
|
|
516
|
-
return () => {
|
|
517
|
-
window.removeEventListener(DETAIL_SERIES_POPUP_CLOSE_EVENT, handleCloseSeriesPopup);
|
|
518
|
-
};
|
|
519
|
-
}, [setSelectSeriesVisible]);
|
|
520
|
-
/**
|
|
521
|
-
* 对外暴露「选集弹窗是否打开」查询事件,支持多实例合并状态。
|
|
522
|
-
*/
|
|
523
|
-
useEffect(() => {
|
|
524
|
-
if (typeof window === "undefined") return;
|
|
525
|
-
const handleQuerySeriesPopupState = (event) => {
|
|
526
|
-
if (!isDetailSeriesPopupQueryEvent(event)) return;
|
|
527
|
-
const detail = event.detail || {};
|
|
528
|
-
detail.open = Boolean(detail.open) || Boolean(selectSeriesVisible);
|
|
529
|
-
};
|
|
530
|
-
window.addEventListener(DETAIL_SERIES_POPUP_QUERY_EVENT, handleQuerySeriesPopupState);
|
|
531
|
-
return () => {
|
|
532
|
-
window.removeEventListener(DETAIL_SERIES_POPUP_QUERY_EVENT, handleQuerySeriesPopupState);
|
|
533
|
-
};
|
|
534
|
-
}, [selectSeriesVisible]);
|
|
535
|
-
useEffect(() => {
|
|
536
|
-
if (selectSeriesVisible) trackPageClick("page_video_detail", "详情页", null, "detail_select_episode_popup");
|
|
537
|
-
}, [selectSeriesVisible]);
|
|
538
|
-
const seriesItems = useMemo(() => {
|
|
539
|
-
return normalizeEpisodesForDetail((information.links || []).map((link) => ({
|
|
540
|
-
id: link.id,
|
|
541
|
-
name: link.name
|
|
542
|
-
})), information.id || "episode", (episode) => t("seriesEpisodes.episodeLabel", { episode }));
|
|
543
|
-
}, [
|
|
544
|
-
information.id,
|
|
545
|
-
information.links,
|
|
546
|
-
t
|
|
547
|
-
]);
|
|
548
|
-
const seriesTotalText = information.update_status === "1" ? t("seriesEpisodes.completedSeriesTotal", { total: information.links.length }) : t("seriesEpisodes.ongoingSeriesUpdatedTo", { total: information.links.length });
|
|
549
|
-
const currentPlayingSeriesId = useMemo(() => {
|
|
550
|
-
return information.links[optimisticSeriesNum - 1]?.id || information.links[0]?.id || "";
|
|
551
|
-
}, [information.links, optimisticSeriesNum]);
|
|
552
|
-
const scrollRef = useRef(null);
|
|
553
|
-
const switchingTargetSeriesNumRef = useRef(null);
|
|
554
|
-
const switchingSourceRef = useRef(null);
|
|
555
|
-
const hasInitialAlignedRef = useRef(false);
|
|
556
|
-
const switchLoadingToastIdRef = useRef(null);
|
|
557
|
-
const switchTimeoutRef = useRef(null);
|
|
558
|
-
const switchSuccessDelayTimeoutRef = useRef(null);
|
|
559
|
-
const [isEpisodeSwitching, setIsEpisodeSwitching] = useState(false);
|
|
560
|
-
const scrollToCurrentEpisode = useCallback((targetId, behavior = "smooth") => {
|
|
561
|
-
const target = scrollRef.current?.querySelector(`[data-content-id="${targetId}"]`);
|
|
562
|
-
if (target && scrollRef.current) {
|
|
563
|
-
const parent = scrollRef.current;
|
|
564
|
-
const targetLeft = Math.max(0, target.offsetLeft - 10);
|
|
565
|
-
parent.scrollTo({
|
|
566
|
-
left: targetLeft,
|
|
567
|
-
behavior
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
}, []);
|
|
571
|
-
const clearSwitchTimeout = useCallback(() => {
|
|
572
|
-
if (switchTimeoutRef.current === null) return;
|
|
573
|
-
window.clearTimeout(switchTimeoutRef.current);
|
|
574
|
-
switchTimeoutRef.current = null;
|
|
575
|
-
}, []);
|
|
576
|
-
const clearSwitchSuccessDelayTimeout = useCallback(() => {
|
|
577
|
-
if (switchSuccessDelayTimeoutRef.current === null) return;
|
|
578
|
-
window.clearTimeout(switchSuccessDelayTimeoutRef.current);
|
|
579
|
-
switchSuccessDelayTimeoutRef.current = null;
|
|
580
|
-
}, []);
|
|
581
|
-
const hideSwitchLoading = useCallback(() => {
|
|
582
|
-
if (switchLoadingToastIdRef.current !== null) {
|
|
583
|
-
toast.dismiss(switchLoadingToastIdRef.current);
|
|
584
|
-
switchLoadingToastIdRef.current = null;
|
|
585
|
-
}
|
|
586
|
-
clearSwitchTimeout();
|
|
587
|
-
clearSwitchSuccessDelayTimeout();
|
|
588
|
-
}, [clearSwitchSuccessDelayTimeout, clearSwitchTimeout]);
|
|
589
|
-
const clearSwitchingState = useCallback(() => {
|
|
590
|
-
switchingTargetSeriesNumRef.current = null;
|
|
591
|
-
switchingSourceRef.current = null;
|
|
592
|
-
hideSwitchLoading();
|
|
593
|
-
setIsEpisodeSwitching(false);
|
|
594
|
-
}, [hideSwitchLoading]);
|
|
595
|
-
const scheduleClearSwitchingState = useCallback((expectedSeriesNum, delay) => {
|
|
596
|
-
clearSwitchSuccessDelayTimeout();
|
|
597
|
-
switchSuccessDelayTimeoutRef.current = window.setTimeout(() => {
|
|
598
|
-
switchSuccessDelayTimeoutRef.current = null;
|
|
599
|
-
if (switchingTargetSeriesNumRef.current !== expectedSeriesNum) return;
|
|
600
|
-
clearSwitchingState();
|
|
601
|
-
}, Math.max(0, delay));
|
|
602
|
-
}, [clearSwitchSuccessDelayTimeout, clearSwitchingState]);
|
|
603
|
-
useEffect(() => {
|
|
604
|
-
hasInitialAlignedRef.current = false;
|
|
605
|
-
}, [information.id]);
|
|
606
|
-
useEffect(() => {
|
|
607
|
-
if (hasInitialAlignedRef.current || !currentPlayingSeriesId) return;
|
|
608
|
-
const frame = window.requestAnimationFrame(() => {
|
|
609
|
-
const container = scrollRef.current;
|
|
610
|
-
if (!container) return;
|
|
611
|
-
if (typeof savedEpisodeScrollLeft === "number") container.scrollTo({
|
|
612
|
-
left: Math.max(0, savedEpisodeScrollLeft),
|
|
613
|
-
behavior: "auto"
|
|
614
|
-
});
|
|
615
|
-
else {
|
|
616
|
-
scrollToCurrentEpisode(currentPlayingSeriesId, "auto");
|
|
617
|
-
setSavedEpisodeScrollLeft(Math.max(0, Math.round(container.scrollLeft)));
|
|
618
|
-
}
|
|
619
|
-
hasInitialAlignedRef.current = true;
|
|
620
|
-
});
|
|
621
|
-
return () => {
|
|
622
|
-
window.cancelAnimationFrame(frame);
|
|
623
|
-
};
|
|
624
|
-
}, [
|
|
625
|
-
currentPlayingSeriesId,
|
|
626
|
-
savedEpisodeScrollLeft,
|
|
627
|
-
scrollToCurrentEpisode,
|
|
628
|
-
setSavedEpisodeScrollLeft
|
|
629
|
-
]);
|
|
630
|
-
useEffect(() => {
|
|
631
|
-
const pendingSeriesNum = switchingTargetSeriesNumRef.current;
|
|
632
|
-
if (!pendingSeriesNum || pendingSeriesNum !== series_num) return;
|
|
633
|
-
scheduleClearSwitchingState(pendingSeriesNum, EPISODE_SWITCH_SUCCESS_TOAST_DELAY_MS);
|
|
634
|
-
}, [scheduleClearSwitchingState, series_num]);
|
|
635
|
-
useEffect(() => {
|
|
636
|
-
return () => {
|
|
637
|
-
clearSwitchingState();
|
|
638
|
-
};
|
|
639
|
-
}, [clearSwitchingState]);
|
|
640
|
-
/**
|
|
641
|
-
* 点击横向剧集时,若点击点落在容器中线到右侧,则把目标项尽量移动到容器中线位置。
|
|
642
|
-
*/
|
|
643
|
-
const maybeCenterInlineEpisodeFromMidRightClick = useCallback((targetId, fallbackScrollLeft, clickClientX) => {
|
|
644
|
-
const container = scrollRef.current;
|
|
645
|
-
if (!container || !targetId) return fallbackScrollLeft;
|
|
646
|
-
const targetElement = container.querySelector(`[data-content-id="${targetId}"]`);
|
|
647
|
-
if (!targetElement) return fallbackScrollLeft;
|
|
648
|
-
const containerRect = container.getBoundingClientRect();
|
|
649
|
-
if (containerRect.width <= 0) return fallbackScrollLeft;
|
|
650
|
-
if (typeof clickClientX !== "number") return fallbackScrollLeft;
|
|
651
|
-
if ((clickClientX - containerRect.left) / containerRect.width < INLINE_EPISODE_MID_RIGHT_TRIGGER_RATIO) return fallbackScrollLeft;
|
|
652
|
-
const targetCenterOffset = targetElement.offsetLeft + targetElement.offsetWidth / 2;
|
|
653
|
-
const desiredCenterOffset = container.clientWidth / 2;
|
|
654
|
-
const maxScrollLeft = Math.max(0, container.scrollWidth - container.clientWidth);
|
|
655
|
-
const nextScrollLeft = Math.min(maxScrollLeft, Math.max(0, targetCenterOffset - desiredCenterOffset));
|
|
656
|
-
container.scrollTo({
|
|
657
|
-
left: nextScrollLeft,
|
|
658
|
-
behavior: "smooth"
|
|
659
|
-
});
|
|
660
|
-
return Math.round(nextScrollLeft);
|
|
661
|
-
}, []);
|
|
662
|
-
const handleSwitchEpisode = useCallback((episode, source = "inline", targetEpisodeId, clickClientX) => {
|
|
663
|
-
if (episode === optimisticSeriesNum) return;
|
|
664
|
-
if (!information.links[episode - 1]) {
|
|
665
|
-
toast.error(t("seriesEpisodes.episodeNotFound"));
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
if (typeof window !== "undefined" && window.isWebView === true) {
|
|
669
|
-
try {
|
|
670
|
-
setOptimisticSeriesNum(episode);
|
|
671
|
-
const targetId = targetEpisodeId || information.links[episode - 1]?.id || "";
|
|
672
|
-
const currentScrollLeft = Math.max(0, Math.round(scrollRef.current?.scrollLeft || 0));
|
|
673
|
-
if (source === "popup") {
|
|
674
|
-
if (targetId) scrollToCurrentEpisode(targetId, "auto");
|
|
675
|
-
setSavedEpisodeScrollLeft(Math.max(0, Math.round(scrollRef.current?.scrollLeft || 0)));
|
|
676
|
-
} else setSavedEpisodeScrollLeft(maybeCenterInlineEpisodeFromMidRightClick(targetId, currentScrollLeft, clickClientX));
|
|
677
|
-
setIsEpisodeSwitching(true);
|
|
678
|
-
hideSwitchLoading();
|
|
679
|
-
switchLoadingToastIdRef.current = toast.loading(t("seriesEpisodes.episodeSwitching"));
|
|
680
|
-
switchingTargetSeriesNumRef.current = episode;
|
|
681
|
-
switchingSourceRef.current = source;
|
|
682
|
-
switchTimeoutRef.current = window.setTimeout(() => {
|
|
683
|
-
if (switchingTargetSeriesNumRef.current !== episode) return;
|
|
684
|
-
setOptimisticSeriesNum(series_num);
|
|
685
|
-
clearSwitchingState();
|
|
686
|
-
toast.error(t("seriesEpisodes.episodeSwitchFailed"));
|
|
687
|
-
}, 3e3);
|
|
688
|
-
onEpisodeChange(episode);
|
|
689
|
-
} catch (error) {
|
|
690
|
-
setOptimisticSeriesNum(series_num);
|
|
691
|
-
clearSwitchingState();
|
|
692
|
-
console.error("切换剧集失败", error);
|
|
693
|
-
toast.error(t("seriesEpisodes.episodeSwitchFailed"));
|
|
694
|
-
}
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
try {
|
|
698
|
-
setOptimisticSeriesNum(episode);
|
|
699
|
-
const targetId = targetEpisodeId || information.links[episode - 1]?.id || "";
|
|
700
|
-
const currentScrollLeft = Math.max(0, Math.round(scrollRef.current?.scrollLeft || 0));
|
|
701
|
-
if (source === "popup") {
|
|
702
|
-
if (targetId) scrollToCurrentEpisode(targetId, "auto");
|
|
703
|
-
setSavedEpisodeScrollLeft(Math.max(0, Math.round(scrollRef.current?.scrollLeft || 0)));
|
|
704
|
-
} else setSavedEpisodeScrollLeft(maybeCenterInlineEpisodeFromMidRightClick(targetId, currentScrollLeft, clickClientX));
|
|
705
|
-
setIsEpisodeSwitching(true);
|
|
706
|
-
hideSwitchLoading();
|
|
707
|
-
switchLoadingToastIdRef.current = toast.loading(t("seriesEpisodes.episodeSwitching"));
|
|
708
|
-
switchingTargetSeriesNumRef.current = episode;
|
|
709
|
-
switchingSourceRef.current = source;
|
|
710
|
-
switchTimeoutRef.current = window.setTimeout(() => {
|
|
711
|
-
if (switchingTargetSeriesNumRef.current !== episode) return;
|
|
712
|
-
setOptimisticSeriesNum(series_num);
|
|
713
|
-
clearSwitchingState();
|
|
714
|
-
toast.error(t("seriesEpisodes.episodeSwitchFailed"));
|
|
715
|
-
}, 8e3);
|
|
716
|
-
onEpisodeChange(episode);
|
|
717
|
-
} catch (error) {
|
|
718
|
-
setOptimisticSeriesNum(series_num);
|
|
719
|
-
clearSwitchingState();
|
|
720
|
-
console.error("切换剧集失败", error);
|
|
721
|
-
toast.error(t("seriesEpisodes.episodeSwitchFailed"));
|
|
722
|
-
}
|
|
723
|
-
}, [
|
|
724
|
-
clearSwitchingState,
|
|
725
|
-
hideSwitchLoading,
|
|
726
|
-
information.links,
|
|
727
|
-
onEpisodeChange,
|
|
728
|
-
optimisticSeriesNum,
|
|
729
|
-
series_num,
|
|
730
|
-
maybeCenterInlineEpisodeFromMidRightClick,
|
|
731
|
-
scrollToCurrentEpisode,
|
|
732
|
-
setSavedEpisodeScrollLeft,
|
|
733
|
-
t
|
|
734
|
-
]);
|
|
735
|
-
const [popupHeight, setPopupHeight] = useState("70vh");
|
|
736
|
-
const calculatePopupHeight = useCallback(() => {
|
|
737
|
-
if (typeof window === "undefined") return;
|
|
738
|
-
if (window.isWebView === true) {
|
|
739
|
-
setPopupHeight("100vh");
|
|
740
|
-
return;
|
|
741
|
-
}
|
|
742
|
-
const anchor = document.getElementById("selectPopupPosition");
|
|
743
|
-
const viewportHeight = window.visualViewport?.height || window.innerHeight;
|
|
744
|
-
if (!anchor) {
|
|
745
|
-
setPopupHeight("70vh");
|
|
746
|
-
return;
|
|
747
|
-
}
|
|
748
|
-
const height = Math.max(0, viewportHeight - anchor.offsetTop);
|
|
749
|
-
if (height <= 0) {
|
|
750
|
-
setPopupHeight("70vh");
|
|
751
|
-
return;
|
|
752
|
-
}
|
|
753
|
-
setPopupHeight(`${height}px`);
|
|
754
|
-
}, []);
|
|
755
|
-
useEffect(() => {
|
|
756
|
-
if (!selectSeriesVisible) return;
|
|
757
|
-
calculatePopupHeight();
|
|
758
|
-
const handleResize = () => {
|
|
759
|
-
calculatePopupHeight();
|
|
760
|
-
};
|
|
761
|
-
window.addEventListener("resize", handleResize);
|
|
762
|
-
window.addEventListener("scroll", handleResize, true);
|
|
763
|
-
return () => {
|
|
764
|
-
window.removeEventListener("resize", handleResize);
|
|
765
|
-
window.removeEventListener("scroll", handleResize, true);
|
|
766
|
-
};
|
|
767
|
-
}, [calculatePopupHeight, selectSeriesVisible]);
|
|
768
|
-
if (seriesItems.length <= 1) return null;
|
|
769
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Box, {
|
|
770
|
-
className: "w-full mt-[16px] flex flex-col items-end mb-[4px]",
|
|
771
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
772
|
-
className: "w-fit flex items-center px-[12px] h-[28px]",
|
|
773
|
-
onClick: () => {
|
|
774
|
-
trackPageClick("page_video_detail", "详情页", null, "detail_select_episode_btn");
|
|
775
|
-
setSelectSeriesVisible(true);
|
|
776
|
-
},
|
|
777
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
778
|
-
className: "text-[14px] text-text2 leading-[20px]",
|
|
779
|
-
children: seriesTotalText
|
|
780
|
-
}), /* @__PURE__ */ jsx(SvgRightArrow, { className: "w-[11px] h-[18px] ml-[4px] text-text2" })]
|
|
781
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
782
|
-
ref: scrollRef,
|
|
783
|
-
className: `w-full mt-[12px] overflow-x-auto px-[12px] flex gap-x-[8px] h-[56px] ${isEpisodeSwitching ? "touch-none" : ""}`,
|
|
784
|
-
children: seriesItems.map((item, index) => /* @__PURE__ */ jsxs("div", {
|
|
785
|
-
"data-content-id": item.id,
|
|
786
|
-
className: `relative shrink-0 h-[full] overflow-hidden px-[18px] rounded-[8px] flex items-center justify-center ${showEpisodeTitle ? "min-w-[88px] h-[40px]" : "w-[56px] !px-[0] justify-center"} ${item.id === currentPlayingSeriesId ? "bg-transparent" : "bg-white/10"}`,
|
|
787
|
-
onClick: (event) => {
|
|
788
|
-
trackPageClick("page_video_detail", "详情页", event, "detail_episode_click", {
|
|
789
|
-
episode_num: index + 1,
|
|
790
|
-
episode_id: item.id
|
|
791
|
-
});
|
|
792
|
-
handleSwitchEpisode(index + 1, "inline", item.id, event.clientX);
|
|
793
|
-
},
|
|
794
|
-
children: [item.id === currentPlayingSeriesId && /* @__PURE__ */ jsx(DetailStyleOneActiveBorderLayer, {}), /* @__PURE__ */ jsx(Text, {
|
|
795
|
-
className: `relative z-[1] text-[14px] text-text1 leading-[22px] line-clamp-2 ${item.id === currentPlayingSeriesId ? "!text-[#CA3FE9]" : ""}`,
|
|
796
|
-
children: showEpisodeTitle ? item.title : item.series_num
|
|
797
|
-
})]
|
|
798
|
-
}, item.id))
|
|
799
|
-
})]
|
|
800
|
-
}), /* @__PURE__ */ jsx(SelectorSeriesEpisodes, {
|
|
801
|
-
title: t("seriesEpisodes.selectorTitle"),
|
|
802
|
-
videoTitle: information.name,
|
|
803
|
-
variant: "popup",
|
|
804
|
-
open: selectSeriesVisible,
|
|
805
|
-
updateStatus: information.update_status,
|
|
806
|
-
summaryText: seriesTotalText,
|
|
807
|
-
seriesList: (information.links || []).map((link) => ({
|
|
808
|
-
id: link.id,
|
|
809
|
-
name: link.name
|
|
810
|
-
})),
|
|
811
|
-
activeEpisodeId: currentPlayingSeriesId,
|
|
812
|
-
showEpisodeTitle,
|
|
813
|
-
onToggleTitle: (value) => {
|
|
814
|
-
setShowEpisodeTitle(value);
|
|
815
|
-
},
|
|
816
|
-
onClose: () => setSelectSeriesVisible(false),
|
|
817
|
-
onSelectEpisode: (episodeId, episodeNum) => {
|
|
818
|
-
setSelectSeriesVisible(false);
|
|
819
|
-
handleSwitchEpisode(episodeNum, "popup", episodeId);
|
|
820
|
-
},
|
|
821
|
-
popupBodyStyle: { height: popupHeight },
|
|
822
|
-
popupStylePreset: "default"
|
|
823
|
-
})] });
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
//#endregion
|
|
827
|
-
export { DetailStyleOneActiveBorderLayer, SeriesEpisodes };
|
|
2
|
+
"use client";import{trackPageClick as e}from"../../../utils/tracking.mjs";import{Box as t}from"../../ui/box.mjs";import{Text as n}from"../../ui/text.mjs";import{Sheet as r,SheetContent as i,SheetHeader as a,SheetTitle as o}from"../../ui/sheet.mjs";import{Switch as s}from"../../ui/switch.mjs";import{useKeepAliveState as c}from"../keep-scroll-position/index.mjs";import l from"../../../assets/icons/common/right_arrow.mjs";import u from"../../ui/popup.mjs";import{toast as d}from"sonner";import{useCallback as f,useEffect as p,useMemo as m,useRef as h,useState as g}from"react";import{Fragment as _,jsx as v,jsxs as y}from"react/jsx-runtime";import{useTranslations as ee}from"next-intl";const b=`funhub:detail-series-popup-query`,x=`funhub:detail-series-popup-close`;function S(e){return e.type===b&&e instanceof CustomEvent}function C({active:e}){return e?y(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`shrink-0`,"aria-hidden":!0,children:[v(`circle`,{cx:`16`,cy:`12`,r:`3`,fill:`white`}),v(`path`,{d:`M8 5H16C19.866 5 23 8.13401 23 12C23 15.866 19.866 19 16 19H8C4.13401 19 1 15.866 1 12C1 8.13401 4.13401 5 8 5ZM16 15C17.6569 15 19 13.6569 19 12C19 10.3431 17.6569 9 16 9C14.3431 9 13 10.3431 13 12C13 13.6569 14.3431 15 16 15Z`,fill:`#9054E5`})]}):y(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`shrink-0`,"aria-hidden":!0,children:[v(`path`,{d:`M1.5 12C1.5 8.68629 4.18629 6 7.5 6H16.5C19.8137 6 22.5 8.68629 22.5 12C22.5 15.3137 19.8137 18 16.5 18H7.5C4.18629 18 1.5 15.3137 1.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeOpacity:`0.6`}),v(`circle`,{cx:`9`,cy:`12`,r:`3`,fill:`rgba(255,255,255,0.6)`})]})}function te(){return v(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`block h-[20px] w-[20px]`,"aria-hidden":!0,children:v(`path`,{d:`M10 8.61116L14.8611 3.75L16.25 5.13889L11.3889 10L16.25 14.8611L14.8611 16.25L10 11.3889L5.13889 16.25L3.75 14.8611L8.61111 10L3.75 5.13889L5.13889 3.75L10 8.61116Z`,fill:`currentColor`})})}function w(e,t){let n=String(t||``).trim();if(!n)return e;let r=e.replace(/\s+/g,``);return n.replace(/\s+/g,``)===r?e:`${e} ${n}`}function T(e,t,n){return(e||[]).map((e,r)=>{let i=Number.parseInt(e?.id||``,10),a=Number.isNaN(i)?r+1:i,o=e?.name||``,s=w(n(a),o);return{id:e?.id||`${t}-${a}`,series_num:a,title:s}})}function E(e,t,n){return(e||[]).map((e,r)=>{let i=Number(e?.id),a=Number.isNaN(i)?r+1:i,o=n(a);return{id:e?.id||`${t}-${a}`,series_num:a,title:o}})}function D(e,t,n){return e<=0?n(`singleContent`):n(t===`1`?`completedSeriesTotal`:`ongoingSeriesTotal`,{total:e})}function O(){return v(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 overflow-hidden rounded-[8px] p-[0.5px]`,style:{backgroundImage:`linear-gradient(90deg, rgba(255,30,172,0.7) 0%, rgba(108,67,238,0) 100%), linear-gradient(180deg, #9756E3 0%, #6C43EE 100%)`},children:v(`span`,{className:`block h-full w-full`,style:{borderRadius:`7.5px`,backgroundColor:`#000000`,backgroundImage:`linear-gradient(90deg, rgba(246,206,255,0.1) 0%, rgba(246,206,255,0.1) 100%), linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%)`}})})}function k(e){return e.mode===`detail`?v(j,{information:e.information,series_num:e.series_num,onEpisodeChange:e.onEpisodeChange}):v(A,{open:e.open,variant:e.variant,title:e.title,videoTitle:e.videoTitle,updateStatus:e.updateStatus,summaryText:e.summaryText,seriesList:e.seriesList,activeEpisodeId:e.activeEpisodeId,showEpisodeTitle:e.showEpisodeTitle,onToggleTitle:e.onToggleTitle,onClose:e.onClose,onSelectEpisode:e.onSelectEpisode,popupBodyStyle:e.popupBodyStyle,popupStylePreset:e.popupStylePreset})}function A({open:e,variant:c,title:l,videoTitle:d,updateStatus:_,summaryText:b,seriesList:x,activeEpisodeId:S,showEpisodeTitle:E=!1,onToggleTitle:k,onClose:A,onSelectEpisode:j,popupBodyStyle:M,popupStylePreset:N=`default`}){let P=ee(`components.common.seriesEpisodes`),F=!!k,I=F&&E,L=c===`popup`&&N===`detail-style-one`,R=h(null),z=h(null),B=m(()=>T(x,`episode`,e=>P(`episodeLabel`,{episode:e})),[x,P]),V=m(()=>{if(B.length===0)return[];let e=[];return B.forEach((t,n)=>{let r=Math.floor(n/50);e[r]||(e[r]=[]),e[r].push(t)}),e},[B,50]),H=m(()=>{if(!S)return 0;let e=B.findIndex(e=>e.id===S);return e<0?0:Math.floor(e/50)},[S,B,50]),[U,W]=g(H);p(()=>{W(H)},[H]);let G=m(()=>typeof b==`string`&&b.trim()?b:D(B.length,_,P),[B.length,b,P,_]),K=l||P(`selectorTitle`),q=String(d||``).trim(),J=f(e=>w(P(`episodeLabel`,{episode:e.series_num}),q),[q,P]);function Y(){let e=R.current;if(e){z.current&&=(window.cancelAnimationFrame(z.current),null),e.scrollTop=0;try{e.scrollTo({top:0,left:0,behavior:`auto`})}catch{}z.current=window.requestAnimationFrame(()=>{z.current=null;let e=R.current;e&&(e.scrollTop=0)})}}p(()=>{e&&Y()},[e,E,U]);function X(e){k&&(k(e),Y())}function Z(e){j?.(e.id,e.series_num),A()}let Q=I?2:5,$=V.length>1?v(`div`,{className:`shrink-0 w-full flex gap-[8px] overflow-x-auto`,children:V.map((e,t)=>{if(e.length===0)return null;let n=t===U,r=t*50+1,i=Math.min((t+1)*50,B.length);return y(`div`,{className:`shrink-0 px-[16px] py-[6px] rounded-[16px] text-[14px] transition-colors cursor-pointer relative overflow-hidden ${n?`text-theme5 bg-bg2`:`text-text2 bg-bg2`}`,onClick:()=>{W(t),Y()},children:[r,`-`,i,n&&v(`div`,{className:`absolute w-full h-full top-0 left-0 opacity-20 bg-theme5`})]},`series-group-${t}`)})}):null,ne=y(`div`,{className:`pb-[8px] flex justify-between`,children:[v(`span`,{className:`text-[16px] text-text1`,children:G}),F&&y(`div`,{className:`flex items-center gap-[4px]`,children:[v(s,{size:`sm`,className:`data-checked:bg-theme5 h-[20px] w-[33px]`,checked:E,onCheckedChange:e=>{X(!!e)}}),v(`button`,{type:`button`,className:`text-[16px] text-text1`,onClick:()=>{X(!E)},children:P(`episodeTitle`)})]})]}),re=v(`div`,{className:`grid w-full gap-2 ${Q===2?`grid-cols-2`:`grid-cols-5`}`,children:(V[U]||[]).map((e,t)=>{let n=!!(S&&e.id===S);return v(`button`,{type:`button`,"data-episode-id":e.id,onClick:()=>{Z(e)},className:`flex items-center justify-center w-full h-[56px] rounded-[8px] transition-colors ${n?``:`bg-white/10`} cursor-pointer select-none transition-colors relative overflow-hidden ${I?`h-[72px] px-[10px] text-[14px]`:``} ${t%Q===0?``:`border-l-0`}`,children:I?v(`span`,{className:`block w-full truncate leading-[22px]`,children:J(e)}):e.series_num},e.id)})}),ie=V.length>1?v(`div`,{className:`flex gap-[8px] overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden`,children:V.map((e,t)=>{if(e.length===0)return null;let n=t===U,r=t*50+1,i=Math.min((t+1)*50,B.length);return v(`button`,{type:`button`,className:`flex h-[28px] w-[72px] shrink-0 items-center justify-center rounded-[100px] px-[4px] transition-colors ${n?`bg-[linear-gradient(90deg,#9756E3_0%,#6C43EE_100%)] text-white`:`bg-white/20 text-white`}`,onClick:()=>{W(t),Y()},children:y(`span`,{className:`font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[20px]`,children:[r,`-`,i]})},`series-popup-group-${t}`)})}):null,ae=y(`div`,{className:`flex items-center justify-between`,children:[v(`span`,{className:`font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] text-white/60`,children:G}),F&&y(`button`,{type:`button`,className:`flex items-center gap-[3px] text-white/60`,onClick:()=>{X(!E)},children:[v(C,{active:E}),v(`span`,{className:`font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] text-white/60`,children:P(`episodeTitle`)})]})]}),oe=I?v(`div`,{className:`flex w-full flex-col gap-[12px]`,children:(V[U]||[]).map(e=>{let t=!!(S&&e.id===S);return y(`button`,{type:`button`,"data-episode-id":e.id,onClick:()=>{Z(e)},className:`relative flex w-full items-start overflow-hidden rounded-[8px] px-[16px] py-[18px] text-left transition-colors ${t?L?``:`border border-[#FF1EFF] bg-[linear-gradient(90deg,rgba(246,206,255,0.1)_0%,rgba(246,206,255,0.1)_100%),linear-gradient(90deg,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0.1)_100%)]`:`bg-white/10`}`,children:[t&&L&&v(O,{}),v(`span`,{className:`relative z-[1] block w-full truncate font-['PingFang_SC'] text-[14px] ${t?`font-medium leading-[16px] text-[#CA3FE9]`:`font-normal leading-[16px] text-white/80`}`,children:J(e)})]},`popup-${e.id}`)})}):v(`div`,{className:`grid w-full grid-cols-[repeat(6,52px)] justify-between gap-y-[8px]`,children:(V[U]||[]).map(e=>{let t=!!(S&&e.id===S);return y(`button`,{type:`button`,"data-episode-id":e.id,onClick:()=>{Z(e)},className:`relative flex h-[52px] w-[52px] items-center justify-center overflow-hidden rounded-[8px] transition-colors ${t?L?`text-[#9756E3]`:`border border-[#E62AFF]/90 bg-[linear-gradient(90deg,rgba(246,206,255,0.1)_0%,rgba(246,206,255,0.1)_100%),linear-gradient(90deg,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0.1)_100%)] text-[#9756E3]`:`bg-white/10 text-white/80`}`,children:[t&&L&&v(O,{}),v(`span`,{className:`relative z-[1] font-['PingFang_SC'] text-[16px] font-medium not-italic leading-[16px]`,children:e.series_num})]},`popup-${e.id}`)})});return c===`sheet`?v(r,{open:e,onOpenChange:e=>!e&&A(),children:y(i,{side:`bottom`,showCloseButton:!0,className:`min-h-[50vh] bg-bg1 text-text1 rounded-t-2xl border-t border-white/10`,children:[v(a,{className:`pt-3 pb-0`,children:v(o,{className:`flex items-center justify-between text-lg text-text1`,children:K})}),y(`div`,{className:`px-4 pb-2 flex flex-col gap-3`,children:[$,ne]}),v(`div`,{ref:R,className:`flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto px-4`,children:re})]})}):v(u,{open:e,onOpenChange:e=>{e||A()},showCloseButton:!1,className:`!gap-0 !border-0 !bg-transparent !p-0 !shadow-none`,overlayClassName:`bg-black/50 backdrop-blur-0`,children:y(t,{className:`flex h-full w-full flex-col overflow-hidden rounded-t-[16px] bg-black text-text1`,style:{height:`70vh`,...M},children:[y(t,{className:`shrink-0 flex items-center justify-between px-[16px] pt-[32px]`,children:[v(n,{className:`font-['PingFang_SC'] text-[18px] font-medium not-italic leading-[24px] text-white`,children:K}),v(`button`,{type:`button`,"aria-label":`关闭`,className:`flex h-[24px] w-[24px] items-center justify-center text-white opacity-60`,onClick:A,children:v(`span`,{className:`flex h-[24px] w-[24px] items-center overflow-hidden p-[2px]`,children:v(te,{})})})]}),v(t,{className:`flex-1 h-0 w-full px-[16px] pb-[24px]`,children:y(t,{className:`flex h-full flex-col`,children:[ie&&v(t,{className:`mt-[16px] shrink-0`,children:ie}),v(t,{className:`mt-[16px] shrink-0`,children:ae}),v(t,{ref:R,className:`flex-1 overflow-y-auto pb-[17px] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${I?`mt-[12px]`:`mt-[8px]`}`,children:oe})]})})]})})}function j({information:r,series_num:i,onEpisodeChange:a}){let o=ee(`components.common`),[s,u]=c(`detail-series-popup-${r.id}`,!1),[C,te]=c(`detail-series-title-toggle-${r.id}`,!1),[w,T]=c(`detail-series-scroll-left-${r.id}`,null),[D,k]=g(i);p(()=>{k(i)},[r.id,i]),p(()=>{if(typeof window>`u`)return;let e=()=>{u(!1)};return window.addEventListener(x,e),()=>{window.removeEventListener(x,e)}},[u]),p(()=>{if(typeof window>`u`)return;let e=e=>{if(!S(e))return;let t=e.detail||{};t.open=!!t.open||!!s};return window.addEventListener(b,e),()=>{window.removeEventListener(b,e)}},[s]),p(()=>{s&&e(`page_video_detail`,`详情页`,null,`detail_select_episode_popup`)},[s]);let j=m(()=>E((r.links||[]).map(e=>({id:e.id,name:e.name})),r.id||`episode`,e=>o(`seriesEpisodes.episodeLabel`,{episode:e})),[r.id,r.links,o]),M=r.update_status===`1`?o(`seriesEpisodes.completedSeriesTotal`,{total:r.links.length}):o(`seriesEpisodes.ongoingSeriesUpdatedTo`,{total:r.links.length}),N=m(()=>r.links[D-1]?.id||r.links[0]?.id||``,[r.links,D]),P=h(null),F=h(null),I=h(null),L=h(!1),R=h(null),z=h(null),B=h(null),[V,H]=g(!1),U=f((e,t=`smooth`)=>{let n=P.current?.querySelector(`[data-content-id="${e}"]`);if(n&&P.current){let e=P.current,r=Math.max(0,n.offsetLeft-10);e.scrollTo({left:r,behavior:t})}},[]),W=f(()=>{z.current!==null&&(window.clearTimeout(z.current),z.current=null)},[]),G=f(()=>{B.current!==null&&(window.clearTimeout(B.current),B.current=null)},[]),K=f(()=>{R.current!==null&&(d.dismiss(R.current),R.current=null),W(),G()},[G,W]),q=f(()=>{F.current=null,I.current=null,K(),H(!1)},[K]),J=f((e,t)=>{G(),B.current=window.setTimeout(()=>{B.current=null,F.current===e&&q()},Math.max(0,t))},[G,q]);p(()=>{L.current=!1},[r.id]),p(()=>{if(L.current||!N)return;let e=window.requestAnimationFrame(()=>{let e=P.current;e&&(typeof w==`number`?e.scrollTo({left:Math.max(0,w),behavior:`auto`}):(U(N,`auto`),T(Math.max(0,Math.round(e.scrollLeft)))),L.current=!0)});return()=>{window.cancelAnimationFrame(e)}},[N,w,U,T]),p(()=>{let e=F.current;!e||e!==i||J(e,1e3)},[J,i]),p(()=>()=>{q()},[q]);let Y=f((e,t,n)=>{let r=P.current;if(!r||!e)return t;let i=r.querySelector(`[data-content-id="${e}"]`);if(!i)return t;let a=r.getBoundingClientRect();if(a.width<=0||typeof n!=`number`||(n-a.left)/a.width<.5)return t;let o=i.offsetLeft+i.offsetWidth/2,s=r.clientWidth/2,c=Math.max(0,r.scrollWidth-r.clientWidth),l=Math.min(c,Math.max(0,o-s));return r.scrollTo({left:l,behavior:`smooth`}),Math.round(l)},[]),X=f((e,t=`inline`,n,s)=>{if(e!==D){if(!r.links[e-1]){d.error(o(`seriesEpisodes.episodeNotFound`));return}if(typeof window<`u`&&window.isWebView===!0){try{k(e);let c=n||r.links[e-1]?.id||``,l=Math.max(0,Math.round(P.current?.scrollLeft||0));t===`popup`?(c&&U(c,`auto`),T(Math.max(0,Math.round(P.current?.scrollLeft||0)))):T(Y(c,l,s)),H(!0),K(),R.current=d.loading(o(`seriesEpisodes.episodeSwitching`)),F.current=e,I.current=t,z.current=window.setTimeout(()=>{F.current===e&&(k(i),q(),d.error(o(`seriesEpisodes.episodeSwitchFailed`)))},3e3),a(e)}catch(e){k(i),q(),console.error(`切换剧集失败`,e),d.error(o(`seriesEpisodes.episodeSwitchFailed`))}return}try{k(e);let c=n||r.links[e-1]?.id||``,l=Math.max(0,Math.round(P.current?.scrollLeft||0));t===`popup`?(c&&U(c,`auto`),T(Math.max(0,Math.round(P.current?.scrollLeft||0)))):T(Y(c,l,s)),H(!0),K(),R.current=d.loading(o(`seriesEpisodes.episodeSwitching`)),F.current=e,I.current=t,z.current=window.setTimeout(()=>{F.current===e&&(k(i),q(),d.error(o(`seriesEpisodes.episodeSwitchFailed`)))},8e3),a(e)}catch(e){k(i),q(),console.error(`切换剧集失败`,e),d.error(o(`seriesEpisodes.episodeSwitchFailed`))}}},[q,K,r.links,a,D,i,Y,U,T,o]),[Z,Q]=g(`70vh`),$=f(()=>{if(typeof window>`u`)return;if(window.isWebView===!0){Q(`100vh`);return}let e=document.getElementById(`selectPopupPosition`),t=window.visualViewport?.height||window.innerHeight;if(!e){Q(`70vh`);return}let n=Math.max(0,t-e.offsetTop);if(n<=0){Q(`70vh`);return}Q(`${n}px`)},[]);return p(()=>{if(!s)return;$();let e=()=>{$()};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[$,s]),j.length<=1?null:y(_,{children:[y(t,{className:`w-full mt-[8px] flex flex-col items-end mb-[4px]`,children:[y(t,{className:`w-fit flex items-center px-[12px] h-[28px]`,onClick:()=>{e(`page_video_detail`,`详情页`,null,`detail_select_episode_btn`),u(!0)},children:[v(n,{className:`text-[14px] text-text2 leading-[20px]`,children:M}),v(l,{className:`w-[11px] h-[18px] ml-[4px] text-text2`})]}),v(`div`,{ref:P,className:`w-full mt-[12px] overflow-x-auto px-[12px] flex gap-x-[8px] h-[56px] ${V?`touch-none`:``}`,children:j.map((t,n)=>y(`div`,{"data-content-id":t.id,className:`relative shrink-0 h-[full] overflow-hidden px-[18px] rounded-[8px] flex items-center justify-center ${C?`min-w-[88px] h-[40px]`:`w-[56px] !px-[0] justify-center`} ${t.id===N?`bg-transparent`:`bg-white/10`}`,onClick:r=>{e(`page_video_detail`,`详情页`,r,`detail_episode_click`,{episode_num:n+1,episode_id:t.id}),X(n+1,`inline`,t.id,r.clientX)},children:[t.id===N&&v(O,{}),v(`div`,{className:`relative z-[1] text-[14px] text-text1 leading-[22px] line-clamp-1 max-w-[120px] overflow-hidden overflow-ellipsis ${t.id===N?`!text-[#CA3FE9]`:``}`,children:C?`${t.title} ${r.name}`:t.series_num})]},t.id))})]}),v(A,{title:o(`seriesEpisodes.selectorTitle`),videoTitle:r.name,variant:`popup`,open:s,updateStatus:r.update_status,summaryText:M,seriesList:(r.links||[]).map(e=>({id:e.id,name:e.name})),activeEpisodeId:N,showEpisodeTitle:C,onToggleTitle:e=>{te(e)},onClose:()=>u(!1),onSelectEpisode:(e,t)=>{u(!1),X(t,`popup`,e)},popupBodyStyle:{height:Z},popupStylePreset:`default`})]})}export{O as DetailStyleOneActiveBorderLayer,k as SeriesEpisodes};
|