(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6761],{27221:function(e,t,n){"use strict";n.d(t,{Hu:function(){return l},K5:function(){return p},N5:function(){return d}});var a,r,s,i=n(71383),o=n(68806),c=n(79722),u=n(26915),l=function(e){var t=e.token,n=e.subjectId,r=e.topicId,s=e.pageSize,l=e.phrase,d=e.after,p=e.examId;return c.Z.query({query:(0,o.Ps)(a||(a=(0,i.Z)(["\n query SyllabusQuizzes(\n $subjectId: ID\n $topicId: ID\n $pageSize: Int\n $phrase: String\n $after: String\n $examId: ID\n ) {\n syllabusQuizzes(\n subjectId: $subjectId\n topicId: $topicId\n pageSize: $pageSize\n phrase: $phrase\n after: $after\n examId: $examId\n ) {\n nodes {\n ","\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n "])),(0,u.V6)(!!t)),variables:{subjectId:n,token:t,topicId:r,pageSize:s,phrase:l,after:d,examId:p}})},d=function(e){var t=e.examId,n=e.itemType;return c.Z.query({query:(0,o.Ps)(r||(r=(0,i.Z)(["\n query SyllabusSubjects($examId: ID, $itemType: SyllabusMapItemType) {\n syllabusSubjects(examId: $examId, itemType: $itemType) {\n id\n name {\n en\n }\n }\n }\n "]))),variables:{examId:t,itemType:n}})},p=function(e){var t=e.subjectId,n=e.itemType,a=e.examId;return c.Z.query({query:(0,o.Ps)(s||(s=(0,i.Z)(["\n query SyllabusTopics(\n $itemType: SyllabusMapItemType\n $subjectId: ID!\n $examId: ID\n ) {\n syllabusTopics(\n subjectId: $subjectId\n examId: $examId\n itemType: $itemType\n ) {\n id\n name {\n en\n }\n }\n }\n "]))),variables:{subjectId:t,itemType:n,examId:a}})}},13255:function(e,t,n){"use strict";n.d(t,{d:function(){return r},e:function(){return a}});var a="Looking for a one-stop solution to practice online quizzes for the government exams? Then you are at the right destination. Prepp provides you with a wide range of daily quizzes to help you prepare online for any government exam with ease. Get online quizzes for UPSC, IBPS PO, IBPS Clerk, SBI PO, SBI Clerk, SSC CGL, SSC CHSL, NDA, CDS and other exams. We provide quizzes based on the updated syllabus and latest exam pattern which will help you in analyzing your performance for all Government Exams.",r=[{question:"Ques. I have lost my internet connection while attempting the quiz. Can I resume the quiz once the connection is back?",answer:"Ans. Yes, you can continue the test once your internet connection is back, the quiz will resume from where you had left."},{question:"Ques. I do not have a computer or a laptop. Is there any alternative through which I can attempt a quiz?",answer:"Ans. Yes, you can attempt the quiz through your mobile phone as well. You can download the Prepp App from the play store/ app store for a smoother process."},{question:"Ques. What happens if I get disconnected during a quiz?",answer:"Ans. If you get disconnected while attempting a quiz, all your data till the disconnection will get saved and you will be able to resume from the same state later. You are advised to keep the test window open in this case."},{question:"Ques. I have completed the quiz. When will I get my score?",answer:"Ans. On submission of your quiz, your score and rank would be immediately generated. The ranking is dynamic in nature and it would change as more users attempt that mock test."},{question:"Ques. Can I attempt a quiz more than once?",answer:"Ans. A quiz can be attempted as many times as time you wish and you can review the solutions and analysis of the attempted tests as many times as you want."},{question:"Ques. Do you also provide solutions for the questions?",answer:"Ans. Yes, detailed solutions will be available to you after you finish the quiz. You will be able to access these solutions anytime after you have taken the quiz."},{question:"Ques. Will I get any report card after the quiz?",answer:"Ans. Yes, you will get a detailed analysis of your performance after submitting the quiz."}]},71418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Y}});var a,r=n(59499),s=n(90116),i=n(50029),o=n(64687),c=n.n(o),u=n(26689),l=n.n(u),d=n(25633),p=n(30406),m=n(27221),f=n(60132),b=n(80230),x=n(17674),y=n(11163),v=n(25617),h=n(67294),I=n(40925),g=n(5152),j=n.n(g),z=n(27732),S=n(13255),w=n(8267),q=n(80816),k=n(85893),C=function(e){var t=e.quizzes,n=t.nodes,a=t.pageInfo,r=a.hasNextPage,s=a.endCursor,i=e.paginate;return(0,k.jsxs)("div",{className:"row g-4",children:[0===n.length?(0,k.jsx)("div",{className:"text-center",children:"Oops! Nothing to see here."}):n.map(function(e){return(0,k.jsx)("div",{className:"col-12 col-lg-4",style:{minHeight:"130px"},children:(0,k.jsx)(q.Z,{data:e,examName:(0,w.Yo)(e.exams)})},e.id)}),r&&(0,k.jsx)("div",{className:"d-flex align-items-center justify-content-center",children:(0,k.jsx)("button",{className:"btn btn-outline-dark",onClick:function(){return i(s)},type:"button",children:"Load More"})})]})},P=n(56083),T=n(70017),O=n(1749);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function A(e){for(var t=1;t0}).map(function(e){return{text:e.shortName.en,value:"".concat(n,"/").concat(e.shortName.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){return e.value===a?-1:t.value===a?1:0})}]:[u[1]]),(0,s.Z)(a?[{name:"subjectId",resetFields:["topicId"],singleSelect:!0,text:"Subject",values:(Array.isArray(l)?l:[]).map(function(e){return{text:e.name.en,value:"".concat(a.split("/")[1],"/").concat(e.name.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){return e.value===r?-1:t.value===r?1:0})}]:u[2]&&!n?[u[2]]:[]),(0,s.Z)(r?[{name:"topicId",resetFields:[],singleSelect:!0,text:"Topic",values:(Array.isArray(p)?p:[]).map(function(e){return{text:e.name.en,value:e.id}}).sort(function(e,t){return e.value===i?-1:t.value===i?1:0})}]:[])));case 39:case"end":return e.stop()}},e,null,[[5,12],[16,23],[27,34]])})),function(e){return t.apply(this,arguments)}),X=(n=(0,i.Z)(c().mark(function e(t){var n,a,r,i,o,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=void 0===(a=(n=g.query).slug)?[]:a,i=n.topic,o=r.map(function(e){return e.split("-").pop()}),"exam"!==r[0]){e.next=11;break}return o=o.slice(0),e.next=7,(0,m.Hu)(A(A(A(A({},o[0]&&{examId:o[0]}),o[1]&&{subjectId:o[1]}),i&&{topicId:i}),{},{token:w,limit:30,after:t}));case 7:u=e.sent.data.syllabusQuizzes,e.next=15;break;case 11:return e.next=13,(0,p.Kl)(A(A(A({type:f.LB.QUIZ},o[0]&&{examCategoryId:o[0]}),o[1]&&{examIds:[o[1]]}),{},{token:w,pageSize:30,after:t}));case 13:u=e.sent.data.tests;case 15:D(function(e){return{nodes:[].concat((0,s.Z)(e.nodes),(0,s.Z)(u.nodes)),pageInfo:u.pageInfo}}),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),j((0,I.f)("An error occured, Please Try again!","error"));case 21:case"end":return e.stop()}},e,null,[[0,18]])})),function(e){return n.apply(this,arguments)});return(0,h.useEffect)(function(){F(!1),D(a),W([{name:"Home",url:"/"}].concat((0,s.Z)(b)))},[b,a]),(0,h.useEffect)(function(){var e,t=(e=(0,i.Z)(c().mark(function e(t){var n,a,r,i,o,u;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=void 0===(a=(n=g.query).slug)?[]:a,i=n.topic,o=r.map(function(e){return e.split("-").pop()}),"exam"!==r[0]){e.next=11;break}return o=o.slice(0),e.next=7,(0,m.Hu)(A(A(A(A({},o[0]&&{examId:o[0]}),o[1]&&{subjectId:o[1]}),i&&{topicId:i}),{},{token:w,pageSize:30,phrase:t}));case 7:u=e.sent.data.syllabusQuizzes,e.next=15;break;case 11:return e.next=13,(0,p.Kl)(A(A(A({type:f.LB.QUIZ},o[0]&&{examCategoryId:o[0]}),o[1]&&{examIds:[o[1]]}),{},{token:w,pageSize:30,phrase:t}));case 13:u=e.sent.data.tests;case 15:D({nodes:(0,s.Z)(u.nodes),pageInfo:u.pageInfo}),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),j((0,I.f)("An error occured, Please Try again!","error"));case 21:case"end":return e.stop()}},e,null,[[0,18]])})),function(t){return e.apply(this,arguments)});""!==L&&t(L)},[j,L,w,g.query]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(z.Z,{listingFilters:r,onClickFilter:function(e){var t=e.examCategoryId,n=e.examId,a=e.subjectId,r=e.topicId;return(F(!0),r)?g.push("/quizzes/exam/".concat(a,"?topic=").concat(r)):a?g.push("/quizzes/exam/".concat(a)):n?g.push("/quizzes/".concat(n)):t?g.push("/quizzes/".concat(t)):g.push("/quizzes")},onResetFilters:J,requestUpdatedFilters:V,contentLoading:$,breadcrumbs:M,pageHeaderArticle:S.e,searchbar:(0,k.jsx)(P.Z,{onPhraseSearch:function(e){B(e),(0,T.YW)({action:"search",category:"Quizzes",location:window.location.pathname,search_term:e})},onClearPhraseSearch:function(){D(a)},historyItems:R,saveHistoryItems:U,onRemoveHistoryItem:G,placeholder:"Search Quizzes"}),children:(0,k.jsx)(C,{quizzes:Z,paginate:X})}),(0,k.jsxs)("div",{className:"page-container mobile-container",children:[(0,k.jsx)("hr",{className:"bg-gray-300"}),(0,k.jsx)(E,{data:S.d}),(0,k.jsx)("hr",{className:"bg-gray-300"}),(0,k.jsx)("div",{className:"mb-4",children:(0,k.jsx)(N,{})})]})]})},Q=n(67314),$=n(70542);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _(e){for(var t=1;t0?r.map(function(e,t,n){return{name:e.split("-").slice(0,-1).join("-"),url:0===t?"/quizzes/".concat(h.name.en.split(" ").join("-"),"-").concat(h.id,"/").concat(e):"/quizzes/exam/".concat(n.slice(0,t+1).join("/"))}}):[]),(0,s.Z)(d?[{name:g.name.en,url:""}]:[])),filters:[].concat((0,s.Z)(Array.isArray(o)?[{name:"examCategoryId",resetFields:["examId","subjectId","topicId"],singleSelect:!0,text:"Exam Category",values:o.map(function(e){return{text:e.name.en,value:"".concat(e.name.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){var n,a,r,s;return e.value==="".concat(null===(n=h)||void 0===n?void 0:n.name.en.split(" ").join("-"),"-").concat(null===(a=h)||void 0===a?void 0:a.id)?-1:t.value==="".concat(null===(r=h)||void 0===r?void 0:r.name.en.split(" ").join("-"),"-").concat(null===(s=h)||void 0===s?void 0:s.id)?1:0})}]:[]),(0,s.Z)(Array.isArray(b)?[{name:"examId",resetFields:["subjectId","topicId"],singleSelect:!0,text:"Exam",values:b.filter(function(e){return e.examCategories.length>0}).map(function(e){return{text:e.shortName.en,value:"".concat(e.examCategories[0].name.en.split(" ").join("-"),"-").concat(e.examCategories[0].id,"/").concat(e.shortName.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){var n,a,s,i;return e.value==="".concat(null===(n=h)||void 0===n?void 0:n.name.en.split(" ").join("-"),"-").concat(null===(a=h)||void 0===a?void 0:a.id,"/").concat(r[0])?-1:t.value==="".concat(null===(s=h)||void 0===s?void 0:s.name.en.split(" ").join("-"),"-").concat(null===(i=h)||void 0===i?void 0:i.id,"/").concat(r[0])?1:0})}]:[]),(0,s.Z)(Array.isArray(x)?[{name:"subjectId",resetFields:["topicId"],singleSelect:!0,text:"Subject",values:x.map(function(e){return{text:e.name.en,value:"".concat(r[0],"/").concat(e.name.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){return e.value===[r[0],r[1]].join("/")?-1:t.value===[r[0],r[1]].join("/")?1:0})}]:[]),(0,s.Z)(Array.isArray(y)?[{name:"topicId",resetFields:[],singleSelect:!0,text:"Topic",values:y.map(function(e){return{text:e.name.en,value:e.id}}).sort(function(e,t){return e.value===d?-1:t.value===d?1:0})}]:[])),heading:"Quizzes",selectedParams:_(_(_(_({},!!h&&{examCategoryId:"".concat(h.name.en.split(" ").join("-"),"-").concat(h.id)}),!!i[0]&&{examId:"".concat(h.name.en.split(" ").join("-"),"-").concat(h.id,"/").concat(r[0])}),!!i[1]&&{subjectId:[r[0],r[1]].join("/")}),!!d&&{topicId:d}),selectedBubbles:[]},quizzes:v});case 67:return e.prev=67,e.next=70,L(_({testType:f.LB.PREVIOUS_YEAR},i[0]&&{examCategoryId:i[0]}));case 70:j=e.sent.data.testExams,e.next=78;break;case 74:return e.prev=74,e.t5=e.catch(67),console.error(e.t5),e.abrupt("return",{statusCode:404});case 78:if(!i[1]){e.next=90;break}return e.prev=79,e.next=82,(0,m.N5)({itemType:f.uI.TEST,examId:i[1]});case 82:z=e.sent.data.syllabusSubjects,e.next=90;break;case 86:return e.prev=86,e.t6=e.catch(79),console.error(e.t6),e.abrupt("return",{statusCode:404});case 90:return e.prev=90,e.next=93,(0,p.Kl)(_(_(_({type:f.LB.QUIZ},i[0]&&{examCategoryId:i[0]}),i[1]&&{examIds:[i[1]]}),{},{token:n,pageSize:30}));case 93:S=e.sent.data.tests,e.next=101;break;case 97:return e.prev=97,e.t7=e.catch(90),console.error(e.t7),e.abrupt("return",{statusCode:404});case 101:return w=[{name:"Quizzes",url:"/quizzes"}].concat((0,s.Z)(r.length>0?r.map(function(e,t,n){return{name:e.split("-").slice(0,-1).join("-"),url:"/quizzes/".concat(n.slice(0,t+1).join("/"))}}):[])),q=[(0,$.um)(w)],e.abrupt("return",{schemaJsonLd:q,listingFilters:{breadcrumbs:w,filters:[].concat((0,s.Z)(Array.isArray(o)?[{name:"examCategoryId",resetFields:["examId","subjectId","topicId"],singleSelect:!0,text:"Exam Category",values:o.map(function(e){return{text:e.name.en,value:"".concat(e.name.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){return e.value===r[0]?-1:t.value===r[0]?1:0})}]:[]),(0,s.Z)(Array.isArray(j)?[{name:"examId",resetFields:["subjectId","topicId"],singleSelect:!0,text:"Exam",values:j.filter(function(e){return e.examCategories.length>0}).map(function(e){return{text:e.shortName.en,value:"".concat(e.examCategories[0].name.en.split(" ").join("-"),"-").concat(e.examCategories[0].id,"/").concat(e.shortName.en.split(" ").join("-"),"-").concat(e.id)}}).sort(function(e,t){return e.value===[r[0],r[1]].join("/")?-1:t.value===[r[0],r[1]].join("/")?1:0})}]:[]),(0,s.Z)(Array.isArray(z)?[{name:"subjectId",resetFields:["topicId"],singleSelect:!0,text:"Subject",values:z.map(function(e){return{text:e.name.en,value:"".concat(r[1],"/").concat(e.name.en.split(" ").join("-"),"-").concat(e.id)}})}]:[])),heading:"Quizzes",selectedParams:_(_({},!!i[0]&&{examCategoryId:r[0]}),!!i[1]&&{examId:[r[0],r[1]].join("/")}),selectedBubbles:[]},quizzes:S});case 104:case"end":return e.stop()}},e,null,[[3,10],[18,25],[30,37],[41,50],[55,62],[67,74],[79,86],[90,97]])})),function(e){return a.apply(this,arguments)});var Y=B},64982:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quizzes/[[...slug]]",function(){return n(71418)}])}},function(e){e.O(0,[4885,1852,8756,385,2962,2224,9265,1986,816,9063,9550,1927,7732,2888,9774,179],function(){return e(e.s=64982)}),_N_E=e.O()}]);