text: (self.webpackChunkreact_qq_music=self.webpackChunkreact_qq_music||[]).push([[208],{8007:(e,t,n)=>{"use strict";n.d(t,{TK:()=>r});var a=n(9405),l=n(5907),i=n.n(l),r=function(e){return(0,a.Z)({method:"GET",url:"/getSongListDetail?"+i().stringify(e)})}},5669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var a=n(863),l=n(4403),i=n.n(l),r=n(5488);const o={container:"fCfgtkMX",wrapper:"EDsB9ymv",item:"_2oZlNcj4",title0:"_2K66qg5e",title1:"_1NLv3Kkc",title2:"_2HZJPVQg",title3:"_3GibRtZn",title:"_1Xkd_p4k",content:"piAa33Fg",select:"_2IWDSLRT"};const c=function(e){var t=e.data,n=e.columns,l=e.onClickSong,c=e.onClickSinger,u=e.onClickAlbum,s=e.currentSongId,m=(0,a.useCallback)((function(e,t,n){var l,i;return[e[t],"singer"===t&&(null===(l=e[t])||void 0===l?void 0:l.map((function(n,l){var i=n.name,r=n.mid;return a.createElement("span",{key:l},a.createElement("span",{onClick:function(){return c&&c(r)}},i),1!==e[t].length&&l!==e[t].length-1?" / ":"")}))),"album"===t&&(null===(i=e[t])||void 0===i?void 0:i.name)||e.albumname,(0,r.ih)(e[t])][n]}),[]),d=(0,a.useMemo)((function(){return a.createElement("div",{className:i()(o.wrapper,o.title)},n.map((function(e,t){return a.createElement("div",{className:i()(o.item,o["title"+t]),key:e.key||e.dataIndex},e.title)})))}),[n]),v=(0,a.useMemo)((function(){return null==t?void 0:t.map((function(e){return a.createElement("div",{key:e.id,className:i()(o.wrapper,o.content)},n.map((function(t,n){var r,c=t.dataIndex,d=t.key;return a.createElement("div",{className:i()(o.item,o["title"+n]),key:d||c},a.createElement("span",{onClick:function(){var t;l&&0===n&&l(e.mid),u&&2===n&&u((null===(t=null==e?void 0:e[c])||void 0===t?void 0:t.mid)||e.albummid)},className:i()((r={},r[o.select]=s===e.mid,r))},m(e,c,n)))})))}))}),[t,n,s]);return a.createElement("div",{className:o.container},d,v)}},9949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var a=n(863),l=n(5092),i=n(8007),r=n(5669),o=n(3068),c=n(4109),u=n(7695);const s={topBox:"_3RjRL-Gd",rightBox:"_2axL7Yw9",author:"_3vOFiJPJ",nickname:"_2DPPdnd_",tags:"_1PmrgGv5",headurl:"_1i26zllK",description:"_3GhGkLpg",button:"_1EC4saWO",songNum:"WMr31rJZ"};var m=function(e,t,n,a){return new(n||(n=Promise))((function(l,i){function r(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}c((a=a.apply(e,t||[])).next())}))},d=function(e,t){var n,a,l,i,r={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(l=2&i[0]?a.return:i[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,i[1])).done)return l;switch(a=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return r.label++,{value:i[1],done:!1};case 5:r.label++,a=i[1],i=[0];continue;case 7:i=r.ops.pop(),r.trys.pop();continue;default:if(!(l=r.trys,(l=l.length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){r=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]<l[3])){r.label=i[1];break}if(6===i[0]&&r.label<l[1]){r.label=l[1],l=i;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(i);break}l[2]&&r.ops.pop(),r.trys.pop();continue}i=t.call(e,r)}catch(e){i=[6,e],a=0}finally{n=l=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}};const v=function(e){var t=(0,l.k6)(),n=t.location.state,v=(0,a.useState)(null),f=v[0],p=v[1],g=(0,c.Z)(),h=g.setPlaylist,k=g.curSong,y=g.setCurSong;(0,a.useEffect)((function(){b()}),[n]);var b=function(){return m(void 0,void 0,void 0,(function(){var e;return d(this,(function(t){switch(t.label){case 0:return[4,(0,i.TK)(n)];case 1:return e=t.sent().data.response.cdlist,p(e[0]),[2]}}))}))};return a.createElement("div",null,a.createElement("div",{className:s.topBox},(null==f?void 0:f.logo)?a.createElement("img",{src:null==f?void 0:f.logo,alt:""}):a.createElement(o.Z,{type:"icon-CD",style:{fontSize:200}}),a.createElement("div",{className:s.rightBox},a.createElement("h1",{className:s.title},(null==f?void 0:f.dissname)?null==f?void 0:f.dissname:"-"),a.createElement("div",{className:s.author},(null==f?void 0:f.headurl)?a.createElement("img",{className:s.headurl,src:null==f?void 0:f.headurl,alt:""}):a.createElement(o.Z,{className:s.headurl,type:"icon-headpic"}),a.createElement("div",{className:s.nickname},null==f?void 0:f.nickname),null==f?void 0:f.tags.map((function(e){var t=e.name,n=e.id;return a.createElement("div",{className:s.tags,key:n},"#"+t)}))),a.createElement("div",{className:s.description},null==f?void 0:f.desc),a.createElement("div",{className:s.button},a.createElement(u.Z,{icon:"icon-play",type:"primary",onClick:function(){return h(null==f?void 0:f.songlist),void y(null==f?void 0:f.songlist[0].mid)}},"播放全部")))),a.createElement("div",{className:s.songNum},"歌曲",null==f?void 0:f.total_song_num),a.createElement(r.Z,{data:null==f?void 0:f.songlist,columns:[{title:"歌曲",dataIndex:"name",key:"name"},{title:"歌手",dataIndex:"singer",key:"singer"},{title:"专辑",dataIndex:"album",key:"album"},{title:"时长",dataIndex:"interval",key:"interval"}],onClickSong:function(e){h(null==f?void 0:f.songlist),y(e)},onClickSinger:function(e){t.push("/Singer",{remoteplace:"singer",mid:e})},onClickAlbum:function(e){t.push("/Album",{remoteplace:"album",mid:e})},currentSongId:k}))}}}]);