1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6820],{47392:(e,s,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/edit/invite",function(){return n(55196)}])},55196:(e,s,n)=>{"use strict";n.r(s),n.d(s,{InvitePageInner:()=>k,InviteUrl:()=>w,default:()=>N});var i=n(37876),t=n(95364),l=n(77328),r=n.n(l),a=n(14232),o=n(61875),d=n(88992),c=n(96415),h=n(91408),u=n(89099),x=n(10553),j=n(72702),m=n(67904),v=n(71134),f=n(4186),b=n(48230),g=n.n(b),p=n(11613),y=n(60563);function N(e){let s=(0,u.useRouter)(),{data:n}=(0,x.useSession)(),l=(0,j.cH)(s.query.sellerId),r=l?`/api/edit/invite/seller?sellerId=${l||""}`:void 0,[o,d]=(0,a.useState)();return((0,a.useEffect)(()=>{s.isReady&&!l&&(console.log("going back, router=",s,l),s.back())},[s,l,o]),(0,a.useEffect)(()=>{r&&(console.log("PATH",r),fetch(r).then(async e=>{if(e.status>=400)return s.push("/seller");let n=await e.json();console.log("Fetched seller data",n),d(n)}))},[r]),o)?n?(0,i.jsx)(k,{...e,sellerData:o}):(0,i.jsx)(t.Ay,{children:(0,i.jsx)("section",{children:(0,i.jsx)(m.w0,{})})}):(0,i.jsx)("div",{children:"Loading.."})}function w({inviteCode:e,...s}){let n=(0,v.Jr)(e);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" p-3",children:(0,i.jsxs)("p",{children:[(0,i.jsx)(f.kn0,{className:"text-brand ml-4 mr-4 inline cursor-pointer",onClick:()=>(0,v.lW)(n,(e,s)=>{(0,p.VX)(e)})}),n]})})})}function k({sellerData:e,...s}){e?.seller;let n=h.Ik().shape({email:h.Yj().email("Title is required"),artistName:h.Yj()}),l={resolver:(0,c.t)(n)},{register:a,handleSubmit:u,watch:x,reset:j,setValue:m,formState:f,control:b}=(0,d.mN)(l),{errors:N}=f;x();let I=(0,v.Jr)(e.userInviteCode);return(0,i.jsxs)(t.Ay,{...s,children:[(0,i.jsx)(r(),{children:(0,i.jsx)("title",{children:"Invite"})}),(0,i.jsxs)(o.cm,{children:[(0,i.jsx)("div",{}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:" mt-4 flex flex-col gap-2 text-brand",children:(0,i.jsx)(g(),{href:`/manage?sellerId=${e.id}`,children:(0,i.jsx)(y.A,{className:"text-3xl"})})}),(0,i.jsx)(o.Av,{children:"Invite an Artist, Band or Label"}),(0,i.jsx)(o.Pz,{children:"Invite your friends and you both benefit."}),(0,i.jsxs)("div",{className:"mt-4 p-2 text-base leading-6",children:[(0,i.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,i.jsxs)("div",{children:["- receive an additional 0.25% discount on your revenue share. ",(0,i.jsx)("span",{className:"text-sm text-neutral-400",children:"(Down to a minimum share of 1%)"})]}),(0,i.jsx)("div",{className:"mt-4",children:"Those who grow the site the most will also benefit in other ways, including:"}),(0,i.jsx)("ul",{children:"- priority for events"}),(0,i.jsx)("ul",{children:"- featured slots on Artcore"})]}),(0,i.jsx)(o.Pz,{children:"Your Personal Invite URL"}),(0,i.jsx)("div",{className:"text-base p-2 leading-6 child:mt-2",children:(0,i.jsxs)("p",{children:[(0,i.jsx)("span",{className:"inline mr-1 cursor-pointer text-brand",onClick:()=>(0,v.lW)(I,(e,s)=>{(0,p.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,i.jsx)("div",{className:"bg-neutral-900 rounded-xl",children:(0,i.jsx)(w,{inviteCode:e.userInviteCode,...s})}),(0,i.jsx)("p",{className:"p-2 mt-2 ",children:"Don't forget to tell them something you like about Artcore!"})]})]})]})}}},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.