"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7947],{43815:function(n,e,t){t.r(e);var r=t(67294),i=t(53418),l=t(83733),u=t(3987),o=t(93706),a=t(55082),c=t(21161),s=t(4486),d=t(99210),f=t(7592),h=t(85893);e.default=function(){var n=(0,f.NI)({feature:f.tQ.PRACTICE_EXAMS}),e=n.loading,t=n.courses,v=(0,r.useState)(""),Z=v[0],x=v[1],p=(0,r.useState)(""),j=p[0],g=p[1],m=(0,l.Z)(null==t?void 0:t.flatMap(function(n){var e;return null===(e=n.topics)||void 0===e?void 0:e.map(function(n){return null==n?void 0:n.name})}).filter(Boolean)),w=(0,r.useMemo)(function(){return Z?(0,u.Z)(t,function(n){return n.title.toLowerCase().includes(Z)}):j?(0,u.Z)(t,function(n){var e;return null===(e=n.topics)||void 0===e?void 0:e.map(function(n){var e;return null==n||null===(e=n.name)||void 0===e?void 0:e.toLocaleLowerCase()}).includes(j)}):t},[Z,j,t]);return e?(0,h.jsx)(d.Z,{}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(s.Gh,{children:[(0,h.jsx)(o.Z.Input,{"data-at":"refine-practice-exams-list",label:"Refine Exams List",labelHidden:!0,placeholder:"Refine",onChange:function(n){x(n.target.value.toLocaleLowerCase())},enterKeyHint:"next",crossOrigin:""}),(0,h.jsxs)(o.Z.Select.Basic,{onChange:function(n){g(n.target.value.toLocaleLowerCase())},"data-at":"refine-practice-exams-list-select",label:"Refine Exams List by Vendor",labelHidden:!0,children:[(0,h.jsx)("option",{value:"",children:"All"}),m.map(function(n){return(0,h.jsx)("option",{value:n,children:n},n)})]})]}),(0,h.jsxs)(a.Z,{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)(a.Z.TH,{id:"name",children:"Title"}),(0,h.jsx)(a.Z.TH,{id:"vendorsName",children:"Exam Vendor"})]})}),(0,h.jsx)("tbody",{children:w.length<1?(0,h.jsx)("tr",{children:(0,h.jsx)("td",{colSpan:2,style:{textAlign:"center"},children:(0,h.jsx)("p",{children:"No results found"})})}):w.map(function(n){var e,t,r;return(0,h.jsxs)("tr",{children:[(0,h.jsxs)("td",{children:[(0,h.jsx)(i.l7,{renderAs:"/it-training/".concat(n.categorySlug,"/").concat(null==n?void 0:n.slug),href:"/it-training/[category]/[course]",ssrLink:!0,children:n.title})," ",(0,h.jsx)(c.PS,{isNew:null==n||null===(e=n.promotionalTags)||void 0===e?void 0:e.some(function(n){return(null==n?void 0:n.label)==="New"})})]}),(0,h.jsx)("td",{children:null!==(t=null===(r=n.topics)||void 0===r?void 0:r.map(function(n){return null==n?void 0:n.name}).join(", "))&&void 0!==t?t:"N/A"})]},n.adeptId)})})]})]})}},61968:function(n,e,t){var r=t(62506);e.Z=function(n,e){return!!(null==n?0:n.length)&&(0,r.Z)(n,e,0)>-1}},55017:function(n,e){e.Z=function(n,e,t){for(var r=-1,i=null==n?0:n.length;++r=200){var Z=e?null:c(n);if(Z)return(0,a.Z)(Z);f=!1,s=u.Z,v=new r.Z}else v=e?[]:h;n:for(;++o