PageSourceSearch

https://schoolhouse.world/_next/static/chunks/pages/certification/score-report-00c8e683a8bb79d6.js

js schoolhouse.world collected 2026-10-01 10:43:52 UTC 6,937 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{13419:(e,r,t)=>{"use strict";function i(e,r){return e.find(e=>e===r)??null}t.d(r,{A:()=>i})},60037:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>I,default:()=>j});var i=t(18153),n=t(42720),l=t(16425),o=t(76032),a=t(82736),c=t(91921),d=t(39955),u=t(55075),s=t(59803),h=t(38890),p=t(89099),f=t(14232),g=t(13419);let y=["sat","ap"];var Y=t(74175),m=t(9496),w=t(87855),x=t(46304),D=t(24439),F=t(17155),b=t(46860),A=t(44228);let v={granted:null,"already-certified":"You were already certified in this topic.","pending-review":"You already have a request in review for this topic, so we left it alone."};function S({topicResult:e}){let r=v[e.grantStatus];return(0,i.FD)(s.s,{align:"center",gap:"16px",children:[(0,i.Y)(F.e,{borderRadius:"md",src:e.topicIcon,name:e.topicName,width:"48px",height:"48px"}),(0,i.FD)(o.B,{spacing:"4px",children:[(0,i.FD)(a.D,{size:"sm",as:"h3",children:[e.courseName," - ",e.topicName]}),(0,i.Y)(c.E,{color:"fg.muted",fontSize:"sm",children:r??e.reason})]})]})}function E({result:e,onStartOver:r}){if("unreadable"===e.status)return(0,i.FD)(o.B,{spacing:"24px",children:[(0,i.Y)(A.A,{variant:"warning",children:"We couldn't read that score report. Make sure you uploaded the original PDF from the College Board, without cropping or re-saving it."}),(0,i.FD)(c.E,{color:"fg.muted",children:["You can try a different file, or"," ",(0,i.Y)(b.A,{href:(0,x.m4D)("get-certified"),children:"request a certification manually"})," ","and our team will review your report by hand."]}),(0,i.Y)(s.s,{justify:"flex-end",children:(0,i.Y)(h.$,{onClick:r,children:"Try another file"})})]});if(0===e.topicResults.length)return(0,i.FD)(o.B,{spacing:"24px",children:[(0,i.Y)(A.A,{variant:"info",children:"We read your score report, but the scores on it don't qualify for a certification yet."}),(0,i.FD)(c.E,{color:"fg.muted",children:["If you think this is wrong, you can"," ",(0,i.Y)(b.A,{href:(0,x.m4D)("get-certified"),children:"request a certification manually"})," ","and our team will take a look."]}),(0,i.Y)(s.s,{justify:"flex-end",children:(0,i.Y)(h.$,{onClick:r,children:"Try another file"})})]});let t=e.topicResults.filter(e=>"granted"===e.grantStatus),n=e.topicResults.filter(e=>"granted"!==e.grantStatus);return(0,i.FD)(o.B,{spacing:"32px",children:[0===t.length?(0,i.FD)(A.A,{variant:"info",children:["Your score report qualified you for ",e.topicResults.length," topic",1===e.topicResults.length?"":"s",", but we didn't need to certify you in any of them."]}):(0,i.FD)(o.B,{spacing:"16px",children:[(0,i.FD)(A.A,{variant:"success",children:["You're now certified in ",t.length," topic",1===t.length?"":"s","!"]}),(0,i.Y)(o.B,{spacing:"16px",children:t.map(e=>(0,i.Y)(S,{topicResult:e},e.topicId))}),(0,i.FD)(c.E,{color:"fg.muted",children:["Find your certifications on your"," ",(0,i.Y)(b.A,{href:(0,x.m4D)("get-certified"),children:"certification page"}),". We may grant a few related topics shortly after, so give it a minute before checking."]})]}),0===n.length?null:(0,i.FD)(o.B,{spacing:"16px",children:[(0,i.Y)(a.D,{size:"md",as:"h2",children:"Topics we left as they were"}),n.map(e=>(0,i.Y)(S,{topicResult:e},e.topicId))]}),(0,i.Y)(s.s,{justify:"flex-end",children:(0,i.Y)(b.A,{href:(0,x.yF_)(),children:(0,i.Y)(h.$,{variant:"outline",children:"See My Tutoring"})})})]})}var R=t(44013),k=t(99430),_=t(9827),C=t(68710);function B({value:e,onChange:r}){return(0,i.Y)(R.z,{value:e??void 0,onChange:e=>{let t=(0,g.A)(y,e);null!=t&&r(t)},children:(0,i.Y)(k.r,{columns:{base:1,md:2},spacing:"16px",children:w.kZ.map(r=>{let t=e===r.type;return(0,i.Y)(d.a,{border:"2px solid",borderColor:t?"primary.border":"border",bg:t?"primary.subtle":void 0,borderRadius:"10px",height:"100%",py:"24px",px:"16px",children:(0,i.Y)(_.s,{value:r.type,spacing:"16px",width:"full",alignItems:"flex-start",children:(0,i.FD)(o.B,{spacing:"8px",children:[(0,i.Y)(C.A,{src:r.iconSrc,alt:r.label,width:"40px",height:"40px",borderRadius:"8px"}),(0,i.Y)(c.E,{fontWeight:"bold",children:r.label}),(0,i.Y)(c.E,{color:"fg.muted",fontSize:"sm",children:r.description})]})})},r.type)})})})}var T=t(57936),N=t(99784);function P(){let e=(0,p.useRouter)(),[r,t]=(0,f.useState)((0,g.A)(y,e.query[x.Ebe])),[n,l]=(0,f.useState)({sat:null,ap:null}),[F,A]=(0,f.useState)(null),[v,S]=(0,f.useState)(null),R=null==r?null:n[r],k=null!=R&&F===R,[_,C]=(0,Y.A)(async()=>
1{if(null==R||null==r)return;let{userUploadId:e}=await (0,D.A)({file:R,fileType:R.type,target:{type:"score_report"}});S(await m.Ay.grantCertificationsFromScoreReport({userUploadId:e,type:r}))},[R,r],"Grant Certifications From Score Report");return null!=v?(0,i.Y)(E,{result:v,onStartOver:()=>{S(null),l({sat:null,ap:null}),A(null)}}):(0,i.FD)(o.B,{spacing:"32px",children:[(0,i.Y)(a.D,{size:"2xl",as:"h1",children:"Score Report Upload"}),(0,i.FD)(c.E,{children:["Upload an official score report and we'll certify you in every topic it qualifies you for, right away. You need a ",w.gg,"+ in SAT Math, a"," ",w.C7,"+ in SAT Reading & Writing, or a ",w.ek," or higher on an AP exam."]}),(0,i.FD)(o.B,{spacing:"16px",children:[(0,i.FD)(c.E,{fontWeight:"bold",children:["Which report are you uploading?",(0,i.Y)(N.A,{})]}),(0,i.Y)(B,{value:r,onChange:t})]}),null==r?null:(0,i.FD)(o.B,{spacing:"16px",children:[(0,i.FD)(c.E,{fontWeight:"bold",children:["Upload your score report",(0,i.Y)(N.A,{})]}),"sat"===r?(0,i.FD)(c.E,{color:"fg.muted",children:["Visit"," ",(0,i.Y)(b.A,{href:"https://mysat.collegeboard.org/dashboard",isExternal:!0,children:"your SAT dashboard"}),', find the test you want to report, click "Download Your Score Report", and upload the PDF you get.']}):(0,i.FD)(c.E,{color:"fg.muted",children:["Visit"," ",(0,i.Y)(b.A,{href:"https://myap.collegeboard.org",isExternal:!0,children:"your AP account"}),", download your AP Student Score Report, and upload the PDF you get."]}),(0,i.Y)(T.A,{maxFiles:1,maxSizeMegabytes:w.NY,files:null==R?[]:[R],onChange:e=>l({...n,[r]:e[0]??null}),acceptedFileTypes:["application/pdf"]}),null==R?null:(0,i.FD)(d.a,{children:[(0,i.Y)(u.S,{isChecked:k,onChange:e=>A(e.target.checked?R:null),children:"I confirm that this is my own score report and that it has not been tampered with."}),(0,i.Y)(N.A,{})]})]}),(0,i.Y)(s.s,{justify:"flex-end",children:(0,i.Y)(h.$,{onClick:_,isLoading:C,isDisabled:null==R||!k,children:"Get certified"})})]})}var W=t(49783),q=t(65946);let z=(0,l.A)(function(){return(0,i.Y)(W.A,{title:"Get certified with a score report",header:(0,i.Y)(q.A,{heading:{title:"Get certified with a score report"}}),children:(0,i.Y)(n.m,{children:(0,i.Y)(P,{})})})},{userRoles:["user:approved"]});var I=!0;let j=z},94600:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/certification/score-report",function(){return t(60037)}])}},e=>{e.O(0,[6755,6425,2773,5946,636,6593,8792],()=>e(e.s=94600)),_N_E=e.O()}]);
2//# sourceMappingURL=score-report-00c8e683a8bb79d6.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.