1import{P as d,ds as D,Q as E,R as I,r as o,u as S,Y as n,x as g,T as u,a4 as B}from"./entry.9411848f.js";import{a as C}from"./content.93ac8b97.js";import{z as R}from"./zb.7168bab2.js";import{c as _}from"./cloneDeep.3535a94f.js";const x=d(D,()=>{const i=I({page:1,fid:C.头æ¡,is_new:1,tag_ids:[]}),f=o([]),c=o([]),L=o(!1),l=o(),p=o(),A=o({title:""}),{appId:w}=S(),m=async(a=1)=>{try{const{data:t}=await n.getTopArticle(a);if(w.value===3||w.value===5)l.value=_(t.value);else{const e=t.value;l.value=[...(e==null?void 0:e.rows)??[]].slice(0,5)}g("å½åè½®ææ°æ®ï¼",t.value,l.value)}catch(t){g("è·åä¸»é¡µè½®ææ°æ®å¤±è´¥ï¼",t)}},y=async(a,t=!1,e=B.è·¨å¢å¤´æ¡)=>{try{const{data:r,error:s}=await n.getArticleDetailById(a,t,e);g("æç« 详æ
æ°æ®:",r.value,s.value);const h=r.value;p.value=h}catch(r){u("è·åæç« 失败ï¼",r)}},T=async()=>{try{const{data:a}=await R.getMorningList(1,10),t=a.value;t&&(t==null?void 0:t.rows.length)>0&&(A.value=t==null?void 0:t.rows[0])}catch{u("è·åæç« 失败ï¼",u)}},v=o(!1);return{params:i,loading:L,articleList:f,topArticleList:c,mainCarouselData:l,getMainCarouselData:m,articleDetailData:p,articleBelong:A,getArticleDetailById:y,getArticleBelong:T,getUgcArticleList:async(a=[],t,e)=>{t&&(i.tag_id=t),e&&e.length&&(i.tag_ids=e);const{data:r}=await n.getUgcArticleList(i),s=r.value;s!=null&&s.has_next?v.value=!1:v.value=!0,f.value=[...a,...(s==null?void 0:s.rows)??[]]},noMoreArticle:v,getNewTopArticleList:async()=>{var e;const{data:a}=await n.getNewTopArticleList(),t=a.value;((e=t==null?void 0:t.rows)==null?void 0:e.length)>0&&(c.value=t==null?void 0:t.rows,c.value.length>4&&(c.value=c.value.slice(0,4)))}}}),F=()=>E(x());export{x as a,F as u};
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.