PageSourceSearch

https://schoolhouse.world/_next/static/chunks/pages/refer-28a9f133dd44c666.js

js schoolhouse.world collected 2026-09-24 09:14:25 UTC 5,648 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9306],{60086:(e,r,n)=>{"use strict";n.d(r,{A:()=>x});var i=n(18153),o=n(39955),l=n(59803),a=n(38443),t=n(38993),d=n(92594),s=n(21186),c=n(35176),h=n(81727),u=n(64829),p=n(89201),f=n(14232),b=n(81188),w=n(9496),m=n(23538),g=n(41130);function x({keys:e,timeFrames:r=s.$,worldId:n}){let y=function({keys:e,timeFrames:r,excludeCurrentUser:n=!1,compact:o=!1,worldId:l=null}){let a=(0,g._)(),[t,d]=(0,f.useState)([]);return f.useEffect(()=>{w.Ay.UNSAFE_getLeaderboards({keys:e,timeFrames:r,excludeCurrentUser:n,compact:o,worldId:l}).then(e=>d(e)).catch(e=>{a({title:(0,i.Y)(m.A,{text:`${e?.message??e}`,maxLines:1/0}),status:"error"}),b.A.error("Error retrieving leaderboards",{err:e})})},[l]),t}({keys:e,timeFrames:r,worldId:n}),[A,Y]=(0,u.A)({queryKey:"show",defaultTab:s.O7.Week,tabs:r});return(0,i.FD)(o.a,{children:[(0,i.Y)(l.s,{justify:"center",mb:"48px",children:(0,i.Y)(h.A,{variant:"rounded",tabToLabel:s.zS,currentTab:A,tabToUrl:Y,tabs:r})}),0===y.length?(0,i.Y)(a.o,{my:"96px",children:(0,i.Y)(c.A,{})}):null,(0,i.Y)(d.A,{breakpointCols:{default:1===e.length?1:2,768:1},className:"shw-leaderboard",columnClassName:"shw-leaderboard_column",css:(0,t.AH)("display:flex;margin-left:-30px;width:auto;.shw-leaderboard_column{padding-left:32px;background-clip:padding-box;}.shw-leaderboard_column > div{margin-bottom:32px;}"),children:y.filter(e=>e.timeFrame===A).map(e=>(0,i.Y)(o.a,{children:(0,i.Y)(p.A,{leaderboard:e})},`${e.key}-${e.timeFrame}`))})]})}},66260:(e,r,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/refer",function(){return n(70313)}])},70313:(e,r,n)=>{"use strict";n.r(r),n.d(r,{__N_SSP:()=>R,default:()=>T});var i=n(18153),o=n(42720),l=n(82736),a=n(76032),t=n(39955),d=n(91921),s=n(38890),c=n(52276),h=n(97460),u=n(14232),p=n(41954),f=n(19515),b=n(31212),w=n(55720),m=n(54443),g=n(75292),x=n(74175),y=n(9496),A=n(21186),Y=n(16425),_=n(25097),k=n(46304),S=n(49783),F=n(60086),D=n(41130),v=n(44228),C=n(83756);let E=(0,Y.A)(()=>{let e=(0,g.Jd)(),r=(0,m.I)(),n=(0,D._)(),Y=r(w.Ay.countReferredUsersByUserId(e.id))??0,E=r(w.Ay.countReferredTutorsByUserId(e.id))??0,R=r.one(b.A.where({userId:e.id})),[T,B]=(0,u.useState)(R(b.A.referral_code)?.toLowerCase()??null),[P]=(0,x.A)(async e=>{e.preventDefault(),B(await y.Ay.getPersonalReferralCode({}))},[],"Get Personal Referral Code"),$=(0,_.Ed)({type:"referred_user",payload:{userId:-1}}),N=(0,_.Ed)({type:"referred_by_user",payload:{userId:-1}});return(0,i.Y)(S.A,{title:"Refer a Friend",children:(0,i.FD)(o.m,{children:[(0,i.Y)(l.D,{size:"2xl",as:"h2",mb:"16px",children:"Refer a Friend"}),(0,i.FD)(a.B,{direction:"row",spacing:5,mb:"32px",children:[(0,i.FD)(a.B,{direction:"row",spacing:2,align:"center",children:[(0,i.Y)(h.g,{icon:c.nWR,color:(0,p.A)("fg.subtle")}),(0,i.FD)(t.a,{children:[Y-E," Learners Referred"]})]}),(0,i.FD)(a.B,{direction:"row",spacing:2,align:"center",children:[(0,i.Y)(h.g,{icon:c.nWR,color:(0,p.A)("fg.subtle")}),(0,i.FD)(t.a,{children:[E," Tutors Referred"]})]})]}),(0,i.Y)(v.A,{variant:"warning",mb:6,icon:c.iHh,children:(0,i.FD)(t.a,{children:[(0,i.FD)(d.E,{fontWeight:600,children:["Give ",N," SP, get ",$," SP"]}),(0,i.FD)(d.E,{children:["Each time a friend joins Schoolhouse through your referral code,"," ",N===$?`you'll both get ${(0,f.td)(N,"Schoolhouse Point")}`:`you and your friend will get ${(0,f.td)($,"Schoolhouse Point")} and ${(0,f.td)(N,"Schoolhouse Point")} respectively`,"!"]})]})}),(0,i.Y)(t.a,{mb:"32px",children:null!=T?(0,i.FD)(t.a,{children:[(0,i.FD)(C.A,{mb:"24px",children:[(0,i.Y)(l.D,{size:"lg",mb:"12px",children:"Share SAT Bootcamp Program"}),(0,i.Y)(d.E,{mb:"16px",children:"Know someone who could benefit from SAT tutoring? Use this link to share the SAT Bootcamp program."}),(0,i.FD)(a.B,{direction:{base:"column",sm:"row"},spacing:"8px",justify:"center",align:"center",children:[(0,i.Y)(t.a,{textOverflow:"clip",overflow:"hidden",whiteSpace:"nowrap",width:"100%",padding:"8px",border:"2px solid",borderColor:"border",borderRadius:"8px",flex:1,maxWidth:"400px",children:(0,k.Bip)("learner",{ref:T})}),(0,i.Y)(s.$,{width:["100%","auto"],onClick:async()=>{await navigator.clipboard.writeText((0,k.Bip)("learner",{ref:T})),n({title:"Copied referral link!",status:"success"})},children:"Copy Link"})]})]}),(0,i.FD)(C.A,{children:[(0,i.Y)(l.D,{size:"lg",mb:"12px",children:"Share Schoolhouse"}),(0,i.Y)(d.E,{mb:"16px",children:"Use this personalized referral link to share Schoolhouse with friends, classmates, teachers, and anyone else who could benefit."}),(0,i.FD)(a.B,{direction:{base:"column",sm:"row"},spacing:"8px",justify:"center",align:"center",children:[(0,i.Y)(t.a,{textOverflow:"clip",overflow:"hidden",
1whiteSpace:"nowrap",width:"100%",padding:"8px",border:"2px solid",borderColor:"border",borderRadius:"8px",flex:1,maxWidth:"400px",children:(0,k.lbl)(T)}),(0,i.Y)(s.$,{width:["100%","auto"],onClick:async()=>{await navigator.clipboard.writeText((0,k.lbl)(T)),n({title:"Copied referral link!",status:"success"})},children:"Copy Link"})]})]})]}):(0,i.FD)(a.B,{direction:"column",align:"center",spacing:"16px",children:[(0,i.Y)(d.E,{children:"Click the following button to generate your personalized referral link. You can use this link to share Schoolhouse.world with friends, classmates, teachers, and anyone else."}),(0,i.Y)(t.a,{children:(0,i.Y)(s.$,{variant:"accent",onClick:P,children:"Get my referral link"})})]})}),(0,i.Y)(F.A,{keys:[A.nw.LearnersReferred,A.nw.TutorsReferred]})]})})},{userRoles:["user:basic"]});var R=!0;let T=E}},e=>{e.O(0,[6425,4614,636,6593,8792],()=>e(e.s=66260)),_N_E=e.O()}]);
2//# sourceMappingURL=refer-28a9f133dd44c666.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.