1"use strict";(self.webpackChunkmusicboard_web=self.webpackChunkmusicboard_web||[]).push([[182],{44740:(e,c,a)=>{a.d(c,{A:()=>D});const s="suggestedchangeitem_container__P5e9x",i="suggestedchangeitem_public__68fh3",r="suggestedchangeitem_first__-0Bg0",t="suggestedchangeitem_last__G+2hr",l="suggestedchangeitem_ticket__kzLvl",n="suggestedchangeitem_accepted__BhAMO",d="suggestedchangeitem_declined__+U-Ie";var o=a(65043),g=a(56841),m=a(62582),h=a(39657),u=a(97508),_=a(86178),x=a.n(_),p=a(57919),k=a(72866),j=a(64671),f=a(47681),v=a(72103),b=a(89081),N=a(70579);function y(e){var c;let{item:a,isContentDesign:o,isPublicDesign:_,isFirst:y,isLast:D}=e;(0,g.W6)(),(0,u.wA)();const{openPopup:$}=(0,p.O)(),A=(a.record_type?(0,k.C)(a.record_type):"suggested_album"===a.type||a.album||("suggested_artist"===a.type||a.artist),(0,h.Ub)({maxWidth:630})),z=[...(0,u.d4)((e=>e.me.blocks)),...(0,u.d4)((e=>e.me.cachedBlocks))],w=-1!==z.findIndex((e=>e.blocked_user===a.creator))?z[z.findIndex((e=>e.blocked_user===a.creator))]:null;return(0,u.d4)((e=>e.me.blockedBy&&e.me.blockedBy.find((e=>e.creator===a.creator))))||w?null:_?(0,N.jsx)(m.N_,{to:"suggested_album_change"===a.type?`/contribution/album-change/${a.uid}`:"suggested_artist_change"===a.type?`/contribution/artist-change/${a.uid}`:"suggested_track_change"===a.type&&a.suggested_album_change?`/contribution/album-change/${a.suggested_album_change}`:null,children:(0,N.jsx)("div",{className:`padding-around ${s} ${i} ${y?r:""} ${D?t:""}`,children:(0,N.jsxs)("div",{className:"flex-row align-top",children:[(0,N.jsxs)("div",{className:"col-1 flex-row align-top",children:[(a.album||a.track)&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.album?a.album.cover_small||a.album.cover:a.track.album.cover_small||a.track.album.cover,size:60,altText:a.album?a.album.title:a.track.title}),a.artist&&(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.artist.picture_small||a.artist.picture,size:60,altText:a.artist.name}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15},children:[a.artist?a.artist.name:a.album?a.album.title:a.track.title,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),a.duplicate_of&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Reported as a duplicate"})})]}),!a.duplicate_of&&(a.changed_fields>0||a.changed_tracks>0)&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[a.changed_fields&&a.changed_fields>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_fields," changed ",1===a.changed_fields?"field":"fields"]})})]}):null,a.changed_tracks&&a.changed_tracks>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_tracks," changed ",1===a.changed_tracks?"track":"tracks"]})})]}):null]}),!a.duplicate_of&&!a.changed_fields&&!a.changed_tracks&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Edited fields"})})]}),(0,N.jsx)(v.A,{user:a.creator,className:"margin-top-12"})]})]}),(0,N.jsxs)("div",{className:(A?"flex-column align-stretch":"flex-row align-top")+" margin-left-24",children:[(0,N.jsxs)("div",{className:"flex-column "+(A?"":"margin-right-16"),children:[(0,N.jsx)("p",{className:"highDarkGrey text-right",children:x()(a.created_at).format("DD MMM YYYY")}),(a.like_count>0||a.comment_count>0)&&(0,N.jsxs)("p",{className:"one-line highDarkGrey text-right margin-top-8",children:[a.like_count>0?`${a.like_count} ${1===a.like_count?"upvote":"upvotes"}`:"",a.like_count>0&&a.comment_count>0?", ":"",a.comment_count>0?`${a.comment_count} ${1===a.comment_count?"comment":"comments"}`:""]})]}),(0,N.jsxs)("div",{className:`flex-row ${l} ${a.checked?a.accepted?n:d:""} ${A?"margin-top-8":"margin-left-4"}`,children:[!a.checked&&(0,N.jsx)(j.A,{icon:"access-time",size:16,color:"var(--black)"}),a.checked&&a.accepted&&(0,N.jsx)(j.A,{icon:"check-circle-light",size:16,color:"var(--green)",tintImages:!0}),a.checked&&!a.accepted&&(0,N.jsx)(j.A,{icon:"remove-circle",size:16,color:"var(--red)",tintImages:!0}),(0,N.jsx)("h6",{className:"margin-left-8",style:{marginRight:"3px",color:a.checked?a.accepted?"var(--green)":"var(--red)":"var(--black)"},children:a.checked?a.accepted?"Accepted":"Declined":"Pending"})]})]})]})})}):(0,N.jsx)(m.N_,{to:"suggested_album_change"===a.type?`/contribution/album-change/${a.uid}?r=${o?"album":"user"}`:"suggested_artist_change"===a.type?`/contribution/artist-change/${a.uid}?r=${o?"artist":"user"}`:"suggested_track_change"===a.type&&a.suggested_album_change?`/contribution/album-change/${a.suggested_album_change}?r=${o?"track":"user"}
1`:null,children:(0,N.jsx)("div",{className:`padding-around-8 ${s}`,children:(0,N.jsxs)("div",{className:"flex-row",children:[o&&(0,N.jsxs)("div",{className:"col-1 flex-row",children:[(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.creator.is_pro&&1===a.creator.tier&&null!==(c=a.creator.profile_picture)&&void 0!==c&&c.includes(".gif")?a.creator.profile_picture:a.creator.profile_picture_small||a.creator.profile_picture,size:60,altText:a.creator.username}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15,marginTop:-1},children:["By ",a.creator.username,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),a.duplicate_of&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Reported as a duplicate"})})]}),!a.duplicate_of&&(a.changed_fields>0||a.changed_tracks>0)&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[a.changed_fields&&a.changed_fields>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_fields," changed ",1===a.changed_fields?"field":"fields"]})})]}):null,a.changed_tracks&&a.changed_tracks>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_tracks," changed ",1===a.changed_tracks?"track":"tracks"]})})]}):null]}),!a.duplicate_of&&!a.changed_fields&&!a.changed_tracks&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Edited fields"})})]})]})]}),!o&&(0,N.jsxs)("div",{className:"col-1 flex-row",children:[(a.album||a.track)&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.album?a.album.cover_small||a.album.cover:a.track.album.cover_small||a.track.album.cover,size:60,altText:a.album?a.album.title:a.track.title}),a.artist&&(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.artist.picture_small||a.artist.picture,size:60,altText:a.artist.name}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15,marginTop:-1},children:[a.artist?a.artist.name:a.album?a.album.title:a.track.title,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),a.duplicate_of&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Reported as a duplicate"})})]}),!a.duplicate_of&&(a.changed_fields>0||a.changed_tracks>0)&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[a.changed_fields&&a.changed_fields>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_fields," changed ",1===a.changed_fields?"field":"fields"]})})]}):null,a.changed_tracks&&a.changed_tracks>0?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(j.A,{icon:"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsxs)("p",{className:"one-line highDarkGrey",children:[a.changed_tracks," changed ",1===a.changed_tracks?"track":"tracks"]})})]}):null]}),!a.duplicate_of&&!a.changed_fields&&!a.changed_tracks&&(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"edit",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8 margin-right-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"Edited fields"})})]})]})]}),(0,N.jsxs)("div",{className:(A?"flex-column align-stretch":"flex-row")+" margin-left-24",children:[(0,N.jsxs)("div",{className:"flex-column "+(A?"":"margin-right-16"),children:[(0,N.jsx)("p",{className:"highDarkGrey text-right",children:x()(a.created_at).format("DD MMM YYYY")}),(a.like_count>0||a.comment_count>0)&&(0,N.jsxs)("p",{className:"one-line highDarkGrey text-right margin-top-8",children:[a.like_count>0?`${a.like_count} ${1===a.like_count?"upvote":"upvotes"}`:"",a.like_count>0&&a.comment_count>0?", ":"",a.comment_count>0?`${a.comment_count} ${1===a.comment_count?"comment":"comments"}`:""]})]}),(0,N.jsxs)("div",{className:`flex-row ${l} ${a.checked?a.accepted?n:d:""} ${A?"margin-top-8":"margin-left-4"}`,children:[!a.checked&&(0,N.jsx)(j.A,{icon:"access-time",size:16,color:"var(--black)"}),a.checked&&a.accepted&&(0,N.jsx)(j.A,{icon:"check-circle-light",size:16,color:"var(--green)",tintImages:!0}),a.checked&&!a.accepted&&(0,N.jsx)(j.A,{icon:"remove-circle",size:16,color:"var(--red)",tintImages:!0}),(0,N.jsx)("h6",{className:"margin-left-8",style:{marginRight:"3px",color:a.checked?a.accepted?"var(--green)":"var(--red)":"var(--black)"},children:a.checked?a.accepted?"Accepted":"Declined":"Pending"})]})]})]})})})}const D=o.memo(y)},65775:(e,c,a)=>{a.d(c,{A:()=>D});const s="suggestedcontentitem_container__yQ9QN",i="suggestedcontentitem_public__bzpE4",r="suggestedcontentitem_first__WmTcf",t="suggestedcontentitem_last__+-V1s",l="suggestedcontentitem_ticket__h1Ki9",n="suggestedcontentitem_accepted__CVOv3",d="suggestedcontentitem_declined__7KJAR";
1var o=a(65043),g=a(56841),m=a(62582),h=a(39657),u=a(97508),_=a(86178),x=a.n(_),p=a(57919),k=a(72866),j=a(64671),f=a(47681),v=a(72103),b=a(89081),N=a(70579);function y(e){var c;let{item:a,isContentDesign:o,isPublicDesign:_,isFirst:y,isLast:D}=e;(0,g.W6)(),(0,u.wA)();const{openPopup:$}=(0,p.O)(),A=(0,h.Ub)({maxWidth:630}),z=(a.record_type?(0,k.C)(a.record_type):"suggested_album"===a.type||a.type,[...(0,u.d4)((e=>e.me.blocks)),...(0,u.d4)((e=>e.me.cachedBlocks))]),w=-1!==z.findIndex((e=>e.blocked_user===a.creator))?z[z.findIndex((e=>e.blocked_user===a.creator))]:null;return(0,u.d4)((e=>e.me.blockedBy&&e.me.blockedBy.find((e=>e.creator===a.creator))))||w?null:_?(0,N.jsx)(m.N_,{to:"suggested_album"===a.type?`/contribution/album/${a.id}`:"suggested_artist"===a.type?`/contribution/artist/${a.id}`:"suggested_track"===a.type&&a.suggested_album?`/contribution/album/${a.suggested_album.id}`:null,children:(0,N.jsx)("div",{className:`padding-around ${s} ${_?i:""} ${y?r:""} ${D?t:""}`,children:(0,N.jsxs)("div",{className:"flex-row align-top",children:[(0,N.jsxs)("div",{className:"col-1 flex-row align-top",children:["suggested_album"===a.type&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.cover?a.cover:a.cover_url,size:56,altText:a.title}),"suggested_track"===a.type&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.album?a.cover:a.suggested_album?a.cover?a.cover:a.cover_url:null,size:56,altText:a.title}),"suggested_artist"===a.type&&(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.picture?a.picture:a.picture_url,size:56,altText:a.name}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15},children:["suggested_artist"===a.type?a.name:a.title,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"suggested_album"===a.type?"album":"suggested_artist"===a.type?"person":"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"suggested_album"===a.type?"New album":"suggested_artist"===a.type?"New artist":"New track"})})]}),(0,N.jsx)(v.A,{user:a.creator,className:"margin-top-12"})]})]}),(0,N.jsxs)("div",{className:(A?"flex-column align-stretch":"flex-row align-top")+" margin-left-24",children:[(0,N.jsxs)("div",{className:"flex-column "+(A?"":"margin-right-16"),children:[(0,N.jsx)("p",{className:"highDarkGrey text-right",children:x()(a.created_at).format("DD MMM YYYY")}),(a.like_count>0||a.comment_count>0)&&(0,N.jsxs)("p",{className:"one-line highDarkGrey text-right margin-top-8",children:[a.like_count>0?`${a.like_count} ${1===a.like_count?"upvote":"upvotes"}`:"",a.like_count>0&&a.comment_count>0?", ":"",a.comment_count>0?`${a.comment_count} ${1===a.comment_count?"comment":"comments"}`:""]})]}),(0,N.jsxs)("div",{className:`flex-row ${l} ${a.checked?a.accepted?n:d:""} ${A?"margin-top-8":"margin-left-4"}`,children:[!a.checked&&(0,N.jsx)(j.A,{icon:"access-time",size:16,color:"var(--black)"}),a.checked&&a.accepted&&(0,N.jsx)(j.A,{icon:"check-circle-light",size:16,color:"var(--green)",tintImages:!0}),a.checked&&!a.accepted&&(0,N.jsx)(j.A,{icon:"remove-circle",size:16,color:"var(--red)",tintImages:!0}),(0,N.jsx)("h6",{className:"margin-left-8",style:{marginRight:"3px",color:a.checked?a.accepted?"var(--green)":"var(--red)":"var(--black)"},children:a.checked?a.accepted?"Accepted":"Declined":"Pending"})]})]})]})})}):(0,N.jsx)(m.N_,{to:"suggested_album"===a.type?`/contribution/album/${a.id}?r=${o?"album":"user"}`:"suggested_artist"===a.type?`/contribution/artist/${a.id}?r=${o?"artist":"user"}`:"suggested_track"===a.type&&a.suggested_album?`/contribution/album/${a.suggested_album.id}?r=${o?"track":"user"}`:null,children:(0,N.jsx)("div",{className:`padding-around-8 ${s}`,children:(0,N.jsxs)("div",{className:"flex-row",children:[o&&(0,N.jsxs)("div",{className:"col-1 flex-row",children:[(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.creator.is_pro&&1===a.creator.tier&&null!==(c=a.creator.profile_picture)&&void 0!==c&&c.includes(".gif")?a.creator.profile_picture:a.creator.profile_picture_small||a.creator.profile_picture,size:60,altText:a.creator.username}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15},children:["By ",a.creator.username,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"suggested_album"===a.type?"album":"suggested_artist"===a.type?"person":"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"suggested_album"===a.type?"New album":"suggested_artist"===a.type?"New artist":"New track"})})]})]})]}),!o&&(0,N.jsxs)("div",{className:"col-1 flex-row",children:["suggested_album"===a.type&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.cover?a.cover:a.cover_url,size:60,altText:a.title}),"suggested_track"===a.type&&(0,N.jsx)(f.A,{clickable:!0,albumCover:a.album?a.cover:a.suggested_album?a.cover?a.cover:a.cover_url:null,size:60,altText:a.title}),"suggested_artist"===a.type&&(0,N.jsx)(b.A,{clickable:!0,profilePicture:a.picture?a.picture:a.picture_url,size:60,altText:a.name}),(0,N.jsxs)("div",{className:"col-1 grid margin-left-16",children:[(0,N.jsxs)("p",{className:"one-line bold black",style:{fontSize:15},children:["suggested_artist"===a.type?a.name:a.title,(0,N.jsxs)("span",{className:"highDarkGrey regular",children:[" #",a.id]})]}),(0,N.jsxs)("div",{className:"flex-row margin-top-8",children:[(0,N.jsx)(j.A,{icon:"suggested_album"===a.type?"album":"suggested_artist"===a.type?"person":"music-note",size:16,color:"var(--highDarkGrey)"}),(0,N.jsx)("div",{className:"grid margin-left-8",children:(0,N.jsx)("p",{className:"one-line highDarkGrey",children:"suggested_album"===a.type?"New album":"suggested_artist"===a.type?"New artist":"New track"})})]})]})]}),(0,N.jsxs)("div",{className:(A?"flex-column align-stretch":"flex-row")+" margin-left-24",children:[(0,N.jsxs)("div",{className:"flex-column "+(A?"":"margin-right-16"),children:[(0,N.jsx)("p",{className:"highDarkGrey text-right",children:x()(a.created_at).format("DD MMM YYYY")}),(a.like_count>0||a.comment_count>0)&&(0,N.jsxs)("p",{className:"one-line highDarkGrey text-right margin-top-8",children:[a.like_count>0?`${a.like_count} ${1===a.like_count?"upvote":"upvotes"}`:"",a.like_count>0&&a.comment_count>0?", ":"",a.comment_count>0?`${a.comment_count} ${1===a.comment_count?"comment":"comments"}`:""]})]}),(0,N.jsxs)("div",{className:`flex-row ${l} ${a.checked?a.accepted?n:d:""} ${A?"margin-top-8":"margin-left-4"}`,children:[!a.checked&&(0,N.jsx)(j.A,{icon:"access-time",size:16,color:"var(--black)"}),a.checked&&a.accepted&&(0,N.jsx)(j.A,{icon:"check-circle-light",size:16,color:"var(--green)",tintImages:!0}),a.checked&&!a.accepted&&(0,N.jsx)(j.A,{icon:"remove-circle",size:16,color:"var(--red)",tintImages:!0}),(0,N.jsx)("h6",{className:"margin-left-8",style:{marginRight:"3px",color:a.checked?a.accepted?"var(--green)":"var(--red)":"var(--black)"},children:a.checked?a.accepted?"Accepted":"Declined":"Pending"})]})]})]})})})}const D=o.memo(y)}}]); 2//# sourceMappingURL=182.e3b4ee17.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.