1import{r as y,j as e,z as h}from"./vendor-react-BAPsjU3S.js";import{b as f}from"./vendor-query-CEq1LORh.js";import{kc as j,kd as v,ez as _,a1 as C,ke as k,ky as I,kg as N,b as P,b$ as w,iQ as F,x as L}from"./main-BT3GxRjs.js";import{u as Q}from"./useLiveADInfiniteQuery-BotHmwtA.js";import{u as z}from"./vendor-i18n-BvsFtJyE.js";import"./vendor-date-9lcy7a-1.js";import"./vendor-router-CShG477X.js";import"./vendor-utils-qhgP5WXb.js";import"./vendor-firebase-8ZGSFgHZ.js";import"./vendor-charts-BqSOdzsP.js";import"./vendor-editor-CBbJ40fq.js";import"./vendor-virtualized-DTebAlVP.js";import"./vendor-ui-CVkLAbry.js";import"./vendor-table-C-3wtMGU.js";import"./vendor-lottie-C1U3bXqh.js";import"./vendor-select-B_Z_voeu.js";import"./vendor-tradingview-BCsEWulr.js";import"./vendor-motion-p-kDCFrl.js";import"./vendor-webgl-8MiK7BZ-.js";function Z({sourceId:i,categoryName:a,isOriginalSource:d}){const p=f(),{t:o}=z(),{playingId:c,handleUpdatePlayingId:l}=j(),{data:m}=v(),{data:s,fetchNextPage:u,hasNextPage:n,isFetching:x}=Q(i),r=s==null?void 0:s.pages,b=_(async(t,g)=>{g.unobserve(t.target),n&&!x&&u()},{rootMargin:"500px 0px"});return y.useEffect(()=>()=>p.removeQueries({queryKey:C.social.ad(i).queryKey}),[]),e.jsxs(e.Fragment,{children:[r&&(r==null?void 0:r.length)>0?e.jsx(e.Fragment,{children:e.jsxs(E,{children:[r==null?void 0:r.map(t=>t.source.sourceType==="youtube"?e.jsx(k,{message:t,isPlaying:c===t.id,onPlay:()=>l(t.id),hideMoreIcon:!0},t.id):e.jsx(I,{message:t,isOriginalSource:d,hideMoreIcon:!0},t.id)),!n&&e.jsx(N,{})]})}):e.jsx(P,{title:e.jsx("p",{className:"mt-2 text-text-txt-04",children:o(m?"msg_no_data_feed":"msg_no_data_subscription")}),body:e.jsx("span",{children:o("live_no_data_description")}),action:e.jsx(w,{log:{event:"live_subscriptions_subscribe",params:{category:a}},children:e.jsx(F,{className:L("w-fit px-5 py-2","rounded-[30px] border border-line-line-03","font-semibold text-text-txt-04"),to:"/live/subscribe",children:o("btn_go_subscribe")})})}),e.jsx("div",{ref:b,style:{height:"1px"}})]})}const E=h.ul.withConfig({displayName:"Wrapper",componentId:"sc-1yzwg4a-0"})(["padding:16px 0;width:1000px;border:1px solid var(--line-line-02);border-radius:8px;overflow:hidden;box-sizing:border-box;& > div:last-child > a{border-bottom:none;}"]);export{Z 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.