!function(){function e(e,t,a,n,r,i,o){try{var c=e[i](o),l=c.value}catch(u){return void a(u)}c.done?t(l):Promise.resolve(l).then(n,r)}function t(t){return function(){var a=this,n=arguments;return new Promise((function(r,i){var o=t.apply(a,n);function c(t){e(o,r,i,c,l,"next",t)}function l(t){e(o,r,i,c,l,"throw",t)}c(void 0)}))}}function a(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function n(e){for(var t=1;t=t.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),X.value=!0;case 17:K.value=!1;case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=t(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:t}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),te=r(),ae=function(e){Q.page=1,Q.subjectIds=e.id,te.value.toggle(),V.value=null,"TEACHER"===o.platformType?(N.value={name:e.name,id:e.id},ee(e.id)):(re.id=e.id,re.name=e.name,j(x.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),$(),re.show=!1};R({onSearch:Z,onComfirm:function(e){var t=Object.values(e).flat().filter(Boolean).join(",");Q.albumTagIds=t,Q.page=1,V.value=null,$(),Y.value=!1},onComfirmSubject:ae});var ne=j(x.SEARCH),re=u({show:!1,name:ne.name||"全部声部",id:ne.id||""});return function(){var e=L.value&&L.value.data||[];return s("div",null,[s(_,{finished:W.value,"finished-text":V.value&&V.value.rows.length?" ":"",onLoad:$,error:X.value},{default:function(){return[!E&&s(f,null,[s(T,{position:"top"},{default:function(){return[s(C,{class:k.memberHeader,background:"transparent",border:!1,isFixed:!1,color:"#131415"},{default:function(){return s("div",{class:k.headerContent},[s(h,{type:"tenant",modelValue:Q.search,onSearch:Z,placeholder:"请输入专辑名称 ",background:"transparent"},{left:function(){return s(g,null,{default:function(){return[s(v,{titleClass:k.titleActive,title:"筛选",ref:te},{default:function(){return[s(y,{type:"ALBUM",isReset:!0,searchParams:"TEACHER"===o.platformType?N.value:re,onComfirm:ae},null)]}})]}})}}),s(m,{shrink:!0,class:k.tagTabs,lineHeight:0,"onClick-tab":function(e){Q.albumTagIds=e.name,V.value=null,Q.page=1,$()}},{default:function(){return[s(p,{title:"全部",name:""},null),e.map((function(e){return s(p,{title:e.name,name:e.id},null)}))]}})])}})]}}),s(b,{class:k.headerImg,src:S},null)]),V.value&&V.value.rows.length?s("div",{class:k.musicGrid},[s(w,{showLight:A,lightText:I.value,list:V.value.rows,onGoto:function(e){var t="TEACHER"===o.platformType?N.value:re;console.log(t),B.push({name:"music-album-detail",params:{id:e.id},query:{subjectId:t.id,subjectName:t.name}})}},null)]):!K.value&&s("div",{style:"height: calc(100vh - var(--header-height));display: flex;align-items: center;"},[s(d,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)])]}})])}}}))}}}))}();