import{af as re,ag as oe,d as L,ab as ce,ao as Y,U as M,dd as V,ap as ue,ad as j,de,a_ as me,c as fe,b as W,r as C,f as t,w as ge,aN as he,k as v,F as R,b9 as pe,x as N,Z as G,V as U,j as w,l as q,m as Q,G as Ae,ba as z,e as k,q as F,N as X,g as E,d8 as D,i as O,aC as ve,D as ye,aO as J,A as Se,E as Ie,t as be,v as x}from"./index-b48b51d2-1720699367816.js";import{C as $}from"./index-43a4a5ce-1720699367816.js";import{v as Ce}from"./urlUtils-72ef455d-1720699367816.js";import{I as Te,C as Be,q as we,r as Ee}from"./api-b1ba779f-1720699367816.js";import{T as _e}from"./index-96385afb-1720699367816.js";import{T as Ne}from"./index-876d8b60-1720699367816.js";import{u as ee}from"./catchData-309c65ac-1720699367816.js";import{a as te,u as Le}from"./index-966150e9-1720699367816.js";import{T as Re}from"./index-a2dc20f3-1720699367816.js";import{u as ae}from"./index-4d81797f-1720699367816.js";import{N as De}from"./Scrollbar-74a02354-1720699367816.js";const ke=re("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",[oe("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 ")]),Ue=Object.assign(Object.assign({},Y.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),K=L({name:"InputGroupLabel",props:Ue,setup(e){const{mergedBorderedRef:l,mergedClsPrefixRef:a,inlineThemeDisabled:s}=ce(e),m=Y("Input","-input-group-label",ke,de,e,a),i=M(()=>{const{size:y}=e,{common:{cubicBezierEaseInOut:f},self:{groupLabelColor:T,borderRadius:n,groupLabelTextColor:S,lineHeight:I,groupLabelBorder:o,[V("fontSize",y)]:h,[V("height",y)]:c}}=m.value;return{"--n-bezier":f,"--n-group-label-color":T,"--n-group-label-border":o,"--n-border-radius":n,"--n-group-label-text-color":S,"--n-font-size":h,"--n-line-height":I,"--n-height":c}}),r=s?ue("input-group-label",M(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:a,mergedBordered:l,cssVars:s?void 0:i,themeClass:r==null?void 0:r.themeClass,onRender:r==null?void 0:r.onRender}},render(){var e,l,a;const{mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),j("div",{class:["".concat(s,"-input-group-label"),this.themeClass],style:this.cssVars},(a=(l=this.$slots).default)===null||a===void 0?void 0:a.call(l),this.mergedBordered?j("div",{class:"".concat(s,"-input-group-label__border")}):null)}}),Me=me("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 a=0;a0&&((l=s.knowledgeList)==null||l.forEach(m=>{m.id===this.selectKey&&(e=m.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(s=>{s.label=s.name,s.value=s.id});const a={value:l.id,label:l.name,id:l.id,name:l.name,instruments:[]};l.instruments&&(l.instruments.length==1?(a.value=l.instruments[0].id,a.label=l.instruments[0].name,a.id=l.id,a.name=l.name):l.instruments.length>1&&l.instruments.forEach(s=>{s.label=s.name,s.value=s.id,a.instruments.push({label:s.name,value:s.id,id:s.id,name:s.name})})),e.push(a)}),e},getSingleInstrumentList(){const e=[];return this.instrumentList.forEach(l=>{Array.isArray(l.instruments)&&l.instruments.forEach(a=>{e.push(a)})}),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}}}),Fe="_trainType_1feah_1",Ge="_overflowBg_1feah_11",xe="_iconDelete_1feah_26",Pe="_trainDisabled_1feah_31",He="_title_1feah_40",Ve="_btn_1feah_55",je="_preview_1feah_100",qe="_previewBtn_1feah_115",Qe="_disPreview_1feah_121",ze="_disPreviewDivide_1feah_134",Oe="_BProgress_1feah_144",Ke="_type_1feah_184",Ze="_operation_1feah_190",Ye="_iconEdit_1feah_200",We="_trainInfo_1feah_211",Xe="_trainName_1feah_214",Je="_PRACTICE_1feah_236",$e="_EVALUATION_1feah_239",et="_tagList_1feah_242",tt="_offShelfBg_1feah_255",at="_offShelfTips_1feah_269",st="_offShelfBtn_1feah_276",it="_removeVisiable_1feah_281",lt="_studentRemove_1feah_287",nt="_btnGroupModal_1feah_299",rt="_reportModel_1feah_306",u={trainType:Fe,overflowBg:Ge,iconDelete:xe,trainDisabled:Pe,"train-header":"_train-header_1feah_34",title:He,"title-tag":"_title-tag_1feah_47","title-text":"_title-text_1feah_52",btn:Ve,"train-content":"_train-content_1feah_80",preview:je,previewBtn:qe,disPreview:Qe,disPreviewDivide:ze,BProgress:Oe,"train-footer":"_train-footer_1feah_178",type:Ke,operation:Ze,iconEdit:Ye,trainInfo:We,trainName:Xe,PRACTICE:Je,EVALUATION:$e,tagList:et,offShelfBg:tt,offShelfTips:at,offShelfBtn:st,removeVisiable:it,studentRemove:lt,btnGroupModal:nt,reportModel:rt},ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAv1JREFUaEPdmk3LElEUgJ+Xoi+VXmoXFlHbqIjQWhhoYAujRUofBG76C1K/ofAvtBGiD7RF5OIVUshFKREVbYsoaZcUal8U1XmZsdswztwZxzdus9M599zz3HvuuefcO0sY/iwt0P5NwBZL/yfgyyL6igpgK7Ab2AkkLMPXOQz+AQjICHgLvAY+zgs1D4CM8D5gD7Ac0pAPwCvgRdgZCgOw3jL8ILAhpOHOZt+ApxbI9yA6gwLsBY4qvh2kLx1ZcbGHwEsdYZHRBRC5NLBfV/Gccs+BHvDTT48OgLhJDtjlpyzi92+ANiDuNfPxAxDjTwHbIjZOV90QuOsF4QUg7078g5F3wslMrMxyJy+AI2vo834zImvikZvQLACJNsf9tK7x+/tu0ckNQOL8uQWGyrDcEmJvAn/tE24AskGlwvay4HZ9a8ObduMEkPRARj+qHT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HSjQeg4RKAq9fb2orq6WkqNjYX09PSgqqpKVtmBj0PI7CW7u7tKRJ2OTMgUMqAzMzNISkqSUWzwAzMqEPJchY9UmdWO/JSNjQ2pNiQ1NdWpn2Gsor0jVSoU79CdPz7vWKZJf/cO7ppDobsx3tFuw/ChOzLe4X8DlGi+K6M1Rc71EK20KL8zYwsGtdXyvozJ8PGumBmgeJcQjROQd03VfEr2LjKbrVe8q+4B1pjeYwiBwXjPZQQYSt6DKsEiNn5P7tBzO/Tsjp0nd+i5HXp2J/qf3JERzjqJMv4Fq+ybxlEMybAAAAAASUVORK5CYII=",ea=L({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 a=fe(),s=W(),m=C(!1),i=C(!1),r=C({type:"MUSIC",content:e.item.musicId,title:e.item.musicName}),y=()=>{r.value={type:"MUSIC",content:e.item.musicId,title:e.item.musicName},i.value=!0},f=C(""),T=C(!1),n=o=>{if(!o.id){s.error("暂无评测记录");return}const h=a.getToken;f.value=Ce()+"/instrument/#/evaluat-report?id=".concat(o.id,"&Authorization=").concat(h),T.value=!0},S=async()=>{var o;try{if(!((o=e.item)!=null&&o.recordId)){s.error("暂无数据");return}const{data:h}=await Te({id:e.item.recordId});if(h.videoFilePath||h.recordFilePath){let c="";h.videoFilePath?c=z(h.videoFilePath):c=z(h.recordFilePath);const _=h.videoFilePath||h.recordFilePath;r.value.content=_,r.value.title=e.item.musicName,c==="video"?r.value.type="VIDEO":c==="audio"&&(r.value.type="SONG"),i.value=!0}else s.error("暂无数据")}catch(h){}},I=M(()=>{const o=e.item;return o?o.trainingType==="EVALUATION"?(o.trainingTimes||0)>=(o.allTimes||0):(o.trainingTimes?parseInt(o.trainingTimes/60+""):0)>=(o.allTimes||0):!1});return M(()=>!!(e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION")),()=>{var o,h;return t("div",{class:[u.trainType,e.item.trainingType==="EVALUATION"?u.evaluationType:""],onClick:()=>l("click",e.item)},[t("div",{class:[u["train-content"],e.isDisabled&&!e.isCLassWork&&u.trainDisabled,e.isLarge&&u.trainDisabled],onClick:()=>{e.isDisabled&&!e.isCLassWork||y()}},[t(ge,{src:e.item.coverImg,previewDisabled:!0,objectFit:"contain"},null),e.isDisabled&&!e.isCLassWork?t("div",{class:u.disPreview},[t(he,{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:I.value?"#6CFFC1":"#FF7794",style:"width: 120px; margin: 0 0 10px;"},{default:()=>[t("div",{class:u.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:u.disPreviewDivide},[e.item.trainingType==="EVALUATION"?"合格分数":"练习时长要求",e.item.allTimes,e.item.trainingType==="EVALUATION"?"分":"分钟"])]):null,e.isDelete&&t("img",{src:ot,class:u.iconDelete,onClick:c=>{c.stopPropagation(),l("delete",e.item)}},null)]),t("div",{class:u["train-footer"]},[t("div",{class:u.trainInfo},[t("div",{class:u.trainName},[t("span",{class:[u.type,u[e.item.trainingType]]},[e.item.trainingType==="EVALUATION"?"评测":"练习"]),t("div",{class:u["title-text"]},[t(_e,{text:e.item.musicName},null)])]),t("div",{class:u.tagList},[(o=e.item.typeList)==null?void 0:o.map((c,_)=>t(R,null,[t("span",null,[c]),e.item.typeList.length-1>_&&t(pe,{vertical:!0},null)]))])]),e.isDisabled?null:t(N,{size:12},{default:()=>[t(G("n-button"),{quaternary:!0,disabled:!e.isDelete,class:u.operation,onClick:c=>{c.stopPropagation(),l("edit",e.item)}},{default:()=>[t(U,{showArrow:!1},{trigger:()=>t("i",{class:u.iconEdit},null),default:"编辑"})]})]}),e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION"&&((h=e.item)!=null&&h.recordId)?t(R,null,[t(N,{size:12},{default:()=>[t(G("n-button"),{quaternary:!0,disabled:e.isDelete,class:u.operation,onClick:c=>{c.stopPropagation(),n({id:e.item.recordId})}},{default:()=>[t(U,{showArrow:!1},{trigger:()=>t("img",{src:ut},null),default:"评测报告"})]}),t(G("n-button"),{quaternary:!0,disabled:e.isDelete,class:u.operation,onClick:c=>{c.stopPropagation(),S()}},{default:()=>[t(U,{showArrow:!1},{trigger:()=>t("img",{src:ct},null),default:"查看回放"})]})]})]):""]),e.offShelf&&t("div",{class:u.offShelfBg},[t("p",{class:u.offShelfTips},[v("该资源已被下架")]),t(w,{type:"primary",class:u.offShelfBtn,onClick:()=>l("offShelf")},{default:()=>[v("确认")]})]),t(q,{maskClosable:Q,show:m.value,"onUpdate:show":c=>m.value=c,preset:"card",class:["modalTitle",u.removeVisiable],title:"提示"},{default:()=>[t("div",{class:u.studentRemove},[t("p",null,[v("您确定是否删除?")]),t(N,{class:u.btnGroupModal,justify:"center"},{default:()=>[t(w,{round:!0,type:"primary",onClick:()=>{m.value=!1,l("delete",e.item)}},{default:()=>[v("确定")]}),t(w,{round:!0,onClick:()=>m.value=!1},{default:()=>[v("取消")]})]})])]}),t($,{from:e.from,show:i.value,"onUpdate:show":c=>i.value=c,item:r.value,isDownload:!1},null),t(q,{maskClosable:Q,show:T.value,"onUpdate:show":c=>T.value=c,preset:"card",class:["modalTitle background",u.reportModel],title:"评测报告"},{default:()=>[t("div",{class:u.reportContainer,style:{lineHeight:0}},[t("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:c=>{Ae(c.target)},src:f.value},null)])]})])}}}),dt="_trainUpdate_19qoy_1",mt="_updateBtnGroup_19qoy_4",ft="_active_19qoy_16",gt="_difficultySpace_19qoy_20",ht="_scoreGroup_19qoy_33",b={trainUpdate:dt,updateBtnGroup:mt,switch:"_switch_19qoy_12",active:ft,difficultySpace:gt,scoreGroup:ht},ta=L({name:"train-update",props:{item:{type:Object,default:()=>({})},type:{type:String,default:"train"}},emits:["close","confirm"],setup(e,{emit:l}){W();const a=k({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}),s=C(),m=async()=>{var i;(i=s.value)==null||i.validate(async r=>{if(!r){a.uploading=!0;try{const y={trainingType:a.type,musicId:a.musicId,musicName:a.musicName,coursewareKnowledgeDetailId:a.coursewareKnowledgeDetailId,subjectId:a.subjectId,id:a.id,coverImg:a.coverImg,trainingConfigJson:""},f={};f.practiceChapterBegin=a.minScore,f.practiceChapterEnd=a.maxScore,a.type==="PRACTICE"?(f.practiceSpeed=a.practiceSpeed,f.trainingTimes=a.practiceTimes):(f.evaluateDifficult=a.difficulty,f.evaluateSpeed=a.evaluationSpeed,f.trainingTimes=a.evaluationScore),f.practiceChapterMax=a.baseMaxScore,y.trainingConfigJson=f,l("close"),l("confirm",y)}catch(y){}a.uploading=!1}})};return F(()=>{const i=e.item;console.log(i,"item"),i.trainId?(a.id=i.trainId,a.practiceSpeed=Number(i.practiceSpeed),a.type=i.trainingType,a.minScore=i.practiceChapterBegin,a.maxScore=i.practiceChapterEnd,i.trainingType==="PRACTICE"?a.practiceTimes=i.trainingTimes:a.evaluationScore=i.trainingTimes,a.difficulty=i.evaluateDifficult||"BEGINNER",a.evaluationSpeed=i.evaluateSpeed):(a.minScore=1,a.maxScore=i.practiceChapterMax?i.practiceChapterMax:1),a.baseMaxScore=i.practiceChapterMax||99,a.musicId=i.id,a.musicName=i.musicName,a.coursewareKnowledgeDetailId=i.coursewareKnowledgeDetailId,a.subjectId=i.subjectId,a.coverImg=i.coverImg}),()=>t("div",{class:b.trainUpdate},[t(X,{ref:s,model:a,labelAlign:"right",labelPlacement:"left"},{default:()=>[t(E,{label:"训练方式",path:"type",rule:[{required:!0,message:"请选择训练方式"}]},{default:()=>[t(N,null,{default:()=>[t(w,{secondary:!0,class:[b.switch,a.type==="PRACTICE"?b.active:""],onClick:()=>a.type="PRACTICE"},{default:()=>[v("练习")]}),e.item.containAccompaniment?t(w,{secondary:!0,class:[b.switch,a.type==="EVALUATION"?b.active:""],onClick:()=>a.type="EVALUATION"},{default:()=>[v("评测")]}):t(U,{showArrow:!1},{trigger:()=>t(w,{disabled:!0,secondary:!0,class:[b.switch]},{default:()=>[v("评测")]}),default:()=>"该曲目暂不支持评测"})]})]}),t("div",{class:b.scoreGroup},[t(E,{label:a.type==="PRACTICE"?"练习小节":"评测小节",path:"minScore",rule:[{required:!0,message:"请输入最小练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[t(D,{value:a.minScore,"onUpdate:value":[i=>a.minScore=i,()=>{a.maxScore=null}],showButton:!1,min:1,max:a.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(D,{value:a.maxScore,"onUpdate:value":i=>a.maxScore=i,showButton:!1,precision:0,min:a.minScore||1,max:a.baseMaxScore,placeholder:"最大练习小节",clearable:!0},null)]})]),a.type==="PRACTICE"&&t(R,null,[t(E,{label:"练习速度",path:"practiceSpeed",rule:[{required:!0,message:"请输入练习速度",trigger:["blur","change"],type:"number"}]},{default:()=>[t(D,{min:60,max:270,precision:0,showButton:!1,style:{width:"100%"},value:a.practiceSpeed,"onUpdate:value":i=>a.practiceSpeed=i,placeholder:"练习速度范围60~270",clearable:!0},null)]}),t(E,{label:"练习时长",path:"practiceTimes",rule:[{required:!0,message:"请输入练习时长",trigger:["blur","change"],type:"number"}]},{default:()=>[t(O,null,{default:()=>[t(D,{min:0,max:1e3,showButton:!1,precision:0,style:{width:"100%"},value:a.practiceTimes,"onUpdate:value":i=>a.practiceTimes=i,placeholder:"请输入练习时长",clearable:!0},null),t(K,null,{default:()=>[v("分钟")]})]})]})]),a.type==="EVALUATION"&&t(R,null,[t(E,{label:"评测难度",path:"type",rule:[{required:!0,message:"请选择评测难度"}]},{default:()=>[t(N,{class:b.difficultySpace},{default:()=>[t(w,{secondary:!0,class:[b.switch,a.difficulty==="BEGINNER"?b.active:""],onClick:()=>a.difficulty="BEGINNER"},{default:()=>[v("入门级")]}),t(w,{secondary:!0,class:[b.switch,a.difficulty==="ADVANCED"?b.active:""],onClick:()=>a.difficulty="ADVANCED"},{default:()=>[v("进阶级")]}),t(w,{secondary:!0,class:[b.switch,a.difficulty==="PERFORMER"?b.active:""],onClick:()=>a.difficulty="PERFORMER"},{default:()=>[v("大师级")]})]})]}),t(E,{label:"合格分数",path:"evaluationScore",rule:[{required:!0,message:"请输入合格分数",trigger:["blur","change"],type:"number"}]},{default:()=>[t(O,null,{default:()=>[t(D,{min:0,max:100,precision:0,showButton:!1,style:{width:"100%"},value:a.evaluationScore,"onUpdate:value":i=>a.evaluationScore=i,placeholder:"请输入合格分数",clearable:!0},null),t(K,null,{default:()=>[v("分")]})]})]})]),t(N,{class:b.updateBtnGroup},{default:()=>[t(w,{strong:!0,type:"default",round:!0,onClick:()=>l("close")},{default:()=>[v("取消")]}),t(w,{strong:!0,type:"primary",round:!0,onClick:()=>m()},{default:()=>[v("确认")]})]})]})])}}),pt="_selectMusic_fj7p5_1",At="_close_fj7p5_37",vt="_listContainer_fj7p5_44",P={selectMusic:pt,close:At,listContainer:vt},yt="_selectMusic_1mm1o_1",St="_close_1mm1o_1",It="_listContainer_1mm1o_8",bt="_emptySection_1mm1o_11",Ct="_list_1mm1o_8",Tt="_searchGroup_1mm1o_24",Bt="_inputSearch_1mm1o_47",wt="_searchBtn_1mm1o_62",Et="_popSelect_1mm1o_68",_t="_spaceSection2_1mm1o_78",Nt="_textBtn_1mm1o_87",Lt="_iconArrow_1mm1o_99",Rt="_textBtnActive_1mm1o_108",Dt="_spaceSection_1mm1o_78",kt="_collapseWrap_1mm1o_124",Ut="_collaoseGroup_1mm1o_130",Mt="_collaoseBtn_1mm1o_137",Ft="_isStart_1mm1o_142",Gt="_collapsSection_1mm1o_145",xt="_collapsSectionEmpty_1mm1o_148",Pt="_isHidden_1mm1o_153",Ht="_hideButton_1mm1o_157",g={selectMusic:yt,close:St,listContainer:It,emptySection:bt,list:Ct,searchGroup:Tt,inputSearch:Bt,searchBtn:wt,popSelect:Et,spaceSection2:_t,textBtn:Nt,iconArrow:Lt,textBtnActive:Rt,spaceSection:Dt,collapseWrap:kt,collaoseGroup:Ut,collaoseBtn:Mt,isStart:Ft,collapsSection:Gt,collapsSectionEmpty:xt,isHidden:Pt,hideButton:Ht};function Z(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ye(e)}const se=L({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]}},emits:["selectChildTag"],setup(e,{emit:l}){const{activeRow:a}=J(e),s=C({});return Se(()=>e.activeRow,()=>{a.value=e.activeRow,s.value={}}),()=>{var m;return t(R,null,[((m=a.value)==null?void 0:m.id)&&t(R,null,[t(E,{label:a.value.columnName+":"},{default:()=>[t(N,{class:g.spaceSection2},{default:()=>{var i;return[(i=a.value)==null?void 0:i.children.map(r=>t("span",{class:[g.textBtn,(a.value.activeIndex||"")==r.id&&g.textBtnActive],onClick:()=>{a.value.activeIndex=r.id;let y,f="";r.children?(y=[{columnName:r.children[0].columnName,name:"全部",id:""},...r.children],f=r.children[0].columnName,s.value={...r,columnName:f,activeIndex:"",children:y}):s.value={},l("selectChildTag",a.value.activeIndex)}},[r.name]))]}})]}),t(se,{activeRow:s.value,onSelectChildTag:i=>{l("selectChildTag",i||a.value.activeIndex)}},null)])])}}}),Vt=L({name:"search-group",props:{type:{type:String,default:""}},emits:["search","add"],setup(e,{emit:l}){const a=ee(),s=k({name:"",bookVersionId:null,musicalInstrumentId:null}),m=k({tempSubjectId:null,gradeList:[],musicCategory:[]}),i=k({selectParents:{},tags:[],tagActiveId:"",tagActive:{},childSelectId:null}),r=d=>{l("search",{...s,bookVersionId:i.childSelectId||i.tagActiveId},d)},y=te(()=>{r()},500),f=C(),T=C([]),n=C(0),S=C(0),I=C(0),o=C(!1),h=C(!1),c=()=>{try{T.value=[...new Set(T.value)];let d=-1;T.value.forEach((p,B)=>{B===0?(I.value=1,d=p.offsetLeft):p.offsetLeft===d&&B!=0&&I.value++,o.value?p.style.display="block":I.value>1?p.style.display="none":p.style.display="block"}),h.value=!0}catch(d){}},_=d=>{const p={};return d==null||d.forEach(B=>{B.id===s.musicalInstrumentId&&(p.selected=!0,p.name=B.name)}),p},ie=()=>{const d=a.getMusicTagTree;i.tags=[{columnName:d[0].columnName,name:"全部",id:""},...d],i.tagActiveId=i.tags[0].id},le=d=>{i.tagActiveId=d.id,i.childSelectId=null;let p,B="";d.children?(p=[{columnName:d.children[0].columnName,name:"全部",id:""},...d.children],B=d.children[0].columnName,i.selectParents={...d,columnName:B,activeIndex:"",children:p}):i.selectParents={},r()};return F(async()=>{var d,p;await a.getMusicTagTreeApi(),ie(),await a.getSubjects(),n.value=(d=f.value)==null?void 0:d.offsetHeight,S.value=((p=f.value)==null?void 0:p.offsetHeight)/I.value,c(),r("timer")}),()=>{let d,p;return t("div",{class:g.searchGroup},[t(X,{labelAlign:"left",labelPlacement:"left"},{default:()=>{var B;return[t("div",{class:[g.collapsSection,e.type==="myResources"&&g.collapsSectionEmpty]},[t(E,{label:((B=i.tags[0])==null?void 0:B.columnName)+":"},{default:()=>[t(N,{class:g.spaceSection2},Z(d=i.tags.map(A=>t("span",{class:[g.textBtn,i.tagActiveId===A.id&&g.textBtnActive],onClick:()=>{le(A)}},[A.name])))?d:{default:()=>[d]})]}),t(se,{activeRow:i.selectParents,onSelectChildTag:A=>{i.childSelectId=A,r()}},null)]),t(E,{label:"乐器:"},{default:()=>[t(N,{class:g.spaceSection2},Z(p=a.getSubjectInstruments.map(A=>A.instruments&&A.instruments.length>1?t(ve,{options:A.instruments,trigger:"hover",scrollable:!0,value:m.tempSubjectId,"onUpdate:value":[ne=>m.tempSubjectId=ne,()=>{s.musicalInstrumentId=m.tempSubjectId,r()}],key:A.value,class:[g.popSelect]},{default:()=>[t("span",{class:[g.textBtn,_(A.instruments).selected&&g.textBtnActive]},[_(A.instruments).name||A.name,t("i",{class:g.iconArrow},null)])]}):t("span",{class:[g.textBtn,s.musicalInstrumentId===A.value&&g.textBtnActive],onClick:()=>{s.musicalInstrumentId=A.value,m.tempSubjectId=null,r()}},[A.name])))?p:{default:()=>[p]})]}),t(Ne,{class:[g.inputSearch],round:!0,onSearch:A=>{s.name=A,y()}},null)]}})])}}}),jt=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4},H=L({name:"select-music",props:{type:{type:String,default:""},from:{type:String,default:""}},emits:["add"],setup(e,{emit:l}){const a=Me(),s=k({searchHeight:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{name:"",type:"MUSIC",musicSheetCategoriesId:"",musicalInstrumentId:"",sourceType:jt(e.type),status:1,versionFlag:!1,subjectId:null},tableList:[],show:!1,item:{},isShowAddDisabled:!a.getIsEditTrain}),m="musicSearchGroup"+ +new Date,i=async()=>{try{s.pagination.page===1&&(s.loading=!0);const{data:n}=await we({...s.searchGroup,...s.pagination});if(s.loading=!1,n.current===1&&s.tableList.length>0)return;const S=n.rows||[],I=[];S.forEach(o=>{I.push({id:o.id,coverImg:o.coverImg||o.musicSvg,type:"MUSIC",title:o.name,isCollect:!!o.favoriteFlag,isSelected:o.sourceFrom==="PLATFORM",refFlag:o.refFlag,content:o.id,xmlFileUrl:o.xmlFileUrl,containAccompaniment:o.containAccompaniment})}),s.tableList.push(...I),s.finshed=n.pages<=n.current}catch(n){s.loading=!1}},r=n=>{s.pagination.page=1,s.tableList=[],s.searchGroup=Object.assign(s.searchGroup,n),i()},y=Le(n=>{r(n)},500),f=te(()=>{s.pagination.page=s.pagination.page+1,i()},500),T=async n=>{try{await Ee({materialId:n.id,favoriteFlag:n.isCollect?0:1,type:n.type}),n.isCollect=!n.isCollect}catch(S){}};return F(()=>{ae(document.querySelector("."+m),n=>{const S=n[0],{height:I}=S.contentRect;s.searchHeight=I+"px"}),e.type==="homework"&&(s.isShowAddDisabled=!1),i()}),()=>t("div",{class:g.selectMusic},[t(De,{class:g.listContainer,style:{"max-height":"calc(85vh - var(--modal-lesson-tab-height) - 12px) "},onScroll:n=>{var h,c,_;const S=(h=n.target)==null?void 0:h.clientHeight,I=(c=n.target)==null?void 0:c.scrollTop,o=(_=n.target)==null?void 0:_.scrollHeight;S+I+20>=o&&!s.finshed&&!s.loading&&f()}},{default:()=>[t("div",{class:m},[t(Vt,{type:e.type,onSearch:(n,S)=>{if(S){r(n);return}y(n)}},null)]),t(Ie,{show:s.loading,size:"small"},{default:()=>[t("div",{style:{"min-height":"calc(85vh - var(--modal-lesson-tab-height) - ".concat(s.searchHeight," - 12px)")},class:[g.listSection,!s.loading&&s.tableList.length<=0?g.emptySection:""]},[s.tableList.length>0&&t("div",{class:g.list},[s.tableList.map(n=>t(Be,{isShowAdd:!0,isShowCollect:!0,item:n,onAdd:()=>l("add",n),disabledMouseHover:!1,onClick:()=>{n.type!=="IMG"&&(s.show=!0,s.item=n)},onCollect:S=>T(S)},null))]),!s.loading&&s.tableList.length<=0&&t(Re,null,null)])]})]}),t($,{from:e.from,show:s.show,"onUpdate:show":n=>s.show=n,item:s.item,isDownload:!1},null)])}}),aa=L({name:"select-music",props:{type:{type:String,default:"myResources"},from:{type:String,default:""}},emits:["select","add"],setup(e,{emit:l}){const{type:a}=J(e),s=C(a.value),m=ee();return F(async()=>{ae(document.querySelector(".select-resource .n-tabs-nav--top"),i=>{const r=i[0],{height:y}=r.contentRect;document.documentElement.style.setProperty("--modal-lesson-tab-height",y+"px")}),await m.getMusicSheetCategory(!0)}),()=>t("div",{class:[P.selectMusic,"select-resource"]},[t(be,{animated:!0,value:s.value,paneClass:P.paneTitle,justifyContent:"center",paneWrapperClass:P.paneWrapperContainer,"onUpdate:value":i=>{s.value=i}},{default:()=>[t(x,{name:"myResources",tab:"我的曲目"},{default:()=>[t(H,{from:e.from,type:"myResources",onAdd:i=>l("add",i)},null)]}),t(x,{name:"shareResources",tab:"共享曲目"},{default:()=>[t(H,{from:e.from,type:"shareResources",onAdd:i=>l("add",i)},null)]}),t(x,{name:"myCollect",tab:"收藏曲目"},{default:()=>[t(H,{from:e.from,type:"myCollect",onAdd:i=>l("add",i)},null)]})]})])}});export{aa as S,ea as T,ta as a,ot as i,Me as u};