1"use strict";(self.webpackChunk_minimal_minimal_kit_react=self.webpackChunk_minimal_minimal_kit_react||[]).push([[1220],{81220:(e,i,a)=>{a.r(i),a.d(i,{default:()=>f});var l=a(35207),t=a(78433),n=a(98252),s=a(52823),d=a(49699),r=a(71954),o=a(51846),m=a(82483),p=a(67369),u=a(63131),c=a(56723);const v=(0,l.Ay)(r.A)((e=>{let{theme:i}=e;return{paddingTop:i.spacing(8),[i.breakpoints.up("md")]:{paddingTop:i.spacing(11)}}}));function f(){var e;const{streams:i}=(0,o.A)(),a=(0,u.g)(),{name:l}=a,r=(0,u.Zp)(),[f,h]=(0,m.useState)([]),[x,g]=(0,m.useState)("");let k=function(){const{search:e}=(0,u.zy)();return m.useMemo((()=>new URLSearchParams(e)),[e])}();(0,m.useEffect)((()=>{if(null!==i&&void 0!==i&&i.length){let a=k.get("provider");var e;if(a)a=null===(e=i.find((e=>(null===e||void 0===e?void 0:e.value)===a)))||void 0===e?void 0:e.key;a||(a=l),g(a)}}),[i]),(0,m.useEffect)((()=>{A(x)}),[x]);const A=async e=>{let i={filter:{stream:e},sort:{paperName:1},page:0,limit:1e3},a=await p.A.postExamPaperModal(i);const{data:l}=a;h(l)};return(0,c.jsx)(v,{title:"Exam | CertyIQ",children:(0,c.jsxs)(t.A,{maxWidth:"lg",children:[(0,c.jsx)(n.Ay,{item:!0,xs:12,md:6,sx:{display:"flex",alignItems:"center"},children:(0,c.jsxs)(s.A,{variant:"h3",sx:{mb:3},children:["List of all ",l," exams"]})}),(0,c.jsx)("ul",{children:null===f||void 0===f||null===(e=f.filter((e=>null===e||void 0===e?void 0:e.fetchedQuestions)))||void 0===e?void 0:e.map((e=>(0,c.jsx)("li",{children:(0,c.jsx)(d.A,{onClick:()=>(e=>{var i;let a=x,l=null===f||void 0===f||null===(i=f.find((i=>(null===i||void 0===i?void 0:i.paperName)===e)))||void 0===i?void 0:i.paperid,t=k.get("exam");l&&(!t||t&&l)&&r(`/papers?provider=${a}${l?`&exam=${l}`:""}`)})(null===e||void 0===e?void 0:e.paperName),children:null===e||void 0===e?void 0:e.paperName})})))})]})})}}}]); 2//# sourceMappingURL=1220.25398866.chunk.js.map
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.