index.897683a4.js 21 KB

1
  1. import{_ as Ve,a as Me,b as je,c as $e,d as He,e as ze,f as We}from"./icon_uploader.5826c51d.js";import{_ as Ge}from"./icon-xin.575e2987.js";import{i as Je,_ as Ke}from"./icon_album.eca1da54.js";import{_ as Qe}from"./icon_album_active.a67a159e.js";import{_ as Ye}from"./icon_exquisite.7cf228c5.js";import{_ as Ze}from"./icon_music_active.5a84cf57.js";import{d as ea,Q as aa,P as ta,U as d,S as ge,a3 as sa,V as oa,Y as _e,bE as na,W as K,j as e,A as m,F as D,T as q,N as B,f as ye,g as b,B as Q,bA as la,aS as V,X as he,y as E,D as M,n as ra,bi as j,bp as ia}from"./ResizeObserver.es.f28023e0.js";import{C as ca}from"./index.bd375ca9.js";import{C as $}from"./index.3b2e70c8.js";import{C as ua}from"./index.2a22730e.js";import{I as A}from"./index.7a1af785.js";import{R as ma,a as Y}from"./index.697873a0.js";import{T as da}from"./index.af901340.js";import"./index.49ee134a.js";import"./index.c6c54752.js";import{V as xe}from"./vue3-lottie.es.7c2a1ab2.js";import{g as pa,m as fa}from"./music.96a1c334.js";import{C as Ce}from"./index.8c937010.js";import{o as h}from"./orderStatus.00354bd8.js";import{i as va}from"./icon_share.dff37aef.js";import{i as ga,a as _a,A as be,e as ya,b as ha,c as xa,d as Ca,D as ba,s as Ia,f as Sa,g as Ta}from"./download.12ca5c67.js";import{C as wa}from"./index.b76c8ebe.js";import{i as Ea}from"./icon_teacher.40b6f077.js";import{a as Z,i as ee}from"./icon_checkbox_default.2fe5d57e.js";import{P as Aa}from"./plyr.min.0a479001.js";/* empty css */import{g as R,s as Fa,a as ae,f as te,o as se}from"./instrument.51cc2f20.js";import{g as ka,o as Na}from"./oss-file-upload.8a97fc68.js";import{e as Ba}from"./index.9a41251d.js";import{P as Da}from"./index.da2fb993.js";import"./index.966d1893.js";import"./code-down-load.7b8e3080.js";import"./logo.bcac726b.js";import"./browser.8379baf6.js";import"./html2canvas.esm.3d083717.js";const La="_base_121xa_1",Oa="_detail_121xa_4",Ra="_shareBtn_121xa_22",Pa="_bgImg_121xa_34",Ua="_bgContent_121xa_43",Xa="_musicContent_121xa_52",qa="_musicTitle_121xa_67",Va="_musicImg_121xa_71",Ma="_finch_121xa_77",ja="_finchLoad_121xa_81",$a="_collectCell_121xa_99",Ha="_videoOperation_121xa_106",za="_audition_121xa_113",Wa="_collect_121xa_99",Ga="_userInfo_121xa_139",Ja="_collectSection_121xa_159",Ka="_lookAlbum_121xa_178",Qa="_bg_121xa_34",Ya="_musicContainer_121xa_204",Za="_shareMate_121xa_211",et="_icon_121xa_221",at="_info_121xa_226",tt="_tagDiscount_121xa_242",st="_shareVip_121xa_255",ot="_buttonDiscount_121xa_297",nt="_pImg_121xa_310",lt="_musicInfo_121xa_317",rt="_coomposer_121xa_322",it="_tag_121xa_242",ct="_download_121xa_356",ut="_iconExchange_121xa_367",mt="_exquisiteFlag_121xa_377",dt="_songAlbum_121xa_382",pt="_colSticky_121xa_392",ft="_priceSection_121xa_397",vt="_price_121xa_397",gt="_buyBtn_121xa_411",_t="_primry_121xa_425",yt="_member_121xa_428",ht="_functionSection_121xa_431",xt="_empty_121xa_434",Ct="_emptyImg_121xa_442",bt="_staffContainer_121xa_445",It="_staffTitle_121xa_448",St="_staffImg_121xa_454",Tt="_name_121xa_458",wt="_boxStyle_121xa_464",Et="_active_121xa_470";var t={base:La,detail:Oa,shareBtn:Ra,bgImg:Pa,bgContent:Ua,musicContent:Xa,musicTitle:qa,musicImg:Va,finch:Ma,finchLoad:ja,collectCell:$a,videoOperation:Ha,audition:za,collect:Wa,userInfo:Ga,collectSection:Ja,lookAlbum:Ka,bg:Qa,musicContainer:Ya,shareMate:Za,icon:et,info:at,tagDiscount:tt,shareVip:st,buttonDiscount:ot,pImg:nt,musicInfo:lt,coomposer:rt,tag:it,download:ct,iconExchange:ut,exquisiteFlag:mt,songAlbum:dt,colSticky:pt,priceSection:ft,price:vt,buyBtn:gt,primry:_t,member:yt,functionSection:ht,empty:xt,emptyImg:Ct,staffContainer:bt,staffTitle:It,staffImg:St,name:Tt,boxStyle:wt,active:Et};const Ie=F=>{const I=`../component/images/${F}`;return{"../component/images/collection.png":Ve,"../component/images/collection_active.png":Me,"../component/images/icon-xin.png":Ge,"../component/images/icon_ai.png":je,"../component/images/icon_album.png":Ke,"../component/images/icon_album_active.png":Qe,"../component/images/icon_author.png":$e,"../component/images/icon_download.png":He,"../component/images/icon_exquisite.png":Ye,"../component/images/icon_music_active.png":Ze,"../component/images/icon_share.png":ze,"../component/images/icon_uploader.png":We}[I].default};var cs=ea({name:"MusicDetail",setup(){localStorage.setItem("behaviorId",pa());const F=aa(),I=ta(),g=d(!1),Se=Number(I.query.activityId)||0,Te=d(Se),oe=d(!1),ne=d(null),le=d(null),we=d("0"),s=d(null),P=d(""),x=d([]),H=d([]),z=d([]),W=d([]),S=d({first:!1,fixed:!1,staff:!1});d("");const U=d(!1),f=ge({status:!1,radio:"staff"}),re={FREE:{color:"#01B84F",text:"\u514D\u8D39"},VIP:{color:"#CD863E",text:"\u4F1A\u5458"},CHARGE:{color:"#3591CE",text:"\u70B9\u64AD"}},X=a=>{f.radio=a,f.status=!1,a=="first"&&!S.value.first?(g.value=!1,J("first",r.musicXml)):a=="fixed"&&!S.value.fixed?(g.value=!1,J("fixed",r.musicXml)):S.value.staff||(g.value=!1,J("staff",r.musicXml))};sa(()=>f.radio,a=>{a=="first"?x.value=H.value:a=="fixed"?x.value=z.value:x.value=W.value});const Ee=async a=>{var l;if(!g.value){g.value=!0,oe.value=!1;try{const o=await E.get(`/music/sheet/detail/${I.query.id}`,{prefix:b.platformType==="TEACHER"?"/api-teacher":"/api-student"});s.value=o.data;const i=o.data.background;P.value=i&&i.length>0?i[0].audioFileUrl:"",x.value=o.data.musicImg?o.data.musicImg.split(","):[],H.value=o.data.firstTone?o.data.firstTone.split(","):[],z.value=o.data.fixedTone?o.data.fixedTone.split(","):[],W.value=o.data.musicImg?o.data.musicImg.split(","):[],H.value.length>0&&(S.value.first=!0),z.value.length>0&&(S.value.fixed=!0),W.value.length>0&&(S.value.staff=!0),he(()=>{Ue()}),o.data.auditStatus==="DOING"&&M.confirm({message:"\u66F2\u76EE\u5BA1\u6838\u4E2D",showConfirmButton:!0,showCancelButton:!1,confirmButtonColor:"var(--van-primary)"}).then(()=>{ye().isApp?ra({api:"goBack"}):F.back()})}catch{oe.value=!0}((l=s.value)==null?void 0:l.musicSheetType)!=="CONCERT"&&(g.value=!1)}},Ae=a=>{const l=a.split(","),o=l[0].match(/:(.*?);/)[1],i=atob(l[1]);let u=i.length;const p=new Uint8Array(u);for(;u--;)p[u]=i.charCodeAt(u);return new Blob([p],{type:o})},L=d(null),ie=d(null),O=d(0),Fe=async()=>{var o;const a=["play-large","play","progress","captions","duration"];L.value=new Aa(ie.value,{controls:a});const l=await E.get("/api-student/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_free_rate"}});O.value=((o=l.data[0])==null?void 0:o.paramValue)||0,L.value.on("timeupdate",()=>{const i=L.value,u=i.duration*O.value/100||0;i.currentTime>=u&&!T.value.play&&i.stop()})},ce=async a=>{var l;if(((l=a.data)==null?void 0:l.api)==="musicStaffRender"){const o=a.data.osmdImg;x.value=[];const i=[];for(let u=0;u<o.length;u++){const p=await Fa(o[u].img,o[u].width,o[u].height),_=I.query.id+b.user.data.userId+ +new Date+".png",k={filename:_,bucketName:"cloud-coach",postData:{filename:_,acl:"public-read",key:_}},{data:C}=await ka(k,!0),y={policy:C.policy,signature:C.signature,key:_,KSSAccessKeyId:C.kssAccessKeyId,acl:"public-read",name:_},w=Ae(p),n=ia("cloud-coach"),c=await Na(n,{...y,file:w});i.push(c)}x.value=i,g.value=a.data.loading}};oa(async()=>{await Ee();const{height:a}=_e(ne),l=_e(le);we.value=a+l.height,P.value&&Fe(),window.addEventListener("message",ce)}),na(()=>{window.removeEventListener("message",ce)});const ke=async()=>{var a,l,o;try{await E.post("/music/sheet/favorite/"+((a=s.value)==null?void 0:a.id),{prefix:b.platformType==="TEACHER"?"/api-teacher":"/api-student"}),s.value.favorite=(l=s.value)!=null&&l.favorite?0:1,s.value.favoriteCount=(o=s.value)!=null&&o.favorite?s.value.favoriteCount+1:s.value.favoriteCount-1<0?0:s.value.favoriteCount-1,setTimeout(()=>{var i;q((i=s.value)!=null&&i.favorite?"\u6536\u85CF\u6210\u529F":"\u53D6\u6D88\u6536\u85CF\u6210\u529F")},100)}catch{}},Ne=async()=>{var a;try{const l=await E.post("/api-teacher/courseCourseware/submit",{data:{musicSheetId:s.value.id,clientType:"TEACHER",userId:(a=b.user.data)==null?void 0:a.userId}});setTimeout(()=>{s.value.coursewareId=l.data.id||"",q("\u6DFB\u52A0\u6210\u529F"),s.value.coursewareStatus=1},100)}catch{}},Be=async()=>{M.confirm({title:"\u63D0\u793A",message:"\u60A8\u662F\u5426\u786E\u5B9A\u79FB\u9664\u8BFE\u4EF6",confirmButtonColor:"#269a93",cancelButtonText:"\u53D6\u6D88",confirmButtonText:"\u786E\u5B9A"}).then(async()=>{try{await E.post("/api-teacher/courseCourseware/remove/"+s.value.coursewareId,{data:{}}),setTimeout(()=>{q("\u79FB\u9664\u6210\u529F"),s.value.coursewareStatus=0},100)}catch{}})},De=async()=>{const a=s.value;h.orderObject.orderType="MUSIC",h.orderObject.orderName=a.musicSheetName,h.orderObject.orderDesc=a.musicSheetName,h.orderObject.actualPrice=a.musicPrice,h.orderObject.recomUserId=I.query.recomUserId||0,h.orderObject.activityId=I.query.activityId||0,h.orderObject.orderNo="",h.orderObject.orderList=[{orderType:"MUSIC",goodsName:a.musicSheetName,actualPrice:a.musicPrice,...a}];const o=(await E.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"MUSIC",bizId:a.id}})).data;o?M.confirm({title:"\u63D0\u793A",message:"\u60A8\u6709\u4E00\u4E2A\u672A\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8\uFF1F",confirmButtonColor:"#269a93",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8"}).then(async()=>{h.orderObject.orderNo=o.orderNo,h.orderObject.actualPrice=o.actualPrice,h.orderObject.discountPrice=o.discountPrice,h.orderObject.paymentConfig={...o.paymentConfig,paymentVendor:o.paymentVendor,paymentVersion:o.paymentVersion},ue()}).catch(()=>{M.close(),Le(o.orderNo)}):ue()},ue=()=>{const a=s.value;F.push({path:"/orderDetail",query:{orderType:"MUSIC",musicId:a.id}})},Le=async a=>{try{await E.post("/api-student/userOrder/orderCancel",{data:{orderNo:a}})}catch{}},Oe=K(()=>{var l;let a=(l=s.value)==null?void 0:l.paymentType;return typeof a=="string"?(a=a.split(","),a):[]}),T=K(()=>{var l;const a=s.value;return{hasTenantAlbum:!!((l=I.query)!=null&&l.tenantAlbumId),play:!!a.play,free:a==null?void 0:a.paymentType.includes("FREE"),charge:a==null?void 0:a.paymentType.includes("CHARGE"),vip:a==null?void 0:a.paymentType.includes("VIP"),buy:(a==null?void 0:a.orderStatus)==="PAID"}}),G=d(!1),me=d(""),de=d(0),Re=async()=>{var a,l,o,i;try{const u=await E.post("/api-teacher/open/musicShareProfit",{data:{bizId:(a=s.value)==null?void 0:a.id,userId:(l=b.user.data)==null?void 0:l.userId}});let p=location.origin+`/teacher/#/shareMusic?id=${(o=s.value)==null?void 0:o.id}&recomUserId=${(i=b.user.data)==null?void 0:i.userId}&userType=${b.platformType}`;u.data.discount===1&&(p+=`&activityId=${u.data.activityId}`),de.value=u.data.discount||0,console.log(p),me.value=p,G.value=!0;return}catch{}},r=ge({open:!1,iframeSrc:"",musicXml:"",instrumentName:"",iframeRef:null,partIndex:0,partXmlIndex:0,tempPartList:[],partList:[],xmlPartList:[]}),pe={\u957F\u7B1B:1,\u5355\u7C27\u7BA1:2,\u4E2D\u97F3\u5355\u7C27\u7BA1:3,\u4F4E\u97F3\u5355\u7C27\u7BA1:4,\u9AD8\u97F3\u8428\u514B\u65AF\u98CE:5,\u4E2D\u97F3\u8428\u514B\u65AF\u98CE:6,\u6B21\u4E2D\u97F3\u8428\u514B\u65AF\u98CE:7,\u4F4E\u97F3\u8428\u514B\u65AF\u98CE:8,\u5C0F\u53F7:9,\u957F\u53F7:10,\u5706\u53F7:11,\u5927\u53F7:12,\u4E0A\u4F4E\u97F3\u53F7:13},Pe=a=>(a.sort((l,o)=>(pe[R(l.track)]||20)-(pe[R(o.track)]||20)),a),Ue=async()=>{var a,l,o,i,u,p;try{if((a=s.value)!=null&&a.xmlFileUrl){const C=await j.get((l=s.value)==null?void 0:l.xmlFileUrl,{mode:"cors"});let y=[];const w=new DOMParser().parseFromString(C,"text/xml");for(const c of w.getElementsByTagName("part-name"))c.textContent&&y.push(c.textContent);y=y.filter(c=>{var v;return!((v=c==null?void 0:c.toLocaleUpperCase())!=null&&v.includes("COMMON"))});const n=[];for(let c=0;c<y.length;c++)n.push({name:y[c],value:c});r.xmlPartList=n}r.iframeSrc=`${location.origin}${location.pathname}osmd/index.html`,r.musicXml=((o=s.value)==null?void 0:o.xmlFileUrl)||"";const _=((i=s.value)==null?void 0:i.background)||[],k=[];r.xmlPartList.forEach(C=>{const y=_.find(w=>w.track===C.name);y&&k.push({...y,index:C.value})}),r.partList=k,r.tempPartList=JSON.parse(JSON.stringify(r.partList)),r.partList=Pe(r.partList),r.partXmlIndex=r.partList[0].index||0,r.instrumentName=((u=s.value)==null?void 0:u.musicSheetType)==="CONCERT"?R((p=r.partList[r.partIndex])==null?void 0:p.track):""}catch{}},Xe=async()=>{const a=document.getElementById("staffIframeRef");if(a&&a.contentWindow.renderXml){const l=await j.get(r.musicXml,{mode:"cors"}),o=ae(l),i=te(o.parsedXML),u=se(i,r.partXmlIndex);a.contentWindow.renderXml(u,0)}},qe=async()=>{var l;const a=document.getElementById("staffIframeRef");if(a&&a.contentWindow.renderXml){g.value=!0;const o=await j.get(r.musicXml,{mode:"cors"}),i=ae(o),u=te(i.parsedXML),p=se(u,r.partXmlIndex);a.contentWindow.renderXml(p,0),r.instrumentName=R((l=r.partList[r.partIndex])==null?void 0:l.track)}},J=async(a,l)=>{const o=document.getElementById("staffIframeRef");if(o&&o.contentWindow.renderXml){g.value=!0;const i=await j.get(r.musicXml,{mode:"cors"}),u=ae(i),p=te(u.parsedXML),_=se(p,r.partXmlIndex);o.contentWindow.resetRenderPage(a,_)}},fe=K(()=>r.partList.map((a,l)=>{var i;const o=((i=s.value)==null?void 0:i.musicSheetType)==="CONCERT"?R(a.track):"";return{text:a.track+(o?`(${o})`:""),value:l,xmlValue:a.index,track:a.track}}));return()=>{var a,l,o,i,u,p,_,k,C,y,w;return e("div",{class:t.detail},[e(Ce,{position:"top"},{default:()=>{var n;return[e("div",{ref:ne},[e(ca,{background:"transparent",border:!1,isFixed:!1,color:"#fff",title:(n=s.value)==null?void 0:n.musicSheetName,backIconColor:"white"},{right:()=>e("div",{class:t.shareBtn,style:{color:"#fff"},onClick:Re},[e(A,{src:va},null),m("\u5206\u4EAB")])})])]}}),e("img",{class:t.bgImg,src:(a=s.value)==null?void 0:a.titleImg},null),e("div",{class:t.bgContent},null),e("div",{class:t.musicContainer,style:{marginTop:"16px",height:"calc(100vh - var(--header-height) - var(--bottom-height) - 16px)"}},[e($,{border:!1,center:!0,class:t.musicInfo},{icon:()=>{var n;return e(A,{class:t.pImg,src:(n=s.value)==null?void 0:n.titleImg},null)},title:()=>{var n,c,v,N;return e("div",{class:t.info},[e("h4",{class:"van-ellipsis"},[(n=s.value)==null?void 0:n.musicSheetName]),e("p",{style:{display:"flex"}},[Oe.value.map(ve=>e(da,{style:{color:re[ve].color},class:t.tag,type:"success",plain:!0},{default:()=>[re[ve].text]})),((c=s.value)==null?void 0:c.exquisiteFlag)===1&&e(A,{class:t.exquisiteFlag,src:Ie("icon_exquisite.png")},null),((v=s.value)==null?void 0:v.albumNums)>0&&e(A,{class:t.songAlbum,src:Ie("icon_album_active.png")},null),e("span",{class:t.coomposer},[(N=s.value)==null?void 0:N.composer])])])},value:()=>{var n,c,v;return e(D,null,[(n=s.value)!=null&&n.notation?e("span",{class:t.download,onClick:()=>{f.status=!0},style:{display:((c=s.value)==null?void 0:c.musicSheetType)!=="CONCERT"?"":"none"}},[e("img",{src:ga},null),e("span",null,[m("\u8F6C\u8C31")])]):null,e("span",{class:t.download,onClick:()=>{x.value.length>0?U.value=!0:q("\u6682\u65E0\u56FE\u7247")}},[e("img",{src:_a},null),e("span",null,[m("\u4E0B\u8F7D\u66F2\u8C31")])]),e("span",{style:{display:((v=s.value)==null?void 0:v.musicSheetType)==="CONCERT"?"":"none"},class:t.download,onClick:()=>{r.open=!0}},[e(B,{class:t.iconExchange,name:"exchange"},null),e("span",null,[m("\u5207\u6362\u4E50\u5668")])])])}}),e("div",{class:t.musicContent},[e("p",{class:t.musicTitle},[((l=s.value)!=null&&l.musicSheetName?(o=s.value)==null?void 0:o.musicSheetName:"")+(r.instrumentName?`(${r.instrumentName})`:"")]),((i=s.value)==null?void 0:i.musicSheetType)==="CONCERT"||!S.value[f.radio]?e(D,null,[g.value&&e(D,null,[e(xe,{animationData:be,class:t.finch},null),e("p",{class:t.finchLoad},[m("\u52A0\u8F7D\u4E2D...")])]),e("iframe",{id:"staffIframeRef",style:{opacity:g.value?0:1},src:r.iframeSrc,onLoad:()=>{S.value[f.radio]?Xe():X(f.radio)}},null)]):e(D,null,[x.value.length>0?e("div",{class:t.musicImg},[e("img",{src:x.value[0],alt:""},null)]):g.value?e(D,null,[e(xe,{animationData:be,class:t.finch},null),e("p",{class:t.finchLoad},[m("\u52A0\u8F7D\u4E2D...")])]):e("div",{class:t.empty},[e(A,{src:ya,class:t.emptyImg},null),e("p",{class:t.emptyTip},[m("\u6682\u65E0\u4E50\u8C31\u9884\u89C8\u56FE")])])]),e("div",{class:t.videoOperation},[P.value&&e(D,null,[!T.value.play&&O.value!=100&&O.value!=0&&e("div",{class:[t.audition]},[e("img",{src:ha},null),e("span",null,[m("\u6BCF\u9996\u66F2\u76EE\u53EF\u8BD5\u542C"),O.value,m("%")])]),e("div",{class:[t.audio,t.collectCell]},[e("audio",{id:"player",controls:!0,ref:ie},[e("source",{src:P.value,type:"audio/mp3"},null)])])]),e("div",{class:[t.collect,t.collectCell]},[e("div",{class:[t.userInfo],onClick:()=>{var n,c;ye().isApp&&((n=s.value)==null?void 0:n.sourceType)==="TEACHER"&&b.platformType==="STUDENT"&&F.push({path:"/teacherHome",query:{teacherId:(c=s.value)==null?void 0:c.userId,tabs:"music"}})}},[e("img",{src:((u=s.value)==null?void 0:u.userAvatar)||Ea},null),e("span",null,[(p=s.value)==null?void 0:p.userName])]),e("div",{class:t.functionSection},[e("div",{class:[t.collectSection],onClick:()=>ke()},[e("span",null,[(_=s.value)==null?void 0:_.favoriteCount,m("\u4EBA\u6536\u85CF")]),e("img",{src:(k=s.value)!=null&&k.favorite?xa:Ca},null)]),b.platformType==="TEACHER"&&e("div",{class:[t.collectSection],onClick:()=>{var n;(n=s.value)!=null&&n.coursewareStatus?Be():Ne()}},[e("span",null,[(C=s.value)!=null&&C.coursewareStatus?"\u79FB\u51FA\u8BFE\u4EF6":"\u6DFB\u52A0\u5230\u8BFE\u4EF6"]),(y=s.value)!=null&&y.coursewareStatus?e(B,{name:"clear"},null):e(B,{name:"add",size:18},null)])])])])]),e("div",{class:[t.lookAlbum,t.collectCell],onClick:()=>{var n,c;F.push({path:"/look-album-list",query:{id:(n=s.value)==null?void 0:n.id,musicSubject:(c=s.value)==null?void 0:c.musicSubject}})}},[e("div",null,[e("img",{src:Je},null),e("span",null,[m("\u8FDB\u5165\u66F2\u76EE\u6240\u5728\u5E73\u53F0\u4E13\u8F91\u5217\u8868")])]),e(B,{name:"arrow",size:16,color:"#666"},null)])]),((w=s.value)==null?void 0:w.id)&&e(Ce,{position:"bottom",background:"white",varName:"--bottom-height"},{default:()=>{var n;return[e("div",{ref:le},[T.value.play||b.platformType==="TEACHER"&&T.value.hasTenantAlbum?e(Q,{round:!0,block:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",onClick:()=>{Ba(()=>{L.value&&L.value.stop();const v=fe.value.find(N=>N.value===r.partIndex);fa(s.value,()=>{},{"part-index":(v==null?void 0:v.xmlValue)||0,sett:f.radio})},500)()}},{default:()=>[m("\u7ACB\u5373\u7EC3\u4E60")]}):e("div",{class:t.colSticky},[T.value.charge&&e("div",{class:t.priceSection},[e("span",null,[m("\u70B9\u64AD\u4EF7\uFF1A")]),e("span",{class:t.price},[e("i",null,[m("\xA5")]),la((n=s.value)==null?void 0:n.musicPrice)])]),e("div",{class:[t.buyBtn]},[T.value.charge&&e(Q,{round:!0,type:"primary",color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",class:t.primary,onClick:De},{default:()=>[m("\u7ACB\u5373\u70B9\u64AD")]}),T.value.vip&&e(Q,{round:!0,block:!T.value.charge,type:"primary",color:"linear-gradient(180deg, #F7BD8D 0%, #CD8806 100%)",class:t.memeber,onClick:()=>{F.push({path:"/memberCenter",query:{...I.query}})}},{default:()=>[Te.value>0&&e("div",{class:[t.buttonDiscount]},[m("\u4E13\u5C5E\u4F18\u60E0")]),m("\u5F00\u901A\u4F1A\u5458")]})])])])]}}),e(V,{show:G.value,"onUpdate:show":n=>G.value=n,style:{background:"transparent"},teleport:"body"},{default:()=>{var n;return[e(wa,{teacherId:(n=b.user.data)==null?void 0:n.userId,shareUrl:me.value,shareType:"music"},{default:()=>{var c,v,N;return[e("div",{class:t.shareMate},[de.value===1&&e("div",{class:t.tagDiscount},[m("\u4E13\u5C5E\u4F18\u60E0")]),e("img",{class:t.icon,crossorigin:"anonymous",src:((c=s.value)==null?void 0:c.titleImg)+`?t=${+new Date}`},null),e("div",{class:t.info},[e("h4",{class:"van-multi-ellipsis--l2"},[(v=s.value)==null?void 0:v.musicSheetName]),e("p",null,[m("\u4F5C\u66F2\u4EBA\uFF1A"),(N=s.value)==null?void 0:N.composer])])])]}})]}}),e(V,{show:U.value,"onUpdate:show":n=>U.value=n,position:"bottom",round:!0},{default:()=>[U.value&&e(ba,{imgList:JSON.parse(JSON.stringify(x.value)),musicSheetName:s.value.musicSheetName},null)]}),e(V,{show:f.status,"onUpdate:show":n=>f.status=n,teleport:"body",closeable:!0,style:{width:"80%"},round:!0},{default:()=>[e("div",{class:t.staffContainer},[e("div",{class:t.staffTitle},[m("\u9009\u62E9\u8F6C\u6362\u66F2\u8C31")]),e(ma,{modelValue:f.radio,"onUpdate:modelValue":n=>f.radio=n},{default:()=>[e(ua,{border:!1},{default:()=>[e($,{center:!0,border:!1,class:f.radio==="staff"?t.active:"",onClick:()=>X("staff")},{icon:()=>e(A,{src:Ia,class:t.staffImg},null),title:()=>e("span",{class:t.name},[m("\u4E94\u7EBF\u8C31")]),value:()=>e(Y,{name:"staff"},{icon:n=>e(B,{class:t.boxStyle,size:16,name:n.checked?Z:ee},null)})}),e($,{center:!0,border:!1,class:f.radio==="first"?t.active:"",onClick:()=>X("first")},{icon:()=>e(A,{src:Sa,class:t.staffImg},null),title:()=>e("span",{class:t.name},[m("\u7B80\u8C31-\u9996\u8C03")]),value:()=>e(Y,{name:"first"},{icon:n=>e(B,{class:t.boxStyle,size:16,name:n.checked?Z:ee},null)})}),e($,{center:!0,border:!1,class:f.radio==="fixed"?t.active:"",onClick:()=>X("fixed")},{icon:()=>e(A,{src:Ta,class:t.staffImg},null),title:()=>e("span",{class:t.name},[m("\u7B80\u8C31-\u56FA\u5B9A\u8C03")]),value:()=>e(Y,{name:"fixed"},{icon:n=>e(B,{class:t.boxStyle,size:16,name:n.checked?Z:ee},null)})})]})]})])]}),e(V,{teleport:"body",position:"bottom",round:!0,show:r.open,"onUpdate:show":n=>r.open=n},{default:()=>[e(Da,{columns:fe.value,onConfirm:n=>{r.open=!1,r.partIndex=n.value,r.partXmlIndex=n.xmlValue,x.value=[],he(()=>{qe()})},onCancel:()=>r.open=!1},null)]})])}}});export{cs as default,Ie as getAssetsHomeFile};