import{d as oe,V as q,j as e,z as r,P as ge,O as Ae,Q as H,S as n,U as _e,W as be,X as fe,bz as ve,be as he,C as ye,F as Ce,g as _,B as K,aR as $,w as C,D as ee}from"./index.394decd7.js";import{C as Je}from"./index.e6e212d8.js";import{I as B}from"./index.ae2dd816.js";import{a as Me,b as Be}from"./index.75a0444f.js";import{g as Ye}from"./music.8e2b5f5b.js";import{T as ae}from"./index.b4908753.js";import{S as Fe}from"./index.3dfdbf1b.js";import{M as Ie}from"./index.e5a263f6.js";import{u as Ee}from"./hooks.9e5ee122.js";import{C as Se}from"./index.45d094fa.js";import{o as d}from"./orderStatus.535346ee.js";import{i as De}from"./icon_share.dff37aef.js";import{i as Te}from"./icon_share2.a7c878ef.js";import{C as qe}from"./index.52a60bda.js";import{_ as Ze,a as Xe,b as we,c as Ue,d as Ve,e as ke,f as Ne}from"./icon_uploader.ff962490.js";import{_ as Re}from"./icon-xin.62588855.js";import{_ as Oe}from"./icon_album.ed729d4a.js";import{_ as Pe}from"./icon_album_active.469423f9.js";import{_ as Qe}from"./icon_exquisite.4b18ad76.js";import{_ as Ge}from"./icon_music_active.1e7b47ef.js";import{S as Le}from"./select-subject.2c6b1606.js";import"./index.b9aedd1d.js";import"./icon-play.bc9e7aab.js";import"./index.9849c993.js";import"./index.f1b52763.js";import"./code-down-load.37c8e9cc.js";import"./logo.bcac726b.js";import"./browser.8379baf6.js";import"./html2canvas.esm.3d083717.js";import"./index.9e0d46e4.js";import"./icon_teacher.40b6f077.js";import"./index.dab716ce.js";import"./index.3bbf4ddb.js";const je="_base_4im3d_1",ze="_detail_4im3d_4",xe="_img_4im3d_14",We="_albumType_4im3d_37",He="_shareBtn_4im3d_50",Ke="_detailContent_4im3d_62",$e="_main_4im3d_67",ea="_favoriteContaineer_4im3d_72",aa="_favorite_4im3d_72",ta="_content_4im3d_94",sa="_footerBar_4im3d_115",oa="_bgImg_4im3d_123",ia="_musicContent_4im3d_132",la="_bg_4im3d_123",ma="_alumWrap_4im3d_149",na="_alumTitle_4im3d_161",ua="_alumDes_4im3d_167",ra="_des_4im3d_170",ca="_tags_4im3d_173",pa="_tag_4im3d_173",da="_alumCollect_4im3d_183",ga="_right_4im3d_199",Aa="_albumTips_4im3d_204",_a="_albumPrice_4im3d_214",ba="_alumnContainer_4im3d_219",fa="_alumnList_4im3d_224",va="_subjectSearch_4im3d_230",ha="_active_4im3d_251",ya="_shareVip_4im3d_255",Ca="_icon_4im3d_265",Ja="_info_4im3d_270",Ma="_shareAlumCollect_4im3d_286",Ba="_tagDiscount_4im3d_306",Ya="_buttonDiscount_4im3d_319",Fa="_shareMusicList_4im3d_332",Ia="_albumShare_4im3d_337";var a={base:je,detail:ze,img:xe,albumType:We,shareBtn:He,detailContent:Ke,main:$e,favoriteContaineer:ea,favorite:aa,content:ta,footerBar:sa,bgImg:oa,musicContent:ia,bg:la,alumWrap:ma,alumTitle:na,alumDes:ua,des:ra,tags:ca,tag:pa,alumCollect:da,right:ga,albumTips:Aa,albumPrice:_a,alumnContainer:ba,alumnList:fa,subjectSearch:va,active:ha,shareVip:ya,icon:Ca,info:Ja,shareAlumCollect:Ma,tagDiscount:Ba,buttonDiscount:Ya,shareMusicList:Fa,albumShare:Ia},Ea="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0xJREFUSEvtlk1sVGUUhp/3zl9J1IKIphpcGDUmA1RbYWcsiTEggjPFMWJM3BhwZUyMP5DY+agbURMJO0hYGdlMpTVGWLipuINMI9OS4AaCC9NYaOpPrG3vvcfcO0NDyjg/bY0b7+5+Ofc857znfOdc8S881ueSrAuykOgFesB6QVlgSCvlWe/+FBvvz+KpN3ZskXO2AB11fPttAa3g0gRswsIo4h4ggmwBZRoEPg82C+pEhA2Bttc9hoVPx84tyoBNYE2cMwEqI5XBH2N2pkLm7o8QbzUE2t7BJwiD80CyfvQ2hzSOqYwxBkGZVGJcJTe/1N5yxc+aA3MD+5BO1T7+C6gA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V7YAAAFpSURBVBgZ7cFpO4JRFAXQXeSlkDFjmTJPocyEFCKzFNr//2fwKGk4Off6ylr49xtt+7ncXjusec744dwDW7v8tAtLUyyZghXvHUvuvLARZ1kcFuZZYR7GerOskO2FoZYLVrlogZHmBGskmmGgM8k6yU5oXAuPFDwuuPATz1KKDaSWPGigY/Eoxx/kjhY7UKc/evpG1dtptB8VXJFrGsusuvFli1a2UOJ7oZVXL4qCtBREUU+BVgrdKDmglUN88d3Qwo0PZSN5GsuPoMI6ja2jyjENHaNaa4ZGMq2oMZCngfwA6mzSQAz1mq6oumqCIEJVBBLnmYpnB6ITKk4gi1IRhWyaimnIQlSEIBukYhCyYSqGIRulYhSyMSrGIJugYgKyMBVhyGapmIVsjoo5yMb5Lb0zE+jqCszspPktBJlzz6LLWB/K+mKXLHpw0MBkluTt9hBqDG3fknyaREP+lbWgGwJ3cGPZj7/mHZ5++v6OXxQRAAAAAElFTkSuQmCC";const Ta="_theSong_1plfo_1",qa="_item_1plfo_4",Za="_content_1plfo_16",Xa="_top_1plfo_19",wa="_tag_1plfo_23",Ua="_tags_1plfo_28",Va="_title_1plfo_39",ka="_singer_1plfo_46",Na="_play_1plfo_51",Ra="_mb100_1plfo_56",Oa="_pImg_1plfo_59",Pa="_moreSection_1plfo_66",Qa="_collection_1plfo_74",Ga="_musicInfo_1plfo_79",La="_info_1plfo_88",ja="_shareIcon_1plfo_106",za="_share_1plfo_106",xa="_shareMate_1plfo_116",Wa="_icon_1plfo_126",Ha="_tagDiscount_1plfo_147",Ka="_exquisiteFlag_1plfo_160",$a="_songAlbum_1plfo_165";var b={theSong:Ta,item:qa,content:Za,top:Xa,tag:wa,tags:Ua,title:Va,singer:ka,play:Na,mb100:Ra,pImg:Oa,moreSection:Pa,collection:Qa,musicInfo:Ga,info:La,shareIcon:ja,share:za,shareMate:xa,icon:Wa,tagDiscount:Ha,exquisiteFlag:Ka,songAlbum:$a};const te=g=>{const A=`../images/${g}`;return{"../images/collection.png":Ze,"../images/collection_active.png":Xe,"../images/icon-xin.png":Re,"../images/icon_ai.png":we,"../images/icon_album.png":Oe,"../images/icon_album_active.png":Pe,"../images/icon_author.png":Ue,"../images/icon_download.png":Ve,"../images/icon_exquisite.png":Qe,"../images/icon_music_active.png":Ge,"../images/icon_share.png":ke,"../images/icon_uploader.png":Ne}[A].default};var et=oe({name:"TheSong",props:{list:{type:Array,default:()=>[]},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup(g,{emit:A}){const u=q(()=>g.list.map(l=>(typeof l.paymentType=="string"&&(l.paymentType=l.paymentType.split(",")),{...l})));return()=>e("div",{class:b.theSong},[u.value.map(l=>e("div",{class:b.item,onClick:()=>A("detail",l)},[e("div",{class:b.content},[e("div",{class:b.top},[l.exquisiteFlag===1&&e(B,{class:b.exquisiteFlag,src:te("icon_exquisite.png")},null),l.albumNums>0&&e(B,{class:b.songAlbum,src:te("icon_album_active.png")},null),e("span",{class:[b.title,g.musicNameClass,"van-ellipsis"]},[l.musicSheetName]),e("span",{class:[b.singer,g.authorClass,"van-ellipsis"]},[r("-"),l.composer]),e("div",{class:b.tags},[l==null?void 0:l.subjectNames.split(",").map(s=>e("span",null,[s]))])])])]))])}}),at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAb1BMVEUAAABG2MNG2MFF18BF2MFG18BF2MFA4MRD2cBF2MJF2cJF18FE2MFF2MFF2MFE2MFF2MFE179A3MVF2MFF18JF2MJF18JF2MFG2cJF2MFG179F2MJF18FF2MFF18JE1sJH2sNF18FF2MJE179F18GInqdFAAAAJHRSTlMAMo9Z+E1lBhaZDfvNyfDSpzUR2biglXUs40Un3sKKSiLmv0D+yki/AAAA3klEQVQoz7XOWXKDMBRE0YYQSUhinsFTkt7/GhMBVihbVf5yf95TD4TwItFnefeUpesJ3cxDT/dOJjl5h0Wk1nebikrGHiOz9ywVkVzTP3643t/7M1Y+BzB6jVItVRREVc2fbiqE15Xm8OU4V4uSLx70JtSXJrc2jLqgWxhLsuimHeVNH1EbtkD95bDuEprmgCMptntoy20eFZkCsMxxIc9DeUSc/1S0ZIyJBYCO/PF4y+lW1EjWbwzkFX7jN2lKBTQ8aaClqXGYGjW2m1OfkSVCa7cfqCDKoUmmuA7RL2POHWJJLgwaAAAAAElFTkSuQmCC";const se=()=>{};var Xt=oe({name:"AlbumDetail",props:{onItemClick:{type:Function,default:se}},setup({onItemClick:g}){localStorage.setItem("behaviorId",Ye());const A=ge(),u=Ae(),l=H({search:"",relatedNum:6,page:1,rows:200}),s=n(null),f=n([]),Y=n(!1),ie=Number(u.query.activityId)||0,le=n(ie),Z=n(!1),h=n(0),F=n(0),X=n(null),I=n("rgba(55, 205, 177, 0)"),y=n("#fff"),me=n("auto"),c=H({show:!1,name:u.query.subjectName||"\u5168\u90E8\u58F0\u90E8",id:u.query.subjectId||null}),E=async t=>{var m;if(!Y.value){Y.value=!0,Z.value=!1;try{const i=await C.post("/music/album/detail",{prefix:_.platformType==="TEACHER"?"/api-teacher":"/api-student",data:{id:t||u.params.id,...l,subjectIds:c.id}}),{musicSheetList:v,...p}=i.data;f.value=[...v.rows];const J=p!=null&&p.musicTagNames?(m=p==null?void 0:p.musicTagNames)==null?void 0:m.split(","):[];s.value={...p,musicTagNames:J},h.value=p.favorite,F.value=p.albumFavoriteCount}catch{Z.value=!0}Y.value=!1}},w=n(!1);_e(()=>{E(),Me(document,"scroll",t=>{const{y:m}=Be();m.value>20?(I.value="rgba(255, 255, 255)",y.value="black"):(I.value="transparent",y.value="#fff")}),Ee("\u4E13\u8F91")});const ne=async t=>{w.value=!0;try{await C.post("/music/album/favorite/"+t,{prefix:_.platformType==="TEACHER"?"/api-teacher":"/api-student"}),h.value=h.value===1?0:1,F.value+=h.value?1:-1}catch{}w.value=!1},ue=async()=>{const t=s.value;d.orderObject.orderType="ALBUM",d.orderObject.orderName=t.albumName,d.orderObject.orderDesc=t.albumName,d.orderObject.actualPrice=t.albumPrice,d.orderObject.recomUserId=u.query.recomUserId||0,d.orderObject.activityId=u.query.activityId||0,d.orderObject.orderNo="",d.orderObject.orderList=[{orderType:"ALBUM",goodsName:t.albumName,recomUserId:u.query.recomUserId||0,price:t.albumPrice,...t}];const i=(await C.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:t.id}})).data;i?ee.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()=>{d.orderObject.orderNo=i.orderNo,d.orderObject.actualPrice=i.actualPrice,d.orderObject.discountPrice=i.discountPrice,d.orderObject.paymentConfig={...i.paymentConfig,paymentVendor:i.paymentVendor,paymentVersion:i.paymentVersion},U()}).catch(()=>{ee.close(),re(i.orderNo)}):U()},U=()=>{const t=s.value;A.push({path:"/orderDetail",query:{orderType:"ALBUM",album:t.id}})},re=async t=>{try{await C.post("/api-student/userOrder/orderCancel",{data:{orderNo:t}})}catch{}},ce=t=>{c.name=t.name,c.id=t.id,c.show=!1,E()},S=n(!1),D=n(""),V=n(0),pe=async()=>{const t=_.user.data.userId,m=u.params.id;let i=0;if(console.log(_.user,t),_.platformType==="TEACHER"){const v=await C.post("/api-teacher/open/vipProfit",{data:{bizId:m,userId:t}});T.value&&(i=v.data.activityId||0,V.value=v.data.discount||0)}D.value=`${location.origin}/teacher#/shareAblum?id=${m}&recomUserId=${t}&activityId=${i}&userType=${_.platformType}`,console.log(D.value,"shareUrl"),S.value=!0},T=q(()=>{var m;const t=(m=s.value)==null?void 0:m.musicPaymentTypes;return t&&t.includes("VIP")}),de=q(()=>f.value.length>4?f.value.slice(0,2):f.value);return()=>{var t,m,i,v,p,J,k,N,R,O,P,Q,G,L,j,z;return e("div",{class:a.detail},[e("div",{ref:X},[e(Je,{background:I.value,border:!1,color:y.value,backIconColor:"white",onHeaderBack:()=>{be(()=>{const{height:o}=fe(X);me.value=o})}},{right:()=>e("div",{class:a.shareBtn,style:{color:y.value},onClick:pe},[e(B,{src:y.value==="black"?Te:De},null),r("\u5206\u4EAB")])})]),e("img",{class:a.bgImg,src:(t=s.value)==null?void 0:t.albumCoverUrl},null),e("div",{class:a.musicContent},null),e("div",{class:a.bg},[e("div",{class:a.alumWrap},[e("div",{class:a.img},[((m=s.value)==null?void 0:m.paymentType)==="CHARGE"&&e("span",{class:a.albumType},[r("\u4ED8\u8D39")]),e(B,{class:a.image,width:"100%",height:"100%",fit:"cover",src:(i=s.value)==null?void 0:i.albumCoverUrl},null)]),e("div",{class:a.alumDes},[e("div",{class:[a.alumTitle,"van-ellipsis"]},[(v=s.value)==null?void 0:v.albumName]),e("div",{class:a.tags},[(J=(p=s.value)==null?void 0:p.musicTagNames)==null?void 0:J.map(o=>e("span",{class:a.tag},[o]))]),e("div",{class:[a.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[(k=s.value)==null?void 0:k.albumDesc])])]),e("div",{class:a.alumCollect},[e("img",{src:Ea},null),e("span",null,[r("\u5171"),(N=s.value)==null?void 0:N.musicSheetCount,r("\u9996\u66F2\u76EE")]),e("div",{class:a.right,onClick:()=>{var o;return ne((o=s.value)==null?void 0:o.id)}},[e("img",{src:h.value?Da:Sa},null),e("span",null,[F.value,r("\u4EBA\u6536\u85CF")])])]),((R=s.value)==null?void 0:R.paymentType)==="CHARGE"&&((O=s.value)==null?void 0:O.orderStatus)!=="PAID"&&e("div",{class:a.albumTips},[e("span",null,[r("\u6B64\u4E13\u8F91\u4E3A\u4ED8\u8D39\u4E13\u8F91\uFF0C\u8D2D\u4E70\u5373\u53EF\u81EA\u7531\u7EC3\u4E60\u8BE5\u4E13\u8F91")]),e("span",{class:a.albumPrice},[r("\xA5"),ve((P=s.value)==null?void 0:P.albumPrice)])])]),e("div",{class:a.alumnContainer},[e("div",{class:a.alumnList},[e(ae,{title:"\u66F2\u76EE\u5217\u8868",isMore:!1},{right:()=>{var o;return((o=s.value)==null?void 0:o.albumType)==="CONCERT"&&e("div",{class:[a.subjectSearch,c.show?a.active:""],onClick:()=>c.show=!0},[c.name])}}),e(Fe,{list:f.value,onDetail:o=>{if(g===se||!g){const M=location.origin+location.pathname+"#/music-detail?id="+o.id+"&albumId="+u.params.id;he(M,()=>{A.push({path:"/music-detail",query:{id:o.id,albumId:u.params.id}})})}else g(o)}},null),f.value&&f.value.length<=0&&e(ye,{btnStatus:!1,tips:"\u6682\u65E0\u66F2\u76EE"},null)]),((Q=s.value)==null?void 0:Q.relatedMusicAlbum)&&((G=s.value)==null?void 0:G.relatedMusicAlbum.length)>0&&e(Ce,null,[e(ae,{title:"\u76F8\u5173\u4E13\u8F91",onMore:()=>{A.push({path:"/music-album"})}},null),e(Ie,{list:(L=s.value)==null?void 0:L.relatedMusicAlbum,onGoto:o=>{A.push({name:"music-album-detail",params:{id:o.id}}).then(()=>{E(o.id),window.scrollTo(0,0)})}},null)])]),((j=s.value)==null?void 0:j.paymentType)==="CHARGE"&&((z=s.value)==null?void 0:z.orderStatus)!=="PAID"&&e(Se,{position:"bottom",background:"white"},{default:()=>[e("div",{class:["btnGroup",T.value&&!_.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[e(K,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:ue},{default:()=>[r("\u8D2D\u4E70\u4E13\u8F91")]}),T.value&&!_.user.data.isVip&&e(K,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:()=>{A.push({path:"/memberCenter",query:{...u.query}})}},{default:()=>[le.value>0&&e("div",{class:[a.buttonDiscount]},[r("\u4E13\u5C5E\u4F18\u60E0")]),r("\u5F00\u901A\u4F1A\u5458")]})])]}),e($,{show:S.value,"onUpdate:show":o=>S.value=o,style:{background:"transparent"},class:a.albumShare},{default:()=>[e(qe,{teacherId:_.user.data.userId,shareUrl:D.value,shareType:"album",shareLength:1},{default:()=>{var o,M,x,W;return[e("div",{class:a.shareVip},[V.value===1&&e("div",{class:a.tagDiscount},[r("\u4E13\u5C5E\u4F18\u60E0")]),e("img",{class:a.icon,crossorigin:"anonymous",src:((o=s.value)==null?void 0:o.albumCoverUrl)+`?t=${+new Date}`},null),e("div",{class:a.info},[e("h4",{class:"van-multi-ellipsis--l2"},[(M=s.value)==null?void 0:M.albumName]),e("p",{class:["van-multi-ellipsis--l3"],style:{lineHeight:"16px",margin:"5px 0 10px 0"}},[(x=s.value)==null?void 0:x.albumDesc]),e("div",{class:a.shareAlumCollect},[e("img",{src:at},null),e("span",null,[r("\u5171"),e("span",{style:"color: var(--van-primary-color);"},[(W=s.value)==null?void 0:W.musicSheetCount]),r("\u9996\u66F2\u76EE")])])])]),e("div",{class:[a.shareVip,a.shareMusicList]},[e(et,{list:de.value},null)])]}})]}),e($,{position:"bottom",round:!0,show:c.show,"onUpdate:show":o=>c.show=o,closeable:!0,"safe-area-inset-bottom":!0,onClose:()=>c.show=!1,onClosed:()=>c.show=!1},{default:()=>[e(Le,{type:"ALBUM",isShowAllSubject:!0,searchParams:c,onComfirm:ce},null)]})])}}});export{Xt as default};