index.47ff03cc.js 102 KB

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