import{d as b,y as f,j as e,B as A,A as l,U as w,V as K,a3 as J,aS as _,F as B,n as E,T as Y,$ as q,S as H,bi as j,bj as k,g as x,bk as G,f as T,Z as X}from"./ResizeObserver.es.b7226882.js";import"./index.40f703b6.js";import{F as p}from"./index.021f1c7b.js";import{T as S}from"./index.ed3a5560.js";import{R as v,a as M}from"./index.83925f29.js";import"./index.b1e15d61.js";import{C as Q}from"./index.9269bf1e.js";import"./index.20c0f4c5.js";import"./index.cf00521e.js";import"./index.e4fc81ba.js";import{U as W,C as z}from"./index.52126c22.js";import{v as Z,a as $}from"./toolsValidate.add49407.js";import{C as ee}from"./index.969bba7f.js";import{C as te}from"./index.1799aedf.js";import{c as V}from"./index.926ca9c5.js";import{C as ie}from"./index.5f9ef71b.js";import{S as ae}from"./index.74da9726.js";import{P as ue}from"./plyr.min.0a479001.js";import{F as se}from"./index.016a5975.js";import"./use-id.5d5e6e63.js";const N={CHARGE:"\u662F",FREE:"\u5426"},R={MP3:"MP3",MIDI:"MIDI"},L=t=>{var n,o;const i={speed:0,title:"",composer:"",partNames:[]},u=new DOMParser().parseFromString(t,"text/xml");i.title=((n=u.getElementsByTagName("work-title")[0])==null?void 0:n.textContent)||"",i.composer=((o=u.getElementsByTagName("creator")[0])==null?void 0:o.textContent)||"";const a=u.getElementsByTagName("measure");for(const d of Array.from(u.getElementsByTagName("part-name")))d.textContent&&i.partNames.push(d.textContent);for(const d of Array.from(a)){const r=d.getElementsByTagName("per-minute");if(r.length&&r[r.length-1]){i.speed=parseFloat(r[r.length-1].textContent||"0");break}}return i};var y=b({name:"Upload",props:{accept:{type:String},formatFile:{type:Function,default:t=>t},"onUpdate:modelValue":{type:Function,default:t=>{}},disabled:{type:Boolean,default:!1}},data(){return{list:[],uploading:!1}},methods:{async beforeRead(t){return console.log("beforeRead",t),!0},async upload(t){this.uploading=!0;const i=new FormData;i.append("file",t);try{const u=await f.post("/api-teacher/uploadFile",{data:i});this.$emit("update:modelValue",u.data.url)}catch{}this.uploading=!1}},render(){return e(W,{accept:this.accept,maxCount:1,modelValue:this.list,disabled:this.disabled,beforeDelete:this.beforeRead,"onUpdate:modelValue":async t=>{t[0]&&(await this.upload(t[0].file),this.formatFile(t[0].file)),this.list=t},onDelete:()=>{this.list=[],this.$emit("update:modelValue",null)}},{default:()=>[e(A,{loading:this.uploading},{default:()=>[l("\u4E0A\u4F20\u6587\u4EF6")]})]})}});const le="_form_p5al5_1",oe="_uploadMessage_p5al5_9",re="_titleImg_p5al5_23",ne="_bridSection_p5al5_30",de="_iconBrid_p5al5_33",ce="_area_p5al5_40",pe="_topArea_p5al5_46",me="_hideValue_p5al5_84",he="_fieldTypeBottom_p5al5_87",Fe="_musicTrack_p5al5_90",ge="_fieldTitle_p5al5_93",Ae="_titleTip_p5al5_98",fe="_titleName_p5al5_114",Be="_iconQuestion_p5al5_121",Ce="_textareaType_p5al5_134",Ee="_inputControl_p5al5_149",be="_container_p5al5_159",Te="_select_p5al5_164",ye="_btnSection_p5al5_168",Ue="_iconDelete_p5al5_172",Se="_rule_p5al5_187",Ie="_tagMore_p5al5_204",De="_showField_p5al5_208",xe="_radio_p5al5_237",_e="_tags_p5al5_267",we="_file_p5al5_280",ke="_delbtn_p5al5_291",ve="_upbtn_p5al5_296",Me="_tips_p5al5_314",Qe="_tipsTitle_p5al5_323",Ve="_imgContainer_p5al5_333",Ne="_listenAudioShow_p5al5_342";var s={form:le,uploadMessage:oe,titleImg:re,bridSection:ne,iconBrid:de,area:ce,topArea:pe,"section-title":"_section-title_p5al5_49","section-title2":"_section-title2_p5al5_59",hideValue:me,fieldTypeBottom:he,musicTrack:Fe,fieldTitle:ge,titleTip:Ae,titleName:fe,iconQuestion:Be,textareaType:Ce,inputControl:Ee,container:be,select:Te,btnSection:ye,iconDelete:Ue,"clear-px":"_clear-px_p5al5_183",rule:Se,tagMore:Ie,showField:De,"button-area":"_button-area_p5al5_218","radio-group":"_radio-group_p5al5_237",radio:xe,tags:_e,file:we,delbtn:ke,upbtn:ve,tips:Me,tipsTitle:Qe,imgContainer:Ve,listenAudioShow:Ne},U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAMAAAChHKjRAAAAqFBMVEUAAADT9ujV9enT9ujT9ujU9+nT9Omd5cfT9+id5ced5Med5sif5ceb48id58fT9ugtx6qd5cf////X9urS9edLz7W27t1Y07pU0rm98OBk175P0bfB8eGQ489x2sM8zLA4yq4zyazM9OXF8uKu69qn6tiL4s1p2ME/zLHz/Pjd9+3Q8uTH8uOt6dB63cd128Vc1LxHz7RDzbLl+fG069Sa5tJ+3ch93cgRgkn3AAAAD3RSTlMA9EvbyqEu9PXbyqFNLklwe2B7AAABP0lEQVQ4y43U6XKCMBSG4QDiUm1zpCC4sLmB1ard7//OahLSpv3I6PsrMzyeI+MYJnN9z+F/ewzGvcFwxHTdDhcBEt3dN2Mcbkfj3oOcow0ipcSsDrcjtfGyjFuRbsR8bil41mjIPBva7TUasL4NPQXv+qszbu0t2DcbDYSzdoFKI9s7ylrRarPN4vyV6/6hxeVxUpCqHYURGZXtaElmRTs66BnR7KuivB2tiOandDMN5dnyxRdUh7/nF0DwYEoRIHgwobkNzQ2UAIJPrym+BZ0RmSsOWV7WNEMUpnGUqBXTnESIlgmJJIpJVgHKSHY2fsEjoIJ+VoSlOk9s6EOcj/K45YBOalCo3iGJqjU3kNO83GdNUSoM5uCfE/OYfx35zL2OXLh6sA5cYpjThesQjQsXK+6Sc/QV3UfQ93w15hs2cliICwe1ZgAAAABJRU5ErkJggg==",Re="./assets/btn-bg.5d196006.png",Le="./assets/icon-brid.032839a6.png",Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAA+CAMAAAD3XuUAAAAAjVBMVEUAAAASFBYTFBURERESFBUTFBUSFBQSFBUTFBUTFBQTFRUUFBQTFBQTFBUTExcBAQETExQTFBQTFBURFRYTFBUTExQXFxcTFBUUFBQSFBUTFBQSExQTFBUTFBQVFRYTFBQPERMSFBQSFBUTExUSFBQSExUSE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ainer_ayv7e_20",Oe="_title1_ayv7e_27",He="_popupTips_ayv7e_49",je="_container_ayv7e_57",Ge="_cTitle_ayv7e_63",Xe="_cContent_ayv7e_69",We="_cContentBottom_ayv7e_75",ze="_button_ayv7e_83";var c={wxPopupDialog:Je,dialogError:Ye,popupContainer:qe,title1:Oe,popupTips:He,container:je,cTitle:Ge,cContent:Xe,cContentBottom:We,button:ze},Ze=b({name:"message-tip",props:{show:{type:Boolean,default:!0},type:{type:String,default:"upload"},title:{type:String,default:"\u6E29\u99A8\u63D0\u793A"},showButton:{type:Boolean,default:!0},buttonText:{type:String,default:"\u6211\u5DF2\u77E5\u6653"}},emits:["confirm"],setup(t,{emit:i}){const u=w(!1);K(()=>{if(t.show){u.value=!0;return}}),J(()=>[t.show],()=>{t.show?u.value=!0:u.value=!1});const a=n=>{let o=`${location.origin}/teacher/#/registerProtocol`;n==="question"?o=`${location.origin}/teacher/#/upload-protocol?type=question`:n==="music"&&(o=`${location.origin}/teacher/#/upload-protocol?type=music`),E({api:"openWebView",content:{url:o,orientation:1,isHideTitle:!1}})};return()=>e(B,null,[e(_,{show:u.value,"onUpdate:show":n=>u.value=n,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:[c.wxPopupDialog,t.type==="error"?c.dialogError:""]},{default:()=>[e("div",{class:c.popupContainer},[e("p",{class:c.title1},[e("span",null,[t.title])]),e("div",{class:c.popupTips},[t.type==="upload"&&e("div",{class:c.container},[e("p",{class:c.cTitle},[l("\u6CE8\u610F\u4E8B\u9879\uFF1A")]),e("div",{class:c.cContent},[l("1\u3001\u5FC5\u987B\u662F\u4E0A\u4F20\u4EBA\u81EA\u5DF1\u53C2\u4E0E\u5236\u4F5C\u7684\u4F5C\u54C1 "),e("br",null,null),l("2\u3001\u6B4C\u66F2\u53CA\u6B4C\u66F2\u4FE1\u606F\u4E2D\u8BF7\u52FF\u6D89\u53CA\u653F\u6CBB\u3001\u5B97\u6559\u3001\u5E7F\u544A\u3001\u6D89\u6BD2\u3001\u72AF\u7F6A\u3001\u8272\u60C5\u3001\u4F4E\u4FD7\u3001\u66B4\u529B\u3001\u8840\u8165\u3001\u6D88\u6781\u7B49\u8FDD\u89C4\u5185\u5BB9\uFF0C\u8FDD\u53CD\u8005\u76F4\u63A5\u5220\u9664\u5185\u5BB9\u3002\u591A\u6B21\u8FDD\u53CD\u5219\u8FDB\u884C\u5C01\u53F7\u5904\u7406;"),e("br",null,null),l("3\u3001\u70B9\u51FB\u67E5\u770B"),e("span",{onClick:()=>a("protocol")},[l("\u300A\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),l("\uFF0C\u5982\u679C\u60A8\u4E0A\u4F20\u4E86\u6587\u4EF6\uFF0C\u5373\u8BA4\u4E3A\u60A8\u5B8C\u5168\u540C\u610F\u5E76\u9075\u5B88\u8BE5\u534F\u8BAE\u7684\u5185\u5BB9\u3002")]),e("p",{class:c.cTitle},[l("\u66F2\u8C31\u5BA1\u6838\u6807\u51C6\uFF1A")]),e("div",{class:[c.cContent,c.cContentBottom]},[l("1\u3001\u6587\u4EF6\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC710MB\uFF0C\u4E0D\u7B26\u5408\u7248\u9762\u89C4\u8303\u7684\u4E50\u8C31\uFF0C\u5BA1\u6838\u672A\u901A\u8FC7\u7684\u4E0D\u4E88\u4E0A\u67B6\uFF0C\u8BE6\u60C5\u53C2\u8003"),e("span",{onClick:()=>a("music")},[l("\u300A\u66F2\u8C31\u6392\u7248\u89C4\u8303\u300B")]),l("\uFF1B"),e("br",null,null),l("2\u3001XML\u4E0EMIDI\u6587\u4EF6\u5185\u5BB9\u5FC5\u987B\u4E00\u81F4\uFF0C\u63A8\u8350\u4F7F\u7528Sibelius\u6253\u8C31\u8F6F\u4EF6\uFF1B\u5BFC\u51FA\u8BBE\u7F6E\uFF1A\u5BFC\u51FAXML-\u672A\u538B\u7F29\uFF08*.XML\uFF09/\u5BFC\u51FAMIDI\uFF1A\u97F3\u8272-\u5176\u4ED6\u56DE\u653E\u8BBE\u5907General MIDI\u3001MIDI\u3001MIDI\u6587\u4EF6\u7C7B\u578B-\u7C7B\u578B0\u3001\u4E0D\u8981\u52FE\u9009\u201C\u5C06\u5F31\u62CD\u5C0F\u8282\u5BFC\u51FA\u4E3A\u5177\u6709\u4F11\u6B62\u7B26\u7684\u5B8C\u6574\u5C0F\u8282\u201D\u3002\u70B9\u51FB\u67E5\u770B"),e("span",{onClick:()=>a("question")},[l("\u300A\u5E38\u89C1\u95EE\u9898\u300B")])])]),t.type==="error"&&e("div",{class:c.container},[e("div",{class:[c.cContent,c.cContentBottom]},[l("\u58F0\u8F68\u540D\u79F0\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u5BF9\u7167"),e("span",{onClick:()=>a("music")},[l("\u300A\u66F2\u8C31\u6392\u7248\u89C4\u8303\u300B")]),l("\u68C0\u67E5\u540E\u91CD\u8BD5")])]),t.type==="origin"&&e("div",{class:c.container},[e("div",{class:[c.cContent,c.cContentBottom]},[l("1\u3001\u540C\u4E00\u9996\u66F2\u76EE\u4E0D\u53EF\u91CD\u590D\u4E0A\u4F20\uFF0C\u5982\u6709\u4E0D\u540C\u7248\u672C\u7EDF\u4E00\u7528\u201C\uFF08\uFF09\u201D\u8865\u5145\u3002\u4E3E\u4F8B\uFF1A\u4EBA\u751F\u7684\u65CB\u8F6C\u6728\u9A6C\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),l("2\u3001\u66F2\u76EE\u540D\u540E\u53EF\u6DFB\u52A0\u66F2\u76EE\u4FE1\u606F\u5907\u6CE8\uFF0C\u5305\u542B\u4F46\u4E0D\u9650\u4E8E\u66F2\u76EE\u7C7B\u578B\u7B49\u3002\u66F2\u76EE\u540D\u300AXXX\u300B\uFF0C\u4E3E\u4F8B\uFF1A\u4EBA\u58F0\u7684\u65CB\u8F6C\u6728\u9A6C\u300A\u54C8\u5C14\u7684\u79FB\u52A8\u57CE\u5821\u300B\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),e("br",null,null),l("3\u3001\u5176\u4ED6\u4FE1\u606F\u4E0D\u8981\u5199\u5728\u66F2\u76EE\u540D\u91CC\uFF0C\u5982\u6B4C\u624B\u3001\u4E0A\u4F20\u4EBA\u5458\u6635\u79F0\u7B49\u3002")])])]),t.showButton&&e(A,{round:!0,type:"primary",block:!0,class:c.button,onClick:()=>i("confirm")},{default:()=>[t.buttonText]})])]})])}});const $e="_title_1xuwa_1",et="_tit_1xuwa_1",tt="_childContent_1xuwa_15",it="_item_1xuwa_31",at="_radio_1xuwa_41",ut="_btn_1xuwa_68",st="_btnCancel_1xuwa_73",lt="_select_1xuwa_76";var F={title:$e,tit:et,childContent:tt,item:it,"radio-group":"_radio-group_1xuwa_41",radio:at,btn:ut,btnCancel:st,select:lt};function ot(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!q(t)}var rt=b({name:"SelectTag",props:{show:{type:Boolean,default:!1},tagList:{type:Array,default:()=>[]},defaultValue:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(t,{attrs:i,emit:u}){const a=w([...t.defaultValue]),n=d=>{setTimeout(()=>{d.forEach(r=>{a.value.includes(r)||a.value.push(r)})},100)};J(()=>t.show,()=>{t.show?a.value=[...t.defaultValue]:o()});const o=()=>{a.value=[]};return()=>{let d;return e("div",{class:F.select},[e("h4",{class:F.title},[l("\u66F2\u76EE\u6807\u7B7E")]),e("div",{class:F.content},[e(ie,{class:V(F.childContent,F["radio-group"]),modelValue:a.value,max:3,"onUpdate:modelValue":r=>{n(r)}},ot(d=t.tagList.map((r,h)=>e(te,{key:r.id,name:r.id,class:F.radio,onClick:()=>{if(a.value.includes(r.id)){const g=a.value.findIndex(C=>C===r.id);a.value.splice(g,1)}else{if(a.value.length>=3){Y("\u6700\u591A\u53EA\u80FD\u90093\u4E2A\u6807\u7B7E");return}n([r.id])}}},{default:()=>[e(S,{class:V(F.item,"van-ellipsis"),plain:!0,type:a.value.includes(r.id)?"primary":"default",round:!0,size:"large"},{default:()=>[r.name]})]})))?d:{default:()=>[d]})]),e("footer",{class:"van-safe-area-bottom van-hairline--top"},[e(A,{class:[F.btn,F.btnCancel],round:!0,onClick:o},{default:()=>[l("\u91CD\u7F6E")]}),e(A,{class:F.btn,type:"primary",round:!0,onClick:()=>u("confirm",a.value)},{default:()=>[l("\u786E\u8BA4")]})])])}}});const nt="_listenAudio_11s7w_1",dt="_title_11s7w_7",ct="_container_11s7w_35",pt="_img_11s7w_35",mt="_audioBg_11s7w_42",ht="_iconImg_11s7w_46",Ft="_slider_11s7w_54",gt="_audioInfo_11s7w_72",At="_name_11s7w_75",ft="_time_11s7w_84";var m={listenAudio:nt,title:dt,container:ct,img:pt,audioBg:mt,iconImg:ht,slider:Ft,audioInfo:gt,name:At,time:ft},Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAA/1BMVEUAAAAAAAD////////AwMD///////////8eHh7////////////c3Nz///9CQkIpKSn///////////+urq7KyspZWVlISEirq6u+vr7////////////9/f34+Pj5+fn29vb////w8PDv7+/////m5ubj4+P////h4eHY2NjW1tb////////////GxsbExMS7u7v///+2trazs7OYmJj///////+FhYV4eHh1dXX////////////////////////////////6+vqIiIhtbW0zMzPT09P39/fv7+/p6enk5OSzs7OlpaWbm5uDg4P////z8/Pe3t7b29uUlJTR0dH///+YENUmAAAAVHRSTlNNAP30ofaW+lPq4NCwYVdTKCEchalhW4Kb8ebj4eHa2M7JxMO7ubezr6ekopmUlJKMjIl5dnNvamRWSjYuJBgRCPF5bVm17N3Uy5aLhG9D5cLAgbNQ7srUAAADUElEQVRo3szUB1LbQABG4c0uktw7Nr133Hu3gRBCEkiZd/+zZEZxwAZbaC2FyTuAvlntzi8+vFP/I5Tq1s2T8KaSINVm+MSsd1O+Q8noxQZz2riIJv2D+uUQdnLrIJJZK1UqpbVM5GBLYhcq9/2Aho2wbeyc5doBMVOgnTvbsbVwY+gRSuYNQB2nY2JBsfSxAox80gOUuLRA7lfjwrF4dV+CdZlYEhqZEozIqnDRasQAaY6WgaJBUOdZ4bLsuYJgVBsaHII8jQmNYqcSDgd6UGcddptCs+YurHc0oLEJRlEsUdEAc+wWSu3BdkssVWsb9lLuoEQIjuJiyeJHEEq4gXpBZEF4qCAJ9t6GHhVWWngqbaEe34J6ClUTHqspVM8ZSgRRD8JzD4pgwglKhbBqwodqFqHUYmi8h0wLX0pL9sYLIRMKwqcKYC6COnAkfOsIOvOhwTrbcf+g+Dbrg7nQIUZL+FjL4HAeFIWi8LUiRF9DoyC7wud2CY5eQSay6TfUlJgvoYTkVPjeKTLxArpExfyHYorLWShpcS7+QedYyRkoj5EVjmVvAkK/rEF+GhoaRIRT13dg/VjVlyIYwymogXT8yDcLACOjfapVSWMKCrMvHApcMenTV11pn/Az1Ieq44F47vONHlSF/hNURjmu6RpTyduPWtuqKD9BIY6FUyvMdPVFRzom9BdKQk4Hgrtr91AakhMoiozpQcifWdfrIIlOoAt2hCYEasXtU9/hYgJtcKYPwfdf7qAzNv5AKcgtA8G9q6nIQcqGutDWh9xPRRu6NlRHBrQhjakISOo2ZLIldCGtqdjCtKETDrQhrak44MSGwkS0Ia2piBC2oU0yHiG4d7rlDJs2pFjzDHHruMnKhiQl75DlcE8lpA1BxTuEw8xW4N2gd/t1/j2G39XawRGAIAxE0RocDxQm/dfiyaOMYzKPhBqAZPf/a30Z2PVmD5Z9QexTZWOCDT42ytVywtYtvUAec55gJQZLPostLIipaMnCMov/qtBgFY0qnViNpopBVnWq8lbV0axgV8hAQZD9WCcZVFVAb5kwsQoezQK+lRB2BpSvphkExYmaKshvuaWyrhMQkAJK1XhXqsajVPWQxD5qb91EvpWa2Fq2jJ0bb+fuFEFWArUAAAAASUVORK5CYII=",Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAxlBMVEUAAAAAAADz8/Pe3t7///////////////////+tra3////////////4+Pjc3Nz////FxcW1tbX///9HR0cpKSkbGxv////////Kysq6urqEhIT////////////9/f34+Pjl5eXw8PDv7+/////m5ubj4+P////h4eHY2NjNzc3W1ta+vr7///+YmJj///////94eHh1dXVYWFg+Pj7///////////////////////////////////9zc3NsbGz6+vqrq6v///890h9sAAAAQXRSTlNNAOXD/fSX99CE+ejg2bCjlIthWFNSIR2plW9I6+Ph4c3JxMO7ubezr6+nmox5dnNqZF5XVjYuKSckGREIb23wkGAHI4EAAAMfSURBVGjezNkFcuNAEEDR3mRGYGYMMxhjhsC//6W2SvFmE9uSSZrdf4FXVslST0t+Gep/hMr1lnXnnGoFSp86d1arXg4dKuXScdYUT+dK4UHDRgIvdXaVqjxXs9nqcyV1dabwSjSGYUDTtuMZyQe3W5QfFbvuQ9LTnPb0QKhk2YC+dfPiU9691YBtlQ6ARukYqMtsQQIrZC8VxNKjPaGZpcBOvcgWvaRsUNZsHygXB/2Uly3LP2mI53aGJteg7nuyQ717BdeT3aC+hmRNdqyWBN3fAZpbYGdkjzI2WPNtobID5x3Zq845OOXtoHECbgqyZ4UbSIy3gQYnqIwcUEZxMtgM1TUxVw7KjaHrm6CBRjflwJoaPQiGxifomhxcTXMyDoLKCWJNCaFmjETZH5o7KFdCyVU4c1/IgoyEVAYsP6gPNxJaN9BfD00054XwoMI5erIWusbuSIh1bK7XQTnISKhlILcKzeIkJeSSxGcrkIWqhQ3VFNYyNFLcS+jdo0ZLUBrdCx/qadI/oVKMJ4mgJ2KlH5CFHTTvFF/fxKe312LQbGRjfYemNqkA5lHDe1XWVH0H/RhApbCn36A2KmBOvMDrUVZ6xOsiYLJUtL9BDpfi2wefqZXL96r47EN8u8T5Cw0hu/EHQUWWqsDGn5SF4RfUQBfEtyMWHctSxyw6Et8KmsYXlOBWooLklsQfqARudJALpQWUQ+Wjg/KK3AJKk5ToIEmSXkBxHqKEHoh/QmVwo4RcKHtQHbpRQl2oe1ALVYwSKipaHmRxJlFCcoblQXdcRQtdcedBDqlooRSOB51SiRaqcOpBmudooWe0Bymq0UJVlAdBNlooC8YgY5fO2M1g7PY29oc19ggy9lA19pow9uIz9io3NZwYG7eMDZDGRmJTQ76xY4uxg5ipo6Wxw7Kx47+phYaxFY2ppZOxNZqpxaCxVaep5a2pdbSxBbupTwamPoL8+886v6u1gxoAABCGgf5do4AQoI9uBiagB4cqQ3ojY6Ilj1LB15SwiShvYwZPOOGkIGfcYuY6B4DkJ1UbJJbD3mbIl0kTuwmPCo+ARmIfCrojAAAAAElFTkSuQmCC",Et="./assets/audio-bg.95e8d5d2.png",bt=b({name:"listen-audio",props:{fileInfo:{type:Object}},setup(t){const i=w(),u=H({audioPause:!0,duration:.01,currentTime:0}),a=()=>{var o,d;!i.value||(u.audioPause?(o=i.value)==null||o.play():(d=i.value)==null||d.pause(),u.audioPause=i.value.paused)},n=o=>{i.value.currentTime=o};return K(()=>{var o;!((o=t.fileInfo)!=null&&o.url)||(i.value=new ue("#audioSrc",{controls:["play-large","play","progress","current-time","duration"],fullscreen:{enabled:!1}}),i.value.on("loadedmetadata",()=>{u.duration=i.value.duration}),i.value.on("timeupdate",()=>{u.currentTime=i.value.currentTime||0}),i.value.on("ended",()=>{u.currentTime=0,i.value.currentTime=0,u.audioPause=!0}))}),j(()=>{var o;(o=i.value)==null||o.destroy()}),()=>{var o,d;return e("div",{class:m.listenAudio},[e("h2",{class:m.title},[e("span",null,[e("span",null,[l("\u9884\u89C8\u97F3\u9891")])])]),e("div",{class:m.container},[e("div",{class:m.img,onClick:a},[e("img",{src:Et,class:m.audioBg},null),e("img",{src:u.audioPause?Bt:Ct,class:m.iconImg},null)]),e("div",{class:m.audioInfo},[e("audio",{crossorigin:"anonymous",id:"audioSrc",src:(o=t.fileInfo)==null?void 0:o.url,controls:"false",preload:"metadata",playsinline:!0},null),e("div",{class:m.name},[(d=t.fileInfo)==null?void 0:d.name]),e("div",{class:m.slider},[e(ae,{step:.01,class:m.timeProgress,modelValue:u.currentTime,"onUpdate:modelValue":[r=>u.currentTime=r,r=>{n(r)}],max:u.duration},null)]),e("div",{class:m.time},[e("div",null,[k(u.currentTime)]),e("div",null,[k(u.duration)])])])])])}}});function P(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!q(t)}const Tt=t=>Number(t)<=0?"\u6536\u8D39\u91D1\u989D\u5FC5\u987B\u5927\u4E8E0":!0;var qt=b({name:"MusicUpload",data(){return{reason:"",playMode:"MP3",xmlFileUrl:"",xmlFileLoading:!1,midiFileUrl:"",midiLoading:!1,mp3Url:"",bgmp3Url:"",mp3Loading:!1,name:"",composer:"",remark:"",playSpeed:"",musicCover:"",paymentType:"FREE",musicPrice:"",musicalInstrumentIdList:[],selectTagVisible:!1,subJectVisible:!1,instrumentVisible:!1,tags:[],tagsNames:[],formated:{},tagVisibility:!1,listenAudioShow:!1,submitLoading:!1,music_sheet_service_fee:0,music_account_period:0,backgroundMp3s:[],auditStatus:"",messageTipStatus:!1,messageTipTitle:"\u4E0A\u4F20\u987B\u77E5",messageTipType:"upload",cbsInstrumentList:[],tagList:[],musicSheetAuthRecordId:null,fileInfo:{url:"",name:""},checked:!1}},watch:{formated(){this.mergeXmlData(this.formated)}},computed:{auditDisabled(){return this.auditStatus==="DOING"}},async mounted(){localStorage.getItem("isCatchTip")||(this.messageTipStatus=!0),f.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_service_fee,music_account_period"}}).then(a=>{(a.data||[]).forEach(o=>{o.paramName==="music_sheet_service_fee"?this.music_sheet_service_fee=o.paramValue:o.paramName==="music_account_period"&&(this.music_account_period=o.paramValue)})});const i=x.platformType==="STUDENT"?"/api-student":"/api-teacher";f(i+"/MusicTag/tree").then(a=>{this.tagList=a.data||[]}),this.$route.params.id&&this.setDetail(this.$route.params.id),f.post("/api-teacher/musicalInstrument/list").then(a=>{(a.data||[]).forEach(o=>{this.cbsInstrumentList.push({id:o.id,name:o.name,code:o.code,loading:!1})})});const u=await f.post("/api-teacher/open/appVersion",{data:{platform:x.platformType==="STUDENT"?"ios-student":"ios-teacher",version:x.version}});this.checked=!!u.data.check,this.checked&&(this.musicPrice="0",this.paymentType="FREE")},methods:{async setDetail(t){try{const{data:i}=await f.get(`/api-teacher/music/sheet/detail/${t}`);this.musicSheetAuthRecordId=i.musicSheetAuthRecordId,this.auditStatus=i.auditStatus,console.log(this.musicSheetAuthRecordId),this.playMode=i.audioType||"MP3",this.xmlFileUrl=i.xmlFileUrl,this.name=i.musicSheetName,this.composer=i.composer,this.playSpeed=i.playSpeed;const u=i.musicTagNames.split(",");this.tags=i.musicTag.split(","),this.tags=this.tags.filter(a=>a!="").map(a=>Number(a));for(let a=0;a({url:a.audioFileUrl,trackName:a.musicalInstrumentName,id:a.musicalInstrumentId,track:a.track,loading:!1}))}catch(i){console.log(i)}},onComfirm(t){const i=[];this.tagList.forEach(a=>{t.includes(a.id)&&(i[a.id]=a.name)}),this.tagsNames=i,this.tagVisibility=!1;const u=Object.values(t).flat().filter(Boolean);console.log(u),this.tags=u},readerFile(t){const i=new FileReader;i.onload=()=>{const u=i.result,a=L(u);let n=!1;const o=a.partNames||[],d=[];for(const r of o){let h=-1;if(this.cbsInstrumentList.forEach((C,I)=>{const D=C.code?C.code.split(","):"";for(const O of D)r.indexOf(O)>-1&&(h=I)}),h===-1){n=!0;break}const g=this.cbsInstrumentList[h];g&&d.push({url:"",id:g.id,trackName:g.name,track:r,loading:g.loading})}if(o.length<=0||n){this.messageTipStatus=!0,this.messageTipTitle="\u89E3\u6790\u5931\u8D25",this.messageTipType="error",this.xmlFileUrl="";return}this.formated=a,this.backgroundMp3s=d},i.readAsText(t)},mergeXmlData(t){this.formated=t,this.name||(this.name=t.title),this.composer||(this.composer=t.composer),!this.playSpeed&&t.speed?this.playSpeed=""+t.speed:this.playSpeed="100"},naiveXMLFile(){this.xmlFileLoading=!0,E({api:"chooseFile",content:{type:"xml",bucket:"cloud-coach"}},t=>{this.xmlFileUrl=(t==null?void 0:t.fileUrl)||this.xmlFileUrl||"",this.xmlFileLoading=!1,this.xmlFileUrl&&G(this.xmlFileUrl).then(i=>{const u=L(i);let a=!1;const n=u.partNames||[],o=[];for(const d of n){let r=-1;if(this.cbsInstrumentList.forEach((g,C)=>{const I=g.code?g.code.split(","):"";for(const D of I)d.indexOf(D)>-1&&(r=C)}),r===-1){a=!0;break}const h=this.cbsInstrumentList[r];h&&(console.log(h,"currentItem"),o.push({url:"",id:h.id,trackName:h.name,track:d,loading:h.loading}))}if(n.length<=0||a){this.messageTipStatus=!0,this.messageTipTitle="\u89E3\u6790\u5931\u8D25",this.messageTipType="error",this.xmlFileUrl="";return}this.formated=u,this.backgroundMp3s=o})})},naiveMidFile(){this.midiLoading=!0,E({api:"chooseFile",content:{type:"midi",bucket:"cloud-coach"}},t=>{this.midiFileUrl=(t==null?void 0:t.fileUrl)||this.midiFileUrl||"",this.midiLoading=!1})},naiveMp3File(){this.mp3Loading=!0,E({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},t=>{this.mp3Url=(t==null?void 0:t.fileUrl)||this.mp3Url||"",this.mp3Loading=!1})},naiveBGMp3File(t){this.backgroundMp3s[t].loading=!0,E({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},i=>{const u=(i==null?void 0:i.fileUrl)||this.backgroundMp3s[t].url||"";this.backgroundMp3s[t].url=u,this.backgroundMp3s[t].loading=!1})},onFormatter(t){return Z(t)},onFormatter2(t){return $(t)},fileName(t=""){return t==null?void 0:t.split("/").pop()},createSubmitData(){var t,i,u;return{musicSheetJson:{playMode:this.playMode,xmlFileUrl:this.xmlFileUrl,name:this.name,composer:this.composer,playSpeed:this.playSpeed,remark:this.remark,musicTagIds:(t=this.tags)==null?void 0:t.join(","),musicCover:this.musicCover,multiTracksSelection:(i=this.backgroundMp3s.map(a=>a.track))==null?void 0:i.join(","),midiFileUrl:this.midiFileUrl,musicSheetAccompanimentList:[{audioFileUrl:this.mp3Url,sortNumber:1,audioPlayType:"PLAY"}],musicPrice:this.musicPrice,paymentType:this.paymentType,musicSheetSoundList:this.backgroundMp3s.map(a=>({musicalInstrumentId:a.id,musicalInstrumentName:a.trackName,track:a.track,audioFileUrl:a.url,audioPlayType:"PLAY"})),musicalInstrumentIds:(u=this.backgroundMp3s.map(a=>a.id))==null?void 0:u.join(","),extConfigJson:'{"repeatedBeats":0,"gradualTimes":{},"isEvxml":0}'}}},async onSubmit(t){console.log(t,this.createSubmitData()),this.submitLoading=!0;try{this.$route.params.id?await f.post("/api-teacher/musicSheetAuthRecord/update",{data:{...this.createSubmitData(),id:this.musicSheetAuthRecordId}}):await f.post("/api-teacher/musicSheetAuthRecord/save",{data:this.createSubmitData()}),Y("\u4E0A\u4F20\u6210\u529F"),setTimeout(()=>{E({api:"back"})},800)}catch{}finally{setTimeout(()=>{this.submitLoading=!1},800)}console.log(t)},onFailed(t){console.log("failed",t)}},render(){return e(se,{class:s.form,onSubmit:this.onSubmit,onFailed:this.onFailed,disabled:this.auditDisabled},{default:()=>[e(ee,{title:" ",hideHeader:!1,background:"transparent",border:!1},null),e("div",{class:s.bridSection},[e("img",{src:Le,class:s.iconBrid},null)]),e(Q,{class:[s.area,s.topArea],border:!1},{default:()=>[e("div",{class:s.uploadMessage,onClick:()=>{this.messageTipStatus=!0,this.messageTipTitle="\u4E0A\u4F20\u987B\u77E5",this.messageTipType="upload"}},[l("\u4E0A\u4F20\u987B\u77E5")]),e("img",{class:s.titleImg,src:this.$route.params.id?Ke:Pe},null),e("div",{class:s["section-title"]},null),e(p,{required:!0,label:"\u64AD\u653E\u6A21\u5F0F",center:!0,inputAlign:"right"},{input:()=>{let t;return e(v,{class:s["radio-group"],modelValue:this.playMode,"onUpdate:modelValue":i=>this.playMode=i,disabled:this.auditDisabled},P(t=Object.keys(R).map(i=>{const u=i===this.playMode,a=u?"primary":"default";return e(M,{class:s.radio,name:i},{default:()=>[e(S,{size:"large",plain:u,type:a},{default:()=>[R[i]]})]})}))?t:{default:()=>[t]})}}),this.playMode==="MP3"&&e(p,{name:"mp3Url",class:s.fieldTypeBottom,modelValue:this.mp3Url,rules:[{required:!0,message:"\u8BF7\u9009\u62E9MP3\u6587\u4EF6"}]},{label:()=>e("div",{class:s.fieldTitle},[e("span",null,[e("i",null,[l("*")]),l("\u4E0A\u4F20\u4F34\u594F")]),e("span",{class:s.titleTip},[l("\u4EC5\u652F\u6301MP3\u683C\u5F0F\u6587\u4EF6")])]),input:()=>T().isApp?e("div",{class:s.btnSection},[e(A,{icon:U,class:s.upbtn,loading:this.mp3Loading,disabled:this.auditDisabled,onClick:()=>{if(this.mp3Url){this.listenAudioShow=!0,this.fileInfo={url:this.mp3Url,name:this.fileName(this.mp3Url)};return}this.naiveMp3File()}},{default:()=>[this.mp3Url?e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[this.fileName(this.mp3Url)]):e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[l("\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6")])]}),this.mp3Url&&!this.auditDisabled&&e("i",{class:s.iconDelete,onClick:()=>{this.mp3Url=""}},null)]):e(B,null,[e(y,{"onUpdate:modelValue":t=>{this.mp3Url=t},accept:".mp3",disabled:this.auditDisabled},null),e("div",{style:{marginLeft:"8px"},onClick:()=>{this.listenAudioShow=!0,this.fileInfo={url:this.mp3Url,name:this.fileName(this.mp3Url)}}},[this.fileName(this.mp3Url)])])}),this.playMode==="MIDI"&&e(p,{name:"midiFileUrl",class:s.fieldTypeBottom,modelValue:this.midiFileUrl,rules:[{required:!0,message:"\u8BF7\u9009\u62E9MIDI\u6587\u4EF6"}]},{label:()=>e("div",{class:s.fieldTitle},[e("span",null,[e("i",null,[l("*")]),l("\u4E0A\u4F20MIDI")]),e("span",{class:s.titleTip},[l("\u4EC5\u652F\u6301MIDI\u683C\u5F0F\u6587\u4EF6")])]),input:()=>T().isApp?e("div",{class:s.btnSection},[e(A,{icon:U,class:s.upbtn,loading:this.mp3Loading,disabled:this.auditDisabled,onClick:()=>{this.midiFileUrl||this.naiveMidFile()}},{default:()=>[this.midiFileUrl?this.fileName(this.midiFileUrl):e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[l("\u4E0A\u4F20MIDI\u6587\u4EF6")])]}),this.midiFileUrl&&!this.auditDisabled&&e("i",{class:s.iconDelete,onClick:()=>{this.midiFileUrl=""}},null)]):e(B,null,[e(y,{"onUpdate:modelValue":t=>this.midiFileUrl=t,accept:".mid",formatFile:this.readerFile,disabled:this.auditDisabled},null),e("div",{style:{marginLeft:"8px"}},[this.fileName(this.midiFileUrl)])])}),e(p,{name:"xmlFileUrl",class:s.fieldTypeBottom,modelValue:this.xmlFileUrl,rules:[{required:!0,message:"\u8BF7\u9009\u62E9XML\u6587\u4EF6"}]},{label:()=>e("div",{class:s.fieldTitle},[e("span",null,[e("i",null,[l("*")]),l("\u4E0A\u4F20XML")]),e("span",{class:s.titleTip},[l("\u4EC5\u652F\u6301XML\u683C\u5F0F\u6587\u4EF6")])]),input:()=>T().isApp?e("div",{class:s.btnSection},[e(A,{icon:U,class:s.upbtn,loading:this.xmlFileLoading,disabled:this.auditDisabled,onClick:()=>{this.xmlFileUrl||this.naiveXMLFile()}},{default:()=>[this.xmlFileUrl?this.fileName(this.xmlFileUrl):e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[l("\u4E0A\u4F20XML\u6587\u4EF6")])]}),this.xmlFileUrl&&!this.auditDisabled&&e("i",{class:s.iconDelete,onClick:()=>{this.xmlFileUrl="",this.backgroundMp3s=[]}},null)]):e(B,null,[e(y,{"onUpdate:modelValue":t=>this.xmlFileUrl=t,accept:".xml,.",formatFile:this.readerFile,disabled:this.auditDisabled},null),e("div",{style:{marginLeft:"8px"}},[this.fileName(this.xmlFileUrl)])])}),this.backgroundMp3s.length>=1&&this.playMode==="MP3"&&e(B,null,[e(p,{class:[s.fieldTypeBottom,s.hideValue],modelValue:this.xmlFileUrl,border:!1},{label:()=>e("div",{class:s.fieldTitle},[e("span",{class:s.titleName},[e("i",null,[l("*")]),l("\u4E0A\u4F20\u539F\u97F3"),e("i",{class:s.iconQuestion,onClick:()=>{this.messageTipStatus=!0,this.messageTipTitle="\u539F\u97F3\u6587\u4EF6",this.messageTipType="origin"}},null)]),e("span",{class:s.titleTip},[l("\u4EC5\u652F\u6301MP3\u683C\u5F0F\u6587\u4EF6")])])}),this.backgroundMp3s.map((t,i)=>e(p,{name:"url",class:[s.fieldTypeBottom,s.musicTrack],modelValue:t.url,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u97F3\u6587\u4EF6\u6587\u4EF6"}]},{label:()=>e("div",{class:s.fieldTitle},[e("span",null,[l("\u6240\u5C5E\u8F68\u9053\uFF1A"),t.trackName])]),input:()=>T().isApp?e("div",{class:s.btnSection},[e(A,{icon:U,class:s.upbtn,loading:t.loading,disabled:this.auditDisabled,onClick:()=>{if(t.url){this.listenAudioShow=!0,this.fileInfo={url:t.url,name:this.fileName(t.url)};return}this.naiveBGMp3File(i)}},{default:()=>[t.url?e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[this.fileName(t.url)]):e("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[l("\u4E0A\u4F20\u539F\u58F0\u6587\u4EF6")])]}),t.url&&!this.auditDisabled&&e("i",{class:s.iconDelete,onClick:()=>{t.url=""}},null)]):e(B,null,[e(y,{"onUpdate:modelValue":u=>t.url=u,accept:".mp3",disabled:this.auditDisabled},null),e("div",{style:{marginLeft:"8px"},onClick:()=>{this.listenAudioShow=!0,this.fileInfo={url:t.url,name:this.fileName(t.url)}}},[this.fileName(t.url)])])}))])]}),e(Q,{class:[s.area],border:!1},{default:()=>{var t;return[e("div",{class:[s["section-title"],s["section-title2"]]},null),e(p,{label:"\u66F2\u76EE\u540D\u79F0",required:!0,name:"name",modelValue:this.name,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0"}],errorMessageAlign:"right",placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",inputAlign:"right",autocomplete:"off",maxlength:20,"onUpdate:modelValue":i=>this.name=i},null),e(p,{label:"\u97F3\u4E50\u4EBA",required:!0,name:"composer",modelValue:this.composer,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA"}],errorMessageAlign:"right",placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",inputAlign:"right",autocomplete:"off",maxlength:14,"onUpdate:modelValue":i=>this.composer=i},null),e(p,{label:"\u66F2\u76EE\u63CF\u8FF0",clearable:!0,name:"remark",modelValue:this.remark,"onUpdate:modelValue":i=>this.remark=i,class:[s.fieldTypeBottom,s.textareaType],placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u63CF\u8FF0",type:"textarea",maxlength:200,showWordLimit:!0},null),e(p,{label:"\u66F2\u76EE\u5C01\u9762",required:!0,class:[s.fieldTypeBottom],rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u66F2\u76EE\u5C01\u9762"}]},{input:()=>e(z,{cropper:!0,bucket:"cloud-coach",tips:"\u4E0A\u4F20\u5C01\u9762",disabled:this.auditDisabled,options:{autoCropWidth:600,autoCropHeight:600},modelValue:this.musicCover,"onUpdate:modelValue":i=>this.musicCover=i,class:s.imgContainer},null)}),e(p,{required:!0,label:"\u66F2\u76EE\u901F\u5EA6",name:"playSpeed",inputAlign:"right",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u901F\u5EA6"}],errorMessageAlign:"right",modelValue:this.playSpeed,"onUpdate:modelValue":i=>this.playSpeed=i,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u901F\u5EA6\uFF0C\u8303\u56F445-270",formatter:this.onFormatter2,onBlur:()=>{this.playSpeed&&Number(this.playSpeed)>270&&(this.playSpeed="270"),this.playSpeed&&Number(this.playSpeed)<45&&(this.playSpeed="45")},autocomplete:"off"},null),e(p,{label:"\u66F2\u76EE\u6807\u7B7E",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",inputAlign:"right",isLink:!0,required:!0,readonly:!0,border:!(this.tags.length>0),name:"tags",modelValue:(t=this.tags)==null?void 0:t.join(","),class:this.tags.length>0?s.tagMore:"",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E"}],errorMessageAlign:"right",disabled:this.auditDisabled,onClick:()=>{this.auditDisabled||(this.tagVisibility=!0)}},null),this.tags.length>0&&e(p,{class:s.showField},{input:()=>this.tags.length>0?this.tags.map((i,u)=>e(S,{type:"primary",size:"large",class:s.tags,closeable:!this.auditDisabled,onClose:()=>{this.tags.splice(u,1)}},{default:()=>[this.tagsNames[i]]})):e(X,{style:{width:"100%"},description:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6807\u7B7E",imageSize:0},null)}),!this.checked&&e(B,null,[e(p,{required:!0,label:"\u662F\u5426\u6536\u8D39",center:!0,inputAlign:"right"},{input:()=>{let i;return e(v,{class:s["radio-group"],modelValue:this.paymentType,"onUpdate:modelValue":u=>{this.paymentType=u},disabled:this.auditDisabled},P(i=Object.keys(N).map(u=>{const a=u===String(this.paymentType),n=a?"primary":"default";return e(M,{class:s.radio,name:u},{default:()=>[e(S,{size:"large",plain:a,type:n},{default:()=>[N[u]]})]})}))?i:{default:()=>[i]})}}),this.paymentType==="CHARGE"&&e(B,null,[e(p,{label:"\u6536\u8D39\u4EF7\u683C",required:!0,border:!1,class:s.inputControl,placeholder:" ",formatter:this.onFormatter,autocomplete:"off",modelValue:this.musicPrice,maxlength:8,center:!0,rules:[{required:!0,validator:Tt,message:"\u8BF7\u8F93\u5165\u6536\u8D39\u4EF7\u683C"}],errorMessageAlign:"right","onUpdate:modelValue":i=>this.musicPrice=i},{button:()=>"\u5143"}),e("div",{class:s.rule},[e("p",null,[l("\u6263\u9664\u624B\u7EED\u8D39\u540E\u8BE5\u66F2\u76EE\u9884\u8BA1\u6536\u5165\u4E3A\uFF1A"),e("span",null,[((parseFloat(this.musicPrice||"0")||0)*(100-this.music_sheet_service_fee)/100).toFixed(2),e("span",null,[l("\u5143/\u4EBA")])])]),e("p",null,[l("\u60A8\u7684\u4E50\u8C31\u6536\u5165\u5728\u5B66\u5458\u8D2D\u4E70\u540E"),this.music_account_period,l("\u5929\u7ED3\u7B97\u5230\u60A8\u7684\u8D26\u6237\u4E2D")])])])])]}}),e("div",{class:[s["button-area"]]},[e(A,{type:"primary",block:!0,round:!0,"native-type":"submit",disabled:this.submitLoading||this.auditDisabled},{default:()=>[e("img",{src:Re},null)]})]),e(_,{show:this.tagVisibility,round:!0,closeable:!0,position:"bottom",style:{height:"35%"},teleport:"body","onUpdate:show":t=>this.tagVisibility=t},{default:()=>[e(rt,{onConfirm:this.onComfirm,show:this.tagVisibility,onClose:()=>{this.tagVisibility=!1},tagList:this.tagList,defaultValue:this.tags},null)]}),e(_,{show:this.listenAudioShow,round:!0,closeable:!0,teleport:"body",class:s.listenAudioShow,"onUpdate:show":t=>this.listenAudioShow=t},{default:()=>[this.listenAudioShow&&e(bt,{fileInfo:this.fileInfo},null)]}),e(Ze,{title:this.messageTipTitle,type:this.messageTipType,show:this.messageTipStatus,onConfirm:()=>{this.messageTipType==="upload"&&localStorage.setItem("isCatchTip","1"),this.messageTipStatus=!1}},null)]})}});export{qt as default,Tt as validator};