1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2098],{3775:(e,t,s)=>{"use strict";s.d(t,{L:()=>d,c:()=>r});var n=s(37876),a=s(14232),i=s(19456),l=s(82322);let o=(0,a.createContext)(null);function r(e){let{children:t}=e,s=(0,l.A)(),a=(0,i.u)(s);return(0,n.jsx)(o.Provider,{value:a,children:t})}function d(){let e=(0,a.useContext)(o);if(!e)throw Error("useCdActionsContext must be used within a CdActionsProvider");return e}},12420:e=>{e.exports={recommendedAlbumContainer:"styles_recommendedAlbumContainer__9aYti",recommendedAlbumSlide:"styles_recommendedAlbumSlide__XjE67",recommendedHeader:"styles_recommendedHeader___dOHG",cardContainer:"styles_cardContainer__L87Ev",imageContainer:"styles_imageContainer__UKwmX",image:"styles_image__H7pck",imageLoaded:"styles_imageLoaded___Me82",cover:"styles_cover__K67HO"}},12439:e=>{e.exports={recommendedContent:"styles_recommendedContent__aco_j",loading:"styles_loading__fKWsm",loadingMini:"styles_loadingMini__NEErb",cards:"styles_cards__uqlkS",bigRecommendedContent:"styles_bigRecommendedContent__SKnTB"}},16894:e=>{e.exports={cdCoverWithActionsContainer:"styles_cdCoverWithActionsContainer__7jJ6P",coverWrapper:"styles_coverWrapper__rzzBm",cover:"styles_cover__kUNOO",coverBlurOverlay:"styles_coverBlurOverlay___2TiV",trashIcon:"styles_trashIcon__P6c0w",actionsButtons:"styles_actionsButtons__Shxe3",playButton:"styles_playButton__xWWLO",defaultFavoriteButton:"styles_defaultFavoriteButton__9Rx2S",favoriteButton:"styles_favoriteButton__3o7O7"}},16915:(e,t,s)=>{"use strict";s.d(t,{P:()=>f});var n=s(37876),a=s(56661),i=s(89099),l=s(14232),o=s(12664),r=s(6132),d=s(52986),c=s(67660),u=s(68423),m=s(69980),h=s(64549),x=s(78260),_=s.n(x),p=s(4282),v=s(12439),g=s.n(v);function f(e){let{recommendedAlbums:t=null,style:s=null,cardUsername:x=!1,pagetype:v="",homeCDs:f=null,mini:C=!1}=e,y=(0,a.useTranslations)("Shared"),{locale:j}=(0,i.useRouter)(),[b,w]=(0,l.useState)(0),[A,I]=(0,l.useState)(!1),N=C?4:6;function S(e,t,s){m.F.logEvent((0,u.L)({category:d.A.RecommendedCDs,action:r.A.CD,id:e,label:t,value:s,...v&&{page:v}}))}return(0,l.useEffect)(()=>{f&&I(!1)},[b]),(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)(c.O,{title:y("RecommendedCDs",{locale:j}).toString(),themeColor:"red",link:C?"":"/cds-recomendados",slide:{activeSlide:b,setActiveSlide:e=>{e/N<=h.KN.recommendedMaxPage&&(I(!0),w(e))},limit:f.length,slideJump:N},trackingCategory:d.A.RecommendedPlaylist,className:C?g().recommendedContent:g().bigRecommendedContent,children:A?(0,n.jsxs)("div",{className:C?g().loadingMini:g().loading,children:[C&&(0,n.jsx)(p.D,{mini:!0,height:196.38}),!C&&(0,n.jsx)(p.D,{})]}):(0,n.jsx)("div",{className:s||_().cards,children:f.slice(b,b+N).map((e,t)=>{let{id:s,cover:a,title:i,name:l,isVerified:r,slug:d,username:c}=e;return(0,n.jsx)("div",{className:g().cards,children:(0,n.jsx)(o.K,{title:i,link:"/".concat(c,"/").concat(d),image:a,imageSize:150,user:x?{id:s,name:l,username:c,isVip:r}:null,theme:"red",onClick:()=>S(s,l,t),onKeyDown:()=>S(s,l,t)},s)},s)})})}):null,t?(0,n.jsx)(c.O,{title:y("RecommendedCDs",{locale:j}).toString(),themeColor:"red",children:(0,n.jsx)("div",{className:s||_().cards,children:t.map((e,t)=>{let{id:s,cover:a,title:i,name:l,isVerified:r,slug:d,username:c}=e;return(0,n.jsx)("div",{children:(0,n.jsx)(o.K,{title:i,link:"/".concat(c,"/").concat(d),image:a,imageSize:150,user:x?{id:s,name:l,username:c,isVip:r}:null,theme:"red",onClick:()=>S(s,l,t),onKeyDown:()=>S(s,l,t)},s)},s)})})}):null]})}},19456:(e,t,s)=>{"use strict";s.d(t,{u:()=>N});var n=s(14232),a=s(89099),i=s(56661),l=s(2491),o=s.n(l),r=s(83016),d=s.n(r),c=s(1075),u=s(71410),m=s(97851),h=s.n(m),x=s(81530),_=s(21735),p=s(69980),v=s(68423),g=s(59265),f=s(6132),C=s(99853),y=s(52986),j=s(53924),b=s(97569);let{publicRuntimeConfig:{assets:w}}=d()(),A={container:"modal",actions:"containerButtonBlue"};function I(e){p.F.logEvent((0,v.L)(e))}function N(e){var t;
1let{locale:s,asPath:l,push:r}=(0,a.useRouter)(),d=(0,i.useTranslations)("Shared"),{userFollowers:m,user:p,isAdminUser:v,isAuthenticated:N}=(0,C.Z2)(),{ad:S,addToPlaylist:k,status:T,playlist:M,togglePlay:B,toggleFavorite:D,favoriteIdLoading:P,addToRadio:E}=(0,_.FQ)(),F=(0,b.H)(),[R,H]=(0,n.useState)(!1),[L,O]=(0,n.useState)(!1),[V,z]=(0,n.useState)(!1),[U,W]=(0,n.useState)(!1),[K,Q]=(0,n.useState)(!1),q=(0,n.useMemo)(()=>(null==e?void 0:e.sendDate)?(0,c.A)((0,u.A)(null==e?void 0:e.sendDate),"dd/MM/yyyy '\xe0s' HH'h'mm"):"â",[null==e?void 0:e.sendDate]),Y=(0,n.useMemo)(()=>(null==e?void 0:e.sendDate)?(0,c.A)((0,u.A)(null==e?void 0:e.sendDate),"dd/MM/yyyy"):"",[null==e?void 0:e.sendDate]),G=(0,n.useMemo)(()=>h()(null==e?void 0:e.plays).format("0.[0]a").toUpperCase(),[null==e?void 0:e.plays]),J=(0,n.useMemo)(()=>h()(null==e?void 0:e.downloads).format("0.a").toUpperCase(),[null==e?void 0:e.downloads]),Z=(0,n.useMemo)(()=>h()(null==e?void 0:e.size).format("0.00ib").replace("i","").toUpperCase(),[null==e?void 0:e.size]),X=(0,n.useMemo)(()=>(null==e?void 0:e.sendDate)?(0,c.A)((0,u.A)(null==e?void 0:e.sendDate),"yyyy"):"â",[null==e?void 0:e.sendDate]),$=(0,n.useMemo)(()=>null==e?void 0:e.comment,[null==e?void 0:e.comment]),ee=(0,n.useCallback)(()=>{I({category:y.A.Follow,action:f.A.Albums,page:g.A.CD,label:f.A.Follow,value:null==e?void 0:e.id})},[null==e?void 0:e.id]),et=(0,n.useCallback)(()=>{I({category:y.A.Follow,action:f.A.Albums,page:g.A.CD,label:f.A.Unfollow,value:null==e?void 0:e.id})},[null==e?void 0:e.id]),{handleFollowArtist:es,handleUnfollowArtist:en,submittingFollowArtist:ea,isFollowingArtist:ei}=(0,x.G)({ownerId:null==e?void 0:e.ownerId,onTrackFollow:ee,onTrackUnfollow:et,getErrorMessage:()=>d("AnErrorOccurredPleaseTryAgainLater",{locale:s}).toString()}),el=(0,n.useMemo)(()=>{var t,s;return"Play"===T&&(null!=(s=null==M?void 0:M.length)?s:0)>1&&(null==M||null==(t=M[1])?void 0:t.albumId)===(null==e?void 0:e.id)},[T,M,null==e?void 0:e.id]),eo=(0,n.useMemo)(()=>(null==p?void 0:p.id)===(null==e?void 0:e.ownerId),[p,null==e?void 0:e.ownerId]),er=(0,n.useMemo)(()=>(null==e?void 0:e.released)===1,[null==e?void 0:e.released]),ed=(0,n.useMemo)(()=>(null==e?void 0:e.released)===9,[null==e?void 0:e.released]),ec=(0,n.useMemo)(()=>(null==e?void 0:e.released)===-1||(null==e?void 0:e.released)===0||(null==e?void 0:e.released)===4,[null==e?void 0:e.released]),eu=(0,n.useMemo)(()=>v||eo,[v,eo]),em=(0,n.useMemo)(()=>{var t,s;return!!e&&(t=null==p?void 0:p.id,s=null==e?void 0:e.isScheduled,!!v||1===e.released&&!s||9===e.released&&!s||e.ownerId===t&&(null==e?void 0:e.released)!==-1&&(null==e?void 0:e.released)!==0)},[e,null==p?void 0:p.id,v,null==e?void 0:e.isScheduled]),eh=(0,n.useMemo)(()=>{var t,s;return(null!=(s=null==e||null==(t=e.files)?void 0:t.length)?s:0)<=1},[null==e?void 0:e.files]),ex=(0,n.useMemo)(()=>(null==e?void 0:e.catId)===27,[null==e?void 0:e.catId]),e_=(0,n.useMemo)(()=>null==F?void 0:F.find(t=>(null==t?void 0:t.id)===(null==e?void 0:e.catId)),[F,null==e?void 0:e.catId]),ep=(0,n.useMemo)(()=>[6,7].indexOf(null==e?void 0:e.released)>=0,[null==e?void 0:e.released]),ev=(0,n.useMemo)(()=>null==e?void 0:e.isScheduled,[null==e?void 0:e.isScheduled]),eg=(0,n.useMemo)(()=>(null==e?void 0:e.released)===10,[null==e?void 0:e.released]),ef=(0,n.useMemo)(()=>(null==e?void 0:e.released)===-1||(null==e?void 0:e.released)===0,[null==e?void 0:e.released]),eC=(0,n.useMemo)(()=>(null==e?void 0:e.released)===4,[null==e?void 0:e.released]),ey=(0,n.useCallback)(()=>ev?"".concat(null!=w?w:"","/lottiefiles/schedule.json"):eg?"".concat(null!=w?w:"","/lottiefiles/disabled.json"):ep?"".concat(null!=w?w:"","/lottiefiles/private.json"):eC?"".concat(null!=w?w:"","/lottiefiles/copyright.json"):"".concat(null!=w?w:"","/lottiefiles/excluded.json"),[ev,eg,ep,eC]),ej=(0,n.useMemo)(()=>er&&(null==e?void 0:e.showComments)||ep&&eo,[er,null==e?void 0:e.showComments,eo,ep]),eb=(0,n.useCallback)(()=>{var t,n,a;if(!(null==e||null==(t=e.files)?void 0:t.length))return;if(S)return void o().fire({title:"Oops...",text:d("TheCDWillPlayAfterTheAdvertisement",{locale:s}).toString(),icon:"warning",customClass:A});let i=(null==M||null==(n=M[1])?void 0:n.albumId)===(null==e?void 0:e.id);(null!=(a=null==M?void 0:M.length)?a:0)!==0&&i?B():(I({category:l,action:f.A.Play,label:null==e?void 0:e.title,id:null==e?void 0:e.id,page:g.A.CDVip}),k(e))},[e,S,l,k,B,null==M?void 0:M.length,null==M||null==(t=M[1])?void 0:t.albumId]),ew=(0,n.useMemo)(()=>{var t,s;
1return(null==m||null==(s=m.favorites)||null==(t=s.cdids)?void 0:t.find(t=>t===(null==e?void 0:e.id)))===(null==e?void 0:e.id)},[m,null==e?void 0:e.id,N]),eA=(0,n.useCallback)(()=>{I({category:y.A.CD,action:f.A.CDMenu,label:"Incluir na R\xe1dio",id:null==e?void 0:e.id,page:g.A.CDVip}),E(e)},[e,E]),eI=(0,n.useCallback)(()=>{I({category:y.A.Playlist,action:f.A.AddToPlaylist,label:null==e?void 0:e.title,id:null==e?void 0:e.id,page:""}),H(!0)},[e]),eN=(0,n.useCallback)(()=>{I({category:l,action:f.A.TracksMenu,label:"Incorporar CD",id:null==e?void 0:e.id,page:""}),O(!0)},[null==e?void 0:e.id,l]),eS=(0,n.useCallback)(()=>{z(!0)},[]),ek=(0,n.useCallback)(()=>{z(!1)},[]),eT=(0,n.useCallback)(()=>{(null==e?void 0:e.id)&&r("/biblioteca/cds/editar/".concat(null==e?void 0:e.id))},[null==e?void 0:e.id]),eM=(0,n.useCallback)(()=>{W(!0)},[]),eB=(0,n.useCallback)(()=>{W(!1)},[]),eD=(0,n.useCallback)(()=>{Q(!0)},[]),eP=(0,n.useCallback)(()=>{Q(!1)},[]),eE=(0,n.useCallback)(()=>{(0,j.B)(e)},[e]);return{handlePlayCd:eb,isPlaying:el,isCdFavorite:ew,toggleFavorite:D,favoriteIdLoading:P,includeOnRadio:eA,addCdToPlaylist:eI,showPlaylistCreation:R,setShowPlaylistCreation:H,showEmbedCd:L,setShowEmbedCd:O,embedCd:eN,showCdInformationsModal:V,handleOpenCdInformationsModal:eS,handleCloseCdInformationsModal:ek,handleEditCd:eT,handleOpenReportContentModal:eM,handleCloseReportContentModal:eB,handleOpenReportProblemModal:eD,handleCloseReportProblemModal:eP,showReportContentModal:U,showReportProblemModal:K,setShowReportProblemModal:Q,setShowReportContentModal:W,handleDownloadCd:eE,handleShareCd:(0,n.useCallback)(()=>{var t,s,n,a,i;I({category:y.A.Share,action:f.A.Share,label:"shared",value:4}),navigator&&((null==(t=navigator)?void 0:t.share)?null==(s=navigator)||s.share({url:null==e?void 0:e.shareUrl}):(null==(a=navigator)||null==(n=a.clipboard)||n.writeText(null!=(i=null==e?void 0:e.shareUrl)?i:""),o().fire({title:"Link copiado!",text:"Agora voc\xea pode compartilhar com seus amigos!",icon:"success",confirmButtonText:"Fechar"})))},[null==e?void 0:e.shareUrl]),isFollowingArtist:ei,handleFollowArtist:es,handleUnfollowArtist:en,submittingFollowArtist:ea,isOwner:eo,isReleased:er,isNotListed:ed,ownerOrAdmin:eu,handleSeeReleases:(0,n.useCallback)(()=>{r("/")},[]),isDeletedOrCopyrightPenalty:ec,canSeeCdContent:em,isSingleSong:eh,isPodcast:ex,musicalStyle:e_,showCdComments:ej,isAdminUser:v,isScheduled:ev,isDisabled:eg,isDeleted:ef,isCopyrightPenalty:eC,getLottieIconUrl:ey,dateFormatted:q,playsFormatted:G,downloadsFormatted:J,sizeFormatted:Z,yearFormatted:X,datePublishedFormatted:Y,comments:$}}},20329:e=>{e.exports={albumTrackList:"styles_albumTrackList___rkUh",albumContainer:"styles_albumContainer__Hz_I3",track:"styles_track__22NUP",image:"styles_image__5ZE_i",fileContent:"styles_fileContent__o7ExV",fileWrapper:"styles_fileWrapper__oRfgK",playing:"styles_playing__A4xDG",file:"styles_file__WDRrW",artistContent:"styles_artistContent__KaUPn",artist:"styles_artist__tYzaH",icon:"styles_icon__W4irM",icons:"styles_icons__GRd4c",iconDownload:"styles_iconDownload__nmg_4",iconButton:"styles_iconButton__QHpGz",emptyPlaylist:"styles_emptyPlaylist__SL_h2",cd:"styles_cd__cqHNt",active:"styles_active__m0TqK",optionMenu:"styles_optionMenu__9YF7y",sharedContainer:"styles_sharedContainer__pKc2l"}},23596:e=>{e.exports={cdInformationsModalContainer:"styles_cdInformationsModalContainer__FSKV9",cdInformationsModalHeader:"styles_cdInformationsModalHeader__WUFCM",cdInformationsModalTitle:"styles_cdInformationsModalTitle__BnSzE",cdInformationsModalBody:"styles_cdInformationsModalBody__K481K",cdInformationsModalCover:"styles_cdInformationsModalCover__Wee_j",cdInformationsModalCoverInfo:"styles_cdInformationsModalCoverInfo__UJbk2",cdInformationsModalCoverTitle:"styles_cdInformationsModalCoverTitle__cCeuk",cdInformationsModalCoverArtistContainer:"styles_cdInformationsModalCoverArtistContainer__lituw",cdInformationsModalCoverArtist:"styles_cdInformationsModalCoverArtist__s32Hh",verifiedIcon:"styles_verifiedIcon__EZi_o",cdInformationsModalInfos:"styles_cdInformationsModalInfos__h01Xw",cdInformationsModalInfosItem:"styles_cdInformationsModalInfosItem__269o6",cdInformationsModalInfosTitle:"styles_cdInformationsModalInfosTitle__QNaPJ",cdInformationsModalInfosValue:"styles_cdInformationsModalInfosValue__WB0jp",cdInformationsModalInfoMusicalStyle:"styles_cdInformationsModalInfoMusicalStyle__QuGPY",cdInformationsModalInfoMusicalStyleName:"styles_cdInformationsModalInfoMusicalStyleName__r8sH0"}},24275:e=>{e.exports={SuggestionSlideToFollowContainer:"styles_SuggestionSlideToFollowContainer__32l7v",carouselBody:"styles_carouselBody__BbOcG",icon:"styles_icon__8xcCS",suggestedProfiles:"styles_suggestedProfiles__
1XaiG5",suggestedText:"styles_suggestedText__ZzaGZ",suggestedName:"styles_suggestedName___kQEL",suggestedFollowButton:"styles_suggestedFollowButton__s_E2t",modalButton:"styles_modalButton__FEoEE",musicalStylesCarouselContainer:"styles_musicalStylesCarouselContainer__0V5mu"}},26995:e=>{e.exports={drawerContainer:"styles_drawerContainer__1eyk_",closeButton:"styles_closeButton__A8SvT",drawerContent:"styles_drawerContent__u5p3V",drawerTitle:"styles_drawerTitle__mGy8c",divider:"styles_divider__9j_w0",drawerBody:"styles_drawerBody__LIqHc",drawerText:"styles_drawerText__6oDtX",drawerIcons:"styles_drawerIcons__ftGoe",icons:"styles_icons__gY_Wr",drawerButtonCallToAction:"styles_drawerButtonCallToAction__D1dLN",loadingSpinner:"styles_loadingSpinner__HmxOC",spin:"styles_spin__UuP8w",drawerButtonCloseContent:"styles_drawerButtonCloseContent__p7uU7",drawerButtonClose:"styles_drawerButtonClose__7sTP6",successView:"styles_successView__ue0RG",successTitle:"styles_successTitle__EzdYU",successIcon:"styles_successIcon__aW5IQ",successMessage:"styles_successMessage__3ndJS",successFooter:"styles_successFooter__XGCG9",successLink:"styles_successLink__LWzhW",handle:"styles_handle__nH1fV"}},27964:e=>{e.exports={trackListContainer:"styles_trackListContainer__3BdUw",trackList:"styles_trackList__RVyIy",trackItem:"styles_trackItem__5ZP50",downloadTrackButton:"styles_downloadTrackButton__mb4aX",downloadTrackButtonHoverId:"styles_downloadTrackButtonHoverId__HYXAF",trackItemActions:"styles_trackItemActions___gmV2",trackActionButton:"styles_trackActionButton__Bztnh",trackItemButton:"styles_trackItemButton__4_COE",trackItemFileNameContainer:"styles_trackItemFileNameContainer__vSc6y",trackItemFileNamePlaying:"styles_trackItemFileNamePlaying__UMHdf",trackExplicitIcon:"styles_trackExplicitIcon__Y67Cb",trackItemPositionCell:"styles_trackItemPositionCell__xO0ar",playButton:"styles_playButton__ln1MX"}},28388:e=>{e.exports={albumOptionsContainer:"styles_albumOptionsContainer__7hSzg",optionMenu:"styles_optionMenu__tcrcK",albumInfo:"styles_albumInfo__0_jYa",albumInfoHeader:"styles_albumInfoHeader__XW6xr",albumInfoBody:"styles_albumInfoBody__1OG7D",musicalStyles:"styles_musicalStyles__gfkcE",icon:"styles_icon__3wq1U",sharedContainer:"styles_sharedContainer__zjvzs"}},30889:e=>{e.exports={cdHeaderInfoContainer:"styles_cdHeaderInfoContainer__N3zsi",buttonsContainer:"styles_buttonsContainer__giHuE",artistUsername:"styles_artistUsername__n2LSR",infoContainer:"styles_infoContainer__Od1Uz",comment:"styles_comment__aGuW_",tagsContainer:"styles_tagsContainer__j4m_z",buttonBoxCard:"styles_buttonBoxCard__CRjeS",buttonBoxCardText:"styles_buttonBoxCardText__vTzC7",settingsButton:"styles_settingsButton__89h_d",cdMenuOptionsContainer:"styles_cdMenuOptionsContainer__C6Q4y"}},41304:(e,t,s)=>{"use strict";s.d(t,{Q:()=>h,h:()=>m});var n=s(37876),a=s(14232),i=s(69980),l=s(68423),o=s(52986),r=s(59265),d=s(6132),c=s(99853);let u=(0,a.createContext)(null);function m(e){let{children:t}=e,{isAuthenticated:s,setOpenRegistrationModal:m}=(0,c.Z2)(),[h,x]=(0,a.useState)(!1),_=(0,a.useCallback)(()=>{if(!s)return void m(!0);i.F.logEvent((0,l.L)({category:o.A.Follow,page:r.A.CD,action:h?d.A.Close:d.A.Open})),x(e=>!e)},[s]);return(0,n.jsx)(u.Provider,{value:{isSuggestionsOpen:h,toggleSuggestions:_},children:t})}function h(){let e=(0,a.useContext)(u);if(!e)throw Error("useSuggestionsContext must be used within a SuggestionsProvider");return e}},46131:e=>{e.exports={recommendedCdsCards:"styles_recommendedCdsCards__ALbtz"}},50504:e=>{e.exports={cdHeaderStatsContainer:"styles_cdHeaderStatsContainer__tBAG5",statsPrimary:"styles_statsPrimary__kaPTO",statsSecondary:"styles_statsSecondary__4i5Ii"}},50933:e=>{e.exports={albumInfoBox:"styles_albumInfoBox__Pdheg",blurhash:"styles_blurhash___6uKv",infoBoxActions:"styles_infoBoxActions__TGVdN",playHeaderActive:"styles_playHeaderActive__cQME0",playHeaderTransitionActive:"styles_playHeaderTransitionActive__Ojgwf",infoBoxHeader:"styles_infoBoxHeader__ggUBa",blurhashHeader:"styles_blurhashHeader__nQgH4",blurhashHeaderActive:"styles_blurhashHeaderActive__h8cxw",infoBoxHeaderTitle:"styles_infoBoxHeaderTitle__eDdq5",infoBoxHeaderTitleActive:"styles_infoBoxHeaderTitleActive__Rvtyj",title:"styles_title__3P54j",artistContent:"styles_artistContent__Iw11E",artist:"styles_artist__JHU6F",icon:"styles_icon__wnKDi",infoBoxContainerMobile:"styles_infoBoxContainerMobile__Rqknt",infoBox:"styles_infoBox__1bmj7",albumContent:"styles_albumContent__aeg_o",albumContentDisabled:"styles_albumContentDisabled__C6TdM",carousel:"styles_carousel__CmYOt",cardContent:"styles_cardContent__XpeVv",cardPlay:"styles_cardPlay__71jce",cardTransition:"styles_cardTransition__d1rQv",descriptionContent:"styles_descriptionContent__THBzf",description:"styles_description__CvJP_",albumWrapper:"styles_albumWrapper__UEPN7",titleWrapper:"styles_titleWrapper__qYuv4",artistWrapper:"styles_artistWrapper___JDq7",countInfo:"styles_countInfo__nujGG",plays:"styles_plays__U3rqW",separator:"styles_separator__buBi8",musics:"styles_musics__57tj8"}},51127:e=>{e.exports={wrapperPageContainer:"styles_wrapperPageContainer__2AFfK"}},52098:(e,t,s)=>{"use strict";s.d(t,{g:()=>te});var n=s(37876),a=s(66153),i=s(98399),l=s(73158),o=s(62148),r=s(89099),d=s(56661),c=s(81195),u=s(58487),m=s(83016),h=s.n(m),x=s(14232),_=s(92987),p=s(2491),v=s.n(p);s(98880);var g=s(99853),f=s(47554),C=s(41435),y=s(80208),j=s(59265),b=s(6132),w=s(24275),A=s.n(w);let{publicRuntimeConfig:{assets:I}}=h()();function N(){let e=(0,d.useTranslations)("Shared"),{locale:t}=(0,r.useRouter)(),{userFollowers:s,isAuthenticated:a}=(0,x.useContext)(g.cy),[i,l]=(0,x.useState)(null);async function o(){if(a&&!i){v().fire({title:e("Processing",{locale:t}).toString(),imageUrl:"".concat(I,"/img/ajax-loader.gif"),customClass:{container:"modal",actions:"containerButtonBlue"}});let n=await f.G.getTopUsers(6,s.follow.toString(),!0);n&&l(function(e){let t,s=e.length;for(;0!==s;)t=Math.floor(Math.random()*s),s--,[e[s],e[t]]=[e[t],e[s]];return e}(n)),v().close()}}return(0,x.useEffect)(()=>{o()},[s]),(0,n.jsxs)("div",{className:A().SuggestionSlideToFollowContainer,children:[i&&(0,n.jsx)("h2",{children:e("SuggestionsToFollow",{locale:t})}),(0,n.jsx)("div",{children:i&&(0,n.jsx)(_.default,{additionalTransfrom:0,arrows:!0,infinite:!0,className:A().carouselBody,focusOnSelect:!1,keyBoardControl:!0,minimumTouchDrag:40,renderButtonGroupOutside:!1,responsive:{desktop:{breakpoint:{max:5e3,min:1080},items:4},tablet:{breakpoint:{max:1080,min:767},items:3},preMobile:{breakpoint:{max:767,min:0},items:2}},slidesToSlide:1,swipeable:!0,children:i.map(e=>e.id&&(0,n.jsxs)("div",{className:A().suggestedProfiles,children:[(0,n.jsx)("div",{children:(0,n.jsx)(c.A,{href:"/".concat(e.username),prefetch:!1,children:(0,n.jsx)(u.default,{unoptimized:!0,src:null==e?void 0:e.avatar,alt:"",width:70,height:70})})}),(0,n.jsxs)("div",{className:A().suggestedText,children:[(0,n.jsx)("div",{className:A().suggestedName,children:(0,n.jsx)(y.y,{isVip:e.isVerified,name:e.name,username:e.username,userId:e.id})}),(0,n.jsx)(C.x,{id:e.id,className:A().suggestedFollowButton,trackingPage:j.A.CD,trackingAction:b.A.SuggestedProfiles,username:e.username,isModal:!0,small:!0})]})]},e.id))})})]})}var S=s(42066),k=s(68550),T=s(82322),M=s(3775),B=s(41304),D=s(19586),P=s(71380),E=s(16915),F=s(62814),R=s(54260),H=s(46131),L=s.n(H),O=s(35003),V=s(99064),z=s.n(V),U=s(65422),W=s(71733),K=s(15852),Q=s(65754),q=s(40248),Y=s(65106),G=s(13480),J=s(1013),Z=s(15039),X=s.n(Z),$=s(84330),ee=s(40592),et=s(21735),es=s(52986),en=s(68423),ea=s(69980);function ei(e){var t;let{locale:s}=(0,r.useRouter)(),n=(0,d.useTranslations)("Shared"),{userFollowers:a,isAdminUser:i}=(0,g.Z2)(),{currentTrack:l,status:o,adsReady:c,playTrack:u,addToPlaylist:m,findMusicInPlaylist:h,toggleFavorite:_,favoriteIdLoading:p,addMusicToRadio:f,hightlightArtistTrack:C,setQueue:y}=(0,et.FQ)(),j=e.files.length,[w,A]=(0,x.useState)(null),[I,N]=(0,x.useState)(!1),[S,k]=(0,x.useState)(!1),T=(0,x.useCallback)(e=>{ea.F.logEvent((0,en.L)({category:es.A.CD,action:b.A.TracksMenu,label:"adicionar a playlist",value:e.id})),y("Closed"),N(!0)},[]),M=(0,x.useCallback)(e=>{ea.F.logEvent((0,en.L)({category:es.A.CD,action:b.A.MusicList,label:"Incorporar M\xfasica",value:e.id})),k(!0)},[]),B=(0,x.useCallback)(t=>(null==l?void 0:l.id)===t&&(null==l?void 0:l.albumId)===e.id,[l,e]),D=(0,x.useCallback)((t,s)=>{if((null==l?void 0:l.id)===s)return;let n=h(s);-1!==n?u(n):m(e,void 0,t)},[e,h,u,m,null==l?void 0:l.id]),P=(0,x.useCallback)(t=>{var a={label:"Incluir na R\xe1dio",value:t.cdId};let i={action:b.A.CDMenu,category:es.A.CD};ea.F.logEvent((0,en.L)({...i,...a}
1)),f(t,e),v().fire({icon:"success",text:n("MusicAddedTheEndOfThePlayer",{locale:s}).toString(),showConfirmButton:!1,timer:1500,customClass:{container:"modal",actions:"containerButton"}})},[e,f]),E=(0,x.useCallback)(e=>{var t,s;return(null==a||null==(s=a.favorites)||null==(t=s.arqids)?void 0:t.find(t=>t===e))===e},[null==a||null==(t=a.favorites)?void 0:t.arqids]);return{totalTracks:j,hoveredId:w,setHoveredId:(0,x.useCallback)(e=>A(e),[]),checkIfTrackIsPlaying:B,handlePlayTrack:D,handleIncludeOnRadio:P,isFavorite:E,isAdminUser:i,status:o,adsReady:c,toggleFavorite:_,favoriteIdLoading:p,hightlightArtistTrack:C,handleAddToPlaylist:T,handleEmbedTrack:M,showPlaylistCreation:I,setShowPlaylistCreation:N,showEmbed:S,setShowEmbed:k}}var el=s(26980),eo=s(42371),er=s(60230),ed=s(97481),ec=s(48677),eu=s(89850),em=s(43019),eh=s(930),ex=s(87701),e_=s(80553),ep=s(82365),ev=s(40912),eg=s(82309),ef=s(27688),eC=s(92246),ey=s(36110),ej=s(69047),eb=s.n(ej);let ew=()=>(0,n.jsxs)("div",{className:eb().songCreditsModalContent,children:[(0,n.jsxs)("div",{className:eb().albumInfoContainer,children:[(0,n.jsx)(ey.A,{variant:"rectangular",width:52,height:46}),(0,n.jsxs)("div",{className:eb().albumInfoTextsContainer,children:[(0,n.jsx)(ey.A,{variant:"text",width:200,height:24}),(0,n.jsxs)("div",{className:eb().artistNameContainer,children:[(0,n.jsx)(ey.A,{variant:"text",width:150,height:20}),(0,n.jsx)(ey.A,{variant:"circular",width:16,height:16})]})]})]}),(0,n.jsxs)("div",{className:eb().creditsInfoContainer,children:[(0,n.jsxs)("div",{className:eb().creditItem,children:[(0,n.jsx)(ey.A,{variant:"text",width:120,height:20}),(0,n.jsx)(ey.A,{variant:"text",width:180,height:20})]}),(0,n.jsxs)("div",{className:eb().creditItem,children:[(0,n.jsx)(ey.A,{variant:"text",width:120,height:20}),(0,n.jsx)(ey.A,{variant:"text",width:180,height:20})]}),(0,n.jsx)(ey.A,{variant:"rectangular",width:"100%",height:40,sx:{borderRadius:1}}),(0,n.jsx)(ey.A,{variant:"rectangular",width:"100%",height:40,sx:{borderRadius:1}})]})]}),eA=e=>{var t,s,a,i;let{isSongCreditsModalOpen:l,handleCloseSongCreditsModal:o,album:c,songId:m,songsCredits:h,fetchingCredits:_,songInfo:p}=e,v=(0,d.useTranslations)("Shared"),{locale:f,push:C}=(0,r.useRouter)(),{user:y,isAuthenticated:j}=(0,g.Z2)(),[b,w]=(0,x.useState)(!1),[A,I]=(0,x.useState)(!1),N={composer:null!=(a=null==h||null==(t=h[m])?void 0:t.composer)?a:"",identified_by:null!=(i=null==h||null==(s=h[m])?void 0:s.identified_by)?i:""},S=()=>{j?w(!0):I(!0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ex.A,{open:l,onClose:o,maxWidth:"sm",fullWidth:!0,className:eb().songCreditsModalContainer,PaperProps:{sx:{borderRadius:"1px"}},children:[(0,n.jsxs)(ep.A,{className:eb().songCreditsModalHeader,children:[(0,n.jsx)(O.A,{className:eb().songCreditsModalTitle,children:v("Credits",{locale:f})}),(0,n.jsx)(K.A,{title:v("Close",{locale:f}).toString(),children:(0,n.jsx)(W.A,{onClick:o,children:(0,n.jsx)(ev.EIA,{})})})]}),(0,n.jsxs)(e_.A,{className:eb().songCreditsModalBody,children:[_&&(0,n.jsx)(ew,{}),!_&&p&&(0,n.jsxs)("div",{className:eb().songCreditsModalContent,children:[(0,n.jsxs)("div",{className:eb().albumInfoContainer,children:[(0,n.jsx)(u.default,{src:p.cover,alt:p.songName,width:52,height:46}),(0,n.jsxs)("div",{className:eb().albumInfoTextsContainer,children:[(0,n.jsx)(O.A,{className:eb().songName,children:p.songName}),(0,n.jsxs)("div",{className:eb().artistNameContainer,children:[(0,n.jsx)(O.A,{className:eb().artistName,children:p.artistName}),p.isVerified&&(0,n.jsx)("span",{className:eb().verifiedIcon,children:(0,n.jsx)(q.qEQ,{})})]})]})]}),(0,n.jsxs)("div",{className:eb().creditsInfoContainer,children:[(0,n.jsxs)("div",{className:eb().creditItem,children:[(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoTitle),children:v("CompositionBy",{locale:f})}),(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoValue),children:N.composer?N.composer:(0,n.jsxs)("div",{style:{color:"var(--blue-700)",display:"flex",gap:"4px",alignItems:"center"},children:[(0,n.jsx)("p",{style:{fontSize:"14px",fontWeight:500,textTransform:"none",margin:0},children:v("NotFound",{locale:f})}),(0,n.jsx)("button",{type:"button",style:{color:"var(--blue-700)",fontSize:"14px",fontWeight:500,backgroundColor:"transparent",border:"none",padding:0},onClick:()=>S(),className:eb().actionButtonSuggestion,children:(0,n.jsx)(O.A,{style:{fontSize:"14px",fontWeight:500,textTransform:"lowercase",textDecoration:"underline"},children:v("MakeASuggestion",{locale:f})})})]})})]}),(0,n.jsxs)("div",{className:eb().creditItem,children:[(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoTitle),children:v("IdentifiedBy",{locale:f})}),"IA"===N.identified_by&&(0,n.jsxs)("div",{className:eb().iaContainer,children:[(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoValue),children:v("IA",{locale:f})}),(0,n.jsx)(q.uDi,{})]}),"IA"!==N.identified_by&&(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoValue),children:N.identified_by?N.identified_by:(0,n.jsx)("div",{style:{color:"var(--blue-700)",display:"flex",gap:"8px",alignItems:"center"},children:(0,n.jsxs)("div",{style:{fontSize:"14px",fontWeight:500,textTransform:"none",margin:0,display:"flex",gap:"4px",alignItems:"center"},children:[(0,n.jsx)("p",{style:{margin:0},children:v("IaSuggestion",{locale:f})}),(0,n.jsx)("button",{type:"button",style:{color:"var(--blue-700)",fontSize:"14px",fontWeight:500,backgroundColor:"transparent",border:"none",padding:0},onClick:()=>S(),className:eb().actionButtonSuggestion,children:(0,n.jsx)(O.A,{style:{fontSize:"14px",fontWeight:500,textTransform:"none",textDecoration:"underline"},children:v("MakeASuggestion",{locale:f})})})]})})})]}),(0,n.jsx)(Q.A,{variant:"text",style:{marginLeft:"auto",color:"var(--red-700)",marginTop:"16px"},className:eb().actionButton,onClick:()=>S(),children:(0,n.jsx)(O.A,{style:{fontSize:"14px",fontWeight:500,color:"var(--red-700)"},className:X()(eb().creditsInfoText,eb().creditsInfoValue),children:v("IsThisInformationIncorrectLetsUsKnow",{locale:f})})}),(null==y?void 0:y.id)===c.ownerId&&(0,n.jsx)(W.A,{className:eb().actionButton,onClick:()=>C("/biblioteca/cds/editar/".concat(c.id,"?songId=").concat(p.songId)),children:(0,n.jsx)(O.A,{className:X()(eb().creditsInfoText,eb().creditsInfoValue),children:v("Edit",{locale:f})})})]})]})]})]}
1),(0,n.jsx)(eg.H,{openModal:b,album:c,setOpenModal:w,extraOptions:eC.QG,extraData:{songId:p.songId,songName:p.songName}}),(0,n.jsx)(ef.RegistrationModalComponent,{modal:A,setModal:I,actionAfterLogin:()=>{w(!0),I(!1)},onCloseModal:()=>I(!1)})]})};var eI=s(82967),eN=s.n(eI);let eS=e=>{var t;let{file:s}=e,{locale:a}=(0,r.useRouter)(),i=(0,d.useTranslations)("Shared"),l=(0,T.A)(),{isSongCreditsOpen:o,fetchingCredits:c,songsCredits:u,songId:m,songInfo:h,handleOpenSongCredits:_,handleCloseSongCredits:p,getAlbumCredits:v}=(0,D.w)(),{handleAddToPlaylist:g,handleEmbedTrack:f,showPlaylistCreation:C,setShowPlaylistCreation:y,showEmbed:j,setShowEmbed:b}=ei(l),[w,A]=(0,x.useState)(null),I=!!w,N=()=>A(null),S=[{key:"AddToPlaylist",icon:q.AtM,handleMenuAction:g},{key:"Incorporate",icon:q.WnQ,handleMenuAction:f},{key:"SeeSongCredits",icon:q.z3W,handleMenuAction:e=>_(e.id,l,e.file)}];return(0,x.useEffect)(()=>{o&&!u&&v(null==l?void 0:l.id)},[o,u,v,null==l?void 0:l.id]),(0,n.jsxs)("div",{className:eN().trackMenuOptions,children:[(0,n.jsx)(W.A,{size:"small",className:eN().trackMenuButton,"aria-label":i("MoreOptions",{locale:a}).toString(),"aria-controls":I?"track-options-menu":void 0,"aria-haspopup":"true","aria-expanded":I?"true":void 0,onClick:e=>A(e.currentTarget),children:(0,n.jsx)(eu.ZZB,{"aria-hidden":!0})}),(0,n.jsx)(eo.A,{className:eN().trackMenu,id:"track-options-menu",anchorEl:w,open:I,onClose:N,MenuListProps:{"aria-labelledby":"track-options-button"},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:S.map((e,t)=>{let{key:l,icon:o,handleMenuAction:r}=e;return(0,n.jsxs)(er.A,{onClick:()=>{null==r||r(s),N()},sx:t<S.length-1?{mb:1}:void 0,children:[(0,n.jsx)(ed.A,{children:(0,n.jsx)(o,{size:20,"aria-hidden":!0,color:"#666666"})}),(0,n.jsx)(ec.A,{children:i(l,{locale:a})})]},l)})}),C&&(0,n.jsx)(eh.PlaylistCreationModalComponent,{state:C,setState:y,typeToBeAdded:"audioTrack",idOfTypeToBeAdded:s.id,initialPlaylistName:null!=(t=s.file)?t:""}),j&&(0,n.jsx)(em.N,{state:j,setState:b,playlist:l,single:s.id}),m&&(0,n.jsx)(eA,{isSongCreditsModalOpen:o,handleCloseSongCreditsModal:p,album:l,songId:m,songsCredits:null!=u?u:[],fetchingCredits:c,songInfo:h})]})};var ek=s(27964),eT=s.n(ek);let eM=()=>{let{locale:e}=(0,r.useRouter)(),t=(0,d.useTranslations)("Shared"),s=(0,T.A)(),{totalTracks:a,hoveredId:i,setHoveredId:l,checkIfTrackIsPlaying:o,handlePlayTrack:c,handleIncludeOnRadio:u,isFavorite:m,isAdminUser:h,status:_,adsReady:p,toggleFavorite:v,favoriteIdLoading:g,hightlightArtistTrack:f}=ei(s),[C,y]=(0,x.useState)(s);return(0,n.jsx)("section",{className:eT().trackListContainer,children:(0,n.jsx)("ul",{className:eT().trackList,children:(0,n.jsx)(U.A,{loader:(0,n.jsx)($._,{}),dataLength:a,next:()=>null,hasMore:!1,height:a<11?null:680,children:C.files.map((a,r)=>{let d=o(a.id);return(0,n.jsxs)("li",{className:eT().trackItem,onMouseEnter:()=>l(a.id),onMouseLeave:()=>l(null),children:[(0,n.jsx)("div",{role:"button",tabIndex:0,className:eT().trackItemButton,onClick:()=>c(r,a.id),onKeyDown:()=>c(r,a.id),"aria-label":"Reproduzir ".concat(a.file),children:(0,n.jsxs)("div",{className:eT().trackItemFileNameContainer,children:[(0,n.jsxs)("div",{className:eT().trackItemPositionCell,children:[d&&(0,n.jsx)(ee.k,{status:"Play"!==_||p?"stop":"play"}),!d&&i===a.id&&(0,n.jsx)(W.A,{size:"small",className:eT().playButton,"aria-label":"Reproduzir",children:(0,n.jsx)(q.dY6,{height:"fill","aria-hidden":!0})}),!d&&i!==a.id&&(0,n.jsxs)(O.A,{children:[(a.position+1).toString().padStart(1,"0"),"."]})]}),(0,n.jsx)(O.A,{className:X()({[eT().trackItemFileNamePlaying]:d}),children:a.file}),a.isExplicit&&(0,n.jsx)(K.A,{title:t("ExplicitContent",{locale:e}).toString(),placement:"top-start",arrow:!0,children:(0,n.jsx)("span",{className:eT().trackExplicitIcon,"aria-label":t("ExplicitContent",{locale:e}).toString(),children:(0,n.jsx)(G.Blk,{})})})]})}),i===a.id&&(0,n.jsxs)("div",{className:eT().trackItemActions,children:[h&&(0,n.jsx)(K.A,{title:t("HighlightArtistTrack",{locale:e}).toString(),placement:"top",arrow:!0,children:(0,n.jsx)(W.A,{size:"small",className:eT().trackActionButton,"aria-label":t("HighlightArtistTrack",{locale:e}).toString(),onClick:async()=>{y(await f(a.id,s.id,s.ownerId,!!a.isHit))},children:(0,n.jsx)(Y.Ny1,{color:(null==a?void 0:a.isHit)?"#d0021b":"currentColor"})})}),(0,n.jsx)(K.A,{title:m(a.id)?t("Favorite",{locale:e}).toString():t("FavoriteAlbum",{locale:e,album:t("Song",{locale:e}).toString()}).toString(),placement:"top",arrow:!0,children:(0,n.jsx)(W.A,{size:"small",className:eT().trackActionButton,"aria-label":t("Favorite",{locale:e}).toString(),onClick:()=>v(a.id),disabled:g===a.id,children:m(a.id)?(0,n.jsx)(G.z8S,{color:"red"}):(0,n.jsx)(G.OxO,{})})}),(0,n.jsx)(K.A,{title:t("IncludeOnRadio",{locale:e}).toString(),placement:"top",arrow:!0,children:(0,n.jsx)(W.A,{size:"small",className:eT().trackActionButton,"aria-label":t("IncludeOnRadio",{locale:e}).toString(),onClick:()=>u(a),children:(0,n.jsx)(J.BlJ,{})})}),(0,n.jsx)(eS,{file:a})]}),(0,n.jsx)(Q.A,{size:"small",variant:"outlined",className:X()(eT().downloadTrackButton,{[eT().downloadTrackButtonHoverId]:i===a.id}),startIcon:(0,n.jsx)(q.Fhs,{}),onClick:()=>(0,el.P)(a,s),"aria-label":t("Download",{locale:e}).toString(),children:t("Download",{locale:e})})]},a.id)})})})})},eB=()=>{let{locale:e}=(0,r.useRouter)(),t=(0,d.useTranslations)("Shared"),s=(0,T.A)(),{isSingleSong:a,isPodcast:i,musicalStyle:l}=(0,M.L)(),o=(0,x.useMemo)(()=>a?t("SingleSong",{locale:e}):i?"PODCAST":t("CDSongs",{locale:e}),[a,i]);return(0,n.jsxs)("div",{className:z().cdContentContainer,children:[(0,n.jsxs)("div",{className:z().cdContentTitleContainer,children:[(0,n.jsx)(O.A,{variant:"h1",className:z().cdContentTitle,children:o}),(0,n.jsxs)("div",{className:z().cdContentTitleInfosContainer,children:[l&&(0,n.jsxs)("div",{className:z().cdContentTitleBadge,children:[(0,n.jsx)(u.default,{unoptimized:!0,src:null==l?void 0:l.svg,alt:null==l?void 0:l.name,width:14,height:14}),(0,n.jsx)(O.A,{className:z().cdContentTitleBadgeText,children:null==l?void 0:l.name})]}),s.topCdsMonthlyPosition&&(0,n.jsx)("div",{className:z().cdContentTitleBadge,children:(0,n.jsxs)(O.A,{className:z().cdContentTitleBadgeText,children:["#",s.topCdsMonthlyPosition," Top CD"]})})]})]}),(0,n.jsx)(eM,{})]})};function eD(e){let{recommendedAlbums:t,userVideos:s,recommendedNews:a,taboolaMid:i,taboolaBelow:l}=e,{locale:o,asPath:c}=(0,r.useRouter)(),u=(0,d.useTranslations)("Shared"),m=(0,T.A)(),{isSuggestionsOpen:h}=(0,B.Q)(),{canSeeCdContent:x,showCdComments:_}=(0,M.L)();return(0,n.jsxs)("section",{children:[(0,n.jsx)(k.Z,{isVip:null==m?void 0:m.isVip}),(0,n.jsx)(S.n,{suggestions:h?(0,n.jsx)(N,{}):void 0,children:(0,n.jsx)(R.z,{})}),(0,n.jsx)(F.O,{recommendationsColumn:t&&(0,n.jsx)(E.P,{homeCDs:t,style:L().recommendedCdsCards,mini:!0}),userVideos:s,recommendedNews:a,taboolaMid:i,taboolaBelow:l,comments:_?{show:!0,id:m.id.toString(),path:c,type:"cd"}:null,isVerified:null==m?void 0:m.isVerified,children:x&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eB,{}),(null==m?void 0:m.video)&&(0,n.jsx)("div",{style:{marginBottom:"48px"},children:(0,n.jsx)(P.c,{albumId:m.id,title:u("ArtistVideo",{locale:o}),video:m.video,green:!0})})]})})]})}function eP(e){let{album:t,recommendedAlbums:s,userVideos:a,recommendedNews:i,taboolaMid:l,taboolaBelow:o}=e;return(0,n.jsx)(T.r,{album:t,children:(0,n.jsx)(M.c,{children:(0,n.jsx)(D.$,{children:(0,n.jsx)(B.h,{children:(0,n.jsx)(eD,{recommendedAlbums:s,userVideos:a,recommendedNews:i,taboolaMid:l,taboolaBelow:o})})})})})}var eE=s(58549),eF=s(18847),eR=s.n(eF),eH=s(97088),eL=s(4231),eO=s(67376),eV=s(26995),ez=s.n(eV);let eU=eR()(()=>Promise.resolve().then(s.bind(s,58487)),{loadableGenerated:{webpack:()=>[58487]},ssr:!1}),{publicRuntimeConfig:{assets:eW}}=h()(),eK=[{id:"spotify",image:"".concat(eW,"/img/smdigital/parceiros/spotify_logo.png"),alt:"Spotify"},{id:"youtube-music",image:"".concat(eW,"/img/smdigital/parceiros/youtube_logo.png"),alt:"YouTube Music"},{id:"apple-music",image:"".concat(eW,"/img/smdigital/parceiros/apple_logo.png"),alt:"Apple Music"},{id:"soundcloud",image:"".concat(eW,"/img/smdigital/parceiros/soundcloud_logo.png"),alt:"SoundCloud"}];function eQ(e){let{className:t="",drawer:s,setDrawer:a,onClick:i=()=>null,image:l=""}=e,o=(0,eO.a)(),{user:r}=(0,g.Z2)(),[d,c]=(0,x.useState)("cta"),[u,m]=(0,x.useState)(!1),h=l||"drawer_after_upload";(0,x.useEffect)(()=>{s&&l&&ea.F.logEvent((0,en.L)({category:es.A.Upload,action:b.A.Impression,label:h,value:+!!o,property:"".concat(null==r?void 0:r.id)}))},[s,l]),(0,x.useEffect)(()=>{s||(c("cta"),m(!1))},[s]);let _=async()=>
1{if(r&&!u){ea.F.logEvent((0,en.L)({category:es.A.Upload,action:b.A.Click,label:h,value:+!!o,property:"".concat(null==r?void 0:r.id)})),l&&localStorage.setItem("SMDBannerId",l),m(!0);try{let e=await eL.InfoRepository.requestSMDLead(r.name,r.email,r.whatsApp||r.phone||"",r.instagram||r.username||"",(0,eH.w)(JSON.stringify(r)));(null==e?void 0:e.status)===200?(ea.F.logEvent((0,en.L)({category:es.A.LandingPageSMDigital,action:b.A.Sending,label:h,value:+!!o,property:"".concat(null==r?void 0:r.id)})),localStorage.getItem("SMDBannerId")&&localStorage.removeItem("SMDBannerId"),c("success")):v().fire({title:"Erro",text:"N\xe3o foi poss\xedvel enviar sua solicita\xe7\xe3o. Tente novamente.",icon:"error",confirmButtonColor:"var(--blue-85)"})}catch(e){v().fire({title:"Erro",text:"N\xe3o foi poss\xedvel enviar sua solicita\xe7\xe3o. Tente novamente.",icon:"error",confirmButtonColor:"var(--blue-85)"})}finally{m(!1)}}},p=()=>(0,n.jsxs)("div",{className:X()(ez().drawerContainer,{[t]:t}),children:[(0,n.jsx)("button",{type:"button",className:ez().closeButton,onClick:a,"aria-label":"Fechar",children:(0,n.jsx)(Y.QCr,{size:18})}),(0,n.jsx)("div",{className:ez().drawerContent,children:"cta"===d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ez().drawerTitle,children:(0,n.jsx)("h2",{children:"Arquivo enviado com sucesso"})}),(0,n.jsx)("div",{className:ez().divider}),(0,n.jsxs)("div",{className:ez().drawerBody,children:[(0,n.jsx)("p",{className:ez().drawerText,children:"BORA DISTRIBUIR SUAS M\xdaSICAS NAS PRINCIPAIS PLATAFORMAS DE STREAMING?"}),(0,n.jsx)("div",{className:ez().drawerIcons,children:eK.map(e=>(0,n.jsx)("div",{className:ez().icons,style:"youtube-music"===e.id?{filter:"none"}:{},children:(0,n.jsx)(eU,{src:e.image,alt:e.alt,width:o?32:80,height:o?32:80,style:{objectFit:"contain"}})},e.id))}),(0,n.jsx)("button",{type:"button",className:ez().drawerButtonCallToAction,onClick:_,disabled:u||!r,children:u?(0,n.jsx)("span",{className:ez().loadingSpinner}):"Quero distribuir"})]}),(0,n.jsx)("div",{className:ez().drawerButtonCloseContent,children:(0,n.jsx)("button",{className:ez().drawerButtonClose,type:"button",onClick:a,children:o?"Agora n\xe3o":"Depois"})})]}):(0,n.jsxs)("div",{className:ez().successView,children:[(0,n.jsx)("h2",{className:ez().successTitle,children:"Solicita\xe7\xe3o enviada"}),(0,n.jsx)(q.Ykz,{className:ez().successIcon,size:o?100:203}),(0,n.jsx)("p",{className:ez().successMessage,children:"Nossa equipe ir\xe1 entrar em contato em breve pelo e-mail cadastrado"}),(0,n.jsxs)("p",{className:ez().successFooter,children:["D\xfavidas?"," ",(0,n.jsx)("a",{href:"/sobre/central-de-ajuda",target:"_blank",rel:"noreferrer",className:ez().successLink,children:"Fale com a gente por aqui"})]})]})})]});return o?(0,n.jsxs)(eE.Ay,{anchor:"bottom",open:s,onClose:a,onClick:i,sx:{"& .MuiDrawer-paper":{width:"100%",height:"auto",maxHeight:"90vh",borderRadius:"20px 20px 0 0",padding:0,backgroundColor:"transparent",boxShadow:"none",overflow:"visible",zIndex:9999}},children:[(0,n.jsx)("span",{className:ez().handle,"aria-hidden":!0}),p()]}):(0,n.jsx)(ex.A,{open:s,onClose:a,onClick:i,maxWidth:!1,sx:{zIndex:9999,"& .MuiDialog-paper":{background:"transparent",boxShadow:"none",maxWidth:720,width:"100%",overflow:"visible",margin:16},"& .MuiDialogContent-root":{overflow:"visible",padding:0}},children:(0,n.jsx)(e_.A,{children:p()})})}var eq=s(10065),eY=s(84854),eG=s(82909).Buffer;let eJ=e=>{let{albumId:t}=e,{bannerAfterUpload:s,openDrawer:a,closeDrawer:i}=(e=>{let{isLoadedRemoteConfig:t,getString:s}=(0,eY.JN)(),{user:n}=(0,g.Z2)(),[a,i]=(0,x.useState)(null),[l,o]=(0,x.useState)(null),[r,d]=(0,x.useState)(!1),c=(0,x.useMemo)(()=>"cta_drawer_SMDigital_".concat(e),[e]),u="ctaUploadBanner",m=(0,x.useMemo)(()=>{var e;return null!=(e=(0,eq.Lg)(c))&&e},[c]),h=(0,x.useMemo)(()=>{var e;return null!=(e=(0,eq.Lg)(u))?e:[]},[]);return(0,x.useEffect)(()=>{if(t){let e=s("cta_after_upload_banner");i({bannerAfterUpload:e?JSON.parse(e):null})}},[t]),(0,x.useEffect)(()=>{var e;if(!(null==a?void 0:a.bannerAfterUpload)||!m)return;let t=null==(e=a.bannerAfterUpload[(null==n?void 0:n.isVerified)?"vip":"nvip"])?void 0:e.sort((e,t)=>
1e.src.localeCompare(t.src));if(!t||0===t.length)return;let s=t.find(e=>!h.includes(eG.from(e.src).toString("base64")));if(s){o({src:s.src,url:s.url});let e=[...h,eG.from(s.src).toString("base64")];(0,eq.ZB)(u,e)}else{let e=t[Math.floor(Math.random()*t.length)];e&&o({src:e.src,url:e.url})}d(!0)},[a,m,null==n?void 0:n.isVerified,h,c]),{bannerAfterUpload:l,openDrawer:r,closeDrawer:()=>{d(!1),(0,eq.$1)(c)}}})(t);return s?(0,n.jsx)(eQ,{drawer:a,setDrawer:i,image:null==s?void 0:s.src}):null};var eZ=s(99762),eX=s(68236),e$=s(7741),e0=s(86086),e1=s(83414),e2=s.n(e1);let e6="drawer_verify_profile_after_upload",e8={name:"",email:"",whatsapp:"",link:""},e4=e=>{let{albumId:t}=e,s=(0,eO.a)(),{user:a,setUser:i}=(0,g.Z2)(),{openDrawer:l,closeDrawer:o}=(e=>{let[t,s]=(0,x.useState)(!1),n=(0,x.useMemo)(()=>"cta_drawer_SMDigital_".concat(e),[e]),a=(0,x.useMemo)(()=>{var e;return null!=(e=(0,eq.Lg)(n))&&e},[n]);return(0,x.useEffect)(()=>{s(a)},[a]),{openDrawer:t,closeDrawer:()=>{s(!1),(0,eq.$1)(n)}}})(t),[r,d]=(0,x.useState)("cta"),[c,u]=(0,x.useState)(!1),[m,h]=(0,x.useState)(e8),_=a?"".concat("https://suamusica.com.br","/").concat(a.username):"";(0,x.useEffect)(()=>{l||(d("cta"),u(!1),h(e8))},[l]),(0,x.useEffect)(()=>{l&&ea.F.logEvent((0,en.L)({category:es.A.Upload,action:b.A.Impression,label:e6,value:+!!s,property:"".concat(null==a?void 0:a.id)}))},[l,s,null==a?void 0:a.id]);let p=async e=>{if(e.preventDefault(),!a||c)return;if(a.isVerified)return void o();if((()=>{var e,t,s;return!a||(null==(e=a.avatar)?void 0:e.includes("user"))||(null==(t=a.cover)?void 0:t.includes("sm-patter"))||(null==(s=a.about)?void 0:s.length)===0||0===a.uploads&&1!==a.type})())return void v().fire({title:"Complete seu perfil",text:"Antes de solicitar a verifica\xe7\xe3o, complete as etapas do seu perfil em /verificacao.",icon:"info",confirmButtonColor:"var(--blue-85)"});if(!(e=>{let{fullName:t,email:s,link:n,whatsapp:a}=e,{value:i}=a,l=(0,e$.C)(t,"Campo obrigat\xf3rio"),o=(0,e$.C)(s,"Campo obrigat\xf3rio"),r=(0,e$.C)(n,"Campo obrigat\xf3rio"),d="";return o||(o=(0,e$.C)(s,"E-mail inv\xe1lido","email")),h({name:l,email:o,whatsapp:d=i?(0,e$.C)(a,"N\xfamero de WhatsApp inv\xe1lido","cellphone"):"Campo obrigat\xf3rio",link:r}),!l&&!o&&!d&&!r})(e.currentTarget))return void v().fire({title:"Erro",text:"Preencha todos os campos corretamente.",icon:"error",confirmButtonColor:"var(--blue-85)"});let{fullName:t,email:n,link:l,whatsapp:r}=e.currentTarget,{value:m}=t,{value:x}=n,{value:_}=l,{value:p}=r;ea.F.logEvent((0,en.L)({category:es.A.Upload,action:b.A.Click,label:e6,value:+!!s,property:"".concat(null==a?void 0:a.id)})),u(!0);try{let e=await f.G.sendReview("",m,"",x,_,p,"1");if((null==e?void 0:e.status)===200){ea.F.logEvent((0,en.L)({category:es.A.Upload,action:b.A.Sending,label:e6,value:+!!s,property:"".concat(null==a?void 0:a.id)}));let e=await f.G.getUser(a.id,!0);i(e),window.localStorage.setItem("pablo",JSON.stringify(e)),(0,e0.eH)("/user/".concat(a.id),e),d("success")}else v().fire({title:"Erro",text:"N\xe3o foi poss\xedvel enviar sua solicita\xe7\xe3o. Tente novamente.",icon:"error",confirmButtonColor:"var(--blue-85)"})}catch(e){v().fire({title:"Erro",text:"N\xe3o foi poss\xedvel enviar sua solicita\xe7\xe3o. Tente novamente.",icon:"error",confirmButtonColor:"var(--blue-85)"})}finally{u(!1)}},C=()=>{var e,t;return(0,n.jsxs)("div",{className:e2().drawerContainer,children:[(0,n.jsx)("button",{type:"button",className:e2().closeButton,onClick:o,"aria-label":"Fechar",children:(0,n.jsx)(Y.QCr,{size:18})}),(0,n.jsx)("div",{className:e2().drawerContent,children:"cta"===r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:e2().drawerTitle,children:(0,n.jsx)("h2",{children:"Arquivo enviado com sucesso"})}),(0,n.jsx)("div",{className:e2().divider}),(0,n.jsxs)("div",{className:e2().drawerBody,children:[(0,n.jsx)("p",{className:e2().drawerSubtitle,children:"Seja um artista verificado Sua M\xfasica"}),(0,n.jsxs)("form",{className:e2().form,onSubmit:p,children:[(0,n.jsx)(eX.H,{className:e2().inputText,initialValue:null!=(e=null==a?void 0:a.name)?e:"",id:"fullName",name:"fullName",placeholder:"Nome",disabled:!0,readOnly:!0,error:m.name}),(0,n.jsx)(eX.H,{className:e2().inputText,initialValue:(null==a?void 0:a.whatsApp)||(null==a?void 0:a.phone)||(null==a?void 0:a.whatsappComercial)||"",id:"whatsapp",name:"whatsapp",placeholder:"Celular/Whatsapp",error:m.whatsapp,mask:"(##) #####-####"}),(0,n.jsx)(eX.H,{className:e2().inputText,initialValue:null!=(t=null==a?void 0:a.email)?t:"",id:"email",name:"email",placeholder:"E-mail",error:m.email}),(0,n.jsx)(eX.H,{className:e2().inputText,initialValue:_,id:"link",name:"link",placeholder:"Link do perfil",disabled:!0,readOnly:!0,error:m.link}),(0,n.jsx)("button",{type:"submit",className:e2().drawerButtonCallToAction,disabled:c||!a,children:c?(0,n.jsx)("span",{className:e2().loadingSpinner}):"Verificar meu perfil"})]})]}),(0,n.jsx)("div",{className:e2().drawerButtonCloseContent,children:(0,n.jsx)("button",{className:e2().drawerButtonClose,type:"button",onClick:o,children:s?"Agora n\xe3o":"Depois"})})]}):(0,n.jsxs)("div",{className:e2().successView,children:[(0,n.jsx)("h2",{className:e2().successTitle,children:"Solicita\xe7\xe3o enviada"}),(0,n.jsx)(q.Ykz,{className:e2().successIcon,size:s?100:203}),(0,n.jsx)("p",{className:e2().successMessage,children:"Voc\xea receber\xe1 atualiza\xe7\xf5es em breve pelo e-mail cadastrado"}),(0,n.jsxs)("p",{className:e2().successFooter,children:["D\xfavidas?"," ",(0,n.jsx)("a",{href:"/sobre/central-de-ajuda",target:"_blank",rel:"noreferrer",className:e2().successLink,children:"Fale com a gente por aqui"})]})]})})]})};return l?s?(0,n.jsxs)(eE.Ay,{anchor:"bottom",open:l,onClose:o,sx:{"& .MuiDrawer-paper":{width:"100%",height:"auto",maxHeight:"90vh",borderRadius:"20px 20px 0 0",padding:0,backgroundColor:"transparent",boxShadow:"none",overflow:"visible",zIndex:9999}},children:[(0,n.jsx)("span",{className:e2().handle,"aria-hidden":!0}
1),C()]}):(0,n.jsx)(ex.A,{open:l,onClose:o,maxWidth:!1,sx:{zIndex:9999,"& .MuiDialog-paper":{background:"transparent",boxShadow:"none",maxWidth:720,width:"100%",overflow:"visible",margin:16},"& .MuiDialogContent-root":{overflow:"visible",padding:0}},children:(0,n.jsx)(e_.A,{children:C()})}):null};var e9=s(1075),e5=s(71410),e3=s(51127),e7=s.n(e3);let te=e=>{let{album:t,recommendedAlbums:s,userVideos:c,recommendedNews:u}=e,{user:m}=(0,g.Z2)();!function(e){(0,x.useEffect)(()=>{e&&(ea.F.logPageView(e.shareUrl,j.A.CD),function(e){var t,s,n;let a=document.getElementById("pagetype"),i=document.getElementById("dono"),l=document.getElementById("catid"),o=document.getElementById("categoria");a&&(a.value=(null==e?void 0:e.isVerified)?"CDVip":j.A.CD),i&&(i.value=null==e||null==(t=e.ownerId)?void 0:t.toString()),l&&(l.value=null==e||null==(s=e.catId)?void 0:s.toString()),o&&(o.value=null==e||null==(n=e.catName)?void 0:n.toString())}(e))},[e])}(t),function(e){let t=(0,d.useTranslations)("Shared"),{locale:s}=(0,r.useRouter)(),{addToPlaylist:n}=(0,et.FQ)(),{setIsBrand:a}=(0,eZ.oP)();(0,x.useEffect)(()=>{var i,l;if(!e)return;a(null!=(l=e.isBrand)&&l);let o=new URLSearchParams(window.location.search),r=Number(o.get("musicid")||o.get("musicId")),d=o.get("action");if("play"===d)return void setTimeout(()=>{n(e,null)},5e3);if("download"===d)return void setTimeout(()=>{let e=document.getElementById("download-desktop-button");null==e||e.click()},3e3);if(r&&(null==(i=e.files)?void 0:i.length)){let a=e.files.findIndex(e=>e.id===r);if(a>-1){let i=e.files[a].file;v().fire({icon:"question",title:t("DoYouWantToPlayTrack",{locale:s,track:i}).toString(),showDenyButton:!0,denyButtonText:t("No",{locale:s}).toString(),confirmButtonText:t("Yes",{locale:s}).toString()}).then(t=>{t.isConfirmed&&n(e,null,a)})}}},[e])}(t);let h=function(e){var t,s;let n=(0,d.useTranslations)("Shared"),{locale:a}=(0,r.useRouter)(),i="".concat(e.title," - ").concat(e.catName),l="".concat(n("SEODescription",{locale:a,title:e.title,userName:e.userName,sendDate:(0,e9.A)((0,e5.A)(e.sendDate),"dd/MM/yy - HH:mm").replace("-","\xe0s"),downloads:e.downloads,plays:e.plays})),o=e.shareUrl,c={canonical:o,title:i,images:[{url:null==e?void 0:e.bigCover,width:500,height:500,alt:n("AlbumCover",{locale:a}).toString()}]};return{url:o,title:i,description:l,images:[null==e?void 0:e.bigCover],imageTwitter:null==e?void 0:e.bigCover,section:e.catName,keywords:"".concat(e.catName,", ").concat(e.userName,", ").concat(e.title,", ").concat(e.name),datePublished:e.sendDate,dateModified:e.sendDate&&new Date(e.sendDate).toISOString(),dateCreated:e.sendDate&&new Date(e.sendDate).toISOString(),authorName:[{name:e.name,url:o,type:"Person"}
1],publisherName:e.name,publisherLogo:e.avatar,isAccessibleForFree:!0,image:null==e?void 0:e.bigCover,openGraph:c,canonical:o,itemListElements:[{position:1,name:"Sua M\xfasica",item:"https://suamusica.com.br"},{position:2,name:"Artista",item:"".concat("https://suamusica.com.br","/").concat(e.userName)},{position:3,name:"Album",item:"".concat("https://suamusica.com.br","/").concat(e.userName,"/").concat(e.slug)}],tracks:null!=(s=null==e||null==(t=e.files)?void 0:t.map(t=>({name:t.file,url:"".concat("https://suamusica.com.br","/").concat(e.userName,"/").concat(e.slug,"?musicid=").concat(t.id),duration:"",position:t.position})))?s:[]}}(t);return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.N,{data:h,type:["Album","WebPage"]}),(0,n.jsx)(i.E,{className:e7().wrapperPageContainer,desktop:(0,n.jsx)(eP,{album:t,recommendedAlbums:s,userVideos:c,recommendedNews:u,taboolaMid:!1,taboolaBelow:!1}),mobile:(0,n.jsx)(a.default,{album:t,recommendedAlbums:s,taboolaBelow:!1,taboolaMid:!1})}),(null==m?void 0:m.isVerified)&&(0,n.jsx)(eJ,{albumId:t.id}),m&&!m.isVerified&&(0,n.jsx)(e4,{albumId:t.id})]}):(0,n.jsx)(l.q,{size:120})}},53924:(e,t,s)=>{"use strict";s.d(t,{B:()=>m});var n=s(29454),a=s(83016),i=s.n(a),l=s(68423),o=s(6132),r=s(52986),d=s(69980),c=s(17048),u=s(62330);let m=async e=>{let{publicRuntimeConfig:{filecdn:t}}=i()(),s="".concat(t,"/").concat(e.ownerId,"/").concat(e.id,"/").concat(e.file);if(null==document.cookie.match(/^(.*;)?\s*CloudFront-Expires\s*=\s*[^;]+(.*)?$/)){let{data:e}=await u.Ay.post("/utils/ugiot"),t=new Date(1e3*e["CloudFront-Expires"]);Object.keys(e).forEach((s,a)=>{n.A.set(s,e[s],{expires:t,domain:"suamusica.com.br"})})}window.location.href=(e=>{let t=["Policy","Signature","Key-Pair-Id","Expires"].filter(e=>!!n.A.get("CloudFront-".concat(e))).map(e=>"".concat(e,"=").concat(n.A.get("CloudFront-".concat(e)))).join("&");return t?"".concat(e,"?").concat(t):e})(s),c.W.downloadFullCD(e),d.F.logEvent((0,l.L)({category:r.A.Download,action:o.A.CompleteCD,label:e.title,value:e.id}))}},54126:e=>{e.exports={songCreditsDrawerContainer:"styles_songCreditsDrawerContainer__4bONA",albumInfoContainer:"styles_albumInfoContainer__WHwGy",albumInfoTextsContainer:"styles_albumInfoTextsContainer__uo80i",songName:"styles_songName__1J_cN",artistNameContainer:"styles_artistNameContainer__5E1iW",artistName:"styles_artistName__DAKNT",verifiedIcon:"styles_verifiedIcon__OMTgm",creditsInfoContainer:"styles_creditsInfoContainer__UniJE",creditsInfoText:"styles_creditsInfoText__FnGBu",creditsInfoTitle:"styles_creditsInfoTitle__LaTXs",creditsInfoValue:"styles_creditsInfoValue__q2l_i",actionButton:"styles_actionButton__VsgKy",iaContainer:"styles_iaContainer__t_0jL"}},54260:(e,t,s)=>{"use strict";s.d(t,{z:()=>eD});var n,a=s(37876),i=s(89099),l=s(56661),o=s(15852),r=s(3775),d=s(82322),c=s(71733),u=s(58487),m=s(40248),h=s(54912);let x={label:"Ver perfil"};var _=s(92979),p=s(16894),v=s.n(p);function g(){let e=(0,d.A)(),{handlePlayCd:t,isPlaying:s,ownerOrAdmin:n,isReleased:i,isNotListed:l,isDeletedOrCopyrightPenalty:o,getLottieIconUrl:x}=(0,r.L)(),p=n&&!i&&!l,g=!n&&!i&&!l;return(0,a.jsxs)("div",{className:v().cdCoverWithActionsContainer,children:[(0,a.jsxs)("div",{className:v().coverWrapper,children:[!g&&(0,a.jsx)(u.default,{unoptimized:!0,src:e.cover,width:200,height:200,className:v().cover,alt:""}),g&&(0,a.jsx)(_.j,{url:x(),width:200,height:200,loop:!0}),p&&!g&&(0,a.jsx)("div",{className:v().coverBlurOverlay,"aria-hidden":!0,children:o?(0,a.jsx)(h.Mst,{className:v().trashIcon}):(0,a.jsx)(m.VSe,{className:v().trashIcon})})]}),(n||i||l)&&(0,a.jsx)("div",{className:v().actionsButtons,children:(0,a.jsx)(c.A,{classes:{root:v().playButton},onClick:t,"aria-label":s?"Pausar":"Reproduzir",children:s?(0,a.jsx)(m.JwW,{height:"fill","aria-hidden":!0}):(0,a.jsx)(m.dY6,{height:"fill","aria-hidden":!0})})})]})}var f=s(6995),C=s(41316),y=s(65754),j=s(14232),b=s(32920),w=s(96288),A=s.n(w);function I(){let{locale:e}=(0,i.useRouter)(),t=(0,l.useTranslations)("Shared"),s=(0,f.A)("(max-width: 1024px) and (min-width: 992px)"),n=(0,d.A)(),{handleDownloadCd:o,ownerOrAdmin:c,isReleased:u,isNotListed:h,handleSeeReleases:x,isScheduled:_}=(0,r.L)(),p=(0,j.useMemo)(()=>{var e,t;return e=n.files.length,t=n.catId,s?"":e>1?"Baixar CD":27===t?"Baixar Podcast":"Baixar Single"},[n.files.length,n.catId,s]),v=[{id:5,link:n.shareUrl,icon:"shared"},{id:1,link:n.shareUrl,icon:"whatsapp"},{id:4,link:n.shareUrl,icon:"twitter"},{id:3,link:n.shareUrl,icon:"facebook"}
1];return(0,a.jsxs)(C.Ay,{container:!0,justifyContent:"flex-end",alignItems:"center",gap:1,className:A().buttonsContainer,children:[(c||u||h)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.A,{id:"download-desktop-button",variant:"contained",className:A().downloadButton,startIcon:(0,a.jsx)(m.Og,{}),onClick:o,"aria-label":p,children:p}),!_&&u&&(0,a.jsx)(b.f,{socialShare:v,textShare:n.title,resource:"album",id:n.id})]}),!c&&!u&&!h&&(0,a.jsx)(y.A,{variant:"contained",className:A().seeReleases,onClick:x,fullWidth:!0,children:t("SeeReleases",{locale:e})})]})}var N=s(35003),S=s(15039),k=s.n(S),T=s(1075),M=s(71410),B=s(13480),D=s(6132),P=s(52986),E=s(59265),F=s(80208),R=s(52895),H=s(42371),L=s(60230),O=s(97481),V=s(48677),z=s(1013),U=s(99853),W=s(930),K=s(43019),Q=s(82309),q=s(11956),Y=s(87823),G=s.n(Y),J=s(87701),Z=s(80553),X=s(82365),$=s(40912),ee=s(23596),et=s.n(ee);let es=e=>{let{isCdInformationsModalOpen:t,handleCloseCdInformationsModal:s}=e,n=(0,l.useTranslations)("Shared"),{locale:h}=(0,i.useRouter)(),x=(0,d.A)(),{musicalStyle:_,dateFormatted:p,playsFormatted:v,downloadsFormatted:g,sizeFormatted:f,comments:C}=(0,r.L)();return(0,a.jsxs)(J.A,{open:t,onClose:s,maxWidth:"sm",fullWidth:!0,className:et().cdInformationsModalContainer,PaperProps:{sx:{borderRadius:"4px"}},children:[(0,a.jsxs)(X.A,{className:et().cdInformationsModalHeader,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalTitle,children:n("CdInformation",{locale:h})}),(0,a.jsx)(o.A,{title:n("Close",{locale:h}).toString(),children:(0,a.jsx)(c.A,{onClick:s,children:(0,a.jsx)($.EIA,{})})})]}),(0,a.jsxs)(Z.A,{className:et().cdInformationsModalBody,children:[(0,a.jsxs)("div",{className:et().cdInformationsModalCover,children:[(0,a.jsx)(u.default,{src:x.cover,alt:x.title,width:64,height:64}),(0,a.jsxs)("div",{className:et().cdInformationsModalCoverInfo,children:[(0,a.jsx)(o.A,{title:x.title,arrow:!0,children:(0,a.jsx)(N.A,{className:et().cdInformationsModalCoverTitle,children:x.title})}),(0,a.jsxs)("div",{className:et().cdInformationsModalCoverArtistContainer,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalCoverArtist,children:x.name}),x.isVerified&&(0,a.jsx)("span",{className:et().verifiedIcon,children:(0,a.jsx)(m.qEQ,{})})]})]})]}),(0,a.jsxs)("div",{className:et().cdInformationsModalInfos,children:[C&&(0,a.jsxs)("div",{className:et().cdInformationsModalInfosItem,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosTitle,children:n("Description",{locale:h})}),(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosValue,children:C})]}),(0,a.jsxs)("div",{className:et().cdInformationsModalInfosItem,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosTitle,children:n("Published",{locale:h})}),(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosValue,children:p})]}),(0,a.jsxs)("div",{className:et().cdInformationsModalInfosItem,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosTitle,children:n("PlaysAndDownloads",{locale:h})}),(0,a.jsxs)(N.A,{className:et().cdInformationsModalInfosValue,children:[v," plays | ",g," downloads"]})]}),(0,a.jsxs)("div",{className:et().cdInformationsModalInfosItem,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosTitle,children:n("Size",{locale:h})}),(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosValue,children:f})]}),_&&(0,a.jsxs)("div",{className:et().cdInformationsModalInfosItem,children:[(0,a.jsx)(N.A,{className:et().cdInformationsModalInfosTitle,sx:{textTransform:"capitalize"},children:n("MusicalStyle",{locale:h})}),(0,a.jsxs)("div",{className:et().cdInformationsModalInfoMusicalStyle,children:[(0,a.jsx)(u.default,{unoptimized:!0,src:null==_?void 0:_.svg,alt:null==_?void 0:_.name,width:26,height:26}),(0,a.jsx)(N.A,{className:et().cdInformationsModalInfoMusicalStyleName,children:null==_?void 0:_.name})]})]})]})]})]})},en=()=>{let e=(0,d.A)(),{user:t}=(0,U.Z2)(),{locale:s}=(0,i.useRouter)(),n=(0,l.useTranslations)("Shared"),o=(null==t?void 0:t.id)===e.ownerId,{includeOnRadio:c,addCdToPlaylist:u,showPlaylistCreation:h,setShowPlaylistCreation:x,showEmbedCd:_,setShowEmbedCd:p,embedCd:v,showCdInformationsModal:g,handleCloseCdInformationsModal:f,handleOpenCdInformationsModal:C,handleEditCd:y,handleOpenReportProblemModal:b,showReportProblemModal:w,setShowReportProblemModal:A,showReportContentModal:I,handleOpenReportContentModal:N,handleCloseReportContentModal:S}
1=(0,r.L)(),[k,T]=(0,j.useState)(null),M=!!k,B=()=>T(null),D=[{key:"IncludeOnRadio",icon:z.BlJ,handleMenuAction:c},{key:"AddToPlaylist",icon:m.AtM,handleMenuAction:u},{key:"Incorporate",icon:m.WnQ,handleMenuAction:v},{key:"CdInformation",icon:m.GLE,handleMenuAction:C},...o?[{key:"EditCd",icon:m.R5w,handleMenuAction:y}]:[],{key:"ReportProblem",icon:m.$5u,handleMenuAction:b},{key:"ReportContent",icon:m.e5t,handleMenuAction:N}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{id:"cd-cover-options-button",className:G().buttonBoxCard,type:"button","aria-label":n("MoreOptions",{locale:s}).toString(),"aria-controls":M?"cd-cover-options-menu":void 0,"aria-haspopup":"true","aria-expanded":M?"true":void 0,onClick:e=>T(e.currentTarget),children:(0,a.jsx)(m.Q7K,{size:24,"aria-hidden":!0})}),(0,a.jsx)(H.A,{className:G().cdMenu,id:"cd-cover-options-menu",anchorEl:k,open:M,onClose:B,MenuListProps:{"aria-labelledby":"cd-cover-options-button"},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:D.map((e,t)=>{let{key:i,icon:l,handleMenuAction:o}=e;return(0,a.jsxs)(L.A,{onClick:()=>{null==o||o(),B()},sx:t<D.length-1?{mb:1}:void 0,children:[(0,a.jsx)(O.A,{children:(0,a.jsx)(l,{size:20,"aria-hidden":!0,color:"#666666"})}),(0,a.jsx)(V.A,{children:n(i,{locale:s})})]},i)})}),h&&(0,a.jsx)(W.PlaylistCreationModalComponent,{state:h,setState:x,typeToBeAdded:"cd",idOfTypeToBeAdded:null==e?void 0:e.id,initialPlaylistName:null==e?void 0:e.title}),_&&(0,a.jsx)(K.N,{state:_,setState:p,playlist:e}),g&&(0,a.jsx)(es,{isCdInformationsModalOpen:g,handleCloseCdInformationsModal:f}),w&&(0,a.jsx)(Q.H,{openModal:w,album:e,setOpenModal:A}),I&&(0,a.jsx)(q.H,{openReportContentModal:I,handleCloseReportContentModal:S,shareUrl:null==e?void 0:e.shareUrl})]})};var ea=s(60960),ei=s(41304);let el=()=>{let{isSuggestionsOpen:e,toggleSuggestions:t}=(0,ei.Q)(),{isFollowingArtist:s,handleFollowArtist:n,handleUnfollowArtist:i,submittingFollowArtist:l}=(0,r.L)();return(0,a.jsx)(ea.D,{isFollowingArtist:s,onFollowArtist:n,onUnfollowArtist:i,submittingFollowArtist:l,suggestions:{isSuggestionsOpen:e,onToggleSuggestions:t}})};var eo=s(80228),er=s(91588),ed=s(83016),ec=s.n(ed),eu=s(2491),em=s.n(eu),eh=s(47222),ex=s(45997),e_=s(64549);let{publicRuntimeConfig:{assets:ep}={}}=null!=(n=ec()())?n:{},ev={container:"modal",actions:"containerButtonBlue"};function eg(e){var t,s,n,a,i;return null!=(i=null!=(a=null==e||null==(s=e.response)||null==(t=s.data)?void 0:t.msg)?a:null==e||null==(n=e.data)?void 0:n.msg)?i:"Error"}function ef(e){return 200===e||(null==e?void 0:e.status)===200}let eC=[{id:1,getLabel:()=>"Strike",createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja dar um strike nesse artista?")){e.swal.showProcessing();try{await ex.x.strike(e.album.ownerId),em().close(),e.swal.showSuccess("O strike foi adicionado com sucesso")}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:2,getLabel:()=>"Tornar faixas do CD stream",createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja tornar todas as faixas em stream?")){e.swal.showProcessing();try{await ex.x.makeAllSingleStreams(e.album.id,"album"),em().close(),e.swal.showSuccess("Altera\xe7\xe3o para faixas em stream realizada")}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:3,getLabel:()=>"Remover capa do CD",createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja remover a capa desse CD?")){e.swal.showProcessing();try{await ex.x.removeImageCD(e.album,"album"),em().close(),e.swal.showSuccess("Capa removida com sucesso"),window.location.reload()}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:4,getLabel:()=>"Banir e remover todos CDs do usu\xe1rio",createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja banir esse usu\xe1rio e remover todos os seus CDs?")){e.swal.showProcessing();try{await ex.x.banUserAndRemoveAllCDs(e.album.ownerId),em().close(),e.swal.showSuccess("Usu\xe1rio banido com sucesso")}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:5,getLabel:()=>"Remover CD",createHandler:e=>async()=>
1{if(await e.swal.showConfirm("Voc\xea deseja remover esse CD?")){e.swal.showProcessing();try{let t=await ex.x.removeCD(e.album);em().close(),ef(t)?(e.swal.showSuccess("Removido com sucesso, redirecionando para home..."),e.push("/")):e.swal.showError(eg(t))}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:6,getLabel:()=>"Desabilitar CD",createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja desabilitar esse CD?")){e.swal.showProcessing();try{await ex.x.disableCD(e.album),em().close(),e.swal.showSuccess("Desabilitado com sucesso")}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:10,getLabel:()=>"Limpar Cache CD",requiresSupportUser:!0,createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja limpar o chache desse CD?")){e.swal.showProcessing();try{let t=await ex.x.cleanCache(e.album);em().close(),ef(t)?e.swal.showSuccess("Cache limpo com sucesso"):e.swal.showError(eg(t))}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:7,getLabel:e=>"Copiar ID do CD (".concat(e.id,")"),createHandler:e=>async()=>{eh.A.copyCdId(e.album.id),e.swal.showSuccess("Copiado para \xe1rea de transfer\xeancia")}},{id:8,getLabel:e=>"Copiar ID do artista (".concat(e.ownerId,")"),createHandler:e=>async()=>{eh.A.copyArtistId(e.album.ownerId),e.swal.showSuccess("Copiado para \xe1rea de transfer\xeancia")}},{id:9,getLabel:()=>"Editar CD",requiresSupportUser:!0,createHandler:e=>async()=>{e.push("/biblioteca/cds/editar/".concat(e.album.id))}},{id:11,getLabel:()=>"Reverter Exclus\xe3o CD",requiresSupportUser:!0,isVisible:e=>{var t,s;return 0===e.released&&((null==e||null==(t=e.slug)?void 0:t.includes("removed"))||(null==e||null==(s=e.shortUrl)?void 0:s.includes("removed"))||!1)},createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja reverter a exclus\xe3o desse CD?")){e.swal.showProcessing();try{await eh.A.revertDelete(e.album),em().close(),e.swal.showSuccess("Exclus\xe3o revertida com sucesso")}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:15,getLabel:()=>"Editar CD no Luach",createHandler:e=>async()=>{window.open("".concat(e_.ns,"/artist/album/").concat(e.album.id),"_blank")}},{id:13,getLabel:()=>"Buscar compositores via IA",requiresSupportUser:!0,createHandler:e=>async()=>{if(await e.swal.showConfirm("Voc\xea deseja gerar os compositores via IA?")){e.swal.showProcessing();try{let t=await ex.x.searchComposersIA(e.album.id);em().close(),ef(t)?e.swal.showSuccess("Solicita\xe7\xe3o de compositores via IA gerada com sucesso"):e.swal.showError(eg(t))}catch(t){em().close(),e.swal.showError(eg(t))}}}},{id:14,getLabel:()=>"Download capa (500x500)",createHandler:e=>async()=>{await eh.A.downloadCover(e.album.bigCover,e.album.title),e.swal.showSuccess("Capa baixada com sucesso e link copiado para \xe1rea de transfer\xeancia")}}],ey=()=>{let{luachOptions:e,menuAnchor:t,menuOpen:s,handleMenuOpen:n,handleMenuClose:o}=function(e){let{locale:t,push:s}=(0,i.useRouter)(),n=(0,l.useTranslations)("Shared"),{isSupportUser:a}=(0,U.Z2)(),[o,r]=(0,j.useState)(null),d=(0,j.useCallback)(e=>{r(e.currentTarget)},[]),c=(0,j.useCallback)(()=>{r(null)},[]),u=(0,j.useMemo)(()=>({showSuccess:e=>em().fire({icon:"success",title:e,customClass:ev}),showError:e=>em().fire({icon:"error",title:e,customClass:ev}),showProcessing:()=>em().fire({title:n("Processing",{locale:t}).toString(),imageUrl:ep?"".concat(ep,"/img/ajax-loader.gif"):void 0,customClass:ev}),showConfirm:async e=>{var s;return null!=(s=(await em().fire({icon:"warning",title:n("AreYouSure",{locale:t}).toString(),text:e,showDenyButton:!0,denyButtonText:n("Cancel",{locale:t}).toString(),confirmButtonText:n("YesImSure",{locale:t}).toString(),customClass:{container:"modal",actions:"containerButton"}})).isConfirmed)&&s}}),[]),m=(0,j.useMemo)(()=>({album:e,push:s,swal:u}),[e,s,u]);return{luachOptions:(0,j.useMemo)(()=>eC.filter(t=>(!t.requiresSupportUser||!!a)&&(!t.isVisible||!!t.isVisible(e))).map(t=>({id:t.id,value:t.getLabel(e),onExecute:t.createHandler(m)})),[e,a,m]),menuAnchor:o,menuOpen:!!o,handleMenuOpen:d,handleMenuClose:c}}((0,d.A)());return(0,a.jsx)(er.r,{idPrefix:"luach",luachOptions:e,menuAnchor:t,menuOpen:s,onMenuOpen:n,onMenuClose:o})};var ej=s(77597),eb=s.n(ej);function ew(e){let{statusInfo:t,titleParams:s,containerSx:n}=e,{locale:o}=(0,i.useRouter)(),r=(0,l.useTranslations)("Shared");return(0,a.jsxs)(C.Ay,{container:!0,className:eb().statusContainer,alignItems:"flex-start",flexDirection:"column",sx:n,children:[(0,a.jsx)(N.A,{className:eb().statusText,sx:{fontWeight:"700",mb:1},children:r(t.titleKey,s)}),(0,a.jsx)(N.A,{className:eb().statusText,sx:{fontWeight:"500"},children:r(t.contentKey,{locale:o})})]})}var eA=s(30889),eI=s.n(eA);function eN(){let e=(0,d.A)(),{locale:t}=(0,i.useRouter)(),s=(0,l.useTranslations)("Shared"),{push:n}=(0,i.useRouter)(),{isOwner:u,isReleased:h,isNotListed:_,ownerOrAdmin:p,isAdminUser:v,playsFormatted:g,downloadsFormatted:f,sizeFormatted:y,isCdFavorite:b,toggleFavorite:w,favoriteIdLoading:A,showCdInformationsModal:I,handleCloseCdInformationsModal:S,handleOpenCdInformationsModal:H,isScheduled:L,isDeletedOrCopyrightPenalty:O}=(0,r.L)(),V=(0,j.useMemo)(()=>p?(0,eo.G)(e):(0,eo.T)(e),[e.released,e.isScheduled,p]),z=(0,j.useMemo)(()=>{let s={locale:t};return"CdStatusScheduledTitle"===V.titleKey&&(s.date=e.sendDate?(0,T.A)((0,M.A)(e.sendDate),"dd/MM/yyyy '\xe0s' HH'h'mm"):"â"),s},[t,V.titleKey,e.sendDate]);return(0,a.jsxs)("div",{className:eI().cdHeaderInfoContainer,children:[(0,a.jsxs)(C.Ay,{container:!0,alignItems:"center",justifyContent:"space-between",wrap:"nowrap",columnSpacing:1,children:[(0,a.jsx)(C.Ay,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,a.jsx)(F.y,{left:!0,className:eI().artistUsername,name:e.name,username:e.userName,isVip:null==e?void 0:e.isVerified,userId:e.ownerId,image:e.avatar,analyticsParameters:{category:P.A.CD,action:D.A.CDMenu,page:E.A.CDVip,label:x.label,id:null==e?void 0:e.id}})}),(0,a.jsx)(C.Ay,{item:!0,sx:{flexShrink:0},children:(0,a.jsxs)("div",{className:eI().buttonsContainer,children:[h&&!L&&(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(o.A,{title:s("Favorite",{locale:t}).toString(),arrow:!0,children:(0,a.jsx)(c.A,{className:k()(eI().defaultFavoriteButton,eI().favoriteButton),"aria-label":"Desfavoritar",onClick:()=>w(e),disabled:A===e.id,children:(0,a.jsx)(B.z8S,{size:20,"aria-hidden":!0,
1color:"var(--red-suamusica)"})})}),!b&&(0,a.jsx)(o.A,{title:s("FavoriteAlbum",{locale:t,album:"CD"}).toString(),arrow:!0,children:(0,a.jsx)(c.A,{className:eI().defaultFavoriteButton,"aria-label":"Favoritar",onClick:()=>w(e),disabled:A===e.id,children:(0,a.jsx)(B.OxO,{size:20,"aria-hidden":!0})})})]}),p&&!O&&(0,a.jsx)(o.A,{title:s("EditAlbum",{locale:t,album:"CD"}),arrow:!0,children:(0,a.jsx)("button",{type:"button",onClick:()=>n("/biblioteca/cds/editar/".concat(e.id)),className:eI().settingsButton,children:(0,a.jsx)(m.zoL,{size:20,"aria-hidden":!0})})}),v&&(0,a.jsx)(ey,{}),!u&&(0,a.jsx)(el,{})]})})]}),(h||_&&!p)&&(0,a.jsx)("div",{className:eI().infoContainer,children:(0,a.jsxs)("div",{className:eI().tagsContainer,children:[(0,a.jsx)(R.e,{text:"<b>".concat(g,"</b> plays")}),(0,a.jsx)(R.e,{text:"<b>".concat(f,"</b> downloads")}),(0,a.jsx)(R.e,{text:"<b>".concat(y,"</b>")}),(0,a.jsx)("button",{className:eI().buttonBoxCard,type:"button",onClick:H,children:(0,a.jsx)(N.A,{className:eI().buttonBoxCardText,children:(0,a.jsx)(m.GLE,{})})}),(0,a.jsx)(en,{}),I&&(0,a.jsx)(es,{isCdInformationsModalOpen:I,handleCloseCdInformationsModal:S})]})}),(p&&!h||!p&&!h&&!_)&&(0,a.jsxs)("div",{className:eI().infoContainer,children:[p&&!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ew,{statusInfo:V,titleParams:z}),(0,a.jsx)("div",{className:eI().cdMenuOptionsContainer,children:(0,a.jsx)(en,{})})]}),!p&&!h&&!_&&(0,a.jsx)(ew,{statusInfo:V,titleParams:z,containerSx:{height:"58px"}})]})]})}var eS=s(50504),ek=s.n(eS);function eT(e){let{datePublished:t}=e;return(0,a.jsx)(C.Ay,{container:!0,flexDirection:"column",justifyContent:"center",alignItems:"center",className:ek().cdHeaderStatsContainer,children:(0,a.jsx)(N.A,{className:ek().statsPrimary,children:t})})}var eM=s(80058),eB=s.n(eM);function eD(){let e=(0,d.A)(),{locale:t}=(0,i.useRouter)(),s=(0,l.useTranslations)("Shared"),{isReleased:n,isNotListed:c,ownerOrAdmin:u,datePublishedFormatted:m}=(0,r.L)();return(0,a.jsxs)("div",{className:eB().cdHeaderContainer,children:[(n||c||u)&&(0,a.jsx)(o.A,{title:e.title,placement:"top",children:(0,a.jsx)("h1",{className:eB().title,children:e.title})}),!n&&!c&&!u&&(0,a.jsx)("p",{className:eB().title,children:s("MusicOrCd",{locale:t})}),(0,a.jsxs)("div",{className:eB().cdHeaderContent,children:[(0,a.jsxs)("div",{className:eB().cdHeaderLeftContent,children:[(0,a.jsx)(g,{}
1),(n||c||u)&&m&&(0,a.jsx)(eT,{datePublished:m})]}),(0,a.jsxs)("div",{className:eB().cdHeaderRightContent,children:[(0,a.jsx)(eN,{}),(0,a.jsx)(I,{})]})]})]})}},58682:(e,t,s)=>{"use strict";s.d(t,{e:()=>p});var n=s(37876),a=s(81195),i=s(56661),l=s(89099),o=s(87954),r=s(80208),d=s(69980),c=s(68423),u=s(52986),m=s(6132),h=s(31528),x=s(12420),_=s.n(x);function p(e){let{title:t,recommendedAlbums:s,slide:x=!1}=e,p=(0,i.useTranslations)("Shared"),{locale:v}=(0,l.useRouter)(),g=(e,t,s)=>{let n=(0,c.L)({category:u.A.RecommendedCDs,action:m.A.Recommended,label:e,id:s,position:t});d.F.logEvent(n)};return(0,n.jsx)(n.Fragment,{children:x?(0,n.jsxs)("div",{className:_().recommendedAlbumSlide,children:[(0,n.jsxs)("div",{className:_().recommendedHeader,children:[(0,n.jsx)("h2",{children:p("RecommendedCDs",{locale:v})}),(0,n.jsx)(a.A,{href:"cds-recomendados",prefetch:!1,children:p("SeeAll",{locale:v})})]}),(0,n.jsx)("div",{className:_().cardContainer,children:s&&s.map((e,t)=>(0,n.jsxs)("article",{children:[(0,n.jsxs)(a.A,{href:"/".concat(e.username,"/").concat(e.slug),prefetch:!1,role:"button",tabIndex:t+1,onKeyDown:()=>{g(e.title,t+1,e.id)},onClick:()=>{g(e.title,t+1,e.id)},children:[(0,n.jsx)(h.A,{unoptimized:!0,className:_().cover,src:e.cover,height:148,width:148}),(0,n.jsx)("h5",{className:"cdName",children:e.title})]}),(0,n.jsx)(r.y,{userId:e.id,name:e.name,username:e.username,isVip:e.isVerified})]},e.id))})]}):(0,n.jsxs)("div",{className:_().recommendedAlbumContainer,children:[(0,n.jsx)("h2",{children:t}),s&&s.map((e,t)=>(0,n.jsx)(o.i,{image:e.cover,link:"/".concat(e.username,"/").concat(e.slug),title:e.title,user:{id:e.id,name:e.name,username:e.username,isVip:e.isVerified},plays:e.plays.toString(),downloads:e.downloads.toString(),analyticsParameters:{action:m.A.Recommended,category:u.A.RecommendedCDs,id:e.id,label:e.title,position:t+1}},e.id))]})})}},66153:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eS});var n=s(37876),a=s(14232),i=s(81195),l=s(89099),o=s(56661),r=s(83016),d=s.n(r),c=s(29960),u=s(58549),m=s(40248),h=s(15039),x=s.n(h),_=s(2491),p=s.n(_),v=s(82870),g=s(7569),f=s(39510),C=s(47704),y=s(71380),j=s(45416),b=s(78521),w=s(58682),A=s(56086),I=s(19586),N=s(71733),S=s(65106),k=s(1013),T=s(65422),M=s(99853),B=s(6132),D=s(52986),P=s(21735),E=s(72807),F=s(26980),R=s(40592),H=s(930),L=s(68423),O=s(69980),V=s(31528),z=s(10663),U=s(84330),W=s(20329),K=s.n(W),Q=s(58487),q=s(35003),Y=s(65754),G=s(82309),J=s(92246),Z=s(54126),X=s.n(Z),$=s(36110);let ee=()=>(0,n.jsxs)("div",{className:X().songCreditsDrawerContainer,children:[(0,n.jsxs)("div",{className:X().albumInfoContainer,children:[(0,n.jsx)($.A,{variant:"rectangular",width:48,height:42}),(0,n.jsxs)("div",{className:X().albumInfoTextsContainer,children:[(0,n.jsx)($.A,{variant:"text",width:200,height:24}),(0,n.jsxs)("div",{className:X().artistNameContainer,children:[(0,n.jsx)($.A,{variant:"text",width:150,height:20}),(0,n.jsx)($.A,{variant:"circular",width:16,height:16})]})]})]}),(0,n.jsxs)("div",{className:X().creditsInfoContainer,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)($.A,{variant:"text",width:120,height:20}),(0,n.jsx)($.A,{variant:"text",width:180,height:20})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)($.A,{variant:"text",width:120,height:20}),(0,n.jsx)($.A,{variant:"text",width:180,height:20})]}),(0,n.jsx)($.A,{variant:"rectangular",width:"100%",height:20,sx:{borderRadius:1}}),(0,n.jsx)($.A,{variant:"rectangular",width:"100%",height:20,sx:{borderRadius:1}})]})]}),et=e=>{var t,s,i,r;let{isSongCreditsDrawerOpen:d,handleCloseSongCreditsDrawer:c,album:h,songId:_,songsCredits:p,fetchingCredits:v,songInfo:g}=e,f=(0,o.useTranslations)("Shared"),{locale:C,push:y}=(0,l.useRouter)(),{user:j,isAuthenticated:b}=(0,M.Z2)(),[w,A]=(0,a.useState)(!1),I={composer:null!=(i=null==p||null==(t=p[_])?void 0:t.composer)?i:"",identified_by:null!=(r=null==p||null==(s=p[_])?void 0:s.identified_by)?r:""},S=()=>{b?A(!0):(y("/acesso/login?redirect=".concat(window.location.pathname)),c())};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Ay,{anchor:"bottom",open:d,onClose:c,sx:{"& .MuiDrawer-paper":{height:"auto",padding:"0 16px 30px 16px",borderRadius:"12px 12px 0 0"}},children:(0,n.jsxs)("div",{className:X().songCreditsDrawerContainer,children:[v&&(0,n.jsx)(ee,{}),!v&&g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:X().albumInfoContainer,children:[(0,n.jsx)(Q.default,{src:g.cover,alt:g.songName,width:48,height:42}),(0,n.jsxs)("div",{className:X().albumInfoTextsContainer,children:[(0,n.jsx)(q.A,{className:X().songName,children:g.songName}),(0,n.jsxs)("div",{className:X().artistNameContainer,children:[(0,n.jsx)(q.A,{className:X().artistName,children:g.artistName}),g.isVerified&&(0,n.jsx)("span",{className:X().verifiedIcon,children:(0,n.jsx)(m.qEQ,{})})]})]})]}),(0,n.jsxs)("div",{className:X().creditsInfoContainer,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoTitle),children:f("CompositionBy",{locale:C})}),(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoValue),children:I.composer?I.composer:(0,n.jsxs)("div",{style:{color:"var(--blue-700)",display:"flex",gap:"4px",alignItems:"center"},children:[(0,n.jsx)("p",{style:{fontSize:"14px",fontWeight:500,textTransform:"none",margin:0},children:f("NotFound",{locale:C})}),(0,n.jsx)("button",{type:"button",style:{color:"var(--blue-700)",fontSize:"14px",fontWeight:500,backgroundColor:"transparent",border:"none",padding:0},onClick:()=>S(),className:X().actionButtonSuggestion,children:(0,n.jsx)(q.A,{style:{fontSize:"14px",fontWeight:500,textTransform:"lowercase",textDecoration:"underline"},children:f("MakeASuggestion",{locale:C})})})]})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoTitle),children:f("IdentifiedBy",{locale:C})}),"IA"===I.identified_by&&(0,n.jsxs)("div",{className:X().iaContainer,children:[(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoValue),children:f("IA",{locale:C})}),(0,n.jsx)(m.uDi,{})]}),"IA"!==I.identified_by&&(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoValue),children:I.identified_by?I.identified_by:(0,n.jsxs)("div",{style:{color:"var(--blue-700)",display:"inline-block"},children:[(0,n.jsx)("p",{style:{margin:0},children:f("IaSuggestion",{locale:C})}),(0,n.jsx)("button",{type:"button",style:{color:"var(--blue-700)",fontSize:"14px",fontWeight:500,backgroundColor:"transparent",border:"none",padding:0},onClick:()=>S(),className:X().actionButtonSuggestion,children:(0,n.jsx)(q.A,{style:{fontSize:"14px",fontWeight:500,textTransform:"none",textDecoration:"underline"},children:f("MakeASuggestion",{locale:C})})})]})})]}),(0,n.jsx)(Y.A,{variant:"text",style:{marginLeft:"auto",color:"var(--red-700)",marginTop:"16px",textTransform:"none"},className:X().actionButton,onClick:()=>S(),children:(0,n.jsx)(q.A,{style:{fontSize:"14px",fontWeight:500,color:"var(--red-700)"},className:x()(X().creditsInfoText,X().creditsInfoValue),children:f("IsThisInformationIncorrectLetsUsKnow",{locale:C})})}),(null==j?void 0:j.id)===h.ownerId&&(0,n.jsxs)(N.A,{className:X().actionButton,onClick:()=>y("/biblioteca/cds/editar/".concat(h.id,"?songId=").concat(g.songId)),children:[(0,n.jsx)(m.R5w,{}),(0,n.jsx)(q.A,{className:x()(X().creditsInfoText,X().creditsInfoValue),children:f("Edit",{locale:C})})]})]})]})]})}
1),w&&(0,n.jsx)(G.H,{openModal:w,album:h,setOpenModal:A,extraOptions:J.QG,extraData:{songId:null==g?void 0:g.songId,songName:null==g?void 0:g.songName}})]})},{publicRuntimeConfig:{assets:es}}=d()();function en(e){var t,s,r,d;let{album:c}=e,h=(0,o.useTranslations)("Shared"),{locale:x}=(0,l.useRouter)(),[_,g]=(0,a.useState)(c),[f,C]=(0,a.useState)([]),[y,w]=(0,a.useState)(!1),[A,W]=(0,a.useState)(null),[Q,q]=(0,a.useState)(null),{status:Y,currentTrack:G,addToPlaylist:J,addMusicToRadio:Z,playTrack:X,findMusicInPlaylist:$,toggleFavorite:ee,hightlightArtistTrack:en}=(0,P.FQ)(),{isAuthenticated:ea,user:ei,userFollowers:el,isAdminUser:eo}=(0,a.useContext)(M.cy),[er,ed]=(0,a.useState)(!1),[ec,eu]=(0,a.useState)(0),[em,eh]=(0,a.useState)(1),[ex,e_]=(0,a.useState)(!1),{isSongCreditsOpen:ep,fetchingCredits:ev,songsCredits:eg,songId:ef,songInfo:eC,setIsSongCreditsOpen:ey,handleOpenSongCredits:ej,getAlbumCredits:eb}=(0,I.w)(),ew=ea&&(null==ei?void 0:ei.id)===c.ownerId,eA=0===c.files.length,eI=!!(null==(s=c.files)||null==(t=s[0])?void 0:t.cdId),eN=(null==c?void 0:c.musics)||0,eS=async(e,t)=>{let s=$(t);-1===s?J(c,null,e):X(s)},ek=async e=>{em>1&&O.F.logEvent((0,L.L)({category:e,action:"Ver todos as m\xfasicas",value:c.id,property:c.shareUrl}));let t=await z.h.toObject(null==c?void 0:c.id);(null==t?void 0:t.files.length)>0&&(C([...f,...t.files]),eh(em+1)),em<Math.ceil(eN/100)?e_(!0):e_(!1)};(0,a.useEffect)(()=>{eI&&ek(D.A.CD)},[]);let eT=async e=>{Z(e,c),p().fire({icon:"success",text:h("MusicAddedTheEndOfThePlayer",{locale:x}).toString(),showConfirmButton:!1,timer:2e3,customClass:{container:"modal",actions:"containerButton"}})},eM=async e=>{var t;let s=null==_||null==(t=_.files)?void 0:t.find(t=>t.id===e);s&&ej(e,c,null==s?void 0:s.file)};(0,a.useEffect)(()=>{ep&&!eg&&eb(null==c?void 0:c.id)},[ep,eg,eb,null==c?void 0:c.id]),(0,a.useEffect)(()=>{var e,t;ea&&A&&q(null==el||null==(t=el.favorites)||null==(e=t.arqids)?void 0:e.some(e=>e===A.id))},[ea,el,A]);let eB=eI?f:null==_?void 0:_.files;return(0,n.jsxs)("section",{id:"AlbumTrackList",className:K().albumTrackList,children:[(0,n.jsxs)("ul",{className:K().albumContainer,children:[(null==eB?void 0:eB.length)===0&&!eA&&(0,n.jsx)(U._,{}),(0,n.jsx)(T.A,{loader:(0,n.jsx)(U._,{}),dataLength:null==eB?void 0:eB.length,next:()=>ek(D.A.CD),hasMore:ex,height:eN>100?1200:null,children:eB&&eB.map(e=>(0,n.jsxs)("li",{title:e.file,className:(null==G?void 0:G.id)===e.id&&K().active||"",children:[(0,n.jsxs)("div",{className:K().track,onClick:()=>{(null==G?void 0:G.id)!==e.id&&eS(e.position,e.id)},role:"button",tabIndex:0,children:[!eI&&(0,n.jsx)(n.Fragment,{children:(null==G?void 0:G.albumId)!==c.id||(null==G?void 0:G.id)!==e.id||eI?(0,n.jsx)("p",{children:"".concat((e.position+1).toString().padStart(2,"0"),".")}):(0,n.jsx)("span",{className:K().playing,children:(0,n.jsx)(R.k,{status:"Play"===Y?"play":"stop"})})}),(0,n.jsx)(n.Fragment,{children:eI&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:K().image,children:(0,n.jsx)(V.A,{unoptimized:!0,src:e.cover,width:44,height:44,alt:e.file,borderRadius:"100%"})})})}),eI?(0,n.jsxs)("div",{className:K().fileContent,children:[(0,n.jsxs)("div",{className:K().fileWrapper,children:[(null==G?void 0:G.albumId)===c.id&&(null==G?void 0:G.id)===e.id&&eI&&(0,n.jsx)("span",{className:K().playing,children:(0,n.jsx)(R.k,{status:"Play"===Y?"play":"stop"})}),(0,n.jsx)("p",{className:K().file,children:e.file})]}),(0,n.jsxs)("div",{className:K().artistContent,children:[(0,n.jsx)("h2",{className:K().artist,children:e.artist}),(0,n.jsx)("span",{className:K().icon,children:(null==e?void 0:e.isVerified)&&(0,n.jsx)(m.qEQ,{size:16,height:"fill"})})]})]}):(0,n.jsx)("p",{children:e.file})]}),(0,n.jsxs)("div",{className:K().icons,children:[(0,n.jsx)(N.A,{className:"".concat(K().iconButton," ").concat(K().iconDownload),size:"small",onClick:()=>(0,F.P)(e,c),children:(0,n.jsx)(k.piU,{})}),(0,n.jsx)(N.A,{className:K().iconButton,size:"small",onClick:()=>eT(e),children:(0,n.jsx)(m.v92,{})}),(0,n.jsx)(N.A,{className:K().iconButton,size:"small",onClick:()=>{var t;return t=e.position,void(W((_||c).files[t]),w(!y))},children:(0,n.jsx)(m.FHQ,{})})]})]},e.position))}),eA&&ew&&(0,n.jsx)("div",{className:K().emptyPlaylist,children:eI?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{children:h("AddSongsToThisPlaylist",{locale:x})}),(0,n.jsx)("p",{children:h("ClickOnTheCreateAddOptionAndAddPlaylistsSeeReleasesSuaMusica",{locale:x})}),(0,n.jsx)(i.A,{prefetch:!1,href:"/",children:(0,n.jsx)(j.Q,{large:!0,rose:!0,rounded:!0,lightBold:!0,className:K().seeReleases,uppercase:!0,children:h("ViewReleases",{locale:x})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:K().cd,children:h("CdWithNoSongs",{locale:x})}),(0,n.jsx)("p",{children:h("ClickOnMyCdsMusicsAndManageYourDiscography",{locale:x})}),(0,n.jsx)(i.A,{href:"/biblioteca/cds",prefetch:!1,children:(0,n.jsx)(j.Q,{large:!0,rose:!0,rounded:!0,lightBold:!0,className:K().seeReleases,uppercase:!0,children:h("MyCDsSongs",{locale:x})})})]})})]}),(0,n.jsxs)(u.Ay,{anchor:"bottom",open:y,onClose:()=>w(!y),sx:{"& .MuiDrawer-paper":{height:"auto",padding:"0 20px 20px 20px",borderRadius:"20px 20px 0 0"}},children:[(0,n.jsx)("div",{className:K().sharedContainer,children:(0,n.jsx)(b.E,{id:null==A?void 0:A.id,resource:"album",textShare:"Ou\xe7a a m\xfasica ".concat(null==A?void 0:A.file),socialShare:[{id:1,link:"".concat(null==c?void 0:c.shareUrl,"?musicid=").concat(null==A?void 0:A.id),icon:"whatsapp"},{id:2,link:"".concat(null==c?void 0:c.shareUrl,"?musicid=").concat(null==A?void 0:A.id),icon:"messenger"},{id:3,link:"".concat(null==c?void 0:c.shareUrl,"?musicid=").concat(null==A?void 0:A.id),icon:"facebook"},{id:4,link:"".concat(null==c?void 0:c.shareUrl,"?musicid=").concat(null==A?void 0:A.id),icon:"twitter"},{id:5,link:"".concat(null==c?void 0:c.shareUrl,"?musicid=").concat(null==A?void 0:A.id),icon:"shared"}]})}),(0,n.jsx)(E.V,{title:"",className:K().optionMenu,list:[eo&&!eI&&{id:0,onClick:async()=>{w(!y),g(await en(null==A?void 0:A.id,null==c?void 0:c.id,null==c?void 0:c.ownerId,null==A?void 0:A.isHit))},disabled:!0,text:h("HighlightArtistTrack",{locale:x}).toString(),icon:S.Ny1,iconColor:(null==A?void 0:A.isHit)&&"#cec20d"},ea&&{id:0,onClick:()=>{ee(A.id)},text:Q?h("FavoriteMusic",{locale:x}).toString():h("FavoriteAlbum",{locale:x,album:h("Song",{locale:x}).toString()}).toString(),icon:Q?(0,n.jsx)(S.Mbv,{color:"red",style:{fill:"red"}}):(0,n.jsx)(S.sOK,{})},{id:1,onClick:()=>(0,F.P)(A,c),text:h("Download",{locale:x}).toString(),icon:m.Fhs},{id:2,onClick:()=>eT(A),text:h("IncludeOnRadio",{locale:x}).toString(),icon:m.ViD},{id:3,href:"/".concat(c?c.shareUrl.split("/")[3]:c.shareUrl.split("/")[4]),text:h("Viewprofile",{locale:x}).toString(),icon:v.Z31,trackInfos:{category:D.A.CD,action:B.A.TracksMenu,label:"Ver Perfil",value:c.id}},eI&&{id:4,href:"/".concat(null==A?void 0:A.shareUrl.replace("https://suamusica.com.br","")),text:h("GoToCDpage",{locale:x}).toString(),icon:S.ueS},{id:5,onClick:()=>{var e;eu(e=null==A?void 0:A.id),ed(!0),O.F.logEvent((0,L.L)({category:D.A.CD,action:B.A.TracksMenu,label:"adicionar a playlist",value:e}))},text:h("AddToPlaylist",{locale:x}).toString(),icon:"".concat(es,"/img/icons/iconAddPlaylist.svg"),trackInfos:{category:D.A.CD,action:B.A.TracksMenu,label:"adicionar a playlist",value:null==A?void 0:A.id}},!eI&&{id:6,onClick:()=>{eM(null==A?void 0:A.id)},text:h("SeeSongCredits",{locale:x}).toString(),icon:m.z3W}]})]}),(0,n.jsx)(H.PlaylistCreationModalComponent,{state:er,setState:ed,typeToBeAdded:"audioTrack",idOfTypeToBeAdded:ec,initialPlaylistName:null!=(d=null==(r=c.files.find(e=>{let{id:t}=e;return t===ec}))?void 0:r.file)?d:""}),(0,n.jsx)(et,{isSongCreditsDrawerOpen:ep,handleCloseSongCreditsDrawer:()=>ey(!1),album:c,songId:ef,songsCredits:eg,fetchingCredits:ev,songInfo:eC})]})}function ea(e){let{album:t}=e;return(0,n.jsx)(I.$,{children:(0,n.jsx)(en,{album:t})})}var ei=s(89762),el=s(59265),eo=s(97851),er=s.n(eo),ed=s(1075),ec=s(71410),eu=s(37526),em=s(53607);let eh=["","arrocha","axe","brega","forro","funk","mpb","pagode","reggae","rock","samba","sertanejo","swingueira","variados","gospel","rap-hip-hop","","","","eletronica","","","pop","brega-funk","arrochadeira","piseiro","","podcast","trap","frevo"];var ex=s(28388),e_=s.n(ex);let{publicRuntimeConfig:{assets:ep}}=d()();function ev(e){var t,s,i;let{title:r,list:d,album:c=null,playlist:m=null,toggleDrawer:h=null,option:x=!1}=e,_=(0,o.useTranslations)("Shared"),{locale:p}=(0,l.useRouter)(),v=null!=c?c:m,g=!!(null==(s=v.files)||null==(t=s[0])?void 0:t.cdId),f=((i=27===v.catId&&!g,true),i),C=1===v.files.length&&!g&&!f,[y,j]=(0,a.useState)(!1);return(0,n.jsxs)("div",{className:e_().albumOptionsContainer,children:[(0,n.jsxs)(u.Ay,{anchor:"bottom",open:x,onClose:h,sx:{"& .MuiDrawer-paper":{height:"auto",padding:"0 20px 20px 20px",borderRadius:"20px 20px 0 0"}},children:[(0,n.jsx)("div",{className:e_().sharedContainer,children:(0,n.jsx)(b.E,{id:v.id,textShare:v.name,resource:"album",socialShare:[{id:1,link:v.shareUrl,icon:"whatsapp"},{id:2,link:v.shareUrl,icon:"messenger"},{id:3,link:v.shareUrl,icon:"facebook"},{id:4,link:v.shareUrl,icon:"twitter"},{id:5,link:v.shareUrl,icon:"shared"}]})}),(0,n.jsx)(E.V,{title:r,className:e_().optionMenu,list:d,drawer:y,setDrawer:j})]}),v&&(0,n.jsx)(u.Ay,{anchor:"bottom",open:y,onClose:()=>j(!x),children:(0,n.jsxs)("div",{className:e_().albumInfo,children:[(0,n.jsx)("h2",{children:_(C?"SingleInformation":"CdInformation",{locale:p})}),(0,n.jsxs)("div",{className:e_().albumInfoHeader,children:[(0,n.jsx)(Q.default,{unoptimized:!0,src:v.cover,height:70,width:70}),(0,n.jsx)("p",{children:v.userName}
1),v.isVip&&(0,n.jsx)(Q.default,{unoptimized:!0,src:"".concat(ep,"/img/icons/verified-profile-icon.svg"),width:20,height:20})]}),c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:e_().albumInfoBody,children:[(0,n.jsxs)("p",{children:[_("Published",{locale:p}),": "]}),(0,n.jsx)("span",{children:(0,ed.A)((0,ec.A)(c.sendDate),"EEEE',' dd/MM/yy - HH:mm",{locale:"pt-BR"===p?eu.A:"es"===p?em.A:null})})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{children:[_("Size",{locale:p}),": "]}),(0,n.jsx)("span",{children:er()(c.size).format("0.00ib").replace("i","").toUpperCase()})]})]}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{children:[_("MusicalStyles",{locale:p}),": "]}),(0,n.jsx)("span",{className:e_().musicalStyles,children:(0,n.jsx)("object",{data:"".concat(ep,"/img/sprites/music-styles/sprite-music-style-rose.svg#").concat(eh[c.catId]),className:e_().icon,"aria-label":eh[c.catId],type:"image/svg+xml"})})]})})]})]})})]})}var eg=s(53924),ef=s(49817),eC=s(26731),ey=s(84854),ej=s(92979),eb=s(19456),ew=s(80228),eA=s(81911),eI=s.n(eA);let{publicRuntimeConfig:{assets:eN}}=d()();function eS(e){var t,s,r;let{album:d,recommendedAlbums:h,taboolaBelow:_,taboolaMid:I}=e,N=(0,o.useTranslations)("Shared"),S=(0,o.useTranslations)("Header"),{locale:k,asPath:T}=(0,l.useRouter)(),{toggleFavorite:E,addToRadio:F}=(0,P.FQ)(),{getString:R,isLoadedRemoteConfig:L}=(0,a.useContext)(ey.EN),{getLottieIconUrl:O}=(0,eb.u)(d),[V,z]=(0,a.useState)(!1),{user:U,isAdminUser:W,userFollowers:K}=(0,a.useContext)(M.cy),[Q,q]=(0,a.useState)(!1),[Y,J]=(0,a.useState)([]),[Z,X]=(0,a.useState)([]),[$,ee]=(0,a.useState)(!1),[et,es]=(0,a.useState)(!1),[en,eo]=(0,a.useState)(!1),[er,ed]=(0,a.useState)(null),[ec,eu]=(0,a.useState)(0),[em,eh]=(0,a.useState)(!1),[ex,e_]=(0,a.useState)(!1),[ep,eA]=(0,a.useState)(null),eS=D.A.CD,ek=B.A.CDMenu;if(!d)return(0,n.jsx)("div",{children:"LOADING..."});let eT=!!(null==(s=d.files)||null==(t=s[0])?void 0:t.cdId),eM=((r=27===d.catId&&!eT,true),r),eB=1===d.files.length&&!eT&&!eM,eD=[{id:"comments",content:(0,n.jsxs)("button",{type:"button",onClick:()=>z(!0),className:eI().typeIconComments,children:[(0,n.jsx)(f.I,{postId:"cd_".concat(d.id),className:eI().commentsCount}),(0,n.jsx)(m.gV7,{})]})},{id:"favorites",content:(0,n.jsx)("button",{type:"button",onClick:()=>{E(d),eh(!em)},className:eI().typeIcon,children:Q?(0,n.jsx)(m.rWo,{color:"red"}):(0,n.jsx)(m.OFX,{})})},{id:"downloadTextIcon",content:(0,n.jsxs)("button",{type:"button",onClick:()=>(0,eg.B)(d),className:eI().typeButton,children:[(0,n.jsx)(m.Fhs,{}),N("DownloadCdOrPlaylist",{locale:k,typeAlbum:1===d.files.length?"Single":"CD"})]})},{id:"downloadIcon",content:(0,n.jsx)("button",{type:"button",onClick:()=>(0,eg.B)(d),className:eI().typeIcon,children:(0,n.jsx)(m.Fhs,{})})},{id:"shareIcon",content:(0,n.jsx)(i.A,{href:(0,ef.w)(d.shareUrl,"shared",d.name,N("DownloadTheAppYourMusicYourCellPhoneNow",{locale:k})),prefetch:!1,role:"link",target:"_blank",tabIndex:0,children:(0,n.jsx)("button",{type:"button",onClick:()=>null,className:eI().typeIcon,children:(0,n.jsx)(m.az4,{})})})},{id:"shareTextIcon",content:(0,n.jsx)(i.A,{href:(0,ef.w)(d.shareUrl,"shared",d.name,N("DownloadTheAppYourMusicYourCellPhoneNow",{locale:k})),prefetch:!1,role:"link",target:"_blank",tabIndex:0,children:(0,n.jsxs)("button",{type:"button",onClick:()=>null,className:eI().typeButton,children:[N("Share",{locale:k}),(0,n.jsx)(m.az4,{})]})})},{id:"options",content:(0,n.jsx)("button",{type:"button",onClick:()=>null,className:eI().typeIcon,children:(0,n.jsx)(m.Pwf,{})})},{id:"shareContent",content:(0,n.jsx)(i.A,{href:(0,ef.w)(d.shareUrl,"shared",d.name,N("DownloadTheAppYourMusicYourCellPhoneNow",{locale:k})),prefetch:!1,role:"link",target:"_blank",tabIndex:0,children:(0,n.jsx)("button",{type:"button",onClick:()=>null,className:eI().typeIcon,children:N("Share",{locale:k})})})},{id:"whatsApp",content:(0,n.jsx)(i.A,{href:(0,ef.w)(d.shareUrl,"whatsapp",d.name,N("DownloadTheAppYourMusicYourCellPhoneNow",{locale:k})),prefetch:!1,role:"link",target:"_blank",tabIndex:0,children:(0,n.jsx)("button",{type:"button",onClick:()=>null,className:eI().typeIcon,children:(0,n.jsx)(m.Tvh,{})})})},{id:"spacer",content:(0,n.jsx)("div",{className:eI().spacer})}],eP=async()=>{F(d),ee(!0),p().fire({icon:"success",text:N("MusicAddedTheEndOfThePlayer",{locale:k}).toString(),showConfirmButton:!1,timer:1500,customClass:{container:"modal",actions:"containerButton"}})};(0,a.useEffect)(()=>
1{if(d){var e,t;q((null==K||null==(t=K.favorites)||null==(e=t.cdids)?void 0:e.find(e=>e===(null==d?void 0:d.id)))===(null==d?void 0:d.id))}},[d,K]),(0,a.useEffect)(()=>{if(L){var e;let t=(null!=(e=R("media_actions_order"))?e:"comments,favorites,spacer,downloadTextIcon").replace(/[\n[\]']+/g,"").replace("shareContent","").split(",").filter(e=>e),s=eD.sort((e,s)=>t.indexOf(e.id.toString())-t.indexOf(s.id.toString())),n=t.map(e=>s.find(t=>t.id.toString()===e)),a=n.indexOf(n.find(e=>"spacer"===e.id)),i=n.slice(0,a),l=n.slice(a+1,n.length);J(null!=i?i:[]),X(null!=l?l:[])}},[L,K,Q]);let eE=(null==d?void 0:d.released)===1&&d.showComments||[6,7].indexOf(null==d?void 0:d.released)>=0&&U&&U.id===(null==d?void 0:d.ownerId),eF=d.isScheduled&&6===d.released,eR=7===d.released||6===d.released&&!d.isScheduled,eH=10===d.released,eL=-1===d.released||0===d.released,eO=4===d.released,eV=eL&&"exclu\xeddo"||eF&&"programado"||eR&&"privado"||eH&&"indispon\xedvel"||eO&&"protegido por direitos autorais"||"exclu\xeddo";return(eF||eR||eH||eL||eO)&&d.ownerId!==(null==U?void 0:U.id)&&!W?(0,n.jsxs)("div",{className:"".concat(eI().privateAlbum," row g-0"),children:[(0,n.jsx)(ej.j,{url:O(),width:180,height:180,loop:!0}),(0,n.jsxs)("h3",{className:eI().privateTitle,children:[N("MusicOrCd",{locale:k})," de ",d.name," ",eV]}),(0,n.jsx)("p",{className:eI().private,children:N((0,ew.T)(d).contentKey,{locale:k})}),(0,n.jsx)(c.A,{sx:{borderColor:"#343434",margin:"24px 0"}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:eI().latestReleasesText,children:N("MeanwhileCheckTheLatestReleases",{locale:k})}),(0,n.jsx)(i.A,{href:"/",prefetch:!1,children:(0,n.jsx)(j.Q,{large:!0,rose:!0,rounded:!0,lightBold:!0,children:N("AccessReleases",{locale:k})})})]})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("section",{className:eI().albumContainerMobile,children:[(0,n.jsx)(ei.q,{trackingPage:el.A.CD,album:d,setOpenDrawer:()=>ee(!$),getSuggestions:e=>eA(e),setOpenSuggestions:e=>e_(e)}),(0,n.jsxs)("div",{className:x()(eI().tracksContainerMobile,{[eI().singleTracks]:!0}),id:"tracklist",children:[(0,n.jsx)("div",{className:x()(eI().suggestionProfiles,{[eI().suggestionProfilesActive]:ex&&(null==ep?void 0:ep.length)>0}),children:ep&&(0,n.jsx)(eC.J,{title:N("SuggestionsToFollow",{locale:k}).toString(),trackingPage:el.A.CD,suggestion:ep,show:ep.length>0&&ex})}),(0,n.jsxs)("div",{className:eI().actionsAlbum,children:[(0,n.jsx)("div",{className:eI().actionsLeft,children:null==Y?void 0:Y.map(e=>(0,n.jsx)("div",{className:eI().actionButton,children:e.content},e.id))}),(0,n.jsx)("div",{className:eI().actionsRight,children:null==Z?void 0:Z.map(e=>"spacer"!==e.id?(0,n.jsx)("div",{className:eI().actionButton,children:e.content},e.id):(0,n.jsx)(n.Fragment,{}))})]}),(0,n.jsxs)("div",{className:eI().tracklist,children:[(0,n.jsx)(b.E,{id:d.id,textShare:d.name,resource:"album",socialShare:[{id:1,link:d.shareUrl,icon:"whatsapp"},{id:2,link:d.shareUrl,icon:"messenger"},{id:3,link:d.shareUrl,icon:"facebook"},{id:4,link:d.shareUrl,icon:"twitter"},{id:5,link:d.shareUrl,icon:"shared"}]}),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(C.h2,{isMobile:!0})}),d&&(0,n.jsx)(ea,{album:d})]}),d.video&&(0,n.jsx)(y.c,{albumId:d.id,title:"",video:d.video,green:!0}),(0,n.jsx)("div",{className:eI().recommendedCds,children:h&&(0,n.jsx)(w.e,{title:N("RecommendedCDs",{locale:k}).toString(),recommendedAlbums:h,slide:!0})}),I?(0,n.jsx)("div",{id:"taboola-mid-thumbnails"}):(0,n.jsx)(n.Fragment,{})]}),d&&(0,n.jsx)("div",{className:eI().albumOptions,children:(0,n.jsx)(ev,{title:"",album:d,toggleDrawer:()=>ee(!$),option:$,list:1!==d.released||d.isScheduled?[{id:1,href:"/".concat(d.shareUrl.split("/")[3]),text:N("Viewprofile",{locale:k}).toString(),icon:v.Z31,trackInfos:{category:eS,action:ek,label:"Ver Perfil",value:d.id}}]:[{id:0,onClick:()=>E(d),text:Q?S("MyFavorite",{locale:k}).toString():N("FavoriteAlbum",{locale:k,album:1===d.files.length?"Single":"CD"}).toString(),icon:Q?(0,n.jsx)(m.rWo,{style:{fill:"red"}}):m.OFX},{id:1,onClick:()=>(0,eg.B)(d),text:N("DownloadCdOrPlaylist",{locale:k,typeAlbum:1===d.files.length?"Single":"CD"}),icon:m.Fhs,trackInfos:{category:eS,action:ek,label:"Baixar cd completo",value:d.id}},{id:2,onClick:()=>eP(),text:N("IncludeOnRadio",{locale:k}).toString(),icon:m.ViD,trackInfos:{category:eS,action:ek,label:"Adicionar \xe0 fila",value:d.id}},{id:3,href:"/".concat(d.shareUrl.split("/")[3]),text:N("Viewprofile",{locale:k}).toString(),icon:v.Z31,trackInfos:{category:eS,action:ek,label:"Ver Perfil",value:d.id}},{id:4,onClick:()=>{var e;return e=null==d?void 0:d.id,void(eu(e),ed("cd"),eo(!0))},text:N("AddToPlaylist",{locale:k}).toString(),icon:"".concat(eN,"/img/icons/iconAddPlaylist.svg"),trackInfos:{category:eS,action:ek,label:"Adicionar em Playlist",value:null==d?void 0:d.id}},{id:5,href:"#drawer",text:eB?N("SingleInformation",{locale:k}).toString():N("CdInformation",{locale:k}).toString(),icon:g.$4v,albumInfo:!0,trackInfos:{category:eS,action:ek,label:"Informacoes",value:d.id}},{id:6,href:"/sobre/denuncia",text:N("ReportContent",{locale:k}).toString(),icon:m.e5t,trackInfos:{category:eS,action:ek,label:"Denunciar Conte\xfado",value:d.id}},{id:6,onClick:()=>{es(!0),ee(!$)},text:N("ReportProblem",{locale:k}).toString(),icon:m.Ia7}]})}),eE&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Ay,{anchor:"bottom",open:V,onClose:()=>z(!V),sx:{"& .MuiDrawer-paper":{height:"100%",maxHeight:"520px",padding:"20px 20px 20px 20px",borderRadius:"20px 20px 0 0"}},children:(0,n.jsx)(A.y,{id:d.id.toString(),path:T,type:"cd"})}),_?(0,n.jsx)("div",{id:"taboola-below-thumbnails"}):(0,n.jsx)(n.Fragment,{})]}),en&&(0,n.jsx)(H.PlaylistCreationModalComponent,{state:en,setState:()=>eo(!1),typeToBeAdded:er,idOfTypeToBeAdded:ec,initialPlaylistName:null==d?void 0:d.title}
1),et&&(0,n.jsx)(G.H,{openModal:et,album:d,setOpenModal:es})]})})}},69047:e=>{e.exports={songCreditsModalContainer:"styles_songCreditsModalContainer__bsvx9",songCreditsModalHeader:"styles_songCreditsModalHeader__ndooo",songCreditsModalTitle:"styles_songCreditsModalTitle__oveTt",songCreditsModalBody:"styles_songCreditsModalBody__s63nT",songCreditsModalContent:"styles_songCreditsModalContent__OnlWh",albumInfoContainer:"styles_albumInfoContainer__FWu3u",albumInfoTextsContainer:"styles_albumInfoTextsContainer__DI1pk",songName:"styles_songName__1zuPi",artistNameContainer:"styles_artistNameContainer__SCXp2",artistName:"styles_artistName__coZ7S",verifiedIcon:"styles_verifiedIcon__ydjrl",creditsInfoContainer:"styles_creditsInfoContainer__QQOBx",creditItem:"styles_creditItem__TY_k6",creditsInfoText:"styles_creditsInfoText__JBVRm",creditsInfoTitle:"styles_creditsInfoTitle__Ld0Zv",creditsInfoValue:"styles_creditsInfoValue__wh9Os",actionButton:"styles_actionButton__ifC4N",iaContainer:"styles_iaContainer__42BPv",actionButtonSuggestion:"styles_actionButtonSuggestion__3I21U"}},77597:e=>{e.exports={statusContainer:"styles_statusContainer__6vWUB",statusText:"styles_statusText__fVLoO"}},78260:e=>{e.exports={homeContainer:"home_homeContainer__ND5ky",bannerContainer:"home_bannerContainer__6QTYn",bannerContainerBelowBg:"home_bannerContainerBelowBg__DJs_l",bannerContainerStandalone:"home_bannerContainerStandalone__y3Chy",bannerContainerNone:"home_bannerContainerNone__1GjB1",cards:"home_cards__layC2",newsSession:"home_newsSession__gvMcd",loadingContainer:"home_loadingContainer__kGVAa",outdoorArtistSecondaryView:"home_outdoorArtistSecondaryView__tSot_"}},80058:e=>{e.exports={cdHeaderContainer:"styles_cdHeaderContainer__wJtdF",title:"styles_title__zncPh",cdHeaderContent:"styles_cdHeaderContent__YMzCJ",cdHeaderLeftContent:"styles_cdHeaderLeftContent__8USyV",cdHeaderRightContent:"styles_cdHeaderRightContent__JfNvo"}},80228:(e,t,s)=>{"use strict";s.d(t,{G:()=>x,T:()=>_});let n={titleKey:"CdStatusDeletedNoReturnTitle",contentKey:"CdStatusDeletedNoReturnContent"},a={titleKey:"CdStatusDeletedTitle",contentKey:"CdStatusDeletedContent"},i={titleKey:"CdStatusCopyrightPenaltyTitle",contentKey:"CdStatusCopyrightPenaltyContent"},l={titleKey:"CdStatusPrivateNotPublishedTitle",contentKey:"PlaysAndDownloadsDataWillCountedCDActive"},o={titleKey:"CdStatusNotListedTitle",contentKey:"CdStatusNotListedContent"},r={titleKey:"CdStatusScheduledTitle",contentKey:"PlaysAndDownloadsDataWillCountedCDActive"},d={titleKey:"CdStatusDeletedTitlePublic",contentKey:"CdStatusDeletedContentPublic"},c={titleKey:"CdPrivateTitlePublic",contentKey:"CdPrivateContentPublic"},u={titleKey:"CdStatusScheduledTitlePublic",contentKey:"CdStatusScheduledContentPublic"},m={titleKey:"CdStatusCopyrightPenaltyTitlePublic",contentKey:"CdStatusCopyrightPenaltyContentPublic"},h={titleKey:"CdStatusDisabledTitlePublic",contentKey:"CdStatusDisabledContentPublic"};function x(e){let{released:t,isScheduled:s=!1}=e;switch(t){case -1:return n;case 0:return a;case 4:return i;case 9:return o;case 6:case 7:case 10:return s?r:l;default:return l}}function _(e){let{released:t,isScheduled:s=!1}=e;switch(t){case -1:case 0:return d;case 4:return m;case 1:case 6:return s?u:c;case 7:default:return c;case 10:return h}}},81911:e=>{e.exports={removedAlbum:"styles_removedAlbum__RIIAw",removedAlbumContent:"styles_removedAlbumContent__oMPFQ",buttonContainer:"styles_buttonContainer__pRmKW",privateAlbum:"styles_privateAlbum__2Rxoc",privateTitle:"styles_privateTitle__YtkEh",private:"styles_private__BFSFy",latestReleasesText:"styles_latestReleasesText__A87PL",albumContainerMobile:"styles_albumContainerMobile__9oAqd",tracksContainerMobile:"styles_tracksContainerMobile__p3cWw",singleTracks:"styles_singleTracks__LcQcz",suggestionProfiles:"styles_suggestionProfiles__cNMff",suggestionProfilesActive:"styles_suggestionProfilesActive__KoKxM",actionsAlbum:"styles_actionsAlbum__n5TgQ",actionsLeft:"styles_actionsLeft__XsgBY",actionsRight:"styles_actionsRight__6UWJt",actionButton:"styles_actionButton__tD_e3",typeButton:"styles_typeButton__AwuMR",typeIcon:"styles_typeIcon__UFBCt",typeIconComments:"styles_typeIconComments__Eeoqc",commentsCount:"styles_commentsCount__XMVAT",tracklist:"styles_tracklist__EdlUf",recommendedCds:"styles_recommendedCds__nHN_N"}},82322:(e,t,s)=>{"use strict";s.d(t,{A:()=>
1o,r:()=>l});var n=s(37876),a=s(14232);let i=(0,a.createContext)(null);function l(e){let{album:t,children:s}=e;return(0,n.jsx)(i.Provider,{value:t,children:s})}function o(){let e=(0,a.useContext)(i);if(!e)throw Error("useAlbumContext must be used within an AlbumProvider");return e}},82967:e=>{e.exports={trackMenu:"styles_trackMenu__E2CoS",trackMenuOptions:"styles_trackMenuOptions__dq1_X",trackMenuButton:"styles_trackMenuButton__6pD6S"}},83414:e=>{e.exports={drawerContainer:"styles_drawerContainer__syp61",closeButton:"styles_closeButton__83g0n",drawerContent:"styles_drawerContent__vJTN9",drawerTitle:"styles_drawerTitle__6L1Ov",divider:"styles_divider__YF6TP",drawerBody:"styles_drawerBody__PLa9a",drawerSubtitle:"styles_drawerSubtitle__QFMiv",form:"styles_form__mtt8o",inputText:"styles_inputText__YzL9M",drawerButtonCallToAction:"styles_drawerButtonCallToAction__knfcd",loadingSpinner:"styles_loadingSpinner__Sqn6G",spin:"styles_spin__AT6S1",drawerButtonCloseContent:"styles_drawerButtonCloseContent___h9vw",drawerButtonClose:"styles_drawerButtonClose__qYJlG",successView:"styles_successView__IWeoX",successTitle:"styles_successTitle__24zOA",successIcon:"styles_successIcon__VQnhH",successMessage:"styles_successMessage___Ny82",successFooter:"styles_successFooter__NJO74",successLink:"styles_successLink__J8a_v",handle:"styles_handle__Z8pr5"}},87823:e=>{e.exports={cdMenu:"styles_cdMenu__VTEvF",defaultFavoriteButton:"styles_defaultFavoriteButton__aE_a4",buttonBoxCard:"styles_buttonBoxCard__QUw03",buttonBoxCardText:"styles_buttonBoxCardText__UqjKP"}},89762:(e,t,s)=>{"use strict";s.d(t,{q:()=>T});var n=s(37876),a=s(21735),i=s(7429),l=s(15039),o=s.n(l),r=s(58487),d=s(89099),c=s(97851),u=s.n(c),m=s(14232),h=s(28191),x=s(1399),_=s(40248),p=s(44995),v=s.n(p),g=s(81102),f=s(19656),C=s(68423),y=s(6132),j=s(52986),b=s(59265),w=s(69980),A=s(41435),I=s(67491);s(30346),s(18058),s(9572),s(44318);var N=s(50933),S=s.n(N);function k(e){var t;let{play:s,album:l=null,playlist:c=null,trackingPage:p=null,setOpenDrawer:N,getSuggestions:k,setOpenSuggestions:T}=e,{asPath:M,back:B}=(0,d.useRouter)(),{status:D,playlist:P,togglePlay:E}=(0,a.FQ)(),[F,R]=(0,m.useState)(!1),[H,L]=(0,m.useState)(200),[O,V]=(0,m.useState)(300),{headerHeight:z}=(0,g.u)(),U=(null==c?void 0:c.description)?v()(c.description):"",W=null!=l?l:c;(null==W?void 0:W.hash)||Object.assign(W,{hash:"LDQTAgxu~UM|o~%1w[E2=^ay9bR+"});let K="Play"===D&&P.length>0&&P[+!l].albumId===(null==W?void 0:W.id);(0,m.useEffect)(()=>{if(W){let e=(0,f.rh)(document.location.search);"autoplay"in e&&"1"===e.autoplay&&s(W)}},[]);let Q=function(e,t,s,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";w.F.logEvent((0,C.L)({category:e,action:t,label:s,id:n,page:a}))},q=(0,i.A)(()=>{let e=document.querySelector("#tracklist"),t=null==e?void 0:e.getBoundingClientRect().top;0===window.scrollY?L(200):L(200-window.scrollY),t<160?R(!0):R(!1),V(t)},10),Y=()=>{if((null==W?void 0:W.files.length)!==0)if(0===P.length||P[+!l].albumId!==(null==W?void 0:W.id)){let e=l?M:j.A.Playlists,t=y.A.Play,n=null==W?void 0:W.title;Q(e,t,n,null==W?void 0:W.id,b.A.CDVip),s(W)}else E()};return(0,m.useEffect)(()=>{let e=(0,i.A)(q,10);return document.addEventListener("scroll",e),()=>document.removeEventListener("scroll",e)},[]),(0,n.jsxs)("div",{className:S().albumInfoBox,children:[(0,n.jsx)(h.Q,{hash:null==W?void 0:W.hash,resolutionX:32,resolutionY:32,punch:1,width:"100%",height:"100%",className:o()(S().blurhash)}),(0,n.jsxs)("div",{className:S().infoBoxActions,style:{color:(0,I.q)(null==W?void 0:W.hash)?"white":"black",display:F?"none":"flex",zIndex:9},children:[(0,n.jsx)(_.FZc,{size:20,onClick:()=>B()}),(0,n.jsx)(_.Pwf,{size:24,onClick:()=>N(!0)})]}),(0,n.jsx)("button",{type:"button",className:o()(S().playHeaderActive,{[S().playHeaderTransitionActive]:F}),onClick:()=>Y(),style:{top:"".concat(z+44,"px"),display:F?"flex":"none",zIndex:12},children:K?(0,n.jsx)(_.JwW,{height:"fill"}):(0,n.jsx)(_.dY6,{height:"fill"})}),(0,n.jsxs)("div",{className:o()(S().infoBoxHeader),style:{color:(0,I.q)(null==W?void 0:W.hash)?"white":"black",top:"".concat(z,"px"),display:F?"flex":"none"},children:[(0,n.jsx)(h.Q,{hash:null!=(t=null==W?void 0:W.hash)?t:"LDQTAgxu~UM|o~%1w[E2=^ay9bR+",resolutionX:32,resolutionY:32,punch:1,width:"100%",height:"100%",className:o()(S().blurhashHeader,{[S().blurhashHeaderActive]:F})}),(0,n.jsx)(_.FZc,{size:20,onClick:()=>B()}),(0,n.jsxs)("div",{className:o()(S().infoBoxHeaderTitle,{[S().infoBoxHeaderTitleActive]:F}),children:[(0,n.jsx)("h1",{className:S().title,children:null==W?void 0:W.title}),(0,n.jsxs)("div",{className:S().artistContent,children:[(0,n.jsx)("h2",{className:S().artist,children:l?null==W?void 0:W.name:null==W?void 0:W.userName}),(0,n.jsx)("span",{className:S().icon,children:W.isVerified&&(0,n.jsx)(_.qEQ,{size:16,height:"fill"})})]})]}),(0,n.jsx)(_.Pwf,{size:24,onClick:()=>N(!0)})]}),(0,n.jsx)("div",{className:S().infoBoxContainerMobile,children:(0,n.jsx)("div",{className:S().infoBox,style:{color:(0,I.q)(null==W?void 0:W.hash)?"white":"black"},children:(0,n.jsxs)("div",{className:o()(S().albumContent,{[S().albumContentDisabled]:O<160}),children:[c&&U.length>2?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(x.A,{className:S().carousel,style:{height:H},slide:!0,indicators:!0,controls:!1,interval:null,children:[(0,n.jsx)(x.A.Item,{children:(0,n.jsxs)("div",{className:o()(S().cardContent,{[S().cardTransition]:F}),style:{width:H,height:H},children:[(0,n.jsx)(r.default,{unoptimized:!0,src:null==W?void 0:W.cover,width:H,height:H,style:{objectFit:"contain"}}),(0,n.jsx)("button",{type:"button",className:S().cardPlay,onClick:()=>Y(),children:K?(0,n.jsx)(_.JwW,{height:"fill"}):(0,n.jsx)(_.dY6,{height:"fill"})})]})}),(0,n.jsx)(x.A.Item,{children:(0,n.jsx)("div",{style:{height:H},className:o()(S().descriptionContent,{[S().descriptionContentTransition]:F}),children:(0,n.jsx)("div",{className:S().description,children:(0,n.jsx)("p",{children:U})})})})]})}):(0,n.jsxs)("div",{className:o()(S().cardContent,{[S().cardTransition]:F}),style:{width:H,height:H},children:[(0,n.jsx)(r.default,{unoptimized:!0,src:null==W?void 0:W.cover,width:H,height:H,style:{objectFit:"contain"}}),(0,n.jsx)("button",{type:"button",className:S().cardPlay,onClick:()=>Y(),children:K?(0,n.jsx)(_.JwW,{height:"fill"}):(0,n.jsx)(_.dY6,{height:"fill"})})]}),(0,n.jsxs)("div",{className:o()(S().albumWrapper,{[S().albumTransition]:O<230}),style:{color:(0,I.q)(null==W?void 0:W.hash)?"white":"black"},children:[(0,n.jsx)("div",{className:S().titleWrapper,children:(0,n.jsx)("h1",{className:S().title,children:null==W?void 0:W.title})}),(0,n.jsxs)("div",{className:S().artistContent,children:[(0,n.jsxs)("div",{className:S().artistWrapper,children:[(0,n.jsxs)("div",{className:S().artistContent,children:[(0,n.jsx)("h2",{className:S().artist,children:l?null==W?void 0:W.name:null==W?void 0:W.userName}),(0,n.jsx)("span",{className:S().icon,children:(null==W?void 0:W.isVerified)&&(0,n.jsx)(_.qEQ,{size:16,height:"fill"})})]}),(0,n.jsxs)("div",{className:S().countInfo,children:[(0,n.jsxs)("p",{className:S().plays,children:[u()(W.plays).format("0.[0]a").toLocaleUpperCase()," plays"]}),c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:S().separator,children:" | "}),(0,n.jsxs)("p",{className:S().musics,children:[c.musics," m\xfasicas"]})]})]})]}),(0,n.jsx)("div",{className:S().followWrapper,children:l?(0,n.jsx)(A.x,{trackingAction:y.A.Albums,trackingPage:p,id:l.ownerId,isSuggestion:!0,suggestionSlide:!0,getSuggestions:e=>k(e),setOpenSuggestions:e=>T(e)}):(0,n.jsx)(A.x,{id:c.ownerId,isSuggestion:!0,suggestionSlide:!0,getSuggestions:e=>k(e),setOpenSuggestions:e=>T(e),customFollowTrack:()=>{let e=j.A.Playlist,t=y.A.Follow;Q(e,t,c.userName,void 0,b.A.Artist)},customUnfollowTrack:()=>{let e=j.A.Playlists,t=y.A.Unfollow;Q(e,t,c.userName,void 0,b.A.Artist)}})})]})]})]})})})]})}function T(e){let{album:t=null,playlist:s=null,trackingPage:i=null,setOpenDrawer:l=()=>{},setOpenSuggestions:o=()=>{},getSuggestions:r=()=>{}}=e,{addToPlaylist:d}=(0,a.FQ)();return(0,n.jsx)(k,{album:t,playlist:s,play:d,trackingPage:i,setOpenDrawer:l,setOpenSuggestions:e=>o(e),getSuggestions:e=>r(e)})}},96288:e=>{e.exports={buttonsContainer:"styles_buttonsContainer__RrjPW",downloadButton:"styles_downloadButton__4iuib",shareButton:"styles_shareButton__xGsae",seeReleases:"styles_seeReleases__RIxxp"}},99064:e=>{e.exports={cdContentContainer:"styles_cdContentContainer__KAGag",cdContentTitle:"styles_cdContentTitle__UNHbi",cdContentTitleContainer:"styles_cdContentTitleContainer__ntxYJ",cdContentTitleInfosContainer:"styles_cdContentTitleInfosContainer__8xoDo",cdContentTitleBadge:"styles_cdContentTitleBadge__ooit_",cdContentTitleBadgeText:"styles_cdContentTitleBadgeText__wYZ2B"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.