1 |
- System.register(["./index-legacy.eb062188.js","./index-legacy.d64e5695.js","./index.module-legacy.9b2d2c6b.js","./index-legacy.ad813f4d.js","./index-legacy.a530d593.js","./index-legacy.8d528f30.js","./index-legacy.fad72574.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js","./index-legacy.38b799d5.js","./index-legacy.3a3e070a.js","./use-tab-status-legacy.91417466.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var a,t,o,i,n,l,s,r,c,u,d,m,g,p,h,y,f,C,b,v,S,T,x,B,j,A,w,H,L,k;return{setters:[function(e){a=e.d,t=e.ah,o=e.R,i=e.g,n=e.r,l=e.y,s=e.$,r=e.c,c=e.aj,u=e.F,d=e.a5,m=e.ak,g=e.P,p=e.al,h=e.m,y=e._,f=e.e,C=e.bv,b=e.bj},function(e){v=e.O},function(e){S=e.g,T=e.s},function(e){x=e.O},function(e){B=e.O},function(e){j=e.D,A=e.a},function(e){w=e.L},function(e){H=e.C},function(e){L=e.C},function(e){k=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){const O={"Acoustic Grand Piano":"大钢琴","Bright Acoustic Piano":"明亮的钢琴","Electric Grand Piano":"电钢琴","Rhodes Piano":"柔和的电钢琴","Chorused Piano":"加合唱效果的电钢琴",Harpsichord:"羽管键琴",Clavichord:"科拉维科特琴",Celesta:"钢片琴",Glockenspiel:"钢片琴","Music box":"八音盒",Vibraphone:"颤音琴",Marimba:"马林巴",Xylophone:"木琴","Tubular Bells":"管钟",Dulcimer:"大扬琴","Hammond Organ":"击杆风琴","Percussive Organ":"打击式风琴","Rock Organ":"摇滚风琴","Church Organ":"教堂风琴","Reed Organ":"簧管风琴",Accordian:"手风琴",Harmonica:"口琴","Tango Accordian":"探戈手风琴","Acoustic Guitar":"钢弦吉他","Electric Guitar":"闷音电吉他","Overdriven Guitar":"加驱动效果的电吉他","Distortion Guitar":"加失真效果的电吉他","Guitar Harmonics":"吉他和音","Acoustic Bass":"大贝司","Electric Bass":"电贝司","Fretless Bass":"无品贝司","Slap Bass":"掌击","Synth Bass":"电子合成",Violin:"小提琴",Viola:"中提琴",Cello:"大提琴",Contrabass:"低音大提琴","Tremolo Strings":"弦乐群颤音音色","Pizzicato Strings":"弦乐群拨弦音色","Orchestral Harp":"竖琴",Timpani:"定音鼓","String Ensemble":"弦乐合奏音色","Synth Strings":"合成弦乐合奏音色","Choir Aahs":"人声合唱","Voice Oohs":"人声","Synth Voice":"合成人声","Orchestra Hit":"管弦乐敲击齐奏",Trumpet:"小号",Trombone:"长号",Tuba:"大号","Muted Trumpet":"加弱音器小号","French Horn":"法国号","Brass Section":"铜管组","Synth Brass":"合成铜管音色","Soprano Sax":"高音萨克斯管","Alto Sax":"中音萨克斯管","Tenor Sax":"次中音萨克斯管","Baritone Sax":"低音萨克斯管",Oboe:"双簧管","English Horn":"英国管",Bassoon:"巴松",Clarinet:"单簧管","Soprano Saxophone":"高音萨克斯管","Alto Saxophone":"中音萨克斯管","Tenor Saxophone":"次中音萨克斯管","Baritone Saxophone":"低音萨克斯管",Piccolo:"短笛",Flute:"长笛",Recorder:"竖笛","Soprano Recorder":"高音竖笛","Pan Flute":"排箫","Bottle Blow":"瓶木管",Whistle:"口哨声",Ocarina:"陶笛",Lead:"合成主音","Lead lead":"合成主音","Pad age":"合成音色",Pad:"合成音色",FX:"合成效果 科幻",Sitar:"西塔尔",Banjo:"班卓琴",Shamisen:"三昧线",Koto:"十三弦筝",Kalimba:"卡林巴",Bagpipe:"风笛",Fiddle:"民族提琴",Shanai:"山奈","Tinkle Bell":"叮当铃",Agogos:"阿戈戈铃","Steel Drums":"钢鼓","Taiko Drum":"太鼓","Melodic Toms":"嗵嗵鼓","Synth Drums":"合成鼓","Reverse Cymbals":"反向镲","Agogo Bells":"阿戈戈铃","Taiko Drums":"太鼓",Bongos:"邦戈鼓","Bongo Bell":"邦戈铃",Congas:"康加鼓",Guiro:"刮壶","Guitar Fret Noise":"吉他换把杂音","Breath Noise":"呼吸声",Seashore:"海浪声","Bird Tweet":"鸟鸣","Telephone Ring":"电话铃",Helicopter:"直升机",Applause:"鼓掌声",Gunshot:"枪声","Acoustic Bass Drum":"大鼓","Bass Drum":"大鼓","Side Drum":"小鼓鼓边","Acoustic Snare":"小鼓","Hand Claps":"拍手","Electric Snare":"小鼓","Low Floor Tom":"低音嗵鼓","Closed Hi-Hat":"闭合踩镲","High Floor Tom":"高音落地嗵鼓","Pedal Hi-Hat":"脚踏踩镲","Low Tom":"低音嗵鼓","Open Hi-Hat":"开音踩镲","Low-Mid Tom":"中低音嗵鼓","Hi Mid Tom":"高音鼓","Crash Cymbals":"对镲","High Tom":"高音嗵鼓","Ride Cymbals":"叮叮镲","Chinese Cymbals":"中国镲","Ride Bell":"圆铃",Tambourine:"铃鼓","Splash Cymbal":"溅音镲",Cowbell:"牛铃","Crash Cymbal":"强音钹","Vibra-Slap":"颤音器","Ride Cymbal":"打点钹","Hi Bongo":"高音邦戈鼓","Low Bongo":"低音邦戈鼓","Mute Hi Conga":"弱音高音康加鼓","Open Hi Conga":"强音高音康加鼓","Low Conga":"低音康加鼓","High Timbale":"高音天巴鼓","Low Timbale":"低音天巴鼓","High Agogo":"高音阿戈戈铃","Low Agogo":"低音阿戈戈铃",Cabasa:"卡巴萨",Maracas:"沙锤","Short Whistle":"短口哨","Long Whistle":"长口哨","Short Guiro":"短刮壶","Long Guiro":"长刮壶",Claves:"响棒","Hi Wood Block":"高音木鱼","Low Wood Block":"低音木鱼","Mute Triangle":"弱音三角铁","Open Triangle":"强音三角铁","Drum Set":"架子鼓","Hulusi flute":"葫芦丝",Melodica:"口风琴","Snare Drum":"小军鼓",Cymbal:"镲",Cymbals:"镲","Horn in F":"圆号",Triangle:"三角铁",Vibrato:"颤音琴","Suspend Cymbals":"吊镲","Suspended Cymbals":"吊镲","Tom-Toms":"嗵嗵鼓",Bell:"铃铛",Bells:"铃铛","Alto Clarinet":"中音单簧管","Bass Clarinet":"低音单簧管",Cornet:"短号",Euphonium:"上低音号","crash cymbals":"对镲",Castanets:"响板",Shaker:"沙锤","Mark tree":"音树",Chimes:"管钟","Mark Tree":"音树","Tom-toms":"嗵嗵鼓","Hi-Hat":"踩镲","Sleigh Bells":"雪橇铃",Flexatone:"弹音器","Brake drum":"闸鼓",Gong:"锣","concert tom":"音乐会嗵嗵鼓","brake drum":"车轮鼓","finger cymbal":"指钹","ride cymbal":"叮叮镲","Concert Toms":"音乐会嗵嗵鼓",Vibraslap:"弹音器","Wood Blocks":"木鱼","Temple Blocks":"木鱼","Wood Block":"木鱼","Field Drum":"军鼓","Quad-Toms":"筒鼓",Quads:"筒鼓","Drums set":"架子鼓","High Bongo":"邦戈",Timbales:"天巴鼓","rain stick":"雨棒","String Bass":"弦乐低音","Floor Tom":"侧嗵鼓","Brake Drum":"闸鼓","Tam-tam":"大锣"},R=e=>{const a=e.replace(/ /g," ").toLocaleLowerCase(),t=Object.keys(O);for(let o=0;o<t.length;o++)if(t[o].replace(/ /g," ").toLocaleLowerCase()===a)return O[t[o]]||"";for(let o=0;o<t.length;o++){const e=t[o].replace(/ /g," ").toLocaleLowerCase();if(a.includes(e))return O[t[o]]||""}return""};e("default",a({name:"accompany-music-list",props:{musicTree:{type:Array,default:()=>[]}},setup(){var e,a;const O=t(),P=S("icon-music.svg"),E=o({}),V=(null===(e=i.user)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.phone)||"accompany-music-list-subject",D=localStorage.getItem(V)||(null===(a=i.user)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.subjectId)||void 0===a||null===(a=a.split(","))||void 0===a?void 0:a[0])||"",F=n({loading:!1,firstRender:!1,finished:!1,refreshing:!1,musicTree:[],pagenation:{page:1,rows:20},value1:null,value2:null,PopoverOpen:!1,list:[],keyword:"",musicSubject:D,subjectList:[]}),G=l((()=>{const e=F.musicTree.find((e=>e.id==O.query.categorieid));return Array.isArray(null==e?void 0:e.musicSheetCategoriesList)?e.musicSheetCategoriesList.map((e=>(F.value1||(F.value1=e.id,F.value2=null),{text:e.name,value:e.id}))):[]})),M=l((()=>{const e=F.musicTree.find((e=>e.id==O.query.categorieid));if(Array.isArray(null==e?void 0:e.musicSheetCategoriesList)){const a=e.musicSheetCategoriesList.find((e=>e.id==F.value1));if(Array.isArray(null==a?void 0:a.musicSheetCategoriesList))return[{text:"全部",value:null}].concat(a.musicSheetCategoriesList.map((e=>({text:e.name,value:e.id}))))}return[{text:"全部",value:null}]})),N=async()=>{if(F.loading)return;F.loading=!0;const e={...F.pagenation,keyword:F.keyword,musicSheetCategoriesId:F.value2||F.value1,status:1};"TEACHER"==i.platformType&&(e.musicSubject=F.musicSubject);try{var a;const t=await h.post(i.platformApi+"/musicSheet/page",{data:e,hideLoading:!0});Array.isArray(null==t||null===(a=t.data)||void 0===a?void 0:a.rows)?(F.list=[].concat(F.list,t.data.rows),F.pagenation.page+=1,F.finished=t.data.rows.length<F.pagenation.rows):F.finished=!0}catch(t){F.finished=!0}F.loading=!1,F.refreshing=!1,F.firstRender=!0},U=()=>{F.pagenation.page=1,F.list=[],F.finished=!1,F.list=[],N()},I=async e=>{const a=`${location.origin}/orchestra-music-score/?id=${e.id}&part-index=${W.partIndex}`;console.log("🚀 ~ src:",a),f({api:"openAccompanyWebView",content:{url:a,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};s((()=>{"STUDENT"==i.platformType&&(async()=>{try{const e=await h.get("/api-student/student/member");E.value=e.data||{}}catch(e){console.log(e)}})(),"TEACHER"==i.platformType&&(async()=>{try{((await h.post(i.platformApi+"/open/subjectBasicConfig/page",{data:{enableFlag:!0,page:1,rows:100}})).data.rows||[]).forEach((e=>{F.subjectList.push({text:e.subjectName,value:e.subjectId+""})}))}catch{}})(),(async()=>{try{const e=await h.get(i.platformApi+"/musicSheetCategories/queryTree?enable=true");Array.isArray(null==e?void 0:e.data)&&(F.musicTree=e.data),y((()=>{N()}))}catch(e){console.log(e)}})()}));const W=n({open:!1,musicXml:{},instrumentName:"",partIndex:0,partList:[]}),X=async e=>{if(W.musicXml[e.id])return W.open=!0,Promise.resolve();W.musicXml[e.id]=await(async e=>{const a=[];C("加载中...");try{const t=await fetch(e).then((e=>e.text())),o=(new DOMParser).parseFromString(t,"text/xml");let i=Array.from(o.getElementsByTagName("part-name"));i=i.filter((e=>{var a;return!(null!==(a=e.textContent)&&void 0!==a&&null!==(a=a.toLocaleUpperCase())&&void 0!==a&&a.includes("COMMON"))}));for(let e=0;e<i.length;e++){const t=R(i[e].textContent||"");a.push({text:t?i[e].textContent+`(${t})`:"",value:e})}b()}catch(t){console.log(t)}return console.log("🚀 ~ partNames:",a),a})(e.xmlFileUrl),W.instrumentName=e.id,W.open=!0};return()=>{let e;return r("div",{class:T["accompany-music-list"]},[r(x,{mode:"sticky",class:T.heade,onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[r(c,{border:!1},null),r("div",null,[r(j,{activeColor:"var(--van-primary)"},{default:()=>[r(A,{modelValue:F.value1,"onUpdate:modelValue":e=>F.value1=e,options:G.value,onChange:()=>{F.value2=null,U()}},null),r(A,{modelValue:F.value2,"onUpdate:modelValue":e=>F.value2=e,options:M.value,onChange:()=>U()},null)]}),r("div",{class:T.filter},[r(B,{class:T.filterBox,onSearch:e=>{F.keyword=e,U()}},{left:()=>r(u,null,["TEACHER"==i.platformType?r(j,{activeColor:"var(--van-primary)"},{default:()=>[r(A,{modelValue:F.musicSubject,"onUpdate:modelValue":e=>F.musicSubject=e,options:F.subjectList,onChange:()=>{localStorage.setItem(V,F.musicSubject),U()}},null)]}):null])})])])]}),r(v,{modelValue:F.refreshing,"onUpdate:modelValue":e=>F.refreshing=e,onRefresh:U,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[r(w,{"loading-text":" ",immediateCheck:!1,loading:F.loading,finished:F.finished,"onUpdate:finished":e=>F.finished=e,finishedText:" ",onLoad:()=>{N()}},{default:()=>{return[r(H,{inset:!0},(a=e=F.list.map((e=>r(L,{size:"large",center:!0,title:e.musicSheetName,isLink:!0,onClick:()=>{"CONCERT"!=e.musicSheetType?I(e):X(e)}},{icon:()=>r(d,{style:{marginRight:"12px"},size:40,name:P},null)}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!p(a)?e:{default:()=>[e]})),r("div",{style:{height:"40px"}},null)];var a}}),F.firstRender&&!F.loading&&!F.list.length&&r(m,{tips:"暂无曲谱"},null)]}),r(g,{teleport:"body",position:"bottom",round:!0,show:W.open,"onUpdate:show":e=>W.open=e},{default:()=>[r(k,{columns:W.musicXml[W.instrumentName],onConfirm:e=>{W.open=!1,W.partIndex=e.selectedValues[0],I({id:W.instrumentName})},onCancel:()=>W.open=!1},null)]})])}}}))}}}));
|