PageSourceSearch

https://lingoteach.ai/static/js/7671.423e212c.chunk.js

js lingoteach.ai collected 2026-10-02 00:06:00 UTC 10,305 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkall_language_frontend=self.webpackChunkall_language_frontend||[]).push([[7671],{72003:function(e,t,n){n.d(t,{p:function(){return o}});var i=n(74165),a=n(15861),r=n(3815),s=n(67911),o=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n,a;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resourceId,e.prev=1,e.next=4,s.e.get("/signedId/".concat(n));case 4:return a=e.sent,e.abrupt("return",a.data);case 8:throw e.prev=8,e.t0=e.catch(1),(0,r.Z)("error",e.t0.message),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()},76652:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q}});var i=n(74165),a=n(1413),r=n(45987),s=n(15861),o=n(29439),c=n(85554),l=(n(76175),n(47313)),d=n(4119),u=n(20562),v=(n(94886),n(95510)),f=n(62449),p=n(25680),x=n(93275),g=n(70083),h=n(60344),m=n(22220),w=n(45585),j=n(98282),Z=n(26547),k=(n(59782),n(35637)),b=n(58467),y=n(72003),N=n(76980),C=n(54634),I=n(73882),S=n(38876),T=n(61016),L=n(14011),D=n(64844),z=n(28316),F=n(47435),G=n(89874),A=n(86642),R=n(50844),V=n(46417),E=(0,R.Z)((0,V.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),H=["tasks"],Q=function(){var e,t,n,R=(0,l.useState)(null),Q=(0,o.Z)(R,2),P=Q[0],M=Q[1],_=(0,l.useState)(null),Y=(0,o.Z)(_,2),O=Y[0],B=Y[1],K=(0,c.I0)(),U=(0,A.ZP)(),W=U.fontSize,q=U.textSizeControls,J=!!(null!==P&&void 0!==P&&P.target||null!==P&&void 0!==P&&P.native),X=(0,b.s0)(),$=(0,b.TH)(),ee=(0,l.useState)(!1),te=(0,o.Z)(ee,2),ne=te[0],ie=te[1],ae=(0,l.useState)(!0),re=(0,o.Z)(ae,2),se=re[0],oe=re[1],ce=(0,b.UO)(),le=ce.homeworkId,de=ce.taskId,ue=(0,c.v9)((function(e){return e.textTranslationFooterSlice})),ve=ue.toggleGradient,fe=ue.textFamily,pe=(0,c.v9)((function(e){return e})),xe=pe.selectedTaskSlice,ge=pe.SelectedResourceSlice;(0,l.useEffect)((function(){le&&de?me():oe(!1)}),[le,de]),(0,l.useEffect)((function(){K((0,S.Qo)(!1))}),[]),(0,l.useEffect)((function(){xe.format>0&&d.I0[xe.format]&&M(d.I0[xe.format])}),[xe]),(0,l.useEffect)((function(){if(ge){var e,t=ge.audio,n=ge.recording,i=ge.speech;B(null!==(e=null!==i&&void 0!==i?i:t)&&void 0!==e?e:n||null)}}),[ge]);var he=function(e){return e.preventDefault(),!1},me=function(){var e=(0,s.Z)((0,i.Z)().mark((function e(){var t,n,s,o,c,l,d,u,v;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(oe(!0),e.prev=1,!le||!de){e.next=29;break}if(K((0,I.tj)()),!(s=null===(t=$.state)||void 0===t?void 0:t.homeworkData)||s.id!==+le){e.next=9;break}e.t0=s,e.next=21;break;case 9:return e.next=11,(0,C.RY)();case 11:if(e.t2=n=e.sent.filter((function(e){return e.id===+le}))[0],e.t1=null!==e.t2,!e.t1){e.next=15;break}e.t1=void 0!==n;case 15:if(!e.t1){e.next=19;break}e.t3=n,e.next=20;break;case 19:e.t3=null;case 20:e.t0=e.t3;case 21:if(!(o=e.t0)){e.next=29;break}if(l=null!==(c=o.homework.tasks.filter((function(e){return e.id===+de}))[0])&&void 0!==c?c:null,d=o.homework,d.tasks,u=(0,r.Z)(d,H),!l){e.next=29;break}return e.next=28,we(o.homework.translation.id);case 28:K((0,I.NY)((0,a.Z)((0,a.Z)({},l),{},{homeworkId:o.homework.id,pupilHomeworkAssociationId:o.id,restData:(0,a.Z)((0,a.Z)({},u),{},{className:null===o||void 0===o||null===(v=o.classroom)||void 0===v?void 0:v.className})})));case 29:e.next=34;break;case 31:e.prev=31,e.t4=e.catch(1),console.log({error:e.t4});case 34:return e.prev=34,oe(!1),e.finish(34);case 37:case"end":return e.stop()}}),e,null,[[1,31,34,37]])})));return function(){return e.apply(this,arguments)}}(),we=function(){var e=(0,s.Z)((0,i.Z)().mark((function e(t){var n,a;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,y.p)({resourceId:t});case 3:return n=e.sent,a=n.id,e.next=7,K((0,N.s)({resourceId:a}));case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log({error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}();return(0,V.jsx)(V.Fragment,{children:se?(0,V.jsx)(G.Z,{color:"black"}):xe&&(0,V.jsx)("div",{className:ve?"gradient text-translation-scroll":"submit-task-background text-translation-scroll",id:"non-print-content",onCopy:he,onPaste:he,onCut:he,children:(0,V.jsxs)("div",{className:"container-fluid position-relative",style:(0,a.Z)({fontSize:"16px"},fe),children:[(0,V.jsx)(F.Z,{show:ne,message:"Are you sure? You will lose any progress.",onAction:function(){X("/pupil/home"),ie(!1)},onHide:function(){return ie(!1)}}),(0,V.jsxs)("div",{className:"submit-task-shell-card",children:[(0,V.jsx)("div",{className:"row justify-content-center position-relative text-center",children:(0,V.jsx)("div",{className:"col-12",children:(0,V.jsx)(k.Z,{taskIdentifier:xe.identifier,skillType:null===xe||void 0===xe?void 0:xe.skillType})})}),P&&P.audio&&O&&!(("READING"===(null===xe||void 0===xe?void 0:xe.skillType)||"VOCAB"===(null===xe||void 0===xe?void 0:xe.skillType))&&null!==xe&&void 0!==xe&&null!==(e=xe.taskName)&&void 0!==e&&e.toLowerCase().includes("gap fill")||["vocabincontexttestconsonants","vocabtestvowels","vocabtypeanswer","vocabcontexttypeanswer","vocabincontexttestvowels","vocablisteningasspelling","matchinggamechunks","matchinggamevocab","imagematchinggamevocab","tangledtranslationdragdrop","vocabtestconsonants","vocablisteningastranslation"].includes(null===xe||void 0===xe||null===(t=xe.identifier)||void 0===t||null===(n=t.toLowerCase)||void 0===n?void 0:n.call(t)))&&(0,V.jsx)("div",{className:"row align-items-center justify-content-center mt-3",children:(0,V.jsx)("div",{className:"col-sm-6 touraudioPlayer",children:(0,V.jsx)(p.Z,{data:O})})}),xe.id>=0&&(0,V.jsxs)("div",{className:"row testContainer",children:[P&&P.target&&(0,V.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,V.jsx)(u.Z,{text:ge.text.target,fontSize:W,headerContent:q})}),P&&P.native&&(0,V.jsx)("div",{className:"col-sm-12 col-md-6",children:(0,V.jsx)(u.Z,{text:ge.text.native,fontSize:W,headerContent:q})}),("textsMultipleChoice"===xe.identifier||"textsMultipleChoiceInference"===xe.identifier)&&(0,V.jsx)("div",{className:"col",children:(0,V.jsx)(v.Z,{fontSize:W,headerContent:J?void 0:q})}),("trueFalseListeningQuestions"===xe.identifier||"trueFalseStatementQuestions"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(f.Z,{fontSize:W,headerContent:J?void 0:q})}),("comprehensionQuestionsListeningTextInput"===xe.identifier||"comprehensionQuestionsTextInput"===xe.identifier||"openEndQuestionsWriting"===xe.identifier||"findThePhraseListening"===xe.identifier||"findThePhraseReading"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(x.Z,{fontSize:W,headerContent:J?void 0:q})}),("vocabContextTypeAnswer"===xe.identifier||"vocabTypeAnswer"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(g.Z,{})}),("vocabListeningAsSpelling"===xe.identifier||"vocabListeningAsTranslation"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(h.Z,{})}),("vocabTestConsonants"===xe.identifier||"vocabTestVowels"===xe.identifier||"vocabInContextTestConsonants"===xe.identifier||"vocabInContextTestVowels"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(m.Z,{})}),("gapFillsListeningConsonants"===xe.identifier||"gapFillsListeningVowels"===xe.identifier||"gapFillsReadingConsonants"===xe.identifier||"gapFillsReadingVowels"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(w.Z,{fontSize:W,headerContent:J?void 0:q})}),("parallelGapsListeningConsonants"===xe.identifier||"parallelGapsListeningVowels"===xe.identifier||"parallelGapsReadingConsonants"===xe.identifier||"parallelGapsReadingVowels"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(Z.Z,{fontSize:W,headerContent:J?void 0:q})}),("gapFillsListeningDragDrop"===xe.identifier||"gapFillsReadingDragDrop"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(j.Z,{})}),("parallelGapsListeningDragDrop"===xe.identifier||"parallelGapsReadingDragDrop"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(T.Z,{})}),("matchingGameChunks"===xe.identifier||"matchingGameVocab"===xe.identifier)&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(L.Z,{})}),"imageMatchingGameVocab"===xe.identifier&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(D.Z,{})}),"tangledTranslationDragDrop"===xe.identifier&&(0,V.jsx)("div",{className:"col activity-container-wrapper",children:(0,V.jsx)(z.Z,{})})]})]}),(0,V.jsxs)("button",{className:"btn activity-exit-button",onClick:function(){return ie(!0)},"aria-label":"Exit activity",tabIndex:0,children:[(0,V.jsx)(E,{fontSize:"small"}),"Exit activity"]})]})})})}},76980:function(e,t,n){n.d(t,{s:function(){return u}});var i=n(74165),a=n(15861),r=n(67911),s=n(3815),o=function(){var e=(0,a.Z)((0,i.Z)().mark((function e(t){var n,a,o,c;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resourceId,a=t.config,o=void 0===a?{}:a,e.prev=1,e.next=4,r.e.get("/text-translation/".concat(n),o);case 4:return c=e.sent,e.abrupt("return",c.data);case 8:throw e.prev=8,e.t0=e.catch(1),(0,s.Z)("error",e.t0.message),e.t0;case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),c=n(54751),l=n(9497),d=n(4648),u=function(e){return function(){var t=(0,a.Z)((0,i.Z)().mark((function t(n){var a;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o(e);case 3:a=t.sent,n((0,c.KE)()),n((0,c.lF)(a)),n((0,l.H)({text:a.text.target,lang:a.language.target,id:e.resourceId,type:"Target"})),n((0,l.H)({text:a.text.native,lang:a.language.native,id:e.resourceId,type:"Native"})),n((0,d.An)({text:a.text,language:a.language})),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.log({error:t.t0});case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}()}}}]);

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.