var pt=Object.defineProperty,mt=Object.defineProperties;var ft=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var gt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var je=(r,k,d)=>k in r?pt(r,k,{enumerable:!0,configurable:!0,writable:!0,value:d}):r[k]=d,G=(r,k)=>{for(var d in k||(k={}))gt.call(k,d)&&je(r,d,k[d]);if(Be)for(var d of Be(k))ht.call(k,d)&&je(r,d,k[d]);return r},ee=(r,k)=>mt(r,ft(k));var B=(r,k,d)=>new Promise((l,e)=>{var a=y=>{try{x(d.next(y))}catch(F){e(F)}},h=y=>{try{x(d.throw(y))}catch(F){e(F)}},x=y=>y.done?l(y.value):Promise.resolve(y.value).then(a,h);x((d=d.apply(r,k)).next())});import{S as He}from"./index.b2377817.js";import{P as Ze}from"./index.a8e246f1.js";import{a as We,b as yt,c as St,d as vt,e as bt,f as Tt,m as Ae,g as It,h as Re,i as kt,j as xt,k as _e,l as Ft,n as Lt,o as Ct,p as wt,q as Ut}from"./api.7d69c73b.js";import{U as J}from"./index.dfa09309.js";import{cj as Pt,cG as At,d as le,cI as Nt,cJ as Qe,F as Fe,cP as Mt,bi as Oe,dx as Et,dy as Ye,a as te,u as ce,r as H,B as de,dj as xe,i as t,l as I,ce as D,aj as ge,_ as ue,a9 as W,p as Y,k as p,cg as Le,bx as et,b as tt,dk as at,q as Ne,ac as _,ad as N,m as fe,db as pe,M as lt,ai as Me,dz as Dt,di as Se,a8 as Z,a7 as O,dA as Bt,ag as Ce,aa as ne,bn as st,dB as jt,H as $,ae as Rt,ch as ze,d9 as ie,da as Ie,bC as X,a0 as _t,a1 as Ot,e as Yt,d7 as zt,d8 as qe}from"./index.8b77fe3c.js";import{D as ve,E as qt,C as it,F as Ue,c as Ge}from"./constant.b4bfe346.js";import{g as oe,a as Ke}from"./objectUtil.ec24ceed.js";import{c as Pe}from"./api.933cd2b7.js";import{x as ut}from"./api.61441f61.js";import{s as rt}from"./api.1ca7fb1f.js";import{f as ot}from"./index.d442d7d2.js";import{a as Gt}from"./uploadFile.12dd5e3e.js";import{N as P}from"./FormItemGridItem.8b64101c.js";import{N as Ee}from"./Cascader.a8b0fa17.js";import{e as Kt,g as Vt}from"./filters.0e1cdfd6.js";import{c as Jt,g as $t}from"./musicUtil.56af1657.js";import{T as be}from"./index.38577716.js";import{a as Xt}from"./searchArray.617a5610.js";import{g as Ht,s as Zt}from"./use-async.632f70a4.js";import"./searchs.b637f0d6.js";import"./oss-file-upload.998ccf98.js";import"./api.63b5d96c.js";import"./vuedraggable.umd.51f73a51.js";import"./DeleteFilled.69800856.js";import"./api.0b066bdc.js";import"./knowledgeTypeData.3b15dd0b.js";import"./dateUtil.0ad5ad9d.js";import"./dayjs.min.bb17e75a.js";const Wt=Pt("input-group-label",`
 position: relative;
 user-select: none;
 -webkit-user-select: none;
 box-sizing: border-box;
 padding: 0 12px;
 display: inline-block;
 border-radius: var(--n-border-radius);
 background-color: var(--n-group-label-color);
 color: var(--n-group-label-text-color);
 font-size: var(--n-font-size);
 line-height: var(--n-height);
 height: var(--n-height);
 flex-shrink: 0;
 white-space: nowrap;
 transition: 
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
`,[At("border",`
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 border-radius: inherit;
 border: var(--n-group-label-border);
 transition: border-color .3s var(--n-bezier);
 `)]),Qt=Object.assign(Object.assign({},Qe.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),Ve=le({name:"InputGroupLabel",props:Qt,setup(r){const{mergedBorderedRef:k,mergedClsPrefixRef:d,inlineThemeDisabled:l}=Nt(r),e=Qe("Input","-input-group-label",Wt,Et,r,d),a=Fe(()=>{const{size:x}=r,{common:{cubicBezierEaseInOut:y},self:{groupLabelColor:F,borderRadius:M,groupLabelTextColor:S,lineHeight:c,groupLabelBorder:b,[Ye("fontSize",x)]:w,[Ye("height",x)]:L}}=e.value;return{"--n-bezier":y,"--n-group-label-color":F,"--n-group-label-border":b,"--n-border-radius":M,"--n-group-label-text-color":S,"--n-font-size":w,"--n-line-height":c,"--n-height":L}}),h=l?Mt("input-group-label",Fe(()=>r.size[0]),a,r):void 0;return{mergedClsPrefix:d,mergedBordered:k,cssVars:l?void 0:a,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var r,k,d;const{mergedClsPrefix:l}=this;return(r=this.onRender)===null||r===void 0||r.call(this),Oe("div",{class:[`${l}-input-group-label`,this.themeClass],style:this.cssVars},(d=(k=this.$slots).default)===null||d===void 0?void 0:d.call(k),this.mergedBordered?Oe("div",{class:`${l}-input-group-label__border`}):null)}}),ea="_audioSection_d7561_1",ta="_btnRemove_d7561_9",aa="_formContainer_d7561_14",la="_productModal_d7561_19",sa="_productIframe_d7561_27",ia="_musicPreView_d7561_32",ua="_musicList_d7561_37",ra="_musicImg_d7561_53",oa="_tipImg_d7561_57",ae={audioSection:ea,btnRemove:ta,formContainer:aa,productModal:la,productIframe:sa,musicPreView:ia,musicList:ua,musicImg:ra,tipImg:oa},na=le({name:"musicSheetOwnerDialog",props:{musicSheetExtend:{type:Object,default:()=>{}},sourceType:{type:String,required:!0},appData:{type:Array,required:!0,default:[]}},emits:["close","getList","choseMusicSheetOwnerData"],setup(r,{slots:k,attrs:d,emit:l}){const e=te({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{applicationId:null,name:null,sourceType:null},dataList:[],appData:[]}),a=ce(),h=H(),x=()=>{e.pagination.page=1,F()},y=()=>{var c;(c=h.value)==null||c.submit()},F=()=>B(this,null,function*(){try{e.searchForm.applicationId||a.warning("\u83B7\u53D6\u5E94\u7528\u5217\u8868\u5931\u8D25"),e.loading=!0,e.searchForm.sourceType=r.sourceType;const{data:b}=yield We(G(G({},e.pagination),e.searchForm));e.pagination.pageTotal=Number(b.total),e.dataList=b.rows||[]}catch(c){}e.loading=!1});de(()=>B(this,null,function*(){{if(e.appData=xe(r.appData),e.appData.length==0){a.warning("\u83B7\u53D6\u5E94\u7528\u5217\u8868\u5931\u8D25");return}r.musicSheetExtend&&r.musicSheetExtend.applicationId?e.searchForm.applicationId=r.musicSheetExtend.applicationId:e.searchForm.applicationId=e.appData[0].value,e.searchForm.name=null}F()}));const M=()=>e.searchForm.sourceType==="ORG"?[{title:"\u673A\u6784\u540D\u79F0",key:"orgName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(c){return t(W,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const b=ee(G({},c),{applicationId:e.searchForm.applicationId});l("choseMusicSheetOwnerData",b),l("close")}},{default:()=>[p("\u9009\u62E9")]})]})}}]:[{title:"\u4EBA\u5458\u540D\u79F0",key:"userName"},{title:"\u624B\u673A\u53F7",key:"phone"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(c){return t(W,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const b=ee(G({},c),{applicationId:e.searchForm.applicationId});l("choseMusicSheetOwnerData",b),l("close")}},{default:()=>[p("\u9009\u62E9")]})]})}}],S=()=>[{title:"\u673A\u6784\u540D\u79F0",key:"organizationRole"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(c){return t(W,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const b=ee(G({},c),{applicationId:e.searchForm.applicationId});l("choseMusicSheetOwnerData",b),l("close")}},{default:()=>[p("\u9009\u62E9")]})]})}}];return()=>t("div",{class:"system-menu-container"},[t(He,{ref:h,model:e.searchForm,onSubmit:x,onSetModel:c=>e.searchForm=c},{default:()=>[t(I,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId",size:"small",style:"width:250px"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":c=>e.searchForm.applicationId=c,options:e.appData},null)]}),e.searchForm.sourceType==="PERSON"&&t(ge,null,[t(I,{label:"\u6240\u5C5E\u4EBA",path:"name",size:"small",style:"width:250px"},{default:()=>[t(ue,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u4EBA/\u624B\u673A\u53F7",value:e.searchForm.name,"onUpdate:value":c=>e.searchForm.name=c,clearable:!0},null)]})]),e.searchForm.sourceType==="ORG"&&t(ge,null,[t(I,{label:"\u673A\u6784\u540D\u79F0",path:"name",size:"small",style:"width:250px"},{default:()=>[t(ue,{placeholder:"\u8BF7\u8F93\u5165\u673A\u6784\u540D\u79F0",value:e.searchForm.name,"onUpdate:value":c=>e.searchForm.name=c,clearable:!0},null)]})]),t(I,{size:"small"},{default:()=>[t(W,null,{default:()=>[t(Y,{type:"primary",onClick:y},{default:()=>[p("\u641C\u7D22")]})]})]})]}),t("div",{class:["section-container"]},[r.sourceType==="PERSON"&&t(Le,{loading:e.loading,columns:M(),data:e.dataList},null),r.sourceType==="ORG"&&t(Le,{loading:e.loading,columns:S(),data:e.dataList},null),t(Ze,{page:e.pagination.page,"onUpdate:page":c=>e.pagination.page=c,pageSize:e.pagination.rows,"onUpdate:pageSize":c=>e.pagination.rows=c,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":c=>e.pagination.pageTotal=c,onList:F,sync:!0,pageSlot:5},null)])])}}),nt=le({name:"music-create-img",props:{xmlFileUrl:{type:String,default:""}},emits:["close","confirm"],setup(r,{emit:k}){const d=ce(),l=te({productOpen:!1,productIfameSrc:""}),e=te({musicImg:"",musicFirstImg:"",musicJianImg:""}),a=()=>{if(!r.xmlFileUrl){d.error("\u8BF7\u5148\u4E0A\u4F20XML");return}const F={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},M=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec")?"online":"dev",S=F[M],c=/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com":S,b=encodeURIComponent(r.xmlFileUrl);l.productIfameSrc=c+`/instrument/#/product-img?xmlUrl=${b}&isCreateImg=true&isCbs=true`},h=F=>{const M=F.data;if((M==null?void 0:M.api)==="webApi_renderSvg"){let S=[];try{S=JSON.parse(M.product)}catch(c){console.log("\u{1F680} ~ error:",c)}S=S.filter(c=>c.base64),S.length===3?(d.success("\u56FE\u7247\u751F\u6210\u6210\u529F"),x(S)):d.error("\u56FE\u7247\u751F\u6210\u5931\u8D25")}},x=F=>B(this,null,function*(){var M,S,c;for(let b=0;b<F.length;b++){const w=y(F[b].base64,`${Date.now()}p${b}.png`);F[b].url=yield Gt(w)}e.musicImg=((M=F[0])==null?void 0:M.url)||"",e.musicFirstImg=((S=F[1])==null?void 0:S.url)||"",e.musicJianImg=((c=F[2])==null?void 0:c.url)||"",F=[],k("close"),k("confirm",e)}),y=(F,M)=>{var R;let S=F.split(",")||[],c=(R=S[0].match(/:(.*?);/))==null?void 0:R[1],b=atob(S[1]),w=b.length,L=new Uint8Array(w);for(;w--;)L[w]=b.charCodeAt(w);return new File([L],M,{type:c})};return de(()=>{a(),window.addEventListener("message",h)}),et(()=>{window.removeEventListener("message",h)}),()=>t("iframe",{class:ae.productIframe,src:l.productIfameSrc},null)}}),ca="_musiceBeatTime_khkvo_1",da="_tit_khkvo_10",pa="_iframe_khkvo_18",we={musiceBeatTime:ca,tit:da,iframe:pa},ct=le({name:"musiceBeatTime",props:{id:{type:String}},emits:["close"],setup(r,{emit:k}){const d=ce();de(()=>{window.addEventListener("message",l)}),et(()=>{window.removeEventListener("message",l)});function l(b){const w=b.data;(w==null?void 0:w.api)==="webApi_beatTimes"&&(a.value=!1,e(w))}function e(b){return B(this,null,function*(){try{const{beatTime:w,singBeatTime:L,mingBeatTime:R,isBeatTime:o,isSingBeatTime:v,isMingBeatTime:g}=JSON.parse(b.data);yield yt({id:r.id,playTimeList:w,singTimeList:L,solmizationTimeList:R,playTimeSilence:o,singTimeSilence:v,solmizationTimeSilence:g}),d.success("\u8282\u62CD\u5668\u751F\u6210\u6210\u529F"),k("close")}catch(w){console.log("\u{1F680} ~ \u97F3\u9891\u5408\u6210\u5931\u8D25",w),d.error("\u8282\u62CD\u5668\u751F\u6210\u5931\u8D25"),k("close",!0)}})}const a=H(!0),x=tt().getToken,y={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},F=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",M=y[F];let c=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":M)+`/instrument/?_t=${Date.now()}&id=${r.id}&Authorization=${x}&isCbs=true&isbeatTimes=true&musicRenderType=staff`;return()=>t("div",{class:we.musiceBeatTime},[t("div",{class:we.tit},[p("\u8282\u62CD\u5668\u97F3\u9891\u751F\u6210\u4E2D...")]),a.value&&t("iframe",{class:we.iframe,width:"667px",height:"375px",frameborder:"0",src:c},null)])}}),dt=le({name:"music-platform",props:{type:{type:String,default:""},useProject:{type:Array,required:!0,default:[]},id:{type:String,required:!0,default:null}},emits:["close","getList"],setup(r,{emit:k}){const d=ce(),l=te({gym:{applicationId:"",checked:!0,paymentType:"VIP",isConvertibleScore:!1,scoreType:"STAVE",status:!0,sortNo:null},gyt:{applicationId:"",checked:!0,availableType:"PLATFORM",isConvertibleScore:!1,scoreType:"STAVE",status:!0,sortNo:null},klxt:{applicationId:"",checked:!0,isConvertibleScore:!1,scoreType:"STAVE",status:!0,sortNo:null},klx:{applicationId:"",checked:!0,musicTagIds:[],paymentType:["VIP"],musicPrice:null,availableType:"PLATFORM",topFlag:!1,exquisiteFlag:!1,isConvertibleScore:!0,scoreType:"FIRST",status:!0,sortNo:null},kt:{applicationId:"",checked:!0,musicSheetCategoryId:null,paymentType:"VIP",isConvertibleScore:!0,scoreType:"FIRST",status:!0,sortNo:null}}),e=Fe(()=>({GYM:M("GYM"),KLX_JG:M("KLX_JG"),KLX:M("KLX"),KT:M("KT"),GYT:M("GYT")})),a=H(),h=H(!1),x=H([]),y=H([]),F=H(!1),M=o=>(r.useProject||[]).findIndex(g=>g.appKey===o)!==-1,S=()=>{let o=!1;const v=l.gym;if(v.checked){if(!v.paymentType)return d.error("\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"),!0;if(console.log(v.isConvertibleScore,"gym.isConvertibleScore"),v.isConvertibleScore==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!v.scoreType)return d.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(v.status==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}const g=l.gyt;if(g.checked){if(!g.availableType)return d.error("\u8BF7\u9009\u62E9\u53EF\u7528\u9014\u5F84"),!0;if(g.isConvertibleScore==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!g.scoreType)return d.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(g.status==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}const V=l.klxt;if(V.checked){if(V.isConvertibleScore==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!V.scoreType)return d.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(V.status==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}const i=l.klx;if(i.checked){if(i.musicTagIds.length<=0)return d.error("\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"),!0;if(!i.paymentType||i.paymentType.length<=0)return d.error("\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"),!0;if(!i.paymentType.includes("CHARGE"))i.musicPrice=0;else if(i.musicPrice===null||i.musicPrice===void 0||i.musicPrice==="")return d.error("\u66F2\u76EE\u4EF7\u683C\u4E0D\u80FD\u4E3A\u7A7A"),!0;if(typeof i.topFlag!="boolean")return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876"),!0;if(typeof i.exquisiteFlag!="boolean")return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1"),!0;if(i.isConvertibleScore==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!i.scoreType)return d.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(i.status==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}const T=l.kt;if(T.checked){if(!T.musicSheetCategoryId)return d.error("\u8BF7\u9009\u62E9\u4E50\u8C31\u6559\u6750"),!0;if(!T.paymentType)return d.error("\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"),!0;if(T.isConvertibleScore==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!T.scoreType)return d.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(T.status==null)return d.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}return o},c=()=>{const o=[],v=[];return l.gym.checked&&(o.push(G({},l.gym)),v.push(l.gym.applicationId)),l.gyt.checked&&(o.push(G({},l.gyt)),v.push(l.gyt.applicationId)),l.klxt.checked&&(o.push(G({},l.klxt)),v.push(l.klxt.applicationId)),l.klx.checked&&(o.push(ee(G({},l.klx),{musicTagIds:l.klx.musicTagIds.join(","),paymentType:l.klx.paymentType.join(",")})),v.push(l.klx.applicationId)),l.kt.checked&&(o.push(G({},l.kt)),v.push(l.kt.applicationId)),{musicSheetId:r.id,applicationExtends:o||{},useApplicationIds:v.join(",")||""}},b=()=>B(this,null,function*(){try{if(S())return;F.value=!0;const o=c();yield Tt(o),d.success("\u4FDD\u5B58\u6210\u529F"),k("close"),k("getList")}catch(o){}F.value=!1}),w=()=>B(this,null,function*(){try{const v=(r.useProject||[]).find(V=>V.appKey==="KLX");if(!v)return;const{data:g}=yield St({applicationId:v.id});g&&g.length>0&&g.forEach(V=>{x.value.push(ee(G({},V),{label:V.name,value:V.id}))})}catch(o){}}),L=()=>B(this,null,function*(){const v=(r.useProject||[]).find(V=>V.appKey==="KT");if(!v)return;const g=yield vt({applicationIds:v.id});g.data&&g.data.length>0&&(y.value=g.data[0].musicSheetCategories)}),R=()=>B(this,null,function*(){try{const{data:o}=yield bt({musicSheetId:r.id});(o||[]).forEach(g=>{g.appKey==="GYM"?(l.gym.checked=!0,l.gym.paymentType=g.paymentType,l.gym.isConvertibleScore=g.isConvertibleScore,l.gym.scoreType=g.scoreType,l.gym.status=g.status,l.gym.sortNo=g.sortNo):g.appKey==="GYT"?(l.gyt.checked=!0,l.gyt.availableType=g.availableType,l.gyt.isConvertibleScore=g.isConvertibleScore,l.gyt.scoreType=g.scoreType,l.gyt.status=g.status,l.gyt.sortNo=g.sortNo):g.appKey==="KLX_JG"?(l.klxt.checked=!0,l.klxt.isConvertibleScore=g.isConvertibleScore,l.klxt.scoreType=g.scoreType,l.klxt.status=g.status,l.klxt.sortNo=g.sortNo):g.appKey==="KLX"?(l.klx.checked=!0,l.klx.musicTagIds=g.musicTagIds?g.musicTagIds.split(","):[],l.klx.paymentType=g.paymentType?g.paymentType.split(","):[],l.klx.musicPrice=g.musicPrice,l.klx.availableType=g.availableType,l.klx.topFlag=g.topFlag,l.klx.exquisiteFlag=g.exquisiteFlag,l.klx.isConvertibleScore=g.isConvertibleScore,l.klx.scoreType=g.scoreType,l.klx.status=g.status,l.klx.sortNo=g.sortNo):g.appKey==="KT"&&(l.kt.checked=!0,l.kt.musicSheetCategoryId=g.musicSheetCategoryId,l.kt.paymentType=g.paymentType,l.kt.isConvertibleScore=g.isConvertibleScore,l.kt.scoreType=g.scoreType,l.kt.status=g.status,l.kt.sortNo=g.sortNo)})}catch(o){}});return de(()=>B(this,null,function*(){h.value=!0,r.type!=="add"&&(l.gym.checked=!1,l.gyt.checked=!1,l.klxt.checked=!1,l.klx.checked=!1,l.kt.checked=!1),(r.useProject||[]).forEach(v=>{v.appKey==="GYM"?l.gym.applicationId=v.id:v.appKey==="KLX_JG"?l.klxt.applicationId=v.id:v.appKey==="KLX"?l.klx.applicationId=v.id:v.appKey==="KT"?l.kt.applicationId=v.id:v.appKey==="GYT"&&(l.gyt.applicationId=v.id)}),yield w(),yield L(),yield R(),h.value=!1})),()=>t(at,{show:h.value},{default:()=>[t(Ne,{model:l,ref:a,"label-placement":"top","label-width":"85"},{default:()=>[e.value.GYM&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(N,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(fe,{checked:l.gym.checked,"onUpdate:checked":o=>l.gym.checked=o},{default:()=>[p("\u7BA1\u4E50\u8FF7")]})]}),t(N,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(N,null,{default:()=>[t(I,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(D,{value:l.gym.paymentType,"onUpdate:value":o=>l.gym.paymentType=o,clearable:!0,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u6536\u8D39",value:"VIP"}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(D,{value:l.gym.isConvertibleScore,"onUpdate:value":o=>l.gym.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(D,{value:l.gym.scoreType,"onUpdate:value":o=>l.gym.scoreType=o,options:oe(ve)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(D,{value:l.gym.status,"onUpdate:value":o=>l.gym.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(pe,{precision:0,min:0,max:999999999,value:l.gym.sortNo,"onUpdate:value":o=>l.gym.sortNo=o,showButton:!1},null)]})]})]})]})]}),e.value.GYT&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(N,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(fe,{checked:l.gyt.checked,"onUpdate:checked":o=>l.gyt.checked=o},{default:()=>[p("\u7BA1\u4E50\u56E2")]})]}),t(N,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(N,null,{default:()=>[t(I,{label:"\u53EF\u7528\u9014\u5F84",path:"availableType",required:!0},{default:()=>[t(D,{value:l.gyt.availableType,"onUpdate:value":o=>l.gyt.availableType=o,clearable:!0,options:[{label:"\u5B66\u6821",value:"ORG"},{label:"\u5E73\u53F0",value:"PLATFORM"}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(D,{value:l.gyt.isConvertibleScore,"onUpdate:value":o=>l.gyt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(D,{value:l.gyt.scoreType,"onUpdate:value":o=>l.gyt.scoreType=o,options:oe(ve)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(D,{value:l.gyt.status,"onUpdate:value":o=>l.gyt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(pe,{precision:0,min:0,max:999999999,value:l.gyt.sortNo,"onUpdate:value":o=>l.gyt.sortNo=o,showButton:!1},null)]})]})]})]})]}),e.value.KLX_JG&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(N,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(fe,{checked:l.klxt.checked,"onUpdate:checked":o=>l.klxt.checked=o},{default:()=>[p("\u9177\u4E50\u79C0\u673A\u6784")]})]}),t(N,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(D,{value:l.klxt.isConvertibleScore,"onUpdate:value":o=>l.klxt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(D,{value:l.klxt.scoreType,"onUpdate:value":o=>l.klxt.scoreType=o,options:oe(ve)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(D,{value:l.klxt.status,"onUpdate:value":o=>l.klxt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(pe,{precision:0,min:0,max:999999999,value:l.klxt.sortNo,"onUpdate:value":o=>l.klxt.sortNo=o,showButton:!1},null)]})]})]})]})]}),e.value.KLX&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(N,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(fe,{checked:l.klx.checked,"onUpdate:checked":o=>l.klx.checked=o},{default:()=>[p("\u9177\u4E50\u79C0\u5E73\u53F0")]})]}),t(N,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(N,null,{default:()=>[t(I,{label:"\u66F2\u76EE\u6807\u7B7E",required:!0},{default:()=>[t(D,{value:l.klx.musicTagIds,"onUpdate:value":o=>l.klx.musicTagIds=o,multiple:!0,maxTagCount:1,clearable:!0,options:x.value},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(D,{value:l.klx.paymentType,"onUpdate:value":[o=>l.klx.paymentType=o,o=>{l.klx.paymentType=o;const v="FREE";l.klx.paymentType[l.klx.paymentType.length-1]==v?l.klx.paymentType=[v]:l.klx.paymentType.length>1&&l.klx.paymentType.includes(v)&&l.klx.paymentType.splice(l.klx.paymentType.indexOf(v),1),l.klx.paymentType.includes("CHARGE")||(l.klx.musicPrice=0)}],multiple:!0,maxTagCount:1,clearable:!0,options:oe(qt)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u66F2\u76EE\u4EF7\u683C",path:"musicPrice",required:!0},{default:()=>{var o;return[t(pe,{disabled:!((o=l.klx.paymentType)!=null&&o.includes("CHARGE")),precision:2,min:0,max:9999,value:l.klx.musicPrice,"onUpdate:value":v=>l.klx.musicPrice=v,showButton:!1},null)]}})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u7F6E\u9876",path:"topFlag",required:!0},{default:()=>[t(D,{value:l.klx.topFlag,"onUpdate:value":o=>l.klx.topFlag=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u7CBE\u54C1",path:"exquisiteFlag",required:!0},{default:()=>[t(D,{value:l.klx.exquisiteFlag,"onUpdate:value":o=>l.klx.exquisiteFlag=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(D,{value:l.klx.isConvertibleScore,"onUpdate:value":o=>l.klx.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(D,{value:l.klx.scoreType,"onUpdate:value":o=>l.klx.scoreType=o,options:oe(ve)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(D,{value:l.klx.status,"onUpdate:value":o=>l.klx.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(pe,{precision:0,min:0,max:999999999,value:l.klx.sortNo,"onUpdate:value":o=>l.klx.sortNo=o,showButton:!1},null)]})]})]})]})]}),e.value.KT&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(N,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(fe,{checked:l.kt.checked,"onUpdate:checked":o=>l.kt.checked=o},{default:()=>[p("\u97F3\u4E50\u6570\u5B57\u8BFE\u5802")]})]}),t(N,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(N,null,{default:()=>[t(I,{label:"\u4E50\u8C31\u6559\u6750",path:"musicSheetCategoryId",required:!0},{default:()=>[t(D,{value:l.kt.musicSheetCategoryId,"onUpdate:value":o=>l.kt.musicSheetCategoryId=o,clearable:!0,options:y.value,labelField:"name",valueField:"id"},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(D,{value:l.kt.paymentType,"onUpdate:value":o=>l.kt.paymentType=o,clearable:!0,options:[{label:"\u514D\u8D39",value:"FREE"},{label:"\u4F1A\u5458",value:"VIP"}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(D,{value:l.kt.isConvertibleScore,"onUpdate:value":o=>l.kt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(D,{value:l.kt.scoreType,"onUpdate:value":o=>l.kt.scoreType=o,options:oe(ve)},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(D,{value:l.kt.status,"onUpdate:value":o=>l.kt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(N,null,{default:()=>[t(I,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(pe,{precision:0,min:0,max:999999999,value:l.kt.sortNo,"onUpdate:value":o=>l.kt.sortNo=o,showButton:!1},null)]})]})]})]})]}),t(W,{justify:"end",style:"margin-top: 10px"},{default:()=>[t(Y,{type:"default",onClick:()=>k("close",!0)},{default:()=>[p("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>b(),loading:F.value,disabled:F.value},{default:()=>[p("\u786E\u8BA4")]})]})]})]})}});function Je(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!st(r)}const ma=(r,k)=>{var x;let d=0;const l=r.closest(k);let e=l;const a=l==null?void 0:l.closest("measure");let h=null;for(;!h&&d<((a==null?void 0:a.childNodes.length)||50);)d++,((x=e==null?void 0:e.nextElementSibling)==null?void 0:x.tagName)==="note"&&(h=e==null?void 0:e.nextElementSibling),e=e==null?void 0:e.nextElementSibling;return h},fa=(r,k)=>{var h,x;if(!r)return"";const d=new DOMParser().parseFromString(r,"text/xml"),l=((x=(h=d.getElementsByTagName("part-list"))==null?void 0:h[0])==null?void 0:x.getElementsByTagName("score-part"))||[],e=d.getElementsByTagName("part"),a=l[k];if(a){const y=a.getAttribute("id");Array.from(e).forEach(S=>{var c,b,w;if(S&&S.getAttribute("id")!==y&&((c=S.parentNode)==null||c.removeChild(S)),S&&S.getAttribute("id")===y){const L=S.getElementsByTagName("barline"),R=(b=L[L.length-1])==null?void 0:b.parentElement;if(((w=R==null?void 0:R.lastElementChild)==null?void 0:w.tagName)!=="barline"){const o=(R==null?void 0:R.children)||[];for(let v of o)if(v.tagName==="barline"){R==null||R.appendChild(v);break}}}}),Array.from(l).forEach(S=>{var c;S&&S.getAttribute("id")!==y&&((c=S.parentNode)==null||c.removeChild(S))});const F=d.getElementsByTagName("note"),M=S=>{var b;let c=F[S+1];for(let w=S;w<F.length;w++){const L=F[w];if(!((b=L.getElementsByTagName("grace"))!=null&&b.length)){c=L;break}}return c==null?void 0:c.getElementsByTagName("duration")[0]};Array.from(F).forEach((S,c)=>{var w;const b=S.getElementsByTagName("grace");b&&b.length&&M(c)&&(S==null||S.appendChild((w=M(c))==null?void 0:w.cloneNode(!0)))})}return new XMLSerializer().serializeToString(d)},ga={"rall.":1.333333333,"poco rit.":1.333333333,"rit.":1.333333333,"molto rit.":1.333333333,"molto rall":1.333333333,molto:1.333333333,lentando:1.333333333,allargando:1.333333333,morendo:1.333333333,"accel.":.8,calando:2,"poco accel.":.8,"gradually slowing":1.333333333,slowing:1.333333333,slow:1.333333333,slowly:1.333333333,faster:1.333333333};function $e(r){var S,c,b,w;const k=fa(r,0),d=new DOMParser().parseFromString(k,"text/xml"),l=Array.from(d.querySelectorAll("measure")),e=Array.from(d.querySelectorAll("note")),a=Array.from(d.querySelectorAll("words")),h=Array.from(d.querySelectorAll("metronome")),x=[];for(const L of[...a,...h]){const R=ma(L,"direction");if(R){const o=R==null?void 0:R.closest("measure"),v=Array.from(o.querySelectorAll("note")),g=Array.from(o.childNodes).filter(T=>T.nodeName==="note").findIndex(T=>T===R);let V=0,i=0;for(let T=0;T<v.length;T++){const K=+(((S=v[T].querySelector("duration"))==null?void 0:S.textContent)||"0");V+=K,T<g&&(i=V)}x.push({ele:L,index:e.indexOf(R),noteInMeasureIndex:g,textContent:L.textContent,measureIndex:l.indexOf(o),type:L.tagName,allDuration:V,leftDuration:i})}}x.push({ele:e[e.length-1],index:e.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:l.length});const y=[];x.sort((L,R)=>L.index-R.index);const F=Object.keys(ga).map(L=>L.toLocaleLowerCase());let M=!1;for(const L of x){const R=(c=L.textContent)==null?void 0:c.toLocaleLowerCase().trim();L===x[x.length-1]&&((b=y[y.length-1])==null?void 0:b.length)===1&&(M=!0);const o=F.find(v=>{const g=v.split(" ");return R&&g.includes(R)});if(L.type==="metronome"||L.type==="words"&&(R.startsWith("a tempo")||o)||M){const v=y.findIndex(g=>g.length===1);v>-1&&L.index>((w=y[v])==null?void 0:w[0].start)&&(y[v][1]={start:L.index,measureIndex:L.measureIndex,noteInMeasureIndex:L.noteInMeasureIndex,allDuration:L.allDuration,leftDuration:L.leftDuration,type:R})}L.type==="words"&&o&&y.push([{start:L.index,measureIndex:L.measureIndex,noteInMeasureIndex:L.noteInMeasureIndex,allDuration:L.allDuration,leftDuration:L.leftDuration,type:R}])}return y}const ha=r=>{var e,a,h;const k={speed:0,title:"",composer:"",partNames:[]},d=new DOMParser().parseFromString(r,"text/xml");k.title=((e=d.getElementsByTagName("work-title")[0])==null?void 0:e.textContent)||"",k.composer=((a=d.getElementsByTagName("creator")[0])==null?void 0:a.textContent)||"";const l=d.getElementsByTagName("measure");for(const x of Array.from(d.getElementsByTagName("part-name")))(h=x.textContent)!=null&&h.trim()&&k.partNames.push(x.textContent);for(const x of Array.from(l)){const y=x.getElementsByTagName("per-minute");if(y.length&&y[y.length-1]){k.speed=parseFloat(y[y.length-1].textContent||"0");break}}return k},ya=le({name:"music-operation",props:{type:{type:String,default:"add"},data:{type:Object,default:()=>{}},tagList:{type:Array,default:()=>[]},subjectList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(r,{slots:k,attrs:d,emit:l}){const e=te({details:{},graduals:{},playMode:"MP3",xmlFileUrl:null,midiUrl:null,name:null,composer:null,playSpeed:null,musicCover:null,remark:null,musicSheetSoundList_YY:[],musicSheetSoundList_YZ:[],musicSheetSoundList_all_subject:null,status:!0,musicSheetType:"CONCERT",sourceType:"PLATFORM",appAuditFlag:0,midiFileUrl:null,subjectIds:[],musicalInstrumentIdList:[],musicCategoryId:null,musicSheetAccompanimentList:[],audioType:"HOMEMODE",isPlayBeat:!0,isUseSystemBeat:!0,isUseSingSystemBeat:!0,repeatedBeats:!1,repeatedBeatsToSing:!1,isPlaySingBeat:!0,evaluationStandard:"FREQUENCY",multiTracksSelection:[],musicSheetExtend:{},musicImg:"",musicFirstImg:"",musicJianImg:"",isEvxml:!1,isShowFingering:!0,solmizationFileUrl:null,isAllSubject:!1,isMixBeat:!0,musicPdfUrl:"",firstPdfUrl:"",jianPdfUrl:"",fSongList:[],isScoreRender:!0,defaultScoreRender:!0,scoreAudioFileUrl:null}),a=te({loading:!1,musicUpdateLoading:!1,previewMode:!1,tagList:[...r.tagList],xmlFirstSpeed:null,partListNames:[],musicSheetCategories:[],musicSheetAccompanimentUrl:null,instrumentData:[],instrumentList:[],instrumentIdNameMap:new Map,subjectList:[],showMusicSheetOwnerDialog:!1,multiTracks:null,multiInstruments:null,appData:[],ownerName:null,productOpen:!1,productItem:{},productIfameSrc:"",isAutoSave:!1,bSongFile:null,musicSheetSoundList:[],subjectDisabled:!1,instrumentDisabled:!1,initFSongMap:new Map,showUseProject:!1,showUseProjectId:null,useProjectData:[],isCreateImg:!1,isBeatTime:!1}),h=te({list:[],gradualRefs:[]}),x=te({beatTimeOpen:!1,musicId:""});lt(()=>e.multiTracksSelection,m=>{if(a.musicUpdateLoading){a.musicUpdateLoading=!1;return}v(m),L()});const y=H(!1),F=H(),M=ce(),S=Me(),c=()=>B(this,null,function*(){F.value.validate(m=>B(this,null,function*(){if(!m){if(e.musicSheetType=="CONCERT"){let u=[];const{data:s}=yield Pe({page:1,rows:9999});s.rows.map(f=>{f.code&&f.code.split(",").forEach(A=>{u.push(A.replaceAll(" ","").toLocaleLowerCase())})});let n=[];if(e.multiTracksSelection.forEach(f=>{if(f&&!w(f)){let A=!1,j=f.replace(" ","").toLocaleLowerCase();for(let q=0;q<u.length;q++)if(j.startsWith(u[q])){A=!0;break}A||n.push(f)}}),n.length>0){S.warning({title:"\u63D0\u793A",content:`\u58F0\u8F68\u672A\u914D\u7F6E\uFF1A${n.join(",")}`,positiveText:"\u786E\u5B9A",onPositiveClick:()=>{}});return}}try{let u=new Set,s=[],n=e.musicSheetType,f=!1,A=!1;for(let U=0;U<e.fSongList.length;U++){let Q=e.fSongList[U];(Q.audioFileUrl||Q.solmizationFileUrl||Q.femaleSolmizationFileUrl)&&(s.push(Q),u.add("SING"),A=!0)}if(n=="SINGLE"?e.isAllSubject?e.musicSheetSoundList_all_subject&&(u.add("PLAY"),s.push({audioFileUrl:e.musicSheetSoundList_all_subject,musicSheetId:r.data.id,audioPlayType:"PLAY"}),f=!0):e.musicSheetSoundList_YZ.length>0&&e.musicSheetSoundList_YZ.forEach(U=>{e.musicalInstrumentIdList.includes(U.musicalInstrumentId)&&U.audioFileUrl&&(f=!0,s.push(ee(G({},U),{musicSheetId:r.data.id})),u.has("PLAY")||u.add("PLAY"))}):n=="CONCERT"&&e.musicSheetSoundList_YY.forEach(U=>{U.audioFileUrl&&e.multiTracksSelection.includes(U.track)&&(s.push(ee(G({},U),{musicalInstrumentId:U.musicalInstrumentId||i(U.track),musicSheetId:r.data.id,audioPlayType:"PLAY"})),f=!0,u.has("PLAY")||u.add("PLAY"))}),(e.scoreAudioFileUrl||a.bSongFile)&&(A=!0),!A&&!f){M.warning("\u8BF7\u4E0A\u4F20\u97F3\u9891\u6587\u4EF6");return}if(!a.isAutoSave&&a.isCreateImg){a.isAutoSave=!0,a.productOpen=!0;return}e.scoreAudioFileUrl?e.musicSheetAccompanimentList.push({musicSheetId:r.data.id,audioFileUrl:a.bSongFile,scoreAudioFileUrl:e.multiTracksSelection.length>1&&e.isScoreRender&&e.scoreAudioFileUrl?e.scoreAudioFileUrl:null,audioPlayType:"SING"}):a.bSongFile&&e.musicSheetAccompanimentList.push({musicSheetId:r.data.id,audioFileUrl:a.bSongFile,audioPlayType:"SING"}),a.musicSheetAccompanimentUrl&&e.musicSheetAccompanimentList.push({musicSheetId:r.data.id,audioFileUrl:a.musicSheetAccompanimentUrl,audioPlayType:"PLAY"});let j,q;e.multiTracksSelection.length>1&&(j=e.isScoreRender,e.isScoreRender&&(q=e.defaultScoreRender));const E={musicCategoryId:e.musicCategoryId,musicCover:e.musicCover,name:e.name,appAuditFlag:e.appAuditFlag,subjectIds:e.isAllSubject?"":e.subjectIds.join(","),remark:e.remark,audioPlayTypes:Array.from(u).join(","),musicalInstrumentIds:e.isAllSubject?"":e.musicalInstrumentIdList.join(","),composer:e.composer,musicSheetType:e.musicSheetType,isUseSystemBeat:e.isUseSystemBeat,isShowFingering:e.isShowFingering,isPlayBeat:e.isPlayBeat,multiTracksSelection:e.multiTracksSelection.join(","),playSpeed:e.playSpeed,playMode:e.playMode,xmlFileUrl:e.xmlFileUrl,isMixBeat:e.isMixBeat,musicImg:e.musicImg,musicFirstImg:e.musicFirstImg,musicJianImg:e.musicJianImg,musicPdfUrl:e.musicPdfUrl,firstPdfUrl:e.firstPdfUrl,jianPdfUrl:e.jianPdfUrl,extConfigJson:JSON.stringify({repeatedBeats:e.repeatedBeats?1:0,gradualTimes:e.graduals,isEvxml:e.isEvxml?1:0,repeatedBeatsToSing:e.repeatedBeatsToSing?1:0}),sourceType:e.sourceType,audioType:e.audioType,status:e.status,evaluationStandard:e.evaluationStandard,musicSheetAccompanimentList:e.musicSheetAccompanimentList,musicSheetSoundList:s,musicTag:"-1",isUseSingSystemBeat:e.isUseSingSystemBeat,isPlaySingBeat:e.isPlaySingBeat,isAllSubject:e.isAllSubject,musicSheetExtend:e.sourceType=="PLATFORM"?null:e.musicSheetExtend,isScoreRender:j,defaultScoreRender:q};e.audioType=="MIDI"&&(E.musicSheetSoundList=[]),console.log(E,"obj"),y.value=!0;let C;r.type==="add"?C=yield Re(E):r.type==="edit"&&(C=yield Re(ee(G({},E),{id:r.data.id}))),e.isMixBeat?(x.beatTimeOpen=!0,x.musicId=C.data,a.showUseProjectId=C.data):(a.showUseProjectId=C.data,a.showUseProject=!0,setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100))}catch(u){console.log(u),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)}}}))});function b(m){m||(r.type==="add"?M.success("\u6DFB\u52A0\u6210\u529F"):r.type==="edit"&&M.success("\u4FEE\u6539\u6210\u529F")),l("getList"),l("close"),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)}const w=m=>B(this,null,function*(){return!!(m&&(m=="P1"||m=="P2"||m=="P3"||m=="P4"))}),L=()=>B(this,null,function*(){e.fSongList.forEach(u=>{a.initFSongMap.set(u.track,u)});let m=[];e.multiTracksSelection.forEach(u=>{a.initFSongMap.has(u)?m.push(a.initFSongMap.get(u)):m.push({musicSheetId:r.data.id,audioFileUrl:null,audioPlayType:"SING",musicalInstrumentId:null,track:u,musicalInstrumentName:null,solmizationFileUrl:null,femaleSolmizationFileUrl:null})}),e.fSongList=m}),R=m=>{a.isCreateImg=!0;const u=new FileReader;u.onload=s=>{var j,q,E;try{h.list=$e((j=s==null?void 0:s.target)==null?void 0:j.result).filter(U=>U.length===2);const C=ha((q=s==null?void 0:s.target)==null?void 0:q.result);e.composer||(e.composer=C.composer)}catch(C){}e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(C=>{var U,Q;return!C.track||!o(C.track)||((Q=(U=C.track)==null?void 0:U.toLocaleUpperCase)==null?void 0:Q.call(U))!="COMMON"&&e.multiTracksSelection.includes(C.track)}),a.partListNames=T((E=s==null?void 0:s.target)==null?void 0:E.result);let n=new Map;for(let C=0;C<e.musicSheetSoundList_YY.length;C++){let U=e.musicSheetSoundList_YY[C].track;U&&n.set(U,e.musicSheetSoundList_YY[C])}let f=[],A=[];for(let C=0;C<a.partListNames.length;C++){let U=a.partListNames[C].value;n.has(U)?f.push(n.get(U)):f.push({audioFileUrl:null,track:U,musicalInstrumentId:null}),A.push(U),e.multiTracksSelection.includes(U)||e.multiTracksSelection.push(U)}for(let C=0;C<e.musicSheetSoundList_YY.length;C++){let U=e.musicSheetSoundList_YY[C].track;(!U||!A.includes(U))&&(e.musicSheetSoundList_YY[C].track=null,f.push(e.musicSheetSoundList_YY[C]))}e.musicSheetSoundList_YY=f,e.multiTracksSelection=e.multiTracksSelection.filter(C=>A.includes(C)),a.multiTracks="all",e.musicSheetSoundList_YY.length==0&&e.musicSheetSoundList_YY.push({audioFileUrl:"",track:"",musicPdfUrl:"",firstPdfUrl:"",jianPdfUrl:""})},u.readAsText(m)},o=m=>{for(let u=0;u<a.partListNames.length;u++)if(a.partListNames[u].value==m)return!0;return!1},v=m=>B(this,null,function*(){e.musicSheetType=!m||m.length<=1?"SINGLE":"CONCERT",a.subjectDisabled=!0,a.instrumentDisabled=!0,yield V(m)}),g=(m,u="")=>{if(u=u.toLocaleLowerCase().replace(/ /g,"").replace(/\d*/gi,""),!u)return"";for(let s of m){const n=s.toLocaleLowerCase().replace(/ /g,"");if(n===u)return n}return""},V=m=>B(this,null,function*(){console.log("1111"),e.subjectIds=[];const u=new Map,s=[];a.instrumentData.forEach(n=>{n.disabled||n.code.split(/[,，]/).forEach(A=>{let j=A.replaceAll(" ","").toLowerCase();if(s.push(j),u.has(j))u.get(j).push(n.id+"");else{const q=[];q.push(n.id+""),u.set(j,q)}})});for(let n=0;n<m.length;n++){let f=m[n].replaceAll(" ","").toLowerCase();const A=g(s,f);u.has(A)&&u.get(A).forEach(j=>{const q=a.instrumentList.findIndex(E=>E.id.toString()===j);!e.musicalInstrumentIdList.includes(j)&&q!==-1&&e.musicalInstrumentIdList.push(j)})}e.musicalInstrumentIdList.length>0&&(yield K(e.musicalInstrumentIdList))}),i=m=>{const u=new Map,s=[];if(a.instrumentData.forEach(f=>{f.disabled||f.code.split(/[,，]/).forEach(j=>{let q=j.replaceAll(" ","").toLowerCase();if(s.push(q),u.has(q))u.get(q).push(f.id+"");else{const E=[];E.push(f.id+""),u.set(q,E)}})}),!m)return"";m=m.replaceAll(" ","").toLowerCase();const n=g(s,m);if(u.has(n)){const f=u.get(n);return console.log("result:",f),f[0]||""}return""},T=m=>{var f,A,j,q;if(!m)return[];const u=new DOMParser().parseFromString(m,"text/xml"),s=((A=(f=u.getElementsByTagName("part-list"))==null?void 0:f[0])==null?void 0:A.getElementsByTagName("score-part"))||[];let n=Array.from(s).map(E=>{var Q,he;let C=(Q=E.getElementsByTagName("part-name"))==null?void 0:Q[0],U="";if(C&&((he=C.textContent)==null?void 0:he.trim()))U=C.textContent||"";else{let ye=E.getAttribute("id");ye&&(U=ye)}return{value:U.trim(),label:U.trim()}});return n=n.filter(E=>{var C,U;return((U=(C=E.value)==null?void 0:C.toLocaleUpperCase)==null?void 0:U.call(C))!="COMMON"}),a.xmlFirstSpeed=((q=(j=u.getElementsByTagName("per-minute"))==null?void 0:j[0])==null?void 0:q.textContent)||"",e.playSpeed||(a.xmlFirstSpeed?e.playSpeed=Number.parseFloat(a.xmlFirstSpeed):e.playSpeed=100),n},z=m=>{const u=xe(a.partListNames)||[],s=e.multiTracksSelection;return u.forEach(n=>{s.includes(n.value)?n.disabled=!0:n.disabled=!1}),u||[]},K=m=>B(this,null,function*(){if(!m||m.length==0){e.subjectIds=[];return}try{const{data:u}=yield ut({page:1,rows:999,musicalInstrumentIdList:m}),s=u.rows||[],n=[];s.forEach(f=>{f.enableFlag&&n.push(f.id+"")}),e.subjectIds=n}catch(u){}}),se=m=>{S.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u539F\u97F3\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>B(this,null,function*(){let s=e.musicSheetSoundList_YY[m].track;const n=e.multiTracksSelection.indexOf(s);n>-1?e.multiTracksSelection.splice(n,1):e.musicSheetSoundList_YY.splice(m,1),a.multiTracks=="all"&&a.partListNames.length!=e.multiTracksSelection.length&&(a.multiTracks=null)})})},Te=m=>{if(!m)return;let u=[];m==="all"?a.partListNames.forEach(s=>{u.push(s.value)}):m==="invert"&&a.partListNames.forEach(s=>{e.multiTracksSelection.includes(s.value)||u.push(s.value)}),e.multiTracksSelection=u},me=()=>{var s;if(e.sourceType=="PLATFORM"){a.ownerName="";return}if(!e.sourceType||!((s=e.musicSheetExtend)!=null&&s.userId))return;const m=e.musicSheetExtend.applicationId,u=a.appData.filter(n=>n.id==m);u.length>0&&(a.ownerName=u[0].appName),e.sourceType=="ORG"?a.ownerName=a.ownerName?a.ownerName+"-"+e.musicSheetExtend.organizationRole:e.musicSheetExtend.organizationRole:e.sourceType=="PERSON"&&(a.ownerName=a.ownerName?a.ownerName+"-"+Ke(e.musicSheetExtend.clientType,new Map(Object.entries(Ge))):Ke(e.musicSheetExtend.clientType,new Map(Object.entries(Ge))),e.musicSheetExtend.userName&&(a.ownerName=a.ownerName?a.ownerName+"-"+e.musicSheetExtend.userName:e.musicSheetExtend.userName),e.musicSheetExtend.phone&&(a.ownerName+="("+e.musicSheetExtend.phone+")"))};return de(()=>B(this,null,function*(){a.loading=!0,r.type==="preview"&&(a.previewMode=!0);{if(a.instrumentList&&a.instrumentList.length>0)return;try{const{data:m}=yield Pe({page:1,rows:999}),u=m.rows||[];u.forEach(s=>{s.label=s.name,s.value=s.id+"",a.instrumentIdNameMap.set(s.id+"",s.name),e.musicSheetSoundList_YZ.push({musicSheetId:r.data.id,musicalInstrumentId:s.id+"",musicalInstrumentName:s.name,audioFileUrl:null,audioPlayType:"PLAY"})}),a.instrumentData=u,a.instrumentList=xe(u)}catch(m){}}a.subjectList=xe(r.subjectList),a.subjectList.forEach(m=>{m.disabled=!m.enableFlag});{const m=Object.keys(it),{data:u}=yield rt({page:1,rows:999,parentId:0,hiddenFlag:!0}),s=u.rows||[],n=s.filter(A=>m.includes(A.appKey));n.forEach(A=>{A.label=A.appName,A.value=A.id}),a.useProjectData=n;const f=s.filter(A=>m.includes(A.appKey)&&A.appKey!=="KLX_JG");f.forEach(A=>{A.label=A.appName,A.value=A.id}),a.appData=f}try{const{data:m}=yield Ae({enable:!0});a.musicSheetCategories=ot(m,"musicSheetCategoriesList")}catch(m){}if(r.type==="edit"||r.type==="preview"){const m=r.data;try{const{data:u}=yield It({id:m.id});if(e.details=u,e.playMode=u.playMode,e.xmlFileUrl=u.xmlFileUrl,e.midiUrl=u.midiUrl,e.name=u.name,e.composer=u.composer,e.playSpeed=u.playSpeed?Number.parseFloat(u.playSpeed):100,e.defaultScoreRender=u.defaultScoreRender,e.isScoreRender=u.isScoreRender,e.musicCover=u.musicCover,e.remark=u.remark,e.status=u.status,e.sourceType=u.sourceType,e.appAuditFlag=u.appAuditFlag?1:0,e.midiFileUrl=u.midiFileUrl,e.isShowFingering=u.isShowFingering,e.isMixBeat=u.isMixBeat,e.musicFirstImg=u.musicFirstImg,e.musicJianImg=u.musicJianImg,e.musicImg=u.musicImg,e.musicPdfUrl=u.musicPdfUrl,e.firstPdfUrl=u.firstPdfUrl,e.jianPdfUrl=u.jianPdfUrl,e.isAllSubject=u.isAllSubject,e.isUseSingSystemBeat=u.isUseSingSystemBeat,e.isPlaySingBeat=u.isPlaySingBeat,e.subjectIds=[],u.subjectIds){const n=u.subjectIds.split(",")||[];console.log(n,"subjectIds",e.subjectIds),n.forEach(f=>{e.subjectIds.includes(f)||e.subjectIds.push(f)}),a.subjectList=a.subjectList.filter(f=>!f.disabled||n.includes(f.value))}e.musicCategoryId=u.musicCategoryId,e.audioType=u.audioType,e.isPlayBeat=u.isPlayBeat,e.isUseSystemBeat=u.isUseSystemBeat;try{const n=u.extConfigJson?JSON.parse(u.extConfigJson):{};e.graduals=n.gradualTimes||{},e.repeatedBeats=!!n.repeatedBeats,e.isEvxml=!!n.isEvxml,e.repeatedBeatsToSing=!!n.repeatedBeatsToSing}catch(n){}e.evaluationStandard=u.evaluationStandard,e.musicSheetExtend=u.musicSheetExtend,a.musicSheetSoundList=u.musicSheetSoundList?u.musicSheetSoundList:[],(u.musicSheetAccompanimentList?u.musicSheetAccompanimentList:[]).forEach(n=>{let f=n.audioPlayType;f&&f=="SING"?(a.bSongFile=n.audioFileUrl,e.scoreAudioFileUrl=n.scoreAudioFileUrl):a.musicSheetAccompanimentUrl=n.audioFileUrl});for(let n=0;n<a.musicSheetSoundList.length;n++)if(a.musicSheetSoundList[n].audioPlayType=="SING"&&a.musicSheetSoundList[n].track!=null)a.initFSongMap.set(a.musicSheetSoundList[n].track,G({},a.musicSheetSoundList[n]));else if(e.isAllSubject)e.musicSheetSoundList_all_subject=a.musicSheetSoundList[n].audioFileUrl;else for(let f=0;f<e.musicSheetSoundList_YZ.length;f++){let A=a.musicSheetSoundList[n].musicalInstrumentId;A&&A==e.musicSheetSoundList_YZ[f].musicalInstrumentId&&(e.musicSheetSoundList_YZ[f].audioFileUrl=a.musicSheetSoundList[n].audioFileUrl)}e.musicalInstrumentIdList=u.musicalInstrumentIds?u.musicalInstrumentIds.split(","):[],a.instrumentList=a.instrumentList.filter(n=>n.enableFlag||e.musicalInstrumentIdList.includes(n.id+"")),me(),Dt.get(u.xmlFileUrl).then(n=>{if(n!=null&&n.data){a.musicUpdateLoading=!0,h.list=$e(n==null?void 0:n.data).filter(E=>E.length===2),a.partListNames=T(n==null?void 0:n.data);let f=[];u.multiTracksSelection&&(u.multiTracksSelection=u.multiTracksSelection.toLocaleUpperCase()),!u.multiTracksSelection||u.multiTracksSelection.trim()==""||u.multiTracksSelection.trim()=="NULL"?f.push(""):u.multiTracksSelection.split(",").forEach(E=>{f.push(E.trim())}),f=a.partListNames.map(E=>E.label).filter(E=>f.includes(E.toLocaleUpperCase())),e.multiTracksSelection=f,e.musicSheetType=e.multiTracksSelection.length>1?"CONCERT":"SINGLE";const j=u.musicSheetSoundList?u.musicSheetSoundList:[],q=[];a.partListNames.forEach(E=>{let C=null,U=null,Q=null,he=null,ye=null;e.musicSheetType=="CONCERT"&&j.forEach(re=>{if(re.audioPlayType=="PLAY"){let De="";re.track&&(De=re.track.trim()),De==E.value&&(C=re.audioFileUrl,U=re.musicalInstrumentId,Q=re.musicPdfUrl,he=re.firstPdfUrl,ye=re.jianPdfUrl)}}),e.musicSheetSoundList_YY.push({audioFileUrl:C,musicPdfUrl:Q,firstPdfUrl:he,jianPdfUrl:ye,musicalInstrumentId:U,track:E.value,audioPlayType:"PLAY"}),q.push(E.value)}),q.length==e.multiTracksSelection.length&&(a.multiTracks="all"),e.musicSheetType=="CONCERT"&&a.musicSheetSoundList.forEach(E=>{E.audioPlayType=="PLAY"&&E.track&&!q.includes(E.track.trim())&&E.audioPlayType=="PLAY"&&e.musicSheetSoundList_YY.push({audioFileUrl:E.audioFileUrl,musicalInstrumentId:E.musicalInstrumentId,track:E.track?E.track.trim():"",audioPlayType:"PLAY"})}),L()}})}catch(u){}}else a.subjectList=a.subjectList.filter(m=>m.enableFlag==!0),a.instrumentList=a.instrumentList.filter(m=>m.enableFlag==!0);a.loading=!1})),()=>{let m,u;return t("div",{style:"background: #fff; padding-top: 12px"},[t(at,{show:a.loading},{default:()=>[t(Ne,{class:ae.formContainer,model:e,ref:F,"label-placement":"left","label-width":"150",disabled:a.previewMode},{default:()=>[t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[p("\u57FA\u672C\u4FE1\u606F")]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u66F2\u76EE\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",trigger:["input","blur"]}]},{default:()=>[t(ue,{value:e.name,"onUpdate:value":s=>e.name=s,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",maxlength:50,showCount:!0},null)]}),t(P,{label:"\u97F3\u4E50\u4EBA",path:"composer",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",trigger:["input","blur"]}]},{default:()=>[t(ue,{value:e.composer,"onUpdate:value":s=>e.composer=s,placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA\u540D\u79F0",showCount:!0,maxlength:14},null)]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u66F2\u76EE\u5C01\u9762",path:"musicCover",rule:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u66F2\u76EE\u5C01\u9762",trigger:["input","blur"]}]},{default:()=>[t(J,{desc:"\u5C01\u9762\u56FE",disabled:a.previewMode,accept:".jpg,.jpeg,.png",tips:"\u8BF7\u4E0A\u4F20\u5927\u5C0F1M\u4EE5\u5185\u7684JPG\u3001PNG\u56FE\u7247",size:1,fileList:e.musicCover,"onUpdate:fileList":s=>e.musicCover=s,cropper:!0,bucketName:"cbs",options:{autoCrop:!0,enlarge:2,autoCropWidth:200,fixedBox:!0,autoCropHeight:200,previewsCircle:!1,title:"\u66F2\u76EE\u5C01\u9762"}},null)]}),t(P,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",trigger:["change"]}]},{default:()=>[t(Ee,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",value:e.musicCategoryId,"onUpdate:value":s=>e.musicCategoryId=s,options:a.musicSheetCategories,clearable:!0},null)]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",trigger:"change"}]},{default:()=>[t(D,{value:e.sourceType,"onUpdate:value":s=>e.sourceType=s,options:oe(Ue),placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",onUpdateValue:()=>{e.musicSheetExtend={},a.ownerName=null}},null)]}),e.sourceType==="PERSON"&&t(P,{label:"\u6240\u5C5E\u4EBA",path:"musicSheetExtend.userId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6240\u5C5E\u4EBA",trigger:["input","change"]}]},{default:()=>[t(Y,{disabled:a.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{a.showMusicSheetOwnerDialog=!0}},{default:()=>[a.ownerName?a.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA"]})]}),e.sourceType==="ORG"&&t(P,{label:"\u6240\u5C5E\u4EBA",path:"musicSheetExtend.organizationRoleId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6240\u5C5E\u673A\u6784",trigger:["input","change"]}]},{default:()=>[t(Y,{disabled:a.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{a.showMusicSheetOwnerDialog=!0}},{default:()=>[a.ownerName?a.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784"]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",trigger:"change",type:"number"}]},{default:()=>[t(D,{options:[{label:"\u662F",value:1},{label:"\u5426",value:0}],value:e.appAuditFlag,"onUpdate:value":s=>e.appAuditFlag=s},null)]})]}),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[p("\u66F2\u76EE\u8BBE\u7F6E")]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u64AD\u653E\u6A21\u5F0F",path:"playMode",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u6A21\u5F0F"}]},{default:()=>[t(Z,{value:e.playMode,"onUpdate:value":s=>e.playMode=s,onUpdateValue:s=>{s==="MP3"?e.playMode="MP3":e.playMode="MIDI"}},{default:()=>[t(O,{value:"MP3"},{default:()=>[p("MP3")]}),e.playMode=="MIDI"&&r.type==="preview"&&t(O,{value:"MIDI"},{default:()=>[p("MID")]})]})]}),e.playMode==="MP3"&&t(P,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B"}]},{default:()=>[t(Z,{value:e.audioType,"onUpdate:value":s=>e.audioType=s},{default:()=>[t(O,{value:"HOMEMODE"},{default:()=>[p("\u81EA\u5236\u4F34\u594F")]}),t(O,{value:"COMMON"},{default:()=>[p("\u666E\u901A\u4F34\u594F")]})]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u4E0A\u4F20XML",path:"xmlFileUrl",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20XML",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"XML\u6587\u4EF6",disabled:a.previewMode,size:30,key:"xmlFileUrl",fileList:e.xmlFileUrl,"onUpdate:fileList":s=>e.xmlFileUrl=s,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.xml/.mxml\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".xml,.mxml,.evxml",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20XML\u6587\u4EF6",onReadFileInputEventAsArrayBuffer:R,onRemove:()=>{}},null)]}),t(P,{label:"\u603B\u8C31\u4E94\u7EBF\u8C31PDF",path:"musicPdfUrl",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u4E94\u7EBF\u8C31PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u603B\u8C31\u4E94\u7EBF\u8C31PDF",disabled:a.previewMode,size:30,max:1,fileList:e.musicPdfUrl,"onUpdate:fileList":s=>e.musicPdfUrl=s,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(P,{label:"\u603B\u8C31\u9996\u8C03PDF",path:"firstPdfUrl",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u9996\u8C03PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u603B\u8C31\u9996\u8C03PDF",disabled:a.previewMode,size:30,max:1,fileList:e.firstPdfUrl,"onUpdate:fileList":s=>e.firstPdfUrl=s,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(P,{label:"\u603B\u8C31\u56FA\u5B9APDF",path:"jianPdfUrl",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u56FA\u5B9APDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u603B\u8C31\u56FA\u5B9APDF",disabled:a.previewMode,size:30,max:1,fileList:e.jianPdfUrl,"onUpdate:fileList":s=>e.jianPdfUrl=s,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(P,{label:"\u8BC4\u5206\u6807\u51C6",path:"evaluationStandard",rule:[{required:!0}]},{default:()=>[t(Z,{value:e.evaluationStandard,"onUpdate:value":s=>e.evaluationStandard=s},{default:()=>[t(O,{value:"FREQUENCY"},{default:()=>[p("\u6807\u51C6\u8BC4\u6D4B")]}),t(O,{value:"AMPLITUDE"},{default:()=>[p("\u6253\u51FB\u4E50(\u632F\u5E45)")]}),t(O,{value:"DECIBELS"},{default:()=>[p("\u8282\u594F(\u5206\u8D1D)")]})]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u662F\u5426\u5168\u58F0\u90E8",path:"isAllSubject",rule:[{required:!0,message:"\u662F\u5426\u5168\u58F0\u90E8"}]},{default:()=>[t(Z,{value:e.isAllSubject,"onUpdate:value":s=>e.isAllSubject=s},{default:()=>[t(O,{value:!1},{default:()=>[p("\u5426")]}),t(O,{value:!0},{default:()=>[p("\u662F")]})]})]}),t(P,{label:"\u901F\u5EA6",path:"playSpeed",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u901F\u5EA6"}]},{default:()=>[t(pe,{placeholder:"\u8BF7\u8F93\u5165\u901F\u5EA6",value:e.playSpeed,"onUpdate:value":s=>e.playSpeed=s,min:0,style:"width:100%"},null)]})]}),!e.isAllSubject&&t(_,{cols:2},{default:()=>[t(P,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentIdList",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",trigger:"change",type:"array"}]},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",options:a.instrumentList,value:e.musicalInstrumentIdList,"onUpdate:value":s=>e.musicalInstrumentIdList=s,clearable:!0,multiple:!0,filterable:!0,maxTagCount:10,onUpdateValue:s=>B(this,null,function*(){yield K(s)})},null)]}),t(P,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",trigger:"change",type:"array"}]},{default:()=>[t(D,{value:e.subjectIds,"onUpdate:value":s=>e.subjectIds=s,options:a.subjectList,multiple:!0,filterable:!0,clearable:!0,placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",maxTagCount:10,onUpdateValue:s=>B(this,null,function*(){})},null)]})]}),t(_,{cols:1},{default:()=>[t(P,{label:"\u662F\u5426\u751F\u6210\u8282\u62CD\u5668",path:"isMixBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u751F\u6210\u8282\u62CD\u5668"}]},{default:()=>[t(Z,{value:e.isMixBeat,"onUpdate:value":[s=>e.isMixBeat=s,()=>{a.isBeatTime=!0}]},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]})]}),t(_,{cols:1},{default:()=>[t(P,{label:"\u5207\u6362\u58F0\u8F68",path:"multiTracksSelection",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5207\u6362\u58F0\u8F68",trigger:"change",type:"array"}]},{default:()=>[t(_,{style:"padding-top: 4px;"},{default:()=>[t(N,{span:24},{default:()=>[t(Z,{value:a.multiTracks,"onUpdate:value":s=>a.multiTracks=s,onUpdateValue:s=>{Te(s)}},{default:()=>[t(O,{value:"all"},{default:()=>[p("\u5168\u9009")]}),t(O,{value:"allUncheck"},{default:()=>[p("\u91CD\u7F6E")]}),t(O,{value:"invert"},{default:()=>[p("\u53CD\u9009")]})]})]}),a.partListNames&&a.partListNames.length>0&&t(N,{span:24,style:"margin-top:5px"},{default:()=>[t(P,{label:"",path:"multiTracksSelection",rule:[{required:!1}]},{default:()=>[t(Bt,{value:e.multiTracksSelection,"onUpdate:value":s=>e.multiTracksSelection=s,onUpdateValue:s=>{a.partListNames.length!=s.length?a.multiTracks=null:a.multiTracks="all"}},{default:()=>[t(_,{yGap:2,cols:4},Je(m=a.partListNames.map(s=>t(N,null,{default:()=>[t(fe,{value:s.value,label:s.label},null)]})))?m:{default:()=>[m]})]})]})]})]})]})]}),e.multiTracksSelection.length>1&&t(_,{cols:2},{default:()=>[t(P,{label:"\u603B\u8C31\u6E32\u67D3",path:"isScoreRender",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u6E32\u67D3"}]},{default:()=>[t(Z,{value:e.isScoreRender,"onUpdate:value":s=>e.isScoreRender=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u652F\u6301")]}),t(O,{value:!1},{default:()=>[p("\u4E0D\u652F\u6301")]})]})]}),e.isScoreRender&&t(P,{label:"\u9ED8\u8BA4\u663E\u793A",path:"defaultScoreRender",rule:[{required:!1}]},{default:()=>[t(Z,{value:e.defaultScoreRender,"onUpdate:value":s=>e.defaultScoreRender=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u603B\u8C31")]}),t(O,{value:!1},{default:()=>[p("\u5206\u8F68")]})]})]})]}),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[p("\u6F14\u594F\u6587\u4EF6")]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u662F\u5426\u64AD\u653E\u9884\u5907\u62CD",path:"isPlayBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u9884\u5907\u62CD"}]},{default:()=>[t(Z,{value:e.isPlayBeat,"onUpdate:value":s=>e.isPlayBeat=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]}),e.isPlayBeat&&t(P,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(Z,{value:e.isUseSystemBeat,"onUpdate:value":s=>e.isUseSystemBeat=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u7CFB\u7EDF\u9884\u5907\u62CD")]}),t(O,{value:!1},{default:()=>[p("MP3\u9884\u5907\u62CD")]})]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u91CD\u590D\u8282\u62CD\u65F6\u957F",path:"repeatedBeats",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u662F\u5426\u91CD\u590D\u8282\u62CD\u65F6\u957F"}]},{default:()=>[t(Z,{value:e.repeatedBeats,"onUpdate:value":s=>e.repeatedBeats=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]}),t(P,{label:"\u662F\u5426\u663E\u793A\u6307\u6CD5",path:"isShowFingering",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u663E\u793A\u6307\u6CD5"}]},{default:()=>[t(Z,{value:e.isShowFingering,"onUpdate:value":s=>e.isShowFingering=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]})]}),t(_,{cols:2},{default:()=>[e.playMode==="MP3"&&t(P,{label:"\u4E0A\u4F20\u4F34\u594F",path:"musicSheetAccompanimentList",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20.mp3"}]},{default:()=>[t(J,{disabled:a.previewMode,size:30,fileList:a.musicSheetAccompanimentUrl,"onUpdate:fileList":[s=>a.musicSheetAccompanimentUrl=s,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6",max:1,desc:"\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6"},null)]}),e.isAllSubject&&e.musicSheetType=="SINGLE"&&t(P,{label:"\u4E0A\u4F20\u539F\u97F3",path:"musicSheetSoundList_all_subject",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20\u539F\u97F3",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u539F\u97F3",disabled:a.previewMode,size:30,max:1,fileList:e.musicSheetSoundList_all_subject,"onUpdate:fileList":[s=>e.musicSheetSoundList_all_subject=s,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u539F\u97F3",onRemove:()=>{}},null)]})]}),!!h.list.length&&t(ge,null,[t(Se,{showIcon:!1,type:"info"},{default:()=>[p("\u8BC6\u522B\u5230\u51711\u5904\u6E10\u53D8\u901F\u5EA6\uFF0C\u8BF7\u8F93\u5165Dorico\u5BF9\u5E94\u5C0F\u8282\u65F6\u95F4\u4FE1\u606F")]}),t(I,{label:"rit.",required:!0,style:{marginTop:"10px"}},{default:()=>[t(W,{vertical:!0},Je(u=h.list.map((s,n)=>t(Ce,null,{default:()=>[t(I,{path:`graduals.${s[0].measureIndex}`,rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u594F\u66F2\u76EE\u65F6\u95F4"},{pattern:/^((\d{2}):?){2,3}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u66F2\u76EE\u65F6\u95F4",trigger:"blur"}]},{default:()=>[t(Ce,null,{default:()=>[t(Ve,null,{default:()=>[s[0].measureIndex+1,p("\u5C0F\u8282\u5F00\u59CB")]}),t(ue,{placeholder:"00:00:00",value:e.graduals[s[0].measureIndex],"onUpdate:value":f=>e.graduals[s[0].measureIndex]=f},null)]})]}),t("div",{style:{lineHeight:"30px",padding:"0 4px"}},[p("~")]),t(I,{path:`graduals.${s[1].measureIndex}`,rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u594F\u66F2\u76EE\u65F6\u95F4"},{pattern:/^((\d{2}):?){2,3}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u66F2\u76EE\u65F6\u95F4",trigger:"blur"}]},{default:()=>[t(Ce,null,{default:()=>[t(ue,{placeholder:"00:00:00",value:e.graduals[s[1].measureIndex],"onUpdate:value":f=>e.graduals[s[1].measureIndex]=f},null),t(Ve,null,{default:()=>[s[1].measureIndex,p("\u5C0F\u8282\u7ED3\u675F")]})]})]})]})))?u:{default:()=>[u]})]})]),e.musicSheetType=="SINGLE"&&e.playMode==="MP3"&&!e.isAllSubject&&e.musicSheetSoundList_YZ.map((s,n)=>t(ge,null,[e.musicalInstrumentIdList.includes(s.musicalInstrumentId)&&t(_,{class:ae.audioSection},{default:()=>[t(P,{span:12,label:s.musicalInstrumentName,path:`musicSheetSoundList_YZ[${n}].audioFileUrl`,rule:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u4E50\u5668\u6F14\u594F\u6587\u4EF6"}]},{default:()=>[t(J,{desc:"\u4E50\u5668\u6F14\u594F\u6587\u4EF6",disabled:a.previewMode,size:100,fileList:s.audioFileUrl,"onUpdate:fileList":[f=>s.audioFileUrl=f,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",text:"\u70B9\u51FB\u4E0A\u4F20MP3\u6587\u4EF6",bucketName:"cloud-coach"},null)]})]})])),e.musicSheetType=="CONCERT"&&e.playMode==="MP3"&&e.musicSheetSoundList_YY.length>0&&t(ge,null,[e.musicSheetSoundList_YY.map((s,n)=>{var f,A;return t(ge,null,[(!o(s.track)||((A=(f=s.track)==null?void 0:f.toLocaleUpperCase)==null?void 0:A.call(f))!="COMMON"&&e.multiTracksSelection.includes(s.track))&&t(_,{class:ae.audioSection},{default:()=>[t(P,{span:12,label:"\u539F\u97F3",path:`musicSheetSoundList_YY[${n}].audioFileUrl`,rule:[{required:!1,message:`\u8BF7\u4E0A\u4F20${s.track?s.track+"\u7684":"\u7B2C"+(n+1)+"\u4E2A"}\u539F\u97F3`}]},{default:()=>[t(J,{desc:"\u539F\u97F3\u6587\u4EF6",disabled:a.previewMode,size:100,fileList:s.audioFileUrl,"onUpdate:fileList":[j=>s.audioFileUrl=j,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach"},null)]}),a.partListNames.length>0&&t(P,{span:12,label:"\u6240\u5C5E\u8F68\u9053",path:`musicSheetSoundList_YY[${n}].track`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053"}]},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053",value:s.track,options:z(s.track),onUpdateValue:j=>{const q=s.track;if(q){e.musicSheetSoundList_YY.forEach(C=>{C.track==j&&(C.track=q)});const E=e.multiTracksSelection.indexOf(s.track);e.multiTracksSelection.splice(E,1)}else e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(E=>E.track!=j);j!=null&&!e.multiTracksSelection.includes(j)&&e.multiTracksSelection.push(j),s.track=j,a.partListNames.length==e.multiTracksSelection.length&&(a.multiTracks="all")}},null)]}),t(P,{span:12,label:"\u4E94\u7EBF\u8C31PDF",path:`musicSheetSoundList_YY[${n}].musicPdfUrl`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E94\u7EBF\u8C31PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u4E94\u7EBF\u8C31PDF",disabled:a.previewMode,size:30,max:1,fileList:s.musicPdfUrl,"onUpdate:fileList":j=>s.musicPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(P,{span:12,label:"\u9996\u8C03PDF",path:`musicSheetSoundList_YY[${n}].firstPdfUrl`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u9996\u8C03PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u9996\u8C03PDF",disabled:a.previewMode,size:30,max:1,fileList:s.firstPdfUrl,"onUpdate:fileList":j=>s.firstPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(P,{span:12,label:"\u56FA\u5B9APDF",path:`musicSheetSoundList_YY[${n}].jianPdfUrl`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u56FA\u5B9APDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u56FA\u5B9APDF",disabled:a.previewMode,size:30,max:1,fileList:s.jianPdfUrl,"onUpdate:fileList":j=>s.jianPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(N,{class:ae.btnRemove},{default:()=>[t(Y,{type:"primary",text:!0,onClick:()=>se(n)},{default:()=>[p("\u5220\u9664")]})]})]})])})]),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[p("\u6F14\u5531\u6587\u4EF6")]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u662F\u5426\u64AD\u653E\u9884\u5907\u62CD",path:"isPlaySingBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u9884\u5907\u62CD"}]},{default:()=>[t(Z,{value:e.isPlaySingBeat,"onUpdate:value":s=>e.isPlaySingBeat=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]}),e.isPlaySingBeat&&t(P,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSingSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(Z,{value:e.isUseSingSystemBeat,"onUpdate:value":s=>e.isUseSingSystemBeat=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u7CFB\u7EDF\u9884\u5907\u62CD")]}),t(O,{value:!1},{default:()=>[p("MP3\u9884\u5907\u62CD")]})]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u91CD\u590D\u8282\u62CD\u65F6\u957F",path:"repeatedBeatsToSing",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u662F\u5426\u91CD\u590D\u8282\u62CD\u65F6\u957F"}]},{default:()=>[t(Z,{value:e.repeatedBeatsToSing,"onUpdate:value":s=>e.repeatedBeatsToSing=s},{default:()=>[t(O,{value:!0},{default:()=>[p("\u662F")]}),t(O,{value:!1},{default:()=>[p("\u5426")]})]})]})]}),t(_,{cols:2},{default:()=>[t(P,{label:"\u4E0A\u4F20\u4F34\u5531",path:"bSongFile",rule:[{required:!1}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u4F34\u5531",disabled:a.previewMode,size:30,fileList:a.bSongFile,"onUpdate:fileList":[s=>a.bSongFile=s,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u4F34\u5531\u6587\u4EF6"},null)]})]}),e.fSongList.length>0&&e.fSongList.map(s=>t(_,{class:ae.audioSection},{default:()=>[t(P,{span:12,label:s.track+"\u8303\u5531",path:s.audioFileUrl,rule:[{required:!1}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:s.audioFileUrl,"onUpdate:fileList":[n=>s.audioFileUrl=n,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u8303\u5531\u6587\u4EF6"},null)]})]})),e.multiTracksSelection.length>1&&e.isScoreRender&&t(_,{cols:2,class:ae.audioSection},{default:()=>[t(P,{label:"\u603B\u8C31\u8303\u5531",path:"scoreRenderFile",rule:[{required:!1}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u603B\u8C31\u8303\u5531",disabled:a.previewMode,size:30,fileList:e.scoreAudioFileUrl,"onUpdate:fileList":[s=>e.scoreAudioFileUrl=s,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u603B\u8C31\u8303\u5531"},null)]})]}),e.fSongList.length>0&&e.fSongList.map(s=>t(_,{cols:2},{default:()=>[t(P,{label:s.track+"\u5531\u540D(\u7537)",path:s.solmizationFileUrl,rule:[{required:!1}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:s.solmizationFileUrl,"onUpdate:fileList":[n=>s.solmizationFileUrl=n,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u5531\u540D\u6587\u4EF6"},null)]}),t(P,{label:s.track+"\u5531\u540D(\u5973)",path:s.femaleSolmizationFileUrl,rule:[{required:!1}]},{default:()=>[t(J,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:s.femaleSolmizationFileUrl,"onUpdate:fileList":[n=>s.femaleSolmizationFileUrl=n,()=>{a.isBeatTime=!0}],tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u5531\u540D\u6587\u4EF6"},null)]})]}))]})]}),r.type!=="preview"&&t(W,{justify:"end",style:"padding-top:12px"},{default:()=>[t(Y,{type:"default",onClick:()=>l("close")},{default:()=>[p("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>c(),loading:y.value,disabled:y.value},{default:()=>[p("\u786E\u8BA4")]})]}),t(ne,{show:a.showMusicSheetOwnerDialog,"onUpdate:show":s=>a.showMusicSheetOwnerDialog=s,preset:"dialog",showIcon:!1,maskClosable:!1,title:"\u6240\u5C5E\u4EBA",style:{width:"800px"}},{default:()=>[t(na,{musicSheetExtend:e.musicSheetExtend,sourceType:e.sourceType,appData:a.appData,onClose:()=>{a.showMusicSheetOwnerDialog=!1},onChoseMusicSheetOwnerData:s=>{e.musicSheetExtend=G({},s),me()}},null)]}),t(ne,{class:ae.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:a.productOpen,"onUpdate:show":s=>a.productOpen=s,preset:"dialog",closeOnEsc:!1,maskClosable:!1,onClose:()=>{a.isAutoSave=!1},showIcon:!1},{default:()=>[t(nt,{xmlFileUrl:e.xmlFileUrl||"",onClose:()=>a.productOpen=!1,onConfirm:s=>B(this,null,function*(){try{e.musicImg=s.musicImg,e.musicFirstImg=s.musicFirstImg,e.musicJianImg=s.musicJianImg,yield c()}catch(n){console.log(n,"e")}})},null)]}),x.beatTimeOpen&&t(ct,{id:x.musicId,onClose:s=>{x.beatTimeOpen=!1,!s&&(a.showUseProject=!0)}},null),t(ne,{blockScroll:!0,show:a.showUseProject,"onUpdate:show":s=>a.showUseProject=s,preset:"dialog",showIcon:!1,title:"\u9002\u7528\u9879\u76EE",style:{width:"1200px"},onMaskClick:()=>{l("getList"),l("close"),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)},onClose:()=>{l("getList"),l("close"),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)}},{default:()=>[t(dt,{type:r.type,id:a.showUseProjectId,useProject:a.useProjectData,onClose:b},null)]})])}}}),Sa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAflBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////vroaSAAAAKXRSTlMA9IO3Uad0Cve/VuDZ1a6TGGZgLiwlDep67B2fOzIHxYt+FuTcukRqWYVSXmoAAAG3SURBVDjLvZXbloIwDEVbwFIUhBFFxft15vz/D05bCi3E4cFZyzzFsA0nJE3Z52wlJknKeZpMxGqcLIIMnmVB8SdaBRwD40H1mp2uzXMZ5pvFYpOH0vxcT1+xgXk2ieI2EEcTEwoIGs91PCz70TLU0Xk8gDXLI5LiIg1NNcyWpIoZQJVMNXsdoHViwLP+h1dltVYaSN6TRk8HtuTAuuqJIHrZFrj9aCfyhRQcCNkr+KvxQoAXXuJyDC691JnqBRuDmepOZueMKCawVt3MoABkr0eLx43fdwcPjiUg7Dt65S1PaEw6mIWt0gTIHXtwY+rBOZAYJwU2HXvMFJNdvnLegzdAahwVXniNt+8pUuV9d2UAnMI74N54ez0XPkxlPICddRUsfBm0wHlbCasVHPkF0k8nFPJsBaH2Px1tSi2VOlEfD3PYHK4ptN0CnW1XbNhuN0g7rg/ERVp2tmdsOEhuRGfgWuTSHCd+1tLIiNrhNwrS0gSe0f7YoXb4h8dKpZR7x/iKA3JgK0ULwtoDS1fBVByH7NWtArJkSF7NBqPry+nldn29vRjHV+77y3z8mvj/BUSvto/ZL9G9S97INuj8AAAAAElFTkSuQmCC",va="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAMCAMAAABRJ730AAAAM1BMVEUAAAD///////////////////////////////////////////////////////////////+3leKCAAAAEHRSTlMAV/jw7Ofd0MGkTj4vIhgPSYQHfQAAAE1JREFUGNOFzkcSgCAQBdE/5Az3P60KhgGr9C171dh50Rjh0VFb0FeGm6vDUC2vtuJUzFNNwS3rq+oMJslRZcIkiv4csQhHDnghpQg/Ni2rB1mZg3PWAAAAAElFTkSuQmCC",ba=le({name:"musicPreView",props:{item:{type:Object,default:()=>{}},scoreType:{type:String,default:"staff"}},setup(r,{emit:k}){const l=tt().getToken,e=H(""),a=H([]),h=H(void 0);kt(r.item.id).then(b=>{if(b.code===200){const{isAllSubject:w,musicSheetType:L,audioPlayTypes:R,musicalInstruments:o}=b.data;!w&&L==="SINGLE"&&R.includes("PLAY")&&(a.value=(o||[]).map(v=>({value:v.id,label:v.name}))),a.value.length?(h.value=a.value[0].value,c(h.value)):c()}});const x=Fe(()=>{var b;return(b=a.value.find(w=>w.value===h.value))==null?void 0:b.label}),y={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},F=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",M=y[F],S=/(localhost|192)/.test(location.host)?"https://test.kt.colexiu.com/":M;function c(b){let w=S+`/instrument/?_t=${Date.now()}&id=${r.item.id}&modelType=practise&modeType=json&Authorization=${l}&isCbs=true&isMove=1`;w+="&musicRenderType="+r.scoreType,b&&(w+=`&instrumentId=${b}`),e.value=w}return()=>t("div",{class:ae.musicPreView},[a.value.length>1&&t(jt,{value:h.value,"onUpdate:value":[b=>h.value=b,c],options:a.value,scrollable:!0,size:"large",trigger:"click",class:"musicalInstrumentsListPop"},{default:()=>[t("div",{class:ae.musicList},[t("img",{class:ae.musicImg,src:Sa},null),t("div",null,[x.value]),t("img",{class:ae.tipImg,src:va},null)])]}),e.value&&t("iframe",{width:"100%",height:"100%",frameborder:"0",src:e.value},null)])}}),Ta="_productModal_geqxn_1",Ia="_productIframe_geqxn_9",ka="_musicPreviewModal_geqxn_14",Xe={productModal:Ta,productIframe:Ia,musicPreviewModal:ka};function ke(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!st(r)}const xa=le({name:"music-list",props:["searchId","musicCategoryId"],setup(r,{emit:k}){const d=Me(),l=ce(),e=te({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,isScoreRender:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null,useAppId:[],status:null,appAuditFlag:null,categoriesId:null,musicCategoryId:null,musicalInstrumentId:null,dataCorrect:null,generateFirst:null,audioPlayTypes:null,generateMetronomeAudio:null},dataList:[],subjectList:[],instrumentList:[],tagList:[],visiableMusic:!1,musicOperation:"add",musicData:{},musicSheetCategories:[],musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,showUseProject:!1,useProjectData:[],showUseProjectId:null,detailReadonly:!1,userIdDisable:!0,userIdData:[],productOpen:!1,beatTimeOpen:!1,productItem:{}}),a=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",minWidth:"200px",key:"id",render(i){return t(Ie,{labelPlacement:"left",column:1},{default:()=>[t(ie,{label:"\u540D\u79F0"},{default:()=>[t(be,{content:i.name},null)]}),t(ie,{label:"\u7F16\u53F7"},{default:()=>[t("div",{onDblclick:()=>{Jt(l,i.id)}},[t(be,{content:i.id},null)])]})]})}},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(i){return t(Rt,{width:60,height:60,src:i.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",minWidth:"200px",key:"composer",render(i){return t(Ie,{labelPlacement:"left",column:1},{default:()=>[t(ie,{label:"\u97F3\u4E50\u4EBA"},{default:()=>[i.composer]}),t(ie,{label:"\u603B\u8C31\u6E32\u67D3"},{default:()=>[i.isScoreRender?"\u652F\u6301":"\u4E0D\u652F\u6301"]}),t(ie,{label:"\u5206\u7C7B"},{default:()=>[t(be,{content:i.musicCategoryName},null)]}),t(ie,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[t(be,{content:i.subjectNames},null)]})]})}},{title:"\u4F5C\u8005\u5C5E\u6027",key:"sourceType",minWidth:"120px",render(i){let T,z;return t(Ie,{labelPlacement:"left",column:1},{default:()=>[t(ie,{label:"\u5C5E\u6027"},ke(T=Vt(i.sourceType,new Map(Object.entries(Ue))))?T:{default:()=>[T]}),t(ie,{label:"\u6240\u5C5E\u4EBA"},ke(z=$t(i.musicSheetExtend,i.sourceType))?z:{default:()=>[z]})]})}},{title:"\u9002\u7528\u9879\u76EE",key:"projectName",render(i){return t(W,null,{default:()=>[$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.showUseProject=!0,e.showUseProjectId=i.id}},{default:()=>[t(be,{content:i.musicSheetExtend&&i.musicSheetExtend.useApplicationNames?i.musicSheetExtend.useApplicationNames:""},null),t(_t,{size:15,style:"padding-left: 9px"},{default:()=>[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),t("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]}),[[X("auth"),"musicSheetApplicationExtend/save1752901206883221506"]])]})}},{title:"\u66F4\u65B0\u4FE1\u606F",minWidth:"250px",key:"updateBy",render(i){return t(Ie,{labelPlacement:"left",column:1},{default:()=>[t(ie,{label:"\u66F4\u65B0\u4EBA"},{default:()=>[i.updateByName]}),t(ie,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:()=>[i.updateTime]})]})}},{title:"\u573A\u666F",key:"audioPlayTypes",render(i){let T;return t(W,null,ke(T=i.audioPlayTypeArray.map(z=>{let K;return t(ze,{type:z==="SING"?"warning":"success"},ke(K=Kt(z))?K:{default:()=>[K]})}))?T:{default:()=>[T]})}},{title:"\u5BA1\u6838\u7248\u672C",minWidth:"100px",key:"appAuditFlag",render(i){return t("div",null,[i.appAuditFlag?"\u662F":"\u5426"])}},{title:"\u72B6\u6001",minWidth:"50px",key:"status",render(i){return t(ze,{type:i.status?"primary":"default"},{default:()=>[i.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:"300px",render(i){return t(W,null,{default:()=>[t(Ot,{trigger:"hover",options:[{label:"\u4E94\u7EBF\u8C31",key:"staff"},{label:"\u9996\u8C03",key:"firstTone"},{label:"\u56FA\u5B9A\u8C03",key:"fixedTone"}],onSelect:T=>{e.musicPreview=!0,e.musicScore=i,e.musicPreviewScoreType=T}},{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:T=>T.stopPropagation()},{default:()=>[p("\u9884\u89C8")]})]}),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.visiableMusic=!0,e.musicOperation="preview",e.musicData=i,e.detailReadonly=!0}},{default:()=>[p("\u67E5\u770B")]}),[[X("auth"),"musicSheet/detail1751241103201271810"]]),$(t(Y,{type:"primary",size:"small",text:!0,disabled:i.playMode==="MIDI",onClick:()=>{e.visiableMusic=!0,e.musicOperation="edit",e.musicData=i,e.detailReadonly=!0}},{default:()=>[p("\u4FEE\u6539")]}),[[X("auth"),"musicSheet/save1751241178962984962"]]),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>x(i)},{default:()=>[i.status?"\u505C\u7528":"\u542F\u7528"]}),[[X("auth"),"musicSheet/statusList1751241653309407234"]]),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.productOpen=!0,e.productItem=i}},{default:()=>[p("\u751F\u6210\u56FE\u7247")]}),[[X("auth"),"musicSheet/img1751240591299051522"]]),i.isMixBeat&&$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.productItem=i,e.beatTimeOpen=!0}},{default:()=>[p("\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891")]}),[[X("auth"),"musicSheet/addMix1819259767120539649"]]),$(t(Y,{type:"primary",size:"small",text:!0,disabled:!!i.status,onClick:()=>M(i)},{default:()=>[p("\u5220\u9664")]}),[[X("auth"),"musicSheet/remove1753457445635645442"]])]})}}],h=H([]),x=i=>{const T=i.status?"\u505C\u7528":"\u542F\u7528";d.warning({title:"\u63D0\u793A",content:`\u662F\u5426${T}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>B(this,null,function*(){try{yield _e({ids:new Array(i.id),status:!i.status}),S(),l.success(`${T}\u6210\u529F`)}catch(z){}})})},y=i=>{const T=h.value.length;T==0&&l.warning("\u672A\u9009\u62E9\u6570\u636E");const z=i?"\u542F\u7528":"\u505C\u7528";d.warning({title:"\u63D0\u793A",content:`\u662F\u5426${z}`+T+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>B(this,null,function*(){try{yield _e({ids:h.value,status:i}),S(),l.success(`${z}\u6210\u529F`)}catch(K){}})})},F=i=>B(this,null,function*(){if(!!e.searchForm.applicationId&&(e.userIdData=[],e.searchForm.userId=null,i&&i!=="PLATFORM")){const{data:T}=yield We({page:1,rows:9999,sourceType:i,applicationId:e.searchForm.applicationId});(T.rows||[]).forEach(K=>{e.userIdData.push(ee(G({},K),{label:i==="PERSON"?K.userName:K.organizationRole,value:i==="PERSON"?K.userId:K.organizationRoleId}))})}}),M=i=>{d.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${i.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>B(this,null,function*(){try{yield Lt({id:i.id}),S(),l.success("\u5220\u9664\u6210\u529F")}catch(T){}})})},S=()=>B(this,null,function*(){try{e.loading=!0;const i=e.searchForm.sourceType,T=e.searchForm.userId,z=e.searchForm.audioPlayTypes;let K=ee(G({},e.searchForm),{useAppId:e.searchForm.useAppId?e.searchForm.useAppId.join(","):e.searchForm.useAppId,audioPlayTypes:[]});z&&(z==="PLAY_SING"?K.audioPlayTypes=["PLAY","SING"]:K.audioPlayTypes=[z]),i&&i=="ORG"&&(K.organizationRoleId=T,K.userId=null);const{data:se}=yield Ft(G(G({},e.pagination),K));e.pagination.pageTotal=Number(se.total);const Te=se.rows||[];Te.forEach(me=>{me.audioPlayTypeArray=me.audioPlayTypes?me.audioPlayTypes.split(","):[]}),e.dataList=Te}catch(i){}e.loading=!1}),c=()=>B(this,null,function*(){try{const{data:i}=yield Ae({});e.musicSheetCategories=i||[],b(e.musicSheetCategories)}catch(i){}}),b=i=>{for(let T=0;T<i.length;T++)i[T].musicSheetCategoriesList.length<1?i[T].musicSheetCategoriesList=null:b(i[T].musicSheetCategoriesList)},w=()=>B(this,null,function*(){try{const{data:i}=yield ut({page:1,rows:999}),T=i.rows||[];T.forEach(z=>{z.label=z.name,z.value=z.id+""}),e.subjectList=T}catch(i){}}),L=()=>B(this,null,function*(){try{const{data:i}=yield Pe({page:1,rows:999}),T=i.rows||[];T.forEach(z=>{z.label=z.name,z.value=z.id+""}),e.instrumentList=T}catch(i){}}),R=()=>B(this,null,function*(){try{const i=Object.keys(it),{data:T}=yield rt({page:1,rows:999,hiddenFlag:!0}),z=T.rows||[];e.useProjectData=[],z.filter(se=>i.includes(se.appKey)).forEach(se=>{e.useProjectData.push(ee(G({},se),{label:se.appName,value:se.id}))})}catch(i){}}),o=H(),v=()=>{e.pagination.page=1,S()};lt(()=>r.searchId,i=>{console.log(i,"searchId")});const g=()=>{var i;h.value=[],(i=o.value)==null||i.submit()},V=()=>{var i;(i=o.value)==null||i.reset()};return de(()=>B(this,null,function*(){e.loading=!0,r.searchId&&(e.searchForm.categoriesId=r.searchId||null),r.musicCategoryId&&(e.searchForm.musicCategoryId=r.musicCategoryId||null),w(),L(),R(),c(),S()})),()=>t("div",{class:"system-menu-container"},[t(He,{ref:o,model:e.searchForm,onSubmit:v,saveKey:"music-list",onSetModel:i=>e.searchForm=i},{default:()=>[t(I,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[t(ue,{placeholder:"\u66F2\u76EE\u7F16\u53F7/\u540D\u79F0",value:e.searchForm.keyword,"onUpdate:value":i=>e.searchForm.keyword=i,clearable:!0},null)]}),t(I,{label:"\u603B\u8C31\u6E32\u67D3",path:"isScoreRender"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u603B\u8C31\u6E32\u67D3",value:e.searchForm.isScoreRender,"onUpdate:value":i=>e.searchForm.isScoreRender=i,options:[{label:"\u652F\u6301",value:!0},{label:"\u4E0D\u652F\u6301",value:!1}],clearable:!0},null)]}),t(I,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[t(Ee,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:e.searchForm.musicCategoryId,"onUpdate:value":i=>e.searchForm.musicCategoryId=i,options:e.musicSheetCategories,clearable:!0},null)]}),t(I,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:e.searchForm.subjectId,"onUpdate:value":i=>e.searchForm.subjectId=i,options:e.subjectList,filterable:!0,clearable:!0},null)]}),t(I,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentId"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",value:e.searchForm.musicalInstrumentId,"onUpdate:value":i=>e.searchForm.musicalInstrumentId=i,options:e.instrumentList,filterable:!0,clearable:!0},null)]}),t(I,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[t(ue,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:e.searchForm.composer,"onUpdate:value":i=>e.searchForm.composer=i,clearable:!0},null)]}),t(I,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",value:e.searchForm.sourceType,"onUpdate:value":i=>e.searchForm.sourceType=i,options:oe(Ue),onUpdateValue:i=>B(this,null,function*(){e.userIdData=[],e.searchForm.userId=null,i&&i!=="PLATFORM"?(yield F(i),e.userIdDisable=!e.searchForm.applicationId):e.userIdDisable=!0}),clearable:!0},null)]}),t(I,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":i=>e.searchForm.applicationId=i,options:e.useProjectData,clearable:!0,onUpdateValue:i=>B(this,null,function*(){e.searchForm.applicationId=i,i?(yield F(e.searchForm.sourceType),e.userIdDisable=!(e.searchForm.sourceType&&e.searchForm.sourceType!=="PLATFORM")):(e.searchForm.userId=null,e.userIdDisable=!0,e.userIdData=[])})},null)]}),t(I,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{label:()=>t("div",null,[p("\u6240\u5C5E\u4EBA")]),default:()=>t(D,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:e.userIdDisable||!e.searchForm.applicationId&&!e.searchForm.sourceType,value:e.searchForm.userId,"onUpdate:value":i=>e.searchForm.userId=i,options:e.userIdData,clearable:!0},null)}),t(I,{label:"\u9002\u7528\u9879\u76EE",path:"useAppId"},{default:()=>[t(D,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u9879\u76EE",value:e.searchForm.useAppId,"onUpdate:value":i=>e.searchForm.useAppId=i,options:e.useProjectData,multiple:!0,maxTagCount:1},null)]}),t(I,{label:"\u72B6\u6001",path:"status"},{default:()=>[t(D,{value:e.searchForm.status,"onUpdate:value":i=>e.searchForm.status=i,placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:!0,options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}]},null)]}),t(I,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag"},{default:()=>[t(D,{value:e.searchForm.appAuditFlag,"onUpdate:value":i=>e.searchForm.appAuditFlag=i,placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",clearable:!0,options:[{label:"\u662F",value:1},{label:"\u5426",value:0}]},null)]}),t(I,{label:"\u6570\u636E\u4FEE\u590D",path:"dataCorrect"},{default:()=>[t(D,{value:e.searchForm.dataCorrect,"onUpdate:value":i=>e.searchForm.dataCorrect=i,placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u4FEE\u590D",clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]}),t(I,{label:"\u8282\u62CD\u5668\u97F3\u9891",path:"generateMetronomeAudio"},{default:()=>[t(D,{value:e.searchForm.generateMetronomeAudio,"onUpdate:value":i=>e.searchForm.generateMetronomeAudio=i,placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891",clearable:!0,options:[{label:"\u5DF2\u751F\u6210",value:!0},{label:"\u672A\u751F\u6210",value:!1}]},null)]}),t(I,{label:"\u5999\u6781\u5BA2\u8282\u62CD\u5668",path:"generateFirst"},{default:()=>[t(D,{value:e.searchForm.generateFirst,"onUpdate:value":i=>e.searchForm.generateFirst=i,placeholder:"\u8BF7\u9009\u62E9\u5999\u6781\u5BA2\u8282\u62CD\u5668",clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]}),t(I,{label:"\u573A\u666F",path:"audioPlayTypes"},{default:()=>[t(D,{value:e.searchForm.audioPlayTypes,"onUpdate:value":i=>e.searchForm.audioPlayTypes=i,placeholder:"\u8BF7\u9009\u62E9\u573A\u666F",options:Xt,clearable:!0},null)]}),t(I,null,{default:()=>[t(W,null,{default:()=>[t(Y,{type:"primary",onClick:g},{default:()=>[p("\u641C\u7D22")]}),t(Y,{type:"default",onClick:V},{default:()=>[p("\u91CD\u7F6E")]})]})]})]}),t("div",{class:["section-container"]},[t(W,{style:{paddingBottom:"12px"}},{default:()=>[$(t(Y,{type:"primary",onClick:()=>{e.visiableMusic=!0,e.musicOperation="add",e.musicData={},e.detailReadonly=!0}},{default:()=>[p("\u65B0\u589E\u66F2\u76EE")]}),[[X("auth"),"musicSheet/save1751241178962984962"]]),$(t(Y,{disabled:h.value.length==0,onClick:()=>{y(!1)}},{default:()=>[p("\u6279\u91CF\u505C\u7528")]}),[[X("auth"),"musicSheet/statusList1751241653309407234"]]),$(t(Y,{disabled:h.value.length==0,onClick:()=>{y(!0)}},{default:()=>[p("\u6279\u91CF\u542F\u7528")]}),[[X("auth"),"musicSheet/statusList1751241653309407234"]])]}),t(Le,{loading:e.loading,columns:a(),data:e.dataList,rowKey:i=>i.id,checkedRowKeys:h.value,"onUpdate:checkedRowKeys":i=>h.value=i,scrollX:"1200"},null),t(Ze,{page:e.pagination.page,"onUpdate:page":i=>e.pagination.page=i,pageSize:e.pagination.rows,"onUpdate:pageSize":i=>e.pagination.rows=i,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":i=>e.pagination.pageTotal=i,onList:S,sync:!0,saveKey:"music-list"},null)]),t(ne,{show:e.visiableMusic,"onUpdate:show":i=>e.visiableMusic=i,preset:"dialog",showIcon:!1,maskClosable:!1,title:()=>e.musicOperation==="add"?"\u6DFB\u52A0\u66F2\u76EE":e.musicOperation==="preview"?"\u66F2\u76EE\u8BE6\u60C5":"\u4FEE\u6539\u66F2\u76EE",style:{width:"980px"}},{default:()=>[t(ya,{type:e.musicOperation,data:e.musicData,subjectList:e.subjectList,onClose:()=>e.visiableMusic=!1,onGetList:S},null)]}),t(ne,{blockScroll:!0,show:e.musicPreview,"onUpdate:show":i=>e.musicPreview=i,preset:"card",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",class:Xe.musicPreviewModal,"mask-closable":!1},{default:()=>[t(ba,{item:e.musicScore,scoreType:e.musicPreviewScoreType},null)]}),t(ne,{blockScroll:!0,show:e.showUseProject,"onUpdate:show":i=>e.showUseProject=i,preset:"dialog",showIcon:!1,title:"\u9002\u7528\u9879\u76EE",style:{width:"1200px"}},{default:()=>[t(dt,{id:e.showUseProjectId,useProject:e.useProjectData,onClose:()=>e.showUseProject=!1,onGetList:S},null)]}),t(ne,{class:Xe.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:e.productOpen,"onUpdate:show":i=>e.productOpen=i,preset:"dialog",closeOnEsc:!1,maskClosable:!1,showIcon:!1},{default:()=>[t(nt,{xmlFileUrl:e.productItem.xmlFileUrl,onClose:()=>e.productOpen=!1,onConfirm:i=>B(this,null,function*(){try{yield xt(ee(G({},i),{id:e.productItem.id}))}catch(T){}})},null)]}),e.beatTimeOpen&&t(ct,{id:e.productItem.id,onClose:()=>{e.beatTimeOpen=!1}},null)])}}),Fa="_instrumentSave_1gfcu_1",La="_updateFile_1gfcu_5",Ca={instrumentSave:Fa,updateFile:La},wa=le({emits:["close","getList"],props:["activeRow","saveMode","list"],name:"save-categroy-dialog",setup(r,{emit:k}){const d=ce(),l=H(),e=H([{name:"\u9876\u7EA7\u5206\u7C7B",id:0},...ot(r.list,"musicSheetCategoriesList")]),a=te({loading:!1,dataList:[],btnLoading:!1,options:{enlarge:2,autoCropWidth:350,autoCropHeight:140},messageTip:"\u8BF7\u4E0A\u4F20\u5C3A\u5BF8\u4E3A700*280\u5927\u5C0F5M\u4EE5\u5185\u7684JPG\u3001PNG\u56FE\u7247"}),h=te({id:"",name:"",coverImg:"",enable:!0,parentId:"0"}),x=()=>B(this,null,function*(){var y;(y=l.value)==null||y.validate(F=>B(this,null,function*(){if(!F){a.btnLoading=!0;try{if(r.saveMode==="add"){const{data:M}=yield Ct(G({},h));k("getList"),d.success("\u6DFB\u52A0\u6210\u529F")}else{const{data:M}=yield wt(G({},h));k("getList"),d.success("\u4FEE\u6539\u6210\u529F")}}catch(M){}a.btnLoading=!1}}))});return de(()=>{if(r.saveMode==="add")r.activeRow&&r.activeRow.id&&(h.parentId=(r==null?void 0:r.activeRow.id)+"");else{for(let y in r==null?void 0:r.activeRow)h[y]=r==null?void 0:r.activeRow[y];(r==null?void 0:r.activeRow.currentLevel)>1&&(a.options.autoCropWidth=210,a.options.autoCropHeight=268,a.messageTip="\u8BF7\u4E0A\u4F20\u5C3A\u5BF8\u4E3A210*268\u5927\u5C0F5M\u4EE5\u5185\u7684JPG\u3001PNG\u56FE\u7247")}}),()=>t("div",null,[t(Ne,{ref:l,model:h},{default:()=>[r.saveMode==="add"&&r.activeRow&&t(I,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[t(Ee,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:h.parentId,"onUpdate:value":y=>h.parentId=y,options:e.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"musicSheetCategoriesList",valueField:"id",labelField:"name",disabled:!0},null)]}),t(I,{label:"\u5206\u7C7B\u540D\u79F0",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",trigger:["blur","input"]}],path:"name"},{default:()=>[t(ue,{value:h.name,"onUpdate:value":y=>h.name=y,placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",maxlength:25,showCount:!0,clearable:!0},null)]}),t(I,{label:"\u5C01\u9762\u56FE",path:"coverImg",rule:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE",trigger:["input","blur"]}]},{default:()=>[t(J,{fileList:h.coverImg,"onUpdate:fileList":y=>h.coverImg=y,accept:".jpg,.jpeg,.png",cropper:!0,size:5,class:Ca.updateFile,bucketName:"news-info",options:a.options,tips:a.messageTip},null)]})]}),t(W,{justify:"end"},{default:()=>[t(Y,{type:"default",onClick:()=>k("close")},{default:()=>[p("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>x(),loading:a.btnLoading,disabled:a.btnLoading},{default:()=>[p("\u786E\u8BA4")]})]})])}}),Ua=le({emits:["setTabName","jump"],name:"music-category",setup(r,{slots:k,attrs:d,emit:l}){const e=te({loading:!1,pagination:{page:1,rows:10},dataList:[],showSaveDialog:!1,saveMode:"add",saveRowData:null}),a=Me(),h=ce(),x=()=>B(this,null,function*(){try{e.loading=!0;const c={page:e.pagination.page,rows:e.pagination.rows},{data:b}=yield Ae(c);e.dataList=b||[]}catch(c){}e.loading=!1});de(()=>{x()});const y=c=>{l("jump",c)},F=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"id",render(c){return c.name+"("+c.id+")"}},{title:"\u66F2\u76EE\u6570\u91CF",key:"musicSheetNum",render(c){return t("div",null,[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{y({tabName:"MusicList",musicCategoryId:c.id})}},{default:()=>[c.musicSheetNum]})])}},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(c){return t(W,null,{default:()=>[$(t(Y,{type:"error",size:"small",text:!0,onClick:()=>S(c)},{default:()=>[p("\u5220\u9664")]}),[[X("auth"),"musicSheetCategories/remove1751239397398806530"]]),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=c,e.saveMode="edit",e.showSaveDialog=!0}},{default:()=>[p("\u4FEE\u6539")]}),[[X("auth"),"musicSheetCategories/update1751239533856292866"]]),c.currentLevel<4&&$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=c,e.showSaveDialog=!0,e.saveMode="add"}},{default:()=>[p("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[X("auth"),"musicSheetCategories/save1751239479284203521"]])]})}}],M=()=>{e.pagination.page=1,x()},S=c=>B(this,null,function*(){a.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664'"+c.name+"'?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>B(this,null,function*(){(yield Ut(c.id)).data&&(M(),h.success("\u5220\u9664\u6210\u529F"))})})});return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"]},[t(W,{style:{paddingBottom:"12px"}},{default:()=>[$(t(Y,{type:"primary",onClick:()=>{e.saveMode="add",e.showSaveDialog=!0,e.saveRowData=null}},{default:()=>[p("\u65B0\u589E\u5206\u7C7B")]}),[[X("auth"),"musicSheetCategories/save1751239479284203521"]])]}),t(Le,{loading:e.loading,columns:F(),data:e.dataList,rowKey:c=>c.id,childrenKey:"musicSheetCategoriesList"},null)]),t(ne,{show:e.showSaveDialog,"onUpdate:show":c=>e.showSaveDialog=c,preset:"dialog",showIcon:!1,title:e.saveRowData?"\u4FEE\u6539\u5206\u7C7B":"\u65B0\u589E\u5206\u7C7B",style:{width:"600px"}},{default:()=>[t(wa,{onGetList:()=>{e.showSaveDialog=!1,x()},onClose:()=>{e.showSaveDialog=!1},list:e.dataList,saveMode:e.saveMode,activeRow:e.saveRowData},null)]})])}}),il=le({name:"music-sheet",setup(){const r=te({tabName:"MusicList",searchId:null,musicCategoryId:null}),k=Yt();Ht(e=>{e.form.tabName&&(r.tabName=e.form.tabName)});const d=e=>{console.log("setTabName",e),r.tabName=e.tabName,r.searchId=e.id},l=e=>{Zt(e,"tabName",k)};return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"],style:"padding-top: 0"},[t(zt,{type:"line",size:"large",value:r.tabName,"onUpdate:value":[e=>r.tabName=e,e=>l(e)]},{default:()=>[$(t(qe,{name:"MusicList",tab:"\u66F2\u76EE\u5217\u8868"},{default:()=>[t(xa,{searchId:r.searchId,musicCategoryId:r.musicCategoryId},null)]}),[[X("auth"),"musicSheet/page1751238894313013249"]]),$(t(qe,{name:"CategroryList",tab:"\u66F2\u76EE\u5206\u7C7B"},{default:()=>[t(Ua,{onSetTabName:d,onJump:e=>{r.tabName=e.tabName,r.musicCategoryId=e.musicCategoryId}},null)]}),[[X("auth"),"musicSheetCategories/queryTree1751238805699952641"]])]})])])}});export{il as default};
