1import{a as r,j as e,R as h}from"./vendor-react-mui-CbMtYrI_.js";import{j as y}from"./vendor-redux-ChMNVYEW.js";import{E as L}from"./useGetLinkChannelDetail-B5Nmcrmr.js";import{V}from"./icon-custom-membership-BCJA0iPJ.js";import{u as g,c as u,n as I,o as R,D,p as l,b as F,W as O}from"./index-BbkzVsq_.js";import{S as T}from"./search.constants-C1HJhIYJ.js";import{L as _}from"./search.enum-Dgaqf3Nw.js";import{D as w,F as x}from"./video.constants-BW2dRyZ6.js";import{F as j}from"./video.enums-COF6QV9W.js";import{V as A}from"./VideoList-VUR02sBi.js";import{S as P,c as C}from"./infinity-scroll-container-BChVGmep.js";import{u as k}from"./useQueryState-D3QOVCDQ.js";import{S as G}from"./SortFilter-DV8L6djB.js";import"./vendor-swiper-rACut1mu.js";import"./date-Sowxxg3_.js";import"./vendor-auth-DXBuXNeD.js";import"./vendor-router-UHhDiLAH.js";import"./CustomInfiniteScroll-MDwl819E.js";import"./EmptyData-CLKudkeG.js";import"./VideoItem-BKYRcP1K.js";import"./video.helpers-BSlnl_e_.js";import"./useCheckTagVideoFreePeriods-gqjuvRoR.js";import"./index-cf93iH-g.js";import"./BottomDialog-DZaowVNg.js";const K=()=>{const t=g(),[s,f]=k({sortType:_.LIVE_RELATED,filter:j.ALL}),n=u(i=>i.search.isSearching),o=u(i=>i.search.currentSearchKeyword),a=new URLSearchParams(window.location.search).get("keyword")||"",[d,c]=r.useState(!0),[m,S]=r.useState(!0),[E,p]=r.useState(!1);return r.useEffect(()=>{!m&&!n||(t(I()),c(!0),p(!1),t(R({fanclubGroupId:F(),params:{...s,keyword:o||a,contentType:l.VIDEO_VOD,perPage:w,page:D}})).then(y).catch(()=>p(!0)).finally(()=>{S(!1),t(O(!1)),c(!1)}))},[o,t,m,n,a,s]),e.jsxs(e.Fragment,{children:[e.jsx(G,{searchKeyword:o||a,queries:s,setQueries:f,filterOptions:x,sortOptions:T}),e.jsx(P,{className:C.container,children:d?e.jsx(V,{}):e.jsx(h.Fragment,{children:E?e.jsx(L,{size:"small",center:!0}):e.jsx(A,{searchKeyword:o||a,queries:s,contentType:l.VIDEO_VOD,isVideoResult:!0})},"videoSearchResult")})]})},ce=r.memo(K);export{ce as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.