1 |
- import{ae as te,af as se,d as k,aa as ae,an as K,T as N,dc as H,ao as ie,ac as P,dd as le,aY as ne,c as re,b as Y,r as I,f as t,v as Z,aM as oe,k as v,F as D,b7 as ce,w as T,Y as F,U as R,j as B,l as V,E as ue,b9 as Q,e as U,p as M,N as W,g as E,d7 as L,i as z,aB as de,C as fe,D as me,b8 as ge,q as pe,t as G}from"./index-70c8ab8f-1716977058336.js";import{C as J}from"./index-a5c2a8ef-1716977058336.js";import{v as he}from"./urlUtils-a03c114e-1716977058336.js";import{J as Ae,q as ve,C as ye,r as be,s as Ce}from"./api-01aa0f20-1716977058336.js";import{T as Se}from"./index-ac3f97d9-1716977058336.js";import{T as Ie}from"./index-7941bfe4-1716977058336.js";import{u as X}from"./catchData-cc91cb99-1716977058336.js";import{a as $,u as Be}from"./index-04f2ff28-1716977058336.js";import{T as Ee}from"./index-32c8a13d-1716977058336.js";import{u as ee}from"./index-1e0585d5-1716977058336.js";import{N as Te}from"./Scrollbar-dc599640-1716977058336.js";const we=te("input-group-label","\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--n-border-radius);\n background-color: var(--n-group-label-color);\n color: var(--n-group-label-text-color);\n font-size: var(--n-font-size);\n line-height: var(--n-height);\n height: var(--n-height);\n flex-shrink: 0;\n white-space: nowrap;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[se("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-group-label-border);\n transition: border-color .3s var(--n-bezier);\n ")]),_e=Object.assign(Object.assign({},K.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),O=k({name:"InputGroupLabel",props:_e,setup(e){const{mergedBorderedRef:l,mergedClsPrefixRef:s,inlineThemeDisabled:a}=ae(e),g=K("Input","-input-group-label",we,le,e,s),i=N(()=>{const{size:y}=e,{common:{cubicBezierEaseInOut:p},self:{groupLabelColor:n,borderRadius:C,groupLabelTextColor:b,lineHeight:m,groupLabelBorder:u,[H("fontSize",y)]:A,[H("height",y)]:o}}=g.value;return{"--n-bezier":p,"--n-group-label-color":n,"--n-group-label-border":u,"--n-border-radius":C,"--n-group-label-text-color":b,"--n-font-size":A,"--n-line-height":m,"--n-height":o}}),f=a?ie("input-group-label",N(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:s,mergedBordered:l,cssVars:a?void 0:i,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e,l,s;const{mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),P("div",{class:["".concat(a,"-input-group-label"),this.themeClass],style:this.cssVars},(s=(l=this.$slots).default)===null||s===void 0?void 0:s.call(l),this.mergedBordered?P("div",{class:"".concat(a,"-input-group-label__border")}):null)}}),ke=ne("prepare-lessons-store",{state:()=>({subjectId:null,instrumentId:null,baseCourseware:{},selectKey:"",lessonCoursewareId:"",subjectList:[],instrumentList:[],lessonCoursewareDetailId:"",treeList:[],coursewareList:[],trainList:[],tabType:"courseware",selectMusicStatus:!1,selectResourceStatus:!1,isAddResource:!1,isEditResource:!1,iseditTrain:!1,isAddTrain:!1,classGroupId:null}),getters:{getSubjectId(){return this.subjectId},getInstrumentId(){return this.instrumentId},getBaseCourseware(){return this.baseCourseware},getSelectKey(){return this.selectKey},getSelectName(){var l;let e="";for(let s=0;s<this.getTreeList.length;s++){const a=this.getTreeList[s];a.id===this.selectKey&&(e=a.name),!e&&a.knowledgeList.length>0&&((l=a.knowledgeList)==null||l.forEach(g=>{g.id===this.selectKey&&(e=g.name)}))}return e},getLessonCoursewareId(){return this.lessonCoursewareId},getLessonCoursewareDetailId(){return this.lessonCoursewareDetailId},getTreeList(){return this.treeList},getCoursewareList(){return this.coursewareList},getTrainList(){return this.trainList},getTabType(){return this.tabType},getSelectMusicStatus(){return this.selectMusicStatus},getSelectResourceStatus(){return this.selectResourceStatus},getIsAddResource(){return this.isAddResource},getIsEditResource(){return this.isEditResource},getIsEditTrain(){return this.iseditTrain},getIsAddTrain(){return this.isAddTrain},getSubjectList(){return this.subjectList},getInstrumentList(){return this.instrumentList},getFormatInstrumentList(){const e=[];return this.instrumentList.forEach(l=>{l.value=l.id,l.label=l.name,l.instruments&&l.instruments.length>0&&l.instruments.forEach(a=>{a.label=a.name,a.value=a.id});const s={value:l.id,label:l.name,id:l.id,name:l.name,instruments:[]};l.instruments&&(l.instruments.length==1?(s.value=l.instruments[0].id,s.label=l.instruments[0].name,s.id=l.id,s.name=l.name):l.instruments.length>1&&l.instruments.forEach(a=>{a.label=a.name,a.value=a.id,s.instruments.push({label:a.name,value:a.id,id:a.id,name:a.name})})),e.push(s)}),e},getSingleInstrumentList(){const e=[];return this.instrumentList.forEach(l=>{Array.isArray(l.instruments)&&l.instruments.forEach(s=>{e.push(s)})}),e},getClassGroupId(){return this.classGroupId}},actions:{setSubjectId(e){this.subjectId=e},setInstrumentId(e){this.instrumentId=e},setBaseCourseware(e){this.baseCourseware=e},setSelectKey(e){this.selectKey=e},setLessonCoursewareId(e){this.lessonCoursewareId=e},setLessonCoursewareDetailId(e){this.lessonCoursewareDetailId=e},setTreeList(e){this.treeList=e},setCoursewareList(e){this.coursewareList=e},setTrainList(e){this.trainList=e},setTabType(e){this.tabType=e},setSelectMusicStatus(e){this.selectMusicStatus=e},setSelectResourceStatus(e){this.selectResourceStatus=e},setIsAddResource(e){this.isAddResource=e},setIsAddTrain(e){this.isAddTrain=e},setIsEditResource(e){this.isEditResource=e},setIsEditTrain(e){this.iseditTrain=e},setSubjectList(e){this.subjectList=e},setInstrumentList(e){this.instrumentList=e},setClassGroupId(e){this.classGroupId=e}}}),Le="_trainType_1ga5f_1",Re="_overflowBg_1ga5f_11",Ne="_iconDelete_1ga5f_26",De="_trainDisabled_1ga5f_31",Ue="_title_1ga5f_40",Me="_btn_1ga5f_55",Fe="_preview_1ga5f_100",Ge="_previewBtn_1ga5f_115",xe="_disPreview_1ga5f_121",je="_disPreviewDivide_1ga5f_134",qe="_BProgress_1ga5f_144",He="_type_1ga5f_184",Pe="_operation_1ga5f_190",Ve="_iconEdit_1ga5f_200",Qe="_trainInfo_1ga5f_211",ze="_trainName_1ga5f_214",Oe="_PRACTICE_1ga5f_236",Ke="_EVALUATION_1ga5f_239",Ye="_tagList_1ga5f_242",Ze="_offShelfBg_1ga5f_255",We="_offShelfTips_1ga5f_269",Je="_offShelfBtn_1ga5f_276",Xe="_removeVisiable_1ga5f_281",$e="_studentRemove_1ga5f_287",et="_btnGroupModal_1ga5f_299",tt="_reportModel_1ga5f_306",c={trainType:Le,overflowBg:Re,iconDelete:Ne,trainDisabled:De,"train-header":"_train-header_1ga5f_34",title:Ue,"title-tag":"_title-tag_1ga5f_47","title-text":"_title-text_1ga5f_52",btn:Me,"train-content":"_train-content_1ga5f_80",preview:Fe,previewBtn:Ge,disPreview:xe,disPreviewDivide:je,BProgress:qe,"train-footer":"_train-footer_1ga5f_178",type:He,operation:Pe,iconEdit:Ve,trainInfo:Qe,trainName:ze,PRACTICE:Oe,EVALUATION:Ke,tagList:Ye,offShelfBg:Ze,offShelfTips:We,offShelfBtn:Je,removeVisiable:Xe,studentRemove:$e,btnGroupModal:et,reportModel:tt},st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAv1JREFUaEPdmk3LElEUgJ+Xoi+VXmoXFlHbqIjQWhhoYAujRUofBG76C1K/ofAvtBGiD7RF5OIVUshFKREVbYsoaZcUal8U1XmZsdswztwZxzdus9M599zz3HvuuefcO0sY/iwt0P5NwBZL/yfgyyL6igpgK7Ab2AkkLMPXOQz+AQjICHgLvAY+zgs1D4CM8D5gD7Ac0pAPwCvgRdgZCgOw3jL8ILAhpOHOZt+ApxbI9yA6gwLsBY4qvh2kLx1ZcbGHwEsdYZHRBRC5NLBfV/Gccs+BHvDTT48OgLhJDtjlp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kY8XfqH1zfnz55XFn0PRb0Oow0Z4o8qh8kjMpt+oUoHQoX2hrUyrlu3t7WF2dtY0FGiV1+x3Cibl5uYiMTHRSfZgeY5vZapQhDa7g2kgQ0uVp+EkU2hYEOSMDDpMLUXMN7tVIHSjQeg4RKAq9fb2orq6WkqNjYX09PSgqqpKVtmBj0PI7CW7u7tKRJ2OTMgUMqAzMzNISkqSUWzwAzMqEPJchY9UmdWO/JSNjQ2pNiQ1NdWpn2Gsor0jVSoU79CdPz7vWKZJf/cO7ppDobsx3tFuw/ChOzLe4X8DlGi+K6M1Rc71EK20KL8zYwsGtdXyvozJ8PGumBmgeJcQjROQd03VfEr2LjKbrVe8q+4B1pjeYwiBwXjPZQQYSt6DKsEiNn5P7tBzO/Tsjp0nd+i5HXp2J/qf3JERzjqJMv4Fq+ybxlEMybAAAAAASUVORK5CYII=",Yt=k({name:"train-type",props:{type:{type:String,default:"homework"},item:{type:Object,default:()=>({})},isDelete:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isLarge:{type:Boolean,default:!1},offShelf:{type:Boolean,default:!1},isCLassWork:{type:Boolean,default:!1},from:{type:String,default:""}},emits:["click","delete","edit","offShelf"],setup(e,{emit:l}){const s=re(),a=Y(),g=I(!1),i=I(!1),f=I({type:"MUSIC",content:e.item.musicId,title:e.item.musicName}),y=()=>{f.value={type:"MUSIC",content:e.item.musicId,title:e.item.musicName},i.value=!0},p=I(""),n=I(!1),C=u=>{if(!u.id){a.error("暂无评测记录");return}const A=s.getToken;p.value=he()+"/instrument/#/evaluat-report?id=".concat(u.id,"&Authorization=").concat(A),n.value=!0},b=async()=>{var u;try{if(!((u=e.item)!=null&&u.recordId)){a.error("暂无数据");return}const{data:A}=await Ae({id:e.item.recordId});if(A.videoFilePath||A.recordFilePath){let o="";A.videoFilePath?o=Q(A.videoFilePath):o=Q(A.recordFilePath);const _=A.videoFilePath||A.recordFilePath;f.value.content=_,f.value.title=e.item.musicName,o==="video"?f.value.type="VIDEO":o==="audio"&&(f.value.type="SONG"),i.value=!0}else a.error("暂无数据")}catch(A){}},m=N(()=>{const u=e.item;return u?u.trainingType==="EVALUATION"?(u.trainingTimes||0)>=(u.allTimes||0):(u.trainingTimes?parseInt(u.trainingTimes/60+""):0)>=(u.allTimes||0):!1});return N(()=>!!(e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION")),()=>{var u,A;return t("div",{class:[c.trainType,e.item.trainingType==="EVALUATION"?c.evaluationType:""],onClick:()=>l("click",e.item)},[t("div",{class:[c["train-content"],e.isDisabled&&!e.isCLassWork&&c.trainDisabled,e.isLarge&&c.trainDisabled],onClick:()=>{e.isDisabled&&!e.isCLassWork||y()}},[t(Z,{src:e.item.coverImg,previewDisabled:!0,objectFit:"contain"},null),e.isDisabled&&!e.isCLassWork?t("div",{class:c.disPreview},[t(oe,{percentage:e.item.trainingType==="EVALUATION"?Number(e.item.trainingTimes)/Number(e.item.allTimes)*100:Number(e.item.trainingTimes)/60/Number(e.item.allTimes)*100,"offset-degree":180,type:"circle","rail-color":"8b8b8b",color:m.value?"#6CFFC1":"#FF7794",style:"width: 120px; margin: 0 0 10px;"},{default:()=>[t("div",{class:c.BProgress},[e.item.trainingType==="EVALUATION"?t("h4",null,[e.item.trainingTimes,t("span",null,[v("分")])]):t("h4",null,[e.item.trainingTimes?parseInt(e.item.trainingTimes/60+""):0,t("span",null,[v("分钟")])]),t("p",null,[e.item.trainingType==="EVALUATION"?"学生分数":"实际练习"," "])])]}),t("p",{class:c.disPreviewDivide},[e.item.trainingType==="EVALUATION"?"合格分数":"练习时长要求",e.item.allTimes,e.item.trainingType==="EVALUATION"?"分":"分钟"])]):null,e.isDelete&&t("img",{src:st,class:c.iconDelete,onClick:o=>{o.stopPropagation(),l("delete",e.item)}},null)]),t("div",{class:c["train-footer"]},[t("div",{class:c.trainInfo},[t("div",{class:c.trainName},[t("span",{class:[c.type,c[e.item.trainingType]]},[e.item.trainingType==="EVALUATION"?"评测":"练习"]),t("div",{class:c["title-text"]},[t(Se,{text:e.item.musicName},null)])]),t("div",{class:c.tagList},[(u=e.item.typeList)==null?void 0:u.map((o,_)=>t(D,null,[t("span",null,[o]),e.item.typeList.length-1>_&&t(ce,{vertical:!0},null)]))])]),e.isDisabled?null:t(T,{size:12},{default:()=>[t(F("n-button"),{quaternary:!0,disabled:!e.isDelete,class:c.operation,onClick:o=>{o.stopPropagation(),l("edit",e.item)}},{default:()=>[t(R,{showArrow:!1},{trigger:()=>t("i",{class:c.iconEdit},null),default:"编辑"})]})]}),e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION"&&((A=e.item)!=null&&A.recordId)?t(D,null,[t(T,{size:12},{default:()=>[t(F("n-button"),{quaternary:!0,disabled:e.isDelete,class:c.operation,onClick:o=>{o.stopPropagation(),C({id:e.item.recordId})}},{default:()=>[t(R,{showArrow:!1},{trigger:()=>t("img",{src:it},null),default:"评测报告"})]}),t(F("n-button"),{quaternary:!0,disabled:e.isDelete,class:c.operation,onClick:o=>{o.stopPropagation(),b()}},{default:()=>[t(R,{showArrow:!1},{trigger:()=>t("img",{src:at},null),default:"查看回放"})]})]})]):""]),e.offShelf&&t("div",{class:c.offShelfBg},[t("p",{class:c.offShelfTips},[v("该资源已被下架")]),t(B,{type:"primary",class:c.offShelfBtn,onClick:()=>l("offShelf")},{default:()=>[v("确认")]})]),t(V,{show:g.value,"onUpdate:show":o=>g.value=o,preset:"card",class:["modalTitle",c.removeVisiable],title:"提示"},{default:()=>[t("div",{class:c.studentRemove},[t("p",null,[v("您确定是否删除?")]),t(T,{class:c.btnGroupModal,justify:"center"},{default:()=>[t(B,{round:!0,type:"primary",onClick:()=>{g.value=!1,l("delete",e.item)}},{default:()=>[v("确定")]}),t(B,{round:!0,onClick:()=>g.value=!1},{default:()=>[v("取消")]})]})])]}),t(J,{from:e.from,show:i.value,"onUpdate:show":o=>i.value=o,item:f.value,isDownload:!1},null),t(V,{show:n.value,"onUpdate:show":o=>n.value=o,preset:"card",class:["modalTitle background",c.reportModel],title:"评测报告"},{default:()=>[t("div",{class:c.reportContainer,style:{lineHeight:0}},[t("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:o=>{ue(o.target)},src:p.value},null)])]})])}}}),lt="_trainUpdate_my1j3_1",nt="_updateBtnGroup_my1j3_4",rt="_active_my1j3_16",ot="_scoreGroup_my1j3_30",S={trainUpdate:lt,updateBtnGroup:nt,switch:"_switch_my1j3_12",active:rt,scoreGroup:ot},Zt=k({name:"train-update",props:{item:{type:Object,default:()=>({})},type:{type:String,default:"train"}},emits:["close","confirm"],setup(e,{emit:l}){Y();const s=U({id:null,uploading:!1,baseMaxScore:99,type:"PRACTICE",musicId:"",musicName:"",coursewareKnowledgeDetailId:"",minScore:null,maxScore:null,subjectId:"",coverImg:"",practiceSpeed:null,practiceTimes:null,difficulty:"BEGINNER",evaluationSpeed:null,evaluationScore:null}),a=I(),g=async()=>{var i;(i=a.value)==null||i.validate(async f=>{if(!f){s.uploading=!0;try{const y={trainingType:s.type,musicId:s.musicId,musicName:s.musicName,coursewareKnowledgeDetailId:s.coursewareKnowledgeDetailId,subjectId:s.subjectId,id:s.id,coverImg:s.coverImg,trainingConfigJson:""},p={};p.practiceChapterBegin=s.minScore,p.practiceChapterEnd=s.maxScore,s.type==="PRACTICE"?(p.practiceSpeed=s.practiceSpeed,p.trainingTimes=s.practiceTimes):(p.evaluateDifficult=s.difficulty,p.evaluateSpeed=s.evaluationSpeed,p.trainingTimes=s.evaluationScore),p.practiceChapterMax=s.baseMaxScore,y.trainingConfigJson=p,l("close"),l("confirm",y)}catch(y){}s.uploading=!1}})};return M(()=>{const i=e.item;console.log(i,"item"),i.trainId?(s.id=i.trainId,s.practiceSpeed=Number(i.practiceSpeed),s.type=i.trainingType,s.minScore=i.practiceChapterBegin,s.maxScore=i.practiceChapterEnd,i.trainingType==="PRACTICE"?s.practiceTimes=i.trainingTimes:s.evaluationScore=i.trainingTimes,s.difficulty=i.evaluateDifficult||"BEGINNER",s.evaluationSpeed=i.evaluateSpeed):(s.minScore=1,s.maxScore=i.practiceChapterMax?i.practiceChapterMax:1),s.baseMaxScore=i.practiceChapterMax||99,s.musicId=i.id,s.musicName=i.musicName,s.coursewareKnowledgeDetailId=i.coursewareKnowledgeDetailId,s.subjectId=i.subjectId,s.coverImg=i.coverImg}),()=>t("div",{class:S.trainUpdate},[t(W,{ref:a,model:s,labelAlign:"right",labelPlacement:"left"},{default:()=>[t(E,{label:"训练方式",path:"type",rule:[{required:!0,message:"请选择训练方式"}]},{default:()=>[t(T,null,{default:()=>[t(B,{secondary:!0,class:[S.switch,s.type==="PRACTICE"?S.active:""],onClick:()=>s.type="PRACTICE"},{default:()=>[v("练习")]}),e.item.containAccompaniment?t(B,{secondary:!0,class:[S.switch,s.type==="EVALUATION"?S.active:""],onClick:()=>s.type="EVALUATION"},{default:()=>[v("评测")]}):t(R,{showArrow:!1},{trigger:()=>t(B,{disabled:!0,secondary:!0,class:[S.switch]},{default:()=>[v("评测")]}),default:()=>"该曲目暂不支持评测"})]})]}),t("div",{class:S.scoreGroup},[t(E,{label:s.type==="PRACTICE"?"练习小节":"评测小节",path:"minScore",rule:[{required:!0,message:"请输入最小练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[t(L,{value:s.minScore,"onUpdate:value":[i=>s.minScore=i,()=>{s.maxScore=null}],showButton:!1,min:1,max:s.baseMaxScore,precision:0,placeholder:"最小练习小节",clearable:!0},null)]}),t("div",{style:{"--n-feedback-height":"24px",display:"flex",alignItems:"center",margin:"-2px 2% 0 2%",marginBottom:"var(--n-feedback-height)"}},[v("-")]),t(E,{path:"maxScore",rule:[{required:!0,message:"请输入最大练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[t(L,{value:s.maxScore,"onUpdate:value":i=>s.maxScore=i,showButton:!1,precision:0,min:s.minScore||1,max:s.baseMaxScore,placeholder:"最大练习小节",clearable:!0},null)]})]),s.type==="PRACTICE"&&t(D,null,[t(E,{label:"练习速度",path:"practiceSpeed",rule:[{required:!0,message:"请输入练习速度",trigger:["blur","change"],type:"number"}]},{default:()=>[t(L,{min:60,max:270,precision:0,showButton:!1,style:{width:"100%"},value:s.practiceSpeed,"onUpdate:value":i=>s.practiceSpeed=i,placeholder:"练习速度范围60~270",clearable:!0},null)]}),t(E,{label:"练习时长",path:"practiceTimes",rule:[{required:!0,message:"请输入练习时长",trigger:["blur","change"],type:"number"}]},{default:()=>[t(z,null,{default:()=>[t(L,{min:0,max:1e3,showButton:!1,precision:0,style:{width:"100%"},value:s.practiceTimes,"onUpdate:value":i=>s.practiceTimes=i,placeholder:"请输入练习时长",clearable:!0},null),t(O,null,{default:()=>[v("分钟")]})]})]})]),s.type==="EVALUATION"&&t(D,null,[t(E,{label:"评测难度",path:"type",rule:[{required:!0,message:"请选择评测难度"}]},{default:()=>[t(T,null,{default:()=>[t(B,{secondary:!0,class:[S.switch,s.difficulty==="BEGINNER"?S.active:""],onClick:()=>s.difficulty="BEGINNER"},{default:()=>[v("入门级")]}),t(B,{secondary:!0,class:[S.switch,s.difficulty==="ADVANCED"?S.active:""],onClick:()=>s.difficulty="ADVANCED"},{default:()=>[v("进阶级")]}),t(B,{secondary:!0,class:[S.switch,s.difficulty==="PERFORMER"?S.active:""],onClick:()=>s.difficulty="PERFORMER"},{default:()=>[v("大师级")]})]})]}),t(E,{label:"合格分数",path:"evaluationScore",rule:[{required:!0,message:"请输入合格分数",trigger:["blur","change"],type:"number"}]},{default:()=>[t(z,null,{default:()=>[t(L,{min:0,max:100,precision:0,showButton:!1,style:{width:"100%"},value:s.evaluationScore,"onUpdate:value":i=>s.evaluationScore=i,placeholder:"请输入合格分数",clearable:!0},null),t(O,null,{default:()=>[v("分")]})]})]})]),t(T,{class:S.updateBtnGroup},{default:()=>[t(B,{strong:!0,type:"default",round:!0,onClick:()=>l("close")},{default:()=>[v("取消")]}),t(B,{strong:!0,type:"primary",round:!0,onClick:()=>g()},{default:()=>[v("确认")]})]})]})])}}),ct="_selectMusic_fj7p5_1",ut="_close_fj7p5_37",dt="_listContainer_fj7p5_44",x={selectMusic:ct,close:ut,listContainer:dt},ft="_selectMusic_1khq6_1",mt="_close_1khq6_1",gt="_listContainer_1khq6_8",pt="_emptySection_1khq6_11",ht="_list_1khq6_8",At="_searchGroup_1khq6_24",vt="_inputSearch_1khq6_47",yt="_searchBtn_1khq6_62",bt="_popSelect_1khq6_68",Ct="_spaceSection2_1khq6_78",St="_textBtn_1khq6_87",It="_iconArrow_1khq6_99",Bt="_textBtnActive_1khq6_108",Et="_spaceSection_1khq6_78",Tt="_collapseWrap_1khq6_127",wt="_collaoseGroup_1khq6_133",_t="_collaoseBtn_1khq6_140",kt="_isStart_1khq6_145",Lt="_collapsSection_1khq6_148",Rt="_collapsSectionEmpty_1khq6_151",Nt="_isHidden_1khq6_156",Dt="_hideButton_1khq6_160",d={selectMusic:ft,close:mt,listContainer:gt,emptySection:pt,list:ht,searchGroup:At,inputSearch:vt,searchBtn:yt,popSelect:bt,spaceSection2:Ct,textBtn:St,iconArrow:It,textBtnActive:Bt,spaceSection:Et,collapseWrap:Tt,collaoseGroup:wt,collaoseBtn:_t,isStart:kt,collapsSection:Lt,collapsSectionEmpty:Rt,isHidden:Nt,hideButton:Dt};function Ut(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fe(e)}const Mt=k({name:"search-group",props:{type:{type:String,default:""}},emits:["search","add"],setup(e,{emit:l}){const s=X(),a=U({name:"",musicSheetCategoriesId:null,musicalInstrumentId:null}),g=U({tempSubjectId:null}),i=()=>{l("search",a)},f=$(()=>{i()},500),y=I(),p=I([]),n=I(0),C=I(0),b=I(0),m=I(!1),u=I(!1),A=h=>{h!=null&&h.selfElRef&&p.value.push(h.selfElRef.parentNode)},o=h=>{m.value=h,_()},_=()=>{try{p.value=[...new Set(p.value)];let h=-1;p.value.forEach((r,w)=>{w===0?(b.value=1,h=r.offsetLeft):r.offsetLeft===h&&w!=0&&b.value++,m.value?r.style.display="block":b.value>1?r.style.display="none":r.style.display="block"}),u.value=!0}catch(h){}},q=h=>{const r={};return h==null||h.forEach(w=>{w.id===a.musicalInstrumentId&&(r.selected=!0,r.name=w.name)}),r};return M(async()=>{var h,r;await s.getMusicSheetCategory(),await s.getSubjects(),n.value=(h=y.value)==null?void 0:h.offsetHeight,C.value=((r=y.value)==null?void 0:r.offsetHeight)/b.value,_()}),()=>{let h;return t("div",{class:d.searchGroup},[t(W,{labelAlign:"left",labelPlacement:"left"},{default:()=>[t("div",{class:[d.collapsSection,e.type==="myResources"&&d.collapsSectionEmpty]},[t(E,{label:"教材:"},{default:()=>[t("div",{class:[d.collapseWrap,u.value?"":d.hideButton,m.value?"":d.isHidden],ref:y},[t(T,{class:[d.spaceSection]},{default:()=>[s.getAllMusicCategories.map(r=>t(B,{ref:A,secondary:a.musicSheetCategoriesId===r.id,quaternary:a.musicSheetCategoriesId!==r.id,strong:!0,focusable:!1,type:a.musicSheetCategoriesId===r.id?"primary":"default",onClick:()=>{a.musicSheetCategoriesId=r.id,f()}},{default:()=>[r.name]})),b.value>1&&t("div",{class:d.collaoseGroup,onClick:()=>{o(!m.value)}},[t(Z,{previewDisabled:!0,src:ve,class:[d.collaoseBtn,m.value?d.isStart:""]},null)])]})])]})]),t(E,{label:"乐器:"},{default:()=>[t(T,{class:d.spaceSection2},Ut(h=s.getSubjectInstruments.map(r=>r.instruments&&r.instruments.length>1?t(de,{options:r.instruments,trigger:"hover",scrollable:!0,value:g.tempSubjectId,"onUpdate:value":[w=>g.tempSubjectId=w,()=>{a.musicalInstrumentId=g.tempSubjectId,i()}],key:r.value,class:[d.popSelect]},{default:()=>[t("span",{class:[d.textBtn,q(r.instruments).selected&&d.textBtnActive]},[q(r.instruments).name||r.name,t("i",{class:d.iconArrow},null)])]}):t("span",{class:[d.textBtn,a.musicalInstrumentId===r.value&&d.textBtnActive],onClick:()=>{a.musicalInstrumentId=r.value,g.tempSubjectId=null,i()}},[r.name])))?h:{default:()=>[h]})]}),t(Ie,{class:[d.inputSearch],round:!0,onSearch:r=>{a.name=r,f()}},null)]})])}}}),Ft=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4},j=k({name:"select-music",props:{type:{type:String,default:""},from:{type:String,default:""}},emits:["add"],setup(e,{emit:l}){const s=ke(),a=U({searchHeight:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{name:"",type:"MUSIC",musicSheetCategoriesId:"",musicalInstrumentId:"",sourceType:Ft(e.type),status:1,versionFlag:!1,subjectId:null},tableList:[],show:!1,item:{},isShowAddDisabled:!s.getIsEditTrain}),g="musicSearchGroup"+ +new Date,i=async()=>{try{a.pagination.page===1&&(a.loading=!0);const{data:n}=await be({...a.searchGroup,...a.pagination});if(a.loading=!1,n.current===1&&a.tableList.length>0)return;const C=n.rows||[],b=[];C.forEach(m=>{b.push({id:m.id,coverImg:m.coverImg||m.musicSvg,type:"MUSIC",title:m.name,isCollect:!!m.favoriteFlag,isSelected:m.sourceFrom==="PLATFORM",refFlag:m.refFlag,content:m.id,xmlFileUrl:m.xmlFileUrl,containAccompaniment:m.containAccompaniment})}),a.tableList.push(...b),a.finshed=n.pages<=n.current}catch(n){a.loading=!1}},f=Be(n=>{a.pagination.page=1,a.tableList=[],a.searchGroup=Object.assign(a.searchGroup,n),i()},500),y=$(()=>{a.pagination.page=a.pagination.page+1,i()},500),p=async n=>{try{await Ce({materialId:n.id,favoriteFlag:n.isCollect?0:1,type:n.type}),n.isCollect=!n.isCollect}catch(C){}};return M(()=>{ee(document.querySelector("."+g),n=>{const C=n[0],{height:b}=C.contentRect;a.searchHeight=b+"px"}),e.type==="homework"&&(a.isShowAddDisabled=!1),i()}),()=>t("div",{class:d.selectMusic},[t("div",{class:g},[t(Mt,{type:e.type,onSearch:n=>f(n)},null)]),t(Te,{class:d.listContainer,style:{"max-height":"calc(85vh - var(--modal-lesson-tab-height) - ".concat(a.searchHeight," - 12px) ")},onScroll:n=>{var u,A,o;const C=(u=n.target)==null?void 0:u.clientHeight,b=(A=n.target)==null?void 0:A.scrollTop,m=(o=n.target)==null?void 0:o.scrollHeight;C+b+20>=m&&!a.finshed&&!a.loading&&y()}},{default:()=>[t(me,{show:a.loading,size:"small"},{default:()=>[t("div",{style:{"min-height":"calc(85vh - var(--modal-lesson-tab-height) - ".concat(a.searchHeight," - 12px)")},class:[d.listSection,!a.loading&&a.tableList.length<=0?d.emptySection:""]},[a.tableList.length>0&&t("div",{class:d.list},[a.tableList.map(n=>t(ye,{isShowAdd:!0,isShowCollect:!0,item:n,onAdd:()=>l("add",n),disabledMouseHover:!1,onClick:()=>{n.type!=="IMG"&&(a.show=!0,a.item=n)},onCollect:C=>p(C)},null))]),!a.loading&&a.tableList.length<=0&&t(Ee,null,null)])]})]}),t(J,{from:e.from,show:a.show,"onUpdate:show":n=>a.show=n,item:a.item,isDownload:!1},null)])}}),Wt=k({name:"select-music",props:{type:{type:String,default:"myResources"},from:{type:String,default:""}},emits:["select","add"],setup(e,{emit:l}){const{type:s}=ge(e),a=I(s.value),g=X();return M(async()=>{ee(document.querySelector(".select-resource .n-tabs-nav--top"),i=>{const f=i[0],{height:y}=f.contentRect;document.documentElement.style.setProperty("--modal-lesson-tab-height",y+"px")}),await g.getMusicSheetCategory(!0)}),()=>t("div",{class:[x.selectMusic,"select-resource"]},[t(pe,{animated:!0,value:a.value,paneClass:x.paneTitle,justifyContent:"center",paneWrapperClass:x.paneWrapperContainer,"onUpdate:value":i=>{a.value=i}},{default:()=>[t(G,{name:"myResources",tab:"我的曲目"},{default:()=>[t(j,{from:e.from,type:"myResources",onAdd:i=>l("add",i)},null)]}),t(G,{name:"shareResources",tab:"共享曲目"},{default:()=>[t(j,{from:e.from,type:"shareResources",onAdd:i=>l("add",i)},null)]}),t(G,{name:"myCollect",tab:"收藏曲目"},{default:()=>[t(j,{from:e.from,type:"myCollect",onAdd:i=>l("add",i)},null)]})]})])}});export{Wt as S,Yt as T,Zt as a,st as i,ke as u};
|