1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3426],{87811:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/contact",function(){return a(46472)}])},97207:function(e,s,a){"use strict";var t=a(85893),r=(a(67294),a(80471));s.Z=function(e){var s=e.children,a=e.classes,n=e.isSubmitting;return(0,t.jsx)("button",{className:"".concat(a," button"),disabled:n,type:"submit",children:n?(0,t.jsx)(r.frZ,{size:"1.2em",className:"animate animate-spin mx-auto"}):s})}},35375:function(e,s,a){"use strict";var t=a(85893);a(67294);s.Z=function(){return(0,t.jsx)("span",{className:"inline-block text-red-600 font-black",children:"*"})}},41694:function(e,s,a){"use strict";var t=a(85893),r=(a(67294),a(25675)),n=a(53854),l=a(41664),i=a(11163),c=a(74931),o=a(47516),m=a(5434),d=a(89583),u=a(66653);s.Z=function(e){var s=e.profile,a=(0,i.useRouter)();return(0,t.jsxs)("div",{className:"bg-slate-900 pt-24",children:[(0,t.jsxs)("div",{className:"md:py-8 pt-12 md:mx-auto mx-8 md:flex items-center max-w-6xl md:text-left text-center",children:[(0,t.jsx)("div",{className:"cols-span-1",children:(0,t.jsx)(r.default,{src:s.avatar||"/images/avatar.png",alt:"".concat(s.first_name," ").concat(s.last_name),width:180,height:180,priority:!0,className:"rounded-full object-cover"})}),(0,t.jsxs)("div",{className:"md:ml-6 ml-0 md:mt-0 mt-6",children:[(0,t.jsxs)("h1",{className:"md:text-3xl text-3xl font-black text-slate-200",children:[s.first_name," ",s.last_name]}),(0,t.jsxs)("p",{className:"flex md:justify-start justify-center items-center text-slate-400 mb-0",children:[(0,t.jsx)(n.XAC,{className:"mr-2"})," ",s.city?"".concat(s.city,", "):"",s.state]}),s.university&&(0,t.jsxs)("p",{className:"flex md:justify-start justify-center items-center space-x-2 text-slate-400 mb-0",children:[(0,t.jsx)(d.Q7H,{})," ",(0,t.jsx)("span",{children:s.university})]}),s.law_firm&&(0,t.jsxs)("p",{className:"flex md:justify-start justify-center items-center space-x-2 text-slate-400 mb-0",children:[(0,t.jsx)(u.$Ff,{})," ",(0,t.jsx)("span",{children:s.law_firm})]}),(0,t.jsxs)("div",{className:"flex inline-block mt-4 space-x-3 md:justify-start justify-center md:mb-0 mb-12",children:[s.phone&&(0,t.jsxs)("button",{type:"button",className:"flex items-center text-sm bg-white py-1.5 px-4 rounded-lg text-slate-800 space-x-1",onClick:function(){navigator.clipboard.writeText(s.phone).then((function(){c.ZP.success("Phone number copied")})).catch((function(){return c.ZP.error("Error copying phone number")}))},children:[(0,t.jsx)(o.a54,{})," ",(0,t.jsx)("span",{children:"Get phone"})]}),s.email&&(0,t.jsxs)("button",{type:"button",className:"flex items-center text-sm bg-white py-1.5 px-4 rounded-lg text-slate-800 space-x-1",onClick:function(){navigator.clipboard.writeText(s.email).then((function(){c.ZP.success("Email address copied")})).catch((function(){return c.ZP.error("Error copying email address")}))},children:[(0,t.jsx)(m.yr3,{})," ",(0,t.jsx)("span",{children:"Get email"})]})]})]})]}),(0,t.jsx)("div",{className:"max-w-6xl md:mx-auto mx-4",children:(0,t.jsxs)("ul",{className:"profile-menu overflow-x-scroll",children:[(0,t.jsx)("li",{children:(0,t.jsx)(l.default,{href:"/".concat(s.username),children:(0,t.jsx)("a",{className:"".concat(/\/\[username\]$/.test(a.pathname)?"active":""," whitespace-nowrap"),children:"About Me"})})}),(0,t.jsx)("li",{children:(0,t.jsx)(l.default,{href:"/".concat(s.username,"/reviews"),children:(0,t.jsx)("a",{className:"".concat(/\/reviews$/.test(a.pathname)?"active":""," whitespace-nowrap"),children:"Reviews"})})}),(0,t.jsx)("li",{children:(0,t.jsx)(l.default,{href:"/".concat(s.username,"/articles"),children:(0,t.jsx)("a",{className:"".concat(/\/articles$/.test(a.pathname)?"active":""," whitespace-nowrap"),children:"Articles"})})}),(0,t.jsx)("li",{children:(0,t.jsx)(l.default,{href:"/".concat(s.username,"/contact"),children:(0,t.jsx)("a",{className:"".concat(/\/contact$/.test(a.pathname)?"active":""," whitespace-nowrap"),children:"Contact Me"})})})]})})]})}},44449:function(e,s,a){"use strict";var t=a(85893),r=(a(67294),a(14161)),n=a(49778);s.Z=function(){return(0,t.jsxs)("aside",{className:"",children:[(0,t.jsx)("p",{className:"mb-4 text-slate-700",children:"Naijabarrister.com is committed to providing easy access to Nigerian laws, lawyers and legal resources"}),(0,t.jsxs)("ul",{className:"space-y-4",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Z,{className:"w-full"})}),(0,t.jsx)("li",{children:(0,t.jsx)(n.Z,{})})]})]})}},43977:function(e,s,a){"use strict";var t=a(85893);a(67294);
1s.Z=function(e){var s=e.children;return(0,t.jsx)("div",{className:"text-sm text-red-500 my-1",children:s})}},14161:function(e,s,a){"use strict";var t=a(85893),r=(a(67294),a(41664)),n=a(79352);s.Z=function(){return(0,t.jsx)(r.default,{href:"/questions",children:(0,t.jsxs)("a",{className:"bg-blue-500 inline-flex items-center py-3 px-8 rounded-md md:mr-4 uppercase text-white font-bold drop-shadow-lg hover:text-white hover:no-underline hover:bg-blue-400 md:w-auto w-full justify-center md:mb-0 mb-4",children:[(0,t.jsx)(n.qvv,{className:"mr-2",size:"1.2em"})," Ask a lawyer"]})})}},49778:function(e,s,a){"use strict";var t=a(85893),r=(a(67294),a(86893)),n=a(41664);s.Z=function(){return(0,t.jsx)(n.default,{href:"/find-a-lawyer",children:(0,t.jsxs)("a",{className:"bg-white inline-flex items-center py-3 px-8 rounded-md uppercase text-blue-800 font-bold drop-shadow-sm border border-blue-400 hover:no-underline hover:border-blue-300 hover:text-slate-800 md:w-auto w-full justify-center",children:[(0,t.jsx)(r.jRj,{className:"mr-2"})," Find a lawyer"]})})}},46472:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSP:function(){return N},default:function(){return w}});var t=a(85893),r=a(65357),n=a(41694),l=(a(14161),a(49778),a(34051)),i=a.n(l),c=a(67294),o=a(82175),m=a(43977),d=a(97207),u=a(74231),x=a(35375),h=a(74931),p=a(40611);function f(e,s,a,t,r,n,l){try{var i=e[n](l),c=i.value}catch(o){return void a(o)}i.done?s(c):Promise.resolve(c).then(t,r)}var j=u.Ry().shape({fullname:u.Z_().min(3).max(128).required("Your full name is required"),email:u.Z_().email("Please provide a valid email address").required("Email is required"),message:u.Z_().min(20).max(2500).required("Message is required"),bot:u.Rx().required("Your answer is required")});var b=function(e){var s=e.profile,a=(0,c.useState)({num1:Math.round(20*Math.random()),num2:Math.round(20*Math.random())}),r=a[0],n=a[1];return(0,t.jsx)("div",{children:(0,t.jsx)(o.J9,{initialValues:{fullname:"",email:"",phone:"",message:"",bot:""},onSubmit:function(){var e,a=(e=i().mark((function e(a,t){var l,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=t.setSubmitting,c=t.resetForm,parseInt(a.bot)===r.num1+r.num2){e.next=7;break}return h.ZP.error("Bot validation failed. Please check your answer to the maths below and try again"),n({num1:Math.round(20*Math.random()),num2:Math.round(20*Math.random())}),l(!1),e.abrupt("return");case 7:return e.prev=7,e.next=10,p.Z.post("/api/users/".concat(s.id,"/contacts/"),a);case 10:e.sent.data,h.ZP.success("Your message was sent to ".concat(s.fullName," successfully")),c(),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(7),console.log(e.t0),h.ZP.error("An error occurred");case 19:case"end":return e.stop()}}),e,null,[[7,15]])})),function(){var s=this,a=arguments;return new Promise((function(t,r){var n=e.apply(s,a);function l(e){f(n,t,r,l,i,"next",e)}function i(e){f(n,t,r,l,i,"throw",e)}l(void 0)}))});return function(e,s){return a.apply(this,arguments)}}(),validationSchema:j,children:function(e){var a=e.errors,n=e.touched,l=e.isSubmitting;return(0,t.jsxs)(o.l0,{className:"md:p-10 p-4 mb-8 rounded-lg bg-white drop-shadow-md border border-slate-300",children:[(0,t.jsxs)("h1",{className:"text-2xl font-black text-slate-800 mb-8",children:["Contact ",s.first_name," ",s.last_name]}),(0,t.jsxs)("p",{className:"text-sm",children:["All fields are required ",(0,t.jsx)(x.Z,{})]}),(0,t.jsxs)("div",{className:"field",children:[(0,t.jsxs)("label",{htmlFor:"",children:["Your fullname ",(0,t.jsx)(x.Z,{})]}),(0,t.jsx)(o.gN,{name:"fullname",className:"".concat(a.fullname&&n.fullname?"has-error":""," input"),placeholder:"e.g Abiodun Bakare"}),(0,t.jsx)(o.Bc,{name:"fullname",component:m.Z})]}),(0,t.jsxs)("div",{className:"field",children:[(0,t.jsxs)("label",{htmlFor:"",children:["Your email address ",(0,t.jsx)(x.Z,{})]}),(0,t.jsx)(o.gN,{name:"email",type:"email",className:"".concat(a.email&&n.email?"has-error":""," input"),placeholder:"e.g [email protected]"}),(0,t.jsx)(o.Bc,{name:"email",component:m.Z})]}),(0,t.jsxs)("div",{className:"field",children:[(0,t.jsx)("label",{htmlFor:"",children:"Phone number (optional)"}),(0,t.jsx)(o.gN,{name:"phone",type:"phone",className:"".concat(a.phone&&n.phone?"has-error":""," input"),placeholder:"e.g 080xxxxxxxx"}),(0,t.jsx)(o.Bc,{name:"phone",component:m.Z})]}),(0,t.jsxs)("div",{className:"field",children:[(0,t.jsxs)("label",{htmlFor:"",children:["Your message ",(0,t.jsx)(x.Z,{})]}),(0,t.jsx)(o.gN,{name:"message",as:"textarea",rows:4,className:"".concat(a.message&&n.message?"has-error":""," input"),placeholder:"Start typing your message, minimum or 20 characters ...."}),(0,t.jsx)(o.Bc,{name:"message",component:m.Z})]}),(0,t.jsxs)("div",{className:" field",children:[(0,t.jsx)("label",{htmlFor:"",children:"Please solve the simple question below to prove you're human"}),(0,t.jsxs)("div",{className:"".concat(a.bot&&n.bot?"bg-red-200 border-red-300":"border-slate-300"," flex space-x-4 items-center border rounded-lg px-4"),children:[(0,t.jsxs)("div",{className:"font-bold pr-4 whitespace-nowrap",children:[r.num1," + ",r.num2]}),(0,t.jsx)("div",{className:"grow",children:(0,t.jsx)(o.gN,{type:"text",name:"bot",className:"border-l border-slate-300 py-2 bg-transparent outline-none pl-4 w-full",placeholder:"Enter your answer here"})})]}),(0,t.jsx)(o.Bc,{name:"bot",component:m.Z})]}),(0,t.jsx)("div",{className:"field",children:(0,t.jsx)(d.Z,{type:"submit",classes:"primary",isSubmitting:l,children:"Send Your Message"})})]})}})})},v=a(44449),N=!0;function w(e){var s=e.profile;return(0,t.jsxs)(r.Z,{meta:!0,title:"Contact ".concat(s.fullName),image:s.avatar||"/images/avatar.png",children:[(0,t.jsx)(n.Z,{profile:s}),(0,t.jsxs)("div",{className:"py-12 max-w-6xl md:mx-auto mx-4 md:grid grid-cols-12 gap-8",children:[(0,t.jsx)("div",{className:"col-span-8 text-lg",children:(0,t.jsx)(b,{profile:s})}),(0,t.jsx)("div",{className:"col-span-4",children:(0,t.jsx)(v.Z,{})})]})]})}}},function(e){e.O(0,[5445,2013,9866,955,3874,5937,6556,1228,3276,2175,6653,4231,6893,5357,9774,2888,179],(function(){return s=87811,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.