1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3763],{97:e=>{e.exports={filename:"MyAlbumTrackForm_filename__Bvjtv",suggestedPrice:"MyAlbumTrackForm_suggestedPrice__RJ8ci",fillPriceToAllTracksButton:"MyAlbumTrackForm_fillPriceToAllTracksButton__UxtnC",errorAnimate:"MyAlbumTrackForm_errorAnimate__VZU0X",springy:"MyAlbumTrackForm_springy__8YKVd",trackContainer:"MyAlbumTrackForm_trackContainer__zQOEV",content:"MyAlbumTrackForm_content__4LM_M",verticalSpringy:"MyAlbumTrackForm_verticalSpringy__FmiRz",pulse:"MyAlbumTrackForm_pulse__0U7TG",progress:"MyAlbumTrackForm_progress__bb0se"}},234:e=>{e.exports={message:"ArtistStartsWithDigitWarningMessage_message__YUBdu"}},2673:e=>{e.exports={scroller:"edgeToEdgeScroller_scroller__a4IK_",train:"edgeToEdgeScroller_train__3Q400"}},10289:e=>{e.exports={root:"AppBreadcrumbs_root__tkjnc"}},10712:e=>{e.exports={label:"Property_label__kUAoo",value:"Property_value__Zy5gY"}},11715:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/content-provider/[contributorType]/[myContributorId]/albums/[albumId]/[tabId]",function(){return a(48789)}])},20650:(e,t,a)=>{"use strict";a.d(t,{z:()=>n});var s=a(80263),r=a(3638);a(53239);var i=a(76676),l=a.n(i);let n=e=>{let{className:t,color:a,max:i=100,value:n=0}=e;return(0,s.jsxs)("div",{className:(0,r.A)(l().root,t),children:[(0,s.jsx)("div",{className:l().track,style:{backgroundColor:a,width:`${Math.min(n/i*100,100)}%`}}),(0,s.jsx)("div",{className:l().rail})]})}},21366:e=>{e.exports={message:"UpperCaseWarningMessage_message__yL0mU"}},22978:e=>{e.exports={tracksViewport:"TracksSection_tracksViewport__OfsaJ"}},24946:(e,t,a)=>{"use strict";a.d(t,{Q:()=>o});var s=a(80263),r=a(85838),i=a(22269),l=a(76923),n=a(53239);let o=e=>{let{decimalsLength:t=0,value:a,onChange:o,...c}=e,u=(0,n.useCallback)(e=>{let t=(0,l.$J)(e.target.value||void 0);o?.(e,t??null)},[o]);return(0,s.jsx)(i.k,{value:(0,r.o)(a,{decimalsLength:t})??"",onChange:u,...c})}},25141:e=>{e.exports={root:"ImageEditor_root___atxq",image:"ImageEditor_image__a080e","image--empty":"ImageEditor_image--empty__1Kw8C",dropZone:"ImageEditor_dropZone__4eqDN",active:"ImageEditor_active__NoIzY","dropZone--circle":"ImageEditor_dropZone--circle__x2MeL","dropZone--rounded":"ImageEditor_dropZone--rounded__I6ZMQ",labelRow:"ImageEditor_labelRow__97Awb",label:"ImageEditor_label__D9FhJ",asterisk:"ImageEditor_asterisk__h_mkR",labelOption:"ImageEditor_labelOption__IdACy",button:"ImageEditor_button__W4DFA"}},27127:e=>{e.exports={root:"SearchSelect_root__XxFvY"}},29396:e=>{e.exports={root:"WorkflowStep_root__8eruo","root--selected":"WorkflowStep_root--selected__OwW4f","root--disabled":"WorkflowStep_root--disabled__Lq_jC",badge:"WorkflowStep_badge__JSltw","badge--selected":"WorkflowStep_badge--selected__GlQG_","badge--done":"WorkflowStep_badge--done__vw_2c",title:"WorkflowStep_title__QzOF5"}},30742:e=>{e.exports={singleline:"UploadedFile_singleline__vrdLB",multiline:"UploadedFile_multiline__HYWlQ",size:"UploadedFile_size__kwF4h",filename:"UploadedFile_filename__fRWdX",incomplete:"UploadedFile_incomplete__hb_ej",complete:"UploadedFile_complete__1CUv2"}},36246:e=>{e.exports={message:"HasArtistsWarningMessage_message__FjngA"}},36464:(e,t,a)=>{"use strict";a.d(t,{z:()=>d});var s=a(80263),r=a(92839),i=a(91840),l=a(13463),n=a(3638),o=a(53239),c=a(94860),u=a.n(c);let d=e=>{let{className:t,compact:a,disabled:c,handleClassName:d,indexElement:m,innerRef:p,size:h,...x}=e,{t:_}=(0,l.c3)(),g=(0,o.useCallback)(e=>{c||(document.body.style.cursor="grabbing",e.stopPropagation()),x.onMouseDown?.(e)},[c,x.onMouseDown]),b=(0,o.useCallback)(e=>{c||"grabbing"===document.body.style.cursor||(document.body.style.cursor="grab"),x.onMouseEnter?.(e)},[c,x.onMouseEnter]),v=(0,o.useCallback)(e=>{c||"grab"!==document.body.style.cursor||(document.body.style.cursor=""),x.onMouseLeave?.(e)},[c,x.onMouseLeave]),f=(0,o.useCallback)(e=>{c||(document.body.style.cursor=""),x.onMouseUp?.(e)},[c,x.onMouseUp]);return(0,s.jsxs)("div",{className:(0,n.A)(t,u().root),...x,onMouseDown:g,onMouseEnter:b,onMouseLeave:v,onMouseUp:f,children:[(0,s.jsx)(i.K,{className:(0,n.A)(u().moveButton,d),disabled:c,iconComponent:a?r.ch2:r.fRW,innerRef:p,muted:!0,size:h??"small",title:_("Drag to reorder"),variant:"transparent"}),m]})};d.displayName="Thumb"},36706:e=>{e.exports={content:"AlbumSubmissionStatusesModalContent_content__nizn3",table:"AlbumSubmissionStatusesModalContent_table__u83Er",footer:"AlbumSubmissionStatusesModalContent_footer__fE6lI",button:"AlbumSubmissionStatusesModalContent_button__wRL__"}},36751:e=>{e.exports={root:"FormAutoSubmit_root__xz3u6",changesPending:"FormAutoSubmit_changesPending__zOur7",changesSaved:"FormAutoSubmit_changesSaved__N509N",changesFailed:"FormAutoSubmit_changesFailed__vh5Js",lastSavedAt:"FormAutoSubmit_lastSavedAt__1Ba_I"}},38292:e=>{e.exports={root:"FileUploadInput_root__YuKt_",dropZone:"FileUploadInput_dropZone__3gujf","dropZone--disabled":"FileUploadInput_dropZone--disabled__kNnWu"}},39990:(e,t,a)=>{"use strict";a.d(t,{U:()=>n});var s=a(80263),r=a(77148),i=a(62750),l=a(24946);a(53239);let n=e=>{let{value:t,postfix:a,currency:n="â¬",onChange:o,...c}=e;return(0,s.jsx)(l.Q,{decimalsLength:2,postfix:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.X,{children:n}),a]}),textAlign:"right",value:(0,r.ET)(t)??null,onChange:(e,t)=>
1{o?.(e,(0,r.vu)(t)??null)},...c})}},42173:(e,t,a)=>{"use strict";a.d(t,{t:()=>x});var s=a(80263),r=a(8650),i=a(61528),l=a(13463),n=a(65963),o=a(27518),c=a.n(o),u=a(61469),d=a(53239),m=a(13380),p=a(8259),h=a(18067);let x=e=>{let{baseCanonicalUrl:t,children:a,fields:o,microdata:x,noHreflang:_,noOtherLocales:g,pageName:b,robots:v}=e,{cookieData:f}=(0,m.iT)(),{defaultLocale:j,locale:y,supportedLocales:w}=(0,l.c3)(),{asPath:k}=(0,u.useRouter)(),C=g?void 0:w?.filter(e=>e!==y&&r.Y[e]&&!r.Y[e].uncrawlable),S=(0,h.Z)({fields:o,locale:y,pageName:b,path:k}),A=t&&y&&y!==j&&!_?`/${y}${t}`:t,N=(0,n.j)(A?.startsWith("/")?(0,p.MX)(A):A,"/"),I=y&&r.Y[y]?.uncrawlable?"none":v;return(0,d.useEffect)(()=>{f.hasDebugSet&&console.debug(["Canonical URL: %s","Metaplaceholders: %O","Microdata: %O","Page name: %s","Title: %s","H1: %s","Description: %s","Image: %s"].join(n.Dg),N,o,x,b,S.title,S.h1Title,S.metaTagValues.description,S.metaTagValues["og:image"])},[f.hasDebugSet,N,o,x,b,S.title,S.h1Title,S.metaTagValues.description,S.metaTagValues["og:image"]]),(0,s.jsxs)(c(),{children:[I&&(0,s.jsx)("meta",{content:I,name:"robots"}),(0,s.jsx)("title",{children:S.title}),Object.entries(S.metaTagValues).map((e,t)=>{let[a,r]=e;return r?(0,s.jsx)("meta",{content:r,name:a},t):null}),N&&(0,s.jsx)("link",{href:N,hrefLang:_?void 0:y,rel:"canonical"}),void 0===t||_?null:C?.map(e=>(0,s.jsx)("link",{href:(0,n.j)((0,p.MX)(e===j?t:`/${e}${t}`),"/"),hrefLang:e,rel:"alternate"},e)),void 0===t||_?null:(0,s.jsx)("link",{href:(0,n.j)((0,p.MX)(t),"/"),hrefLang:"x-default",rel:"alternate"}),x&&(0,s.jsx)(i.AZ,{data:x}),a]})}},45208:(e,t,a)=>{"use strict";a.d(t,{m:()=>c});var s=a(80263),r=a(97930),i=a(27129),l=a(3638);a(53239);var n=a(10712),o=a.n(n);let c=e=>{if("inline"===e.variant){let{label:t,value:a,valueStyle:r}=e;return(0,s.jsxs)("span",{children:[t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:o().label,children:[t,":"]})," "]}):null,(0,s.jsx)("span",{className:(0,l.A)(o().value,i.Yr),style:r,children:a||"-"})]})}if("two-line"===e.variant){let{label:t,value:a,valueStyle:n}=e;return(0,s.jsxs)(r.xA,{alignItems:"flex-start",verticalSpacing:.25,width:"unset",children:[(0,s.jsxs)("span",{className:o().label,children:[t,":"]}),(0,s.jsx)("span",{className:(0,l.A)(o().value,i.Yr),style:n,children:a||"-"})]})}let{label:t,labelWidth:a="120px",narrowColumns:n,value:c,valueStyle:u,valueWidth:d="1fr"}=e;return(0,s.jsxs)(r.NP,{alignItems:"flex-start",columns:`${a} ${d}`,horizontalSpacing:1,narrowColumns:n,verticalSpacing:.25,width:"unset",children:[(0,s.jsxs)("span",{className:o().label,children:[t,":"]}),(0,s.jsx)("span",{className:(0,l.A)(o().value,i.Yr),style:u,children:c||"-"})]})}},48624:e=>{e.exports={root:"ContextButton_root__hf0de","root--spacing-small":"ContextButton_root--spacing-small__KHRvL","root--small":"ContextButton_root--small__AZkeR","root--spacing-minimal":"ContextButton_root--spacing-minimal__PlHw_","root--minimal":"ContextButton_root--minimal__MWqxF","root--currentColor":"ContextButton_root--currentColor__ATpkI",iconOnly:"ContextButton_iconOnly__41oTY",icon:"ContextButton_icon___dgcl"}},48789:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>tY});var s=a(80263),r=a(76923),i=a(53239),l=a(41030),n=a(13162),o=a(34210),c=a(87801),u=a(23949),d=a(94386),m=a(136),p=a(65963);let h=i.memo(e=>{let{className:t,errors:a,messageType:r}=e;return a?.length?(0,s.jsx)(m.p,{className:t,type:r??"error",children:a.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:["⢠",(0,p.ZH)(e),(0,s.jsx)("br",{})]},t))}):null});h.displayName="ErrorsSummary";var x=a(97930),_=a(13463),g=a(46947),b=a(90244),v=a(86920),f=a(904),j=a(50016);let y=e=>{let{className:t}=e,{t:a}=(0,_.c3)(),{myAlbumId:r,getMyAlbum:l,createMyAlbum:n,updateMyAlbumArtwork:c,deleteMyAlbumArtwork:d}=(0,i.useContext)(u.q),m=!!l?.data&&o.ig.includes(l.data.state),p=(0,i.useCallback)(async e=>{let t=r??await n?.();if(void 0===t)throw Error("Cannot create an album");e?c?.mutate({file:e,albumId:t}):d?.mutate({albumId:t})},[r,n]);return(0,s.jsx)(f.v,{className:t,label:a("Album cover (jpg, jpeg, png, gif)"),required:!0,children:(0,s.jsx)(v.n,{loading:c?.isPending||d?.isPending,mimeType:"image/*",placeholder:(0,s.jsxs)(x.xA,{justifyItems:"center",children:[(0,s.jsx)(j.V,{component:"span",variant:"h3",children:a("Drop image here")}),(0,s.jsx)(j.V,{variant:"body1",children:a("or click to select a fileâ¦")})]}),readOnly:m,size:240,src:g.C.getImageUrl(l?.data?.artwork_uuid,{width:320}),title:a("Artwork for {title}",void 0,{title:(0,b.Ef)(a,l?.data?.title)}),onSelected:p})})};var w=a(44956),k=a(92839),C=a(31322),S=a(53202),A=a(7665),N=a(27129);let I=e=>{let{currentArtistButtonTitle:t,currentArtistId:a,myAlbumTracksArtistIds:r,...i}=e,{t:l}=(0,_.c3)(),n=()=>{r&&i.onChange?.([...new Set([...i.value??[],...r])])};return(0,s.jsx)(S.p,{allowExactValue:!0,canClear:!1,closeOnSelect:!0,getItemText:e=>(0,s.jsx)("span",{className:N.Yr,children:e?.name}
1),getItemValue:e=>e?.id,multiple:!0,renderPostfix:e=>(0,s.jsxs)(s.Fragment,{children:[void 0!==a&&!i.value?.includes(a)&&(0,s.jsx)(C.n,{iconComponent:k.neq,title:t??l("Add Myself"),onClick:()=>{a&&!i.value?.includes(a)&&i.onChange?.([...i.value??[],a])}}),r&&!r.every(e=>i.value?.includes(e))&&(0,s.jsx)(C.n,{iconComponent:k.CAy,title:l("Add tracks' artists"),onClick:n}),(0,s.jsx)(A.zT,{open:e})]}),searchInvitation:l("Start typing an artist name to see results"),showCheckboxes:!1,...i})};var F=a(234),P=a.n(F);let L=e=>{let{artists:t}=e,{t:a}=(0,_.c3)(),[r,l]=(0,i.useState)(!1),n=t.some(e=>!isNaN(Number(e.name[0]))),{createUiEvent:o}=(0,i.useContext)(u.q);return(0,i.useEffect)(()=>{n&&o?.("artist_starts_with_digit_warning_message_shown")},[n]),n&&!r?(0,s.jsx)(m.p,{className:P().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[a("The name of some artists begins with a number. You don't need to number the artists, the tracks will be numbered automatically"),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{l(!0),o?.("artist_starts_with_digit_warning_message_ignored")},children:a("Ignore")})]})}):null};var T=a(36246),z=a.n(T);let M=/\w/,E=e=>{let{artists:t,title:a}=e,{t:r}=(0,_.c3)(),[l,n]=(0,i.useState)(!1),o=!!a&&!!t&&t.some(e=>{let t=a.toLowerCase().indexOf(e.name.toLowerCase());return t>-1&&!M.test(a[t-1]??"")&&!M.test(a[t+e.name.length]??"")}),{createUiEvent:c}=(0,i.useContext)(u.q);return(0,i.useEffect)(()=>{o&&c?.("title_has_artists_warning_message_shown")},[o]),o&&!l?(0,s.jsx)(m.p,{className:z().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[r("The title contains the name of the artist. You don't need to add the artist's name to the title, it will be added automatically"),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{n(!0),c?.("title_has_artists_warning_message_ignored")},children:r("Ignore")})]})}):null};var B=a(62638),O=a.n(B);let V=e=>{let{title:t,titleType:a,onFix:r}=e,{t:l}=(0,_.c3)(),[n,o]=(0,i.useState)(!1),{createUiEvent:c}=(0,i.useContext)(u.q),p=/(\[|\()[^\[\()]*(mix|version|edit|master)[^\]\)]*(\]|\))/gi,h=/(?=.{7,}$)(\[|\()[^\[\()]*\d[^\]\)]*(\]|\))/g,g=t&&"track"===a&&!!p.exec(t),b=t&&"album"===a&&!!h.exec(t),v="track"===a?g:b,f="track"===a?t?.replace(p,"").replace(/\s+/g," ").trim():t?.replace(h,"").replace(/\s+/g," ").trim(),j=("track"===a?p.exec(t??"")?.[0]:h.exec(t??"")?.[0])?.slice(1,-1);return(0,i.useEffect)(()=>{g&&c?.("has_mix_version_in_title_warning_message_shown")},[g]),(0,i.useEffect)(()=>{b&&c?.("has_catalog_number_in_title_warning_message_shown")},[b]),v&&!n?(0,s.jsx)(m.p,{className:O().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[l("album"===a?"Looks like the album title includes a catalog number. Move it to the appropriate field?":"Looks like the track title includes a mix version number. Move it to the appropriate field?"),(0,s.jsxs)(x.xA,{columns:"1fr 1fr",horizontalSpacing:1,children:[(0,s.jsx)(d.$,{size:"small",onClick:()=>{r(f,j),g?c?.("has_mix_version_in_title_warning_message_fixed"):c?.("has_catalog_number_in_title_warning_message_fixed")},children:l("Fix")}),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{o(!0),g?c?.("has_mix_version_in_title_warning_message_ignored"):c?.("has_catalog_number_in_title_warning_message_ignored")},children:l("Ignore")})]})]})}):null};var D=a(66608),R=a.n(D);let U=e=>{let{words:t}=e,{t:a}=(0,_.c3)(),[r,l]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),c=t?.some(e=>"Volumo"===e),p=t?.some(e=>"Exclusive"===e),{createUiEvent:h}=(0,i.useContext)(u.q);return(0,i.useEffect)(()=>{c&&h?.("volumo_in_title_warning_message_shown")},[c]),(0,i.useEffect)(()=>{p&&h?.("exclusive_in_title_warning_message_shown")},[p]),(0,s.jsxs)(x.xA,{verticalSpacing:1,children:[c&&!r&&(0,s.jsx)(m.p,{className:R().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[a("Using âVolumoâ in titles may lead to irrelevant search results."),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{l(!0),h?.("volumo_in_title_warning_message_ignored")},children:a("Ignore")})]})}),p&&!n&&(0,s.jsx)(m.p,{className:R().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[(0,s.jsx)("span",{children:a("If you want to publish your release exclusively - please go to the {album} and fill the {exclusive} field. Using âExclusiveâ in titles may lead to irrelevant search results.",void 0,{album:(0,s.jsx)("b",{children:a("Album info")}),exclusive:(0,s.jsx)("b",{children:a("Volumo exclusive end date")})})}),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{o(!0),h?.("exclusive_in_title_warning_message_ignored")},children:a("Ignore")})]})})]})};var W=a(57418),K=a.n(W);let q=e=>{let{title:t,onFix:a}=e,{t:r}=(0,_.c3)(),[l,n]=(0,i.useState)(!1),o=t&&!isNaN(Number(t[0]))&&" "!==t[0],{createUiEvent:c}=(0,i.useContext)(u.q);return(0,i.useEffect)(()=>{o&&c?.("title_starts_with_digit_warning_message_shown")},[o]),o&&!l?(0,s.jsx)(m.p,{className:K().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[r("You do not need to number the tracks within the title, they are numbered automatically"),(0,s.jsxs)(x.xA,{columns:"1fr 1fr",horizontalSpacing:1,children:[(0,s.jsx)(d.$,{size:"small",onClick:()=>{a((()=>
1{if(t){let e=0;for(let a=0;a<t.length;a++)if(isNaN(Number(t[a])))break;else e+=1;return t.slice(e)}})()),c?.("title_starts_with_digit_warning_message_fixed")},children:r("Fix")}),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{n(!0),c?.("title_starts_with_digit_warning_message_ignored")},children:r("Ignore")})]})]})}):null};var $=a(21366),Z=a.n($);let Y=e=>{let{title:t,onFix:a}=e,{t:r}=(0,_.c3)(),[l,n]=(0,i.useState)(!1),{createUiEvent:o}=(0,i.useContext)(u.q),c=t&&t===t.toUpperCase()&&t!==(0,p.ZH)(t.toLowerCase());return(0,i.useEffect)(()=>{c&&o?.("title_in_upper_case_warning_message_shown")},[c]),c&&t.length>4&&!l?(0,s.jsx)(m.p,{className:Z().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[r("It seems that the title is written in capital letters, will you fix this error?"),(0,s.jsxs)(x.xA,{columns:"1fr 1fr",horizontalSpacing:1,children:[(0,s.jsx)(d.$,{size:"small",onClick:()=>{a((0,p.ZH)(t?.toLowerCase())),o?.("title_in_upper_case_warning_message_fixed")},children:r("Fix")}),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{n(!0),o?.("title_in_upper_case_warning_message_ignored")},children:r("Ignore")})]})]})}):null};var H=a(69966),J=a.n(H);let Q=/(\s+\))/i,X=/(\(\s+)/i,G=/(\s+\])/i,ee=/(\[\s+)/i,et=e=>{let{title:t,onFix:a}=e,{t:r}=(0,_.c3)(),[l,n]=(0,i.useState)(!1),{createUiEvent:o}=(0,i.useContext)(u.q),c=t&&(!!Q.exec(t)||!!X.exec(t)||!!G.exec(t)||!!ee.exec(t));return(0,i.useEffect)(()=>{c&&o?.("has_extra_spaces_inside_brackets_in_title_warning_message_shown")},[c]),c&&!l?(0,s.jsx)(m.p,{className:J().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[r("It seems that the title includes unneeded spaces inside brackets. Remove them?"),(0,s.jsxs)(x.xA,{columns:"1fr 1fr",horizontalSpacing:1,children:[(0,s.jsx)(d.$,{size:"small",onClick:()=>{a(t?.replace(Q,")").replace(X,"(").replace(G,"]").replace(ee,"[")),o?.("has_extra_spaces_inside_brackets_in_title_fixed")},children:r("Fix")}),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{n(!0),o?.("has_extra_spaces_inside_brackets_in_title_ignored")},children:r("Ignore")})]})]})}):null};var ea=a(78852),es=a(6750),er=a(58544),ei=a.n(er);let el=e=>{let{releaseStartAtDate:t}=e,{t:a}=(0,_.c3)(),[r,l]=(0,i.useState)(!1),{getMyAlbums:n,createUiEvent:o}=(0,i.useContext)(u.q),c=(n?.data?.items.filter(e=>t&&(0,es.Yq)(e.release_start_at??void 0)===(0,es.Yq)(t??void 0))??[]).length>2;return(0,i.useEffect)(()=>{c&&o?.("has_more_than_2_my_albums_with_same_publish_date_warning_message_shown")},[c]),c&&!r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.K,{mt:4}),(0,s.jsx)(m.p,{className:ei().message,type:"warning",children:(0,s.jsxs)(x.NP,{alignItems:"center",columns:"1fr auto",horizontalSpacing:1,verticalSpacing:1,children:[a("You have other releases scheduled for the same date. Please consider spreading your release date across different days for better exposure."),(0,s.jsx)(d.$,{muted:!0,size:"small",onClick:()=>{l(!0),o?.("has_more_than_2_my_albums_with_same_publish_date_warning_message_ignored")},children:a("Ignore")})]})})]}):null};var en=a(96776),eo=a(2630),ec=a(40377),eu=a(84001),ed=a(36751),em=a.n(ed);let ep=e=>{let{debounceTimeout:t=300,hideDraftMessages:a,onBeforeSubmit:r,onAfterSubmitDebounced:l}=e,{t:n}=(0,_.c3)(),o=(0,eu.j7)(),[c,u]=(0,i.useState)(o.values),[d,m]=(0,i.useState)(),p=(0,i.useRef)(o.values);p.current=o.values;let h=(0,i.useCallback)((0,eo.sg)(async()=>{let e=p.current;try{await o.submitForm()}catch{return{outcome:"rejected",values:e}}return await l?.(),{outcome:"saved",values:e}},t),[t]);return((0,en.I)(()=>{(async()=>{if(o.isSubmitting||(0,ec.bN)(c,o.values)||(0,ec.bN)(d,o.values))return;await r?.();let e=await h();e?.outcome==="saved"&&(u(e.values),m(void 0)),e?.outcome==="rejected"&&m(e.values)})()},[o.isSubmitting,o.values,c,d]),a)?null:(0,s.jsx)(x.xA,{className:em().root,justifyItems:"flex-end",rows:"auto auto",children:(0,ec.bN)(c,o.values)?(0,s.jsx)("span",{className:em().changesSaved,children:n("Draft saved")}):(0,ec.bN)(d,o.values)?(0,s.jsx)("span",{className:em().changesFailed,children:n("Not saved")}):(0,s.jsx)("span",{className:em().changesPending,children:n("Changes are pending")})})};var eh=a(77148);let ex=e=>{let t=e.normalize("NFKC"),a=t.replace(/\D/g,"").slice(0,4);return t?a?a.length<4?void 0:Number(a):void 0:null};var e_=a(22546),eg=a(33698),eb=a(67445),ev=a(64011),ef=a(33894),ej=a(39990),ey=a(94002),ew=a(62598),ek=a(78738),eC=a(22269),eS=a(1985),eA=a(93349),eN=a(43103);let eI=e=>({volumo:e("Standard Volumo price"),custom:e("Custom"),free:e("Free"),albumOnly:e("Album-only")});var eF=a(73323),eP=a.n(eF);let eL=e=>{let{blocked:t,onMutating:a}=e,{locale:r,t:l}=(0,_.c3)(),{createMyAlbum:n,getMyAlbum:c,getMyContributor:d,createContributor:m,getArtistById:p,searchContributors:h,updateMyAlbum:g}=(0,i.useContext)(u.q),b=c?.data,[v,f]=(0,i.useState)(void 0),y=!!b&&o.ig.includes(b.state),k=(0,i.useMemo)(()=>b?(0,eN.NS)(b):{},[b]);return(0,s.jsx)(eS.p,{data:d?.data,isBlocking:t||c?.isFetching,isLoading:c?.isFetching||d?.isFetching||g?.isPending||t,children:(0,s.jsx)(eu.l1,{initialValues:k,onSubmit:async e=>{a?.(!0);try{b?.id!==void 0?await g?.mutateAsync({id:b.id,payload:e}):await n?.(e)}finally{a?.(!1)}},children:e=>{let{handleBlur:t,handleChange:i,setFieldValue:n,errors:o,touched:c,values:u}=e,_=(0,ev.iE)(g?.error),k=!!b?.tracks.length,C=!!b?.tracks.length&&b.tracks.every(e=>0===e.custom_price),S=async e=>{if(e&&e>w.tT){ef.vF.error(l("Price is too high. It must not exceed {maxPrice}",void 0,{maxPrice:(0,eh.vv)(w.tT)})),n("custom_price",b?.custom_price);return}if(e&&e<w.R2){ef.vF.error(l("Price is too low. It must be at least {minPrice} or completely free",void 0,{minPrice:(0,eh.vv)(w.R2)})),n("custom_price",b?.custom_price);return}k&&C&&0!==e?await (0,eg.db)({content:l("All tracks in this album are free. Do you want to set all tracks to default price?")})&&n("custom_price",e??null):k&&!C&&0===e?await (0,eg.db)({content:l("This album already has non-free tracks. Do you want to make all tracks in this album free?")})&&n("custom_price",e??null):n("custom_price",e??null)},N=async e=>!!b?.exclusive||!e||await (0,eg.db)({content:l("Note that Volumo has a stricter notion of exclusivity than some other music stores. We consider an album to be exclusive if none of its tracks are available for downloading or non-preview streaming anywhere else except Volumo during the exclusivity period. We carefully monitor actual adherence to our exclusivity conditions."),variant:"ordinary"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:eP().mainInformationBlock,children:[(0,s.jsxs)(x.NP,{columns:"1fr auto",children:[(0,s.jsx)(j.V,{variant:"h1",children:l("Main information")}),(0,s.jsx)(ep,{onBeforeSubmit:()=>a?.(!0)})]}),(0,s.jsx)(ea.K,{mt:1}),(0,s.jsxs)(x.f6,{columns:"1fr",children:[(0,s.jsx)(I,{error:c.artists_ids&&(o.artists_ids||_?.artists_ids),label:l("Artists"),myAlbumTracksArtistIds:b?.tracks.reduce((e,t)=>
1[...new Set([...e,...t.artists.map(e=>e.id),...t.featured_artists.map(e=>e.id),...t.remixers.map(e=>e.id)])],[]),name:"artists_ids",placeholder:l("Artists who composed the album"),readOnly:y,required:!0,value:u.artists_ids,onBlur:t,onChange:e=>n("artists_ids",e??[]),onCreateExactItem:e=>m?.("artist",e),onLoadItem:e=>b?.artists.find(t=>t.id===e)??p?.(e),onLoadItems:e=>h("artist",e)}),(0,s.jsx)(L,{artists:b?.artists??[]}),(0,s.jsxs)(x.f6,{children:[(0,s.jsx)(eC.k,{error:c.title&&(o.title||_?.title),label:l("Album title"),name:"title",readOnly:y,required:!0,value:u.title??"",onBlur:t,onChange:e=>{var t;t=e.target.value,f(["Volumo","Exclusive"].filter(e=>t.toLowerCase().includes(e.toLowerCase()))),i(e)}}),d?.data?.contributor_type==="recordlabel"?(0,s.jsx)(eC.k,{label:l("Record label"),readOnly:!0,value:d.data.name}):null]}),(0,s.jsx)(Y,{title:u.title??"",onFix:e=>n("title",e)}),(0,s.jsx)(V,{title:u.title??"",titleType:"album",onFix:(e,t)=>{n("title",e),n("catalog_number",t)}}),(0,s.jsx)(et,{title:u.title??"",onFix:e=>n("title",e)}),(0,s.jsx)(E,{artists:b?.artists,title:u.title??""}),(0,s.jsx)(U,{words:v})]}),(0,s.jsx)(ea.K,{mt:2}),(0,s.jsx)(eb.c,{}),(0,s.jsx)(ea.K,{mt:1}),(0,s.jsx)(j.V,{variant:"h1",children:l("Pricing & Release")}),(0,s.jsx)(ea.K,{mt:1.5}),(0,s.jsxs)(x.f6,{children:[(0,s.jsxs)(ew.l,{label:l("Price type"),renderValue:e=>eI(l)[e],required:!0,value:0===u.custom_price?"free":null===u.custom_price?"volumo":"custom",onChange:e=>{let t="free"===e,a="volumo"===e,s=b?.regular_price??w.R2;S(t?0:a?null:s),(t||a)&&n("custom_exclusive_price",null)},children:[(0,s.jsx)(A.eb,{value:"volumo"}),(0,s.jsx)(A.eb,{value:"custom"}),(0,s.jsx)(A.eb,{value:"free"})]}),(0,s.jsx)(ej.U,{error:c.custom_price&&(o.custom_price||_?.custom_price),label:u.exclusive_end_at&&null===u.custom_price?l("Album price (during exclusivity)"):l("Album price"),labelOption:(0,s.jsxs)(eA.W,{className:eP().suggestedPrice,onClick:()=>n("custom_price",null),children:[l("Suggested price")," ",(0,eh.vv)(b?.suggested_price)]}),name:"custom_price",placeholder:0===u.custom_price?l("Not applicable"):null===u.custom_price?(0,eh.qV)(b?.suggested_price):"",readOnly:y||null===u.custom_price,tooltip:l("Volumo users that buy a lot of music in a short period of time may get discounts of up to 30%. If you need the price to never be less than a certain amount, increase your base price accordingly."),value:u.custom_price,onInputBlur:(e,t)=>{S((0,eh.vu)(t))}}),(0,s.jsx)(ey.l,{error:c.release_start_at&&(o.release_start_at||_?.release_start_at),label:l("Volumo release date"),locale:r,name:"release_start_at",readOnly:y,required:!0,tooltip:l("Date when album becomes fully available for purchase & download on Volumo (EET+02:00/EEST+03:00 timezone)"),value:u.release_start_at??"",onChange:e=>n("release_start_at",e??null)}),(0,s.jsx)(ey.l,{error:c.exclusive_end_at&&(o.exclusive_end_at||_?.exclusive_end_at),label:l("Volumo exclusive end date"),locale:r,minValue:(0,es.wR)(),name:"exclusive_end_at",placeholder:l("Not exclusive"),readOnly:y,tooltip:l("Date until the album will be available for purchase exclusively on Volumo"),value:u.exclusive_end_at??void 0,onBlur:t,onChange:e=>n("exclusive_end_at",e??null),onChanging:N}),u.exclusive_end_at?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ej.U,{error:c.exclusive_price_markup&&(o.exclusive_price_markup||_?.exclusive_price_markup),label:l("Exclusive price markup (per track)"),labelOption:(0,s.jsx)(eA.W,{className:eP().suggestedPrice,onClick:()=>n("exclusive_price_markup",null),children:l("Use default")}),name:"exclusive_price_markup",placeholder:l("default"),readOnly:y,tooltip:l("Amount added to each track price for the duration of exclusivity. Leave empty to use the default markup."),value:u.exclusive_price_markup,onInputBlur:(e,t)=>{n("exclusive_price_markup",(0,eh.vu)(t)??null)}}),null===u.custom_price?(0,s.jsx)(ej.U,{label:l("Album price after exclusivity"),name:"regular_price",readOnly:!0,tooltip:l("What the album will cost once the exclusivity period ends."),value:b?.regular_price??null}):(0,s.jsx)(ej.U,{error:c.custom_exclusive_price&&(o.custom_exclusive_price||_?.custom_exclusive_price),label:l("Album price during exclusivity"),name:"custom_exclusive_price",placeholder:b?.price!=null?(0,eh.qV)(b.price):"",readOnly:y,tooltip:l("What buyers pay for the album while exclusivity is active. Leave empty to derive it from per-track markup."),value:u.custom_exclusive_price,onInputBlur:(e,t)=>{n("custom_exclusive_price",(0,eh.vu)(t)??null)}})]}):null,(0,s.jsx)(ey.l,{error:c.preorder_start_at&&(o.preorder_start_at||_?.preorder_start_at),label:l("Volumo preorder start date"),locale:r,name:"preorder_start_at",readOnly:y,tooltip:l("Date when the album becomes publicly visible and available to preview and purchase (but its downloads become available only after Volumo release date)"),value:u.preorder_start_at??"",onChange:e=>n("preorder_start_at",e??null)}),(0,s.jsx)(ey.l,{error:c.original_release_date&&(o.original_release_date||_?.original_release_date),label:l("Original release date"),locale:r,name:"original_release_date",tooltip:l("If the album has been released before somewhere else, specify its original release date here"),value:u.original_release_date??"",onChange:e=>n("original_release_date",e?(0,es.Xx)(e):null)})]}),(0,s.jsx)(el,{releaseStartAtDate:u.release_start_at}),(0,s.jsx)(ea.K,{mt:4})]}),(0,s.jsxs)(e_.n,{className:eP().optionalInformationBlock,customTitle:(0,s.jsx)(j.V,{className:eP().optionalInformationTitle,component:"h2",variant:"h3",children:l("Optional information")}),defaultExpanded:!0,children:[(0,s.jsx)(ea.K,{mt:3}),(0,s.jsxs)(x.f6,{columns:"1fr",children:[(0,s.jsxs)(x.f6,{children:[(0,s.jsx)(eC.k,{error:c.catalog_number&&(o.catalog_number||_?.catalog_number),label:l("Catalog number"),name:"catalog_number",placeholder:l("e.g. {value}",void 0,{value:"F45291"}),readOnly:y,value:u.catalog_number??"",onBlur:t,onChange:i}),(0,s.jsx)(eC.k,{error:c.icpn&&(o.icpn||_?.icpn),label:"UPC / EAN",name:"icpn",placeholder:l("e.g. {value}",void 0,{value:"12345676543"}),readOnly:y,tooltip:l("Leave blank in case of any doubt"),value:u.icpn??"",onBlur:t,onChange:i})]}),(0,s.jsx)(ek.T,{error:c.description&&(o.description||_?.description),label:l("Description"),name:"description",readOnly:y,rows:5,value:u.description??"",onBlur:t,onChange:i}),(0,s.jsxs)(x.f6,{children:[(0,s.jsx)(eC.k,{error:c.cline_year&&(o.cline_year||_?.cline_year),label:l("\xa9 Copyright year"),name:"cline_year",placeholder:l("e.g. {value}",void 0,{value:"2008"}),readOnly:y,value:u.cline_year??"",onBlur:t,onChange:e=>{let t=ex(e.target.value);void 0!==t&&n("cline_year",t)}}),(0,s.jsx)(eC.k,{error:c.cline_text&&(o.cline_text||_?.cline_text),label:l("\xa9 Copyright text"),name:"cline_text",placeholder:l("e.g. {value}",void 0,{value:"All rights owned by AHJ Records"}),readOnly:y,value:u.cline_text??"",onBlur:t,onChange:i})]}),(0,s.jsxs)(x.f6,{children:[(0,s.jsx)(eC.k,{error:c.pline_year&&(o.pline_year||_?.pline_year),label:l("â Phonogram year"),name:"pline_year",placeholder:l("e.g. {value}",void 0,{value:"2008"}),readOnly:y,tooltip:l("Sound recording copyright, as opposed to the \xa9 of the composition"),value:u.pl
1ine_year??"",onBlur:t,onChange:e=>{let t=ex(e.target.value);void 0!==t&&n("pline_year",t)}}),(0,s.jsx)(eC.k,{error:c.pline_text&&(o.pline_text||_?.pline_text),label:l("â Phonogram text"),name:"pline_text",placeholder:l("e.g. {value}",void 0,{value:"AHJ Records"}),readOnly:y,value:u.pline_text??"",onBlur:t,onChange:i})]})]})]}),(0,s.jsx)(ea.K,{mt:2})]})}})})};var eT=a(78595),ez=a.n(eT);let eM=e=>{let{blocked:t,hasSubmittedOnce:a,onMutating:r}=e,{t:l}=(0,_.c3)(),{myContributorId:n,contributorType:o,myAlbumId:c,getMyAlbum:m,getAlbumUrl:p}=(0,i.useContext)(u.q);return(0,s.jsxs)(x.NP,{alignItems:"flex-start",columns:"240px 2fr",horizontalSpacing:3,verticalSpacing:2,children:[(0,s.jsx)(y,{className:ez().coverEditor}),(0,s.jsxs)(x.xA,{verticalSpacing:2,children:[(0,s.jsx)(eL,{blocked:t,onMutating:r}),m?.data&&(0,s.jsxs)(s.Fragment,{children:[m.data.errors.length>0&&a?(0,s.jsx)(h,{errors:m.data.errors}):null,(0,s.jsxs)(x.xA,{columns:"auto 1fr auto",children:[(0,s.jsx)(d.$,{href:p?.(c,n,o??"artist","tracks"),muted:!0,children:l("Previous step")}),(0,s.jsx)(x.Vp,{}),(0,s.jsx)(d.$,{href:p?.(c,n,o??"artist","summary"),children:l("Next step")})]})]})]})]})};var eE=a(79721),eB=a(93107),eO=a(61469),eV=a.n(eO);let eD=()=>{let{t:e}=(0,_.c3)(),{myContributorId:t,contributorType:a,myAlbumId:r,getMyAlbum:l,getAlbumUrl:n,getNewAlbumUrl:c,unsubmitMyAlbum:p}=(0,i.useContext)(u.q),h=async()=>{await (0,eg.db)({content:e("Unsubmit album {title}? After that, the album will need to be moderated again before publication.",void 0,{title:(0,b.Ef)(e,l?.data?.title)})})&&l?.data?.id&&(await p?.mutateAsync({id:l?.data?.id}),ef.vF.success(e("Album {title} has been unsubmitted",void 0,{title:(0,b.Ef)(e,l?.data?.title)})),n&&await eV().replace(n(r,t,a??"artist","summary")))};return(0,s.jsx)(eS.p,{data:l?.data,isBlocking:!1,isLoading:l?.isFetching,children:i=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(x.NP,{alignItems:"flex-start",columns:"240px 2fr",horizontalSpacing:3,verticalSpacing:2,children:[(0,s.jsx)(eE.b,{imageUuid:i.artwork_uuid??void 0,size:240,title:`${(0,b.Ef)(e,i.title)} album cover`,type:"album"}),(0,s.jsxs)(x.xA,{verticalSpacing:2,children:[o.NF.includes(i.state)?(0,s.jsx)(m.p,{type:"info",children:e("Album has been submitted for review. After a successful review, it becomes available for sale on {date}. In case of any issues being found during the review, we will notify you by email. If you need to edit any of the information you provided, please Unsubmit the album, edit and submit it again.",void 0,{date:(0,eB.ik)(i.release_start_at??void 0)})}):"scheduled"===i.state?(0,s.jsx)(m.p,{type:"info",children:e("Album has been approved, pending publication on {date}. If you need to edit any of the information you provided, please Unsubmit the album, edit and submit it again.",void 0,{date:(0,eB.ik)(i.release_start_at??void 0)})}):"live"===i.state?(0,s.jsxs)(m.p,{type:"success",children:[e("The album has been successfully published and is available for purchase at the Volumo music store."),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),e("If you need to edit any of the information you provided, please Unsubmit the album, edit it, and submit it for review again. Note that this will cause the album to become unavailable for sale while it is being re-reviewed.")]}):(0,s.jsx)(m.p,{type:"warning",children:e("The album met some issues during the moderation process. If you need to edit any of the information you provided, please Unsubmit the album, edit and submit it again.")}),void 0!==r&&i&&o.L_.includes(i.state)&&(0,s.jsxs)(x.NP,{columns:"auto 1fr auto",children:[(0,s.jsx)(d.$,{muted:!0,size:"big",onClick:h,children:e("Unsubmit")}),(0,s.jsx)(x.Vp,{}),(0,s.jsx)(d.$,{href:c?.(t,a??"artist"),size:"big",children:(0,s.jsxs)(x.xA,{alignItems:"center",columns:"auto auto",horizontalSpacing:1,children:[(0,s.jsx)(k.uID,{height:20}),(0,s.jsx)("span",{children:e("Upload new album")})]})})]})]})]})})})};var eR=a(19947),eU=a(45208),eW=a(60719),eK=a(68029),eq=a(22978),e$=a.n(eq);let eZ=e=>{let{album:t,renderTrackSummary:a}=e,{playbackServer:r}=(0,eW.cs)(),l=(0,i.useRef)(null),[n,o]=(0,i.useState)(),c=`my-albums/${t.id}`;return(0,i.useEffect)(()=>{let e,t=l.current;if(!t)return;let a=()=>{r.getActiveInstance()?.contextPath!==c&&o(t.offsetHeight+(0,eK.HU)())},s=new ResizeObserver(()=>{e&&clearTimeout(e),e=setTimeout(a,eW.Jf+50)});return s.observe(t),a(),()=>{e&&clearTimeout(e),s.disconnect()}},[c,r]),(0,s.jsx)("div",{className:e$().tracksViewport,style:void 0!==n?{height:n}:void 0,children:(0,s.jsx)("div",{ref:l,children:t.tracks?.map((e,r)=>(0,s.jsxs)(i.Fragment,{children:[a({album:t,index:r,track:e}),(0,s.jsx)(eb.c,{})]},e.id))})})},eY=e=>{let{hasSubmittedOnce:t,onSubmit:a}=e,{locale:r,t:l}=(0,_.c3)(),{myContributorId:n,contributorType:c,myAlbumId:p,getMyAlbum:g,getAlbumUrl:v,getMyContributor:f,submitMyAlbum:j,renderMyAlbumTrackSummary:y}=(0,i.useContext)(u.q),w=g?.data,k=!w||o.ig.includes(w.state);return(0,s.jsx)(eS.p,{data:w,isBlocking:!1,isLoading:g?.isFetching||f?.isFetching,children:e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(x.NP,{alignItems:"flex-start",columns:"240px 2fr",horizontalSpacing:3,verticalSpacing:2,children:[(0,s.jsx)(eE.b,{imageUuid:e.artwork_uuid??void 0,size:240,title:l("Artwork for {title}",void 0,{title:(0,b.Ef)(l,e.title)}),type:"album"}),(0,s.jsxs)(x.xA,{children:[(0,s.jsxs)(x.NP,{alignItems:"flex-start",columns:"1fr 1fr",horizontalSpacing:1,verticalSpacing:1,children:[(0,s.jsx)(eU.m,{label:l("Album title"),value:e.title}),(0,s.jsx)(eU.m,{label:l("Label"),value:"recordlabel"===c?f?.data?.name:void 0}),(0,s.jsxs)(x.NP,{column:"1/3",verticalSpacing:1,children:[(0,s.jsx)(eU.m,{label:l("Artists"),value:e.artists.map(e=>e.name).join(", ")}),(0,s.jsx)(eU.m,{label:l("Description"),value:e.description})]}),(0,s.jsx)(eU.m,{label:l("Catalog number"),value:e.catalog_number}),(0,s.jsx)(eU.m,{label:l("Original release date"),value:(0,eB.ZP)(e.original_release_date??void 0,{locale:r})}),(0,s.jsx)(eU.m,{label:"UPC/EAN",value:e.icpn}),(0,s.jsx)(eU.m,{label:l("Volumo preorder start date"),value:(0,eB.ik)(e.preorder_start_at??void 0,{locale:r})}),(0,s.jsx)(eU.m,{label:e.exclusive?l("Price during exclusivity"):l("Price"),value:(0,eh.vv)(e.price)}),e.exclusive&&null!=e.regular_price?(0,s.jsx)(eU.m,{label:l("Price after exclusivity"),value:(0,eh.vv)(e.regular_price)}):null,(0,s.jsx)(eU.m,{label:l("Volumo release date"),value:(0,eB.ik)(e.release_start_at??void 0,{locale:r})}),(0,s.jsx)(eU.m,{label:l("Exclusive","one album"),value:e.exclusive?l("until {date}",void 0,{date:(0,eB.ZP)(e.exclusive_end_at??void 0,{locale:r})}):void 0})]}),(0,s.jsx)(ea.K,{mt:10}),(0,s.jsx)(eb.c,{}),y&&e.tracks?.length?(0,s.jsx)(eZ,{album:e,renderTrackSummary:y}):e.tracks?.map((e,t)=>(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(eR.m,{index:t,track:e}),(0,s.jsx)(eb.c,{})]},e.id)),["incomplete"].includes(e.state)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.K,{mt:2}),(0,s.jsx)(m.p,{type:"warning",children:l("Please fill in complete information about the album before submitting it. You can click the Submit button to see the list of missing fields.")})]}),["rejected","removed","unmoderated"].includes(e.state)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.K,{mt:2}),(0,s.jsx)(m.p,{type:"info",children:l("Album has been submitted for review. After a successful review, it becomes available for sale on {releaseDate}. In case of any issues being found during the review, we will notify you by email. If you need to edit any of the information you provided, please Unsubmit the album, edit and submit it again.",void 0,{releaseDate:(0,eB.ik)(e.release_start_at??void 0)})})]}),["scheduled"].includes(e.state)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.K,{mt:2}),(0,s.jsx)(m.p,{type:"info",children:l("Album has been approved, pending publication on {releaseDate}. If you need to edit any of the information you provided, please Unsubmit the album, edit and submit it again.",void 0,{releaseDate:(0,eB.ik)(e.release_start_at??void 0)})})]}),e?.id!==void 0&&(0,s.jsxs)(s.Fragment,{children:[e.errors.length>0&&t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.K,{mt:2}),(0,s.jsx)(h,{errors:e.errors})]}):null,(0,s.jsx)(ea.K,{mt:2}),(0,s.jsxs)(x.NP,{columns:"auto 1fr auto",children:[k?(0,s.jsx)(x.Vp,{}):(0,s.jsx)(d.$,{href:v?.(p,n,c??"artist","main"),muted:!0,children:l("Previous step")}),(0,s.jsx)(x.Vp,{}),["incomplete","complete"].includes(e.state)&&(0,s.jsx)(d.$,{loading:j?.isPending,size:"big",onClick:()=>{a?.(),o.UN.includes(e.state)&&j?.mutate({id:e.id},{onSuccess(){v&&eV().replace(v(p,n,c??"artist","submitted"))}})},children:l("Submit")})]})]})]})]})})})};var eH=a(30795),eJ=a(62907),eQ=a(20650),eX=a(55132),eG=a(52996),e0=a(81913),e1=a(3638),e2=a(97),e3=a.n(e2),e6=a(2651);let e9=e=>{let{defaultExpanded:t,hasSubmittedOnce:a,index:r,scrollToErrorsNonce:l,showErrors:n,track:c,onMutating:d,onToggle:m}=e,{t:g}=(0,_.c3)(),{genres:b,defaultTrackPrice:v,getMyAlbum:f,getMyContributor:y,createContributor:F,getArtistById:P,searchContributors:T,uploadingMyAlbumTracks:z,updateMyAlbumTrack:M}=(0,i.useContext)(u.q),[B,O]=(0,i.useState)(void 0),D=f?.data,R=y?.data?.contributor_type==="artist"?y?.data:void 0,W=(0,i.useRef)(null),K=!D||o.ig.includes(D.state),$=z?.find(e=>e.id===c.id),Z=(0,i.useMemo)(()=>(0,eN.DR)(c),[c]),H=v??c.suggested_price,J=(0,e0.e5)($?.file.name),Q=e=>T("artist",e),X=e=>F("artist",e),G=async e=>{if(D?.tracks){if(e&&e>w.ng)return void ef.vF.error(g("Price is too high, maximum track price must be {maxPrice}",void 0,{maxPrice:(0,eh.vv)(w.ng)}));if(e&&e<w.J2)return void ef.vF.error(g("Price is too low, minimum track price must be at least {minPrice} or completely free",void 0,{minPrice:(0,eh.vv)(w.J2)}
1));if(D.tracks.every(t=>t.custom_price===e))return void ef.vF.success(g("All tracks in the album already have this price set"));if(0===D.custom_price&&0!==e){if(!await (0,eg.db)({content:g("This album is marked as free. Do you want to switch the album to default album price instead?")}))return}else if(0!==D.custom_price&&0===e){if(!await (0,eg.db)({content:g("All tracks in the album will become free. Do you want to change the price of the album to free?")}))return}else if(D.custom_price&&e&&D.custom_price>e*D.tracks.length&&!await (0,eg.db)({content:g("The price of the album is higher than the sum of the prices of all tracks. Do you want to switch the album to default album price instead?")}))return;try{let t=D.tracks.map(t=>t.custom_price!==e&&!t.album_only&&M?.mutateAsync({albumId:D.id,trackId:t.id,payload:{custom_price:e}},{onError:e=>{ef.vF.error(e)}}));await Promise.all(t),ef.vF.success(g("The prices of all tracks in the album have been changed successfully"))}catch(e){ef.vF.error(e)}}};return D?(0,s.jsx)(eu.l1,{initialStatus:(0,ev.iE)(M?.error),initialValues:Z,onSubmit:async e=>{d?.(!0);try{await M?.mutateAsync({albumId:D?.id,trackId:c.id,payload:e})}finally{d?.(!1)}},children:e=>{let{handleBlur:o,handleChange:u,setFieldValue:_,errors:v,status:f,touched:y,values:F}=e,T=D?.tracks.every(e=>0===e.custom_price||e.id===c.id);(0,en.I)(()=>{(async()=>{J&&(!F.artists_ids?.length&&J?.artists?.length&&_("artists_ids",(await Promise.all(J.artists.map(async e=>X(e)))).map(e=>e.id)),!F.title&&J?.title&&_("title",J?.title),!F.version&&J?.version&&_("version",J?.version))})()},[J]),(0,en.I)(()=>{D&&_("custom_price",D.tracks[r].custom_price)},[D]);let z=async e=>{e&&e>w.ng?ef.vF.error(g("Price is too high, maximum track price must be {maxPrice}",void 0,{maxPrice:(0,eh.vv)(w.ng)})):e&&e<w.J2?ef.vF.error(g("Price is too low, minimum track price must be at least {minPrice} or completely free",void 0,{minPrice:(0,eh.vv)(w.J2)})):D?.custom_price!==0||T&&0===e?D?.custom_price!==0&&T&&0===e?await (0,eg.db)({content:g("All tracks in the album will become free, Do you want to change the price of the album to free?")})&&_("custom_price",e??null):_("custom_price",e??null):await (0,eg.db)({content:g("This album is marked as free. Do you want to switch the album to default album price instead?")})&&_("custom_price",e??null)};return(0,i.useEffect)(()=>{O(["Volumo","Exclusive"].filter(e=>F.title?.toLowerCase().includes(e.toLowerCase())))},[F.title]),(0,i.useEffect)(()=>{n&&W.current&&setTimeout(()=>{(0,eX.PA)(W.current)},300)},[n,l]),(0,s.jsxs)(e_.n,{contentClassName:e3().content,customTitle:(0,s.jsxs)(x.xA,{children:[(0,s.jsxs)(x.NP,{columns:"1fr 1fr",horizontalSpacing:2,verticalSpacing:.5,children:[(0,s.jsxs)(x.xA,{children:[(0,s.jsx)(j.V,{className:N.Yr,component:"h3",variant:"body1",children:(0,s.jsx)(e6.x,{index:r,track:c})}),(0,s.jsx)(x.xA,{children:(0,s.jsx)("span",{className:(0,e1.A)(e3().filename,N.Yr),children:(0,eG.po)([c.original_file_name,(0,p.v7)(c.original_file_size)])})})]}),(0,s.jsxs)(x.xA,{justifyItems:"flex-end",children:[(0,s.jsx)(eH._,{status:c.state}),(0,s.jsx)(ep,{onBeforeSubmit:()=>d?.(!0)})]})]}),$&&(0,s.jsx)(eQ.z,{max:100,value:$.progress})]}),defaultExpanded:t,onToggle:m,children:[(0,s.jsxs)(x.xA,{className:e3().trackContainer,innerRef:W,children:[(0,s.jsx)(ea.K,{mt:2}),(a||n)&&c.errors.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{className:n?e3().errorAnimate:"",errors:c.errors}),(0,s.jsx)(ea.K,{mt:2})]}):null,(0,s.jsxs)(x.f6,{columns:"1fr",children:[(0,s.jsxs)(x.f6,{columns:"1fr",children:[(0,s.jsx)(I,{currentArtistId:R?.contributor_id,error:y.artists_ids&&(v.artists_ids||f?.artists_ids),label:g("Artists"),name:"artists_ids",placeholder:g("Artists who composed the track"),readOnly:K,required:!0,value:F.artists_ids,onBlur:o,onChange:e=>_("artists_ids",e??[]),onCreateExactItem:X,onLoadItem:e=>c.artists.find(t=>t.id===e)??P?.(e),onLoadItems:Q}),(0,s.jsx)(L,{artists:c.artists}),(0,s.jsx)(I,{currentArtistId:R?.contributor_id,error:y.featured_artists_ids&&(v.featured_artists_ids||f?.featured_artists_ids),label:g("Featured artists"),name:"featured_artists_ids",placeholder:g("Artists featured in the track"),readOnly:K,value:F.featured_artists_ids,onBlur:o,onChange:e=>_("featured_artists_ids",e??[]),onCreateExactItem:X,onLoadItem:e=>c.featured_artists.find(t=>
1t.id===e)??P?.(e),onLoadItems:Q}),(0,s.jsx)(L,{artists:c.featured_artists})]}),(0,s.jsx)(eC.k,{error:y.title&&(v.title||f?.title),label:g("Track title"),name:"title",readOnly:K,required:!0,value:F.title??"",onBlur:o,onChange:e=>{u(e)}}),(0,s.jsx)(q,{title:F.title??"",onFix:e=>_("title",e)}),(0,s.jsx)(Y,{title:F.title??"",onFix:e=>_("title",e)}),(0,s.jsx)(et,{title:F.title??"",onFix:e=>_("title",e)}),(0,s.jsx)(V,{title:F.title??"",titleType:"track",onFix:(e,t)=>{_("title",e),_("version",t)}}),(0,s.jsx)(E,{artists:[...c.artists,...c.remixers,...c.featured_artists],title:F.title??""}),(0,s.jsx)(U,{words:B}),(0,s.jsxs)(x.f6,{columns:"1fr 1fr",children:[(0,s.jsx)(I,{currentArtistId:R?.contributor_id,error:y.remixers_ids&&(v.remixers_ids||f?.remixers_ids),label:g("Remixers"),name:"remixers_ids",placeholder:g("Artists who remixed the track"),readOnly:K,value:F.remixers_ids,onBlur:o,onChange:e=>_("remixers_ids",e??[]),onCreateExactItem:X,onLoadItem:e=>c.remixers.find(t=>t.id===e)??P?.(e),onLoadItems:Q}),(0,s.jsx)(eC.k,{error:y.version&&(v.version||f?.version),label:g("Mix version"),labelOption:(0,s.jsx)(eJ.u,{onClick:()=>{_("version",c.remixers.map(e=>e.name).join(" & ")+" Remix")},children:g("Autofill")}),name:"version",placeholder:"Original Mix",readOnly:K,value:F.version??"",onBlur:o,onChange:u})]}),(0,s.jsxs)(x.f6,{children:[(0,s.jsxs)(ew.l,{label:g("Price type"),renderValue:e=>eI(g)[e],required:!0,value:F.album_only?"albumOnly":0===F.custom_price?"free":null===F.custom_price?"volumo":"custom",onChange:e=>{let t="free"===e,a="albumOnly"===e,s="custom"===e;t||a||D?.custom_price!==0||0!==F.custom_price?t&&D?.custom_price!==0&&T&&0!==F.custom_price?z(0):(_("album_only",a),t?_("custom_price",0):_("custom_price",s?H:null)):z(s?H:null)},children:[(0,s.jsx)(A.eb,{value:"volumo"}),(0,s.jsx)(A.eb,{value:"custom"}),(0,s.jsx)(A.eb,{value:"free"}),(0,s.jsx)(A.eb,{value:"albumOnly"})]}),(0,s.jsx)(ej.U,{currency:F.album_only?"":void 0,error:y.custom_price&&(v.custom_price||f?.custom_price),label:g("Price"),labelOption:(0,s.jsxs)(eA.W,{className:e3().suggestedPrice,onClick:()=>{_("custom_price",null),_("album_only",!1)},children:[g("Suggested price")," ",(0,eh.vv)(H)]}),name:"price",placeholder:F.album_only?g("Not applicable"):null===F.custom_price?(0,eh.qV)(H):"",postfix:(0,s.jsx)(C.n,{className:e3().fillPriceToAllTracksButton,disabled:F.album_only,iconComponent:k._qs,title:g("Fill the price of all tracks"),onClick:()=>G(F.custom_price??null)}),readOnly:K||null===F.custom_price,value:F.custom_price,onInputBlur:(e,t)=>{z((0,eh.vu)(t))}}),(0,s.jsx)(S.p,{error:y.custom_genre_id&&(v.custom_genre_id||f?.custom_genre_id),getItemText:e=>e?.name,getItemValue:e=>e?.id,label:g("Track genre"),name:"custom_genre_id",readOnly:K,required:!0,searchInvitation:g("Start typing a genre title to see results"),value:F.custom_genre_id??void 0,onChange:e=>_("custom_genre_id",e),onLoadItem:e=>b?.find(t=>t.id===e),onLoadItems:e=>{let t=b?.filter(t=>t.name.toLocaleLowerCase().startsWith(e.toLocaleLowerCase()))||[],a=b?.filter(a=>a.name.split(" ").some(t=>t.toLocaleLowerCase().startsWith(e.toLocaleLowerCase()))&&!t.some(e=>e.id===a.id))||[],s=b?.filter(s=>s.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())&&!a.some(e=>e.id===s.id)&&!t.some(e=>e.id===s.id))||[];return[...t,...a,...s]}}),(0,s.jsx)(eC.k,{error:y.isrc&&(v.isrc||f?.isrc),label:"ISRC",name:"isrc",readOnly:K,tooltip:g("International Standard Recording Code (leave blank if you don't have it)"),value:F.isrc??"",onBlur:o,onChange:e=>{_("isrc",(0,p.aN)(e.target.value,"-"))}})]})]})]}),(0,s.jsx)(ea.K,{mt:4})]})}}):null};var e8=a(54760),e7=a(75859),e5=a.n(e7);let e4=e=>{let{items:t,hasSubmittedOnce:a,expandedTrackId:r,scrollToErrorsNonce:i,showErrors:l,onMutating:n,onSortEnd:o,onSortStart:c,onToggleTrack:u}=e,{t:d}=(0,_.c3)();return(0,s.jsx)(e8.q,{id:"my-album-tracks",items:t,onSortEnd:o,onSortStart:c,children:t.length?t.map((e,t)=>(0,s.jsxs)(e8.U,{className:e5().item,id:e.id,thumbClassName:e5().thummb,children:[(0,s.jsx)(ea.K,{mt:1.5}),(0,s.jsx)(e9,{defaultExpanded:r===e.id,hasSubmittedOnce:a,index:t,scrollToErrorsNonce:i,showErrors:l,track:e,onMutating:n,onToggle:()=>u?.(e.id)}),(0,s.jsx)(ea.K,{mt:1.5})]},e.id)):d("No tracks uploaded yet")})};e4.displayName="SortableMyAlbumTrackFormList";var te=a(24318),tt=a(4742),ta=a(48624),ts=a.n(ta);let tr={minimal:"minimal",small:"small",medium:void 0,big:"big"},ti={minimal:"spacing-minimal",small:"spacing-small",medium:void 0,big:"spacing-big"},tl=e=>{let{children:t,className:a,iconComponent:r,size:l="small",spacing:n=l,useCurrentColor:o,onClick:c,...u}=e,[d,m]=(0,i.useState)(!1),p=0===i.Children.count(t),h=(0,e1.A)([ts().root,ti[n]&&ts()[(0,tt.i)("root",ti[n])],tr[l]&&ts()[(0,tt.i)("root",tr[l])],p&&ts()[(0,tt.i)("iconOnly","small"===l&&l)],o&&ts()[(0,tt.i)("root","currentColor")
1],a]),x="big"===l?32:"medium"===l?28:20,_=(0,i.useCallback)(async e=>{m(!0);try{return await c?.(e)}finally{m(!1)}},[c]);return(0,s.jsxs)(eJ.u,{className:h,onClick:_,...u,children:[u.loading||d?(0,s.jsx)(te.a,{size:x}):r&&(0,s.jsx)(r,{className:ts().icon,style:{width:x,height:x}}),t]})};tl.displayName="ContextButton";var tn=a(56813),to=a.n(tn);let tc=e=>{let{extension:t,size:a=24}=e;return(0,s.jsxs)("svg",{height:a,viewBox:"0 0 24 24",width:a,children:[(0,s.jsx)("path",{d:"M 13.2 1.2 C 13.4 1.2 13.7 1.3 13.8 1.4 L 14 1.5 L 18.4 6.3 C 18.6 6.5 18.7 6.8 18.8 7 L 18.8 7.2 L 18.8 12 C 18.8 12.7 18.3 13.2 17.7 13.2 C 17.1 13.2 16.6 12.7 16.5 12.1 L 16.5 12 L 16.5 9.6 L 12 9.6 C 11.5 9.6 11 9.1 10.9 8.5 L 10.9 8.4 L 10.9 3.6 L 5.3 3.6 L 5.3 20.4 L 17.7 20.4 C 18.2 20.4 18.7 20.9 18.8 21.5 L 18.8 21.6 C 18.8 22.2 18.3 22.7 17.8 22.8 L 17.7 22.8 L 4.2 22.8 C 3.6 22.8 3.1 22.4 3.1 21.8 L 3.1 21.6 L 3.1 2.4 C 3.1 1.8 3.5 1.3 4.1 1.2 L 4.2 1.2 L 13.2 1.2 Z M 13.2 4.1 L 13.2 7.2 L 16.1 7.2 L 13.2 4.1 Z",style:{fill:"var(--subpanel__bg-color)"}}),(0,s.jsx)("text",{style:{color:"var(--base-accent-ordinary__color)",fontWeight:"bold",fontSize:"6.5px"},x:"7",y:"19",children:t})]})};var tu=a(61936),td=a.n(tu);let tm=e=>{let{actions:t,icon:a,topLine:r,footer:i}=e;return(0,s.jsxs)(x.xA,{className:td().root,columns:"40px 1fr",children:[(0,s.jsx)(x.xA,{alignItems:"flex-start",justifyContent:"center",children:a}),(0,s.jsxs)(x.xA,{rows:"1fr 22px",children:[(0,s.jsxs)(x.xA,{alignItems:"center",columns:"1fr auto",children:[(0,s.jsx)(x.xA,{children:r}),(0,s.jsx)(x.xA,{children:t})]}),(0,s.jsx)(x.xA,{alignItems:"flex-start",children:i})]})]})},tp=e=>{let{filename:t,progress:a,translateFunc:r,onRemoveClick:i}=e,{ext:l}=(0,e0.Po)(t);return(0,s.jsx)(tm,{actions:i&&(0,s.jsx)(tl,{iconComponent:k.gzW,size:"minimal",title:r("Remove"),onClick:i}),footer:(0,s.jsxs)("div",{children:[(0,s.jsx)(ea.K,{mt:.5}),(0,s.jsx)(eQ.z,{value:a})]}),icon:(0,s.jsx)(tc,{extension:l?.toUpperCase(),size:32}),topLine:(0,s.jsx)("span",{className:to().singleline,title:t,children:t})})};var th=a(62750),tx=a(38292),t_=a.n(tx);let tg=e=>{let{className:t,disabled:a,mimeType:r,multiple:l,placeholder:n,readOnly:o,translateFunc:c,onFilesSelected:u}=e,d=(0,i.useRef)(null),m=i.useCallback(e=>{u?.(e.target.files),e.target.value=""},[u]),[p,h]=(0,i.useState)(!1),x=(0,i.useCallback)(e=>{e.preventDefault(),e.dataTransfer.dropEffect=a?"none":"link",h(!a)},[a]),_=(0,i.useCallback)(()=>{h(!1)},[]),g=(0,i.useCallback)(e=>{if(e.preventDefault(),a)return;let t=e.dataTransfer.files;t&&(u?.(t),d.current&&(d.current.value="")),h(!1)},[a,u]),b=(0,i.useCallback)(()=>d.current?.click(),[]);return(0,s.jsxs)(th.O,{className:(0,e1.A)(t_().root,t),disabled:a,children:[p?(0,s.jsx)("span",{children:c("Drop file(s) here")}):n??(0,s.jsx)("span",{children:c("Click or drop file(s) hereâ¦")}),(0,s.jsx)("div",{className:(0,e1.A)(t_().dropZone,a&&t_()["dropZone--disabled"]),onClick:b,onDragLeave:_,onDragOver:x,onDrop:g}),(0,s.jsx)("input",{accept:r,className:t_().file,disabled:a,hidden:!0,multiple:l,readOnly:o,ref:d,type:"file",onChange:m})]})};var tb=a(91840),tv=a(30742),tf=a.n(tv);let tj=e=>{let{filename:t,size:a,state:r,translateFunc:l,onRemoveClick:n}=e,{ext:o}=(0,e0.Po)(t),[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)(async()=>{u(!0);try{await n?.()}finally{u(!1)}},[]);return(0,s.jsx)(tm,{actions:n&&(c?(0,s.jsx)(te.a,{size:24}):(0,s.jsx)(tb.K,{iconComponent:k.gzW,muted:!0,size:"minimal",title:l("Remove"),variant:"transparent",onClick:d})),footer:(0,s.jsxs)(x.xA,{columns:"auto 1fr auto",children:[(0,s.jsx)("span",{className:tf().size,children:(0,p.v7)(a)}),(0,s.jsx)(x.Vp,{}),"incomplete"===r?(0,s.jsx)("span",{className:tf().incomplete,children:l("upload incomplete")}
1):"complete"===r?(0,s.jsx)("span",{className:tf().complete,children:l("upload successful")}):null]}),icon:(0,s.jsx)(tc,{extension:o?.toUpperCase(),size:32}),topLine:(0,s.jsx)("span",{className:(0,e1.A)(tf().filename,N.Yr),title:t,children:t})})},ty=e=>{let{inputClassName:t,inputPlaceholder:a,multiple:r,readOnly:l,removalConfirmationMessage:n,uploadedFiles:o,uploadingFiles:c,onFileRemoved:u,onFilesSelected:d}=e,{t:m}=(0,_.c3)(),[p,h]=(0,i.useState)(!1),g=async e=>{if(e){h(!0);try{await d?.([...e])}finally{h(!1)}}};return(0,s.jsxs)(x.xA,{verticalSpacing:.5,children:[o?.map(e=>(0,s.jsx)(tj,{filename:e.filename,size:e.size,state:e.state,translateFunc:m,onRemoveClick:l?void 0:async()=>{await (0,eg.db)({content:n??m("Are you sure?"),confirmButtonTitle:m("Remove")})&&await u?.(e.id)}},e.id)),c?.map(e=>(0,s.jsx)(tp,{filename:e.filename,progress:e.progress,translateFunc:m,onRemoveClick:l?void 0:()=>u?.(e.id)},e.id)),!l&&(0,s.jsx)(tg,{className:t,disabled:p,multiple:r,placeholder:p?(0,s.jsx)(te.a,{size:60}):a,translateFunc:m,onFilesSelected:g})]})},tw=e=>{let{className:t,error:a,label:r,labelOption:i,required:l,reserveErrorSpace:n,...o}=e;return(0,s.jsx)(f.v,{className:t,error:a,label:r,labelOption:i,required:l,reserveErrorSpace:n,children:(0,s.jsx)(ty,{...o})})};var tk=a(18840),tC=a(69748),tS=a.n(tC);let tA=(e,t,a)=>e.reduce((e,s)=>{var r,i;let l=(a??e).find(e=>"incomplete"!==e.state&&e.checksum===s.checksum);return l?(r=s.filename,i=l.filename,ef.vF.warning(r!==i?t('File "{candidateName}" has already been or being uploaded as a file named "{existingName}"',void 0,{candidateName:r,existingName:i}):t('File "{candidateName}" has already been or being uploaded',void 0,{candidateName:r})),e):[...e,s]},[]),tN=()=>{let{t:e}=(0,_.c3)(),{myAlbumId:t,getMyAlbum:a,createMyAlbum:r,deleteMyAlbumTrack:l,uploadingMyAlbumTracks:n,setUploadingMyAlbumTracks:c,uploadMyAlbumTracks:d,updateMyAlbumArtwork:m}=(0,i.useContext)(u.q),h=a?.data,g=!!h&&o.ig.includes(h.state),v=h?.tracks?.filter(e=>!n?.some(t=>t.id===e.id)).map(e=>({checksum:e.original_file_checksum,filename:e.original_file_name,size:e.original_file_size,state:e.original_file_uuid?"complete":"incomplete",id:e.id}))??[],f=async a=>{let s,i,l,o=t??await r?.();if(void 0===o)throw Error("Cannot resolve album ID");let{tracks:c,images:u,other:h}=(s=[],i=[],l=[],a.forEach(e=>{(["wav","flac","aif","aiff"].includes((0,e0.Po)(e.name).ext?.toLowerCase()??"")?s:["jpg","jpeg","png","gif","webp","avif","jxl"].includes((0,e0.Po)(e.name).ext?.toLowerCase()??"")?i:l).push(e)}),{tracks:s,images:i,other:l}),x=c.filter(e=>e.size<w.Z),_=c.filter(e=>e.size>=w.Z);_.length&&(1===_.length?ef.vF.error(e('File "{fileName}" is too big, maximum file size: {maximumFileSize}',void 0,{fileName:_[0].name,maximumFileSize:(0,p.v7)(w.Z)})):2===_.length?ef.vF.error(e("Files {fileNames} are too big, maximum file size: {maximumFileSize}",void 0,{fileNames:`"${_[0].name}", "${_[1].name}"`,maximumFileSize:(0,p.v7)(w.Z)})):ef.vF.error(e("Files {fileNames} and {moreFilesCount} more, are too big, maximum file size: {maximumFileSize}",void 0,{fileNames:`"${_[0].name}", "${_[1].name}"`,maximumFileSize:(0,p.v7)(w.Z),moreFilesCount:_.length-2}))),h.length&&h.forEach(t=>ef.vF.error(e('Cannot accept {filename}. Only ".wav", ".flac", ".aiff", ".jpg", ".jpeg", ".png", ".webp", ".avif", ".jxl", and ".gif" files are supported',void 0,{filename:(0,b.nD)(e,t.name)}))),u.length&&(u.length>1?ef.vF.info(e("Please select only one image for album cover")):m?.mutate({file:u[0],albumId:o},{onSuccess:()=>ef.vF.success(e("Album cover is successfully uploaded"))}));let g=tA(tA(tA(await Promise.all(x.map(async e=>({checksum:await (0,tk.Hz)(e),file:e,filename:e.name,size:e.size,state:"uploading"}))),e),e),e,n);d?.mutate({albumId:o,selectedFiles:g})},y=async e=>{let a=n?.find(t=>t.id===e);if(void 0!==t)if(a)a.abortController.abort(),c?.(t,e=>e?.filter(e=>e!==a));else try{await l?.mutateAsync({albumId:t,trackId:e})}catch{}};return(0,s.jsx)(tw,{inputClassName:tS().input,inputPlaceholder:(0,s.jsxs)(x.xA,{justifyItems:"center",children:[(0,s.jsx)(j.V,{component:"span",variant:"h3",children:e("Drop tracks here")}),(0,s.jsx)(j.V,{variant:"body1",children:e("or click to select filesâ¦")})]}),label:e("Track files (wav, flac, aif, aiff)"),multiple:!0,readOnly:g,removalConfirmationMessage:e("The uploaded file will be removed from the album. Do you want to continue?"),required:!0,uploadedFiles:v,uploadingFiles:n,onFileRemoved:y,onFilesSelected:f})},tI=e=>{let{blocked:t,expandedTrackId:a,hasSubmittedOnce:r,onMutating:l,onToggleTrack:n}=e,{t:o}=(0,_.c3)(),{myContributorId:c,contributorType:m,myAlbumId:p,getMyAlbum:g,getAlbumUrl:b,updateMyAlbumTrack:v}=(0,i.useContext)(u.q),f=g?.data,j=f?.tracks.every(e=>"complete"===e.state),[y,w]=(0,i.useState)(!1),[k,C]=(0,i.useState)(0),S=(0,i.useCallback)(async(e,t)=>{if(f?.id!==void 0&&f.tracks){let a=f.tracks[e].id;try{await v?.mutateAsync({albumId:f.id,trackId:a,payload:{position:t+1}})}catch{}}},[v,f]);return(0,s.jsxs)(x.NP,{alignItems:"flex-start",columns:"240px 1fr",horizontalSpacing:3,verticalSpacing:3,children:[(0,s.jsx)(tN,{}),(0,s.jsxs)(x.xA,{verticalSpacing:2,children:[(0,s.jsx)(eS.p,{data:f?.tracks,isBlocking:t,isLoading:t||g?.isFetching,children:e=>(0,s.jsx)(e4,{expandedTrackId:a,hasSubmittedOnce:r,items:e,scrollToErrorsNonce:k,showErrors:y,onMutating:l,onSortEnd:e=>{let{oldIndex:t,newIndex:a}=e;t!==a&&S(t,a)},onToggleTrack:n})}),f&&(0,s.jsxs)(s.Fragment,{children:[f.errors.length>0&&r?(0,s.jsx)(h,{errors:f.errors}):null,(0,s.jsxs)(x.xA,{columns:"1fr auto",children:[(0,s.jsx)(x.Vp,{}),(0,s.jsx)(d.$,{disabled:!f?.tracks?.length,href:j?b?.(p,c,m??"artist","main"):void 0,muted:!j,onClick:()=>
1{if(!j){let e=f?.tracks?.find(e=>"complete"!==e.state)?.id;void 0!==e&&e!==a&&n?.(e),setTimeout(()=>{w(!0),C(e=>e+1)},250)}},children:o("Next Step")})]})]})]})]})};var tF=a(12556),tP=a(90875),tL=a.n(tP);let tT=e=>{let{children:t,className:a}=e,r=i.Children.toArray(t).length;return(0,s.jsx)(x.NP,{className:(0,e1.A)(tL().root,a),columns:`repeat(${r}, 1fr)`,horizontalSpacing:1.5,children:t})};var tz=a(29396),tM=a.n(tz);let tE=e=>{let{badgeContent:t,disabled:a,done:r,href:i,selected:l,title:n}=e;return(0,s.jsx)(eJ.u,{className:(0,e1.A)(tM().root,a&&tM()["root--disabled"],l&&tM()["root--selected"]),disabled:a,href:i,children:(0,s.jsxs)(x.xA,{alignItems:"center",columns:"auto 1fr",horizontalSpacing:1,children:[(0,s.jsx)("span",{className:(0,e1.A)(tM().badge,l&&tM()["badge--selected"],!l&&r&&tM()["badge--done"]),children:!l&&r?(0,s.jsx)(k.iWP,{}):t}),(0,s.jsx)("span",{className:tM().title,children:n})]})})},tB=()=>{let{t:e}=(0,_.c3)(),{isBelowSm:t}=(0,tF.yU)(),{myContributorId:a,contributorType:r,myAlbumId:l,myAlbumTabId:n,getMyAlbum:d,uploadingMyAlbumTracks:m,getAlbumUrl:p}=(0,i.useContext)(u.q),h=d?.data,g=!!h&&o.ig.includes(h.state),[b,v]=(0,i.useState)(!1),[f,j]=(0,i.useState)(),[y,w]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1);return(0,i.useEffect)(()=>j(m?.length&&null===f?m[0].id:f&&h?.tracks.every(e=>e.id!==f)?null:void 0!==f?f:h?.tracks[0]?.id),[h?.tracks]),(0,s.jsx)(eS.p,{data:!0,isBlocking:!1,isLoading:d?.isFetching,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.NP,{columns:"1fr auto",horizontalSpacing:2,verticalSpacing:2,children:[(0,s.jsx)(tT,{children:(0,s.jsxs)(x.xA,{columns:t?"1fr":"1fr 1fr 1fr 1fr",horizontalSpacing:2,verticalSpacing:2,children:[(0,s.jsx)(tE,{badgeContent:"01",disabled:g,done:h&&!h.errors?.length,href:p?.(l,a,r??"artist","tracks"),selected:"tracks"===n,title:e("Tracks info")},"1"),(0,s.jsx)(tE,{badgeContent:"02",disabled:g,done:h&&!h.errors?.length,href:p?.(l,a,r??"artist","main"),selected:"main"===n,title:e("Album info")},"2"),(0,s.jsx)(tE,{badgeContent:"03",disabled:!h,done:h&&o.ig.includes(h.state),href:p?.(l,a,r??"artist","summary"),selected:"summary"===n,title:e("Review & submit")},"3"),(0,s.jsx)(tE,{badgeContent:"04",disabled:!h||!o.ig.includes(h.state),done:h&&["scheduled"].includes(h.state),href:p?.(l,a,r??"artist","submitted"),selected:"submitted"===n,title:e("Submitted")},"4")]})}),(0,s.jsx)(c.g,{status:h?.state??"incomplete"})]}),(0,s.jsx)(ea.K,{mt:1}),(0,s.jsx)(eb.c,{}),(0,s.jsx)(ea.K,{mt:2}),g||"tracks"!==n?g||"main"!==n?"summary"===n?(0,s.jsx)(eY,{hasSubmittedOnce:b,onSubmit:()=>v(!0)}):"submitted"===n&&h&&o.ig.includes(h.state)?(0,s.jsx)(eD,{}):null:(0,s.jsx)(eM,{blocked:y,hasSubmittedOnce:b,onMutating:e=>C(e)}):(0,s.jsx)(tI,{blocked:k,expandedTrackId:f,hasSubmittedOnce:b,myAlbumId:l,onMutating:e=>w(e),onToggleTrack:e=>{j(e===f?null:e)}})]})})};var tO=a(70719),tV=a(42173),tD=a(54923),tR=a(84725),tU=a(20718),tW=a(1432);let tK=()=>{let e=(0,eO.useRouter)(),{isBelowMd:t}=(0,tF.yU)(),{t:a}=(0,_.c3)(),r=(0,tR.Fg)(e.query.myContributorId),o=(0,tR.Fg)(e.query.albumId),{data:c}=(0,n.$Y)(r),{data:u}=(0,l.VQ)(o),d=(0,tD.UV)(a),m=a("Edit album {title}",void 0,{title:(0,b.Ef)(a,u?.title)}),p=(0,i.useMemo)(()=>({title:m}),[m]);return(0,s.jsxs)(tW.d,{breadcrumbs:[d.ContentProvider,c?{href:(0,tO.z4)(c.id,c.contributor_type),text:c.name}:d.Loading,{text:m}],hideNavigation:t,navigationTabId:"content",children:[(0,s.jsx)(tV.t,{fields:p,pageName:"contentProvider"}),(0,s.jsxs)(tU.m,{children:[(0,s.jsx)(tB,{}),(0,s.jsx)(ea.K,{mt:3})]})]})};var tq=a(14503),t$=a(7060);let tZ=()=>(0,s.jsx)(tK,{});tZ.displayName="EditAlbumPage",tZ.getConfig=()=>({isAuthenticationRequired:!0,noQuickSettings:!0}),tZ.renderInLayout=(e,t)=>(0,s.jsx)(t$.Y,{noQuickSettings:t.pageConfig?.noQuickSettings,rightSidebar:(0,s.jsx)(tq.V,{selectedItemId:"content"}),children:e}),tZ.getInitialProps=async e=>{let{api:t,promises:a,query:s,queryClient:i}=e,o=(0,r.$J)(s.albumId),c=(0,r.$J)(s.myContributorId),[u,d,m]=await Promise.all([t.getMyContributors(),c&&t.getMyContributor(c),o&&t.getMyAlbum(o)]),{user:p}=await a.userData;i.setQueryData([n.VE.myContributors(p?.email)],u),i.setQueryData([n.VE.myContributor(p?.email,c)],d),m&&i.setQueryData([l.tH.myAlbum(p?.email,o)],m)};let tY=tZ},50005:(e,t,a)=>{"use strict";a.d(t,{I:()=>w});var s=a(80263),r=a(52996),i=a(3638),l=a(53239),n=a(62907),o=a(27129),c=a(50016),u=a(76167
1),d=a.n(u);let m=e=>{let{component:t,disabled:a,value:r}=e;return(0,s.jsx)("li",{children:(0,s.jsx)(n.u,{className:(0,i.A)(d().item,r.notranslate?o.Yr:void 0),disabled:a,href:r.href,children:(0,s.jsx)(c.V,{component:t,variant:"body2",children:r.text})})})};var p=a(96296),h=a.n(p);let x=e=>{let{className:t,values:a,lastElementH1:l}=e;return(0,s.jsx)("nav",{className:(0,i.A)(h().nav,t),children:(0,s.jsx)("ol",{className:h().list,children:(0,r.po)(a.map((e,t)=>(0,s.jsx)(m,{component:l&&t===a?.length-1?"h1":void 0,disabled:t===a?.length-1,value:e},t)),h().bullet)})})};var _=a(67445),g=a(97930),b=a(13463),v=a(61469),f=a(18067),j=a(10289),y=a.n(j);let w=l.memo(e=>{let{className:t,lastElementH1:a,metaFields:r,pageName:l,values:n}=e,{asPath:o}=(0,v.useRouter)(),{locale:c}=(0,b.c3)(),{h1Title:u}=(0,f.Z)({pageName:l,path:o,locale:c,fields:r}),d=[...n.slice(0,n.length-1),{...n[n.length-1],text:a&&u?u:n[n.length-1].text}];return(0,s.jsxs)(g.xA,{children:[(0,s.jsx)(x,{className:(0,i.A)(t,y().root),lastElementH1:a,values:d}),(0,s.jsx)(_.c,{variant:"zero"})]})});w.displayName="AppBreadcrumbs"},52983:e=>{e.exports={statusText:"AlbumSubmissionStatus_statusText__daUOF",button:"AlbumSubmissionStatus_button__109lP"}},53017:e=>{e.exports={matching:"SearchSelectBase_matching___HV1X",nonMatching:"SearchSelectBase_nonMatching__bzuwE",exactValue:"SearchSelectBase_exactV
1alue__J6ZLt",itemId:"SearchSelectBase_itemId__G7Ciz",invitationText:"SearchSelectBase_invitationText__dWW5_"}},53202:(e,t,a)=>{"use strict";a.d(t,{p:()=>j});var s=a(80263),r=a(904),i=a(7665),l=a(12806),n=a(76923),o=a(37247),c=a(40377),u=a(88062),d=a.n(u),m=a(94856),p=a.n(m),h=a(53239),x=a(53017),_=a.n(x);let g=e=>{let{allowExactValue:t,searchInvitation:a,showItemIds:r,getItemDisabled:u,getItemText:m,getItemValue:x,getSearchText:g,renderValue:b,onCreateExactItem:v,onLoadError:f,onLoadItem:j,onLoadItemById:y,onLoadItems:w,...k}=e,[C,S]=(0,h.useState)(),[A,N]=(0,h.useState)(),[I,F]=(0,h.useState)(),[P,L]=(0,h.useState)(!1),T=(0,h.useRef)(0),z=(0,h.useCallback)(e=>C?.find(t=>x?.(t)===e),[C,x]),M=async e=>{try{return await y?.(e)}catch{return}},E=async e=>{let t=++T.current;if(A===e)return void L(!1);L(!0);try{let a=e.trim(),s=y&&/^\d+$/.test(a)&&Number(a)<=n.CW?M(Number(a)):void 0,r=await w?.(e),i=await s,l=i?(0,o.ey)([i,...r??[]],e=>x?x(e):e):r;if(T.current!==t)return;S(e=>e?l?(0,o.ey)([...e,...l],e=>x?x(e):e):e:l),F(l),N(e)}catch(e){f?.(e)}finally{T.current===t&&L(!1)}},B=async e=>{if(v){let t=await v(e);return x?x(t):t}};return(0,h.useEffect)(()=>{(async()=>{if(k.multiple||(0,c.Im)(k.value)||k.canApplySearchText)k.multiple&&!(0,c.Im)(k.value)&&k.value.forEach(async e=>{if(!z(e)){L(!0);try{let t=await j?.(e);t&&S(e=>e?[...e,t]:[t])}catch(e){f?.(e)}finally{L(!1)}}});else if(!z(k.value)){L(!0);try{let e=await j?.(k.value);e&&S(t=>t?[...t,e]:[e])}catch(e){f?.(e)}finally{L(!1)}}})()},[k.value,k.multiple]),(0,s.jsxs)(i.oJ,{autoAdjustPopupPosition:!1,canSearch:!0,getSearchText:g?e=>g(e,z(e)):void 0,loading:P,renderValue:(e,t)=>{let a=z(e),i=a&&m?.(a),n=(i?(0,l.xi)(i):`${e}`)||void 0,o=!!r&&("popup"===t||!!k.multiple)&&"number"==typeof e&&!!n&&n!==`${e}`;if("string"==typeof n&&"popup"===t&&A){let e=d()(n,A),t=p()(n,e);n=(0,s.jsx)("span",{children:t.map((e,t)=>(0,s.jsx)("span",{className:e.highlight?_().matching:_().nonMatching,children:e.text},t))})}if(o&&(n=(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:_().itemId,children:e}),n]})),b){let s=b(e,t,n,a);if(s)return s}return n??i},onSearch:E,...k,children:[I?.length||A?null:(0,s.jsx)("div",{className:_().invitationText,children:a}),t&&A&&!I?.find(e=>(0,l.xi)(m?.(e)).toUpperCase()===A.toUpperCase())?(0,s.jsx)(i.eb,{renderValue:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:_().matching,children:A}),"\xa0",(0,s.jsx)("span",{className:_().exactValue,children:"(add new)"})]}),onSelecting:()=>B(A)},-10):null,I?.map((e,t)=>(0,s.jsx)(i.eb,{disabled:u?.(e),value:x?.(e)},t))]})};var b=a(3638),v=a(27127),f=a.n(v);let j=e=>{let{className:t,error:a,footnote:i,inputContainerClassName:l,label:n,labelOption:o,mini:c,placeholder:u,required:d,reserveErrorSpace:m,...p}=e;return(0,s.jsx)(r.v,{className:(0,b.A)(t,f().root),disabled:p.disabled,error:a,footnote:i,forId:p.id,label:n,labelOption:o,mini:c,required:d,reserveErrorSpace:m,children:(0,s.jsx)(g,{className:l,disabled:p.disabled,label:n,placeholder:u,required:d,validationState:a?"error":"normal",...p})})}},54760:(e,t,a)=>{"use strict";a.d(t,{q:()=>n,U:()=>x});var s=a(80263),r=a(26779),i=a(76752),l=a(53239);let n=e=>{let{canSort:t=!0,children:a,id:n,items:o,onSortEnd:c,onSortStart:u}=e,d=(0,r.FR)((0,r.MS)(r.AN)),m=(0,l.useCallback)(async e=>{let{active:t,over:a}=e;if(c&&o){let e=o.findIndex(e=>e.id===t.id),s=o.findIndex(e=>e.id===a?.id);await c({oldIndex:e,newIndex:s>=0?s:e})}},[o,c]);return(0,s.jsx)(r.Mp,{id:n,sensors:d,onDragEnd:m,onDragStart:u,children:(0,s.jsx)(i.gB,{disabled:!t,items:o??[],strategy:i._G,children:a})})};var o=a(87604),c=a(97930),u=a(78852),d=a(36464),m=a(3638),p=a(95943),h=a.n(p);let x=e=>{let{children:t,className:a,compact:r,id:l,indexElement:n,leadingElement:p,thumbClassName:x,thumbSize:_}=e,{attributes:g,isDragging:b,isSorting:v,isOver:f,listeners:j,setActivatorNodeRef:y,setNodeRef:w,transform:k,transition:C}=(0,i.gl)({id:l,transition:{duration:150,easing:"cubic-bezier(0.25, 1, 0.5, 1)"}});return(0,s.jsxs)(c.xA,{className:(0,m.A)(h().root,a),columns:"auto 1fr",innerRef:w,style:{transform:o.Ks.Transform.toString(k&&{...k,x:0,scaleY:1}
1),transition:b||v&&f?C:void 0,zIndex:b?1:void 0},...g,tabIndex:void 0,children:[(0,s.jsxs)(c.xA,{alignItems:"center",autoFlow:"column",className:h().lefthand,children:[p,(0,s.jsx)(d.z,{className:x,compact:r,innerRef:y,size:_,...j}),n??(0,s.jsx)(u.K,{ml:1})]}),(0,s.jsx)("div",{className:h().wrapper,children:t})]})}},54908:e=>{e.exports={root:"ContentLayout_root__eSdny",showLeftSidebar:"ContentLayout_showLeftSidebar__XOZAZ",main:"ContentLayout_main__ygLhy",extraBottomSpace:"ContentLayout_extraBottomSpace__DnaqP",left:"ContentLayout_left__0TFcI",right:"ContentLayout_right__YawBm",noLeftSidebar:"ContentLayout_noLeftSidebar__3FKMF"}},54923:(e,t,a)=>{"use strict";a.d(t,{J3:()=>v,OQ:()=>x,UV:()=>p,WL:()=>g,df:()=>f,fm:()=>b,p6:()=>j,pp:()=>w,sA:()=>y,xH:()=>h,zs:()=>_});var s=a(46947),r=a(70719),i=a(90244),l=a(27129),n=a(12806),o=a(69285),c=a(35796),u=a(72072),d=a(8259);let m=e=>({Root:{href:r.KW.Root,text:"Volumo"},Releases:{href:r.KW.Releases,text:e("Releases")},Preorders:{href:r.KW.Preorders,text:e("Preorders")},Labels:{href:r.KW.Labels,text:e("Labels")},Artists:{href:r.KW.Artists,text:e("Artists")},MyLabels:{href:r.KW.MyLabels,text:e("Labels")},MyArtists:{href:r.KW.MyArtists,text:e("Artists")},MyPlaylists:{href:r.KW.MyPlaylists,text:e("My Playlists")},MyCharts:{href:r.KW.MyCharts,text:e("My Charts")},UserProfile:{href:r.KW.UserProfile,text:e("User profile")},ContentProvider:{href:r.KW.ContentProvider,text:e("Artist & Label panel")},DistributorDashboard:{href:r.KW.DistributorDashboard,text:e("Distributor dashboard")},PublicPlaylists:{href:r.KW.PublicPlaylists,text:e("Playlists")},ChartsMainPage:{href:r.KW.ChartsMainPage,text:e("Charts")},HowTo:{href:r.KW.HowTo,text:e("How To?")},MyFeed:{href:r.KW.MyFeed,text:e("My Feed")},Loading:{text:e("Loadingâ¦")}}),p=l.Bd?(0,o.Bj)(m):m,h=(e,t,a)=>{if(!e||void 0===t)return;let s=p(a);return"chart"===e?t?s.ChartsMainPage:s.MyCharts:t?s.PublicPlaylists:s.MyPlaylists},x=e=>e?{href:(0,r.C$)(e),notranslate:!0,text:e.name}:void 0,_=e=>e?{href:(0,r.FD)(e),image:s.C.getImageUrl(e?.artwork_uuid,{format:"jpg",width:1400}),notranslate:!0,text:e.title}:void 0,g=(e,t,a)=>{if(e?.recordlabel)return{href:(0,r.vd)(e.recordlabel),notranslate:!0,type:"Organization",text:e.recordlabel.name};if(e?.volumo_direct){let e=(0,r.ng)(t);return{text:a("Volumo Direct"),href:e}}},b=e=>e?{text:(0,i.Ph)(e),notranslate:!0,href:(0,r.$O)(e)}:void 0,v=(e,t,a)=>{if(e?.length)return e.length>2?`(${a("Multiple genres")})`:e.map(e=>t?.find(t=>t.id===e)?.name).join(", ")},f=(e,t)=>{if(e?.length)return e.length>1?{text:`(${t("Multiple filters")})`}:{text:(0,c.rE)(e[0],t)}},j=e=>({href:(0,r.vd)(e),notranslate:!0,text:e.name,type:"MusicGroup",description:e.description??void 0,image:{"@type":"ImageObject",contentUrl:e.artwork_uuid?s.C.getImageUrl(e.artwork_uuid):(0,d.MX)("/static/images/artist-icon.jpg")}}),y=(e,t,a)=>{let s=(0,u.g)(t,e,a);return{href:s.href,text:(0,n.xi)(s.title)}},w=(e,t)=>({href:(0,r.z4)(e.id,e.contributor_type),notranslate:!0,text:(0,i.Ef)(t,e?.name)})},55087:e=>{e.exports={root:"CropImageModalContent_root__T5XGU",crop:"CropImageModalContent_crop__SekqH",zoomDescription:"CropImageModalContent_zoomDescription__fSHhM",zoom:"CropImageModalContent_zoom__J618A",button:"CropImageModalContent_button__XKPmF"}},56813:e=>{e.exports={singleline:"ellipsis_singleline__Z7SaL",multiline:"ellipsis_multiline__udNu5"}},57418:e=>{e.exports={message:"StartsWithDigitWarningMessage_message__lwDjB"}},58544:e=>{e.exports={message:"HasAlbumsWithSameReleaseDateWarningMessage_message__MMer7"}},59571:(e,t,a)=>{"use strict";a.d(t,{r:()=>o});var s=a(80263),r=a(97930),i=a(3638);a(53239);var l=a(79814),n=a.n(l);let o=e=>{let{actions:t,actionsAlwaysVisible:a,className:l,...o}=e;return(0,s.jsxs)("div",{className:(0,i.A)(l,n().root,a&&n().alwaysVisible),...o,children:[o.children,t&&(0,s.jsx)(r.xA,{autoFlow:"columns",className:(0,i.A)(n().actions,a&&n().alwaysVisible),horizontalSpacing:1,children:t})]})}},61528:(e,t,a)=>{"use strict";a.d(t,{vS:()=>n,AZ:()=>i,bE:()=>l,Oq:()=>o});var s=a(80263),r=a(53239);let i=e=>{let{data:t}=e,a=(0,r.useMemo)(()=>JSON.stringify(t).replace(/</g,"\\u003c"),[t]);return(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:a},type:"application/ld+json"})},l="https://schema.org/",n="https://schema.org/DigitalFormat",o=e=>{if(e)return{"@context":l,"@type":"BreadcrumbList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@id":e?.href??void 0,name:e.text,image:e.image,"@type":e.type,description:e.description}}))}}},61936:e=>{e.exports={root:"FileBlock_root__cdYKb"}},62017:(e,t,a)=>{"use strict";a.d(t,{s:()=>d});var s=a(80263),r=a(12556),i=a(97930),l=a(53648),n=a(13463),o=a(3638);
1a(53239);var c=a(54908),u=a.n(c);let d=e=>{let{allowExtraBottomSpace:t=!0,children:a,className:c,leftSidebar:d,topLine:m}=e,{t:p}=(0,n.c3)(),{isAboveMd:h}=(0,r.yU)(),x=!!(h&&d);return(0,s.jsxs)(i.xA,{className:(0,o.A)(u().root,x&&u().showLeftSidebar),horizontalSpacing:3,children:[(0,s.jsxs)("main",{className:(0,o.A)(u().main,!x&&u().noLeftSidebar,t&&u().extraBottomSpace,c),children:[m,a]}),x&&(0,s.jsx)(l.B,{"aria-label":p("Left sidebar"),className:u().left,children:d})]})};d.displayName="ContentLayout"},62598:(e,t,a)=>{"use strict";a.d(t,{l:()=>c});var s=a(80263),r=a(904),i=a(7665),l=a(3638);a(53239);var n=a(80491),o=a.n(n);let c=e=>{let{className:t,error:a,inputContainerClassName:n,label:c,labelOption:u,mini:d,placeholder:m,required:p,reserveErrorSpace:h,...x}=e;return(0,s.jsx)(r.v,{className:(0,l.A)(o().root,t),disabled:x.disabled,error:a,forId:x.id,label:c,labelOption:u,mini:d,required:p,reserveErrorSpace:h,children:(0,s.jsx)(i.oJ,{className:n,label:c,placeholder:m,required:p,validationState:a?"error":"normal",...x})})}},62638:e=>{e.exports={message:"HasBracketsWarningMessage_message__tPno2"}},66608:e=>{e.exports={message:"HasUnwantedWordsWarningMessage_message__vZSJg"}},66697:e=>{e.exports={input:"TextareaBase_input__S8yxR",slim:"TextareaBase_slim__OeLyS",canResize:"TextareaBase_canResize__lklg5"}},69748:e=>{e.exports={input:"FileManager_input__jfm_o"}},69966:e=>{e.exports={message:"HasExtraSpacesInsideBracketsWarningMessage_message__4IiQZ"}},72072:(e,t,a)=>{"use strict";a.d(t,{g:()=>i,x:()=>l});var s=a(70719),r=a(92839);let i=(e,t,a)=>{switch(e){case"overview":return{href:(0,s.vd)(t),icon:r.Hoe,id:"overview",title:a("Overview")};case"albums":return{href:(0,s.vd)(t,"albums"),icon:r._YD,id:"albums",title:a("Releases")};case"tracks":return{href:(0,s.vd)(t,"tracks"),icon:r._l2,id:"tracks",title:a("Tracks")};case"charts":return{href:(0,s.vd)(t,"charts"),icon:r.THQ,id:"charts",title:a("Charts")};case"playlists":return{href:t&&(0,s.vd)(t,"playlists"),icon:r.JR6,id:"playlists",title:a("Playlists")};case"videos":return{href:(0,s.vd)(t,"videos"),icon:r.BnN,id:"videos",title:a("Videos")};case"about":return{href:(0,s.vd)(t,"about"),icon:r.XVX,id:"about",title:a("About")};case"related":return{href:(0,s.vd)(t,"related"),icon:r.lrS,id:"related",title:a("Related")};default:throw Error("tab ID not recognized")}},l=(e,t,a)=>{switch(e){case"albums":return a("Albums");case"tracks":return a("Tracks");case"charts":return a("Charts");case"playlists":return a("Playlists");case"videos":return a("Videos");case"about":return a("About");case"related":return a("artist"===t?"Related artists":"Related labels");default:return}}},73323:e=>{e.exports={suggestedPrice:"MyAlbumForm_suggestedPrice__0h3zz",optionalInformationTitle:"MyAlbumForm_optionalInformationTitle__I1jjj",optionalInformationBlock:"MyAlbumForm_optionalInformationBlock__eTRKZ",mainInformationBlock:"MyAlbumForm_mainInformationBlock__tAn9B",message:"MyAlbumForm_message__KdC7V"}},75859:e=>{e.exports={item:"SortableMyTrackFormList_item__Bp30s",index:"SortableMyTrackFormList_index__ldHQW",thummb:"SortableMyTrackFormList_thummb__3TJlD"}},76167:e=>{e.exports={item:"Breadcrumb_item__Sh78U"}},76676:e=>{e.exports={root:"ProgressBar_root__OTrXS",track:"ProgressBar_track__3yNKM",rail:"ProgressBar_rail__W0PqD"}},78595:e=>{e.exports={coverEditor:"MyAlbumTabMain_coverEditor__VfZuK"}},78738:(e,t,a)=>{"use strict";a.d(t,{T:()=>p});var s=a(80263),r=a(904),i=a(96776),l=a(62750),n=a(12806),o=a(3638),c=a(53239),u=a(66697),d=a.n(u);let m=e=>{let{autoCapitalize:t,autoComplete:a,autoFocus:r,canResize:u,className:m,controlledWhenFocused:p,defaultValue:h,disabled:x,id:_,inputContainerRef:g,inputProps:b,inputRef:v,name:f,placeholder:j,prefix:y,postfix:w,readOnly:k,role:C,rows:S,validationState:A="normal",value:N,onBlur:I,onChange:F,onClick:P,onFocus:L,onKeyDown:T,...z}=e,M=void 0!==N?`${N}`:N,E=(0,n.OJ)(z),B=(0,c.useRef)(null),O=(0,n.aB)([v,B]),[V,D]=(0,c.useState)(!1),[R,U]=(0,c.useState)(M);(0,i.I)(()=>{(p||!V&&M!==R)&&U(M)},[M]);let W=(0,c.useCallback)(e=>{e.target&&U(e.target.value),F?.(e)},[F]);return(0,c.useEffect)(()=>{r&&setTimeout(()=>{B.current?.focus()},50)},[r]),(0,s.jsx)(l.O,{"aria-activedescendant":V?_:void 0,className:m,disabled:x,innerRef:g,postfix:w,prefix:y,validationState:A,children:(0,s.jsx)("textarea",{ref:O,...b,autoCapitalize:t,autoComplete:a,autoFocus:r,className:(0,o.A)(b?.className,d().input,!1!==u&&d().canResize),defaultValue:h,disabled:x,id:_,name:f,placeholder:j,readOnly:k,role:C,rows:S,value:R,onBlur:e=>{D(!1),I?.(e)},onChange:W,onClick:P,onFocus:e=>{D(!0),L?.(e)},onKeyDown:T,...E})})},p=e=>{let{className:t,disabled:a,error:i,footnote:l,inputContainerClassName:n,label:o,labelOption:c,mini:u,placeholder:d,required:p,reserveErrorSpace:h,...x}=e;return(0,s.jsx)(r.v,{className:t,disabled:a,error:i,footnote:l,label:o,labelOption:c,mini:u,required:p,reserveErrorSpace:h,children:(0,s.jsx)(m,{className:n,disabled:a,placeholder:d,validationState:i?"error":"normal",...x})})}},79814:e=>{e.exports={root:"BlockWithFloatingActions_root__xrV7L",actions:"BlockWithFloatingActions_actions__jPJkN",alwaysVisible:"BlockWithFloatingActions_alwaysVisible__guYRg"}},80491:e=>{e.exports={root:"Select_root__LBRIF"}},86920:(e,t,a)=>{"use strict";a.d(t,{n:()=>L});var s=a(80263),r=a(59571),i=a(12556);async function l(e){return await new Promise((t,a)=>{let s=new Image;s.addEventListener("load",()=>t(s)),s.addEventListener("error",e=>a(e)),s.setAttribute("crossOrigin","anonymous"),s.src=e})}async function n(e,t){let a=await l(e),s=document.createElement("canvas"),r=s.getContext("2d"),i=Math.min(a.width,a.height,1e3);return r?(s.width=i,s.height=i,r.drawImage(a,t.x,t.y,t.width,t.height,0,0,s.width,s.height),new Promise(e=>s.toBlob(t=>e(t?new File([t],"file.png",{type:"image/png"}):null),"image/png",1))):null}var o=a(92839),c=a(91840),u=a(29290),d=a(1985),m=a(13463),p=a(4742),h=a(3638),x=a(53239),_=a(43391),g=a(94386),b=a(21551),v=a(24318),f=a(136),j=a(78852),y=a(50016),w=a(75241),k=a.n(w),C=a(55087),S=a.n(C);let A=k()(async()=>(await Promise.all([a.e(2965),a.e(6603)]).then(a.bind(a,96603))).Cropper,{loadableGenerated:{webpack:()=>[96603]},loading:()=>(0,s.jsx)(s.Fragment,{children:"Loading"}),ssr:!1}),N=e=>{let{image:t,shape:a,translateFunc:r,onCloseAttempt:o,onSaveCropImage:c}=e,{isBelowSm:u}=(0,i.yU)(),d=u?300:400,[m,p]=x.useState(null),[h,w]=(0,x.useState)({x:0,y:0}),[k,C]=(0,x.useState)(1),[N,I]=(0,x.useState)({width:d,height:d,x:0,y:0}),[F,P]=(0,x.useState)(!1),[L,T]=(0,x.useState)(!1),[z,M]=(0,x.useState)();(0,x.useEffect)(()=>
1{if(!t)return;let e=URL.createObjectURL(t),a=!1;return p(null),M(void 0),P(!0),l(e).then(()=>{a||p(e)}).catch(()=>{a||M(r("Could not read this image. Please try another file."))}).finally(()=>{a||P(!1)}),()=>{a=!0,URL.revokeObjectURL(e)}},[t]);let E=async()=>{if(m){M(void 0),T(!0);try{let e=await n(m,N);e?(c?.(e),o()):M(r("Could not process this image. Please try another file."))}catch{M(r("Could not read this image. Please try another file."))}finally{T(!1)}}},B=async(e,t)=>{I(t)};return(0,s.jsxs)(_.$m,{children:[(0,s.jsx)(_.wt,{children:r("Crop image")}),(0,s.jsx)(j.K,{mt:2}),!!z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.p,{type:"error",children:z}),(0,s.jsx)(j.K,{mt:2})]}),(0,s.jsxs)("div",{className:S().root,children:[(0,s.jsxs)("div",{className:S().crop,children:[F&&(0,s.jsx)(v.a,{}),m&&(0,s.jsx)(A,{crop:h,shape:a,size:d,srcBufferImage:m,zoom:k,onCropChange:w,onCropComplete:B,onZoomChange:C})]}),(0,s.jsx)(j.K,{mt:2}),(0,s.jsxs)(y.V,{className:S().zoomDescription,variant:"body1",children:[(0,s.jsx)("span",{children:"-"}),(0,s.jsx)("span",{children:r("Zoom")}),(0,s.jsx)("span",{children:"+"})]}),(0,s.jsx)(j.K,{mt:2}),(0,s.jsx)(b.t,{className:S().zoom,max:3,min:1,value:k,onChange:e=>{"number"==typeof e&&C(e)}}),(0,s.jsx)(j.K,{mt:4}),(0,s.jsx)(g.$,{className:S().button,disabled:!m,fullWidth:!0,loading:L,onClick:E,children:r("Save")})]})]})},I=e=>{let{image:t,open:a,shape:r,translateFunc:i,onCloseAttempt:l,onSaveCropImage:n}=e;return(0,s.jsx)(_.aF,{hasCloseButton:!0,open:a,onCloseAttempt:l,children:(0,s.jsx)(N,{image:t,shape:r,translateFunc:i,onCloseAttempt:l,onSaveCropImage:n})})};var F=a(25141),P=a.n(F);let L=e=>{let{canClear:t=!0,className:a,customAction:l,disabled:n,imageClassName:_,imageContainerClassName:g,innerRef:b,label:v,labelOption:f,loading:j,manualCrop:y,mimeType:w,placeholder:k,readOnly:C,required:S,shape:A="square",size:N,src:F,title:L,onSelected:T}=e,{t:z}=(0,m.c3)(),{isTouchDevice:M}=(0,i.yU)(),E=(0,x.useRef)(null),[B,O]=(0,x.useState)(!1),[V,D]=(0,x.useState)(null),R=(0,x.useCallback)(e=>{y&&e.type.startsWith("image")?(D(e),O(!0)):T?.(e)},[y,T]),U=(0,x.useCallback)(e=>{let t=e.currentTarget.files?.[0];t&&(R(t),e.currentTarget.value="")},[R]),W=(0,x.useCallback)(()=>{T?.(void 0)},[T]),[K,q]=(0,x.useState)(!1),$=(0,x.useCallback)(e=>{e.preventDefault(),e.dataTransfer.dropEffect="link",q(!0)},[]),Z=(0,x.useCallback)(()=>{q(!1)},[]),Y=(0,x.useCallback)(e=>{e.preventDefault();let t=e.dataTransfer.files?.[0];t&&(R(t),E.current&&(E.current.value="")),q(!1)},[R]),H=(0,x.useCallback)(()=>{C||E.current?.click()},[C]);return(0,s.jsxs)(d.p,{className:(0,h.A)(P().root,a),data:!0,isLoading:j,children:[v&&(0,s.jsxs)("div",{className:(0,h.A)(P().labelRow),children:[(0,s.jsxs)("label",{className:(0,h.A)(P().label,n&&P().disabled),children:[v,": ",S&&(0,s.jsx)("span",{className:P().asterisk,children:"*"})]}),(0,s.jsx)("span",{className:P().labelOption,children:f})]}),y&&(0,s.jsx)(I,{image:V,open:B,shape:A,translateFunc:z,onCloseAttempt:()=>O(!1),onSaveCropImage:T}),(0,s.jsx)(r.r,{actions:l||(!C&&t&&F?(0,s.jsx)(c.K,{className:P().button,iconComponent:o.CA7,size:"small",title:z("Remove image"),variant:"destructive",onClick:W}):null),actionsAlwaysVisible:M,children:(0,s.jsx)(u._,{className:(0,h.A)(P().image,!F&&P()[(0,p.i)("image","empty")],g),imageClassName:_,innerRef:b,outline:!0,placeholder:k,shape:A,size:N,src:F,title:L,onClick:H,onDragOver:$})}),(0,s.jsx)("div",{className:(0,h.A)(P().dropZone,P()[`dropZone--${A}`],!C&&K&&P().active),onDragLeave:Z,onDragOver:$,onDrop:Y,children:z("Drop file here")}),(0,s.jsx)("input",{accept:w,hidden:!0,readOnly:C,ref:E,type:"file",onChange:U})]})}},87801:(e,t,a)=>{"use strict";a.d(t,{g:()=>v});var s=a(80263),r=a(43391);a(53239);var i=a(30795),l=a(12556),n=a(94386),o=a(97930),c=a(13463),u=a(36706),d=a.n(u);let m=e=>{let{onCloseAttempt:t}=e,{t:a}=(0,c.c3)(),{isAboveSm:u}=(0,l.yU)();return(0,s.jsx)(r.$m,{children:(0,s.jsxs)("div",{className:d().content,children:[(0,s.jsx)(r.wt,{children:a("Album submission statuses")}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsxs)(o.xA,{className:d().table,columns:u?"3fr 8fr":"1fr",horizontalSpacing:2,children:[(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"incomplete"})}),(0,s.jsxs)("span",{children:[a("some fields are incomplete"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"complete"})}),(0,s.jsxs)("span",{children:[a("all necessary fields are filled, waiting to be submitted by user to Volumo"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"submitted"})}),(0,s.jsxs)("span",{children:[a("album has been submitted for review, awaiting Volumo curator review"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"scheduled"})}),(0,s.jsxs)("span",{children:[a("album has been approved, pending publication date"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"rejected"})}),(0,s.jsxs)("span",{children:[a("album has been rejected by Volumo curator"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"live"})}),(0,s.jsxs)("span",{children:[a("album is live, available for purchase"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"cancelled"})}),(0,s.jsxs)("span",{children:[a("album has been cancelled"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"unpublished"})}),(0,s.jsxs)("span",{children:[a("album has been unpublished"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("span",{children:(0,s.jsx)(i._,{status:"removed"})}),(0,s.jsxs)("span",{children:[a("album has been removed"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})]}),(0,s.jsx)(r.jl,{className:d().footer,children:(0,s.jsx)(n.$,{className:d().button,onClick:t,children:a("Close")})})]})})},p=e=>{let{open:t,onCloseAttempt:a}=e;return(0,s.jsx)(r.aF,{open:t,openStateHash:"statuses",onCloseAttempt:a,children:(0,s.jsx)(m,{onCloseAttempt:a})})};var h=a(62907),x=a(43959),_=a(3638),g=a(52983),b=a.n(g);let v=e=>{let{className:t,status:a}=e,{isOpen:r,open:l,close:n}=(0,x.F)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.u,{className:(0,_.A)(b().button,t),onClick:l,children:(0,s.jsx)(i._,{status:a,textClassName:b().statusText})}),(0,s.jsx)(p,{open:r,onCloseAttempt:n})]})}},90875:e=>{e.exports={root:"WorkflowSuccession_root__8o1f1"}},94860:e=>{e.exports={root:"Thumb_root__BMJCu",moveButton:"Thumb_moveButton__qjAqr",compact:"Thumb_
1compact__SOr2e"}},95943:e=>{e.exports={root:"SortableItem_root__XvlJE",lefthand:"SortableItem_lefthand__by2v2",wrapper:"SortableItem_wrapper__VhN5P"}},96296:e=>{e.exports={nav:"Breadcrumbs_nav__Po7u8",list:"Breadcrumbs_list__FtuJu",bullet:"Breadcrumbs_bullet__ICHw0"}}},e=>{e.O(0,[4001,7236,6752,8288,5720,7874,4802,5599,7095,2939,4002,636,6593,8792],()=>e(e.s=11715)),_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.