1234567891011121314151617181920212223242526272829 |
- var ut=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var Ne=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var Me=(u,v,f)=>v in u?ut(u,v,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[v]=f,R=(u,v)=>{for(var f in v||(v={}))nt.call(v,f)&&Me(u,f,v[f]);if(Ne)for(var f of Ne(v))ct.call(v,f)&&Me(u,f,v[f]);return u},W=(u,v)=>rt(u,ot(v));var x=(u,v,f)=>new Promise((h,e)=>{var a=y=>{try{I(f.next(y))}catch(p){e(p)}},b=y=>{try{I(f.throw(y))}catch(p){e(p)}},I=y=>y.done?h(y.value):Promise.resolve(y.value).then(a,b);I((f=f.apply(u,v)).next())});import{S as qe}from"./index.ee059bf0.js";import{P as Ke}from"./index.ce87cb02.js";import{a as Ge,b as dt,m as Le,c as $e,d as Ae,e as mt,f as pt,g as Ee,h as ft,i as ht,j as gt,k as St,l as yt}from"./api.c9e8ba7a.js";import{U as Z}from"./index.fc8c6993.js";import{cj as bt,cG as vt,d as te,cI as It,cJ as Ve,F as ne,cP as Lt,bi as Pe,dx as Ft,dy as De,a as J,u as se,r as Q,B as ie,dj as ge,i as t,l as B,ce as z,aj as ce,_ as le,a9 as X,p as A,k as m,cg as Se,bx as Je,b as Tt,M as Xe,ai as Fe,dz as wt,dk as We,q as Te,di as me,ac as O,a8 as V,a7 as E,db as Ct,ad as fe,dA as He,m as Ze,ag as ye,aa as oe,bn as we,U as xt,H as q,ae as kt,ch as Ut,d9 as ee,da as he,bC as K,a0 as Nt,a1 as Mt,e as At,d7 as Et,d8 as je}from"./index.1b3483ad.js";import{B as Ce,C as ve,c as Be}from"./constant.96766a29.js";import{g as Qe,a as Oe}from"./objectUtil.ec24ceed.js";import{c as Ie}from"./api.c1a5d5f3.js";import{x as et}from"./api.44e8d93d.js";import{s as tt}from"./api.12f16107.js";import{f as at}from"./index.0cb4161d.js";import{a as Pt}from"./uploadFile.5ca45962.js";import{N as k}from"./FormItemGridItem.7493a1f4.js";import{N as xe}from"./Cascader.2d644aee.js";import{M as Dt,c as jt,g as Bt}from"./musicUtil.23042a44.js";import{g as Ot}from"./filters.bd10577e.js";import{T as pe}from"./index.d2cd6fee.js";import{g as _t,s as Rt}from"./use-async.d937306e.js";import"./searchs.b637f0d6.js";import"./oss-file-upload.15018270.js";import"./api.9a1e1151.js";import"./vuedraggable.umd.54b8daa6.js";import"./DeleteFilled.f7252582.js";import"./api.7e07be45.js";import"./knowledgeTypeData.3b15dd0b.js";import"./dateUtil.211c31fb.js";import"./dayjs.min.005a25f5.js";const zt=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);
- `,[vt("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);
- `)]),Yt=Object.assign(Object.assign({},Ve.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),_e=te({name:"InputGroupLabel",props:Yt,setup(u){const{mergedBorderedRef:v,mergedClsPrefixRef:f,inlineThemeDisabled:h}=It(u),e=Ve("Input","-input-group-label",zt,Ft,u,f),a=ne(()=>{const{size:I}=u,{common:{cubicBezierEaseInOut:y},self:{groupLabelColor:p,borderRadius:S,groupLabelTextColor:n,lineHeight:o,groupLabelBorder:g,[De("fontSize",I)]:U,[De("height",I)]:L}}=e.value;return{"--n-bezier":y,"--n-group-label-color":p,"--n-group-label-border":g,"--n-border-radius":S,"--n-group-label-text-color":n,"--n-font-size":U,"--n-line-height":o,"--n-height":L}}),b=h?Lt("input-group-label",ne(()=>u.size[0]),a,u):void 0;return{mergedClsPrefix:f,mergedBordered:v,cssVars:h?void 0:a,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){var u,v,f;const{mergedClsPrefix:h}=this;return(u=this.onRender)===null||u===void 0||u.call(this),Pe("div",{class:[`${h}-input-group-label`,this.themeClass],style:this.cssVars},(f=(v=this.$slots).default)===null||f===void 0?void 0:f.call(v),this.mergedBordered?Pe("div",{class:`${h}-input-group-label__border`}):null)}}),qt="_audioSection_o5wty_1",Kt="_btnRemove_o5wty_9",Gt="_formContainer_o5wty_14",$t="_productModal_o5wty_19",Vt="_productIframe_o5wty_27",ae={audioSection:qt,btnRemove:Kt,formContainer:Gt,productModal:$t,productIframe:Vt},Jt=te({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:v,attrs:f,emit:h}){const e=J({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{applicationId:null,name:null,sourceType:null},dataList:[],appData:[]}),a=se(),b=Q(),I=()=>{e.pagination.page=1,p()},y=()=>{var o;(o=b.value)==null||o.submit()},p=()=>x(this,null,function*(){try{e.searchForm.applicationId||a.warning("\u83B7\u53D6\u5E94\u7528\u5217\u8868\u5931\u8D25"),e.loading=!0,e.searchForm.sourceType=u.sourceType;const{data:g}=yield Ge(R(R({},e.pagination),e.searchForm));e.pagination.pageTotal=Number(g.total),e.dataList=g.rows||[]}catch(o){}e.loading=!1});ie(()=>x(this,null,function*(){{if(e.appData=ge(u.appData),e.appData.length==0){a.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}p()}));const S=()=>e.searchForm.sourceType==="ORG"?[{title:"\u673A\u6784\u540D\u79F0",key:"orgName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(X,null,{default:()=>[t(A,{type:"primary",size:"small",text:!0,onClick:()=>{const g=W(R({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",g),h("close")}},{default:()=>[m("\u9009\u62E9")]})]})}}]:[{title:"\u4EBA\u5458\u540D\u79F0",key:"userName"},{title:"\u624B\u673A\u53F7",key:"phone"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(X,null,{default:()=>[t(A,{type:"primary",size:"small",text:!0,onClick:()=>{const g=W(R({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",g),h("close")}},{default:()=>[m("\u9009\u62E9")]})]})}}],n=()=>[{title:"\u673A\u6784\u540D\u79F0",key:"organizationRole"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(X,null,{default:()=>[t(A,{type:"primary",size:"small",text:!0,onClick:()=>{const g=W(R({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",g),h("close")}},{default:()=>[m("\u9009\u62E9")]})]})}}];return()=>t("div",{class:"system-menu-container"},[t(qe,{ref:b,model:e.searchForm,onSubmit:I,onSetModel:o=>e.searchForm=o},{default:()=>[t(B,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId",size:"small",style:"width:250px"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":o=>e.searchForm.applicationId=o,options:e.appData},null)]}),e.searchForm.sourceType==="PERSON"&&t(ce,null,[t(B,{label:"\u6240\u5C5E\u4EBA",path:"name",size:"small",style:"width:250px"},{default:()=>[t(le,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u4EBA/\u624B\u673A\u53F7",value:e.searchForm.name,"onUpdate:value":o=>e.searchForm.name=o,clearable:!0},null)]})]),e.searchForm.sourceType==="ORG"&&t(ce,null,[t(B,{label:"\u673A\u6784\u540D\u79F0",path:"name",size:"small",style:"width:250px"},{default:()=>[t(le,{placeholder:"\u8BF7\u8F93\u5165\u673A\u6784\u540D\u79F0",value:e.searchForm.name,"onUpdate:value":o=>e.searchForm.name=o,clearable:!0},null)]})]),t(B,{size:"small"},{default:()=>[t(X,null,{default:()=>[t(A,{type:"primary",onClick:y},{default:()=>[m("\u641C\u7D22")]})]})]})]}),t("div",{class:["section-container"]},[u.sourceType==="PERSON"&&t(Se,{loading:e.loading,columns:S(),data:e.dataList},null),u.sourceType==="ORG"&&t(Se,{loading:e.loading,columns:n(),data:e.dataList},null),t(Ke,{page:e.pagination.page,"onUpdate:page":o=>e.pagination.page=o,pageSize:e.pagination.rows,"onUpdate:pageSize":o=>e.pagination.rows=o,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":o=>e.pagination.pageTotal=o,onList:p,sync:!0,pageSlot:5},null)])])}}),lt=te({name:"music-create-img",props:{xmlFileUrl:{type:String,default:""}},emits:["close","confirm"],setup(u,{emit:v}){const f=se(),h=J({productOpen:!1,productIfameSrc:""}),e=J({musicImg:"",musicFirstImg:"",musicJianImg:""}),a=()=>{if(!u.xmlFileUrl){f.error("\u8BF7\u5148\u4E0A\u4F20XML");return}const p={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},S=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec")?"online":"dev",n=p[S],o=/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com":n,g=encodeURIComponent(u.xmlFileUrl);h.productIfameSrc=o+`/instrument/#/product-img?xmlUrl=${g}&isCreateImg=true&isCbs=true`},b=p=>{const S=p.data;if((S==null?void 0:S.api)==="webApi_renderSvg"){let n=[];try{n=JSON.parse(S.product)}catch(o){console.log("\u{1F680} ~ error:",o)}n=n.filter(o=>o.base64),n.length===3?(f.success("\u56FE\u7247\u751F\u6210\u6210\u529F"),I(n)):f.error("\u56FE\u7247\u751F\u6210\u5931\u8D25")}},I=p=>x(this,null,function*(){var S,n,o;for(let g=0;g<p.length;g++){const U=y(p[g].base64,`${Date.now()}p${g}.png`);p[g].url=yield Pt(U)}e.musicImg=((S=p[0])==null?void 0:S.url)||"",e.musicFirstImg=((n=p[1])==null?void 0:n.url)||"",e.musicJianImg=((o=p[2])==null?void 0:o.url)||"",p=[],v("close"),v("confirm",e)}),y=(p,S)=>{var N;let n=p.split(",")||[],o=(N=n[0].match(/:(.*?);/))==null?void 0:N[1],g=atob(n[1]),U=g.length,L=new Uint8Array(U);for(;U--;)L[U]=g.charCodeAt(U);return new File([L],S,{type:o})};return ie(()=>{a(),window.addEventListener("message",b)}),Je(()=>{window.removeEventListener("message",b)}),()=>t("iframe",{class:ae.productIframe,src:h.productIfameSrc},null)}}),Xt="_musiceBeatTime_khkvo_1",Wt="_tit_khkvo_10",Ht="_iframe_khkvo_18",be={musiceBeatTime:Xt,tit:Wt,iframe:Ht},st=te({name:"musiceBeatTime",props:{id:{type:String}},emits:["close"],setup(u,{emit:v}){const f=se();ie(()=>{window.addEventListener("message",h)}),Je(()=>{window.removeEventListener("message",h)});function h(g){const U=g.data;(U==null?void 0:U.api)==="webApi_beatTimes"&&(a.value=!1,e(U))}function e(g){return x(this,null,function*(){try{const{beatTime:U,singBeatTime:L,mingBeatTime:N}=JSON.parse(g.data);yield dt({id:u.id,playTimeList:U,singTimeList:L,solmizationTimeList:N}),f.success("\u8282\u62CD\u5668\u751F\u6210\u6210\u529F"),v("close")}catch(U){console.log("\u{1F680} ~ \u97F3\u9891\u5408\u6210\u5931\u8D25",U),f.error("\u8282\u62CD\u5668\u751F\u6210\u5931\u8D25"),v("close")}})}const a=Q(!0),I=Tt().getToken,y={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},p=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",S=y[p];let o=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":S)+`/instrument/?_t=${Date.now()}&id=${u.id}&Authorization=${I}&isCbs=true&isbeatTimes=true&musicRenderType=staff`;return()=>t("div",{class:be.musiceBeatTime},[t("div",{class:be.tit},[m("\u8282\u62CD\u5668\u97F3\u9891\u751F\u6210\u4E2D...")]),a.value&&t("iframe",{class:be.iframe,width:"667px",height:"375px",frameborder:"0",src:o},null)])}});function Re(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!we(u)}const Zt=(u,v)=>{var I;let f=0;const h=u.closest(v);let e=h;const a=h==null?void 0:h.closest("measure");let b=null;for(;!b&&f<((a==null?void 0:a.childNodes.length)||50);)f++,((I=e==null?void 0:e.nextElementSibling)==null?void 0:I.tagName)==="note"&&(b=e==null?void 0:e.nextElementSibling),e=e==null?void 0:e.nextElementSibling;return b},Qt=(u,v)=>{var b,I;if(!u)return"";const f=new DOMParser().parseFromString(u,"text/xml"),h=((I=(b=f.getElementsByTagName("part-list"))==null?void 0:b[0])==null?void 0:I.getElementsByTagName("score-part"))||[],e=f.getElementsByTagName("part"),a=h[v];if(a){const y=a.getAttribute("id");Array.from(e).forEach(n=>{var o,g,U;if(n&&n.getAttribute("id")!==y&&((o=n.parentNode)==null||o.removeChild(n)),n&&n.getAttribute("id")===y){const L=n.getElementsByTagName("barline"),N=(g=L[L.length-1])==null?void 0:g.parentElement;if(((U=N==null?void 0:N.lastElementChild)==null?void 0:U.tagName)!=="barline"){const _=(N==null?void 0:N.children)||[];for(let G of _)if(G.tagName==="barline"){N==null||N.appendChild(G);break}}}}),Array.from(h).forEach(n=>{var o;n&&n.getAttribute("id")!==y&&((o=n.parentNode)==null||o.removeChild(n))});const p=f.getElementsByTagName("note"),S=n=>{var g;let o=p[n+1];for(let U=n;U<p.length;U++){const L=p[U];if(!((g=L.getElementsByTagName("grace"))!=null&&g.length)){o=L;break}}return o==null?void 0:o.getElementsByTagName("duration")[0]};Array.from(p).forEach((n,o)=>{var U;const g=n.getElementsByTagName("grace");g&&g.length&&S(o)&&(n==null||n.appendChild((U=S(o))==null?void 0:U.cloneNode(!0)))})}return new XMLSerializer().serializeToString(f)},ea={"rall.":1.333333333,"poco rit.":1.333333333,"rit.":1.333333333,"molto rit.":1.333333333,"molto rall":1.333333333,molto:1.333333333,lentando:1.333333333,allargando:1.333333333,morendo:1.333333333,"accel.":.8,calando:2,"poco accel.":.8,"gradually slowing":1.333333333,slowing:1.333333333,slow:1.333333333,slowly:1.333333333,faster:1.333333333};function ze(u){var n,o,g,U;const v=Qt(u,0),f=new DOMParser().parseFromString(v,"text/xml"),h=Array.from(f.querySelectorAll("measure")),e=Array.from(f.querySelectorAll("note")),a=Array.from(f.querySelectorAll("words")),b=Array.from(f.querySelectorAll("metronome")),I=[];for(const L of[...a,...b]){const N=Zt(L,"direction");if(N){const _=N==null?void 0:N.closest("measure"),G=Array.from(_.querySelectorAll("note")),H=Array.from(_.childNodes).filter(F=>F.nodeName==="note").findIndex(F=>F===N);let ue=0,s=0;for(let F=0;F<G.length;F++){const $=+(((n=G[F].querySelector("duration"))==null?void 0:n.textContent)||"0");ue+=$,F<H&&(s=ue)}I.push({ele:L,index:e.indexOf(N),noteInMeasureIndex:H,textContent:L.textContent,measureIndex:_!=null&&_.getAttribute("number")?Number(_==null?void 0:_.getAttribute("number")):h.indexOf(_),type:L.tagName,allDuration:ue,leftDuration:s})}}I.push({ele:e[e.length-1],index:e.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:h.length});const y=[];I.sort((L,N)=>L.index-N.index);const p=Object.keys(ea).map(L=>L.toLocaleLowerCase());let S=!1;for(const L of I){const N=(o=L.textContent)==null?void 0:o.toLocaleLowerCase().trim();L===I[I.length-1]&&((g=y[y.length-1])==null?void 0:g.length)===1&&(S=!0);const _=p.find(G=>{const H=G.split(" ");return N&&H.includes(N)});if(L.type==="metronome"||L.type==="words"&&(N.startsWith("a tempo")||_)||S){const G=y.findIndex(H=>H.length===1);G>-1&&L.index>((U=y[G])==null?void 0:U[0].start)&&(y[G][1]={start:L.index,measureIndex:L.measureIndex,noteInMeasureIndex:L.noteInMeasureIndex,allDuration:L.allDuration,leftDuration:L.leftDuration,type:N})}L.type==="words"&&_&&y.push([{start:L.index,measureIndex:L.measureIndex,noteInMeasureIndex:L.noteInMeasureIndex,allDuration:L.allDuration,leftDuration:L.leftDuration,type:N}])}return y}const ta=u=>{var e,a,b;const v={speed:0,title:"",composer:"",partNames:[]},f=new DOMParser().parseFromString(u,"text/xml");v.title=((e=f.getElementsByTagName("work-title")[0])==null?void 0:e.textContent)||"",v.composer=((a=f.getElementsByTagName("creator")[0])==null?void 0:a.textContent)||"";const h=f.getElementsByTagName("measure");for(const I of Array.from(f.getElementsByTagName("part-name")))(b=I.textContent)!=null&&b.trim()&&v.partNames.push(I.textContent);for(const I of Array.from(h)){const y=I.getElementsByTagName("per-minute");if(y.length&&y[y.length-1]){v.speed=parseFloat(y[y.length-1].textContent||"0");break}}return v},aa=te({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:v,attrs:f,emit:h}){const e=J({details:{},graduals:{},playMode:"MP3",xmlFileUrl:null,midiUrl:null,name:null,composer:null,playSpeed:null,musicCover:null,remark:null,musicSheetSoundList_YY:[],musicSheetSoundList_YZ:[],musicSheetSoundList_all_subject:null,status:!1,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,fSongList:[],isScoreRender:!0,defaultScoreRender:!0,scoreAudioFileUrl:null}),a=J({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}),b=J({list:[],gradualRefs:[]}),I=J({beatTimeOpen:!1,musicId:""});Xe(()=>e.multiTracksSelection,d=>{if(a.musicUpdateLoading){a.musicUpdateLoading=!1;return}G(d),L()});const y=Q(!1),p=Q(),S=se(),n=Fe(),o=()=>x(this,null,function*(){p.value.validate(d=>x(this,null,function*(){if(!d){if(e.musicSheetType=="CONCERT"){let i=[];const{data:l}=yield Ie({page:1,rows:9999});l.rows.map(c=>{c.code&&c.code.split(",").forEach(D=>{i.push(D.replaceAll(" ","").toLocaleLowerCase())})});let r=[];if(e.multiTracksSelection.forEach(c=>{if(c&&!U(c)){let D=!1,M=c.replace(" ","").toLocaleLowerCase();for(let P=0;P<i.length;P++)if(M.startsWith(i[P])){D=!0;break}D||r.push(c)}}),r.length>0){n.warning({title:"\u63D0\u793A",content:`\u58F0\u8F68\u672A\u914D\u7F6E\uFF1A${r.join(",")}`,positiveText:"\u786E\u5B9A",onPositiveClick:()=>{}});return}}try{let i=new Set,l=[],r=e.musicSheetType,c=!1;r=="SINGLE"?e.isAllSubject?e.musicSheetSoundList_all_subject&&(i.add("PLAY"),l.push({audioFileUrl:e.musicSheetSoundList_all_subject,musicSheetId:u.data.id,audioPlayType:"PLAY"}),c=!0):e.musicSheetSoundList_YZ.length>0&&e.musicSheetSoundList_YZ.forEach(T=>{e.musicalInstrumentIdList.includes(T.musicalInstrumentId)&&T.audioFileUrl&&(c=!0,l.push(W(R({},T),{musicSheetId:u.data.id})),i.has("PLAY")||i.add("PLAY"))}):r=="CONCERT"&&e.musicSheetSoundList_YY.forEach(T=>{T.audioFileUrl&&e.multiTracksSelection.includes(T.track)&&(l.push(W(R({},T),{musicalInstrumentId:T.musicalInstrumentId||s(T.track),musicSheetId:u.data.id,audioPlayType:"PLAY"})),c=!0,i.has("PLAY")||i.add("PLAY"))});let D=!1;for(let T=0;T<e.fSongList.length;T++){let Y=e.fSongList[T];(Y.audioFileUrl||Y.solmizationFileUrl||Y.femaleSolmizationFileUrl)&&(l.push(Y),i.add("SING"),D=!0)}if((e.scoreAudioFileUrl||a.bSongFile)&&(D=!0),!D&&!c){S.warning("\u8BF7\u4E0A\u4F20\u97F3\u9891\u6587\u4EF6");return}if(!a.isAutoSave){a.isAutoSave=!0,a.productOpen=!0;return}e.scoreAudioFileUrl&&e.musicSheetAccompanimentList.push({musicSheetId:u.data.id,audioFileUrl:a.bSongFile,scoreAudioFileUrl:e.multiTracksSelection.length>1&&e.isScoreRender&&e.scoreAudioFileUrl?e.scoreAudioFileUrl:null,audioPlayType:"SING"}),a.musicSheetAccompanimentUrl&&e.musicSheetAccompanimentList.push({musicSheetId:u.data.id,audioFileUrl:a.musicSheetAccompanimentUrl,audioPlayType:"PLAY"});let M,P;e.multiTracksSelection.length>1&&(M=e.isScoreRender,e.isScoreRender&&(P=e.defaultScoreRender));const C={musicCategoryId:e.musicCategoryId,musicCover:e.musicCover,name:e.name,appAuditFlag:e.appAuditFlag,subjectIds:e.isAllSubject?"":e.subjectIds.join(","),remark:e.remark,audioPlayTypes:Array.from(i).join(","),musicalInstrumentIds:e.isAllSubject?"":e.musicalInstrumentIdList.join(","),composer:e.composer,musicSheetType:e.musicSheetType,isUseSystemBeat:e.isUseSystemBeat,isShowFingering:e.isShowFingering,isPlayBeat:e.isPlayBeat,multiTracksSelection:e.multiTracksSelection.join(","),playSpeed:e.playSpeed,playMode:e.playMode,xmlFileUrl:e.xmlFileUrl,musicImg:e.musicImg,musicFirstImg:e.musicFirstImg,musicJianImg:e.musicJianImg,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:l,musicTag:"-1",isUseSingSystemBeat:e.isUseSingSystemBeat,isPlaySingBeat:e.isPlaySingBeat,isAllSubject:e.isAllSubject,musicSheetExtend:e.sourceType=="PLATFORM"?null:e.musicSheetExtend,isScoreRender:M,defaultScoreRender:P};e.audioType=="MIDI"&&(C.musicSheetSoundList=[]),y.value=!0;let w;u.type==="add"?w=yield Ae(C):u.type==="edit"&&(w=yield Ae(W(R({},C),{id:u.data.id}))),I.beatTimeOpen=!0,I.musicId=w.data}catch(i){console.log(i),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)}}}))});function g(){u.type==="add"?S.success("\u6DFB\u52A0\u6210\u529F"):u.type==="edit"&&S.success("\u4FEE\u6539\u6210\u529F"),h("getList"),h("close"),setTimeout(()=>{y.value=!1,a.isAutoSave=!1},100)}const U=d=>x(this,null,function*(){return!!(d&&(d=="P1"||d=="P2"||d=="P3"||d=="P4"))}),L=()=>x(this,null,function*(){e.fSongList.forEach(i=>{a.initFSongMap.set(i.track,i)});let d=[];e.multiTracksSelection.forEach(i=>{a.initFSongMap.has(i)?d.push(a.initFSongMap.get(i)):d.push({musicSheetId:u.data.id,audioFileUrl:null,audioPlayType:"SING",musicalInstrumentId:null,track:i,musicalInstrumentName:null,solmizationFileUrl:null,femaleSolmizationFileUrl:null})}),e.fSongList=d}),N=d=>{const i=new FileReader;i.onload=l=>{var M,P,C;try{b.list=ze((M=l==null?void 0:l.target)==null?void 0:M.result).filter(T=>T.length===2);const w=ta((P=l==null?void 0:l.target)==null?void 0:P.result);e.composer||(e.composer=w.composer)}catch(w){}e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(w=>{var T,Y;return!w.track||!_(w.track)||((Y=(T=w.track)==null?void 0:T.toLocaleUpperCase)==null?void 0:Y.call(T))!="COMMON"&&e.multiTracksSelection.includes(w.track)}),a.partListNames=F((C=l==null?void 0:l.target)==null?void 0:C.result);let r=new Map;for(let w=0;w<e.musicSheetSoundList_YY.length;w++){let T=e.musicSheetSoundList_YY[w].track;T&&r.set(T,e.musicSheetSoundList_YY[w])}let c=[],D=[];for(let w=0;w<a.partListNames.length;w++){let T=a.partListNames[w].value;r.has(T)?c.push(r.get(T)):c.push({audioFileUrl:null,track:T,musicalInstrumentId:null}),D.push(T),e.multiTracksSelection.includes(T)||e.multiTracksSelection.push(T)}for(let w=0;w<e.musicSheetSoundList_YY.length;w++){let T=e.musicSheetSoundList_YY[w].track;(!T||!D.includes(T))&&(e.musicSheetSoundList_YY[w].track=null,c.push(e.musicSheetSoundList_YY[w]))}e.musicSheetSoundList_YY=c,e.multiTracksSelection=e.multiTracksSelection.filter(w=>D.includes(w)),a.multiTracks="all",e.musicSheetSoundList_YY.length==0&&e.musicSheetSoundList_YY.push({audioFileUrl:"",track:""})},i.readAsText(d)},_=d=>{for(let i=0;i<a.partListNames.length;i++)if(a.partListNames[i].value==d)return!0;return!1},G=d=>x(this,null,function*(){if(!d||d.length<=1){e.musicSheetType="SINGLE",a.subjectDisabled=!1,a.instrumentDisabled=!1;return}e.musicSheetType="CONCERT",a.subjectDisabled=!0,a.instrumentDisabled=!0,yield ue(d)}),H=(d,i="")=>{if(i=i.toLocaleLowerCase().replace(/ /g,"").replace(/\d*/gi,""),!i)return"";for(let l of d){const r=l.toLocaleLowerCase().replace(/ /g,"");if(r===i)return r}return""},ue=d=>x(this,null,function*(){console.log("1111"),e.subjectIds=[];const i=new Map,l=[];a.instrumentData.forEach(r=>{r.disabled||r.code.split(/[,,]/).forEach(D=>{let M=D.replaceAll(" ","").toLowerCase();if(l.push(M),i.has(M))i.get(M).push(r.id+"");else{const P=[];P.push(r.id+""),i.set(M,P)}})});for(let r=0;r<d.length;r++){let c=d[r].replaceAll(" ","").toLowerCase();const D=H(l,c);i.has(D)&&i.get(D).forEach(M=>{const P=a.instrumentList.findIndex(C=>C.id.toString()===M);!e.musicalInstrumentIdList.includes(M)&&P!==-1&&e.musicalInstrumentIdList.push(M)})}e.musicalInstrumentIdList.length>0&&(yield $(e.musicalInstrumentIdList))}),s=d=>{const i=new Map,l=[];if(a.instrumentData.forEach(c=>{c.disabled||c.code.split(/[,,]/).forEach(M=>{let P=M.replaceAll(" ","").toLowerCase();if(l.push(P),i.has(P))i.get(P).push(c.id+"");else{const C=[];C.push(c.id+""),i.set(P,C)}})}),!d)return"";d=d.replaceAll(" ","").toLowerCase();const r=H(l,d);if(i.has(r)){const c=i.get(r);return console.log("result:",c),c[0]||""}return""},F=d=>{var c,D,M,P;if(!d)return[];const i=new DOMParser().parseFromString(d,"text/xml"),l=((D=(c=i.getElementsByTagName("part-list"))==null?void 0:c[0])==null?void 0:D.getElementsByTagName("score-part"))||[];let r=Array.from(l).map(C=>{var Y,de;let w=(Y=C.getElementsByTagName("part-name"))==null?void 0:Y[0],T="";if(w&&((de=w.textContent)==null?void 0:de.trim()))T=w.textContent||"";else{let Ue=C.getAttribute("id");Ue&&(T=Ue)}return{value:T.trim(),label:T.trim()}});return r=r.filter(C=>{var w,T;return((T=(w=C.value)==null?void 0:w.toLocaleUpperCase)==null?void 0:T.call(w))!="COMMON"}),a.xmlFirstSpeed=((P=(M=i.getElementsByTagName("per-minute"))==null?void 0:M[0])==null?void 0:P.textContent)||"",e.playSpeed||(a.xmlFirstSpeed?e.playSpeed=Number.parseFloat(a.xmlFirstSpeed):e.playSpeed=100),r},j=d=>{const i=ge(a.partListNames)||[],l=e.multiTracksSelection;return i.forEach(r=>{l.includes(r.value)?r.disabled=!0:r.disabled=!1}),i||[]},$=d=>x(this,null,function*(){if(!d||d.length==0){e.subjectIds=[];return}try{const{data:i}=yield et({page:1,rows:999,musicalInstrumentIdList:d}),l=i.rows||[],r=[];l.forEach(c=>{c.enableFlag&&r.push(c.id+"")}),e.subjectIds=r}catch(i){}}),re=d=>{n.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u539F\u97F3\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){let l=e.musicSheetSoundList_YY[d].track;const r=e.multiTracksSelection.indexOf(l);r>-1?e.multiTracksSelection.splice(r,1):e.musicSheetSoundList_YY.splice(d,1),a.multiTracks=="all"&&a.partListNames.length!=e.multiTracksSelection.length&&(a.multiTracks=null)})})},it=d=>{if(!d)return;let i=[];d==="all"?a.partListNames.forEach(l=>{i.push(l.value)}):d==="invert"&&a.partListNames.forEach(l=>{e.multiTracksSelection.includes(l.value)||i.push(l.value)}),e.multiTracksSelection=i},ke=()=>{var l;if(e.sourceType=="PLATFORM"){a.ownerName="";return}if(!e.sourceType||!((l=e.musicSheetExtend)!=null&&l.userId))return;const d=e.musicSheetExtend.applicationId,i=a.appData.filter(r=>r.id==d);i.length>0&&(a.ownerName=i[0].appName),e.sourceType=="ORG"?a.ownerName=a.ownerName?a.ownerName+"-"+e.musicSheetExtend.organizationRole:e.musicSheetExtend.organizationRole:e.sourceType=="PERSON"&&(a.ownerName=a.ownerName?a.ownerName+"-"+Oe(e.musicSheetExtend.clientType,new Map(Object.entries(Be))):Oe(e.musicSheetExtend.clientType,new Map(Object.entries(Be))),e.musicSheetExtend.userName&&(a.ownerName=a.ownerName?a.ownerName+"-"+e.musicSheetExtend.userName:e.musicSheetExtend.userName),e.musicSheetExtend.phone&&(a.ownerName+="("+e.musicSheetExtend.phone+")"))};return ie(()=>x(this,null,function*(){a.loading=!0,u.type==="preview"&&(a.previewMode=!0);{if(a.instrumentList&&a.instrumentList.length>0)return;try{const{data:d}=yield Ie({page:1,rows:999}),i=d.rows||[];i.forEach(l=>{l.label=l.name,l.value=l.id+"",a.instrumentIdNameMap.set(l.id+"",l.name),e.musicSheetSoundList_YZ.push({musicSheetId:u.data.id,musicalInstrumentId:l.id+"",musicalInstrumentName:l.name,audioFileUrl:null,audioPlayType:"PLAY"})}),a.instrumentData=i,a.instrumentList=ge(i)}catch(d){}}a.subjectList=ge(u.subjectList),a.subjectList.forEach(d=>{d.disabled=!d.enableFlag});{const d=Object.keys(Ce),{data:i}=yield tt({page:1,rows:999,parentId:0}),r=(i.rows||[]).filter(c=>d.includes(c.appKey));r.forEach(c=>{c.label=c.appName,c.value=c.id}),a.appData=r}try{const{data:d}=yield Le({enable:!0});a.musicSheetCategories=at(d,"musicSheetCategoriesList")}catch(d){}if(u.type==="edit"||u.type==="preview"){const d=u.data;try{const{data:i}=yield $e({id:d.id});if(e.details=i,e.playMode=i.playMode,e.xmlFileUrl=i.xmlFileUrl,e.midiUrl=i.midiUrl,e.name=i.name,e.composer=i.composer,e.playSpeed=i.playSpeed?Number.parseFloat(i.playSpeed):100,e.defaultScoreRender=i.defaultScoreRender,e.isScoreRender=i.isScoreRender,e.musicCover=i.musicCover,e.remark=i.remark,e.status=i.status,e.sourceType=i.sourceType,e.appAuditFlag=i.appAuditFlag?1:0,e.midiFileUrl=i.midiFileUrl,e.isShowFingering=i.isShowFingering,e.isAllSubject=i.isAllSubject,e.isUseSingSystemBeat=i.isUseSingSystemBeat,e.isPlaySingBeat=i.isPlaySingBeat,e.subjectIds=[],i.subjectIds){const r=i.subjectIds.split(",")||[];console.log(r,"subjectIds",e.subjectIds),r.forEach(c=>{e.subjectIds.includes(c)||e.subjectIds.push(c)}),a.subjectList=a.subjectList.filter(c=>!c.disabled||r.includes(c.value))}e.musicCategoryId=i.musicCategoryId,e.audioType=i.audioType,e.isPlayBeat=i.isPlayBeat,e.isUseSystemBeat=i.isUseSystemBeat;try{const r=i.extConfigJson?JSON.parse(i.extConfigJson):{};e.graduals=r.gradualTimes||{},e.repeatedBeats=!!r.repeatedBeats,e.isEvxml=!!r.isEvxml,e.repeatedBeatsToSing=!!r.repeatedBeatsToSing}catch(r){}e.evaluationStandard=i.evaluationStandard,e.musicSheetExtend=i.musicSheetExtend,a.musicSheetSoundList=i.musicSheetSoundList?i.musicSheetSoundList:[],(i.musicSheetAccompanimentList?i.musicSheetAccompanimentList:[]).forEach(r=>{let c=r.audioPlayType;c&&c=="SING"?(a.bSongFile=r.audioFileUrl,e.scoreAudioFileUrl=r.scoreAudioFileUrl):a.musicSheetAccompanimentUrl=r.audioFileUrl});for(let r=0;r<a.musicSheetSoundList.length;r++)if(a.musicSheetSoundList[r].audioPlayType=="SING"&&a.musicSheetSoundList[r].track!=null)a.initFSongMap.set(a.musicSheetSoundList[r].track,R({},a.musicSheetSoundList[r]));else if(e.isAllSubject)e.musicSheetSoundList_all_subject=a.musicSheetSoundList[r].audioFileUrl;else for(let c=0;c<e.musicSheetSoundList_YZ.length;c++){let D=a.musicSheetSoundList[r].musicalInstrumentId;D&&D==e.musicSheetSoundList_YZ[c].musicalInstrumentId&&(e.musicSheetSoundList_YZ[c].audioFileUrl=a.musicSheetSoundList[r].audioFileUrl)}e.musicalInstrumentIdList=i.musicalInstrumentIds?i.musicalInstrumentIds.split(","):[],a.instrumentList=a.instrumentList.filter(r=>r.enableFlag||e.musicalInstrumentIdList.includes(r.id+"")),ke(),wt.get(i.xmlFileUrl).then(r=>{if(r!=null&&r.data){a.musicUpdateLoading=!0,b.list=ze(r==null?void 0:r.data).filter(C=>C.length===2),a.partListNames=F(r==null?void 0:r.data);let c=[];i.multiTracksSelection&&(i.multiTracksSelection=i.multiTracksSelection.toLocaleUpperCase()),!i.multiTracksSelection||i.multiTracksSelection.trim()==""||i.multiTracksSelection.trim()=="NULL"?c.push(""):i.multiTracksSelection.split(",").forEach(C=>{c.push(C.trim())}),c=a.partListNames.map(C=>C.label).filter(C=>c.includes(C.toLocaleUpperCase())),e.multiTracksSelection=c,e.musicSheetType=e.multiTracksSelection.length>1?"CONCERT":"SINGLE";const M=i.musicSheetSoundList?i.musicSheetSoundList:[],P=[];a.partListNames.forEach(C=>{let w=null,T=null;e.musicSheetType=="CONCERT"&&M.forEach(Y=>{if(Y.audioPlayType=="PLAY"){let de="";Y.track&&(de=Y.track.trim()),de==C.value&&(w=Y.audioFileUrl,T=Y.musicalInstrumentId)}}),e.musicSheetSoundList_YY.push({audioFileUrl:w,musicalInstrumentId:T,track:C.value,audioPlayType:"PLAY"}),P.push(C.value)}),P.length==e.multiTracksSelection.length&&(a.multiTracks="all"),e.musicSheetType=="CONCERT"&&a.musicSheetSoundList.forEach(C=>{C.audioPlayType=="PLAY"&&C.track&&!P.includes(C.track.trim())&&C.audioPlayType=="PLAY"&&e.musicSheetSoundList_YY.push({audioFileUrl:C.audioFileUrl,musicalInstrumentId:C.musicalInstrumentId,track:C.track?C.track.trim():"",audioPlayType:"PLAY"})}),L()}})}catch(i){}}else a.subjectList=a.subjectList.filter(d=>d.enableFlag==!0),a.instrumentList=a.instrumentList.filter(d=>d.enableFlag==!0);a.loading=!1})),()=>{let d,i;return t("div",{style:"background: #fff; padding-top: 12px"},[t(We,{show:a.loading},{default:()=>[t(Te,{class:ae.formContainer,model:e,ref:p,"label-placement":"left","label-width":"150",disabled:a.previewMode},{default:()=>[t(me,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[m("\u57FA\u672C\u4FE1\u606F")]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u66F2\u76EE\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",trigger:["input","blur"]}]},{default:()=>[t(le,{value:e.name,"onUpdate:value":l=>e.name=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",maxlength:50,showCount:!0},null)]}),t(k,{label:"\u97F3\u4E50\u4EBA",path:"composer",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",trigger:["input","blur"]}]},{default:()=>[t(le,{value:e.composer,"onUpdate:value":l=>e.composer=l,placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA\u540D\u79F0",showCount:!0,maxlength:14},null)]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u66F2\u76EE\u5C01\u9762",path:"musicCover",rule:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u66F2\u76EE\u5C01\u9762",trigger:["input","blur"]}]},{default:()=>[t(Z,{desc:"\u5C01\u9762\u56FE",disabled:a.previewMode,accept:".jpg,.jpeg,.png",tips:"\u8BF7\u4E0A\u4F20\u5927\u5C0F1M\u4EE5\u5185\u7684JPG\u3001PNG\u56FE\u7247",size:1,fileList:e.musicCover,"onUpdate:fileList":l=>e.musicCover=l,cropper:!0,bucketName:"cbs",options:{autoCrop:!0,enlarge:2,autoCropWidth:200,fixedBox:!0,autoCropHeight:200,previewsCircle:!1,title:"\u66F2\u76EE\u5C01\u9762"}},null)]}),t(k,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",trigger:["change"]}]},{default:()=>[t(xe,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",value:e.musicCategoryId,"onUpdate:value":l=>e.musicCategoryId=l,options:a.musicSheetCategories,clearable:!0},null)]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",trigger:"change"}]},{default:()=>[t(z,{value:e.sourceType,"onUpdate:value":l=>e.sourceType=l,options:Qe(ve),placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",onUpdateValue:()=>{e.musicSheetExtend={},a.ownerName=null}},null)]}),e.sourceType==="PERSON"&&t(k,{label:"\u6240\u5C5E\u4EBA",path:"musicSheetExtend.userId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6240\u5C5E\u4EBA",trigger:["input","change"]}]},{default:()=>[t(A,{disabled:a.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{a.showMusicSheetOwnerDialog=!0}},{default:()=>[a.ownerName?a.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA"]})]}),e.sourceType==="ORG"&&t(k,{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(A,{disabled:a.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{a.showMusicSheetOwnerDialog=!0}},{default:()=>[a.ownerName?a.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784"]})]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",trigger:"change",type:"number"}]},{default:()=>[t(z,{options:[{label:"\u662F",value:1},{label:"\u5426",value:0}],value:e.appAuditFlag,"onUpdate:value":l=>e.appAuditFlag=l},null)]})]}),t(me,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[m("\u66F2\u76EE\u8BBE\u7F6E")]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u64AD\u653E\u6A21\u5F0F",path:"playMode",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u6A21\u5F0F"}]},{default:()=>[t(V,{value:e.playMode,"onUpdate:value":l=>e.playMode=l,onUpdateValue:l=>{l==="MP3"?e.playMode="MP3":e.playMode="MIDI"}},{default:()=>[t(E,{value:"MP3"},{default:()=>[m("MP3")]}),e.playMode=="MIDI"&&u.type==="preview"&&t(E,{value:"MIDI"},{default:()=>[m("MID")]})]})]}),e.playMode==="MP3"&&t(k,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B"}]},{default:()=>[t(V,{value:e.audioType,"onUpdate:value":l=>e.audioType=l},{default:()=>[t(E,{value:"HOMEMODE"},{default:()=>[m("\u81EA\u5236\u4F34\u594F")]}),t(E,{value:"COMMON"},{default:()=>[m("\u666E\u901A\u4F34\u594F")]})]})]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u4E0A\u4F20XML",path:"xmlFileUrl",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20XML",trigger:["change","input"]}]},{default:()=>[t(Z,{desc:"XML\u6587\u4EF6",disabled:a.previewMode,size:30,key:"xmlFileUrl",fileList:e.xmlFileUrl,"onUpdate:fileList":l=>e.xmlFileUrl=l,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:N,onRemove:()=>{}},null)]}),t(k,{label:"\u8BC4\u5206\u6807\u51C6",path:"evaluationStandard",rule:[{required:!0}]},{default:()=>[t(V,{value:e.evaluationStandard,"onUpdate:value":l=>e.evaluationStandard=l},{default:()=>[t(E,{value:"FREQUENCY"},{default:()=>[m("\u6807\u51C6\u8BC4\u6D4B")]}),t(E,{value:"AMPLITUDE"},{default:()=>[m("\u6253\u51FB\u4E50(\u632F\u5E45)")]}),t(E,{value:"DECIBELS"},{default:()=>[m("\u8282\u594F(\u5206\u8D1D)")]})]})]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u662F\u5426\u5168\u58F0\u90E8",path:"isAllSubject",rule:[{required:!0,message:"\u662F\u5426\u5168\u58F0\u90E8"}]},{default:()=>[t(V,{value:e.isAllSubject,"onUpdate:value":l=>e.isAllSubject=l},{default:()=>[t(E,{value:!1},{default:()=>[m("\u5426")]}),t(E,{value:!0},{default:()=>[m("\u662F")]})]})]}),t(k,{label:"\u901F\u5EA6",path:"playSpeed",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u901F\u5EA6"}]},{default:()=>[t(Ct,{placeholder:"\u8BF7\u8F93\u5165\u901F\u5EA6",value:e.playSpeed,"onUpdate:value":l=>e.playSpeed=l,min:0,style:"width:100%"},null)]})]}),!e.isAllSubject&&t(O,{cols:2},{default:()=>[t(k,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentIdList",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",trigger:"change",type:"array"}]},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",options:a.instrumentList,value:e.musicalInstrumentIdList,"onUpdate:value":l=>e.musicalInstrumentIdList=l,clearable:!0,multiple:!0,filterable:!0,maxTagCount:10,onUpdateValue:l=>x(this,null,function*(){yield $(l)})},null)]}),t(k,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",trigger:"change",type:"array"}]},{default:()=>[t(z,{value:e.subjectIds,"onUpdate:value":l=>e.subjectIds=l,options:a.subjectList,multiple:!0,filterable:!0,clearable:!0,placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",maxTagCount:10,onUpdateValue:l=>x(this,null,function*(){})},null)]})]}),t(O,{cols:1},{default:()=>[t(k,{label:"\u5207\u6362\u58F0\u8F68",path:"multiTracksSelection",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5207\u6362\u58F0\u8F68",trigger:"change",type:"array"}]},{default:()=>[t(O,{style:"padding-top: 4px;"},{default:()=>[t(fe,{span:24},{default:()=>[t(V,{value:a.multiTracks,"onUpdate:value":l=>a.multiTracks=l,onUpdateValue:l=>{it(l)}},{default:()=>[t(E,{value:"all"},{default:()=>[m("\u5168\u9009")]}),t(E,{value:"allUncheck"},{default:()=>[m("\u91CD\u7F6E")]}),t(E,{value:"invert"},{default:()=>[m("\u53CD\u9009")]})]})]}),a.partListNames&&a.partListNames.length>0&&t(fe,{span:24,style:"margin-top:5px"},{default:()=>[t(k,{label:"",path:"multiTracksSelection",rule:[{required:!1}]},{default:()=>[t(He,{value:e.multiTracksSelection,"onUpdate:value":l=>e.multiTracksSelection=l,onUpdateValue:l=>{a.partListNames.length!=l.length?a.multiTracks=null:a.multiTracks="all"}},{default:()=>[t(O,{yGap:2,cols:4},Re(d=a.partListNames.map(l=>t(fe,null,{default:()=>[t(Ze,{value:l.value,label:l.label},null)]})))?d:{default:()=>[d]})]})]})]})]})]})]}),e.multiTracksSelection.length>1&&t(O,{cols:2},{default:()=>[t(k,{label:"\u603B\u8C31\u6E32\u67D3",path:"isScoreRender",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u603B\u8C31\u6E32\u67D3"}]},{default:()=>[t(V,{value:e.isScoreRender,"onUpdate:value":l=>e.isScoreRender=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u652F\u6301")]}),t(E,{value:!1},{default:()=>[m("\u4E0D\u652F\u6301")]})]})]}),e.isScoreRender&&t(k,{label:"\u9ED8\u8BA4\u663E\u793A",path:"defaultScoreRender",rule:[{required:!1}]},{default:()=>[t(V,{value:e.defaultScoreRender,"onUpdate:value":l=>e.defaultScoreRender=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u603B\u8C31")]}),t(E,{value:!1},{default:()=>[m("\u5206\u8F68")]})]})]})]}),t(me,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[m("\u6F14\u5531\u6587\u4EF6")]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668",path:"isPlaySingBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668"}]},{default:()=>[t(V,{value:e.isPlaySingBeat,"onUpdate:value":l=>e.isPlaySingBeat=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u662F")]}),t(E,{value:!1},{default:()=>[m("\u5426")]})]})]}),e.isPlaySingBeat&&t(k,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSingSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(V,{value:e.isUseSingSystemBeat,"onUpdate:value":l=>e.isUseSingSystemBeat=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u7CFB\u7EDF\u8282\u62CD\u5668")]}),t(E,{value:!1},{default:()=>[m("MP3\u8282\u62CD\u5668")]})]})]})]}),t(O,{cols:2},{default:()=>[t(k,{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(V,{value:e.repeatedBeatsToSing,"onUpdate:value":l=>e.repeatedBeatsToSing=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u662F")]}),t(E,{value:!1},{default:()=>[m("\u5426")]})]})]})]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u4E0A\u4F20\u4F34\u5531",path:"bSongFile",rule:[{required:!1}]},{default:()=>[t(Z,{desc:"\u4E0A\u4F20\u4F34\u5531",disabled:a.previewMode,size:30,fileList:a.bSongFile,"onUpdate:fileList":l=>a.bSongFile=l,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(l=>t(O,{class:ae.audioSection},{default:()=>[t(k,{span:12,label:l.track+"\u8303\u5531",path:l.audioFileUrl,rule:[{required:!1}]},{default:()=>[t(Z,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:l.audioFileUrl,"onUpdate:fileList":r=>l.audioFileUrl=r,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(O,{cols:2,class:ae.audioSection},{default:()=>[t(k,{label:"\u603B\u8C31\u8303\u5531",path:"scoreRenderFile",rule:[{required:!1}]},{default:()=>[t(Z,{desc:"\u4E0A\u4F20\u603B\u8C31\u8303\u5531",disabled:a.previewMode,size:30,fileList:e.scoreAudioFileUrl,"onUpdate:fileList":l=>e.scoreAudioFileUrl=l,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(l=>t(O,{cols:2},{default:()=>[t(k,{label:l.track+"\u5531\u540D(\u7537)",path:l.solmizationFileUrl,rule:[{required:!1}]},{default:()=>[t(Z,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:l.solmizationFileUrl,"onUpdate:fileList":r=>l.solmizationFileUrl=r,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(k,{label:l.track+"\u5531\u540D(\u5973)",path:l.femaleSolmizationFileUrl,rule:[{required:!1}]},{default:()=>[t(Z,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:a.previewMode,size:100,fileList:l.femaleSolmizationFileUrl,"onUpdate:fileList":r=>l.femaleSolmizationFileUrl=r,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(me,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[m("\u6F14\u594F\u6587\u4EF6")]}),t(O,{cols:2},{default:()=>[t(k,{label:"\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668",path:"isPlayBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668"}]},{default:()=>[t(V,{value:e.isPlayBeat,"onUpdate:value":l=>e.isPlayBeat=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u662F")]}),t(E,{value:!1},{default:()=>[m("\u5426")]})]})]}),e.isPlayBeat&&t(k,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(V,{value:e.isUseSystemBeat,"onUpdate:value":l=>e.isUseSystemBeat=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u7CFB\u7EDF\u8282\u62CD\u5668")]}),t(E,{value:!1},{default:()=>[m("MP3\u8282\u62CD\u5668")]})]})]})]}),t(O,{cols:2},{default:()=>[t(k,{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(V,{value:e.repeatedBeats,"onUpdate:value":l=>e.repeatedBeats=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u662F")]}),t(E,{value:!1},{default:()=>[m("\u5426")]})]})]}),t(k,{label:"\u662F\u5426\u663E\u793A\u6307\u6CD5",path:"isShowFingering",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u663E\u793A\u6307\u6CD5"}]},{default:()=>[t(V,{value:e.isShowFingering,"onUpdate:value":l=>e.isShowFingering=l},{default:()=>[t(E,{value:!0},{default:()=>[m("\u662F")]}),t(E,{value:!1},{default:()=>[m("\u5426")]})]})]})]}),t(O,{cols:2},{default:()=>[e.playMode==="MP3"&&t(k,{label:"\u4E0A\u4F20\u4F34\u594F",path:"musicSheetAccompanimentList",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20.mp3"}]},{default:()=>[t(Z,{disabled:a.previewMode,size:30,fileList:a.musicSheetAccompanimentUrl,"onUpdate:fileList":l=>a.musicSheetAccompanimentUrl=l,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(k,{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(Z,{desc:"\u4E0A\u4F20\u539F\u97F3",disabled:a.previewMode,size:30,max:1,fileList:e.musicSheetSoundList_all_subject,"onUpdate:fileList":l=>e.musicSheetSoundList_all_subject=l,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)]})]}),!!b.list.length&&t(ce,null,[t(me,{showIcon:!1,type:"info"},{default:()=>[m("\u8BC6\u522B\u5230\u51711\u5904\u6E10\u53D8\u901F\u5EA6\uFF0C\u8BF7\u8F93\u5165Dorico\u5BF9\u5E94\u5C0F\u8282\u65F6\u95F4\u4FE1\u606F")]}),t(B,{label:"rit.",required:!0,style:{marginTop:"10px"}},{default:()=>[t(X,{vertical:!0},Re(i=b.list.map((l,r)=>t(ye,null,{default:()=>[t(B,{path:`graduals.${l[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(ye,null,{default:()=>[t(_e,null,{default:()=>[l[0].measureIndex,m("\u5C0F\u8282\u5F00\u59CB")]}),t(le,{placeholder:"00:00:00",value:e.graduals[l[0].measureIndex],"onUpdate:value":c=>e.graduals[l[0].measureIndex]=c},null)]})]}),t("div",{style:{lineHeight:"30px",padding:"0 4px"}},[m("~")]),t(B,{path:`graduals.${l[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(ye,null,{default:()=>[t(le,{placeholder:"00:00:00",value:e.graduals[l[1].measureIndex],"onUpdate:value":c=>e.graduals[l[1].measureIndex]=c},null),t(_e,null,{default:()=>[l[1].measureIndex,m("\u5C0F\u8282\u7ED3\u675F")]})]})]})]})))?i:{default:()=>[i]})]})]),e.musicSheetType=="SINGLE"&&e.playMode==="MP3"&&!e.isAllSubject&&e.musicSheetSoundList_YZ.map((l,r)=>t(ce,null,[e.musicalInstrumentIdList.includes(l.musicalInstrumentId)&&t(O,{class:ae.audioSection},{default:()=>[t(k,{span:12,label:l.musicalInstrumentName,path:`musicSheetSoundList_YZ[${r}].audioFileUrl`,rule:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u4E50\u5668\u6F14\u594F\u6587\u4EF6"}]},{default:()=>[t(Z,{desc:"\u4E50\u5668\u6F14\u594F\u6587\u4EF6",disabled:a.previewMode,size:100,fileList:l.audioFileUrl,"onUpdate:fileList":c=>l.audioFileUrl=c,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(ce,null,[e.musicSheetSoundList_YY.map((l,r)=>{var c,D;return t(ce,null,[(!_(l.track)||((D=(c=l.track)==null?void 0:c.toLocaleUpperCase)==null?void 0:D.call(c))!="COMMON"&&e.multiTracksSelection.includes(l.track))&&t(O,{class:ae.audioSection},{default:()=>[t(k,{span:12,label:"\u539F\u97F3",path:`musicSheetSoundList_YY[${r}].audioFileUrl`,rule:[{required:!1,message:`\u8BF7\u4E0A\u4F20${l.track?l.track+"\u7684":"\u7B2C"+(r+1)+"\u4E2A"}\u539F\u97F3`}]},{default:()=>[t(Z,{desc:"\u539F\u97F3\u6587\u4EF6",disabled:a.previewMode,size:100,fileList:l.audioFileUrl,"onUpdate:fileList":M=>l.audioFileUrl=M,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach"},null)]}),a.partListNames.length>0&&t(k,{span:12,label:"\u6240\u5C5E\u8F68\u9053",path:`musicSheetSoundList_YY[${r}].track`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053"}]},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053",value:l.track,options:j(l.track),onUpdateValue:M=>{const P=l.track;if(P){e.musicSheetSoundList_YY.forEach(w=>{w.track==M&&(w.track=P)});const C=e.multiTracksSelection.indexOf(l.track);e.multiTracksSelection.splice(C,1)}else e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(C=>C.track!=M);M!=null&&!e.multiTracksSelection.includes(M)&&e.multiTracksSelection.push(M),l.track=M,a.partListNames.length==e.multiTracksSelection.length&&(a.multiTracks="all")}},null)]}),t(fe,{class:ae.btnRemove},{default:()=>[t(A,{type:"primary",text:!0,onClick:()=>re(r)},{default:()=>[m("\u5220\u9664")]})]})]})])})])]})]}),u.type!=="preview"&&t(X,{justify:"end",style:"padding-top:12px"},{default:()=>[t(A,{type:"default",onClick:()=>h("close")},{default:()=>[m("\u53D6\u6D88")]}),t(A,{type:"primary",onClick:()=>o(),loading:y.value,disabled:y.value},{default:()=>[m("\u786E\u8BA4")]})]}),t(oe,{show:a.showMusicSheetOwnerDialog,"onUpdate:show":l=>a.showMusicSheetOwnerDialog=l,preset:"dialog",showIcon:!1,maskClosable:!1,title:"\u6240\u5C5E\u4EBA",style:{width:"800px"}},{default:()=>[t(Jt,{musicSheetExtend:e.musicSheetExtend,sourceType:e.sourceType,appData:a.appData,onClose:()=>{a.showMusicSheetOwnerDialog=!1},onChoseMusicSheetOwnerData:l=>{e.musicSheetExtend=R({},l),ke()}},null)]}),t(oe,{class:ae.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:a.productOpen,"onUpdate:show":l=>a.productOpen=l,preset:"dialog",closeOnEsc:!1,maskClosable:!1,onClose:()=>{a.isAutoSave=!1},showIcon:!1},{default:()=>[t(lt,{xmlFileUrl:e.xmlFileUrl||"",onClose:()=>a.productOpen=!1,onConfirm:l=>x(this,null,function*(){try{e.musicImg=l.musicImg,e.musicFirstImg=l.musicFirstImg,e.musicJianImg=l.musicJianImg,yield o()}catch(r){console.log(r,"e")}})},null)]}),I.beatTimeOpen&&t(st,{id:I.musicId,onClose:g},null)])}}});function la(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!we(u)}const sa=te({name:"use-project",props:{useProject:{type:Array,required:!0,default:[]},id:{type:String,required:!0,default:null}},emits:["close","getList"],setup(u,{emit:v}){const f=Q(),h=J({musicSheetId:null,useApplicationIds:[],useProjectParamConfig:{}});ne(()=>{const p=h.useProjectParamConfig.GYM,S=["musicSheetCategoryId","paymentType"];for(let n=0;n<S.length;n++)if(p[S[n]])return!0;return!1}),ne(()=>{const p=h.useProjectParamConfig.KLX,S=["availableType","musicSheetCategoryId","paymentType","musicPrice","topFlag","exquisiteFlag"];for(let n=0;n<S.length;n++){const o=p[S[n]];if(o!=null&&o!=null&&o!="")return!0}return!1}),ne(()=>{const p=h.useProjectParamConfig.KT,S=["musicSheetCategoryId"];for(let n=0;n<S.length;n++)if(p[S[n]])return!0;return!1}),ne(()=>{const p=h.useProjectParamConfig.GYT,S=["musicSheetCategoryId"];for(let n=0;n<S.length;n++)if(p[S[n]])return!0;return!1});const e=J({loading:!1,musicSheetData:null,tabName:null,selectAppKey:[],selectAppName:[],appKeyNameMap:null,userProjectList:[],musicSheetCategoryOptions:{},musicSheetCanBeUsedProjectKey:[]}),a=Q(!1),b=se();ie(()=>x(this,null,function*(){e.loading=!0;const{data:p}=yield $e({id:u.id});e.musicSheetData=p,p&&p.musicSheetExtend&&p.musicSheetExtend.useApplicationIds&&(h.useApplicationIds=p.musicSheetExtend.useApplicationIds.split(",")||[]);const S=Object.keys(Ce);u.useProject.forEach(g=>{const U=S.indexOf(g.appKey);let L=!1;U>-1&&e.userProjectList.push(W(R({},g),{disabled:L}))}),e.appKeyNameMap=new Map,e.userProjectList.forEach(g=>{h.useApplicationIds.includes(g.id)&&e.selectAppKey.push(g.appKey),e.appKeyNameMap.set(g.appKey,g.appName)}),e.selectAppKey.length>0&&(e.tabName=e.selectAppKey[0]);const n=[],o=new Map;u.useProject.forEach(g=>{n.push(g.id),o.set(g.id,g.appKey)}),e.loading=!1}));const I=Q(),y=()=>x(this,null,function*(){I.value.validate(p=>x(this,null,function*(){var S;if(p){if(Array.isArray(p)&&p.length>0){const n=(S=p[0][0].field)==null?void 0:S.split(".")[1];n&&e.selectAppKey.includes(n)&&(e.tabName=n)}return}a.value=!0;try{const n=new Map;u.useProject.forEach(g=>{n.set(g.appKey,g.id)});const o={musicSheetId:u.id,useApplicationIds:h.useApplicationIds.join(",")};yield mt(o),b.success("\u4FEE\u6539\u6210\u529F"),v("getList"),v("close")}catch(n){}a.value=!1}))});return()=>{let p;return t(We,{show:e.loading},{default:()=>[t(Te,{class:ae.formContainer,model:h,ref:I,"label-placement":"left","label-width":"85"},{default:()=>[t(B,{label:"\u9002\u7528\u5E94\u7528",path:"useApplicationIds",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u9002\u7528\u5E94\u7528"}]},{default:()=>[t(He,{value:h.useApplicationIds,"onUpdate:value":S=>h.useApplicationIds=S,onUpdateValue:S=>{e.selectAppKey=[],e.userProjectList.forEach(n=>{S.includes(n.id)&&e.selectAppKey.push(n.appKey)}),e.selectAppKey.length==0?e.tabName="":e.tabName=e.selectAppKey[0],xt(()=>{var n;return(n=f.value)==null?void 0:n.syncBarPosition()})}},la(p=e.userProjectList.map(S=>t(Ze,{value:S.value},{default:()=>[S.label]})))?p:{default:()=>[p]})]})]}),t(X,{justify:"end",style:"margin-top: 10px"},{default:()=>[t(A,{type:"default",onClick:()=>v("close")},{default:()=>[m("\u53D6\u6D88")]}),t(A,{type:"primary",onClick:()=>y(),loading:a.value,disabled:a.value},{default:()=>[m("\u786E\u8BA4")]})]})]})}}}),ia="_productModal_35hv9_1",ua="_productIframe_35hv9_9",ra={productModal:ia,productIframe:ua};function Ye(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!we(u)}const oa=te({name:"music-list",props:["searchId","musicCategoryId"],setup(u,{emit:v}){const f=Fe(),h=se(),e=J({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,generateMetronomeAudio:null},dataList:[],subjectList:[],instrumentList:[],tagList:[],visiableMusic:!1,musicOperation:"add",musicData:{},musicSheetCategories:[],musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,showUseProject:!1,useProjectData:[],showUseProjectId:null,detailReadonly:!1,userIdDisable:!0,userIdData:[],productOpen:!1,beatTimeOpen:!1,productItem:{}}),a=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",minWidth:"200px",key:"id",render(s){return t(he,{labelPlacement:"left",column:1},{default:()=>[t(ee,{label:"\u540D\u79F0"},{default:()=>[t(pe,{content:s.name},null)]}),t(ee,{label:"\u7F16\u53F7"},{default:()=>[t("div",{onDblclick:()=>{jt(h,s.id)}},[t(pe,{content:s.id},null)])]})]})}},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(s){return t(kt,{width:60,height:60,src:s.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",minWidth:"200px",key:"composer",render(s){return t(he,{labelPlacement:"left",column:1},{default:()=>[t(ee,{label:"\u97F3\u4E50\u4EBA"},{default:()=>[s.composer]}),t(ee,{label:"\u603B\u8C31\u6E32\u67D3"},{default:()=>[s.isScoreRender?"\u652F\u6301":"\u4E0D\u652F\u6301"]}),t(ee,{label:"\u5206\u7C7B"},{default:()=>[t(pe,{content:s.musicCategoryName},null)]}),t(ee,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[t(pe,{content:s.subjectNames},null)]})]})}},{title:"\u4F5C\u8005\u5C5E\u6027",minWidth:"250px",key:"sourceType",render(s){let F,j;return t(he,{labelPlacement:"left",column:1},{default:()=>[t(ee,{label:"\u5C5E\u6027"},Ye(F=Ot(s.sourceType,new Map(Object.entries(ve))))?F:{default:()=>[F]}),t(ee,{label:"\u6240\u5C5E\u4EBA"},Ye(j=Bt(s.musicSheetExtend,s.sourceType))?j:{default:()=>[j]})]})}},{title:"\u9002\u7528\u9879\u76EE",key:"projectName",render(s){return t(X,null,{default:()=>[q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.showUseProject=!0,e.showUseProjectId=s.id}},{default:()=>[t(pe,{content:s.musicSheetExtend&&s.musicSheetExtend.useApplicationNames?s.musicSheetExtend.useApplicationNames:""},null),t(Nt,{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)])]})]}),[[K("auth"),"musicSheetApplicationExtend/save1752901206883221506"]])]})}},{title:"\u66F4\u65B0\u4FE1\u606F",minWidth:"250px",key:"updateBy",render(s){return t(he,{labelPlacement:"left",column:1},{default:()=>[t(ee,{label:"\u66F4\u65B0\u4EBA"},{default:()=>[s.updateByName]}),t(ee,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:()=>[s.updateTime]})]})}},{title:"\u5BA1\u6838\u7248\u672C",minWidth:"100px",key:"appAuditFlag",render(s){return t("div",null,[s.appAuditFlag?"\u662F":"\u5426"])}},{title:"\u72B6\u6001",minWidth:"50px",key:"status",render(s){return t(Ut,{type:s.status?"primary":"default"},{default:()=>[s.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:"300px",render(s){return t(X,null,{default:()=>[t(Mt,{trigger:"hover",options:[{label:"\u4E94\u7EBF\u8C31",key:"staff"},{label:"\u9996\u8C03",key:"firstTone"},{label:"\u56FA\u5B9A\u8C03",key:"fixedTone"}],onSelect:F=>{e.musicPreview=!0,e.musicScore=s,e.musicPreviewScoreType=F}},{default:()=>[t(A,{type:"primary",size:"small",text:!0,onClick:F=>F.stopPropagation()},{default:()=>[m("\u9884\u89C8")]})]}),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.visiableMusic=!0,e.musicOperation="preview",e.musicData=s,e.detailReadonly=!0}},{default:()=>[m("\u67E5\u770B")]}),[[K("auth"),"musicSheet/detail1751241103201271810"]]),q(t(A,{type:"primary",size:"small",text:!0,disabled:s.playMode==="MIDI",onClick:()=>{e.visiableMusic=!0,e.musicOperation="edit",e.musicData=s,e.detailReadonly=!0}},{default:()=>[m("\u4FEE\u6539")]}),[[K("auth"),"musicSheet/save1751241178962984962"]]),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>I(s)},{default:()=>[s.status?"\u505C\u7528":"\u542F\u7528"]}),[[K("auth"),"musicSheet/statusList1751241653309407234"]]),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.productOpen=!0,e.productItem=s}},{default:()=>[m("\u751F\u6210\u56FE\u7247")]}),[[K("auth"),"musicSheet/img1751240591299051522"]]),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.productItem=s,e.beatTimeOpen=!0}},{default:()=>[m("\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891")]}),[[K("auth"),"musicSheet/addMix1819259767120539649"]]),q(t(A,{type:"primary",size:"small",text:!0,disabled:!!s.status,onClick:()=>S(s)},{default:()=>[m("\u5220\u9664")]}),[[K("auth"),"musicSheet/remove1753457445635645442"]])]})}}],b=Q([]),I=s=>{const F=s.status?"\u505C\u7528":"\u542F\u7528";f.warning({title:"\u63D0\u793A",content:`\u662F\u5426${F}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){try{yield Ee({ids:new Array(s.id),status:!s.status}),n(),h.success(`${F}\u6210\u529F`)}catch(j){}})})},y=s=>{const F=b.value.length;F==0&&h.warning("\u672A\u9009\u62E9\u6570\u636E");const j=s?"\u542F\u7528":"\u505C\u7528";f.warning({title:"\u63D0\u793A",content:`\u662F\u5426${j}`+F+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){try{yield Ee({ids:b.value,status:s}),n(),h.success(`${j}\u6210\u529F`)}catch($){}})})},p=s=>x(this,null,function*(){if(!!e.searchForm.applicationId&&(e.userIdData=[],e.searchForm.userId=null,s&&s!=="PLATFORM")){const{data:F}=yield Ge({page:1,rows:9999,sourceType:s,applicationId:e.searchForm.applicationId});(F.rows||[]).forEach($=>{e.userIdData.push(W(R({},$),{label:s==="PERSON"?$.userName:$.organizationRole,value:s==="PERSON"?$.userId:$.organizationRoleId}))})}}),S=s=>{f.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${s.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){try{yield ht({id:s.id}),n(),h.success("\u5220\u9664\u6210\u529F")}catch(F){}})})},n=()=>x(this,null,function*(){try{e.loading=!0;const s=e.searchForm.sourceType,F=e.searchForm.userId;let j=W(R({},e.searchForm),{useAppId:e.searchForm.useAppId?e.searchForm.useAppId.join(","):e.searchForm.useAppId});s&&s=="ORG"&&(j.organizationRoleId=F,j.userId=null);const{data:$}=yield ft(R(R({},e.pagination),j));e.pagination.pageTotal=Number($.total),e.dataList=$.rows||[]}catch(s){}e.loading=!1}),o=()=>x(this,null,function*(){try{const{data:s}=yield Le({});e.musicSheetCategories=s||[],g(e.musicSheetCategories)}catch(s){}}),g=s=>{for(let F=0;F<s.length;F++)s[F].musicSheetCategoriesList.length<1?s[F].musicSheetCategoriesList=null:g(s[F].musicSheetCategoriesList)},U=()=>x(this,null,function*(){try{const{data:s}=yield et({page:1,rows:999}),F=s.rows||[];F.forEach(j=>{j.label=j.name,j.value=j.id+""}),e.subjectList=F}catch(s){}}),L=()=>x(this,null,function*(){try{const{data:s}=yield Ie({page:1,rows:999}),F=s.rows||[];F.forEach(j=>{j.label=j.name,j.value=j.id+""}),e.instrumentList=F}catch(s){}}),N=()=>x(this,null,function*(){try{const s=Object.keys(Ce),{data:F}=yield tt({page:1,rows:999}),j=F.rows||[];e.useProjectData=[],j.filter(re=>s.includes(re.appKey)).forEach(re=>{e.useProjectData.push(W(R({},re),{label:re.appName,value:re.id}))})}catch(s){}}),_=Q(),G=()=>{e.pagination.page=1,n()};Xe(()=>u.searchId,s=>{console.log(s,"searchId")});const H=()=>{var s;b.value=[],(s=_.value)==null||s.submit()},ue=()=>{var s;(s=_.value)==null||s.reset()};return ie(()=>x(this,null,function*(){e.loading=!0,u.searchId&&(e.searchForm.categoriesId=u.searchId||null),u.musicCategoryId&&(e.searchForm.musicCategoryId=u.musicCategoryId||null),U(),L(),N(),o(),n()})),()=>t("div",{class:"system-menu-container"},[t(qe,{ref:_,model:e.searchForm,onSubmit:G,saveKey:"music-list",onSetModel:s=>e.searchForm=s},{default:()=>[t(B,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[t(le,{placeholder:"\u66F2\u76EE\u7F16\u53F7/\u540D\u79F0",value:e.searchForm.keyword,"onUpdate:value":s=>e.searchForm.keyword=s,clearable:!0},null)]}),t(B,{label:"\u603B\u8C31\u6E32\u67D3",path:"isScoreRender"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u603B\u8C31\u6E32\u67D3",value:e.searchForm.isScoreRender,"onUpdate:value":s=>e.searchForm.isScoreRender=s,options:[{label:"\u652F\u6301",value:!0},{label:"\u4E0D\u652F\u6301",value:!1}],clearable:!0},null)]}),t(B,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[t(xe,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:e.searchForm.musicCategoryId,"onUpdate:value":s=>e.searchForm.musicCategoryId=s,options:e.musicSheetCategories,clearable:!0},null)]}),t(B,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:e.searchForm.subjectId,"onUpdate:value":s=>e.searchForm.subjectId=s,options:e.subjectList,filterable:!0,clearable:!0},null)]}),t(B,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentId"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",value:e.searchForm.musicalInstrumentId,"onUpdate:value":s=>e.searchForm.musicalInstrumentId=s,options:e.instrumentList,filterable:!0,clearable:!0},null)]}),t(B,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[t(le,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:e.searchForm.composer,"onUpdate:value":s=>e.searchForm.composer=s,clearable:!0},null)]}),t(B,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",value:e.searchForm.sourceType,"onUpdate:value":s=>e.searchForm.sourceType=s,options:Qe(ve),onUpdateValue:s=>x(this,null,function*(){e.userIdData=[],e.searchForm.userId=null,s&&s!=="PLATFORM"?(yield p(s),e.userIdDisable=!e.searchForm.applicationId):e.userIdDisable=!0}),clearable:!0},null)]}),t(B,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":s=>e.searchForm.applicationId=s,options:e.useProjectData,clearable:!0,onUpdateValue:s=>x(this,null,function*(){e.searchForm.applicationId=s,s?(yield p(e.searchForm.sourceType),e.userIdDisable=!(e.searchForm.sourceType&&e.searchForm.sourceType!=="PLATFORM")):(e.searchForm.userId=null,e.userIdDisable=!0,e.userIdData=[])})},null)]}),t(B,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{label:()=>t("div",null,[m("\u6240\u5C5E\u4EBA")]),default:()=>t(z,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:e.userIdDisable||!e.searchForm.applicationId&&!e.searchForm.sourceType,value:e.searchForm.userId,"onUpdate:value":s=>e.searchForm.userId=s,options:e.userIdData,clearable:!0},null)}),t(B,{label:"\u9002\u7528\u9879\u76EE",path:"useAppId"},{default:()=>[t(z,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u9879\u76EE",value:e.searchForm.useAppId,"onUpdate:value":s=>e.searchForm.useAppId=s,options:e.useProjectData,multiple:!0,maxTagCount:1},null)]}),t(B,{label:"\u72B6\u6001",path:"status"},{default:()=>[t(z,{value:e.searchForm.status,"onUpdate:value":s=>e.searchForm.status=s,placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:!0,options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}]},null)]}),t(B,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag"},{default:()=>[t(z,{value:e.searchForm.appAuditFlag,"onUpdate:value":s=>e.searchForm.appAuditFlag=s,placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",clearable:!0,options:[{label:"\u662F",value:1},{label:"\u5426",value:0}]},null)]}),t(B,{label:"\u6570\u636E\u4FEE\u590D",path:"dataCorrect"},{default:()=>[t(z,{value:e.searchForm.dataCorrect,"onUpdate:value":s=>e.searchForm.dataCorrect=s,placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u4FEE\u590D",clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]}),t(B,{label:"\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891",path:"generateMetronomeAudio"},{default:()=>[t(z,{value:e.searchForm.generateMetronomeAudio,"onUpdate:value":s=>e.searchForm.generateMetronomeAudio=s,placeholder:"\u8BF7\u9009\u62E9\u662F\u5426\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891",clearable:!0,options:[{label:"\u5DF2\u751F\u6210",value:!0},{label:"\u672A\u751F\u6210",value:!1}]},null)]}),t(B,{label:"\u5999\u6781\u5BA2\u8282\u62CD\u5668",path:"generateFirst"},{default:()=>[t(z,{value:e.searchForm.generateFirst,"onUpdate:value":s=>e.searchForm.generateFirst=s,placeholder:"\u8BF7\u9009\u62E9\u5999\u6781\u5BA2\u8282\u62CD\u5668",clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]}),t(B,null,{default:()=>[t(X,null,{default:()=>[t(A,{type:"primary",onClick:H},{default:()=>[m("\u641C\u7D22")]}),t(A,{type:"default",onClick:ue},{default:()=>[m("\u91CD\u7F6E")]})]})]})]}),t("div",{class:["section-container"]},[t(X,{style:{paddingBottom:"12px"}},{default:()=>[q(t(A,{type:"primary",onClick:()=>{e.visiableMusic=!0,e.musicOperation="add",e.musicData={},e.detailReadonly=!0}},{default:()=>[m("\u65B0\u589E\u66F2\u76EE")]}),[[K("auth"),"musicSheet/save1751241178962984962"]]),q(t(A,{disabled:b.value.length==0,onClick:()=>{y(!1)}},{default:()=>[m("\u6279\u91CF\u505C\u7528")]}),[[K("auth"),"musicSheet/statusList1751241653309407234"]]),q(t(A,{disabled:b.value.length==0,onClick:()=>{y(!0)}},{default:()=>[m("\u6279\u91CF\u542F\u7528")]}),[[K("auth"),"musicSheet/statusList1751241653309407234"]])]}),t(Se,{loading:e.loading,columns:a(),data:e.dataList,rowKey:s=>s.id,checkedRowKeys:b.value,"onUpdate:checkedRowKeys":s=>b.value=s,scrollX:"1200"},null),t(Ke,{page:e.pagination.page,"onUpdate:page":s=>e.pagination.page=s,pageSize:e.pagination.rows,"onUpdate:pageSize":s=>e.pagination.rows=s,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":s=>e.pagination.pageTotal=s,onList:n,sync:!0,saveKey:"music-list"},null)]),t(oe,{show:e.visiableMusic,"onUpdate:show":s=>e.visiableMusic=s,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(aa,{type:e.musicOperation,data:e.musicData,subjectList:e.subjectList,onClose:()=>e.visiableMusic=!1,onGetList:n},null)]}),t(oe,{blockScroll:!0,show:e.musicPreview,"onUpdate:show":s=>e.musicPreview=s,preset:"dialog",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",style:{width:"auto"}},{default:()=>[t(Dt,{item:e.musicScore,isMove:1,scoreType:e.musicPreviewScoreType},null)]}),t(oe,{blockScroll:!0,show:e.showUseProject,"onUpdate:show":s=>e.showUseProject=s,preset:"dialog",showIcon:!1,title:"\u9002\u7528\u9879\u76EE",style:{width:"500px"}},{default:()=>[t(sa,{id:e.showUseProjectId,useProject:e.useProjectData,onClose:()=>e.showUseProject=!1,onGetList:n},null)]}),t(oe,{class:ra.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:e.productOpen,"onUpdate:show":s=>e.productOpen=s,preset:"dialog",closeOnEsc:!1,maskClosable:!1,showIcon:!1},{default:()=>[t(lt,{xmlFileUrl:e.productItem.xmlFileUrl,onClose:()=>e.productOpen=!1,onConfirm:s=>x(this,null,function*(){try{yield pt(W(R({},s),{id:e.productItem.id}))}catch(F){}})},null)]}),e.beatTimeOpen&&t(st,{id:e.productItem.id,onClose:()=>{e.beatTimeOpen=!1}},null)])}}),na=te({emits:["close","getList"],props:["actvieRow","saveMode","list"],name:"save-categroy-dialog",setup(u,{emit:v}){const f=se(),h=Q(),e=Q([{name:"\u9876\u7EA7\u5206\u7C7B",id:0},...at(u.list,"musicSheetCategoriesList")]),a=J({loading:!1,dataList:[],btnLoading:!1}),b=J({id:"",name:"",enable:!0,parentId:"0"}),I=()=>x(this,null,function*(){var y;(y=h.value)==null||y.validate(p=>x(this,null,function*(){if(!p){a.btnLoading=!0;try{if(u.saveMode==="add"){const{data:S}=yield gt(R({},b));v("getList"),f.success("\u6DFB\u52A0\u6210\u529F")}else{const{data:S}=yield St(R({},b));v("getList"),f.success("\u4FEE\u6539\u6210\u529F")}}catch(S){}a.btnLoading=!1}}))});return ie(()=>{if(u.saveMode==="add")u.actvieRow&&u.actvieRow.id&&(b.parentId=(u==null?void 0:u.actvieRow.id)+"");else for(let y in u==null?void 0:u.actvieRow)b[y]=u==null?void 0:u.actvieRow[y]}),()=>t("div",null,[t(Te,{ref:h,model:b},{default:()=>[u.saveMode==="add"&&u.actvieRow&&t(B,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[t(xe,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:b.parentId,"onUpdate:value":y=>b.parentId=y,options:e.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"musicSheetCategoriesList",valueField:"id",labelField:"name",disabled:!0},null)]}),t(B,{label:"\u5206\u7C7B\u540D\u79F0",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",trigger:["blur","input"]}],path:"name"},{default:()=>[t(le,{value:b.name,"onUpdate:value":y=>b.name=y,placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",maxlength:25,showCount:!0,clearable:!0},null)]})]}),t(X,{justify:"end"},{default:()=>[t(A,{type:"default",onClick:()=>v("close")},{default:()=>[m("\u53D6\u6D88")]}),t(A,{type:"primary",onClick:()=>I(),loading:a.btnLoading,disabled:a.btnLoading},{default:()=>[m("\u786E\u8BA4")]})]})])}}),ca=te({emits:["setTabName","jump"],name:"music-category",setup(u,{slots:v,attrs:f,emit:h}){const e=J({loading:!1,pagination:{page:1,rows:10},dataList:[],showSaveDialog:!1,saveMode:"add",saveRowData:null}),a=Fe(),b=se(),I=()=>x(this,null,function*(){try{e.loading=!0;const o={page:e.pagination.page,rows:e.pagination.rows},{data:g}=yield Le(o);e.dataList=g||[]}catch(o){}e.loading=!1});ie(()=>{I()});const y=o=>{h("jump",o)},p=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"id",render(o){return o.name+"("+o.id+")"}},{title:"\u66F2\u76EE\u6570\u91CF",key:"musicSheetNum",render(o){return t("div",null,[t(A,{type:"primary",size:"small",text:!0,onClick:()=>{y({tabName:"MusicList",musicCategoryId:o.id})}},{default:()=>[o.musicSheetNum]})])}},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(X,null,{default:()=>[q(t(A,{type:"error",size:"small",text:!0,onClick:()=>n(o)},{default:()=>[m("\u5220\u9664")]}),[[K("auth"),"musicSheetCategories/remove1751239397398806530"]]),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=o,e.saveMode="edit",e.showSaveDialog=!0}},{default:()=>[m("\u4FEE\u6539")]}),[[K("auth"),"musicSheetCategories/update1751239533856292866"]]),q(t(A,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=o,e.showSaveDialog=!0,e.saveMode="add"}},{default:()=>[m("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[K("auth"),"musicSheetCategories/save1751239479284203521"]])]})}}],S=()=>{e.pagination.page=1,I()},n=o=>x(this,null,function*(){a.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664'"+o.name+"'?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){(yield yt(o.id)).data&&(S(),b.success("\u5220\u9664\u6210\u529F"))})})});return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"]},[t(X,{style:{paddingBottom:"12px"}},{default:()=>[q(t(A,{type:"primary",onClick:()=>{e.saveMode="add",e.showSaveDialog=!0,e.saveRowData=null}},{default:()=>[m("\u65B0\u589E\u5206\u7C7B")]}),[[K("auth"),"musicSheetCategories/save1751239479284203521"]])]}),t(Se,{loading:e.loading,columns:p(),data:e.dataList,rowKey:o=>o.id,childrenKey:"musicSheetCategoriesList"},null)]),t(oe,{show:e.showSaveDialog,"onUpdate:show":o=>e.showSaveDialog=o,preset:"dialog",showIcon:!1,title:e.saveRowData?"\u4FEE\u6539\u5206\u7C7B":"\u65B0\u589E\u5206\u7C7B",style:{width:"400px"}},{default:()=>[t(na,{onGetList:()=>{e.showSaveDialog=!1,I()},onClose:()=>{e.showSaveDialog=!1},list:e.dataList,saveMode:e.saveMode,actvieRow:e.saveRowData},null)]})])}}),_a=te({name:"music-sheet",setup(){const u=J({tabName:"MusicList",searchId:null,musicCategoryId:null}),v=At();_t(e=>{e.form.tabName&&(u.tabName=e.form.tabName)});const f=e=>{console.log("setTabName",e),u.tabName=e.tabName,u.searchId=e.id},h=e=>{Rt(e,"tabName",v)};return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"],style:"padding-top: 0"},[t(Et,{type:"line",size:"large",value:u.tabName,"onUpdate:value":[e=>u.tabName=e,e=>h(e)]},{default:()=>[q(t(je,{name:"MusicList",tab:"\u66F2\u76EE\u5217\u8868"},{default:()=>[t(oa,{searchId:u.searchId,musicCategoryId:u.musicCategoryId},null)]}),[[K("auth"),"musicSheet/page1751238894313013249"]]),q(t(je,{name:"CategroryList",tab:"\u66F2\u76EE\u5206\u7C7B"},{default:()=>[t(ca,{onSetTabName:f,onJump:e=>{u.tabName=e.tabName,u.musicCategoryId=e.musicCategoryId}},null)]}),[[K("auth"),"musicSheetCategories/queryTree1751238805699952641"]])]})])])}});export{_a as default};
|