PageSourceSearch

https://naijabarrister.com/_next/static/chunks/pages/signup-82fc3e02462ff341.js

js naijabarrister.com collected 2026-10-02 16:04:30 UTC 12,688 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7616],{38971:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return a(55565)}])},97207:function(e,r,a){"use strict";var s=a(85893),t=(a(67294),a(80471));r.Z=function(e){var r=e.children,a=e.classes,n=e.isSubmitting;return(0,s.jsx)("button",{className:"".concat(a," button"),disabled:n,type:"submit",children:n?(0,s.jsx)(t.frZ,{size:"1.2em",className:"animate animate-spin mx-auto"}):r})}},81070:function(e,r,a){"use strict";a.d(r,{Z:function(){return i}});var s=a(85893),t=a(9008),n=a(11163);function i(e){var r=e.title,a=e.description,i=e.image,o=e.url,c=(0,n.useRouter)(),l="".concat("https://naijabarrister.com").concat(c.asPath);return(0,s.jsxs)(t.default,{children:[(0,s.jsx)("title",{children:r?"".concat(r," - ").concat("NaijaBarrister | Find verified lawyers in Nigeria"):"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,s.jsx)("meta",{name:"description",content:a||"Providing easy access to Nigerian laws, lawyers and legal resources. Naijabarrister.com is managed by Legalhub Associates and Solutions Ltd, a limited liability company registered in Nigeria"}),(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("meta",{property:"og:type",content:"article"}),(0,s.jsx)("meta",{property:"og:image",content:i||"".concat("https://naijabarrister.com","/images/logo.png")}),(0,s.jsx)("meta",{property:"og:url",content:o||l}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{property:"og:site_name",content:"NaijaBarrister | Find verified lawyers in Nigeria"}),(0,s.jsx)("meta",{name:"robots",content:"index,follow"})]})}},47355:function(e,r,a){"use strict";a.d(r,{Z:function(){return n}});var s=a(85893),t=a(81070);function n(e){var r=e.children,a=e.title,n=e.url,i=e.image,o=e.description;return(0,s.jsxs)("div",{className:"min-h-screen",children:[(0,s.jsx)(t.Z,{title:a,url:n,image:i,description:o}),r]})}},43977:function(e,r,a){"use strict";var s=a(85893);a(67294);r.Z=function(e){var r=e.children;return(0,s.jsx)("div",{className:"text-sm text-red-500 my-1",children:r})}},55565:function(e,r,a){"use strict";a.r(r),a.d(r,{default:function(){return k}});var s=a(85893),t=a(25675),n=a(41664),i=a(34051),o=a.n(i),c=a(82175),l=a(74931),m=a(67294),d=a(11163),u=a(8193),h=a(97207),p=a(43977),x=a(40611),f=a(4319),j=a(74231);function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,s=new Array(r);a<r;a++)s[a]=e[a];return s}var g,v=j.Ry().shape({first_name:j.Z_().max(48,"Not more than 48 characters").required("Your first name is required"),last_name:j.Z_().max(48,"Not more than 48 characters").required("Your last name is required"),email:j.Z_().email("Please provide a valid email").required("Email is required"),password:j.Z_().min(8,"Minimum of 8 characters").max(24,"Maximum of 24 characters").required("Password is required"),confirm_password:j.Z_().oneOf([j.iH("password")],"Passwords dont match").required("Confirm your password"),state:j.Z_().oneOf((g=f,function(e){if(Array.isArray(e))return b(e)}(g)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(g)||function(e,r){if(e){if("string"===typeof e)return b(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?b(e,r):void 0}}(g)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"Please select a valid state").required("State of residence is required"),supreme_court_number:j.Z_().matches(/scn\d{5,8}/i,"Invalid supreme court number").required("Required"),username:j.Z_().min(3,"Link must be at least 3 characters").max(24,"Link cannot be more than 24 characters").required("Link is required").matches(/^[a-zA-Z0-9]+$/,"Profile link can only contain alphanumeric characters"),terms:j.O7().required("Please accept our terms and conditions").oneOf([!0,null],"Please accept our terms and conditions")}),N=a(2282);function y(e,r,a,s,t,n,i){try{var o=e[n](i),c=o.value}catch(l){return void a(l)}o.done?r(c):Promise.resolve(c).then(s,t)}function w(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function _(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{},s=Object.keys(a);"function"===typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}
1)))),s.forEach((function(r){w(e,r,a[r])}))}return e}var Z=function(){var e=(0,m.useState)(!1),r=(e[0],e[1],(0,m.useState)(!1)),a=r[0],t=r[1],i=(0,N.a)().setUser,j=(0,d.useRouter)();return(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"title text-xl",children:"Create account"}),(0,s.jsx)(c.J9,{initialValues:{first_name:"",last_name:"",email:"",password:"",confirm_password:"",username:"",state:"",supreme_court_number:"",terms:!1},validationSchema:v,onSubmit:function(){var e,r=(e=o().mark((function e(r,a){var s,t,n,c,m,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=a.setSubmitting,t=_({},r),e.prev=2,e.next=5,x.Z.post("/api/users/",t);case 5:201===(n=e.sent).status&&(c=n.data,i(c),j.push("/dashboard/profile?new_signup=true")),e.next=12;break;case 9:if(e.prev=9,e.t0=e.catch(2),e.t0.response.data.errors)for(m=e.t0.response.data.errors,d=0;d<m.length;d++)l.ZP.error(m[d].message);else l.ZP.error("An error occurred, please try again");case 12:s(!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})),function(){var r=this,a=arguments;return new Promise((function(s,t){var n=e.apply(r,a);function i(e){y(n,s,t,i,o,"next",e)}function o(e){y(n,s,t,i,o,"throw",e)}i(void 0)}))});return function(e,a){return r.apply(this,arguments)}}(),children:function(e){var r=e.errors,i=e.touched,o=e.isSubmitting;e.values;return(0,s.jsxs)(c.l0,{autoComplete:"off",children:[(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Profile link"}),(0,s.jsxs)("div",{className:"flex items-center border border-slate-300 rounded-md overflow-hidden",children:[(0,s.jsx)("span",{className:"px-3 py-3 border-r border-slate-300 font-bold",children:"naijabarrister.com/"}),(0,s.jsx)(c.gN,{name:"username",className:"grow p-3",autoComplete:"name",placeholder:"eg. atbakare"})]}),(0,s.jsx)(c.Bc,{component:p.Z,name:"username"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"First name"}),(0,s.jsx)(c.gN,{type:"text",name:"first_name",placeholder:"First name",className:"".concat(r.first_name&&i.first_name?"has-error":""," input"),spellCheck:!1}),(0,s.jsx)(c.Bc,{component:p.Z,name:"first_name"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Last name"}),(0,s.jsx)(c.gN,{type:"text",name:"last_name",placeholder:"Last name",className:"".concat(r.last_name&&i.last_name?"has-error":""," input"),spellCheck:!1}),(0,s.jsx)(c.Bc,{component:p.Z,name:"last_name"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Email address"}),(0,s.jsx)(c.gN,{type:"email",name:"email",placeholder:"Email address",className:"".concat(r.email&&i.email?"has-error":""," input")}),(0,s.jsx)(c.Bc,{component:p.Z,name:"email"})]}),(0,s.jsxs)("div",{className:"field relative",children:[(0,s.jsx)("label",{htmlFor:"password",children:"Password"}),(0,s.jsx)(c.gN,{type:a?"text":"password",name:"password",id:"password",autoComplete:"new-password",className:"".concat(r.password&&i.password?"has-error":""," input")}),(0,s.jsx)("button",{className:"".concat(a?"text-gray-400":"text-gray-300"," absolute z-10 top-8 right-2 text-3xl"),onClick:function(){return t(!a)},type:"button",children:a?(0,s.jsx)(u.Zju,{}):(0,s.jsx)(u.I0d,{})}),(0,s.jsx)(c.Bc,{component:p.Z,name:"password"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"confirm_password",children:"Confirm password"}),(0,s.jsx)(c.gN,{type:a?"text":"password",name:"confirm_password",id:"confirm_password",className:"".concat(r.confirm_password&&i.confirm_password?"has-error":""," input")}),(0,s.jsx)(c.Bc,{component:p.Z,name:"confirm_password"})]}),(0,s.jsx)("hr",{className:"my-5"}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"State of residence"}),(0,s.jsxs)(c.gN,{as:"select",name:"state",className:"".concat(r.state&&i.state?"has-error":""," input"),children:[(0,s.jsx)("option",{children:"Select"}),f&&f.map((function(e){return(0,s.jsx)("option",{value:e,children:e},e)}))]}),(0,s.jsx)(c.Bc,{component:p.Z,name:"state"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsx)("label",{htmlFor:"",children:"Supreme court number"}),(0,s.jsx)(c.gN,{className:"".concat(r.supreme_court_number&&i.supreme_court_number?"has-error":""," input"),name:"supreme_court_number"}),(0,s.jsx)(c.Bc,{component:p.Z,name:"supreme_court_number"})]}),(0,s.jsxs)("div",{className:"field",children:[(0,s.jsxs)("label",{className:"cursor-pointer font-light",children:[(0,s.jsx)(c.gN,{type:"checkbox",name:"terms"})," I affirm under oath that I am a Lawyer in good standing and I am licensed to practice Law in Nigeria. I also affirm that I have read and agreed with the"," ",(0,s.jsx)(n.default,{href:"#",children:(0,s.jsx)("a",{children:"Terms and Condition"})})," ","and"," ",(0,s.jsx)(n.default,{href:"#",children:(0,s.jsx)("a",{children:"Privacy Policy"})})," ","of Naijabarrister.com"]}),(0,s.jsx)(c.Bc,{component:p.Z,name:"terms"})]}),(0,s.jsx)("div",{className:"field",children:(0,s.jsx)(h.Z,{isSubmitting:o,classes:"primary full",children:"Create account"})})]})}})]})},P=a(47355),S=a(89583);function k(){var e=(0,d.useRouter)(),r=(0,N.a)(),a=r.user;return r.loading?null:(a&&e.push("/"),(0,s.jsx)(P.Z,{title:"Create Account",description:"Create an account to use NaijaBarrister",children:(0,s.jsxs)("div",{className:"md:grid grid-cols-2 md:h-screen",children:[(0,s.jsxs)("div",{className:"bg-hero bg-center bg-cover relative md:py-0 py-12 flex items-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-900 bg-opacity-80 backdrop-blur-sm z-10"}),(0,s.jsxs)("div",{className:"max-w-md mx-auto relative z-40 px-6",children:[(0,s.jsx)(n.default,{href:"/",children:(0,s.jsx)("a",{className:"block mb-6",children:(0,s.jsx)(t.default,{src:"/images/logo-white.svg",alt:"NaijaBarrister",width:130,height:50,className:""})})}),(0,s.jsxs)("ul",{className:"space-y-4 font-light",children:[(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-center text-white space-x-3",children:[(0,s.jsx)(S.FJM,{size:"1.5em",className:"text-green-600"})," ",(0,s.jsx)("span",{className:"text-lg",children:"Sign up for a free account"})]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-start text-white space-x-3",children:[(0,s.jsx)(S.FJM,{size:"1.5em",className:"text-green-600 relative mt-1"})," ",(0,s.jsx)("span",{className:"text-lg",children:"Post your briefs and receive applications from other lawyers"})]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-start text-white space-x-3",children:[(0,s.jsx)(S.FJM,{size:"1.5em",className:"text-green-600 relative mt-1"})," ",(0,s.jsx)("span",{className:"text-lg",children:"Help non-lawyers answer their most pressing questions"})]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-start text-white space-x-3",children:[(0,s.jsx)(S.FJM,{size:"1.5em",className:"text-green-600 relative mt-1"})," ",(0,s.jsx)("span",{className:"text-lg",children:"Find jobs in your area of specialization"})]})})]})]})]}),(0,s.jsx)("div",{className:"md:overflow-y-scroll",children:(0,s.jsxs)("div",{className:"max-w-md mx-auto md:py-12 py-6 px-4",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{children:(0,s.jsx)(Z,{})})}),(0,s.jsxs)("p",{className:"mt-6 text-center",children:["Already have an account? ",(0,s.jsx)(n.default,{href:"/login",children:"Log in here"})]})]})})]})}))}},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,955,4617,3276,2175,4231,9774,2888,179],(function(){return r=38971,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.