1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6261],{55153:e=>{e.exports={title:"DistributorAlbumDetails_title__K1xH2",rejectReason:"DistributorAlbumDetails_rejectReason__NN6Er"}},73555:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/distributor",function(){return s(78973)}])},78973:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>V});var a=s(80263),l=s(61528),r=s(13463),i=s(53239),n=s(50005),d=s(42173),o=s(54923),c=s(7060),u=s(59486),_=s(95041),m=s(45740),x=s(40516),h=s(97930),v=s(92839),j=s(91840),p=s(93611),b=s(62546),g=s(78852),C=s(55132),f=s(89654),S=s(74488),w=s(41030),k=s(66938),y=s(70719),P=s(93349),N=s(93107),D=s(65963),R=s(85666),A=s.n(R),E=s(79721),H=s(77148),I=s(45208),z=s(10330),F=s(55153),T=s.n(F);let L=e=>{let t,{album:s}=e,l="live"===s.state||"scheduled"===s.state?(0,a.jsx)(P.W,{href:(0,y.FD)(s),stopPropagation:!0,target:"_blank",children:s.title}):s.title,r=s.artists?.length?s.artists.map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[t>0&&", ",(0,a.jsx)(P.W,{href:(0,y.vd)(e),stopPropagation:!0,target:"_blank",children:e.name})]},e.id)):void 0,n=s.recordlabel?(0,a.jsx)(P.W,{href:(0,y.vd)(s.recordlabel),stopPropagation:!0,target:"_blank",children:s.recordlabel.name}):void 0,d=null!=s.custom_price?(0,a.jsxs)(a.Fragment,{children:[(0,H.vv)(s.custom_price)," ",(0,a.jsx)("em",{children:"(custom)"})]}):(0,H.vv)(s.price),o=[s.cline_year,s.cline_text].filter(z.vN).join(" ")||void 0,c=[s.pline_year,s.pline_text].filter(z.vN).join(" ")||void 0,u=s.exclusive?s.exclusive_end_at?`until ${(0,N.ik)(s.exclusive_end_at)}`:"Permanent":void 0;return(0,a.jsxs)(h.xA,{columns:"120px 1fr",horizontalSpacing:2,children:[(0,a.jsx)(E.b,{imageUuid:s.artwork_uuid??void 0,size:120,title:s.title??"",type:"album"}),(0,a.jsxs)(h.xA,{verticalSpacing:1,children:[(0,a.jsx)("div",{className:T().title,children:l}),(0,a.jsxs)("div",{children:[(0,a.jsx)(I.m,{label:s.artists?.length>1?"Artists":"Artist",value:r}),(0,a.jsx)(I.m,{label:"Label",value:n}),(0,a.jsx)(I.m,{label:"Catalog #",value:s.catalog_number}),(0,a.jsx)(I.m,{label:"UPC/EAN",value:s.icpn}),(0,a.jsx)(I.m,{label:"Release date",value:(0,N.ik)(s.release_start_at??void 0)}),(0,a.jsx)(I.m,{label:"Original release date",value:(t=s.original_release_date)?t.slice(0,10):void 0}),s.preorder_start_at&&(0,a.jsx)(I.m,{label:"Preorder start",value:(0,N.ik)(s.preorder_start_at)}),u&&(0,a.jsx)(I.m,{label:"Exclusive",value:u}),(0,a.jsx)(I.m,{label:"Price",value:d}),(0,a.jsx)(I.m,{label:"\xa9 Copyright",value:o}),(0,a.jsx)(I.m,{label:"â Phonogram",value:c}),(0,a.jsx)(I.m,{label:"Added",value:(0,N.ik)(s.created_at)}),s.reject_reason&&(0,a.jsx)(I.m,{label:"Rejection reason",value:(0,a.jsx)("span",{className:T().rejectReason,children:s.reject_reason})})]})]})]})},B=[50,250,500,1e3],K=()=>{let{urls:e}=(0,f.gf)(),{locale:t,t:s}=(0,r.c3)(),[l,n]=(0,i.useState)(""),[d,o]=(0,i.useState)(B[0]),[c,u]=(0,i.useState)(0),[R,E]=(0,i.useState)({accessor:"release_start_at",direction:"desc"}),[H,I]=(0,i.useState)(),z=(0,i.useMemo)(()=>R?`${"desc"===R.direction?"-":""}${R.accessor}`:void 0,[R]),F=(0,w.ly)({distributorId:H,search:l,sortBy:z,pageIndex:c,pageSize:d},void 0!==H),[T,K]=(0,i.useState)(),M=(0,i.useCallback)(e=>{I(e),u(0)},[]),V=(0,i.useMemo)(()=>[{accessor:"id",canSort:!0,width:"70px",renderCell:e=>{let{row:t}=e;return t.id},renderHeading:()=>s("ID")},{accessor:"title",canSort:!0,width:"*",renderCell:e=>{let{row:t}=e;return"live"===t.state||"scheduled"===t.state?(0,a.jsx)(P.W,{href:(0,y.FD)(t),stopPropagation:!0,target:"_blank",children:t.title}):t.title},renderHeading:()=>s("Title")},{accessor:"icpn",width:"*",renderCell:e=>{let{row:t}=e;return t.icpn},renderHeading:()=>s("ICPN")},{accessor:"recordlabel",width:"*",renderCell:e=>{let{row:t}=e;return t.recordlabel?.name},renderHeading:()=>s("Label")},{accessor:"state",width:"*",renderCell:e=>{let{row:t}=e;return(0,a.jsxs)("span",{className:A()[`status--${t.state}`],children:[(0,a.jsx)("span",{className:A().circle}),(0,a.jsx)("span",{children:"cancelled"===t.state?s("Cancelled","release delivery status"):"complete"===t.state?s("Complete","release delivery status"):"incomplete"===t.state?s("Incomplete","release delivery status"):"scheduled"===t.state?s("Scheduled","release delivery status"):"live"===t.state?s("Live","release delivery status"):"rejected"===t.state?s("Rejected","release delivery status"):"removed"===t.state?s("Removed","release delivery status"):"submitted"===t.state?s("Awaiting curation","release delivery status"):"unpublished"===t.state?s("Taken down","release delivery status"):(0,D.ZH)(t.state)})]})},renderHeading:()=>s("State")},{accessor:"created_at",canSort:!0,defaultSortDirection:"desc",width:"*",renderCell:e=>{let{row:s}=e;return(0,N.ik)(s.created_at,{locale:t})},renderHeading:()=>s("Creation date")},{accessor:"release_start_at",canSort:!0,defaultSortDirection:"desc",width:"*",renderCell:e=>{let{row:s}=e;return(0,N.ik)(s.release_start_at??void 0,{locale:t})},renderHeading:()=>s("Release date")}],[s]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.xA,{verticalSpacing:1,children:[(0,a.jsx)(S.C,{value:H,onChange:M}),(0,a.jsxs)(h.xA,{columns:"50px auto",horizontalSpacing:1,children:[(0,a.jsx)(j.K,{iconComponent:v.i8u,muted:!0,size:"small",title:s("Export to CSV"),onClick:()=>{window.location.assign(e.getDistributorAlbumsCsvUrl((0,k.CY)({distributorId:H,search:l,sortBy:z})))}}),(0,a.jsx)(b.E,{controlledWhenFocused:!0,initialValue:l,placeholder:s("Search in albums"),onSearch:n})]})]}),(0,a.jsx)(g.K,{mt:1}),F.data?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.bQ,{columns:V,data:F.data.items,defaultSortBy:R,isLoading:F.isFetching,renderRow:(e,t)=>(0,a.jsx)(m.wI,{columns:V,row:e,rowId:t,onClick:()=>K(T!==t?t:void 0),children:(0,a.jsx)(_.m,{expanded:T===t,children:(0,a.jsx)(g.K,{mb:4,ml:5.5,mr:2,mt:2,children:(0,a.jsx)(L,{album:e})})})},t),onSortByChange:E}),(0,a.jsx)(g.K,{mt:2}),(0,a.jsx)(p.l,{index:c,rowsTotalCount:F?.data.count,size:d,sizes:B,onChangeIndex:e=>{u(e),(0,C.eG)()},onChangeSize:e=>{u(0),o(e)}})]}):(0,a.jsx)(x.n,{})]})},M=()=>{let{t:e}=(0,r.c3)(),t=(0,o.UV)(e),s=e("Releases"),c=(0,i.useMemo)(()=>({title:s}),[s]),_=(0,i.useMemo)(()=>[t.Root,t.UserProfile,t.DistributorDashboard,{text:s}],[t,s]);return(0,a.jsxs)(u.u,{topLine:(0,a.jsx)(n.I,{pageName:"distributorDashboard",values:_}),children:[(0,a.jsx)(d.t,{fields:c,microdata:(0,l.Oq)(_),pageName:"distributorDashboard"}),(0,a.jsx)(K,{})]})};M.getConfig=()=>({isAuthenticationRequired:!0}),M.renderInLayout=c.P;let V=M},85666:e=>
1{e.exports={circle:"columns_circle__6n5kj","status--draft":"columns_status--draft__pEgMZ","status--pending":"columns_status--pending__TOLGT","status--unmoderated":"columns_status--unmoderated__Xt_iG","status--incomplete":"columns_status--incomplete___7foc","status--cancelled":"columns_status--cancelled__cM761","status--unpublished":"columns_status--unpublished__zFKoG","status--rejected":"columns_status--rejected__iVoHC","status--removed":"columns_status--removed__mY6PH","status--verified":"columns_status--verified__PVzP6","status--complete":"columns_status--complete__26j1T","status--scheduled":"columns_status--scheduled__Cx69R","status--submitted":"columns_status--submitted__9d7JF","status--live":"columns_status--live___kzs_","status--unsubmitted":"columns_status--unsubmitted__sDePk",contextButton:"columns_contextButton__Rx7Vg",icon:"columns_icon__Wx2If"}}},e=>{e.O(0,[4001,7236,8288,5720,7874,4802,5599,7095,1488,5740,451,636,6593,8792],()=>e(e.s=73555)),_N_E=e.O()}]);
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.