1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{64006:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/full-test-pt",function(){return t(86412)}])},86412:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return f}});var l=t(85893),s=t(9473),d=t(67294),i=t(11163),c=t(33244),n=t(1891),r=t(32166),u=t(84908),o=t(52381),m=t(4710);let h=e=>{let{}=e;(0,c.T)();let a=(0,i.useRouter)(),t=(0,s.v9)(e=>e.baseStore.store),h=(0,s.v9)(e=>e.user.LoggedInUser),[f,_]=(0,d.useState)(!1),[b,x]=(0,d.useState)([]),[v,j]=(0,d.useState)([]),[N,g]=(0,d.useState)([]),[w,p]=(0,d.useState)(""),[S,E]=(0,d.useState)(""),[y,L]=(0,d.useState)(""),[A,C]=(0,d.useState)(""),[O,D]=(0,d.useState)([]),[T,W]=(0,d.useState)([]),[I,Z]=(0,d.useState)(!0),[k,F]=(0,d.useState)(!1),[R,P]=(0,d.useState)(!1),[X,B]=(0,d.useState)(!0),G=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=new IntersectionObserver(e=>{e[0].isIntersecting&&I&&H(!0)},{threshold:1});return G.current&&e.observe(G.current),()=>{G.current&&e.unobserve(G.current)}},[G,k,I]),(0,d.useEffect)(()=>{},[t]),(0,d.useEffect)(()=>{a.isReady&&K("full-test")},[a.isReady]),(0,d.useEffect)(()=>{W([]),H(!1)},[X]);let H=e=>{!e&&(A&&!r.WZ.filtersData["full-test-"+A.id]?M(A.id):r.WZ.filtersData["full-test-"+A.id]&&x(r.WZ.filtersData["full-test-"+A.id]),w&&U(w.id)),P(!0);var a={},t="0";if(h&&h.user_id)t=h.user_id;else{var l=localStorage.getItem("user"),s=(0,r.D6)(l,{});s&&s.user_id&&(t=s.user_id)}a.user_id=t,e?a.start=T.length:a.start=0,a.end=25,y&&(a.main_cat_id=+y.cat_id),A&&(a.cat_id=+A.id),w&&(a.sub_cat_id=+w.id),S&&(a.topic=+S.id),(0,n.OlM)(a).then(async a=>{let t=await a.json();var l=t.data;l&&l.length?(e?W([...T,...l]):W(t.data),F(!k),P(!1)):(Z(!1),P(!1))})},K=e=>{(0,n.frf)(e).then(async e=>{let a=await e.json();a&&a.data&&a.data.length&&j(a.data)})},M=e=>{var a={};y&&(a.main_cat_id=+y.cat_id),e&&(a.cat_id=+e),a.type="full-test",(0,n.W1f)(a).then(async e=>{let a=await e.json();a&&a.data&&a.data.length&&(r.WZ.filtersData["full-test-"+A.id]=a.data,x(a.data))})},U=e=>{var a={};y&&(a.main_cat_id=+y.cat_id),A&&(a.cat_id=+A.id),e&&(a.sub_cat_id=+e),(0,n.l5K)(a).then(async e=>{let a=await e.json();a&&a.data&&a.data.length&&D(a.data)})};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)("h1",{className:"f-20 mt-3 mb-2 text-center",children:"Full Test"}),(0,l.jsxs)("div",{className:"row",children:[v&&v.length>0&&(0,l.jsxs)("div",{className:"col-6 col-md-3 mt-2",children:[(0,l.jsx)("label",{className:"custom-dd-label",children:"Exam Conducting Body"}),(0,l.jsx)(u.L,{disabled:R,onChange:e=>{_(!0),L(e.value),v.forEach(a=>{a.cat_id==e.value.cat_id&&g(a.categories)}),D([]),C(""),B(!X)},value:y,options:v,optionLabel:"cat_name",placeholder:"All",className:"w-full md:w-14rem custom-dd","aria-label":"All"})]}),y&&N&&N.length>0&&(0,l.jsxs)("div",{className:"col-6 col-md-3 mt-2",children:[(0,l.jsx)("label",{className:"custom-dd-label",children:"Exam Name"}),(0,l.jsx)(u.L,{disabled:R,onChange:e=>{_(!0),C(e.value),D([]),E(""),p(""),B(!X)},value:A,options:N,optionLabel:"category_label",placeholder:"All",className:"w-full md:w-14rem custom-dd","aria-label":"All"})]}),A&&b&&b.length>0&&(0,l.jsxs)("div",{className:"col-6 col-md-3 mt-2",children:[(0,l.jsx)("label",{className:"custom-dd-label",children:"Exam Level"}),(0,l.jsx)(u.L,{disabled:R,onChange:e=>{_(!0),p(e.value),D([]),E(""),B(!X)},value:w,options:b,optionLabel:"sub_category_name",placeholder:"All",className:"w-full md:w-14rem custom-dd","aria-label":"All"})]}),w&&O&&O.length>0&&(0,l.jsxs)("div",{className:"col-6 col-md-3 mt-2",children:[(0,l.jsx)("label",{className:"custom-dd-label",children:"Topic"}),(0,l.jsx)(u.L,{disabled:R,onChange:e=>{_(!0),E(e.value),B(!X)},value:S,options:O,optionLabel:"topic_name",placeholder:"All",className:"w-full md:w-14rem custom-dd","aria-label":"All"})]})]}),T&&T.length>0&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:T.map((e,a)=>(0,l.jsx)("div",{className:"tw-"+a,children:(0,l.jsx)(o.Z,{testDetailData:e,isLoggedInCard:!0})},"ft-"+a))})}
1),R&&I&&(0,l.jsx)("div",{className:"border-round border-1 surface-border p-4 surface-card m-2 w-100p",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-10",children:[(0,l.jsx)(m.O,{width:"100%",className:"mb-2"}),(0,l.jsx)(m.O,{width:"80%",className:"mb-2"}),(0,l.jsx)(m.O,{width:"60%",className:"mb-2"}),(0,l.jsx)(m.O,{width:"40%"})]})})}),I&&(0,l.jsx)("div",{ref:G,style:{height:"100px",width:"100%",minHeight:"300px"}}),!R&&!I&&0==T.length&&(0,l.jsx)("div",{className:"text-center f-b c-b f-24 mb-4 mt-4",children:"No Topic Wise Tests Found"})]})})};var f=!0;a.default=h}},function(e){e.O(0,[2640,9774,2888,179],function(){return e(e.s=64006)}),_N_E=e.O()}]);
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.