| 1 |
- !function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function n(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e,n,t,r,a,o,i){try{var u=e[o](i),s=u.value}catch(c){return void t(c)}u.done?n(s):Promise.resolve(s).then(r,a)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(a,o){var i=e.apply(n,t);function u(e){r(i,a,o,u,s,"next",e)}function s(e){r(i,a,o,u,s,"throw",e)}u(void 0)}))}}System.register(["./index-legacy.e3f265c9.js","./index-legacy.8f4c4fd7.js","./index.module-legacy.cb3d08ee.js","./index-legacy.fc3ebf40.js","./index-legacy.ee11036a.js","./index-legacy.4f4ab0a6.js","./index-legacy.dc96bf45.js","./index-legacy.19a45354.js","./index-legacy.2ee31e11.js","./index-legacy.368007c2.js","./index-legacy.7e7ef8e8.js","./use-tab-status-legacy.9455a6cb.js","./Picker-legacy.9f551266.js","./index-legacy.bf22f5c4.js","./index-legacy.68fbb713.js","./index-legacy.a6f18d3e.js"],(function(e){"use strict";var t,r,o,i,u,s,c,l,d,m,f,p,g,h,v,y,b,C,x,S,T,w,O,B,k,j,A,H,L;return{setters:[function(e){t=e.d,r=e.ah,o=e.R,i=e.r,u=e.y,s=e.$,c=e.g,l=e.c,d=e.aj,m=e.a5,f=e.ak,p=e.P,g=e.al,h=e.m,v=e._,y=e.e,b=e.bp,C=e.be},function(e){x=e.O},function(e){S=e.g,T=e.s},function(e){w=e.O},function(e){O=e.O},function(e){B=e.D,k=e.a},function(e){j=e.L},function(e){A=e.C},function(e){H=e.C},function(e){L=e.P},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var P={"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=function(e){for(var n=e.replace(/ /g," ").toLocaleLowerCase(),t=Object.keys(P),r=0;r<t.length;r++){if(t[r].replace(/ /g," ").toLocaleLowerCase()===n)return P[t[r]]||""}for(var a=0;a<t.length;a++){var o=t[a].replace(/ /g," ").toLocaleLowerCase();if(n.includes(o))return P[t[a]]||""}return""};e("default",t({name:"accompany-music-list",props:{musicTree:{type:Array,default:function(){return[]}}},setup:function(){var e=r(),t=S("icon-music.svg"),P=o({}),D=i({loading:!1,finished:!1,refreshing:!1,musicTree:[],pagenation:{page:1,rows:20},value1:null,value2:null,PopoverOpen:!1,list:[],keyword:""}),V=function(){var e=a(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.get(c.platformApi+"/musicSheetCategories/queryTree?enable=true");case 3:n=e.sent,Array.isArray(null==n?void 0:n.data)&&(D.musicTree=n.data),v((function(){E()})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=a(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,h.get("/api-student/student/member");case 3:n=e.sent,P.value=n.data||{},e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),G=u((function(){var n=D.musicTree.find((function(n){return n.id==e.query.categorieid}));return Array.isArray(null==n?void 0:n.musicSheetCategoriesList)?n.musicSheetCategoriesList.map((function(e){return D.value1||(D.value1=e.id,D.value2=null),{text:e.name,value:e.id}})):[]})),M=u((function(){var n=D.musicTree.find((function(n){return n.id==e.query.categorieid}));if(Array.isArray(null==n?void 0:n.musicSheetCategoriesList)){var t=n.musicSheetCategoriesList.find((function(e){return e.id==D.value1}));if(Array.isArray(null==t?void 0:t.musicSheetCategoriesList))return[{text:"全部",value:null}].concat(t.musicSheetCategoriesList.map((function(e){return{text:e.name,value:e.id}})))}return[{text:"全部",value:null}]})),E=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D.loading){e.next=2;break}return e.abrupt("return");case 2:return D.loading=!0,e.prev=3,e.next=6,h.post(c.platformApi+"/musicSheet/page",{data:n(n({},D.pagenation),{},{keyword:D.keyword,musicSheetCategoriesId:D.value2||D.value1,status:1}),hideLoading:!0});case 6:r=e.sent,Array.isArray(null==r||null===(t=r.data)||void 0===t?void 0:t.rows)?(D.list=[].concat(D.list,r.data.rows),D.pagenation.page+=1,D.finished=!r.data.rows.length):D.finished=!0,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),D.finished=!0;case 13:D.loading=!1,D.refreshing=!1;case 15:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),N=function(){D.pagenation.page=1,D.list=[],D.finished=!1,D.list=[],E()},U=function(){var e=a(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t="".concat(location.origin,"/orchestra-music-score/?id=").concat(n.id,"&part-index=").concat(W.partIndex),console.log("🚀 ~ src:",t),y({api:"openAccompanyWebView",content:{url:t,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();s((function(){"STUDENT"==c.platformType&&F(),V()}));var W=i({open:!1,musicXml:{},instrumentName:"",partIndex:0,partList:[]}),X=function(){var e=a(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],b("加载中..."),e.prev=2,e.next=5,fetch(n).then((function(e){return e.text()}));case 5:for(r=e.sent,a=(new DOMParser).parseFromString(r,"text/xml"),o=(o=Array.from(a.getElementsByTagName("part-name"))).filter((function(e){var n,t;return!(null!==(n=e.textContent)&&void 0!==n&&null!==(t=n.toLocaleUpperCase())&&void 0!==t&&t.includes("COMMON"))})),i=0;i<o.length;i++)u=R(o[i].textContent||""),t.push({text:u?o[i].textContent+"(".concat(u,")"):"",value:i});C(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),console.log(e.t0);case 16:return console.log("🚀 ~ partNames:",t),e.abrupt("return",t);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=a(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!W.musicXml[n.id]){e.next=3;break}return W.open=!0,e.abrupt("return",Promise.resolve());case 3:return e.next=5,X(n.xmlFileUrl);case 5:W.musicXml[n.id]=e.sent,W.instrumentName=n.id,W.open=!0;case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return function(){var e;return l("div",{class:T["accompany-music-list"]},[l(w,{mode:"sticky",class:T.heade,onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[l(d,{border:!1},null),l("div",null,[l(B,{activeColor:"var(--van-primary)"},{default:function(){return[l(k,{modelValue:D.value1,"onUpdate:modelValue":function(e){return D.value1=e},options:G.value,onChange:function(){D.value2=null,N()}},null),l(k,{modelValue:D.value2,"onUpdate:modelValue":function(e){return D.value2=e},options:M.value,onChange:function(){return N()}},null)]}}),l("div",{class:T.filter},[l(O,{style:{width:"100%"},background:"transparent",onSearch:function(e){D.keyword=e,N()}},null)])])]}}),l(x,{modelValue:D.refreshing,"onUpdate:modelValue":function(e){return D.refreshing=e},onRefresh:N,style:"min-height: calc(100vh - var(--header-height))"},{default:function(){return[l(j,{"loading-text":" ",immediateCheck:!1,loading:D.loading,finished:D.finished,"onUpdate:finished":function(e){return D.finished=e},finishedText:" ",onLoad:function(){E()}},{default:function(){return[l(A,{inset:!0},(n=e=D.list.map((function(e){return l(H,{size:"large",center:!0,title:e.musicSheetName,isLink:!0,onClick:function(){"CONCERT"!=e.musicSheetType?U(e):z(e)}},{icon:function(){return l(m,{style:{marginRight:"12px"},size:40,name:t},null)}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!g(n)?e:{default:function(){return[e]}}))];var n}}),!D.loading&&!D.list.length&&l(f,{tips:"暂无曲谱"},null)]}}),l(p,{teleport:"body",position:"bottom",round:!0,show:W.open,"onUpdate:show":function(e){return W.open=e}},{default:function(){return[l(L,{columns:W.musicXml[W.instrumentName],onConfirm:function(e){W.open=!1,W.partIndex=e.selectedValues[0],U({id:W.instrumentName})},onCancel:function(){return W.open=!1}},null)]}})])}}}))}}}))}();
|