1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3569,8766],{8766:(e,t,l)=>{"use strict";l.d(t,{getLearnListDetails:()=>c,fu:()=>m});var a=l(83252),i=l(81236),n=l(41225),s=l(10683),o=l(46630),u=l(70256);l(92741);var r=l(17200),d=l(77329),_=l(80293),p=l(19055);function c(e){return async t=>{t((0,n.$9)());let{uuid:c,schoolId:E="",learnlistId:T="",isMultipleLearnlist:m=!1,multipleIds:S=[],boardId:A,classId:h,homeworkId:v="",resolve:g,sectionAssignId:y,listdetailonly:R=!1,from:f,isCourse:I=!1,isFromTCP:O=!1,schoolBoardType:b=1}=e;try{let e={};if(e=0==S.length?await (0,a.A)({path:i.API_BASE_URL_MSA+"/syllabus-v2/learnListDetail/v2.1.1?uuid=".concat(c,"&learnListId=").concat(T,"&schoolId=").concat(E).concat(v?"&homeWorkId="+v:""),method:"GET",isFullPath:!0}):{status:200,learnlist_data:S},200!=e.status)return g({});{var P,L,N,w,D,k,C,U,M,B,F;if(200===e.status&&"This homework was already unassigned"==e.message)return g({error:e.message});if("subscription"===f)return g(e.title);let G=0==S.length?null==e||null==(P=e.learnlist_data)?void 0:P.sort((e,t)=>e.learnlist_item_order-t.learnlist_item_order):null==e?void 0:e.learnlist_data;if(m||t((0,n.xP)({state:G,title:null==e?void 0:e.title})),y&&e.learnlist_data instanceof Array&&e.learnlist_data.every(e=>e.completed_on)&&!(null==(L=JSON.parse(localStorage.getItem("learnlist123")))?void 0:L.includes(T))){t((F={homeworkId:v,uuid:c,sectionAssignId:y,schoolId:E},async e=>{try{let{homeworkId:t,sectionAssignId:n,uuid:s,schoolId:o}=F,u=await (0,a.A)({path:i.API_BASE_URL_MSA+"/student-report/student/markHomeworkAsComplete",method:"POST",body:{homework_id:t,section_assign_id:n,uuid:s,school_id:o},isFullPath:!0});if(200==u.status){(0,r.sendClickStream)("Learn List","button","","Netcore","LA_learnlist_completed");let{addProgressData:t}=await Promise.resolve().then(l.bind(l,41225));e(t({markDone:!0}))}}catch(e){console.log("error in markHomeworkAsComplete",e)}}));let e=localStorage.getItem("learnlist123")?JSON.parse(localStorage.getItem("learnlist123")):[];null==e||e.push(T),localStorage.setItem("learnlist123",JSON.stringify(e))}let H=[],W=[],Y=null==(W=null==e||null==(N=e.learnlist_data)?void 0:N.filter(e=>12==e.learnlist_item_type))?void 0:W.map(e=>e.learnlist_item_id);if(console.log("studyMaterialContentIdList",Y),I){let t=[6,7,9,10,11];H=null==e||null==(M=e.learnlist_data)?void 0:M.filter(e=>t.includes(e.learnlist_item_type))}else H=null==e||null==(U=e.learnlist_data)?void 0:U.filter(e=>3==e.learnlist_item_type);let K=null==e||null==(w=e.learnlist_data)?void 0:w.filter(e=>1==e.learnlist_item_type||I&&5==e.learnlist_item_type),q=null==e||null==(D=e.learnlist_data)?void 0:D.filter(e=>2==e.learnlist_item_type),V=[];I||null==e||null==(k=e.learnlist_data)||k.filter(e=>5==e.learnlist_item_type);let j=(null==(C=V[0])?void 0:C.school_board_type)||b,x=[];if(V.length>0&&!R&&x.push(new Promise((e,a)=>{var i;t((i={uuid:c,lectureList:V,resolve:e,reject:a,schoolBoardType:j},async e=>{let{lectureList:t,resolve:a,reject:o,uuid:u}=i;try{let i=[],o=t.map(e=>e.syllabus_id);for(let e=0;e<t.length;e++){var r;let{getLectureDetail:a}=await l.e(2718).then(l.bind(l,62718));i.push(a(null==(r=t[e])?void 0:r.learnlist_item_id,u))}o.length&&i.push((0,s.MX)(o)),Promise.all(i).then(l=>{if(l.length>0){let i=l[l.length-1];l.pop();let s=l.reduce((e,l)=>{var a,n,s,o,u,r,d,_;let p=t.find(e=>e.learnlist_item_id==l.lecture_id).syllabus_id;return l.syllabus_id=null==(o=l.syllabus)||null==(s=o[0])||null==(n=s.container_details)||null==(a=n.find(e=>4==e.rack_type_id))?void 0:a.container_id,l.is_bookmarked=l.is_bookmarked||0,l.content_id=l.lecture_id,l.contentSubjectNames=(null==i||null==(_=i.parent_details)||null==(d=_.find(e=>e.syllabus_id==p))||null==(r=d.parent_detail)||null==(u=r.find(e=>"subject"===e.syllabus_type_name))?void 0:u.syllabus_name)||"",e[l.lecture_id]=l,e},{});return e((0,n.AU)({state:s})),a(!0)}}).catch(e=>{console.log(e)})}catch(e){console.log(e)}}))})),H.length>0&&!R){let e=(null==(B=H[0])?void 0:B.school_board_type)||b;x.push(new Promise((o,r)=>{var d;t((d={uuid:c,paperIdList:H,classId:h,boardId:A,resolve:o,reject:r,listdetailonly:R,isFromTCP:O,schoolBoardType:e},async e=>{let{paperIdList:t,resolve:o,groupId:r,uuid:p,boardId:c,classId:E,bookMarkListByPaperID:T,listdetailonly:m,isFromTCP:S=!1,schoolBoardType:A}=d;try{var h,v,g,y;let{learnListData:r}=u.A.getState().studentLearnList||{},{LoginData:d,li2:T={}}=u.A.getState().login||{},{activeProfileData:R}=u.A.getState().dashboard,f=null==T?void 0:T.institutes,I=[],O=[],b=[];
1if(t.forEach(e=>{e.learnlist_item_id&&3159==e.group_id&&I.push(e.learnlist_item_id)}),I.length){let{getTestDetailNemr:e}=await l.e(914).then(l.bind(l,50914)),t=I.map(t=>e(p,t));await Promise.allSettled(t).then(e=>{e.forEach(e=>{"fulfilled"===e.status&&b.push(null==e?void 0:e.value)})}).catch(e=>{console.log("\uD83D\uDE80 ~~~ Promise.allSettled ~~~ err:",e)})}t.forEach(e=>{if(e.learnlist_item_id&&3159==e.group_id){var t;let l=b.find(t=>{var l;return(null==t||null==(l=t.test_detail)?void 0:l.open_test_id)==e.learnlist_item_id});O.push(null==l||null==(t=l.test_detail)?void 0:t.paper_id)}else O.push(e.learnlist_item_id)});let P=null==t?void 0:t.map(e=>null==e?void 0:e.syllabus_mapping_id).filter(Boolean),L=function(e,t){let l=[];for(let t=0;t<e.length;t+=20)l.push(e.slice(t,t+20));return l}(O,20),N=[];for(let e of L){let t=e.join(","),l=await (0,a.A)({path:i.API_BASE_URL_MSA+"/paperCreation/v2/paperNamesByPaperIds?paperIds=".concat(t),method:"GET",isFullPath:!0});(null==l||null==(h=l.paper_details)?void 0:h.length)>0&&(N=[...N,...l.paper_details])}if(null==N||!N.length)return o(!1);{b.length&&(N=null==N?void 0:N.map(e=>{let t=b.find(t=>{var l;
1return(null==t||null==(l=t.test_detail)?void 0:l.paper_id)==e.paper_id});return t?{...e,...null==t?void 0:t.test_detail,paper_status:t.paper_status}:{...e}}));let a=[],i=null==N?void 0:N.map(e=>{var l,a;return(null==e?void 0:e.question_subject_ids)||(null==t||null==(a=t.find(t=>t.learnlist_item_id==e.paper_id))||null==(l=a.syllabus_id)?void 0:l.toString())}).filter(Boolean),u=null==N?void 0:N.map(e=>(e.question_subject_ids=(null==e?void 0:e.question_subject_ids)||(null==t?void 0:t.filter(t=>t.learnlist_item_id==e.paper_id)),e)),T=[],h=[];console.log(null==i?void 0:i.map(e=>null==e?void 0:e.syllabus_id),"sdhasgkfasgfasgf");let{paperAttemptedStatusByIds:I}=await Promise.resolve().then(l.bind(l,10683)),O=A||(0,_.Jy)(null==R?void 0:R.boardId,f);(null==i?void 0:i.join())==""||!((null==i?void 0:i.length)>0)||m||S||T.push((0,s.MX)("object"==typeof(null==i?void 0:i[0])?null==i||null==(y=i[0])||null==(g=y.map(e=>null==e?void 0:e.syllabus_id))||null==(v=g.filter(Boolean))?void 0:v.join(","):null==i?void 0:i.join(","),"all","",O)),P.length>0&&T.push(I(p,P.toString())),Promise.allSettled(T).then(async i=>{var s,_,T,m,S;(null==i||null==(s=i[0])?void 0:s.status)=="fulfilled"&&(a=null==i||null==(_=i[0])?void 0:_.value),(null==i||null==(T=i[1])?void 0:T.status)=="fulfilled"&&(h=null==i||null==(m=i[1])?void 0:m.value);let{addSubectNamesArray:A}=await Promise.all([l.e(1012),l.e(8592),l.e(7170)]).then(l.bind(l,48592)),v=(null==a||null==(S=a.parent_details)?void 0:S.length)>0?A({parentDetails:a.parent_details,data:u}):N,g=v.reduce((e,l)=>{let a=null==t?void 0:t.find(e=>(null==e?void 0:e.learnlist_item_id)==(null==l?void 0:l.paper_id
1)),i=(null==h?void 0:h.find(e=>e.assign_map_id==(null==a?void 0:a.syllabus_mapping_id)))||{};return(null==r?void 0:r.course_id)?3==d.user_type_id||5==d.user_type_id?i.paper_attempt_status=1:(null==a?void 0:a.completed_on)&&2==i.paper_attempt_status&&(i.paper_attempt_status=3):(null==a?void 0:a.syllabus_mapping_id)?!(null==a?void 0:a.completed_on)&&(null==r?void 0:r.homework_id)&&(3==i.paper_attempt_status||4==i.paper_attempt_status)?i.paper_attempt_status=1:(null==a?void 0:a.completed_on)&&(null==r?void 0:r.homework_id)?i.paper_attempt_status=3:i.paper_attempt_status=1:(null==a?void 0:a.completed_on)&&(null==r?void 0:r.homework_id)?l.paper_attempt_status=3:l.paper_attempt_status=1,i.paperMode=i.paper_attempt_mode,3159==l.group_id?e[l.open_test_id]={...l,...i}:e[l.paper_id]={...l,...i},e},{}),y=v.reduce((e,l)=>{let a={},i=null==t?void 0:t.find(e=>e.learnlist_item_id==l.paper_id);return(null==i?void 0:i.syllabus_mapping_id)&&(a.paper_id=l.paper_id,a.mapping_id=null==i?void 0:i.syllabus_mapping_id,e.push(a)),e},[]),{getPaperBookmarkStatus:R}=await l.e(3768).then(l.bind(l,53768));return e(R({uuid:p,boardId:c,classId:E,paperIdlist:y,isreattempted:!1})),e((0,n.oA)({state:g})),o(!0)})}}catch(e){return window.GlobalFunctions.consoleLog("error -***********--",e),o(!0)}}))}))}if(R&&I&&H.length>0&&x.push(new Promise((e,a)=>{var i;t((i={uuid:c,paperIdList:H,resolve:e,reject:a},async e=>{let{paperIdList:t,resolve:a,uuid:s}=i;try{let{learnListData:i,paperListDetail:o}=u.A.getState().studentLearnList||{},{LoginData:r}=u.A.getState().login||{},d=null==t?void 0:t.map(e=>e.syllabus_mapping_id).filter(Boolean);if(d.length>0){let{paperAttemptedStatusByIds:a}=await Promise.resolve().then(l.bind(l,10683)),u=await a(s,d.toString()),_={};Object.keys(o).forEach(e=>{let l=null==t?void 0:t.find(t=>{var l;return(null==t?void 0:t.learnlist_item_id)==(null==(l=o[e])?void 0:l.paper_id
1)}),a=(null==u?void 0:u.find(e=>e.assign_map_id==(null==l?void 0:l.syllabus_mapping_id)))||{};(null==i?void 0:i.course_id)?3==r.user_type_id||5==r.user_type_id?a.paper_attempt_status=1:(null==l?void 0:l.completed_on)&&2==a.paper_attempt_status&&(a.paper_attempt_status=3):(null==l?void 0:l.syllabus_mapping_id)?!(null==l?void 0:l.completed_on)&&(null==i?void 0:i.homework_id)&&(3==a.paper_attempt_status||4==a.paper_attempt_status)?a.paper_attempt_status=1:(null==l?void 0:l.completed_on)&&(null==i?void 0:i.homework_id)?a.paper_attempt_status=3:a.paper_attempt_status=1:(null==l?void 0:l.completed_on)&&(null==i?void 0:i.homework_id)?o[e].paper_attempt_status=3:o[e].paper_attempt_status=1,a.paperMode=a.paper_attempt_mode,_[o[e].paper_id]={...o[e],...a}}),e((0,n.oA)({state:_}))}return a(!0)}catch(e){console.log(e,"error in paperStatus only")}}))})),K.length>0&&!R&&K.reduce((e,t)=>{let l=null==t?void 0:t.language_id;return e.has(l)||e.set(l,[]),e.get(l).push(t),e},new Map).forEach((e,l)=>{x.push(new Promise((r,d)=>{var p;t((p={uuid:c,contentIdList:e,languageId:l||1,schoolBoardType:b,Is_learnlist:1,resolve:r,reject:d,schoolId:E},async e=>{var t,l;let{uuid:r,contentIdList:d,languageId:c=1,resolve:E,schoolBoardType:T,schoolId:m}=p;console.log("ContentDetailCalled",d);let{activeProfileData:S}=u.A.getState().dashboard||{},{institutes:A}=(null==(t=u.A.getState().login)?void 0:t.li2)||{},h=T||(0,_.Jy)(null==S?void 0:S.boardId,A);try{let t=d.map(e=>e.learnlist_item_id),u=[...new Set(d.map(e=>e.syllabus_id).filter(Boolean))];console.log("ContentDetailCalledagain",t);let p=[],T=[],S=[],A={content_ids:null==t?void 0:t.join(),language_id:c,school_id:m||_.ZS.schoolId()},v=[(0,o.B)({uuid:r},t),(0,a.A)({path:"".concat(i.API_BASE_URL_MSA,"/content/v2/contentDetailsByContentIds/v2.1.1"),method:"POST",body:{...A},isFullPath:!0,guestAuthEnabled:!0})];if(u.length)if(window.location.pathname.includes("/learnlist-teacher")){let e=null==d||null==(l=d.find(e=>e.syllabus_id==u))?void 0:l.school_board_type;v.push((0,s.MX)(u,"all","",e))}else v.push((0,s.MX)(u,"all","",h));Promise.allSettled(v).then(t=>{var l,a,i,s,o,u;if((null==t||null==(l=t[0])?void 0:l.status)=="fulfilled"&&(T=null==t||null==(a=t[0])?void 0:a.value),(null==t||null==(i=t[1])?void 0:i.status)=="fulfilled"&&(p=null==t||null==(s=t[1])?void 0:s.value),(null==t||null==(o=t[2])?void 0:o.status)=="fulfilled"&&(S=null==t||null==(u=t[2])?void 0:u.value),p.data&&p.data.length>0){let t=p.data.reduce((e,t)=>{var l,a,i,n,s,o,u;let r=d.find(e=>e.learnlist_item_id==t.content_id);return t.syllabus_id=null==r?void 0:r.syllabus_id,(null==r?void 0:r.learnlist_item_title)&&(t.content_title=(null==r?void 0:r.learnlist_item_title)||t.content_title),t.is_bookmarked=(null==T||null==(l=T.bookmarked)?void 0:l.length)>0&&(null==T||null==(i=T.bookmarked)||null==(a=i.find(e=>e.content_id==t.content_id))?void 0:a.bookmarked)||0,t.contentSubjectNames=(null==S||null==(u=S.parent_details)||null==(o=u.find(e=>e.syllabus_id==(null==r?void 0:r.syllabus_id)))||null==(s=o.parent_detail)||null==(n=s.find(e=>"subject"===e.syllabus_type_name))?void 0:n.syllabus_name)||"",e[t.content_id]=t,e},{});console.log({response_content:p}),e((0,n.AU)({state:t}))}return console.log({ele:t},"neil"),E(!0)})}catch(e){return console.log(87343,e),E(!0)}}))}))}),Y.length>0&&x.push(new Promise((e,l)=>{var s;t((s={uuid:c,studyMaterialContentIdList:Y,resolve:e,reject:l},async e=>{let{uuid:t,studyMaterialContentIdList:l,languageId:o=1,resolve:u}=s;console.log("ContentDetailCalled",l);try{let s=[],o={note_ids:null==l?void 0:l.join(),uuid:t},r=[(0,a.A)({path:"".concat(i.API_BASE_URL_MSA,"/live-class/notes/studyNotesDetailById"),method:"POST",body:{...o},isFullPath:!0,guestAuthEnabled:!0})];Promise.allSettled(r).then(t=>{var l,a,i,o,r,d;return(null==t||null==(l=t[0])?void 0:l.status)=="fulfilled"&&(s=null==t?void 0:t[0]),console.log("test525",null==s||null==(a=s.value)?void 0:a.study_notes),(null==(i=s.value)?void 0:i.study_notes)&&(null==s||null==(r=s.value)||null==(o=r.study_notes)?void 0:o.length)>0&&e((0,n.kZ)({state:null==s||null==(d=s.value)?void 0:d.study_notes})),console.log({ele:t},"vidya"),u(!0)})}catch(e){return console.log(87343,e),u(!0)}}))})),q.length>0&&!R&&x.push(new Promise((e,a)=>{t(function(e){let{questionIDSlice:t,uuid:a,languageCode:i,resolve:o,schoolId:r,schoolBoardType:c}=e;return async e=>{try{var i,E,T,m;let{activeProfileData:S}=u.A.getState().dashboard||{},{institutes:A}=(null==(i=u.A.getState().login)?void 0:i.li2)||{},h=c||(0,_.Jy)(null==S?void 0:S.boardId,A),v=t.map(e=>{let t={};return t.question_id=e.learnlist_item_id,t.syllabus_id=e.syllabus_id||"",t.parent_question_id=0,t.school_board_type=null==e?void 0:e.sc
1hool_board_type,t.school_id=r||_.ZS.schoolId(),t.language_id=null==e?void 0:e.language_id,t}),g=t.map(e=>{if(e.syllabus_id&&(0==e.is_custom_syllabus||null==e.is_custom_syllabus))return e.syllabus_id}),y=t.map(e=>{if(e.syllabus_id&&1==e.is_custom_syllabus)return e.syllabus_id}),R=[],f=[];if((f=y.filter(e=>e)).length>0&&(f=await (0,d.w)(y)),(R=g.filter(e=>e)).length>0)if(window.location.pathname.includes("/learnlist-teacher")){let e=null==t||null==(T=t.find(e=>(null==e?void 0:e.syllabus_id)==g))?void 0:T.school_board_type;R=await (0,s.MX)(g,"all","",e)}else R=await (0,s.MX)(g,"all","",h);let I=[];I=0==R.length?f:0==f.length?R:null==R?void 0:R.parent_details.concate(null==f?void 0:f.parent_details),console.log(I,"chcking details"),null==I||null==(E=I.parent_details)||E.reduce((e,t)=>{var l,a,i,n,s,o;let u=null==(a=t.parent_detail)||null==(l=a.find(e=>4==e.syllabus_type_id))?void 0:l.language_id;return u||(u=null==(n=t.parent_detail)||null==(i=n.find(e=>3==e.syllabus_type_id))?void 0:i.language_id),u||(u=null==(o=t.parent_detail)||null==(s=o.find(e=>2==e.syllabus_type_id))?void 0:s.language_id),e[t.syllabus_id]=u||1,e},{});let O=null==v?void 0:v.map(e=>e),b=(0,p.A)(O,"language_id"),P=[];for(let e in b){let t=b[e],i={uuid:a,question_data:t,language_id:[(null==t||null==(m=t[0])?void 0:m.language_id)||1]},{manualQuestionDetail:n}=await Promise.resolve().then(l.bind(l,77329));P.push(n(i))}let L=[];Promise.allSettled(P).then(l=>{for(let e=0;e<l.length;e++){let t=l[e];if((null==t?void 0:t.status)=="fulfilled"){var a;L.push(...(null==t||null==(a=t.value)?void 0:a.ques_data)||[])}}if(null==L?void 0:L.length){let l=null==L?void 0:L.reduce((e,l)=>{var a,i,n,s;let o=null==t?void 0:t.find(e=>(null==e?void 0:e.learnlist_item_id)==(null==l?void 0:l.question_id));return l.question_data[0].question_template_id=l.question_template_id,l.subject_name=null==I||null==(s=I.parent_details)||null==(n=s.find(e=>e.syllabus_id==o.syllabus_id))||null==(i=n.parent_detail)||null==(a=i.find(e=>4==e.syllabus_type_id))?void 0:a.syllabus_name,l.question_data[0].syllabus_mapping_id=null==o?void 0:o.syllabus_mapping_id,l.language_id=o.language_id,e[l.question_id]=l,e},{});e((0,n.VX)({state:l}))}return o(!0)})}catch(e){return console.log(e),o(!0)}}}({questionIDSlice:q,uuid:c,languageCode:"1",schoolId:E,schoolBoardType:b,resolve:e,reject:a}))})),x.length&&await Promise.allSettled(x),t((0,n.lH)()),R)return g(G);return g(u.A.getState().studentLearnList)}}catch(e){if(t((0,n.lH)()),console.log(e),g)return g({})}}}Promise.allSettled||(Promise.allSettled=function(e){return Promise.all(e.map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e}))))});let E=async e=>{let{LoginData:t}=u.A.getState().login||{},{isComplete:l,learnlistId:n,learnlistItemId:s,uuid:o,Is_accessed:r,assign_id:d,section_assign_id:_}=e;try{if(n){let e=await (0,a.A)({path:i.API_BASE_URL_MSA+"/syllabus-v2/updateLearnListItemStatus/v2.1.0",method:"PUT",body:{is_complete:l,learnlist_id:Number(n),learnlist_item_id:s,uuid:o||(null==t?void 0:t.uuid),is_accessed:"1",assign_id:d,section_assign_id:_},isFullPath:!0});if(200==e.status)return e}}catch(e){return{}}},T=async e=>{let{LoginData:t}=u.A.getState().login||{},{learnlistId:l,uuid:n,total_course_items:s,learnlist_item_type:o,course_id:r}=e;try{let e=await (0,a.A)({path:i.API_BASE_URL_MSA+"/mis/v2/addCourseConsumption",method:"POST",body:{course_id:r,learnlist_item_type:o,total_course_items:s,uuid:n||(null==t?void 0:t.uuid)},isFullPath:!0});if(200==e.status)return e}catch(e){return{}}};function m(e){return async t=>{try{var a,i,s;let{isComplete:l,learnlistId:o,learnlistItemId:r,uuid:d,isFromInClass:_}=e,{activeProfileData:p}=u.A.getState().dashboard||{},{LoginData:m,activeProfile:S}=u.A.getState().login||{},{learnListData:A,learnListDetails:h}=u.A.getState().studentLearnList||{},v=!1;v=null==e||!e.isFromTCP||(null==e?void 0:e.isFromTCP);let g=null==h?void 0:h.find(e=>(null==e?void 0:e.learnlist_item_id)==r),y=null==g?void 0:g.completed_on,R=[];if((2==m.user_type_id||y||(null==A?void 0:A.homework_id)&&0==l)&&!v)return;(null==A?void 0:A.course_id)?(R.push(E({isComplete:l,learnlistId:o,learnlistItemId:r,uuid:d,course_id:null==A?void 0:A.course_id})),0!=l&&R.push(T({learnlistId:o,uuid:d,total_course_items:null==A?void 0:A.totalCourseItems,learnlist_item_type:g.learnlist_item_type,course_id:null==A?void 0:A.course_id}))):R.push(E({isComplete:l,learnlistId:o,learnlistItemId:r,uuid:d,course_id:null==A?void 0:A.course_id,assign_id:null==e?void 0:e.assign_id,section_assign_id:null==e?void 0:e.section_assign_id}));let f=await Promise.allSettled(R);if((null==f||null==(a=f[0])?void 0:a.status)=="fulfilled"&&(null==f||null==(i=f[0])?void 0:i.value.status)==200&&0!=l){let e=await new Promise((e,l)=>t(c({uuid:d||(null==m?void 0:m.uuid),learnlistId:o,schoolId:(null==A?void 0:A.schoolId)||(null==S?void 0:S.school_id)||(null==p?void 0:p.schoolId),classId:(null==A?void 0:A.classId)||(null==p?void 0:p.classId),boardId:(null==A?void 0:A.boardId)||(null==p?void 0:p.boardId),sectionAssignId:A.sectionAssignId,homeworkId:A.homework_id,resolve:e,reject:l,listdetailonly:!_,isCourse:null!=A&&!!A.course_id})));if(Array.isArray(e)){let l=null==e||null==(s=e.find(e=>(null==e?void 0:e.learnlist_item_id)==r))?void 0:s.completed_on;t((0,n.ZU)({id:r,isComplete:l}))}return!0}}catch(e){console.log("error in updateLearnListItemStatus",e)}let{addProgressData:o}=await Promise.resolve().then(l.bind(l,41225));t(o({}))}}},23569:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>a});let a={OPTIONS:{1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},TEST:"Test",NATIONAL_LEVEL_TEST_SERIES:"National Level Test Series",CREAT_YOUR_OWN_TEST:"Create your own test",VIDEO_SOLUTION:"Video Solution",TEXT_SOLUTION:"Text Solution by Our Experts",SUBMIT:"Submit",DASHBOARD:"Dashboard",DOUBT_HIS:"Doubt History",WAS_THE_SOL:"Was the solution satisfactory?",WHAT_SAT:"What did you find unsatisfactory",REVISIT:"Revisit",CLASS_V:"Class V",RE_ATTEMPT:"Re-attempt",MOCK_TEST:"Mock Tests",TIME:"Time",QUESTION:"Question",NO_OF_QUESTIONS:"No. of Questions",TEST_DURATION:"Test Duration",TOTAL_MARKS:"Total Marks",START_TEST:"Start Test",TXT_Min:"mins",TXT_Minutes:"mins",VIEW_SY
1LLABUS:"View syllabus",VIEW_ANALYSIS:"View Analysis",PRVIOUS_SCORE:"Previous Score",MAX_MARKS:"Max Marks",TXT_MOCK:"Mock",RE_TEST_TO_SEE_HOW_FAR:"Re-test to see how far youâve progressed",PRCTICE_PAPERS_PREPARED_ON_LATEST_EXAM:"Practice papers prepared on latest exam pattern and syllabus",DETAILED_AND_PLANNED_COVERAGE_OF_SYLLABUS:"Detailed and planned coverage of syllabus into different tests consolidated into a series",NO_DATA_FOUND:"No data found",CAREFULLY_COMPILED_BY_OUR:"Carefully compiled by our experts to help you ace your exams",COMING_SOON:"Coming Soon",WATCH_MORE_THE_SPACE:"Watch the space for more",APPLY_FILTER:"Apply Filter",TASK_COMPLETE_STATUS:"Task completion status",TEST_SERIES:"Test Series",TRENDING_TESTS:"Trending Tests",GET_FAMIILIRR_WITH_EXAM_PATTERN:"Get familiar with exam pattern",PRACTICE_QUESTIONS:"Practice Questions from Previous Year Papers",EXPLORE_AND_APPEAR_FOR_TESTS_MOST_ATTEMPTED_BY_YOUR_PEERS:"Explore and appear for tests most attempted by your peers",RATE_US:"Rate Us",ENJOY_LEARNING:"Enjoying the experience?",WOULD_YOU_RATE_US:"Tell us what you think. We value your feedback!",ResultAwaied:"Result Awaited",not_attempted:"Not Attempted",GET_IT_FOR_FREE:"Get it for Free",BUY_PACKAGE:"Buy Package",BUY_PACKAGE_OR_SUBMIT_DETAILS_TO_GET_TEST_SERIES_FOR_FREE:"Buy package or submit few details to get the test series for free.",CLICK_TO_PROCEED:"Click to proceed",ALL_INDIA_RANKERS_TEST_SERIES:"All India Rankers Test Series",PRACTICE_FOR_EXAMS_BY_ATTEMPTING_TEST_SERIES_BASED_ON_LATEST_PATTERN:"Practice for exams by attempting test series based on latest pattern.",PREMIUM:"Premium",SHARE_DETAILS:"Share Details",PLEASE_BUY:"Please Buy",OR:"or",GET_IT_FOR:"Get it for",DISCOUNT_BY_SHARING_FEW_DETAILS:"discount by sharing few details",GO_TO_WEBSITE:"Go to website",IOS_GO_WEB:"Please go to the website to buy",IOS_SHARE_DETAILS:"Get it for 50% discount by sharing few details",JEE_ADVANCED_TEST_SERIES:"JEE Advanced Test Series",RESUME_TEST:"Resume Test",RESUME_ORIGINAL_TEST:"Resume original Test",RESUME_POWER_TEST:"Resume Power Test",REATTEMPT_TITLE:"Re-attempt",REATTEMPT_DESCRIPTION:"Take the test again to see how far youâve progressed.",REVISIT_DESCRIPTION:"Revisit your previously taken tests",POWERQUESTION_TITLE:"Struggling with a certain problem?",POWERQUESTION_DESCRIPTION:"Achieve mastery of a concept by practicing the same question with varying values.",POWER_QN_ICON:"Power Question icon",EXPLORE:"Explore",START_ORIGINAL_TEST:"Start Original Test",ORIGINAL_TEST:"Original Test",START_POWER_TEST:"Start Power Test",POWER_TEST:"Power Test",SHARE:"Share",ASSIGN_HOMEWORK:"Assign as Homework",ADD_TO_LEARNLIST:"Add to learnlist",ADD_TO_Download:"Download",BOOKMARK:"Bookmark",STUDY_MATERIAL:"Study Material",PRACTICE:"Practice",LIST_OF_NUGGETS_IN_LEARNLIST:"List of nuggets in this Learnlist",HOMEWORK_LIST:"Homework List",HOMEWORK:"Homework",ACCESS_CONTENTS_LEARNLIST:"Access contents of your learnlist from here",GOT_IT:"Got It",LEARNLIST:"Learnlist",HOMEWORK_BANNER_TEST:"Submitting this assessment will mark the task as done.",HOMEWORK_BANNER_CONTENT:"Watching the complete video will mark the task as done.",TASK_COMPLETED:"Task Completed",STUDY_MATERIAL_LEARNLIST:"Viewing the content will mark the task as done",ASK_YOUR_DOUBTS:"Ask Your Doubts",ASK_YOUR_DOUBT:"Ask Your Doubt",ASK_DOUBT_SUBTITLE:"Get your doubts solved, anytime, anywhere.",GALLERY:"Gallery",FLASH:"Flash",ROTATE:"Rotate",RETAKE:"Retake",ATTACH:"Attach",VIEW_HISTORY:"View History",NO_LEARNLIST:"No Learnlist Found",ADD:"Add",ADD_LEARNLIST:"Add Learnlist",UPLOAD:"Upload",FILE_TYPE_MSG:"You can select only image.",INVALID_FILE_TYPE:"Invalid file type",YOUR_DOUBT:"Your Doubt",NOT_FOUND:"We could not find a solution to the raised question. Please rephrase the question and search again or ask another doubt.",ASK_ANOTHER_DOUBT:"Ask Another Doubt",RESULT:"Results",RESULT_NOT:"Results (10 questions found)",SUBCRIBE:"Subscribe to our doubt-solving module today and get solutions to all your questions.",PURCHAGE_FOR:"Purchase for",OTHER_RESULT:"Other Results",DOUBT_HISTORY:"Doubt History",PAST_DOU
1BT:"Past Doubts",NO_DOUBT:"No doubts asked",txt_more:"More ",LESS:"Less",ADDED_TO_LEARNLIST:"successfully added to the LearnList",SOMETHING_WENT_WRONG:"Something went wrong!",CONTENT:"Content",LECTURE:"lecture",TASK:"Task",ALREADY_EXISTS_IN_LEARNLIST:"Selected item already exist in the learnlist!",THANK_YOUR_FEEDBACK:"Thank you for your feedback",FREEDOUBT:" Free Doubts",FREEDOUBTNEW:"NEW",ALL_TASK_DONE:"All Tasks Completed",ADD_TASK:"Add Task",ADD_TASK_SUBTITLE:"Add to-do tasks to your learnlist.",ATTACH_FILE:"Attach file",BROWSE:"Browse",SUPPORTED_FILE_FORMAT:"Supported file format",DONE:"Done",CANCEL:"Cancel",COMPLETED:"Completed",MARK_AS_DONE:"Mark as Done",ADD_DESCRIPTION_FOR_TASK:"Add description for task",LEARNLIST_EMPTY_ERROR:"Learnlist name must not be empty!",NEED_ACTIVE_PACKAGE:"Please buy a package",DOUBT:"Doubts",HOME:"Home",GET_POWER_PACK:"Get a power-packed advantage for your exams.",GET_POWER_PACK_DES:"Attempt a Power Test which allows you to practice infinite power questions.",NO_OF_ATTEMPT:"No of Attempt",ANYTIME_ANYWHERE_DOUBT_SOLVING:"Anytime, Anywhere Doubt-Solving",FREE:"FREE",study:"Study",Testsubmitteduccessfully:"Test Submitted Successfully",Correctanswer:"Correct Answer",Wronganswer:"Wrong Answer",Learnitagain:"Learn it again in",Videowillresumein:"Video will resume in",Goback:"Go Back",Continue:"Continue",HOMEWORK_BANNER_QUESTION:"Clicking View Solution will mark the task as done.",This_content_connot_be_added_to_the_Learnlist:"This content cannot be added to the Learnlist",Next:"Next",QUESTIONS_WITH_SOLUTIONS:"Questions with Solutions",RECENTLY_ASKED:"Recently Asked",BUY:"Buy",GET_RANKERS_TEST_SERIES:"All India Rankers Test Series",GET_MODIFIED_TEST_PAPERS:"Get Modified Test Papers",GET_PREVIOUS_YEARS_PAPERS:"Get Previous Years' Papers"}},46630:(e,t,l)=>{"use strict";l.d(t,{B:()=>s,K:()=>o});var a=l(70256),i=l(83252),n=l(81236);l(56470),Promise.allSettled||(Promise.allSettled=function(e){return Promise.all(e.map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e}))))});let s=(e,t)=>{let l=n.TEST_CONTENT_REPORT_MSA_BASE_URL+"/mis/v2/contentBookmarkedStatus?uuid="+(null==e?void 0:e.uuid)+"&contentId="+t,{getState:s}=a.A,{login:o={}}=s(),{LoginData:u={}}=o,{access_token:r=""}=u,d={"content-type":"application/json",token:r,Authorization:"Bearer "+r};return new Promise((e,t)=>{(0,i.A)({path:"".concat(l),method:"GET",isFullPath:!0,header:d}).then(t=>{e(t)}).catch(e=>{t(e)})})},o=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&e.length?e.map(e=>{var t,l;return{...e,is_bookmarked:null!=(l=null!=(t=null==e?void 0:e.is_bookmarked)?t:null==e?void 0:e.bookmarked)?l:0}}):[]}},55362:(e,t,l)=>{var a={"./en/TestLocalStrings":23569};function i(e){return Promise.resolve().then(()=>{if(!l.o(a,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l(a[e])})}i.keys=()=>Object.keys(a),i.id=55362,e.exports=i},77329:(e,t,l)=>{"use strict";l.d(t,{manualQuestionDetail:()=>u,w:()=>o});var a=l(83252),i=l(81236),n=l(85844),s=l(70256);Promise.allSettled||(Promise.allSettled=function(e){return Promise.all(e.map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e}))))});let o=(e,t)=>new Promise((l,n)=>{(0,a.A)({path:"".concat(i.API_BASE_URL_MSA,"/syllabus-v2/customSyllabusParentDetail?customSyllabusId=").concat(e,"&detailFlag=all").concat(t?"&version="+t:""),method:"GET",isFullPath:!0,isTokenEnabled:!0,authEnabled:!0}).then(e=>{e?l(e):n(e)}).catch(e=>{window.GlobalFunctions.consoleLog("error -***********--",e),n(e)})}),u=e=>new Promise((t,l)=>{var o;let u=null==(o=s.A.getState().login)?void 0:o.adjustData,r=(0,n.mu)(null==u?void 0:u.app_name),d=(null==e?void 0:e.language_id)?[null==e?void 0:e.language_id]:[1];r&&(d=[1,2,5].reduce((e,t,l)=>l%1==0?[...e,[t]]:[...e.slice(0,-1),[...e.slice(-1)[0],t]],[]));let _=[];null==d||d.forEach(t=>{e.language_id=Array.isArray(t)?t:[t],_.push((0,a.A)({path:i.API_BASE_URL_MSA+"/question-msa-test/question/getManualQuestionDetailsByIds",method:"POST",body:e,isFullPath:!0,isTokenEnabled:!0,authEnabled:!0,timeout:3e5,isTimeoutEnabled:!0}))}),Promise.allSettled(_).then(e=>{var l;let a=[],i=null==e?void 0:e.reduce((e,t)=>
1{var l,i,n;return(null==t?void 0:t.status)=="fulfilled"&&(null==t||null==(i=t.value)||null==(l=i.ques_data)?void 0:l.length)>0&&(null==t||null==(n=t.value)||n.ques_data.forEach(e=>{a.push({...e})}),e.push(a)),e},[]),n={};(null==i||null==(l=i[0])?void 0:l.length)&&(n={message:"Processed Successfully",message_id:"GAPQ_00001",ques_data:null==i?void 0:i[0],status:200}),t(n)}).catch(e=>{window.GlobalFunctions.consoleLog("error -*****--",e),l(e)})})},92741:(e,t,l)=>{"use strict";l.d(t,{A:()=>n});var a=l(78729);let i={en:l(23569).default,hi:{},ar:{},ru:{},bh:{}},n=new a.A(i)}}]);
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.