@funhub/platform 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/biz.mjs +1 -1
  2. package/dist/common.d.mts +2 -1
  3. package/dist/common.mjs +1 -1
  4. package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
  5. package/dist/components/biz/business/advertisement/ad-match.mjs +1 -1
  6. package/dist/components/biz/business/advertisement/banner-ad/client.d.mts +3 -1
  7. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  8. package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +12 -0
  9. package/dist/components/biz/business/advertisement/floating-ad/client.d.mts +2 -0
  10. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -1
  11. package/dist/components/biz/business/advertisement/floating-ad/schema.d.mts +12 -0
  12. package/dist/components/biz/business/advertisement/icon-ad/client.d.mts +3 -1
  13. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  14. package/dist/components/biz/business/advertisement/icon-ad/schema.d.mts +12 -0
  15. package/dist/components/biz/business/advertisement/popup-ad/client.d.mts +3 -1
  16. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -2
  17. package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +3 -1
  18. package/dist/components/biz/business/advertisement/text-ad/client.d.mts +3 -1
  19. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  20. package/dist/components/biz/business/advertisement/text-ad/schema.d.mts +12 -0
  21. package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -1
  22. package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -1
  23. package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
  24. package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -1
  25. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  26. package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
  27. package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
  28. package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
  29. package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
  30. package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
  31. package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
  32. package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
  33. package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -1
  34. package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -1
  35. package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
  36. package/dist/components/biz/business/profile/tracking.mjs +2 -0
  37. package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -1
  38. package/dist/components/biz/business/search-history/client.mjs +1 -1
  39. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  40. package/dist/components/common/analytics-init/analytics-init.mjs +1 -1
  41. package/dist/components/common/analytics-init/index.d.mts +2 -1
  42. package/dist/components/common/analytics-init/sensor-init.d.mts +20 -0
  43. package/dist/components/common/analytics-init/sensor-init.mjs +2 -0
  44. package/dist/components/common/list/user-activity-list/user-activity-list-item.d.mts +2 -0
  45. package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -1
  46. package/dist/components/common/list/user-activity-list/user-activity-list.d.mts +2 -0
  47. package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -1
  48. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.d.mts +4 -1
  49. package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -1
  50. package/dist/components/common/login-dialog/login-dialog.mjs +1 -1
  51. package/dist/components/common/series-episodes/index.mjs +1 -1
  52. package/dist/components/common/top-nav-bar/client.mjs +1 -1
  53. package/dist/components/common/video-player/index.d.mts +2 -0
  54. package/dist/components/common/video-player/index.mjs +3 -3
  55. package/dist/components/common/video-player/preroll-skip-button-content.mjs +2 -0
  56. package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -1
  57. package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +2 -0
  58. package/dist/components/common/video-player/video-preroll-ad.mjs +2 -0
  59. package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -1
  60. package/dist/components/pages/collection-add/page.mjs +1 -1
  61. package/dist/components/pages/collection-create/form.mjs +1 -1
  62. package/dist/components/pages/collection-detail/detail.mjs +1 -1
  63. package/dist/components/pages/edit/page.mjs +1 -1
  64. package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
  65. package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
  66. package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
  67. package/dist/components/pages/home/client.mjs +1 -1
  68. package/dist/components/pages/home/index.mjs +1 -1
  69. package/dist/components/pages/login/index.mjs +1 -1
  70. package/dist/components/pages/login/login-client.mjs +1 -1
  71. package/dist/components/pages/login/register.mjs +1 -1
  72. package/dist/components/pages/login/tracking.mjs +2 -0
  73. package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
  74. package/dist/components/pages/publish/page-client.mjs +1 -1
  75. package/dist/components/pages/search/hot-recommend.mjs +1 -1
  76. package/dist/components/pages/search/page-client.mjs +1 -1
  77. package/dist/components/pages/search/search-result/search-user.mjs +1 -1
  78. package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
  79. package/dist/components/pages/search/search-result/shared.mjs +1 -1
  80. package/dist/components/pages/search/tracking.mjs +2 -0
  81. package/dist/components/pages/search-result/page-client.mjs +1 -1
  82. package/dist/components/pages/search-result/tracking.mjs +2 -0
  83. package/dist/components/pages/settings/_components/settings.mjs +1 -1
  84. package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -1
  85. package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
  86. package/dist/components/pages/video-list/video-list-client.mjs +1 -1
  87. package/dist/components/ui/badge.d.mts +1 -1
  88. package/dist/components/ui/button.d.mts +1 -1
  89. package/dist/components/ui/image.d.mts +4 -4
  90. package/dist/components/ui/link.mjs +1 -1
  91. package/dist/types.d.mts +166 -33
  92. package/dist/utils/tracking.d.mts +231 -0
  93. package/dist/utils/tracking.mjs +2 -0
  94. package/dist/utils.d.mts +2 -1
  95. package/dist/utils.mjs +1 -1
  96. package/package.json +1 -1
