@funhub/platform 0.1.160-beta.0 → 0.1.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/biz.d.mts +1 -22
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/client.d.mts +19 -0
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +4 -1
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +2 -0
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/server.d.mts +4 -2
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -1
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +0 -22
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -1
- package/dist/components/common/series-episodes/index.mjs +1 -1
- package/dist/components/pages/home/client.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/index.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/hooks.d.mts +1 -1
- package/dist/materials.d.mts +1 -6
- package/dist/materials.mjs +1 -1
- package/dist/service.d.mts +1 -2
- package/dist/service.mjs +1 -1
- package/dist/utils/schema/inspector.d.mts +2 -2
- package/dist/utils/schema/material.d.mts +0 -1
- package/package.json +1 -1
- package/dist/components/biz/business/advertisement/ad-match.d.mts +0 -98
- package/dist/components/biz/business/advertisement/ad-match.mjs +0 -2
- package/dist/components/biz/business/advertisement/ad-provider.d.mts +0 -33
- package/dist/components/biz/business/advertisement/ad-provider.mjs +0 -2
- package/dist/components/biz/business/advertisement/ad-query.d.mts +0 -27
- package/dist/components/biz/business/advertisement/ad-query.mjs +0 -2
- package/dist/components/biz/business/advertisement/ad-runtime-provider.d.mts +0 -25
- package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +0 -2
- package/dist/components/biz/business/advertisement/banner-ad/client.d.mts +0 -18
- package/dist/components/biz/business/advertisement/banner-ad/client.mjs +0 -2
- package/dist/components/biz/business/advertisement/banner-ad/index.d.mts +0 -5
- package/dist/components/biz/business/advertisement/banner-ad/material.d.mts +0 -30
- package/dist/components/biz/business/advertisement/banner-ad/material.mjs +0 -2
- package/dist/components/biz/business/advertisement/banner-ad/schema.d.mts +0 -75
- package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +0 -2
- package/dist/components/biz/business/advertisement/banner-ad/server.d.mts +0 -11
- package/dist/components/biz/business/advertisement/banner-ad/server.mjs +0 -2
- package/dist/components/biz/business/advertisement/feed-ad/index.d.mts +0 -39
- package/dist/components/biz/business/advertisement/feed-ad/index.mjs +0 -2
- package/dist/components/biz/business/advertisement/floating-ad/client.d.mts +0 -21
- package/dist/components/biz/business/advertisement/floating-ad/client.mjs +0 -2
- package/dist/components/biz/business/advertisement/floating-ad/index.d.mts +0 -5
- package/dist/components/biz/business/advertisement/floating-ad/material.d.mts +0 -25
- package/dist/components/biz/business/advertisement/floating-ad/material.mjs +0 -2
- package/dist/components/biz/business/advertisement/floating-ad/schema.d.mts +0 -75
- package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +0 -2
- package/dist/components/biz/business/advertisement/floating-ad/server.d.mts +0 -11
- package/dist/components/biz/business/advertisement/floating-ad/server.mjs +0 -2
- package/dist/components/biz/business/advertisement/icon-ad/client.d.mts +0 -16
- package/dist/components/biz/business/advertisement/icon-ad/client.mjs +0 -2
- package/dist/components/biz/business/advertisement/icon-ad/index.d.mts +0 -5
- package/dist/components/biz/business/advertisement/icon-ad/material.d.mts +0 -29
- package/dist/components/biz/business/advertisement/icon-ad/material.mjs +0 -2
- package/dist/components/biz/business/advertisement/icon-ad/schema.d.mts +0 -69
- package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +0 -2
- package/dist/components/biz/business/advertisement/icon-ad/server.d.mts +0 -11
- package/dist/components/biz/business/advertisement/icon-ad/server.mjs +0 -2
- package/dist/components/biz/business/advertisement/index.d.mts +0 -26
- package/dist/components/biz/business/advertisement/text-ad/client.d.mts +0 -15
- package/dist/components/biz/business/advertisement/text-ad/client.mjs +0 -2
- package/dist/components/biz/business/advertisement/text-ad/index.d.mts +0 -5
- package/dist/components/biz/business/advertisement/text-ad/material.d.mts +0 -27
- package/dist/components/biz/business/advertisement/text-ad/material.mjs +0 -2
- package/dist/components/biz/business/advertisement/text-ad/schema.d.mts +0 -53
- package/dist/components/biz/business/advertisement/text-ad/schema.mjs +0 -2
- package/dist/components/biz/business/advertisement/text-ad/server.d.mts +0 -11
- package/dist/components/biz/business/advertisement/text-ad/server.mjs +0 -2
- package/dist/service/advertisement.d.mts +0 -172
- package/dist/service/advertisement.mjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{isClient as e}from"../../../../utils/common.mjs";import{pContentBatchGetVideoDetail as t}from"../../../../service/generated/client.mjs";import{Box as n}from"../../../ui/box.mjs";import{Text as r}from"../../../ui/text.mjs";import i from"../../../ui/loading.mjs";import a from"../../../ui/link.mjs";import{useSingleFirstRowHeight as o}from"../../../../hooks/use-first-row-height.mjs";import{useMinDurationLoading as s}from"../../../../hooks/use-min-duration-loading.mjs";import c from"../../../../assets/icons/common/right_arrow.mjs";import{
|
|
2
|
+
"use client";import{isClient as e}from"../../../../utils/common.mjs";import{pContentBatchGetVideoDetail as t}from"../../../../service/generated/client.mjs";import{Box as n}from"../../../ui/box.mjs";import{Text as r}from"../../../ui/text.mjs";import i from"../../../ui/loading.mjs";import a from"../../../ui/link.mjs";import{useSingleFirstRowHeight as o}from"../../../../hooks/use-first-row-height.mjs";import{useMinDurationLoading as s}from"../../../../hooks/use-min-duration-loading.mjs";import c from"../../../../assets/icons/common/right_arrow.mjs";import{LargeGridItemClient as l}from"./card-item.mjs";import{largeFeatureGridInspectorDefaultProps as u}from"./schema.mjs";import{useEffect as d,useMemo as f,useRef as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";const _=[],v=u.data??[];function y(e){return e==null}function b(e,t){return y(e)?t:e}function x(e){return typeof e==`string`?e.trim():``}function S(e){return x(e)}function C(e){let t=Number(e);if(!(!Number.isFinite(t)||t<0))return t}function w(e){let t=e,n=x(e.update_status)===`0`,r=(Array.isArray(t.episodes)?t.episodes.length:0)||(Array.isArray(e.video_episodes)?e.video_episodes.length:0)||(Array.isArray(e.links)?e.links.length:0)||(C(e.episode_cnt)??0);return!Number.isFinite(r)||r<=0?``:`${n?`更新至`:`全`}${Math.floor(r)}集`}function T(e,t){return t?{...e,...t,id:b(t.id,e.id),cover:b(t.cover,e.cover),title:b(t.title,e.title),desc:b(t.desc,e.desc),play_count:b(t.play_count,e.play_count),showPlayCount:t.showPlayCount??e.showPlayCount,episodeText:b(t.episodeText,e.episodeText),showEpisode:t.showEpisode??e.showEpisode,useContentCover:t.useContentCover??e.useContentCover,tagImageUrl:b(t.tagImageUrl,e.tagImageUrl)}:e}function E(e,t){if(!t)return e;let n=e.items;return{...e,...t,title:b(t.title,e.title),moreUrl:b(t.moreUrl,e.moreUrl),moreLinkType:t.moreLinkType??e.moreLinkType,items:n?T(n,t.items):t.items}}function D({mode:u=`renderer`,data:y=_}){let b=u===`editor`,x=y??_,T=Array.isArray(x)&&x.length>0,D=f(()=>T?[E(v[0],x[0])]:v,[T,x]),[O,k]=m(D),A=p(``),j=p(null),{isLoading:M,show:N,hide:P,cancel:F}=s(500);d(()=>{k(D)},[D]);let I=o({enabled:!b,containerRef:j,itemRef:j,deps:[O.length]}),L=f(()=>{if(b||!T)return``;let e=D.map(e=>S(e?.items?.id)).filter(Boolean);return Array.from(new Set(e)).join(`,`)},[T,b,D]);if(d(()=>{if(b||!e()||!L||A.current===L)return;A.current=L;let n=!1;async function r(){try{N();let e=await t({ids:L.split(`,`).filter(Boolean)},{cache:`no-store`}),r=Array.isArray(e.data?.videos)?e.data.videos:[],i=new Map;if(r.forEach(e=>{let t=S(e.video_id||e.id||e.mid);t&&i.set(t,e)}),n)return;k(e=>e.map(e=>{let t=e.items;if(!t)return e;let n=S(t.id),r=n?i.get(n):void 0;if(!r)return e;let a=C(r.play_count)??C(r.browse_count),o=w(r);return{...e,items:{...t,play_count:a??t.play_count,episodeText:o||t.episodeText}}}))}catch(e){console.error(`大图推荐刷新首屏失败(client)`,e)}finally{n||P()}}return r(),()=>{n=!0,F()}},[F,L,P,b,N]),!O||O.length===0)return null;let R=O[0],z=R?.title,B=R?.moreUrl,V=I>0?I/2:160,H=!b&&M;return g(n,{className:b?`p-3 pointer-events-none`:`p-3`,children:[g(n,{className:`flex items-center justify-between mb-[10px] h-[24px]`,children:[z&&h(r,{as:`h2`,className:`text-[18px] font-bold text-text1 line-clamp-1 flex-1 min-w-0 mr-[12px]`,children:z}),B&&g(a,{href:B,className:`flex items-center text-[14px] text-text2 ml-auto`,children:[`更多`,h(c,{className:`ml-[2px] h-[12px] w-[12px] text-text2`})]})]}),g(n,{className:`relative`,children:[O.map((e,t)=>{let{items:r}=e;return r?h(n,{ref:t===0?j:void 0,className:t>0?`mt-3`:``,children:h(l,{data:r})},`large-feature-grid-items-${t}`):null}),H&&h(n,{className:`absolute inset-0 z-10 bg-black/15 backdrop-blur-[1px] dark:bg-white/10`,"aria-hidden":!0}),H&&h(n,{className:`absolute left-1/2 -translate-x-1/2 -translate-y-1/2 z-20 pointer-events-none`,style:{top:V},"aria-hidden":!0,children:h(i,{size:`large`,showLabel:!1,className:`text-theme5`})})]})]})}export{D as LargeFeatureGridClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Box as e}from"../../ui/box.mjs";import{Text as t}from"../../ui/text.mjs";import{Sheet as n,SheetContent as r,SheetHeader as i,SheetTitle as a}from"../../ui/sheet.mjs";import{Switch as o}from"../../ui/switch.mjs";import{useKeepAliveState as s}from"../keep-scroll-position/index.mjs";import c from"../../../assets/icons/close.mjs";import l from"../../../assets/icons/common/right_arrow.mjs";import u from"../../ui/popup.mjs";import{useCallback as d,useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";import{toast as y}from"sonner";import{useTranslations as b}from"next-intl";function x(e,t,n){return(e||[]).map((e,r)=>{let i=Number.parseInt(e?.id||``,10),a=Number.isNaN(i)?r+1:i,o=e?.id||``,s=Number.isNaN(i)&&o||n(a);return{id:e?.id||`${t}-${a}`,series_num:a,title:s}})}function S(e,t,n){return(e||[]).map((e,r)=>{let i=Number(e?.id),a=Number.isNaN(i)?r+1:i,o=n(a);return{id:e?.id||`${t}-${a}`,series_num:a,title:o}})}function C(e,t,n){return e<=0?n(`singleContent`):n(t===`1`?`completedSeriesTotal`:`ongoingSeriesTotal`,{total:e})}function w(e){return e.mode===`detail`?_(E,{information:e.information,series_num:e.series_num,onEpisodeChange:e.onEpisodeChange}):_(T,{open:e.open,variant:e.variant,title:e.title,updateStatus:e.updateStatus,summaryText:e.summaryText,seriesList:e.seriesList,activeEpisodeId:e.activeEpisodeId,showEpisodeTitle:e.showEpisodeTitle,onToggleTitle:e.onToggleTitle,onClose:e.onClose,onSelectEpisode:e.onSelectEpisode,popupBodyStyle:e.popupBodyStyle})}function T({open:s,variant:l,title:d,updateStatus:g,summaryText:y,seriesList:S,activeEpisodeId:w,showEpisodeTitle:T=!1,onToggleTitle:E,onClose:D,onSelectEpisode:O,popupBodyStyle:k}){let A=b(`components.common.seriesEpisodes`),j=!!E,M=j&&T,N=m(null),P=m(null),F=p(()=>x(S,`episode`,e=>A(`episodeLabel`,{episode:e})),[S,A]),I=p(()=>{if(F.length===0)return[];let e=[];return F.forEach((t,n)=>{let r=Math.floor(n/50);e[r]||(e[r]=[]),e[r].push(t)}),e},[F]),L=p(()=>{if(!w)return 0;let e=F.findIndex(e=>e.id===w);return e<0?0:Math.floor(e/50)},[w,F]),[R,z]=h(L);f(()=>{z(L)},[L]);let B=p(()=>typeof y==`string`&&y.trim()?y:C(F.length,g,A),[F.length,y,A,g]),V=d||A(`selectorTitle`);function H(){let e=N.current;if(e){P.current&&=(window.cancelAnimationFrame(P.current),null),e.scrollTop=0;try{e.scrollTo({top:0,left:0,behavior:`auto`})}catch{}P.current=window.requestAnimationFrame(()=>{P.current=null;let e=N.current;e&&(e.scrollTop=0)})}}f(()=>{s&&H()},[s,T,R]);function U(e){E&&(E(e),H())}function W(e){O?.(e.id,e.series_num),D()}let G=M?2:5,K=I.length>1?_(`div`,{className:`shrink-0 w-full flex gap-[8px] overflow-x-auto`,children:I.map((e,t)=>{if(e.length===0)return null;let n=t===R,r=t*50+1,i=Math.min((t+1)*50,F.length);return v(`div`,{className:`shrink-0 px-[16px] py-[6px] rounded-[16px] text-[14px] transition-colors cursor-pointer relative overflow-hidden ${n?`text-theme5 bg-bg2`:`text-text2 bg-bg2`}`,onClick:()=>{z(t),H()},children:[r,`-`,i,n&&_(`div`,{className:`absolute w-full h-full top-0 left-0 opacity-20 bg-theme5`})]},`series-group-${t}`)})}):null,q=v(`div`,{className:`pb-[8px] flex justify-between`,children:[_(`span`,{className:`text-[16px] text-text1`,children:B}),j&&v(`div`,{className:`flex items-center gap-[4px]`,children:[_(o,{size:`sm`,className:`data-checked:bg-theme5 h-[20px] w-[33px]`,checked:T,onCheckedChange:e=>{U(!!e)}}),_(`button`,{type:`button`,className:`text-[16px] text-text1`,onClick:()=>{U(!T)},children:A(`episodeTitle`)})]})]}),J=_(`div`,{className:`grid w-full gap-2 ${G===2?`grid-cols-2`:`grid-cols-5`}`,children:(I[R]||[]).map((e,t)=>{let n=!!(w&&e.id===w);return _(`button`,{type:`button`,"data-episode-id":e.id,onClick:()=>{W(e)},className:`flex items-center justify-center w-full h-[60px] rounded-[8px] border border-line1 border-solid text-[16px] cursor-pointer select-none transition-colors relative overflow-hidden ${n?`font-bold text-theme5 bg-line1`:`text-text1`} ${M?`h-[72px] px-[10px] text-[14px]`:``} ${t%G===0?``:`border-l-0`}`,children:M?_(`span`,{className:`leading-[22px] line-clamp-2`,children:e.title}):e.series_num},e.id)})});return l===`sheet`?_(n,{open:s,onOpenChange:e=>!e&&D(),children:v(r,{side:`bottom`,showCloseButton:!0,className:`min-h-[50vh] bg-bg1 text-text1 rounded-t-2xl border-t border-white/10`,children:[_(i,{className:`pt-3 pb-0`,children:_(a,{className:`flex items-center justify-between text-lg text-text1`,children:V})}),v(`div`,{className:`px-4 pb-2 flex flex-col gap-3`,children:[K,q]}),_(`div`,{ref:N,className:`flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto px-4`,children:J})]})}):_(u,{open:s,onOpenChange:e=>{e||D()},showCloseButton:!1,className:`border-0 bg-transparent p-0`,children:v(e,{className:`w-full flex flex-col bg-bg1 px-[12px] text-text1`,style:{height:`70vh`,...k},children:[v(e,{className:`shrink-0 flex justify-between items-center h-[48px]`,children:[_(t,{className:`text-[16px] font-bold text-text1`,children:V}),_(e,{className:`pl-[12px] h-full flex items-center`,onClick:D,children:_(c,{className:`w-[14px] h-[14px] text-text1 cursor-pointer`})})]}),v(e,{className:`flex-1 h-0 w-full pb-[12px] flex flex-col gap-3`,children:[K,q,_(e,{ref:N,className:`flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto`,children:J})]})]})})}function E({information:n,series_num:r,onEpisodeChange:i}){let a=b(`components.common`),[o,c]=s(`detail-series-popup-${n.id}`,!1),[u,x]=s(`detail-series-title-toggle-${n.id}`,!1),[C,w]=s(`detail-series-scroll-left-${n.id}`,null),[E,D]=h(r);f(()=>{D(r)},[n.id,r]);let O=p(()=>S((n.links||[]).map(e=>({id:e.id,name:e.name})),n.id||`episode`,e=>a(`seriesEpisodes.episodeLabel`,{episode:e})),[n.id,n.links,a]),k=n.update_status===`1`?a(`seriesEpisodes.completedSeriesTotal`,{total:n.links.length}):a(`seriesEpisodes.ongoingSeriesUpdatedTo`,{total:n.links.length}),A=p(()=>n.links[E-1]?.id||n.links[0]?.id||``,[n.links,E]),j=m(null),M=m(null),N=m(null),P=m(!1),F=m(null),I=m(null),L=m(null),[R,z]=h(!1),B=d((e,t=`smooth`)=>{let n=j.current?.querySelector(`[data-content-id="${e}"]`);if(n&&j.current){let e=j.current,r=Math.max(0,n.offsetLeft-10);e.scrollTo({left:r,behavior:t})}},[]),V=d(()=>{I.current!==null&&(window.clearTimeout(I.current),I.current=null)},[]),H=d(()=>{L.current!==null&&(window.clearTimeout(L.current),L.current=null)},[]),U=d(()=>{F.current!==null&&(y.dismiss(F.current),F.current=null),V(),H()},[H,V]),W=d(()=>{M.current=null,N.current=null,U(),z(!1)},[U]),G=d((e,t)=>{H(),L.current=window.setTimeout(()=>{L.current=null,M.current===e&&W()},Math.max(0,t))},[H,W]);f(()=>{P.current=!1},[n.id]),f(()=>{if(P.current||!A)return;let e=window.requestAnimationFrame(()=>{let e=j.current;e&&(typeof C==`number`?e.scrollTo({left:Math.max(0,C),behavior:`auto`}):(B(A,`auto`),w(Math.max(0,Math.round(e.scrollLeft)))),P.current=!0)});return()=>{window.cancelAnimationFrame(e)}},[A,C,B,w]),f(()=>{let e=M.current;!e||e!==r||G(e,1e3)},[G,r]),f(()=>()=>{W()},[W]);let K=d((e,t,n)=>{let r=j.current;if(!r||!e)return t;let i=r.querySelector(`[data-content-id="${e}"]`);if(!i)return t;let a=r.getBoundingClientRect();if(a.width<=0||typeof n!=`number`||(n-a.left)/a.width<.5)return t;let o=i.offsetLeft+i.offsetWidth/2,s=r.clientWidth/2,c=Math.max(0,r.scrollWidth-r.clientWidth),l=Math.min(c,Math.max(0,o-s));return r.scrollTo({left:l,behavior:`smooth`}),Math.round(l)},[]),q=d((e,t=`inline`,o,s)=>{if(e!==E){if(!n.links[e-1]){y.error(a(`seriesEpisodes.episodeNotFound`));return}if(typeof window<`u`&&window.isWebView===!0){let t=String(n.id||``).trim(),r=`/webview/${encodeURIComponent(t)}/${encodeURIComponent(String(n.name||``))}/episode/${e}`,{search:i,hash:a}=window.location;window.location.href=`${r}${i}${a}`;return}try{D(e);let c=o||n.links[e-1]?.id||``,l=Math.max(0,Math.round(j.current?.scrollLeft||0));t===`popup`?(c&&B(c,`auto`),w(Math.max(0,Math.round(j.current?.scrollLeft||0)))):w(K(c,l,s)),z(!0),U(),F.current=y.loading(a(`seriesEpisodes.episodeSwitching`)),M.current=e,N.current=t,I.current=window.setTimeout(()=>{M.current===e&&(D(r),W(),y.error(a(`seriesEpisodes.episodeSwitchFailed`)))},8e3),i(e)}catch(e){D(r),W(),console.error(`切换剧集失败`,e),y.error(a(`seriesEpisodes.episodeSwitchFailed`))}}},[W,U,n.id,n.links,n.name,i,E,r,K,B,w,a]),[J,Y]=h(`70vh`),X=d(()=>{if(typeof window>`u`)return;if(window.isWebView===!0){Y(`100vh`);return}let e=document.getElementById(`selectPopupPosition`),t=window.visualViewport?.height||window.innerHeight;if(!e){Y(`70vh`);return}let n=Math.max(0,t-e.offsetTop);if(n<=0){Y(`70vh`);return}Y(`${n}px`)},[]);return f(()=>{if(!o)return;X();let e=()=>{X()};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[X,o]),O.length<=1?null:v(g,{children:[v(e,{className:`w-full mt-[16px] flex flex-col items-end mb-[4px]`,children:[v(e,{className:`w-fit flex items-center px-[12px] h-[28px]`,onClick:()=>c(!0),children:[_(t,{className:`text-[14px] text-text2 leading-[20px]`,children:k}),_(l,{className:`w-[11px] h-[18px] ml-[4px] text-text2`})]}),_(`div`,{ref:j,className:`w-full mt-[12px] overflow-x-auto px-[12px] flex gap-x-[8px] ${u?`h-[76px]`:`h-[60px]`} ${R?`touch-none`:``}`,children:O.map((e,n)=>_(`div`,{"data-content-id":e.id,className:`shrink-0 h-[full] px-[18px] rounded-[6px] border border-line1 flex items-center ${u?`w-[162px]`:`w-[60px] !px-[0] justify-center`} ${e.id===A?`!border-theme5 bg-line1`:``}`,onClick:t=>{q(n+1,`inline`,e.id,t.clientX)},children:_(t,{className:`text-[16px] text-text1 leading-[22px] line-clamp-2 ${e.id===A?`font-bold !text-theme5`:``}`,children:u?e.title:e.series_num})},e.id))})]}),_(T,{title:a(`seriesEpisodes.selectorTitle`),variant:`popup`,open:o,updateStatus:n.update_status,summaryText:k,seriesList:(n.links||[]).map(e=>({id:e.id,name:e.name})),activeEpisodeId:A,showEpisodeTitle:u,onToggleTitle:e=>{x(e)},onClose:()=>c(!1),onSelectEpisode:(e,t)=>{c(!1),q(t,`popup`,e)},popupBodyStyle:{height:J}})]})}export{w as SeriesEpisodes};
|
|
2
|
+
"use client";import{Box as e}from"../../ui/box.mjs";import{Text as t}from"../../ui/text.mjs";import{Sheet as n,SheetContent as r,SheetHeader as i,SheetTitle as a}from"../../ui/sheet.mjs";import{Switch as o}from"../../ui/switch.mjs";import{useKeepAliveState as s}from"../keep-scroll-position/index.mjs";import c from"../../../assets/icons/close.mjs";import l from"../../../assets/icons/common/right_arrow.mjs";import u from"../../ui/popup.mjs";import{useCallback as d,useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{Fragment as g,jsx as _,jsxs as v}from"react/jsx-runtime";import{toast as y}from"sonner";import{useTranslations as b}from"next-intl";const x=`funhub:detail-series-popup-query`,S=`funhub:detail-series-popup-close`;function C(e){return e.type===x&&e instanceof CustomEvent}function w(e,t,n){return(e||[]).map((e,r)=>{let i=Number.parseInt(e?.id||``,10),a=Number.isNaN(i)?r+1:i,o=e?.id||``,s=Number.isNaN(i)&&o||n(a);return{id:e?.id||`${t}-${a}`,series_num:a,title:s}})}function T(e,t,n){return(e||[]).map((e,r)=>{let i=Number(e?.id),a=Number.isNaN(i)?r+1:i,o=n(a);return{id:e?.id||`${t}-${a}`,series_num:a,title:o}})}function E(e,t,n){return e<=0?n(`singleContent`):n(t===`1`?`completedSeriesTotal`:`ongoingSeriesTotal`,{total:e})}function D(e){return e.mode===`detail`?_(k,{information:e.information,series_num:e.series_num,onEpisodeChange:e.onEpisodeChange}):_(O,{open:e.open,variant:e.variant,title:e.title,updateStatus:e.updateStatus,summaryText:e.summaryText,seriesList:e.seriesList,activeEpisodeId:e.activeEpisodeId,showEpisodeTitle:e.showEpisodeTitle,onToggleTitle:e.onToggleTitle,onClose:e.onClose,onSelectEpisode:e.onSelectEpisode,popupBodyStyle:e.popupBodyStyle})}function O({open:s,variant:l,title:d,updateStatus:g,summaryText:y,seriesList:x,activeEpisodeId:S,showEpisodeTitle:C=!1,onToggleTitle:T,onClose:D,onSelectEpisode:O,popupBodyStyle:k}){let A=b(`components.common.seriesEpisodes`),j=!!T,M=j&&C,N=m(null),P=m(null),F=p(()=>w(x,`episode`,e=>A(`episodeLabel`,{episode:e})),[x,A]),I=p(()=>{if(F.length===0)return[];let e=[];return F.forEach((t,n)=>{let r=Math.floor(n/50);e[r]||(e[r]=[]),e[r].push(t)}),e},[F]),L=p(()=>{if(!S)return 0;let e=F.findIndex(e=>e.id===S);return e<0?0:Math.floor(e/50)},[S,F]),[R,z]=h(L);f(()=>{z(L)},[L]);let B=p(()=>typeof y==`string`&&y.trim()?y:E(F.length,g,A),[F.length,y,A,g]),V=d||A(`selectorTitle`);function H(){let e=N.current;if(e){P.current&&=(window.cancelAnimationFrame(P.current),null),e.scrollTop=0;try{e.scrollTo({top:0,left:0,behavior:`auto`})}catch{}P.current=window.requestAnimationFrame(()=>{P.current=null;let e=N.current;e&&(e.scrollTop=0)})}}f(()=>{s&&H()},[s,C,R]);function U(e){T&&(T(e),H())}function W(e){O?.(e.id,e.series_num),D()}let G=M?2:5,K=I.length>1?_(`div`,{className:`shrink-0 w-full flex gap-[8px] overflow-x-auto`,children:I.map((e,t)=>{if(e.length===0)return null;let n=t===R,r=t*50+1,i=Math.min((t+1)*50,F.length);return v(`div`,{className:`shrink-0 px-[16px] py-[6px] rounded-[16px] text-[14px] transition-colors cursor-pointer relative overflow-hidden ${n?`text-theme5 bg-bg2`:`text-text2 bg-bg2`}`,onClick:()=>{z(t),H()},children:[r,`-`,i,n&&_(`div`,{className:`absolute w-full h-full top-0 left-0 opacity-20 bg-theme5`})]},`series-group-${t}`)})}):null,q=v(`div`,{className:`pb-[8px] flex justify-between`,children:[_(`span`,{className:`text-[16px] text-text1`,children:B}),j&&v(`div`,{className:`flex items-center gap-[4px]`,children:[_(o,{size:`sm`,className:`data-checked:bg-theme5 h-[20px] w-[33px]`,checked:C,onCheckedChange:e=>{U(!!e)}}),_(`button`,{type:`button`,className:`text-[16px] text-text1`,onClick:()=>{U(!C)},children:A(`episodeTitle`)})]})]}),J=_(`div`,{className:`grid w-full gap-2 ${G===2?`grid-cols-2`:`grid-cols-5`}`,children:(I[R]||[]).map((e,t)=>{let n=!!(S&&e.id===S);return _(`button`,{type:`button`,"data-episode-id":e.id,onClick:()=>{W(e)},className:`flex items-center justify-center w-full h-[60px] rounded-[8px] border border-line1 border-solid text-[16px] cursor-pointer select-none transition-colors relative overflow-hidden ${n?`font-bold text-theme5 bg-line1`:`text-text1`} ${M?`h-[72px] px-[10px] text-[14px]`:``} ${t%G===0?``:`border-l-0`}`,children:M?_(`span`,{className:`leading-[22px] line-clamp-2`,children:e.title}):e.series_num},e.id)})});return l===`sheet`?_(n,{open:s,onOpenChange:e=>!e&&D(),children:v(r,{side:`bottom`,showCloseButton:!0,className:`min-h-[50vh] bg-bg1 text-text1 rounded-t-2xl border-t border-white/10`,children:[_(i,{className:`pt-3 pb-0`,children:_(a,{className:`flex items-center justify-between text-lg text-text1`,children:V})}),v(`div`,{className:`px-4 pb-2 flex flex-col gap-3`,children:[K,q]}),_(`div`,{ref:N,className:`flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto px-4`,children:J})]})}):_(u,{open:s,onOpenChange:e=>{e||D()},showCloseButton:!1,className:`border-0 bg-transparent p-0`,children:v(e,{className:`w-full flex flex-col bg-bg1 px-[12px] text-text1`,style:{height:`70vh`,...k},children:[v(e,{className:`shrink-0 flex justify-between items-center h-[48px]`,children:[_(t,{className:`text-[16px] font-bold text-text1`,children:V}),_(e,{className:`pl-[12px] h-full flex items-center`,onClick:D,children:_(c,{className:`w-[14px] h-[14px] text-text1 cursor-pointer`})})]}),v(e,{className:`flex-1 h-0 w-full pb-[12px] flex flex-col gap-3`,children:[K,q,_(e,{ref:N,className:`flex-1 h-0 pt-[4px] pb-[12px] overflow-y-auto`,children:J})]})]})})}function k({information:n,series_num:r,onEpisodeChange:i}){let a=b(`components.common`),[o,c]=s(`detail-series-popup-${n.id}`,!1),[u,w]=s(`detail-series-title-toggle-${n.id}`,!1),[E,D]=s(`detail-series-scroll-left-${n.id}`,null),[k,A]=h(r);f(()=>{A(r)},[n.id,r]),f(()=>{if(typeof window>`u`)return;let e=()=>{c(!1)};return window.addEventListener(S,e),()=>{window.removeEventListener(S,e)}},[c]),f(()=>{if(typeof window>`u`)return;let e=e=>{if(!C(e))return;let t=e.detail||{};t.open=!!t.open||!!o};return window.addEventListener(x,e),()=>{window.removeEventListener(x,e)}},[o]);let j=p(()=>T((n.links||[]).map(e=>({id:e.id,name:e.name})),n.id||`episode`,e=>a(`seriesEpisodes.episodeLabel`,{episode:e})),[n.id,n.links,a]),M=n.update_status===`1`?a(`seriesEpisodes.completedSeriesTotal`,{total:n.links.length}):a(`seriesEpisodes.ongoingSeriesUpdatedTo`,{total:n.links.length}),N=p(()=>n.links[k-1]?.id||n.links[0]?.id||``,[n.links,k]),P=m(null),F=m(null),I=m(null),L=m(!1),R=m(null),z=m(null),B=m(null),[V,H]=h(!1),U=d((e,t=`smooth`)=>{let n=P.current?.querySelector(`[data-content-id="${e}"]`);if(n&&P.current){let e=P.current,r=Math.max(0,n.offsetLeft-10);e.scrollTo({left:r,behavior:t})}},[]),W=d(()=>{z.current!==null&&(window.clearTimeout(z.current),z.current=null)},[]),G=d(()=>{B.current!==null&&(window.clearTimeout(B.current),B.current=null)},[]),K=d(()=>{R.current!==null&&(y.dismiss(R.current),R.current=null),W(),G()},[G,W]),q=d(()=>{F.current=null,I.current=null,K(),H(!1)},[K]),J=d((e,t)=>{G(),B.current=window.setTimeout(()=>{B.current=null,F.current===e&&q()},Math.max(0,t))},[G,q]);f(()=>{L.current=!1},[n.id]),f(()=>{if(L.current||!N)return;let e=window.requestAnimationFrame(()=>{let e=P.current;e&&(typeof E==`number`?e.scrollTo({left:Math.max(0,E),behavior:`auto`}):(U(N,`auto`),D(Math.max(0,Math.round(e.scrollLeft)))),L.current=!0)});return()=>{window.cancelAnimationFrame(e)}},[N,E,U,D]),f(()=>{let e=F.current;!e||e!==r||J(e,1e3)},[J,r]),f(()=>()=>{q()},[q]);let Y=d((e,t,n)=>{let r=P.current;if(!r||!e)return t;let i=r.querySelector(`[data-content-id="${e}"]`);if(!i)return t;let a=r.getBoundingClientRect();if(a.width<=0||typeof n!=`number`||(n-a.left)/a.width<.5)return t;let o=i.offsetLeft+i.offsetWidth/2,s=r.clientWidth/2,c=Math.max(0,r.scrollWidth-r.clientWidth),l=Math.min(c,Math.max(0,o-s));return r.scrollTo({left:l,behavior:`smooth`}),Math.round(l)},[]),X=d((e,t=`inline`,o,s)=>{if(e!==k){if(!n.links[e-1]){y.error(a(`seriesEpisodes.episodeNotFound`));return}if(typeof window<`u`&&window.isWebView===!0){try{A(e);let c=o||n.links[e-1]?.id||``,l=Math.max(0,Math.round(P.current?.scrollLeft||0));t===`popup`?(c&&U(c,`auto`),D(Math.max(0,Math.round(P.current?.scrollLeft||0)))):D(Y(c,l,s)),H(!0),K(),R.current=y.loading(a(`seriesEpisodes.episodeSwitching`)),F.current=e,I.current=t,z.current=window.setTimeout(()=>{F.current===e&&(A(r),q(),y.error(a(`seriesEpisodes.episodeSwitchFailed`)))},3e3),i(e)}catch(e){A(r),q(),console.error(`切换剧集失败`,e),y.error(a(`seriesEpisodes.episodeSwitchFailed`))}return}try{A(e);let c=o||n.links[e-1]?.id||``,l=Math.max(0,Math.round(P.current?.scrollLeft||0));t===`popup`?(c&&U(c,`auto`),D(Math.max(0,Math.round(P.current?.scrollLeft||0)))):D(Y(c,l,s)),H(!0),K(),R.current=y.loading(a(`seriesEpisodes.episodeSwitching`)),F.current=e,I.current=t,z.current=window.setTimeout(()=>{F.current===e&&(A(r),q(),y.error(a(`seriesEpisodes.episodeSwitchFailed`)))},8e3),i(e)}catch(e){A(r),q(),console.error(`切换剧集失败`,e),y.error(a(`seriesEpisodes.episodeSwitchFailed`))}}},[q,K,n.links,i,k,r,Y,U,D,a]),[Z,Q]=h(`70vh`),$=d(()=>{if(typeof window>`u`)return;if(window.isWebView===!0){Q(`100vh`);return}let e=document.getElementById(`selectPopupPosition`),t=window.visualViewport?.height||window.innerHeight;if(!e){Q(`70vh`);return}let n=Math.max(0,t-e.offsetTop);if(n<=0){Q(`70vh`);return}Q(`${n}px`)},[]);return f(()=>{if(!o)return;$();let e=()=>{$()};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[$,o]),j.length<=1?null:v(g,{children:[v(e,{className:`w-full mt-[16px] flex flex-col items-end mb-[4px]`,children:[v(e,{className:`w-fit flex items-center px-[12px] h-[28px]`,onClick:()=>c(!0),children:[_(t,{className:`text-[14px] text-text2 leading-[20px]`,children:M}),_(l,{className:`w-[11px] h-[18px] ml-[4px] text-text2`})]}),_(`div`,{ref:P,className:`w-full mt-[12px] overflow-x-auto px-[12px] flex gap-x-[8px] ${u?`h-[76px]`:`h-[60px]`} ${V?`touch-none`:``}`,children:j.map((e,n)=>_(`div`,{"data-content-id":e.id,className:`shrink-0 h-[full] px-[18px] rounded-[6px] border border-line1 flex items-center ${u?`w-[162px]`:`w-[60px] !px-[0] justify-center`} ${e.id===N?`!border-theme5 bg-line1`:``}`,onClick:t=>{X(n+1,`inline`,e.id,t.clientX)},children:_(t,{className:`text-[16px] text-text1 leading-[22px] line-clamp-2 ${e.id===N?`font-bold !text-theme5`:``}`,children:u?e.title:e.series_num})},e.id))})]}),_(O,{title:a(`seriesEpisodes.selectorTitle`),variant:`popup`,open:o,updateStatus:n.update_status,summaryText:M,seriesList:(n.links||[]).map(e=>({id:e.id,name:e.name})),activeEpisodeId:N,showEpisodeTitle:u,onToggleTitle:e=>{w(e)},onClose:()=>c(!1),onSelectEpisode:(e,t)=>{c(!1),X(t,`popup`,e)},popupBodyStyle:{height:Z}})]})}export{D as SeriesEpisodes};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetAppChannelBlock as e,gContentGetAppChannelBlockData as t,gContentListVisibleFloatingBall as n}from"../../../service/generated/client.mjs";import{useRouter as r}from"../../../utils/use-compatible-router.mjs";import{
|
|
2
|
+
"use client";import{gContentGetAppChannelBlock as e,gContentGetAppChannelBlockData as t,gContentListVisibleFloatingBall as n}from"../../../service/generated/client.mjs";import{useRouter as r}from"../../../utils/use-compatible-router.mjs";import{Image as i}from"../../ui/image.mjs";import{Box as a}from"../../ui/box.mjs";import{useRequest as o}from"../../../hooks/query/use-query.mjs";import{useRequireLogin as s}from"../../../hooks/use-auth.mjs";import{queryKey as c}from"../../../constants/query-key.mjs";import{useKeepAliveState as l}from"../../common/keep-scroll-position/index.mjs";import{extractDataByComponentType as u}from"../../biz/utils/transformers/data.mjs";import{useEffect as d,useLayoutEffect as f,useMemo as p,useRef as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";function v(){if(typeof document>`u`)return 0;let e=document.querySelector(`[data-top-nav-root="true"]`);return e&&e.getBoundingClientRect().height||0}function y({currentChannelId:y,isPGC:b}){let x=r(),S=s(),{data:C}=o(c.GET_CONTENT_LIST(y),()=>e({channel_id:y})),{data:w}=o([c.FLOATING_BALL],()=>n()),T=p(()=>C?.data?.blocks||[],[C?.data?.blocks]),E=p(()=>{let e=T.findIndex(e=>e.type===4),t=e>=0?T[e]:null;return{index:e,block:t,blockId:t?.id||``}},[T]),{data:D}=o([c.GUESS_YOU_LIKE_USER_DATA,E.blockId],()=>t({block_id:E.blockId}),{enabled:!!E.blockId}),O=p(()=>{if(E.index<0)return T;let e=D?.data.block?.data?.users||[];return T.map((t,n)=>n===E.index?{...t,data:{...t.data||{},users:e}}:t)},[T,D,E.index]),[k,A]=l(`home-scroll-top-${y}`,0),j=m({restored:!1,lastScrollTop:k,key:y,rafId:null}),M=m(A),N=m(k);d(()=>{M.current=A},[A]),d(()=>{N.current=k},[k]),d(()=>{j.current.key!==y&&(j.current.restored=!1,j.current.lastScrollTop=k,N.current=k,j.current.key=y)},[y,k]);let P=O.length>0;f(()=>{if(!P||j.current.restored||k<=0)return;let e=v(),t=Math.max(0,k+e);window.requestAnimationFrame(()=>{window.scrollTo({top:t}),j.current.restored=!0,j.current.lastScrollTop=t})},[P,y,k]),d(()=>{let e=j.current;function t(){e.restored=!0,e.rafId!==null&&window.cancelAnimationFrame(e.rafId),e.rafId=window.requestAnimationFrame(()=>{e.rafId=null;let t=window.scrollY??document.documentElement.scrollTop??0,n=v(),r=Math.max(0,t-n);Math.abs(t-e.lastScrollTop)>1&&(e.lastScrollTop=t,M.current(r))})}return window.addEventListener(`scroll`,t,{passive:!0}),()=>{e.rafId!==null&&(window.cancelAnimationFrame(e.rafId),e.rafId=null),window.removeEventListener(`scroll`,t)}},[y]);let F=p(()=>u(O,b),[O,b]),I=p(()=>w?.data?.ball_infos?.find(e=>e.channel_id===y),[w?.data?.ball_infos,y]);return _(h,{children:[I&&g(a,{className:`fixed right-[20px] bottom-[80px] w-[52px] h-[52px] z-30 rounded-[16px] cursor-move select-none bg-[#FD4C5E33] overflow-hidden`,onClick:()=>{S(()=>{I?.jump_url&&x.push(I.jump_url)})},children:g(i,{src:I.material_url||``,alt:I.name||``,fill:!0,priority:!0,fetchPriority:`high`,sizes:`52px`,unoptimized:!0})}),F.map(e=>{let t=e.component,n=e.data.block_id||`block-${e.data.title||``}`;return g(t,{data:e.data},n)})]})}export{y as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{cn as t}from"../../../utils/cn.mjs";import{gContentGetAppChannels as n,gContentGetVideoDetail as r}from"../../../service/generated/client.mjs";import{useRouter as i}from"../../../utils/use-compatible-router.mjs";import{EmptyState as a}from"../../ui/empty.mjs";import{notifyBridgeEpisodeChanged as
|
|
2
|
+
"use client";import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{cn as t}from"../../../utils/cn.mjs";import{gContentGetAppChannels as n,gContentGetVideoDetail as r}from"../../../service/generated/client.mjs";import{useRouter as i}from"../../../utils/use-compatible-router.mjs";import{EmptyState as a}from"../../ui/empty.mjs";import{buildVideoPlayerSrc as o}from"../../common/video-player/process-m3u8-cache.mjs";import{notifyBridgeEpisodeChanged as s}from"../../../utils/login-modal-bridge.mjs";import{useRequest as c}from"../../../hooks/query/use-query.mjs";import{queryKey as l}from"../../../constants/query-key.mjs";import{useKeepAliveEffect as u,useKeepAliveState as d}from"../../common/keep-scroll-position/index.mjs";import{apiCollectClick as f}from"../../../utils/api-collect.mjs";import p from"../../biz/business/search-bar/variants/detail-search-bar/index.mjs";import{VideoDetailMaterialRuntimeProvider as m}from"../../biz/business/detail/shared/runtime-context-provider.mjs";import{resolveMaterialProps as h,videoDetailMaterials as ee}from"../../biz/business/detail/shared/registry.mjs";import{DetailHero as te}from"../../biz/business/detail/shared/video-hero.mjs";import{Fragment as ne,useCallback as g,useEffect as _,useMemo as v}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import{useParams as re,useSearchParams as ie}from"next/navigation";import{useTranslations as ae}from"next-intl";const S=[{id:`detail-info`,componentName:`video-detail-info`,props:{}},{id:`detail-info-title-tags-episodes`,componentName:`video-detail-info-title-tags-episodes`,props:{}},{id:`detail-actions`,componentName:`video-detail-actions`,props:{}},{id:`detail-recommend`,componentName:`video-detail-recommend`,props:{title:`猜你喜欢`,rows:2,columns:3,smartTagEnabled:!1,smartTagIds:[`腐剧`],showPlayCount:!0,playCountDelta:0,showEpisode:!0,enableInfinite:!1,items:[{contentId:`d6a35ba3279e6f0d`,contentName:`贺总的私宠罪妻`,titleMode:`custom`,title:`贺总的私宠罪妻`,description:`简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百`,coverMode:`upload`,coverUrl:`/truss/20260227/69a136457d10f.jpgxxx`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`b0f42fed731239a7`,contentName:`少年江湖物语`,titleMode:`custom`,title:`少年江湖物语`,description:`网剧《少年江湖物语》讲述了一个江湖中邪不压正,青春正好,有情有爱的温暖故事。剧中有魔教教主,有天下第一剑客,有身世成谜的江湖大夫,有忠心耿耿的小丫鬟,更有艳压秦淮的当红花魁,众多看似完全没有交集的人物纷纷亮相登场,搅乱江湖一池春水。`,coverMode:`content`,coverUrl:`/md-204/uploads/default/other/2024-08-26/14664d2c31e61c201a29cd4abba267c5.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`c2304e94ec0ba208`,contentName:`王的男人`,titleMode:`custom`,title:`王的男人`,description:`朝鲜第十代王燕山王君时期,艺人长生(甘宇成饰)和孔吉(李俊基饰)因为不肯加入当地的艺人团,来到京城汉阳谋生。此时暴君燕山君(郑镇荣饰)沉迷于宠妾张绿水(姜成妍饰),朝纲混乱,民不聊生。长生与孔吉二人在街头开始表演讽刺君主的喜剧,大受欢迎,却遭逮捕。后要求到王面前表演,求得一笑。结果,多亏孔吉的急中生智,燕山君才笑了出来。两人随即被留在宫中取乐,孔吉更是因为美色令王倍加宠爱。他们不停表演,大臣们却各自心怀鬼胎,导致了杀戮局面。最终,君王和艺人的命运又将如何呢?`,coverMode:`content`,coverUrl:`/md-204/resource/8c/8cb28f46831558fbeb2f34b2076c3b4e.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`c7ffc6a558ae8683`,contentName:`怒`,titleMode:`custom`,title:`怒`,description:`炎炎夏日,东京八王子郊外社区,一对夫妇惨遭杀害。事后凶手用血在墙上写下大大的“怒”字,随后逃亡,销声匿迹长达一年之久。而在此期间,三个身份不明的男子和身边的人相遇了。曾自甘堕落的爱子(宫崎葵饰)被父亲(渡边谦饰)领回海滨小镇,邂逅了不善言辞的哲也(松山研一饰)。在东京工作的同性恋优马(妻夫木聪饰)将柔情似水的直人(绫野刚饰)带回了家,他不相信对方,却又尝试去相信。随母亲搬到冲绳的小泉(广濑铃饰)跟着同学辰哉(佐久本宝饰)登上一座荒岛,在废墟中遇到了背包客田中(森山未来饰),他们短暂成为朋友,而可怕的命运突然降临泉的头上。不久之后,通缉令遍布全国,三个男子的真实身份引人生疑……本片根据吉田修一的同名原作改编。`,coverMode:`content`,coverUrl:`/md-204/resource/24/24ef267eef2c35b5e4cf12dac8b55c14.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`98217427ed96ec51`,contentName:`熔炉`,titleMode:`custom`,title:`熔炉`,description:`来自首尔的哑语美术老师仁浩(孔宥饰)来到雾津,应聘慈爱聋哑人学校。天降大雾,他意外撞车,维修时邂逅了人权组织成员柔珍(郑有美饰)。仁浩妻子早亡,8岁女儿天生哮喘由祖母照看,所以他不辞辛苦谋职养家。然而,双胞胎的校长与教导主任竟逼仁浩索贿5千万韩元。同时,仁浩逐渐发现学校笼罩着一种紧张压抑的气氛,令人窒息。有三个孩子引人关注:聪颖的金妍斗(金贤秀饰)、贪吃的陈宥利(郑仁絮饰)和弟弟自杀身亡的全民秀(白承焕饰),民秀总是满脸淤青。下课后,仁浩还听到女厕所中有呼喊与哭泣,在门卫的阻拦下他未深究。之后。他意外目睹了校长行贿警察,教导员毒打民秀,宿导溺罚妍斗的行径。一个惊天的隐秘被慢慢揭开,真相令韩国震惊……本片取材于2005年光州一所聋哑障碍人学校的真实事件,改编自韩国作家孔枝泳的同名小说。`,coverMode:`content`,coverUrl:`/md-204/resource/b4/b410ccdcd86936455b9460a9152aaa47.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`caa2b4eb4eb40de0`,contentName:`再次来寻我`,titleMode:`custom`,title:`再次来寻我`,description:`在宇回到曾经与初恋志勋相遇的303号房,这里即将被拆迁,他在房间里回忆和志勋的点点滴滴,突然被书桌上的电话所吸引,一拿起话筒听到的竟是志勋的声音!在房子主人的同意下,在宇带着电话离开了303室,在回家的途中他发现自己像走在一个陌生的地方,而对面走来的竟是已消失已久的志勋…`,coverMode:`content`,coverUrl:`/md-204/resource/2b/2b43375f2248c1a012847d4507fd21a3.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0}]}}];function C(e,t){let n=String(e||``).split(`/`).filter(Boolean),r=n.findIndex(e=>e===`video`||e===`webview`);return r<0?!1:n[r+1]===t}function w({detailId:f,initialInformation:w,isWebView:T=!1,materialConfig:E}){let D=ae(`components.pages.videoDetail`),O=i(),oe=re(),se=ie(),k=oe.level,A=Array.isArray(k)?k:typeof k==`string`?[k]:[],j=A.findIndex(e=>e===`episode`),ce=j>=0?A[j+1]:A[2],M=Math.max(1,Number(ce)||1),[le,N]=d(`detail-current-series-num-${f}`,M);_(()=>{N(M)},[M,N]);let P=Math.max(1,Number(le)||1),F=Math.max(0,P-1),{data:I,isPending:L,isFetching:R,isError:z,isSuccess:B}=c(v(()=>[`video-detail`,f],[f]),async()=>f?await r({id:f}):null,{enabled:!!f}),V=v(()=>{let e=I?.data?.video;return!e||typeof e!=`object`?null:{...e,content_type:1,episode_cnt:e.links?.length||0}},[I?.data?.video]),H=w??V??null,[U,W]=d(`detail-information-${f}`,H),ue=U?.links?.[F]?.id||``,G=!!f&&!U&&(L||R),K=!f||!!U||z||B,[de,fe]=d(`info-detail-active-tab-${f}`,`video`),[q,J]=d(`info-detail-comment-add-count-${f}`,0),[Y,pe]=d(`info-detail-comment-total-${f}`,void 0);_(()=>{!U&&V&&W(V)},[U,V,W]);let X=g(e=>{W(t=>t&&{...t,...e})},[W]);u(()=>{U?.id&&U.id},[U?.id],`detail-page-report-${f}`),_(()=>{!U||typeof window>`u`||window.sensors?.track?.(`detail_page_view`,{object_id:U.id||f,author_id:U.up_user,object_type:U.content_type,object_category:U.content_type,object_tags:U.tags?.map(e=>e.name),block_id:``,page_source:window.location?.pathname||``})},[f,U]),_(()=>{J(0)},[ue,J]),v(()=>(typeof Y==`number`?Y:0)+q,[q,Y]);let me=g(()=>{},[!1,fe]);g(()=>{J(e=>e+1)},[J]),_(()=>{},[!1,me,U?.id,se]);let Z=g(e=>{let t=Math.max(1,Math.floor(Number(e)||1));if(typeof window>`u`)return;let n=String(U?.id||f||``).trim();if(!n)return;let r=T||window.isWebView===!0,i=`/${r?`webview`:`video`}/${n}/${encodeURIComponent(U?.name||``)}/episode/${t}`,{search:a,hash:c,pathname:l}=window.location,u=`${i}${a}${c}`,d=`${l}${a}${c}`,p=C(l,n);if(d!==u){if(r){let e=U?.links?.[Math.max(0,t-1)],r=o(String(e?.m3u8_url||e?.preview_m3u8_url||``).trim());s({poster:String(U?.img_y||U?.img_x||U?.preview_images?.[0]||``).trim(),src:r,title:String(U?.title||U?.name||``).trim(),contentId:n,episode:t}),P!==t&&N(t);return}p&&typeof window.history?.replaceState==`function`?(window.history.replaceState(window.history.state,``,u),N(t)):O.replace(u,{scroll:!1});return}P!==t&&N(t)},[P,f,U?.id,U?.img_x,U?.img_y,U?.links,U?.name,U?.preview_images,U?.title,T,O,N]),Q=U?.status===`1`,{data:he}=c([l.CHANNEL],()=>n()),ge=e(he?.data),$=v(()=>{if(E!==void 0){let e=new Map(S.map(e=>[e.componentName,e]));return E.map(t=>{let n=e.get(t.componentName);return{...n,...t,props:{...n?.props??{},...t.props??{}}}})}return S},[E]),_e=v(()=>({information:U??void 0,currentSeriesNum:P,onEpisodeChange:Z,onUpdateInformation:X,detailId:f,episodeIndex:F,isShow:!0,isWebView:T,isInformationLoading:G,isInformationResolved:K}),[P,f,F,Z,X,U,G,K,T,!0]),ve=g(e=>{if(!U)return null;let t=ee[e.componentName];if(!t)return null;let n=t.clientComponent,r=h(t,e.props);return r.isValid?b(n,{...r.props}):b(`div`,{children:`组件配置错误`})},[U]);return x(`div`,{className:`w-full min-h-screen bg-bg2 text-text1 ${T?``:`pt-11`}`,children:[!T&&b(`div`,{className:`fixed bg-black top-0 left-0 right-0 z-[1000]`,children:b(p,{data:{list:ge}})}),b(`div`,{className:`mx-auto w-full max-w-[840px] pb-6`,children:x(y,{children:[U&&!Q&&b(a,{type:`no-content`,text:D(`videoDetailClient.videoUnavailable`)}),U&&Q&&x(y,{children:[!T&&b(te,{isVideo:!0,information:U,episodeIndex:F}),b(`div`,{id:`selectPopupPosition`,className:`w-full`}),!1,x(`div`,{className:t(`w-full`,!1),children:[b(m,{value:_e,children:$.map(e=>b(ne,{children:ve(e)},e.id))}),!1]}),!1]}),!U&&b(a,{type:`no-content`,text:D(`videoDetailClient.videoDeleted`)})]})})]})}export{w as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{pContentGetNewstVideoList as e,pContentGetTopRatedVideoList as t}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as n,pContentGetTopRatedVideoListKey as r}from"../../../service/generated/tanstack.mjs";import{HydrationBoundary as i}from"../../../hooks/query/hydration-boundary.mjs";import{revalidate as a}from"../../../constants/revalidate.mjs";import{getNextVideoListPageParam as o,resolveNextCursor as s}from"./types.mjs";import c from"./video-list-client.mjs";import{jsx as l}from"react/jsx-runtime";async function u({title:u=`列表页`,tags:d=[]}={}){let f={page_size:10,tags:d.length?d:void 0};return l(i,{prefetch:[{type:`infinite`,queryKey:r(f),queryFn:async e=>{let n=(await t({page_size:10,cursor:e||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data,r=Array.isArray(n?.videos)?n.videos:[];return{list:r,nextCursor:r.length<10?``:s(n)}},initialPageParam:``,getNextPageParam:e=>o(e)},{type:`infinite`,queryKey:n(f),queryFn:async t=>{let n=(await e({page_size:10,cursor:t||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data;return{list:
|
|
2
|
+
import{pContentGetNewstVideoList as e,pContentGetTopRatedVideoList as t}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as n,pContentGetTopRatedVideoListKey as r}from"../../../service/generated/tanstack.mjs";import{HydrationBoundary as i}from"../../../hooks/query/hydration-boundary.mjs";import{revalidate as a}from"../../../constants/revalidate.mjs";import{getNextVideoListPageParam as o,resolveNextCursor as s}from"./types.mjs";import c from"./video-list-client.mjs";import{jsx as l}from"react/jsx-runtime";async function u({title:u=`列表页`,tags:d=[]}={}){let f={page_size:10,tags:d.length?d:void 0};return l(i,{prefetch:[{type:`infinite`,queryKey:r(f),queryFn:async e=>{let n=(await t({page_size:10,cursor:e||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data,r=Array.isArray(n?.videos)?n.videos:[];return{list:r,nextCursor:r.length<10?``:s(n)}},initialPageParam:``,getNextPageParam:e=>o(e)},{type:`infinite`,queryKey:n(f),queryFn:async t=>{let n=(await e({page_size:10,cursor:t||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data,r=Array.isArray(n?.videos)?n.videos:[];return{list:r,nextCursor:r.length<10?``:s(n)}},initialPageParam:``,getNextPageParam:e=>o(e)}],children:l(c,{title:u,tags:d})})}export{u as VideoListPage};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../ui/button.mjs";import{pContentGetNewstVideoList as t,pContentGetTopRatedVideoList as n}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as r,pContentGetTopRatedVideoListKey as i}from"../../../service/generated/tanstack.mjs";import{useRouter as a}from"../../../utils/use-compatible-router.mjs";import{Box as o}from"../../ui/box.mjs";import{InfiniteScroll as s}from"../../ui/infinite-scroll.mjs";import{Text as c}from"../../ui/text.mjs";import{usePaginated as l}from"../../../hooks/query/use-query.mjs";import u from"../../../assets/icons/left_arrow.mjs";import{getNextVideoListPageParam as d,resolveNextCursor as f}from"./types.mjs";import{VideoListItemComponent as p}from"./video-list-item.mjs";import{VideoListSkeleton as m}from"./video-list-skeleton.mjs";import{useEffect as h,useMemo as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import b from"next/link";const x=[];function S({title:S=`列表页`,tags:C=x}){let w=a(),[T,E]=_(`hot`),D=g(()=>({page_size:10,tags:C.length?C:void 0}),[C]),{data:O,fetchNextPage:k,hasNextPage:A,isPending:j,isFetching:M}=l({key:g(()=>T===`hot`?i(D):r(D),[D,T]),queryFn:async e=>{let r={page_size:10,cursor:e||void 0,tags:C.length?C:void 0},i=(T===`hot`?await n(r):await t(r)).data,a=Array.isArray(i?.videos)?i.videos:[];return{list:a,nextCursor:
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{pContentGetNewstVideoList as t,pContentGetTopRatedVideoList as n}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as r,pContentGetTopRatedVideoListKey as i}from"../../../service/generated/tanstack.mjs";import{useRouter as a}from"../../../utils/use-compatible-router.mjs";import{Box as o}from"../../ui/box.mjs";import{InfiniteScroll as s}from"../../ui/infinite-scroll.mjs";import{Text as c}from"../../ui/text.mjs";import{usePaginated as l}from"../../../hooks/query/use-query.mjs";import u from"../../../assets/icons/left_arrow.mjs";import{getNextVideoListPageParam as d,resolveNextCursor as f}from"./types.mjs";import{VideoListItemComponent as p}from"./video-list-item.mjs";import{VideoListSkeleton as m}from"./video-list-skeleton.mjs";import{useEffect as h,useMemo as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import b from"next/link";const x=[];function S({title:S=`列表页`,tags:C=x}){let w=a(),[T,E]=_(`hot`),D=g(()=>({page_size:10,tags:C.length?C:void 0}),[C]),{data:O,fetchNextPage:k,hasNextPage:A,isPending:j,isFetching:M}=l({key:g(()=>T===`hot`?i(D):r(D),[D,T]),queryFn:async e=>{let r={page_size:10,cursor:e||void 0,tags:C.length?C:void 0},i=(T===`hot`?await n(r):await t(r)).data,a=Array.isArray(i?.videos)?i.videos:[];return{list:a,nextCursor:a.length<10?``:f(i)}},getNextPageParam:d,initialPageParam:``,options:{staleTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1,refetchOnReconnect:!1}}),N=g(()=>O?.pages?.flatMap(e=>e.list)??[],[O?.pages]),P=(O?.pages?.length??0)>0,F=g(()=>P?A??!1:!0,[P,A]),I=N.length===0&&(!P||j||M);h(()=>{typeof window>`u`||window.scrollTo({top:0,behavior:`auto`})},[T]);function L(){w.back()}let R=g(()=>N.map(e=>{let t=e.id??e.mid??``;return v(b,{href:`/video/${t}/${e.name??``}`,children:v(p,{item:e})},t)}),[N]);return I?v(m,{}):y(o,{as:`main`,className:`min-h-[100dvh] bg-bg1`,children:[y(o,{className:`fixed top-0 left-0 right-0 z-20 bg-bg1`,children:[y(o,{as:`header`,className:`flex items-center gap-2 px-4 py-3`,children:[v(u,{className:`w-[16px] h-[16px]`,onClick:L}),v(c,{as:`h1`,className:`flex-1 min-w-0 flex justify-center overflow-hidden text-[18px] pr-[16px]`,children:v(c,{className:`block max-w-full truncate`,children:S})})]}),y(o,{as:`nav`,className:`px-4 pb-2 flex gap-2`,children:[v(e,{type:`button`,onClick:()=>E(`hot`),className:`h-[30px] px-[12px] text-[14px] rounded-[50px] ${T===`hot`?`bg-theme5 text-text1`:`bg-transparent text-text2`}`,children:`最热`}),v(e,{type:`button`,onClick:()=>E(`latest`),className:`h-[30px] px-[12px] text-[14px] rounded-[50px] ${T===`latest`?`bg-theme5 text-text1`:`bg-transparent text-text2`}`,children:`最新`})]})]}),v(s,{loadMore:()=>k().then(()=>void 0),hasMore:F,noMoreText:`没有更多了`,threshold:300,className:`pt-[88px]`,children:v(o,{className:`grid grid-cols-2 gap-3 p-4`,children:R})},T)]})}export{S as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import NextImage from "next/image";
|
|
5
5
|
|
|
6
6
|
//#region components/ui/image.d.ts
|
|
7
7
|
/** BaseImageProps 属性定义。 */
|
|
8
|
-
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof
|
|
8
|
+
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof NextImage>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
|
|
9
9
|
type CommonImageProps = BaseImageProps & {
|
|
10
10
|
/** 图片地址,支持普通 URL、默认资源路径和加密地址。 */src: string; /** 图片替代文本。 */
|
|
11
11
|
alt?: string; /** 图片类名。 */
|
|
@@ -27,6 +27,6 @@ type ImagePropsWithSize = CommonImageProps & {
|
|
|
27
27
|
/** ImageProps 属性定义。 */
|
|
28
28
|
type ImageProps = ImagePropsWithFill | ImagePropsWithSize;
|
|
29
29
|
/** 图片组件:支持 bnc 解密、默认资源域名拼接与错误占位。 */
|
|
30
|
-
declare function Image
|
|
30
|
+
declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { BaseImageProps, CommonImageProps, Image
|
|
32
|
+
export { BaseImageProps, CommonImageProps, Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { HydrationBoundary, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem } from "./hooks/query/hydration-boundary.mjs";
|
|
3
2
|
import { IMAGE_TEXT_RECOMMEND_FIXED_BATCH_SIZE, ImageTextRecommendAnyVideo, buildImageTextRecommendChosenTags, buildImageTextRecommendRemoteMap, buildImageTextRecommendSmartPicked, getImageTextRecommendFixedIds, getImageTextRecommendLayoutTags, resolveImageTextRecommendVideoId } from "./hooks/image-text-recommend.mjs";
|
|
3
|
+
import { HydrationBoundary, PrefetchInfiniteItem, PrefetchItem, PrefetchQueryItem } from "./hooks/query/hydration-boundary.mjs";
|
|
4
4
|
import { useDeleteRequest, useMutation, usePaginated, usePrefetchQuery, useRefetchQuery, useRequest, useUpdateRequest } from "./hooks/query/use-query.mjs";
|
|
5
5
|
import { AuthFields, useAuth, useCloseLogin, useExpireTime, useIsLoggedIn, useLoginModalOpen, useLogout, useOpenLogin, useOpenLoginAsync, useOpenResetPassword, useRequireLogin, useSetAuthFields, useToken, useUserId, useUserInfo } from "./hooks/use-auth.mjs";
|
|
6
6
|
import { UseBrowseReportOptions, useBrowseReport } from "./hooks/use-browse-report.mjs";
|
package/dist/materials.d.mts
CHANGED
|
@@ -11,11 +11,6 @@ import { videoDetailActionsMaterial } from "./components/biz/business/detail/vid
|
|
|
11
11
|
import "./components/biz/business/detail/video-detail-actions/index.mjs";
|
|
12
12
|
import { videoDetailRecommendMaterial } from "./components/biz/business/detail/video-detail-recommend/material.mjs";
|
|
13
13
|
import "./components/biz/business/detail/video-detail-recommend/index.mjs";
|
|
14
|
-
import { bannerAdMaterial } from "./components/biz/business/advertisement/banner-ad/material.mjs";
|
|
15
|
-
import { floatingAdMaterial } from "./components/biz/business/advertisement/floating-ad/material.mjs";
|
|
16
|
-
import { iconAdMaterial } from "./components/biz/business/advertisement/icon-ad/material.mjs";
|
|
17
|
-
import { textAdMaterial } from "./components/biz/business/advertisement/text-ad/material.mjs";
|
|
18
|
-
import "./components/biz/business/advertisement/index.mjs";
|
|
19
14
|
import { floatingBallMaterial } from "./components/biz/business/floating-ball/material.mjs";
|
|
20
15
|
import { homeRecommendGridMaterial } from "./components/biz/business/home-recommend/home-recommend-grid/material.mjs";
|
|
21
16
|
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
@@ -38,4 +33,4 @@ import { headerSearchMaterial } from "./components/biz/business/header-search/he
|
|
|
38
33
|
import "./components/biz/business/header-search/index.mjs";
|
|
39
34
|
import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
|
|
40
35
|
import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
|
|
41
|
-
export { BannerCarouselMaterial,
|
|
36
|
+
export { BannerCarouselMaterial, channelListMaterial, exampleButtonMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerBridgeOnlyMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial };
|
package/dist/materials.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{
|
|
2
|
+
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{floatingBallMaterial as t}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as n}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as r}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{imageTextRecommendMaterial as i}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as a}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as o,profileHeaderMaterialWithDisabledBackground as s}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as c}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as l}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as u}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as d}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as f}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as p}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as m}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as h}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as g}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as _}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as v}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as y}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as b}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as x}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as S}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as C}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as w}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as T}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as E}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as D}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as O}from"./components/biz/business/shortcut-grid/material.mjs";var k=e({BannerCarouselMaterial:()=>m,channelListMaterial:()=>h,exampleButtonMaterial:()=>p,floatingBallMaterial:()=>t,headerAvatarIconMaterial:()=>S,headerAvatarLogoSearchIconMaterial:()=>w,headerAvatarLogoSearchMaterial:()=>C,headerLogoSearchMaterial:()=>T,headerSearchMaterial:()=>E,homeRecommendGridMaterial:()=>n,homeRecommendWaterfallMaterial:()=>r,imageTextRecommendMaterial:()=>i,largeFeatureGridMaterial:()=>D,marqueeMaterial:()=>a,profileHeaderMaterial:()=>o,profileHeaderMaterialWithDisabledBackground:()=>s,profileMainMaterial:()=>c,searchHistoryMaterial:()=>l,searchInputMaterial:()=>u,shortcutGridMaterial:()=>O,tabBarMaterial:()=>d,textRecommendMaterial:()=>f,videoDetailActionsMaterial:()=>x,videoDetailInfoMaterial:()=>g,videoDetailInfoTitleTagsEpisodesMaterial:()=>_,videoDetailPlayerBridgeOnlyMaterial:()=>y,videoDetailPlayerMaterial:()=>v,videoDetailRecommendMaterial:()=>b});export{m as BannerCarouselMaterial,h as channelListMaterial,p as exampleButtonMaterial,t as floatingBallMaterial,S as headerAvatarIconMaterial,w as headerAvatarLogoSearchIconMaterial,C as headerAvatarLogoSearchMaterial,T as headerLogoSearchMaterial,E as headerSearchMaterial,n as homeRecommendGridMaterial,r as homeRecommendWaterfallMaterial,i as imageTextRecommendMaterial,D as largeFeatureGridMaterial,a as marqueeMaterial,k as materials_exports,o as profileHeaderMaterial,s as profileHeaderMaterialWithDisabledBackground,c as profileMainMaterial,l as searchHistoryMaterial,u as searchInputMaterial,O as shortcutGridMaterial,d as tabBarMaterial,f as textRecommendMaterial,x as videoDetailActionsMaterial,g as videoDetailInfoMaterial,_ as videoDetailInfoTitleTagsEpisodesMaterial,y as videoDetailPlayerBridgeOnlyMaterial,v as videoDetailPlayerMaterial,b as videoDetailRecommendMaterial};
|
package/dist/service.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { AdsMatchAdType, AdsMatchConfig, AdsMatchMaterial, AdsMatchRequest, AdsMatchResponseData, AdsMatchSceneContext, pContentAdsMatch, pContentAdsMatchKey } from "./service/advertisement.mjs";
|
|
3
2
|
import { gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommunityAddContentToCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetNewstVideoList, pContentGetPopularVideoList, pContentGetTopRatedVideoList, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, 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 } from "./service/generated/client.mjs";
|
|
4
3
|
import { createQueryKey, gCommunityGetCollectionInfoKey, gCommunityGetCommentsKey, gCommunityGetContentInfoKey, gCommunityGetContentListKey, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannelsKey, gContentGetAppComponentKey, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoListKey, gContentGetRecommendSearchListKey, gContentGetRecommendVideoListKey, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBallKey, gContentProcessM3u8Key, gInteractionCheckMutualFollowKey, gInteractionGetBrowseListKey, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeListKey, gInteractionGetDislikeListKey, gInteractionGetFolderKey, gInteractionGetFolderStatsKey, gInteractionGetFollowStatsKey, gInteractionGetFollowerListKey, gInteractionGetFollowingContentListKey, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeListKey, gInteractionListCollectsKey, gInteractionListFoldersKey, gUserGetGuestIdentityKey, gUserGetUserEditInfoKey, gUserGetUserInfoKey, gUserGetUserPrivacySettingsKey, gUserViewUserInfoKey, pCommunityAddContentToCollectionKey, pCommunityCreateCollectionKey, pCommunityCreateCommentKey, pCommunityDeleteCollectionKey, pCommunityDeleteCommentKey, pCommunityDeleteContentKey, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURLKey, pCommunityLikeCommentKey, pCommunityMoveCollectionContentKey, pCommunityPublishContentKey, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContentKey, pCommunitySubscribeCollectionKey, pCommunityUpdateCollectionKey, pCommunityUpdateContentKey, pCommunityUploadMediaKey, pContentBatchGetVideoDetailKey, pContentGetNewstVideoListKey, pContentGetPopularVideoListKey, pContentGetTopRatedVideoListKey, pInteractionAddCollectKey, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowseKey, pInteractionCancelDislikeKey, pInteractionCancelLikeKey, pInteractionCheckCollectKey, pInteractionCheckFollowKey, pInteractionClearBrowseHistoryKey, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolderKey, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollowKey, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollectsKey, pInteractionRemoveCollectKey, pInteractionTrackEventsBatchKey, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfoKey, pUserLoginKey, pUserRegisterByVerifyEmailCodeKey, pUserRegisterKey, pUserResetForgetPasswordKey, pUserResetPasswordKey, pUserSendEmailCodeKey, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImageKey, pUserUserFeedbackKey, pUserUserPrivacySettingsKey, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCodeKey } from "./service/generated/tanstack.mjs";
|
|
5
4
|
import { pUserRegisterByVerifyEmailCodeCompat } from "./service/register-by-verify-email-code.mjs";
|
|
6
|
-
export {
|
|
5
|
+
export { createQueryKey, gCommunityGetCollectionInfo, gCommunityGetCollectionInfoKey, gCommunityGetComments, gCommunityGetCommentsKey, gCommunityGetContentInfo, gCommunityGetContentInfoKey, gCommunityGetContentList, gCommunityGetContentListKey, gCommunityGetHotContentList, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollections, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollections, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCode, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannels, gContentGetAppChannelsKey, gContentGetAppComponent, gContentGetAppComponentKey, gContentGetGuessYouLikeVideos, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoList, gContentGetHotVideoListKey, gContentGetRecommendSearchList, gContentGetRecommendSearchListKey, gContentGetRecommendVideoList, gContentGetRecommendVideoListKey, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBall, gContentListVisibleFloatingBallKey, gContentProcessM3u8, gContentProcessM3u8Key, gInteractionCheckMutualFollow, gInteractionCheckMutualFollowKey, gInteractionGetBrowseList, gInteractionGetBrowseListKey, gInteractionGetContentDislikeList, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeList, gInteractionGetContentLikeListKey, gInteractionGetDislikeList, gInteractionGetDislikeListKey, gInteractionGetFolder, gInteractionGetFolderKey, gInteractionGetFolderStats, gInteractionGetFolderStatsKey, gInteractionGetFollowStats, gInteractionGetFollowStatsKey, gInteractionGetFollowerList, gInteractionGetFollowerListKey, gInteractionGetFollowingContentList, gInteractionGetFollowingContentListKey, gInteractionGetFollowingList, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeList, gInteractionGetLikeListKey, gInteractionListCollects, gInteractionListCollectsKey, gInteractionListFolders, gInteractionListFoldersKey, gUserGetGuestIdentity, gUserGetGuestIdentityKey, gUserGetUserEditInfo, gUserGetUserEditInfoKey, gUserGetUserInfo, gUserGetUserInfoKey, gUserGetUserPrivacySettings, gUserGetUserPrivacySettingsKey, gUserViewUserInfo, gUserViewUserInfoKey, pCommunityAddContentToCollection, pCommunityAddContentToCollectionKey, pCommunityCreateCollection, pCommunityCreateCollectionKey, pCommunityCreateComment, pCommunityCreateCommentKey, pCommunityDeleteCollection, pCommunityDeleteCollectionKey, pCommunityDeleteComment, pCommunityDeleteCommentKey, pCommunityDeleteContent, pCommunityDeleteContentKey, pCommunityDislikeComment, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURL, pCommunityGetUploadPresignedURLKey, pCommunityLikeComment, pCommunityLikeCommentKey, pCommunityMoveCollectionContent, pCommunityMoveCollectionContentKey, pCommunityPublishContent, pCommunityPublishContentKey, pCommunityRemoveContentFromCollection, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfo, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContent, pCommunityShareContentKey, pCommunitySubscribeCollection, pCommunitySubscribeCollectionKey, pCommunityUpdateCollection, pCommunityUpdateCollectionKey, pCommunityUpdateContent, pCommunityUpdateContentKey, pCommunityUploadMedia, pCommunityUploadMediaKey, pContentBatchGetVideoDetail, pContentBatchGetVideoDetailKey, pContentGetNewstVideoList, pContentGetNewstVideoListKey, pContentGetPopularVideoList, pContentGetPopularVideoListKey, pContentGetTopRatedVideoList, pContentGetTopRatedVideoListKey, pInteractionAddCollect, pInteractionAddCollectKey, pInteractionBatchClearBrowse, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollects, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStats, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatus, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractions, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowse, pInteractionBrowseKey, pInteractionCancelDislike, pInteractionCancelDislikeKey, pInteractionCancelLike, pInteractionCancelLikeKey, pInteractionCheckCollect, pInteractionCheckCollectKey, pInteractionCheckFollow, pInteractionCheckFollowKey, pInteractionClearBrowseHistory, pInteractionClearBrowseHistoryKey, pInteractionCreateFolder, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecord, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolder, pInteractionDeleteFolderKey, pInteractionDislike, pInteractionDislikeComment, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollow, pInteractionFollowKey, pInteractionLike, pInteractionLikeComment, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollects, pInteractionMoveCollectsKey, pInteractionRemoveCollect, pInteractionRemoveCollectKey, pInteractionTrackEventsBatch, pInteractionTrackEventsBatchKey, pInteractionUnfollow, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislike, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolder, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTime, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfo, pUserEditUserInfoKey, pUserLogin, pUserLoginKey, pUserRegister, pUserRegisterByVerifyEmailCode, pUserRegisterByVerifyEmailCodeCompat, pUserRegisterByVerifyEmailCodeKey, pUserRegisterKey, pUserResetForgetPassword, pUserResetForgetPasswordKey, pUserResetPassword, pUserResetPasswordKey, pUserSendEmailCode, pUserSendEmailCodeKey, pUserSendForgetEmailCode, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCode, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImage, pUserUploadUserBgImageKey, pUserUserFeedback, pUserUserFeedbackKey, pUserUserPrivacySettings, pUserUserPrivacySettingsKey, pUserVerifyEmailCode, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCode, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCode, pUserVerifyResetPasswordEmailCodeKey };
|
package/dist/service.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{pContentAdsMatch as e,pContentAdsMatchKey as t}from"./service/advertisement.mjs";import{gCommunityGetCollectionInfo as n,gCommunityGetComments as r,gCommunityGetContentInfo as i,gCommunityGetContentList as a,gCommunityGetHotContentList as o,gCommunityGetSubscribedCollections as s,gCommunityGetUserCollections as c,gContentGetAdvertiseByCode as l,gContentGetAppChannelBlock as u,gContentGetAppChannelBlockData as d,gContentGetAppChannels as f,gContentGetAppComponent as p,gContentGetGuessYouLikeVideos as m,gContentGetHotVideoList as h,gContentGetRecommendSearchList as g,gContentGetRecommendVideoList as _,gContentGetVideoDetail as v,gContentGetVideoDetailByApi as y,gContentListVisibleFloatingBall as b,gContentProcessM3u8 as x,gInteractionCheckMutualFollow as S,gInteractionGetBrowseList as C,gInteractionGetContentDislikeList as w,gInteractionGetContentLikeList as T,gInteractionGetDislikeList as E,gInteractionGetFolder as D,gInteractionGetFolderStats as O,gInteractionGetFollowStats as k,gInteractionGetFollowerList as A,gInteractionGetFollowingContentList as j,gInteractionGetFollowingList as M,gInteractionGetFollowingUserUpdates as N,gInteractionGetLikeList as P,gInteractionListCollects as F,gInteractionListFolders as I,gUserGetGuestIdentity as L,gUserGetUserEditInfo as R,gUserGetUserInfo as z,gUserGetUserPrivacySettings as B,gUserViewUserInfo as V,pCommunityAddContentToCollection as H,pCommunityCreateCollection as U,pCommunityCreateComment as W,pCommunityDeleteCollection as G,pCommunityDeleteComment as K,pCommunityDeleteContent as q,pCommunityDislikeComment as J,pCommunityGetUploadPresignedURL as Y,pCommunityLikeComment as X,pCommunityMoveCollectionContent as Z,pCommunityPublishContent as Q,pCommunityRemoveContentFromCollection as $,pCommunitySearchCurAccountFollowingUsersInfo as ee,pCommunityShareContent as te,pCommunitySubscribeCollection as ne,pCommunityUpdateCollection as re,pCommunityUpdateContent as ie,pCommunityUploadMedia as ae,pContentBatchGetVideoDetail as oe,pContentGetNewstVideoList as se,pContentGetPopularVideoList as ce,pContentGetTopRatedVideoList as le,pInteractionAddCollect as ue,pInteractionBatchClearBrowse as de,pInteractionBatchDeleteCollects as fe,pInteractionBatchGetCommentLikeStatus as pe,pInteractionBatchGetFollowStats as me,pInteractionBatchGetLikeStatus as he,pInteractionBatchQueryContentInteractions as ge,pInteractionBrowse as _e,pInteractionCancelDislike as ve,pInteractionCancelLike as ye,pInteractionCheckCollect as be,pInteractionCheckFollow as xe,pInteractionClearBrowseHistory as Se,pInteractionCreateFolder as Ce,pInteractionDeleteBrowseRecord as we,pInteractionDeleteFolder as Te,pInteractionDislike as Ee,pInteractionDislikeComment as De,pInteractionFollow as Oe,pInteractionLike as ke,pInteractionLikeComment as Ae,pInteractionMoveCollects as je,pInteractionRemoveCollect as Me,pInteractionTrackEventsBatch as Ne,pInteractionUnfollow as Pe,pInteractionUnifiedBatchLikeDislike as Fe,pInteractionUpdateFolder as Ie,pInteractionUpdateFollowingContentUpdateTime as Le,pUserEditUserInfo as Re,pUserLogin as ze,pUserRegister as Be,pUserRegisterByVerifyEmailCode as Ve,pUserResetForgetPassword as He,pUserResetPassword as Ue,pUserSendEmailCode as We,pUserSendForgetEmailCode as Ge,pUserSendResetPasswordEmailCode as Ke,pUserUploadUserBgImage as qe,pUserUserFeedback as Je,pUserUserPrivacySettings as Ye,pUserVerifyEmailCode as Xe,pUserVerifyForgetEmailCode as Ze,pUserVerifyResetPasswordEmailCode as Qe}from"./service/generated/client.mjs";import{createQueryKey as $e,gCommunityGetCollectionInfoKey as et,gCommunityGetCommentsKey as tt,gCommunityGetContentInfoKey as nt,gCommunityGetContentListKey as rt,gCommunityGetHotContentListKey as it,gCommunityGetSubscribedCollectionsKey as at,gCommunityGetUserCollectionsKey as ot,gContentGetAdvertiseByCodeKey as st,gContentGetAppChannelBlockDataKey as ct,gContentGetAppChannelBlockKey as lt,gContentGetAppChannelsKey as ut,gContentGetAppComponentKey as dt,gContentGetGuessYouLikeVideosKey as ft,gContentGetHotVideoListKey as pt,gContentGetRecommendSearchListKey as mt,gContentGetRecommendVideoListKey as ht,gContentGetVideoDetailByApiKey as gt,gContentGetVideoDetailKey as _t,gContentListVisibleFloatingBallKey as vt,gContentProcessM3u8Key as yt,gInteractionCheckMutualFollowKey as bt,gInteractionGetBrowseListKey as xt,gInteractionGetContentDislikeListKey as St,gInteractionGetContentLikeListKey as Ct,gInteractionGetDislikeListKey as wt,gInteractionGetFolderKey as Tt,gInteractionGetFolderStatsKey as Et,gInteractionGetFollowStatsKey as Dt,gInteractionGetFollowerListKey as Ot,gInteractionGetFollowingContentListKey as kt,gInteractionGetFollowingListKey as At,gInteractionGetFollowingUserUpdatesKey as jt,gInteractionGetLikeListKey as Mt,gInteractionListCollectsKey as Nt,gInteractionListFoldersKey as Pt,gUserGetGuestIdentityKey as Ft,gUserGetUserEditInfoKey as It,gUserGetUserInfoKey as Lt,gUserGetUserPrivacySettingsKey as Rt,gUserViewUserInfoKey as zt,pCommunityAddContentToCollectionKey as Bt,pCommunityCreateCollectionKey as Vt,pCommunityCreateCommentKey as Ht,pCommunityDeleteCollectionKey as Ut,pCommunityDeleteCommentKey as Wt,pCommunityDeleteContentKey as Gt,pCommunityDislikeCommentKey as Kt,pCommunityGetUploadPresignedURLKey as qt,pCommunityLikeCommentKey as Jt,pCommunityMoveCollectionContentKey as Yt,pCommunityPublishContentKey as Xt,pCommunityRemoveContentFromCollectionKey as Zt,pCommunitySearchCurAccountFollowingUsersInfoKey as Qt,pCommunityShareContentKey as $t,pCommunitySubscribeCollectionKey as en,pCommunityUpdateCollectionKey as tn,pCommunityUpdateContentKey as nn,pCommunityUploadMediaKey as rn,pContentBatchGetVideoDetailKey as an,pContentGetNewstVideoListKey as on,pContentGetPopularVideoListKey as sn,pContentGetTopRatedVideoListKey as cn,pInteractionAddCollectKey as ln,pInteractionBatchClearBrowseKey as un,pInteractionBatchDeleteCollectsKey as dn,pInteractionBatchGetCommentLikeStatusKey as fn,pInteractionBatchGetFollowStatsKey as pn,pInteractionBatchGetLikeStatusKey as mn,pInteractionBatchQueryContentInteractionsKey as hn,pInteractionBrowseKey as gn,pInteractionCancelDislikeKey as _n,pInteractionCancelLikeKey as vn,pInteractionCheckCollectKey as yn,pInteractionCheckFollowKey as bn,pInteractionClearBrowseHistoryKey as xn,pInteractionCreateFolderKey as Sn,pInteractionDeleteBrowseRecordKey as Cn,pInteractionDeleteFolderKey as wn,pInteractionDislikeCommentKey as Tn,pInteractionDislikeKey as En,pInteractionFollowKey as Dn,pInteractionLikeCommentKey as On,pInteractionLikeKey as kn,pInteractionMoveCollectsKey as An,pInteractionRemoveCollectKey as jn,pInteractionTrackEventsBatchKey as Mn,pInteractionUnfollowKey as Nn,pInteractionUnifiedBatchLikeDislikeKey as Pn,pInteractionUpdateFolderKey as Fn,pInteractionUpdateFollowingContentUpdateTimeKey as In,pUserEditUserInfoKey as Ln,pUserLoginKey as Rn,pUserRegisterByVerifyEmailCodeKey as zn,pUserRegisterKey as Bn,pUserResetForgetPasswordKey as Vn,pUserResetPasswordKey as Hn,pUserSendEmailCodeKey as Un,pUserSendForgetEmailCodeKey as Wn,pUserSendResetPasswordEmailCodeKey as Gn,pUserUploadUserBgImageKey as Kn,pUserUserFeedbackKey as qn,pUserUserPrivacySettingsKey as Jn,pUserVerifyEmailCodeKey as Yn,pUserVerifyForgetEmailCodeKey as Xn,pUserVerifyResetPasswordEmailCodeKey as Zn}from"./service/generated/tanstack.mjs";import{pUserRegisterByVerifyEmailCodeCompat as Qn}from"./service/register-by-verify-email-code.mjs";export{$e as createQueryKey,n as gCommunityGetCollectionInfo,et as gCommunityGetCollectionInfoKey,r as gCommunityGetComments,tt as gCommunityGetCommentsKey,i as gCommunityGetContentInfo,nt as gCommunityGetContentInfoKey,a as gCommunityGetContentList,rt as gCommunityGetContentListKey,o as gCommunityGetHotContentList,it as gCommunityGetHotContentListKey,s as gCommunityGetSubscribedCollections,at as gCommunityGetSubscribedCollectionsKey,c as gCommunityGetUserCollections,ot as gCommunityGetUserCollectionsKey,l as gContentGetAdvertiseByCode,st as gContentGetAdvertiseByCodeKey,u as gContentGetAppChannelBlock,d as gContentGetAppChannelBlockData,ct as gContentGetAppChannelBlockDataKey,lt as gContentGetAppChannelBlockKey,f as gContentGetAppChannels,ut as gContentGetAppChannelsKey,p as gContentGetAppComponent,dt as gContentGetAppComponentKey,m as gContentGetGuessYouLikeVideos,ft as gContentGetGuessYouLikeVideosKey,h as gContentGetHotVideoList,pt as gContentGetHotVideoListKey,g as gContentGetRecommendSearchList,mt as gContentGetRecommendSearchListKey,_ as gContentGetRecommendVideoList,ht as gContentGetRecommendVideoListKey,v as gContentGetVideoDetail,y as gContentGetVideoDetailByApi,gt as gContentGetVideoDetailByApiKey,_t as gContentGetVideoDetailKey,b as gContentListVisibleFloatingBall,vt as gContentListVisibleFloatingBallKey,x as gContentProcessM3u8,yt as gContentProcessM3u8Key,S as gInteractionCheckMutualFollow,bt as gInteractionCheckMutualFollowKey,C as gInteractionGetBrowseList,xt as gInteractionGetBrowseListKey,w as gInteractionGetContentDislikeList,St as gInteractionGetContentDislikeListKey,T as gInteractionGetContentLikeList,Ct as gInteractionGetContentLikeListKey,E as gInteractionGetDislikeList,wt as gInteractionGetDislikeListKey,D as gInteractionGetFolder,Tt as gInteractionGetFolderKey,O as gInteractionGetFolderStats,Et as gInteractionGetFolderStatsKey,k as gInteractionGetFollowStats,Dt as gInteractionGetFollowStatsKey,A as gInteractionGetFollowerList,Ot as gInteractionGetFollowerListKey,j as gInteractionGetFollowingContentList,kt as gInteractionGetFollowingContentListKey,M as gInteractionGetFollowingList,At as gInteractionGetFollowingListKey,N as gInteractionGetFollowingUserUpdates,jt as gInteractionGetFollowingUserUpdatesKey,P as gInteractionGetLikeList,Mt as gInteractionGetLikeListKey,F as gInteractionListCollects,Nt as gInteractionListCollectsKey,I as gInteractionListFolders,Pt as gInteractionListFoldersKey,L as gUserGetGuestIdentity,Ft as gUserGetGuestIdentityKey,R as gUserGetUserEditInfo,It as gUserGetUserEditInfoKey,z as gUserGetUserInfo,Lt as gUserGetUserInfoKey,B as gUserGetUserPrivacySettings,Rt as gUserGetUserPrivacySettingsKey,V as gUserViewUserInfo,zt as gUserViewUserInfoKey,H as pCommunityAddContentToCollection,Bt as pCommunityAddContentToCollectionKey,U as pCommunityCreateCollection,Vt as pCommunityCreateCollectionKey,W as pCommunityCreateComment,Ht as pCommunityCreateCommentKey,G as pCommunityDeleteCollection,Ut as pCommunityDeleteCollectionKey,K as pCommunityDeleteComment,Wt as pCommunityDeleteCommentKey,q as pCommunityDeleteContent,Gt as pCommunityDeleteContentKey,J as pCommunityDislikeComment,Kt as pCommunityDislikeCommentKey,Y as pCommunityGetUploadPresignedURL,qt as pCommunityGetUploadPresignedURLKey,X as pCommunityLikeComment,Jt as pCommunityLikeCommentKey,Z as pCommunityMoveCollectionContent,Yt as pCommunityMoveCollectionContentKey,Q as pCommunityPublishContent,Xt as pCommunityPublishContentKey,$ as pCommunityRemoveContentFromCollection,Zt as pCommunityRemoveContentFromCollectionKey,ee as pCommunitySearchCurAccountFollowingUsersInfo,Qt as pCommunitySearchCurAccountFollowingUsersInfoKey,te as pCommunityShareContent,$t as pCommunityShareContentKey,ne as pCommunitySubscribeCollection,en as pCommunitySubscribeCollectionKey,re as pCommunityUpdateCollection,tn as pCommunityUpdateCollectionKey,ie as pCommunityUpdateContent,nn as pCommunityUpdateContentKey,ae as pCommunityUploadMedia,rn as pCommunityUploadMediaKey,e as pContentAdsMatch,t as pContentAdsMatchKey,oe as pContentBatchGetVideoDetail,an as pContentBatchGetVideoDetailKey,se as pContentGetNewstVideoList,on as pContentGetNewstVideoListKey,ce as pContentGetPopularVideoList,sn as pContentGetPopularVideoListKey,le as pContentGetTopRatedVideoList,cn as pContentGetTopRatedVideoListKey,ue as pInteractionAddCollect,ln as pInteractionAddCollectKey,de as pInteractionBatchClearBrowse,un as pInteractionBatchClearBrowseKey,fe as pInteractionBatchDeleteCollects,dn as pInteractionBatchDeleteCollectsKey,pe as pInteractionBatchGetCommentLikeStatus,fn as pInteractionBatchGetCommentLikeStatusKey,me as pInteractionBatchGetFollowStats,pn as pInteractionBatchGetFollowStatsKey,he as pInteractionBatchGetLikeStatus,mn as pInteractionBatchGetLikeStatusKey,ge as pInteractionBatchQueryContentInteractions,hn as pInteractionBatchQueryContentInteractionsKey,_e as pInteractionBrowse,gn as pInteractionBrowseKey,ve as pInteractionCancelDislike,_n as pInteractionCancelDislikeKey,ye as pInteractionCancelLike,vn as pInteractionCancelLikeKey,be as pInteractionCheckCollect,yn as pInteractionCheckCollectKey,xe as pInteractionCheckFollow,bn as pInteractionCheckFollowKey,Se as pInteractionClearBrowseHistory,xn as pInteractionClearBrowseHistoryKey,Ce as pInteractionCreateFolder,Sn as pInteractionCreateFolderKey,we as pInteractionDeleteBrowseRecord,Cn as pInteractionDeleteBrowseRecordKey,Te as pInteractionDeleteFolder,wn as pInteractionDeleteFolderKey,Ee as pInteractionDislike,De as pInteractionDislikeComment,Tn as pInteractionDislikeCommentKey,En as pInteractionDislikeKey,Oe as pInteractionFollow,Dn as pInteractionFollowKey,ke as pInteractionLike,Ae as pInteractionLikeComment,On as pInteractionLikeCommentKey,kn as pInteractionLikeKey,je as pInteractionMoveCollects,An as pInteractionMoveCollectsKey,Me as pInteractionRemoveCollect,jn as pInteractionRemoveCollectKey,Ne as pInteractionTrackEventsBatch,Mn as pInteractionTrackEventsBatchKey,Pe as pInteractionUnfollow,Nn as pInteractionUnfollowKey,Fe as pInteractionUnifiedBatchLikeDislike,Pn as pInteractionUnifiedBatchLikeDislikeKey,Ie as pInteractionUpdateFolder,Fn as pInteractionUpdateFolderKey,Le as pInteractionUpdateFollowingContentUpdateTime,In as pInteractionUpdateFollowingContentUpdateTimeKey,Re as pUserEditUserInfo,Ln as pUserEditUserInfoKey,ze as pUserLogin,Rn as pUserLoginKey,Be as pUserRegister,Ve as pUserRegisterByVerifyEmailCode,Qn as pUserRegisterByVerifyEmailCodeCompat,zn as pUserRegisterByVerifyEmailCodeKey,Bn as pUserRegisterKey,He as pUserResetForgetPassword,Vn as pUserResetForgetPasswordKey,Ue as pUserResetPassword,Hn as pUserResetPasswordKey,We as pUserSendEmailCode,Un as pUserSendEmailCodeKey,Ge as pUserSendForgetEmailCode,Wn as pUserSendForgetEmailCodeKey,Ke as pUserSendResetPasswordEmailCode,Gn as pUserSendResetPasswordEmailCodeKey,qe as pUserUploadUserBgImage,Kn as pUserUploadUserBgImageKey,Je as pUserUserFeedback,qn as pUserUserFeedbackKey,Ye as pUserUserPrivacySettings,Jn as pUserUserPrivacySettingsKey,Xe as pUserVerifyEmailCode,Yn as pUserVerifyEmailCodeKey,Ze as pUserVerifyForgetEmailCode,Xn as pUserVerifyForgetEmailCodeKey,Qe as pUserVerifyResetPasswordEmailCode,Zn as pUserVerifyResetPasswordEmailCodeKey};
|
|
2
|
+
import{gCommunityGetCollectionInfo as e,gCommunityGetComments as t,gCommunityGetContentInfo as n,gCommunityGetContentList as r,gCommunityGetHotContentList as i,gCommunityGetSubscribedCollections as a,gCommunityGetUserCollections as o,gContentGetAdvertiseByCode as s,gContentGetAppChannelBlock as c,gContentGetAppChannelBlockData as l,gContentGetAppChannels as u,gContentGetAppComponent as d,gContentGetGuessYouLikeVideos as f,gContentGetHotVideoList as p,gContentGetRecommendSearchList as m,gContentGetRecommendVideoList as h,gContentGetVideoDetail as g,gContentGetVideoDetailByApi as _,gContentListVisibleFloatingBall as v,gContentProcessM3u8 as y,gInteractionCheckMutualFollow as b,gInteractionGetBrowseList as x,gInteractionGetContentDislikeList as S,gInteractionGetContentLikeList as C,gInteractionGetDislikeList as w,gInteractionGetFolder as T,gInteractionGetFolderStats as E,gInteractionGetFollowStats as D,gInteractionGetFollowerList as O,gInteractionGetFollowingContentList as k,gInteractionGetFollowingList as A,gInteractionGetFollowingUserUpdates as j,gInteractionGetLikeList as M,gInteractionListCollects as N,gInteractionListFolders as P,gUserGetGuestIdentity as F,gUserGetUserEditInfo as I,gUserGetUserInfo as L,gUserGetUserPrivacySettings as R,gUserViewUserInfo as z,pCommunityAddContentToCollection as B,pCommunityCreateCollection as V,pCommunityCreateComment as H,pCommunityDeleteCollection as U,pCommunityDeleteComment as W,pCommunityDeleteContent as G,pCommunityDislikeComment as K,pCommunityGetUploadPresignedURL as q,pCommunityLikeComment as J,pCommunityMoveCollectionContent as Y,pCommunityPublishContent as X,pCommunityRemoveContentFromCollection as Z,pCommunitySearchCurAccountFollowingUsersInfo as Q,pCommunityShareContent as $,pCommunitySubscribeCollection as ee,pCommunityUpdateCollection as te,pCommunityUpdateContent as ne,pCommunityUploadMedia as re,pContentBatchGetVideoDetail as ie,pContentGetNewstVideoList as ae,pContentGetPopularVideoList as oe,pContentGetTopRatedVideoList as se,pInteractionAddCollect as ce,pInteractionBatchClearBrowse as le,pInteractionBatchDeleteCollects as ue,pInteractionBatchGetCommentLikeStatus as de,pInteractionBatchGetFollowStats as fe,pInteractionBatchGetLikeStatus as pe,pInteractionBatchQueryContentInteractions as me,pInteractionBrowse as he,pInteractionCancelDislike as ge,pInteractionCancelLike as _e,pInteractionCheckCollect as ve,pInteractionCheckFollow as ye,pInteractionClearBrowseHistory as be,pInteractionCreateFolder as xe,pInteractionDeleteBrowseRecord as Se,pInteractionDeleteFolder as Ce,pInteractionDislike as we,pInteractionDislikeComment as Te,pInteractionFollow as Ee,pInteractionLike as De,pInteractionLikeComment as Oe,pInteractionMoveCollects as ke,pInteractionRemoveCollect as Ae,pInteractionTrackEventsBatch as je,pInteractionUnfollow as Me,pInteractionUnifiedBatchLikeDislike as Ne,pInteractionUpdateFolder as Pe,pInteractionUpdateFollowingContentUpdateTime as Fe,pUserEditUserInfo as Ie,pUserLogin as Le,pUserRegister as Re,pUserRegisterByVerifyEmailCode as ze,pUserResetForgetPassword as Be,pUserResetPassword as Ve,pUserSendEmailCode as He,pUserSendForgetEmailCode as Ue,pUserSendResetPasswordEmailCode as We,pUserUploadUserBgImage as Ge,pUserUserFeedback as Ke,pUserUserPrivacySettings as qe,pUserVerifyEmailCode as Je,pUserVerifyForgetEmailCode as Ye,pUserVerifyResetPasswordEmailCode as Xe}from"./service/generated/client.mjs";import{createQueryKey as Ze,gCommunityGetCollectionInfoKey as Qe,gCommunityGetCommentsKey as $e,gCommunityGetContentInfoKey as et,gCommunityGetContentListKey as tt,gCommunityGetHotContentListKey as nt,gCommunityGetSubscribedCollectionsKey as rt,gCommunityGetUserCollectionsKey as it,gContentGetAdvertiseByCodeKey as at,gContentGetAppChannelBlockDataKey as ot,gContentGetAppChannelBlockKey as st,gContentGetAppChannelsKey as ct,gContentGetAppComponentKey as lt,gContentGetGuessYouLikeVideosKey as ut,gContentGetHotVideoListKey as dt,gContentGetRecommendSearchListKey as ft,gContentGetRecommendVideoListKey as pt,gContentGetVideoDetailByApiKey as mt,gContentGetVideoDetailKey as ht,gContentListVisibleFloatingBallKey as gt,gContentProcessM3u8Key as _t,gInteractionCheckMutualFollowKey as vt,gInteractionGetBrowseListKey as yt,gInteractionGetContentDislikeListKey as bt,gInteractionGetContentLikeListKey as xt,gInteractionGetDislikeListKey as St,gInteractionGetFolderKey as Ct,gInteractionGetFolderStatsKey as wt,gInteractionGetFollowStatsKey as Tt,gInteractionGetFollowerListKey as Et,gInteractionGetFollowingContentListKey as Dt,gInteractionGetFollowingListKey as Ot,gInteractionGetFollowingUserUpdatesKey as kt,gInteractionGetLikeListKey as At,gInteractionListCollectsKey as jt,gInteractionListFoldersKey as Mt,gUserGetGuestIdentityKey as Nt,gUserGetUserEditInfoKey as Pt,gUserGetUserInfoKey as Ft,gUserGetUserPrivacySettingsKey as It,gUserViewUserInfoKey as Lt,pCommunityAddContentToCollectionKey as Rt,pCommunityCreateCollectionKey as zt,pCommunityCreateCommentKey as Bt,pCommunityDeleteCollectionKey as Vt,pCommunityDeleteCommentKey as Ht,pCommunityDeleteContentKey as Ut,pCommunityDislikeCommentKey as Wt,pCommunityGetUploadPresignedURLKey as Gt,pCommunityLikeCommentKey as Kt,pCommunityMoveCollectionContentKey as qt,pCommunityPublishContentKey as Jt,pCommunityRemoveContentFromCollectionKey as Yt,pCommunitySearchCurAccountFollowingUsersInfoKey as Xt,pCommunityShareContentKey as Zt,pCommunitySubscribeCollectionKey as Qt,pCommunityUpdateCollectionKey as $t,pCommunityUpdateContentKey as en,pCommunityUploadMediaKey as tn,pContentBatchGetVideoDetailKey as nn,pContentGetNewstVideoListKey as rn,pContentGetPopularVideoListKey as an,pContentGetTopRatedVideoListKey as on,pInteractionAddCollectKey as sn,pInteractionBatchClearBrowseKey as cn,pInteractionBatchDeleteCollectsKey as ln,pInteractionBatchGetCommentLikeStatusKey as un,pInteractionBatchGetFollowStatsKey as dn,pInteractionBatchGetLikeStatusKey as fn,pInteractionBatchQueryContentInteractionsKey as pn,pInteractionBrowseKey as mn,pInteractionCancelDislikeKey as hn,pInteractionCancelLikeKey as gn,pInteractionCheckCollectKey as _n,pInteractionCheckFollowKey as vn,pInteractionClearBrowseHistoryKey as yn,pInteractionCreateFolderKey as bn,pInteractionDeleteBrowseRecordKey as xn,pInteractionDeleteFolderKey as Sn,pInteractionDislikeCommentKey as Cn,pInteractionDislikeKey as wn,pInteractionFollowKey as Tn,pInteractionLikeCommentKey as En,pInteractionLikeKey as Dn,pInteractionMoveCollectsKey as On,pInteractionRemoveCollectKey as kn,pInteractionTrackEventsBatchKey as An,pInteractionUnfollowKey as jn,pInteractionUnifiedBatchLikeDislikeKey as Mn,pInteractionUpdateFolderKey as Nn,pInteractionUpdateFollowingContentUpdateTimeKey as Pn,pUserEditUserInfoKey as Fn,pUserLoginKey as In,pUserRegisterByVerifyEmailCodeKey as Ln,pUserRegisterKey as Rn,pUserResetForgetPasswordKey as zn,pUserResetPasswordKey as Bn,pUserSendEmailCodeKey as Vn,pUserSendForgetEmailCodeKey as Hn,pUserSendResetPasswordEmailCodeKey as Un,pUserUploadUserBgImageKey as Wn,pUserUserFeedbackKey as Gn,pUserUserPrivacySettingsKey as Kn,pUserVerifyEmailCodeKey as qn,pUserVerifyForgetEmailCodeKey as Jn,pUserVerifyResetPasswordEmailCodeKey as Yn}from"./service/generated/tanstack.mjs";import{pUserRegisterByVerifyEmailCodeCompat as Xn}from"./service/register-by-verify-email-code.mjs";export{Ze as createQueryKey,e as gCommunityGetCollectionInfo,Qe as gCommunityGetCollectionInfoKey,t as gCommunityGetComments,$e as gCommunityGetCommentsKey,n as gCommunityGetContentInfo,et as gCommunityGetContentInfoKey,r as gCommunityGetContentList,tt as gCommunityGetContentListKey,i as gCommunityGetHotContentList,nt as gCommunityGetHotContentListKey,a as gCommunityGetSubscribedCollections,rt as gCommunityGetSubscribedCollectionsKey,o as gCommunityGetUserCollections,it as gCommunityGetUserCollectionsKey,s as gContentGetAdvertiseByCode,at as gContentGetAdvertiseByCodeKey,c as gContentGetAppChannelBlock,l as gContentGetAppChannelBlockData,ot as gContentGetAppChannelBlockDataKey,st as gContentGetAppChannelBlockKey,u as gContentGetAppChannels,ct as gContentGetAppChannelsKey,d as gContentGetAppComponent,lt as gContentGetAppComponentKey,f as gContentGetGuessYouLikeVideos,ut as gContentGetGuessYouLikeVideosKey,p as gContentGetHotVideoList,dt as gContentGetHotVideoListKey,m as gContentGetRecommendSearchList,ft as gContentGetRecommendSearchListKey,h as gContentGetRecommendVideoList,pt as gContentGetRecommendVideoListKey,g as gContentGetVideoDetail,_ as gContentGetVideoDetailByApi,mt as gContentGetVideoDetailByApiKey,ht as gContentGetVideoDetailKey,v as gContentListVisibleFloatingBall,gt as gContentListVisibleFloatingBallKey,y as gContentProcessM3u8,_t as gContentProcessM3u8Key,b as gInteractionCheckMutualFollow,vt as gInteractionCheckMutualFollowKey,x as gInteractionGetBrowseList,yt as gInteractionGetBrowseListKey,S as gInteractionGetContentDislikeList,bt as gInteractionGetContentDislikeListKey,C as gInteractionGetContentLikeList,xt as gInteractionGetContentLikeListKey,w as gInteractionGetDislikeList,St as gInteractionGetDislikeListKey,T as gInteractionGetFolder,Ct as gInteractionGetFolderKey,E as gInteractionGetFolderStats,wt as gInteractionGetFolderStatsKey,D as gInteractionGetFollowStats,Tt as gInteractionGetFollowStatsKey,O as gInteractionGetFollowerList,Et as gInteractionGetFollowerListKey,k as gInteractionGetFollowingContentList,Dt as gInteractionGetFollowingContentListKey,A as gInteractionGetFollowingList,Ot as gInteractionGetFollowingListKey,j as gInteractionGetFollowingUserUpdates,kt as gInteractionGetFollowingUserUpdatesKey,M as gInteractionGetLikeList,At as gInteractionGetLikeListKey,N as gInteractionListCollects,jt as gInteractionListCollectsKey,P as gInteractionListFolders,Mt as gInteractionListFoldersKey,F as gUserGetGuestIdentity,Nt as gUserGetGuestIdentityKey,I as gUserGetUserEditInfo,Pt as gUserGetUserEditInfoKey,L as gUserGetUserInfo,Ft as gUserGetUserInfoKey,R as gUserGetUserPrivacySettings,It as gUserGetUserPrivacySettingsKey,z as gUserViewUserInfo,Lt as gUserViewUserInfoKey,B as pCommunityAddContentToCollection,Rt as pCommunityAddContentToCollectionKey,V as pCommunityCreateCollection,zt as pCommunityCreateCollectionKey,H as pCommunityCreateComment,Bt as pCommunityCreateCommentKey,U as pCommunityDeleteCollection,Vt as pCommunityDeleteCollectionKey,W as pCommunityDeleteComment,Ht as pCommunityDeleteCommentKey,G as pCommunityDeleteContent,Ut as pCommunityDeleteContentKey,K as pCommunityDislikeComment,Wt as pCommunityDislikeCommentKey,q as pCommunityGetUploadPresignedURL,Gt as pCommunityGetUploadPresignedURLKey,J as pCommunityLikeComment,Kt as pCommunityLikeCommentKey,Y as pCommunityMoveCollectionContent,qt as pCommunityMoveCollectionContentKey,X as pCommunityPublishContent,Jt as pCommunityPublishContentKey,Z as pCommunityRemoveContentFromCollection,Yt as pCommunityRemoveContentFromCollectionKey,Q as pCommunitySearchCurAccountFollowingUsersInfo,Xt as pCommunitySearchCurAccountFollowingUsersInfoKey,$ as pCommunityShareContent,Zt as pCommunityShareContentKey,ee as pCommunitySubscribeCollection,Qt as pCommunitySubscribeCollectionKey,te as pCommunityUpdateCollection,$t as pCommunityUpdateCollectionKey,ne as pCommunityUpdateContent,en as pCommunityUpdateContentKey,re as pCommunityUploadMedia,tn as pCommunityUploadMediaKey,ie as pContentBatchGetVideoDetail,nn as pContentBatchGetVideoDetailKey,ae as pContentGetNewstVideoList,rn as pContentGetNewstVideoListKey,oe as pContentGetPopularVideoList,an as pContentGetPopularVideoListKey,se as pContentGetTopRatedVideoList,on as pContentGetTopRatedVideoListKey,ce as pInteractionAddCollect,sn as pInteractionAddCollectKey,le as pInteractionBatchClearBrowse,cn as pInteractionBatchClearBrowseKey,ue as pInteractionBatchDeleteCollects,ln as pInteractionBatchDeleteCollectsKey,de as pInteractionBatchGetCommentLikeStatus,un as pInteractionBatchGetCommentLikeStatusKey,fe as pInteractionBatchGetFollowStats,dn as pInteractionBatchGetFollowStatsKey,pe as pInteractionBatchGetLikeStatus,fn as pInteractionBatchGetLikeStatusKey,me as pInteractionBatchQueryContentInteractions,pn as pInteractionBatchQueryContentInteractionsKey,he as pInteractionBrowse,mn as pInteractionBrowseKey,ge as pInteractionCancelDislike,hn as pInteractionCancelDislikeKey,_e as pInteractionCancelLike,gn as pInteractionCancelLikeKey,ve as pInteractionCheckCollect,_n as pInteractionCheckCollectKey,ye as pInteractionCheckFollow,vn as pInteractionCheckFollowKey,be as pInteractionClearBrowseHistory,yn as pInteractionClearBrowseHistoryKey,xe as pInteractionCreateFolder,bn as pInteractionCreateFolderKey,Se as pInteractionDeleteBrowseRecord,xn as pInteractionDeleteBrowseRecordKey,Ce as pInteractionDeleteFolder,Sn as pInteractionDeleteFolderKey,we as pInteractionDislike,Te as pInteractionDislikeComment,Cn as pInteractionDislikeCommentKey,wn as pInteractionDislikeKey,Ee as pInteractionFollow,Tn as pInteractionFollowKey,De as pInteractionLike,Oe as pInteractionLikeComment,En as pInteractionLikeCommentKey,Dn as pInteractionLikeKey,ke as pInteractionMoveCollects,On as pInteractionMoveCollectsKey,Ae as pInteractionRemoveCollect,kn as pInteractionRemoveCollectKey,je as pInteractionTrackEventsBatch,An as pInteractionTrackEventsBatchKey,Me as pInteractionUnfollow,jn as pInteractionUnfollowKey,Ne as pInteractionUnifiedBatchLikeDislike,Mn as pInteractionUnifiedBatchLikeDislikeKey,Pe as pInteractionUpdateFolder,Nn as pInteractionUpdateFolderKey,Fe as pInteractionUpdateFollowingContentUpdateTime,Pn as pInteractionUpdateFollowingContentUpdateTimeKey,Ie as pUserEditUserInfo,Fn as pUserEditUserInfoKey,Le as pUserLogin,In as pUserLoginKey,Re as pUserRegister,ze as pUserRegisterByVerifyEmailCode,Xn as pUserRegisterByVerifyEmailCodeCompat,Ln as pUserRegisterByVerifyEmailCodeKey,Rn as pUserRegisterKey,Be as pUserResetForgetPassword,zn as pUserResetForgetPasswordKey,Ve as pUserResetPassword,Bn as pUserResetPasswordKey,He as pUserSendEmailCode,Vn as pUserSendEmailCodeKey,Ue as pUserSendForgetEmailCode,Hn as pUserSendForgetEmailCodeKey,We as pUserSendResetPasswordEmailCode,Un as pUserSendResetPasswordEmailCodeKey,Ge as pUserUploadUserBgImage,Wn as pUserUploadUserBgImageKey,Ke as pUserUserFeedback,Gn as pUserUserFeedbackKey,qe as pUserUserPrivacySettings,Kn as pUserUserPrivacySettingsKey,Je as pUserVerifyEmailCode,qn as pUserVerifyEmailCodeKey,Ye as pUserVerifyForgetEmailCode,Jn as pUserVerifyForgetEmailCodeKey,Xe as pUserVerifyResetPasswordEmailCode,Yn as pUserVerifyResetPasswordEmailCodeKey};
|
|
@@ -6,10 +6,10 @@ type InspectorFieldOption<T> = Omit<T, 'type'>;
|
|
|
6
6
|
declare const stringInspectorFieldSchema: z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"string">;
|
|
8
8
|
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
select: "select";
|
|
9
10
|
input: "input";
|
|
10
11
|
textarea: "textarea";
|
|
11
12
|
color: "color";
|
|
12
|
-
select: "select";
|
|
13
13
|
}>>;
|
|
14
14
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
15
15
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -68,10 +68,10 @@ type ObjectInspectorFieldOption = InspectorFieldOption<z.infer<typeof objectInsp
|
|
|
68
68
|
declare const componentInspectorFieldMetaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
69
|
type: z.ZodLiteral<"string">;
|
|
70
70
|
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
select: "select";
|
|
71
72
|
input: "input";
|
|
72
73
|
textarea: "textarea";
|
|
73
74
|
color: "color";
|
|
74
|
-
select: "select";
|
|
75
75
|
}>>;
|
|
76
76
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
77
77
|
label: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { BannerAdProps } from "./banner-ad/schema.mjs";
|
|
3
|
-
import { FloatingAdItem } from "./floating-ad/schema.mjs";
|
|
4
|
-
import { IconAdItem } from "./icon-ad/schema.mjs";
|
|
5
|
-
import { TextAdItem } from "./text-ad/schema.mjs";
|
|
6
|
-
import { AdsMatchMaterial, AdsMatchRequest, AdsMatchResponseData } from "../../../../service/advertisement.mjs";
|
|
7
|
-
|
|
8
|
-
//#region components/biz/business/advertisement/ad-match.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* 广告扩展字段。
|
|
11
|
-
*/
|
|
12
|
-
interface AdsMatchExtData {
|
|
13
|
-
/**
|
|
14
|
-
* 通用标题。
|
|
15
|
-
*/
|
|
16
|
-
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 通用按钮文案。
|
|
19
|
-
*/
|
|
20
|
-
buttonText?: string;
|
|
21
|
-
/**
|
|
22
|
-
* 轮播切换时间。
|
|
23
|
-
*/
|
|
24
|
-
switchInterval?: number;
|
|
25
|
-
/**
|
|
26
|
-
* 样式尺寸。
|
|
27
|
-
*/
|
|
28
|
-
styleSize?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 展示数量。
|
|
31
|
-
*/
|
|
32
|
-
displayCount?: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 构建广告匹配请求体。
|
|
36
|
-
*
|
|
37
|
-
* 按项目现有约定:
|
|
38
|
-
* - 用户 ID 优先从显式入参获取,其次读取 cookie。
|
|
39
|
-
* - 设备 ID 优先从显式入参获取,其次在客户端读取本地设备标识。
|
|
40
|
-
*/
|
|
41
|
-
declare function buildAdsMatchRequest(input: Omit<AdsMatchRequest, 'userId' | 'deviceId'> & {
|
|
42
|
-
userId?: string;
|
|
43
|
-
deviceId?: string;
|
|
44
|
-
}): Promise<AdsMatchRequest>;
|
|
45
|
-
/**
|
|
46
|
-
* 获取广告请求使用的 appCode。
|
|
47
|
-
*/
|
|
48
|
-
declare function resolveAdsAppCode(appCode?: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* 解析广告扩展数据。
|
|
51
|
-
*/
|
|
52
|
-
declare function parseAdsMatchExtData(material?: AdsMatchMaterial | null): AdsMatchExtData;
|
|
53
|
-
/**
|
|
54
|
-
* 对素材按排序值升序排列。
|
|
55
|
-
*/
|
|
56
|
-
declare function sortAdsMatchMaterials(materials?: AdsMatchMaterial[] | null): AdsMatchMaterial[];
|
|
57
|
-
/**
|
|
58
|
-
* 判断当前响应是否命中有效广告。
|
|
59
|
-
*/
|
|
60
|
-
declare function hasMatchedAds(matchData?: AdsMatchResponseData | null): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* 获取首个有效素材。
|
|
63
|
-
*/
|
|
64
|
-
declare function getFirstMatchedMaterial(matchData?: AdsMatchResponseData | null): AdsMatchMaterial | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* 适配悬浮广告数据。
|
|
67
|
-
*/
|
|
68
|
-
declare function adaptFloatingAdItem(matchData?: AdsMatchResponseData | null): FloatingAdItem | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* 适配图标广告数据。
|
|
71
|
-
*/
|
|
72
|
-
declare function adaptIconAdProps(matchData?: AdsMatchResponseData | null): Pick<{
|
|
73
|
-
displayCount: number;
|
|
74
|
-
items: IconAdItem[];
|
|
75
|
-
}, 'displayCount' | 'items'>;
|
|
76
|
-
/**
|
|
77
|
-
* 适配文字广告数据。
|
|
78
|
-
*/
|
|
79
|
-
declare function adaptTextAdProps(matchData?: AdsMatchResponseData | null): Pick<{
|
|
80
|
-
displayCount?: number;
|
|
81
|
-
items: TextAdItem[];
|
|
82
|
-
}, 'displayCount' | 'items'>;
|
|
83
|
-
/**
|
|
84
|
-
* 适配 Banner 广告数据。
|
|
85
|
-
*/
|
|
86
|
-
declare function adaptBannerAdProps(matchData?: AdsMatchResponseData | null): Pick<BannerAdProps, 'displayCount' | 'switchInterval' | 'styleSize' | 'items'>;
|
|
87
|
-
/**
|
|
88
|
-
* 适配弹窗广告数据。
|
|
89
|
-
*/
|
|
90
|
-
declare function adaptPopupAdMaterials(matchData?: AdsMatchResponseData | null): {
|
|
91
|
-
id: string;
|
|
92
|
-
title: string;
|
|
93
|
-
jumpUrl: string;
|
|
94
|
-
materialUrl: string;
|
|
95
|
-
desc: string;
|
|
96
|
-
}[];
|
|
97
|
-
//#endregion
|
|
98
|
-
export { AdsMatchExtData, adaptBannerAdProps, adaptFloatingAdItem, adaptIconAdProps, adaptPopupAdMaterials, adaptTextAdProps, buildAdsMatchRequest, getFirstMatchedMaterial, hasMatchedAds, parseAdsMatchExtData, resolveAdsAppCode, sortAdsMatchMaterials };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{getCookie as e}from"../../../../utils/common.mjs";import{getOrCreateDeviceId as t}from"../../../../utils/device-id.mjs";const n=process.env.NEXT_PUBLIC_APP_CODE||`APP001`;async function r(n){let r=n.userId??await e(`userId`),i=n.deviceId??t();return{...n,userId:r||void 0,deviceId:i||void 0}}function i(e){return e?.trim()||n}function a(e){let t=e?.adExtData;if(!t)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch{return{}}}function o(e){return[...e??[]].sort((e,t)=>Number(e?.sort??0)-Number(t?.sort??0))}function s(e){return!!(e?.hit&&Array.isArray(e.materials)&&e.materials.length>0)}function c(e){return o(e?.materials).find(e=>!!(e?.advertiseIcon&&e?.advertiseUrl))}function l(e){let t=c(e);if(t)return{materialUrl:t.advertiseIcon||``,jumpUrl:t.advertiseUrl||``,name:t.advertiseName||``}}function u(e){let t=o(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl).map(e=>({title:a(e).title||e.advertiseName||``,icon:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,badgeText:`广告`})).filter(e=>e.title&&e.icon&&e.jumpUrl);return{displayCount:m(e?.config,t.length),items:t}}function d(e){let t=o(e?.materials).map(e=>({text:a(e).title||e.advertiseName||e.advertiseDesc||``,jumpUrl:e.advertiseUrl||``})).filter(e=>e.text);return{displayCount:m(e?.config,t.length),items:t}}function f(e){let t=o(e?.materials).filter(e=>e.advertiseIcon&&e.advertiseUrl),n=t.map(e=>{let t=a(e);return{coverUrl:e.advertiseIcon||``,jumpUrl:e.advertiseUrl||``,title:t.title||e.advertiseName||``}}).filter(e=>e.coverUrl&&e.jumpUrl);return{displayCount:m(e?.config,n.length),switchInterval:h(e?.config,t),styleSize:g(e?.config,t),items:n}}function p(e){return o(e?.materials).map(e=>{let t=a(e);return{id:e.advertiseCode||``,title:t.title||e.advertiseName||``,jumpUrl:e.advertiseUrl||``,materialUrl:e.advertiseIcon||``,desc:e.advertiseDesc||``}}).filter(e=>e.id&&e.materialUrl&&e.jumpUrl)}function m(e,t=0){let n=Number(e?.displayCount??t);return!Number.isFinite(n)||n<=0?t:Math.min(Math.floor(n),t)}function h(e,t){let n=a(t?.[0]),r=Number(e?.switchInterval??n.switchInterval??3e3);return!Number.isFinite(r)||r<=0?3e3:r}function g(e,t){let n=a(t?.[0]),r=String(e?.styleSize??n.styleSize??`large`);return r===`small`||r===`medium`||r===`large`?r:`large`}export{f as adaptBannerAdProps,l as adaptFloatingAdItem,u as adaptIconAdProps,p as adaptPopupAdMaterials,d as adaptTextAdProps,r as buildAdsMatchRequest,c as getFirstMatchedMaterial,s as hasMatchedAds,a as parseAdsMatchExtData,i as resolveAdsAppCode,o as sortAdsMatchMaterials};
|