PageSourceSearch

https://musicboard.app/static/js/607.79e0e9b6.chunk.js

js musicboard.app collected 2026-10-02 03:25:36 UTC 13,484 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmusicboard_web=self.webpackChunkmusicboard_web||[]).push([[607],{82601:(e,t,a)=>{a.d(t,{A:()=>$});const l="filter_item__3oaqa",s="filter_itemText__xWkhm",i="filter_active__j3fsx",r="filter_arrow__8eIuC",n="filter_container__8MH92",d="filter_header__KtHjS",o="filter_notHoveringClose__acBfN",c="filter_filters__5+j9G",u="filter_close__IR6Y2";var m=a(65043),h=a(20478),g=a(6086),b=a(56841),p=a(62582),x=a(64671),_=a(97508),v=a(70579);const $=function(e){let{proRequired:t,title:a,parameter:$,filters:f,className:j,style:N,clearFilter:y,showExactLabel:w,showInternalLabel:A,emptyLabel:S="All"}=e;const{colors:C}=(0,h.DP)(),[M,R]=((0,_.d4)((e=>e.me.is_pro)),(0,m.useState)(!1)),[k,Y]=(0,m.useState)(null);(0,m.useEffect)((()=>{const e=document.getElementById(`${a}-${$}-filters`);Y(e?e.clientHeight:null)}),[f]);const I=(0,b.W5)(),L=(0,b.zy)(),U=new URLSearchParams(L.search).get($),{getHref:D}=(0,g.$)(),E=f.findIndex((e=>-1!==e.ordering.findIndex((e=>e.value==U)))),T=f[E]?f[E].ordering.findIndex((e=>e.value==U)):null,z=w?U||S:f[E]?A&&f[E].ordering[T]?f[E].ordering[T].label:f[E].title:S,[G,P]=(0,m.useState)(!1);return(0,v.jsxs)("div",{className:`${n} ${j} mobile-block`,style:{height:M?k?k+60:"initial":60,...N},children:[(0,v.jsxs)("div",{onClick:()=>!G&&R(!M),className:`${d} cursor ${G?"":o}`,children:[(0,v.jsx)("p",{className:"highDarkGrey",style:{fontSize:16},children:a}),(0,v.jsxs)("div",{className:"flex-row",children:[(0,v.jsxs)("div",{className:"flex-row",children:[(0,v.jsx)("h5",{className:"black",children:z}),(0,v.jsx)(x.A,{icon:"expand-more",className:`${r} ${M?i:""}`})]}),y&&U&&(0,v.jsx)(p.N_,{onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),onClick:()=>{P(!1),R(!1)},className:"margin-left-8",to:`${I.url}${D(null,$)}`,style:{height:20},children:(0,v.jsx)(x.A,{icon:"close",className:`${u}`,size:20})})]})]}),(0,v.jsx)("div",{id:`${a}-${$}-filters`,className:`${c}`,children:f.map(((e,t)=>(0,v.jsxs)("div",{className:"margin-top-8",children:[(0,v.jsxs)("div",{className:"flex-row justify-between",children:[(0,v.jsx)("h6",{className:"black margin-bottom-4",children:e.title}),0===t&&y&&U&&(0,v.jsx)(p.N_,{to:`${I.url}${D(null,$)}`,children:(0,v.jsx)("p",{children:"Clear filter"})})]}),e.ordering.map((e=>(0,v.jsx)(p.N_,{to:e.redirect?e.redirect:`${I.url}${D(e.value,$)}`,children:(0,v.jsxs)("div",{className:`flex-row ${l} ${e.value==U?i:""}`,children:[e.value==U&&(0,v.jsx)(x.A,{color:C.green,size:16,icon:"check"}),(0,v.jsx)("p",{className:`${s}`,children:e.label})]})},`ordering-${e.value}`)))]},`${a}-${$}-filter-${t}`)))})]})}},14543:(e,t,a)=>{a.r(t),a.d(t,{default:()=>F});var l=a(65043),s=a(56841),i=a(97508),r=a(43903),n=a.n(r),d=a(39657),o=a(86178),c=a.n(o),u=a(93488),m=a(82656),h=a(39526),g=a(47899),b=a(43319),p=a(33815),x=a(20478),_=a(57919),v=a(10112),$=a(25268),f=a(20498),j=a(85443),N=a(73705),y=a(52535),w=a(64671),A=a(82601),S=a(55859),C=a(79963),M=a(35877),R=a(84147),k=a(44740),Y=a(65775);const I="albumnavbar_item__vMv5W",L="albumnavbar_active__D-JXz",U="albumnavbar_itemText__Yf+F-",D="albumnavbar_itemLine__RkkfZ",E="albumnavbar_text__PVu5l",T="albumnavbar_title__N2H0K";var z=a(62582),G=(a(72103),a(47681)),P=a(70579);const H=function(e){let{album:t,className:a}=e;const{pathname:l}=(0,s.zy)(),i=((0,d.Ub)({maxWidth:1220}),(0,d.Ub)({maxWidth:1020}),(0,d.Ub)({maxWidth:960})),r=[{text:"Home",redirect:t.url_slug},{text:"Reviews",redirect:`${t.url_slug}reviews`},{text:"Lists",redirect:`${t.url_slug}lists`},{text:"Ratings",redirect:`${t.url_slug}ratings`},{text:"Contributions",redirect:`${t.url_slug}contributions`}].filter((e=>e));return i?(0,P.jsxs)("div",{className:"margin-top-32 section-block padding-around",children:[(0,P.jsxs)("div",{className:"flex-row",children:[(0,P.jsx)(z.N_,{to:t.url_slug,children:(0,P.jsx)(G.A,{clickable:!0,size:32,albumCover:t.cover_small||t.cover,altText:t.title})}),(0,P.jsx)(z.N_,{to:t.url_slug,className:`${T} margin-left-12 flex-row`,children:(0,P.jsx)("div",{className:"grid",children:(0,P.jsx)("h6",{className:"one-line",style:{fontSize:16,maxWidth:300},children:t.title})})})]}),(0,P.jsx)("p",{className:`margin-top-8 ${E}`,children:r.map(((e,t)=>(0,P.jsxs)("span",{children:[0!==t&&" ",(0,P.jsx)(z.N_,{to:e.redirect,className:`${l===e.redirect?L:""}`,children:e.text}),t!==r.length-1&&" \u2022"]},`albumnavbar-small-${e.text}`)))})]}):(0,P.jsxs)("div",{className:"margin-top-32 flex-row section-block",style:{overflow:"hidden",alignItems:"stretch"}
1,children:[(0,P.jsxs)("div",{className:"flex-row padding-around",children:[(0,P.jsx)(z.N_,{to:t.url_slug,children:(0,P.jsx)(G.A,{clickable:!0,size:32,albumCover:t.cover_small||t.cover,altText:t.title})}),(0,P.jsx)(z.N_,{to:t.url_slug,className:`${T} margin-left-12 flex-row`,children:(0,P.jsx)("div",{className:"grid",children:(0,P.jsx)("h6",{className:"one-line",style:{fontSize:16,maxWidth:300},children:t.title})})})]}),r.map(((e,t)=>(0,P.jsx)(z.N_,{to:e.redirect,children:(0,P.jsxs)("div",{className:`${I} ${l===e.redirect?L:""}`,children:[(0,P.jsx)("div",{style:{height:4}}),(0,P.jsx)("h6",{className:`one-line ${U}`,children:e.text}),(0,P.jsx)("div",{className:D})]})},`albumnavbar-${e.text}`)))]})};var W=a(35643);const F=function(){const e=(0,i.wA)(),t=(0,s.zy)(),a=(0,s.W6)(),{colors:r}=(0,x.DP)(),{id:o,nameSlug:I,artistSlug:L}=(0,s.g)(),{openPopup:U}=(0,_.O)(),D=null!==new URLSearchParams(t.search).get("dz"),E=null!==new URLSearchParams(t.search).get("rd"),T=new URLSearchParams(t.search).get("order_by")?new URLSearchParams(t.search).get("order_by"):"-created_at",z=new URLSearchParams(t.search).get("approved")?new URLSearchParams(t.search).get("approved"):"",G=new URLSearchParams(t.search).get("type")?new URLSearchParams(t.search).get("type"):"",F="-created_at"!==T||""!==z||""!==G,O=(0,d.Ub)({maxWidth:960}),B=((0,i.d4)((e=>e.auth.uid)),(0,i.d4)((e=>I&&L?e.local.albumUrlSlugResult[`/album/${I}/${L}/`]:null))),q=(0,i.d4)((e=>o&&D?e.local.albumDeezerIdResult[o]:null)),K=(0,i.d4)((e=>o&&!D?e.local.albumIdResult[o]:null)),[Z,J]=(0,l.useState)(B||q||K||o),V=(0,i.d4)((e=>e.albums.albums[Z])),X=(0,i.d4)((e=>e.albums.lastFetchedAlbumId)),Q=(0,i.d4)((e=>e.albums.fetchAlbumStatus)),ee=((0,i.d4)((e=>e.contributions.deleteSuggestionStatus)),(0,i.d4)((e=>e.contributions.lastDeletedSuggestionType)),(0,i.d4)((e=>e.contributions.lastDeletedSuggestionUid)),(0,i.d4)((e=>e.albums.albums[Z]&&e.albums.albums[Z].suggestedChanges?e.albums.albums[Z].suggestedChanges:null))),te=(0,i.d4)((e=>e.albums.errorMessage));return(0,l.useEffect)((()=>{J(I&&L?B||null:D?q||o:K||o),I&&L?E&&V&&V.id||e((0,g.jh)(I,L)):e((0,g.CZ)(o,D))}),[o,I,L,D]),(0,v.g)({effectStatus:Q,successCallback:()=>{X&&X!==Z&&J(X)}}),(0,l.useEffect)((()=>{if(V&&V.id){if(!V||I||L){if(V&&I&&L&&V.url_slug!==`/album/${I}/${L}/`){const e=t.search?t.search.replace("?","").split("&"):[];e.splice(e.indexOf("dz"),1),-1===e.indexOf("rd")&&e.push("rd"),a.replace(`${V.url_slug}${t.pathname.replace(`/album/${o}`,"").replace(`/album/${I}/${L}`,"").replace("/","")}${e.length>0?"?":""}${e.join("&")}`)}}else{const e=t.search?t.search.replace("?","").split("&"):[];e.splice(e.indexOf("dz"),1),-1===e.indexOf("rd")&&e.push("rd"),a.replace(`${V.url_slug}${t.pathname.replace(`/album/${o}`,"").replace("/","")}${e.length>0?"?":""}${e.join("&")}`)}e((0,b.d)(["change"!==G&&"merge"!==G&&`${u.url}/v2/suggested_albums/?speedup=true&limit=12&accepted_album=${V.id}&accepted=${"approved"===z?"true":"declined"===z||"pending"===z?"false":""}&checked=${"approved"===z||"declined"===z?"true":"pending"===z?"false":""}&order_by=${T}`,"album"!==G&&`${u.url}/v2/suggested_album_changes/?speedup=true&limit=12&album=${V.id}&accepted=${"approved"===z?"true":"declined"===z||"pending"===z?"false":""}&checked=${"approved"===z||"declined"===z?"true":"pending"===z?"false":""}&order_by=${T}&is_duplicated=${"merge"===G?"true":"change"===G?"false":""}`].filter((e=>e)),h.g.GET_ALBUM_SUGGESTED_CHANGES,T,{id:V.id,speedup:!0,limit:12}))}}),[null===V||void 0===V?void 0:V.id,T,z,G]),V&&V.id?(0,P.jsxs)("div",{children:[(0,P.jsx)(f.A,{title:`Contribution history of ${V.title} - Musicboard`,description:`Database changes to ${V.title}. ${V.release_date?`Released on ${c()(V.release_date).format("year"===V.release_date_precision?"YYYY":"month"===V.release_date_precision?"MMMM YYYY":"DD MMMM YYYY")},`:""} ${V.release_date?"this":"This"} ${m.wA[V.record_type]} has ${(0,y.qC)(V.ratings_count||0)} ratings on Musicboard, with a score of ${(V.average_rating/2).toFixed(2)} / 5.${V.genres.length>0||V.styles.length>0?` Genres: ${[...V.genres,...V.styles].map((e=>e.name)).join(", ")}.`:""} Explore all the contributions made to ${V.title} on Musicboard.`,canonical:`https://musicboard.app${V.url_slug}contributions`,ogType:"music.album",ogImage:V.cover_large||V.cover,ogImageAlt:V.title,ogImageWidth:500,ogImageHeight:500,twitterImage:V.cover_large||V.cover,twitterImageWidth:500,twitterImageHeight:500,labelOne:V.release_date?{label:"Release Date",data:c()(V.release_date).format("year"===V.release_date_precision?"YYYY":"month"===V.release_date_precision?"MMM YYYY":"DD MMM YYYY")}:{label:"Duration",data:(0,N.iw)(V.duration)},labelTwo:{label:"Average Rating",data:`${(V.average_rating/2).toFixed(2)} out of 5`},deepLink:`musicboard://album/${V.id}`,headingOne:`Contribution history of ${V.title}`,headingTwo:`Database changes to ${V.title} on Musicboard`}),(0,P.jsx)(j.A,{id:`AlbumContributions-${V.id}-Breadcrumb-Data`,data:(0,p.Hs)([{name:"Musicboard",item:"https://musicboard.app/"}
1,{name:"Albums",item:"https://musicboard.app/albums/"},{name:V.artist.name,item:`https://musicboard.app${V.artist.url_slug}`},{name:V.title,item:`https://musicboard.app${V.url_slug}`},{name:"Contributions",item:`https://musicboard.app${V.url_slug}contributions/`}])},`AlbumContributions-${V.id}-Breadcrumb-Data`),(0,P.jsxs)("div",{className:"page-container",children:[(0,P.jsx)(H,{album:V}),(0,P.jsxs)("div",{className:"section-handler-reverse",children:[(0,P.jsxs)("div",{className:"section-2 section-margin",children:[(0,P.jsx)(S.A,{className:"margin-top-32",text:"History of ",subText:V.title,subTextRedirect:V.url_slug}),(0,P.jsxs)("div",{className:"section-block padding-around-8",children:[ee&&ee.data&&ee.data.length>0&&(0,P.jsx)(n(),{initialLoad:!1,threshold:200,loadMore:()=>{ee.next&&e((0,b.E2)(ee.next,h.g.GET_ALBUM_SUGGESTED_CHANGES,T,{id:V.id,speedup:!0,limit:12}))},hasMore:Boolean(ee.next||ee.status===h.h.BEGIN&&!ee.reset),loader:(0,P.jsx)("div",{className:"flex-column",style:{width:"100%"},children:[1,2,3,4,5].map(((e,t)=>(0,P.jsx)($.A,{artist:!0,size:56},`contributions-pagination-loader-${t}`)))},"album-contributions-pagination-loader"),children:ee.data.map(((e,t)=>"suggested_artist"===e.type||"suggested_album"===e.type||"suggested_track"===e.type?(0,P.jsx)(Y.A,{isContentDesign:!0,item:e},`albumContributions-${V.id}-${e.uid}-${t}`):(0,P.jsx)(k.A,{isContentDesign:!0,item:e},`albumContributions-change-${V.id}-${e.uid}-${t}`)))}),ee&&ee.data&&ee.data.length<=0&&ee.status===h.h.SUCCESS&&(0,P.jsx)("p",{className:"section-block empty-text",children:F?`${V.title} has no contribution history with the current filters.`:`${V.title} does not have any contributions yet.`}),ee&&ee.data&&ee.data.length<=0&&ee.status===h.h.ERROR&&(0,P.jsx)("p",{className:"section-block empty-text",children:`Could not fetch contribution history for ${V.title}. Error: ${te}`}),ee&&ee.data&&ee.data.length<=0&&ee.status===h.h.BEGIN&&(0,P.jsx)("div",{className:"flex-column",children:[1,2,3,4,5,6,7,8,9,10,11,12].map(((e,t)=>(0,P.jsx)("div",{style:{width:"100%"},children:(0,P.jsx)($.A,{artist:!0,size:56})},`contributions-loader-${t}`)))})]})]}),(0,P.jsxs)(R.A,{enabled:!O,className:"section-1",offsetTop:56-(O?0:35),children:[(0,P.jsxs)("div",{style:{paddingTop:O?0:35},children:[(0,P.jsx)("div",{className:"padding-top-32"}),(0,P.jsx)(C.A,{options:[{text:"Contribute to this album",redirect:`/album/${V.id}/edit`},{text:"Report as a duplicate",onPress:()=>U("ReportDuplicate",{contentOne:V,contentTwo:null})},{text:"Contributor Guidelines",redirect:"/contributors"}]}),(0,P.jsx)(S.A,{className:"padding-top-32",text:"Filters"}),(0,P.jsx)(A.A,{title:"Sort by",parameter:"order_by",filters:[{title:"Time Posted",ordering:[{value:null,label:"Latest First"},{value:"created_at",label:"Oldest First"},{value:"-modified_at",label:"Last Updated"}]},{title:"Upvotes",ordering:[{value:"-like_count",label:"Most Upvoted"},{value:"like_count",label:"Least Upvoted"}]}]}),(0,P.jsx)(A.A,{className:"margin-top-16",title:"Status",parameter:"approved",clearFilter:!0,showInternalLabel:!0,filters:[{title:"Approval",ordering:[{value:null,label:"All"},{value:"approved",label:"Approved"},{value:"declined",label:"Declined"},{value:"pending",label:"In Review"}]}]}),(0,P.jsx)(A.A,{className:"margin-top-16",title:"Type",parameter:"type",clearFilter:!0,showInternalLabel:!0,filters:[{title:"Type",ordering:[{value:null,label:"All"},{value:"album",label:"Initial Contribution"},{value:"change",label:"Album Changes"},{value:"merge",label:"Merged"}]}]})]}),(0,P.jsx)(M.A,{fuseId:"trending_vrec_1",aboveTheFold:!0,className:"margin-top-48",type:"small",adChannel:"AlbumContributions/Small"})]})]}),(0,P.jsx)("div",{style:{height:64}})]})]}):Q===h.h.ERROR?(0,P.jsx)(W.A,{}):(0,P.jsx)("div",{className:"full-height",children:(0,P.jsx)("div",{className:"full-center",children:(0,P.jsx)(w.A,{className:"margin-auto",icon:"loading",color:r.darkLightGrey,size:32})})})}}}]);
2//# sourceMappingURL=607.79e0e9b6.chunk.js.map

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.