package/dist/biz.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as e}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as t}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as n}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as r,DataSourceType as i}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as a,customStylesToInline as o,mergeStyles as s}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as c}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as l,transformContentToCardItem as u}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as d}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as p}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as m}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as h}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as g}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as _}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as v}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{defaultProps as y}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as b}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as x}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as S}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as C}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import w from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as T}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import E from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as D,homeRecommendGridInspectorPropsSchema as O}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as k}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as A,homeRecommendWaterfallInspectorPropsSchema as j}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as M}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as N}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as P}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as F}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as I,extractDataByComponentType as L}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as R}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as z}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as B}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as V}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as H}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import U from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as W}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import G from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as K}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import q from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as J}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Y}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import X from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Z}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Q}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import ne from"./components/biz/basics/search/variants/tag-search/index.mjs";import{adaptBannerAdProps as re,adaptFloatingAdItems as ie,adaptIconAdProps as ae,adaptPopupAdMaterials as oe,adaptTextAdProps as se,buildAdsMatchRequest as ce,hasMatchedAds as le,parseAdsMatchExtData as ue,sortAdsMatchMaterials as de}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as fe,createAdsMatchQueryFn as pe,getAdsMatchQueryKey as me}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as he,useAdProvider as ge}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as _e}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as ve,bannerAdInspectorPropsSchema as ye,bannerAdStyleSizeOptions as be}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as xe}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as Se}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as Ce}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as we,getFeedAdIcon as Te,getFeedAdJumpUrl as Ee,isFeedAdItem as De}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{FloatingAd as Oe}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{floatingAdInspectorDefaultProps as ke,floatingAdInspectorPropsSchema as Ae}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAdServer as je}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as Me}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as Ne,iconAdInspectorPropsSchema as Pe}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as Fe}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as Ie}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as Le}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as Re}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as ze,popupAdInspectorPropsSchema as Be}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as Ve}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as He}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as Ue,textAdInspectorPropsSchema as We}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as Ge}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as Ke}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as qe}from"./components/biz/business/advertisement/text-ad/material.mjs";import{basicBannerInspectorDefaultProps as Je,basicBannerInspectorPropsSchema as Ye}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Xe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as Ze}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import Qe from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as $e}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as et}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import tt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as rt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import it from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as at}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ot}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import st from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as ct}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ut from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as dt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import pt from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as mt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as ht,floatingBallInspectorPropsSchema as gt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as _t}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as vt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as yt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import bt from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ct}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as wt}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Tt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Et}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Dt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Ot from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{HotRecommendClient as kt}from"./components/biz/business/hot-recommend/client.mjs";import{hotRecommendInspectorPropsSchema as At}from"./components/biz/business/hot-recommend/schema.mjs";import{HotRecommendServer as jt}from"./components/biz/business/hot-recommend/server.mjs";import{hotRecommendMaterial as Mt}from"./components/biz/business/hot-recommend/material.mjs";import{ImageTextRecommendClient as Nt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Pt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Ft}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as It}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Lt,getDefaultMarqueePeriod as Rt,marqueeInspectorPropsSchema as zt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Bt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Vt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ht}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ut}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Wt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Gt from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Kt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import qt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Jt,defaultBackground as Yt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Xt,profileHeaderInspectorPropsSchema as Zt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Qt,profileHeaderMaterialWithDisabledBackground as $t}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as en,profileMainCollectTabOptions as tn,profileMainHistoryTabOptions as nn,profileMainLikeTabOptions as rn,profileMainMineTabOptions as an,profileMainProfileTabOptions as on,profileMainTabOptions as sn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as cn}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as ln}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as un}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as dn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as fn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pn,profileMainInspectorPropsSchema as mn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as hn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as gn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as _n}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as yn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as bn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as xn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Sn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as kn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as An}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import jn from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Mn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Nn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Pn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Fn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as In}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Ln,searchInputInspectorPropsSchema as Rn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as zn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Bn}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Vn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Hn,tabBarInspectorPropsSchema as Un}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Wn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Gn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Kn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as qn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Jn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Yn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as Xn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Zn,buttonInspectorPropsSchema as Qn}from"./components/biz/example/button/schema.mjs";import{Button as $n}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as er}from"./components/biz/example/button/material.mjs";import{Renderer as tr}from"./components/biz/renderer/renderer.mjs";export{he as AdProvider,_e as AdRuntimeProvider,xe as BannerAd,Se as BannerAdServer,Qe as BasicBanner,d as BasicBannerDefaultData,Xe as BasicBannerMaterialComponent,f as BasicBannerSchema,pt as BasicFeatureGrid,p as BasicFeatureGridDefaultData,m as BasicFeatureGridSchema,h as BasicFullscreen,U as BasicFullscreenFeed,g as BasicFullscreenFeedDefaultData,H as BasicFullscreenFeedSchema,G as BasicLogo,y as BasicLogoDefaultData,W as BasicLogoSchema,Gt as BasicNavBar,Ut as BasicNavBarDefaultData,Wt as BasicNavBarSchema,qt as BasicPostCard,Kt as BasicPostCardDefaultData,N as BasicPostCardSchema,Sn as BasicRecommendedUsers,P as BasicRecommendedUsersDefaultData,F as BasicRecommendedUsersSchema,q as BasicSearch,Tn as BasicSearchBar,Cn as BasicSearchBarDefaultData,wn as BasicSearchBarSchema,b as BasicSearchDefaultData,K as BasicSearchSchema,$n as Button,Xn as ButtonClient,ee as CARD_SPEC_MAP,tt as CardGrid2x3,$e as CardGrid2x3DefaultData,it as CardGrid2x3Infinite,nt as CardGrid2x3InfiniteDefaultData,rt as CardGrid2x3InfiniteSchema,et as CardGrid2x3Schema,st as CardGrid2x4,at as CardGrid2x4DefaultData,ot as CardGrid2x4Schema,ut as CardGrid3x3,ct as CardGrid3x3DefaultData,$ as CardGrid3x3Infinite,dt as CardGrid3x3InfiniteDefaultData,ft as CardGrid3x3InfiniteSchema,lt as CardGrid3x3Schema,R as CardItemDefaultData,z as CardItemSchema,B as CardLayoutDefaultData,V as CardLayoutSchema,te as CardSpec,ln as CollectTab,_n as CollectTabServer,I as ComponentType,r as DataBindingUIMode,i as DataSourceType,E as DetailSearchBar,x as DetailSearchBarDefaultData,T as DetailSearchBarSchema,we as FeedAdBadge,X as FilterSearch,On as FilterSearchBar,En as FilterSearchBarDefaultData,Dn as FilterSearchBarSchema,J as FilterSearchDefaultData,Y as FilterSearchSchema,Oe as FloatingAd,je as FloatingAdServer,_t as FloatingBall,mt as FloatingBallClient,bt as FullscreenFeedClient,yt as FullscreenPostFeedDefaultData,_ as FullscreenPostFeedSchema,St as FullscreenVideoClient,xt as FullscreenVideoFeedDefaultData,v as FullscreenVideoFeedSchema,un as HistoryTab,vn as HistoryTabServer,Tt as HomeRecommendGrid,D as HomeRecommendGridDefaultData,Ct as HomeRecommendGridMaterialComponent,k as HomeRecommendGridSchema,Ot as HomeRecommendWaterfall,A as HomeRecommendWaterfallDefaultData,Et as HomeRecommendWaterfallMaterialComponent,M as HomeRecommendWaterfallSchema,kt as HotRecommendClient,jt as HotRecommendServer,Fe as IconAd,Ie as IconAdServer,Nt as ImageTextRecommendClient,Ft as ImageTextRecommendServer,dn as LikeTab,yn as LikeTabServer,Bt as MarqueeClient,Vt as MarqueeServer,Re as PopupAd,Ve as PopupAdServer,bn as PublishTab,xn as PublishTabServer,tr as Renderer,Mn as SearchHistoryClient,Pn as SearchHistoryServer,In as SearchInputClient,zn as SearchInputServer,w as SimpleSearch,S as SimpleSearchDefaultData,C as SimpleSearchSchema,Vn as TabBarClient,Wn as TabBarServer,ne as TagSearch,jn as TagSearchBar,kn as TagSearchBarDefaultData,An as TagSearchBarSchema,Z as TagSearchDefaultData,Q as TagSearchSchema,Ge as TextAd,Ke as TextAdServer,Kn as TextRecommendClient,Jn as TextRecommendServer,Jt as UserProfileHeaderClient,hn as UserProfileMain,fn as UserProfileMainClient,cn as UserProfileMainShell,re as adaptBannerAdProps,ie as adaptFloatingAdItems,ae as adaptIconAdProps,oe as adaptPopupAdMaterials,se as adaptTextAdProps,ve as bannerAdInspectorDefaultProps,ye as bannerAdInspectorPropsSchema,Ce as bannerAdMaterial,be as bannerAdStyleSizeOptions,Je as basicBannerInspectorDefaultProps,Ye as basicBannerInspectorPropsSchema,Ze as basicBannerMaterial,ce as buildAdsMatchRequest,n as buildContentUrl,Zn as buttonInspectorDefaultProps,Qn as buttonInspectorPropsSchema,c as commonStyleSchema,a as commonStylesToInline,fe as createAdsMatchPrefetchItem,pe as createAdsMatchQueryFn,o as customStylesToInline,Yt as defaultBackground,Lt as defaultMarqueePeriod,er as exampleButtonMaterial,L as extractDataByComponentType,ke as floatingAdInspectorDefaultProps,Ae as floatingAdInspectorPropsSchema,Me as floatingAdMaterial,ht as floatingBallInspectorDefaultProps,gt as floatingBallInspectorPropsSchema,vt as floatingBallMaterial,me as getAdsMatchQueryKey,e as getCardSpecConfig,t as getChannelList,Rt as getDefaultMarqueePeriod,Te as getFeedAdIcon,Ee as getFeedAdJumpUrl,le as hasMatchedAds,D as homeRecommendGridInspectorDefaultProps,O as homeRecommendGridInspectorPropsSchema,wt as homeRecommendGridMaterial,A as homeRecommendWaterfallInspectorDefaultProps,j as homeRecommendWaterfallInspectorPropsSchema,Dt as homeRecommendWaterfallMaterial,At as hotRecommendInspectorPropsSchema,Mt as hotRecommendMaterial,Ne as iconAdInspectorDefaultProps,Pe as iconAdInspectorPropsSchema,Le as iconAdMaterial,Pt as imageTextRecommendInspectorPropsSchema,It as imageTextRecommendMaterial,De as isFeedAdItem,zt as marqueeInspectorPropsSchema,Ht as marqueeMaterial,s as mergeStyles,ue as parseAdsMatchExtData,ze as popupAdInspectorDefaultProps,Be as popupAdInspectorPropsSchema,He as popupAdMaterial,Xt as profileHeaderInspectorDefaultProps,Zt as profileHeaderInspectorPropsSchema,Qt as profileHeaderMaterial,$t as profileHeaderMaterialWithDisabledBackground,en as profileMainCollectCollectionTabOptions,tn as profileMainCollectTabOptions,nn as profileMainHistoryTabOptions,pn as profileMainInspectorDefaultProps,mn as profileMainInspectorPropsSchema,rn as profileMainLikeTabOptions,gn as profileMainMaterial,an as profileMainMineTabOptions,on as profileMainProfileTabOptions,sn as profileMainTabOptions,Nn as searchHistoryInspectorPropsSchema,Fn as searchHistoryMaterial,Ln as searchInputInspectorDefaultProps,Rn as searchInputInspectorPropsSchema,Bn as searchInputMaterial,de as sortAdsMatchMaterials,Hn as tabBarInspectorDefaultProps,Un as tabBarInspectorPropsSchema,Gn as tabBarMaterial,Ue as textAdInspectorDefaultProps,We as textAdInspectorPropsSchema,qe as textAdMaterial,qn as textRecommendInspectorPropsSchema,Yn as textRecommendMaterial,l as transformContentListToCardItems,u as transformContentToCardItem,ge as useAdProvider};
2
+ import{CARD_SPEC_MAP as ee,CardSpec as te,getCardSpecConfig as ne}from"./components/biz/utils/constants/card-spec.mjs";import{getChannelList as re}from"./components/biz/utils/helpers/get-channel-list.mjs";import{buildContentUrl as e}from"./components/biz/utils/helpers/url.mjs";import{DataBindingUIMode as t,DataSourceType as n}from"./components/biz/utils/schema/data.mjs";import{commonStylesToInline as r,customStylesToInline as i,mergeStyles as a}from"./components/biz/utils/styles/helpers.mjs";import{commonStyleSchema as o}from"./components/biz/utils/styles/schema.mjs";import{transformContentListToCardItems as s,transformContentToCardItem as c}from"./components/biz/utils/transformers/card-grid.mjs";import{defaultProps as l}from"./components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs";import{schema as u}from"./components/biz/business/banner/variants/basic-banner/schema/index.mjs";import{defaultProps as d}from"./components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as f}from"./components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs";import{BasicFullscreen as p}from"./components/biz/basics/fullscreen-feed/basic-fullscreen.mjs";import{defaultProps as m}from"./components/biz/basics/fullscreen-feed/defaults/default-props.mjs";import{schema as h}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import{schema as g}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import{adaptBannerAdProps as _,adaptFloatingAdItems as v,adaptIconAdProps as y,adaptPopupAdMaterials as b,adaptTextAdProps as x,buildAdsMatchRequest as S,hasMatchedAds as C,parseAdsMatchExtData as w,sortAdsMatchMaterials as T}from"./components/biz/business/advertisement/ad-match.mjs";import{createAdsMatchPrefetchItem as E,createAdsMatchQueryFn as D,getAdsMatchQueryKey as O}from"./components/biz/business/advertisement/ad-query.mjs";import{AdProvider as k,useAdProvider as A}from"./components/biz/business/advertisement/ad-provider.mjs";import{AdRuntimeProvider as j}from"./components/biz/business/advertisement/ad-runtime-provider.mjs";import{bannerAdInspectorDefaultProps as M,bannerAdInspectorPropsSchema as N,bannerAdStyleSizeOptions as P}from"./components/biz/business/advertisement/banner-ad/schema.mjs";import{BannerAd as F}from"./components/biz/business/advertisement/banner-ad/client.mjs";import{BannerAdServer as I}from"./components/biz/business/advertisement/banner-ad/server.mjs";import{bannerAdMaterial as L}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{FeedAdBadge as R,getFeedAdIcon as z,getFeedAdJumpUrl as B,isFeedAdItem as V}from"./components/biz/business/advertisement/feed-ad/index.mjs";import{FloatingAd as H}from"./components/biz/business/advertisement/floating-ad/client.mjs";import{floatingAdInspectorDefaultProps as U,floatingAdInspectorPropsSchema as W}from"./components/biz/business/advertisement/floating-ad/schema.mjs";import{FloatingAdServer as G}from"./components/biz/business/advertisement/floating-ad/server.mjs";import{floatingAdMaterial as K}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdInspectorDefaultProps as q,iconAdInspectorPropsSchema as J}from"./components/biz/business/advertisement/icon-ad/schema.mjs";import{IconAd as Y}from"./components/biz/business/advertisement/icon-ad/client.mjs";import{IconAdServer as X}from"./components/biz/business/advertisement/icon-ad/server.mjs";import{iconAdMaterial as ie}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{PopupAd as ae}from"./components/biz/business/advertisement/popup-ad/client.mjs";import{popupAdInspectorDefaultProps as oe,popupAdInspectorPropsSchema as se}from"./components/biz/business/advertisement/popup-ad/schema.mjs";import{PopupAdServer as ce}from"./components/biz/business/advertisement/popup-ad/server.mjs";import{popupAdMaterial as le}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdInspectorDefaultProps as ue,textAdInspectorPropsSchema as de}from"./components/biz/business/advertisement/text-ad/schema.mjs";import{TextAd as fe}from"./components/biz/business/advertisement/text-ad/client.mjs";import{TextAdServer as pe}from"./components/biz/business/advertisement/text-ad/server.mjs";import{textAdMaterial as me}from"./components/biz/business/advertisement/text-ad/material.mjs";import{defaultProps as he}from"./components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs";import{defaultProps as ge}from"./components/biz/basics/search/variants/basic-search/defaults/default-props.mjs";import{defaultProps as _e}from"./components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{defaultProps as ve}from"./components/biz/basics/search/variants/simple-search/defaults/default-props.mjs";import{schema as ye}from"./components/biz/basics/search/variants/simple-search/schema/index.mjs";import be from"./components/biz/basics/search/variants/simple-search/index.mjs";import{schema as xe}from"./components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs";import Se from"./components/biz/business/search-bar/variants/detail-search-bar/index.mjs";import{homeRecommendGridInspectorDefaultProps as Z,homeRecommendGridInspectorPropsSchema as Ce}from"./components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs";import{schema as we}from"./components/biz/business/home-recommend/home-recommend-grid/schema.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as Te}from"./components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs";import{schema as Ee}from"./components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs";import{schema as De}from"./components/biz/business/post-card/variants/basic-post-card/schema/index.mjs";import{defaultProps as Oe}from"./components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as ke}from"./components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs";import{ComponentType as Ae,extractDataByComponentType as je}from"./components/biz/utils/transformers/data.mjs";import{defaultProps as Me}from"./components/biz/basics/card-item/defaults/default-props.mjs";import{schema as Ne}from"./components/biz/basics/card-item/schema/index.mjs";import{defaultProps as Pe}from"./components/biz/basics/card-layout/defaults/default-props.mjs";import{schema as Fe}from"./components/biz/basics/card-layout/schema/index.mjs";import{schema as Ie}from"./components/biz/basics/fullscreen-feed/schema/index.mjs";import Le from"./components/biz/basics/fullscreen-feed/index.mjs";import{schema as Re}from"./components/biz/basics/logo/variants/basic-logo/schema/index.mjs";import ze from"./components/biz/basics/logo/variants/basic-logo/index.mjs";import{schema as Be}from"./components/biz/basics/search/variants/basic-search/schema/index.mjs";import Ve from"./components/biz/basics/search/variants/basic-search/index.mjs";import{defaultProps as He}from"./components/biz/basics/search/variants/filter-search/defaults/default-props.mjs";import{schema as Ue}from"./components/biz/basics/search/variants/filter-search/schema/index.mjs";import We from"./components/biz/basics/search/variants/filter-search/index.mjs";import{defaultProps as Ge}from"./components/biz/basics/search/variants/tag-search/defaults/default-props.mjs";import{schema as Ke}from"./components/biz/basics/search/variants/tag-search/schema/index.mjs";import qe from"./components/biz/basics/search/variants/tag-search/index.mjs";import{basicBannerInspectorDefaultProps as Je,basicBannerInspectorPropsSchema as Ye}from"./components/biz/business/banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as Xe}from"./components/biz/business/banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as Ze}from"./components/biz/business/banner/variants/basic-banner/material.mjs";import Qe from"./components/biz/business/banner/variants/basic-banner/index.mjs";import{defaultProps as $e}from"./components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as et}from"./components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs";import tt from"./components/biz/business/card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as nt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as rt}from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import it from"./components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as at}from"./components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as ot}from"./components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs";import st from"./components/biz/business/card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as ct}from"./components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as lt}from"./components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs";import ut from"./components/biz/business/card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as dt}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as ft}from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import $ from"./components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs";import pt from"./components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs";import{FloatingBallClient as mt}from"./components/biz/business/floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as ht,floatingBallInspectorPropsSchema as gt}from"./components/biz/business/floating-ball/schema.mjs";import{FloatingBall as _t}from"./components/biz/business/floating-ball/server.mjs";import{floatingBallMaterial as vt}from"./components/biz/business/floating-ball/material.mjs";import{defaultProps as yt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import bt from"./components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as xt}from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import St from"./components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{HomeRecommendGrid as Ct}from"./components/biz/business/home-recommend/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as wt}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import Tt from"./components/biz/business/home-recommend/home-recommend-grid/index.mjs";import{HomeRecommendWaterfall as Et}from"./components/biz/business/home-recommend/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as Dt}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import Ot from"./components/biz/business/home-recommend/home-recommend-waterfall/index.mjs";import{HotRecommendClient as kt}from"./components/biz/business/hot-recommend/client.mjs";import{hotRecommendInspectorPropsSchema as At}from"./components/biz/business/hot-recommend/schema.mjs";import{HotRecommendServer as jt}from"./components/biz/business/hot-recommend/server.mjs";import{hotRecommendMaterial as Mt}from"./components/biz/business/hot-recommend/material.mjs";import{ImageTextRecommendClient as Nt}from"./components/biz/business/image-text-recommend/client.mjs";import{imageTextRecommendInspectorPropsSchema as Pt}from"./components/biz/business/image-text-recommend/schema.mjs";import{ImageTextRecommendServer as Ft}from"./components/biz/business/image-text-recommend/server.mjs";import{imageTextRecommendMaterial as It}from"./components/biz/business/image-text-recommend/material.mjs";import{defaultMarqueePeriod as Lt,getDefaultMarqueePeriod as Rt,marqueeInspectorPropsSchema as zt}from"./components/biz/business/marquee/schema.mjs";import{MarqueeClient as Bt}from"./components/biz/business/marquee/client.mjs";import{MarqueeServer as Vt}from"./components/biz/business/marquee/server.mjs";import{marqueeMaterial as Ht}from"./components/biz/business/marquee/material.mjs";import{defaultProps as Ut}from"./components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as Wt}from"./components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs";import Gt from"./components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as Kt}from"./components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs";import qt from"./components/biz/business/post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as Jt,defaultBackground as Yt}from"./components/biz/business/profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as Xt,profileHeaderInspectorPropsSchema as Zt}from"./components/biz/business/profile/profile-header/schema.mjs";import{profileHeaderMaterial as Qt,profileHeaderMaterialWithDisabledBackground as $t}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as en,profileMainCollectTabOptions as tn,profileMainHistoryTabOptions as nn,profileMainLikeTabOptions as rn,profileMainMineTabOptions as an,profileMainProfileTabOptions as on,profileMainTabOptions as sn}from"./components/biz/business/profile/profile-main/variants.mjs";import{UserProfileMainShell as cn}from"./components/biz/business/profile/profile-main/shell.mjs";import{CollectTab as ln}from"./components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs";import{HistoryTab as un}from"./components/biz/business/profile/profile-main/tabs/history-tab/client.mjs";import{LikeTab as dn}from"./components/biz/business/profile/profile-main/tabs/like-tab/client.mjs";import{UserProfileMainClient as fn}from"./components/biz/business/profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as pn,profileMainInspectorPropsSchema as mn}from"./components/biz/business/profile/profile-main/schema.mjs";import{UserProfileMain as hn}from"./components/biz/business/profile/profile-main/server.mjs";import{profileMainMaterial as gn}from"./components/biz/business/profile/profile-main/material.mjs";import{CollectTabServer as _n}from"./components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTabServer as vn}from"./components/biz/business/profile/profile-main/tabs/history-tab/server.mjs";import{LikeTabServer as yn}from"./components/biz/business/profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as bn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as xn}from"./components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs";import Sn from"./components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Cn}from"./components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as wn}from"./components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs";import Tn from"./components/biz/business/search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as En}from"./components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Dn}from"./components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs";import On from"./components/biz/business/search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as kn}from"./components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as An}from"./components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs";import jn from"./components/biz/business/search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as Mn}from"./components/biz/business/search-history/client.mjs";import{searchHistoryInspectorPropsSchema as Nn}from"./components/biz/business/search-history/schema.mjs";import{SearchHistoryServer as Pn}from"./components/biz/business/search-history/server.mjs";import{searchHistoryMaterial as Fn}from"./components/biz/business/search-history/material.mjs";import{SearchInputClient as In}from"./components/biz/business/search-input/client.mjs";import{searchInputInspectorDefaultProps as Ln,searchInputInspectorPropsSchema as Rn}from"./components/biz/business/search-input/schema.mjs";import{SearchInputServer as zn}from"./components/biz/business/search-input/server.mjs";import{searchInputMaterial as Bn}from"./components/biz/business/search-input/material.mjs";import{TabBarClient as Vn}from"./components/biz/business/tab-bar/client.mjs";import{tabBarInspectorDefaultProps as Hn,tabBarInspectorPropsSchema as Un}from"./components/biz/business/tab-bar/schema.mjs";import{TabBarServer as Wn}from"./components/biz/business/tab-bar/server.mjs";import{tabBarMaterial as Gn}from"./components/biz/business/tab-bar/material.mjs";import{TextRecommendClient as Kn}from"./components/biz/business/text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as qn}from"./components/biz/business/text-recommend/schema.mjs";import{TextRecommendServer as Jn}from"./components/biz/business/text-recommend/server.mjs";import{textRecommendMaterial as Yn}from"./components/biz/business/text-recommend/material.mjs";import{ButtonClient as Xn}from"./components/biz/example/button/client.mjs";import{buttonInspectorDefaultProps as Zn,buttonInspectorPropsSchema as Qn}from"./components/biz/example/button/schema.mjs";import{Button as $n}from"./components/biz/example/button/server.mjs";import{exampleButtonMaterial as er}from"./components/biz/example/button/material.mjs";import{Renderer as tr}from"./components/biz/renderer/renderer.mjs";export{k as AdProvider,j as AdRuntimeProvider,F as BannerAd,I as BannerAdServer,Qe as BasicBanner,l as BasicBannerDefaultData,Xe as BasicBannerMaterialComponent,u as BasicBannerSchema,pt as BasicFeatureGrid,d as BasicFeatureGridDefaultData,f as BasicFeatureGridSchema,p as BasicFullscreen,Le as BasicFullscreenFeed,m as BasicFullscreenFeedDefaultData,Ie as BasicFullscreenFeedSchema,ze as BasicLogo,he as BasicLogoDefaultData,Re as BasicLogoSchema,Gt as BasicNavBar,Ut as BasicNavBarDefaultData,Wt as BasicNavBarSchema,qt as BasicPostCard,Kt as BasicPostCardDefaultData,De as BasicPostCardSchema,Sn as BasicRecommendedUsers,Oe as BasicRecommendedUsersDefaultData,ke as BasicRecommendedUsersSchema,Ve as BasicSearch,Tn as BasicSearchBar,Cn as BasicSearchBarDefaultData,wn as BasicSearchBarSchema,ge as BasicSearchDefaultData,Be as BasicSearchSchema,$n as Button,Xn as ButtonClient,ee as CARD_SPEC_MAP,tt as CardGrid2x3,$e as CardGrid2x3DefaultData,it as CardGrid2x3Infinite,nt as CardGrid2x3InfiniteDefaultData,rt as CardGrid2x3InfiniteSchema,et as CardGrid2x3Schema,st as CardGrid2x4,at as CardGrid2x4DefaultData,ot as CardGrid2x4Schema,ut as CardGrid3x3,ct as CardGrid3x3DefaultData,$ as CardGrid3x3Infinite,dt as CardGrid3x3InfiniteDefaultData,ft as CardGrid3x3InfiniteSchema,lt as CardGrid3x3Schema,Me as CardItemDefaultData,Ne as CardItemSchema,Pe as CardLayoutDefaultData,Fe as CardLayoutSchema,te as CardSpec,ln as CollectTab,_n as CollectTabServer,Ae as ComponentType,t as DataBindingUIMode,n as DataSourceType,Se as DetailSearchBar,_e as DetailSearchBarDefaultData,xe as DetailSearchBarSchema,R as FeedAdBadge,We as FilterSearch,On as FilterSearchBar,En as FilterSearchBarDefaultData,Dn as FilterSearchBarSchema,He as FilterSearchDefaultData,Ue as FilterSearchSchema,H as FloatingAd,G as FloatingAdServer,_t as FloatingBall,mt as FloatingBallClient,bt as FullscreenFeedClient,yt as FullscreenPostFeedDefaultData,h as FullscreenPostFeedSchema,St as FullscreenVideoClient,xt as FullscreenVideoFeedDefaultData,g as FullscreenVideoFeedSchema,un as HistoryTab,vn as HistoryTabServer,Tt as HomeRecommendGrid,Z as HomeRecommendGridDefaultData,Ct as HomeRecommendGridMaterialComponent,we as HomeRecommendGridSchema,Ot as HomeRecommendWaterfall,Q as HomeRecommendWaterfallDefaultData,Et as HomeRecommendWaterfallMaterialComponent,Ee as HomeRecommendWaterfallSchema,kt as HotRecommendClient,jt as HotRecommendServer,Y as IconAd,X as IconAdServer,Nt as ImageTextRecommendClient,Ft as ImageTextRecommendServer,dn as LikeTab,yn as LikeTabServer,Bt as MarqueeClient,Vt as MarqueeServer,ae as PopupAd,ce as PopupAdServer,bn as PublishTab,xn as PublishTabServer,tr as Renderer,Mn as SearchHistoryClient,Pn as SearchHistoryServer,In as SearchInputClient,zn as SearchInputServer,be as SimpleSearch,ve as SimpleSearchDefaultData,ye as SimpleSearchSchema,Vn as TabBarClient,Wn as TabBarServer,qe as TagSearch,jn as TagSearchBar,kn as TagSearchBarDefaultData,An as TagSearchBarSchema,Ge as TagSearchDefaultData,Ke as TagSearchSchema,fe as TextAd,pe as TextAdServer,Kn as TextRecommendClient,Jn as TextRecommendServer,Jt as UserProfileHeaderClient,hn as UserProfileMain,fn as UserProfileMainClient,cn as UserProfileMainShell,_ as adaptBannerAdProps,v as adaptFloatingAdItems,y as adaptIconAdProps,b as adaptPopupAdMaterials,x as adaptTextAdProps,M as bannerAdInspectorDefaultProps,N as bannerAdInspectorPropsSchema,L as bannerAdMaterial,P as bannerAdStyleSizeOptions,Je as basicBannerInspectorDefaultProps,Ye as basicBannerInspectorPropsSchema,Ze as basicBannerMaterial,S as buildAdsMatchRequest,e as buildContentUrl,Zn as buttonInspectorDefaultProps,Qn as buttonInspectorPropsSchema,o as commonStyleSchema,r as commonStylesToInline,E as createAdsMatchPrefetchItem,D as createAdsMatchQueryFn,i as customStylesToInline,Yt as defaultBackground,Lt as defaultMarqueePeriod,er as exampleButtonMaterial,je as extractDataByComponentType,U as floatingAdInspectorDefaultProps,W as floatingAdInspectorPropsSchema,K as floatingAdMaterial,ht as floatingBallInspectorDefaultProps,gt as floatingBallInspectorPropsSchema,vt as floatingBallMaterial,O as getAdsMatchQueryKey,ne as getCardSpecConfig,re as getChannelList,Rt as getDefaultMarqueePeriod,z as getFeedAdIcon,B as getFeedAdJumpUrl,C as hasMatchedAds,Z as homeRecommendGridInspectorDefaultProps,Ce as homeRecommendGridInspectorPropsSchema,wt as homeRecommendGridMaterial,Q as homeRecommendWaterfallInspectorDefaultProps,Te as homeRecommendWaterfallInspectorPropsSchema,Dt as homeRecommendWaterfallMaterial,At as hotRecommendInspectorPropsSchema,Mt as hotRecommendMaterial,q as iconAdInspectorDefaultProps,J as iconAdInspectorPropsSchema,ie as iconAdMaterial,Pt as imageTextRecommendInspectorPropsSchema,It as imageTextRecommendMaterial,V as isFeedAdItem,zt as marqueeInspectorPropsSchema,Ht as marqueeMaterial,a as mergeStyles,w as parseAdsMatchExtData,oe as popupAdInspectorDefaultProps,se as popupAdInspectorPropsSchema,le as popupAdMaterial,Xt as profileHeaderInspectorDefaultProps,Zt as profileHeaderInspectorPropsSchema,Qt as profileHeaderMaterial,$t as profileHeaderMaterialWithDisabledBackground,en as profileMainCollectCollectionTabOptions,tn as profileMainCollectTabOptions,nn as profileMainHistoryTabOptions,pn as profileMainInspectorDefaultProps,mn as profileMainInspectorPropsSchema,rn as profileMainLikeTabOptions,gn as profileMainMaterial,an as profileMainMineTabOptions,on as profileMainProfileTabOptions,sn as profileMainTabOptions,Nn as searchHistoryInspectorPropsSchema,Fn as searchHistoryMaterial,Ln as searchInputInspectorDefaultProps,Rn as searchInputInspectorPropsSchema,Bn as searchInputMaterial,T as sortAdsMatchMaterials,Hn as tabBarInspectorDefaultProps,Un as tabBarInspectorPropsSchema,Gn as tabBarMaterial,ue as textAdInspectorDefaultProps,de as textAdInspectorPropsSchema,me as textAdMaterial,qn as textRecommendInspectorPropsSchema,Yn as textRecommendMaterial,s as transformContentListToCardItems,c as transformContentToCardItem,A as useAdProvider};
package/dist/common.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
 
