!function(){function e(e,t,r,i,n,a,o){try{var m=e[a](o),l=m.value}catch(s){return void r(s)}m.done?t(l):Promise.resolve(l).then(i,n)}function t(t){return function(){var r=this,i=arguments;return new Promise((function(n,a){var o=t.apply(r,i);function m(t){e(o,n,a,m,l,"next",t)}function l(t){e(o,n,a,m,l,"throw",t)}m(void 0)}))}}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,i=new Array(t);r20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t},r=function(){var t=+new Date;u({api:"openAccompanyWebView",content:{url:location.origin+"/accompany/colexiu-report.html?id="+e.item.id+"&behaviorId="+t,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){return m("div",{class:$,onClick:r},[m("div",{class:ee},[m("div",{class:te},[m("p",{class:re},[m("span",null,[e.item.sysMusicScoreName]),e.item.videoFilePath&&m(c,{class:ie,name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAwBJREFUWEfNmU1IVFEUx3/nKZrZjIFfhZaLhBKECvveBbaoCAIVJGpjFBW610UrF7osDHXlyojIRZvWbY1qNS2SalEZqTMtnAl1Qt+J92ZGZ9TRuW9m5N3tu+d/f5zDPee8cwUPS1Ut5qNnKS25DNqGzXHgMBBIysWA31jMgHxkde0t9cH3ImKbHicmBhpZasBe7QVuA40mtsAsMIlV+kxq9v/K1TYnQJ2NVlOug6jVA1qeq/j2+ySO2BPE5bE0Bv/sprUroIYXu1EZAWp2EzP8HqFEeqU68HInu6yAqlrKQnQEkQeGB5ttVx2nLtgnIqvbGW4LqKoVRGKvUK6bneZxt/CGmkCXiCxvVtgC6HouEnu9Z3ApogTkzc2e3Ao4vzhW9LBmc7TquNRXPUz/nAGYvBAvPAaqMGYl0p1+cdYB3VRSxuci3FZT8Aj/OJFKQRuA4dgoqhnuNVUu2H7RMamteuTouYCJCrH2Lf8kXChEiWOVHHMqTgJwIToE9BvLL6/AdAgCldDWArJr3jc5YljqggPiFv5w7LuH2gpPn8OXH4lDm4/AnRtQXWUCsdPeWWoDTaJzi+exZNqTat8wqG6YlpdBZztcPOlJbouRrRdEI3/7sW0nxOarN4tZazPcugbBSnPNdAvLGhBdiE4BHZ6UsgE6YgcqoPsqnHJaRY/LkikHMAS0epLYCTAleK4Vuq5AxT4vR3wSXYiFQb21UrkAOlgHA3C/A446TbfJkogDuOI5/+UK6DA11MHAXRM6J03H9w6wsR76ezwB7k2I73VAk6cQ+/mSSEjU6Zxt7TT0fWL7nqQZ3yfqvErdEKRVOpxS19EOlwpZ6vJpFp5MwtefiXAXq1lwtD23W0sr8C6UqLmnW8AqQrvlAvq9YXUhw4ujqPiz5XcB/f7TlPSiM4fx529nKlGrn3/cXS/6ffSRhPTv8Gg91H4ev6U3Dr4dYGZAuiNgGUQp0AiYCeJamBFwBqhfh+ibe8WMZwjbPgPOM4QcynyG0DlgBsv6kM8zxH8xBWCmZ8JFPwAAAABJRU5ErkJggg=="},null)]),m("p",{class:ne},[e.item.createTime])]),m("div",{class:ae},[m("div",{class:oe},[m("img",{src:ge[t(e.item.score||0)].img,alt:""},null)]),m(c,{name:"arrow",class:me},null)])]),m("div",{class:le},[m("div",{class:se},[m("p",{class:ce,style:{color:"#ff5a56"}},[e.item.score||0,m("span",null,[s("分")])," "]),m("p",{class:ue},[s(" 综合得分")])]),m("div",{class:se},[m("p",{class:ce},[e.item.intonation||0,m("span",null,[s("分")])," "]),m("p",{class:ue},[s("音准 ")])]),m("div",{class:se},[m("p",{class:ce},[e.item.cadence||0,m("span",null,[s("分")])," "]),m("p",{class:ue},[s("节奏 ")])]),m("div",{class:se},[m("p",{class:ce},[e.item.integrity||0,m("span",null,[s("分")])," "]),m("p",{class:ue},[s("完成度 ")])])])])}}}),de={exercisContainer:"_exercisContainer_wr874_1",bgImg:"_bgImg_wr874_12",userMember:"_userMember_wr874_19",level:"_level_wr874_30",userImgSection:"_userImgSection_wr874_35",userImg:"_userImg_wr874_35",userInfo:"_userInfo_wr874_59",name:"_name_wr874_65",timeRemaining:"_timeRemaining_wr874_76",subjectTag:"_subjectTag_wr874_81",iconSubject:"_iconSubject_wr874_93",itemBottom:"_itemBottom_wr874_98",itemBottomDot:"_itemBottomDot_wr874_109",dotMain:"_dotMain_wr874_112",dotSub:"_dotSub_wr874_127",topWrap:"_topWrap_wr874_133",topInfoRight:"_topInfoRight_wr874_138",infoDay:"_infoDay_wr874_146",infoTime:"_infoTime_wr874_147",infoDayMain:"_infoDayMain_wr874_163",infoDaysub:"_infoDaysub_wr874_179",trainWeek:"_trainWeek_wr874_194",exerciseWeek:"_exerciseWeek_wr874_201",TrainDataTopRight:"_TrainDataTopRight_wr874_204",DataTopRightItem:"_DataTopRightItem_wr874_209",DataTopRightDot:"_DataTopRightDot_wr874_219",DataTopRightItemDis:"_DataTopRightItemDis_wr874_225",trainTitle:"_trainTitle_wr874_235",timeRange:"_timeRange_wr874_245",iconArrow:"_iconArrow_wr874_251",fullRefresh:"_fullRefresh_wr874_259",emptyContainer:"_emptyContainer_wr874_262"},pe={tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#FFA3C2"}}},legend:{show:!1,selected:{"训练时长":!0,"使用次数":!0}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0,interval:0},data:["周一","周二","周三","周四","周五","周六","周日"]},yAxis:[{type:"value",axisLabel:{formatter:"{value}"},axisTick:{show:!1},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.2)"]}},minInterval:1,splitNumber:5}],grid:{left:"1%",right:"1%",top:"5%",bottom:0,containLabel:!0},series:[{data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00"],symbolSize:10,type:"line",name:"训练时长",symbol:"circle",smooth:!0,itemStyle:{color:"#FF7AA7",borderColor:"#fff",borderWidth:3},lineStyle:{width:3},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 243, 246, 1)"},{offset:1,color:"rgba(255, 246, 248, 0)"}]}},emphasis:{disabled:!0}},{data:["0.00","0.00","0.00","0.00","0.00","0.00","0.00"],type:"line",name:"使用次数",symbolSize:10,symbol:"circle",smooth:!0,itemStyle:{color:"#3583FA",borderColor:"#fff",borderWidth:3},lineStyle:{width:2},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(212, 231, 255, 1)"},{offset:1,color:"rgba(221, 235, 254, 0)"}]}},emphasis:{disabled:!0}}],formatter:function(e){return Array.isArray(e)?[e[0].axisValueLabel].concat(a(e.map((function(e,t){return"
".concat(e.marker,'').concat(e.seriesName,": ").concat(e.value).concat(0===t?"分钟":"次"," ")})))).join(""):e}};g.extend(T),O([z,W,j,P,Y,F,H,V,L,Q,N,J,K,G]);e("default",r({name:"exercis-detail",setup:function(){var e=A(),r=n({showPopoverTime:!1,currentDate:[g().format("YYYY"),g().format("MM")],isClick:!1,practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:g().format("YYYY")+"年"+g().format("MM")+"月",userTrainOverView:{trainDays:0,trainNum:0,trainTime:0,avgTrainTime:0},userTrainChartData:[],myChart:null}),a=d(!0),o=d(!0),l=p((function(){var e=f.user.data;return{username:null==e?void 0:e.username,phone:null==e?void 0:e.phone,avatar:null==e?void 0:e.heardUrl,id:null==e?void 0:e.userId,subjectName:null==e?void 0:e.subjectName,memberRankSettingId:null==e?void 0:e.memberRankSettingId,isVip:null==e?void 0:e.isVip,membershipDays:null==e?void 0:e.membershipDays,membershipEndTime:null==e?void 0:e.membershipEndTime}})),c=function(e){var t=g(e).day(),r="",i="";return 0===t?(r=g(e).subtract(6,"day").format("YYYY-MM-DD"),i=g(e).format("YYYY-MM-DD")):1===t?(r=g(e).format("YYYY-MM-DD"),i=g(e).add(6,"day").format("YYYY-MM-DD")):(r=g(e).subtract(t-1,"day").format("YYYY-MM-DD"),i=g(e).add(7-t,"day").format("YYYY-MM-DD")),{startTime:r,endTime:i}},u=n(i(i({},c()),{},{page:1,rows:20})),T=d(!1),B=d(!1),O=d(!1),z=d(!1),W=d([]),j=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isClick){e.next=2;break}return e.abrupt("return");case 2:return r.isClick=!0,T.value&&(W.value=[],u.page=1,T.value=!1),e.prev=4,e.next=7,y.get("/api-student/sysMusicRecord/studentTrainDataByWeek",{params:i({},u)});case 7:if(t=e.sent,1===(n=t.data).detail.pageNo&&(r.userTrainOverView=n.userTrainOverView),!(W.value.length>0&&1===n.detail.pageNo)){e.next=12;break}return e.abrupt("return");case 12:r.userTrainChartData=n.userTrainChartData||[],W.value=W.value.concat(n.detail.rows||[]),u.page=n.detail.pageNo+1,z.value=W.value.length>0,B.value=!1,O.value=n.detail.pageNo>=n.detail.totalPage,e.next=24;break;case 20:e.prev=20,e.t0=e.catch(4),z.value=!1,O.value=!0;case 24:r.isClick=!1,v((function(){if(document.getElementById("exerciseWeek")){r.myChart=b(Z(document.getElementById("exerciseWeek")));var e=[],t=[];r.userTrainChartData.forEach((function(r){var i=r.indexMonthData||[];"CLOUD_STUDY_TRAIN_TIME"===r.dataType?i.forEach((function(t){e.push(t.percent)})):"CLOUD_STUDY_TRAIN_NUM"===r.dataType&&i.forEach((function(e){t.push(e.percent)}))})),pe.series[0].data=e,pe.series[1].data=t,r.myChart.clear(),r.myChart.setOption(pe)}}));case 26:case"end":return e.stop()}}),e,null,[[4,20]])})));return function(){return e.apply(this,arguments)}}(),P=function(){O.value=!1,B.value=!0,j()};return h(t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j();case 2:case"end":return e.stop()}}),e)})))),function(){var e;return m("div",{class:[de.exercisContainer]},[m("div",{class:de.topWrap},[m(R,{position:"top"},{default:function(){return[m(x,{border:!1,background:"transparent",color:"#333333"},null),m(S,{class:de.userMember,labelClass:de.timeRemaining,border:!1},{icon:function(){return m("div",{class:de.userImgSection},[m(D,{class:de.userImg,src:l.value.avatar||U,fit:"cover"},null)])},title:function(){return m("div",{class:de.userInfo},[m("span",{class:de.name},[l.value.username]),m(D,{class:de.level,src:l.value.isVip?C:k},null)])},label:function(){return m("div",{class:de.subjectName},[m("span",{class:de.subjectTag},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAA8NJREFUSEudlk9oFHcUx7/vvVm75uIhtYeCl4LRUl2KJdGYv0XFP1QPBQ+xm91UIxUPBXMpCLbTHsRIi0WFiJYSXZMaUmqLlbaY2BiTnupBRKtNTxW10KJSKBq7O09mdmZ2ZmdmIy4ENpvs7zPv+77vfX+EOV66JZcB8DbEaoNgKQj1MLQI1r/B0kGFwp9znWH/nZL+Sddn28C8H6ytEAUYgNg/gfcpbaDB4ZnnAmlnTxqGHgJZ70FAkcNtkA20waoNNPwcIG3eOh8v1H0H0XVg90DnUAUM9/BnrEhNk8k0La9aXzqnkpL+ANHO8hMHQEnSuRXpzq7XwGiC0HKwLgPrcghuYcFfa8mcKIZ6pC35ATB2OT14VpDbI+3ddgms7RGZWY/QZyPv+yBdub0VRmkSrG5PqisK/h4wg1dREOSYxlNDFUxNdPDMr4502pyfBKMtLFfg8CQZ5wbZ6oxR/8g60pW5DIiulu1bZQDHzlWWDkqbgmPvsHRx/eVXSRvzH0PwYXROYs3wG0QvlR1IHQC20OnTfySDvH7zB6RNPWNgXRMxQEguzEKs3XR26Mu44awJcpSii6SNPXcg+rI/hHGuY+yhc4XPE7eIYwa0Rx3rVUT3bNAsROeFpAvb+1/UPV5Io6NPaoM8e8f0SPDElu4RWNNhkE5AMAXBLjBm6Hxhda19pr1dZdcmGgezVdL5pR6iiyf7dGP3BBgv0vnCspqgHdt+h+jiiPwVZe7aoJ+ja0cv03ihXTdm90HIBHGGzp28HmuE7V3NIJqGuMMeHlhv64/b0n0EVrNqjkogfQVK/yGtMxDcBUsrfTv4MAjT7u6XYJTGILB3nDtzMT0iNUnfeHcFUtaVmLwp0IVTOd2U3QChsxC9D0MPQEtTSKUEKasVrH1gLEoedhcOK1NeQavylyGwvxh+Kqad9NOpL3TzO40QHIVQU8XCgY3hDHBcRc5nk9Q/0lEGteTeBDAOJgrNgkEWGPtQ96ifRkdLujW7BAQ7Br72HeY3nCorzIeqQrid+r+aquRRS/4EGL0JMXEDBh8Gij8i03AbN2dKIVB1rFSqG6BPz+wO55Gdrqm6cbA2z5FHRTCMaEWRBTyNBem1ZA4+jlxOdE2uHiX6HqKrEiOjOm29+0PwLiH4Bf/TWzQw/CAS5d4HTqSLdQSiO8Du5aRWrIdBCtZjWJju8ypJBPnADdlOgD6B2Kul6roViXpHtkkQ7aVjQ9Nxg514r/OBm3peh1HcDKFOiLUUTPXOFmD8A8ENsE5hHn1Dx4eu1VpTTwGDSqfAEofCRAAAAABJRU5ErkJggg==",class:de.iconSubject},null),l.value.subjectName])])}}),m("div",{class:de.itemBottom},[m("div",{class:de.itemBottomDot},[m("p",{class:de.dotMain},[r.userTrainOverView.trainTime||0,m("span",null,[s("分钟")])," "]),m("p",{class:de.dotSub},[s(" 累计练习时长")])]),m("div",{class:de.itemBottomDot},[m("p",{class:de.dotMain},[r.userTrainOverView.trainDays||0,m("span",null,[s("天")])," "]),m("p",{class:de.dotSub},[s("累计练习天数 ")])]),m("div",{class:de.itemBottomDot},[m("p",{class:de.dotMain},[r.userTrainOverView.avgTrainTime||0,m("span",null,[s("分钟")])," "]),m("p",{class:de.dotSub},[s("平均训练时长 ")])]),m("div",{class:de.itemBottomDot},[m("p",{class:de.dotMain},[r.userTrainOverView.trainNum||0,m("span",null,[s("次")])," "]),m("p",{class:de.dotSub},[s("累计训练次数 ")])])])]}})]),m("img",{class:de.bgImg,src:M},null),m("div",{class:de.trainWeek},[m("div",{class:de.trainTitle},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAeCAMAAADTjObKAAAAqFBMVEUAAAATExQVFRYTFBQTFBUSFBQSEhYSFhcTExMSFBUUFBQTFBQTFBUTFBUTExUTExUTFBYSFBUTExUTFRURFBYRERcPDw8TExUSExQSExULEBUTExUNEhITFBQSExQTExUTFBUTExUTFBYSFBQTFBUSFBQTFBQSFBUTExUTFBUSFBQTFBQSExQSEhUTFBQSFBUSFBUTExMSFBUTFBQTExMTExQTFBUTFBXVG1rbAAAAN3RSTlMA4i675W9DITXBM6T5qbeFjmJcejkeEJL80gh4E1judPRoFshsZD/NoJVKsIop15lSDN1/GU6T37L51QAAA+VJREFUSMell+16sjAMhqtTeBW/p6IIAuqECYpOHed/Zm+StlbKYF7Xnh8unWlyN6YRGSjNssxAw+h0OiMmdIRFXy7sLPt0hJ3AG2P2JLNZoaP0eIMtJvy9zIq6MZKV5/kAjQkYb4ytLMs6sn+waDCuM9iJsKc5qEmmDJ9XqCU9emJLW3PYqvC9iwLAgEYBoEP/MYcotIOh0PkPAOpQTgC2VwPQBHPJ2L6cIv4bwLf8VMHu1wBkYH5UAwzAOHU0RRLA9TxvAQvf81wEWC+51mC/MxIlDpxKADeAbU49wIdoVmifjWwVAsA4UtO2OKncJXt5jiU6VAL4YA1v5/NuOB6vwF6EY6m9AriZoBZuReN3gC1lETpAmZqVAA3IOfuEF5N/igOmpAAwoFItwHkAwsY7soIqAM646wL+SRjHDVhEcRzbLwMcIRn2QGcwOAoAX3rN0WH3TppXAdDSx62GpTd4PUD5FmgAgSgwyawCaOYoCHFitQC+DcK6Wmi8BPD1EoAtc4b1AI9gJhq1AM6Gy30JYJ72yGF9YZsQb7xpfv0A4C1RPXRAI/0BwNwgQNR+El6DZLutAUDN+uiAbdfnw+P0A8AuL8j6pwMMGvlBm4RyEMx/AWBhTndw3sZA6W7XgnrsSM4rAPPzIkeVARbuawAnfvmPeUnuY6aNGwXZD4B7ROnLAJSsCDDGRGUAgzZXApD/hGl6AAzJUQFEWEb7fh9hX2sAWOqkDJCAFcDcnVYAYA+d2cR60qQMcLLvDt2CK15AB3ctbhqAj++XAExZwv07V4pA3KQeiKhAo2ewUQlAXUPnhK28p1waALJZJYBURj2y62gUAhHFXo1GbUb6QrhKAN8am8U5gLkDLFtXB8jwGUEHcNYKAMxEAOC5l+qSmSWAmkEUc6cB0wAo83tpFH9K3dgCKiQBOo8xgdsdAkhdUEoA3RoAl59pXwDYJT7V8kMHUKJUqQToQxNhC1BF14wArri+/grAxvybQAGQfHeBWD8DOObe2xzw5kiAIQUVUbccwDJA1u8AU34rdQAPZ9NFBzBX30nUQrbuFQElwIQmqZjPnwSgVA8wa5FT46IBxPTwqwN4uVS3g4Ahf94kDEt+m4U6gL14AITrdV4AcCLhlRUAeh/oZ9cAGBA0otJT7BZ/VDUpeglAOPGsRQALr+E9wIgKYOlvqDOmVQDB6Y3aTAFgwe6MrXgPMmP1JKMGYIUrj8bu14UDrDPMu5Vdd4G75DwApvEwPDRddOj1ek0FcIBln8/BPtNVDdDADycV5/wWLU4vExCASN3gl5fPyrp1UU0mNQXNmK6Zctp0SQ6ZQnRuMv4DLiKZed2IcmEAAAAASUVORK5CYII="},null),m("span",{class:de.timeRange,onClick:function(){return r.showPopoverTime=!0}},[g(u.startTime).format("YYYY-MM-DD"),s("至"),g(u.endTime).format("YYYY-MM-DD"),m("i",{class:de.iconArrow},null)])]),m("div",{class:de.TrainDataTopRight},[m("div",{onClick:function(){a.value=!a.value,pe.legend.selected["训练时长"]=a.value,r.myChart.setOption(pe)},class:[de.DataTopRightItem,a.value?"":de.DataTopRightItemDis]},[m("div",{class:de.DataTopRightDot},null),m("p",null,[s("训练时长")])]),m("div",{onClick:function(){o.value=!o.value,pe.legend.selected["使用次数"]=o.value,r.myChart.setOption(pe)},class:[de.DataTopRightItem,o.value?"":de.DataTopRightItemDis]},[m("div",{class:[de.DataTopRightDot,de.red]},null),m("p",null,[s("使用次数")])])]),m("div",{id:"exerciseWeek",class:de.exerciseWeek},null)]),z.value?m(q,{modelValue:T.value,"onUpdate:modelValue":function(e){return T.value=e},onRefresh:P,class:de.fullRefresh},{default:function(){return[m(I,{"loading-text":" ",finished:O.value,"finished-text":" ",onLoad:j,style:{overflow:"hidden"}},(t=e=W.value.map((function(e){return m(Ae,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!_(t)?e:{default:function(){return[e]}}))];var t}}):m("div",{class:de.emptyContainer},[m(w,{tips:"暂无学练统计",btnStatus:!1},null)]),m(E,{show:r.showPopoverTime,"onUpdate:show":function(e){return r.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",title:"周期选择",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[g(u.startTime).toDate(),g(u.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(u.startTime="",u.endTime="",!g(e[0]).isBetween(g(u.startTime),g(u.endTime))){var t=c(e[0]);u.startTime=t.startTime,u.endTime=t.endTime}r.showPopoverTime=!1,T.value=!0,j()}},null)])}}}))}}}))}();