!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw o}}}}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);np>span{color:var(--strong--color);font-weight:700}._tagMore_kgn1q_177 .van-field__control{visibility:hidden;opacity:0}._showField_kgn1q_181{padding-top:0!important}._showField_kgn1q_181 .van-field__label{display:none}._showField_kgn1q_181 .van-field__control{display:flex;flex-wrap:wrap}._button-area_kgn1q_191{padding:.26667rem .37333rem}._button-area_kgn1q_191 .van-button{background:transparent;padding:0;border:0;height:1.33333rem}._button-area_kgn1q_191 .van-button:active:before{opacity:1}._button-area_kgn1q_191 .van-button__text{height:100%}._button-area_kgn1q_191 img{width:100%;max-height:100%}._radio-group_kgn1q_210{display:flex}._radio-group_kgn1q_210 ._radio_kgn1q_210:first-child .van-radio__label{margin-left:0}._radio_kgn1q_210 .van-radio__icon{display:none}._radio_kgn1q_210 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center;border-radius:.16rem}._radio_kgn1q_210 .van-tag{box-sizing:border-box}._radio_kgn1q_210 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_kgn1q_210 .van-tag--primary{background-color:var(--tag-bg-color)}._tags_kgn1q_238{margin-right:.13333rem;margin-bottom:.13333rem;background:#F2FFFC;border-radius:.10667rem;height:.74667rem;font-size:.37333rem;color:#00b2a7!important;padding-top:0;padding-bottom:0;border:.02667rem solid #9FE2DE}._file_kgn1q_250{display:flex;width:100%}._file_kgn1q_250>div{flex:1}._file_kgn1q_250>div>span{display:inline-block;margin-left:.13333rem}._file_kgn1q_250 ._delbtn_kgn1q_261{padding:0;height:auto;border:none}._upbtn_kgn1q_266{border:.02667rem solid #cfcfcf;width:100%;color:#666;height:1.28rem;background:#F6F8F9;border-radius:.16rem;border-style:dashed}._upbtn_kgn1q_266 i{font-size:.64rem}._upbtn_kgn1q_266 .van-button__text{max-width:90%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._tips_kgn1q_284{font-size:.32rem;color:#e0945a;line-height:.48rem;padding:.4rem .29333rem;background:#fff3eb;border-radius:.26667rem;margin:0 .37333rem .32rem}._tips_kgn1q_284 ._tipsTitle_kgn1q_293{font-size:.37333rem;font-weight:600;color:#e0945a;line-height:.53333rem;padding-bottom:.16rem}._tips_kgn1q_284 span{color:#5aa9e0}._imgContainer_kgn1q_303{width:2.69333rem!important;height:2.69333rem!important;border-radius:.26667rem;overflow:hidden;margin:0 0 .32rem;margin-top:0!important;position:relative}._wxPopupDialog_t2brb_1{overflow:initial}._wxPopupDialog_t2brb_1:before{position:absolute;content:" ";top:-.61333rem;left:50%;margin-left:-1.33333rem;display:inline-block;background:url(./assets/bell.1b9d3ad0.png) no-repeat top center;background-size:contain;width:2.66667rem;height:1.6rem}._wxPopupDialog_t2brb_1._dialogError_t2brb_16:before{background:url(./assets/error-icon.475b88a8.png) no-repeat top center;background-size:contain}._popupContainer_t2brb_20{background:url(./assets/message-top-bg.d3857c6e.png) no-repeat top center;background-size:contain;border-radius:.53333rem;overflow:hidden;padding-bottom:.42667rem}._popupContainer_t2brb_20 ._title1_t2brb_27{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:600;color:#000}._popupContainer_t2brb_20 ._title1_t2brb_27 span{position:relative;z-index:1}._popupContainer_t2brb_20 ._title1_t2brb_27 span:after{content:"";position:absolute;left:0;bottom:0;z-index:-1;width:100%;height:.21333rem;background:linear-gradient(to right,#2dc7aa,rgba(91,236,255,.2))}._popupContainer_t2brb_20 ._popupTips_t2brb_48{position:relative;font-size:.4rem;color:#777;line-height:.56rem}._popupContainer_t2brb_20 ._popupTips_t2brb_48 ._container_t2brb_54{max-height:8rem;overflow-x:hidden;overflow-y:auto;padding:.42667rem .53333rem 0}._popupContainer_t2brb_20 ._popupTips_t2brb_48 ._cTitle_t2brb_60{font-weight:600;font-size:.4rem;color:#131415;line-height:.61333rem}._popupContainer_t2brb_20 ._popupTips_t2brb_48 ._cContent_t2brb_66{font-size:.37333rem;color:#777;line-height:.64rem;padding-bottom:.37333rem}._popupContainer_t2brb_20 ._popupTips_t2brb_48 ._cContent_t2brb_66 span{color:#14bc9c;cursor:pointer;font-weight:500}._popupContainer_t2brb_20 ._button_t2brb_77{padding:0 .85333rem;width:calc(100% - 1.86667rem);margin:0 auto;height:1.06667rem;font-weight:600;font-size:.42667rem;color:#fff;line-height:.58667rem}._select_1i1hk_60{padding:0 .42667rem;height:100%;display:flex;flex-direction:column}._select_1i1hk_60>div{flex:1;overflow:hidden;overflow-y:auto}._select_1i1hk_60>footer{padding:.26667rem 0;display:flex;justify-content:space-between}._title_1i1hk_1{font-size:.48rem;font-weight:700;color:#000;padding-top:.50667rem;text-align:center}._tit_1i1hk_1{color:#333;line-height:.58667rem;font-size:.42667rem;margin:.26667rem 0 .53333rem}._childContent_1i1hk_15{display:flex;flex-wrap:wrap;text-align:center}._childContent_1i1hk_15 ._item_1i1hk_20{display:block;margin-right:.13333rem;margin-bottom:.26667rem;min-width:2.13333rem;height:.85333rem}._childContent_1i1hk_15 ._item_1i1hk_20:nth-child(4n + 0){margin-right:0}._radio-group_1i1hk_30{display:flex;margin-top:.37333rem}._radio-group_1i1hk_30 ._radio_1i1hk_30:first-child .van-radio__label{margin-left:0}._radio_1i1hk_30{box-sizing:border-box}._radio_1i1hk_30 .van-radio__icon,._radio_1i1hk_30 .van-checkbox__icon{display:none}._radio_1i1hk_30 .van-checkbox__label{margin-left:0}._radio_1i1hk_30 .van-tag--large{font-size:.37333rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_1i1hk_30 .van-tag{box-sizing:border-box}._btn_1i1hk_57{width:4.37333rem}\n',document.head.appendChild(s),System.register(["./index-legacy.396370dc.js","./index-legacy.64d896a6.js","./index-legacy.97f306d3.js","./index-legacy.04c2af98.js","./index-legacy.49fd6060.js","./index-legacy.55b17da0.js","./index-legacy.2742bed6.js","./index-legacy.88ccb3b2.js","./index-legacy.3b03d5e2.js","./index-legacy.dc135666.js","./index-legacy.452a55e9.js","./toolsValidate-legacy.b90c63da.js","./index-legacy.67ecd3de.js","./index-legacy.ab16926a.js","./index-legacy.00784d74.js","./index-legacy.6e10cd37.js","./index-legacy.9a3146b4.js","./index-legacy.6bf22df3.js","./use-id-legacy.ef6ad63d.js","./oss-file-upload-legacy.14ad4bfd.js","./index-legacy.f26c6944.js"],(function(e){"use strict";var n,a,o,l,s,c,d,g,m,p,f,_,h,b,k,A,y,v,F,U,T,S,q,x,B,E,C,w,I,R,M,O;return{setters:[function(e){n=e.d,a=e.x,o=e.j,l=e.B,s=e.z,c=e.S,d=e.U,g=e.a2,m=e.aR,p=e.F,f=e.n,_=e.T,h=e.Z,b=e.g,k=e.bh,A=e.f,y=e.Y},function(){},function(e){v=e.F},function(e){F=e.T},function(e){U=e.R,T=e.a},function(){},function(e){S=e.C},function(){},function(){},function(){},function(e){q=e.U,x=e.C},function(e){B=e.v,E=e.a},function(e){C=e.C},function(e){w=e.C},function(e){I=e.C},function(e){R=e.c},function(e){M=e.C},function(e){O=e.F},function(){},function(){},function(){}],execute:function(){var K={CHARGE:"是",FREE:"否"},V={MP3:"MP3",MIDI:"MIDI"},L=function(e){var t,n,i={speed:0,title:"",composer:"",partNames:[]},r=(new DOMParser).parseFromString(e,"text/xml");i.title=(null===(t=r.getElementsByTagName("work-title")[0])||void 0===t?void 0:t.textContent)||"",i.composer=(null===(n=r.getElementsByTagName("creator")[0])||void 0===n?void 0:n.textContent)||"";for(var a=r.getElementsByTagName("measure"),o=0,l=Array.from(r.getElementsByTagName("part-name"));o=3?_("最多只能选3个标签"):a([e.id])}},{default:function(){return[o(F,{class:R(Te.item,"van-ellipsis"),plain:!i.value.includes(e.id),type:"primary",round:!0,size:"large"},{default:function(){return[e.name]}})]}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!h(r)?t:{default:function(){return[t]}}))]),o("footer",{class:"van-safe-area-bottom van-hairline--top"},[o(l,{class:Te.btn,round:!0,onClick:u},{default:function(){return[s("重置")]}}),o(l,{class:Te.btn,type:"primary",round:!0,onClick:function(){return n("confirm",i.value)}},{default:function(){return[s("确认")]}})])])}}});function qe(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var xe=e("validator",(function(e){return!(Number(e)<=0)||"收费金额必须大于0"}));e("default",n({name:"MusicUpload",data:function(){return{reason:"",playMode:"MP3",xmlFileUrl:"",xmlFileLoading:!1,midiFileUrl:"",midiLoading:!1,mp3Url:"",bgmp3Url:"",mp3Loading:!1,name:"",composer:"",remark:"",playSpeed:"",musicCover:"",paymentType:"CHARGE",musicPrice:"",musicalInstrumentIdList:[],selectTagVisible:!1,subJectVisible:!1,instrumentVisible:!1,tags:[],tagsNames:[],formated:{},tagVisibility:!1,submitLoading:!1,music_sheet_service_fee:0,music_account_period:0,backgroundMp3s:[],messageTipStatus:!1,messageTipTitle:"上传须知",messageTipType:"upload",cbsInstrumentList:[],tagList:[]}},watch:{formated:function(){this.mergeXmlData(this.formated)}},mounted:function(){var e=this;return u(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_service_fee,music_account_period"}}).then((function(t){(t.data||[]).forEach((function(t){"music_sheet_service_fee"===t.paramName?e.music_sheet_service_fee=t.paramValue:"music_account_period"===t.paramName&&(e.music_account_period=t.paramValue)}))})),n="STUDENT"===b.platformType?"/api-student":"/api-teacher",a(n+"/MusicTag/tree").then((function(t){console.log(t,"res"),e.tagList=t.data||[]})),e.$route.params.id&&e.setDetail(e.$route.params.id),a.post("/api-teacher/musicalInstrument/list").then((function(t){(t.data||[]).forEach((function(t){e.cbsInstrumentList.push({id:t.id,name:t.name,code:t.code,loading:!1})}))}));case 5:case"end":return t.stop()}}),t)})))()},methods:{setDetail:function(e){var t=this;return u(regeneratorRuntime.mark((function n(){var i,r,o,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,a.get("/api-teacher/music/sheet/detail/".concat(e));case 3:for(i=n.sent,r=i.data,t.playMode=r.audioType||"MP3",t.xmlFileUrl=r.xmlFileUrl,t.name=r.musicSheetName,t.composer=r.composer,t.playSpeed=r.playSpeed,o=r.musicTagNames.split(","),t.tags=r.musicTag.split(","),t.tags=t.tags.filter((function(e){return""!=e})).map((function(e){return Number(e)})),l=0;l-1&&(r=t)}}catch(u){o.e(u)}finally{o.f()}})),-1===r)return o=!0,"break";var a=t.cbsInstrumentList[r];a&&u.push({url:"",id:a.id,trackName:a.name,track:n,loading:a.loading})};for(s.s();!(e=s.n()).done;){if("break"===c())break}}catch(d){s.e(d)}finally{s.f()}if(l.length<=0||o)return t.messageTipStatus=!0,t.messageTipTitle="解析失败",t.messageTipType="error",void(t.xmlFileUrl="");t.formated=a,t.backgroundMp3s=u},n.readAsText(e)},mergeXmlData:function(e){this.formated=e,this.name||(this.name=e.title),this.composer||(this.composer=e.composer),!this.playSpeed&&e.speed?this.playSpeed=""+e.speed:this.playSpeed="100"},naiveXMLFile:function(){var e=this;this.xmlFileLoading=!0,f({api:"chooseFile",content:{type:"xml",bucket:"cloud-coach"}},(function(t){e.xmlFileUrl=(null==t?void 0:t.fileUrl)||e.xmlFileUrl||"",e.xmlFileLoading=!1,e.xmlFileUrl&&k(e.xmlFileUrl).then((function(t){var n,r=L(t),a=!1,o=r.partNames||[],l=[],u=i(o);try{var s=function(){var t=n.value,r=-1;if(e.cbsInstrumentList.forEach((function(e,n){var a,o=i(e.code?e.code.split(","):"");try{for(o.s();!(a=o.n()).done;){var l=a.value;t.indexOf(l)>-1&&(r=n)}}catch(u){o.e(u)}finally{o.f()}})),-1===r)return a=!0,"break";var o=e.cbsInstrumentList[r];o&&(console.log(o,"currentItem"),l.push({url:"",id:o.id,trackName:o.name,track:t,loading:o.loading}))};for(u.s();!(n=u.n()).done;){if("break"===s())break}}catch(c){u.e(c)}finally{u.f()}if(o.length<=0||a)return e.messageTipStatus=!0,e.messageTipTitle="解析失败",e.messageTipType="error",void(e.xmlFileUrl="");e.formated=r,e.backgroundMp3s=l}))}))},naiveMidFile:function(){var e=this;this.midiLoading=!0,f({api:"chooseFile",content:{type:"midi",bucket:"cloud-coach"}},(function(t){e.midiFileUrl=(null==t?void 0:t.fileUrl)||e.midiFileUrl||"",e.midiLoading=!1}))},naiveMp3File:function(){var e=this;this.mp3Loading=!0,f({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},(function(t){e.mp3Url=(null==t?void 0:t.fileUrl)||e.mp3Url||"",e.mp3Loading=!1}))},naiveBGMp3File:function(e){var t=this;this.backgroundMp3s[e].loading=!0,f({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},(function(n){var i=(null==n?void 0:n.fileUrl)||t.backgroundMp3s[e].url||"";t.backgroundMp3s[e].url=i,t.backgroundMp3s[e].loading=!1}))},onFormatter:function(e){return B(e)},onFormatter2:function(e){var t=E(e);return t&&Number(t)>270?"270":t&&Number(t)<45?"45":t},fileName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null==e?void 0:e.split("/").pop()},createSubmitData:function(){var e,t,n;return{musicSheetJson:{playMode:this.playMode,xmlFileUrl:this.xmlFileUrl,name:this.name,composer:this.composer,playSpeed:this.playSpeed,remark:this.remark,musicTagIds:null===(e=this.tags)||void 0===e?void 0:e.join(","),musicCover:this.musicCover,multiTracksSelection:null===(t=this.backgroundMp3s.map((function(e){return e.track})))||void 0===t?void 0:t.join(","),midiFileUrl:this.midiFileUrl,musicSheetAccompanimentList:[{audioFileUrl:this.mp3Url,sortNumber:1,audioPlayType:"PLAY"}],musicPrice:this.musicPrice,paymentType:this.paymentType,musicSheetSoundList:this.backgroundMp3s.map((function(e){return{musicalInstrumentId:e.id,musicalInstrumentName:e.trackName,track:e.track,audioFileUrl:e.url,audioPlayType:"PLAY"}})),musicalInstrumentIds:null===(n=this.backgroundMp3s.map((function(e){return e.id})))||void 0===n?void 0:n.join(","),extConfigJson:'{"repeatedBeats":0,"gradualTimes":{},"isEvxml":0}'}}},onSubmit:function(e){var n=this;return u(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(console.log(e,n.createSubmitData()),n.submitLoading=!0,i.prev=2,!n.$route.params.id){i.next=8;break}return i.next=6,a.post("/api-teacher/musicSheetAuthRecord/update",{data:t(t({},n.createSubmitData()),{},{id:n.$route.params.id})});case 6:i.next=10;break;case 8:return i.next=10,a.post("/api-teacher/musicSheetAuthRecord/save",{data:n.createSubmitData()});case 10:_("上传成功"),setTimeout((function(){f({api:"back"})}),800),i.next=16;break;case 14:i.prev=14,i.t0=i.catch(2);case 16:return i.prev=16,setTimeout((function(){n.submitLoading=!1}),800),i.finish(16);case 19:console.log(e);case 20:case"end":return i.stop()}}),i,null,[[2,14,16,19]])})))()},onFailed:function(e){console.log("failed",e)}},render:function(){var e=this;return o(O,{class:H,onSubmit:this.onSubmit,onFailed:this.onFailed},{default:function(){return[o(C,{title:" ",hideHeader:!1,background:"transparent",border:!1},null),o(S,{class:[j,N],border:!1},{default:function(){return[o("div",{class:Q,onClick:function(){e.messageTipStatus=!0,e.messageTipTitle="上传须知",e.messageTipType="upload"}},[s("上传须知")]),o("img",{class:P,src:e.$route.params.id?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAA+CAMAAAD3XuUAAAAAn1BMVEUAAAASFBYTExUTFBUSFBUSExUTFBUTFBUTFBUVFhYUFBQTFBUSFBUTFBUTFBUWFhYRFBUSFBQSFBQTFBQOERITFBUTFBUTFBQTFBURFRYTFBUTExUTFBUPEBASEhUTExUTFBQTFRUQERYTExMTExUSFBQTExUSFBUSEhUSExQSFBUTFBQTFBUSFBUSExUTFBUTFBQTExUTFBQTExMTFBX1KcrHAAAANHRSTlMAUk7xmPnL4pQiWr3ctIALSHDHrwe4emX2LOXt6RA3nTIWHieQi2tVQ9TOPoZfqNmjdlgaG3wrrQAABr9JREFUaN7s2OlyokAUhuGDiBHFgIj7Ahh13KOZ7/6vbaw5RxsQMq2lqaRqnl92ufIWTbfQf9+U12F9HvZl6NFN7I5wKWHZYTvKmkbMpUdrNoRHuqpgNR7WwKpUaByJgC7cHljqaFdgr5TVBrMpqWQWmJO2FcTmiQkiCIOUA1g974U2ZQRSzKSUNXJkwrZGuRxiMYTlPjEBDcBCUjyIKV3MwXzK2uQ+00SRN7qoI4eKaUCs6ZkJQrABzws2BHsdX5xTNXkY0MUrWJkSJhYKDEk7wQyi+swEqnREJ9A1vz6OLin9EYo09BNU1NwpFJXTVmB1HtbBVuW0iBTXAuvcmSDoXZ/gSxOFFtoJXAvCpkIG7mJQzs/w70xQAhvt6n9VKaiiWG+sncDD2fCK98gETTArvi9BC6wl14QKTa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n2f7Vx9o8kGCPDkKpK0PYkqkkQDCUOEMLKEozoO6OKBHLGe/xTXzXBGcLkVRO8JTcKXuFy+I3lQ7BKTnBaNzOBY0PoU6kJuu/wG5DAOmufl5lCNx8+hLZSVoJIIxK0xKG0va62mBlEJx2CvaRXShBpm4joH/SSCRJWVG2C/vK7WSpB2JHxIXQyhD9JoG+OViUJ8q8LNPyY9mCCmD89BfIE9orFO8g8xjvIK2b/8wn+MI9u0fsF8gTrrkQjEgD7EhP04gRyVSRw+lOzrdeUwFfdBiRg7vIyGE0PeqUJfFUhakyCyGx13L5Xk8AfKUQNTHAVhCPPLzmBfw6Impvgyjltx6Ul0HcB0eMJDOXHjMcSxJzjXP+SYNH7kQUlqQElrLQcAipQOGEW5eGu+u09/dcQvwDfSxhkGsZZLwAAAABJRU5ErkJggg=="},null),o("div",{class:X},null),o(v,{required:!0,label:"播放类型",center:!0,inputAlign:"right"},{input:function(){var t;return o(U,{class:se,modelValue:e.playMode,"onUpdate:modelValue":function(t){return e.playMode=t}},qe(t=Object.keys(V).map((function(t){var n=t===e.playMode,i=n?"primary":"default";return o(T,{class:ce,name:t},{default:function(){return[o(F,{size:"large",plain:n,type:i},{default:function(){return[V[t]]}})]}})})))?t:{default:function(){return[t]}})}}),"MP3"===e.playMode&&o(v,{name:"mp3Url",class:G,modelValue:e.mp3Url,rules:[{required:!0,message:"请选择MP3文件"}]},{label:function(){return o("div",{class:Z},[o("span",null,[o("i",null,[s("*")]),s("上传伴奏")]),o("span",{class:W},[s("仅支持MP3格式文件")])])},input:function(){return A().isApp?o("div",{class:ie},[o(l,{icon:pe,class:ge,loading:e.mp3Loading,onClick:function(){e.mp3Url||e.naiveMp3File()}},{default:function(){return[e.mp3Url?e.fileName(e.mp3Url):"上传伴奏文件"]}}),e.mp3Url&&o("i",{class:re,onClick:function(){e.mp3Url=""}},null)]):o(p,null,[o(D,{"onUpdate:modelValue":function(t){return e.mp3Url=t},accept:".mp3"},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(e.mp3Url)])])}}),"MIDI"===e.playMode&&o(v,{name:"midiFileUrl",class:G,modelValue:e.midiFileUrl,rules:[{required:!0,message:"请选择MIDI文件"}]},{label:function(){return o("div",{class:Z},[o("span",null,[o("i",null,[s("*")]),s("上传MIDI")]),o("span",{class:W},[s("仅支持MIDI格式文件")])])},input:function(){return A().isApp?o("div",{class:ie},[o(l,{icon:pe,class:ge,loading:e.mp3Loading,onClick:function(){e.midiFileUrl||e.naiveMidFile()}},{default:function(){return[e.midiFileUrl?e.fileName(e.midiFileUrl):"上传MIDI文件"]}}),e.midiFileUrl&&o("i",{class:re,onClick:function(){e.midiFileUrl=""}},null)]):o(p,null,[o(D,{"onUpdate:modelValue":function(t){return e.midiFileUrl=t},accept:".mid",formatFile:e.readerFile},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(e.midiFileUrl)])])}}),o(v,{name:"xmlFileUrl",class:G,modelValue:e.xmlFileUrl,rules:[{required:!0,message:"请选择XML/MusicXML文件"}]},{label:function(){return o("div",{class:Z},[o("span",null,[o("i",null,[s("*")]),s("上传XML")]),o("span",{class:W},[s("仅支持XML/MusicXML格式文件")])])},input:function(){return A().isApp?o("div",{class:ie},[o(l,{icon:pe,class:ge,loading:e.xmlFileLoading,onClick:function(){e.xmlFileUrl||e.naiveXMLFile()}},{default:function(){return[e.xmlFileUrl?e.fileName(e.xmlFileUrl):"上传XML文件"]}}),e.xmlFileUrl&&o("i",{class:re,onClick:function(){e.xmlFileUrl="",e.backgroundMp3s=[]}},null)]):o(p,null,[o(D,{"onUpdate:modelValue":function(t){return e.xmlFileUrl=t},accept:".xml,.",formatFile:e.readerFile},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(e.xmlFileUrl)])])}}),e.backgroundMp3s.length>=1&&o(v,{class:[G,J],modelValue:e.xmlFileUrl,border:!1},{label:function(){return o("div",{class:Z},[o("span",{class:$},[o("i",null,[s("*")]),s("上传原音"),o("i",{class:ee,onClick:function(){e.messageTipStatus=!0,e.messageTipTitle="原音文件",e.messageTipType="origin"}},null)]),o("span",{class:W},[s("仅支持MP3格式文件")])])}}),e.backgroundMp3s.map((function(t,n){return o(v,{name:"url",class:[G,Y],modelValue:t.url,rules:[{required:!0,message:"请选择原音文件文件"}]},{label:function(){return o("div",{class:Z},[o("span",null,[s("所属轨道:"),t.trackName])])},input:function(){return A().isApp?o("div",{class:ie},[o(l,{icon:pe,class:ge,loading:t.loading,onClick:function(){t.url||e.naiveBGMp3File(n)}},{default:function(){return[t.url?e.fileName(t.url):"上传原声文件"]}}),t.url&&o("i",{class:re,onClick:function(){t.url=""}},null)]):o(p,null,[o(D,{"onUpdate:modelValue":function(e){return t.url=e},accept:".mp3"},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(t.url)])])}})}))]}}),o(S,{class:[j],border:!1},{default:function(){var t;return[o("div",{class:[X,z]},null),o(v,{label:"曲目名称",clearable:!0,name:"name",modelValue:e.name,rules:[{required:!0,message:"请输入曲目名称"}],errorMessageAlign:"right",placeholder:"请输入曲目名称",inputAlign:"right",autocomplete:"off",maxlength:20,"onUpdate:modelValue":function(t){return e.name=t}},null),o(v,{label:"音乐人",clearable:!0,name:"composer",modelValue:e.composer,rules:[{required:!0,message:"请输入音乐人"}],errorMessageAlign:"right",placeholder:"请输入音乐人",inputAlign:"right",autocomplete:"off",maxlength:14,"onUpdate:modelValue":function(t){return e.composer=t}},null),o(v,{label:"曲目描述",clearable:!0,name:"remark",modelValue:e.remark,"onUpdate:modelValue":function(t){return e.remark=t},class:[G,te],placeholder:"请输入曲目描述",type:"textarea",maxlength:200,showWordLimit:!0},null),o(v,{label:"曲目封面",required:!0,class:[G],rules:[{required:!0,message:"请上传曲目封面"}]},{input:function(){return o(x,{cropper:!0,bucket:"cloud-coach",tips:"上传封面",options:{autoCropWidth:600,autoCropHeight:600},modelValue:e.musicCover,"onUpdate:modelValue":function(t){return e.musicCover=t},class:me},null)}}),o(v,{required:!0,label:"曲目速度",center:!0,name:"playSpeed",inputAlign:"right",rules:[{required:!0,message:"请输入曲目速度"}],errorMessageAlign:"right",modelValue:e.playSpeed,"onUpdate:modelValue":function(t){return e.playSpeed=t},formatter:e.onFormatter2,autocomplete:"off"},null),o(v,{label:"曲目标签",placeholder:"",inputAlign:"right",isLink:!0,required:!0,readonly:!0,border:!(e.tags.length>0),name:"tags",modelValue:null===(t=e.tags)||void 0===t?void 0:t.join(","),class:e.tags.length>0?oe:"",rules:[{required:!0,message:"请选择曲目标签"}],errorMessageAlign:"right",onClick:function(){e.tagVisibility=!0}},null),e.tags.length>0&&o(v,{class:le},{input:function(){return e.tags.length>0?e.tags.map((function(t,n){return o(F,{type:"primary",size:"large",class:de,closeable:!0,onClose:function(){e.tags.splice(n,1)}},{default:function(){return[e.tagsNames[t]]}})})):o(y,{style:{width:"100%"},description:"请选择曲目标签",imageSize:0},null)}}),o(v,{required:!0,label:"是否收费",center:!0,inputAlign:"right"},{input:function(){var t;return o(U,{class:se,modelValue:e.paymentType,"onUpdate:modelValue":function(t){e.paymentType=t}},qe(t=Object.keys(K).map((function(t){var n=t===String(e.paymentType),i=n?"primary":"default";return o(T,{class:ce,name:t},{default:function(){return[o(F,{size:"large",plain:n,type:i},{default:function(){return[K[t]]}})]}})})))?t:{default:function(){return[t]}})}}),"CHARGE"===e.paymentType&&o(p,null,[o(v,{label:"收费价格",required:!0,border:!1,class:ne,placeholder:" ",formatter:e.onFormatter,autocomplete:"off",modelValue:e.musicPrice,maxlength:8,center:!0,rules:[{required:!0,validator:xe,message:"请输入收费价格"}],errorMessageAlign:"right","onUpdate:modelValue":function(t){return e.musicPrice=t}},{button:function(){return"元"}}),o("div",{class:ae},[o("p",null,[s("扣除手续费后该曲目预计收入为:")]),o("p",null,[s("每人:"),o("span",null,[((parseFloat(e.musicPrice||"0")||0)*(100-e.music_sheet_service_fee)/100).toFixed(2)]),s("元/人")]),o("p",null,[s("您的乐谱收入在学员购买后"),e.music_account_period,s("天结算到您的账户中")])])])]}}),o(w,{position:"bottom",background:"transparent"},{default:function(){return[o("div",{class:ue},[o(l,{type:"primary",block:!0,round:!0,"native-type":"submit",disabled:e.submitLoading},{default:function(){return[o("img",{src:"./assets/btn-bg.5d196006.png"},null)]}})])]}}),o(m,{show:e.tagVisibility,round:!0,closeable:!0,position:"bottom",style:{height:"60%"},teleport:"body","onUpdate:show":function(t){return e.tagVisibility=t}},{default:function(){return[o(Se,{onConfirm:e.onComfirm,show:e.tagVisibility,onClose:function(){e.tagVisibility=!1},tagList:e.tagList,defaultValue:e.tags},null)]}}),o(Ue,{title:e.messageTipTitle,type:e.messageTipType,show:e.messageTipStatus,onConfirm:function(){e.messageTipStatus=!1}},null)]}})}}))}}}))}();