2
2
  import { UserActivityListItem, UserActivityListItemProps, UserActivityMediaGrid, UserActivityMediaGridProps } from "./components/common/list/user-activity-list/user-activity-list-item.mjs";
3
3
  import { AnalyticsInit } from "./components/common/analytics-init/analytics-init.mjs";
4
+ import { SensorInit } from "./components/common/analytics-init/sensor-init.mjs";
4
5
  import "./components/common/analytics-init/index.mjs";
5
6
  import { BlockedDialog } from "./components/common/blocked-dialog/blocked-dialog.mjs";
6
7
  import "./components/common/blocked-dialog/index.mjs";
@@ -61,4 +62,4 @@ import { TopNavBarServer } from "./components/common/top-nav-bar/index.mjs";
61
62
  import { UserInfoInitializer } from "./components/common/user-info-initializer/index.mjs";
62
63
  import { CommonPlayer, CommonPlayerRef } from "./components/common/video-player/index.mjs";
63
64
  import { WaitLoading } from "./components/common/wait-loading.mjs";
64
- export { ActionButton, AddIcon, AnalyticsInit, BlockedDialog, CollectionList, CollectionListItem, CollectionListItemProps, CollectionListMediaItem, CollectionListProps, CollectionPopupComponent, CollectionPopupHost, CommentIcon, CommonPhotoGrid, CommonPlayer, CommonPlayerRef, CreateCollectionSheet, DebugLocaleSwitcher, DeleteConfirmDialog, DeleteConfirmDialogProps, DeleteIcon, DetailStyleOneActiveBorderLayer, Empty, FunhubProvider, FunhubProviderProps, GenderPicker, GenderPickerOption, GenderPickerProps, HeaderNav, IntlProvider, IntlProviderProps, LeftArrowIcon, LocaleSync, LoginDialog, MediaPreview, MiniThreeCard, MoreIcon, PageSkeleton, SeriesEpisodePage as PhotoGrid, PopupVideo, PostList, PostListItem, PostListItemProps, PostListProps, RightArrowIcon, SeriesEpisodes, SeriesEpisodesProps, SettingIcon, ShareContent, ShareDataType, ShareDrawer, ShareDrawerProps, ShareIcon, SharePlatform, SharePopupComponent, TabBar, ThemeSync, TopNavBarServer, UserActivityList, UserActivityListItem, UserActivityListItemProps, UserActivityListProps, UserActivityMediaGrid, UserActivityMediaGridProps, MediaPreview as UserActivityMediaPreview, UserInfoInitializer, VideoList, VideoListItem, VideoListItemProps, VideoListProps, WaitLoading, WaterfallRecommend, WaterfallRecommendCardKind, WaterfallRecommendColumnName, WaterfallRecommendColumns, WaterfallRecommendItem, WaterfallRecommendProps, closePhotoPreview, defaultActions, defaultPlatforms, photoPreview, useMediaPreview };
65
+ export { ActionButton, AddIcon, AnalyticsInit, BlockedDialog, CollectionList, CollectionListItem, CollectionListItemProps, CollectionListMediaItem, CollectionListProps, CollectionPopupComponent, CollectionPopupHost, CommentIcon, CommonPhotoGrid, CommonPlayer, CommonPlayerRef, CreateCollectionSheet, DebugLocaleSwitcher, DeleteConfirmDialog, DeleteConfirmDialogProps, DeleteIcon, DetailStyleOneActiveBorderLayer, Empty, FunhubProvider, FunhubProviderProps, GenderPicker, GenderPickerOption, GenderPickerProps, HeaderNav, IntlProvider, IntlProviderProps, LeftArrowIcon, LocaleSync, LoginDialog, MediaPreview, MiniThreeCard, MoreIcon, PageSkeleton, SeriesEpisodePage as PhotoGrid, PopupVideo, PostList, PostListItem, PostListItemProps, PostListProps, RightArrowIcon, SensorInit, SeriesEpisodes, SeriesEpisodesProps, SettingIcon, ShareContent, ShareDataType, ShareDrawer, ShareDrawerProps, ShareIcon, SharePlatform, SharePopupComponent, TabBar, ThemeSync, TopNavBarServer, UserActivityList, UserActivityListItem, UserActivityListItemProps, UserActivityListProps, UserActivityMediaGrid, UserActivityMediaGridProps, MediaPreview as UserActivityMediaPreview, UserInfoInitializer, VideoList, VideoListItem, VideoListItemProps, VideoListProps, WaitLoading, WaterfallRecommend, WaterfallRecommendCardKind, WaterfallRecommendColumnName, WaterfallRecommendColumns, WaterfallRecommendItem, WaterfallRecommendProps, closePhotoPreview, defaultActions, defaultPlatforms, photoPreview, useMediaPreview };
package/dist/common.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{MediaPreview as e,useMediaPreview as t}from"./components/common/media-preview/index.mjs";import{CreateCollectionSheet as n}from"./components/common/collection-popup/create-collection-sheet.mjs";import{CollectionPopupComponent as r,CollectionPopupHost as i}from"./components/common/collection-popup/index.mjs";import a from"./components/common/share-popup/share-content.mjs";import{ShareDrawer as o}from"./components/common/share-popup/share-drawer.mjs";import{IntlProvider as s}from"./components/common/intl-provider/intl-provider.mjs";import{SharePopupComponent as c,defaultActions as l,defaultPlatforms as u}from"./components/common/share-popup/share-popup.mjs";import d from"./components/common/video-player/index.mjs";import{AnalyticsInit as f}from"./components/common/analytics-init/analytics-init.mjs";import{BlockedDialog as p}from"./components/common/blocked-dialog/blocked-dialog.mjs";import{MiniThreeCard as m}from"./components/common/cards/mini-three-card.mjs";import{DebugLocaleSwitcher as h}from"./components/common/debug-locale-switcher/index.mjs";import{DeleteConfirmDialog as g}from"./components/common/delete-confirm-dialog/delete-confirm-dialog.mjs";import _ from"./components/common/empty/index.mjs";import{FunhubProvider as v}from"./components/common/funhub-provider/funhub-provider.mjs";import{LeftArrowIcon as y}from"./components/common/icons/left-arrow.mjs";import{HeaderNav as b}from"./components/common/header-nav/client.mjs";import{AddIcon as x}from"./components/common/icons/add.mjs";import{CommentIcon as S}from"./components/common/icons/comment.mjs";import{DeleteIcon as C}from"./components/common/icons/delete.mjs";import{MoreIcon as w}from"./components/common/icons/more.mjs";import{RightArrowIcon as T}from"./components/common/icons/right-arrow.mjs";import{SettingIcon as E}from"./components/common/icons/setting.mjs";import{ShareIcon as D}from"./components/common/icons/share.mjs";import{CollectionListItem as O}from"./components/common/list/collection-list/collection-list-item.mjs";import{CollectionList as k}from"./components/common/list/collection-list/collection-list.mjs";import{PostListItem as A}from"./components/common/list/post-list/post-list-item.mjs";import{PostList as j}from"./components/common/list/post-list/post-list.mjs";import{UserActivityList as M}from"./components/common/list/user-activity-list/user-activity-list.mjs";import{UserActivityListItem as N,UserActivityMediaGrid as P}from"./components/common/list/user-activity-list/user-activity-list-item.mjs";import{VideoListItem as F}from"./components/common/list/video-list/video-list-item.mjs";import{VideoList as I}from"./components/common/list/video-list/video-list.mjs";import{WaterfallRecommend as L}from"./components/common/list/waterfall-recommend/waterfall-recommend.mjs";import{LocaleSync as R}from"./components/common/locale-sync/locale-sync.mjs";import{LoginDialog as z}from"./components/common/login-dialog/login-dialog.mjs";import{PageSkeleton as B}from"./components/common/page-skeleton/page-skeleton.mjs";import V from"./components/common/photo-grid/index.mjs";import H from"./components/common/photo-grid/common-photo-grid.mjs";import{closePhotoPreview as U,photoPreview as W}from"./components/common/photo-preview/index.mjs";import{GenderPicker as G}from"./components/common/picker/gender-picker/gender-picker.mjs";import K from"./components/common/popup-video/index.mjs";import{DetailStyleOneActiveBorderLayer as q,SeriesEpisodes as J}from"./components/common/series-episodes/index.mjs";import{TabBar as Y}from"./components/common/tab-bar/index.mjs";import{ThemeSync as X}from"./components/common/theme-sync/index.mjs";import{TopNavBarServer as Z}from"./components/common/top-nav-bar/index.mjs";import{UserInfoInitializer as Q}from"./components/common/user-info-initializer/index.mjs";import{WaitLoading as $}from"./components/common/wait-loading.mjs";export{x as AddIcon,f as AnalyticsInit,p as BlockedDialog,k as CollectionList,O as CollectionListItem,r as CollectionPopupComponent,i as CollectionPopupHost,S as CommentIcon,H as CommonPhotoGrid,d as CommonPlayer,n as CreateCollectionSheet,h as DebugLocaleSwitcher,g as DeleteConfirmDialog,C as DeleteIcon,q as DetailStyleOneActiveBorderLayer,_ as Empty,v as FunhubProvider,G as GenderPicker,b as HeaderNav,s as IntlProvider,y as LeftArrowIcon,R as LocaleSync,z as LoginDialog,e as MediaPreview,m as MiniThreeCard,w as MoreIcon,B as PageSkeleton,V as PhotoGrid,K as PopupVideo,j as PostList,A as PostListItem,T as RightArrowIcon,J as SeriesEpisodes,E as SettingIcon,a as ShareContent,o as ShareDrawer,D as ShareIcon,c as SharePopupComponent,Y as TabBar,X as ThemeSync,Z as TopNavBarServer,M as UserActivityList,N as UserActivityListItem,P as UserActivityMediaGrid,e as UserActivityMediaPreview,Q as UserInfoInitializer,I as VideoList,F as VideoListItem,$ as WaitLoading,L as WaterfallRecommend,U as closePhotoPreview,l as defaultActions,u as defaultPlatforms,W as photoPreview,t as useMediaPreview};
2
+ import{MediaPreview as e,useMediaPreview as t}from"./components/common/media-preview/index.mjs";import{CreateCollectionSheet as n}from"./components/common/collection-popup/create-collection-sheet.mjs";import{CollectionPopupComponent as r,CollectionPopupHost as i}from"./components/common/collection-popup/index.mjs";import a from"./components/common/share-popup/share-content.mjs";import{ShareDrawer as o}from"./components/common/share-popup/share-drawer.mjs";import{IntlProvider as s}from"./components/common/intl-provider/intl-provider.mjs";import{SharePopupComponent as c,defaultActions as l,defaultPlatforms as u}from"./components/common/share-popup/share-popup.mjs";import d from"./components/common/video-player/index.mjs";import{AnalyticsInit as f}from"./components/common/analytics-init/analytics-init.mjs";import{SensorInit as p}from"./components/common/analytics-init/sensor-init.mjs";import{BlockedDialog as m}from"./components/common/blocked-dialog/blocked-dialog.mjs";import{MiniThreeCard as h}from"./components/common/cards/mini-three-card.mjs";import{DebugLocaleSwitcher as g}from"./components/common/debug-locale-switcher/index.mjs";import{DeleteConfirmDialog as _}from"./components/common/delete-confirm-dialog/delete-confirm-dialog.mjs";import v from"./components/common/empty/index.mjs";import{FunhubProvider as y}from"./components/common/funhub-provider/funhub-provider.mjs";import{LeftArrowIcon as b}from"./components/common/icons/left-arrow.mjs";import{HeaderNav as x}from"./components/common/header-nav/client.mjs";import{AddIcon as S}from"./components/common/icons/add.mjs";import{CommentIcon as C}from"./components/common/icons/comment.mjs";import{DeleteIcon as w}from"./components/common/icons/delete.mjs";import{MoreIcon as T}from"./components/common/icons/more.mjs";import{RightArrowIcon as E}from"./components/common/icons/right-arrow.mjs";import{SettingIcon as D}from"./components/common/icons/setting.mjs";import{ShareIcon as O}from"./components/common/icons/share.mjs";import{CollectionListItem as k}from"./components/common/list/collection-list/collection-list-item.mjs";import{CollectionList as A}from"./components/common/list/collection-list/collection-list.mjs";import{PostListItem as j}from"./components/common/list/post-list/post-list-item.mjs";import{PostList as M}from"./components/common/list/post-list/post-list.mjs";import{UserActivityList as N}from"./components/common/list/user-activity-list/user-activity-list.mjs";import{UserActivityListItem as P,UserActivityMediaGrid as F}from"./components/common/list/user-activity-list/user-activity-list-item.mjs";import{VideoListItem as I}from"./components/common/list/video-list/video-list-item.mjs";import{VideoList as L}from"./components/common/list/video-list/video-list.mjs";import{WaterfallRecommend as R}from"./components/common/list/waterfall-recommend/waterfall-recommend.mjs";import{LocaleSync as z}from"./components/common/locale-sync/locale-sync.mjs";import{LoginDialog as B}from"./components/common/login-dialog/login-dialog.mjs";import{PageSkeleton as V}from"./components/common/page-skeleton/page-skeleton.mjs";import H from"./components/common/photo-grid/index.mjs";import U from"./components/common/photo-grid/common-photo-grid.mjs";import{closePhotoPreview as W,photoPreview as G}from"./components/common/photo-preview/index.mjs";import{GenderPicker as K}from"./components/common/picker/gender-picker/gender-picker.mjs";import q from"./components/common/popup-video/index.mjs";import{DetailStyleOneActiveBorderLayer as J,SeriesEpisodes as Y}from"./components/common/series-episodes/index.mjs";import{TabBar as X}from"./components/common/tab-bar/index.mjs";import{ThemeSync as Z}from"./components/common/theme-sync/index.mjs";import{TopNavBarServer as Q}from"./components/common/top-nav-bar/index.mjs";import{UserInfoInitializer as $}from"./components/common/user-info-initializer/index.mjs";import{WaitLoading as ee}from"./components/common/wait-loading.mjs";export{S as AddIcon,f as AnalyticsInit,m as BlockedDialog,A as CollectionList,k as CollectionListItem,r as CollectionPopupComponent,i as CollectionPopupHost,C as CommentIcon,U as CommonPhotoGrid,d as CommonPlayer,n as CreateCollectionSheet,g as DebugLocaleSwitcher,_ as DeleteConfirmDialog,w as DeleteIcon,J as DetailStyleOneActiveBorderLayer,v as Empty,y as FunhubProvider,K as GenderPicker,x as HeaderNav,s as IntlProvider,b as LeftArrowIcon,z as LocaleSync,B as LoginDialog,e as MediaPreview,h as MiniThreeCard,T as MoreIcon,V as PageSkeleton,H as PhotoGrid,q as PopupVideo,M as PostList,j as PostListItem,E as RightArrowIcon,p as SensorInit,Y as SeriesEpisodes,D as SettingIcon,a as ShareContent,o as ShareDrawer,O as ShareIcon,c as SharePopupComponent,X as TabBar,Z as ThemeSync,Q as TopNavBarServer,N as UserActivityList,P as UserActivityListItem,F as UserActivityMediaGrid,e as UserActivityMediaPreview,$ as UserInfoInitializer,L as VideoList,I as VideoListItem,ee as WaitLoading,R as WaterfallRecommend,W as closePhotoPreview,l as defaultActions,u as defaultPlatforms,G as photoPreview,t as useMediaPreview};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{disablePageScroll as t,enablePageScroll as n,pxToVw as r}from"../../../../../../../utils/helper.mjs";import{Image as i}from"../../../../../../ui/image.mjs";import{Box as a}from"../../../../../../ui/box.mjs";import{Text as o}from"../../../../../../ui/text.mjs";import s from"../../../../../../ui/link.mjs";import{urlPrefix as c}from"../../../../../../../constants/url-prefix.mjs";import l from"../../../../../../ui/legacy/button.mjs";import{defaultProps as u}from"../defaults/default-props.mjs";import d from"../../../../../../../assets/images/logo.mjs";import{loadHiddenChannelIdsFromStorage as f}from"../../../../../business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs";import{Popover as p}from"../../../../../../ui/legacy/popover.mjs";import{Mask as m}from"../../../../../../ui/mask.mjs";import{clsx as h}from"clsx";import{useIsClient as g}from"foxact/use-is-client";import{useEffect as _,useMemo as v,useRef as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{usePathname as C}from"next/navigation";const w={overscrollBehavior:`contain`},T={},E=[];function D(e,t){return t===0?`/`:`${c.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function O(e,t,n){return h(`w-full leading-[58px] px-[20px] text-[16px] text-text2 border-t border-solid border-line1 transition-all duration-150 block`,e===0&&`border-t-0`,t&&`!text-[20px] !text-theme5 !font-bold`,n&&`!text-(--color-theme5)`)}function k(e){let t=e;try{t=decodeURIComponent(e)}catch{t=e}return t.length>1&&t.endsWith(`/`)?t.slice(0,-1):t}function A(e){e.stopPropagation()}function j({props:c=T,styles:h,events:j,data:M=E}){let{logoAlt:N,logoWidth:P,logoHeight:F,popoverPlacement:I,popoverWidth:L,maxHeight:R,itemHeight:z,currentChannelId:B}={...u,...c},[V,H]=b(!1),U=y(null),W=C(),[G,K]=b(B??null),q=g(),J=(e,t)=>{K(e.id),j?.onChannelChange?.(e,t),setTimeout(()=>{H(!1)},150)};_(()=>{if(B||!W||M.length===0)return;let e=k(W),t=M.find((t,n)=>k(D(t,n))===e);t?K(t.id):e===`/`&&K(M[0]?.id||null)},[W,q,M,B]);let Y=v(()=>{if(!q||!V)return M;let e=f();return M.filter(t=>!e.includes(t.id))},[M,q,V]);_(()=>{if(V)return t(),()=>{n()}},[V]);let X=h?e(h,{}):{},Z={width:r(L),maxHeight:r(R),...w};return S(a,{style:X,className:`leading-0 flex items-center`,children:[x(m,{visible:V,onMaskClick:()=>{H(!1)}}),x(p,{placement:I,visible:V,content:x(a,{as:`nav`,className:`overflow-y-auto overscroll-contain`,style:Z,onTouchMove:A,children:Y.map((e,t)=>{let n=D(e,t),i=k(W||``)===k(n);return x(s,{href:n,className:O(t,G===e.id,i),style:{height:r(z)},onClick:()=>J(e,t),children:e.cn_name},e.id||`channel-${t}`)})}),children:x(o,{ref:U,as:`h1`,className:`flex items-center`,children:x(l,{onClick:()=>{H(e=>!e),j?.onClick?.()},className:`!m-0 !p-0`,children:x(i,{alt:N,src:typeof d==`string`?d:d.src,width:P,height:F})})},`logo-button`)})]})}export{j as default};
2
+ "use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{disablePageScroll as t,enablePageScroll as n,pxToVw as r}from"../../../../../../../utils/helper.mjs";import{trackPageClick as i}from"../../../../../../../utils/tracking.mjs";import{Image as a}from"../../../../../../ui/image.mjs";import{Box as o}from"../../../../../../ui/box.mjs";import{Text as s}from"../../../../../../ui/text.mjs";import c from"../../../../../../ui/link.mjs";import{urlPrefix as l}from"../../../../../../../constants/url-prefix.mjs";import u from"../../../../../../ui/legacy/button.mjs";import{defaultProps as d}from"../defaults/default-props.mjs";import f from"../../../../../../../assets/images/logo.mjs";import{loadHiddenChannelIdsFromStorage as p}from"../../../../../business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs";import{Popover as m}from"../../../../../../ui/legacy/popover.mjs";import{Mask as h}from"../../../../../../ui/mask.mjs";import{clsx as g}from"clsx";import{useIsClient as _}from"foxact/use-is-client";import{useEffect as v,useMemo as y,useRef as b,useState as x}from"react";import{jsx as S,jsxs as C}from"react/jsx-runtime";import{usePathname as w}from"next/navigation";const T={overscrollBehavior:`contain`},E={},D=[];function O(e,t){return t===0?`/`:`${l.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function k(e,t,n){return g(`w-full leading-[58px] px-[20px] text-[16px] text-text2 border-t border-solid border-line1 transition-all duration-150 block`,e===0&&`border-t-0`,t&&`!text-[20px] !text-theme5 !font-bold`,n&&`!text-(--color-theme5)`)}function A(e){let t=e;try{t=decodeURIComponent(e)}catch{t=e}return t.length>1&&t.endsWith(`/`)?t.slice(0,-1):t}function j(e){e.stopPropagation()}function M({props:l=E,styles:g,events:M,data:N=D}){let{logoAlt:P,logoWidth:F,logoHeight:I,popoverPlacement:L,popoverWidth:R,maxHeight:z,itemHeight:B,currentChannelId:V,pageKey:H=`home`,pageName:U=`首页`}={...d,...l},[W,G]=x(!1),K=b(null),q=w(),[J,Y]=x(V??null),X=_(),Z=(e,t)=>{Y(e.id),M?.onChannelChange?.(e,t),setTimeout(()=>{G(!1)},150)};v(()=>{if(V||!q||N.length===0)return;let e=A(q),t=N.find((t,n)=>A(O(t,n))===e);t?Y(t.id):e===`/`&&Y(N[0]?.id||null)},[q,X,N,V]);let Q=y(()=>{if(!X||!W)return N;let e=p();return N.filter(t=>!e.includes(t.id))},[N,X,W]);v(()=>{if(W)return t(),()=>{n()}},[W]);let $=g?e(g,{}):{},ee={width:r(R),maxHeight:r(z),...T};return C(o,{style:$,className:`leading-0 flex items-center`,children:[S(h,{visible:W,onMaskClick:()=>{G(!1)}}),S(m,{placement:L,visible:W,content:S(o,{as:`nav`,className:`overflow-y-auto overscroll-contain`,style:ee,onTouchMove:j,children:Q.map((e,t)=>{let n=O(e,t),i=A(q||``)===A(n);return S(c,{href:n,className:k(t,J===e.id,i),style:{height:r(B)},onClick:()=>Z(e,t),children:e.cn_name},e.id||`channel-${t}`)})}),children:S(s,{ref:K,as:`h1`,className:`flex items-center`,children:S(u,{onClick:()=>{i(H,U,null,`logo`),G(e=>!e),M?.onClick?.()},className:`!m-0 !p-0`,children:S(a,{alt:P,src:typeof f==`string`?f:f.src,width:F,height:I})})},`logo-button`)})]})}export{M as default};
@@ -1,2 +1,2 @@
1
1
 
2
- function e(e){return{...e}}function t(e){let t=e?.adExtData;if(!t)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch{return{}}}function n(e){return[...e??[]].sort((e,t)=>Number(e?.sort??0)-Number(t?.sort??0))}function r(e){return!!(e?.hit&&Array.isArray(e.materials)&&e.materials.length>0)}function i(e){return n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({materialUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,name:e.advertiseName||``}))}function a(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({title:t(e).title||e.advertiseName||``,icon:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,badgeText:`广告`})).filter(e=>e.title&&e.icon&&e.jumpUrl);return{displayCount:l(e?.config,r.length),items:r}}function o(e){let t=n(e?.materials).map(e=>({text:e.advertiseName||e.advertiseDesc||``,jumpUrl:e.advertiseUrl||``})).filter(e=>e.text);return{displayCount:l(e?.config,t.length),items:t}}function s(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl),i=r.map(e=>{let n=t(e);return{coverUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,title:n.title||e.advertiseName||``}}).filter(e=>e.coverUrl&&e.jumpUrl);return{displayCount:l(e?.config,i.length),switchInterval:u(e?.config,r),styleSize:d(e?.config,r),items:i}}function c(e){return n(e?.materials).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,jumpUrl:e.advertiseUrl||``,materialUrl:e.advertiseIcon||``,desc:e.advertiseDesc||``}}).filter(e=>e.id&&e.materialUrl&&e.jumpUrl)}function l(e,t=0){let n=Number(e?.displayCount??t);return!Number.isFinite(n)||n<=0?t:Math.min(Math.floor(n),t)}function u(e,n){let r=t(n?.[0]),i=Number(e?.switchInterval??r.switchInterval??3e3);return!Number.isFinite(i)||i<=0?3e3:i}function d(e,n){let r=t(n?.[0]),i=String(e?.styleSize??r.styleSize??`large`);return i===`700x400`||i===`700x200`||i===`720x150`||i===`720x300`?i:i===`small`?`720x150`:i===`medium`?`700x200`:`700x400`}export{s as adaptBannerAdProps,i as adaptFloatingAdItems,a as adaptIconAdProps,c as adaptPopupAdMaterials,o as adaptTextAdProps,e as buildAdsMatchRequest,r as hasMatchedAds,t as parseAdsMatchExtData,n as sortAdsMatchMaterials};
2
+ function e(e){return{...e}}function t(e){let t=e?.adExtData;if(!t)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch{return{}}}function n(e){return[...e??[]].sort((e,t)=>Number(e?.sort??0)-Number(t?.sort??0))}function r(e){return!!(e?.hit&&Array.isArray(e.materials)&&e.materials.length>0)}function i(e){return n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({id:e.advertiseCode||``,materialUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,name:e.advertiseName||``}))}function a(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,icon:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,badgeText:`广告`}}).filter(e=>e.title&&e.icon&&e.jumpUrl);return{displayCount:l(e?.config,r.length),items:r}}function o(e){let t=n(e?.materials).map(e=>({id:e.advertiseCode||``,text:e.advertiseName||e.advertiseDesc||``,jumpUrl:e.advertiseUrl||``})).filter(e=>e.text);return{displayCount:l(e?.config,t.length),items:t}}function s(e){let r=n(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl),i=r.map(e=>{let n=t(e);return{id:e.advertiseCode||``,coverUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,title:n.title||e.advertiseName||``}}).filter(e=>e.coverUrl&&e.jumpUrl);return{displayCount:l(e?.config,i.length),switchInterval:u(e?.config,r),styleSize:d(e?.config,r),items:i}}function c(e){return n(e?.materials).map(e=>{let n=t(e);return{id:e.advertiseCode||``,title:n.title||e.advertiseName||``,jumpUrl:e.advertiseUrl||``,materialUrl:e.advertiseIcon||``,desc:e.advertiseDesc||``}}).filter(e=>e.id&&e.materialUrl&&e.jumpUrl)}function l(e,t=0){let n=Number(e?.displayCount??t);return!Number.isFinite(n)||n<=0?t:Math.min(Math.floor(n),t)}function u(e,n){let r=t(n?.[0]),i=Number(e?.switchInterval??r.switchInterval??3e3);return!Number.isFinite(i)||i<=0?3e3:i}function d(e,n){let r=t(n?.[0]),i=String(e?.styleSize??r.styleSize??`large`);return i===`700x400`||i===`700x200`||i===`720x150`||i===`720x300`?i:i===`small`?`720x150`:i===`medium`?`700x200`:`700x400`}export{s as adaptBannerAdProps,i as adaptFloatingAdItems,a as adaptIconAdProps,c as adaptPopupAdMaterials,o as adaptTextAdProps,e as buildAdsMatchRequest,r as hasMatchedAds,t as parseAdsMatchExtData,n as sortAdsMatchMaterials};
@@ -12,7 +12,9 @@ declare function BannerAd({
12
12
  switchInterval,
13
13
  styleSize,
14
14
  items,
15
- pointerEventsDisabled
15
+ pointerEventsDisabled,
16
+ pageKey,
17
+ pageName
16
18
  }: BannerAdProps): react_jsx_runtime0.JSX.Element | null;
