1234567891011121314151617181920212223242526272829 |
- var vt=Object.defineProperty,Tt=Object.defineProperties;var It=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable;var qe=(u,I,n)=>I in u?vt(u,I,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[I]=n,G=(u,I)=>{for(var n in I||(I={}))ze.call(I,n)&&qe(u,n,I[n]);if(ke)for(var n of ke(I))Ge.call(I,n)&&qe(u,n,I[n]);return u},W=(u,I)=>Tt(u,It(I));var Ke=(u,I)=>{var n={};for(var a in u)ze.call(u,a)&&I.indexOf(a)<0&&(n[a]=u[a]);if(u!=null&&ke)for(var a of ke(u))I.indexOf(a)<0&&Ge.call(u,a)&&(n[a]=u[a]);return n};var M=(u,I,n)=>new Promise((a,e)=>{var s=h=>{try{k(n.next(h))}catch(x){e(x)}},y=h=>{try{k(n.throw(h))}catch(x){e(x)}},k=h=>h.done?a(h.value):Promise.resolve(h.value).then(s,y);k((n=n.apply(u,I)).next())});import{S as st}from"./index.1ac4415f.js";import{P as it}from"./index.aea83c68.js";import{a as ut,b as kt,c as Ve,d as xt,e as Ft,f as Lt,m as Be,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.10d2371e.js";import{U as J}from"./index.f2e2aeec.js";import{cj as Bt,cG as Dt,d as se,cI as jt,cJ as rt,F as Ce,cP as Rt,bi as Ue,dx as _t,dy as $e,a as le,u as me,r as Z,B as fe,dj as Le,i as t,l as T,ce as w,aj as ye,_ as ne,a9 as ee,p as Y,k as f,cg as we,bx as ot,b as nt,dk as ct,q as De,ac as _,ad as L,m as he,db as ce,M as dt,ai as je,dz as Ot,di as Se,a8 as Q,a7 as O,dA as Yt,ag as Ae,aa as pe,bn as pt,dB as qt,H as $,ae as zt,ch as Xe,d9 as ue,da as xe,bC as X,a0 as Gt,a1 as Kt,e as Vt,d7 as Ht,d8 as Ze}from"./index.1121c4e8.js";import{D as ve,E as Jt,C as mt,F as Me,c as We}from"./constant.b4bfe346.js";import{g as de,a as Qe}from"./objectUtil.ec24ceed.js";import{c as Ee}from"./api.dbd2a264.js";import{x as ft}from"./api.363dbcd0.js";import{s as gt}from"./api.66c2b040.js";import{f as ht}from"./index.de322ef7.js";import{a as $t}from"./uploadFile.cd4d0bc0.js";import{N as U}from"./FormItemGridItem.9227cd2b.js";import{N as Re}from"./Cascader.af630f76.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 Te}from"./index.ac33b3ef.js";import{a as ea}from"./searchArray.617a5610.js";import{g as ta,s as aa}from"./use-async.d0b957f3.js";import"./searchs.b637f0d6.js";import"./oss-file-upload.d2b5f9e0.js";import"./api.91c48519.js";import"./vuedraggable.umd.bb40cde2.js";import"./DeleteFilled.a5b1e2e7.js";import"./api.177879f6.js";import"./knowledgeTypeData.3b15dd0b.js";import"./dateUtil.0b94c0b3.js";import"./dayjs.min.cd8da7a1.js";const la=Bt("input-group-label",`
- position: relative;
- user-select: none;
- -webkit-user-select: none;
- box-sizing: border-box;
- padding: 0 12px;
- display: inline-block;
- border-radius: var(--n-border-radius);
- background-color: var(--n-group-label-color);
- color: var(--n-group-label-text-color);
- font-size: var(--n-font-size);
- line-height: var(--n-height);
- height: var(--n-height);
- flex-shrink: 0;
- white-space: nowrap;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,[Dt("border",`
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- border: var(--n-group-label-border);
- transition: border-color .3s var(--n-bezier);
- `)]),sa=Object.assign(Object.assign({},rt.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),et=se({name:"InputGroupLabel",props:sa,setup(u){const{mergedBorderedRef:I,mergedClsPrefixRef:n,inlineThemeDisabled:a}=jt(u),e=rt("Input","-input-group-label",la,_t,u,n),s=Ce(()=>{const{size:k}=u,{common:{cubicBezierEaseInOut:h},self:{groupLabelColor:x,borderRadius:N,groupLabelTextColor:b,lineHeight:d,groupLabelBorder:v,[$e("fontSize",k)]:C,[$e("height",k)]:F}}=e.value;return{"--n-bezier":h,"--n-group-label-color":x,"--n-group-label-border":v,"--n-border-radius":N,"--n-group-label-text-color":b,"--n-font-size":C,"--n-line-height":d,"--n-height":F}}),y=a?Rt("input-group-label",Ce(()=>u.size[0]),s,u):void 0;return{mergedClsPrefix:n,mergedBordered:I,cssVars:a?void 0:s,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var u,I,n;const{mergedClsPrefix:a}=this;return(u=this.onRender)===null||u===void 0||u.call(this),Ue("div",{class:[`${a}-input-group-label`,this.themeClass],style:this.cssVars},(n=(I=this.$slots).default)===null||n===void 0?void 0:n.call(I),this.mergedBordered?Ue("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",ae={audioSection:ia,btnRemove:ua,formContainer:ra,productModal:oa,productIframe:na,musicPreView:ca,musicList:da,musicImg:pa,tipImg:ma,beatSymbolSel:fa},ga=se({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:I,attrs:n,emit:a}){const e=le({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{applicationId:null,name:null,sourceType:null},dataList:[],appData:[]}),s=me(),y=Z(),k=()=>{e.pagination.page=1,x()},h=()=>{var d;(d=y.value)==null||d.submit()},x=()=>M(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:v}=yield ut(G(G({},e.pagination),e.searchForm));e.pagination.pageTotal=Number(v.total),e.dataList=v.rows||[]}catch(d){}e.loading=!1});fe(()=>M(this,null,function*(){{if(e.appData=Le(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}x()}));const N=()=>e.searchForm.sourceType==="ORG"?[{title:"\u673A\u6784\u540D\u79F0",key:"orgName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(d){return t(ee,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const v=W(G({},d),{applicationId:e.searchForm.applicationId});a("choseMusicSheetOwnerData",v),a("close")}},{default:()=>[f("\u9009\u62E9")]})]})}}]:[{title:"\u4EBA\u5458\u540D\u79F0",key:"userName"},{title:"\u624B\u673A\u53F7",key:"phone"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(d){return t(ee,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const v=W(G({},d),{applicationId:e.searchForm.applicationId});a("choseMusicSheetOwnerData",v),a("close")}},{default:()=>[f("\u9009\u62E9")]})]})}}],b=()=>[{title:"\u673A\u6784\u540D\u79F0",key:"organizationRole"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(d){return t(ee,null,{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{const v=W(G({},d),{applicationId:e.searchForm.applicationId});a("choseMusicSheetOwnerData",v),a("close")}},{default:()=>[f("\u9009\u62E9")]})]})}}];return()=>t("div",{class:"system-menu-container"},[t(st,{ref:y,model:e.searchForm,onSubmit:k,onSetModel:d=>e.searchForm=d},{default:()=>[t(T,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId",size:"small",style:"width:250px"},{default:()=>[t(w,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":d=>e.searchForm.applicationId=d,options:e.appData},null)]}),e.searchForm.sourceType==="PERSON"&&t(ye,null,[t(T,{label:"\u6240\u5C5E\u4EBA",path:"name",size:"small",style:"width:250px"},{default:()=>[t(ne,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u4EBA/\u624B\u673A\u53F7",value:e.searchForm.name,"onUpdate:value":d=>e.searchForm.name=d,clearable:!0},null)]})]),e.searchForm.sourceType==="ORG"&&t(ye,null,[t(T,{label:"\u673A\u6784\u540D\u79F0",path:"name",size:"small",style:"width:250px"},{default:()=>[t(ne,{placeholder:"\u8BF7\u8F93\u5165\u673A\u6784\u540D\u79F0",value:e.searchForm.name,"onUpdate:value":d=>e.searchForm.name=d,clearable:!0},null)]})]),t(T,{size:"small"},{default:()=>[t(ee,null,{default:()=>[t(Y,{type:"primary",onClick:h},{default:()=>[f("\u641C\u7D22")]})]})]})]}),t("div",{class:["section-container"]},[u.sourceType==="PERSON"&&t(we,{loading:e.loading,columns:N(),data:e.dataList},null),u.sourceType==="ORG"&&t(we,{loading:e.loading,columns:b(),data:e.dataList},null),t(it,{page:e.pagination.page,"onUpdate:page":d=>e.pagination.page=d,pageSize:e.pagination.rows,"onUpdate:pageSize":d=>e.pagination.rows=d,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":d=>e.pagination.pageTotal=d,onList:x,sync:!0,pageSlot:5},null)])])}}),yt=se({name:"music-create-img",props:{xmlFileUrl:{type:String,default:""}},emits:["close","confirm"],setup(u,{emit:I}){const n=me(),a=le({productOpen:!1,productIfameSrc:""}),e=le({musicImg:"",musicFirstImg:"",musicJianImg:""}),s=()=>{if(!u.xmlFileUrl){n.error("\u8BF7\u5148\u4E0A\u4F20XML");return}const x={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},N=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec")?"online":"dev",b=x[N],d=/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com":b,v=encodeURIComponent(u.xmlFileUrl);a.productIfameSrc=d+`/instrument/#/product-img?xmlUrl=${v}&isCreateImg=true&isCbs=true`},y=x=>{const N=x.data;if((N==null?void 0:N.api)==="webApi_renderSvg"){let b=[];try{b=JSON.parse(N.product)}catch(d){console.log("\u{1F680} ~ error:",d)}b=b.filter(d=>d.base64),b.length===3?(n.success("\u56FE\u7247\u751F\u6210\u6210\u529F"),k(b)):n.error("\u56FE\u7247\u751F\u6210\u5931\u8D25")}},k=x=>M(this,null,function*(){var N,b,d;for(let v=0;v<x.length;v++){const C=h(x[v].base64,`${Date.now()}p${v}.png`);x[v].url=yield $t(C)}e.musicImg=((N=x[0])==null?void 0:N.url)||"",e.musicFirstImg=((b=x[1])==null?void 0:b.url)||"",e.musicJianImg=((d=x[2])==null?void 0:d.url)||"",x=[],I("close"),I("confirm",e)}),h=(x,N)=>{var D;let b=x.split(",")||[],d=(D=b[0].match(/:(.*?);/))==null?void 0:D[1],v=atob(b[1]),C=v.length,F=new Uint8Array(C);for(;C--;)F[C]=v.charCodeAt(C);return new File([F],N,{type:d})};return fe(()=>{s(),window.addEventListener("message",y)}),ot(()=>{window.removeEventListener("message",y)}),()=>t("iframe",{class:ae.productIframe,src:a.productIfameSrc},null)}}),ha="_musiceBeatTime_khkvo_1",ya="_tit_khkvo_10",ba="_iframe_khkvo_18",Ne={musiceBeatTime:ha,tit:ya,iframe:ba},bt=se({name:"musiceBeatTime",props:{id:{type:String},asyncFlag:{type:Boolean,default:!1}},emits:["close"],setup(u,{emit:I}){const n=me();fe(()=>{window.addEventListener("message",a)}),ot(()=>{window.removeEventListener("message",a)});function a(v){const C=v.data;(C==null?void 0:C.api)==="webApi_beatTimes"&&(s.value=!1,e(C))}function e(v){return M(this,null,function*(){try{const{beatTime:C,singBeatTime:F,mingBeatTime:D,isBeatTime:V,isSingBeatTime:K,isMingBeatTime:o}=JSON.parse(v.data);yield kt({id:u.id,playTimeList:C,singTimeList:F,solmizationTimeList:D,playTimeSilence:V,singTimeSilence:K,solmizationTimeSilence:o,asyncFlag:u.asyncFlag}),n.success("\u8282\u62CD\u5668\u751F\u6210\u6210\u529F"),I("close")}catch(C){console.log("\u{1F680} ~ \u97F3\u9891\u5408\u6210\u5931\u8D25",C),n.error("\u8282\u62CD\u5668\u751F\u6210\u5931\u8D25"),I("close",!0)}})}const s=Z(!0),k=nt().getToken,h={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},x=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",N=h[x];let d=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":N)+`/instrument/?_t=${Date.now()}&id=${u.id}&Authorization=${k}&isCbs=true&isbeatTimes=true&musicRenderType=staff`;return()=>t("div",{class:Ne.musiceBeatTime},[t("div",{class:Ne.tit},[f("\u8282\u62CD\u5668\u97F3\u9891\u751F\u6210\u4E2D...")]),s.value&&t("iframe",{class:Ne.iframe,width:"667px",height:"375px",frameborder:"0",src:d},null)])}}),St=se({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:I}){const n=me(),a=le({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=Ce(()=>({GYM:b("GYM"),KLX_JG:b("KLX_JG"),KLX:b("KLX"),KT:b("KT"),GYT:b("GYT")})),s=Z(),y=Z(!1),k=Z([]),h=Z([]),x=Z([]),N=Z(!1),b=o=>(u.useProject||[]).findIndex(l=>l.appKey===o)!==-1,d=()=>{let o=!1;const S=a.gym;if(S.checked){if(!S.paymentType)return n.error("\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"),!0;if(console.log(S.isConvertibleScore,"gym.isConvertibleScore"),S.isConvertibleScore==null)return n.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!S.scoreType)return n.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(S.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 g=a.klxt;if(g.checked){if(g.isConvertibleScore==null)return n.error("\u8BF7\u9009\u62E9\u662F\u5426\u652F\u6301\u8F6C\u8C31"),!0;if(!g.scoreType)return n.error("\u8BF7\u9009\u62E9\u9ED8\u8BA4\u8C31\u9762"),!0;if(g.status==null)return n.error("\u8BF7\u9009\u62E9\u662F\u5426\u542F\u7528"),!0}const P=a.klx;if(P.checked){if(P.musicTagIds.length<=0)return n.error("\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"),!0;if(!P.paymentType||P.paymentType.length<=0)return n.error("\u8BF7\u9009\u62E9\u6536\u8D39\u65B9\u5F0F"),!0;if(!P.paymentType.includes("CHARGE"))P.musicPrice=0;else if(P.musicPrice===null||P.musicPrice===void 0||P.musicPrice==="")return n.error("\u66F2\u76EE\u4EF7\u683C\u4E0D\u80FD\u4E3A\u7A7A"),!0;if(typeof P.topFlag!="boolean")return n.error("\u8BF7\u9009\u62E9\u662F\u5426\u7F6E\u9876"),!0;if(typeof P.exquisiteFlag!="boolean")return n.error("\u8BF7\u9009\u62E9\u662F\u5426\u7CBE\u54C1"),!0;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 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},v=()=>{const o=[],S=[];return a.gym.checked&&(o.push(G({},a.gym)),S.push(a.gym.applicationId)),a.gyt.checked&&(o.push(G({},a.gyt)),S.push(a.gyt.applicationId)),a.klxt.checked&&(o.push(G({},a.klxt)),S.push(a.klxt.applicationId)),a.klx.checked&&(o.push(W(G({},a.klx),{musicTagIds:a.klx.musicTagIds.join(","),paymentType:a.klx.paymentType.join(",")})),S.push(a.klx.applicationId)),a.kt.checked&&(o.push(W(G({},a.kt),{musicTagIds:a.kt.musicTagIds.join(",")})),S.push(a.kt.applicationId)),{musicSheetId:u.id,applicationExtends:o||{},useApplicationIds:S.join(",")||""}},C=()=>M(this,null,function*(){try{if(d())return;N.value=!0;const o=v();yield Lt(o),n.success("\u4FDD\u5B58\u6210\u529F"),I("close"),I("getList")}catch(o){}N.value=!1}),F=()=>M(this,null,function*(){try{const S=(u.useProject||[]).find(g=>g.appKey==="KLX");if(!S)return;const{data:l}=yield Ve({applicationId:S.id});l&&l.length>0&&l.forEach(g=>{k.value.push(W(G({},g),{label:g.name,value:g.id}))})}catch(o){}}),D=()=>M(this,null,function*(){try{const S=(u.useProject||[]).find(g=>g.appKey==="KT");if(!S)return;const{data:l}=yield Ve({applicationId:S.id});l&&l.length>0&&l.forEach(g=>{h.value.push(W(G({},g),{label:g.name,value:g.id}))})}catch(o){}}),V=()=>M(this,null,function*(){const S=(u.useProject||[]).find(g=>g.appKey==="KT");if(!S)return;const l=yield xt({applicationIds:S.id});l.data&&l.data.length>0&&(x.value=l.data[0].musicSheetCategories)}),K=()=>M(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 fe(()=>M(this,null,function*(){y.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(S=>{S.appKey==="GYM"?a.gym.applicationId=S.id:S.appKey==="KLX_JG"?a.klxt.applicationId=S.id:S.appKey==="KLX"?a.klx.applicationId=S.id:S.appKey==="KT"?a.kt.applicationId=S.id:S.appKey==="GYT"&&(a.gyt.applicationId=S.id)}),yield F(),yield D(),yield V(),yield K(),y.value=!1})),()=>t(ct,{show:y.value},{default:()=>[t(De,{model:a,ref:s,"label-placement":"top","label-width":"85"},{default:()=>[e.value.GYM&&t(_,{cols:8,xGap:12,style:{marginBottom:"12px"}},{default:()=>[t(L,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(he,{checked:a.gym.checked,"onUpdate:checked":o=>a.gym.checked=o},{default:()=>[f("\u7BA1\u4E50\u8FF7")]})]}),t(L,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(L,null,{default:()=>[t(T,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(w,{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(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(w,{value:a.gym.isConvertibleScore,"onUpdate:value":o=>a.gym.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(w,{value:a.gym.scoreType,"onUpdate:value":o=>a.gym.scoreType=o,options:de(ve)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(w,{value:a.gym.status,"onUpdate:value":o=>a.gym.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(ce,{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(L,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(he,{checked:a.gyt.checked,"onUpdate:checked":o=>a.gyt.checked=o},{default:()=>[f("\u7BA1\u4E50\u56E2")]})]}),t(L,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(L,null,{default:()=>[t(T,{label:"\u53EF\u7528\u9014\u5F84",path:"availableType",required:!0},{default:()=>[t(w,{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(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(w,{value:a.gyt.isConvertibleScore,"onUpdate:value":o=>a.gyt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(w,{value:a.gyt.scoreType,"onUpdate:value":o=>a.gyt.scoreType=o,options:de(ve)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(w,{value:a.gyt.status,"onUpdate:value":o=>a.gyt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(ce,{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(L,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(he,{checked:a.klxt.checked,"onUpdate:checked":o=>a.klxt.checked=o},{default:()=>[f("\u9177\u4E50\u79C0\u673A\u6784")]})]}),t(L,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(w,{value:a.klxt.isConvertibleScore,"onUpdate:value":o=>a.klxt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(w,{value:a.klxt.scoreType,"onUpdate:value":o=>a.klxt.scoreType=o,options:de(ve)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(w,{value:a.klxt.status,"onUpdate:value":o=>a.klxt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(ce,{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(L,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(he,{checked:a.klx.checked,"onUpdate:checked":o=>a.klx.checked=o},{default:()=>[f("\u9177\u4E50\u79C0\u5E73\u53F0")]})]}),t(L,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(L,null,{default:()=>[t(T,{label:"\u66F2\u76EE\u6807\u7B7E",required:!0},{default:()=>[t(w,{value:a.klx.musicTagIds,"onUpdate:value":[o=>a.klx.musicTagIds=o,()=>{k.value.forEach(o=>{var S,l;((S=a.klx.musicTagIds)==null?void 0:S.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:k.value},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(w,{value:a.klx.paymentType,"onUpdate:value":[o=>a.klx.paymentType=o,o=>{a.klx.paymentType=o;const S="FREE";a.klx.paymentType[a.klx.paymentType.length-1]==S?a.klx.paymentType=[S]:a.klx.paymentType.length>1&&a.klx.paymentType.includes(S)&&a.klx.paymentType.splice(a.klx.paymentType.indexOf(S),1),a.klx.paymentType.includes("CHARGE")||(a.klx.musicPrice=0)}],multiple:!0,maxTagCount:1,clearable:!0,options:de(Jt)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u66F2\u76EE\u4EF7\u683C",path:"musicPrice",required:!0},{default:()=>{var o;return[t(ce,{disabled:!((o=a.klx.paymentType)!=null&&o.includes("CHARGE")),precision:2,min:0,max:9999,value:a.klx.musicPrice,"onUpdate:value":S=>a.klx.musicPrice=S,showButton:!1},null)]}})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u7F6E\u9876",path:"topFlag",required:!0},{default:()=>[t(w,{value:a.klx.topFlag,"onUpdate:value":o=>a.klx.topFlag=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u7CBE\u54C1",path:"exquisiteFlag",required:!0},{default:()=>[t(w,{value:a.klx.exquisiteFlag,"onUpdate:value":o=>a.klx.exquisiteFlag=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(w,{value:a.klx.isConvertibleScore,"onUpdate:value":o=>a.klx.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(w,{value:a.klx.scoreType,"onUpdate:value":o=>a.klx.scoreType=o,options:de(ve)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(w,{value:a.klx.status,"onUpdate:value":o=>a.klx.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(ce,{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(L,{span:1,style:{display:"flex",alignItems:"center"}},{default:()=>[t(he,{checked:a.kt.checked,"onUpdate:checked":o=>a.kt.checked=o},{default:()=>[f("\u97F3\u4E50\u6570\u5B57\u8BFE\u5802")]})]}),t(L,{span:7,style:{background:"#f9f9f9",padding:"20px 16px 0",borderRadius:"8px"}},{default:()=>[t(_,{cols:6,xGap:12},{default:()=>[t(L,null,{default:()=>[t(T,{label:"\u4E50\u8C31\u6559\u6750",path:"musicSheetCategoryId",required:!0},{default:()=>[t(w,{filterable:!0,value:a.kt.musicSheetCategoryId,"onUpdate:value":o=>a.kt.musicSheetCategoryId=o,clearable:!0,options:x.value,labelField:"name",valueField:"id"},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6536\u8D39\u65B9\u5F0F",path:"paymentType",required:!0},{default:()=>[t(w,{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(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u652F\u6301\u8F6C\u8C31",path:"isConvertibleScore",required:!0},{default:()=>[t(w,{value:a.kt.isConvertibleScore,"onUpdate:value":o=>a.kt.isConvertibleScore=o,clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u9ED8\u8BA4\u8C31\u9762",path:"scoreType",required:!0},{default:()=>[t(w,{value:a.kt.scoreType,"onUpdate:value":o=>a.kt.scoreType=o,options:de(ve)},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u542F\u7528",path:"status",required:!0},{default:()=>[t(w,{value:a.kt.status,"onUpdate:value":o=>a.kt.status=o,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u6392\u5E8F",path:"sortNo"},{default:()=>[t(ce,{precision:0,min:0,max:999999999,value:a.kt.sortNo,"onUpdate:value":o=>a.kt.sortNo=o,showButton:!1},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u66F2\u76EE\u6807\u7B7E",required:!0},{default:()=>[t(w,{value:a.kt.musicTagIds,"onUpdate:value":[o=>a.kt.musicTagIds=o,()=>{h.value.forEach(o=>{var S;a.kt.musicTagIds.length>=3?(S=a.kt.musicTagIds)!=null&&S.includes(o.id)?o.disabled=!1:o.disabled=!0:o.disabled=!1})}],multiple:!0,maxTagCount:1,clearable:!0,options:h.value,"onUpdate:show":o=>{h.value.forEach(S=>{var l;a.kt.musicTagIds.length>=3?(l=a.kt.musicTagIds)!=null&&l.includes(S.id)?S.disabled=!1:S.disabled=!0:S.disabled=!1})}},null)]})]}),t(L,null,{default:()=>[t(T,{label:"\u662F\u5426\u63A8\u8350",required:!0},{default:()=>[t(w,{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:()=>I("close",!0)},{default:()=>[f("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>C(),loading:N.value,disabled:N.value},{default:()=>[f("\u786E\u8BA4")]})]})]})]})}});function Sa(u,I){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 I&&(n+="."),n}function tt(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!pt(u)}const va=(u,I)=>{var k;let n=0;const a=u.closest(I);let e=a;const s=a==null?void 0:a.closest("measure");let y=null;for(;!y&&n<((s==null?void 0:s.childNodes.length)||50);)n++,((k=e==null?void 0:e.nextElementSibling)==null?void 0:k.tagName)==="note"&&(y=e==null?void 0:e.nextElementSibling),e=e==null?void 0:e.nextElementSibling;return y},Ta=(u,I)=>{var y,k;if(!u)return"";const n=new DOMParser().parseFromString(u,"text/xml"),a=((k=(y=n.getElementsByTagName("part-list"))==null?void 0:y[0])==null?void 0:k.getElementsByTagName("score-part"))||[],e=n.getElementsByTagName("part"),s=a[I];if(s){const h=s.getAttribute("id");Array.from(e).forEach(b=>{var d,v,C;if(b&&b.getAttribute("id")!==h&&((d=b.parentNode)==null||d.removeChild(b)),b&&b.getAttribute("id")===h){const F=b.getElementsByTagName("barline"),D=(v=F[F.length-1])==null?void 0:v.parentElement;if(((C=D==null?void 0:D.lastElementChild)==null?void 0:C.tagName)!=="barline"){const V=(D==null?void 0:D.children)||[];for(let K of V)if(K.tagName==="barline"){D==null||D.appendChild(K);break}}}}),Array.from(a).forEach(b=>{var d;b&&b.getAttribute("id")!==h&&((d=b.parentNode)==null||d.removeChild(b))});const x=n.getElementsByTagName("note"),N=b=>{var v;let d=x[b+1];for(let C=b;C<x.length;C++){const F=x[C];if(!((v=F.getElementsByTagName("grace"))!=null&&v.length)){d=F;break}}return d==null?void 0:d.getElementsByTagName("duration")[0]};Array.from(x).forEach((b,d)=>{var C;const v=b.getElementsByTagName("grace");v&&v.length&&N(d)&&(b==null||b.appendChild((C=N(d))==null?void 0:C.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};function at(u){var b,d,v,C;const I=Ta(u,0),n=new DOMParser().parseFromString(I,"text/xml"),a=Array.from(n.querySelectorAll("measure")),e=Array.from(n.querySelectorAll("note")),s=Array.from(n.querySelectorAll("words")),y=Array.from(n.querySelectorAll("metronome")),k=[];for(const F of[...s,...y]){const D=va(F,"direction");if(D){const V=D==null?void 0:D.closest("measure"),K=Array.from(V.querySelectorAll("note")),o=Array.from(V.childNodes).filter(g=>g.nodeName==="note").findIndex(g=>g===D);let S=0,l=0;for(let g=0;g<K.length;g++){const q=+(((b=K[g].querySelector("duration"))==null?void 0:b.textContent)||"0");S+=q,g<o&&(l=S)}k.push({ele:F,index:e.indexOf(D),noteInMeasureIndex:o,textContent:F.textContent,measureIndex:a.indexOf(V),type:F.tagName,allDuration:S,leftDuration:l})}}k.push({ele:e[e.length-1],index:e.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:a.length});const h=[];k.sort((F,D)=>F.index-D.index);const x=Object.keys(Ia).map(F=>F.toLocaleLowerCase());let N=!1;for(const F of k){const D=(d=F.textContent)==null?void 0:d.toLocaleLowerCase().trim();F===k[k.length-1]&&((v=h[h.length-1])==null?void 0:v.length)===1&&(N=!0);const V=x.find(K=>{const o=K.split(" ");return D&&o.includes(D)||K===D});if(F.type==="metronome"||F.type==="words"&&(D.startsWith("a tempo")||V)||N){const K=h.findIndex(o=>o.length===1);K>-1&&F.index>((C=h[K])==null?void 0:C[0].start)&&(h[K][1]={start:F.index,measureIndex:F.measureIndex,noteInMeasureIndex:F.noteInMeasureIndex,allDuration:F.allDuration,leftDuration:F.leftDuration,type:D})}F.type==="words"&&V&&h.push([{start:F.index,measureIndex:F.measureIndex,noteInMeasureIndex:F.noteInMeasureIndex,allDuration:F.allDuration,leftDuration:F.leftDuration,type:D}])}return h}const ka=u=>{var e,s,y;const I={speed:0,title:"",composer:"",partNames:[]},n=new DOMParser().parseFromString(u,"text/xml");I.title=((e=n.getElementsByTagName("work-title")[0])==null?void 0:e.textContent)||"",I.composer=((s=n.getElementsByTagName("creator")[0])==null?void 0:s.textContent)||"";const a=n.getElementsByTagName("measure");for(const k of Array.from(n.getElementsByTagName("part-name")))(y=k.textContent)!=null&&y.trim()&&I.partNames.push(k.textContent);for(const k of Array.from(a)){const h=k.getElementsByTagName("per-minute");if(h.length&&h[h.length-1]){I.speed=parseFloat(h[h.length-1].textContent||"0");break}}return I},xa=se({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:I,attrs:n,emit:a}){const e=le({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}),s=le({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}),y=le({list:[],gradualRefs:[]}),k=le({beatTimeOpen:!1,musicId:""});dt(()=>e.multiTracksSelection,p=>{if(s.musicUpdateLoading){s.musicUpdateLoading=!1;return}K(p),F()});const h=Z(!1),x=Z(),N=me(),b=je(),d=()=>M(this,null,function*(){x.value.validate(p=>M(this,null,function*(){if(!p){if(e.musicSheetType=="CONCERT"){let r=[];const{data:i}=yield Ee({page:1,rows:9999});i.rows.map(m=>{m.code&&m.code.split(",").forEach(A=>{r.push(A.replaceAll(" ","").toLocaleLowerCase())})});let c=[];if(e.multiTracksSelection.forEach(m=>{if(m&&!C(m)){let A=!1,j=m.replace(" ","").toLocaleLowerCase();for(let z=0;z<r.length;z++)if(j.startsWith(r[z])){A=!0;break}A||c.push(m)}}),c.length>0){b.warning({title:"\u63D0\u793A",content:`\u58F0\u8F68\u672A\u914D\u7F6E\uFF1A${c.join(",")}`,positiveText:"\u786E\u5B9A",onPositiveClick:()=>{}});return}}try{let r=new Set,i=[],c=e.musicSheetType,m=!1,A=!1;for(let B=0;B<e.fSongList.length;B++){let te=e.fSongList[B];(te.audioFileUrl||te.solmizationFileUrl||te.femaleSolmizationFileUrl)&&(i.push(te),r.add("SING"),A=!0)}if(c=="SINGLE"?e.isAllSubject?e.musicSheetSoundList_all_subject&&(r.add("PLAY"),i.push({audioFileUrl:e.musicSheetSoundList_all_subject,musicSheetId:u.data.id,audioPlayType:"PLAY"}),m=!0):e.musicSheetSoundList_YZ.length>0&&e.musicSheetSoundList_YZ.forEach(B=>{e.musicalInstrumentIdList.includes(B.musicalInstrumentId)&&B.audioFileUrl&&(m=!0,i.push(W(G({},B),{musicSheetId:u.data.id})),r.has("PLAY")||r.add("PLAY"))}):c=="CONCERT"&&e.musicSheetSoundList_YY.forEach(B=>{B.audioFileUrl&&e.multiTracksSelection.includes(B.track)&&(i.push(W(G({},B),{musicalInstrumentId:B.musicalInstrumentId||l(B.track),musicSheetId:u.data.id,audioPlayType:"PLAY"})),m=!0,r.has("PLAY")||r.add("PLAY"))}),(e.scoreAudioFileUrl||s.bSongFile)&&(A=!0),!A&&!m){N.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"}),r.has("SING")||r.add("SING")):(s.bSongFile&&e.musicSheetAccompanimentList.push({musicSheetId:u.data.id,audioFileUrl:s.bSongFile,audioPlayType:"SING"}),r.has("SING")||r.add("SING")),s.musicSheetAccompanimentUrl&&(e.musicSheetAccompanimentList.push({musicSheetId:u.data.id,audioFileUrl:s.musicSheetAccompanimentUrl,audioPlayType:"PLAY"}),r.has("PLAY")||r.add("PLAY"));let j,z;e.multiTracksSelection.length>1&&(j=e.isScoreRender,e.isScoreRender&&(z=e.defaultScoreRender));const E={musicCategoryId:e.musicCategoryId,musicCover:e.musicCover,name:e.name,appAuditFlag:e.appAuditFlag,subjectIds:e.isAllSubject?"":e.subjectIds.join(","),remark:e.remark,audioPlayTypes:Array.from(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}),sourceType:e.sourceType,audioType:e.audioType,status:e.status,evaluationStandard:e.evaluationStandard,musicSheetAccompanimentList:e.musicSheetAccompanimentList,musicSheetSoundList:i,musicTag:"-1",isUseSingSystemBeat:e.isUseSingSystemBeat,isPlaySingBeat:e.isPlaySingBeat,isAllSubject:e.isAllSubject,musicSheetExtend:e.sourceType=="PLATFORM"?null:e.musicSheetExtend,isScoreRender:j,defaultScoreRender:z};e.audioType=="MIDI"&&(E.musicSheetSoundList=[]),console.log(E,"obj"),h.value=!0;let R;u.type==="add"?R=yield He(E):u.type==="edit"&&(R=yield He(W(G({},E),{id:u.data.id}))),e.isMixBeat,s.showUseProjectId=R.data,s.showUseProject=!0,setTimeout(()=>{h.value=!1,s.isAutoSave=!1},100)}catch(r){console.log(r),setTimeout(()=>{h.value=!1,s.isAutoSave=!1},100)}}}))});function v(p){p||(u.type==="add"?N.success("\u6DFB\u52A0\u6210\u529F"):u.type==="edit"&&N.success("\u4FEE\u6539\u6210\u529F")),a("getList"),a("close"),setTimeout(()=>{h.value=!1,s.isAutoSave=!1},100)}const C=p=>M(this,null,function*(){return!!(p&&(p=="P1"||p=="P2"||p=="P3"||p=="P4"))}),F=()=>M(this,null,function*(){e.fSongList.forEach(r=>{s.initFSongMap.set(r.track,r)});let p=[];e.multiTracksSelection.forEach(r=>{s.initFSongMap.has(r)?p.push(s.initFSongMap.get(r)):p.push({musicSheetId:u.data.id,audioFileUrl:null,audioPlayType:"SING",musicalInstrumentId:null,track:r,musicalInstrumentName:null,solmizationFileUrl:null,femaleSolmizationFileUrl:null})}),e.fSongList=p}),D=p=>{s.isCreateImg=!0;const r=new FileReader;r.onload=i=>{var j,z,E;try{y.list=at((j=i==null?void 0:i.target)==null?void 0:j.result).filter(B=>B.length===2);const R=ka((z=i==null?void 0:i.target)==null?void 0:z.result);e.composer||(e.composer=R.composer)}catch(R){}e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(R=>{var B,te;return!R.track||!V(R.track)||((te=(B=R.track)==null?void 0:B.toLocaleUpperCase)==null?void 0:te.call(B))!="COMMON"&&e.multiTracksSelection.includes(R.track)}),s.partListNames=g((E=i==null?void 0:i.target)==null?void 0:E.result);let c=new Map;for(let R=0;R<e.musicSheetSoundList_YY.length;R++){let B=e.musicSheetSoundList_YY[R].track;B&&c.set(B,e.musicSheetSoundList_YY[R])}let m=[],A=[];for(let R=0;R<s.partListNames.length;R++){let B=s.partListNames[R].value;c.has(B)?m.push(c.get(B)):m.push({audioFileUrl:null,track:B,musicalInstrumentId:null}),A.push(B),e.multiTracksSelection.includes(B)||e.multiTracksSelection.push(B)}for(let R=0;R<e.musicSheetSoundList_YY.length;R++){let B=e.musicSheetSoundList_YY[R].track;(!B||!A.includes(B))&&(e.musicSheetSoundList_YY[R].track=null,m.push(e.musicSheetSoundList_YY[R]))}e.musicSheetSoundList_YY=m,e.multiTracksSelection=e.multiTracksSelection.filter(R=>A.includes(R)),s.multiTracks="all",e.musicSheetSoundList_YY.length==0&&e.musicSheetSoundList_YY.push({audioFileUrl:"",track:"",musicPdfUrl:"",firstPdfUrl:"",jianPdfUrl:""})},r.readAsText(p)},V=p=>{for(let r=0;r<s.partListNames.length;r++)if(s.partListNames[r].value==p)return!0;return!1},K=p=>M(this,null,function*(){e.musicSheetType=!p||p.length<=1?"SINGLE":"CONCERT",s.subjectDisabled=!0,s.instrumentDisabled=!0,yield S(p)}),o=(p,r="")=>{if(r=r.toLocaleLowerCase().replace(/ /g,"").replace(/\d*/gi,""),!r)return"";for(let i of p){const c=i.toLocaleLowerCase().replace(/ /g,"");if(c===r)return c}return""},S=p=>M(this,null,function*(){console.log("1111"),e.subjectIds=[];const r=new Map,i=[];s.instrumentData.forEach(c=>{c.disabled||c.code.split(/[,,]/).forEach(A=>{let j=A.replaceAll(" ","").toLowerCase();if(i.push(j),r.has(j))r.get(j).push(c.id+"");else{const z=[];z.push(c.id+""),r.set(j,z)}})});for(let c=0;c<p.length;c++){let m=p[c].replaceAll(" ","").toLowerCase();const A=o(i,m);r.has(A)&&r.get(A).forEach(j=>{const z=s.instrumentList.findIndex(E=>E.id.toString()===j);!e.musicalInstrumentIdList.includes(j)&&z!==-1&&e.musicalInstrumentIdList.push(j)})}e.musicalInstrumentIdList.length>0&&(yield q(e.musicalInstrumentIdList))}),l=p=>{const r=new Map,i=[];if(s.instrumentData.forEach(m=>{m.disabled||m.code.split(/[,,]/).forEach(j=>{let z=j.replaceAll(" ","").toLowerCase();if(i.push(z),r.has(z))r.get(z).push(m.id+"");else{const E=[];E.push(m.id+""),r.set(z,E)}})}),!p)return"";p=p.replaceAll(" ","").toLowerCase();const c=o(i,p);if(r.has(c)){const m=r.get(c);return console.log("result:",m),m[0]||""}return""},g=p=>{var A,j,z,E,R,B,te,be;if(!p)return[];const r=new DOMParser().parseFromString(p,"text/xml"),i=((j=(A=r.getElementsByTagName("part-list"))==null?void 0:A[0])==null?void 0:j.getElementsByTagName("score-part"))||[];let c=Array.from(i).map(oe=>{var _e,Oe;let H=(_e=oe.getElementsByTagName("part-name"))==null?void 0:_e[0],ie="";if(H&&((Oe=H.textContent)==null?void 0:Oe.trim()))ie=H.textContent||"";else{let Ye=oe.getAttribute("id");Ye&&(ie=Ye)}return{value:ie.trim(),label:ie.trim()}});c=c.filter(oe=>{var H,ie;return((ie=(H=oe.value)==null?void 0:H.toLocaleUpperCase)==null?void 0:ie.call(H))!="COMMON"});const m=(z=r.getElementsByTagName("metronome"))==null?void 0:z[0];if(s.xmlFirstSpeed=((R=(E=m==null?void 0:m.getElementsByTagName("per-minute"))==null?void 0:E[0])==null?void 0:R.textContent)||"",e.playSpeed||(s.xmlFirstSpeed?e.playSpeed=Number.parseFloat(s.xmlFirstSpeed):e.playSpeed=100),!e.speedBeatUnit){const oe=((te=(B=m==null?void 0:m.getElementsByTagName("beat-unit"))==null?void 0:B[0])==null?void 0:te.textContent)||"",H=(be=m==null?void 0:m.getElementsByTagName("beat-unit-dot"))==null?void 0:be[0];e.speedBeatUnit=Sa(oe,!!H)}return c},P=p=>{const r=Le(s.partListNames)||[],i=e.multiTracksSelection;return r.forEach(c=>{i.includes(c.value)?c.disabled=!0:c.disabled=!1}),r||[]},q=p=>M(this,null,function*(){if(!p||p.length==0){e.subjectIds=[];return}try{const{data:r}=yield ft({page:1,rows:999,musicalInstrumentIdList:p}),i=r.rows||[],c=[];i.forEach(m=>{m.enableFlag&&c.push(m.id+"")}),e.subjectIds=c}catch(r){}}),re=p=>{b.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u539F\u97F3\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>M(this,null,function*(){let i=e.musicSheetSoundList_YY[p].track;const c=e.multiTracksSelection.indexOf(i);c>-1?e.multiTracksSelection.splice(c,1):e.musicSheetSoundList_YY.splice(p,1),s.multiTracks=="all"&&s.partListNames.length!=e.multiTracksSelection.length&&(s.multiTracks=null)})})},Pe=p=>{if(!p)return;let r=[];p==="all"?s.partListNames.forEach(i=>{r.push(i.value)}):p==="invert"&&s.partListNames.forEach(i=>{e.multiTracksSelection.includes(i.value)||r.push(i.value)}),e.multiTracksSelection=r},Ie=()=>{var i;if(e.sourceType=="PLATFORM"){s.ownerName="";return}if(!e.sourceType||!((i=e.musicSheetExtend)!=null&&i.userId))return;const p=e.musicSheetExtend.applicationId,r=s.appData.filter(c=>c.id==p);r.length>0&&(s.ownerName=r[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+")"))};fe(()=>M(this,null,function*(){s.loading=!0,u.type==="preview"&&(s.previewMode=!0);{if(s.instrumentList&&s.instrumentList.length>0)return;try{const{data:p}=yield Ee({page:1,rows:999}),r=p.rows||[];r.forEach(i=>{i.label=i.name,i.value=i.id+"",s.instrumentIdNameMap.set(i.id+"",i.name),e.musicSheetSoundList_YZ.push({musicSheetId:u.data.id,musicalInstrumentId:i.id+"",musicalInstrumentName:i.name,audioFileUrl:null,audioPlayType:"PLAY"})}),s.instrumentData=r,s.instrumentList=Le(r)}catch(p){}}s.subjectList=Le(u.subjectList),s.subjectList.forEach(p=>{p.disabled=!p.enableFlag});{const p=Object.keys(mt),{data:r}=yield gt({page:1,rows:999,parentId:0,hiddenFlag:!0}),i=r.rows||[],c=i.filter(A=>p.includes(A.appKey));c.forEach(A=>{A.label=A.appName,A.value=A.id}),s.useProjectData=c;const m=i.filter(A=>p.includes(A.appKey)&&A.appKey!=="KLX_JG");m.forEach(A=>{A.label=A.appName,A.value=A.id}),s.appData=m}try{const{data:p}=yield Be({enable:!0});s.musicSheetCategories=ht(p,"musicSheetCategoriesList")}catch(p){}if(u.type==="edit"||u.type==="preview"){const p=u.data;try{const{data:r}=yield Ct({id:p.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 c=r.subjectIds.split(",")||[];console.log(c,"subjectIds",e.subjectIds),c.forEach(m=>{e.subjectIds.includes(m)||e.subjectIds.push(m)}),s.subjectList=s.subjectList.filter(m=>!m.disabled||c.includes(m.value))}e.musicCategoryId=r.musicCategoryId,e.audioType=r.audioType,e.isPlayBeat=r.isPlayBeat,e.isUseSystemBeat=r.isUseSystemBeat;try{const c=r.extConfigJson?JSON.parse(r.extConfigJson):{};e.graduals=c.gradualTimes||{},e.repeatedBeats=!!c.repeatedBeats,e.isEvxml=!!c.isEvxml,e.repeatedBeatsToSing=!!c.repeatedBeatsToSing}catch(c){}e.evaluationStandard=r.evaluationStandard,e.musicSheetExtend=r.musicSheetExtend,s.musicSheetSoundList=r.musicSheetSoundList?r.musicSheetSoundList:[],(r.musicSheetAccompanimentList?r.musicSheetAccompanimentList:[]).forEach(c=>{let m=c.audioPlayType;m&&m=="SING"?(s.bSongFile=c.audioFileUrl,e.scoreAudioFileUrl=c.scoreAudioFileUrl):s.musicSheetAccompanimentUrl=c.audioFileUrl});for(let c=0;c<s.musicSheetSoundList.length;c++)if(s.musicSheetSoundList[c].audioPlayType=="SING"&&s.musicSheetSoundList[c].track!=null)s.initFSongMap.set(s.musicSheetSoundList[c].track,G({},s.musicSheetSoundList[c]));else if(e.isAllSubject)e.musicSheetSoundList_all_subject=s.musicSheetSoundList[c].audioFileUrl;else for(let m=0;m<e.musicSheetSoundList_YZ.length;m++){let A=s.musicSheetSoundList[c].musicalInstrumentId;A&&A==e.musicSheetSoundList_YZ[m].musicalInstrumentId&&(e.musicSheetSoundList_YZ[m].audioFileUrl=s.musicSheetSoundList[c].audioFileUrl)}e.musicalInstrumentIdList=r.musicalInstrumentIds?r.musicalInstrumentIds.split(","):[],s.instrumentList=s.instrumentList.filter(c=>c.enableFlag||e.musicalInstrumentIdList.includes(c.id+"")),Ie(),Ot.get(r.xmlFileUrl).then(c=>{if(c!=null&&c.data){s.musicUpdateLoading=!0,y.list=at(c==null?void 0:c.data).filter(E=>E.length===2),s.partListNames=g(c==null?void 0:c.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(E=>{m.push(E.trim())}),m=s.partListNames.map(E=>E.label).filter(E=>m.includes(E.toLocaleUpperCase())),e.multiTracksSelection=m,e.musicSheetType=e.multiTracksSelection.length>1?"CONCERT":"SINGLE";const j=r.musicSheetSoundList?r.musicSheetSoundList:[],z=[];s.partListNames.forEach(E=>{let R=null,B=null,te=null,be=null,oe=null;e.musicSheetType=="CONCERT"&&j.forEach(H=>{if(H.audioPlayType=="PLAY"){let ie="";H.track&&(ie=H.track.trim()),ie==E.value&&(R=H.audioFileUrl,B=H.musicalInstrumentId,te=H.musicPdfUrl,be=H.firstPdfUrl,oe=H.jianPdfUrl)}}),e.musicSheetSoundList_YY.push({audioFileUrl:R,musicPdfUrl:te,firstPdfUrl:be,jianPdfUrl:oe,musicalInstrumentId:B,track:E.value,audioPlayType:"PLAY"}),z.push(E.value)}),z.length==e.multiTracksSelection.length&&(s.multiTracks="all"),e.musicSheetType=="CONCERT"&&s.musicSheetSoundList.forEach(E=>{E.audioPlayType=="PLAY"&&E.track&&!z.includes(E.track.trim())&&E.audioPlayType=="PLAY"&&e.musicSheetSoundList_YY.push({audioFileUrl:E.audioFileUrl,musicalInstrumentId:E.musicalInstrumentId,track:E.track?E.track.trim():"",audioPlayType:"PLAY"})}),F()}})}catch(r){}}else s.subjectList=s.subjectList.filter(p=>p.enableFlag==!0),s.instrumentList=s.instrumentList.filter(p=>p.enableFlag==!0);s.loading=!1}));const ge=[{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 p,r;return t("div",{style:"background: #fff; padding-top: 12px"},[t(ct,{show:s.loading},{default:()=>[t(De,{class:ae.formContainer,model:e,ref:x,"label-placement":"left","label-width":"150",disabled:s.previewMode},{default:()=>[t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[f("\u57FA\u672C\u4FE1\u606F")]}),t(_,{cols:2},{default:()=>[t(U,{label:"\u66F2\u76EE\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",trigger:["input","blur"]}]},{default:()=>[t(ne,{value:e.name,"onUpdate:value":i=>e.name=i,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",maxlength:50,showCount:!0},null)]}),t(U,{label:"\u97F3\u4E50\u4EBA",path:"composer",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",trigger:["input","blur"]}]},{default:()=>[t(ne,{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(U,{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(U,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",trigger:["change"]}]},{default:()=>[t(Re,{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(U,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",trigger:"change"}]},{default:()=>[t(w,{value:e.sourceType,"onUpdate:value":i=>e.sourceType=i,options:de(Me),placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",onUpdateValue:()=>{e.musicSheetExtend={},s.ownerName=null}},null)]}),e.sourceType==="PERSON"&&t(U,{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(U,{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(U,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",trigger:"change",type:"number"}]},{default:()=>[t(w,{options:[{label:"\u662F",value:1},{label:"\u5426",value:0}],value:e.appAuditFlag,"onUpdate:value":i=>e.appAuditFlag=i},null)]})]}),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[f("\u66F2\u76EE\u8BBE\u7F6E")]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("MP3")]}),e.playMode=="MIDI"&&u.type==="preview"&&t(O,{value:"MIDI"},{default:()=>[f("MID")]})]})]}),e.playMode==="MP3"&&t(U,{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:()=>[f("\u81EA\u5236\u4F34\u594F")]}),t(O,{value:"COMMON"},{default:()=>[f("\u666E\u901A\u4F34\u594F")]})]})]})]}),t(_,{cols:2},{default:()=>[t(U,{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:D,onRemove:()=>{}},null)]}),t(U,{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(U,{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(U,{label:"\u603B\u8C31\u56FA\u5B9A\u8C03PDF",path:"jianPdfUrl",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u56FA\u5B9A\u8C03PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u603B\u8C31\u56FA\u5B9A\u8C03PDF",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(U,{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:()=>[f("\u6807\u51C6\u8BC4\u6D4B")]}),t(O,{value:"AMPLITUDE"},{default:()=>[f("\u6253\u51FB\u4E50(\u632F\u5E45)")]}),t(O,{value:"DECIBELS"},{default:()=>[f("\u8282\u594F(\u5206\u8D1D)")]})]})]})]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u5426")]}),t(O,{value:!0},{default:()=>[f("\u662F")]})]})]}),t(U,{label:"\u901F\u5EA6",path:"playSpeed",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u901F\u5EA6"}]},{default:()=>[t(w,{class:ae.beatSymbolSel,value:e.speedBeatUnit,"onUpdate:value":i=>e.speedBeatUnit=i,options:ge,"show-checkmark":!1,"show-arrow":!1,placement:"top","render-tag":({option:i})=>Ue("div",{class:`beatSymbolImg${i.labelHide} beatSymbolImg`}),"render-label":i=>Ue("div",{class:`beatSymbolImg${i.labelHide} beatSymbolImg`})},null),t(ce,{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(U,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentIdList",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",trigger:"change",type:"array"}]},{default:()=>[t(w,{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=>M(this,null,function*(){yield q(i)})},null)]}),t(U,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",trigger:"change",type:"array"}]},{default:()=>[t(w,{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=>M(this,null,function*(){})},null)]})]}),t(_,{cols:1},{default:()=>[t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]})]}),t(_,{cols:1},{default:()=>[t(U,{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(L,{span:24},{default:()=>[t(Q,{value:s.multiTracks,"onUpdate:value":i=>s.multiTracks=i,onUpdateValue:i=>{Pe(i)}},{default:()=>[t(O,{value:"all"},{default:()=>[f("\u5168\u9009")]}),t(O,{value:"allUncheck"},{default:()=>[f("\u91CD\u7F6E")]}),t(O,{value:"invert"},{default:()=>[f("\u53CD\u9009")]})]})]}),s.partListNames&&s.partListNames.length>0&&t(L,{span:24,style:"margin-top:5px"},{default:()=>[t(U,{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(p=s.partListNames.map(i=>t(L,null,{default:()=>[t(he,{value:i.value,label:i.label},null)]})))?p:{default:()=>[p]})]})]})]})]})]})]}),e.multiTracksSelection.length>1&&t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u652F\u6301")]}),t(O,{value:!1},{default:()=>[f("\u4E0D\u652F\u6301")]})]})]}),e.isScoreRender&&t(U,{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:()=>[f("\u603B\u8C31")]}),t(O,{value:!1},{default:()=>[f("\u5206\u8F68")]})]})]})]}),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[f("\u6F14\u594F\u6587\u4EF6")]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]}),e.isPlayBeat&&t(U,{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:()=>[f("\u7CFB\u7EDF\u9884\u5907\u62CD")]}),t(O,{value:!1},{default:()=>[f("MP3\u9884\u5907\u62CD")]})]})]})]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]}),t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]})]}),t(_,{cols:2},{default:()=>[e.playMode==="MP3"&&t(U,{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(U,{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)]})]}),!!y.list.length&&t(ye,null,[t(Se,{showIcon:!1,type:"info"},{default:()=>[f("\u8BC6\u522B\u5230\u51711\u5904\u6E10\u53D8\u901F\u5EA6\uFF0C\u8BF7\u8F93\u5165Dorico\u5BF9\u5E94\u5C0F\u8282\u65F6\u95F4\u4FE1\u606F")]}),t(T,{label:"rit.",required:!0,style:{marginTop:"10px"}},{default:()=>[t(ee,{vertical:!0},tt(r=y.list.map((i,c)=>t(Ae,null,{default:()=>[t(T,{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(Ae,null,{default:()=>[t(et,null,{default:()=>[i[0].measureIndex+1,f("\u5C0F\u8282\u5F00\u59CB")]}),t(ne,{placeholder:"00:00:00",value:e.graduals[i[0].measureIndex],"onUpdate:value":m=>e.graduals[i[0].measureIndex]=m},null)]})]}),t("div",{style:{lineHeight:"30px",padding:"0 4px"}},[f("~")]),t(T,{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(Ae,null,{default:()=>[t(ne,{placeholder:"00:00:00",value:e.graduals[i[1].measureIndex],"onUpdate:value":m=>e.graduals[i[1].measureIndex]=m},null),t(et,null,{default:()=>[i[1].measureIndex,f("\u5C0F\u8282\u7ED3\u675F")]})]})]})]})))?r:{default:()=>[r]})]})]),e.musicSheetType=="SINGLE"&&e.playMode==="MP3"&&!e.isAllSubject&&e.musicSheetSoundList_YZ.map((i,c)=>t(ye,null,[e.musicalInstrumentIdList.includes(i.musicalInstrumentId)&&t(_,{class:ae.audioSection},{default:()=>[t(U,{span:12,label:i.musicalInstrumentName,path:`musicSheetSoundList_YZ[${c}].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":[m=>i.audioFileUrl=m,()=>{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(ye,null,[e.musicSheetSoundList_YY.map((i,c)=>{var m,A;return t(ye,null,[(!V(i.track)||((A=(m=i.track)==null?void 0:m.toLocaleUpperCase)==null?void 0:A.call(m))!="COMMON"&&e.multiTracksSelection.includes(i.track))&&t(_,{class:ae.audioSection},{default:()=>[t(U,{span:12,label:"\u539F\u97F3",path:`musicSheetSoundList_YY[${c}].audioFileUrl`,rule:[{required:!1,message:`\u8BF7\u4E0A\u4F20${i.track?i.track+"\u7684":"\u7B2C"+(c+1)+"\u4E2A"}\u539F\u97F3`}]},{default:()=>[t(J,{desc:"\u539F\u97F3\u6587\u4EF6",disabled:s.previewMode,size:100,fileList:i.audioFileUrl,"onUpdate:fileList":[j=>i.audioFileUrl=j,()=>{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(U,{span:12,label:"\u6240\u5C5E\u8F68\u9053",path:`musicSheetSoundList_YY[${c}].track`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053"}]},{default:()=>[t(w,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053",value:i.track,options:P(i.track),onUpdateValue:j=>{const z=i.track;if(z){e.musicSheetSoundList_YY.forEach(R=>{R.track==j&&(R.track=z)});const E=e.multiTracksSelection.indexOf(i.track);e.multiTracksSelection.splice(E,1)}else e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(E=>E.track!=j);j!=null&&!e.multiTracksSelection.includes(j)&&e.multiTracksSelection.push(j),i.track=j,s.partListNames.length==e.multiTracksSelection.length&&(s.multiTracks="all")}},null)]}),t(U,{span:12,label:"\u4E94\u7EBF\u8C31PDF",path:`musicSheetSoundList_YY[${c}].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":j=>i.musicPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(U,{span:12,label:"\u9996\u8C03PDF",path:`musicSheetSoundList_YY[${c}].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":j=>i.firstPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(U,{span:12,label:"\u56FA\u5B9A\u8C03PDF",path:`musicSheetSoundList_YY[${c}].jianPdfUrl`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u56FA\u5B9A\u8C03PDF",trigger:["change","input"]}]},{default:()=>[t(J,{desc:"\u56FA\u5B9A\u8C03PDF",disabled:s.previewMode,size:30,max:1,fileList:i.jianPdfUrl,"onUpdate:fileList":j=>i.jianPdfUrl=j,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.pdf\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".pdf",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20PDF"},null)]}),t(L,{class:ae.btnRemove},{default:()=>[t(Y,{type:"primary",text:!0,onClick:()=>re(c)},{default:()=>[f("\u5220\u9664")]})]})]})])})]),t(Se,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[f("\u6F14\u5531\u6587\u4EF6")]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]}),e.isPlaySingBeat&&t(U,{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:()=>[f("\u7CFB\u7EDF\u9884\u5907\u62CD")]}),t(O,{value:!1},{default:()=>[f("MP3\u9884\u5907\u62CD")]})]})]})]}),t(_,{cols:2},{default:()=>[t(U,{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:()=>[f("\u662F")]}),t(O,{value:!1},{default:()=>[f("\u5426")]})]})]})]}),t(_,{cols:2},{default:()=>[t(U,{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:ae.audioSection},{default:()=>[t(U,{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":[c=>i.audioFileUrl=c,()=>{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:ae.audioSection},{default:()=>[t(U,{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(U,{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":[c=>i.solmizationFileUrl=c,()=>{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(U,{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":[c=>i.femaleSolmizationFileUrl=c,()=>{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:()=>[f("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>d(),loading:h.value,disabled:h.value},{default:()=>[f("\u786E\u8BA4")]})]}),t(pe,{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=G({},i),Ie()}},null)]}),t(pe,{class:ae.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=>M(this,null,function*(){try{e.musicImg=i.musicImg,e.musicFirstImg=i.musicFirstImg,e.musicJianImg=i.musicJianImg,yield d()}catch(c){console.log(c,"e")}})},null)]}),k.beatTimeOpen&&t(bt,{asyncFlag:!0,id:k.musicId,onClose:i=>{k.beatTimeOpen=!1,!i&&(s.showUseProject=!0)}},null),t(pe,{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(()=>{h.value=!1,s.isAutoSave=!1},100)},onClose:()=>{a("getList"),a("close"),setTimeout(()=>{h.value=!1,s.isAutoSave=!1},100)}},{default:()=>[t(St,{type:u.type,id:s.showUseProjectId,useProject:s.useProjectData,onClose:v},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=se({name:"musicPreView",props:{item:{type:Object,default:()=>{}},scoreType:{type:String,default:"staff"}},setup(u,{emit:I}){const a=nt().getToken,e=Z(""),s=Z([]),y=Z(void 0);Ut(u.item.id).then(v=>{if(v.code===200){const{isAllSubject:C,musicSheetType:F,audioPlayTypes:D,musicalInstruments:V}=v.data;!C&&F==="SINGLE"&&D.includes("PLAY")&&(s.value=(V||[]).map(K=>({value:K.id,label:K.name}))),s.value.length?(y.value=s.value[0].value,d(y.value)):d()}});const k=Ce(()=>{var v;return(v=s.value.find(C=>C.value===y.value))==null?void 0:v.label}),h={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},x=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",N=h[x],b=/(localhost|192)/.test(location.host)?"https://test.kt.colexiu.com/":N;function d(v){let C=b+`/instrument/?_t=${Date.now()}&id=${u.item.id}&modelType=practise&modeType=json&Authorization=${a}&isCbs=true&isMove=1`;C+="&musicRenderType="+u.scoreType,v&&(C+=`&instrumentId=${v}`),e.value=C}return()=>t("div",{class:ae.musicPreView},[s.value.length>1&&t(qt,{value:y.value,"onUpdate:value":[v=>y.value=v,d],options:s.value,scrollable:!0,size:"large",trigger:"click",class:"musicalInstrumentsListPop"},{default:()=>[t("div",{class:ae.musicList},[t("img",{class:ae.musicImg,src:Fa},null),t("div",null,[k.value]),t("img",{class:ae.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 Fe(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!pt(u)}const Aa=se({name:"music-list",props:["searchId","musicCategoryId"],setup(u,{emit:I}){const n=je(),a=me(),e=le({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(xe,{labelPlacement:"left",column:1},{default:()=>[t(ue,{label:"\u540D\u79F0"},{default:()=>[t(Te,{content:l.name},null)]}),t(ue,{label:"\u7F16\u53F7"},{default:()=>[t("div",{onDblclick:()=>{Wt(a,l.id)}},[t(Te,{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(xe,{labelPlacement:"left",column:1},{default:()=>[t(ue,{label:"\u97F3\u4E50\u4EBA"},{default:()=>[l.composer]}),t(ue,{label:"\u603B\u8C31\u6E32\u67D3"},{default:()=>[l.isScoreRender?"\u652F\u6301":"\u4E0D\u652F\u6301"]}),t(ue,{label:"\u5206\u7C7B"},{default:()=>[t(Te,{content:l.musicCategoryName},null)]}),t(ue,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[t(Te,{content:l.subjectNames},null)]})]})}},{title:"\u4F5C\u8005\u5C5E\u6027",key:"sourceType",minWidth:"120px",render(l){let g,P;return t(xe,{labelPlacement:"left",column:1},{default:()=>[t(ue,{label:"\u5C5E\u6027"},Fe(g=Zt(l.sourceType,new Map(Object.entries(Me))))?g:{default:()=>[g]}),t(ue,{label:"\u6240\u5C5E\u4EBA"},Fe(P=Qt(l.musicSheetExtend,l.sourceType))?P:{default:()=>[P]})]})}},{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(Te,{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(xe,{labelPlacement:"left",column:1},{default:()=>[t(ue,{label:"\u66F4\u65B0\u4EBA"},{default:()=>[l.updateByName]}),t(ue,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:()=>[l.updateTime]})]})}},{title:"\u573A\u666F",key:"audioPlayTypes",render(l){let g;return t(ee,null,Fe(g=l.audioPlayTypeArray.map(P=>{let q;return t(Xe,{type:P==="SING"?"warning":"success"},Fe(q=Xt(P))?q:{default:()=>[q]})}))?g:{default:()=>[g]})}},{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:g=>{e.musicPreview=!0,e.musicScore=l,e.musicPreviewScoreType=g}},{default:()=>[t(Y,{type:"primary",size:"small",text:!0,onClick:g=>g.stopPropagation()},{default:()=>[f("\u9884\u89C8")]})]}),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.visiableMusic=!0,e.musicOperation="preview",e.musicData=l,e.detailReadonly=!0}},{default:()=>[f("\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:()=>[f("\u4FEE\u6539")]}),[[X("auth"),"musicSheet/save1751241178962984962"]]),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>k(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:()=>[f("\u751F\u6210\u56FE\u7247")]}),[[X("auth"),"musicSheet/img1751240591299051522"]]),$(t(Y,{type:"primary",size:"small",text:!0,disabled:!!l.status,onClick:()=>N(l)},{default:()=>[f("\u5220\u9664")]}),[[X("auth"),"musicSheet/remove1753457445635645442"]])]})}}],y=Z([]),k=l=>{const g=l.status?"\u505C\u7528":"\u542F\u7528";n.warning({title:"\u63D0\u793A",content:`\u662F\u5426${g}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>M(this,null,function*(){try{yield Je({ids:new Array(l.id),status:!l.status}),b(),a.success(`${g}\u6210\u529F`)}catch(P){}})})},h=l=>{const g=y.value.length;g==0&&a.warning("\u672A\u9009\u62E9\u6570\u636E");const P=l?"\u542F\u7528":"\u505C\u7528";n.warning({title:"\u63D0\u793A",content:`\u662F\u5426${P}`+g+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>M(this,null,function*(){try{yield Je({ids:y.value,status:l}),b(),a.success(`${P}\u6210\u529F`)}catch(q){}})})},x=l=>M(this,null,function*(){if(!!e.searchForm.applicationId&&(e.userIdData=[],e.searchForm.userId=null,l&&l!=="PLATFORM")){const{data:g}=yield ut({page:1,rows:9999,sourceType:l,applicationId:e.searchForm.applicationId});(g.rows||[]).forEach(q=>{e.userIdData.push(W(G({},q),{label:l==="PERSON"?q.userName:q.organizationRole,value:l==="PERSON"?q.userId:q.organizationRoleId}))})}}),N=l=>{n.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${l.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>M(this,null,function*(){try{yield At({id:l.id}),b(),a.success("\u5220\u9664\u6210\u529F")}catch(g){}})})},b=()=>M(this,null,function*(){try{e.loading=!0;const g=e.searchForm.sourceType,P=e.searchForm.userId,q=e.searchForm.audioPlayTypes,l=e.searchForm,{generateFirst:re,musicCategoryId:Pe}=l,Ie=Ke(l,["generateFirst","musicCategoryId"]);let ge=W(G({},Ie),{useAppId:e.searchForm.useAppId?e.searchForm.useAppId.join(","):e.searchForm.useAppId,audioPlayTypes:[],musicCategoryId:Pe||re});q&&(q==="PLAY_SING"?ge.audioPlayTypes=["PLAY","SING"]:ge.audioPlayTypes=[q]),g&&g=="ORG"&&(ge.organizationRoleId=P,ge.userId=null);const{data:p}=yield Pt(G(G({},e.pagination),ge));e.pagination.pageTotal=Number(p.total);const r=p.rows||[];r.forEach(i=>{i.audioPlayTypeArray=i.audioPlayTypes?i.audioPlayTypes.split(","):[]}),e.dataList=r}catch(g){}e.loading=!1}),d=()=>M(this,null,function*(){try{const{data:l}=yield Be({});e.musicSheetCategories=l||[],v(e.musicSheetCategories)}catch(l){}}),v=l=>{for(let g=0;g<l.length;g++)l[g].musicSheetCategoriesList.length<1?l[g].musicSheetCategoriesList=null:v(l[g].musicSheetCategoriesList)},C=()=>M(this,null,function*(){try{const{data:l}=yield ft({page:1,rows:999}),g=l.rows||[];g.forEach(P=>{P.label=P.name,P.value=P.id+""}),e.subjectList=g}catch(l){}}),F=()=>M(this,null,function*(){try{const{data:l}=yield Ee({page:1,rows:999}),g=l.rows||[];g.forEach(P=>{P.label=P.name,P.value=P.id+""}),e.instrumentList=g}catch(l){}}),D=()=>M(this,null,function*(){try{const l=Object.keys(mt),{data:g}=yield gt({page:1,rows:999,hiddenFlag:!0}),P=g.rows||[];e.useProjectData=[],P.filter(re=>l.includes(re.appKey)).forEach(re=>{e.useProjectData.push(W(G({},re),{label:re.appName,value:re.id}))})}catch(l){}}),V=Z(),K=()=>{e.pagination.page=1,b()};dt(()=>u.searchId,l=>{console.log(l,"searchId")});const o=()=>{var l;y.value=[],(l=V.value)==null||l.submit()},S=()=>{var l;(l=V.value)==null||l.reset()};return fe(()=>M(this,null,function*(){e.loading=!0,u.searchId&&(e.searchForm.categoriesId=u.searchId||null),u.musicCategoryId&&(e.searchForm.musicCategoryId=u.musicCategoryId||null),C(),F(),D(),d(),b()})),()=>t("div",{class:"system-menu-container"},[t(st,{ref:V,model:e.searchForm,onSubmit:K,saveKey:"music-list",onSetModel:l=>e.searchForm=l},{default:()=>[t(T,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[t(ne,{placeholder:"\u66F2\u76EE\u7F16\u53F7/\u540D\u79F0",value:e.searchForm.keyword,"onUpdate:value":l=>e.searchForm.keyword=l,clearable:!0},null)]}),t(T,{label:"\u603B\u8C31\u6E32\u67D3",path:"isScoreRender"},{default:()=>[t(w,{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(T,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[t(Re,{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(T,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[t(w,{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(T,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentId"},{default:()=>[t(w,{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(T,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[t(ne,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:e.searchForm.composer,"onUpdate:value":l=>e.searchForm.composer=l,clearable:!0},null)]}),t(T,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType"},{default:()=>[t(w,{placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",filterable:!0,value:e.searchForm.sourceType,"onUpdate:value":l=>e.searchForm.sourceType=l,options:de(Me),onUpdateValue:l=>M(this,null,function*(){e.userIdData=[],e.searchForm.userId=null,l&&l!=="PLATFORM"?(yield x(l),e.userIdDisable=!e.searchForm.applicationId):e.userIdDisable=!0}),clearable:!0},null)]}),t(T,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[t(w,{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=>M(this,null,function*(){e.searchForm.applicationId=l,l?(yield x(e.searchForm.sourceType),e.userIdDisable=!(e.searchForm.sourceType&&e.searchForm.sourceType!=="PLATFORM")):(e.searchForm.userId=null,e.userIdDisable=!0,e.userIdData=[])})},null)]}),t(T,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{label:()=>t("div",null,[f("\u6240\u5C5E\u4EBA")]),default:()=>t(w,{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(T,{label:"\u9002\u7528\u9879\u76EE",path:"useAppId"},{default:()=>[t(w,{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(T,{label:"\u72B6\u6001",path:"status"},{default:()=>[t(w,{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(T,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag"},{default:()=>[t(w,{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(T,{label:"\u573A\u666F",path:"audioPlayTypes"},{default:()=>[t(w,{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(T,{label:"\u56FE\u7247\u4FEE\u590D",path:"dataCorrect"},{default:()=>[t(w,{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(T,{label:"\u8282\u62CD\u5668\u4FEE\u590D",path:"generateMetronomeAudio"},{default:()=>[t(w,{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(T,{label:"\u4FEE\u590D\u6570\u636E\u5206\u7C7B",path:"generateFirst"},{default:()=>[t(ce,{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(T,null,{default:()=>[t(ee,null,{default:()=>[t(Y,{type:"primary",onClick:o},{default:()=>[f("\u641C\u7D22")]}),t(Y,{type:"default",onClick:S},{default:()=>[f("\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:()=>[f("\u65B0\u589E\u66F2\u76EE")]}),[[X("auth"),"musicSheet/save1751241178962984962"]]),$(t(Y,{disabled:y.value.length==0,onClick:()=>{h(!1)}},{default:()=>[f("\u6279\u91CF\u505C\u7528")]}),[[X("auth"),"musicSheet/statusList1751241653309407234"]]),$(t(Y,{disabled:y.value.length==0,onClick:()=>{h(!0)}},{default:()=>[f("\u6279\u91CF\u542F\u7528")]}),[[X("auth"),"musicSheet/statusList1751241653309407234"]])]}),t(we,{loading:e.loading,columns:s(),data:e.dataList,rowKey:l=>l.id,checkedRowKeys:y.value,"onUpdate:checkedRowKeys":l=>y.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:b,sync:!0,saveKey:"music-list"},null)]),t(pe,{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:b},null)]}),t(pe,{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(pe,{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:b},null)]}),t(pe,{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=>M(this,null,function*(){try{yield wt(W(G({},l),{id:e.productItem.id}))}catch(g){}})},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=se({emits:["close","getList"],props:["activeRow","saveMode","list"],name:"save-categroy-dialog",setup(u,{emit:I}){const n=me(),a=Z(),e=Z([{name:"\u9876\u7EA7\u5206\u7C7B",id:0},...ht(u.list,"musicSheetCategoriesList")]),s=le({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"}),y=le({id:"",name:"",coverImg:"",enable:!0,parentId:"0"}),k=()=>M(this,null,function*(){var h;(h=a.value)==null||h.validate(x=>M(this,null,function*(){if(!x){s.btnLoading=!0;try{if(u.saveMode==="add"){const{data:N}=yield Nt(G({},y));I("getList"),n.success("\u6DFB\u52A0\u6210\u529F")}else{const{data:N}=yield Mt(G({},y));I("getList"),n.success("\u4FEE\u6539\u6210\u529F")}}catch(N){}s.btnLoading=!1}}))});return fe(()=>{if(u.saveMode==="add")u.activeRow&&u.activeRow.id&&(y.parentId=(u==null?void 0:u.activeRow.id)+"");else{for(let h in u==null?void 0:u.activeRow)y[h]=u==null?void 0:u.activeRow[h];(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(De,{ref:a,model:y},{default:()=>[u.saveMode==="add"&&u.activeRow&&t(T,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[t(Re,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:y.parentId,"onUpdate:value":h=>y.parentId=h,options:e.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"musicSheetCategoriesList",valueField:"id",labelField:"name",disabled:!0},null)]}),t(T,{label:"\u5206\u7C7B\u540D\u79F0",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",trigger:["blur","input"]}],path:"name"},{default:()=>[t(ne,{value:y.name,"onUpdate:value":h=>y.name=h,placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",maxlength:25,showCount:!0,clearable:!0},null)]}),t(T,{label:"\u5C01\u9762\u56FE",path:"coverImg",rule:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE",trigger:["input","blur"]}]},{default:()=>[t(J,{fileList:y.coverImg,"onUpdate:fileList":h=>y.coverImg=h,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:()=>I("close")},{default:()=>[f("\u53D6\u6D88")]}),t(Y,{type:"primary",onClick:()=>k(),loading:s.btnLoading,disabled:s.btnLoading},{default:()=>[f("\u786E\u8BA4")]})]})])}}),Da=se({emits:["setTabName","jump"],name:"music-category",setup(u,{slots:I,attrs:n,emit:a}){const e=le({loading:!1,pagination:{page:1,rows:10},dataList:[],showSaveDialog:!1,saveMode:"add",saveRowData:null}),s=je(),y=me(),k=()=>M(this,null,function*(){try{e.loading=!0;const d={page:e.pagination.page,rows:e.pagination.rows},{data:v}=yield Be(d);e.dataList=v||[]}catch(d){}e.loading=!1});fe(()=>{k()});const h=d=>{a("jump",d)},x=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"id",render(d){return d.name+"("+d.id+")"}},{title:"\u66F2\u76EE\u6570\u91CF",key:"musicSheetNum",render(d){return t("div",null,[t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{h({tabName:"MusicList",musicCategoryId:d.id})}},{default:()=>[d.musicSheetNum]})])}},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(d){return t(ee,null,{default:()=>[$(t(Y,{type:"error",size:"small",text:!0,onClick:()=>b(d)},{default:()=>[f("\u5220\u9664")]}),[[X("auth"),"musicSheetCategories/remove1751239397398806530"]]),$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=d,e.saveMode="edit",e.showSaveDialog=!0}},{default:()=>[f("\u4FEE\u6539")]}),[[X("auth"),"musicSheetCategories/update1751239533856292866"]]),d.currentLevel<4&&$(t(Y,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=d,e.showSaveDialog=!0,e.saveMode="add"}},{default:()=>[f("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[X("auth"),"musicSheetCategories/save1751239479284203521"]])]})}}],N=()=>{e.pagination.page=1,k()},b=d=>M(this,null,function*(){s.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664'"+d.name+"'?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>M(this,null,function*(){(yield Et(d.id)).data&&(N(),y.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:()=>[f("\u65B0\u589E\u5206\u7C7B")]}),[[X("auth"),"musicSheetCategories/save1751239479284203521"]])]}),t(we,{loading:e.loading,columns:x(),data:e.dataList,rowKey:d=>d.id,childrenKey:"musicSheetCategoriesList"},null)]),t(pe,{show:e.showSaveDialog,"onUpdate:show":d=>e.showSaveDialog=d,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,k()},onClose:()=>{e.showSaveDialog=!1},list:e.dataList,saveMode:e.saveMode,activeRow:e.saveRowData},null)]})])}}),pl=se({name:"music-sheet",setup(){const u=le({tabName:"MusicList",searchId:null,musicCategoryId:null}),I=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",I)};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};
|