PageSourceSearch

https://supermocks.com/_next/static/chunks/pages/previous-year-7701ecde384bb854.js

js supermocks.com collected 2026-09-24 14:56:31 UTC 7,830 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9989],{93825:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/previous-year",function(){return o(36396)}])},6749:function(e,t,o){"use strict";var i=o(85893),n=o(89885),r=o(96486),a=o(9008),s=o.n(a),c=o(11163),l=o(67294),d=o(91036),u=o.n(d),g=function(e){return e?u()(e,{allowedTags:[],allowedAttributes:{}}).trim():""},_=function(e,t){var o=e.replace(/\/+$/,""),i=/^https?:\/\//i.test(o)?o:"https://".concat(o),n=(t||"/").split(/[?#]/)[0];return"/"===n?"".concat(i,"/"):"".concat(i).concat(n)};t.Z=function(e){var t=e.content,o=(0,l.useContext)(n.Z).appConfig,a=(0,c.useRouter)();return t?(0,i.jsxs)(s(),{children:[t.host&&(0,r.isEmpty)(o.web_canonicalurl)&&(0,i.jsx)("link",{rel:"canonical",href:_(t.host,null===a||void 0===a?void 0:a.asPath)},"canonical"),t.meta_title&&(0,i.jsx)("meta",{name:"title",content:t.meta_title},"title"),t.meta_description&&(0,i.jsx)("meta",{name:"description",content:g(t.meta_description)},"description"),t.jsonld_schema&&(0,i.jsx)("script",{type:"application/ld+json",children:t.jsonld_schema}),(t.og_image||t.course_thumbnail)&&(0,i.jsx)("meta",{property:"og:image",content:t.og_image||t.course_thumbnail},"og:image"),t.og_title&&(0,i.jsx)("meta",{property:"og:title",content:t.og_title},"og:title"),t.og_description&&(0,i.jsx)("meta",{property:"og:description",content:g(t.og_description)},"og:description"),t.og_url&&(0,i.jsx)("meta",{property:"og:url",content:t.og_url}),t.og_type&&(0,i.jsx)("meta",{property:"og:type",content:t.og_type},"og:type"),t.og_locale&&(0,i.jsx)("meta",{property:"og:locale",content:t.og_locale}),t.og_site_name&&(0,i.jsx)("meta",{property:"og:site_name",content:t.og_site_name}),t.og_video&&(0,i.jsx)("meta",{property:"og:video",content:t.og_video}),t.og_video_secure_url&&(0,i.jsx)("meta",{property:"og:video:secure_url",content:t.og_video_secure_url}),t.og_video_width&&(0,i.jsx)("meta",{property:"og:video:width",content:t.og_video_width}),t.og_video_height&&(0,i.jsx)("meta",{property:"og:video:height",content:t.og_video_height}),t.og_video_type&&(0,i.jsx)("meta",{property:"og:video:type",content:t.og_video_type}),t.og_video_tag&&(0,i.jsx)("meta",{property:"og:video:tag",content:t.og_video_tag}),t.og_video_duration&&(0,i.jsx)("meta",{property:"og:video:duration",content:t.og_video_duration}),t.og_video_series&&(0,i.jsx)("meta",{property:"og:video:series",content:t.og_video_series}),t.og_video_season&&(0,i.jsx)("meta",{property:"og:video:season",content:t.og_video_season}),t.og_video_show_type&&(0,i.jsx)("meta",{property:"og:video:show_type",content:t.og_video_show_type}),t.og_video_actor&&(0,i.jsx)("meta",{property:"og:video:actor",content:t.og_video_actor}),!(0,r.isEmpty)(o.web_googleSiteVerification)&&(0,i.jsx)("meta",{name:"google-site-verification",content:o.web_googleSiteVerification})]}):null}},36396:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return y},default:function(){return j}});var i=o(47568),n=o(26042),r=o(29815),a=o(97582),s=o(85893),c=o(23138),l=o(7386),d=o(26972),u=o(89885),g=o(67294),_=o(96076),p=o(47041),m=o(58533),v=o(93520),x=o(62461),h=o(83609),f=o(6749),y=!0;function j(e){var t,o,y=(0,g.useContext)(u.Z).appConfig,j=(0,v.hb)(y.web_enableSuperCategory),b=(0,v.hb)(y.web_enablecategoryfilter),w=(0,g.useState)((null===(t=e.testSeries)||void 0===t?void 0:t.data)||[]),N=w[0],S=w[1],Z=(0,g.useState)(0),C=Z[0],F=Z[1],k=(0,g.useState)(((null===(o=e.testSeries)||void 0===o?void 0:o.data)||[]).length>0),E=k[0],P=k[1],T=(0,g.useState)(!1),V=T[0],A=T[1],M=(0,g.useState)(e.categories||[])[0],R=(0,g.useState)(""),B=R[0],H=R[1],L=(0,g.useState)(null),O=L[0],X=L[1],q=(0,g.useState)([_.F7]),z=q[0],I=q[1],U=(0,g.useState)(_.F7),Y=U[0],$=U[1],D=(0,g.useState)([_.F7].concat((0,r.Z)(e.categories||[])))[0],G=(0,g.useState)(_.F7),J=G[0],K=G[1],Q=(0,g.useMemo)((function(){return(0,x.gg)(M)}),[M]),W=function(){var e=(0,i.Z)((function(){var e,t,o,i,n,s,c,d=arguments;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:e=d.length>0&&void 0!==d[0]&&d[0],t=d.length>1&&void 0!==d[1]?d[1]:"",F(o=e?0:C+10),A(!0),a.label=1;case 1:return a.trys.push([1,3,4,5]),i=(0,p.getCookie)(_.z1),[4,(0,l.i0)(i||"",o,t)];case 2:return n=a.sent(),s=n.data||[],S(e?s:function(e){return(0,r.Z)(e).concat((0,r.Z)(s))}),P(s.length>0),[3,5];case 3:return c=a.sent(),console.error(c),[3,5];case 4:return A(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),ee=y.web_menupreviousyearname||"Previous Year",te=j&&(null===O||void 0===O?void 0:O.name)||ee,oe=j&&O?z.map((function(e){return{id:e.exam_id,title:e.exam_name}})):!j&&b?D.map((function(e){return{id:e.exam_id,title:e.exam_name}})):[],ie=j&&O?Y.exam_id:b?J.exam_id:void 0,ne=O?[{label:"Home",href:"/"},{label:ee,onClick:function(){var t,o;X(null),I([_.F7]),$(_.F7),S((null===(t=e.testSeries)||void 0===t?void 0:t.data)||[]),F(0),P(((null===(o=e.testSeries)||void 0===o?void 0:o.data)||[]).length>0),H("")}},{label:O.name}]:[{label:"Home",href:"/"},{label:ee}],re=(0,s.jsx)(m.Z,{dataLength:(null===N||void 0===N?void 0:N.length)||0,next:function(){return W(!1,B)},hasMore:E,loader:(0,s.jsx)("div",{className:"text-center text-sm text-muted-foreground py-4",children:V?"Loading...":""}),endMessage:(null===N||void 0===N?void 0:N.length)>0?null:(0,s.jsx)(c.Z,{color:"primary",children:"No previous year papers found"}),children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:N.map((function(e,t){var o=Number(e.offer_price),i=Number(e.price),r=Number.isFinite(o)&&o>0||Number.isFinite(i)&&i>0,a="1"==e.is_paid||o<0?"/test-series/".concat(e.id,"/tests"):"/test-series/".concat(e.id,"-").concat(e.testseries_slug);return(0,s.jsx)(d.Z,(0,n.Z)({notCarousel:!0,title:e.title,description:e.description,image:e.banner||e.logo,checkAuth:!0,link:a,fallbackVariant:t},r?{price:o>0?o:i>0?i:void 0,mrp:e.mrp,currency:e.currency}:{titleBadge:"FREE",footerText:"View Now"}),e.id)}))})});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Z,{content:{meta_title:te,og_title:te}}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:gap-12 min-h-screen px-4 max-w-7xl mx-auto w-full py-6 lg:py-12",children:[(0,s.jsx)(h.Z,{breadcrumbs:ne,alwaysShowBreadcrumbs:!!O,showCategoryRow:oe.length>0,categories:oe,selectedCategoryId:ie,onCategorySelect:function(e){if(j&&O){var t=e?z.find((function(t){return t.exam_id===e.id})):_.F7;t&&function(e){if(e.exam_id!==Y.exam_id){$(e);var t=e.exam_id||"";H(t),W(!0,t)}}(t)}else if(b){var o=e?D.find((function(t){return t.exam_id===e.id})):_.F7;o&&function(e){if(e.exam_id!==J.exam_id){K(e);var t=e.exam_id||"";H(t),W(!0,t)}}(o)}}}),j?O?(0,s.jsx)("div",{className:"flex flex-col gap-6 w-full",children:re}):(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:(null===Q||void 0===Q?void 0:Q.length)>0?Q.map((function(e){return(0,s.jsxs)("div",{onClick:function(){return function(e){var t,o=(null===(t=e.children)||void 0===t?void 0:t[0])||_.F7;X(e),I([_.F7].concat((0,r.Z)(e.children))),$(o);var i=o.exam_id||"";H(i),W(!0,i)}(e)},className:"cursor-pointer flex flex-col items-center justify-start gap-4 p-6 rounded-2xl border border-border w-full bg-card hover:bg-accent transition-colors duration-200",children:[(0,s.jsx)("img",{src:e.logo||_.AU,className:"rounded-full object-cover aspect-square h-[120px]",width:120,height:120,alt:e.name}),(0,s.jsx)("span",{className:"text-base font-medium text-center",children:e.name})]},e.id)})):(0,s.jsx)(c.Z,{color:"primary",children:"No categories available"})})}):(0,s.jsx)("div",{className:"flex flex-col gap-6 w-full",children:re})]})]})}}},function(e){e.O(0,[4885,80,3609,6972,9774,2888,179],(function(){return t=93825,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.