PageSourceSearch

https://educatorsplus.live/_next/static/chunks/pages/test-series-72c9aec5f09beb58.js

js educatorsplus.live collected 2026-09-24 15:06:06 UTC 4,130 bytes, 1 lines download raw bytes

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