!function(){function e(e,n,a,t,r,i,o){try{var c=e[i](o),u=c.value}catch(l){return void a(l)}c.done?n(u):Promise.resolve(u).then(t,r)}function n(n){return function(){var a=this,t=arguments;return new Promise((function(r,i){var o=n.apply(a,t);function c(n){e(o,r,i,c,u,"next",n)}function u(n){e(o,r,i,c,u,"throw",n)}c(void 0)}))}}function a(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function t(e){for(var n=1;ne.length)&&(n=e.length);for(var a=0,t=new Array(n);a=a.data.totalPage,e.next=20;break;case 17:e.prev=17,e.t0=e.catch(7),re.value=!0;case 20:ae.value=!1;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-teacher/teacher/defaultSubject",{params:{subjectId:n}});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(n){return e.apply(this,arguments)}}(),de=function(e){var n={};for(var a in e)-1===Number(a)?K.value=!!e[a][0]:n[a]=e[a];var t=Object.values(n).flat().filter(Boolean).join(",");ee.musicTagIds=t,ee.page=1,ne.value=null,le(),ie.value=!1},fe=function(e){ee.page=1,ee.subjectIds=e.id,ne.value=null,"TEACHER"===g.platformType?(L.value={name:e.name,id:e.id},se(e.id)):(ge.id=e.id,ge.name=e.name,U(D.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set")),le(),ge.show=!1},ve=U(D.SEARCH),ge=m({show:!1,name:ve.id?ve.name:"全部声部",id:ve.id||""});return y(n(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,w().iPhone){e.next=4;break}return oe.value=!1,e.abrupt("return");case 4:return e.next=6,v.get("/api-admin/appVersionInfo/queryByPlatform",{params:{platform:"TEACHER"===g.platformType?"ios-teacher":"ios-student"}});case 6:n=e.sent,a=n.data,g.version>a.version?oe.value=!0:oe.value=!1,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})))),l({onSearch:ue,onComfirm:de,onComfirmSubject:fe}),function(){var e=f.value&&f.value.data||[];return s(A,null,[!r&&s(A,null,[" ",s(I,{class:z.sticky},{default:function(){return[s(H,{background:"transparent",isFixed:!1,border:!1,backIconColor:"white",color:"#fff"},{right:function(){return!oe.value&&s("span",{class:z.fleg,onClick:function(){K.value,K.value,U(D.MUSIC_FREE,JSON.stringify({chargeType:K.value}),"set"),ne.value=null,ee.page=1,le()}},[s(Q,{modelValue:K.value,"onUpdate:modelValue":function(e){return K.value=e},size:"20px"},null),s("span",null,[j("免费")])])}}),s(O,{onSearch:ue,background:"transparent",inputBackground:"transparent",leftIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEe9l2molVUUhp+32YKoSBNEKAoriawfShRhpIRNVkg/kiCHhCAzikiEjEQztJnyRzRB9SOwbBCKirLBkgoawYIoUAJDi2ikAXljxf4u62y/e8/xnsNd/87+1l7rOXuvvfa7RQ9mezpwCXA2MAU4FjgE+B3YAXwBbAFelPRzDyGHXDSSs+1LgdXAtB6D/g08BtwpaVcvc1oBbB8PPAOc00uQFp8/gVWS1nebvw+A7VnAs2WZh5tv4N+yDSPleB5YICm2qtU6AGzPBl4BDq68I1kE2wy8D+yS9I/to4ETgTnAVcDUlizvAbPDv41gCMD2qcAHwFGVYyS+VdJ3XerlgAJxDzCx8n1K0jXDAtiOf/wJcFpy2gvcIumBbvuYv9ueBLwAxMnJtljSE3Ws/1fA9jLgwepjJL93f5I3vmVrtgEnp/k/AifU9SDbB5azHOSNbZI0bzTJE0Rs6edVPd0s6f4cNwAuLIXXjEexTJX0bT8AZWUfBq5Pcb6UdHoN8BCwNA2+JOnyfpMXgFOAr6pYkyV934zFCnwIzEhOiyQ9OQiAAvF1VQvzJG3KAHuqpjND0scDBHgOyPUUR/ruDBB7nhtPxxL1C2K73uI1klZmgOjb41KiKZK+6TdxOg2PAtemeHdIWpUBdgKTk8N5kt4ZIEC09jhpjS2VtCEDvAZckBxWSlozCADbBwG7gbgzGpsl6a0McFu585uxzySdOSCA+GPxBxuLejtG0h8ZIDrW9irhZZJe7hfC9tZKU2yWNDfHbe6Ct4GZ6UMU4XRJv4wWwvZCoL58LpYUNTFkDUAkD02X9cHroQMlhRbYL7N9LvAGcGiauE1SaMoOy3rgcWBR9T2W8EpJP/RKYPtq4BHg8DTnL+AsSXE5DQtwGPBmUb7Z6SdgHbBBUvSMVrN9RinmUM/ZQr7NlxQybx+rJdl44F0gLpHaonIDMFRTKN74PaFIsjjnbXIskq+QtM72BElxJNtXoBm1fSTwNNBRrb1uQfILIRoX20bba4El0W8kfZpjDSfLYzzu8egRx40i+atFzm23fR9wU4kRj5Y5kj5qYnZ7mBwB3AAsBk7qAhJNJprOeklRvCH14mFT95NfgYskhbruOHYjxi+quX6a/QbEXRJPs62SInhnBdq3xyOlGo7tmStpy4grMIqlb51iezlwV/WH40RdMSYAZTtuBEKQ5pwbxwygQFwX/QSIR0wopfljClAgFgDnAwsl7f0PfUtCHGOyShkAAAAASUVORK5CYII="},{left:function(){return s("div",{class:z.label,onClick:function(){return ge.show=!0}},["TEACHER"===g.platformType?L.value.name:ge.name,s(S,{classPrefix:"iconfont",name:"down",size:12,color:"#fff"},null)])}}),s(B,{shrink:!0,class:z.tagTabs,lineHeight:0,"onClick-tab":function(e){ee.musicTagIds=e.name,ne.value=null,ee.page=1,le()}},{default:function(){return[s(R,{title:"全部",name:""},null),e.map((function(e){return s(R,{title:e.name,name:e.id},null)}))]}})]}}),s("img",{class:z.bgImg,src:"./assets/bgImg.2964f21d.png"},null)]),s("div",{class:z.alumnList},[s(E,{loading:ae.value,finished:te.value,"finished-text":(ne.value&&ne.value.rows.length,""),onLoad:le,error:re.value},{default:function(){return[ne.value&&ne.value.rows.length?s(V,{list:ne.value.rows,onDetail:function(e){if(o===Y){var n=location.origin+location.pathname+"#/music-detail?id="+e.id;x(n,(function(){_.push({path:"/music-detail",query:{id:e.id}})}))}else null==o||o(e)}},null):!ae.value&&s(C,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})]),s(k,{show:ie.value,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(e){return ie.value=e}},{default:function(){return[s(T,{exquisiteFlag:!0,onConfirm:de,onCancel:function(){},defaultValue:Z.query.tagids},null)]}}),s(k,{show:ge.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return ge.show=!1},onClosed:function(){return ge.show=!1}},{default:function(){return[s(P,{type:"MUSIC",searchParams:"TEACHER"===g.platformType?L.value:ge,onComfirm:fe},null)]}})])}}}))}}}))}();