17
19
  //#endregion
18
20
  export { BannerAd };
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Carousel as n,CarouselContent as r,CarouselItem as i}from"../../../../ui/carousel.mjs";import{Text as a}from"../../../../ui/text.mjs";import o from"../../../../ui/link.mjs";import{adaptBannerAdProps as s,hasMatchedAds as c}from"../ad-match.mjs";import{useAdProvider as l}from"../ad-provider.mjs";import{bannerAdInspectorDefaultProps as u}from"./schema.mjs";import d from"clsx";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v={"700x400":{minHeight:`400px`,aspectRatio:`7 / 4`,titleFontSize:`14px`},"700x200":{minHeight:`200px`,aspectRatio:`7 / 2`,titleFontSize:`14px`},"720x150":{minHeight:`150px`,aspectRatio:`24 / 5`,titleFontSize:`12px`},"720x300":{minHeight:`300px`,aspectRatio:`12 / 5`,titleFontSize:`14px`}},y=[{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告一`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告二`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告三`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告四`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告五`}];function b(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function x(e,t){return typeof e==`number`&&e>0?e:t}function S(e,t){return typeof e==`number`&&e>0?e:t}function C(e,t){return e??t}function w({mode:w=`renderer`,displayCount:T,switchInterval:E=3e3,styleSize:D=`700x400`,items:O,pointerEventsDisabled:k=!1}){let A=w===`editor`?{displayCount:x(T,u.displayCount),switchInterval:S(E,u.switchInterval),styleSize:C(D,u.styleSize),items:b(O,y)}:{displayCount:T,switchInterval:E,styleSize:D,items:O},j=l(),M=p(()=>c(j?.matchData)?s(j?.matchData):{displayCount:A.displayCount,switchInterval:A.switchInterval,styleSize:A.styleSize,items:A.items??[]},[j?.matchData,A.displayCount,A.items,A.styleSize,A.switchInterval]),[N,P]=h(),[F,I]=h(0),L=m(null),R=p(()=>typeof M.displayCount==`number`?M.items.slice(0,Math.max(M.displayCount,0)):M.items,[M]);if(f(()=>{if(!N||R.length<=1)return;let e=()=>{I(N.selectedScrollSnap())};return N.on(`select`,e),e(),()=>{N.off(`select`,e)}},[N,R.length]),f(()=>{if(!(!N||R.length<=1))return L.current=setInterval(()=>{if(N.canScrollNext()){N.scrollNext();return}N.scrollTo(0)},M.switchInterval??3e3),()=>{L.current&&=(clearInterval(L.current),null)}},[N,M.switchInterval,R.length]),R.length===0)return null;let z=v[M.styleSize??`700x400`];return g(t,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:k?`none`:void 0},children:_(n,{setApi:P,opts:{align:`start`,loop:R.length>1},className:`w-full`,children:[g(r,{className:`ml-0`,children:R.map((n,r)=>g(i,{className:`pl-0`,children:_(o,{href:n.jumpUrl,className:d(`relative block w-full overflow-hidden bg-white`),style:{minHeight:z?.minHeight,aspectRatio:z?.aspectRatio,borderRadius:`10px`},children:[g(t,{className:`absolute inset-0`,children:g(e,{src:n.coverUrl,alt:n.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),g(t,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),g(t,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:g(a,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),n.title?g(a,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:z.titleFontSize,lineHeight:`normal`,fontWeight:500},children:n.title}):null]})},`${n.jumpUrl}-${r}`))}),R.length>1?g(t,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:R.map((e,n)=>g(t,{className:`rounded-full transition-all duration-300`,style:{width:n===F?`16px`:`8px`,height:`8px`,backgroundColor:n===F?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},n))}):null]})})}export{w as BannerAd};
2
+ "use client";import{trackAdClick as e,trackAdImpression as t}from"../../../../../utils/tracking.mjs";import{Image as n}from"../../../../ui/image.mjs";import{Box as r}from"../../../../ui/box.mjs";import{Carousel as i,CarouselContent as a,CarouselItem as o}from"../../../../ui/carousel.mjs";import{Text as s}from"../../../../ui/text.mjs";import c from"../../../../ui/link.mjs";import{adaptBannerAdProps as l,hasMatchedAds as u}from"../ad-match.mjs";import{useAdProvider as d}from"../ad-provider.mjs";import{bannerAdInspectorDefaultProps as f}from"./schema.mjs";import p from"clsx";import{useEffect as m,useMemo as h,useRef as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";const b={"700x400":{minHeight:`400px`,aspectRatio:`7 / 4`,titleFontSize:`14px`},"700x200":{minHeight:`200px`,aspectRatio:`7 / 2`,titleFontSize:`14px`},"720x150":{minHeight:`150px`,aspectRatio:`24 / 5`,titleFontSize:`12px`},"720x300":{minHeight:`300px`,aspectRatio:`12 / 5`,titleFontSize:`14px`}},x=[{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告一`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告二`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告三`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告四`},{coverUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,title:`Banner 广告五`}];function S(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function C(e,t){return typeof e==`number`&&e>0?e:t}function w(e,t){return typeof e==`number`&&e>0?e:t}function T(e,t){return e??t}function E({mode:E=`renderer`,displayCount:D,switchInterval:O=3e3,styleSize:k=`700x400`,items:A,pointerEventsDisabled:j=!1,pageKey:M=`home`,pageName:N=`首页`}){let P=E===`editor`?{displayCount:C(D,f.displayCount),switchInterval:w(O,f.switchInterval),styleSize:T(k,f.styleSize),items:S(A,x)}:{displayCount:D,switchInterval:O,styleSize:k,items:A},F=d(),I=h(()=>u(F?.matchData)?l(F?.matchData):{displayCount:P.displayCount,switchInterval:P.switchInterval,styleSize:P.styleSize,items:P.items??[]},[F?.matchData,P.displayCount,P.items,P.styleSize,P.switchInterval]),[L,R]=_(),[z,B]=_(0),V=g(null),H=h(()=>typeof I.displayCount==`number`?I.items.slice(0,Math.max(I.displayCount,0)):I.items,[I]),U=F?.matchData?.advertiseLocationCode||`home_banner`,W=H[z];m(()=>{!W?.id||E===`editor`||t({page_key:M,page_name:N,ad_slot_key:U,ad_slot_name:`Banner广告`,ad_id:W.id,ad_type:`banner`})},[W?.id,U,M,N,E]);function G(t){t.id&&e({page_key:M,page_name:N,ad_slot_key:U,ad_slot_name:`Banner广告`,ad_id:t.id,ad_type:`banner`})}if(m(()=>{if(!L||H.length<=1)return;let e=()=>{B(L.selectedScrollSnap())};return L.on(`select`,e),e(),()=>{L.off(`select`,e)}},[L,H.length]),m(()=>{if(!(!L||H.length<=1))return V.current=setInterval(()=>{if(L.canScrollNext()){L.scrollNext();return}L.scrollTo(0)},I.switchInterval??3e3),()=>{V.current&&=(clearInterval(V.current),null)}},[L,I.switchInterval,H.length]),H.length===0)return null;let K=b[I.styleSize??`700x400`];return v(r,{as:`section`,className:`w-full px-[12px] py-[12px]`,"aria-label":`Banner 广告`,style:{pointerEvents:j?`none`:void 0},children:y(i,{setApi:R,opts:{align:`start`,loop:H.length>1},className:`w-full`,children:[v(a,{className:`ml-0`,children:H.map((e,t)=>v(o,{className:`pl-0`,children:y(c,{href:e.jumpUrl,className:p(`relative block w-full overflow-hidden bg-white`),style:{minHeight:K?.minHeight,aspectRatio:K?.aspectRatio,borderRadius:`10px`},onClick:()=>G(e),children:[v(r,{className:`absolute inset-0`,children:v(n,{src:e.coverUrl,alt:e.title||`Banner 广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),v(r,{className:`absolute inset-x-0 bottom-0`,style:{height:`28%`,background:`linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%)`,opacity:.84}}),v(r,{className:`absolute right-0 top-0 overflow-hidden`,style:{width:`56px`,height:`25px`,backgroundColor:`rgba(255, 255, 255, 0.16)`,borderBottomLeftRadius:`8px`},children:v(s,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),e.title?v(s,{className:`absolute line-clamp-2 text-white`,style:{left:`16px`,bottom:`16px`,maxWidth:`calc(100% - 120px)`,fontSize:K.titleFontSize,lineHeight:`normal`,fontWeight:500},children:e.title}):null]})},`${e.jumpUrl}-${t}`))}),H.length>1?v(r,{className:`pointer-events-none absolute bottom-[18px] right-[16px] z-10 flex items-center gap-[6px]`,children:H.map((e,t)=>v(r,{className:`rounded-full transition-all duration-300`,style:{width:t===z?`16px`:`8px`,height:`8px`,backgroundColor:t===z?`#FFFFFF`:`rgba(255, 255, 255, 0.78)`}},t))}):null]})})}export{E as BannerAd};
@@ -17,6 +17,10 @@ type BannerAdStyleSize = typeof bannerAdStyleSizeOptions[number];
17
17
  * Banner 广告单条数据。
