1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4712],{85659:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/find-a-lawyer",function(){return t(64609)}])},84347:function(e,a){"use strict";a.Z=["ADR/Mediation","Appellate Practice","Aviation","Business","CAC Registration/Post Incorporation","Civil Litigation","Civil/Human Right","Constitutional","Contract","Corporate/Commercial","Criminal","Criminal/Police Detention","Customary","Debt Recovery","Employment/Labour","Energy","Entertainment/Media","Environmental","Family/Divorce ","Finance/Securities","Immigration","Information Technology","Intellectual Property","International","Landlord and Tenant","Maritime/Shipping","Medical","Military","Notary Public","Oil & Gas","Real Estate/Property","Wills and Probate","Shariah","Tax"]},88362:function(e,a,t){"use strict";var r=t(85893),n=(t(67294),t(80471));a.Z=function(){return(0,r.jsx)("div",{className:"py-8 px-4 border border-slate-300 rounded-lg bg-white",children:(0,r.jsx)(n.frZ,{size:"1.5em",className:"animate animate-spin mx-auto"})})}},64609:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return g}});var r=t(34051),n=t.n(r),s=t(85893),i=t(67294),l=t(65357),c=t(63750),o=t(40611),d=t(25675),u=t(41664);var m=function(e){var a=e.lawyers;return(0,s.jsx)("div",{children:a&&(0,s.jsx)("div",{className:"grid md:grid-cols-5 grid-cols-2 gap-4 justify-center",children:a.map((function(e){return(0,s.jsxs)("div",{className:"rounded-lg border border-slate-200 overflow-hidden bg-white",children:[(0,s.jsx)("div",{className:" relative",children:(0,s.jsx)(u.default,{href:"/".concat(e.username),children:(0,s.jsx)("a",{className:"relative md:h-64 h-36 block",children:(0,s.jsx)(d.default,{src:e.avatar||"/images/avatar.png",layout:"fill",className:"object-cover",priority:!0,alt:e.username})})})}),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("h2",{children:(0,s.jsx)(u.default,{href:"/".concat(e.username),children:(0,s.jsxs)("a",{className:"text-slate-800 font-bold",children:[e.first_name," ",e.last_name]})})}),(0,s.jsxs)("p",{className:"text-slate-500 text-base mb-1",children:[e.city?"".concat(e.city,", "):""," ",e.state]}),e.practice_area&&(0,s.jsx)("span",{className:"text-slate-700 text-xs block",children:e.practice_area.length>1?(0,s.jsxs)("span",{children:[e.practice_area[0]," +"," ",e.practice_area.length-1," more"]}):(0,s.jsx)("span",{children:e.practice_area[0]})})]})]},e.id)}))})})},x=t(11163),h=t(88362),p=t(4319),f=t(84347);function b(e,a,t,r,n,s,i){try{var l=e[s](i),c=l.value}catch(o){return void t(o)}l.done?a(c):Promise.resolve(c).then(r,n)}function y(e){return function(){var a=this,t=arguments;return new Promise((function(r,n){var s=e.apply(a,t);function i(e){b(s,r,n,i,l,"next",e)}function l(e){b(s,r,n,i,l,"throw",e)}i(void 0)}))}}function j(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function v(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(a){j(e,a,t[a])}))}return e}function g(){var e=(0,i.useState)(null),a=e[0],t=e[1],r=(0,i.useState)(!1),u=r[0],b=r[1],j=(0,i.useRef)(null),g=(0,x.useRouter)();(0,i.useEffect)((function(){g.query.s;function e(){return(e=y(n().mark((function e(){var a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.prev=1,e.next=4,o.Z.get("/api/users/lawyers",{params:v({},g.query)});case 4:a=e.sent.data,t(a),b(!1),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0),b(!1);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}(g.query.s||g.query.state||g.query.practice)&&function(){e.apply(this,arguments)}()}),[g.asPath,g.query]);return(0,s.jsx)(l.Z,{title:"Find verified lawyers",meta:!0,children:g.isReady&&(0,s.jsxs)("form",{method:"get",ref:j,children:[(0,s.jsx)("div",{className:"bg-green-200 md:h-72 h-64"}),(0,s.jsxs)("div",{className:"max-w-4xl md:mx-auto mx-8 -mt-36 relative z-10",children:[(0,s.jsx)("h1",{className:"text-center font-black text-slate-800 text-center md:text-5xl text-3xl mb-2",children:"Find a lawyer"}),(0,s.jsx)("p",{className:"text-lg text-slate-700 mb-4 text-center",children:"Reach out to the best lawyers in Nigeria. Start your search here."}),(0,s.jsx)("div",{className:" rounded-xl bg-white drop-shadow-md md:p-4 p-4 border border-slate-200",children:(0,s.jsxs)("div",{className:"md:flex items-center md:space-x-3 space-x-0 md:space-y-0 space-y-3",children:[(0,s.jsx)("input",{type:"search",name:"s",className:"grow p-2 rounded-md text-lg outline-none md:border-none border border-slate-300 md:w-auto w-full",placeholder:"Find lawyers by name, city, state or practice area..",defaultValue:g.query.s||""}),(0,s.jsx)("div",{className:"select",children:(0,s.jsxs)("select",{name:"practice",id:"practice",className:"outline-none md:border-none md:w-36 w-full border border-slate-300 p-2 rounded-md",defaultValue:g.query.practice||"",children:[(0,s.jsx)("option",{value:"",children:"Practice area"}),f.Z&&f.Z.length>0&&(0,s.jsx)(s.Fragment,{children:f.Z.map((function(e){return(0,s.jsx)("option",{value:e,children:e},e)}))})]})}),(0,s.jsx)("div",{children:(0,s.jsxs)("select",{name:"state",id:"state",className:"outline-none md:border-none md:w-36 w-full border border-slate-300 p-2 rounded-md",defaultValue:g.query.state||"",children:[(0,s.jsx)("option",{value:"",children:"State"}),p&&p.length>0&&(0,s.jsx)(s.Fragment,{children:p.map((function(e){return(0,s.jsx)("option",{value:e,children:e},e)}))})]})}),(0,s.jsxs)("button",{type:"submit",className:"p-2 flex items-center space-x-2",children:[(0,s.jsx)(c.dVI,{size:"1.5em"})," ",(0,s.jsx)("span",{children:"Find"})]})]})}),(0,s.jsx)("div",{className:"flex items-center mt-8 justify-center space-x-4"})]}),a&&a.length>0?(0,s.jsx)("div",{className:"max-w-7xl md:mx-auto mx-4 py-16 px-4",children:(0,s.jsx)(m,{lawyers:a})}):(0,s.jsx)("div",{className:"max-w-7xl mx-auto py-12",children:u?(0,s.jsx)(h.Z,{}):(0,s.jsx)(s.Fragment,{children:g.isReady&&g.query.s?(0,s.jsxs)("div",{className:"py-8 mx-4 rounded-md bg-white border border-slate-300 text-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(d.default,{src:"/images/justice-scale.png",alt:"NaijaBarrister",width:48,height:48,className:"object-fit mx-auto"})}),(0,s.jsx)("div",{className:"font-bold text-red-500",children:"No lawyers found, please try a different search"})]}):null})})]})})}},4319:function(e){"use strict";e.exports=JSON.parse('["Abia","Adamawa","Akwa Ibom","Anambra","Bauchi","Bayelsa","Benue","Borno","Cross River","Delta","Ebonyi","Edo","Ekiti","Enugu","FCT - Abuja","Gombe","Imo","Jigawa","Kaduna","Kano","Katsina","Kebbi","Kogi","Kwara","Lagos","Nasarawa","Niger","Ogun","Ondo","Osun","Oyo","Plateau","Rivers","Sokoto","Taraba","Yobe","Zamfara"]')}},function(e){e.O(0,[5445,2013,9866,955,3276,2175,5357,9774,2888,179],(function(){return a=85659,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.