@funhub/platform 0.2.11 → 0.2.12

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 (128) hide show
  1. package/dist/biz.d.mts +5 -5
  2. package/dist/biz.mjs +1 -1
  3. package/dist/components/biz/business/advertisement/ad-match.d.mts +4 -19
  4. package/dist/components/biz/business/advertisement/ad-match.mjs +1 -1
  5. package/dist/components/biz/business/advertisement/ad-provider.d.mts +0 -3
  6. package/dist/components/biz/business/advertisement/ad-provider.mjs +1 -1
  7. package/dist/components/biz/business/advertisement/ad-query.d.mts +0 -1
  8. package/dist/components/biz/business/advertisement/ad-query.mjs +1 -1
  9. package/dist/components/biz/business/advertisement/ad-runtime-provider.d.mts +2 -4
  10. package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +1 -1
  11. package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
  12. package/dist/components/biz/business/advertisement/banner-ad/material.d.mts +3 -2
  13. package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -1
  14. package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +6 -9
  15. package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -1
  16. package/dist/components/biz/business/advertisement/banner-ad/server.mjs +1 -1
  17. package/dist/components/biz/business/advertisement/feed-ad/index.d.mts +31 -1
  18. package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -1
  19. package/dist/components/biz/business/advertisement/floating-ad/client.d.mts +4 -4
  20. package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -1
  21. package/dist/components/biz/business/advertisement/floating-ad/index.d.mts +1 -1
  22. package/dist/components/biz/business/advertisement/floating-ad/material.d.mts +0 -5
  23. package/dist/components/biz/business/advertisement/floating-ad/schema.d.mts +10 -21
  24. package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -1
  25. package/dist/components/biz/business/advertisement/floating-ad/server.mjs +1 -1
  26. package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
  27. package/dist/components/biz/business/advertisement/icon-ad/material.d.mts +2 -1
  28. package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -1
  29. package/dist/components/biz/business/advertisement/icon-ad/schema.d.mts +2 -7
  30. package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -1
  31. package/dist/components/biz/business/advertisement/icon-ad/server.mjs +1 -1
  32. package/dist/components/biz/business/advertisement/index.d.mts +4 -4
  33. package/dist/components/biz/business/advertisement/popup-ad/client.mjs +3 -3
  34. package/dist/components/biz/business/advertisement/popup-ad/index.d.mts +1 -1
  35. package/dist/components/biz/business/advertisement/popup-ad/material.d.mts +2 -2
  36. package/dist/components/biz/business/advertisement/popup-ad/schema.d.mts +15 -14
  37. package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -1
  38. package/dist/components/biz/business/advertisement/popup-ad/server.mjs +1 -1
  39. package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -1
  40. package/dist/components/biz/business/advertisement/text-ad/material.d.mts +2 -1
  41. package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -1
  42. package/dist/components/biz/business/advertisement/text-ad/schema.d.mts +3 -5
  43. package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -1
  44. package/dist/components/biz/business/advertisement/text-ad/server.mjs +1 -1
  45. package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
  46. package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -1
  47. package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
  48. package/dist/components/biz/business/header-search/shared/logo.mjs +1 -1
  49. package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -1
  50. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +24 -4
  51. package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
  52. package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +22 -2
  53. package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -1
  54. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -1
  55. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +24 -4
  56. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
  57. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +22 -2
  58. package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -1
  59. package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
  60. package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -1
  61. package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -1
  62. package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -1
  63. package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
  64. package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-layout.mjs +2 -0
  65. package/dist/components/biz/business/hot-recommend/client.mjs +1 -1
  66. package/dist/components/biz/business/hot-recommend/material.d.mts +1 -0
  67. package/dist/components/biz/business/hot-recommend/schema.d.mts +1 -0
  68. package/dist/components/biz/business/hot-recommend/schema.mjs +1 -1
  69. package/dist/components/biz/business/image-text-recommend/client.d.mts +1 -1
  70. package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
  71. package/dist/components/biz/business/image-text-recommend/material.d.mts +7 -7
  72. package/dist/components/biz/business/image-text-recommend/schema.d.mts +30 -25
  73. package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -1
  74. package/dist/components/biz/business/image-text-recommend/server.mjs +1 -1
  75. package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -1
  76. package/dist/components/biz/business/index.d.mts +4 -4
  77. package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
  78. package/dist/components/biz/business/marquee/client.mjs +1 -1
  79. package/dist/components/biz/business/marquee/material.d.mts +5 -6
  80. package/dist/components/biz/business/marquee/schema.d.mts +5 -6
  81. package/dist/components/biz/business/marquee/schema.mjs +1 -1
  82. package/dist/components/biz/business/tab-bar/client.d.mts +2 -0
  83. package/dist/components/biz/business/tab-bar/client.mjs +1 -1
  84. package/dist/components/biz/business/text-recommend/client.mjs +1 -1
  85. package/dist/components/biz/business/text-recommend/material.d.mts +1 -0
  86. package/dist/components/biz/business/text-recommend/schema.d.mts +1 -0
  87. package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
  88. package/dist/components/common/video-player/index.d.mts +2 -1
  89. package/dist/components/common/video-player/video-blind-ad-overlay.mjs +2 -0
  90. package/dist/components/common/video-player/video-player-ref-context.mjs +2 -0
  91. package/dist/components/ui/badge.d.mts +1 -1
  92. package/dist/components/ui/button.d.mts +2 -2
  93. package/dist/components/ui/empty.d.mts +1 -1
  94. package/dist/components/ui/item.d.mts +1 -1
  95. package/dist/hooks/use-is-client.d.mts +10 -0
  96. package/dist/hooks/use-is-client.mjs +2 -0
  97. package/dist/hooks.d.mts +2 -1
  98. package/dist/hooks.mjs +1 -1
  99. package/dist/service/advertisement.d.mts +1 -13
  100. package/dist/service/advertisement.mjs +1 -1
  101. package/dist/service/generated/client.d.mts +10 -2
  102. package/dist/service/generated/client.mjs +1 -1
  103. package/dist/service/generated/tanstack.d.mts +12 -2
  104. package/dist/service/generated/tanstack.mjs +1 -1
  105. package/dist/service.d.mts +3 -3
  106. package/dist/service.mjs +1 -1
  107. package/dist/store/modules/blind-spot-ad-store.d.mts +116 -0
  108. package/dist/store/modules/blind-spot-ad-store.mjs +2 -0
  109. package/dist/store/modules/user-store.d.mts +1 -1
  110. package/dist/store/modules/user-store.mjs +1 -1
  111. package/dist/store/modules/video-player-ref-store.d.mts +21 -0
  112. package/dist/store/modules/video-player-ref-store.mjs +2 -0
  113. package/dist/store.d.mts +3 -1
  114. package/dist/store.mjs +1 -1
  115. package/dist/types.d.mts +171 -1
  116. package/dist/utils/browser-fingerprint.d.mts +13 -0
  117. package/dist/utils/browser-fingerprint.mjs +2 -0
  118. package/dist/utils/device-id.d.mts +2 -2
  119. package/dist/utils/device-id.mjs +1 -1
  120. package/dist/utils/http.mjs +1 -1
  121. package/dist/utils/request-user-id.d.mts +12 -0
  122. package/dist/utils/request-user-id.mjs +2 -0
  123. package/dist/utils/schema/inspector.d.mts +2 -2
  124. package/dist/utils.d.mts +3 -1
  125. package/dist/utils.mjs +1 -1
  126. package/package.json +2 -1
  127. package/dist/assets/icons/search/video.mjs +0 -2
  128. package/dist/components/biz/business/marquee/marquee.module.mjs +0 -24
@@ -1,2 +1,2 @@
1
1
 
2
- import{pContentBatchGetVideoDetail as e,pContentGetPopularVideoList as t}from"../../../../service/generated/client.mjs";import{pContentBatchGetVideoDetailKey as n,pContentGetPopularVideoListKey as r}from"../../../../service/generated/tanstack.mjs";import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as i,getImageTextRecommendFixedIds as a,getImageTextRecommendLayoutTags as o}from"../../../../hooks/image-text-recommend.mjs";import{HydrationBoundary as s}from"../../../../hooks/query/hydration-boundary.mjs";import{buildSmartPopularQuery as c,buildStableChosenTags as l}from"./shared/query.mjs";import{ImageTextRecommendClient as u}from"./client.mjs";import{jsx as d}from"react/jsx-runtime";const f=[];async function p(p){let{mode:m=`renderer`,...h}=p,g=h.items??f,_=h.layout,v=[],y=!!_?.enabled,b=a(g,y),x=o(_),S=g?.length??0;if(m===`renderer`&&g?.length)try{if(y){let e=c(l(x,S),S),n=await t(e);v.push({queryKey:r(e),queryFn:()=>Promise.resolve(n)})}else if(b.length>0){let t={ids:b.length<=i?b:b.slice(0,i)},r=await e(t);console.log(`res`,r),v.push({queryKey:n(t),queryFn:()=>Promise.resolve(r)})}}catch(e){console.warn(`[image-text-recommend] server prefetch failed:`,e)}return d(s,{prefetch:v,children:d(u,{...h,mode:m})})}export{p as ImageTextRecommendServer};
2
+ import{pContentBatchGetVideoDetail as e,pContentGetNewstVideoList as t,pContentGetPopularVideoList as n}from"../../../../service/generated/client.mjs";import{pContentBatchGetVideoDetailKey as r,pContentGetNewstVideoListKey as i,pContentGetPopularVideoListKey as a}from"../../../../service/generated/tanstack.mjs";import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as o,getImageTextRecommendFixedIds as s}from"../../../../hooks/image-text-recommend.mjs";import{HydrationBoundary as c}from"../../../../hooks/query/hydration-boundary.mjs";import{normalizeHomeRecommendSmartLayout as l}from"../home-recommend/shared/home-recommend-smart-layout.mjs";import{buildImageTextSmartListBody as u,resolveImageTextSmartListKind as d}from"./shared/query.mjs";import{ImageTextRecommendClient as f}from"./client.mjs";import{jsx as p}from"react/jsx-runtime";const m=[];async function h(h){let{mode:g=`renderer`,..._}=h,v=_.items??m,y=[],b=l(_.layout),x=b?.enabled===!0,S=s(v,x),C=v?.length??0;if(g===`renderer`&&v?.length)try{if(x&&b){let e=d(b.sortRule),r=u(b,{targetCount:C}),o=e===`newest`?await t(r):await n(r);y.push({queryKey:e===`newest`?i(r):a(r),queryFn:()=>Promise.resolve(o)})}else if(S.length>0){let t={ids:S.length<=o?S:S.slice(0,o)},n=await e(t);y.push({queryKey:r(t),queryFn:()=>Promise.resolve(n)})}}catch(e){console.warn(`[image-text-recommend] server prefetch failed:`,e)}return p(c,{prefetch:y,children:p(f,{..._,mode:g})})}export{h as ImageTextRecommendServer};
@@ -1,2 +1,2 @@
1
1
 
2
- import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as e}from"../../../../../hooks/image-text-recommend.mjs";function t(e,t){let n=e.map(e=>String(e).trim()).filter(Boolean);if(!n.length||t<=0)return[];if(n.length>=t)return n.slice(0,t);let r=[...n];for(;r.length<t;)r.push(n[r.length%n.length]);return r}function n(t,n){return n>e?{page_size:e,tags:t.length?Array.from(new Set(t)):void 0}:{page_size:Math.max(20,n*10),tags:t.length?Array.from(new Set(t)):void 0}}export{n as buildSmartPopularQuery,t as buildStableChosenTags};
2
+ import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as e}from"../../../../../hooks/image-text-recommend.mjs";import{isHomeRecommendLatestSortRule as t}from"../../home-recommend/shared/home-recommend-smart-layout.mjs";function n(e){return t(e)?`newest`:`popular`}function r(t,n){let{targetCount:r,cursor:i,pageSize:a}=n,o=t.tagIds.length>0?t.tagIds:void 0,s=t.catIds.length>0?t.catIds:void 0,c;return c=a===void 0?r>e?e:Math.max(20,r*10):a,{cursor:i||void 0,page_size:c,tags:o,cat_ids:s}}export{r as buildImageTextSmartListBody,n as resolveImageTextSmartListKind};
@@ -3,24 +3,24 @@ import { defaultProps } from "../basics/fullscreen-feed/defaults/default-props.m
3
3
  import { FullscreenFeedClient } from "../basics/fullscreen-feed/runtime/client.mjs";
4
4
  import { schema } from "../basics/fullscreen-feed/schema/index.mjs";
5
5
  import { BannerAdInspectorProps, BannerAdItem, BannerAdProps, BannerAdStyleSize, bannerAdInspectorDefaultProps, bannerAdInspectorPropsSchema, bannerAdStyleSizeOptions } from "./advertisement/banner-ad/schema.mjs";
6
- import { FloatingAdEditableProps, FloatingAdInspectorProps, FloatingAdItem, FloatingAdProps, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema } from "./advertisement/floating-ad/schema.mjs";
6
+ import { FloatingAdItem, FloatingAdProps, floatingAdInspectorDefaultProps, floatingAdInspectorPropsSchema } from "./advertisement/floating-ad/schema.mjs";
7
7
  import { IconAdInspectorProps, IconAdItem, IconAdProps, iconAdInspectorDefaultProps, iconAdInspectorPropsSchema } from "./advertisement/icon-ad/schema.mjs";
8
8
  import { TextAdInspectorProps, TextAdItem, TextAdProps, textAdInspectorDefaultProps, textAdInspectorPropsSchema } from "./advertisement/text-ad/schema.mjs";
9
- import { AdsMatchExtData, adaptBannerAdProps, adaptFloatingAdItem, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, buildAdsMatchRequest, getFirstMatchedMaterial, hasMatchedAds, parseAdsMatchExtData, resolveAdsAppCode, sortAdsMatchMaterials } from "./advertisement/ad-match.mjs";
9
+ import { AdsMatchExtData, adaptBannerAdProps, adaptFloatingAdItems, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, buildAdsMatchRequest, hasMatchedAds, parseAdsMatchExtData, sortAdsMatchMaterials } from "./advertisement/ad-match.mjs";
10
10
  import { AdProvider, AdProviderProps, AdProviderValue, useAdProvider } from "./advertisement/ad-provider.mjs";
11
11
  import { AdsMatchQueryOptions, createAdsMatchPrefetchItem, createAdsMatchQueryFn, getAdsMatchQueryKey } from "./advertisement/ad-query.mjs";
12
12
  import { AdRuntimeProvider, AdRuntimeProviderProps } from "./advertisement/ad-runtime-provider.mjs";
13
13
  import { BannerAd } from "./advertisement/banner-ad/client.mjs";
14
14
  import { BannerAdServer } from "./advertisement/banner-ad/server.mjs";
15
15
  import { bannerAdMaterial } from "./advertisement/banner-ad/material.mjs";
16
- import { FeedAdBadge, FeedAdItemLike, getFeedAdIcon, getFeedAdJumpUrl, isFeedAdItem } from "./advertisement/feed-ad/index.mjs";
16
+ import { FeedAdBadge, FeedAdItemLike, FeedAdPayloadLike, getFeedAdIcon, getFeedAdJumpUrl, isFeedAdItem } from "./advertisement/feed-ad/index.mjs";
17
17
  import { FloatingAd } from "./advertisement/floating-ad/client.mjs";
18
18
  import { FloatingAdServer } from "./advertisement/floating-ad/server.mjs";
19
19
  import { floatingAdMaterial } from "./advertisement/floating-ad/material.mjs";
20
20
  import { IconAd } from "./advertisement/icon-ad/client.mjs";
21
21
  import { IconAdServer } from "./advertisement/icon-ad/server.mjs";
22
22
  import { iconAdMaterial } from "./advertisement/icon-ad/material.mjs";
23
- import { PopupAdInspectorProps, PopupAdItem, PopupAdProps, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema } from "./advertisement/popup-ad/schema.mjs";
23
+ import { PopupAdBaseProps, PopupAdInspectorProps, PopupAdItem, PopupAdProps, popupAdInspectorDefaultProps, popupAdInspectorPropsSchema } from "./advertisement/popup-ad/schema.mjs";
24
24
  import { PopupAd } from "./advertisement/popup-ad/client.mjs";
