1import{d as a,o as s,a6 as e,l as o,g as t,aN as l,di as n,O as r,a5 as u,F as d,h as i,f as c,ai as p,br as v}from"./stores-Bgdvgnu2.js";import{_ as m}from"./SongList-D6ezd94v.js";import"./cloud-BgNXQP7O.js";const g={class:"search-type"},f=a({__name:"songs",props:{keyword:{}},setup(a){const f=a,y=u(!0),k=u(!0),h=u(0),_=u(1),w=u([]),b=async()=>{k.value=!0;const a=await n(f.keyword,50,h.value,1);y.value=a.result?.hasMore||a.result?.songCount>h.value+50,_.value=a.result?.songCount;const s=r(a.result.songs);w.value=w.value?.concat(s),k.value=!1},j=()=>{y.value?(h.value+=50,b()):k.value=!1};return s(()=>{b()}),(s,n)=>{const r=m,u=p,f=v;return d(),e("div",g,[o(l,{name:"fade",mode:"out-in"},{default:t(()=>[i(_)>0?(d(),c(r,{key:0,data:i(w),loading:i(k),doubleClickAction:"add",loadMore:"",disabledSort:"",onReachBottom:j},null,8,["data","loading"])):(d(),c(f,{key:1,description:`徿±æï¼æªè½æ¾å°ä¸ ${a.keyword} ç¸å
³ç任使æ²`,style:{"margin-top":"60px"},size:"large"},{icon:t(()=>[o(u,{name:"SearchOff"})]),_:1},8,["description"]))]),_:1})])}}});export{f 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.