1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3608],{30951:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test/attempt/[testId]",function(){return i(83951)}])},83951:function(t,e,i){"use strict";i.r(e),i.d(e,{__N_SSP:function(){return M}});var o=i(85893),s=i(67294),n=i(94605),r=i(2182),l=i(99752),d=i(44608),a=i(49688),u=i.n(a),c=i(84316),p=i(75920),v=i(70556),h=i(11163),m=i.n(h),g=i(41664),_=i.n(g),b=i(9008),I=i.n(b),f=i(47247),w=i.n(f),y=i(42020),x=i(34571),S=i(63552),q=i(78636),T=i(76554),j=i(5152),k=i.n(j),C=i(2233),P=i.n(C),A=i(60202);let N=k()(()=>i.e(9565).then(i.bind(i,9565)),{loadableGenerated:{webpack:()=>[9565]},ssr:!1}),D=k()(()=>i.e(3029).then(i.bind(i,63029)),{loadableGenerated:{webpack:()=>[63029]},ssr:!1}),L=k()(()=>i.e(7277).then(i.bind(i,52509)),{loadableGenerated:{webpack:()=>[52509]},ssr:!1}),B=k()(()=>i.e(5711).then(i.bind(i,65711)),{loadableGenerated:{webpack:()=>[65711]},ssr:!1}),E={dragdrop:"Drag",cloze:"Cloze",multichoice:"Options",truefalse:"Truefalse",numerical:"Numerical",shortanswer:"Text_input"};class z extends s.Component{componentDidMount(){var t,e,i,o,s,n,r,l,a,u,c,p,v,h;let{checkQuiz:m}=this.props;this.setState(()=>({mounted:!0})),((null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.isEmbeddedTms)==="true"||(null===(i=this.props.router)||void 0===i?void 0:null===(o=i.query)||void 0===o?void 0:o.embedded)==="2"||(null===(s=this.props.router)||void 0===s?void 0:null===(n=s.query)||void 0===n?void 0:n.embedded)==="3")&&localStorage.setItem("tmsEmbedded","true");let g=(null===(r=this.props.router)||void 0===r?void 0:r.query)||{},_=g.sebToken||g.token;if(_){try{localStorage.setItem("auth-token",_)}catch(t){}sessionStorage.setItem("isSEB","true"),localStorage.setItem("tmsEmbedded","true")}let b=Array.isArray(g.sessionId)?g.sessionId[0]:g.sessionId;(g.procAttemptId||b)&&sessionStorage.setItem("procAttemptId",g.procAttemptId||b),(g.procStudentId||g.studentId)&&sessionStorage.setItem("procStudentId",g.procStudentId||g.studentId),(g.procQuizId||g.examId)&&sessionStorage.setItem("procQuizId",g.procQuizId||g.examId),!sessionStorage.getItem("procAttemptId")&&this.props.vpProcAttemptId&&sessionStorage.setItem("procAttemptId",this.props.vpProcAttemptId),!sessionStorage.getItem("procStudentId")&&this.props.vpStudentId&&sessionStorage.setItem("procStudentId",this.props.vpStudentId),!sessionStorage.getItem("procQuizId")&&this.props.vpExamId&&sessionStorage.setItem("procQuizId",this.props.vpExamId);let I=this.props.getAttemptDetails;!sessionStorage.getItem("procAttemptId")&&(null==I?void 0:I.attemptProctorId)&&sessionStorage.setItem("procAttemptId",I.attemptProctorId),!sessionStorage.getItem("procStudentId")&&(null==I?void 0:I.studentProctorId)&&sessionStorage.setItem("procStudentId",I.studentProctorId),!sessionStorage.getItem("procQuizId")&&(null==I?void 0:I.quizProctorId)&&sessionStorage.setItem("procQuizId",I.quizProctorId);let f=(null===(l=this.props.router)||void 0===l?void 0:l.query)||{};if(this.setState({_debugInfo:{isProctored:this.isProctored(),attemptState:this.props.attemptState,embedded:f.embedded,procAttemptId:sessionStorage.getItem("procAttemptId")||"MISSING",procStudentId:sessionStorage.getItem("procStudentId")||"MISSING",procQuizId:sessionStorage.getItem("procQuizId")||"MISSING",adKeys:I?Object.keys(I).join(", "):"null",qSessionId:JSON.stringify(f.sessionId),qStudentId:JSON.stringify(f.studentId),qExamId:JSON.stringify(f.examId),propVpId:this.props.vpProcAttemptId||"null"}}),this.isProctored()&&(this._proctoringStartMs=Date.now(),this._proctoringBlurDebounce=null,this._devToolsDetected=!1,this._onVisibilityChange=()=>{document.hidden&&(clearTimeout(this._proctoringBlurDebounce),this.handleProctoringViolation("Tab switched or browser minimised."))},document.addEventListener("visibilitychange",this._onVisibilityChange),this._onWindowBlur=()=>{clearTimeout(this._proctoringBlurDebounce),this._proctoringBlurDebounce=setTimeout(()=>{document.hidden||this.handleProctoringViolation("Browser window lost focus.")},300)},window.addEventListener("blur",this._onWindowBlur),this._onWindowFocus=()=>{this.logProctoringWarning("Window regained focus.")},window.addEventListener("focus",this._onWindowFocus),this._onFullscreenChange=()=>
1{document.fullscreenElement?this.setState({proctoringShowFullscreenPrompt:!1,proctoringFullscreenReEntry:!1}):(this.handleProctoringViolation("Exited fullscreen mode."),this.setState({proctoringShowFullscreenPrompt:!0,proctoringFullscreenReEntry:!0}))},document.addEventListener("fullscreenchange",this._onFullscreenChange),document.addEventListener("webkitfullscreenchange",this._onFullscreenChange),document.addEventListener("mozfullscreenchange",this._onFullscreenChange),document.fullscreenElement||this.setState({proctoringShowFullscreenPrompt:!0,proctoringFullscreenReEntry:!1}),this._onCopy=t=>{t.preventDefault(),this.handleProctoringViolation("Copy attempt detected.")},this._onPaste=t=>{t.preventDefault(),this.handleProctoringViolation("Paste attempt detected.")},this._onCut=t=>{t.preventDefault(),this.handleProctoringViolation("Cut attempt detected.")},document.addEventListener("copy",this._onCopy),document.addEventListener("paste",this._onPaste),document.addEventListener("cut",this._onCut),this._onKeyDown=t=>{let e=t.ctrlKey||t.metaKey;if("F12"===t.key){t.preventDefault(),this.handleProctoringViolation("Developer tools shortcut detected (F12).");return}if(e&&t.shiftKey&&["i","I"].includes(t.key)){t.preventDefault(),this.handleProctoringViolation("Developer tools shortcut detected (Ctrl+Shift+I).");return}if(e&&["p","P"].includes(t.key)){t.preventDefault(),this.handleProctoringViolation("Print shortcut detected (Ctrl+P).");return}if("PrintScreen"===t.key){t.preventDefault(),this.handleProctoringViolation("Print Screen key detected.");return}if(t.altKey&&"Tab"===t.key){this.handleProctoringViolation("Alt+Tab key combination pressed.");return}if(e&&["c","C"].includes(t.key)){this.handleProctoringViolation("Copy shortcut pressed (Ctrl+C).");return}if(e&&["v","V"].includes(t.key)){this.handleProctoringViolation("Paste shortcut pressed (Ctrl+V).");return}},document.addEventListener("keydown",this._onKeyDown),this._onContextMenu=t=>{t.preventDefault(),this.logProctoringWarning("Right-click attempt detected.")},document.addEventListener("contextmenu",this._onContextMenu),this._onBeforeUnload=t=>{this.handleProctoringViolation("Page refresh or close attempt detected."),t.preventDefault(),t.returnValue=""},window.addEventListener("beforeunload",this._onBeforeUnload),this._onPopState=()=>{this.handleProctoringViolation("Browser back/forward navigation detected.")},window.addEventListener("popstate",this._onPopState),"undefined"!=typeof screen&&screen.isExtended&&this.logProctoringWarning("Multiple monitors detected."),this._devToolsInterval=setInterval(()=>{let t=window.outerWidth-window.innerWidth,e=window.outerHeight-window.innerHeight;t>200||e>200?this._devToolsDetected||(this._devToolsDetected=!0,this.handleProctoringViolation("Developer tools opened.")):this._devToolsDetected=!1},2e3),this._violationsPollInterval=setInterval(async()=>{if("inprogress"===this.state.attemptState)try{var t;let e=sessionStorage.getItem("procAttemptId"),i=sessionStorage.getItem("procStudentId"),o=sessionStorage.getItem("procQuizId");if(!e)return;let s=new d.default,n=await s.getData("API_EXAM_URL","get/quiz/attempt/events?session_id=".concat(e,"&student_id=").concat(i,"&exam_id=").concat(o));console.log("[Proctoring] Get violations response:",n);let r=Array.isArray(n)?n:Array.isArray(null==n?void 0:null===(t=n.response)||void 0===t?void 0:t.events)?n.response.events:null;if(r){let t=new Set,e=[];r.forEach(i=>{var o,s,n,r,l,d,a;let u=null!==(a=null!==(d=null!==(l=null!==(r=i.frame_id)&&void 0!==r?r:i.frameId)&&void 0!==l?l:null===(o=i.details)||void 0===o?void 0:o.frame_id)&&void 0!==d?d:null===(s=i.details)||void 0===s?void 0:s.frameId)&&void 0!==a?a:null;if(null!==u){if(t.has(u))return;t.add(u)}e.push((null===(n=i.details)||void 0===n?void 0:n.description)||i.type||"Violation detected")});let i=e.length;i>this.state.proctoringViolations&&this.setState({proctoringViolations:i,proctoringViolationLog:e})}}catch(t){console.error("[Proctoring] Failed to fetch violations:",t)}},1e4)),this.getQuestion(),null==m?void 0:null===(a=m.response)||void 0===a?void 0:null===(u=a.attemptDetails)||void 0===u?void 0:u.hasTimeLimit){this.timerID&&(clearInterval(this.timerID),this.timerID=null);let t=new Date;t.setSeconds(t.getSeconds()+(null==m?void 0:null===(c=m.response)||void 0===c?void 0:null===(p=c.attemptDetails)||void 0===p?void 0:p.remainingTimeInSec)),this.setState(()=>{var e,i;return{diff:null==m?void 0:null===(e=m.response)||void 0===e?void 0:null===(i=e.attemptDetails)||void 0===i?void 0:i.remainingTimeInSec,endTimeStamp:t}}),this.timerID=setInterval(()=>this.tick(),1e3)}else isNaN(this.props.testID)||this.streamCheckInitApi(this.props.testID,"ClientTestContent",null===(v=this.props.getInstructions)||void 0===v?void 0:null===(h=v.quiz)||void 0===h?void 0:h.name);$(window).on("load resize orientationchange",this.normalizeWidth)}componentDidUpdate(t){if(t.router.asPath!==this.props.router.asPath){let t=sessionStorage.getItem("MyCourseId"),e=sessionStorage.getItem("TestPrepId");(this.state.courseId!==t||this.state.TestPrepId!==e)&&this.setState(()=>({courseId:t,TestPrepId:e}))}}componentWillUnmount(){this.timerID&&(clearInterval(this.timerID),this.timerID=null),this.timer&&(clearInterval(this.timer),this.timer=null),this._onVisibilityChange&&document.removeEventListener("visibilitychange",this._onVisibilityChange),this._onWindowBlur&&window.removeEventListener("blur",this._onWindowBlur),this._onWindowFocus&&window.removeEventListener("focus",this._onWindowFocus),this._onFullscreenChange&&(document.removeEventListener("fullscreenchange",this._onFullscreenChange),document.removeEventListener("webkitfullscreenchange",this._onFullscreenChange),document.removeEventListener("mozfullscreenchange",this._onFullscreenChange)),this._onCopy&&document.removeEventListener("copy",this._onCopy),this._onPaste&&document.removeEventListener("paste",this._onPaste),this._onCut&&document.removeEventListener("cut",this._onCut),this._onKeyDown&&document.removeEventListener("keydown",this._onKeyDown),this._onContextMenu&&document.removeEventListener("contextmenu",this._onContextMenu),this._onBeforeUnload&&window.removeEventListener("beforeunload",this._onBeforeUnload),this._onPopState&&window.removeEventListener("popstate",this._onPopState),clearInterval(this._devToolsInterval),clearInterval(this._violationsPollInterval),clearTimeout(this._proctoringBlurDebounce),this.pollApiTimerId&&(clearInterval(this.pollApiTimerId),this.pollApiTimerId=null),$(window).off("load resize orientationchange",this.normalizeWidth),this.streamCheckComplete(),this.context.fetchUserPlay(),this.updateTime(),this.stopProctoring();let t="1"===new URLSearchParams(window.location.search).get("embedded");t||this.completeTestCleverTapData(),$("#endTest1").modal("hide").data("bs.modal",null),$(".modal-backdrop").hide(),$("body").removeClass("modal-open")}async streamCheckPollApi(){var t,e,i,o,s,n;let r=new d.default;
1await r.postData("API_COURSE_URL","stream/check/poll",{contentId:parseInt(null===(t=this.props)||void 0===t?void 0:t.testID),contentType:"ClientTestContent",contentName:null===(e=this.props)||void 0===e?void 0:null===(i=e.getInstructions)||void 0===i?void 0:null===(o=i.quiz)||void 0===o?void 0:o.name,streamPollKey:null===(s=this.state)||void 0===s?void 0:s.streamPollKey,pollIntervalInSec:null===(n=this.state)||void 0===n?void 0:n.pollIntervalInSeconds},{}).catch(t=>{})}tick(){let t=Math.floor((this.state.endTimeStamp-new Date().getTime())/1e3);this.setState(()=>({diff:t})),600==t&&$("#timerOut").modal("show"),t<=0&&(this.finishAttempt(),clearInterval(this.timerID),this.timerID=null)}async cleverTapExitEvent(){let t=this.state.testDetails;new y.default;let e={},i=new c.default().getData("user-basic-info");i&&i.userId&&(e.User_ID=i.userId),i&&i.email&&(e.User_Email=i.email),i&&i.phoneNumber&&(e.User_Phone=i.phoneNumber);let o=new x.Z;e.Device_Type="5"===o.getDeviceID()?"Web":"Mobile_Web",e.Click_Time=new Date,t&&t.testContent&&(e.Test_ID=t.testContent.contentId,e.Test_Name=t.testContent.name,e.Test_Type=t.testContent.testType,t.event&&t.event.status&&(e.Test_Status=t.event.status),e.Test_Duration=t.testContent.durationInMin+" Mins",e.No_Questions=t.testContent.totalQuestions,t.event&&t.event.actualStartTime&&(e.Start_Time=new Date(t.event.actualStartTime)),!e.Start_Time&&t.event&&t.event.scheduledStartTime&&(e.Start_Time=new Date(t.event.scheduledStartTime)),new d.default);let s=(new Date().getTime()-this.state.pageInitialisedTime.getTime())/1e3;s/=60,e.Watched_Duration_Minutes=Math.abs(Math.round(s))}handleBottomSheet(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.setState({displayFilter:""!=t,typeOfBottomSheet:t}),this.state.testSubmitted&&this.redirect()}getFirstLastquestionIds(){var t,e,i,o,s,n,r,l,d,a,u,c,p,v,h,m,g,_,b,I,f,w,y,x,S;let q=(null===(t=null===(e=null===(i=null===(o=this.state)||void 0===o?void 0:o.navigation[0])||void 0===i?void 0:i.sections[0].questions[0])||void 0===e?void 0:null===(s=e.cloze)||void 0===s?void 0:s.childQuestions[0])||void 0===t?void 0:t.questionId)||(null===(n=null===(r=null===(l=null===(d=this.state)||void 0===d?void 0:d.navigation[0])||void 0===l?void 0:l.sections[0])||void 0===r?void 0:r.questions[0])||void 0===n?void 0:null===(a=n.question)||void 0===a?void 0:a.questionId),T=null===(u=this.state)||void 0===u?void 0:u.navigation.length,j=null===(c=null===(p=this.state)||void 0===p?void 0:p.navigation[(null===(v=this.state)||void 0===v?void 0:v.navigation.length)-1])||void 0===c?void 0:c.sections.length,k=(null===(h=null===(m=null===(g=this.state)||void 0===g?void 0:g.navigation[T-1])||void 0===m?void 0:m.sections[j-1].questions)||void 0===h?void 0:h.length)-1,C=(null===(_=null===(b=null===(I=this.state)||void 0===I?void 0:I.navigation[T-1])||void 0===b?void 0:b.sections[j-1].questions[k])||void 0===_?void 0:null===(f=_.cloze)||void 0===f?void 0:f.parentId)||(null===(w=null===(y=null===(x=this.state)||void 0===x?void 0:x.navigation[T-1])||void 0===y?void 0:y.sections[j-1].questions[k])||void 0===w?void 0:null===(S=w.question)||void 0===S?void 0:S.questionId);this.setState(()=>({firstQuestionId:q,lastQuestionId:C}))}async addFreeTrialIfEligible(){var t,e,i,o,s,n,r;if((null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.shouldAddFreeTrail)!=="true")return;let l=new c.default,a=new d.default,u=await a.getData("API_EDU_URL_V1","get/user/purchases").catch(()=>null);if((null==u?void 0:null===(i=u.response)||void 0===i?void 0:null===(o=i.bundlePackages)||void 0===o?void 0:o.length)>0)return;let h=await a.getData("API_EDU_URL_V2","get/bundle/packages").catch(()=>null),m=null==h?void 0:null===(s=h.response)||void 0===s?void 0:s.find(t=>t.attributes&&t.attributes.includes("skipCardDetailsForFreeTrial:true"));if(!m)return;l.setSessionData("selected-package",{id:m.id,name:m.name,salePrice:m.salePrice,listPrice:m.listPrice,isRecurring:m.isRecurring,duration:m.duration,freeTrial:m.freeTrials?{duration:"".concat(null===(n=m.freeTrials)||void 0===n?void 0:n.duration
1Quantity).concat(null===(r=m.freeTrials)||void 0===r?void 0:r.durationCode)}:null,attributes:{CurrencySymbol:{value:m.currencySymbol}}}),l.setSessionData("selected-package-gateway","chargebee"),l.setSessionData("selected-course",{type:"ai-tutor",name:"AI Tutor"}),l.setSessionData("isRecurring",m.isRecurring||!1);let g=new p.default,_={data:g.encryptData(JSON.stringify({gateway:"chargebee",bundlePackageId:m.id.toString()})),metadata:g.encryptData(JSON.stringify({request:"bundle_package/checkout"})),deviceId:5},b=await a.postEncryptData("API_SERVER_URL","service/api/v1/send",_,{}).catch(()=>null);(null==b?void 0:b.status)&&(l.setLocalData("course_subscription_status","Free"),(0,v.Z)({message:"Your account is activated with 7 days free trial.",variant:"success",duration:5e3}))}async finishAttempt(){var t,e,i,o,s,n,r,l,a,u,p,v,h,g,_,b,I,f,w,y,x,S,T,j,k,C;arguments.length>0&&void 0!==arguments[0]&&arguments[0],this.setState(()=>({isDisabled:!0,isEndTest:!0}));let P=new d.default;this.updateTime();let N={quizCode:this.props.quizCode,quizAttemptId:null===(t=this.state.attemptInfo)||void 0===t?void 0:t.quizAttemptId},D={Question_id:null===(e=this.state)||void 0===e?void 0:null===(i=e.question)||void 0===i?void 0:null===(o=i.question)||void 0===o?void 0:o.questionId,Test_id:null===this||void 0===this?void 0:null===(s=this.props)||void 0===s?void 0:s.testID,Subject:(null===(n=this.state)||void 0===n?void 0:null===(r=n.question)||void 0===r?void 0:null===(l=r.section)||void 0===l?void 0:l.subjectName.charAt(0).toUpperCase())+(null===(a=this.state)||void 0===a?void 0:null===(u=a.question)||void 0===u?void 0:null===(p=u.section)||void 0===p?void 0:p.subjectName.slice(1)),Previous_page:(null===(v=this.state)||void 0===v?void 0:null===(h=v.question)||void 0===h?void 0:null===(g=h.question)||void 0===g?void 0:g.questionId)||"NA",Answered:(null===(_=this.state)||void 0===_?void 0:null===(b=_.question)||void 0===b?void 0:null===(I=b.question)||void 0===I?void 0:null===(f=I.questionInfo)||void 0===f?void 0:null===(w=f.attempt)||void 0===w?void 0:w.attemptStatus)!=="todo"?"Yes":"No",Action:"End_test"};(0,q.sendCleverTapEventsData)("Test_question_view",D);let L=await P.postData("API_EXAM_URL","submit/quiz/attempt",N,{});"post_quiz_duration"!==this.props.feedbackType&&await P.postData("API_EXAM_URL","evaluate/quiz/attempt",N,{}),(null==L?void 0:L.status)&&(this._isSubmitted=!0,await this.addFreeTrialIfEligible().catch(()=>{}));let B=(null===(y=this.props.router)||void 0===y?void 0:null===(x=y.query)||void 0===x?void 0:x.embedded)==="1",E=!B&&((null===(S=this.props.router)||void 0===S?void 0:null===(T=S.query)||void 0===T?void 0:T.embedded)==="2"||(null===(j=this.props.router)||void 0===j?void 0:null===(k=j.query)||void 0===k?void 0:k.embedded)==="3"||"true"===localStorage.getItem("tmsEmbedded"));if(E){if(this.isProctored()){this.showProctoringSubmittedScreen();return}let t="localhost"===window.location.hostname?"http://localhost:4200/marketplace/subjects":A.eG.RedirectionAfterProctoringExam;localStorage.removeItem("tmsEmbedded"),localStorage.removeItem("tmsReturnUrl"),window.location.replace(t);return}if(L&&(null===(C=this.state)||void 0===C?void 0:C.quizType)!=="diagnostic"){this.pollApiTimerId&&this.streamCheckComplete(),this.setState(()=>({testSubmitted:!0})),(0===$("#endTest1.show").length&&screen.width>767||"endTest"!==this.state.typeOfBottomSheet)&&this.finishAttemptConfirmation();let t=$("#header").height();screen.width>767&&$("#header").css({"z-index":1071,position:"relative"}),$(".modal-backdrop").css("top",t)}else{this.setState({submittingTestPrepState:!0,showEditPopup:!1});let t=[{time:0,text:"Analyzing the answersâ¦",progress:0},{time:1250,text:"Evaluating your strengthsâ¦",progress:33},{time:2500,text:"Identifying areas for improvementâ¦",progress:66},{time:3750,text:"Almost there â your report is on its way!",progress:98}],e=0;this.timer=setInterval(async()=>{var i,o,s,n,r,l,d,a,u,p,v,h,g,_;if(e<t.length){let i=t[e];this.setState({submittedPrompts:i.text,progress:i.progress}),e++}let b=await P.getData("API_EXAM_URL","get/latest/attempt/details?quiz_id="+this.props.quizId,this.context),I=(null==b?void 0:null===(i=b.response)||void 0===i?void 0:null===(o=i.attemptDetails)||void 0===o?void 0:o.state)||null;if(null==b||null===(s=b.response)||void 0===s||null===(n=s.attemptDetails)||void 0===n||n.sumGrades,null==b||null===(r=b.response)||void 0===r||null===(l=r.attemptDetails)||void 0===l||l.timeStart,null==b||null===(d=b.response)||void 0===d||null===(a=d.attemptDetails)||void 0===a||a.timeFinish,console.log("Polling attempt state:",I),"finished"===I&&(clearInterval(this.timer),this.timer=null,"diagnostic"===this.state.quizType||(null===(u=this.props.getInstructions)||void 0===u?void 0:null===(p=u.quiz)||void 0===p?void 0:null===(v=p.flags)||void 0===v?void 0:v.scoringEngineCode))){let t;let e=null===(h=this.props.getInstructions)||void 0===h?void 0:null===(g=h.quiz)||void 0===g?void 0:g.flags,i=null===m()||void 0===m()?void 0:null===(_=m().query
1)||void 0===_?void 0:_.testPrepId,o=new c.default,s=o.getData("user-basic-info"),n=!(null==s?void 0:s.phoneNumber)&&!(null==s?void 0:s.email);t=n?"/user/test-prep/".concat(i,"/study-material"):(null==e?void 0:e.scoringEngineCode)?"/user/test-prep/".concat(i,"/score-board?createlearningplan=true"):this.state.scoreboard?"/user/test-prep/".concat(i,"/score-board"):"/user/test-prep/".concat(i,"/learning-plan"),m().push(t).then(()=>{this.setState({submittingTestPrepState:!1})})}},2e3)}}render(){var t,e,i,s,d,a,c,p,v,h,m,g,b,f,y,x,q,T,j,k,C,A,E,z,M,F,R,Q,V,U,W,O,H,G,X,K,Z,J,Y,tt;let te=null===(t=this.state)||void 0===t?void 0:t.question,ti="";this.state.displayFilter&&(ti="dis");let to=0;this.state.mounted&&document.getElementById("numberBlock")&&(to=document.getElementById("numberBlock").offsetWidth);let ts="",tn="",tr="",tl="",td="";return(td=Math.floor((tl=Math.floor((tr=Math.floor((tn=Math.floor(ts=this.state.diff))/60))/60))/24),tl-=24*td,tr=tr-1440*td-60*tl,tn=tn-86400*td-3600*tl-60*tr,"inprogress"==this.state.attemptState&&(null==te?void 0:te.question))?this.state.submittingTestPrepState?(0,o.jsx)(l.Z,{children:(0,o.jsxs)("div",{className:"pl-body",children:[(0,o.jsx)("header",{className:"headerFixed",children:(0,o.jsx)("div",{className:"main-header",children:(0,o.jsx)("div",{className:"container-fluid",children:(0,o.jsx)("div",{className:"row pl-row align-items-center header_line",children:(0,o.jsx)("div",{className:"col-12",children:(0,o.jsxs)("div",{className:"pl-logo d-flex",children:[(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/HeaderLogo.svg",alt:"",className:"img-fluid logo"}),(0,o.jsx)("button",{className:"ml-auto bg-transparent outline-0 border-0",onClick:()=>window.history.back(),children:"x"})]})})})})})}),(0,o.jsx)("div",{className:"side_overlay"}),(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"".concat(u().review_screen),children:(0,o.jsxs)("div",{className:"".concat(u().review_inner),children:[(0,o.jsx)("h1",{children:"Sit tight! Weâre reviewing your answers"}),(0,o.jsx)("div",{className:"".concat(u().progress_bar," ").concat(u().completed),children:(0,o.jsx)("span",{style:{width:"".concat(this.state.progress)}})}),(0,o.jsx)("p",{children:null===(tt=this.state)||void 0===tt?void 0:tt.submittedPrompts})]})})})]})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I(),{children:(0,o.jsx)("script",{src:"https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"})}),"inprogress"==this.state.attemptState?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l.Z,{children:[!!te&&0!=ts&&(0,o.jsx)("div",{className:"".concat(ts<=600?"fixed-top "+u().mTimer+" "+u().outOftimemobi:"fixed-top "+u().mTimer),children:(0,o.jsxs)("div",{children:[(0,o.jsx)("svg",{className:"mr-1",xmlns:"http://www.w3.org/2000/svg",width:"9.788",height:"9.788",viewBox:"0 0 9.788 9.788",children:(0,o.jsx)("path",{id:"Mock_Test_-_1_Complete_Syllabus___Unacademy-4_1_",fill:"#fff",stroke:"#fff",strokeWidth:"0.2px",d:"M12.294 17.088a4.794 4.794 0 1 1 4.794-4.794 4.8 4.8 0 0 1-4.794 4.794zm0-8.85a4.056 4.056 0 1 0 4.056 4.056 4.061 4.061 0 0 0-4.056-4.056zm1.824 6.249a.362.362 0 0 1-.259-.108l-1.824-1.824a.367.367 0 0 1-.108-.261V9.57a.369.369 0 1 1 .738 0v2.571l1.716 1.716a.369.369 0 0 1 0 .521.362.362 0 0 1-.259.108z","data-name":"Mock Test - 1 (Complete Syllabus) _ Unacademy-4 (1)",transform:"translate(-7.4 -7.4)"})}),(0,o.jsx)("span",{children:(tl<10?"0".concat(tl):tl)+":"+(tr<10?"0".concat(tr):tr)+":"+(tn<10?"0".concat(tn):tn)})]})}),(0,o.jsxs)("header",{id:"header",className:"header header_line d-flex align-items-center border-bottom "+u().attmptHeader+" "+(0==ts?u().topZero:""),style:{position:"relative"},children:[(0,o.jsx)("div",{className:"pl-logo "+u().logo,style:{cursor:"default"},children:(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/HeaderLogo.svg",alt:"Turito Logo",className:"img-fluid logo"})}),this.isProctored()?(0,o.jsxs)("div",{className:P().proctoredHeaderCenter,children:[(0,o.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,o.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),(0,o.jsx)("span",{className:P().proctoredHeaderSubject,children:(null===(e=this.state.question)||void 0===e?void 0:null===(i=e.section)||void 0===i?void 0:null===(s=i.subject)||void 0===s?void 0:s.name)||(null===(d=this.props.getInstructions)||void 0===d?void 0:null===(a=d.quiz)||void 0===a?void 0:a.name)||"Subject"}),(0,o.jsx)("span",{className:P().proctoredHeaderSeparator,children:"\xb7"}),(0,o.jsx)("span",{className:P().proctoredHeaderType,children:(null===(c=this.props.getInstructions)||void 0===c?void 0:null===(p=c.quiz)||void 0===p?void 0:null===(v=p.generalInfo)||void 0===v?void 0:v.type)||"
1Knowledge Quiz"})]}):!(this.state.sectionId!=(null==te?void 0:null===(h=te.section)||void 0===h?void 0:h.id)&&this.state.showSectionInstructions)&&(0,o.jsxs)("div",{className:u().questionSummeryLink,onClick:this.handleBottomSheet.bind(this,"navigation"),children:[(0,o.jsx)("span",{children:"Questions"}),(0,o.jsx)("img",{className:"img-fluid",src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/footer-arrow-down.svg",alt:"down-caret"})]}),this.state.testSubmitted?"":(0,o.jsxs)("div",{className:"d-flex align-items-center "+u().headerData+(this.isProctored()," ml-auto"),children:[!!(null===(m=this.props)||void 0===m?void 0:m.getInstructions)&&!this.isProctored()&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:u().instructions+" clickable no-mobilee-md","data-toggle":"modal",onClick:this.showInstructions,children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:(0,o.jsxs)("g",{transform:"translate(-2.3 -2)",children:[(0,o.jsx)("path",{fill:"none",stroke:"#83878f",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px",d:"M22 12.5A9.5 9.5 0 1 1 12.5 3a9.5 9.5 0 0 1 9.5 9.5z",transform:"translate(.3)"}),(0,o.jsxs)("g",{fill:"#fff",stroke:"#707070",transform:"translate(11.8 8.72)",children:[(0,o.jsx)("circle",{cx:"1",cy:"1",r:"1",stroke:"none"}),(0,o.jsx)("circle",{cx:"1",cy:"1",r:".5",fill:"none"})]}),(0,o.jsx)("rect",{width:"2",height:"6",fill:"#707070",rx:"1",transform:"translate(11.8 11.72)"})]})}),(0,o.jsx)("span",{children:"Instructions"})]}),!(this.state.sectionId!=(null==te?void 0:null===(g=te.section)||void 0===g?void 0:g.id)&&this.state.showSectionInstructions)&&"cloze"==this.state.question.type&&(0,o.jsx)("div",{className:u().instructions+" clickable mobile-display-block",onClick:this.handleBottomSheet.bind(this,"instructions"),children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"21",viewBox:"0 0 21 21",children:(0,o.jsxs)("g",{transform:"translate(-2.3 -2)",children:[(0,o.jsx)("path",{fill:"none",stroke:"#83878f",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2px",d:"M22 12.5A9.5 9.5 0 1 1 12.5 3a9.5 9.5 0 0 1 9.5 9.5z",transform:"translate(.3)"}),(0,o.jsxs)("g",{fill:"#fff",stroke:"#707070",transform:"translate(11.8 8.72)",children:[(0,o.jsx)("circle",{cx:"1",cy:"1",r:"1",stroke:"none"}),(0,o.jsx)("circle",{cx:"1",cy:"1",r:".5",fill:"none"})]}),(0,o.jsx)("rect",{width:"2",height:"6",fill:"#707070",rx:"1",transform:"translate(11.8 11.72)"})]})})})]}),!!te&&0!=ts&&(0,o.jsx)("div",{className:"".concat(ts<=600?u().testAttemptTimer+" "+u().outOftime:u().testAttemptTimer),children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.936",height:"18.936","data-name":"vuesax/linear/timer",viewBox:"0 0 18.936 18.936",children:[(0,o.jsx)("path",{fill:"none",stroke:"#272848",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M16.371 10.45a6.9 6.9 0 11-6.907-6.9 6.906 6.906 0 016.907 6.9z"}),(0,o.jsx)("path",{fill:"none",stroke:"#272848",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9.468 6.312v3.945M7.101 1.578h4.734","data-name":"Vector"})]}),(0,o.jsx)("span",{children:(tl<10?"0".concat(tl):tl)+":"+(tr<10?"0".concat(tr):tr)+":"+(tn<10?"0".concat(tn):tn)})]})}),this.isProctored()?(0,o.jsx)("div",{className:P().proctoredHeaderRight,children:(0,o.jsxs)("div",{className:P().proctoredViolationsBadge,children:[this.state.proctoringViolations," violation",1!==this.state.proctoringViolations?"s":""]})}):!((null===(b=this.props.router)||void 0===b?void 0:null===(f=b.query)||void 0===f?void 0:f.isEmbeddedTms)==="true"||(null===(y=this.props.router)||void 0===y?void 0:null===(x=y.query)||void 0===x?void 0:x.embedded)==="2")&&(0,o.jsx)("div",{className:u().endTest,onClick:()=>{this.finishAttemptConfirmation()},"data-toggle":"modal",children:"End Test"})]})]}),this.state.sectionId!=(null==te?void 0:null===(q=te.section)||void 0===q?void 0:q.id)&&this.state.showSectionInstructions?(0,o.jsx)("main",{className:"content-area "+(0==ts?"pt-0":u().contentPT)+(this.isProctored()?" "+P().proctoredMainContent:" mx-auto"),style:{minHeight:"auto"},children:(0,o.jsx)("div",{className:"container-fluid",children:(0,o.jsx)("div",{className:w().contentPT+" pb-4",children:(0,o.jsx)("div",{className:"row",children:(0,o.jsxs)("div",{className:"col-xl-9 mx-auto",children:[(0,o.jsx)("div",{className:u().backBtn+" no-mobilee-md",style:{visibility:this.state.sectionId&&"free"!==this.props.navMethod?"hidden":"visible"},children:(null===(T=this.props.router)||void 0===T?void 0:null===(j=T.query)||void 0===j?void 0:j.embedded)!=="2"&&(0,o.jsxs)("button",{className:"btn btn-reset btn-back",onClick:this.goBack,children:[(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/back.svg",alt:"icon"})," Back"]})}),(0,o.jsx)(S.Z,{className:"instructionHeader",openInstructions:this.handleBottomSheet.bind(this,"instructions"),question:te,continueAttempt:this.continueSection})]})})})})}):(0,o.jsx)("main",{className:"pl-main-container overflow-hidden "+u().attemtTestContainer+" "+(0==ts?"mt-0":"")+(this.isProctored()?" "+P().proctoredMainContent:""),children:(0,o.jsx)("div",{className:"container-fluid "+u().prZero,children:(0,o.jsxs)("div",{className:u().testMainBlock,children:[(0,o.jsx)(n.Z,{totalAnsweredQuestions:this.state.totalAnsweredQuestions,openInstructions:this.handleBottomSheet.bind(this,"instructions"),firstQuestionId:this.state.firstQuestionId,lastQuestionId:this.state.lastQuestionId,feedbackType:this.props.feedbackType,currentQuestionId:null===(k=this.state.question)||void 0===k?void 0:null===(C=k.question)||void 0===C?void 0:C.questionId,answers:this.state.answers,flagged:this.state.flagged,question:this.state.question,isNavigationOpen:this.state.showQuestionNumbers,getQuestion:this.getQuestion,isLoading:this.state.isLoading,changeIsLoading:this.changeIsLoading,bookmarkQuestion:this.bookmarkQuestion,saveUserAnswer:this.saveUserAnswer,getAttemptNavigation:this.getAttemptNavigation,finishAttemptConfirmation:this.finishAttemptConfirmation,saveClozeText:this.saveClozeText,clozeText:this.state.innerHTML[null===(A=this.state.question)||void 0===A?void 0:null===(E=A.question)||void 0===E?void 0:E.questionId],navMethod:this.props.navMethod,callCleverTapEvents:this.cleverTapQuestionEvents,previousQuestion:this.state.previousQuestionPage}),(0,o.jsxs)("div",{className:" position-relative "+u().questionNumberBlock,id:"numberBlock",style:{marginRight:this.state.showQuestionNumbers?"":-to+15+"px"},children:[(0,o.jsx)("div",{className:this.state.showQuestionNumbers?u().toggleArrow:u().togleArrowReverse,onClick:this.handleToggle.bind(this),children:(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/arrow_up.svg"})}),(0,o.jsx)(r.Z,{currentQuestionId:null===(z=this.state.question)||void 0===z?void 0:null===(M=z.question)||void 0===M?void 0:M.questionId,currentQuestionSubject:null===(F=this.state.question)||void 0===F?void 0:null===(R=F.section)||void 0===R?void 0:R.quizSubjectId,getQuestion:this.getQuestion,navigation:this.state.navigation,changeIsLoading:this.changeIsLoading,navMethod:this.props.navMethod,cleverTapEvents:this.cleverTapEvents})]})]})})})]}),this.state.showEditPopup&&(0,o.jsx)("div",{className:"modal fade ",id:"endTest1",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true","data-backdrop":"static",style:{cursor:"default",backdropFilter:this.state.testSubmitted?"blur(22.5px)":""},children:(0,o.jsx)("div",{className:"modal-dialog modal-dialog-centered "+u().popupWidth,role:"document",children:(0,o.jsxs)("div",{className:w().contnetBox+" modal-content",children:[(0,o.jsxs)("div",{className:"modal-header "+w().header,style:{borderBottom:"0"},children:[(0,o.jsx)("h4",{className:"text-center w-100",children:this.state.testSubmitted?"Test is submitted":"Are you sure to end the test?"}),this.state.testSubmitted?"":(0,o.jsx)("img",{className:"clickable",onClick:this.resume,src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/close-icon.svg",alt:"close-icon"})]}),(0,o.jsxs)("div",{className:w().alertBox+" modal-body",style:{maxWidth:"100%"},children:[this.state.testSubmitted?(0,o.jsx)("p",{className:u().text,children:"Below is your test summary"}):(0,o.jsxs)("p",{className:u().text,children:["Your test attempt would be submitted and you will not be able to ",(0,o.jsx)("span",{children:"Edit/Continue the test attempt later"})]}),(0,o.jsxs)("div",{className:u().summary,children:[(0,o.jsx)("div",{className:u().subTitle,children:"Questions summary"}),(0,o.jsxs)("ul",{className:"list-inline "+u().answerDetails,children:[(0,o.jsxs)("li",{className:u().numOfUnanswered,children:[(0,o.jsx)("span",{children:this.state.summary.unAnsweredCount})," Unanswered"]}),(0,o.jsxs)("li",{className:u().numOfAnswered,children:[(0,o.jsx)("span",{children:this.state.summary.answeredCount})," Answered"]}),(0,o.jsxs)("li",{className:u().numOfMarked,children:[(0,o.jsxs)("span",{children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40.013",viewBox:"0 0 40 40.013",children:(0,o.jsx)("path",{d:"M4 0h32a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4s-.732.238-2.963-1.331-13.027-6.6-13.027-6.6S9.6 36.643 7.612 38.236A7.723 7.723 0 0 1 4 40a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",style:{fill:"#ffb238"}})}),this.state.summary.markedCount]})," Unanswered & Marked"]}),(0,o.jsxs)("li",{className:u().answeredAndMarked,children:[(0,o.jsxs)("span",{children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40.013",viewBox:"0 0 40 40.013",children:(0,o.jsx)("path",{d:"M4 0h32a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4s-.732.238-2.963-1.331-13.027-6.6-13.027-6.6S9.6 36.643 7.612 38.236A7.723 7.723 0 0 1 4 40a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",style:{fill:"#41d07d"}})}),this.state.summary.markedAnsweredCount]})," Answered & Marked"]})]})]})]}),(0,o.jsx)("div",{className:w().testBtn+" modal-footer justify-content-center",style:{borderTop:"0"},children:this.state.testSubmitted?(0,o.jsx)("button",{type:"submit",className:w().resumeBtn,onClick:this.redirect,children:"Ok"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"submit",className:w().resumeBtn,onClick:this.resume,disabled:this.state.isDisabled,children:"Resume Test"}),!((null===(Q=this.props.router)||void 0===Q?void 0:null===(V=Q.query
1)||void 0===V?void 0:V.isEmbeddedTms)==="true"||(null===(U=this.props.router)||void 0===U?void 0:null===(W=U.query)||void 0===W?void 0:W.embedded)==="2")&&(0,o.jsx)("button",{type:"submit",className:w().endBtn,disabled:this.state.isDisabled,onClick:this.finishAttempt.bind(this,"End_Test"),children:"End Test"})]})})]})})}),(0,o.jsx)("div",{className:"modal fade "+u().timerModal,id:"timerOut","data-backdrop":"static","data-keyboard":"false",tabIndex:"-1","aria-labelledby":"staticBackdropLabel","aria-hidden":"true",children:(0,o.jsx)("div",{className:"modal-dialog modal-dialog-centered "+u().modalDailog,children:(0,o.jsx)("div",{className:"modal-content "+u().modalContent,children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("h2",{children:[(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/timer-icon.svg",alt:"alarmicon"}),"Your test is about to end!"]}),(0,o.jsxs)("p",{children:["Scheduled test time is about to end in ".concat(tr+1," minutes.")," "]}),(0,o.jsx)("p",{children:"Please complete and submit the test before it ends."}),(0,o.jsx)("button",{type:"button","data-dismiss":"modal",children:"OK"})]})})})}),this.state.showInstructions&&(0,o.jsx)("div",{className:"modal fade ",id:"instructions",tabIndex:"-1",role:"dialog","aria-labelledby":"instructionsLabel","aria-hidden":"true","data-backdrop":"static",style:{cursor:"default"},children:(0,o.jsx)("div",{className:"modal-dialog courseSchedulePopup testInstrPopup",role:"document",children:(0,o.jsx)("div",{className:"modal-content",style:{overflowY:"auto"},children:(0,o.jsxs)("div",{className:" modal-body",children:[(0,o.jsx)("button",{type:"button",className:"btn close","data-dismiss":"modal","aria-label":"Close",onClick:()=>{this.setState(()=>({showInstructions:!1}))}}),(0,o.jsx)(S.Z,{className:"sideBarInstructionHeader",question:te,isModal:!0,instructions:this.props.getInstructions})]})})})})]}):(0,o.jsx)(l.Z,{children:(0,o.jsx)("header",{id:"header",className:"header header_line headerFixed d-flex align-items-center border-bottom",children:(0,o.jsx)("div",{className:"pl-logo",children:(0,o.jsx)(_(),{href:"/",children:(0,o.jsx)("img",{src:"https://d2ivesio5kogrp.cloudfront.net/static/yuppedu/images/HeaderLogo.svg",alt:"Turito Logo",className:"img-fluid logo"})})})})}),this.state.displayFilter&&(0,o.jsx)("div",{className:"testFilterOverlay "+ti,onClick:this.handleBottomSheet.bind(this,""),style:{cursor:"default",backdropFilter:this.state.testSubmitted?"blur(22.5px)":""},children:(0,o.jsxs)("div",{className:"filterList",onClick:this.stopPropagation,children:["navigation"==this.state.typeOfBottomSheet&&(0,o.jsx)("div",{className:"col-sm-12 QuickLinksAccordion testFileters p-0 mt-0",style:{borderTop:"none"},children:(0,o.jsx)("div",{id:"accordion",className:"col-sm-12",children:(0,o.jsx)(r.Z,{currentQuestionId:null===(O=this.state.question)||void 0===O?void 0:null===(H=O.question)||void 0===H?void 0:H.questionId,currentQuestionSubject:null===(G=this.state.question)||void 0===G?void 0:null===(X=G.section)||void 0===X?void 0:X.quizSubjectId,getQuestion:this.getQuestion,navigation:this.state.navigation,changeIsLoading:this.changeIsLoading,navMethod:this.props.navMethod,cleverTapEvents:this.cleverTapEvents})})}),"instructions"==this.state.typeOfBottomSheet&&(0,o.jsx)("div",{className:u().popUp,children:(0,o.jsx)(S.Z,{question:te,isMobileOverlay:!0,instructions:this.props.getInstructions})}),"endTest"==this.state.typeOfBottomSheet&&(0,o.jsx)("div",{className:u().popUp,style:{cursor:"default",backdropFilter:this.state.testSubmitted?"blur(22.5px) !important":""},children:(0,o.jsxs)("div",{className:w().contnetBox,children:[(0,o.jsx)("div",{className:w().header,style:{borderBottom:"0"},children:(0,o.jsx)("h4",{className:"text-center w-100",children:this.state.testSubmitted?"Test is submitted":"Are you sure to end the test?"})}),(0,o.jsxs)("div",{className:w().alertBox+" px-0 mx-0",style:{maxWidth:"100%"},children:[this.state.testSubmitted?(0,o.jsx)("p",{className:u().text,children:"Below is your test summary"}):(0,o.jsxs)("p",{className:u().text,children:["Your test attempt would be submitted and you will not be able to ",(0,o.jsx)("span",{children:"Edit/Continue the test attempt later"})]}),(0,o.jsxs)("div",{className:u().summary,children:[(0,o.jsx)("div",{className:u().subTitle,children:"Questions summary"}),(0,o.jsxs)("ul",{className:"list-inline "+u().answerDetails,children:[(0,o.jsxs)("li",{className:u().numOfUnanswered,children:[(0,o.jsx)("span",{children:this.state.summary.unAnsweredCount})," Unanswered"]}),(0,o.jsxs)("li",{className:u().numOfAnswered,children:[(0,o.jsx)("span",{children:this.state.summary.answeredCount})," Answered"]}),(0,o.jsxs)("li",{className:u().numOfMarked,children:[(0,o.jsxs)("span",{children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40.013",viewBox:"0 0 40 40.013",children:(0,o.jsx)("path",{d:"M4 0h32a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4s-.732.238-2.963-1.331-13.027-6.6-13.027-6.6S9.6 36.643 7.612 38.236A7.723 7.723 0 0 1 4 40a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",style:{fill:"#ffb238"}})}),this.state.summary.markedCount]})," Unanswered & Marked"]}),(0,o.jsxs)("li",{className:u().answeredAndMarked,children:[(0,o.jsxs)("span",{children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40.013",viewBox:"0 0 40 40.013",children:(0,o.jsx)("path",{d:"M4 0h32a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4s-.732.238-2.963-1.331-13.027-6.6-13.027-6.6S9.6 36.643 7.612 38.236A7.723 7.723 0 0 1 4 40a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",style:{fill:"#41d07d"}})}),this.state.summary.markedAnsweredCount]})," Answered & Marked"]})]})]})]}),(0,o.jsx)("div",{className:w().testBtn+" d-flex justify-content-center",style:{borderTop:"0"},children:this.state.testSubmitted?(0,o.jsx)("button",{type:"submit",className:w().resumeBtn,onClick:this.redirect,children:"Ok"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("button",{type:"submit",className:w().resumeBtn,onClick:this.resume,disabled:this.state.isDisabled,children:"Resume Test"}),!((null===(K=this.props.router)||void 0===K?void 0:null===(Z=K.query)||void 0===Z?void 0:Z.isEmbeddedTms)==="true"||(null===(J=this.props.router)||void 0===J?void 0:null===(Y=J.query)||void 0===Y?void 0:Y.embedded)==="2")&&(0,o.jsx)("button",{type:"submit",className:w().endBtn,disabled:this.state.isDisabled,onClick:this.finishAttempt.bind(this,"End_Test"),children:"End Test"})]})})]})})]})}),this.isProctored()&&"inprogress"===this.state.attemptState&&!this.state.proctoringShowSubmitted&&(0,o.jsx)(N,{violations:this.state.proctoringViolations,violationLog:this.state.proctoringViolationLog,maxViolations:this.state.proctoringMaxViolations,onSnapshot:this.submitProctoringFrame}
1),this.isProctored()&&this.state.proctoringShowFullscreenPrompt&&!this.state.proctoringIsDisqualified&&(0,o.jsx)(B,{isReEntry:this.state.proctoringFullscreenReEntry,onEnter:()=>this.setState({proctoringShowFullscreenPrompt:!1})}),this.isProctored()&&this.state.proctoringIsDisqualified&&!this.state.proctoringShowSubmitted&&(0,o.jsx)(D,{violationLog:this.state.proctoringViolationLog,onReturn:this.showProctoringSubmittedScreen}),this.isProctored()&&this.state.proctoringShowSubmitted&&(()=>{var t,e,i,s,n,r,l,d;let a=this.props.getInstructions,u="undefined"!=typeof localStorage?localStorage.getItem("subjectid2"):null,c=u?null==a?void 0:null===(t=a.subjects)||void 0===t?void 0:t.find(t=>{var e;return String(null===(e=t.subject)||void 0===e?void 0:e.id)===String(u)}):null,p=(null==c?void 0:null===(e=c.subject)||void 0===e?void 0:e.name)||(null==a?void 0:null===(i=a.subjects)||void 0===i?void 0:null===(s=i[0])||void 0===s?void 0:null===(n=s.subject)||void 0===n?void 0:n.name)||(null==a?void 0:null===(r=a.quiz)||void 0===r?void 0:r.name)||"Unknown Subject",v=(null==a?void 0:null===(l=a.quiz)||void 0===l?void 0:null===(d=l.generalInfo)||void 0===d?void 0:d.type)||"knowledge quiz",h=v.charAt(0).toUpperCase()+v.slice(1),m=this.state.summary,g=(m.answeredCount||0)+(m.markedAnsweredCount||0),_=g+(m.unAnsweredCount||0)+(m.markedCount||0);return(0,o.jsx)(L,{subjectName:p,testType:h,timeTakenSec:this.state.proctoringTimeTakenSec,answered:g,totalQ:_,violations:this.state.proctoringViolations,isDisqualified:this.state.proctoringIsDisqualified,onReturn:this.handleProctoringReturn})})()]}):(0,o.jsx)(l.Z,{children:(0,o.jsxs)("div",{className:u().preLoadingpage,children:[(0,o.jsxs)("header",{children:[(0,o.jsx)("div",{className:"bg-empty"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:(0,o.jsx)("div",{className:"bg-empty"})}),(0,o.jsx)("li",{children:(0,o.jsx)("div",{className:"bg-empty"})}),(0,o.jsx)("li",{children:(0,o.jsx)("div",{className:"bg-empty"})})]})]}),(0,o.jsx)("div",{className:"container-fluid "+u().preloadBody,children:(0,o.jsxs)("div",{className:"row",children:[(0,o.jsxs)("div",{className:u().preloadLeft,children:[(0,o.jsxs)("div",{className:"card card-body "+u().cardQuestion,children:[(0,o.jsxs)("div",{className:"row",children:[(0,o.jsx)("div",{className:"col-lg-6 col-md-6 col-sm-6 col-xs-12 "+u().blockOne,children:(0,o.jsx)("div",{className:"bg-empty"})}),(0,o.jsxs)("div",{className:"col-lg-6 col-md-6 col-sm-6 col-xs-12 "+u().blockTwo,children:[(0,o.jsx)("div",{className:"bg-empty"}),(0,o.jsx)("div",{className:"bg-empty"})]})]}),(0,o.jsx)("div",{className:"bg-empty "+u().blockThree})]}),(0,o.jsx)("div",{className:"card card-body "+u().cardEmpty})]}),(0,o.jsx)("div",{className:u().preloadRight,children:(0,o.jsxs)("div",{className:"card card-body "+u().cardQuestiontypes,children:[(0,o.jsx)("div",{className:"bg-empty"}),(0,o.jsx)("div",{className:"bg-empty"})]})})]})}),(0,o.jsxs)("div",{className:u().preLoadfooter,children:[(0,o.jsx)("div",{className:"bg-empty"}),(0,o.jsx)("div",{className:"bg-empty"})]})]})})}constructor(t){var e,i,o,s,n;super(t),e=this,this.isProctored=()=>{var t,e;return(null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.embedded)==="3"||this.isSEB()},this.isSEB=()=>{var t,e,i,o;return!!((null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.sebToken)||(null===(i=this.props.router)||void 0===i?void 0:null===(o=i.query)||void 0===o?void 0:o.token)||sessionStorage.getItem("isSEB"))},this._violationToEventType=t=>{let e=t.toLowerCase();return e.includes("tab")||e.includes("minimis")?"tab_switch":e.includes("focus")||e.includes("blur")?"focus_lost":e.includes("fullscreen")?"fullscreen_exit":e.includes("copy")?"clipboard_copy":e.includes("paste")?"clipboard_paste":e.includes("cut")?"clipboard_cut":e.includes("developer tools")||e.includes("devtools")?"devtools_open":e.includes("print")?"print_attempt":e.includes("print screen")?"print_screen":e.includes("alt+tab")?"alt_tab":e.includes("refresh")||e.includes("close")?"page_unload":e.includes("back")||e.includes("forward")||e.includes("navigation")?"navigation_attempt":"unknown_violation"},this.submitProctoringEvent=async function(t){let i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{let o=sessionStorage.getItem("procAttemptId"),s=sessionStorage.getItem("procStudentId"),n=sessionStorage.getItem("procQuizId");if(!o||!s||!n)return;let r=new d.default;
1await r.postData("API_EXAM_URL","submit/quiz/attempt/events",{sessionId:o,studentId:s,examId:n,events:[{type:e._violationToEventType(t),timestamp:new Date().toISOString(),details:{description:t},blocked:i}]})}catch(t){console.error("[Proctoring] Failed to submit event:",t)}},this.handleProctoringViolation=t=>{this.isProctored()&&"inprogress"===this.state.attemptState&&!this.state.proctoringIsDisqualified&&this.submitProctoringEvent(t,!0)},this.rejectProctoringAttempt=async()=>{try{let t=localStorage.getItem("procSubjectId"),e=localStorage.getItem("procTeacherId"),i=new d.default;console.log("[Proctoring] Calling reject API with:",{id:t,teacherId:e}),await i.postData("API_MARKETPLACE_URL","update/teacher/subject/status",{id:t?Number(t):null,teacherId:e?Number(e):null,status:"rejected"}),console.log("[Proctoring] Reject API called â student disqualified")}catch(t){console.error("[Proctoring] Failed to call reject API:",t)}},this.logProctoringWarning=t=>{this.isProctored()&&!this.state.proctoringIsDisqualified&&this.setState(e=>({proctoringViolationLog:[...e.proctoringViolationLog,"â ".concat(t)]}))},this.handleProctoringReturn=()=>{if(this.isSEB()){window.location.href="/seb-quit";return}let t="localhost"===window.location.hostname?"http://localhost:4200/marketplace/subjects":A.eG.RedirectionAfterProctoringExam;localStorage.removeItem("tmsEmbedded"),localStorage.removeItem("tmsReturnUrl"),window.location.href=t},this.stopProctoring=()=>{clearInterval(this._violationsPollInterval),clearInterval(this._devToolsInterval),clearTimeout(this._proctoringBlurDebounce),this._violationsPollInterval=null,this._devToolsInterval=null,this._proctoringBlurDebounce=null,this._onVisibilityChange&&document.removeEventListener("visibilitychange",this._onVisibilityChange),this._onWindowBlur&&window.removeEventListener("blur",this._onWindowBlur),this._onWindowFocus&&window.removeEventListener("focus",this._onWindowFocus),this._onFullscreenChange&&(document.removeEventListener("fullscreenchange",this._onFullscreenChange),document.removeEventListener("webkitfullscreenchange",this._onFullscreenChange),document.removeEventListener("mozfullscreenchange",this._onFullscreenChange)),this._onCopy&&document.removeEventListener("copy",this._onCopy),this._onPaste&&document.removeEventListener("paste",this._onPaste),this._onCut&&document.removeEventListener("cut",this._onCut),this._onKeyDown&&document.removeEventListener("keydown",this._onKeyDown),this._onContextMenu&&document.removeEventListener("contextmenu",this._onContextMenu),this._onBeforeUnload&&window.removeEventListener("beforeunload",this._onBeforeUnload),this._onPopState&&window.removeEventListener("popstate",this._onPopState)},this.showProctoringSubmittedScreen=async()=>{var t,e,i;if(this.stopProctoring(),!this._isSubmitted&&this.props.quizCode&&(null===(t=this.state.attemptInfo)||void 0===t?void 0:t.quizAttemptId))try{let t=new d.default,e=await t.postData("API_EXAM_URL","submit/quiz/attempt",{quizCode:this.props.quizCode,quizAttemptId:this.state.attemptInfo.quizAttemptId},{});(null==e?void 0:e.status)&&(this._isSubmitted=!0)}catch(t){}let o=this._proctoringStartMs?Math.round((Date.now()-this._proctoringStartMs)/1e3):0;if(this.props.quizCode&&(null===(e=this.state.attemptInfo)||void 0===e?void 0:e.quizAttemptId))try{let t=new d.default,e=await t.getData("API_EXAM_URL","get/quiz/attempt/summary?quiz_code=".concat(this.props.quizCode,"&quiz_attempt_id=").concat(this.state.attemptInfo.quizAttemptId),{});(null==e?void 0:e.status)&&(null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.summary)&&this.setState({summary:e.response.summary})}catch(t){}this.setState({proctoringShowSubmitted:!0,proctoringTimeTakenSec:o})},this.submitProctoringFrame=async t=>{try{let e=sessionStorage.getItem("procAttemptId"),i=sessionStorage.getItem("procStudentId"),o=sessionStorage.getItem("procQuizId");if(!e||!i||!o)return;let s=await fetch(t),n=await s.blob(),r=new FormData;r.append("session_id",e),r.append("student_id",i),r.append("exam_id",o),r.append("frame",n,"snapshot_".concat(Date.now(),".jpg")),console.log("[Proctoring] Frame payload:",{session_id:e,student_id:i,exam_id:o,frame:"Blob size: ".concat(n.size," bytes, type: ").concat(n.type)}),console.log("[Proctoring] Frame preview (open URL to inspect):",t.substring(0,100)+"...");let l=new Image;l.src=t,l.style="position:fixed;bottom:10px;right:10px;width:160px;height:120px;border:2px solid red;z-index:99999;",l.title="Proctoring frame being sent",document.body.appendChild(l),setTimeout(()=>l.remove(),8e3);let a=new d.default;
1await a.postData("API_EXAM_URL","submit/quiz/attempt/frame",r)}catch(t){console.error("[Proctoring] Failed to submit frame:",t)}},this.streamCheckInitApi=async(t,e,i)=>{let o=new d.default;this.pollApiTimerId&&(clearInterval(this.pollApiTimerId),this.pollApiTimerId=null,this.pollApiTimerId=null);let s=await o.postData("API_COURSE_URL","stream/check/init",{contentId:parseInt(t,10),contentType:e,contentName:i},{}).catch(t=>{});if(s&&(null==s?void 0:s.status)){let t=parseInt((s.response.pollIntervalInMillis/1e3).toFixed(),10);this.setState(()=>{var e,i;return{streamPollKey:null==s?void 0:null===(e=s.response)||void 0===e?void 0:e.streamPollKey,pollIntervalInMillis:null==s?void 0:null===(i=s.response)||void 0===i?void 0:i.pollIntervalInMillis,pollIntervalInSeconds:t}}),this.pollApiTimerId=setInterval(()=>{this.streamCheckPollApi()},s.response.pollIntervalInMillis)}},this.streamCheckComplete=async()=>{var t,e;let i=new d.default,o=await i.postData("API_COURSE_URL","stream/check/session/end",{contentId:parseInt(this.props.testID),contentType:"ClientTestContent",contentName:null===(t=this.props.getInstructions)||void 0===t?void 0:null===(e=t.quiz)||void 0===e?void 0:e.name,streamPollKey:this.state.streamPollKey},{}).catch(t=>{});o&&(null==o?void 0:o.status)&&(null==o?void 0:o.response)&&(clearInterval(this.pollApiTimerId),this.pollApiTimerId=null)},this.normalizeWidth=()=>{this.setState(()=>({numberBlockWidth:this.state.numberBlockWidth}))},this.completeTestCleverTapData=async()=>{var t,e,i,o,s,n,r,l,a,u,c,p,v,h,m,g,_,b,I,f,w;let y=new d.default,x=await y.getData("API_EXAM_URL","get/user/quiz/attempt/report?quiz_id=".concat(this.props.quizId,"&quiz_attempt_id=").concat(null===(t=this.state.attemptInfo)||void 0===t?void 0:t.quizAttemptId));if(x&&(null==x?void 0:x.status)&&(null==x?void 0:null===(e=x.response)||void 0===e?void 0:null===(i=e.attemptInfo)||void 0===i?void 0:i.state)==="finished"){let t=this.props.getInstructions.subjects.map(t=>{var e;return null==t?void 0:null===(e=t.subject)||void 0===e?void 0:e.name}),e=null===(o=this.state)||void 0===o?void 0:null===(s=o.question)||void 0===s?void 0:null===(n=s.question)||void 0===n?void 0:n.questionId,i=null===(r=this.state)||void 0===r?void 0:r.previousQuestionPage,d={Score:null==x?void 0:null===(l=x.response)||void 0===l?void 0:null===(a=l.attemptInfo)||void 0===a?void 0:null===(u=a.stats)||void 0===u?void 0:u.userGrade,Test_id:null===(c=this.props)||void 0===c?void 0:c.testID,Subject:t.toString().charAt(0).toUpperCase()+t.toString().slice(1),Time_taken:Math.round(null==x?void 0:null===(p=x.response)||void 0===p?void 0:null===(v=p.attemptInfo)||void 0===v?void 0:null===(h=v.stats)||void 0===h?void 0:h.timeSpentInSec),Previous_page:i||"NA",Current_page:e||"NA",Number_of_questions_attempted:(null===(m=null==x?void 0:null===(g=x.response)||void 0===g?void 0:g.attemptReport[0])||void 0===m?void 0:m.totalQuestions)-(null===(_=null==x?void 0:null===(b=x.response)||void 0===b?void 0:b.attemptReport[0])||void 0===_?void 0:_.unAnswered),Percentage_of_questions_attempted:null==x?void 0:null===(I=x.response)||void 0===I?void 0:null===(f=I.attemptInfo)||void 0===f?void 0:null===(w=f.stats)||void 0===w?void 0:w.percentage};await (0,q.sendCleverTapEventsData)("Test_completed",d)}},this.changeIsLoading=()=>{this.setState(()=>({isLoading:!0}))},this.showInstructions=()=>{this.setState(()=>({showInstructions:!0}),()=>{$("#instructions").modal("show")})},this.stopPropagation=t=>{t.stopPropagation()},this.resume=()=>{var t,e,i,o,s,n,r,l,d,a,u,c,p,v,h,m,g,_;this.state.showEditPopup?(this.setState(()=>({showEditPopup:!1})),$("#endTest1").modal("hide").data("bs.modal",null),$(".modal-backdrop").hide(),$("body").removeClass("modal-open")):this.state.displayFilter&&this.handleBottomSheet();let b={Question_id:null===(t=this.state)||void 0===t?void 0:null===(e=t.question)||void 0===e?void 0:null===(i=e.question)||void 0===i?void 0:i.questionId,Test_id:null===this||void 0===this?void 0:null===(o=this.props)||void 0===o?void 0:o.testID,Subject:(null===(s=this.state)||void 0===s?void 0:null===(n=s.question)||void 0===n?void 0:null===(r=n.section)||void 0===r?void 0:r.subjectName.charAt(0).toUpperCase())+(null===(l=this.state)||void 0===l?void 0:null===(d=l.question)||void 0===d?void 0:null===(a=d.section)||void 0===a?void 0:a.subjectName.slice(1)),Previous_page:(null===(u=this.state)||void 0===u?void 0:null===(c=u.question)||void 0===c?void 0:null===(p=c.question)||void 0===p?void 0:p.questionId)||"NA",Answered:(null===(v=this.state)||void 0===v?void 0:null===(h=v.question)||void 0===h?void 0:null===(m=h.question)||void 0===m?void 0:null===(g=m.questionInfo)||void 0===g?void 0:null===(_=g.attempt)||void 0===_?void 0:_.attemptStatus)!=="todo"?"Yes":"No",Action:"Resume"};(0,q.sendCleverTapEventsData)("Test_question_view",b)},this.handleToggle=()=>{this.setState(()=>({showQuestionNumbers:!this.state.showQuestionNumbers}
1))},this.getQuestion=async function(){var t,i,o,s,n,r,l,a,u,c,p,v,h,m,g,_,b,I,f,w,y,x,S,q,T,j,k,C,P,A,N,D,L,B,E,z,M,F,R,Q,V,U,W,O;let H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"user/quiz/attempt/state",G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,X=null===(t=e.state.question)||void 0===t?void 0:null===(i=t.question)||void 0===i?void 0:i.questionId;e.updateTime();let K=new d.default,Z="get/"+H+"?quiz_code="+e.props.quizCode+"&quiz_attempt_id="+(null===(o=e.state.attemptInfo)||void 0===o?void 0:o.quizAttemptId)+(-1!=G?"&question_id="+G:""),J=await K.getData("API_EXAM_URL",Z,{});if(J.status){let t=null==J?void 0:null===(s=J.response)||void 0===s?void 0:s.questionAttempt,i=null==t?void 0:null===(n=t.question)||void 0===n?void 0:n.questionInfo;t.type=null==t?void 0:null===(r=t.question)||void 0===r?void 0:null===(l=r.questionInfo)||void 0===l?void 0:null===(a=l.question)||void 0===a?void 0:a.type;let o=null==t?void 0:null===(u=t.section)||void 0===u?void 0:u.quizSubjectId,d=null===(c=e.props.getInstructions)||void 0===c?void 0:c.subjects.filter(t=>t.subject.id==o);if(d=(null==d?void 0:d.length)>0?null===(p=d[0])||void 0===p?void 0:null===(v=p.subject)||void 0===v?void 0:v.name:"",(null==t?void 0:null===(h=t.question)||void 0===h?void 0:null===(m=h.clozeQuestionInfo)||void 0===m?void 0:null===(g=m.question)||void 0===g?void 0:g.type)&&(t.type=null==t?void 0:null===(j=t.question)||void 0===j?void 0:null===(k=j.clozeQuestionInfo)||void 0===k?void 0:null===(C=k.question)||void 0===C?void 0:C.type,i=null==t?void 0:null===(P=t.question)||void 0===P?void 0:P.clozeQuestionInfo),"dragdrop"==t.type){let t=null==i?void 0:null===(A=i.question)||void 0===A?void 0:A.questionText;i.drops.map(e=>t=t.replace("__".concat(e.choiceNumber,"__"),"<span id=drop".concat(e.id,' class="dropItems"><small> </small></span>'))),i.question.questionText=t}let Z={},Y={};if("cloze"==t.type)i.childQuestions.map((t,e)=>{var i,o,s,n,r,l,d;Y[null==t?void 0:null===(i=t.question)||void 0===i?void 0:i.id]=null==t?void 0:null===(o=t.attempt)||void 0===o?void 0:o.flagged;let a=(null==t?void 0:null===(s=t.attempt)||void 0===s?void 0:null===(n=s.responseSummary)||void 0===n?void 0:n.split(","))||[],u=(null==t?void 0:null===(r=t.attempt)||void 0===r?void 0:r.feedbackBehaviour)=="post_question_submission"&&a.length>0;Z[null==t?void 0:null===(l=t.question)||void 0===l?void 0:l.id]={answer:a,type:null==t?void 0:null===(d=t.question)||void 0===d?void 0:d.type,showResult:u,isValid:!0}});else if("dragdrop"==t.type){Y[null==i?void 0:null===(N=i.question)||void 0===N?void 0:N.id]=null==i?void 0:null===(D=i.attempt)||void 0===D?void 0:D.flagged;let t=[],e=!1;if(null==i?void 0:null===(L=i.attempt)||void 0===L?void 0:L.responseSummary)t=(null===(z=JSON.parse(null==i?void 0:null===(M=i.attempt)||void 0===M?void 0:M.responseSummary))||void 0===z?void 0:z.answers)||[],e=(null==i?void 0:null===(F=i.attempt)||void 0===F?void 0:F.feedbackBehaviour)=="post_question_submission"&&t.length>0;else{let e=(null==i?void 0:i.drops)||[];e.length>0&&e.forEach(e=>{let i=e.id;t.push({dropId:i,dragId:-1})})}Z[null==i?void 0:null===(B=i.question)||void 0===B?void 0:B.id]={answer:t,type:null==i?void 0:null===(E=i.question)||void 0===E?void 0:E.type,showResult:e,isValid:!0}}else{Y[null==i?void 0:null===(R=i.question)||void 0===R?void 0:R.id]=null==i?void 0:null===(Q=i.attempt)||void 0===Q?void 0:Q.flagged;let t=null==i?void 0:null===(V=i.attempt)||void 0===V?void 0:V.responseSummary,e=t?[t]:[],o=(null==i?void 0:null===(U=i.attempt)||void 0===U?void 0:U.feedbackBehaviour)=="post_question_submission"&&e.length>0;Z[null==i?void 0:null===(W=i.question)||void 0===W?void 0:W.id]={answer:e,type:null==i?void 0:null===(O=i.question)||void 0===O?void 0:O.type,showResult:o,isValid:!0}}t.section.subjectName=d,e.setState(()=>({answers:Z,flagged:Y})),e.setState(()=>{var i,o;return{question:t,showSectionInstructions:!("quiz/question"==H||"previous/question"==H),sectionId:null===(i=e.state.question)||void 0===i?void 0:null===(o=i.section)||void 0===o?void 0:o.id,displayFilter:!1}},()=>{e.getAttemptNavigation()}),e.setState(()=>({questionStartTime:new Date().getTime()}));let tt={quizCode:e.props.quizCode,quizAttemptId:null===(_=e.state.attemptInfo)||void 0===_?void 0:_.quizAttemptId,subjectId:null==t?void 0:null===(b=t.section)||void 0===b?void 0:b.quizSubjectId,sectionId:null==t?void 0:null===(I=t.section)||void 0===I?void 0:I.id,questionId:(null===(f=null==t?void 0:null===(w=t.question)||void 0===w?void 0:null===(y=w.clozeQuestionInfo)||void 0===y?void 0:y.childQuestions[0].question)||void 0===f?void 0:f.id)||(null==t?void 0:null===(x=t.question)||void 0===x?void 0:x.questionId)};
1await K.postData("API_EXAM_URL","save/user/quiz/attempt/state",tt,{}),null==t||null===(S=t.question)||void 0===S||null===(q=S.questionInfo)||void 0===q||null===(T=q.question)||void 0===T||T.questionText,X===G?e.setState({previousQuestionPage:G}):e.setState({previousQuestionPage:X})}e.setState(()=>({isLoading:!1}))},this.getAttemptNavigation=async()=>{var t;let e="get/quiz/attempt/navigation?quiz_code="+this.props.quizCode+"&quiz_attempt_id="+(null===(t=this.state.attemptInfo)||void 0===t?void 0:t.quizAttemptId),i=new d.default,o=await i.getData("API_EXAM_URL",e,{});(null==o?void 0:o.status)&&this.setState(()=>{var t;return{navigation:null==o?void 0:null===(t=o.response)||void 0===t?void 0:t.subjects}},()=>{-1==this.state.firstQuestionId&&this.getFirstLastquestionIds(),this.allowToAnswerQuestion()})},this.allowToAnswerQuestion=async()=>{var t,e,i,o;let s=0,n=null===(t=null===(e=this.state.navigation)||void 0===e?void 0:e.find(t=>{var e,i,o;return(null==t?void 0:null===(e=t.subject)||void 0===e?void 0:e.id)==(null===(i=this.state.question)||void 0===i?void 0:null===(o=i.section)||void 0===o?void 0:o.quizSubjectId)}))||void 0===t?void 0:null===(i=t.sections)||void 0===i?void 0:i.find(t=>{var e,i,o;return(null==t?void 0:null===(e=t.section)||void 0===e?void 0:e.id)==(null===(i=this.state.question)||void 0===i?void 0:null===(o=i.section)||void 0===o?void 0:o.id)});(null==n?void 0:null===(o=n.section)||void 0===o?void 0:o.id)&&(null==n||n.questions.map(t=>{var e,i,o,n,r;(null==t?void 0:null===(e=t.cloze)||void 0===e?void 0:e.childQuestions)?s+=(null===(o=null==t?void 0:null===(n=t.cloze)||void 0===n?void 0:null===(r=n.childQuestions)||void 0===r?void 0:r.filter(t=>t.isAnswered))||void 0===o?void 0:o.length)||0:(null==t?void 0:null===(i=t.question)||void 0===i?void 0:i.isAnswered)&&(s+=1)})),this.setState(()=>({totalAnsweredQuestions:s}))},this.bookmarkQuestion=async(t,e)=>{var i;let o=new d.default,s={quizCode:this.props.quizCode,quizAttemptId:null===(i=this.state.attemptInfo)||void 0===i?void 0:i.quizAttemptId,questionId:t,flagged:e},n=await o.postData("API_EXAM_URL","flag/question",s,{});(null==n?void 0:n.status)&&this.getAttemptNavigation()},this.saveUserAnswer=async(t,e,i)=>{var o,s,n,r;let l="save",a=new d.default;(null==t?void 0:null===(o=t.answer)||void 0===o?void 0:o.length)==0&&(l="clear");let u=null==t?void 0:null===(s=t.answer)||void 0===s?void 0:s.join(",");"dragdrop"===t.type&&((null==t?void 0:null===(r=t.answer)||void 0===r?void 0:r.every(t=>-1==t.dragId))&&(l="clear"),u=JSON.stringify({answers:t.answer}));let c={quizCode:this.props.quizCode,quizAttemptId:null===(n=this.state.attemptInfo)||void 0===n?void 0:n.quizAttemptId,questionId:Number(i)};"save"==l&&(c.response=u),await a.postData("API_EXAM_URL",l+"/user/answer",c,{})},this.updateTime=async()=>{var t,e,i,o,s,n;let r=new d.default;if(this.state.questionStartTime&&(null===(t=this.props.checkQuiz)||void 0===t?void 0:null===(e=t.response)||void 0===e?void 0:null===(i=e.attemptDetails)||void 0===i?void 0:i.hasTimeLimit)){let t=new Date().getTime();t>this.state.endTimeStamp.getTime()&&(t=this.state.endTimeStamp.getTime());let e={quizAttemptId:null===(o=this.state.attemptInfo)||void 0===o?void 0:o.quizAttemptId,questionId:null===(s=this.state.question)||void 0===s?void 0:null===(n=s.question)||void 0===n?void 0:n.questionId,timeSpentInSec:(t-this.state.questionStartTime)/1e3};await r.postData("API_EXAM_URL","update/quiz/question/attempt/timing",e,{})}},this.finishAttemptConfirmation=async()=>{var t,e,i,o,s,n,r,l,a,u,c,p;let v=new d.default,h="get/quiz/attempt/summary?quiz_code="+this.props.quizCode+"&quiz_attempt_id="+(null===(t=this.state.attemptInfo)||void 0===t?void 0:t.quizAttemptId),m=await v.getData("API_EXAM_URL",h,{});(null==m?void 0:m.status)&&(null==m?void 0:null===(e=m.response)||void 0===e?void 0:e.summary)&&this.setState(()=>{var t;return{summary:null==m?void 0:null===(t=m.response)||void 0===t?void 0:t.summary}});try{let t=(null===(o=this.props.router)||void 0===o?void 0:null===(s=o.query)||void 0===s?void 0:s.embedded)==="1",e=!t&&((null===(n=this.props.router)||void 0===n?void 0:null===(r=n.query)||void 0===r?void 0:r.embedded)==="2"||(null===(l=this.props.router)||void 0===l?void 0:null===(a=l.query)||void 0===a?void 0:a.embedded)==="3"||(null===(u=this.props.router)||void 0===u?void 0:null===(c=u.query)||void 0===c?void 0:c.isEmbeddedTms)==="true"||"true"===localStorage.getItem("tmsEmbedded"));if(e&&this._isSubmitted){if(this.isProctored()){this.showProctoringSubmittedScreen();return}let t="localhost"===window.location.hostname?"http://localhost:4200/marketplace/subjects":A.eG.RedirectionAfterProctoringExam;localStorage.removeItem("tmsEmbedded"),localStorage.removeItem("tmsReturnUrl"),window.location.replace(t);return}if(t&&this._isSubmitted&&window.parent&&window.parent!==window){window.parent.postMessage({type:"quiz-attempt-complete",quizCode:this.props.quizCode,quizAttemptId:null===(p=this.state.attemptInfo)||void 0===p?void 0:p.quizAttemptId},"*");return}}catch(t){}(null===(i=this.state)||void 0===i?void 0:i.quizType)!="diagnostic"?screen.width>767?this.setState({showEditPopup:!0},()=>{$("#endTest1").modal("show")}):this.handleBottomSheet("endTest"):this.finishAttempt()},this.redirect=()=>
1{let{isFromResourcesExam:t,reattemptTest:e,testPrepId:i,isLandingPage:o,isIoqmMockTest:s,hideRecommendations:n}=this.props.router.query,r=("true"===s?"&isIoqmMockTest=true":"")+("true"===n?"&hideRecommendations=true":"");if(t&&e)m().push("/user/ai-tutor-landing-page?resource=true");else if(t&&!e||o){let t={isLandingPage:"true"};i&&(t.testPrepId=i),m().push({pathname:"/test/".concat(this.props.testID),query:t})}else sessionStorage.setItem("isFromAttempt",!0),this.state.courseId?m().push("/test/"+this.props.testID+"?courseId="+this.state.courseId+"&testAttempted=true"+r):m().push("/test/"+this.props.testID+"?testPrepId="+this.state.TestPrepId+"&testAttempted=true"+r)},this.goBack=()=>{var t,e,i,o,s,n,r,l,d,a,u;if((null===(t=this.props.router)||void 0===t?void 0:null===(e=t.query)||void 0===e?void 0:e.embedded)==="2"){let t="localhost"===window.location.hostname?"http://localhost:4200/marketplace/subjects":A.eG.RedirectionAfterProctoringExam;window.location.href=t;return}this.state.sectionId?this.getQuestion("previous/question",(null===(i=null===(o=this.state)||void 0===o?void 0:null===(s=o.question)||void 0===s?void 0:null===(n=s.question)||void 0===n?void 0:null===(r=n.clozeQuestionInfo)||void 0===r?void 0:r.childQuestions[0])||void 0===i?void 0:null===(l=i.question)||void 0===l?void 0:l.id)||(null===(d=this.state)||void 0===d?void 0:null===(a=d.question)||void 0===a?void 0:null===(u=a.question)||void 0===u?void 0:u.questionId)):m().back()},this.continueSection=async()=>{this.setState(()=>{var t,e;return{showSectionInstructions:!1,sectionId:null===(t=this.state.question)||void 0===t?void 0:null===(e=t.section)||void 0===e?void 0:e.id}})},this.saveClozeText=(t,e)=>{let i={[t]:e};this.setState(t=>({innerHTML:{...t.innerHTML,...i}}))},this.cleverTapEvents=function(){var t,i,o,s,n,r,l,d,a,u,p,v,h,m;let g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_=arguments.length>1?arguments[1]:void 0,b=new c.default().getData("user-basic-info"),I={},f=b.firstName?b.firstName:b.name;I.userName=f,I.Test_ID=null===(t=e.props)||void 0===t?void 0:t.testID,I.Test_Name=null===(i=e.props)||void 0===i?void 0:null===(o=i.getInstructions)||void 0===o?void 0:null===(s=o.quiz)||void 0===s?void 0:s.name,I.Test_Type=null===(n=e.props)||void 0===n?void 0:null===(r=n.getInstructions)||void 0===r?void 0:null===(l=r.quiz)||void 0===l?void 0:null===(d=l.generalInfo)||void 0===d?void 0:d.type,I.Section=null===(a=e.state)||void 0===a?void 0:null===(u=a.question)||void 0===u?void 0:null===(p=u.section)||void 0===p?void 0:p.name,I.Subject=null===(v=e.state)||void 0===v?void 0:null===(h=v.question)||void 0===h?void 0:null===(m=h.section)||void 0===m?void 0:m.subjectName,I.Source="Test Potral",Object.keys(g)&&(I={...I,...g}),(0,q.sendCleverTapEventsData)(_,I)},this.getQuestionType=t=>E[t]||"NA",this.cleverTapQuestionEvents=async function(t,i,o){var s,n,r,l,d,a,u,c,p,v,h,m,g,_,b,I,f,w,y,x,S,T,j;arguments.length>3&&void 0!==arguments[3]&&arguments[3];let k={},C=null===(s=e.state)||void 0===s?void 0:null===(n=s.question)||void 0===n?void 0:null===(r=n.question)||void 0===r?void 0:r.questionId;k.Question_Number=C;let P={1:"Save_And_Next",2:"Save_And_Finish",3:"",4:"Next_Click",5:"",6:"Previous_Click",7:"Bookmark_Click",8:"UnBookmark_Click"}[t];if(k.Section=null===(l=e.state)||void 0===l?void 0:null===(d=l.question)||void 0===d?void 0:null===(a=d.section)||void 0===a?void 0:a.name,k.Subject=null===(u=e.state)||void 0===u?void 0:null===(c=u.question)||void 0===c?void 0:null===(p=c.section)||void 0===p?void 0:p.subjectName,2!=t&&(k.Time_Of_The_Click=new Date),(1==t||2==t||6==t||7==t||8==t)&&((null===(v=e.state.question)||void 0===v?void 0:v.type)==="dragdrop"?k.What_Option_Did_The_Student_Give=null==i||null===(m=i[C])||void 0===m||null===(g=m.answer)||void 0===g||!g.every(t=>-1==t.dragId):(null===(h=e.state.question)||void 0===h?void 0:h.type)==="cloze"&&o?k.What_Option_Did_The_Student_Give=(null==i?void 0:null===(_=i[o])||void 0===_?void 0:_.answer.length)>0:k.What_Option_Did_The_Student_Give=[].concat(...Object.entries(i).map(t=>t[1].answer)).length>0),2==t&&(k.End_Time_Of_TheTest=new Date),1==t||2==t||4==t){let t=null==k?void 0:k.What_Option_Did_The_Student_Give,i=null===(b=e.props)||void 0===b?void 0:b.testID,s=(null===(I=e.state)||void 0===I?void 0:null===(f=I.question)||void 0===f?void 0:null===(w=f.question)||void 0===w?void 0:null===(y=w.questionInfo)||void 0===y?void 0:null===(x=y.question)||void 0===x?void 0:x.baseSubjectCode)||"NA",n=null===(S=e.state)||void 0===S?void 0:null===(T=S.question)||void 0===T?void 0:T.type,r=e.getQuestionType(n),l={Question_id:C,Test_id:i,Subject:s.charAt(0).toUpperCase()+s.slice(1),Previous_page:e.state.previousQuestionPage===C?o||"NA":null!==(j=e.state.previousQuestionPage)&&void 0!==j?j:"NA",Answered:t?"Yes":"No",Action:r};await (0,q.sendCleverTapEventsData)("Test_question_view",l)}("Bookmark_Click"===P||"UnBookmark_Click"===P)&&e.cleverTapEvents(k,P)};let r=null===(i=t.router)||void 0===i?void 0:null===(o=i.query)||void 0===o?void 0:o.courseId,l=null===(s=t.router)||void 0===s?void 0:null===(n=s.query)||void 0===n?void 0:n.testPrepId;this.state={isInitialInstructions:!0,summary:{answeredCount:0,unAnsweredCount:0,markedCount:0,markedAnsweredCount:0},sectionId:-1,showSectionInstructions:!0,answers:{},flagged:{}
1,typeOfBottomSheet:"",attemptInfo:t.getAttemptDetails,attemptState:t.attemptState,navigation:[],question:[],didChange:!0,diff:0,showTimeleft:!1,showInstructions:!1,showEditPopup:!1,pageInitialisedTime:new Date,courseId:r,TestPrepId:l,displayFilter:!1,isLoading:!0,isDisabled:!1,isEndTest:!1,numberBlockWidth:"",mounted:!1,showQuestionNumbers:!0,firstQuestionId:-1,lastQuestionId:-1,innerHTML:{},testSubmitted:!1,questionStartTime:"",totalAnsweredQuestions:0,quizType:(null==t?void 0:t.quizType)?null==t?void 0:t.quizType:"",scoreboard:null!=t&&!!t.scoreboard&&(null==t?void 0:t.scoreboard),submittingTestPrepState:!1,submittedPrompts:"",progress:0,previousQuestionPage:"NA",proctoringViolations:0,proctoringMaxViolations:5,proctoringViolationLog:[],proctoringIsDisqualified:!1,proctoringLastViolationType:"",proctoringShowFullscreenPrompt:!1,proctoringFullscreenReEntry:!1,proctoringShowSubmitted:!1,proctoringTimeTakenSec:0},this.timer=null,this.timeElapsed=0,this.pollApiTimerId=""}}var M=!0;e.default=(0,h.withRouter)(z),z.contextType=T.UserContext},2233:function(t){t.exports={proctoringContainer:"proctoring_proctoringContainer__5xwry",proctoringHeader:"proctoring_proctoringHeader__et6xH",headerLogo:"proctoring_headerLogo__jDZSB",headerCenter:"proctoring_headerCenter__hnetl",headerShieldIcon:"proctoring_headerShieldIcon__emkzK",headerSubject:"proctoring_headerSubject__wqoAz",headerSeparator:"proctoring_headerSeparator__HffFV",headerTestType:"proctoring_headerTestType__VUPxF",exitBtn:"proctoring_exitBtn__tvr3W",stepBar:"proctoring_stepBar__UGJEA",stepItem:"proctoring_stepItem__9vx_h",stepCircle:"proctoring_stepCircle__x_h1j",stepCircleCompleted:"proctoring_stepCircleCompleted__SyQNy",stepCircleCurrent:"proctoring_stepCircleCurrent__JPBdi",stepLabel:"proctoring_stepLabel__WDC6T",stepLabelActive:"proctoring_stepLabelActive__Sp_88",stepLine:"proctoring_stepLine__Y_05J",stepLineCompleted:"proctoring_stepLineCompleted__L_LXy",stepWrapper:"proctoring_stepWrapper__XxMkf",stepContent:"proctoring_stepContent__S5Std",testInfoCard:"proctoring_testInfoCard__Kp31W",testInfoCardTop:"proctoring_testInfoCardTop__plHGZ",testInfoShield:"proctoring_testInfoShield__RZcOA",testInfoTitle:"proctoring_testInfoTitle__73AOY",testInfoMeta:"proctoring_testInfoMeta__IzhnN",testTypeBadge:"proctoring_testTypeBadge__alXhK",testMetaItem:"proctoring_testMetaItem__XYPJr",testInfoSubText:"proctoring_testInfoSubText__hZHzb",rulesTitle:"proctoring_rulesTitle__tk9UO",rulesList:"proctoring_rulesList__xVrqc",ruleItem:"proctoring_ruleItem__XiOrP",ruleText:"proctoring_ruleText__oV2Cw",positioningSection:"proctoring_positioningSection__oh6Lz",positioningGrid:"proctoring_positioningGrid__LrvCK",positioningCard:"proctoring_positioningCard__d4fQH",positioningCardGood:"proctoring_positioningCardGood__2R_DF",positioningCardBad:"proctoring_positioningCardBad__fVqN_",exampleFrame:"proctoring_exampleFrame__sj582",positioningLabel:"proctoring_positioningLabel__PiO_f",positioningCaption:"proctoring_positioningCaption___I9IN",integrityNotice:"proctoring_integrityNotice__quk5k",integrityHeader:"proctoring_integrityHeader__b7_iI",integrityText:"proctoring_integrityText__WUDfI",consentLabel:"proctoring_consentLabel__9215k",proceedBtn:"proctoring_proceedBtn__h78gs",disabledBtn:"proctoring_disabledBtn__LRnsU",navButtons:"proctoring_navButtons__avxPc",backBtn:"proctoring_backBtn__fZbxf",stepHeading:"proctoring_stepHeading__tJK_F",stepSubHeading:"proctoring_stepSubHeading__BRdd2",identityPanels:"proctoring_identityPanels__cQll8",identityPanel:"proctoring_identityPanel__A89XU",panelTitle:"proctoring_panelTitle__Omuyj",photoBox:"proctoring_photoBox__8fGnk",photoImg:"proctoring_photoImg__p7hJC",photoPlaceholder:"proctoring_photoPlaceholder__Mj5va",videoFeed:"proctoring_videoFeed__IwwIR",photoLabel:"proctoring_photoLabel__ExpaJ",captureActions:"proctoring_captureActions___UVPK",captureBtn:"proctoring_captureBtn__SRsRJ",captureActionRow:"proctoring_captureActionRow__JRVD0",retakeBtn:"proctoring_retakeBtn__SJggw",verifyBtn:"proctoring_verifyBtn__aYz1s",verifiedBtn:"proctoring_verifiedBtn__H22wp",cameraError:"proctoring_cameraError__WCD0D",cameraPreviewCard:"proctoring_cameraPreviewCard__2dumh",cameraPreviewLabel:"proctoring_cameraPreviewLabel__oS4JL",systemCheckVideo:"proctoring_systemCheckVideo__jICAn",checkList:"proctoring_checkList__F6eOb",checkItem:"proctoring_checkItem___37_d",checkIconWrap:"proctoring_checkIconWrap__nnQc_",checkIconCamera:"proctoring_checkIconCamera__SWGTm",checkIconMic:"proctoring_checkIconMic__NCuoG",checkIconSystem:"proctoring_checkIconSystem___LpZ4",checkTextWrap:"proctoring_checkTextWrap__1lANm",checkStatusIcon:"proctoring_checkStatusIcon__BFalT",checkStatusPassed:"proctoring_checkStatusPassed__XgTf3",checkStatusFailed:"proctoring_checkStatusFailed__vPStb",checkStatusPending:"proctoring_checkStatusPending__TE75B",checkSpinner:"proctoring_checkSpinner__HA_Gn",spin:"proctoring_spin__CX6Di",allPassedBanner:"proctoring_allPassedBanner__0twmm",allPassedText:"proctoring_allPassedText__4fHoD",checkFailedBanner:"proctoring_checkFailedBanner__twX_a",proctoredMainContent:"proctoring_proctoredMainContent__nlTUr",proctoredHeaderCenter:"proctoring_proctoredHeaderCenter__2z_NT",proctoredHeaderSubject:"proctoring_proctoredHeaderSubject__rt1SK",proctoredHeaderSeparator:"proctoring_proctoredHeaderSeparator__2pjy_",proctoredHeaderType:"proctoring_proctoredHeaderType__g_eXA",proctoredHeaderRight:"proctoring_proctoredHeaderRight__5L0yB",proctoredExitBtn:"proctoring_proctoredExitBtn__Z53kx",proctoredViolationsBadge:"proctoring_proctoredViolationsBadge__RhEKG",livePulse:"proctoring_livePulse__4LWbe",fullscreenOverlay:"proctoring_fullscreenOverlay__J59uj",modalIn:"proctoring_modalIn__KQSpL",fullscreenCard:"proctoring_fullscreenCard__kUkrY",fullscreenIcon:"proctoring_fullscreenIcon__sTxXs",fullscreenTitle:"proctoring_fullscreenTitle__ikWIq",fullscreenDesc:"proctoring_fullscreenDesc___TbmK",fullscreenBtn:"proctoring_fullscreenBtn__z0yE6",proctoringCameraWidget:"proctoring_proctoringCameraWidget__21Tzy",cameraFeedWrap:"proctoring_cameraFeedWrap__T4Ai7",proctoringVideo:"proctoring_proctoringVideo__nmLw5",liveBadge:"proctoring_liveBadge__V87C5",violationBadge:"proctoring_violationBadge__UDrdg",critical:"proctoring_critical__xk_mS",shake:"proctoring_shake__Wfs4M",cameraOffOverlay:"proctoring_cameraOffOverlay__wRoxO",statusPanel:"proctoring_statusPanel__LdqfH",warningActive:"proctoring_warningActive__FsEVX",statusToggle:"proctoring_statusToggle__LLwHL",statusToggleLeft:"proctoring_statusToggleLeft__5DGNn",statusDot:"proctoring_statusDot__xU3SB",warning:"proctoring_warning__p1z5b",warningsBadge:"proctoring_warningsBadge__s4JWz",statusChevron:"proctoring_statusChevron__1cAFg",open:"proctoring_open__RMfdc",statusDetails:"proctoring_statusDetails__2HhO9",violationLogItem:"proctoring_violationLogItem__x20hq",headerViolationCount:"proctoring_headerViolationCount__f5_6F",submittedOverlay:"proctoring_submittedOverlay__OkJrS",submittedBody:"proctoring_submittedBody__2mvV_",submittedContent:"proctoring_submittedContent__82O5I",submittedIconCircle:"proctoring_submittedIconCircle__1Lk_g",submittedTitle:"proctoring_submittedTitle__cUeH7",submittedSubtitle:"proctoring_submittedSubtitle__31HyD",submittedReviewBadge:"proctoring_submittedReviewBadge__7EHZn",submittedReviewDot:"proctoring_submittedReviewDot__byTcl",submittedIconCircleRed:"proctoring_submittedIconCircleRed__D_axf",submittedDisqualBadge:"proctoring_submittedDisqualBadge__NXCJz",submittedDisqualDot:"proctoring_submittedDisqualDot__rlaBD",submittedDisqualBanner:"proctoring_submittedDisqualBanner___r22r",submittedCard:"proctoring_submittedCard__pJctt",submittedCardTitle:"proctoring_submittedCardTitle__aWme6",submittedSummaryList:"proctoring_submittedSummaryList__Ecy9W",submittedSummaryRow:"proctoring_submittedSummaryRow__MAjwh",submittedSummaryLabel:"proctoring_submittedSummaryLabel__V_xys",submittedSummaryIcon:"proctoring_submittedSummaryIcon__DBxen",submittedSummaryValue:"proctoring_submittedSummaryValue__sAveS",submittedSummaryValueRed:"proctoring_submittedSummaryValueRed__EhEIg",submittedViolationBanner:"proctoring_submittedViolationBanner___wukr",submittedNextList:"proctoring_submittedNextList__PPKkP",sebRequiredBanner:"proctoring_sebRequiredBanner__WQaXG",sebBannerIcon:"proctoring_sebBannerIcon___Tc_y",sebBannerText:"proctoring_sebBannerText___7ICh",sebBadge:"proctoring_sebBadge__WYOy_",sebFeatureGrid:"proctoring_sebFeatureGrid__7HGx3",sebFeatureItem:"proctoring_sebFeatureItem__q5vZ8",sebFeatureIconWrap:"proctoring_sebFeatureIconWrap__OHPrb",sebFeatureText:"proctoring_sebFeatureText__F8Uws",sebLaunchBtn:"proctoring_sebLaunchBtn__LosKV",sebLaunchingState:"proctoring_sebLaunchingState__hk1VG",sebSpinner:"proctoring_sebSpinner__mW60R",sebNotInstalledBanner:"proctoring_sebNotInstalledBanner__wpSng",sebLaunchedBanner:"proctoring_sebLaunchedBanner__HLlxc",sebDownloadLink:"proctoring_sebDownloadLink__1fS3Q",sebRetryBtn:"proctoring_sebRetryBtn__FmDH5",startingExamLoader:"proctoring_startingExamLoader__MPAhn",startingSpinner:"proctoring_startingSpinner__z4ddP",disqualModalOverlay:"proctoring_disqualModalOverlay__ezLq2",disqualModal:"proctoring_disqualModal__SoNy5",disqualModalHeader:"proctoring_disqualModalHeader__55v4q",disqualModalHeaderText:"proctoring_disqualModalHeaderText__Vm65C",disqualModalBody:"proctoring_disqualModalBody__0G5Fl",violationTypeBox:"proctoring_violationTypeBox__ANTs_",otherViolationsWrapper:"proctoring_otherViolationsWrapper__Q_Q
15J",otherViolationsToggle:"proctoring_otherViolationsToggle__zfwBF",otherViolationsList:"proctoring_otherViolationsList__Z4bTs",otherViolationItem:"proctoring_otherViolationItem__QnwTZ",violationTypeFinal:"proctoring_violationTypeFinal__4RfFu",violationTypeFinalContent:"proctoring_violationTypeFinalContent__v_lda",finalViolationLabel:"proctoring_finalViolationLabel__cQbg9",disqualMessageBlock:"proctoring_disqualMessageBlock__XMqba",disqualDescription:"proctoring_disqualDescription__dq9Zu",disqualRetryCallout:"proctoring_disqualRetryCallout__1uHOw",disqualReturnBtn:"proctoring_disqualReturnBtn__WQbHS"}}},function(t){t.O(0,[4885,2514,1664,1139,7238,3552,1569,3294,9774,2888,179],function(){return t(t.s=30951)}),_N_E=t.O()}]);
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.