25
25
  import { PopupAdServer } from "./advertisement/popup-ad/server.mjs";
26
26
  import { popupAdMaterial } from "./advertisement/popup-ad/material.mjs";
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({data:e.array(n.object({title:e.string(void 0,{label:`推荐位名称`,required:!1}),moreUrl:e.string(void 0,{label:`更多链接`,required:!1}),moreLinkType:e.string(`content-list`,{label:`更多链接类型`,required:!1}),items:e.object({id:e.string(void 0,{label:`内容ID`}),is_ad:e.boolean(!1,{fieldType:`switch`,label:`是否广告`,required:!1}),ad_advertise_url:e.string(void 0,{label:`广告跳转链接`,required:!1}),ad_advertise_icon:e.string(void 0,{label:`广告素材地址`,required:!1}),cover:e.string(void 0,{label:`封面`}),play_count:e.string(void 0,{label:`播放量`,required:!1}),showPlayCount:e.boolean(!0,{fieldType:`switch`,label:`展示播放量`,required:!1}),episodeText:e.string(void 0,{label:`集数文案`,required:!1}),showEpisode:e.boolean(!0,{fieldType:`switch`,label:`展示集数`,required:!1}),useContentCover:e.boolean(!0,{fieldType:`switch`,label:`沿用内容海报`,required:!1}),title:e.string(void 0,{label:`内容标题`}),desc:e.string(void 0,{label:`内容简介`,required:!1}),tagImageUrl:e.string(void 0,{label:`角标图`,required:!1})})}),{label:`大图推荐数据`,required:!1,defaultValue:[{title:`推荐位名称`,moreUrl:`/channel`,moreLinkType:`content-list`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,play_count:`11111`,showPlayCount:!0,episodeText:`连载中`,showEpisode:!0,useContentCover:!0,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}}]})})),i=t(r);export{i as largeFeatureGridInspectorDefaultProps,r as largeFeatureGridInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../utils/schema/schema.mjs";import n from"zod";const r=e(e=>({data:e.array(n.object({title:e.string(void 0,{label:`推荐位名称`,required:!1}),moreUrl:e.string(void 0,{label:`更多链接`,required:!1}),moreLinkType:e.string(`content-list`,{label:`更多链接类型`,required:!1}),items:e.object({id:e.string(void 0,{label:`内容ID`}),is_ad:e.boolean(!1,{fieldType:`switch`,label:`是否广告`,required:!1}),ad:e.object({ad_code:e.string(void 0,{label:`广告业务编码`,required:!1}),ad_advertise_url:e.string(void 0,{label:`广告跳转链接`,required:!1}),ad_advertise_icon:e.string(void 0,{label:`广告素材地址`,required:!1}),ad_advertise_type:e.number(void 0,{label:`广告类型`,required:!1}),ad_advertise_desc:e.string(void 0,{label:`广告文案描述`,required:!1}),ad_ext_data:e.string(void 0,{label:`广告扩展信息`,required:!1})},{label:`广告对象`,required:!1}),ad_advertise_url:e.string(void 0,{label:`广告跳转链接`,required:!1}),ad_advertise_icon:e.string(void 0,{label:`广告素材地址`,required:!1}),cover:e.string(void 0,{label:`封面`}),play_count:e.string(void 0,{label:`播放量`,required:!1}),showPlayCount:e.boolean(!0,{fieldType:`switch`,label:`展示播放量`,required:!1}),episodeText:e.string(void 0,{label:`集数文案`,required:!1}),showEpisode:e.boolean(!0,{fieldType:`switch`,label:`展示集数`,required:!1}),useContentCover:e.boolean(!0,{fieldType:`switch`,label:`沿用内容海报`,required:!1}),title:e.string(void 0,{label:`内容标题`}),desc:e.string(void 0,{label:`内容简介`,required:!1}),tagImageUrl:e.string(void 0,{label:`角标图`,required:!1})})}),{label:`大图推荐数据`,required:!1,defaultValue:[{title:`推荐位名称`,moreUrl:`/channel`,moreLinkType:`content-list`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,play_count:`11111`,showPlayCount:!0,episodeText:`连载中`,showEpisode:!0,useContentCover:!0,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}}]})})),i=t(r);export{i as largeFeatureGridInspectorDefaultProps,r as largeFeatureGridInspectorPropsSchema};
@@ -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 r from"../../../../assets/icons/marquee-close.mjs";import i from"../../../../assets/icons/marquee-speaker.mjs";import a from"./marquee.module.mjs";import{defaultMarqueePeriod as o}from"./schema.mjs";import{useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=[],m=`marquee_list`;let h=null;function g(e,t=20){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}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(){if(h)return h;let e=localStorage.getItem(m);if(!e)return h={},{};try{let t=JSON.parse(e);if(!t||typeof t!=`object`)return{};let n={};return Object.entries(t).forEach(([e,t])=>{if(!t||typeof t!=`object`)return;let r=t.closedAt;typeof r!=`number`||Number.isNaN(r)||(n[e]={closedAt:r})}),h=n,n}catch{return h={},{}}}function y(e){h=e,localStorage.setItem(m,JSON.stringify(e))}function b(e){return v()[e]??{}}function x(e,t){y({...v(),[e]:t})}function S(e,t){return _(e.closedAt,t)}function C(m){let{marqueeKey:h,contents:_=p,click:v,close:y,displayStrategy:C,mode:w=`renderer`}=m,T=w===`editor`,E=e(),D=l(!1),[O,k]=u(T),[A,j]=u(T),[M,N]=u(!1),[P,F]=u(0);s(()=>{N(!0)},[]);let I=c(()=>{let e=C?.period??o,t=e.start,n=e.end;if(!t&&!n)return!0;let r=Date.now(),i=t?new Date(t).getTime():0,a=n?new Date(n).getTime():2**53-1;return r>=i&&r<=a},[C?.period]),L=c(()=>(_??[]).map(e=>({...e,text:g(String(e?.text??``))})).filter(e=>!!e.text),[_]),R=h?.trim()??``;if(s(()=>{F(0)},[c(()=>L.map(e=>`${e.text??``}::${e.link??``}`).join(`|`),[L]),R]),s(()=>{T||R||D.current||process.env.NODE_ENV===`production`||(D.current=!0,console.warn(`[MarqueeClient] marqueeKey is required in renderer mode.`))},[T,R]),s(()=>{if(M){if(T){k(!0),j(!0);return}if(!C?.rule||!I||L.length===0){k(!1),j(!0);return}if(!R){k(!1),j(!0);return}k(!S(b(R),C.rule)),j(!0)}},[C?.rule,T,M,I,L.length,R]),!T&&(!M||!A||!O||!I)||L.length===0)return null;let z=L[P%L.length],B=v?.enabled===!0,V=v?.link||z.link,H=B&&!!V,U=y?.enabled===!0;function W(){!R||!C?.rule||L.length===0||x(R,{...b(R),closedAt:Date.now()})}let G=e=>{e.stopPropagation(),k(!1),W()};function K(e){if(typeof window>`u`){E.push(e);return}if(window.isWebView===!0)try{let t=new URL(e,window.location.href);if(t.origin===window.location.origin){let e=t.pathname.split(`/`).filter(Boolean),n=e.findIndex(e=>e===`video`);n>=0&&(e[n]=`webview`,t.pathname=`/${e.join(`/`)}`)}window.location.href=t.toString();return}catch{window.location.href=e;return}E.push(e)}function q(){T||H&&V&&(k(!1),W(),K(V))}let J=()=>{T||!O||L.length<=1||F(e=>(e+1)%L.length)},Y=T?a[`marquee-item-paused`]:L.length>1?a[`marquee-item-once`]:a[`marquee-item-loop`],X=U?d(`button`,{type:`button`,"aria-label":`关闭`,className:`flex size-6 shrink-0 items-center justify-center overflow-hidden p-0.5`,onClick:G,children:d(r,{className:`h-5 w-5`,"aria-hidden":!0})}):d(t,{className:`flex size-6 shrink-0 items-center justify-center overflow-hidden p-0.5`,"aria-hidden":!0});return f(t,{className:`grid h-8 w-full grid-cols-[20px_1fr_24px] items-center gap-2 bg-white/10 px-4 py-1 backdrop-blur-[2px] ${H?`cursor-pointer`:``} ${T?`pointer-events-none`:``}`,onClick:q,children:[d(i,{className:`h-5 w-5 shrink-0`,"aria-hidden":!0}),d(t,{className:`relative h-5 min-w-0 w-full overflow-hidden`,children:d(t,{className:`absolute inset-y-0 left-0 flex items-center whitespace-nowrap ${Y}`,onAnimationEnd:J,children:d(n,{className:`inline-block font-sans text-[14px] font-normal leading-[20px] not-italic text-white/90`,children:z.text})},`marquee-item-${P}`)}),X]})}export{C as MarqueeClient};
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 r from"../../../../assets/icons/marquee-close.mjs";import i from"../../../../assets/icons/marquee-speaker.mjs";import{defaultMarqueePeriod as a}from"./schema.mjs";import{useEffect as o,useLayoutEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=[],m=`marquee_list`;let h=null;function g(e,t=20){let n=Array.from(e);return n.length<=t?e:`${n.slice(0,t).join(``)}...`}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(){if(h)return h;let e=localStorage.getItem(m);if(!e)return h={},{};try{let t=JSON.parse(e);if(!t||typeof t!=`object`)return{};let n={};return Object.entries(t).forEach(([e,t])=>{if(!t||typeof t!=`object`)return;let r=t.closedAt;typeof r!=`number`||Number.isNaN(r)||(n[e]={closedAt:r})}),h=n,n}catch{return h={},{}}}function y(e){h=e,localStorage.setItem(m,JSON.stringify(e))}function b(e){return v()[e]??{}}function x(e,t){y({...v(),[e]:t})}function S(e,t){return _(e.closedAt,t)}function C(m){let{marqueeKey:h,contents:_=p,close:v,displayStrategy:y,mode:C=`renderer`}=m,w=C===`editor`,T=e(),E=l(!1),D=l(null),O=l(null),[k,A]=u(w),[j,M]=u(w),[N,P]=u(!1),[F,I]=u(0);o(()=>{P(!0)},[]);let L=c(()=>{let e=y?.period??a,t=e.start,n=e.end;if(!t&&!n)return!0;let r=Date.now(),i=t?new Date(t).getTime():0,o=n?new Date(n).getTime():2**53-1;return r>=i&&r<=o},[y?.period]),R=c(()=>(_??[]).map(e=>({...e,text:g(String(e?.text??``))})).filter(e=>!!e.text),[_]),z=h?.trim()??``,B=c(()=>R.map(e=>`${e.text??``}::${e.link??``}`).join(`|`),[R]);if(o(()=>{I(0)},[B,z]),o(()=>{w||z||E.current||process.env.NODE_ENV===`production`||(E.current=!0,console.warn(`[MarqueeClient] marqueeKey is required in renderer mode.`))},[w,z]),o(()=>{if(N){if(w){A(!0),M(!0);return}if(!y?.rule||!L||R.length===0){A(!1),M(!0);return}if(!z){A(!0),M(!0);return}A(!S(b(z),y.rule)),M(!0)}},[y?.rule,w,N,L,R.length,z]),s(()=>{if(w)return;let e=D.current,t=O.current;if(!e||!t)return;let n=e.offsetWidth,r=t.scrollWidth,i=n+r,a=Math.max(i/80,3)*1e3,o=t.animate([{transform:`translateX(${n}px)`},{transform:`translateX(-${r}px)`}],{duration:a,iterations:R.length<=1?1/0:1,easing:`linear`,fill:`forwards`});return o.onfinish=()=>{R.length>1&&I(e=>(e+1)%R.length)},()=>o.cancel()},[F,B,w,k,R.length]),!w&&(!N||!j||!k||!L)||R.length===0)return null;let V=R[F%R.length],H=V?.click,U=H?.enabled===!0,W=H?.link,G=U&&!!W,K=v?.enabled===!0;function q(){!z||!y?.rule||R.length===0||x(z,{...b(z),closedAt:Date.now()})}let J=e=>{e.stopPropagation(),A(!1),q()};function Y(e){if(typeof window>`u`){T.push(e);return}if(window.isWebView===!0)try{let t=new URL(e,window.location.href);if(t.origin===window.location.origin){let e=t.pathname.split(`/`).filter(Boolean),n=e.findIndex(e=>e===`video`);n>=0&&(e[n]=`webview`,t.pathname=`/${e.join(`/`)}`)}window.location.href=t.toString();return}catch{window.location.href=e;return}T.push(e)}function X(){w||G&&W&&(A(!1),q(),Y(W))}let Z=K?d(`button`,{type:`button`,"aria-label":`关闭`,className:`flex size-6 shrink-0 items-center justify-center overflow-hidden p-0.5`,onClick:J,children:d(r,{className:`h-5 w-5`,"aria-hidden":!0})}):d(t,{className:`flex size-6 shrink-0 items-center justify-center overflow-hidden p-0.5`,"aria-hidden":!0});return f(t,{className:`grid h-8 w-full grid-cols-[20px_1fr_24px] items-center gap-2 bg-white/10 px-4 py-1 backdrop-blur-[2px] ${G?`cursor-pointer`:``} ${w?`pointer-events-none`:``}`,onClick:X,children:[d(i,{className:`h-5 w-5 shrink-0`,"aria-hidden":!0}),d(t,{ref:D,className:`relative h-5 min-w-0 w-full overflow-hidden`,children:d(t,{ref:O,className:`absolute inset-y-0 left-0 flex items-center whitespace-nowrap`,children:d(n,{className:`inline-block font-sans text-[14px] font-normal leading-[20px] not-italic text-white/90`,children:V.text})},`marquee-item-${F}`)}),Z]})}export{C as MarqueeClient};
@@ -15,13 +15,12 @@ declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof
15
15
  readonly marqueeKey: zod.ZodString & SchemaHasDefaultValue;
16
16
  readonly contents: zod.ZodArray<zod.ZodObject<{
17
17
  readonly text: zod.ZodString & SchemaHasDefaultValue;
18
- readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
18
+ readonly click: zod.ZodObject<{
19
+ readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
20
+ readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
21
+ readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
22
+ }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
19
23
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
20
- readonly click: zod.ZodObject<{
21
- readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
22
- readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
23
- readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
24
- }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
25
24
  readonly close: zod.ZodObject<{
26
25
  readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
27
26
  }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
@@ -20,13 +20,12 @@ declare const marqueeInspectorPropsSchema: zod.ZodObject<{
20
20
  readonly marqueeKey: zod.ZodString & SchemaHasDefaultValue;
21
21
  readonly contents: zod.ZodArray<zod.ZodObject<{
22
22
  readonly text: zod.ZodString & SchemaHasDefaultValue;
23
- readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
23
+ readonly click: zod.ZodObject<{
24
+ readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
25
+ readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
26
+ readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
27
+ }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
24
28
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
25
- readonly click: zod.ZodObject<{
26
- readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
27
- readonly redirectType: zod.ZodOptional<zod.ZodType<"content" | "link" | "content_list", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "link" | "content_list", unknown>>> & SchemaHasDefaultValue;
28
- readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
29
- }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
30
29
  readonly close: zod.ZodObject<{
31
30
  readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
32
31
  }, zod_v4_core0.$strip> & SchemaHasDefaultValue;
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import t from"dayjs";function n(){return{start:t().startOf(`day`).format(`YYYY-MM-DD HH:mm:ss`),end:t().endOf(`day`).format(`YYYY-MM-DD HH:mm:ss`)}}const r=n(),i=e(e=>({marqueeKey:e.string(``,{label:`状态唯一标识`,required:!0,description:`外部传入唯一 marqueeKey,用于本地展示状态持久化`}),contents:e.array(e.object({text:e.string(``,{label:`文本内容`}),link:e.string(``,{label:`跳转链接`,required:!1})}),{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`}],description:`支持多条消息循环播放`}),click:e.object({enabled:e.boolean(!0,{fieldType:`switch`,label:`支持点击`}),redirectType:e.enum([`content_list`,`content`,`link`],`link`,{label:`跳转指向`,required:!1}),link:e.string(``,{label:`跳转链接`,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}}),close:e.object({enabled:e.boolean(!0,{fieldType:`switch`,label:`支持关闭`})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:e.object({rule:e.enum([`once`,`daily`],`once`,{label:`展示规则`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:e.timeRange(r,{label:`展示周期`,required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:r}})}));export{r as defaultMarqueePeriod,n as getDefaultMarqueePeriod,i as marqueeInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import t from"dayjs";function n(){return{start:t().startOf(`day`).format(`YYYY-MM-DD HH:mm:ss`),end:t().endOf(`day`).format(`YYYY-MM-DD HH:mm:ss`)}}const r=n(),i=e(e=>({marqueeKey:e.string(``,{label:`状态唯一标识`,required:!0,description:`外部传入唯一 marqueeKey,用于本地展示状态持久化`}),contents:e.array(e.object({text:e.string(``,{label:`文本内容`}),click:e.object({enabled:e.boolean(!0,{fieldType:`switch`,label:`支持点击`}),redirectType:e.enum([`content_list`,`content`,`link`],`link`,{label:`跳转指向`,required:!1}),link:e.string(``,{label:`跳转链接`,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}})}),{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`,click:{enabled:!0,redirectType:`link`,link:``}}],description:`支持多条消息循环播放(1~5条),展示顺序与配置顺序一致`}),close:e.object({enabled:e.boolean(!0,{fieldType:`switch`,label:`支持关闭`})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:e.object({rule:e.enum([`once`,`daily`],`once`,{label:`展示规则`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:e.timeRange(r,{label:`展示周期`,required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:r}})}));export{r as defaultMarqueePeriod,n as getDefaultMarqueePeriod,i as marqueeInspectorPropsSchema};
@@ -8,6 +8,8 @@ interface TabBarItem {
8
8
  domainId: string;
9
9
  icon: string;
10
10
  activeIcon: string;
11
+ showNavName?: boolean;
12
+ show_nav_name?: boolean;
11
13
  configType: TabBarItemConfigType;
12
14
  functionPageType: string;
13
15
  selectData: unknown;
@@ -1,2 +1,2 @@
1
1
 
2
- "use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{usePathname as o}from"next/navigation";import s from"next/link";const c=[],l={backgroundColor:`rgba(5, 1, 15, 0.9)`,backdropFilter:`blur(4px)`,WebkitBackdropFilter:`blur(4px)`,paddingBottom:`env(safe-area-inset-bottom, 0px)`},u={background:`rgba(1, 0, 2, 0.80)`,boxShadow:`0 12px 100px rgba(255, 255, 255, 0.20)`,backdropFilter:`blur(8px)`,WebkitBackdropFilter:`blur(8px)`};function d(e){return e.split(`?`)[0].replace(/\/+$/,``)||`/`}function f(e){if(e.configType===1)switch(e.functionPageType){case`搜索`:return`/search`;case`个人中心`:return`/user/mine`;case`内容列表`:return`/video-list?tags=${e.tags}&title=${e.title}`;default:return`/`}let t=(e.domainId??``).toString().trim();return t?`/domain/${t}`:`/`}function p(e,t){let n=d(t);if(e.configType===1){let t=d(f(e).split(`?`)[0]);return n===t||n.startsWith(`${t}/`)}let r=e.domainId.trim();if(!r)return n===`/`||n.startsWith(`/category/`);let i=`/domain/${r}`;return n===i||n.startsWith(`${i}/`)}function m(e,t){return e.findIndex(e=>p(e,t))}function h(d){let{items:p=c,mode:h=`renderer`}=d,g=o(),_=r(()=>{if(h===`editor`)return 0;let e=m(p??[],g);return e>=0?e:0},[p,g,h]),v=r(()=>(p??[]).some(e=>e.label.trim()!==``),[p]);if(!p?.length)return null;function y(e){h===`editor`&&e.preventDefault()}let b=`size-full rounded-[6px] bg-white/20`;return i(t,{as:`nav`,"aria-label":`Bottom navigation`,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col items-center`,style:l,children:i(t,{className:`my-[4px] flex h-[56px] w-[358px] items-center justify-between rounded-[100px] px-[40px]`,style:u,children:p.map((r,o)=>{let c=_===o,l=c?r.activeIcon:r.icon,u=r.label,d=f(r),p=v?c?`gap-[5px]`:`gap-[4px]`:``,m=c?`whitespace-nowrap text-center text-[12px] leading-[16px] font-normal text-[#C043E8]`:`whitespace-nowrap text-center text-[12px] leading-[16px] font-normal text-[#BFBFBF]`;return a(s,{href:d,className:`flex flex-col items-center justify-center ${p}`,"aria-current":c?`page`:void 0,"data-index":o,"data-webview-nav":`spa`,onClick:y,children:[i(t,{className:`relative size-5 shrink-0`,children:l?i(e,{src:l,alt:u,fill:!0,className:`object-contain`}):i(t,{className:c?`${b} bg-[#C043E8]`:b})}),v&&i(n,{className:m,children:u})]},o)})})})}export{h as TabBarClient};
2
+ "use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useMemo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{usePathname as o}from"next/navigation";import s from"next/link";const c=[],l={backgroundColor:`rgba(5, 1, 15, 0.9)`,backdropFilter:`blur(4px)`,WebkitBackdropFilter:`blur(4px)`,paddingBottom:`env(safe-area-inset-bottom, 0px)`},u={background:`rgba(1, 0, 2, 0.80)`,boxShadow:`0 12px 100px rgba(255, 255, 255, 0.20)`,backdropFilter:`blur(8px)`,WebkitBackdropFilter:`blur(8px)`};function d(e){return e.split(`?`)[0].replace(/\/+$/,``)||`/`}function f(e){if(e.configType===1)switch(e.functionPageType){case`搜索`:return`/search`;case`个人中心`:return`/user/mine`;case`内容列表`:return`/video-list?tags=${e.tags}&title=${e.title}`;default:return`/`}let t=(e.domainId??``).toString().trim();return t?`/domain/${t}`:`/`}function p(e,t){let n=d(t);if(e.configType===1){let t=d(f(e).split(`?`)[0]);return n===t||n.startsWith(`${t}/`)}let r=e.domainId.trim();if(!r)return n===`/`||n.startsWith(`/category/`);let i=`/domain/${r}`;return n===i||n.startsWith(`${i}/`)}function m(e,t){return e.findIndex(e=>p(e,t))}function h(e){return typeof e.show_nav_name==`boolean`?e.show_nav_name:typeof e.showNavName==`boolean`?e.showNavName:!0}function g(d){let{items:p=c,mode:g=`renderer`}=d,_=o(),v=r(()=>{if(g===`editor`)return 0;let e=m(p??[],_);return e>=0?e:0},[p,_,g]),y=r(()=>(p??[]).some(e=>h(e)&&e.label.trim()!==``),[p]);if(!p?.length)return null;function b(e){g===`editor`&&e.preventDefault()}let x=`size-full rounded-[6px] bg-white/20`;return i(t,{as:`nav`,"aria-label":`Bottom navigation`,className:`fixed bottom-0 left-0 right-0 z-50 flex flex-col items-center`,style:l,children:i(t,{className:`my-[4px] flex h-[56px] w-[358px] items-center justify-between rounded-[100px] px-[40px]`,style:u,children:p.map((r,o)=>{let c=v===o,l=c?r.activeIcon:r.icon,u=r.label,d=h(r)&&u.trim()!==``,p=f(r),m=y?c?`gap-[5px]`:`gap-[4px]`:``,g=c?`whitespace-nowrap text-center text-[12px] leading-[16px] font-normal text-[#C043E8]`:`whitespace-nowrap text-center text-[12px] leading-[16px] font-normal text-[#BFBFBF]`;return a(s,{href:p,className:`flex flex-col items-center justify-center ${m}`,"aria-current":c?`page`:void 0,"data-index":o,"data-webview-nav":`spa`,onClick:b,children:[i(t,{className:`relative size-5 shrink-0`,children:l?i(e,{src:l,alt:u,fill:!0,className:`object-contain`}):i(t,{className:c?`${x} bg-[#C043E8]`:x})}),y&&d?i(n,{"data-active":c,className:g,children:u}):null]},o)})})})}export{g as TabBarClient};
@@ -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{useMemo as r,useState as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{usePathname as s,useSearchParams as c}from"next/navigation";const l=[];function u(e,t){if(e.length<=t)return[...e];let n=[...e];for(let e=0;e<t;e++){let t=e+Math.floor(Math.random()*(n.length-e));[n[e],n[t]]=[n[t],n[e]]}return n.slice(0,t)}function d(d){let{title:f,items:p=l,onItemClick:m,mode:h=`renderer`}=d,g=h===`editor`,_=e(),v=s(),y=c(),[b,x]=i(0),S=r(()=>u(p,6),[p,b]);if(p.length===0)return null;let C=e=>{if(m){m(e);return}let t=new URLSearchParams(y.toString());t.set(`q`,e);let n=v.includes(`/search-result`)?v:`/search-result`;_.push(`${n}?${t.toString()}`)};return o(t,{className:`bg-bg1 p-3 flex flex-col gap-3 w-full${g?` pointer-events-none`:``}`,children:[a(t,{className:`flex items-center justify-between w-full`,children:a(n,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:f})}),a(t,{className:`grid grid-cols-2 gap-x-1 gap-y-1 w-full`,children:S.map((e,r)=>a(t,{className:`flex items-center h-[32px] cursor-pointer active:opacity-70 transition-opacity overflow-hidden`,onClick:()=>C(e.label),children:a(n,{className:`text-[14px] text-text1 leading-[22px] truncate w-full`,children:e.label})},`${b}-${r}`))})]})}export{d as TextRecommendClient};
2
+ "use client";import{useUserStore as e}from"../../../../store/modules/user-store.mjs";import{gContentGetRecommendSearchList as t}from"../../../../service/generated/client.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{useRequest as a}from"../../../../hooks/query/use-query.mjs";import o from"../../../../assets/icons/refresh.mjs";import{useMemo as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{usePathname as d,useSearchParams as f}from"next/navigation";import{useShallow as p}from"zustand/react/shallow";function m(e,t){if(e.length<=t)return[...e];let n=[...e];for(let e=0;e<t;e++){let t=e+Math.floor(Math.random()*(n.length-e));[n[e],n[t]]=[n[t],n[e]]}return n.slice(0,t)}function h(h){let{title:g,displayCount:_=6,showRefresh:v=!1,onItemClick:y,mode:b=`renderer`}=h,x=b===`editor`,S=n(),C=d(),w=f(),[T,E]=c(0),{userInfo:D}=e(p(e=>({userInfo:e.userInfo}))),O=D?.user_id||`guest`,{data:k}=a([`text-recommend-keyword-list`,O],()=>t({user_id:O}),{enabled:!x}),A=s(()=>(k?.data?.recommend_list??[]).map(e=>({label:e.title??``})).filter(e=>e.label),[k]),j=_*2,M=s(()=>x?Array.from({length:j},(e,t)=>({label:`推荐搜索${t+1}`})):A,[x,A,j]),N=s(()=>m(M,j),[M,T,j]);if(!x&&A.length<2)return null;let P=e=>{e.stopPropagation(),E(e=>e+1)},F=e=>{if(y){y(e);return}let t=new URLSearchParams(w.toString());t.set(`q`,e);let n=C.includes(`/search-result`)?C:`/search-result`;S.push(`${n}?${t.toString()}`)};return u(r,{className:`bg-bg1 p-3 flex flex-col gap-3 w-full${x?` pointer-events-none`:``}`,children:[u(r,{className:`flex items-center justify-between w-full`,children:[l(i,{className:`text-[18px] font-bold text-text1 leading-[26px]`,children:g}),v&&u(r,{className:`flex items-center gap-1 cursor-pointer active:opacity-70 transition-opacity`,onClick:P,children:[l(i,{className:`text-[14px] text-text3 leading-[22px]`,children:`换一批`}),l(o,{className:`w-3 h-3 text-text3`})]})]}),l(r,{className:`grid grid-cols-2 gap-x-1 gap-y-1 w-full`,children:N.map((e,t)=>l(r,{className:`flex items-center h-[32px] cursor-pointer active:opacity-70 transition-opacity overflow-hidden`,onClick:()=>F(e.label),children:l(i,{className:`text-[14px] text-text1 leading-[22px] truncate w-full`,children:e.label})},`${T}-${t}`))})]})}export{h as TextRecommendClient};
@@ -11,6 +11,7 @@ import * as zod_v4_core0 from "zod/v4/core";
11
11
  declare const textRecommendMaterial: DefineMaterialOption<typeof TextRecommendServer, typeof TextRecommendClient, zod.ZodObject<{
12
12
  readonly title: zod.ZodString & SchemaHasDefaultValue;
13
13
  readonly displayCount: zod.ZodNumber & SchemaHasDefaultValue;
14
+ readonly showRefresh: zod.ZodBoolean & SchemaHasDefaultValue;
14
15
  readonly items: zod.ZodArray<zod.ZodObject<{
15
16
  label: zod.ZodString & SchemaHasDefaultValue;
16
17
  }, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
@@ -10,6 +10,7 @@ import { z } from "zod";
10
10
  declare const textRecommendInspectorPropsSchema: z.ZodObject<{
11
11
  readonly title: z.ZodString & SchemaHasDefaultValue;
12
12
  readonly displayCount: z.ZodNumber & SchemaHasDefaultValue;
13
+ readonly showRefresh: z.ZodBoolean & SchemaHasDefaultValue;
13
14
  readonly items: z.ZodArray<z.ZodObject<{
14
15
  label: z.ZodString & SchemaHasDefaultValue;
15
16
  }, z.core.$strip>> & SchemaHasDefaultValue;
@@ -1,2 +1,2 @@
1
1
 
2
- import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import{z as t}from"zod";const n=e(e=>({title:e.string(`文字推荐标题`,{label:`标题名称`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:e.number(2,{label:`展示数`}),items:e.array(t.object({label:e.string(`推荐搜索1`,{label:`热词`})}),{label:`推荐位模块`,defaultValue:[{label:`推荐搜索2`},{label:`推荐搜索3`}]})}));export{n as textRecommendInspectorPropsSchema};
2
+ import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import{z as t}from"zod";const n=e(e=>({title:e.string(`文字推荐标题`,{label:`标题名称`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:e.number(2,{label:`展示数`}),showRefresh:e.boolean(!1,{label:`是否展示换一批`,fieldType:`switch`}),items:e.array(t.object({label:e.string(``,{label:`热词`})}),{label:`关键词列表`,defaultValue:[]})}));export{n as textRecommendInspectorPropsSchema};
@@ -1,6 +1,7 @@
1
1
 
2
2
  import { Ref } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+ import { SimplePlayer } from "xgplayer";
4
5
 
5
6
  //#region components/common/video-player/index.d.ts
6
7
  interface CommonPlayerProps {
@@ -37,7 +38,7 @@ interface CommonPlayerRef {
37
38
  enterFullscreen: () => void;
38
39
  isFullscreen: () => boolean;
39
40
  isPlayerReady: () => boolean;
40
- getPlayer: () => any;
41
+ getPlayer: () => SimplePlayer;
41
42
  }
42
43
  declare function CommonPlayer({
43
44
  className,
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{useUserStore as e}from"../../../store/modules/user-store.mjs";import{pContentMatchAds as t}from"../../../service/generated/client.mjs";import{pContentMatchAdsKey as n}from"../../../service/generated/tanstack.mjs";import{useRequest as r}from"../../../hooks/query/use-query.mjs";import{useVideoPlayerRef as i}from"./video-player-ref-context.mjs";import{useIsClient as a}from"foxact/use-is-client";import{useEffect as o,useRef as s,useState as c}from"react";import{jsx as l}from"react/jsx-runtime";import{create as u}from"zustand";import{createJSONStorage as d,persist as f}from"zustand/middleware";import{createPortal as p}from"react-dom";const m=u()(f((e,t)=>({shownVideoIds:new Set,hasShown:e=>t().shownVideoIds.has(e),markAsShown:n=>{let r=t().shownVideoIds;if(!r.has(n)){let t=new Set(r);t.add(n),e({shownVideoIds:t})}}}),{name:`video-blind-ad-storage`,storage:typeof window<`u`?d(()=>sessionStorage):void 0,partialize:e=>({shownVideoIds:Array.from(e.shownVideoIds)}),merge:(e,t)=>({...t,shownVideoIds:new Set(e.shownVideoIds||[])})}));function h({videoId:u}){let d=i(),f=a(),h=e(e=>e.userId),{hasShown:g,markAsShown:_}=m(),v=s(0),y=s(null),[b,x]=c(!1),S=s(!1),C={user_id:h,ad_type:`blind`},{data:w,isLoading:T}=r(n(C),()=>t(C)),E=g(u);o(()=>{let e=d?.current?.getPlayer();if(!e||!w||E)return;let t=w.data?.settings?.trigger_video_progress_min??0;function n(r){if(S.current){e?.off(`timeupdate`,n);return}let i=r?.currentTime;if(y.current!==null){let e=i-y.current;e>0&&e<2&&(v.current+=e,!S.current&&v.current/60>=t&&(S.current=!0,x(!0)))}y.current=i}return e.on(`timeupdate`,n),()=>{e.off(`timeupdate`,n)}},[d,w,E]);let D=!E&&b;o(()=>{if(D)return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=``}},[D]);function O(){E||(_(u),window.open(w?.data.materials?.[0].advertise_url))}return!f||typeof document>`u`||T||w?.data?.hit===!1||E||!b?null:p(l(`div`,{className:`blind-ad-overlay fixed inset-0 h-screen w-screen z-[99999]`,onClick:O}),document.body)}export{h as VideoBlindAdOverlay};
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{createContext as e,use as t}from"react";const n=e(null);function r(){return t(n)}export{n as VideoPlayerRefContext,r as useVideoPlayerRef};
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
6
6
  //#region components/ui/badge.d.ts
7
7
  /** badgeVariants 工具定义。 */
8
8
  declare const badgeVariants: (props?: ({
9
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
9
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
10
10
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  /** Badge 组件。 */
12
12
  declare function Badge({
@@ -7,8 +7,8 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
7
7
  //#region components/ui/button.d.ts
8
8
  /** buttonVariants 工具定义。 */
9
9
  declare const buttonVariants: (props?: ({
10
- variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
11
- size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
10
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
11
+ size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
14
14
  type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
@@ -34,7 +34,7 @@ type EmptyStateProps = React.ComponentProps<'div'> & {
34
34
  };
35
35
  /** emptyMediaVariants 工具定义。 */
36
36
  declare const emptyMediaVariants: (props?: ({
37
- variant?: "default" | "icon" | null | undefined;
37
+ variant?: "icon" | "default" | null | undefined;
38
38
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
39
39
  /** EmptyMedia 组件。 */
40
40
  declare function EmptyMedia({
@@ -82,7 +82,7 @@ declare function Item({
82
82
  }: ItemProps): React.ReactElement;
83
83
  /** itemMediaVariants 工具定义。 */
84
84
  declare const itemMediaVariants: (props?: ({
85
- variant?: "default" | "icon" | "image" | null | undefined;
85
+ variant?: "icon" | "default" | "image" | null | undefined;
86
86
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
87
87
  /** ItemMedia 组件。 */
88
88
  declare function ItemMedia({
@@ -0,0 +1,10 @@
1
+
2
+ //#region hooks/use-is-client.d.ts
3
+ /**
4
+ * 判断当前是否在客户端环境
5
+ *
6
+ * 用于处理 SSR/CSR 兼容性问题
7
+ */
8
+ declare function useIsClient(): boolean;
9
+ //#endregion
10
+ export { useIsClient };
@@ -0,0 +1,2 @@
1
+
2
+ "use client";import{useEffect as e,useState as t}from"react";function n(){let[n,r]=t(!1);return e(()=>{r(!0)},[]),n}export{n as useIsClient};
package/dist/hooks.d.mts CHANGED
@@ -7,10 +7,11 @@ import { UseBrowseReportOptions, useBrowseReport } from "./hooks/use-browse-repo
7
7
  import { useGridFirstRowHeight, useSingleFirstRowHeight, useWaterfallFirstRowHeight } from "./hooks/use-first-row-height.mjs";
8
8
  import { useFollow } from "./hooks/use-follow.mjs";
9
9
  import { useFullscreenGestures } from "./hooks/use-fullscreen-gestures.mjs";
10
+ import { useIsClient } from "./hooks/use-is-client.mjs";
10
11
  import { useKeyboardOpen } from "./hooks/use-keyboard-open.mjs";
11
12
  import { LikeableItem, useLikeDislike } from "./hooks/use-like-dislike.mjs";
12
13
  import { useMinDurationLoading } from "./hooks/use-min-duration-loading.mjs";
13
14
  import { useSearchHistory } from "./hooks/use-search-history.mjs";
14
15
  import { useSticky } from "./hooks/use-sticky.mjs";
15
16
  import { useKeepAliveEffect, useKeepAliveState } from "./components/common/keep-scroll-position/index.mjs";
16
- export { AuthFields, HydrationBoundary, IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, LikeableItem, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem, UseBrowseReportOptions, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId, useAuth, useBrowseReport, useCloseLogin, useDeleteRequest, useExpireTime, useFollow, useFullscreenGestures, useGridFirstRowHeight, useIsLoggedIn, useKeepAliveEffect, useKeepAliveState, useKeyboardOpen, useLikeDislike, useLoginModalOpen, useLogout, useMinDurationLoading, useMutation, useOpenLogin, useOpenLoginAsync, useOpenResetPassword, usePaginated, usePrefetchQuery, useRefetchQuery, useRequest, useRequireLogin, useSearchHistory, useSetAuthFields, useSingleFirstRowHeight, useSticky, useToken, useUpdateRequest, useUserId, useUserInfo, useWaterfallFirstRowHeight };
17
+ export { AuthFields, HydrationBoundary, IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, LikeableItem, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem, UseBrowseReportOptions, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId, useAuth, useBrowseReport, useCloseLogin, useDeleteRequest, useExpireTime, useFollow, useFullscreenGestures, useGridFirstRowHeight, useIsClient, useIsLoggedIn, useKeepAliveEffect, useKeepAliveState, useKeyboardOpen, useLikeDislike, useLoginModalOpen, useLogout, useMinDurationLoading, useMutation, useOpenLogin, useOpenLoginAsync, useOpenResetPassword, usePaginated, usePrefetchQuery, useRefetchQuery, useRequest, useRequireLogin, useSearchHistory, useSetAuthFields, useSingleFirstRowHeight, useSticky, useToken, useUpdateRequest, useUserId, useUserInfo, useWaterfallFirstRowHeight };
package/dist/hooks.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as e,buildImageTextRecommendChosenTags as t,buildImageTextRecommendRemoteMap as n,buildImageTextRecommendSmartPicked as r,getImageTextRecommendFixedIds as i,getImageTextRecommendLayoutTags as a,resolveImageTextRecommendVideoId as o}from"./hooks/image-text-recommend.mjs";import{HydrationBoundary as s}from"./hooks/query/hydration-boundary.mjs";import{useDeleteRequest as c,useMutation as l,usePaginated as u,usePrefetchQuery as d,useRefetchQuery as f,useRequest as p,useUpdateRequest as m}from"./hooks/query/use-query.mjs";import{useAuth as h,useCloseLogin as g,useExpireTime as _,useIsLoggedIn as v,useLoginModalOpen as y,useLogout as b,useOpenLogin as x,useOpenLoginAsync as S,useOpenResetPassword as C,useRequireLogin as w,useSetAuthFields as T,useToken as E,useUserId as D,useUserInfo as O}from"./hooks/use-auth.mjs";import{useBrowseReport as k}from"./hooks/use-browse-report.mjs";import{useGridFirstRowHeight as A,useSingleFirstRowHeight as j,useWaterfallFirstRowHeight as M}from"./hooks/use-first-row-height.mjs";import{useFollow as N}from"./hooks/use-follow.mjs";import{useFullscreenGestures as P}from"./hooks/use-fullscreen-gestures.mjs";import{useKeyboardOpen as F}from"./hooks/use-keyboard-open.mjs";import{useLikeDislike as I}from"./hooks/use-like-dislike.mjs";import{useMinDurationLoading as L}from"./hooks/use-min-duration-loading.mjs";import{useSearchHistory as R}from"./hooks/use-search-history.mjs";import{useSticky as z}from"./hooks/use-sticky.mjs";import{useKeepAliveEffect as B,useKeepAliveState as V}from"./components/common/keep-scroll-position/index.mjs";export{s as HydrationBoundary,e as IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE,t as buildImageTextRecommendChosenTags,n as buildImageTextRecommendRemoteMap,r as buildImageTextRecommendSmartPicked,i as getImageTextRecommendFixedIds,a as getImageTextRecommendLayoutTags,o as resolveImageTextRecommendVideoId,h as useAuth,k as useBrowseReport,g as useCloseLogin,c as useDeleteRequest,_ as useExpireTime,N as useFollow,P as useFullscreenGestures,A as useGridFirstRowHeight,v as useIsLoggedIn,B as useKeepAliveEffect,V as useKeepAliveState,F as useKeyboardOpen,I as useLikeDislike,y as useLoginModalOpen,b as useLogout,L as useMinDurationLoading,l as useMutation,x as useOpenLogin,S as useOpenLoginAsync,C as useOpenResetPassword,u as usePaginated,d as usePrefetchQuery,f as useRefetchQuery,p as useRequest,w as useRequireLogin,R as useSearchHistory,T as useSetAuthFields,j as useSingleFirstRowHeight,z as useSticky,E as useToken,m as useUpdateRequest,D as useUserId,O as useUserInfo,M as useWaterfallFirstRowHeight};
2
+ import{IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE as e,buildImageTextRecommendChosenTags as t,buildImageTextRecommendRemoteMap as n,buildImageTextRecommendSmartPicked as r,getImageTextRecommendFixedIds as i,getImageTextRecommendLayoutTags as a,resolveImageTextRecommendVideoId as o}from"./hooks/image-text-recommend.mjs";import{HydrationBoundary as s}from"./hooks/query/hydration-boundary.mjs";import{useDeleteRequest as c,useMutation as l,usePaginated as u,usePrefetchQuery as d,useRefetchQuery as f,useRequest as p,useUpdateRequest as m}from"./hooks/query/use-query.mjs";import{useAuth as h,useCloseLogin as g,useExpireTime as _,useIsLoggedIn as v,useLoginModalOpen as y,useLogout as b,useOpenLogin as x,useOpenLoginAsync as S,useOpenResetPassword as C,useRequireLogin as w,useSetAuthFields as T,useToken as E,useUserId as D,useUserInfo as O}from"./hooks/use-auth.mjs";import{useBrowseReport as k}from"./hooks/use-browse-report.mjs";import{useGridFirstRowHeight as A,useSingleFirstRowHeight as j,useWaterfallFirstRowHeight as M}from"./hooks/use-first-row-height.mjs";import{useFollow as N}from"./hooks/use-follow.mjs";import{useFullscreenGestures as P}from"./hooks/use-fullscreen-gestures.mjs";import{useIsClient as F}from"./hooks/use-is-client.mjs";import{useKeyboardOpen as I}from"./hooks/use-keyboard-open.mjs";import{useLikeDislike as L}from"./hooks/use-like-dislike.mjs";import{useMinDurationLoading as R}from"./hooks/use-min-duration-loading.mjs";import{useSearchHistory as z}from"./hooks/use-search-history.mjs";import{useSticky as B}from"./hooks/use-sticky.mjs";import{useKeepAliveEffect as V,useKeepAliveState as H}from"./components/common/keep-scroll-position/index.mjs";export{s as HydrationBoundary,e as IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE,t as buildImageTextRecommendChosenTags,n as buildImageTextRecommendRemoteMap,r as buildImageTextRecommendSmartPicked,i as getImageTextRecommendFixedIds,a as getImageTextRecommendLayoutTags,o as resolveImageTextRecommendVideoId,h as useAuth,k as useBrowseReport,g as useCloseLogin,c as useDeleteRequest,_ as useExpireTime,N as useFollow,P as useFullscreenGestures,A as useGridFirstRowHeight,F as useIsClient,v as useIsLoggedIn,V as useKeepAliveEffect,H as useKeepAliveState,I as useKeyboardOpen,L as useLikeDislike,y as useLoginModalOpen,b as useLogout,R as useMinDurationLoading,l as useMutation,x as useOpenLogin,S as useOpenLoginAsync,C as useOpenResetPassword,u as usePaginated,d as usePrefetchQuery,f as useRefetchQuery,p as useRequest,w as useRequireLogin,z as useSearchHistory,T as useSetAuthFields,j as useSingleFirstRowHeight,B as useSticky,E as useToken,m as useUpdateRequest,D as useUserId,O as useUserInfo,M as useWaterfallFirstRowHeight};
@@ -36,22 +36,10 @@ interface AdsMatchRequest {
36
36
  * 广告类型。
37
37
  */
38
38
  adType: AdsMatchAdType;
39
- /**
40
- * 登录用户 ID,已登录时优先传。
41
- */
42
- userId?: string;
43
- /**
44
- * 设备 ID,游客场景建议传。
45
- */
46
- deviceId?: string;
47
39
  /**
48
40
  * 组件唯一标识。
49
41
  */
50
42
  componentId?: string;
51
- /**
52
- * 应用 code。
53
- */
54
- appCode: string;
55
43
  /**
56
44
  * 场景上下文。
57
45
  */
@@ -171,6 +159,6 @@ declare function pContentAdsMatch(data: AdsMatchRequest, config?: ExtraRequestCo
171
159
  /**
172
160
  * 广告匹配接口缓存 key。
173
161
  */
174
- declare function pContentAdsMatchKey(data: Pick<AdsMatchRequest, 'adType' | 'appCode' | 'componentId' | 'sceneContext'>): (string | AdsMatchSceneContext)[];
162
+ declare function pContentAdsMatchKey(data: Pick<AdsMatchRequest, 'adType' | 'componentId' | 'sceneContext'>): (string | AdsMatchSceneContext)[];
175
163
  //#endregion
176
164
  export { AdsMatchAdType, AdsMatchConfig, AdsMatchMaterial, AdsMatchRequest, AdsMatchResponseData, AdsMatchSceneContext, pContentAdsMatch, pContentAdsMatchKey };
@@ -1,2 +1,2 @@
1
1
 
2
- import e from"../utils/http.mjs";async function t(t,n){let a=await e.request({...n??{},url:`/api/content/matchAds`,method:`POST`,data:i(t)});return{...a,data:r(a.data)??{}}}function n(e){return[`content-ads-match`,e.adType,e.appCode,e.componentId??``,e.sceneContext??{}]}function r(e){if(e)return{hit:e.hit,adType:e.adType??e.ad_type,advertiseLocationCode:e.advertiseLocationCode??e.advertise_location_code,config:o(e.config),materials:e.materials?.map(s)??[]}}function i(e){return{ad_type:e.adType,user_id:e.userId??`69b268b9ba530cd3d98c8b7e`,device_id:e.deviceId,component_id:e.componentId??`111111`,app_code:e.appCode,scene_context:a(e.sceneContext)??{}}}function a(e){if(e)return{startup_type:e.startupType,is_startup_hot:e.isStartupHot,background_durationMin:e.backgroundDurationMin,video_played_seconds:e.videoPlayedSeconds}}function o(e){if(e)return{skipSeconds:e.skipSeconds??e.skip_seconds,popupCount:e.popupCount??e.popup_count,dailyMaxShow:e.dailyMaxShow??e.daily_max_show,triggerVideoProgressMin:e.triggerVideoProgressMin??e.trigger_video_progress_min,switchInterval:e.switchInterval??e.switch_interval,displayCount:e.displayCount??e.display_count,styleSize:e.styleSize??e.style_size}}function s(e){return{advertiseCode:e.advertiseCode??e.advertise_code,advertiseName:e.advertiseName??e.advertise_name,advertiseUrl:e.advertiseUrl??e.advertise_url,advertiseIcon:e.advertiseIcon??e.advertise_icon,adPcAdvertiseIcon:e.adPcAdvertiseIcon??e.pc_advertise_icon,advertiseType:e.advertiseType??e.advertise_type,advertiseDesc:e.advertiseDesc??e.advertise_desc,sort:e.sort,startTimeStamp:e.startTimeStamp??e.start_timestamp,endTimeStamp:e.endTimeStamp??e.end_timestamp,adExtData:e.adExtData??e.ad_ext_data}}export{t as pContentAdsMatch,n as pContentAdsMatchKey};
2
+ import e from"../utils/http.mjs";async function t(t,n){let a=await e.request({...n??{},url:`/api/content/matchAds`,method:`POST`,data:i(t)});return{...a,data:r(a.data)??{}}}function n(e){return[`content-ads-match`,e.adType,e.componentId??``,e.sceneContext??{}]}function r(e){if(e)return{hit:e.hit,adType:e.adType??e.ad_type,advertiseLocationCode:e.advertiseLocationCode??e.advertise_location_code,config:o(e.config),materials:e.materials?.map(s)??[]}}function i(e){let t=a(e.sceneContext);return{ad_type:e.adType,component_id:e.componentId??`111111`,...t?{scene_context:t}:{}}}function a(e){if(e)return{startup_type:e.startupType,is_startup_hot:e.isStartupHot,background_durationMin:e.backgroundDurationMin,video_played_seconds:e.videoPlayedSeconds}}function o(e){if(e)return{skipSeconds:e.skipSeconds??e.skip_seconds,popupCount:e.popupCount??e.popup_count,dailyMaxShow:e.dailyMaxShow??e.daily_max_show,triggerVideoProgressMin:e.triggerVideoProgressMin??e.trigger_video_progress_min,switchInterval:e.switchInterval??e.switch_interval,displayCount:e.displayCount??e.display_count,styleSize:e.styleSize??e.style_size}}function s(e){return{advertiseCode:e.advertiseCode??e.advertise_code,advertiseName:e.advertiseName??e.advertise_name,advertiseUrl:e.advertiseUrl??e.advertise_url,advertiseIcon:e.advertiseIcon??e.advertise_icon,adPcAdvertiseIcon:e.adPcAdvertiseIcon??e.pc_advertise_icon,advertiseType:e.advertiseType??e.advertise_type,advertiseDesc:e.advertiseDesc??e.advertise_desc,sort:e.sort,startTimeStamp:e.startTimeStamp??e.start_timestamp,endTimeStamp:e.endTimeStamp??e.end_timestamp,adExtData:e.adExtData??e.ad_ext_data}}export{t as pContentAdsMatch,n as pContentAdsMatchKey};
@@ -1,5 +1,5 @@
1
1
 
2
- import { GetApiCommerceQueryOrderResultQuery, GetApiCommerceQueryOrderResultRes, GetApiCommunityGetCollectionInfoQuery, GetApiCommunityGetCollectionInfoRes, GetApiCommunityGetCommentsQuery, GetApiCommunityGetCommentsRes, GetApiCommunityGetContentInfoQuery, GetApiCommunityGetContentInfoRes, GetApiCommunityGetContentListQuery, GetApiCommunityGetContentListRes, GetApiCommunityGetHotContentListQuery, GetApiCommunityGetHotContentListRes, GetApiCommunityGetSubscribedCollectionsQuery, GetApiCommunityGetSubscribedCollectionsRes, GetApiCommunityGetUserCollectionsQuery, GetApiCommunityGetUserCollectionsRes, GetApiContentGetAdvertiseByCodeQuery, GetApiContentGetAdvertiseByCodeRes, GetApiContentGetAppChannelBlockDataQuery, GetApiContentGetAppChannelBlockDataRes, GetApiContentGetAppChannelBlockQuery, GetApiContentGetAppChannelBlockRes, GetApiContentGetAppChannelsQuery, GetApiContentGetAppChannelsRes, GetApiContentGetAppComponentRes, GetApiContentGetGuessYouLikeVideosQuery, GetApiContentGetGuessYouLikeVideosRes, GetApiContentGetHotVideoListQuery, GetApiContentGetHotVideoListRes, GetApiContentGetRecommendSearchListQuery, GetApiContentGetRecommendSearchListRes, GetApiContentGetRecommendVideoListQuery, GetApiContentGetRecommendVideoListRes, GetApiContentGetSeoConfigQuery, GetApiContentGetSeoConfigRes, GetApiContentGetVideoDetailByApiQuery, GetApiContentGetVideoDetailByApiRes, GetApiContentGetVideoDetailQuery, GetApiContentGetVideoDetailRes, GetApiContentListVisibleFloatingBallQuery, GetApiContentListVisibleFloatingBallRes, GetApiContentProcessM3u8Query, GetApiContentProcessM3u8Res, GetApiInteractionCheckMutualFollowQuery, GetApiInteractionCheckMutualFollowRes, GetApiInteractionGetBrowseListQuery, GetApiInteractionGetBrowseListRes, GetApiInteractionGetContentDislikeListQuery, GetApiInteractionGetContentDislikeListRes, GetApiInteractionGetContentLikeListQuery, GetApiInteractionGetContentLikeListRes, GetApiInteractionGetDislikeListQuery, GetApiInteractionGetDislikeListRes, GetApiInteractionGetFolderQuery, GetApiInteractionGetFolderRes, GetApiInteractionGetFolderStatsQuery, GetApiInteractionGetFolderStatsRes, GetApiInteractionGetFollowStatsQuery, GetApiInteractionGetFollowStatsRes, GetApiInteractionGetFollowerListQuery, GetApiInteractionGetFollowerListRes, GetApiInteractionGetFollowingContentListQuery, GetApiInteractionGetFollowingContentListRes, GetApiInteractionGetFollowingListQuery, GetApiInteractionGetFollowingListRes, GetApiInteractionGetFollowingUserUpdatesQuery, GetApiInteractionGetFollowingUserUpdatesRes, GetApiInteractionGetLikeListQuery, GetApiInteractionGetLikeListRes, GetApiInteractionListCollectsQuery, GetApiInteractionListCollectsRes, GetApiInteractionListFoldersQuery, GetApiInteractionListFoldersRes, GetApiUserGetGuestIdentityQuery, GetApiUserGetGuestIdentityRes, GetApiUserGetUserEditInfoQuery, GetApiUserGetUserEditInfoRes, GetApiUserGetUserInfoQuery, GetApiUserGetUserInfoRes, GetApiUserGetUserPrivacySettingsQuery, GetApiUserGetUserPrivacySettingsRes, GetApiUserViewUserInfoQuery, GetApiUserViewUserInfoRes, PostApiCommerceCreatePaymentReqBody, PostApiCommerceCreatePaymentRes, PostApiCommerceGetPaymentMethodsReqBody, PostApiCommerceGetPaymentMethodsRes, PostApiCommercePaymentSuccessCallbackReqBody, PostApiCommercePaymentSuccessCallbackRes, PostApiCommerceRefundCallbackReqBody, PostApiCommerceRefundCallbackRes, PostApiCommunityAddContentToCollectionReqBody, PostApiCommunityAddContentToCollectionRes, PostApiCommunityBatchDeleteCollectionReqBody, PostApiCommunityBatchDeleteCollectionRes, PostApiCommunityCreateCollectionReqBody, PostApiCommunityCreateCollectionRes, PostApiCommunityCreateCommentReqBody, PostApiCommunityCreateCommentRes, PostApiCommunityDeleteCollectionReqBody, PostApiCommunityDeleteCollectionRes, PostApiCommunityDeleteCommentReqBody, PostApiCommunityDeleteCommentRes, PostApiCommunityDeleteContentReqBody, PostApiCommunityDeleteContentRes, PostApiCommunityDislikeCommentReqBody, PostApiCommunityDislikeCommentRes, PostApiCommunityGetUploadPresignedURLReqBody, PostApiCommunityGetUploadPresignedURLRes, PostApiCommunityLikeCommentReqBody, PostApiCommunityLikeCommentRes, PostApiCommunityMoveCollectionContentReqBody, PostApiCommunityMoveCollectionContentRes, PostApiCommunityPublishContentReqBody, PostApiCommunityPublishContentRes, PostApiCommunityRemoveContentFromCollectionReqBody, PostApiCommunityRemoveContentFromCollectionRes, PostApiCommunitySearchCurAccountFollowingUsersInfoReqBody, PostApiCommunitySearchCurAccountFollowingUsersInfoRes, PostApiCommunityShareContentReqBody, PostApiCommunityShareContentRes, PostApiCommunitySubscribeCollectionReqBody, PostApiCommunitySubscribeCollectionRes, PostApiCommunityUpdateCollectionReqBody, PostApiCommunityUpdateCollectionRes, PostApiCommunityUpdateContentReqBody, PostApiCommunityUpdateContentRes, PostApiCommunityUploadMediaReqBody, PostApiCommunityUploadMediaRes, PostApiContentBatchGetVideoDetailReqBody, PostApiContentBatchGetVideoDetailRes, PostApiContentGetNewstVideoListReqBody, PostApiContentGetNewstVideoListRes, PostApiContentGetPopularVideoListReqBody, PostApiContentGetPopularVideoListRes, PostApiContentGetTopRatedVideoListReqBody, PostApiContentGetTopRatedVideoListRes, PostApiContentMatchAdsReqBody, PostApiContentMatchAdsRes, PostApiInteractionAddCollectReqBody, PostApiInteractionAddCollectRes, PostApiInteractionBatchClearBrowseReqBody, PostApiInteractionBatchClearBrowseRes, PostApiInteractionBatchDeleteCollectsReqBody, PostApiInteractionBatchDeleteCollectsRes, PostApiInteractionBatchDeleteFoldersReqBody, PostApiInteractionBatchDeleteFoldersRes, PostApiInteractionBatchGetCommentLikeStatusReqBody, PostApiInteractionBatchGetCommentLikeStatusRes, PostApiInteractionBatchGetFollowStatsReqBody, PostApiInteractionBatchGetFollowStatsRes, PostApiInteractionBatchGetLikeStatusReqBody, PostApiInteractionBatchGetLikeStatusRes, PostApiInteractionBatchQueryContentInteractionsReqBody, PostApiInteractionBatchQueryContentInteractionsRes, PostApiInteractionBrowseReqBody, PostApiInteractionBrowseRes, PostApiInteractionCancelDislikeReqBody, PostApiInteractionCancelDislikeRes, PostApiInteractionCancelLikeReqBody, PostApiInteractionCancelLikeRes, PostApiInteractionCheckCollectReqBody, PostApiInteractionCheckCollectRes, PostApiInteractionCheckFollowReqBody, PostApiInteractionCheckFollowRes, PostApiInteractionClearBrowseHistoryReqBody, PostApiInteractionClearBrowseHistoryRes, PostApiInteractionCreateFolderReqBody, PostApiInteractionCreateFolderRes, PostApiInteractionDeleteBrowseRecordReqBody, PostApiInteractionDeleteBrowseRecordRes, PostApiInteractionDeleteFolderReqBody, PostApiInteractionDeleteFolderRes, PostApiInteractionDislikeCommentReqBody, PostApiInteractionDislikeCommentRes, PostApiInteractionDislikeReqBody, PostApiInteractionDislikeRes, PostApiInteractionFollowReqBody, PostApiInteractionFollowRes, PostApiInteractionLikeCommentReqBody, PostApiInteractionLikeCommentRes, PostApiInteractionLikeReqBody, PostApiInteractionLikeRes, PostApiInteractionMoveCollectsReqBody, PostApiInteractionMoveCollectsRes, PostApiInteractionRemoveCollectReqBody, PostApiInteractionRemoveCollectRes, PostApiInteractionTrackEventsBatchReqBody, PostApiInteractionTrackEventsBatchRes, PostApiInteractionUnfollowReqBody, PostApiInteractionUnfollowRes, PostApiInteractionUnifiedBatchLikeDislikeReqBody, PostApiInteractionUnifiedBatchLikeDislikeRes, PostApiInteractionUpdateFolderReqBody, PostApiInteractionUpdateFolderRes, PostApiInteractionUpdateFollowingContentUpdateTimeReqBody, PostApiInteractionUpdateFollowingContentUpdateTimeRes, PostApiUserEditUserInfoReqBody, PostApiUserEditUserInfoRes, PostApiUserLoginReqBody, PostApiUserLoginRes, PostApiUserRegisterByVerifyEmailCodeReqBody, PostApiUserRegisterByVerifyEmailCodeRes, PostApiUserRegisterReqBody, PostApiUserRegisterRes, PostApiUserResetForgetPasswordReqBody, PostApiUserResetForgetPasswordRes, PostApiUserResetPasswordReqBody, PostApiUserResetPasswordRes, PostApiUserSendEmailCodeReqBody, PostApiUserSendEmailCodeRes, PostApiUserSendForgetEmailCodeReqBody, PostApiUserSendForgetEmailCodeRes, PostApiUserSendResetPasswordEmailCodeReqBody, PostApiUserSendResetPasswordEmailCodeRes, PostApiUserUploadUserBgImageReqBody, PostApiUserUploadUserBgImageRes, PostApiUserUserFeedbackReqBody, PostApiUserUserFeedbackRes, PostApiUserUserPrivacySettingsReqBody, PostApiUserUserPrivacySettingsRes, PostApiUserVerifyEmailCodeReqBody, PostApiUserVerifyEmailCodeRes, PostApiUserVerifyForgetEmailCodeReqBody, PostApiUserVerifyForgetEmailCodeRes, PostApiUserVerifyResetPasswordEmailCodeReqBody, PostApiUserVerifyResetPasswordEmailCodeRes } from "../../types.mjs";
2
+ import { GetApiCommerceQueryOrderResultQuery, GetApiCommerceQueryOrderResultRes, GetApiCommunityGetCollectionInfoQuery, GetApiCommunityGetCollectionInfoRes, GetApiCommunityGetCommentsQuery, GetApiCommunityGetCommentsRes, GetApiCommunityGetContentInfoQuery, GetApiCommunityGetContentInfoRes, GetApiCommunityGetContentListQuery, GetApiCommunityGetContentListRes, GetApiCommunityGetHotContentListQuery, GetApiCommunityGetHotContentListRes, GetApiCommunityGetSubscribedCollectionsQuery, GetApiCommunityGetSubscribedCollectionsRes, GetApiCommunityGetUserCollectionsQuery, GetApiCommunityGetUserCollectionsRes, GetApiContentGetAdvertiseByCodeQuery, GetApiContentGetAdvertiseByCodeRes, GetApiContentGetAppChannelBlockDataQuery, GetApiContentGetAppChannelBlockDataRes, GetApiContentGetAppChannelBlockQuery, GetApiContentGetAppChannelBlockRes, GetApiContentGetAppChannelsQuery, GetApiContentGetAppChannelsRes, GetApiContentGetAppComponentRes, GetApiContentGetGuessYouLikeVideosQuery, GetApiContentGetGuessYouLikeVideosRes, GetApiContentGetHotVideoListQuery, GetApiContentGetHotVideoListRes, GetApiContentGetRecommendSearchListQuery, GetApiContentGetRecommendSearchListRes, GetApiContentGetRecommendVideoListQuery, GetApiContentGetRecommendVideoListRes, GetApiContentGetSeoConfigQuery, GetApiContentGetSeoConfigRes, GetApiContentGetVideoDetailByApiQuery, GetApiContentGetVideoDetailByApiRes, GetApiContentGetVideoDetailQuery, GetApiContentGetVideoDetailRes, GetApiContentListVisibleFloatingBallQuery, GetApiContentListVisibleFloatingBallRes, GetApiContentProcessM3u8Query, GetApiContentProcessM3u8Res, GetApiInteractionCheckMutualFollowQuery, GetApiInteractionCheckMutualFollowRes, GetApiInteractionGetBrowseListQuery, GetApiInteractionGetBrowseListRes, GetApiInteractionGetContentDislikeListQuery, GetApiInteractionGetContentDislikeListRes, GetApiInteractionGetContentLikeListQuery, GetApiInteractionGetContentLikeListRes, GetApiInteractionGetDislikeListQuery, GetApiInteractionGetDislikeListRes, GetApiInteractionGetFolderQuery, GetApiInteractionGetFolderRes, GetApiInteractionGetFolderStatsQuery, GetApiInteractionGetFolderStatsRes, GetApiInteractionGetFollowStatsQuery, GetApiInteractionGetFollowStatsRes, GetApiInteractionGetFollowerListQuery, GetApiInteractionGetFollowerListRes, GetApiInteractionGetFollowingContentListQuery, GetApiInteractionGetFollowingContentListRes, GetApiInteractionGetFollowingListQuery, GetApiInteractionGetFollowingListRes, GetApiInteractionGetFollowingUserUpdatesQuery, GetApiInteractionGetFollowingUserUpdatesRes, GetApiInteractionGetLikeListQuery, GetApiInteractionGetLikeListRes, GetApiInteractionListCollectsQuery, GetApiInteractionListCollectsRes, GetApiInteractionListFoldersQuery, GetApiInteractionListFoldersRes, GetApiUserGetGuestIdentityQuery, GetApiUserGetGuestIdentityRes, GetApiUserGetUserEditInfoQuery, GetApiUserGetUserEditInfoRes, GetApiUserGetUserInfoQuery, GetApiUserGetUserInfoRes, GetApiUserGetUserPrivacySettingsQuery, GetApiUserGetUserPrivacySettingsRes, GetApiUserGetVisitorPermissionConfigQuery, GetApiUserGetVisitorPermissionConfigRes, GetApiUserViewUserInfoQuery, GetApiUserViewUserInfoRes, PostApiCommerceCreatePaymentReqBody, PostApiCommerceCreatePaymentRes, PostApiCommerceGetPaymentMethodsReqBody, PostApiCommerceGetPaymentMethodsRes, PostApiCommercePaymentSuccessCallbackReqBody, PostApiCommercePaymentSuccessCallbackRes, PostApiCommerceRefundCallbackReqBody, PostApiCommerceRefundCallbackRes, PostApiCommunityAddContentToCollectionReqBody, PostApiCommunityAddContentToCollectionRes, PostApiCommunityBatchDeleteCollectionReqBody, PostApiCommunityBatchDeleteCollectionRes, PostApiCommunityCreateCollectionReqBody, PostApiCommunityCreateCollectionRes, PostApiCommunityCreateCommentReqBody, PostApiCommunityCreateCommentRes, PostApiCommunityDeleteCollectionReqBody, PostApiCommunityDeleteCollectionRes, PostApiCommunityDeleteCommentReqBody, PostApiCommunityDeleteCommentRes, PostApiCommunityDeleteContentReqBody, PostApiCommunityDeleteContentRes, PostApiCommunityDislikeCommentReqBody, PostApiCommunityDislikeCommentRes, PostApiCommunityGetUploadPresignedURLReqBody, PostApiCommunityGetUploadPresignedURLRes, PostApiCommunityLikeCommentReqBody, PostApiCommunityLikeCommentRes, PostApiCommunityMoveCollectionContentReqBody, PostApiCommunityMoveCollectionContentRes, PostApiCommunityPublishContentReqBody, PostApiCommunityPublishContentRes, PostApiCommunityRemoveContentFromCollectionReqBody, PostApiCommunityRemoveContentFromCollectionRes, PostApiCommunitySearchCurAccountFollowingUsersInfoReqBody, PostApiCommunitySearchCurAccountFollowingUsersInfoRes, PostApiCommunityShareContentReqBody, PostApiCommunityShareContentRes, PostApiCommunitySubscribeCollectionReqBody, PostApiCommunitySubscribeCollectionRes, PostApiCommunityUpdateCollectionReqBody, PostApiCommunityUpdateCollectionRes, PostApiCommunityUpdateContentReqBody, PostApiCommunityUpdateContentRes, PostApiCommunityUploadMediaReqBody, PostApiCommunityUploadMediaRes, PostApiContentBatchGetVideoDetailReqBody, PostApiContentBatchGetVideoDetailRes, PostApiContentGetMostPlayedVideoListReqBody, PostApiContentGetMostPlayedVideoListRes, PostApiContentGetNewstVideoListReqBody, PostApiContentGetNewstVideoListRes, PostApiContentGetPopularVideoListReqBody, PostApiContentGetPopularVideoListRes, PostApiContentGetTopRatedVideoListReqBody, PostApiContentGetTopRatedVideoListRes, PostApiContentMatchAdsReqBody, PostApiContentMatchAdsRes, PostApiInteractionAddCollectReqBody, PostApiInteractionAddCollectRes, PostApiInteractionBatchClearBrowseReqBody, PostApiInteractionBatchClearBrowseRes, PostApiInteractionBatchDeleteCollectsReqBody, PostApiInteractionBatchDeleteCollectsRes, PostApiInteractionBatchDeleteFoldersReqBody, PostApiInteractionBatchDeleteFoldersRes, PostApiInteractionBatchGetCommentLikeStatusReqBody, PostApiInteractionBatchGetCommentLikeStatusRes, PostApiInteractionBatchGetFollowStatsReqBody, PostApiInteractionBatchGetFollowStatsRes, PostApiInteractionBatchGetLikeStatusReqBody, PostApiInteractionBatchGetLikeStatusRes, PostApiInteractionBatchQueryContentInteractionsReqBody, PostApiInteractionBatchQueryContentInteractionsRes, PostApiInteractionBrowseReqBody, PostApiInteractionBrowseRes, PostApiInteractionCancelDislikeReqBody, PostApiInteractionCancelDislikeRes, PostApiInteractionCancelLikeReqBody, PostApiInteractionCancelLikeRes, PostApiInteractionCheckCollectReqBody, PostApiInteractionCheckCollectRes, PostApiInteractionCheckFollowReqBody, PostApiInteractionCheckFollowRes, PostApiInteractionClearBrowseHistoryReqBody, PostApiInteractionClearBrowseHistoryRes, PostApiInteractionCreateFolderReqBody, PostApiInteractionCreateFolderRes, PostApiInteractionDeleteBrowseRecordReqBody, PostApiInteractionDeleteBrowseRecordRes, PostApiInteractionDeleteFolderReqBody, PostApiInteractionDeleteFolderRes, PostApiInteractionDislikeCommentReqBody, PostApiInteractionDislikeCommentRes, PostApiInteractionDislikeReqBody, PostApiInteractionDislikeRes, PostApiInteractionFollowReqBody, PostApiInteractionFollowRes, PostApiInteractionLikeCommentReqBody, PostApiInteractionLikeCommentRes, PostApiInteractionLikeReqBody, PostApiInteractionLikeRes, PostApiInteractionMoveCollectsReqBody, PostApiInteractionMoveCollectsRes, PostApiInteractionRemoveCollectReqBody, PostApiInteractionRemoveCollectRes, PostApiInteractionTrackEventsBatchReqBody, PostApiInteractionTrackEventsBatchRes, PostApiInteractionUnfollowReqBody, PostApiInteractionUnfollowRes, PostApiInteractionUnifiedBatchLikeDislikeReqBody, PostApiInteractionUnifiedBatchLikeDislikeRes, PostApiInteractionUpdateFolderReqBody, PostApiInteractionUpdateFolderRes, PostApiInteractionUpdateFollowingContentUpdateTimeReqBody, PostApiInteractionUpdateFollowingContentUpdateTimeRes, PostApiUserEditUserInfoReqBody, PostApiUserEditUserInfoRes, PostApiUserLoginReqBody, PostApiUserLoginRes, PostApiUserRegisterByVerifyEmailCodeReqBody, PostApiUserRegisterByVerifyEmailCodeRes, PostApiUserRegisterReqBody, PostApiUserRegisterRes, PostApiUserResetForgetPasswordReqBody, PostApiUserResetForgetPasswordRes, PostApiUserResetPasswordReqBody, PostApiUserResetPasswordRes, PostApiUserSendEmailCodeReqBody, PostApiUserSendEmailCodeRes, PostApiUserSendForgetEmailCodeReqBody, PostApiUserSendForgetEmailCodeRes, PostApiUserSendResetPasswordEmailCodeReqBody, PostApiUserSendResetPasswordEmailCodeRes, PostApiUserUploadUserBgImageReqBody, PostApiUserUploadUserBgImageRes, PostApiUserUserFeedbackReqBody, PostApiUserUserFeedbackRes, PostApiUserUserPrivacySettingsReqBody, PostApiUserUserPrivacySettingsRes, PostApiUserVerifyEmailCodeReqBody, PostApiUserVerifyEmailCodeRes, PostApiUserVerifyForgetEmailCodeReqBody, PostApiUserVerifyForgetEmailCodeRes, PostApiUserVerifyResetPasswordEmailCodeReqBody, PostApiUserVerifyResetPasswordEmailCodeRes } from "../../types.mjs";
3
3
  import { RequestConfig, ResponseData } from "../../utils/http.mjs";
4
4
 
5
5
  //#region service/generated/client.d.ts
@@ -180,6 +180,10 @@ declare function gContentGetSeoConfig(query?: GetApiContentGetSeoConfigQuery, co
180
180
  * 广告匹配(不包含信息流广告)
181
181
  */
182
182
  declare function pContentMatchAds(data: PostApiContentMatchAdsReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiContentMatchAdsRes>>;
183
+ /**
184
+ * 最热视频列表(按play_count排序,游标分页)
185
+ */
186
+ declare function pContentGetMostPlayedVideoList(data: PostApiContentGetMostPlayedVideoListReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiContentGetMostPlayedVideoListRes>>;
183
187
  /**
184
188
  * 处理 M3U8 文件。底层调用 gRPC ContentService.ProcessM3u8 方法。返回处理后的 M3U8 文件内容。
185
189
  */
@@ -440,6 +444,10 @@ declare function gUserViewUserInfo(query?: GetApiUserViewUserInfoQuery, config?:
440
444
  * 注册通过验证注册邮箱验证码
441
445
  */
442
446
  declare function pUserRegisterByVerifyEmailCode(data: PostApiUserRegisterByVerifyEmailCodeReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiUserRegisterByVerifyEmailCodeRes>>;
447
+ /**
448
+ * 获取访客权限配置
449
+ */
450
+ declare function gUserGetVisitorPermissionConfig(query?: GetApiUserGetVisitorPermissionConfigQuery, config?: ExtraRequestConfig): Promise<ResponseData<GetApiUserGetVisitorPermissionConfigRes>>;
443
451
  /**
444
452
  * 发起支付
445
453
  */
@@ -461,4 +469,4 @@ declare function pCommercePaymentSuccessCallback(data: PostApiCommercePaymentSuc
461
469
  */
462
470
  declare function pCommerceRefundCallback(data: PostApiCommerceRefundCallbackReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiCommerceRefundCallbackRes>>;
463
471
  //#endregion
464
- export { gCommerceQueryOrderResult, gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetSeoConfig, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommerceCreatePayment, pCommerceGetPaymentMethods, pCommercePaymentSuccessCallback, pCommerceRefundCallback, pCommunityAddContentToCollection, pCommunityBatchDeleteCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetNewstVideoList, pContentGetPopularVideoList, pContentGetTopRatedVideoList, pContentMatchAds, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchDeleteFolders, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetFollowStats, pInteractionBatchGetLikeStatus, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckCollect, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionDislikeComment, pInteractionFollow, pInteractionLike, pInteractionLikeComment, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionTrackEventsBatch, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pInteractionUpdateFollowingContentUpdateTime, pUserEditUserInfo, pUserLogin, pUserRegister, pUserRegisterByVerifyEmailCode, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode };
472
+ export { gCommerceQueryOrderResult, gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetSeoConfig, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserGetVisitorPermissionConfig, gUserViewUserInfo, pCommerceCreatePayment, pCommerceGetPaymentMethods, pCommercePaymentSuccessCallback, pCommerceRefundCallback, pCommunityAddContentToCollection, pCommunityBatchDeleteCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetMostPlayedVideoList, pContentGetNewstVideoList, pContentGetPopularVideoList, pContentGetTopRatedVideoList, pContentMatchAds, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchDeleteFolders, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetFollowStats, pInteractionBatchGetLikeStatus, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckCollect, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionDislikeComment, pInteractionFollow, pInteractionLike, pInteractionLikeComment, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionTrackEventsBatch, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pInteractionUpdateFollowingContentUpdateTime, pUserEditUserInfo, pUserLogin, pUserRegister, pUserRegisterByVerifyEmailCode, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode };
@@ -1,2 +1,2 @@
1
1
 
2
- import e from"../../utils/http.mjs";async function t(t,n){return e.request({...n??{},url:`/api/community/publishContent`,method:`POST`,data:t})}async function n(t,n){return e.request({...n??{},url:`/api/community/getContentInfo`,method:`GET`,params:t})}async function ee(t,n){return e.request({...n??{},url:`/api/community/getContentList`,method:`GET`,params:t})}async function te(t,n){return e.request({...n??{},url:`/api/community/deleteContent`,method:`POST`,data:t})}async function r(t,n){return e.request({...n??{},url:`/api/community/updateContent`,method:`POST`,data:t})}async function i(t,n){return e.request({...n??{},url:`/api/community/createCollection`,method:`POST`,data:t})}async function a(t,n){return e.request({...n??{},url:`/api/community/getCollectionInfo`,method:`GET`,params:t})}async function o(t,n){return e.request({...n??{},url:`/api/community/getUserCollections`,method:`GET`,params:t})}async function s(t,n){return e.request({...n??{},url:`/api/community/addContentToCollection`,method:`POST`,data:t})}async function c(t,n){return e.request({...n??{},url:`/api/community/deleteCollection`,method:`POST`,data:t})}async function l(t,n){return e.request({...n??{},url:`/api/community/subscribeCollection`,method:`POST`,data:t})}async function u(t,n){return e.request({...n??{},url:`/api/community/getSubscribedCollections`,method:`GET`,params:t})}async function d(t,n){return e.request({...n??{},url:`/api/community/updateCollection`,method:`POST`,data:t})}async function f(t,n){return e.request({...n??{},url:`/api/community/removeContentFromCollection`,method:`POST`,data:t})}async function p(t,n){return e.request({...n??{},url:`/api/community/moveCollectionContent`,method:`POST`,data:t})}async function m(t,n){return e.request({...n??{},url:`/api/community/uploadMedia`,method:`POST`,data:t})}async function h(t,n){return e.request({...n??{},url:`/api/community/getUploadPresignedURL`,method:`POST`,data:t})}async function g(t,n){return e.request({...n??{},url:`/api/community/createComment`,method:`POST`,data:t})}async function _(t,n){return e.request({...n??{},url:`/api/community/getComments`,method:`GET`,params:t})}async function v(t,n){return e.request({...n??{},url:`/api/community/deleteComment`,method:`POST`,data:t})}async function y(t,n){return e.request({...n??{},url:`/api/community/likeComment`,method:`POST`,data:t})}async function b(t,n){return e.request({...n??{},url:`/api/community/dislikeComment`,method:`POST`,data:t})}async function x(t,n){return e.request({...n??{},url:`/api/community/shareContent`,method:`POST`,data:t})}async function S(t,n){return e.request({...n??{},url:`/api/community/searchCurAccountFollowingUsersInfo`,method:`POST`,data:t})}async function C(t,n){return e.request({...n??{},url:`/api/community/getHotContentList`,method:`GET`,params:t})}async function w(t,n){return e.request({...n??{},url:`/api/community/batchDeleteCollection`,method:`POST`,data:t})}async function T(t,n){return e.request({...n??{},url:`/api/content/getVideoDetailByApi`,method:`GET`,params:t})}async function E(t,n){return e.request({...n??{},url:`/api/content/getVideoDetail`,method:`GET`,params:t})}async function D(t,n){return e.request({...n??{},url:`/api/content/getRecommendSearchList`,method:`GET`,params:t})}async function O(t,n){return e.request({...n??{},url:`/api/content/getHotVideoList`,method:`GET`,params:t})}async function k(t,n){return e.request({...n??{},url:`/api/content/getRecommendVideoList`,method:`GET`,params:t})}async function A(t,n){return e.request({...n??{},url:`/api/content/getAppChannels`,method:`GET`,params:t})}async function j(t,n){return e.request({...n??{},url:`/api/content/getAppChannelBlock`,method:`GET`,params:t})}async function M(t,n){return e.request({...n??{},url:`/api/content/getAppChannelBlockData`,method:`GET`,params:t})}async function N(t,n){return e.request({...n??{},url:`/api/content/getNewstVideoList`,method:`POST`,data:t})}async function P(t,n){return e.request({...n??{},url:`/api/content/getPopularVideoList`,method:`POST`,data:t})}async function F(t,n){return e.request({...n??{},url:`/api/content/listVisibleFloatingBall`,method:`GET`,params:t})}async function I(t,n){return e.request({...n??{},url:`/api/content/getGuessYouLikeVideos`,method:`GET`,params:t})}async function L(t,n){return e.request({...n??{},url:`/api/content/getAdvertiseByCode`,method:`GET`,params:t})}async function R(t){return e.request({...t??{},url:`/api/content/getAppComponent`,method:`GET`})}async function z(t,n){return e.request({...n??{},url:`/api/content/batchGetVideoDetail`,method:`POST`,data:t})}async function B(t,n){return e.request({...n??{},url:`/api/content/getTopRatedVideoList`,method:`POST`,data:t})}async function V(t,n){return e.request({...n??{},url:`/api/content/getSeoConfig`,method:`GET`,params:t})}async function H(t,n){return e.request({...n??{},url:`/api/content/matchAds`,method:`POST`,data:t})}async function U(t,n){return e.request({...n??{},url:`/api/content/processM3u8`,method:`GET`,params:t})}async function W(t,n){return e.request({...n??{},url:`/api/interaction/like`,method:`POST`,data:t})}async function G(t,n){return e.request({...n??{},url:`/api/interaction/dislike`,method:`POST`,data:t})}async function K(t,n){return e.request({...n??{},url:`/api/interaction/cancelLike`,method:`POST`,data:t})}async function q(t,n){return e.request({...n??{},url:`/api/interaction/cancelDislike`,method:`POST`,data:t})}async function J(t,n){return e.request({...n??{},url:`/api/interaction/getLikeList`,method:`GET`,params:t})}async function Y(t,n){return e.request({...n??{},url:`/api/interaction/getDislikeList`,method:`GET`,params:t})}async function X(t,n){return e.request({...n??{},url:`/api/interaction/getContentLikeList`,method:`GET`,params:t})}async function Z(t,n){return e.request({...n??{},url:`/api/interaction/getContentDislikeList`,method:`GET`,params:t})}async function Q(t,n){return e.request({...n??{},url:`/api/interaction/unifiedBatchLikeDislike`,method:`POST`,data:t})}async function ne(t,n){return e.request({...n??{},url:`/api/interaction/likeComment`,method:`POST`,data:t})}async function re(t,n){return e.request({...n??{},url:`/api/interaction/dislikeComment`,method:`POST`,data:t})}async function ie(t,n){return e.request({...n??{},url:`/api/interaction/batchGetCommentLikeStatus`,method:`POST`,data:t})}async function ae(t,n){return e.request({...n??{},url:`/api/interaction/browse`,method:`POST`,data:t})}async function oe(t,n){return e.request({...n??{},url:`/api/interaction/getBrowseList`,method:`GET`,params:t})}async function $(t,n){return e.request({...n??{},url:`/api/interaction/deleteBrowseRecord`,method:`POST`,data:t})}async function se(t,n){return e.request({...n??{},url:`/api/interaction/clearBrowseHistory`,method:`POST`,data:t})}async function ce(t,n){return e.request({...n??{},url:`/api/interaction/batchClearBrowse`,method:`POST`,data:t})}async function le(t,n){return e.request({...n??{},url:`/api/interaction/createFolder`,method:`POST`,data:t})}async function ue(t,n){return e.request({...n??{},url:`/api/interaction/updateFolder`,method:`POST`,data:t})}async function de(t,n){return e.request({...n??{},url:`/api/interaction/deleteFolder`,method:`POST`,data:t})}async function fe(t,n){return e.request({...n??{},url:`/api/interaction/listFolders`,method:`GET`,params:t})}async function pe(t,n){return e.request({...n??{},url:`/api/interaction/getFolder`,method:`GET`,params:t})}async function me(t,n){return e.request({...n??{},url:`/api/interaction/getFolderStats`,method:`GET`,params:t})}async function he(t,n){return e.request({...n??{},url:`/api/interaction/addCollect`,method:`POST`,data:t})}async function ge(t,n){return e.request({...n??{},url:`/api/interaction/removeCollect`,method:`POST`,data:t})}async function _e(t,n){return e.request({...n??{},url:`/api/interaction/listCollects`,method:`GET`,params:t})}async function ve(t,n){return e.request({...n??{},url:`/api/interaction/moveCollects`,method:`POST`,data:t})}async function ye(t,n){return e.request({...n??{},url:`/api/interaction/checkCollect`,method:`POST`,data:t})}async function be(t,n){return e.request({...n??{},url:`/api/interaction/batchDeleteCollects`,method:`POST`,data:t})}async function xe(t,n){return e.request({...n??{},url:`/api/interaction/batchQueryContentInteractions`,method:`POST`,data:t})}async function Se(t,n){return e.request({...n??{},url:`/api/interaction/batchGetLikeStatus`,method:`POST`,data:t})}async function Ce(t,n){return e.request({...n??{},url:`/api/interaction/follow`,method:`POST`,data:t})}async function we(t,n){return e.request({...n??{},url:`/api/interaction/unfollow`,method:`POST`,data:t})}async function Te(t,n){return e.request({...n??{},url:`/api/interaction/checkFollow`,method:`POST`,data:t})}async function Ee(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingList`,method:`GET`,params:t})}async function De(t,n){return e.request({...n??{},url:`/api/interaction/getFollowerList`,method:`GET`,params:t})}async function Oe(t,n){return e.request({...n??{},url:`/api/interaction/getFollowStats`,method:`GET`,params:t})}async function ke(t,n){return e.request({...n??{},url:`/api/interaction/batchGetFollowStats`,method:`POST`,data:t})}async function Ae(t,n){return e.request({...n??{},url:`/api/interaction/checkMutualFollow`,method:`GET`,params:t})}async function je(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingUserUpdates`,method:`GET`,params:t})}async function Me(t,n){return e.request({...n??{},url:`/api/interaction/updateFollowingContentUpdateTime`,method:`POST`,data:t})}async function Ne(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingContentList`,method:`GET`,params:t})}async function Pe(t,n){return e.request({...n??{},url:`/api/interaction/trackEventsBatch`,method:`POST`,data:t})}async function Fe(t,n){return e.request({...n??{},url:`/api/interaction/batchDeleteFolders`,method:`POST`,data:t})}async function Ie(t,n){return e.request({...n??{},url:`/api/user/getGuestIdentity`,method:`GET`,params:t})}async function Le(t,n){return e.request({...n??{},url:`/api/user/login`,method:`POST`,data:t})}async function Re(t,n){return e.request({...n??{},url:`/api/user/sendEmailCode`,method:`POST`,data:t})}async function ze(t,n){return e.request({...n??{},url:`/api/user/verifyEmailCode`,method:`POST`,data:t})}async function Be(t,n){return e.request({...n??{},url:`/api/user/register`,method:`POST`,data:t})}async function Ve(t,n){return e.request({...n??{},url:`/api/user/resetPassword`,method:`POST`,data:t})}async function He(t,n){return e.request({...n??{},url:`/api/user/sendResetPasswordEmailCode`,method:`POST`,data:t})}async function Ue(t,n){return e.request({...n??{},url:`/api/user/verifyResetPasswordEmailCode`,method:`POST`,data:t})}async function We(t,n){return e.request({...n??{},url:`/api/user/resetForgetPassword`,method:`POST`,data:t})}async function Ge(t,n){return e.request({...n??{},url:`/api/user/sendForgetEmailCode`,method:`POST`,data:t})}async function Ke(t,n){return e.request({...n??{},url:`/api/user/verifyForgetEmailCode`,method:`POST`,data:t})}async function qe(t,n){return e.request({...n??{},url:`/api/user/getUserInfo`,method:`GET`,params:t})}async function Je(t,n){return e.request({...n??{},url:`/api/user/getUserEditInfo`,method:`GET`,params:t})}async function Ye(t,n){return e.request({...n??{},url:`/api/user/editUserInfo`,method:`POST`,data:t})}async function Xe(t,n){return e.request({...n??{},url:`/api/user/userFeedback`,method:`POST`,data:t})}async function Ze(t,n){return e.request({...n??{},url:`/api/user/getUserPrivacySettings`,method:`GET`,params:t})}async function Qe(t,n){return e.request({...n??{},url:`/api/user/userPrivacySettings`,method:`POST`,data:t})}async function $e(t,n){return e.request({...n??{},url:`/api/user/uploadUserBgImage`,method:`POST`,data:t})}async function et(t,n){return e.request({...n??{},url:`/api/user/viewUserInfo`,method:`GET`,params:t})}async function tt(t,n){return e.request({...n??{},url:`/api/user/registerByVerifyEmailCode`,method:`POST`,data:t})}async function nt(t,n){return e.request({...n??{},url:`/api/commerce/createPayment`,method:`POST`,data:t})}async function rt(t,n){return e.request({...n??{},url:`/api/commerce/queryOrderResult`,method:`GET`,params:t})}async function it(t,n){return e.request({...n??{},url:`/api/commerce/getPaymentMethods`,method:`POST`,data:t})}async function at(t,n){return e.request({...n??{},url:`/api/commerce/paymentSuccessCallback`,method:`POST`,data:t})}async function ot(t,n){return e.request({...n??{},url:`/api/commerce/refundCallback`,method:`POST`,data:t})}export{rt as gCommerceQueryOrderResult,a as gCommunityGetCollectionInfo,_ as gCommunityGetComments,n as gCommunityGetContentInfo,ee as gCommunityGetContentList,C as gCommunityGetHotContentList,u as gCommunityGetSubscribedCollections,o as gCommunityGetUserCollections,L as gContentGetAdvertiseByCode,j as gContentGetAppChannelBlock,M as gContentGetAppChannelBlockData,A as gContentGetAppChannels,R as gContentGetAppComponent,I as gContentGetGuessYouLikeVideos,O as gContentGetHotVideoList,D as gContentGetRecommendSearchList,k as gContentGetRecommendVideoList,V as gContentGetSeoConfig,E as gContentGetVideoDetail,T as gContentGetVideoDetailByApi,F as gContentListVisibleFloatingBall,U as gContentProcessM3u8,Ae as gInteractionCheckMutualFollow,oe as gInteractionGetBrowseList,Z as gInteractionGetContentDislikeList,X as gInteractionGetContentLikeList,Y as gInteractionGetDislikeList,pe as gInteractionGetFolder,me as gInteractionGetFolderStats,Oe as gInteractionGetFollowStats,De as gInteractionGetFollowerList,Ne as gInteractionGetFollowingContentList,Ee as gInteractionGetFollowingList,je as gInteractionGetFollowingUserUpdates,J as gInteractionGetLikeList,_e as gInteractionListCollects,fe as gInteractionListFolders,Ie as gUserGetGuestIdentity,Je as gUserGetUserEditInfo,qe as gUserGetUserInfo,Ze as gUserGetUserPrivacySettings,et as gUserViewUserInfo,nt as pCommerceCreatePayment,it as pCommerceGetPaymentMethods,at as pCommercePaymentSuccessCallback,ot as pCommerceRefundCallback,s as pCommunityAddContentToCollection,w as pCommunityBatchDeleteCollection,i as pCommunityCreateCollection,g as pCommunityCreateComment,c as pCommunityDeleteCollection,v as pCommunityDeleteComment,te as pCommunityDeleteContent,b as pCommunityDislikeComment,h as pCommunityGetUploadPresignedURL,y as pCommunityLikeComment,p as pCommunityMoveCollectionContent,t as pCommunityPublishContent,f as pCommunityRemoveContentFromCollection,S as pCommunitySearchCurAccountFollowingUsersInfo,x as pCommunityShareContent,l as pCommunitySubscribeCollection,d as pCommunityUpdateCollection,r as pCommunityUpdateContent,m as pCommunityUploadMedia,z as pContentBatchGetVideoDetail,N as pContentGetNewstVideoList,P as pContentGetPopularVideoList,B as pContentGetTopRatedVideoList,H as pContentMatchAds,he as pInteractionAddCollect,ce as pInteractionBatchClearBrowse,be as pInteractionBatchDeleteCollects,Fe as pInteractionBatchDeleteFolders,ie as pInteractionBatchGetCommentLikeStatus,ke as pInteractionBatchGetFollowStats,Se as pInteractionBatchGetLikeStatus,xe as pInteractionBatchQueryContentInteractions,ae as pInteractionBrowse,q as pInteractionCancelDislike,K as pInteractionCancelLike,ye as pInteractionCheckCollect,Te as pInteractionCheckFollow,se as pInteractionClearBrowseHistory,le as pInteractionCreateFolder,$ as pInteractionDeleteBrowseRecord,de as pInteractionDeleteFolder,G as pInteractionDislike,re as pInteractionDislikeComment,Ce as pInteractionFollow,W as pInteractionLike,ne as pInteractionLikeComment,ve as pInteractionMoveCollects,ge as pInteractionRemoveCollect,Pe as pInteractionTrackEventsBatch,we as pInteractionUnfollow,Q as pInteractionUnifiedBatchLikeDislike,ue as pInteractionUpdateFolder,Me as pInteractionUpdateFollowingContentUpdateTime,Ye as pUserEditUserInfo,Le as pUserLogin,Be as pUserRegister,tt as pUserRegisterByVerifyEmailCode,We as pUserResetForgetPassword,Ve as pUserResetPassword,Re as pUserSendEmailCode,Ge as pUserSendForgetEmailCode,He as pUserSendResetPasswordEmailCode,$e as pUserUploadUserBgImage,Xe as pUserUserFeedback,Qe as pUserUserPrivacySettings,ze as pUserVerifyEmailCode,Ke as pUserVerifyForgetEmailCode,Ue as pUserVerifyResetPasswordEmailCode};
2
+ import e from"../../utils/http.mjs";async function t(t,n){return e.request({...n??{},url:`/api/community/publishContent`,method:`POST`,data:t})}async function n(t,n){return e.request({...n??{},url:`/api/community/getContentInfo`,method:`GET`,params:t})}async function ee(t,n){return e.request({...n??{},url:`/api/community/getContentList`,method:`GET`,params:t})}async function te(t,n){return e.request({...n??{},url:`/api/community/deleteContent`,method:`POST`,data:t})}async function r(t,n){return e.request({...n??{},url:`/api/community/updateContent`,method:`POST`,data:t})}async function i(t,n){return e.request({...n??{},url:`/api/community/createCollection`,method:`POST`,data:t})}async function a(t,n){return e.request({...n??{},url:`/api/community/getCollectionInfo`,method:`GET`,params:t})}async function o(t,n){return e.request({...n??{},url:`/api/community/getUserCollections`,method:`GET`,params:t})}async function s(t,n){return e.request({...n??{},url:`/api/community/addContentToCollection`,method:`POST`,data:t})}async function c(t,n){return e.request({...n??{},url:`/api/community/deleteCollection`,method:`POST`,data:t})}async function l(t,n){return e.request({...n??{},url:`/api/community/subscribeCollection`,method:`POST`,data:t})}async function u(t,n){return e.request({...n??{},url:`/api/community/getSubscribedCollections`,method:`GET`,params:t})}async function d(t,n){return e.request({...n??{},url:`/api/community/updateCollection`,method:`POST`,data:t})}async function f(t,n){return e.request({...n??{},url:`/api/community/removeContentFromCollection`,method:`POST`,data:t})}async function p(t,n){return e.request({...n??{},url:`/api/community/moveCollectionContent`,method:`POST`,data:t})}async function m(t,n){return e.request({...n??{},url:`/api/community/uploadMedia`,method:`POST`,data:t})}async function h(t,n){return e.request({...n??{},url:`/api/community/getUploadPresignedURL`,method:`POST`,data:t})}async function g(t,n){return e.request({...n??{},url:`/api/community/createComment`,method:`POST`,data:t})}async function _(t,n){return e.request({...n??{},url:`/api/community/getComments`,method:`GET`,params:t})}async function v(t,n){return e.request({...n??{},url:`/api/community/deleteComment`,method:`POST`,data:t})}async function y(t,n){return e.request({...n??{},url:`/api/community/likeComment`,method:`POST`,data:t})}async function b(t,n){return e.request({...n??{},url:`/api/community/dislikeComment`,method:`POST`,data:t})}async function x(t,n){return e.request({...n??{},url:`/api/community/shareContent`,method:`POST`,data:t})}async function S(t,n){return e.request({...n??{},url:`/api/community/searchCurAccountFollowingUsersInfo`,method:`POST`,data:t})}async function C(t,n){return e.request({...n??{},url:`/api/community/getHotContentList`,method:`GET`,params:t})}async function w(t,n){return e.request({...n??{},url:`/api/community/batchDeleteCollection`,method:`POST`,data:t})}async function T(t,n){return e.request({...n??{},url:`/api/content/getVideoDetailByApi`,method:`GET`,params:t})}async function E(t,n){return e.request({...n??{},url:`/api/content/getVideoDetail`,method:`GET`,params:t})}async function D(t,n){return e.request({...n??{},url:`/api/content/getRecommendSearchList`,method:`GET`,params:t})}async function O(t,n){return e.request({...n??{},url:`/api/content/getHotVideoList`,method:`GET`,params:t})}async function k(t,n){return e.request({...n??{},url:`/api/content/getRecommendVideoList`,method:`GET`,params:t})}async function A(t,n){return e.request({...n??{},url:`/api/content/getAppChannels`,method:`GET`,params:t})}async function j(t,n){return e.request({...n??{},url:`/api/content/getAppChannelBlock`,method:`GET`,params:t})}async function M(t,n){return e.request({...n??{},url:`/api/content/getAppChannelBlockData`,method:`GET`,params:t})}async function N(t,n){return e.request({...n??{},url:`/api/content/getNewstVideoList`,method:`POST`,data:t})}async function P(t,n){return e.request({...n??{},url:`/api/content/getPopularVideoList`,method:`POST`,data:t})}async function F(t,n){return e.request({...n??{},url:`/api/content/listVisibleFloatingBall`,method:`GET`,params:t})}async function I(t,n){return e.request({...n??{},url:`/api/content/getGuessYouLikeVideos`,method:`GET`,params:t})}async function L(t,n){return e.request({...n??{},url:`/api/content/getAdvertiseByCode`,method:`GET`,params:t})}async function R(t){return e.request({...t??{},url:`/api/content/getAppComponent`,method:`GET`})}async function z(t,n){return e.request({...n??{},url:`/api/content/batchGetVideoDetail`,method:`POST`,data:t})}async function B(t,n){return e.request({...n??{},url:`/api/content/getTopRatedVideoList`,method:`POST`,data:t})}async function V(t,n){return e.request({...n??{},url:`/api/content/getSeoConfig`,method:`GET`,params:t})}async function H(t,n){return e.request({...n??{},url:`/api/content/matchAds`,method:`POST`,data:t})}async function U(t,n){return e.request({...n??{},url:`/api/content/getMostPlayedVideoList`,method:`POST`,data:t})}async function W(t,n){return e.request({...n??{},url:`/api/content/processM3u8`,method:`GET`,params:t})}async function G(t,n){return e.request({...n??{},url:`/api/interaction/like`,method:`POST`,data:t})}async function K(t,n){return e.request({...n??{},url:`/api/interaction/dislike`,method:`POST`,data:t})}async function q(t,n){return e.request({...n??{},url:`/api/interaction/cancelLike`,method:`POST`,data:t})}async function J(t,n){return e.request({...n??{},url:`/api/interaction/cancelDislike`,method:`POST`,data:t})}async function Y(t,n){return e.request({...n??{},url:`/api/interaction/getLikeList`,method:`GET`,params:t})}async function X(t,n){return e.request({...n??{},url:`/api/interaction/getDislikeList`,method:`GET`,params:t})}async function Z(t,n){return e.request({...n??{},url:`/api/interaction/getContentLikeList`,method:`GET`,params:t})}async function Q(t,n){return e.request({...n??{},url:`/api/interaction/getContentDislikeList`,method:`GET`,params:t})}async function ne(t,n){return e.request({...n??{},url:`/api/interaction/unifiedBatchLikeDislike`,method:`POST`,data:t})}async function re(t,n){return e.request({...n??{},url:`/api/interaction/likeComment`,method:`POST`,data:t})}async function ie(t,n){return e.request({...n??{},url:`/api/interaction/dislikeComment`,method:`POST`,data:t})}async function ae(t,n){return e.request({...n??{},url:`/api/interaction/batchGetCommentLikeStatus`,method:`POST`,data:t})}async function oe(t,n){return e.request({...n??{},url:`/api/interaction/browse`,method:`POST`,data:t})}async function $(t,n){return e.request({...n??{},url:`/api/interaction/getBrowseList`,method:`GET`,params:t})}async function se(t,n){return e.request({...n??{},url:`/api/interaction/deleteBrowseRecord`,method:`POST`,data:t})}async function ce(t,n){return e.request({...n??{},url:`/api/interaction/clearBrowseHistory`,method:`POST`,data:t})}async function le(t,n){return e.request({...n??{},url:`/api/interaction/batchClearBrowse`,method:`POST`,data:t})}async function ue(t,n){return e.request({...n??{},url:`/api/interaction/createFolder`,method:`POST`,data:t})}async function de(t,n){return e.request({...n??{},url:`/api/interaction/updateFolder`,method:`POST`,data:t})}async function fe(t,n){return e.request({...n??{},url:`/api/interaction/deleteFolder`,method:`POST`,data:t})}async function pe(t,n){return e.request({...n??{},url:`/api/interaction/listFolders`,method:`GET`,params:t})}async function me(t,n){return e.request({...n??{},url:`/api/interaction/getFolder`,method:`GET`,params:t})}async function he(t,n){return e.request({...n??{},url:`/api/interaction/getFolderStats`,method:`GET`,params:t})}async function ge(t,n){return e.request({...n??{},url:`/api/interaction/addCollect`,method:`POST`,data:t})}async function _e(t,n){return e.request({...n??{},url:`/api/interaction/removeCollect`,method:`POST`,data:t})}async function ve(t,n){return e.request({...n??{},url:`/api/interaction/listCollects`,method:`GET`,params:t})}async function ye(t,n){return e.request({...n??{},url:`/api/interaction/moveCollects`,method:`POST`,data:t})}async function be(t,n){return e.request({...n??{},url:`/api/interaction/checkCollect`,method:`POST`,data:t})}async function xe(t,n){return e.request({...n??{},url:`/api/interaction/batchDeleteCollects`,method:`POST`,data:t})}async function Se(t,n){return e.request({...n??{},url:`/api/interaction/batchQueryContentInteractions`,method:`POST`,data:t})}async function Ce(t,n){return e.request({...n??{},url:`/api/interaction/batchGetLikeStatus`,method:`POST`,data:t})}async function we(t,n){return e.request({...n??{},url:`/api/interaction/follow`,method:`POST`,data:t})}async function Te(t,n){return e.request({...n??{},url:`/api/interaction/unfollow`,method:`POST`,data:t})}async function Ee(t,n){return e.request({...n??{},url:`/api/interaction/checkFollow`,method:`POST`,data:t})}async function De(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingList`,method:`GET`,params:t})}async function Oe(t,n){return e.request({...n??{},url:`/api/interaction/getFollowerList`,method:`GET`,params:t})}async function ke(t,n){return e.request({...n??{},url:`/api/interaction/getFollowStats`,method:`GET`,params:t})}async function Ae(t,n){return e.request({...n??{},url:`/api/interaction/batchGetFollowStats`,method:`POST`,data:t})}async function je(t,n){return e.request({...n??{},url:`/api/interaction/checkMutualFollow`,method:`GET`,params:t})}async function Me(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingUserUpdates`,method:`GET`,params:t})}async function Ne(t,n){return e.request({...n??{},url:`/api/interaction/updateFollowingContentUpdateTime`,method:`POST`,data:t})}async function Pe(t,n){return e.request({...n??{},url:`/api/interaction/getFollowingContentList`,method:`GET`,params:t})}async function Fe(t,n){return e.request({...n??{},url:`/api/interaction/trackEventsBatch`,method:`POST`,data:t})}async function Ie(t,n){return e.request({...n??{},url:`/api/interaction/batchDeleteFolders`,method:`POST`,data:t})}async function Le(t,n){return e.request({...n??{},url:`/api/user/getGuestIdentity`,method:`GET`,params:t})}async function Re(t,n){return e.request({...n??{},url:`/api/user/login`,method:`POST`,data:t})}async function ze(t,n){return e.request({...n??{},url:`/api/user/sendEmailCode`,method:`POST`,data:t})}async function Be(t,n){return e.request({...n??{},url:`/api/user/verifyEmailCode`,method:`POST`,data:t})}async function Ve(t,n){return e.request({...n??{},url:`/api/user/register`,method:`POST`,data:t})}async function He(t,n){return e.request({...n??{},url:`/api/user/resetPassword`,method:`POST`,data:t})}async function Ue(t,n){return e.request({...n??{},url:`/api/user/sendResetPasswordEmailCode`,method:`POST`,data:t})}async function We(t,n){return e.request({...n??{},url:`/api/user/verifyResetPasswordEmailCode`,method:`POST`,data:t})}async function Ge(t,n){return e.request({...n??{},url:`/api/user/resetForgetPassword`,method:`POST`,data:t})}async function Ke(t,n){return e.request({...n??{},url:`/api/user/sendForgetEmailCode`,method:`POST`,data:t})}async function qe(t,n){return e.request({...n??{},url:`/api/user/verifyForgetEmailCode`,method:`POST`,data:t})}async function Je(t,n){return e.request({...n??{},url:`/api/user/getUserInfo`,method:`GET`,params:t})}async function Ye(t,n){return e.request({...n??{},url:`/api/user/getUserEditInfo`,method:`GET`,params:t})}async function Xe(t,n){return e.request({...n??{},url:`/api/user/editUserInfo`,method:`POST`,data:t})}async function Ze(t,n){return e.request({...n??{},url:`/api/user/userFeedback`,method:`POST`,data:t})}async function Qe(t,n){return e.request({...n??{},url:`/api/user/getUserPrivacySettings`,method:`GET`,params:t})}async function $e(t,n){return e.request({...n??{},url:`/api/user/userPrivacySettings`,method:`POST`,data:t})}async function et(t,n){return e.request({...n??{},url:`/api/user/uploadUserBgImage`,method:`POST`,data:t})}async function tt(t,n){return e.request({...n??{},url:`/api/user/viewUserInfo`,method:`GET`,params:t})}async function nt(t,n){return e.request({...n??{},url:`/api/user/registerByVerifyEmailCode`,method:`POST`,data:t})}async function rt(t,n){return e.request({...n??{},url:`/api/user/getVisitorPermissionConfig`,method:`GET`,params:t})}async function it(t,n){return e.request({...n??{},url:`/api/commerce/createPayment`,method:`POST`,data:t})}async function at(t,n){return e.request({...n??{},url:`/api/commerce/queryOrderResult`,method:`GET`,params:t})}async function ot(t,n){return e.request({...n??{},url:`/api/commerce/getPaymentMethods`,method:`POST`,data:t})}async function st(t,n){return e.request({...n??{},url:`/api/commerce/paymentSuccessCallback`,method:`POST`,data:t})}async function ct(t,n){return e.request({...n??{},url:`/api/commerce/refundCallback`,method:`POST`,data:t})}export{at as gCommerceQueryOrderResult,a as gCommunityGetCollectionInfo,_ as gCommunityGetComments,n as gCommunityGetContentInfo,ee as gCommunityGetContentList,C as gCommunityGetHotContentList,u as gCommunityGetSubscribedCollections,o as gCommunityGetUserCollections,L as gContentGetAdvertiseByCode,j as gContentGetAppChannelBlock,M as gContentGetAppChannelBlockData,A as gContentGetAppChannels,R as gContentGetAppComponent,I as gContentGetGuessYouLikeVideos,O as gContentGetHotVideoList,D as gContentGetRecommendSearchList,k as gContentGetRecommendVideoList,V as gContentGetSeoConfig,E as gContentGetVideoDetail,T as gContentGetVideoDetailByApi,F as gContentListVisibleFloatingBall,W as gContentProcessM3u8,je as gInteractionCheckMutualFollow,$ as gInteractionGetBrowseList,Q as gInteractionGetContentDislikeList,Z as gInteractionGetContentLikeList,X as gInteractionGetDislikeList,me as gInteractionGetFolder,he as gInteractionGetFolderStats,ke as gInteractionGetFollowStats,Oe as gInteractionGetFollowerList,Pe as gInteractionGetFollowingContentList,De as gInteractionGetFollowingList,Me as gInteractionGetFollowingUserUpdates,Y as gInteractionGetLikeList,ve as gInteractionListCollects,pe as gInteractionListFolders,Le as gUserGetGuestIdentity,Ye as gUserGetUserEditInfo,Je as gUserGetUserInfo,Qe as gUserGetUserPrivacySettings,rt as gUserGetVisitorPermissionConfig,tt as gUserViewUserInfo,it as pCommerceCreatePayment,ot as pCommerceGetPaymentMethods,st as pCommercePaymentSuccessCallback,ct as pCommerceRefundCallback,s as pCommunityAddContentToCollection,w as pCommunityBatchDeleteCollection,i as pCommunityCreateCollection,g as pCommunityCreateComment,c as pCommunityDeleteCollection,v as pCommunityDeleteComment,te as pCommunityDeleteContent,b as pCommunityDislikeComment,h as pCommunityGetUploadPresignedURL,y as pCommunityLikeComment,p as pCommunityMoveCollectionContent,t as pCommunityPublishContent,f as pCommunityRemoveContentFromCollection,S as pCommunitySearchCurAccountFollowingUsersInfo,x as pCommunityShareContent,l as pCommunitySubscribeCollection,d as pCommunityUpdateCollection,r as pCommunityUpdateContent,m as pCommunityUploadMedia,z as pContentBatchGetVideoDetail,U as pContentGetMostPlayedVideoList,N as pContentGetNewstVideoList,P as pContentGetPopularVideoList,B as pContentGetTopRatedVideoList,H as pContentMatchAds,ge as pInteractionAddCollect,le as pInteractionBatchClearBrowse,xe as pInteractionBatchDeleteCollects,Ie as pInteractionBatchDeleteFolders,ae as pInteractionBatchGetCommentLikeStatus,Ae as pInteractionBatchGetFollowStats,Ce as pInteractionBatchGetLikeStatus,Se as pInteractionBatchQueryContentInteractions,oe as pInteractionBrowse,J as pInteractionCancelDislike,q as pInteractionCancelLike,be as pInteractionCheckCollect,Ee as pInteractionCheckFollow,ce as pInteractionClearBrowseHistory,ue as pInteractionCreateFolder,se as pInteractionDeleteBrowseRecord,fe as pInteractionDeleteFolder,K as pInteractionDislike,ie as pInteractionDislikeComment,we as pInteractionFollow,G as pInteractionLike,re as pInteractionLikeComment,ye as pInteractionMoveCollects,_e as pInteractionRemoveCollect,Fe as pInteractionTrackEventsBatch,Te as pInteractionUnfollow,ne as pInteractionUnifiedBatchLikeDislike,de as pInteractionUpdateFolder,Ne as pInteractionUpdateFollowingContentUpdateTime,Xe as pUserEditUserInfo,Re as pUserLogin,Ve as pUserRegister,nt as pUserRegisterByVerifyEmailCode,Ge as pUserResetForgetPassword,He as pUserResetPassword,ze as pUserSendEmailCode,Ke as pUserSendForgetEmailCode,Ue as pUserSendResetPasswordEmailCode,et as pUserUploadUserBgImage,Ze as pUserUserFeedback,$e as pUserUserPrivacySettings,Be as pUserVerifyEmailCode,qe as pUserVerifyForgetEmailCode,We as pUserVerifyResetPasswordEmailCode};