System.register(["./teacherIcon-legacy-3eeb62c3-1716977058336.js","./api-legacy-d288588a-1716977058336.js","./index-legacy-b01db964-1716977058336.js","./index-legacy-f4d6d117-1716977058336.js","./index-legacy-bf36b89d-1716977058336.js","./urlUtils-legacy-133e91cc-1716977058336.js"],(function(e,t){"use strict";var o,i,n,r,a,_,l,d,s,m,c,g,w,u,h,p,f,v,x,y,b,k,j,A,L,C,I;return{setters:[e=>{o=e.d},e=>{i=e.e},e=>{n=e.d,r=e.b,a=e.e,_=e.f,l=e.aL,d=e.k,s=e.O,m=e.h,c=e.w,g=e.j,w=e.l,u=e.m,h=e.s,p=e.c,f=e.r,v=e.v,x=e.P,y=e.b9,b=e.F,k=e.b7,j=e.E},e=>{A=e.T},e=>{L=e.C,C=e.F},e=>{I=e.v}],execute:function(){var F=document.createElement("style");F.textContent="._commonWork_jydxg_1{width:29.16666667vw;background:#FFFFFF;border-radius:1.25vw;position:relative;padding:0 1.5625vw 1.82291667vw}._commonWork_jydxg_1 ._downMoveBg_jydxg_8{position:absolute;top:0;left:0;width:29.16666667vw;height:6.30208333vw}._commonWork_jydxg_1 ._dingPng_jydxg_15{width:8.4375vw;height:5.10416667vw;position:absolute;left:50%;margin-left:-4.21875vw;top:-2.55208333vw;z-index:100}._commonWork_jydxg_1 ._closeAble_jydxg_24{cursor:pointer;width:1.30208333vw;height:1.30208333vw;position:absolute;top:.9375vw;right:1.04166667vw}._commonWork_jydxg_1 h2{margin-top:3.33333333vw;height:1.71875vw;font-size:1.25rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#000;line-height:1.71875vw;text-align:center;margin-bottom:.78125vw}._commonWork_jydxg_1 ._header_jydxg_43{display:flex;align-items:center;padding:0 0 .67708333vw}._commonWork_jydxg_1 ._header_jydxg_43 ._navatar_jydxg_48{width:3.125vw;height:3.125vw;border-radius:50%;padding:.10416667vw;border:1px solid #198CFE;margin-right:.78125vw;flex-shrink:0;background-color:#fff!important}._commonWork_jydxg_1 ._header_jydxg_43 ._navatar_jydxg_48 img{border-radius:50%}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61{padding-top:.20833333vw;flex:1}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61 h3{font-size:max(.88541667rem,14Px);font-weight:600;color:#131415;line-height:1.45833333vw}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61 p{font-size:max(.83333333rem,12Px);color:#777;line-height:1.45833333vw}._commonWork_jydxg_1 ._textarea_jydxg_76{margin-top:.41666667vw;background-color:#f2f4f7!important;border-radius:.52083333vw;--n-border: 1px solid #F2F4F7 !important}._commonWork_jydxg_1 ._textarea_jydxg_76 .n-input-wrapper{padding-bottom:1.66666667vw}._commonWork_jydxg_1 ._textarea_jydxg_76 .n-input__textarea-el{font-weight:500;color:#131415}._commonWork_jydxg_1 .n-button{min-width:8.125vw}._commonWork_jydxg_1 ._submitAppBtn_jydxg_92{background:linear-gradient(305deg,#40C8FF 0%,#3192FF 100%);border-radius:1.25vw;border:none}._commonWork_jydxg_1 ._submitAppBtn_jydxg_92 .n-button__border,._commonWork_jydxg_1 ._submitAppBtn_jydxg_92 .n-button__state-border{display:none}._removeVisiable1_jydxg_103{width:24.63541667vw}._removeVisiable1_jydxg_103 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109{padding:1.04166667vw 2.08333333vw 0}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 p span{color:#ea4132}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120{display:flex;justify-content:center;padding-top:.67708333vw;padding-bottom:.41666667vw}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120 .n-checkbox{display:flex;align-items:center;--n-border-radius: 50% !important}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120 .n-checkbox__label{font-size:max(.83333333rem,12Px);color:#777;line-height:1.25vw}._removeVisiable1_jydxg_103 ._btnGroupModal_jydxg_136{padding:1.66666667vw 0}._removeVisiable1_jydxg_103 ._btnGroupModal_jydxg_136 .n-button{height:2.44791667vw;min-width:8.125vw}._workItem_1h8ow_1{background:#F5F6FA;border-radius:.72916667vw;border:.10416667vw solid #ECEDEF;overflow:hidden;transition:all .2s ease}._workItem_1h8ow_1:hover{transition:all .2s ease;border-color:#198cfe;transform:scale(1.01)}._workItem_1h8ow_1._work-content-disabled_1h8ow_13:hover{transition:all .2s ease;border-color:#ecedef;transform:scale(1);cursor:not-allowed}._workItem_1h8ow_1._work-content-disabled_1h8ow_13 ._expireBg_1h8ow_19{cursor:not-allowed}._work-content_1h8ow_13{height:8.85416667vw;background:#ffffff;position:relative;overflow:hidden;transition:all .2s ease;cursor:pointer;display:flex;align-items:center;justify-content:center}._work-content_1h8ow_13 ._videoSection_1h8ow_33{width:100%;height:100%;display:flex;align-items:center;justify-content:center}._work-content_1h8ow_13 ._expireBg_1h8ow_19{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:max(.83333333rem,13Px);color:#fff}._work-content_1h8ow_13 ._nodata_1h8ow_51{width:6.875vw!important;height:6.61458333vw!important;cursor:not-allowed!important}._work-content_1h8ow_13 ._reportBtn_1h8ow_56{position:absolute;right:.41666667vw;top:.41666667vw;z-index:9;--n-height: max(1.45833333vw, 24Px) !important;--n-padding: 0 .41666667vw !important;--n-font-size: max(.72916667rem, 11Px) !important}._work-content_1h8ow_13 .n-image{width:100%;height:inherit}._work-content_1h8ow_13 .n-image img{width:100%;height:fit-content}._work-footer_1h8ow_73{display:flex;align-items:center;justify-content:space-between;padding:.52083333vw .625vw}._work-footer_1h8ow_73 ._type_1h8ow_79{gap:.41666667vw .52083333vw!important}._work-footer_1h8ow_73 ._title-text_1h8ow_82{width:7.8125vw}._work-footer_1h8ow_73 ._scoreGroup_1h8ow_85{font-weight:700;font-size:max(1.25rem,20Px);color:#1677ff;font-family:DINA,DINAlternate}._work-footer_1h8ow_73 ._scoreGroup_1h8ow_85 span{font-size:max(.625rem,10Px);padding-left:.10416667vw;vertical-align:middle}._work-footer_1h8ow_73 ._scoreGroup_1h8ow_85._scoreGroupEval_1h8ow_96{color:#f51515}._trainInfo_1h8ow_99{max-width:82%}._trainInfo_1h8ow_99 ._trainName_1h8ow_102{display:flex;align-items:center;font-size:max(.83333333rem,13Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#131415;line-height:1.09375vw}._trainInfo_1h8ow_99 ._type_1h8ow_79{padding:0 .46875vw;display:inline-block;background-color:#ccc;border-radius:.26041667vw;font-size:max(.67708333rem,11Px);font-weight:500;color:#fff;height:18Px;line-height:18Px;margin-right:.36458333vw;flex-shrink:0}._trainInfo_1h8ow_99 ._PRACTICE_1h8ow_124{background:linear-gradient(270deg,#23C3FF 0%,#007AFE 100%)}._trainInfo_1h8ow_99 ._EVALUATION_1h8ow_127{background:linear-gradient(270deg,#FF7B57 0%,#FF3460 100%)}._trainInfo_1h8ow_99 ._tagList_1h8ow_130{display:flex;align-items:center;padding-top:.26041667vw;font-size:11Px;font-weight:400;color:rgba(0,0,0,.5)}._trainInfo_1h8ow_99 ._tagList_1h8ow_130 .n-divider{--n-color: rgba(0, 0, 0, .5) !important;height:11Px;margin:0 .26041667vw!important}._reportModel_1h8ow_143{width:53.64583333vw;overflow:hidden}\n",document.head.appendChild(F),e("n",""+new URL("nosub-edbc4601.png",t.meta.url).href),e("q",""+new URL("qualified-5f6fc5ac.png",t.meta.url).href),e("u",""+new URL("unqualified-89af2593.png",t.meta.url).href);const T="_commonWork_jydxg_1",E="_downMoveBg_jydxg_8",B="_dingPng_jydxg_15",N="_closeAble_jydxg_24",R="_header_jydxg_43",S="_navatar_jydxg_48",U="_userInfo_jydxg_61",P="_textarea_jydxg_76",V="_submitAppBtn_jydxg_92",M="_removeVisiable1_jydxg_103",D="_studentRemove_jydxg_109",G="_selectBtn_jydxg_120",O="_btnGroupModal_jydxg_136",z=""+new URL("common-bg-21ff5439.png",t.meta.url).href,W=""+new URL("common-top-49f36bee.png",t.meta.url).href,K=(e("C",n({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(e,{emit:t}){const n=r(),p=a({removeVisiable1:!1,comment:e.comment,btnLoading:!1,commentRemind:!0}),f=async()=>{if(p.comment){p.btnLoading=!0;try{await i({comment:p.comment,id:e.workInfo.studentLessonTrainingId}),n.success("点评成功"),t("confrim")}catch{}p.btnLoading=!1,p.commentRemind=!0}else n.error("请输入评语")},v=()=>{p.commentRemind&&h.set("isCommentRemind",1),p.removeVisiable1=!1,f()};return()=>_("div",{class:T},[_("img",{src:W,class:B,alt:""},null),_("img",{src:z,class:E,alt:""},null),_("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",class:N,onClick:()=>{t("close")},alt:""},null),_("h2",null,[e.workInfo.isLook?"修改点评":"点评作业"]),_("div",{class:R},[_(l,{class:S,round:!0,src:e.workInfo.studentAvatar||o},null),_("div",{class:U},[_("h3",null,[e.workInfo.studentName]),_("p",null,[d("提交时间:"),e.workInfo.submitTime?s(e.workInfo.submitTime).format("YYYY-MM-DD HH:mm"):"--"])])]),_(m,{class:P,type:"textarea",rows:12,maxlength:500,showCount:!0,autosize:!1,value:p.comment,"onUpdate:value":e=>p.comment=e,placeholder:"请输入评语…"},null),_(c,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[_(g,{round:!0,type:"default",onClick:()=>t("close")},{default:()=>[d("取消")]}),_(g,{class:V,round:!0,type:"primary",loading:p.btnLoading,onClick:f},{default:()=>[d("确定")]})]}),_(w,{show:p.removeVisiable1,"onUpdate:show":e=>p.removeVisiable1=e,preset:"card",class:["modalTitle",M],title:"提交评语"},{default:()=>[_("div",{class:D},[_("p",null,[d("评语提交后"),_("span",null,[d("不可修改或删除")]),d(",请确认是否提交")]),_("div",{class:G},[_(u,{checked:p.commentRemind,"onUpdate:checked":e=>p.commentRemind=e},{default:()=>[d("下次不再提醒")]})]),_(c,{class:O,justify:"center"},{default:()=>[_(g,{round:!0,onClick:()=>{p.removeVisiable1=!1,p.commentRemind=!0}},{default:()=>[d("取消")]}),_(g,{round:!0,type:"primary",onClick:v},{default:()=>[d("确定")]})]})])]})])}})),{workItem:"_workItem_1h8ow_1","work-content-disabled":"_work-content-disabled_1h8ow_13",expireBg:"_expireBg_1h8ow_19","work-content":"_work-content_1h8ow_13",videoSection:"_videoSection_1h8ow_33",nodata:"_nodata_1h8ow_51",reportBtn:"_reportBtn_1h8ow_56","work-footer":"_work-footer_1h8ow_73",type:"_type_1h8ow_79","title-text":"_title-text_1h8ow_82",scoreGroup:"_scoreGroup_1h8ow_85",scoreGroupEval:"_scoreGroupEval_1h8ow_96",trainInfo:"_trainInfo_1h8ow_99",trainName:"_trainName_1h8ow_102",PRACTICE:"_PRACTICE_1h8ow_124",EVALUATION:"_EVALUATION_1h8ow_127",tagList:"_tagList_1h8ow_130",reportModel:"_reportModel_1h8ow_143"}),J=""+new URL("nomore-1c66dcbc.png",t.meta.url).href;e("W",n({name:"work-item",props:{item:{type:Object,default:()=>({})}},setup(e){const t=p(),o=r(),i=f(!1),n=f({type:"MUSIC",content:e.item.musicId,title:e.item.musicName,studentName:e.item.studentName}),a=f(""),l=f(!1);return()=>_("div",{class:[K.workItem,(e.item.fileList?.expireFlag||"UNSUBMITTED"===e.item.trainingStatus)&&K["work-content-disabled"]]},[_("div",{class:[K["work-content"]],style:{cursor:"UNSUBMITTED"===e.item.trainingStatus?"default":"pointer"}},[!e.item.fileList?.fileType&&_(v,{src:J,class:K.nodata,previewDisabled:!0,objectFit:"contain"},null),"IMG"===e.item.fileList?.fileType&&_(v,{src:e.item.fileList?.filePath,objectFit:"contain",renderToolbar:({nodes:t})=>[t.prev,t.next,t.rotateCounterclockwise,t.rotateClockwise,t.resizeToOriginalSize,t.zoomOut,_("div",{class:"n-base-icon",onClick:()=>(t=>{if(!t)return void o.error("下载失败");const i=t,n=e.item.musicName+(e.item.studentName?"-"+e.item.studentName:""),r=t.substring(t.lastIndexOf("."));fetch(i).then((e=>e.blob())).then((e=>{C.saveAs(e,(n||(new Date).getTime()+"")+r)})).catch((()=>{o.error("下载失败")}))})(e.item.fileList?.filePath)},[_("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[_("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[_("g",{fill:"currentColor","fill-rule":"nonzero"},[_("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"},null)])])])]),t.close]},null),"SOUND"===e.item.fileList?.fileType&&_("div",{onClick:()=>{n.value.content=e.item.fileList?.filePath,n.value.title=e.item.musicName,n.value.type="SONG",i.value=!0}},[_(v,{src:x.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)]),"EVALUATION"===e.item.fileList?.fileType&&("video"===y(e.item.fileList?.content)?_("div",{class:K.videoSection,onClick:()=>{n.value.content=e.item.fileList?.content,n.value.title=e.item.musicName,n.value.type="VIDEO",i.value=!0}},[_("video",{style:{height:"100%"},src:e.item.fileList?.content},null)]):_("div",{onClick:()=>{n.value.content=e.item.fileList?.content,n.value.title=e.item.musicName,n.value.type="SONG",i.value=!0}},[_(v,{src:x.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)])),"VIDEO"===e.item.fileList?.fileType&&_("div",{class:K.videoSection,onClick:()=>{n.value.content=e.item.fileList?.filePath,n.value.title=e.item.musicName,n.value.type="VIDEO",i.value=!0}},[_("video",{style:{height:"100%"},src:e.item.fileList?.filePath},null)]),e.item.fileList?.expireFlag&&_("div",{class:K.expireBg},[d("文件已过期")]),e.item.recordId&&_(g,{color:"rgba(0,0,0,0.4)",textColor:"#fff",disabled:e.item.fileList?.expireFlag,class:K.reportBtn,onClick:()=>{if(!e.item.recordId)return void o.error("暂无评测记录");const i=t.getToken;a.value=I()+`/instrument/#/evaluat-report?id=${e.item.recordId}&Authorization=${i}`,l.value=!0}},{default:()=>[d("评测报告")]})]),_("div",{class:K["work-footer"]},[_("div",{class:K.trainInfo},[_("div",{class:K.trainName},[_("span",{class:[K.type,K[e.item.trainingType]]},["EVALUATION"===e.item.trainingType?"评测":"练习"]),_("div",{class:K["title-text"]},[_(A,{text:e.item.musicName},null)])]),_("div",{class:K.tagList},[e.item.typeList?.map(((t,o)=>_(b,null,[_("span",null,[t]),e.item.typeList.length-1>o&&_(k,{vertical:!0},null)])))])]),"EVALUATION"===e.item.trainingType?_("div",{class:[K.scoreGroup,K.scoreGroupEval]},["UNSUBMITTED"!==e.item.trainingStatus?_(b,null,[e.item.trainingTimes,_("span",null,[d("分")])]):_("span",{class:K.noSubmit},[d("未提交")])]):_("div",{class:[K.scoreGroup]},["UNSUBMITTED"!==e.item.trainingStatus?_(b,null,[e.item.trainingTimes?parseInt(e.item.trainingTimes/60+""):0,_("span",null,[d("分钟")])]):_("span",{class:K.noSubmit},[d("未提交")])])]),_(L,{show:i.value,"onUpdate:show":e=>i.value=e,item:n.value},null),_(w,{show:l.value,"onUpdate:show":e=>l.value=e,preset:"card",class:["modalTitle background",K.reportModel],title:"评测报告"},{default:()=>[_("div",{class:K.reportContainer,style:{lineHeight:0}},[_("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:e=>{j(e.target)},src:a.value},null)])]})])}}))}}}));