!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;i0&&1===r.current)){e.next=11;break}return e.abrupt("return");case 11:i.list=i.list.concat(r.rows||[]),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,i.isClick=!1,e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isClick=!1;case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,N({id:i.id});case 3:setTimeout((function(){i.deleteStatus=!1,l("删除成功")}),100),setTimeout((function(){A().isApp?h({api:"goBack"}):n.back()}),1200),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d({api:"saveFile",content:{url:i.musicDetail.videoUrl}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=p();return f(J,(function(e){"hidden"===e&&u&&(u.pause(),i.paused=u.paused)})),o(r(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O(i.id);case 3:if(999!==(t=e.sent).code){e.next=7;break}return g.alert({message:t.msg,theme:"round-button",confirmButtonColor:"#2DC7AA"}).then((function(){A().isApp?h({api:"goBack"}):n.back()})),e.abrupt("return");case 7:i.musicDetail=t.data||{},V(),-1!==t.data.videoUrl.lastIndexOf("mp4")?i.playType="Video":(i.playType="Audio",B.exports.nextTick((function(){u.src=i.musicDetail.videoUrl,u.load(),u.oncanplaythrough=function(){i.paused=u.paused,i.duration=u.duration},u.addEventListener("timeupdate",(function(){i.duration=u.duration,i.currentTime=u.currentTime;var e=i.currentTime/i.duration*100;i.audioWidth=e>100?100:e})),u.addEventListener("ended",(function(){i.paused=u.paused}))}))),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})))),b((function(){u&&(u.pause(),i.paused=u.paused)})),function(){var t,r,a,o,l,d;return s("div",{class:k.creation},[s(W,{position:"top"},{default:function(){return[s(T,{border:!1,isBack:"ANALYSIS"!=e.query.platformType},null)]}}),s("div",{class:k.playSection},["Video"===i.playType&&s(L,{src:null===(t=i.musicDetail)||void 0===t?void 0:t.videoUrl,poster:(null===(r=i.musicDetail)||void 0===r?void 0:r.videoImg)||q},null),"Audio"===i.playType&&s("div",{class:k.audioSection},[s("div",{class:k.audioContainer},[s("div",{class:k.waveActive,style:{width:i.audioWidth+"%"}},null),s("div",{class:k.waveDefault},null)]),s("div",{class:k.audioBox},[s("div",{class:[k.audioPan,i.paused&&k.imgRotate]},[s(D,{class:k.audioImg,src:null===(a=i.musicDetail)||void 0===a?void 0:a.img},null)]),s("i",{class:k.audioPoint},null),s("i",{class:[k.audioZhen,i.paused&&k.active]},null)]),s("div",{class:[k.controls],onClick:function(e){e.stopPropagation()},onTouchmove:function(e){}},[s("div",{class:k.actions},[s("div",{class:k.actionBtn,onClick:X},[s("img",{src:i.paused?z:S},null)])]),s("div",{class:[k.slider]},[s(P,{step:.01,class:k.timeProgress,modelValue:i.currentTime,"onUpdate:modelValue":[function(e){return i.currentTime=e},function(e){!function(e){i.currentTime=e,clearTimeout(i.timer),i.timer=setTimeout((function(){u.currentTime=e,i.timer=null}),60)}(e)}],max:i.duration,"onDrag-start":function(){i.dragStatus=!0,console.log("onDragStart")},"onDrag-end":function(){i.dragStatus=!1,console.log("onDragEnd")}},null)]),s("div",{class:k.time},[s("div",null,[w(i.currentTime)]),s("span",null,[c("/")]),s("div",null,[w(i.duration)])])])])]),s(F,{class:k.userSection,center:!0,border:!1},{icon:function(){return s(D,{class:k.userLogo,src:i.musicDetail.avatar},null)},title:function(){var e;return s("div",{class:k.userInfo},[s("p",{class:k.name},[s("span",null,[null===(e=i.musicDetail)||void 0===e?void 0:e.username]),i.musicDetail.vipFlag&&s("img",{src:G,class:k.iconMember},null)]),s("p",{class:k.sub},[i.musicDetail.subjectName," ",_(i.musicDetail.currentGradeNum-1)])])},value:function(){return s("div",{class:[k.zan,k.zanActive]},[s("img",{src:R,class:k.iconZan},null),i.musicDetail.likeNum])}}),s("div",{class:k.musicSection},[s("div",{class:k.musicName},[s("span",{class:k.musicTag},[c("曲目名称")]),null===(o=i.musicDetail)||void 0===o?void 0:o.musicSheetName]),i.musicDetail.desc&&s("div",{class:k.musicDesc},[i.musicDetail.desc])]),s("div",{class:k.likeSection},[s("div",{class:k.likeTitle},[c("点赞记录")]),i.listState.dataShow?s(U,{finished:i.listState.finished,finishedText:" ",class:[k.container,k.containerInformation],onLoad:V,immediateCheck:!1},(d=l=i.list.map((function(e,t){return s(F,{class:k.likeItem,border:i.list.length-1!=t},{icon:function(){return s(D,{src:e.userAvatar,class:k.userLogo},null)},title:function(){return s("div",{class:k.userInfo},[s("p",{class:k.name},[e.userName]),s("p",{class:k.sub},[e.subjectName," ",_(e.currentGradeNum-1)])])},value:function(){return s("div",{class:k.time},[C(e.createTime).format("YYYY-MM-DD HH:mm")])}})})),"function"==typeof d||"[object Object]"===Object.prototype.toString.call(d)&&!E(d)?l:{default:function(){return[l]}})):s(y,{btnStatus:!1,tips:"暂无数据"},null)]),s(W,{position:"bottom"},{default:function(){return[s("div",{class:k.bottomSection},[s("div",{class:k.bottomShare},[s("p",{onClick:K},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABL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8W30ZSobi4HNABIvojCSoii7a6GmOmE2snKaVGPM87EgTBgaSfUupOIrqRiDrqYK4B0Bt/mWyG3gBwU8ZdHWbm8zPaWm2uFRGO3wjL+dqGkJRSnxBRVde2nFMYhgOFQsHe8KlDKbWHiLanGv5rsNUe2dsissHNHSeiz+qk1l4jUcoztRhOI/HWZJ6IpuLYImIxK1cUEW2uImTb1yAIbkgS0lofAnCZnReRSWPMYNquBwYGzuvo6LDtTFS1tzJzuRBGY3h4+JTFxcXfo+fMhJRSo0RULgUiEhKRbdTTWtZzYrVNSqVS99TUlL3nWifk+/4FItLK59A0M/cns9p0hpwe7OVbeUXTjiyxvpOZd7eVUH9//8W5XM62p/ZLJPMIw3A2n8/vGh8fr2ilZQ1ljr5Cw5aObIWxMpmnEgLwG4DKp3Qm1NaMbEmw10d5lF97pdRbRFRTe1qL05y3iNxuC+MuEanpn5uDbN7L1jcAa+3lmiMi+5VQSV3zsM15ElEpDMMPbe/9n/yya47WP15/A/m+bFLxJrmaAAAAAElFTkSuQmCC"},null),s("span",null,[c("下载")])]),s("p",{onClick:function(){return i.shareStatus=!0}},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAlJJREFUWEftmL+LE0EUx78v2hgs/QuusAhYOBMCgkU8PLRRVNDaSuEEC/0D/Au0ES0sxFpBRStRJKiFRd5aBAI2h3/AgZBIhODmyYu7cW91d2d/eshNlczMm/fZ78y8eTOEXVZol/FgBWStPQLgMoA1ItqXBCoiX+bz+a3RaPQ13sdauwlgI80+bhMfbwlkjLlKRPcAJILEBrrLzNejddba4wDeF1R8NR4FynzKAaM+KwUiopfD4fCsDqxAtwHc0D8isgDwttVqfa9jykTkIIC++o2OHwd6BuBcAPTG87yNgrKnmllrD+nHAtC1uqPsAOp2uy9E5MxSroh0VUIlwEioVKNACTAjANsATsSFoDoVSoFZJ6KHf5uZ2oDSYJh5O0mIWoCyYHSaGgNygWkMyBWmEaA8MLUD5YVRIGvtKiADeM7M55choOy27/f7+6fT6Uf1EQmmGmfWdTclBdggM9ADXcs1Zr5fCVCv1zvs+/7nPDBh3yBDADN/COsqUWgymbwjomMAGMDpNGWyjqTSQOpAp202m6212+2twWDwI8tpWnslQGUA/jj5yy7qMjCdTkfzI4zH42+VraGiQMaYU0T0VO1F5ILnea8q2WVFgay1jwFcDOyfMPOlfwrU2OHqqtgeUJZSewr9PwpF8xIRqe2iGFfMGPOaiE4G9b/zobxX6aypcGlfLBYHNF8iolbQ/w4z31wGxoKPDS5+Xfv4AI4ysyZ1vy79xpgrRKQZm+tzjKuzrH6+iGx6nvdgdbiGP1wfrLI8uLSLiKqyBeBRqExo9xOl3SRDIzJs9wAAAABJRU5ErkJggg=="},null),s("span",null,[c("分享")])]),s("p",{onClick:function(){return i.deleteStatus=!0}},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAArVJREFUWEftWD1oFFEQ/mYvRE8NRlCREDHoIUQICZk75MDGVjRqYyFYGMRC0UrQIhZiYUp/0ELEgGBjoyRaiCBb2MjtXCEaBSUcCBGEKzRq5MAdefEtbi5/u3vcIbKv2rc7s9+338ybN/sICcbg4GAvEV0konVLuauqD+CxiNxJAAGK61QsFrO1Wu0tgG1RfFV1qFwuT0SxDdvEJsbMFwBciQH0RkT6AfyK4RNPMWbeCOADgPUWZJqIpB5QVTcD2B3cdxxnuFQqjTWT2DUAZwMAIjroed54PSAzrwHwHkCXffaxWq3urFQqP6OSo76+vg3t7e2XiKgncPJ9P0tEm4B5ipqw7wKQMXYmuYloepnk7wwvDlWtENHXsL2qfnMcpxrC/U5EV0XkJTHzdQBnon5JC+w+iUjXv0usPpSq2gsgZ8NVI6J3gUqqakKcTaCaWZFfQu/ZQkRmgZhhwvfcXPi+/zeUiyTuKIDz9v6UiOxIQGRZF2ZeEWNBHYvi1CjRKBgpsbDKTVVsYGCgp62trV9Vn4nIjzrgPWYuIi8WC3vTiBlSmUzmNYC1AFwR2RsQYOZTAG7a+WkRuZVkgSXKMWY+CuC+BdTZ2dnVk5OTNTNn5ocADtlnj0TkcMuI5fP5Y6p6LwDs6OjIuq47tw/m8/lxVT1grolowvO8oZRYqljcGpMqlipmFWha5U9zLEGO7VPVJ9ZvRkQ6TQNqK/9dVT1uK/+Y53nDLav8ABxmvgGgqKqj5XL5QQBeKBS2q+ptS+xkqVSaaiWxhprYpiV/Q6z+dCBpzx9LxP9asc9EdC6WHBGMVfUIgP3WdNF/15Va6wgwDZtEJjYC4HLDcNFf8Moe7M3zWKBYoVDY6vv+UwDmDKPZY0ZVT4QLdAC45FFnLpdb1d3dHfsoNM6XuK5r/qzmtrL68RvD129FDEU2JwAAAABJRU5ErkJggg=="},null),s("span",null,[c("删除")])])]),s(x,{round:!0,class:k.btnEdit,type:"primary",onClick:function(){n.push({path:"/creation-edit",query:{id:i.id}})}},{default:function(){return[c("编辑")]}})])]}}),s(I,{show:i.deleteStatus,"onUpdate:show":function(e){return i.deleteStatus=e},round:!0,class:k.popupContainer},{default:function(){return[s("p",{class:k.popupContent},[c("确定删除吗?")]),s("div",{class:k.popupBtnGroup},[s(x,{round:!0,onClick:function(){return i.deleteStatus=!1}},{default:function(){return[c("取消")]}}),s(x,{round:!0,type:"primary",onClick:j},{default:function(){return[c("确定")]}})])]}}),s(I,{position:"bottom",show:i.shareStatus,"onUpdate:show":function(e){return i.shareStatus=e},style:{background:"transparent"}},{default:function(){return[s(Q,{musicDetail:i.musicDetail,onClose:function(){return i.shareStatus=!1}},null)]}})])}}}))}}}))}();