1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1871],{38690:()=>{},41881:(e,l,n)=>{"use strict";n.d(l,{A:()=>a});let a={src:"/_next/static/media/backIcon.02264398.svg",height:12,width:12,blurWidth:0,blurHeight:0}},81871:(e,l,n)=>{"use strict";n.r(l),n.d(l,{default:()=>x});var a=n(95155),t=n(19749),s=n(56929),i=n(12115);n(38690);var r=n(41881);n(9831);var o=n(84014),d=n(88907);let c=(0,s.default)(()=>n.e(6075).then(n.bind(n,16075)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./typeWriter")]},ssr:!1}),u=(0,s.default)(()=>n.e(7908).then(n.bind(n,7908)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/FormControl")]},ssr:!1}),v=(0,s.default)(()=>n.e(3196).then(n.bind(n,3196)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/FormControlLabel")]},ssr:!1}),m=(0,s.default)(()=>Promise.all([n.e(9809),n.e(9639),n.e(6687)]).then(n.bind(n,9468)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/Radio")]},ssr:!1}),p=(0,s.default)(()=>n.e(7797).then(n.bind(n,97797)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@mui/material/RadioGroup")]},ssr:!1}),x=e=>{let l,n,s,x,q,y,f,_,j,w,A,N,k,C,I=(0,t.c)(58),{data:S,clicked:E,setmcqSelectedOptions:W,settotalMarks:B,timeSpendForEachMcq:G,settimeSpendForEachMcq:R,currentlayer:T,result:D,setResult:F,examMcqPercentage:O,isExamMcqCompleted:L,setIsExamMcqCompleted:M,examMcqState:P,setExamMcqState:U,pageType:H,showAnswer:V,showBackbtn:z,setShowBackbtn:J,setShowAnswer:K,onTimeMcqCompletionData:Q}=e;o.A.get("token"),I[0]===Symbol.for("react.memo_cache_sentinel")?(l={},I[0]=l):l=I[0];let[X,Y]=(0,i.useState)(l);I[1]===Symbol.for("react.memo_cache_sentinel")?(n={},I[1]=n):n=I[1];let[Z,$]=(0,i.useState)(n);I[2]===Symbol.for("react.memo_cache_sentinel")?(s={},I[2]=s):s=I[2];let[ee,el]=(0,i.useState)(s),[,en]=(0,i.useState)(0),[,ea]=(0,i.useState)(0),et=(0,i.useRef)(null);I[3]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{var e;null==(e=et.current)||e.scrollIntoView({behavior:"smooth"})},I[3]=x):x=I[3];let es=x;I[4]!==H?(q=()=>{"mcq"===H&&es()},I[4]=H,I[5]=q):q=I[5],I[6]!==Z?(y=[Z],I[6]=Z,I[7]=y):y=I[7],(0,i.useEffect)(q,y),I[8]!==E||I[9]!==S||I[10]!==R||I[11]!==B?(f=async(e,l,n,a)=>{var t,s,i,r;a.stopPropagation(),a.preventDefault(),R(e=>e.map(e=>(null==e?void 0:e.id)!==E||(null==e?void 0:e.completed)?e:{...e,completed:!0})),null==(t=S[E])||t.answer,null==(s=S[E])||s.explanation,null==(i=S[E])||i.options,null==(r=S[E])||r.question;try{n&&(B(h),en(g))}catch(e){console.log(e)}},I[8]=E,I[9]=S,I[10]=R,I[11]=B,I[12]=f):f=I[12];let ei=f;I[13]!==E||I[14]!==F?(_=(e,l,n,a,t,s,i)=>{let r=0===l?"A":1===l?"B":2===l?"C":3===l?"D":"",o=+!!n,d=E+1;F(e=>{let l=void 0===e?[]:e,n=null==l?void 0:l.findIndex(e=>e.question_no===d);return n>=0?(l[n]={question_no:d,user_answer:r,mark:o,question_type:a,category:t,q_id:s,meta_tags:i},[...l]):[...l,{question_no:d,user_answer:r,mark:o,question_type:a,category:t,q_id:s,meta_tags:i}]})},I[13]=E,I[14]=F,I[15]=_):_=I[15];let er=_;I[16]!==E||I[17]!==S||I[18]!==D?(j=()=>{var e,l;let n=null==(e=S[E])?void 0:e.id;if(Array.isArray(D)&&(null==(l=D[0])?void 0:l.questions)){let e=D[0].questions.find(e=>e.q_id===n);return(null==e?void 0:e.user_answer)||""}{let e=Array.isArray(null==D?void 0:D.result)?D.result:D,l=null==e?void 0:e.find(e=>e.q_id===n);return(null==l?void 0:l.user_answer)||""}},I[16]=E,I[17]=S,I[18]=D,I[19]=j):j=I[19];let eo=j;I[20]!==S||I[21]!==(null==Q?void 0:Q.length)||I[22]!==H||I[23]!==D||I[24]!==V?(w=()=>{if(V&&"mcq"===H&&Array.isArray(S)&&Array.isArray(D)&&(null==Q?void 0:Q.length)>0){let e={},l={},n={};S.forEach((a,t)=>{let s=D.find(e=>e.q_id===a.id);s&&s.user_answer&&(e[t]=a.options[s.user_answer]||"",l[t]=["A","B","C","D"].indexOf(s.user_answer),n[t]=!0)}),Y(e),$(l),el(n)}},I[20]=S,I[21]=null==Q?void 0:Q.length,I[22]=H,I[23]=D,I[24]=V,I[25]=w):w=I[25],I[26]!==S||I[27]!==H||I[28]!==D||I[29]!==V?(A=[V,H,S,D],I[26]=S,I[27]=H,I[28]=D,I[29]=V,I[30]=A):A=I[30],(0,i.useEffect)(w,A),I[31]===Symbol.for("react.memo_cache_sentinel")?(N=function(e,l,n){for(let a of e)if("textbasedevaluation"===a.question_type&&(null==n?void 0:n.length)>0){let e=n.find(e=>e.q_id===l);if(e)return e;break}else if(a.id===l)return a;return{}},I[31]=N):N=I[31];let ed=N;I[32]!==S||I[33]!==D?(k=e=>{var l;return Array.isArray(D)?D.length>0&&Array.isArray(null==(l=D[0])?void 0:l.questions)?D[0].questions.find(l=>l.q_id===e)||{}:ed(S,e,D):{}},I[32]=S,I[33]=D,I[34]=k):k=I[34];let ec=k;return I[35]!==X||I[36]!==E||I[37]!==Z||I[38]!==S||I[39]!==O||I[40]!==P||I[41]!==eo||I[42]!==ec||I[43]!==er||I[44]!==ee||I[45]!==L||I[46]!==H||I[47]!==U||I[48]!==M||I[49]!==F||I[50]!==K||I[51]!==J||I[52]!==W||I[53]!==V||I[54]!==z||I[55]!==G||I[56]!==ei?(C=(null==S?void 0:S.length)>0?null==S?void 0:S.map((e,l)=>{var n,t;
1let s=(null==e?void 0:e.options)&&"object"==typeof e.options&&!Array.isArray(e.options),i=s?Object.values(e.options):[];s&&Object.keys(e.options);let o=(null==e?void 0:e.answer)==="A"?0:(null==e?void 0:e.answer)==="B"?1:(null==e?void 0:e.answer)==="C"?2:3;return E===l?(0,a.jsxs)("div",{className:"mcq-question-container ",children:[(0,a.jsxs)("div",{className:"mcq-header-container d-flex-al",children:[z&&(0,a.jsxs)("div",{className:"back-button d-flex-al gap-16 ",children:[(0,a.jsx)(d.default,{src:r.A,width:16,height:16,alt:"",onClick:()=>{J(!1),K(!1),M(!0)},className:"cursor-ptr"}),(0,a.jsx)("span",{children:"Back"})]}),(0,a.jsx)("div",{className:"category-container",children:(0,a.jsxs)("div",{className:"category-wrapper ".concat(e.category,"-category-wrapper"),children:[(0,a.jsx)(d.default,{className:"category-image",alt:"category-image",src:function(e){if(e)return"reasoning"===e?"/assests/svg/reasoningImg.svg":"direct"===e?"/assests/svg/directImg.svg":"application"===e?"/assests/svg/applicationImg.svg":"/assests/svg/criticalThinkingImg.svg"}(null==e?void 0:e.category),width:24,height:24}),(0,a.jsx)("div",{className:"question-category ".concat(e.category),children:function(e){if("string"!=typeof e||!(e.length>0))return"";switch(e.toLowerCase()){case"direct":return"Direct Comprehension";case"reasoning":return"Reasoning Skills";case"application":return"Clinical Understanding";case"critical_thinking":return"Critical Thinking";default:return e.charAt(0).toUpperCase()+e.slice(1)}}(null==e?void 0:e.category)})]})})]}),(0,a.jsx)("div",{className:"question-container",children:(null==e||null==(n=e.question)?void 0:n.length)>0&&(0,a.jsxs)("p",{className:"question",children:[E+1,". ",null==e?void 0:e.question]})}),"mcq"===H?(0,a.jsx)("div",{className:"answer-container\n ".concat(ee[E]&&"disabled","\n "),children:(0,a.jsx)(u,{className:"answer-options",children:(0,a.jsx)(p,{"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group",value:X[E]||"",children:"object"==typeof i&&(null==i?void 0:i.length)>0&&(null==i?void 0:i.map((e,n)=>{let t=n===o,s=n===Z[E];return(0,a.jsx)("div",{className:"answer",onClick:a=>{var s,i,r,o,d;W(n=>({...n,[l]:e})),Y(l=>({...l,[E]:e})),$(e=>({...e,[E]:n}
1)),el(e=>({...e,[E]:!0})),ei(null==(s=G[E])?void 0:s.timespend,n,t,a),er(e,n,t,(null==(i=S[E])?void 0:i.question_type)||"mcq",(null==(r=S[E])?void 0:r.category)||"",(null==(o=S[E])?void 0:o.id)||"",(null==(d=S[E])?void 0:d.meta_tags)||{})},style:{border:ee[E]?s?t?"1px solid #00A575":"1px solid red":t?"1px solid #00A575":"1px solid transparent":V&&t?"1px solid #00A575":"1px solid transparent"},children:(0,a.jsx)(v,{value:e||"",control:(0,a.jsx)(m,{sx:{"&.Mui-checked":{color:"#00A575"},color:"var(--mcqAnswerRadioButtonColor)"}}),label:e||"",className:"radio-button"})},n)}))})})}):(null==e?void 0:e.answer)&&"textbasedevaluation"!==e.question_type?(0,a.jsx)("div",{className:"answer-container ".concat(0!==O&&"undefined"==O&&"disabled"||O>=0&&L&&"disabled"||V&&"disabled"),children:(0,a.jsx)(u,{className:"answer-options",children:(0,a.jsx)(p,{"aria-labelledby":"demo-radio-buttons-group-label",name:"radio-buttons-group",value:i[null==P||null==(t=P[E])?void 0:t.clickedIndex]||"",children:"object"==typeof i&&(null==i?void 0:i.length)>0&&(null==i?void 0:i.map((e,n)=>{var t,s,i;let r=n===o,d=n===(null==P||null==(t=P[E])?void 0:t.clickedIndex);return(0,a.jsx)("div",{className:"answer",onClick:()=>{var a,t,s,i;W(n=>({...n,[l]:e})),U(l=>({...l,[E]:{choosedoption:e,clickedIndex:n,isAnswered:!0}})),er(e,n,r,(null==(a=S[E])?void 0:a.question_type)||"mcq",(null==(t=S[E])?void 0:t.category)||"",(null==(s=S[E])?void 0:s.id)||"",(null==(i=S[E])?void 0:i.meta_tags)||{})},style:{border:z?(null==P||null==(i=P[E])?void 0:i.isAnswered)&&d?r?"1px solid #00A575":"1px solid red":r?"1px solid #00A575":"1px solid transparent":(null==P||null==(s=P[E])?void 0:s.isAnswered)&&d?"1px solid #00A575":"1px solid transparent"},children:(0,a.jsx)(v,{value:e||"",control:(0,a.jsx)(m,{sx:{"&.Mui-checked":{color:"#00A575"},color:"var(--mcqAnswerRadioButtonColor)"}}),label:e||"",className:"radio-button"})},n)}))})})}):E===l&&(0,a.jsx)("div",{className:V?"descriptive-container disabled":"descriptive-container",children:(0,a.jsx)("textarea",{disabled:V,placeholder:"Type your answer here...",className:"descriptive-textarea",rows:6,value:eo(),onChange:e=>{var l;let n=null==(l=S[E])?void 0:l.id;F(l=>{var a,t,s;let i=[...Array.isArray(null==l?void 0:l.result)?l.result:l],r=i.findIndex(e=>e.q_id===n),o={question_no:E+1,question:(null==(a=S[E])?void 0:a.question)||"",user_answer:e.target.value,question_type:(null==(t=S[E])?void 0:t.question_type)||"textbasedevaluation",category:(null==(s=S[E])?void 0:s.category)||"",q_id:n};return(-1!==r?i[r]=o:i.push(o),Array.isArray(null==l?void 0:l.result))?{...l,result:i}:i}),ea(b)}})}),("mcq"===H||("active_recall_mcq"===H||"adaptive_learning_mcq"===H)&&V)&&(ee[E]||V)&&(0,a.jsxs)("div",{className:"mcq-explanation-container d-flex-col",children:[(0,a.jsx)("p",{className:"mcq-explanation-title",children:"Explanation "}),(0,a.jsx)("span",{className:"mcq-explanation-content",children:(0,a.jsx)(c,{text:null==e?void 0:e.explanation})})]}),"exam"===H&&(()=>{var l,n;let t=ec(null==(l=S[E])?void 0:l.id);return(0,a.jsxs)(a.Fragment,{children:[(null==t?void 0:t.correct_answer)&&(null==t?void 0:t.score)===0&&(0,a.jsxs)("div",{className:"mcq-correct-answer-container d-flex-col",children:[(0,a.jsx)("p",{className:"mcq-explanation-title",children:"Correct Answer "}),(0,a.jsx)("span",{className:"mcq-explanation-content",children:(0,a.jsx)(c,{text:t.correct_answer,enableTypewriter:!1})})]}),t.evaluation&&V&&(null==t||null==(n=t.user_answer)?void 0:n.trim())?(0,a.jsxs)("div",{className:"mcq-explanation-box d-flex-col",children:[(0,a.jsx)("p",{className:"mcq-explanation-title",children:"Evaluation"}),(0,a.jsx)("span",{className:"mcq-explanation-content",children:(0,a.jsx)(c,{text:t.evaluation,enableTypewriter:!1})})]}):(0,a.jsx)(a.Fragment,{children:V&&"textbasedevaluation"===e.question_type&&(0,a.jsxs)("div",{className:"mcq-explanation-box d-flex-col",children:[(0,a.jsx)("p",{className:"mcq-explanation-title yutyu",children:"Evaluation"}),(0,a.jsx)("div",{className:"not-attempted-text",children:"Not Attempted"})]})})]})})(),(0,a.jsx)("div",{ref:et,className:"mcq-explanation-bottom-scroll-container"})]},l):""}):(0,a.jsx)("div",{className:"no-mcq-body-text-wrapper",children:(0,a.jsx)("div",{className:"no-mcq-body-text"})}),I[35]=X,I[36]=E,I[37]=Z,I[38]=S,I[39]=O,I[40]=P,I[41]=eo,I[42]=ec,I[43]=er,I[44]=ee,I[45]=L,I[46]=H,I[47]=U,I[48]=M,I[49]=F,I[50]=K,I[51]=J,I[52]=W,I[53]=V,I[54]=z,I[55]=G,I[56]=ei,I[57]=C):C=I[57],C};function h(e){return e+1}function g(e){return e+1}function b(e){return e+1}}}]);
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.