(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5380],{14259:function(e){e.exports=function(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(s);++n";}',".breadcrumb-item.active{color:var(--bs-secondary-color);}"];l.__hash="1347825690";var o=i(49263),c=i(85893),d=(0,n.memo)(function(e){var t=e.crumbs,i=void 0===t?[]:t,n=e.customClass,s=i.length-1,d=(0,a.useAmp)();return(0,c.jsxs)("nav",{"aria-label":"breadcrumb",className:n,children:[(0,c.jsx)("ol",{className:"breadcrumb text-capitalize fs-xmd fw-600 p-0 m-0",children:i.map(function(e,t){return e.name?(0,c.jsxs)("li",{"aria-current":"page",className:"breadcrumb-item ".concat(s===t?"active":"").trim(),children:[d&&0!==t&&(0,c.jsx)("span",{className:"me-2 text-primary",children:">"}),s!==t&&e.url?(0,c.jsx)(r(),{as:e.url,className:"text-decoration-none",href:e.href||e.url,children:e.name.replace(/-/g," ")}):e.name.replace(/-/g," ")]},e.name):null})}),!d&&(0,c.jsx)(o.Z,{Styles:l})]})})},27147:function(e,t,i){"use strict";i.d(t,{Z:function(){return d}});var n=i(53967),s=i.n(n),r=i(14762),a=i(1852),l=[".text-ellipsis-1{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:1){.text-ellipsis-1{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;}}",".text-ellipsis-2{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:2){.text-ellipsis-2{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}}",".text-ellipsis-3{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:3){.text-ellipsis-3{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;}}",".text-ellipsis-4{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:4){.text-ellipsis-4{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;}}",".text-ellipsis-5{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:5){.text-ellipsis-5{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;}}",".gradient{background-image:linear-gradient(to bottom,#fff 0%,#f0f7ff 100%);}","p{margin:0px !important;}","@media(min-width:992px){.article-content.fs-md{font-size:1rem !important;}.title{font-size:24px !important;}}"];l.__hash="3013997310";var o=i(67294),c=i(85893),d=function(e){var t=e.title,i=e.article,n=void 0===i?"":i,d=e.breadcrumbs,p=(e.cdPage,e.children),u=e.searchbar,x=(0,a.useMediaQuery)({maxWidth:991}),h=(0,o.useState)(!1),b=h[0],f=h[1];return(0,c.jsxs)("div",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" bg-primary-100 gradient mobile-container page-container py-4",children:[(0,c.jsx)(r.Z,{crumbs:void 0===d?[]:d}),null!=p?p:(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" "+"".concat(x?"w-100":"w-75 m-auto"," d-flex flex-column align-items-center"),children:[(0,c.jsx)("h1",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" h3 fw-bold",children:t}),n&&(0,c.jsxs)("div",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" text-center mb-2",children:[(0,c.jsx)("div",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" "+"".concat(b?"":"text-ellipsis-2"),children:n}),!b&&(0,c.jsx)("button",{onClick:function(){return f(!0)},type:"button",className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" btn text-primary ms-1 d-inline-block",children:"Read More..."})]}),(0,c.jsx)("div",{className:"jsx-1389933732 "+"jsx-".concat(l.__hash)+" w-100",children:u})]})}),(0,c.jsx)(s(),{id:"1389933732",children:[".mobile-header.jsx-1389933732{font-size:24px;line-height:32px;}"]}),(0,c.jsx)(s(),{id:l.__hash,children:l})]})}},10231:function(e,t,i){"use strict";i.d(t,{H:function(){return s},i:function(){return r}});var n=i(1852),s=function(e){var t=e.children;return(0,n.useMediaQuery)({minWidth:992})&&t},r=function(e){var t=e.children;return(0,n.useMediaQuery)({maxWidth:991})&&t}},49263:function(e,t,i){"use strict";var n=i(53967),s=i.n(n),r=i(85893);t.Z=function(e){var t=e.Styles;return(0,r.jsx)(s(),{id:t.__hash,children:t})}},80230:function(e,t,i){"use strict";var n=i(59499),s=i(41609),r=i.n(s),a=i(9008),l=i.n(a),o=i(2962),c=i(85893);function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function p(e){for(var t=1;t8&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:1===t,onClick:function(){return r(1)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(1===t?"selected":"").trim()||""),children:"1"})}),t<4||t>i-3?(0,c.jsxs)(c.Fragment,{children:[[2,3,4].map(function(e){return(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===e,onClick:function(){return r(e)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===e?"selected":"").trim()||""),children:e})},e)}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."}),[1,2,3].map(function(e){var n=i-4+e;return(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===n,onClick:function(){return r(n)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===n?"selected":"").trim()||""),children:n})},n)})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."}),[-2,-1,0,1,2].map(function(e){var i=t+e;return(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(i)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i?"selected":"").trim()||""),children:i})},i)}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."})]}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(i)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i?"selected":"").trim()||""),children:i})})]}),i<9&&(0,c.jsx)(c.Fragment,{children:(0,s.Z)(Array(i).keys()).map(function(e){var i=e+1;return(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(i)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i?"selected":"").trim()||""),children:i})},i)})}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(t+1)},type:"button",className:"jsx-".concat(o.__hash)+" btn arrow btn-secondary rounded-circle",children:(0,c.jsx)("div",{style:{marginTop:"-0.28rem",marginLeft:"-0.1rem"},className:"jsx-".concat(o.__hash),children:(0,c.jsx)(u,{})})})})]})}),(0,c.jsx)(l.i,{children:(0,c.jsxs)("div",{className:"jsx-".concat(o.__hash)+" row g-1 align-items-center justify-content-center",children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:1===t,onClick:function(){return r(t-1)},type:"button",className:"jsx-".concat(o.__hash)+" btn arrow btn-secondary rounded-circle",children:(0,c.jsx)("div",{style:{transform:"rotate(180deg)",marginBottom:"-0.35rem",marginLeft:"-0.1rem"},className:"jsx-".concat(o.__hash),children:(0,c.jsx)(u,{})})})}),i>3?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:1===t,onClick:function(){return r(1)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(1===t?"selected":"").trim()||""),children:"1"})}),1===t||t>i-2?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i-1,onClick:function(){return r(i-1)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i-1?"selected":"").trim()||""),children:i-1})})]}):t===i||t<3?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:2===t,onClick:function(){return r(2)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(2===t?"selected":"").trim()||""),children:"2"})}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:!0,type:"button",className:"jsx-".concat(o.__hash)+" btn page rounded-circle selected",children:t})}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:"..."})]}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(i)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i?"selected":"").trim()||""),children:i})})]}):(0,c.jsx)(c.Fragment,{children:(0,s.Z)(Array(i).keys()).map(function(e){var i=e+1;return(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(i)},type:"button",className:"jsx-".concat(o.__hash)+" "+("btn page rounded-circle ".concat(t===i?"selected":"").trim()||""),children:i})},i)})}),(0,c.jsx)("div",{className:"jsx-".concat(o.__hash)+" col-auto",children:(0,c.jsx)("button",{disabled:t===i,onClick:function(){return r(t+1)},type:"button",className:"jsx-".concat(o.__hash)+" btn arrow btn-secondary rounded-circle",children:(0,c.jsx)("div",{style:{marginTop:"-0.28rem",marginLeft:"-0.1rem"},className:"jsx-".concat(o.__hash),children:(0,c.jsx)(u,{})})})})]})}),(0,c.jsx)(a(),{id:o.__hash,children:o})]})}},59357:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useAmp",{enumerable:!0,get:function(){return a}});var n=i(38754)._(i(67294)),s=i(31240),r=i(68911);function a(){return(0,r.isInAmpMode)(n.default.useContext(s.AmpStateContext))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92171:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return I}});var n,s=i(50029),r=i(59499),a=i(64687),l=i.n(a),o=i(25633),c=i(98601),d=i.n(c),p=i(80230),u=i(11163),x=i.n(u),h=i(51698),b=i(41609),f=i.n(b),w=i(27147),m=i(17674),j=i(53967),v=i.n(j),g=i(70017),y=[".text-ellipsis-1.jsx-45231560{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:1){.text-ellipsis-1.jsx-45231560{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;}}",".text-ellipsis-2.jsx-45231560{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:2){.text-ellipsis-2.jsx-45231560{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}}",".text-ellipsis-3.jsx-45231560{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:3){.text-ellipsis-3.jsx-45231560{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;}}",".text-ellipsis-4.jsx-45231560{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:4){.text-ellipsis-4.jsx-45231560{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;}}",".text-ellipsis-5.jsx-45231560{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}","@supports(-webkit-line-clamp:5){.text-ellipsis-5.jsx-45231560{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;}}",".selected.jsx-45231560{background-color:#fff !important;border-color:#2e81f7 !important;color:#2e81f7 !important;}"];y.__hash="45231560";var _=i(85893);function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function N(e){for(var t=1;t991?140:65).trim(),"..."]})]})]})]})})},S=i(85266),Z=function(e){var t=e.cdPage,i=e.title,n=e.newsData,s=e.selectedFilters,r=e.handleFilters,a=e.paginate,l=n.listingArticle,o=n.filters,c=n.news,d=n.currentPage,p=n.totalPage;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w.Z,{cdPage:t,title:i,article:null==l?void 0:l.description,breadcrumbs:[{name:"Home",url:"/"},{name:"News"}]}),(0,_.jsxs)("div",{className:"mobile-container page-container py-6",children:[!f()(o.examCategory)&&(0,_.jsx)(O,{handleFilters:r,name:"Categories",options:o.examCategory,selectedFilters:s,type:"category"}),!f()(o.exams)&&""!==s.category&&(0,_.jsx)(O,{handleFilters:r,name:"Exams",options:o.exams[s.category],selectedFilters:s,type:"exams"}),!f()(o.newsCategory)&&(0,_.jsx)(O,{handleFilters:r,name:"Sub Categories",options:o.newsCategory,selectedFilters:s,type:"silos"}),(0,_.jsxs)("div",{className:"container-fluid pt-4 mt-4 border-top",children:[(0,_.jsxs)("div",{className:"row g-4 mb-4",children:[0===c.length&&(0,_.jsx)("div",{className:"col",children:"No Result Found, Try Another Filter."}),c.map(function(e){return(0,_.jsx)("div",{className:"align-self-stretch col-12 col-lg-6",children:(0,_.jsx)(C,{data:e})},e.id)})]}),p>1&&c.length>0&&(0,_.jsx)(S.Z,{paginate:function(e){return a(e,s)},currentPage:d,totalPages:p})]})]})]})},A=i(29989);function E(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function M(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},i=(0,h.H8)();Object.keys(t).forEach(function(e){t[e]||d()(t,e)});var n=new URLSearchParams(t).toString(),s="/government-jobs-".concat(i,"-news").concat(""!==n?"?".concat(n):"");A.Z.handleSingleEvents({eventType:"link_click",title:e,value:s}),x().push({pathname:"/government-jobs-[year]-news",query:M(M({},t),{},{year:i})},s)},H=function(e,t){var i=M({},t);i.page=e&&1!==e?e:"",L(void 0,i)},T=function(e,t,i,n){var s=M({},i);switch(e){case"category":s.category=s.category!==t&&"All"!==t?t:"",delete s.exams,delete s.silos;break;case"exams":s.exams=s.exams!==t?t:"",delete s.silos;break;case"silos":s.silos=s.silos!==t?t:""}s.page="",L(n,s)},J=function(e){var t=e.cdPage,i=e.title,n=e.newsData,s=e.selectedFilters,r=n.schemaJsonLd,a=n.metaData,l=void 0===a?{title:i}:a;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Z,{cdPage:t,title:i,newsData:n,selectedFilters:s,handleFilters:T,paginate:H}),(0,_.jsx)(p.Z,{pageDataSchema:M(M({},n),{},{metaData:l}),schemaJsonLd:r})]})};J.getInitialProps=(n=(0,s.Z)(l().mark(function e(t){var i,n,s,r,a,c,d,p,u,x,b,f,w,m,j,v,g;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(i=t.query).year,r=void 0===(s=i.category)?"":s,a=i.exams,c=i.silos,d=i.page,p=t.store.getState().global.asPath,u=(0,h.H8)(),!((x=parseInt(n,10))&&(x>u||x<2019))){e.next=6;break}return e.abrupt("return",{statusCode:404});case 6:if(!(x!==u)){e.next=9;break}return b=p.includes("?")?p.split("?")[1]:"",e.abrupt("return",{redirect:{status:301,target:"government-jobs-".concat(u,"-news").concat(b?"?".concat(b):"")}});case 9:return w="",Object.keys(f={category:r,exams:a,silos:c,page:d}).forEach(function(e){f[e]&&(w+="".concat(e,"=").concat(f[e],"&"))}),m="Government Job Alerts & News ".concat(u),j="news",""!==r&&(m="".concat(r.replace(/-/g," ")," Job Alerts & News ").concat(u)),e.prev=15,e.next=18,(0,o.jl)("?".concat(w));case 18:v=e.sent,e.next=25;break;case 21:return e.prev=21,e.t0=e.catch(15),console.error(e.t0),e.abrupt("return",{statusCode:404});case 25:return g=v.data,e.abrupt("return",{newsData:g,selectedFilters:f,title:m,cdPage:j});case 27:case"end":return e.stop()}},e,null,[[15,21]])})),function(e){return n.apply(this,arguments)});var I=J},51698:function(e,t,i){"use strict";function n(e){return["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"][new Date(e).getMonth()]}function s(e){return new Date(e.split(" ")[0]).toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})}function r(){return new Date().getFullYear()}i.d(t,{H8:function(){return r},XY:function(){return n},rN:function(){return s}})},67810:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/government-jobs-[year]-news",function(){return i(92171)}])},14666:function(e,t,i){"use strict";function n(e){if(Array.isArray(e))return e}i.d(t,{Z:function(){return n}})},14882:function(e,t,i){"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}i.d(t,{Z:function(){return n}})},17674:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(14666),s=i(2937),r=i(14882);function a(e,t){return(0,n.Z)(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,s,r,a,l=[],o=!0,c=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;o=!1}else for(;!(o=(n=r.call(i)).done)&&(l.push(n.value),l.length!==t);o=!0);}catch(e){c=!0,s=e}finally{try{if(!o&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw s}}return l}}(e,t)||(0,s.Z)(e,t)||(0,r.Z)()}}},function(e){e.O(0,[1852,8756,2962,2888,9774,179],function(){return e(e.s=67810)}),_N_E=e.O()}]);