18
18
  */
19
19
  interface BannerAdItem {
20
+ /**
21
+ * 广告 ID,对应广告导入数据的 advertiseCode。
22
+ */
23
+ id?: string;
20
24
  /**
21
25
  * 封面图地址。
22
26
  */
@@ -76,6 +80,14 @@ type BannerAdProps = BannerAdInspectorProps<{
76
80
  * 编辑态下禁用交互。
77
81
  */
78
82
  pointerEventsDisabled?: boolean;
83
+ /**
84
+ * 页面标识。
85
+ */
86
+ pageKey?: string;
87
+ /**
88
+ * 页面名称。
89
+ */
90
+ pageName?: string;
79
91
  }>;
80
92
  //#endregion
81
93
  export { BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdStyleSize, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdStyleSizeOptions };
@@ -15,6 +15,8 @@ declare function FloatingAd({
15
15
  bottomOffset,
16
16
  rightOffset,
17
17
  pointerEventsDisabled,
18
+ pageKey,
19
+ pageName,
18
20
  onClick
19
21
  }: FloatingAdProps): react_jsx_runtime0.JSX.Element | null;
20
22
  //#endregion
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import n from"../../../../ui/link.mjs";import{adaptFloatingAdItems as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{useMemo as o}from"react";import{jsx as s}from"react/jsx-runtime";const c={materialUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,name:`悬浮广告`};function l({ad:l,mode:u=`renderer`,bottomOffset:d=100,rightOffset:f=20,pointerEventsDisabled:p=!1,onClick:m}){let h=a(),g=o(()=>l?.materialUrl&&l?.jumpUrl?l:u===`editor`?c:i(h?.matchData)?r(h?.matchData)[0]??null:null,[l,u,h?.matchData]);if(!g?.materialUrl||!g?.jumpUrl)return null;let _=s(t,{className:`relative flex h-full w-full overflow-hidden`,style:{borderRadius:`8px`},"aria-label":g.name||`悬浮广告`,children:s(t,{className:`absolute inset-0`,children:s(e,{src:g.materialUrl,alt:g.name||`悬浮广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})})}),v={bottom:`${d}px`,right:`${f}px`,width:`75px`,height:`75px`,pointerEvents:p?`none`:void 0};return m?s(t,{className:`fixed z-50 block cursor-pointer`,style:v,onClick:m,children:_}):s(n,{href:g.jumpUrl,className:`fixed z-50 block`,style:v,children:_})}export{l as FloatingAd};
2
+ "use client";import{trackAdClick as e,trackAdImpression as t}from"../../../../../utils/tracking.mjs";import{Image as n}from"../../../../ui/image.mjs";import{Box as r}from"../../../../ui/box.mjs";import i from"../../../../ui/link.mjs";import{adaptFloatingAdItems as a,hasMatchedAds as o}from"../ad-match.mjs";import{useAdProvider as s}from"../ad-provider.mjs";import{useEffect as c,useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";const d={materialUrl:`/static/components-resource/banner.png`,jumpUrl:`/search`,name:`悬浮广告`};function f({ad:f,mode:p=`renderer`,bottomOffset:m=100,rightOffset:h=20,pointerEventsDisabled:g=!1,pageKey:_=`home`,pageName:v=`首页`,onClick:y}){let b=s(),x=l(()=>f?.materialUrl&&f?.jumpUrl?f:p===`editor`?d:o(b?.matchData)?a(b?.matchData)[0]??null:null,[f,p,b?.matchData]),S=b?.matchData?.advertiseLocationCode||`home_floating`;c(()=>{!x?.id||p===`editor`||t({page_key:_,page_name:v,ad_slot_key:S,ad_slot_name:`悬浮广告`,ad_id:x.id,ad_type:`full-screen`})},[x?.id,S,_,v,p]);function C(){x?.id&&e({page_key:_,page_name:v,ad_slot_key:S,ad_slot_name:`悬浮广告`,ad_id:x.id,ad_type:`full-screen`})}if(!x?.materialUrl||!x?.jumpUrl)return null;let w=u(r,{className:`relative flex h-full w-full overflow-hidden`,style:{borderRadius:`8px`},"aria-label":x.name||`悬浮广告`,children:u(r,{className:`absolute inset-0`,children:u(n,{src:x.materialUrl,alt:x.name||`悬浮广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})})}),T={bottom:`${m}px`,right:`${h}px`,width:`75px`,height:`75px`,pointerEvents:g?`none`:void 0};return y?u(r,{className:`fixed z-50 block cursor-pointer`,style:T,onClick:()=>{C(),y()},children:w}):u(i,{href:x.jumpUrl,className:`fixed z-50 block`,style:T,onClick:C,children:w})}export{f as FloatingAd};
@@ -9,6 +9,10 @@ import * as zod_v4_core0 from "zod/v4/core";
9
9
  * 悬浮广告单条数据。
10
10
  */
11
11
  interface FloatingAdItem {
12
+ /**
13
+ * 广告 ID,对应广告导入数据的 advertiseCode。
14
+ */
15
+ id?: string;
12
16
  /**
13
17
  * 广告素材地址。
14
18
  */
@@ -64,6 +68,14 @@ interface FloatingAdProps {
64
68
  * 编辑态下禁用交互。
65
69
  */
66
70
  pointerEventsDisabled?: boolean;
71
+ /**
72
+ * 页面标识。
73
+ */
74
+ pageKey?: string;
75
+ /**
76
+ * 页面名称。
77
+ */
78
+ pageName?: string;
67
79
  /**
68
80
  * 自定义点击事件。
69
81
  */
@@ -10,7 +10,9 @@ declare function IconAd({
10
10
  mode: _mode,
11
11
  displayCount,
12
12
  items,
13
- pointerEventsDisabled
13
+ pointerEventsDisabled,
14
+ pageKey,
15
+ pageName
14
16
  }: IconAdProps): react_jsx_runtime0.JSX.Element | null;
15
17
  //#endregion
16
18
  export { IconAd };
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../../ui/image.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import r from"../../../../ui/link.mjs";import{adaptIconAdProps as i,hasMatchedAds as a}from"../ad-match.mjs";import{useAdProvider as o}from"../ad-provider.mjs";import{iconAdInspectorDefaultProps as s}from"./schema.mjs";import{useMemo as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";const d=[{title:`图标广告1`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告2`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告3`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告4`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告5`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`}];function f(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function p(e,t){return typeof e==`number`&&e>0?e:t}function m({mode:m=`renderer`,displayCount:h,items:g,pointerEventsDisabled:_=!1}){let v=m===`editor`?{displayCount:p(h,s.displayCount),items:f(g,d)}:{displayCount:h,items:g},y=o(),b=c(()=>a(y?.matchData)?i(y?.matchData):{displayCount:v.displayCount,items:v.items??[]},[y?.matchData,v.displayCount,v.items]),x=b.displayCount??b?.items?.length,S=Math.min(Math.max(x,0),Math.min(b.items.length,5)),C=b.items.slice(0,S);return C.length===0?null:l(t,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:_?`none`:void 0},children:l(t,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:C.length>=5?`space-between`:`flex-start`},children:C.map((i,a)=>l(r,{href:i.jumpUrl,className:`block shrink-0`,style:{width:`100px`},children:u(t,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[l(t,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:l(e,{src:i.icon,alt:i.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),l(n,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:i.title}),l(t,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:l(n,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:i.badgeText||`广告`})})]})},`${i.jumpUrl}-${a}`))})})}export{m as IconAd};
2
+ "use client";import{trackAdClick as e,trackAdImpression as t}from"../../../../../utils/tracking.mjs";import{Image as n}from"../../../../ui/image.mjs";import{Box as r}from"../../../../ui/box.mjs";import{Text as i}from"../../../../ui/text.mjs";import a from"../../../../ui/link.mjs";import{adaptIconAdProps as o,hasMatchedAds as s}from"../ad-match.mjs";import{useAdProvider as c}from"../ad-provider.mjs";import{iconAdInspectorDefaultProps as l}from"./schema.mjs";import{useEffect as u,useMemo as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=[{title:`图标广告1`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告2`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告3`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告4`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`},{title:`图标广告5`,icon:`/static/components-resource/banner.png`,jumpUrl:`/search`,badgeText:`广告`}];function h(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function g(e,t){return typeof e==`number`&&e>0?e:t}function _({mode:_=`renderer`,displayCount:v,items:y,pointerEventsDisabled:b=!1,pageKey:x=`home`,pageName:S=`首页`}){let C=_===`editor`?{displayCount:g(v,l.displayCount),items:h(y,m)}:{displayCount:v,items:y},w=c(),T=d(()=>s(w?.matchData)?o(w?.matchData):{displayCount:C.displayCount,items:C.items??[]},[w?.matchData,C.displayCount,C.items]),E=T.displayCount??T?.items?.length,D=Math.min(Math.max(E,0),Math.min(T.items.length,5)),O=T.items.slice(0,D),k=w?.matchData?.advertiseLocationCode||`home_icon`,A=d(()=>O.map(e=>e.id).filter(Boolean).join(`,`),[O]);u(()=>{_===`editor`||!A||t({page_key:x,page_name:S,ad_slot_key:k,ad_slot_name:`图标广告`,ad_id:A,ad_type:`small-cube`})},[k,x,S,A,_]);function j(t){t.id&&e({page_key:x,page_name:S,ad_slot_key:k,ad_slot_name:`图标广告`,ad_id:t.id,ad_type:`small-cube`})}return O.length===0?null:f(r,{as:`section`,className:`w-full`,"aria-label":`图标广告`,style:{pointerEvents:b?`none`:void 0},children:f(r,{className:`flex overflow-x-auto`,style:{gap:`8px`,padding:`16px 24px`,backgroundColor:`#131313`,alignItems:`center`,justifyContent:O.length>=5?`space-between`:`flex-start`},children:O.map((e,t)=>f(a,{href:e.jumpUrl,className:`block shrink-0`,style:{width:`100px`},onClick:()=>j(e),children:p(r,{className:`flex flex-col items-center`,style:{gap:`12px`},children:[f(r,{className:`relative overflow-hidden`,style:{width:`100px`,height:`61px`,borderRadius:`10px`,backgroundColor:`#616161`},children:f(n,{src:e.icon,alt:e.title||`图标广告`,fill:!0,className:`object-cover object-center`,unoptimized:!0})}),f(i,{className:`truncate text-center text-white`,style:{width:`100px`,fontSize:`12px`,lineHeight:1,fontWeight:500},children:e.title}),f(r,{className:`flex items-center justify-center`,style:{minWidth:`35px`,padding:`2px 8px`,borderRadius:`4px`,backgroundColor:`rgba(255, 255, 255, 0.33)`},children:f(i,{className:`whitespace-nowrap text-white`,style:{fontSize:`10px`,lineHeight:`normal`,fontWeight:400},children:e.badgeText||`广告`})})]})},`${e.jumpUrl}-${t}`))})})}export{_ as IconAd};
@@ -9,6 +9,10 @@ import z$1 from "zod";
9
9
  * 图标广告单条数据。
10
10
  */
11
11
  interface IconAdItem {
12
+ /**
13
+ * 广告 ID,对应广告导入数据的 advertiseCode。
14
+ */
15
+ id?: string;
12
16
  /**
13
17
  * 广告标题。
14
18
  */
@@ -68,6 +72,14 @@ type IconAdProps = IconAdInspectorProps<{
68
72
  * 编辑态下禁用交互。
69
73
  */
70
74
  pointerEventsDisabled?: boolean;
75
+ /**
76
+ * 页面标识。
77
+ */
78
+ pageKey?: string;
79
+ /**
80
+ * 页面名称。
81
+ */
82
+ pageName?: string;
71
83
  }>;
72
84
  //#endregion
73
85
  export { IconAdInspectorProps, IconAdItem, IconAdProps, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema };
@@ -8,7 +8,9 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
8
8
  */
9
9
  declare function PopupAd({
10
10
  items,
11
- mode: _mode
11
+ mode: _mode,
12
+ pageKey,
13
+ pageName
12
14
  }: PopupAdProps): react_jsx_runtime0.JSX.Element | null;
13
15
  //#endregion
14
16
  export { PopupAd };
@@ -1,5 +1,5 @@
1
1
 
2
- "use client";import{Button as e}from"../../../../ui/button.mjs";import{Image as t}from"../../../../ui/image.mjs";import{Box as n}from"../../../../ui/box.mjs";import{Dialog as r,DialogContent as i}from"../../../../ui/dialog.mjs";import a from"../../../../ui/link.mjs";import{adaptPopupAdMaterials as o,hasMatchedAds as s}from"../ad-match.mjs";import{useAdProvider as c}from"../ad-provider.mjs";import{useEffect as l,useMemo as u,useRef as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";const h=[{id:`popup-ad-1`,title:`弹窗广告标题`,jumpUrl:`/search`,materialUrl:`/static/components-resource/banner.png`,desc:`这里是弹窗广告描述`}];function g(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function _({items:_,mode:v=`renderer`}){let y=c(),b=u(()=>s(y?.matchData)?o(y?.matchData):v===`editor`?g(_,h):_??[],[y?.matchData,v,_]),[x,S]=f(0),[C,w]=f(!1),T=d(null);l(()=>{S(0)},[b]),l(()=>{w(!1)},[x,b]),l(()=>()=>{T.current&&window.clearTimeout(T.current)},[]);let E=b[x];function D(){S(e=>e+1)}function O(){C||(w(!0),T.current&&window.clearTimeout(T.current),T.current=window.setTimeout(()=>{T.current=null,D()},260))}function k(e){e||O()}return E?p(r,{open:!0,onOpenChange:k,disablePointerDismissal:!0,children:m(i,{showCloseButton:!1,className:`w-[320px] max-w-[calc(100vw-32px)] border-none bg-transparent p-0 shadow-none`,children:[m(n,{className:`flex flex-col items-center gap-[24px]`,style:{animation:C?`funhub-popup-ad-exit 260ms cubic-bezier(0.4, 0, 0.2, 1) both`:`funhub-popup-ad-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both, funhub-popup-ad-float 3.2s ease-in-out 420ms infinite`,transformOrigin:`center bottom`},children:[p(a,{href:E.jumpUrl,className:`block w-full overflow-hidden rounded-[20px] bg-[#434343]`,style:{boxShadow:`0 18px 48px rgba(0, 0, 0, 0.26)`},children:p(n,{className:`w-full overflow-hidden bg-[#434343]`,children:p(t,{src:E.materialUrl,alt:E.title||`弹窗广告`,width:1200,height:1600,className:`block w-full h-auto`,unoptimized:!0})})}),p(e,{type:`button`,"aria-label":`关闭弹窗广告`,variant:`ghost`,size:`icon-lg`,className:`relative h-[54px] w-[54px] rounded-full border-[3px] border-white bg-transparent p-0 text-white hover:bg-white/8`,onClick:O,style:{animation:C?`funhub-popup-ad-close-exit 260ms ease-out both`:`funhub-popup-ad-close-breathe 2.4s ease-in-out 480ms infinite`},children:m(n,{className:`relative h-[24px] w-[24px]`,children:[p(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 rotate-45 rounded-full bg-current`}),p(n,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 -rotate-45 rounded-full bg-current`})]})})]},E.id),p(`style`,{children:`
2
+ "use client";import{Button as e}from"../../../../ui/button.mjs";import{trackAdClick as t,trackAdImpression as n,trackAdvertising as r}from"../../../../../utils/tracking.mjs";import{Image as i}from"../../../../ui/image.mjs";import{Box as a}from"../../../../ui/box.mjs";import{Dialog as o,DialogContent as s}from"../../../../ui/dialog.mjs";import c from"../../../../ui/link.mjs";import{adaptPopupAdMaterials as l,hasMatchedAds as u}from"../ad-match.mjs";import{useAdProvider as d}from"../ad-provider.mjs";import{useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";const v=[{id:`popup-ad-1`,title:`弹窗广告标题`,jumpUrl:`/search`,materialUrl:`/static/components-resource/banner.png`,desc:`这里是弹窗广告描述`}];function y(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function b({items:b,mode:x=`renderer`,pageKey:S=`home`,pageName:C=`首页`}){let w=d(),T=p(()=>u(w?.matchData)?l(w?.matchData):x===`editor`?y(b,v):b??[],[w?.matchData,x,b]),[E,D]=h(0),[O,k]=h(!1),A=m(null),j=w?.matchData?.advertiseLocationCode||`home_popup`;f(()=>{D(0)},[T]),f(()=>{k(!1)},[E,T]),f(()=>()=>{A.current&&window.clearTimeout(A.current)},[]);let M=T[E];f(()=>{M?.id&&n({page_key:S,page_name:C,ad_slot_key:j,ad_slot_name:`弹窗广告`,ad_id:M.id,ad_type:`pop-ups-600800`})},[M?.id,j,S,C]);function N(){D(e=>e+1)}function P(){O||(k(!0),A.current&&window.clearTimeout(A.current),A.current=window.setTimeout(()=>{A.current=null,N()},260))}function F(e){e||P()}function I(){M?.id&&t({page_key:S,page_name:C,ad_slot_key:j,ad_slot_name:`弹窗广告`,ad_id:M.id,ad_type:`pop-ups-600800`})}function L(){M?.id&&(r({event_type:`close`,advertising_key:j,advertising_name:`弹窗广告`,advertising_id:M.id}),P())}return M?g(o,{open:!0,onOpenChange:F,disablePointerDismissal:!0,children:_(s,{showCloseButton:!1,className:`w-[320px] max-w-[calc(100vw-32px)] border-none bg-transparent p-0 shadow-none`,children:[_(a,{className:`flex flex-col items-center gap-[24px]`,style:{animation:O?`funhub-popup-ad-exit 260ms cubic-bezier(0.4, 0, 0.2, 1) both`:`funhub-popup-ad-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both, funhub-popup-ad-float 3.2s ease-in-out 420ms infinite`,transformOrigin:`center bottom`},children:[g(c,{href:M.jumpUrl,className:`block w-full overflow-hidden rounded-[20px] bg-[#434343]`,style:{boxShadow:`0 18px 48px rgba(0, 0, 0, 0.26)`},onClick:I,children:g(a,{className:`w-full overflow-hidden bg-[#434343]`,children:g(i,{src:M.materialUrl,alt:M.title||`弹窗广告`,width:1200,height:1600,className:`block w-full h-auto`,unoptimized:!0})})}),g(e,{type:`button`,"aria-label":`关闭弹窗广告`,variant:`ghost`,size:`icon-lg`,className:`relative h-[54px] w-[54px] rounded-full border-[3px] border-white bg-transparent p-0 text-white hover:bg-white/8`,onClick:L,style:{animation:O?`funhub-popup-ad-close-exit 260ms ease-out both`:`funhub-popup-ad-close-breathe 2.4s ease-in-out 480ms infinite`},children:_(a,{className:`relative h-[24px] w-[24px]`,children:[g(a,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 rotate-45 rounded-full bg-current`}),g(a,{className:`absolute left-1/2 top-1/2 h-[4px] w-full -translate-x-1/2 -translate-y-1/2 -rotate-45 rounded-full bg-current`})]})})]},M.id),g(`style`,{children:`
3
3
  @keyframes funhub-popup-ad-enter {
4
4
  0% {
5
5
  opacity: 0;
@@ -61,4 +61,4 @@
61
61
  animation-iteration-count: 1 !important;
62
62
  }
63
63
  }
64
- `})]})}):null}export{_ as PopupAd};
64
+ `})]})}):null}export{b as PopupAd};
@@ -49,7 +49,9 @@ interface PopupAdBaseProps {
49
49
  type PopupAdProps = Omit<PopupAdInspectorProps<{
50
50
  mode?: MaterialComponentMode;
51
51
  componentId?: string;
52
- sceneContext?: AdsMatchSceneContext;
52
+ sceneContext?: AdsMatchSceneContext; /** 上报用页面标识,如 home。 */
53
+ pageKey?: string; /** 上报用页面名称,如 首页。 */
54
+ pageName?: string;
53
55
  }>, 'items'> & PopupAdBaseProps;
54
56
  //#endregion
55
57
  export { PopupAdBaseProps, PopupAdInspectorProps, PopupAdItem, PopupAdProps, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema };
@@ -9,7 +9,9 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
9
9
  declare function TextAd({
10
10
  displayCount,
11
11
  items,
12
- mode: _mode
12
+ mode: _mode,
13
+ pageKey,
14
+ pageName
13
15
  }: TextAdProps): react_jsx_runtime0.JSX.Element | null;
14
16
  //#endregion
15
17
  export { TextAd };
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{useRouter as e}from"../../../../../utils/use-compatible-router.mjs";import{Box as t}from"../../../../ui/box.mjs";import{Text as n}from"../../../../ui/text.mjs";import{adaptTextAdProps as r,hasMatchedAds as i}from"../ad-match.mjs";import{useAdProvider as a}from"../ad-provider.mjs";import{textAdInspectorDefaultProps as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useState as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";const f=`text_ad_list`,p=[{text:`这是第一条文字广告`,jumpUrl:`/search`},{text:`这是第二条文字广告`,jumpUrl:`/search`},{text:`这是第三条文字广告`,jumpUrl:`/search`},{text:`这是第四条文字广告`,jumpUrl:`/search`},{text:`这是第五条文字广告`,jumpUrl:`/search`}];let m=null;function h(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function g(e,t){return typeof e==`number`&&e>0?e:t}function _(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function v(e,t){return _(e.closedAt,t)}function y(){if(m)return m;if(typeof window>`u`)return{};let e=window.localStorage.getItem(f);if(!e)return m={},{};try{let t=JSON.parse(e);return m=t&&typeof t==`object`?t:{},m}catch{return m={},{}}}function b(e){m=e,!(typeof window>`u`)&&window.localStorage.setItem(f,JSON.stringify(e))}function x(e){return y()[e]??{}}function S(e,t){b({...y(),[e]:t})}function C({displayCount:f,items:m,mode:_=`renderer`}){let y=_===`editor`?{displayCount:g(f,o.displayCount),items:h(m,p)}:{displayCount:f,items:m},b=a(),C=e(),w=_===`editor`,[T,E]=l(!1),[D,O]=l(w),[k,A]=l(w),[j,M]=l(0),[N,P]=l(`idle`),F=c(()=>i(b?.matchData)?r(b?.matchData):{displayCount:y.displayCount,items:y.items??[]},[b?.matchData,y.displayCount,y.items]),I=c(()=>{let e=F.items.filter(e=>e.text?.trim());return typeof F.displayCount==`number`?e.slice(0,Math.max(F.displayCount,0)):e},[F]),L=I[j],R=(j+1)%Math.max(I.length,1),z=I.length>1?I[R]:null,B=c(()=>I.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[I]);if(s(()=>{E(!0)},[]),s(()=>{if(T){if(w){O(!0),A(!0);return}if(!B||!L){O(!1),A(!0);return}O(!v(x(B),`daily`)),A(!0)}},[L,w,T,B]),s(()=>{M(0),P(`idle`)},[B]),s(()=>{if(!D||I.length<=1)return;let e=setInterval(()=>{P(`animating`)},3e3);return()=>clearInterval(e)},[D,I.length]),s(()=>{if(N!==`animating`)return;let e=setTimeout(()=>{M(e=>(e+1)%I.length),P(`idle`)},350);return()=>clearTimeout(e)},[N,I.length]),!L||!w&&(!T||!k||!D))return null;function V(){B&&S(B,{...x(B),closedAt:Date.now()})}function H(e){e.jumpUrl&&C.push(e.jumpUrl)}function U(e){e.stopPropagation(),O(!1),V()}function W(){w||(O(!1),V(),H(L))}return u(t,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:d(t,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:W,children:[d(t,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[u(t,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:u(n,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),d(t,{className:`relative overflow-hidden`,style:{flex:`1 0 0`,height:`20px`},children:[u(n,{className:`absolute w-full truncate`,style:{color:`#FD4C5E`,fontSize:`14px`,lineHeight:`20px`,fontWeight:400,transform:N===`animating`?`translateY(-100%)`:`translateY(0)`,transition:N===`animating`?`transform 0.35s ease, opacity 0.35s ease`:`none`,opacity:N===`animating`?0:1},children:L.text}),z&&u(n,{className:`absolute w-full truncate`,style:{color:`#FD4C5E`,fontSize:`14px`,lineHeight:`20px`,fontWeight:400,transform:N===`animating`?`translateY(0)`:`translateY(100%)`,transition:N===`animating`?`transform 0.35s ease, opacity 0.35s ease`:`none`,opacity:N===`animating`?1:0},children:z.text})]})]}),d(t,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[u(t,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:u(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:u(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),d(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:U,children:[u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),u(t,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{C as TextAd};
2
+ "use client";import{trackAdClick as e,trackAdImpression as t}from"../../../../../utils/tracking.mjs";import{useRouter as n}from"../../../../../utils/use-compatible-router.mjs";import{Box as r}from"../../../../ui/box.mjs";import{Text as i}from"../../../../ui/text.mjs";import{adaptTextAdProps as a,hasMatchedAds as o}from"../ad-match.mjs";import{useAdProvider as s}from"../ad-provider.mjs";import{textAdInspectorDefaultProps as c}from"./schema.mjs";import{useEffect as l,useMemo as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=`text_ad_list`,h=[{text:`这是第一条文字广告`,jumpUrl:`/search`},{text:`这是第二条文字广告`,jumpUrl:`/search`},{text:`这是第三条文字广告`,jumpUrl:`/search`},{text:`这是第四条文字广告`,jumpUrl:`/search`},{text:`这是第五条文字广告`,jumpUrl:`/search`}];let g=null;function _(e,t){return Array.isArray(e)&&e.length>0?e:t??[]}function v(e,t){return typeof e==`number`&&e>0?e:t}function y(e,t){if(!e)return!1;if(t===`once`)return!0;let n=new Date(e),r=new Date;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}function b(e,t){return y(e.closedAt,t)}function x(){if(g)return g;if(typeof window>`u`)return{};let e=window.localStorage.getItem(m);if(!e)return g={},{};try{let t=JSON.parse(e);return g=t&&typeof t==`object`?t:{},g}catch{return g={},{}}}function S(e){g=e,!(typeof window>`u`)&&window.localStorage.setItem(m,JSON.stringify(e))}function C(e){return x()[e]??{}}function w(e,t){S({...x(),[e]:t})}function T({displayCount:m,items:g,mode:y=`renderer`,pageKey:x=`home`,pageName:S=`首页`}){let T=y===`editor`?{displayCount:v(m,c.displayCount),items:_(g,h)}:{displayCount:m,items:g},E=s(),D=n(),O=y===`editor`,[k,A]=d(!1),[j,M]=d(O),[N,P]=d(O),[F,I]=d(0),[L,R]=d(`idle`),z=u(()=>o(E?.matchData)?a(E?.matchData):{displayCount:T.displayCount,items:T.items??[]},[E?.matchData,T.displayCount,T.items]),B=u(()=>{let e=z.items.filter(e=>e.text?.trim());return typeof z.displayCount==`number`?e.slice(0,Math.max(z.displayCount,0)):e},[z]),V=B[F],H=(F+1)%Math.max(B.length,1),U=B.length>1?B[H]:null,W=u(()=>B.map(e=>`${e.text}:${e.jumpUrl||``}`).join(`|`),[B]),G=E?.matchData?.advertiseLocationCode||`home_text`;if(l(()=>{!j||!V?.id||O||t({page_key:x,page_name:S,ad_slot_key:G,ad_slot_name:`文字广告`,ad_id:V.id,ad_type:`text`})},[j,V?.id,G,x,S,O]),l(()=>{A(!0)},[]),l(()=>{if(k){if(O){M(!0),P(!0);return}if(!W||!V){M(!1),P(!0);return}M(!b(C(W),`daily`)),P(!0)}},[V,O,k,W]),l(()=>{I(0),R(`idle`)},[W]),l(()=>{if(!j||B.length<=1)return;let e=setInterval(()=>{R(`animating`)},3e3);return()=>clearInterval(e)},[j,B.length]),l(()=>{if(L!==`animating`)return;let e=setTimeout(()=>{I(e=>(e+1)%B.length),R(`idle`)},350);return()=>clearTimeout(e)},[L,B.length]),!V||!O&&(!k||!N||!j))return null;function K(){W&&w(W,{...C(W),closedAt:Date.now()})}function q(e){e.jumpUrl&&D.push(e.jumpUrl)}function J(e){e.stopPropagation(),M(!1),K()}function Y(){O||(V?.id&&e({page_key:x,page_name:S,ad_slot_key:G,ad_slot_name:`文字广告`,ad_id:V.id,ad_type:`text`}),M(!1),K(),V&&q(V))}return f(r,{className:`w-full`,style:{backgroundColor:`#131313`,padding:`8px 16px`},children:p(r,{className:`relative flex w-full items-center justify-between overflow-hidden cursor-pointer`,style:{minHeight:`40px`,backgroundColor:`#FFE7E7`,padding:`0 8px`},onClick:Y,children:[p(r,{className:`flex min-w-0 items-center`,style:{gap:`8px`,width:`280px`},children:[f(r,{className:`shrink-0`,style:{padding:`4px 8px`,borderRadius:`8px`,backgroundColor:`rgba(0, 0, 0, 0.33)`},children:f(i,{className:`flex h-full items-center justify-center text-white`,style:{fontSize:`12px`,lineHeight:`normal`,fontWeight:400},children:`广告`})}),p(r,{className:`relative overflow-hidden`,style:{flex:`1 0 0`,height:`20px`},children:[f(i,{className:`absolute w-full truncate`,style:{color:`#FD4C5E`,fontSize:`14px`,lineHeight:`20px`,fontWeight:400,transform:L===`animating`?`translateY(-100%)`:`translateY(0)`,transition:L===`animating`?`transform 0.35s ease, opacity 0.35s ease`:`none`,opacity:L===`animating`?0:1},children:V.text}),U&&f(i,{className:`absolute w-full truncate`,style:{color:`#FD4C5E`,fontSize:`14px`,lineHeight:`20px`,fontWeight:400,transform:L===`animating`?`translateY(0)`:`translateY(100%)`,transition:L===`animating`?`transform 0.35s ease, opacity 0.35s ease`:`none`,opacity:L===`animating`?1:0},children:U.text})]})]}),p(r,{className:`flex shrink-0 items-center`,style:{gap:`6px`,width:`54px`},children:[f(r,{className:`flex shrink-0 items-center justify-center`,style:{width:`20px`,height:`34px`},children:f(`svg`,{width:`10`,height:`17`,viewBox:`0 0 10 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:f(`path`,{d:`M1 1L8.5 8.5L1 16`,stroke:`#FD4C5E`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),p(`button`,{type:`button`,"aria-label":`关闭文字广告`,className:`relative shrink-0 border-none p-0`,style:{width:`17px`,height:`17px`,borderRadius:`999px`,backgroundColor:`#F9A9AE`},onClick:J,children:[f(r,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(45deg)`}}),f(r,{className:`absolute left-1/2 top-1/2`,style:{width:`9px`,height:`2px`,borderRadius:`999px`,backgroundColor:`#FFFFFF`,transform:`translate(-50%, -50%) rotate(-45deg)`}})]})]})]})})}export{T as TextAd};
@@ -9,6 +9,10 @@ import z$1 from "zod";
9
9
  * 文字广告单条数据。
10
10
  */
11
11
  interface TextAdItem {
12
+ /**
13
+ * 广告 ID,对应广告导入数据的 advertiseCode。
14
+ */
15
+ id?: string;
12
16
  /**
13
17
  * 广告文案。
14
18
  */
@@ -55,6 +59,14 @@ type TextAdProps = TextAdInspectorProps<{
55
59
  * 广告场景控制对象。
56
60
  */
57
61
  sceneContext?: AdsMatchSceneContext;
62
+ /**
63
+ * 页面标识。
64
+ */
65
+ pageKey?: string;
66
+ /**
67
+ * 页面名称。
68
+ */
69
+ pageName?: string;
58
70
  }>;
59
71
  //#endregion
60
72
  export { TextAdInspectorProps, TextAdItem, TextAdProps, textAdInspectorDefaultProps, textAdInspectorPropsSchema };
@@ -1,2 +1,2 @@
1
1
 
2
- import{Box as e}from"../../../../ui/box.mjs";import{Text as t}from"../../../../ui/text.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({tags:i,className:a=``}){return!i||i.length===0?null:n(e,{className:`flex items-center gap-[6px] overflow-x-auto overflow-y-hidden flex-nowrap [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${a}`,children:i.map((e,i)=>n(`div`,{className:`shrink-0 h-[28px] border-line1 border-[1px] rounded-[6px] px-[6px] flex items-center`,children:r(t,{className:`text-[14px] text-text1 leading-[20px]`,children:[`#`,e.name]})},`${i}-tag-${e.id}`))})}export{i as DetailInfoTags};
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{jsx as r,jsxs as i}from"react/jsx-runtime";function a({tags:a,className:o=``}){return!a||a.length===0?null:r(t,{className:`flex items-center gap-[6px] overflow-x-auto overflow-y-hidden flex-nowrap [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${o}`,children:a.map((t,a)=>r(`div`,{className:`shrink-0 h-[28px] border-line1 border-[1px] rounded-[6px] px-[6px] flex items-center cursor-pointer`,onClick:n=>{e(`page_video_detail`,`详情页`,n,`detail_tag_click`,{tag_id:t.id,tag_name:t.name})},children:i(n,{className:`text-[14px] text-text1 leading-[20px]`,children:[`#`,t.name]})},`${a}-tag-${t.id}`))})}export{a as DetailInfoTags};
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Box as e}from"../../../../ui/box.mjs";import t from"../../../../../assets/icons/common/right_arrow.mjs";import{useEffect as n,useMemo as r,useRef as i,useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c({title:c,className:l=``}){let[u,d]=a(!1),[f,p]=a(!1),m=i(null),h=i(null),g=i(null),_=r(()=>c?.trim()??``,[c]);if(n(()=>{d(!1)},[_]),n(()=>{if(u){p(!0);return}if(!_){p(!1);return}let e=h.current,t=g.current;if(!e||!t){p(!1);return}let n=()=>{let n=e.clientWidth||e.getBoundingClientRect().width,r=t.getBoundingClientRect().width;p(r>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),m.current&&r.observe(m.current),()=>{r.disconnect()}},[u,_]),!_)return null;function v(){d(e=>!e)}return s(e,{ref:m,className:`relative flex items-start min-w-0 overflow-hidden ${l}`,children:[o(`span`,{ref:g,className:`absolute invisible whitespace-nowrap text-[20px] leading-[28px] font-bold`,children:_}),o(`p`,{ref:h,className:`flex-1 min-w-0 text-[20px] leading-[28px] font-bold text-text1 ${u?``:`line-clamp-1`}`,children:_}),f&&o(`button`,{type:`button`,className:`ml-[8px] h-[24px] w-[24px] flex items-center justify-center`,onClick:v,children:o(t,{className:`h-[12px] w-[12px] text-text2 transition-transform ${u?`-rotate-90`:`rotate-90`}`})})]})}export{c as DetailInfoTitle};
2
+ "use client";import{trackPageClick as e}from"../../../../../utils/tracking.mjs";import{Box as t}from"../../../../ui/box.mjs";import n from"../../../../../assets/icons/common/right_arrow.mjs";import{useEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l({title:l,className:u=``}){let[d,f]=o(!1),[p,m]=o(!1),h=a(null),g=a(null),_=a(null),v=i(()=>l?.trim()??``,[l]);if(r(()=>{f(!1)},[v]),r(()=>{if(d){m(!0);return}if(!v){m(!1);return}let e=g.current,t=_.current;if(!e||!t){m(!1);return}let n=()=>{let n=e.clientWidth||e.getBoundingClientRect().width,r=t.getBoundingClientRect().width;m(r>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),h.current&&r.observe(h.current),()=>{r.disconnect()}},[d,v]),!v)return null;function y(){d||e(`page_video_detail`,`详情页`,null,`detail_title_expand`),f(e=>!e)}return c(t,{ref:h,className:`relative flex items-start min-w-0 overflow-hidden ${u}`,children:[s(`span`,{ref:_,className:`absolute invisible whitespace-nowrap text-[20px] leading-[28px] font-bold`,children:v}),s(`p`,{ref:g,className:`flex-1 min-w-0 text-[20px] leading-[28px] font-bold text-text1 ${d?``:`line-clamp-1`}`,children:v}),p&&s(`button`,{type:`button`,className:`ml-[8px] h-[24px] w-[24px] flex items-center justify-center`,onClick:y,children:s(n,{className:`h-[12px] w-[12px] text-text2 transition-transform ${d?`-rotate-90`:`rotate-90`}`})})]})}export{l as DetailInfoTitle};