PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/quiz-series-7cb61ff5f371ca9d.js

js supermocks.com collected 2026-09-24 14:56:42 UTC 4,237 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2209],{97147:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz-series",function(){return n(55349)}])},55349:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(47568),a=n(29815),i=n(97582),u=n(85893),o=n(7386),s=n(89885),l=n(67294),c=n(96076),d=n(47041),f=n(93520),g=n(6749),_=n(11163),h=n(84666),m=n(62461);function v(e){var t=(0,l.useContext)(s.Z).appConfig,n=(0,_.useRouter)(),v=(0,f.hb)(t.web_enableSuperCategory),p=t.web_menuquizseriesname||"Quiz Series",y=(0,l.useState)(e.quizSeries||[]),x=y[0],C=y[1],S=(0,l.useState)(0),q=S[0],b=S[1],F=(0,l.useState)(e.total||0),w=F[0],z=F[1],k=(0,l.useState)((e.quizSeries||[]).length>=10),I=k[0],Z=k[1],E=(0,l.useState)(!1),N=E[0],L=E[1],M=(0,l.useState)(e.categories||[])[0],P=(0,l.useState)(null),T=P[0],j=P[1],O=(0,l.useState)([c.F7]),Q=O[0],R=O[1],X=(0,l.useState)(c.F7),H=X[0],$=X[1],A=(0,l.useState)([c.F7].concat((0,a.Z)(e.categories||[]))),B=A[0],D=(A[1],(0,l.useState)((function(){var t=n.query.examId;if(t){var r=[c.F7].concat((0,a.Z)(e.categories||[])).find((function(e){return e.exam_id===t}));if(r)return r}return c.F7}))),G=D[0],J=D[1],K=n.query.examId,U=(0,l.useMemo)((function(){return(0,m.gg)(M)}),[M]);(0,l.useEffect)((function(){if(!v)if(K&&B.length>1){var e=B.find((function(e){return e.exam_id===K}));e&&J(e)}else K||J(c.F7)}),[K,B,v]),(0,l.useEffect)((function(){!v&&B.length>1&&V(!0,G.exam_id||"")}),[G]);var V=function(){var e=(0,r.Z)((function(){var e,t,n,r,a,u,s,l=arguments;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:e=l.length>0&&void 0!==l[0]&&l[0],t=l.length>1&&void 0!==l[1]?l[1]:"",b(n=e?0:q+10),L(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),r=(0,d.getCookie)(c.z1),[4,(0,o.Ly)(r||"",n,t)];case 2:return a=i.sent(),u=(null===a||void 0===a?void 0:a.data)||[],C(e?u:function(e){return e.concat(u)}),z((null===a||void 0===a?void 0:a.total)||0),Z(u.length>=10),[3,5];case 3:return s=i.sent(),console.error(s),[3,5];case 4:return L(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),W=v?(null===T||void 0===T?void 0:T.name)||p:""!==G.exam_id&&G.exam_name||p;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(g.Z,{content:{meta_title:W,og_title:W}}),(0,u.jsx)(h.Z,{enableSuperCategory:v,pageTitle:W,testSeries:x,total:w,hasMore:I,isLoading:N,superCategories:U,selectedSuperCategory:T,categories:Q,selectedCategory:H,onSuperCategoryClick:function(e){var t,n=[c.F7].concat((0,a.Z)(e.children)),r=(null===(t=e.children)||void 0===t?void 0:t[0])||c.F7;j(e),R(n),$(r),C([]),z(0),b(0),V(!0,r.exam_id||"")},onCategoryClick:function(e){$(e),n.push({pathname:"/quiz-series",query:""===e.exam_id?{}:{examId:e.exam_id}},void 0,{shallow:!0}),V(!0,e.exam_id||"")},onLoadMoreSuperCategory:function(){return V(!1,H.exam_id||"")},onResetToHome:function(){j(null),R([c.F7]),$(c.F7),C([]),z(0),b(0),n.push({pathname:"/quiz-series",query:{}},void 0,{shallow:!0})},flatCategories:B,flatSelectedCategory:G,enableCategoryFilter:(0,f.hb)(t.web_enablecategoryfilter),onFlatCategoryClick:function(e){J(e),n.push({pathname:"/quiz-series",query:""===e.exam_id?{}:{examId:e.exam_id}},void 0,{shallow:!0})},onLoadMoreFlat:function(){return V(!1,G.exam_id||"")},emptyMessage:"No quiz series found",categoryCountField:"total_testseries",getCardProps:function(e){return{item:e,href:"/test-series/".concat(e.id,"/tests")}}})]})}v.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,a,u,s,l;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:t=e.query.examId,n=(0,d.getCookie)(c.z1,e),r=[],a=[],i.label=1;case 1:return i.trys.push([1,4,,5]),[4,(0,o.Ly)(n,0,t||"")];case 2:return u=i.sent(),r=(null===u||void 0===u?void 0:u.data)||[],[4,(0,o.Q$)(n,0)];case 3:return s=i.sent(),a=(null===s||void 0===s?void 0:s.data)||[],[2,{quizSeries:r,total:(null===u||void 0===u?void 0:u.total)||0,categories:a,examId:t||null}];case 4:return l=i.sent(),console.error(l),[3,5];case 5:return[2,{quizSeries:r,total:0,categories:a,examId:t||null}]}}))}));return function(t){return e.apply(this,arguments)}}()}},function(e){e.O(0,[5486,3609,1360,9774,2888,179],(function(){return t=97147,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.