!function(){function e(e,a,n,t,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void n(l)}c.done?a(u):Promise.resolve(u).then(t,r)}function a(a){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=a.apply(n,t);function c(a){e(o,r,i,c,u,"next",a)}function u(a){e(o,r,i,c,u,"throw",a)}c(void 0)}))}}function n(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function t(e){for(var a=1;a=a.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),Z.value=!0;case 17:X.value=!1;case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=a(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:a}});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(a){return e.apply(this,arguments)}}(),te=function(e){K.page=1,K.subjectIds=e.id,W.value=null,"TEACHER"===i.platformType?(D.value={name:e.name,id:e.id},ne(e.id)):(ie.id=e.id,ie.name=e.name,w(j.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),ae(),ie.show=!1};z({onSearch:ee,onComfirm:function(e){var a=Object.values(e).flat().filter(Boolean).join(",");K.albumTagIds=a,K.page=1,W.value=null,ae(),$.value=!1},onComfirmSubject:te});var re=w(j.SEARCH),ie=l({show:!1,name:re.name||"全部声部",id:re.id||""});return function(){var e=M.value&&M.value.data||[];return s("div",null,[s(b,{loading:X.value,finished:Y.value,"finished-text":W.value&&W.value.rows.length?"没有更多了":"",onLoad:ae,error:Z.value},{default:function(){return[!I&&s(d,null,[s(S,{position:"top"},{default:function(){return[s(C,{class:k,background:"transparent",border:!1,isFixed:!1,color:"#131415"},{default:function(){return s("div",{class:A},[s(v,{type:"tenant",modelValue:K.search,onSearch:ee,placeholder:"请输入专辑名称 ",background:"transparent"},{left:function(){return s("div",{class:P,onClick:function(){return ie.show=!0}},["TEACHER"===i.platformType?D.value.name:ie.name,s(f,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}}),s(h,{shrink:!0,class:H,lineHeight:0,"onClick-tab":function(e){K.albumTagIds=e.name,W.value=null,K.page=1,ae()}},{default:function(){return[s(g,{title:"全部",name:""},null),e.map((function(e){return s(g,{title:e.name,name:e.id},null)}))]}})])}})]}}),s(_,{class:E,src:O},null)]),W.value&&W.value.rows.length?s("div",{class:R},[s(x,{list:W.value.rows,onGoto:function(e){q.push({name:"music-album-detail",params:{id:e.id}})}},null)]):!X.value&&s(m,{tips:"暂无专辑",classImgSize:"SMALL",btnStatus:!1},null)]}}),s(p,{show:ie.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return ie.show=!1},onClosed:function(){return ie.show=!1}},{default:function(){return[s(y,{type:"ALBUM",searchParams:"TEACHER"===i.platformType?D.value:ie,onComfirm:te},null)]}})])}}}))}}}))}();