!function(){function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var i=0,n=new Array(t);i20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t},i=function(){var t=+new Date;m({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 u("div",{class:ee,onClick:i},[u("div",{class:te},[u("div",{class:ie},[u("p",{class:ne},[u("span",null,[e.item.sysMusicScoreName]),e.item.videoFilePath&&u(_,{class:re,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)]),u("p",{class:ae},[e.item.createTime])]),u("div",{class:oe},[u("div",{class:ue},[u("img",{src:fe[t(e.item.score||0)].img,alt:""},null)]),u(_,{name:"arrow",class:ce},null)])]),u("div",{class:le},[u("div",{class:_e},[u("p",{class:me,style:{color:"#ff5a56"}},[e.item.score||0,u("span",null,[l("分")])," "]),u("p",{class:se},[l(" 综合得分")])]),u("div",{class:_e},[u("p",{class:me},[e.item.intonation||0,u("span",null,[l("分")])," "]),u("p",{class:se},[l("音准 ")])]),u("div",{class:_e},[u("p",{class:me},[e.item.cadence||0,u("span",null,[l("分")])," "]),u("p",{class:se},[l("节奏 ")])]),u("div",{class:_e},[u("p",{class:me},[e.item.integrity||0,u("span",null,[l("分")])," "]),u("p",{class:se},[l("完成度 ")])])])])}}}),de={exercisContainer:"_exercisContainer_fcuxk_1",bgImg:"_bgImg_fcuxk_8",userMember:"_userMember_fcuxk_16",level:"_level_fcuxk_22",userImgSection:"_userImgSection_fcuxk_26",userImg:"_userImg_fcuxk_26",userInfo:"_userInfo_fcuxk_50",name:"_name_fcuxk_56",timeRemaining:"_timeRemaining_fcuxk_66",subjectTag:"_subjectTag_fcuxk_71",iconSubject:"_iconSubject_fcuxk_83",itemBottom:"_itemBottom_fcuxk_88",itemBottomDot:"_itemBottomDot_fcuxk_99",dotMain:"_dotMain_fcuxk_102",dotSub:"_dotSub_fcuxk_117",topWrap:"_topWrap_fcuxk_123",topInfoRight:"_topInfoRight_fcuxk_127",infoDay:"_infoDay_fcuxk_135",infoTime:"_infoTime_fcuxk_136",infoDayMain:"_infoDayMain_fcuxk_152",infoDaysub:"_infoDaysub_fcuxk_168",trainWeek:"_trainWeek_fcuxk_183",exerciseWeek:"_exerciseWeek_fcuxk_190",TrainDataTopRight:"_TrainDataTopRight_fcuxk_193",DataTopRightItem:"_DataTopRightItem_fcuxk_198",DataTopRightDot:"_DataTopRightDot_fcuxk_208",DataTopRightItemDis:"_DataTopRightItemDis_fcuxk_214",trainTitle:"_trainTitle_fcuxk_224",timeRange:"_timeRange_fcuxk_234",iconArrow:"_iconArrow_fcuxk_240",fullRefresh:"_fullRefresh_fcuxk_248",emptyContainer:"_emptyContainer_fcuxk_251"},ge={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:"2 %",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}};s.extend(J),Y([W,C,F,j,O,N,P,Q,V,L,H,q,G,z]);e("default",i({name:"exercis-detail",setup:function(){var e=f(),i=n({showPopoverTime:!1,currentDate:[s().format("YYYY"),s().format("MM")],isClick:!1,practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:s().format("YYYY")+"年"+s().format("MM")+"月",userTrainOverView:{trainDays:0,trainNum:0,trainTime:0,avgTrainTime:0},userTrainChartData:[],myChart:null}),a=p(!0),o=p(!0),c=d((function(){var e=g.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,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}})),_=n({startTime:s().day(1).format("YYYY-MM-DD"),endTime:s().day(7).format("YYYY-MM-DD"),page:1,rows:20}),m=p(!1),B=p(!1),Y=p(!1),W=p(!1),C=p([]),F=function(){var e=r(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.isClick){e.next=2;break}return e.abrupt("return");case 2:return i.isClick=!0,m.value&&(C.value=[],_.page=1,m.value=!1),e.prev=4,e.next=7,k.get("/api-student/sysMusicRecord/studentTrainDataByWeek",{params:t({},_)});case 7:if(n=e.sent,1===(r=n.data).detail.pageNo&&(i.userTrainOverView=r.userTrainOverView),!(C.value.length>0&&1===r.detail.pageNo)){e.next=12;break}return e.abrupt("return");case 12:i.userTrainChartData=r.userTrainChartData||[],C.value=C.value.concat(r.detail.rows||[]),_.page=r.detail.pageNo+1,W.value=C.value.length>0,B.value=!1,Y.value=r.detail.pageNo>=r.detail.totalPage,e.next=24;break;case 20:e.prev=20,e.t0=e.catch(4),W.value=!1,Y.value=!0;case 24:i.isClick=!1,b((function(){if(document.getElementById("exerciseWeek")){i.myChart=T(Z(document.getElementById("exerciseWeek")));var e=[],t=[];i.userTrainChartData.forEach((function(i){var n=i.indexMonthData||[];"CLOUD_STUDY_TRAIN_TIME"===i.dataType?n.forEach((function(t){e.push(t.totalNum)})):"CLOUD_STUDY_TRAIN_NUM"===i.dataType&&n.forEach((function(e){t.push(e.totalNum)}))})),ge.series[0].data=e,ge.series[1].data=t,i.myChart.clear(),i.myChart.setOption(ge)}}));case 26:case"end":return e.stop()}}),e,null,[[4,20]])})));return function(){return e.apply(this,arguments)}}(),j=function(){Y.value=!1,B.value=!0,F()};return h(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:case"end":return e.stop()}}),e)})))),function(){var e;return u("div",{class:[de.exercisContainer]},[u("div",{class:de.topWrap},[u(R,{position:"top"},{default:function(){return[u(I,{border:!1,background:"transparent",color:"#333333"},null),u(w,{class:de.userMember,labelClass:de.timeRemaining,border:!1},{icon:function(){return u("div",{class:de.userImgSection},[u(y,{class:de.userImg,src:c.value.avatar||M,fit:"cover"},null)])},title:function(){return u("div",{class:de.userInfo},[u("span",{class:de.name},[c.value.username]),u(y,{class:de.level,src:c.value.isVip?U:E},null)])},label:function(){return u("div",{class:de.subjectName},[u("span",{class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OJgrNgkEWGPtQ96ifRkdLujW7BAQ7Br72HeY3nCorzIeqQrid+r+aquRRS/4EGL0JMXEDBh8Gij8i03AbN2dKIVB1rFSqG6BPz+wO55Gdrqm6cbA2z5FHRTCMaEWRBTyNBem1ZA4+jlxOdE2uHiX6HqKrEiOjOm29+0PwLiH4Bf/TWzQw/CAS5d4HTqSLdQSiO8Du5aRWrIdBCtZjWJju8ypJBPnADdlOgD6B2Kul6roViXpHtkkQ7aVjQ9Nxg514r/OBm3peh1HcDKFOiLUUTPXOFmD8A8ENsE5hHn1Dx4eu1VpTTwGDSqfAEofCRAAAAABJRU5ErkJggg==",class:de.iconSubject},null),l("口风琴")])])}}),u("div",{class:de.itemBottom},[u("div",{class:de.itemBottomDot},[u("p",{class:de.dotMain},[i.userTrainOverView.trainTime||0,u("span",null,[l("分钟")])," "]),u("p",{class:de.dotSub},[l(" 累计练习时长")])]),u("div",{class:de.itemBottomDot},[u("p",{class:de.dotMain},[i.userTrainOverView.trainDays||0,u("span",null,[l("天")])," "]),u("p",{class:de.dotSub},[l("累计练习天数 ")])]),u("div",{class:de.itemBottomDot},[u("p",{class:de.dotMain},[i.userTrainOverView.avgTrainTime||0,u("span",null,[l("分钟")])," "]),u("p",{class:de.dotSub},[l("平均训练时长 ")])]),u("div",{class:de.itemBottomDot},[u("p",{class:de.dotMain},[i.userTrainOverView.trainNum||0,u("span",null,[l("次")])," "]),u("p",{class:de.dotSub},[l("累计训练次数 ")])])])]}})]),u("img",{class:de.bgImg,src:S},null),u("div",{class:de.trainWeek},[u("div",{class:de.trainTitle},[u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAeCAMAAADTjObKAAAAqFBMVEUAAAATExQVFRYTFBQTFBUSFBQSEhYSFhcTExMSFBUUFBQTFBQTFBUTFBUTExUTExUTFBYSFBUTExUTFRURFBYRERcPDw8TExUSExQSExULEBUTExUNEhITFBQSExQTExUTFBUTExUTFBYSFBQTFBUSFBQTFBQSFBUTExU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iQBOo8xgdsdAkhdUEoA3RoAl59pXwDYJT7V8kMHUKJUqQToQxNhC1BF14wArri+/grAxvybQAGQfHeBWD8DOObe2xzw5kiAIQUVUbccwDJA1u8AU34rdQAPZ9NFBzBX30nUQrbuFQElwIQmqZjPnwSgVA8wa5FT46IBxPTwqwN4uVS3g4Ahf94kDEt+m4U6gL14AITrdV4AcCLhlRUAeh/oZ9cAGBA0otJT7BZ/VDUpeglAOPGsRQALr+E9wIgKYOlvqDOmVQDB6Y3aTAFgwe6MrXgPMmP1JKMGYIUrj8bu14UDrDPMu5Vdd4G75DwApvEwPDRddOj1ek0FcIBln8/BPtNVDdDADycV5/wWLU4vExCASN3gl5fPyrp1UU0mNQXNmK6Zctp0SQ6ZQnRuMv4DLiKZed2IcmEAAAAASUVORK5CYII="},null),u("span",{class:de.timeRange,onClick:function(){return i.showPopoverTime=!0}},[s(_.startTime).format("YYYY-MM-DD"),l("至"),s(_.endTime).format("YYYY-MM-DD"),u("i",{class:de.iconArrow},null)])]),u("div",{class:de.TrainDataTopRight},[u("div",{onClick:function(){a.value=!a.value,ge.legend.selected["训练时长"]=a.value,i.myChart.setOption(ge)},class:[de.DataTopRightItem,a.value?"":de.DataTopRightItemDis]},[u("div",{class:de.DataTopRightDot},null),u("p",null,[l("训练时长")])]),u("div",{onClick:function(){o.value=!o.value,ge.legend.selected["使用次数"]=o.value,i.myChart.setOption(ge)},class:[de.DataTopRightItem,o.value?"":de.DataTopRightItemDis]},[u("div",{class:[de.DataTopRightDot,de.red]},null),u("p",null,[l("使用次数")])])]),u("div",{id:"exerciseWeek",class:de.exerciseWeek},null)]),W.value?u($,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},onRefresh:j,class:de.fullRefresh},{default:function(){return[u(v,{"loading-text":" ",finished:Y.value,"finished-text":" ",onLoad:F,style:{overflow:"hidden"}},(t=e=C.value.map((function(e){return u(pe,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}}))];var t}}):u("div",{class:de.emptyContainer},[u(A,{tips:"暂无学练统计",classImgSize:"SMALL",btnStatus:!1},null)]),u(D,{show:i.showPopoverTime,"onUpdate:show":function(e){return i.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",title:"周期选择",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[s(_.startTime).toDate(),s(_.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(_.startTime="",_.endTime="",!s(e[0]).isBetween(s(_.startTime),s(_.endTime))){var t=s(e[0]).day();0===t?(_.startTime=s(e[0]).subtract(6,"day").format("YYYY-MM-DD"),_.endTime=s(e[0]).format("YYYY-MM-DD")):1===t?(_.startTime=s(e[0]).format("YYYY-MM-DD"),_.endTime=s(e[0]).add(6,"day").format("YYYY-MM-DD")):(_.startTime=s(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),_.endTime=s(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}i.showPopoverTime=!1,m.value=!0,F()}},null)])}}}))}}}))}();