1var D=Object.defineProperty,E=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var $=(n,t,a)=>t in n?D(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,w=(n,t)=>{for(var a in t||(t={}))W.call(t,a)&&$(n,a,t[a]);if(V)for(var a of V(t))Y.call(t,a)&&$(n,a,t[a]);return n},b=(n,t)=>E(n,U(t));var _=(n,t,a)=>new Promise((v,l)=>{var f=c=>{try{p(a.next(c))}catch(h){l(h)}},i=c=>{try{p(a.throw(c))}catch(h){l(h)}},p=c=>c.done?v(c.value):Promise.resolve(c.value).then(f,i);p((a=a.apply(n,t)).next())});import I from"./ArticleList.C9jCbtKa.js";import{B as q}from"./Button.Bcjn7RH5.js";import{d as G,u as H,r as y,a as J,s as O,j as Q,B as X,w as Z,o as m,c as k,f as u,p as A,C as P,A as d,z as C,e as o,t as g,m as ee,Y as te,g as ae}from"../index.CDox20tP.js";import{A as z}from"./ArticleListSkeleton.KuOOR8s1.js";import{_ as se}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./blog.KvJlHcUi.js";const re={class:"articles__container"},le={key:0,class:"article-list"},ne={key:1},oe={key:1,class:"article-list"},ie={class:"middle"},ue={class:"middle"},ce={class:"middle"},me={class:"ml"},de=G({__name:"ArticleList",setup(n){const t=H(),a=y(t.params.id),v=y(t.params.keyword),l=y(t.name),f=y(!0),i=y(1),p=J(),{get_kind_of_article_list:c,reset_article_list:h}=p,{ArticleInfo:L,nextFlag:N,isLoad:B,isMobile:M}=O(p),x=y(""),T=(s,e,r)=>s==="tag"&&e?`tag_${e}`:s==="author"&&e?`author_${e}`:s==="search"&&r?`search_${r}`:`${s}_default`,R=(s,e)=>{const r={kind:s,page_num:e};return s==="tag"?b(w({},r),{tag_id:Number(a.value)}):s==="author"?b(w({},r),{author_id:Number(a.value)}):s==="search"?b(w({},r),{search_string:v.value}):r},F=()=>_(this,null,function*(){const s=S(),e=R(s,i.value);try{const r=yield c(e,i.value);r.restored&&(i.value=r.lastPageNum,f.value=!1)}catch(r){console.error("Failed to get articles:",r)}finally{i.value++,f.value=!1}}),S=()=>l.value==="tagArticleList"?"tag":l.value==="authorArticleList"?"author":l.value==="searchArticleList"?"search":"",j=s=>_(this,null,function*(){try{if(i.value===1)return;if(!N.value){s.complete();return}const e=S(),r=R(e,i.value);yield c(r,i.value),i.value++}catch(e){s.error(e)}}),K=()=>_(this,null,function*(){const s=S(),e=T(s,s==="tag"||s==="author"?a.value:void 0,s==="search"?v.value:void 0);x.value!==e&&(x.value=e,i.value=1,yield F())});return Q(()=>_(this,null,function*(){h(),yield K()})),X(()=>{}),Z(()=>[t.name,t.params.id,t.params.keyword],()=>_(this,null,function*(){a.value=t.params.id,v.value=t.params.keyword,l.value=t.name,yield K()}),{immediate:!1}),(s,e)=>(m(),k("div",re,[u(M)?(m(),k("div",oe,[u(B)&&f.value?(m(),A(z,{key:0})):(m(),A(I,{key:1},P({"more-btn":d(()=>[e[4]||(e[4]=o("div",null,null,-1))]),_:2},[l.value=="tagArticleList"?{name:"series-title",fn:d(()=>[o("span",ie,"#"+g(u(L).tag_name),1)]),key:"0"}:void 0,l.value=="authorArticleList"?{name:"series-title",fn:d(()=>[o("span",ue,"by #"+g(u(L).pen_name),1)]),key:"1"}:void 0,l.value=="searchArticleList"?{name:"series-title",fn:d(()=>[o("p",ce,[e[3]||(e[3]=C("Search Results of ")),o("span",me," '"+g(v.value)+"'",1)])]),key:"2"}:void 0]),1024)),!(u(B)&&f.value)&&u(N)?(m(),A(u(te),{key:2,onInfinite:j,distance:1e3},{spinner:d(()=>e[5]||(e[5]=[o("span",{class:"dot"},null,-1),o("span",{class:"dot"},null,-1),o("span",{class:"dot"},null,-1)])),complete:d(()=>e[6]||(e[6]=[o("p",null,null,-1)])),_:1})):ae("",!0)])):(m(),k("div",le,[u(B)&&f.value?(m(),A(z,{key:0})):(m(),A(I,{key:1},P({"more-btn":d(()=>[u(N)?(m(),k("div",{key:0,class:"btn",onClick:F},[ee(q)])):(m(),k("div",ne))]),_:2},[l.value=="tagArticleList"?{name:"series-title",fn:d(()=>[e[0]||(e[0]=C(" Articles of ")),o("span",null,"#"+g(u(L).tag_name),1)]),key:"0"}:void 0,l.value=="authorArticleList"?{name:"series-title",fn:d(()=>[e[1]||(e[1]=C(" Written by ")),o("span",null,"#"+g(u(L).pen_name),1)]),key:"1"}:void 0,l.value=="searchArticleList"?{name:"series-title",fn:d(()=>[e[2]||(e[2]=C(" Search Results of ")),o("span",null,"'"+g(v.value)+"'",1)]),key:"2"}:void 0]),1024))]))]))}}),ke=se(de,[["__scopeId","data-v-3dbcac70"]]);export{ke 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.