import{T as y}from"./index-c512a091.js";import{d as m,u as p,e as l,E as k,f as t,Q as i,j as n,k as c,o as _,V as b}from"./index-9cbc925f.js";const j="_container_esdt2_1",h="_tools_esdt2_7",f="_tagWrap_esdt2_21",v="_tags_esdt2_25",x="_content_esdt2_28",I="_item_esdt2_32",B="_cover_esdt2_38",N="_itemImg_esdt2_55",E="_itemBg_esdt2_85",z="_itemName_esdt2_110",e={container:j,tools:h,tagWrap:f,tags:v,content:x,item:I,cover:B,itemImg:N,itemBg:E,itemName:z},C=[{name:"一年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879396909941.png"},{name:"一年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397066202.png"},{name:"一年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399237211.png"},{name:"一年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399268072.png"},{name:"二年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397152383.png"},{name:"二年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397257464.png"},{name:"三年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397333805.png"},{name:"三年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397403546.png"},{name:"四年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397449747.png"},{name:"四年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397477658.png"},{name:"三年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399375956.png"},{name:"四年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399407587.png"},{name:"四年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399431318.png"},{name:"五年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399462639.png"},{name:"五年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879397501719.png"},{name:"五年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793975222810.png"},{name:"六年级上册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793975447311.png"},{name:"六年级下册（简谱）",category:"1",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793975664712.png"},{name:"二年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399291733.png"},{name:"二年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399318924.png"},{name:"三年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/16879399348525.png"},{name:"五年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793994852610.png"},{name:"六年级上册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793995083811.png"},{name:"六年级下册",category:"2",src:"https://daya.ks3-cn-beijing.ksyuncs.com/168793995297612.png"}],D={list:C};function A(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!b(o)}const W=m({name:"XiaokuAi",setup(){const o=p(),a=l({tags:[{name:"全部",id:"0"},{name:"人教版",id:"1"},{name:"人音版",id:"2"}],tagIndex:"0",list:D.list}),u=k(()=>a.tagIndex==="0"?a.list:a.list.filter(r=>a.tagIndex===r.category));return()=>{let r;return t("div",{class:e.container},[t("div",{class:e.tools},[t("div",{class:e.tagWrap},[t("div",{class:e.tags},[t(i,{size:[24,12]},{default:()=>[t(n,{quaternary:!0,disabled:!0},{default:()=>[c("类型")]}),a.tags.map((s,d)=>t(n,{round:!0,secondary:a.tagIndex!==s.id,type:a.tagIndex===s.id?"primary":"default",class:[e.tag,a.tagIndex===s.id?e.active:""],onClick:()=>a.tagIndex=s.id},{default:()=>[s.name]}))]})]),t("div",{class:e.tags},[t(i,{size:[24,12]},{default:()=>[t(n,{quaternary:!0,disabled:!0},{default:()=>[c("学段")]}),t(n,{round:!0,secondary:!0,type:"default"},{default:()=>[c("小学")]}),t(n,{round:!0,secondary:!0,type:"default"},{default:()=>[c("初中")]}),t(n,{round:!0,secondary:!0,type:"default"},{default:()=>[c("高中")]})]})]),t("div",{class:e.tags},[t(i,{size:[24,12]},{default:()=>[t(n,{quaternary:!0,disabled:!0},{default:()=>[c("年级")]}),["一","二","三","四","五","六"].map((s,d)=>t(n,{secondary:!0,round:!0},{default:()=>[s,c("年级")]}))]})])]),t(y,{round:!0},null)]),t("div",{class:e.content},[t(i,{size:[50,40]},A(r=u.value.map((s,d)=>t("div",{class:e.item,key:`item-${d}`,onClick:()=>o.push({path:"/xiaoku-music"})},[t("div",{class:e.cover},[t("div",{class:e.itemImg},[t("div",{class:e.itemBg},null),t(_,{objectFit:"cover",src:s.src,lazy:!0,previewDisabled:!0,onLoad:g=>{g.target.dataset.loaded="true"}},null)])]),t("div",{class:e.itemName},[s.name])])))?r:{default:()=>[r]})])])}}});export{W as default};
