1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6820],{47392:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/edit/invite",function(){return n(55196)}])},55196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{InvitePageInner:()=>N,InviteUrl:()=>w,default:()=>y});var r=n(37876),s=n(95364),l=n(77328),i=n.n(l),a=n(14232),o=n(61875),d=n(88992),c=n(96415),u=n(91408),h=n(89099),x=n(10553),v=n(72702),j=n(67904),f=n(71134),m=n(4186),p=n(48230),b=n.n(p),g=n(11613),A=n(60563);function y(e){let t=(0,h.useRouter)(),{data:n}=(0,x.useSession)(),l=(0,v.cH)(t.query.sellerId),i=l?`/api/edit/invite/seller?sellerId=${l||""}`:void 0,[o,d]=(0,a.useState)();return((0,a.useEffect)(()=>{t.isReady&&!l&&(console.log("going back, router=",t,l),t.back())},[t,l,o]),(0,a.useEffect)(()=>{i&&(console.log("PATH",i),fetch(i).then(async e=>{if(e.status>=400)return t.push("/seller");let n=await e.json();console.log("Fetched seller data",n),d(n)}))},[i]),o)?n?(0,r.jsx)(N,{...e,sellerData:o}):(0,r.jsx)(s.Ay,{children:(0,r.jsx)("section",{children:(0,r.jsx)(j.w0,{})})}):(0,r.jsx)("div",{children:"Loading.."})}function w({inviteCode:e,...t}){let n=(0,f.Jr)(e);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:" p-3",children:(0,r.jsxs)("p",{children:[(0,r.jsx)(m.kn0,{className:"text-brand ml-4 mr-4 inline cursor-pointer",onClick:()=>(0,f.lW)(n,(e,t)=>{(0,g.VX)(e)})}),n]})})})}function N({sellerData:e,...t}){e?.seller;let n=u.Ik().shape({email:u.Yj().email("Title is required"),artistName:u.Yj()}),l={resolver:(0,c.t)(n)},{register:a,handleSubmit:h,watch:x,reset:v,setValue:j,formState:m,control:p}=(0,d.mN)(l),{errors:y}=m;x();let k=(0,f.Jr)(e.userInviteCode);return(0,r.jsxs)(s.Ay,{...t,children:[(0,r.jsx)(i(),{children:(0,r.jsx)("title",{children:"Invite"})}),(0,r.jsxs)(o.cm,{children:[(0,r.jsx)("div",{}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:" mt-4 flex flex-col gap-2 text-brand",children:(0,r.jsx)(b(),{href:`/manage?sellerId=${e.id}`,children:(0,r.jsx)(A.A,{className:"text-3xl"})})}),(0,r.jsx)(o.Av,{children:"Invite an Artist, Band or Label"}),(0,r.jsx)(o.Pz,{children:"Invite your friends and you both benefit."}),(0,r.jsxs)("div",{className:"mt-4 p-2 text-base leading-6",children:[(0,r.jsx)("div",{children:"For each artist, band or label that joins as a result of your invitation, and who goes on to sell at least one track or release, you will both:"}),(0,r.jsxs)("div",{children:["- receive an additional 0.25% discount on your revenue share. ",(0,r.jsx)("span",{className:"text-sm text-neutral-400",children:"(Down to a minimum share of 1%)"})]}),(0,r.jsx)("div",{className:"mt-4",children:"Those who grow the site the most will also benefit in other ways, including:"}),(0,r.jsx)("ul",{children:"- priority for events"}),(0,r.jsx)("ul",{children:"- featured slots on Artcore"})]}),(0,r.jsx)(o.Pz,{children:"Your Personal Invite URL"}),(0,r.jsx)("div",{className:"text-base p-2 leading-6 child:mt-2",children:(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"inline mr-1 cursor-pointer text-brand",onClick:()=>(0,f.lW)(k,(e,t)=>{(0,g.VX)(e)}),children:"Copy"}),"your personalised link and give it to other artists and labels. When they join using your link you will be registered as their referrer and get the benefits listed above."]})}),(0,r.jsx)("div",{className:"bg-neutral-900 rounded-xl",children:(0,r.jsx)(w,{inviteCode:e.userInviteCode,...t})}),(0,r.jsx)("p",{className:"p-2 mt-2 ",children:"Don't forget to tell them something you like about Artcore!"})]})]})]})}},60563:(e,t,n)=>{"use strict";var r=n(29563);t.A=void 0;var s=r(n(78652)),l=n(37876);t.A=(0,s.default)((0,l.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack")},70827:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>s.A,createChainedFunction:()=>l,createSvgIcon:()=>i.A,debounce:()=>a.A,deprecatedPropType:()=>o,isMuiElement:()=>d.A,ownerDocument:()=>c.A,ownerWindow:()=>u.A,requirePropFactory:()=>h,setRef:()=>x,unstable_ClassNameGenerator:()=>A,unstable_useEnhancedEffect:()=>v.A,unstable_useId:()=>j.A,unsupportedProp:()=>f,useControlled:()=>m.A,useEventCallback:()=>p.A,useForkRef:()=>b.A,useIsFocusVisible:()=>g.A});var r=n(78217),s=n(29548);let l=n(62435).A;var i=n(60699),a=n(7317);let o=function(e,t){return()=>null};var d=n(98),c=n(98356),u=n(22041);n(44501);let h=function(e,t){return()=>null},x=n(22775).A;var v=n(35930),j=n(49008);
1let f=function(e,t,n,r,s){return null};var m=n(21763),p=n(44876),b=n(26418),g=n(94223);let A={configure:e=>{r.A.configure(e)}}},78652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(70827)}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=47392)),_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.