"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3094],{30406:function(e,t,n){n.d(t,{DU:function(){return I},Ke:function(){return v},Kl:function(){return O},c4:function(){return k},eM:function(){return y},f8:function(){return z},gw:function(){return w},jE:function(){return $},oS:function(){return j},tC:function(){return Z},tL:function(){return S}});var a,r,i,s,o,l,c,d,p,u,m,h,f=n(71383),x=n(68806),g=n(79722),b=n(26915),v=function(e){var t=e.itemId,n=e.type,r=e.testId;return g.Z.mutate({mutation:(0,x.Ps)(a||(a=(0,f.Z)(["\n mutation createBookmark($input: CreateBookmarkInput!) {\n createBookmark(input: $input) {\n id\n }\n }\n "]))),variables:{input:{itemId:t,type:n,testId:r}}})},y=function(e){var t=e.itemId,n=e.id;return g.Z.mutate({mutation:(0,x.Ps)(r||(r=(0,f.Z)(["\n mutation removeBookmark($itemId: ID!, $id: ID) {\n removeBookmark(itemId: $itemId, id: $id) {\n message\n success\n }\n }\n "]))),variables:{itemId:t,id:n}})},w=function(e){var t=e.itemId,n=e.language,a=e.emailId;return g.Z.mutate({mutation:(0,x.Ps)(i||(i=(0,f.Z)(["\n mutation SendTestPdfUrl($id: ID!, $language: Language!, $emailId: String!) {\n sendTestPdfUrl(id: $id, language: $language, emailId: $emailId)\n }\n "]))),variables:{id:t,language:n,emailId:a}})},k=function(e){var t=e.externalExamId;return g.Z.query({query:(0,x.Ps)(s||(s=(0,f.Z)(["\n query examByExternalId($externalExamId: Int!) {\n examByExternalId(id: $externalExamId) {\n id\n slug\n }\n }\n "]))),variables:{externalExamId:t}})},j=function(e){var t=e.pageSize,n=e.examIds,a=e.token;return a?g.Z.query({query:(0,x.Ps)(o||(o=(0,f.Z)(['\n query ExamSidebarData($pageSize: Int, $examIds: [ID!]) {\n liveTests: me {\n tests(\n type: LIVE_TEST\n examIds: $examIds\n pageSize: $pageSize\n isAttempted: false\n sortBy: "availableTill"\n sortOrder: ASC\n ) {\n ','\n }\n }\n liveQuizzes: me {\n tests(\n type: LIVE_QUIZ\n examIds: $examIds\n pageSize: $pageSize\n isAttempted: false\n sortBy: "availableTill"\n sortOrder: ASC\n ) {\n ',"\n }\n }\n mockTests: me {\n tests(\n type: FULL\n examIds: $examIds\n pageSize: $pageSize\n isAttempted: false\n ) {\n nodes {\n ","\n }\n }\n }\n previousPapers: me {\n tests(\n type: PREVIOUS_YEAR\n examIds: $examIds\n pageSize: $pageSize\n isAttempted: false\n ) {\n nodes {\n ","\n }\n }\n }\n quizzes: me {\n tests(\n type: CURRENT_AFFAIR_QUIZ\n examIds: $examIds\n pageSize: $pageSize\n isAttempted: false\n ) {\n nodes {\n ","\n }\n }\n }\n testSeries: allTestSeries(examIds: $examIds, limit: 1) {\n nodes {\n name {\n en\n }\n id\n exam {\n slug\n }\n }\n }\n videos(examIds: $examIds, pageSize: $pageSize, type: CURRENT_AFFAIRS) {\n nodes {\n id\n views\n publishDate\n avgRating\n thumbnail {\n url\n }\n title {\n default\n }\n }\n }\n }\n "])),(0,b.Mu)(!0),(0,b.Mu)(!0),(0,b.V6)(!0),(0,b.V6)(!0),(0,b.V6)(!0)),variables:{pageSize:t,token:a,examIds:n}}):g.Z.query({query:(0,x.Ps)(l||(l=(0,f.Z)(['\n query ExamSidebarData($pageSize: Int, $examIds: [ID!]) {\n liveTests: tests(\n type: LIVE_TEST\n examIds: $examIds\n pageSize: $pageSize\n sortBy: "availableTill"\n sortOrder: ASC\n ) {\n ','\n }\n liveQuizzes: tests(\n type: LIVE_QUIZ\n examIds: $examIds\n pageSize: $pageSize\n sortBy: "availableTill"\n sortOrder: ASC\n ) {\n ',"\n }\n mockTests: tests(type: FULL, examIds: $examIds, pageSize: $pageSize) {\n nodes {\n ",'\n }\n }\n previousPapers: tests(\n type: PREVIOUS_YEAR\n examIds: $examIds\n pageSize: $pageSize\n sortBy: "year"\n ) {\n nodes {\n ',"\n }\n }\n quizzes: tests(type: CURRENT_AFFAIR_QUIZ, examIds: $examIds, pageSize: $pageSize) {\n nodes {\n ","\n }\n }\n testSeries: allTestSeries(examIds: $examIds, limit: 1) {\n nodes {\n name {\n en\n }\n id\n exam {\n slug\n }\n }\n }\n videos(examIds: $examIds, pageSize: $pageSize) {\n nodes {\n id\n views\n publishDate\n avgRating\n thumbnail {\n url\n }\n title {\n default\n }\n }\n }\n }\n "])),(0,b.Mu)(!1),(0,b.Mu)(!1),(0,b.V6)(!1),(0,b.V6)(!1),(0,b.V6)(!1)),variables:{pageSize:t,token:a,examIds:n}})},I=function(){return g.Z.query({query:(0,x.Ps)(c||(c=(0,f.Z)(['\n query ExamCategories {\n examCategories(sortBy: "order", sortOrder: ASC) {\n id\n type\n name {\n en\n }\n image {\n url\n }\n }\n }\n '])))})},$=function(e){var t=e.examCategoryId;return g.Z.query({query:(0,x.Ps)(d||(d=(0,f.Z)(['\n query ExamCategoryWithExams($ids: [ID!]) {\n examCategories(ids: $ids, sortBy: "order", sortOrder: ASC) {\n id\n exams {\n id\n shortName {\n en\n }\n }\n }\n }\n ']))),variables:{ids:[t]}})},S=function(e){var t=e.token,n=e.pageSize,a=e.after,r=e.examCategoryId,i=e.type;return g.Z.query({query:(0,x.Ps)(p||(p=(0,f.Z)(["\n query PopularTests(\n $after: String\n $pageSize: Int\n $examCategoryId: ID\n $type: TestTypes\n ) {\n recommendedTests(\n after: $after\n pageSize: $pageSize\n examCategoryId: $examCategoryId\n type: $type\n ) {\n nodes {\n ","\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n "])),(0,b.V6)(!!t)),variables:{pageSize:n,token:t,after:a,examCategoryId:r,type:i}})},Z=function(e){var t=e.examCategoryId,n=e.testType;return g.Z.query({query:(0,x.Ps)(u||(u=(0,f.Z)(["\n query TestExams($examCategoryId: ID, $testType: TestTypes) {\n testExams(examCategoryId: $examCategoryId, testType: $testType) {\n id\n slug\n examCategories {\n id\n name {\n en\n }\n }\n shortName {\n en\n }\n image {\n url\n }\n }\n }\n "]))),variables:{examCategoryId:t,testType:n}})},O=function(e){var t=e.type,n=e.pageSize,a=e.examIds,r=e.examCategoryId,i=e.token,s=e.year,o=e.phrase,l=e.after,c=e.sortBy;return g.Z.query({query:(0,x.Ps)(m||(m=(0,f.Z)(["\n query Tests(\n $type: TestTypes\n $pageSize: Int\n $examIds: [ID!]\n $examCategoryId: ID,\n $year: Int\n $phrase: String\n $after: String\n $sortBy : String\n ) {\n tests(\n type: $type\n examIds: $examIds\n examCategoryId:$examCategoryId\n pageSize: $pageSize\n year: $year\n phrase: $phrase\n after: $after\n sortBy: $sortBy\n ) {\n nodes {\n ","\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n "])),(0,b.V6)(!!i)),variables:{type:t,pageSize:n,token:i,examIds:a,examCategoryId:r,year:s,phrase:o,after:l,sortBy:c}})},z=function(e){var t=e.limit,n=e.page,a=e.pageSize,r=e.sortBy,i=e.sortOrder,s=e.fromDate,o=e.toDate,l=e.ids,c=e.status,d=e.apps,p=e.token;return g.Z.query({query:(0,x.Ps)(h||(h=(0,f.Z)(["\n query ListBanners(\n $limit: Int\n $page: Int\n $pageSize: Int\n $sortBy: String\n $sortOrder: SortDirection\n $fromDate: DateTime\n $toDate: DateTime\n $ids: [ID!]\n $status: Status\n $apps: [BannerAppType!]\n ) {\n items: banners(\n limit: $limit\n page: $page\n pageSize: $pageSize\n sortBy: $sortBy\n sortOrder: $sortOrder\n fromDate: $fromDate\n toDate: $toDate\n ids: $ids\n status: $status\n apps: $apps\n ) {\n nodes {\n id\n image {\n id\n url\n }\n image2 {\n id\n url\n }\n status\n target\n appScreen\n itemId\n link\n redirectType\n apps\n validTill\n createdAt\n updatedAt\n hideTimer\n }\n totalCount\n }\n }\n "]))),variables:{limit:t,page:n,token:p,pageSize:a,sortBy:r,sortOrder:i,fromDate:s,toDate:o,ids:l,status:c,apps:d}})}},53289:function(e,t,n){var a=n(59499),r=n(53967),i=n.n(r);n(67294);var s=n(41664),o=n.n(s),l=n(30381),c=n.n(l),d=n(70017),p=n(40385),u=n(85893);function m(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 h(e){for(var t=1;t(void 0===b?2:b)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"jsx-".concat(p.__hash)+" col-auto pe-0",children:(0,u.jsx)("button",{disabled:"start"===I,onClick:function(){null==w||w.slickPrev(),(0,d.YW)({action:"arrow_click",category:a,value:"backward",location:window.location.pathname})},type:"button",className:"jsx-".concat(p.__hash)+" btn arrows prev btn-secondary p-0 rounded-circle d-flex justify-content-center",children:(0,u.jsx)(f,{fill:"#333",width:16})})}),(0,u.jsx)("div",{className:"jsx-".concat(p.__hash)+" col-auto",children:(0,u.jsx)("button",{disabled:"end"===I,onClick:function(){null==w||w.slickNext(),(0,d.YW)({action:"arrow_click",category:a,value:"forward",location:window.location.pathname})},type:"button",className:"jsx-".concat(p.__hash)+" btn arrows btn-secondary p-0 rounded-circle d-flex justify-content-center",children:(0,u.jsx)(f,{fill:"#333",width:16})})})]})]})}),(0,u.jsxs)("div",{className:"jsx-".concat(p.__hash)+" card-body d-flex flex-column",children:[l?(0,u.jsx)(o.Z,h(h({ref:function(e){return k(e)}},S),{},{afterChange:function(e){$(function(){return 0===e?"start":e===Math.ceil(m.length/S.rows)-1?"end":""})},children:m})):m,g&&(0,u.jsxs)(c(),{className:"text-center text-decoration-none text-gray-700",href:void 0===v?"/":v,onClick:function(){return(0,d.YW)({action:"view_more",category:"Sidebar",label:"View More",location:window.location.pathname})},children:["View More",(0,u.jsx)(x,{})]})]}),(0,u.jsx)(i(),{id:p.__hash,children:p})]})}}}]);