1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{129:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/[slug]",function(){return t(24937)}])},32551:function(e,s,t){"use strict";t.d(s,{Z:function(){return b}});var n=t(34051),r=t.n(n),a=t(85893),l=(t(67294),t(88767)),i=t(40611),c=t(88362),o=t(86492),d=t.n(o),u=t(41664),x=t(11510),h=t(89583);var m=function(e){var s=e.job;return(0,a.jsxs)("div",{className:"p-6 bg-white rounded-lg",children:[(0,a.jsx)("h2",{className:"md:text-xl text-xl",children:(0,a.jsx)(u.default,{href:"/jobs/".concat(s.slug),children:(0,a.jsx)("a",{className:"text-blue-500 hover:text-blue-400",children:d().decode(s.title)})})}),(0,a.jsxs)("ul",{className:"flex items-center text-slate-400 space-x-4 mb-1",children:[(0,a.jsxs)("li",{children:["Posted ",(0,x.Z)(new Date(s.createdAt),"eee eo MMM, yyyy")]}),(0,a.jsxs)("li",{children:["Source:"," ",s.link?(0,a.jsx)("a",{href:s.link,className:"text-blue-500 hover:text-blue-400 underline",rel:"noreferrer",children:s.source}):s.source]})]}),(0,a.jsx)("p",{children:s.description?d().decode(s.description.substr(0,120)):"No description"}),(0,a.jsx)("p",{children:(0,a.jsx)(u.default,{href:"/jobs/".concat(s.slug),children:(0,a.jsxs)("a",{className:"text-blue-500 hover:text-blue-400 inline-flex items-center space-x-2",children:[(0,a.jsx)("span",{children:"Learn more"})," ",(0,a.jsx)(h.e7O,{className:"relative top-0.5"})]})})})]})},j=t(11163),f=t(80471);function p(e,s,t,n,r,a,l){try{var i=e[a](l),c=i.value}catch(o){return void t(o)}i.done?s(c):Promise.resolve(c).then(n,r)}var b=function(){var e=(0,j.useRouter)(),s=(0,l.useInfiniteQuery)("jobs",function(){var s,t=(s=r().mark((function s(t){var n;return r().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.pageParam,s.next=3,i.Z.get("/api/cms/jobs",{params:{page:n,limit:20,query:e.query.query}}).then((function(e){return e.data})).catch((function(e){console.log(e)}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}}),s)})),function(){var e=this,t=arguments;return new Promise((function(n,r){var a=s.apply(e,t);function l(e){p(a,n,r,l,i,"next",e)}function i(e){p(a,n,r,l,i,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}(),{enabled:e.isReady,getNextPageParam:function(e){var s;return(null===e||void 0===e||null===(s=e.next)||void 0===s?void 0:s.page)||void 0}}),t=s.data,n=s.isLoading,o=s.fetchNextPage,d=s.isFetchingNextPage,u=s.hasNextPage;return n?(0,a.jsx)(c.Z,{}):(0,a.jsx)("div",{children:t&&t.pages.length>0?(0,a.jsxs)("div",{children:[t.pages.map((function(e,s){return(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)("div",{className:"space-y-6",children:null===e||void 0===e?void 0:e.jobs.map((function(e){return(0,a.jsx)(m,{job:e},e.id)}))})},s)})),(0,a.jsx)("div",{className:"mt-6",children:u?(0,a.jsx)("button",{className:"button",disabled:d,onClick:o,children:d?(0,a.jsx)(f.frZ,{className:"animate-spin",size:"1.5em"}):"Load more"}):(0,a.jsx)("p",{className:"italic text-slate-400 p-4",children:"No more jobs"})})]}):(0,a.jsx)("div",{className:"p-6 bg-white rounded-lg border border-slate-300",children:"There are no jobs available at the moment, please check back later."})})}},88362:function(e,s,t){"use strict";var n=t(85893),r=(t(67294),t(80471));s.Z=function(){return(0,n.jsx)("div",{className:"py-8 px-4 border border-slate-300 rounded-lg bg-white",children:(0,n.jsx)(r.frZ,{size:"1.5em",className:"animate animate-spin mx-auto"})})}},24937:function(e,s,t){"use strict";t.r(s);var n=t(34051),r=t.n(n),a=t(85893),l=t(11163),i=(t(67294),t(88767)),c=t(65357),o=t(88362),d=t(40611),u=t(11510),x=t(86492),h=t.n(x),m=t(41664),j=t(32551);function f(e,s,t,n,r,a,l){try{var i=e[a](l),c=i.value}catch(o){return void t(o)}i.done?s(c):Promise.resolve(c).then(n,r)}s.default=function(){var e,s=(0,l.useRouter)(),t=(0,i.useQuery)("job.".concat(s.query.slug),(e=r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.Z.get("/api/cms/jobs/".concat(s.query.slug)).then((function(e){return e.data})).catch((function(e){throw console.log(e),new Error(e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),function(){var s=this,t=arguments;return new Promise((function(n,r){var a=e.apply(s,t);function l(e){f(a,n,r,l,i,"next",e)}function i(e){f(a,n,r,l,i,"throw",e)}l(void 0)}))}),{enabled:s.isReady}),n=t.data;return t.isLoading?(0,a.jsx)(o.Z,{}):(0,a.jsx)(c.Z,{title:"Legal Jobs",children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{className:"py-24 bg-slate-800 px-4 mt-16",children:(0,a.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,a.jsxs)("p",{className:"text-slate-400",children:["Jobs on"," ",(0,a.jsx)(m.default,{href:"/jobs",children:(0,a.jsx)("a",{className:"text-blue-500 underline",children:"NaijaBarrister"})})]}),(0,a.jsx)("h1",{className:"text-white font-bold md:text-5xl text-2xl mb-3",children:h().decode(n.title)}),(0,a.jsxs)("ul",{className:"flex items-center text-slate-300 space-x-4 mb-1",children:[(0,a.jsxs)("li",{children:["Posted ",(0,u.Z)(new Date(n.createdAt),"eee eo MMM, yyyy")]}),(0,a.jsxs)("li",{children:["Source:"," ",n.link?(0,a.jsx)("a",{href:n.link,className:"text-blue-500 hover:text-blue-400 underline",rel:"noreferrer",children:n.source}):n.source]})]})]})}),(0,a.jsx)("section",{className:"py-12 px-4 bg-slate-100",children:(0,a.jsxs)("div",{className:"max-w-6xl mx-auto md:grid grid-cols-12 gap-8",children:[(0,a.jsxs)("div",{className:"col-span-8",children:[(0,a.jsx)("h4",{className:"font-bold text-2xl",children:"Job Description"}),(0,a.jsx)("p",{className:"text-lg",dangerouslySetInnerHTML:{__html:n.description?h().decode(n.description):"No description"}}),n.link?(0,a.jsx)("div",{className:"mt-12",children:(0,a.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",className:"button primary",children:"Apply here"})}):null,(0,a.jsx)("hr",{className:"mb-6 mt-36"}),(0,a.jsx)("h4",{className:"font-bold mb-6",children:"Discover Other Jobs"}),(0,a.jsx)(j.Z,{})]}),(0,a.jsx)("div",{className:"col-span-4"})]})})]}):(0,a.jsxs)("div",{className:"py-36 px-6 text-center mt-20",children:[(0,a.jsx)("h1",{className:"md:text-5xl text-4xl text-red-500",children:"Job Not Found"}),(0,a.jsx)("p",{children:"We couldn't find the job you were looking for, please try a different job"}),(0,a.jsx)("p",{className:"mt-6",children:(0,a.jsx)(m.default,{href:"/jobs",children:(0,a.jsx)("a",{className:"text-blue-500 font-bold underline hover:text-blue-400",children:"View All Jobs"})})})]})})}}},function(e){e.O(0,[5445,2013,9866,955,3276,2175,1510,6492,5357,9774,2888,179],(function(){return s=129,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.