!function(){function e(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}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,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,o=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw o}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ndiv{background:url(./header-bg.png) no-repeat top center}._detail_1uzmg_4{overflow:hidden;--van-nav-bar-background-color: transparent;--van-nav-bar-icon-color: #fff;--van-nav-bar-text-color: #fff;--van-nav-bar-title-text-color: #fff;--plyr-color-main: var(--van-primary);--plyr-control-icon-size: .32rem}._detail_1uzmg_4 .plyr__controls .plyr__controls__item:first-child{background-color:var(--van-primary);color:#fff;border-radius:50%}._base_1uzmg_1 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._shareBtn_1uzmg_21{display:flex;align-items:flex-start;color:#fff;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_1uzmg_21 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._bgImg_1uzmg_33{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.26667rem)}._bgContent_1uzmg_42{position:absolute;top:0;height:7.06667rem;width:100%;background-color:rgba(0,0,0,.5);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem)}._musicContent_1uzmg_51{position:relative;width:100%;height:13.33333rem;overflow:hidden}._musicContent_1uzmg_51:after{content:" ";position:absolute;bottom:0;left:0;right:0;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 100%);height:7.65333rem}._musicContent_1uzmg_51 ._musicTitle_1uzmg_66{text-align:center;font-size:.42667rem}._musicContent_1uzmg_51 ._musicImg_1uzmg_70,._musicContent_1uzmg_51 ._musicImg_1uzmg_70 img{width:100%}._musicContent_1uzmg_51 ._finch_1uzmg_76{width:4rem;margin:2.13333rem auto 0}._musicContent_1uzmg_51 ._finchLoad_1uzmg_80{text-align:center;color:#333;font-size:.4rem;margin-top:.10667rem}._musicContent_1uzmg_51 iframe{border:none;width:100%;height:13.33333rem;overflow:hidden}._musicContent_1uzmg_51 iframe body ::-webkit-scrollbar-thumb{background-color:#efeff0;border:.02667rem solid transparent;background-clip:padding-box;border-radius:.13333rem}._collectCell_1uzmg_98{margin:.26667rem .42667rem 0;background:#ffffff;border-radius:.26667rem;box-shadow:0 0 .16rem rgba(229,229,229,.7);overflow:hidden}._videoOperation_1uzmg_105{position:absolute;left:0;right:0;bottom:.13333rem;z-index:1}._audition_1uzmg_112{display:flex;align-items:center;margin:.26667rem .42667rem 0;background:linear-gradient(180deg,#fff0d9 0%,#ffdfb8 100%);border-radius:.42667rem;padding:.18667rem .32rem;font-size:.32rem;font-weight:600;color:#ff731d;height:.48rem}._audition_1uzmg_112 img{margin-top:-.05333rem;width:.56rem;height:.4rem;margin-right:.29333rem}._collect_1uzmg_98{display:flex;align-items:center;justify-content:space-between;padding:.29333rem;font-size:.37333rem;color:#666}._collect_1uzmg_98 ._userInfo_1uzmg_138{display:flex;align-items:center;padding:.08rem .16rem;background:#d5f3ee;border-radius:.42667rem}._collect_1uzmg_98 ._userInfo_1uzmg_138 img{width:.69333rem;height:.69333rem;border-radius:50%}._collect_1uzmg_98 ._userInfo_1uzmg_138 span{padding-left:.21333rem;max-width:1.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2dc7aa}._collect_1uzmg_98 ._collectSection_1uzmg_158{display:flex;align-items:center}._collect_1uzmg_98 ._collectSection_1uzmg_158 img{margin-top:-.05333rem;margin-left:.13333rem;width:.48rem;height:.48rem}._collect_1uzmg_98 ._collectSection_1uzmg_158 .van-icon{font-size:.53333rem;margin-top:-.05333rem;margin-left:.13333rem;color:var(--van-primary)}._collect_1uzmg_98 ._collectSection_1uzmg_158:first-child{margin-right:.37333rem}._lookAlbum_1uzmg_177{padding:.45333rem .53333rem;margin-bottom:.4rem;font-size:.37333rem;color:#333;line-height:.53333rem;display:flex;align-items:center;justify-content:space-between}._lookAlbum_1uzmg_177>div{display:flex;align-items:center;line-height:1}._lookAlbum_1uzmg_177>div img{width:.53333rem;height:.53333rem;margin-right:.26667rem}._bg_1uzmg_33{position:relative;height:100%;padding:.42667rem;z-index:11}._musicContainer_1uzmg_203{position:relative;z-index:12;border-radius:.48rem .48rem 0 0;background-color:#fff;overflow-y:auto}._shareMate_1uzmg_210{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .32rem;background:#ffffff;border-radius:.26667rem}._shareMate_1uzmg_210 ._icon_1uzmg_220{width:.96rem;height:.96rem;border-radius:.26667rem}._shareMate_1uzmg_210 ._info_1uzmg_225{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._shareMate_1uzmg_210 ._info_1uzmg_225>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600;width:5.33333rem}._shareMate_1uzmg_210 ._info_1uzmg_225>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._shareMate_1uzmg_210 ._tagDiscount_1uzmg_241{position:absolute;top:-.69333rem;left:.4rem;padding:.05333rem .26667rem .02667rem;height:.61333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.37333rem;font-weight:600;color:#fff;line-height:.53333rem}._shareVip_1uzmg_254{position:relative;margin-top:.93333rem;display:flex;flex:1;align-items:center;padding:.18667rem;background:#ffffff;border-radius:.26667rem}._shareVip_1uzmg_254 ._icon_1uzmg_220{width:1.92rem;height:1.92rem;border-radius:.26667rem}._shareVip_1uzmg_254 ._info_1uzmg_225{margin-left:.16rem;flex:1;word-break:break-all}._shareVip_1uzmg_254 ._info_1uzmg_225>h4{color:var(--music-list-item-title-color);font-size:.42667rem;font-weight:600}._shareVip_1uzmg_254 ._info_1uzmg_225>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._tagDiscount_1uzmg_241{position:absolute;top:-.61333rem;left:.4rem;padding:0 .26667rem;height:.61333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.37333rem;font-weight:600;color:#fff;line-height:.64rem}._buttonDiscount_1uzmg_296{position:absolute;top:-.48rem;right:.4rem;padding:0 .13333rem;height:.48rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.32rem;font-weight:600;color:#fff;line-height:.53333rem}._pImg_1uzmg_309{width:1.22667rem;height:1.22667rem;border-radius:.26667rem;overflow:hidden;flex-shrink:0}._musicInfo_1uzmg_316{padding-top:.61333rem!important;padding-bottom:.61333rem!important;margin-bottom:.26667rem}._musicInfo_1uzmg_316 ._coomposer_1uzmg_321{padding-top:.05333rem;padding-left:.16rem;max-width:3.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._musicInfo_1uzmg_316 ._tag_1uzmg_241{flex-shrink:0;padding:.05333rem .10667rem 0;border-radius:.10667rem}._musicInfo_1uzmg_316 ._tag_1uzmg_241+._tag_1uzmg_241{margin-left:.13333rem}._musicInfo_1uzmg_316 ._info_1uzmg_225{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._musicInfo_1uzmg_316 ._info_1uzmg_225>h4{font-size:.42667rem;font-weight:700;color:#1a1a1a;width:4.26667rem;padding-bottom:.08rem}._musicInfo_1uzmg_316 ._info_1uzmg_225>p{font-size:.32rem;color:#999;line-height:.45333rem}._musicInfo_1uzmg_316 ._download_1uzmg_355{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:.32rem}._musicInfo_1uzmg_316 ._download_1uzmg_355 img{height:.64rem;width:.64rem}._musicInfo_1uzmg_316 ._download_1uzmg_355 ._iconExchange_1uzmg_366{display:flex;align-items:center;justify-content:center;background:#f6f6f6;border-radius:50%;font-size:.42667rem;width:.64rem;height:.64rem}._musicInfo_1uzmg_316 ._exquisiteFlag_1uzmg_376{width:.37333rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_1uzmg_316 ._songAlbum_1uzmg_381{width:.4rem;height:.4rem;margin-left:.13333rem;flex-shrink:0}._musicInfo_1uzmg_316 .van-cell__value{display:flex;justify-content:space-around}._colSticky_1uzmg_391{display:flex;align-items:center;justify-content:space-between}._colSticky_1uzmg_391 ._priceSection_1uzmg_396{font-size:.37333rem;font-weight:400;color:#999}._colSticky_1uzmg_391 ._priceSection_1uzmg_396 ._price_1uzmg_396{font-size:.58667rem;font-weight:700;color:#ff4e19}._colSticky_1uzmg_391 ._priceSection_1uzmg_396 ._price_1uzmg_396 i{font-style:normal;font-size:.42667rem}._buyBtn_1uzmg_410{--van-button-default-height: 1.12rem;flex:1;display:flex;align-items:center;justify-content:flex-end}._buyBtn_1uzmg_410 .van-button{padding:0 .58667rem;font-weight:600}._buyBtn_1uzmg_410 .van-button+.van-button{margin-left:.32rem}._buyBtn_1uzmg_410 ._primry_1uzmg_424{box-shadow:0 .05333rem .18667rem rgba(45,199,170,.25)}._buyBtn_1uzmg_410 ._member_1uzmg_427{box-shadow:0 .05333rem .18667rem rgba(187,156,83,.25)}._functionSection_1uzmg_430{display:flex}._empty_1uzmg_433{margin:0 auto;font-size:.37333rem;color:#999;line-height:.53333rem;text-align:center;padding-top:1.6rem}._empty_1uzmg_433 ._emptyImg_1uzmg_441{width:4.58667rem}._staffContainer_1uzmg_444{padding:.4rem .4rem .64rem}._staffContainer_1uzmg_444 ._staffTitle_1uzmg_447{padding-bottom:.66667rem;font-size:.42667rem;color:#1a1a1a;line-height:.58667rem}._staffContainer_1uzmg_444 ._staffImg_1uzmg_453{width:.85333rem;height:.53333rem}._staffContainer_1uzmg_444 ._name_1uzmg_457{padding-left:.45333rem;font-size:.34667rem;font-weight:500;color:#333}._staffContainer_1uzmg_444 ._boxStyle_1uzmg_463{background:transparent!important;width:.4rem;height:.4rem;border:transparent!important}._staffContainer_1uzmg_444 ._active_1uzmg_469{background:#f7f8f9;border-radius:.21333rem}._staffContainer_1uzmg_444 ._active_1uzmg_469 ._name_1uzmg_457{color:#2dc7aa}._staffContainer_1uzmg_444 .van-cell{padding:.24rem .42667rem;margin-bottom:.16rem}._staffContainer_1uzmg_444 .van-cell:hover,._staffContainer_1uzmg_444 .van-cell:active,._staffContainer_1uzmg_444 .van-cell.active{background:#f7f8f9;border-radius:.21333rem}._staffContainer_1uzmg_444 .van-cell:hover .name,._staffContainer_1uzmg_444 .van-cell:active .name,._staffContainer_1uzmg_444 .van-cell.active .name{color:#2dc7aa}._staffContainer_1uzmg_444 .van-cell:last-child{margin-bottom:0}._staffContainer_1uzmg_444 .van-cell__value{display:flex;justify-content:flex-end}._staffContainer_1uzmg_444 .van-checkbox{overflow:inherit;height:.48rem;display:flex;align-items:center;justify-content:flex-end}._staffContainer_1uzmg_444 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:middle}._staffContainer_1uzmg_444 .van-checkbox__label{line-height:.4rem}\n',document.head.appendChild(u),System.register(["./icon_uploader-legacy.99fa0203.js","./icon-xin-legacy.785d3d33.js","./icon_album-legacy.498b9a9b.js","./icon_album_active-legacy.890b9402.js","./icon_exquisite-legacy.ccb5dcc0.js","./icon_music_active-legacy.aba070d7.js","./ResizeObserver.es-legacy.550cdd79.js","./index-legacy.68fecbe3.js","./index-legacy.ad89ccc9.js","./index-legacy.1117f73f.js","./index-legacy.15e51dab.js","./index-legacy.56dfb9ea.js","./index-legacy.054cb2f1.js","./index-legacy.d00b2744.js","./index-legacy.4ef6bb26.js","./vue3-lottie.es-legacy.4068df99.js","./music-legacy.df2ba245.js","./index-legacy.ccce7afc.js","./orderStatus-legacy.3a610e68.js","./icon_share-legacy.69f1973c.js","./download-legacy.0c4dcee0.js","./index-legacy.29f87052.js","./icon_teacher-legacy.42ba77b1.js","./icon_checkbox_default-legacy.e33240bc.js","./plyr.min-legacy.2c76eff7.js","./plyr-legacy.2bfabaee.js","./instrument-legacy.841a4c41.js","./oss-file-upload-legacy.5c611a5a.js","./index-legacy.4a1f68ca.js","./index-legacy.adbbdb37.js","./index-legacy.b6ddf8f7.js","./code-down-load-legacy.d088c326.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js"],(function(t){"use strict";var n,a,i,u,l,c,s,m,d,f,g,_,p,v,h,b,y,z,x,w,k,C,I,S,j,T,R,O,E,N,A,P,D,B,L,M,X,U,V,q,F,H,W,J,G,K,Q,Y,$,Z,ee,te,ne,re,ae,ie,oe,ue,le,ce,se,me,de,fe,ge,_e,pe,ve,he,be,ye,ze,xe,we,ke,Ce,Ie;return{setters:[function(e){n=e._,a=e.a,i=e.b,u=e.c,l=e.d,c=e.e,s=e.f},function(e){m=e._},function(e){d=e.i,f=e._},function(e){g=e._},function(e){_=e._},function(e){p=e._},function(e){v=e.d,h=e.Q,b=e.P,y=e.U,z=e.S,x=e.a3,w=e.V,k=e.Y,C=e.bE,I=e.W,S=e.j,j=e.A,T=e.F,R=e.T,O=e.N,E=e.f,N=e.g,A=e.B,P=e.bA,D=e.aS,B=e.X,L=e.y,M=e.D,X=e.n,U=e.bi,V=e.bp},function(e){q=e.C},function(e){F=e.C},function(e){H=e.C},function(e){W=e.I},function(e){J=e.R,G=e.a},function(e){K=e.T},function(){},function(){},function(e){Q=e.V},function(e){Y=e.g,$=e.m},function(e){Z=e.C},function(e){ee=e.o},function(e){te=e.i},function(e){ne=e.i,re=e.a,ae=e.A,ie=e.e,oe=e.b,ue=e.c,le=e.d,ce=e.D,se=e.s,me=e.f,de=e.g},function(e){fe=e.C},function(e){ge=e.i},function(e){_e=e.a,pe=e.i},function(e){ve=e.P},function(){},function(e){he=e.g,be=e.s,ye=e.a,ze=e.f,xe=e.o},function(e){we=e.g,ke=e.o},function(e){Ce=e.e},function(e){Ie=e.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){var Se={base:"_base_1uzmg_1",detail:"_detail_1uzmg_4",shareBtn:"_shareBtn_1uzmg_21",bgImg:"_bgImg_1uzmg_33",bgContent:"_bgContent_1uzmg_42",musicContent:"_musicContent_1uzmg_51",musicTitle:"_musicTitle_1uzmg_66",musicImg:"_musicImg_1uzmg_70",finch:"_finch_1uzmg_76",finchLoad:"_finchLoad_1uzmg_80",collectCell:"_collectCell_1uzmg_98",videoOperation:"_videoOperation_1uzmg_105",audition:"_audition_1uzmg_112",collect:"_collect_1uzmg_98",userInfo:"_userInfo_1uzmg_138",collectSection:"_collectSection_1uzmg_158",lookAlbum:"_lookAlbum_1uzmg_177",bg:"_bg_1uzmg_33",musicContainer:"_musicContainer_1uzmg_203",shareMate:"_shareMate_1uzmg_210",icon:"_icon_1uzmg_220",info:"_info_1uzmg_225",tagDiscount:"_tagDiscount_1uzmg_241",shareVip:"_shareVip_1uzmg_254",buttonDiscount:"_buttonDiscount_1uzmg_296",pImg:"_pImg_1uzmg_309",musicInfo:"_musicInfo_1uzmg_316",coomposer:"_coomposer_1uzmg_321",tag:"_tag_1uzmg_241",download:"_download_1uzmg_355",iconExchange:"_iconExchange_1uzmg_366",exquisiteFlag:"_exquisiteFlag_1uzmg_376",songAlbum:"_songAlbum_1uzmg_381",colSticky:"_colSticky_1uzmg_391",priceSection:"_priceSection_1uzmg_396",price:"_price_1uzmg_396",buyBtn:"_buyBtn_1uzmg_410",primry:"_primry_1uzmg_424",member:"_member_1uzmg_427",functionSection:"_functionSection_1uzmg_430",empty:"_empty_1uzmg_433",emptyImg:"_emptyImg_1uzmg_441",staffContainer:"_staffContainer_1uzmg_444",staffTitle:"_staffTitle_1uzmg_447",staffImg:"_staffImg_1uzmg_453",name:"_name_1uzmg_457",boxStyle:"_boxStyle_1uzmg_463",active:"_active_1uzmg_469"},je=t("getAssetsHomeFile",(function(e){var t="../component/images/".concat(e);return{"../component/images/collection.png":n,"../component/images/collection_active.png":a,"../component/images/icon-xin.png":m,"../component/images/icon_ai.png":i,"../component/images/icon_album.png":f,"../component/images/icon_album_active.png":g,"../component/images/icon_author.png":u,"../component/images/icon_download.png":l,"../component/images/icon_exquisite.png":_,"../component/images/icon_music_active.png":p,"../component/images/icon_share.png":c,"../component/images/icon_uploader.png":s}[t].default}));t("default",v({name:"MusicDetail",setup:function(){localStorage.setItem("behaviorId",Y());var t=h(),n=b(),a=y(!1),i=Number(n.query.activityId)||0,u=y(i),l=y(!1),c=y(null),s=y(null),m=y("0"),f=y(null),g=y(""),_=y([]),p=y([]),v=y([]),Te=y([]),Re=y({first:!1,fixed:!1,staff:!1});y("");var Oe=y(!1),Ee=z({status:!1,radio:"staff"}),Ne={FREE:{color:"#01B84F",text:"免费"},VIP:{color:"#CD863E",text:"会员"},CHARGE:{color:"#3591CE",text:"点播"}},Ae=function(e){Ee.radio=e,Ee.status=!1,"first"!=e||Re.value.first?"fixed"!=e||Re.value.fixed?Re.value.staff||(a.value=!1,it("staff",et.musicXml)):(a.value=!1,it("fixed",et.musicXml)):(a.value=!1,it("first",et.musicXml))};x((function(){return Ee.radio}),(function(e){_.value="first"==e?p.value:"fixed"==e?v.value:Te.value}));var Pe=function(){var e=o(regeneratorRuntime.mark((function e(r){var i,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.value){e.next=2;break}return e.abrupt("return");case 2:return a.value=!0,l.value=!1,e.prev=4,e.next=7,L.get("/music/sheet/detail/".concat(n.query.id),{prefix:"TEACHER"===N.platformType?"/api-teacher":"/api-student"});case 7:o=e.sent,f.value=o.data,u=o.data.background,g.value=u&&u.length>0?u[0].audioFileUrl:"",_.value=o.data.musicImg?o.data.musicImg.split(","):[],p.value=o.data.firstTone?o.data.firstTone.split(","):[],v.value=o.data.fixedTone?o.data.fixedTone.split(","):[],Te.value=o.data.musicImg?o.data.musicImg.split(","):[],p.value.length>0&&(Re.value.first=!0),v.value.length>0&&(Re.value.fixed=!0),Te.value.length>0&&(Re.value.staff=!0),B((function(){nt()})),"DOING"===o.data.auditStatus&&M.confirm({message:"曲目审核中",showConfirmButton:!0,showCancelButton:!1,confirmButtonColor:"var(--van-primary)"}).then((function(){E().isApp?X({api:"goBack"}):t.back()})),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(4),l.value=!0;case 25:"CONCERT"!==(null===(i=f.value)||void 0===i?void 0:i.musicSheetType)&&(a.value=!1);case 26:case"end":return e.stop()}}),e,null,[[4,22]])})));return function(t){return e.apply(this,arguments)}}(),De=function(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),a=r.length,i=new Uint8Array(a);a--;)i[a]=r.charCodeAt(a);return new Blob([i],{type:n})},Be=y(null),Le=y(null),Me=y(0),Xe=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=["play-large","play","progress","captions","duration"],Be.value=new ve(Le.value,{controls:n}),e.next=4,L.get("/api-student/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_free_rate"}});case 4:r=e.sent,Me.value=(null===(t=r.data[0])||void 0===t?void 0:t.paramValue)||0,Be.value.on("timeupdate",(function(){var e=Be.value,t=e.duration*Me.value/100||0;e.currentTime>=t&&!Ke.value.play&&e.stop()}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ue=function(){var e=o(regeneratorRuntime.mark((function e(t){var i,o,u,l,c,s,m,d,f,g,p,v,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("musicStaffRender"!==(null===(i=t.data)||void 0===i?void 0:i.api)){e.next=27;break}o=t.data.osmdImg,_.value=[],u=[],l=0;case 5:if(!(l0&&S(W,{class:Se.songAlbum,src:je("icon_album_active.png")},null),S("span",{class:Se.coomposer},[null===(r=f.value)||void 0===r?void 0:r.composer])])])},value:function(){var e,t,n;return S(T,null,[null!==(e=f.value)&&void 0!==e&&e.notation?S("span",{class:Se.download,onClick:function(){Ee.status=!0},style:{display:"CONCERT"!==(null===(t=f.value)||void 0===t?void 0:t.musicSheetType)?"":"none"}},[S("img",{src:ne},null),S("span",null,[j("转谱")])]):null,S("span",{class:Se.download,onClick:function(){_.value.length>0?Oe.value=!0:R("暂无图片")}},[S("img",{src:re},null),S("span",null,[j("下载曲谱")])]),S("span",{style:{display:"CONCERT"===(null===(n=f.value)||void 0===n?void 0:n.musicSheetType)?"":"none"},class:Se.download,onClick:function(){et.open=!0}},[S(O,{class:Se.iconExchange,name:"exchange"},null),S("span",null,[j("切换乐器")])])])}}),S("div",{class:Se.musicContent},[S("p",{class:Se.musicTitle},[(null!==(i=f.value)&&void 0!==i&&i.musicSheetName?null===(o=f.value)||void 0===o?void 0:o.musicSheetName:"")+(et.instrumentName?"(".concat(et.instrumentName,")"):"")]),"CONCERT"!==(null===(l=f.value)||void 0===l?void 0:l.musicSheetType)&&Re.value[Ee.radio]?S(T,null,[_.value.length>0?S("div",{class:Se.musicImg},[S("img",{src:_.value[0],alt:""},null)]):a.value?S(T,null,[S(Q,{animationData:ae,class:Se.finch},null),S("p",{class:Se.finchLoad},[j("加载中...")])]):S("div",{class:Se.empty},[S(W,{src:ie,class:Se.emptyImg},null),S("p",{class:Se.emptyTip},[j("暂无乐谱预览图")])])]):S(T,null,[a.value&&S(T,null,[S(Q,{animationData:ae,class:Se.finch},null),S("p",{class:Se.finchLoad},[j("加载中...")])]),S("iframe",{id:"staffIframeRef",style:{opacity:a.value?0:1},src:et.iframeSrc,onLoad:function(){Re.value[Ee.radio]?rt():Ae(Ee.radio)}},null)]),S("div",{class:Se.videoOperation},[g.value&&S(T,null,[!Ke.value.play&&100!=Me.value&&0!=Me.value&&S("div",{class:[Se.audition]},[S("img",{src:oe},null),S("span",null,[j("每首曲目可试听"),Me.value,j("%")])]),S("div",{class:[Se.audio,Se.collectCell]},[S("audio",{id:"player",controls:!0,ref:Le},[S("source",{src:g.value,type:"audio/mp3"},null)])])]),S("div",{class:[Se.collect,Se.collectCell]},[S("div",{class:[Se.userInfo],onClick:function(){var e,n;E().isApp&&"TEACHER"===(null===(e=f.value)||void 0===e?void 0:e.sourceType)&&"STUDENT"===N.platformType&&t.push({path:"/teacherHome",query:{teacherId:null===(n=f.value)||void 0===n?void 0:n.userId,tabs:"music"}})}},[S("img",{src:(null===(m=f.value)||void 0===m?void 0:m.userAvatar)||ge},null),S("span",null,[null===(p=f.value)||void 0===p?void 0:p.userName])]),S("div",{class:Se.functionSection},[S("div",{class:[Se.collectSection],onClick:function(){return Ve()}},[S("span",null,[null===(v=f.value)||void 0===v?void 0:v.favoriteCount,j("人收藏")]),S("img",{src:null!==(h=f.value)&&void 0!==h&&h.favorite?ue:le},null)]),"TEACHER"===N.platformType&&S("div",{class:[Se.collectSection],onClick:function(){var e;null!==(e=f.value)&&void 0!==e&&e.coursewareStatus?Fe():qe()}},[S("span",null,[null!==(b=f.value)&&void 0!==b&&b.coursewareStatus?"移出课件":"添加到课件"]),null!==(y=f.value)&&void 0!==y&&y.coursewareStatus?S(O,{name:"clear"},null):S(O,{name:"add",size:18},null)])])])])]),S("div",{class:[Se.lookAlbum,Se.collectCell],onClick:function(){var e,n;t.push({path:"/look-album-list",query:{id:null===(e=f.value)||void 0===e?void 0:e.id,musicSubject:null===(n=f.value)||void 0===n?void 0:n.musicSubject}})}},[S("div",null,[S("img",{src:d},null),S("span",null,[j("进入曲目所在平台专辑列表")])]),S(O,{name:"arrow",size:16,color:"#666"},null)])]),(null===(z=f.value)||void 0===z?void 0:z.id)&&S(Z,{position:"bottom",background:"white",varName:"--bottom-height"},{default:function(){var e;return[S("div",{ref:s},[Ke.value.play||"TEACHER"===N.platformType&&Ke.value.hasTenantAlbum?S(A,{round:!0,block:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:function(){Ce((function(){Be.value&&Be.value.stop();var e=ot.value.find((function(e){return e.value===et.partIndex}));$(f.value,(function(){}),{"part-index":(null==e?void 0:e.xmlValue)||0,sett:Ee.radio})}),500)()}},{default:function(){return[j("立即练习")]}}):S("div",{class:Se.colSticky},[Ke.value.charge&&S("div",{class:Se.priceSection},[S("span",null,[j("点播价:")]),S("span",{class:Se.price},[S("i",null,[j("¥")]),P(null===(e=f.value)||void 0===e?void 0:e.musicPrice)])]),S("div",{class:[Se.buyBtn]},[Ke.value.charge&&S(A,{round:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",class:Se.primary,onClick:He},{default:function(){return[j("立即点播")]}}),Ke.value.vip&&S(A,{round:!0,block:!Ke.value.charge,type:"primary",color:"linear-gradient(180deg, #F7BD8D 0%, #CD8806 100%)",class:Se.memeber,onClick:function(){t.push({path:"/memberCenter",query:r({},n.query)})}},{default:function(){return[u.value>0&&S("div",{class:[Se.buttonDiscount]},[j("专属优惠")]),j("开通会员")]}})])])])]}}),S(D,{show:Qe.value,"onUpdate:show":function(e){return Qe.value=e},style:{background:"transparent"},teleport:"body"},{default:function(){var e;return[S(fe,{teacherId:null===(e=N.user.data)||void 0===e?void 0:e.userId,shareUrl:Ye.value,shareType:"music"},{default:function(){var e,t,n;return[S("div",{class:Se.shareMate},[1===$e.value&&S("div",{class:Se.tagDiscount},[j("专属优惠")]),S("img",{class:Se.icon,crossorigin:"anonymous",src:(null===(e=f.value)||void 0===e?void 0:e.titleImg)+"?t=".concat(+new Date)},null),S("div",{class:Se.info},[S("h4",{class:"van-multi-ellipsis--l2"},[null===(t=f.value)||void 0===t?void 0:t.musicSheetName]),S("p",null,[j("作曲人:"),null===(n=f.value)||void 0===n?void 0:n.composer])])])]}})]}}),S(D,{show:Oe.value,"onUpdate:show":function(e){return Oe.value=e},position:"bottom",round:!0},{default:function(){return[Oe.value&&S(ce,{imgList:JSON.parse(JSON.stringify(_.value)),musicSheetName:f.value.musicSheetName},null)]}}),S(D,{show:Ee.status,"onUpdate:show":function(e){return Ee.status=e},teleport:"body",closeable:!0,style:{width:"80%"},round:!0},{default:function(){return[S("div",{class:Se.staffContainer},[S("div",{class:Se.staffTitle},[j("选择转换曲谱")]),S(J,{modelValue:Ee.radio,"onUpdate:modelValue":function(e){return Ee.radio=e}},{default:function(){return[S(H,{border:!1},{default:function(){return[S(F,{center:!0,border:!1,class:"staff"===Ee.radio?Se.active:"",onClick:function(){return Ae("staff")}},{icon:function(){return S(W,{src:se,class:Se.staffImg},null)},title:function(){return S("span",{class:Se.name},[j("五线谱")])},value:function(){return S(G,{name:"staff"},{icon:function(e){return S(O,{class:Se.boxStyle,size:16,name:e.checked?_e:pe},null)}})}}),S(F,{center:!0,border:!1,class:"first"===Ee.radio?Se.active:"",onClick:function(){return Ae("first")}},{icon:function(){return S(W,{src:me,class:Se.staffImg},null)},title:function(){return S("span",{class:Se.name},[j("简谱-首调")])},value:function(){return S(G,{name:"first"},{icon:function(e){return S(O,{class:Se.boxStyle,size:16,name:e.checked?_e:pe},null)}})}}),S(F,{center:!0,border:!1,class:"fixed"===Ee.radio?Se.active:"",onClick:function(){return Ae("fixed")}},{icon:function(){return S(W,{src:de,class:Se.staffImg},null)},title:function(){return S("span",{class:Se.name},[j("简谱-固定调")])},value:function(){return S(G,{name:"fixed"},{icon:function(e){return S(O,{class:Se.boxStyle,size:16,name:e.checked?_e:pe},null)}})}})]}})]}})])]}}),S(D,{teleport:"body",position:"bottom",round:!0,show:et.open,"onUpdate:show":function(e){return et.open=e}},{default:function(){return[S(Ie,{columns:ot.value,onConfirm:function(e){et.open=!1,et.partIndex=e.value,et.partXmlIndex=e.xmlValue,_.value=[],B((function(){at()}))},onCancel:function(){return et.open=!1}},null)]}})])}}}))}}}))}();