PageSourceSearch

https://www.mytutor.co.uk/_next/static/chunks/pages/pupil-survey-ae66dd718220438d.js

js mytutor.co.uk collected 2026-10-02 03:17:00 UTC 12,932 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8bcd3529-8fe4-4147-bf7c-ff4036b7b53f",e._sentryDebugIdIdentifier="sentry-dbid-8bcd3529-8fe4-4147-bf7c-ff4036b7b53f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5239],{89361:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pupil-survey",function(){return n(92150)}])},92150:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>eb,default:()=>ef});var i=n(18153),r=n(14232),o=n(38993),s=n(10253),a=n(77328),l=n.n(a);let c=["pink-hexagon.svg","teal-triangle-dotted.svg","black-square.svg","pink-circle.svg","red-triangle.svg","yellow-square.svg","pink-hexagon.svg","pink-oval.svg","yellow-triangle.svg","teal-hexagon.svg","pink-hexagon.svg","pink-hexagon.svg"],u=["yellow-square-dashed.svg","yellow-circle.svg","red-hexagon.svg","yellow-bracket.svg","teal-cross.svg","black-hexagon.svg","yellow-square-dashed.svg","teal-triangle.svg","red-circle.svg","pink-cross.svg","yellow-square-dashed.svg","yellow-square-dashed.svg"],d={PRE:"pre",MID:"mid"},p=["external-screen","landing-screen","question-screen.can-do-well-in-subject","question-screen.concentrate-hard-in-subject","question-screen.learning-subject-is-fun","question-screen.care-about-doing-well-in-subject","question-screen.feel-good-about-my-subject-knowledge","question-screen.can-improve-in-subject-if-really-want-to","question-screen.like-learning-new-things-in-subject","question-screen.try-my-best-in-subject","question-screen.learning-subject-is-important-to-me","ending-screen"];var h=n(48230),g=n.n(h);let m=(0,o.AH)("margin-top:5vh;display:flex;justify-content:center;align-items:center;position:relative;"),b=(0,o.AH)("color:",s.colors.neutral8,";font-size:1.5rem;font-weight:700;text-decoration:none;"),f=()=>(0,i.Y)("div",{css:m,children:(0,i.Y)(g(),{href:"/",css:b,"aria-label":"MyTutor home",children:"MyTutor"})}),y=r.createContext({pupil_forename:"",learner_forename:"",subject_name:"",pupil_id:0,subject_id:0,subject_level_id:0,school_id:0,stage:"pre",redirect_url:"",learner_id:0,learner_type:"PUPIL",tutor_id:0,tutor_forename:""}),x=y.Provider,w=async(e,t,n)=>{let i=((e,t,n)=>({timestamp:new Date,stage_id:n.stage,screen_id:e,school_id:n.school_id,pupil_id:n.pupil_id,subject_id:n.subject_id,level_id:n.subject_level_id,learner_id:n.learner_id,learner_type:n.learner_type,learner_forename:n.learner_forename,tutor_id:n.tutor_id,tutor_forename:n.tutor_forename,interaction:t}))(e,t,n);try{let e=await fetch("".concat("https://www.mytutor.co.uk/api-gateway/v1","/pupil-attitudes"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!e.ok)throw Error("HTTP ".concat(e.status))}catch(e){console.error("Failed posting pupil survey interaction",e)}},v=(e,t,n,i)=>{w(e,{action:"navigation",landed:t,button_id:n},i)};var k=n(47256),_=n.n(k);let Y=e=>{let{shape:t,shapeStyle:n}=e;return(0,i.Y)("div",{css:n,children:(0,i.Y)("img",{src:"/pupil-survey/brand-shapes/".concat(t),alt:"MyTutor multi-coloured geometric brand shape"})})},D=(0,o.AH)("position:fixed;line-height:0;@media (max-width:",s.breakpoints.largeDesktop,"px){display:none;}transition:bottom ",s.timings.medium," ease-in-out,right ",s.timings.medium," ease-in-out,top ",s.timings.medium," ease-in-out,left ",s.timings.medium," ease-in-out;"),A=(0,o.AH)(D,";bottom:0;right:0;@media (max-width:1500px){right:-100px;}@media (max-height:800px){bottom:-100px;}"),F=(0,o.AH)(D,";top:0;left:0;@media (max-width:1500px){left:-100px;}@media (max-height:800px){top:-100px;}"),H=e=>{let{currentStep:t=1}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)(Y,{shape:c[t-1],shapeStyle:F}),(0,i.Y)(Y,{shape:u[t-1],shapeStyle:A})]})},q=(0,o.AH)("width:38px;height:38px;background-color:transparent;border:0;border-radius:100%;box-shadow:none;outline:0;cursor:pointer;:hover{background-color:",s.colors.bgcolor2,";}"),j=e=>{let{id:t,onClick:n,icon:r}=e;return(0,i.Y)("button",{id:t,css:q,onClick:n,children:(0,i.Y)("img",{src:"/pupil-survey/icons/".concat(r,".svg"),alt:"back button icon"})})},T=(0,o.AH)("height:5px;background-color:",s.colors.neutral3,";flex-grow:1;"),C=e=>{let{currentStep:t=1,steps:n}=e;return(0,i.Y)("div",{css:T,children:(0,i.Y)("span",{css:(0,o.AH)("width:",100/n*(t-1),"%;display:block;height:5px;background-color:",s.colors.primary5,";transition:width 0.3s ease-in-out;")})})},S=(0,o.AH)("margin:15vh auto 10vh;max-width:420px;display:flex;justify-content:center;align-items:center;position:relative;@media (max-width:640px){padding:0px 24px 0px 70px;margin:4rem auto;}"),I=(0,o.AH)("position:absolute;
1left:-15%;@media (max-width:640px){left:5%;}"),E=e=>{let{previousStep:t,currentStep:n=1}=e,o=(0,r.useContext)(y),s=p.length-1;return(0,i.FD)(i.FK,{children:[(0,i.Y)(H,{currentStep:n}),n>1&&n<s&&(0,i.FD)("div",{css:S,children:[(0,i.Y)(C,{currentStep:n,steps:s-2}),(0,i.Y)("div",{css:I,children:(0,i.Y)(j,{id:"back-button",icon:"black-back-icon",onClick:()=>(e=>{let{previousStep:t,currentStep:n,context:i}=e;v(p[n],p[n-1],"back-button",i),"function"==typeof t&&t()})({previousStep:t,currentStep:n,context:o})})})]})]})},N=(0,o.AH)("text-align:center;margin-top:12vh;"),P=(0,o.AH)("margin-bottom:25px;"),z=(0,o.AH)("width:64px;height:64px;margin:24px auto;border:6px solid ",s.colors.neutral3,";border-top-color:",s.colors.primary5,";border-radius:50%;animation:pupil-survey-spin 1s linear infinite;@keyframes pupil-survey-spin{to{transform:rotate(360deg);}}"),L=(0,o.AH)("font-size:20px;"),K=()=>{let e=(0,r.useContext)(y);return(0,r.useEffect)(()=>{v(p[p.length-1],p[p.length-1],null,e),(e=>{setTimeout(function(){"STUDENT"!==e.learner_type?window.location.href="".concat(e.redirect_url,"?stage=").concat(e.stage.toUpperCase(),"&subject=").concat(e.subject_id,"&level=").concat(e.subject_level_id):window.location.href=e.redirect_url},3e3)})(e)},[]),(0,i.FD)("div",{css:N,children:[(0,i.Y)("img",{src:"/pupil-survey/icons/thumbs-up-icon.svg",alt:"thumbs up icon",css:P}),(0,i.Y)("h1",{children:"Thank you, ".concat(e.pupil_forename,"!")}),(0,i.Y)("div",{"aria-label":"Loading",css:z}),"STUDENT"!==e.learner_type?(0,i.Y)("p",{children:"Please wait, you are being taken back to your lesson dashboard..."}):(0,i.Y)("p",{css:L,children:"Please wait, you are being taken back..."})]})},M=(0,o.AH)("h1{font-size:48px;@media (min-width:",s.breakpoints.tablet,"px){font-size:60px;}}p{font-size:20px;}"),U=()=>{let{subject_name:e,pupil_forename:t,stage:n,tutor_forename:o,learner_type:s}=(0,r.useContext)(y);return(0,i.Y)(i.FK,{children:(()=>{switch(n){case d.PRE:return"STUDENT"!==s?(0,i.FD)(i.FK,{children:[(0,i.FD)("h1",{children:["How do you feel about ",e,", ",t,"?"]}),(0,i.Y)("p",{children:"Before you start your first lesson, help your tutor get to know you by filling out this super quick survey."})]}):(0,i.FD)("div",{css:M,children:[(0,i.Y)("h1",{children:"Personalise your lessons"}),(0,i.FD)("p",{children:["Take this survey ",(0,i.Y)("b",{children:"(2 mins)"})," to help"," ",(0,i.Y)("b",{children:o})," design lessons around your needs."]})]});case d.MID:return(0,i.FD)(i.FK,{children:[(0,i.FD)("h1",{children:["How do you feel about ",e," now, ",t,"?"]}),(0,i.FD)("p",{children:["You've had six ",e," lessons, awesome work! Tell us how you're feeling by filling out this super quick survey."]})]});default:return(0,i.FD)(i.FK,{children:[(0,i.FD)("h1",{children:["How do you feel about ",e," now, ",t,"?"]}),(0,i.FD)("p",{children:["Now you've had ten ",e," lessons (amazing!), tell us how you're feeling about ",e,"."]})]})}})()})},O=e=>(0,o.AH)("background-color:","secondary"===e?s.colors.neutral11:s.colors.primary5,";font-size:13px;height:48px;border-radius:4px;border-color:transparent;font-weight:bold;cursor:pointer;pointer-events:auto;color:",s.colors.neutral8,";:hover{background-color:","secondary"===e?s.colors.primary5:s.colors.primary7,";color:","secondary"===e?s.colors.neutral8:s.colors.neutral1,";transition:background-color linear ",s.timings.medium,",color linear ",s.timings.quick,";}"),R=(0,o.AH)("width:182px;margin:30px 15px;"),B=(0,o.AH)("@media (max-width:640px){width:100%;margin:0px 0px 24px 0px;}"),X=(0,o.AH)("width:281px;margin-top:20px;display:block;:nth-of-type(2){margin-top:12px;}@media (min-width:",s.breakpoints.tablet,"px){width:320px;}"),G=e=>{let{label:t,onClick:n,kind:r}=e;return(0,i.Y)("button",{onClick:n,css:[O(r),R],children:t})},J=e=>{let{label:t,onClick:n,kind:r}=e;return(0,i.Y)("button",{onClick:n,css:[O(r),X],children:t})},W=e=>{let{label:t,onClick:n,kind:r}=e;return(0,i.Y)("button",{onClick:n,css:[O(r),R,B],children:t})},Q=(0,o.AH)("text-align:center;margin-top:20vh;"),V=e=>{let{onStart:t}=e;return(0,i.FD)("div",{css:Q,children:[(0,i.Y)(U,{}),(0,i.Y)("p",{children:"Read each of the statements and let us know how you feel about each one - be honest!"}),(0,i.FD)("p",{children:["It will take you ",(0,i.Y)("b",{children:"less than two minutes"})]}),(0,i.Y)(G,{label:"Let's go",onClick:t})]})},Z=(0,o.AH)("text-align:center;margin-top:10vh;margin-right:1rem;margin-left:1rem;"),$=(0,o.AH)("display:inline-block;"),ee=(0,o.AH)("width:128px;"),et=(0,o.AH)("margin-top:0px;font-weight:600;font-size:24px;letter-spacing:0.36px;"),en=e=>{let{onStart:t,onBack:n}=e;return(0,i.FD)("div",{css:Z,children:[(0,i.Y)("img",{src:"/pupil-survey/icons/paper-plane.svg",alt:"paper plane icon",css:ee}),(0,i.Y)("p",{css:et,children:"Message sent"}),(0,i.Y)(U,{}),(0,i.FD)("div",{css:$,children:[(0,i.Y)(J,{label:"Start survey",onClick:t}),(0,i.Y)(J,{label:"Back to messages",onClick:n,kind:"secondary"})]})]})},ei=(e,t)=>(v(p[1],p[2],"start-survey-button",e),t()),er=e=>{let{nextStep:t}=e,n=(0,r.useContext)(y);return(0,i.Y)(i.FK,{children:"STUDENT"!==n.learner_type?(0,i.Y)(V,{onStart:()=>ei(n,t)}):(0,i.Y)(en,{onStart:()=>ei(n,t),onBack:()=>(e=>{v(p[1],p[0],"skip-survey-button",e),window.location.href=e.redirect_url})(n)})})},eo=(0,o.AH)("text-align:center;@media (max-width:640px){padding:0px 24px;}h2{font-size:36px;@media (max-width:640px){margin-bottom:32px;line-height:1.333;}}p{color:#5c5c5c;margin-top:50px;}"),es=(0,o.AH)("margin:0 auto;max-width:1100px;display:flex;justify-content:center;align-items:center;justify-content:center;flex-wrap:wrap;@media (max-width:640px){flex-direction:column;flex-wrap:nowrap;}"),ea=e=>{let{nextStep:t,currentStep:n=1,question:o,answers:s}=e,a=(0,r.useContext)(y);return(0,i.FD)("div",{css:eo,children:[(0,i.Y)("h2",{children:o}),(0,i.Y)("div",{css:es,children:s.map(e=>(0,i.Y)(W,{label:e,kind:"secondary",onClick:()=>((e,t,n,i)=>{w(p[t],{action:"selection",button_id:"answer-button",button_text:e},i),"function"==typeof n&&n()})(e,n,t,a)},e))}),(0,i.Y)("p",{children:"Your answers will help us to understand you better."})]})},el={enterRight:"fade-in",enterLeft:"fade-in",exitRight:"fade-out",exitLeft:"fade-out"},ec=()=>{let e=(0,r.useContext)(y).subject_name,t=["Strongly disagree","Disagree","Not sure","Agree","Strongly agree"],n=["Hardly ever","Occasionally","About half the time","Usually","Nearly always"];return(0,i.FD)(_(),{nav:(0,i.Y)(E,{}),isLazyMount:!0,transitions:el,children:[(0,i.Y)(er,{}),(0,i.Y)(ea,{question:"I can do well in ".concat(e),answers:t}),(0,i.Y)(ea,{question:"I concentrate hard in ".concat(e),answers:n}),(0,i.Y)(ea,{question:"Learning ".concat(e," is fun"),answers:t}),(0,i.Y)(ea,{question:"I care about doing well in ".concat(e),answers:t}),(0,i.Y)(ea,{question:"I feel good about my ".concat(e," knowledge"),answers:t}),(0,i.Y)(ea,{question:"I can improve in ".concat(e," if I really want to"),answers:t}),(0,i.Y)(ea,{question:"I like learning new things in ".concat(e),answers:n}),(0,i.Y)(ea,{question:"I try my best in ".concat(e),answers:t}),(0,i.Y)(ea,{question:"Learning ".concat(e," is important to me"),answers:t}),(0,i.Y)(K,{})]})};var eu=n(81516),ed=n(67496),ep=n(1406),eh=n(11109);function eg(e){let{children:t}=e;return(0,i.FD)(ep.A,{theme:eh.A,children:[(0,i.Y)(ed.Ay,{}),t]})}let em=(0,o.AH)("min-height:100vh;overflow:hidden;margin:0 auto;background-color:",s.colors.bgcolor1,';h1{font-family:"BureauGrotesk",sans-serif;font-size:64px;margin:0;}');var eb=!0;function ef(e){let{tokenData:t}=e;return(0,r.useEffect)(()=>{v(p[0],p[1],null,t)},[t]),(0,i.FD)("div",{children:[(0,i.FD)(l(),{children:[(0,i.Y)("title",{children:"Your ".concat(t.subject_name," Survey")}),(0,i.Y)("meta",{name:"description",content:"Pupil Attitude Survey"}),(0,i.Y)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,i.Y)("main",{css:em,children:(0,i.FD)(x,{value:t,children:[(0,i.Y)(f,{}),(0,i.Y)(ec,{})]})})]})}ef.getLayout=function(e){return(0,i.Y)(eu.A,{maxWidth:!1,sx:{padding:"0!important"},children:(0,i.Y)(eg,{children:e})})}}},e=>{e.O(0,[7847,636,6593,8792],()=>e(e.s=89361)),_N_E=e.O()}]);
2//# sourceMappingURL=pupil-survey-ae66dd718220438d.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.