PageSourceSearch

https://lingoteach.ai/static/js/8905.d7994ac2.chunk.js

js lingoteach.ai collected 2026-09-24 13:38:11 UTC 7,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkall_language_frontend=self.webpackChunkall_language_frontend||[]).push([[8905],{98905:function(e,i,t){t.r(i);var n=t(1413),a=t(74165),s=t(15861),r=t(29439),l=t(47313),o=t(85554),c=t(58467),d=t(67911),p=t(3815),u=t(89874),v=(t(76175),t(94886),t(59782),t(4119)),g=t(20562),x=t(95510),f=t(62449),m=t(20287),h=t(93275),j=t(70083),y=t(60344),w=t(22220),b=t(45585),N=t(26547),Z=t(52841),k=t(98282),C=t(15009),T=t(64844),I=t(28316),D=t(35637),L=t(47435),F=t(54751),G=t(9497),S=t(4648),A=t(73882),R=t(46417);i.default=function(){var e,i,t,V,E,H=(0,c.UO)().attemptId,P=(0,o.I0)(),Q=(0,c.s0)(),_=(0,l.useState)(null),M=(0,r.Z)(_,2),B=M[0],K=M[1],O=(0,l.useState)(null),W=(0,r.Z)(O,2),Y=W[0],z=W[1],U=(0,l.useState)(!1),q=(0,r.Z)(U,2),J=q[0],X=q[1],$=(0,l.useState)(!0),ee=(0,r.Z)($,2),ie=ee[0],te=ee[1],ne=(0,o.v9)((function(e){return e.textTranslationFooterSlice})),ae=ne.toggleGradient,se=ne.textFamily,re=(0,o.v9)((function(e){return e})),le=re.selectedTaskSlice,oe=re.SelectedResourceSlice,ce=function(e){return e.preventDefault(),!1},de=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var i,t,n,s,r,l,o,c,u,g,x,f;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,te(!0),P((0,A.tj)()),P((0,F.KE)()),e.next=6,d.e.get("/v1/reading-room/pupil/attempt/".concat(H));case 6:if(t=e.sent,n=t.data,s=n.attempt,r=n.task){e.next=10;break}throw new Error("Task template is missing. Please try starting the activity from the activities list again.");case 10:return e.next=12,d.e.get("/v1/reading-room/pupil/resource-details/".concat(s.resource.id));case 12:return l=e.sent,o=l.data,P((0,F.KE)()),P((0,F.lF)(o)),e.next=18,d.e.get("/signedId/".concat(s.resource.id));case 18:c=e.sent,u=c.data.id,P((0,G.H)({text:o.text.target,lang:o.language.target,id:u,type:"Target"})),P((0,G.H)({text:o.text.native,lang:o.language.native,id:u,type:"Native"})),P((0,S.An)({text:o.text,language:o.language})),P((0,A.NY)({id:s.id,identifier:s.activityIdentifier,format:r.format,skillType:r.skillType,template:r.template,taskData:r.taskData,taskName:r.taskName,homeworkId:s.id,pupilHomeworkAssociationId:s.id,restData:{name:s.resource.resource_name}})),r.format>0&&v.I0[r.format]&&K(v.I0[r.format]),g=o.audio,x=o.recording,f=o.speech,z(null!==(i=null!==f&&void 0!==f?f:g)&&void 0!==i?i:x||null),te(!1),e.next=34;break;case 30:e.prev=30,e.t0=e.catch(0),te(!1),(0,p.Z)("error",e.t0.message||"Error loading activity player");case 34:case"end":return e.stop()}}),e,null,[[0,30]])})));return function(){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){H&&de()}),[H]),ie?(0,R.jsx)("div",{className:"gradient",style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,R.jsx)(u.Z,{color:"white"})}):(0,R.jsx)(R.Fragment,{children:le&&(0,R.jsx)("div",{className:ae?"gradient text-translation-scroll":"text-translation-scroll",style:{minHeight:"100vh",paddingTop:"40px"},id:"non-print-content",onCopy:ce,onPaste:ce,onCut:ce,children:(0,R.jsxs)("div",{className:"container-fluid reading-room-play-container",style:(0,n.Z)({fontSize:"16px"},se),children:[(0,R.jsxs)("div",{className:"row justify-content-center position-relative text-center",children:[(0,R.jsx)("div",{className:"col-sm-6",children:(0,R.jsx)(D.Z,{taskIdentifier:le.identifier})}),(0,R.jsx)("button",{className:"btn position-absolute",style:{top:"30px",right:"5%",width:"fit-content",backgroundColor:"#fbb03b",color:"#000",fontWeight:"bold"},onClick:function(){return X(!0)},children:"Back"})]}),(0,R.jsx)(L.Z,{show:J,message:"Are you sure? You will lose any progress.",onAction:function(){Q(-1),X(!1)},onHide:function(){return X(!1)}}),B&&B.audio&&Y&&!(("READING"===(null===le||void 0===le?void 0:le.skillType)||"VOCAB"===(null===le||void 0===le?void 0:le.skillType))&&null!==le&&void 0!==le&&null!==(e=le.taskName)&&void 0!==e&&e.toLowerCase().includes("gap fill")||["vocabincontexttestconsonants","vocabtestvowels","vocabtypeanswer","vocabcontexttypeanswer","vocabincontexttestvowels","vocablisteningasspelling","matchinggamevocab","imagematchinggamevocab","tangledtranslationdragdrop","vocabtestconsonants","vocablisteningastranslation"].includes(null===le||void 0===le||null===(i=le.identifier)||void 0===i||null===(t=i.toLowerCase)||void 0===t?void 0:t.call(i)))&&(0,R.jsx)("div",{className:"row align-items-center justify-content-center mt-3",children:(0,R.jsx)("div",{className:"col-sm-6 touraudioPlayer",children:(0,R.jsx)(m.Z,{data:Y})})}),le.id>=0&&(0,R.jsxs)("div",{className:"row testContainer",children:[B&&B.target&&(null===(V=oe.text)||void 0===V?void 0:V.target)&&(0,R.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,R.jsx)(g.Z,{text:oe.text.target})}),B&&B.native&&(null===(E=oe.text)||void 0===E?void 0:E.native)&&(0,R.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,R.jsx)(g.Z,{text:oe.text.native})}),("textsMultipleChoice"===le.identifier||"textsMultipleChoiceInference"===le.identifier)&&(0,R.jsx)("div",{className:"col",children:(0,R.jsx)(x.Z,{})}),("trueFalseListeningQuestions"===le.identifier||"trueFalseStatementQuestions"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(f.Z,{})}),("comprehensionQuestionsListeningTextInput"===le.identifier||"comprehensionQuestionsTextInput"===le.identifier||"openEndQuestionsWriting"===le.identifier||"findThePhraseListening"===le.identifier||"findThePhraseReading"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(h.Z,{})}),("vocabContextTypeAnswer"===le.identifier||"vocabTypeAnswer"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(j.Z,{})}),("vocabListeningAsSpelling"===le.identifier||"vocabListeningAsTranslation"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(y.Z,{})}),("vocabTestConsonants"===le.identifier||"vocabTestVowels"===le.identifier||"vocabInContextTestConsonants"===le.identifier||"vocabInContextTestVowels"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(w.Z,{})}),("gapFillsListeningConsonants"===le.identifier||"gapFillsListeningVowels"===le.identifier||"gapFillsReadingConsonants"===le.identifier||"gapFillsReadingVowels"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(b.Z,{})}),("parallelGapsListeningConsonants"===le.identifier||"parallelGapsListeningVowels"===le.identifier||"parallelGapsReadingConsonants"===le.identifier||"parallelGapsReadingVowels"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(N.Z,{})}),("gapFillsListeningDragDrop"===le.identifier||"gapFillsReadingDragDrop"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(k.Z,{})}),("parallelGapsListeningDragDrop"===le.identifier||"parallelGapsReadingDragDrop"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(Z.Z,{})}),("matchingGameChunks"===le.identifier||"matchingGameVocab"===le.identifier)&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(C.Z,{})}),"imageMatchingGameVocab"===le.identifier&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(T.Z,{})}),"tangledTranslationDragDrop"===le.identifier&&(0,R.jsx)("div",{className:"col activity-container-wrapper",children:(0,R.jsx)(I.Z,{})})]})]})})})}}}]);

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.