1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{64167:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return a(95128)}])},13957:function(e,t){"use strict";t.Z={src:"/app/_next/static/media/iconNADC.17ec77e0.png",height:201,width:201,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAATlBMVEVVUilpAQk6MxREPidaVSyGKCOSRCBWRDZTQC9MaXFQSTZOTTpFMxlFPyNPSjZEMhm+hTGVT0p5KRl6PDBjIxOHNBxyHBRuFRFnJBWGQSqNigapAAAAEHRSTlMq+aiyL/r+4PQAsqXlpLbqFQOP6wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEFJREFUeJwFwQcCwCAIBLBTUaBLcND+/6VNoPSIHFCQTPfJQBnVvc4Tss3MNkPeYTaCUb7UWlo3qK+IdQFKmTlDf2gHAteWXzSbAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},14029:function(e,t,a){"use strict";a.d(t,{f:function(){return g}});var i=a(47533),r=a(87066),n=a(99854),o=a(82912),s=a(74322),A=a(24126);a(39332);var l=a(11163),c=a(67294),d=a(10708),u=a(87536),h=a(59625),p=a(86784),m=a(16310);let g=()=>{let e=(0,l.useRouter)(),{dispatch:t}=(0,c.useContext)(o.A),[a,g]=(0,d.Z)(["auth"]),f=(0,A.K)(["returnUrl"]),w=(0,c.useRef)(null),y=m.Ry({username:m.Z_().required("Email is required").email("Email must be a valid email"),password:m.Z_().required("Password is required")}).required(),{handleSubmit:b,control:E,formState:{errors:Z,isSubmitting:B},setValue:v,setError:x,getValues:C}=(0,u.cI)({resolver:(0,i.X)(y),defaultValues:{email:"",password:""}}),S=async(a,i)=>{try{var o,A,l,c,d;let i=await r.Z.post("".concat(s.qG,"/user/login"),a);if(i.data.error){if(null==i?void 0:null===(o=i.data)||void 0===o?void 0:null===(A=o.message)||void 0===A?void 0:A.includes("User is not confirmed")){let t=await r.Z.post("".concat(s.qG,"/user/resend-verification-code"),{username:a.username});200===t.status&&!0!==t.data.error?e.push("/verify?email=".concat(a.username,"&").concat(f)):(0,n.cB)("Invalid Request")}else i.data.message?(0,n.cB)(i.data.message):(0,n.cB)("Incorrect credentials")}else{(0,p.pp)({event_label:"Login",user_email:a.username});let n=JSON.parse(i.data.body).data;if(!0===n.success){let a=new Date,i=new Date(a.setMonth(a.getMonth()+120));if(g("id_token",n.data.id_token,{path:"/",maxAge:n.data.expires_in}),g("access_token",n.data.access_token,{path:"/",maxAge:n.data.expires_in}),g("refresh_token",n.data.refresh_token,{path:"/",expires:i}),t({type:h.YV.SET_LOGGED_IN,payload:{isLoggedIn:!0}}),null===(l=e.query)||void 0===l?void 0:l.returnUrl){let t=e.query.returnUrl;t.startsWith("/app")&&(t=t.replace(/^\/app/,""));let a=t.includes("?")?"&":"?";e.push("".concat(t).concat(a).concat(f))}else if(null===(c=e.query)||void 0===c?void 0:c.state){let t=JSON.parse(decodeURIComponent(e.query.state));if(null==t?void 0:t.returnUrl){let a=t.returnUrl;a.startsWith("/app")&&(a=a.replace(/^\/app/,""));let i=a.includes("?")?"&":"?";e.push("".concat(a).concat(i).concat(f))}else e.push("/dashboard?".concat(f))}else{let t=await r.Z.get("".concat(s.KP,"/api/me/"),{headers:{common:{Authorization:"".concat(n.data.id_token)}}});(null==t?void 0:null===(d=t.data)||void 0===d?void 0:d.founding_member)?e.push("/dashboard?".concat(f)):e.push("/founding-member/detail?".concat(f))}}}}catch(e){console.log(e),(0,n.cB)("Invalid Request")}};return{captchaRef:w,setValue:v,handleSubmit:b,control:E,isSubmitting:B,errors:Z,getValues:C,submitLogin:S}}},79684:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var i=a(35944),r=a(67294),n=a(25675),o=a.n(n),s=a(11163),A=a(13957),l={src:"/app/_next/static/media/iconTLU.9f8bd925.png",height:225,width:225,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAMFBMVEVEYodmfpzV3OQ1Vn3///9uhaJ/kaaHk6Ofrb9aco6OoLaWoa9TbIy4uLlXc5OlsL9qW6dBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAO0lEQVR4nBXLyRHAMAwDsSVlyXfSf7eZ4A+aRcgNh9ZSGOWAkSJ2nad2EL1D9SDnrbonMXO8E/N35PYBKKEBMbc5E68AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8};let c={nadc:{image:(0,i.tZ)(o(),{height:250,src:A.Z,alt:"National Association of Drug Court Professionals"}),title:"National Association of Drug Court Professionals",link:"https://www.distinguishedcounsel.org/",description:"The National Association of Drug Court Professionals is a national nonprofit 501(c)(3) corporation founded in 1994 by pioneers from the first 12 drug courts in the nation. This extraordinary group of innovative judges, prosecutors, defense attorneys, and clinical professionals created a common sense approach to improving the justice system b
1y using a combination of judicial monitoring and effective treatment to compel drug-using offenders to change their lives."},templelaw:{image:(0,i.tZ)(o(),{height:150,src:{src:"/app/_next/static/media/iconTemple.b95cfaf0.png",height:164,width:425,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAIVBMVEUnGh8tHCIeHx8hGx9IEB0gGSDHRmrAMVnGM1xMaXHERWhoRLFXAAAAC3RSTlNMNUQoPRPk9doA/Ql1QikAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAgSURBVHicY+BiY2BiYGDlZGDnYGFiYGBiZGBhZAZBVgAEuQBOdlOe0QAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3},alt:"Temple University Beasley School of Law"}),title:"Temple University Beasley School of Law",link:"https://www.temple.edu/",description:"Temple University Beasley School of Law is committed to excellence in teaching, learning, scholarship, and service. The faculty is dedicated to preparing students to enter and continue in the legal profession with the highest level of skill possible, with a firm commitment to principles of professional responsibility, and with a sense of personal obligation to lead and to serve the communities in which they live and practice."},widenerlaw:{image:(0,i.tZ)(o(),{style:{height:150,objectFit:"contain",maxWidth:"60%",margin:"auto",marginTop:10},src:{src:"/app/_next/static/media/iconWidener.4a23c6e8.png",height:400,width:2100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAD1BMVEUDXah2r95/suUCXqpMaXGHbsaTAAAABXRSTlMoGw80AAS0BiAAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAXSURBVHicY2BkYmRkZGRiYWBmAAFmBgAA1QAUBIwQ0gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2},alt:"Widener University Delaware Law School"}),title:"Widener University Delaware Law School",link:"https://delawarelaw.widener.edu/",description:"Widener University Delaware Law School is committed to providing an outstanding legal education to a diverse student body. The schoolâs curriculum and experiential programs prepare students for practice in a global context. Widener Law Commonwealth is dedicated to our studentsâ success and to creating an environment that fosters a sense of community, diversity, and mutual respect."},tlu:{image:(0,i.tZ)(o(),{height:250,src:l,alt:"Texas Lutheran University"}),title:"Texas Lutheran University",link:"https://www.tlu.edu/",description:"Texas Lutheran University is a community of learning and a community of faith. As a community of learning, the University stresses the liberating potential of the disciplined study of the arts, the humanities, and the natural and social sciences. As a community of faith, the University seeks to develop the whole personâintellectually, physically, socially, and spirituallyâin a context of mutual respect and concern."},ntl:{image:(0,i.tZ)(o(),{height:250,src:l,alt:"National Trial Lawyers"}),title:"National Trial Lawyers",link:"https://triallawyersuniversity.com/",description:"The National Trial Lawyers is a professional organization composed of the premier trial lawyers from across the country who exemplify superior qualifications as civil plaintiff or criminal defense trial lawyers. This national organization provides networking opportunities, advocacy training, and the highest quality educational programs for trial lawyers."},harvardlaw:{image:(0,i.tZ)(o(),{height:170,src:{src:"/app/_next/static/media/iconHarvard.5dc30f12.png",height:2160,width:3840,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAHlBMVEUCAAAAAABMaXEAAAAAAAAXEhJONjakgYSMCxOqWGAv4FUOAAAACnRSTlMgSAASFzwqnlvxeAPMUQAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJxjYIICBnY2FgYw4GRlBAFWBg4mBmZmFhZmBpgaAAjpAGVFH39PAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5},alt:"Harvard Law School"}),title:"Harvard Law School",link:"https://hls.harvard.edu/",description:"Harvard Law School is one of the preeminent centers of legal education in the world. Led by a diverse and dedicated group of faculty and legal scholars, HLS provides unmatched opportunities to study law and related disciplines in a rigorous and collaborative environment."},mba:{image:(0,i.tZ)(o(),{height:160,src:{src:"/app/_next/static/media/iconMontbar.f044190f.png",height:440,width:1295,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAElBMVEX9+/v69fXpzM/y4ePYq6+0WmFlhmTbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nBXIwREAMAiAMMC6/8pe8wwNorBvquSPygECPQAnVwFxWQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:3},alt:"Massachusetts Bar Association"}),title:"Massachusetts Bar Association",link:"https://www.montgomerybar.org/",description:"The Massachusetts Bar Association is a non-profit organization that serves the legal profession and the public by promoting the administration of justice, legal education, professional excellence and respect for the law. The MBA represents a diverse group of attorneys, judges and legal professionals across the commonwealth."},aila:{image:(0,i.tZ)(o(),{height:180,src:{src:"/app/_next/static/media/iconAila.c589a5cb.png",height:125,width:267,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAM1BMVEUpM2QdJ1hNVn5pb5NKUn0/AH9MaXEeK10gKFwiKV5TWoGSl7K8vs0vOWvk5exOV4ZaYo7a43ScAAAAD3RSTlMRGquizQQAKB8khP2h0P3goS0KAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKElEQVR4nAXBiQEAIAjEsKrogS/7T2vCrpNwBvcdFCqsNCQ6Zg258wEPgADGgqrFqAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},alt:"American Immigration Lawyers Association"}),title:"American Immigration Lawyers Association",link:"https://www.aila.org/",description:""},dcba:{image:(0,i.tZ)(o(),{height:250,src:{src:"/app/_next/static/media/iconDelcobar.15b2ccd1.png",height:965,width:1080,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAATlBMVEVMaXEzVIwqTYfOq3XRr3N7ZmU3VopMaZTEp3TPrXRPbZpneJBrd4VGY41HZZVRbplNa5fbuHdMYYI9V4N+fHeKhHjIqnJDZJeZkH5ncYLOiNCsAAAAF3RSTlMA1voWegTvMzBPSSBlJG9Y+vy9ndX6lxAF5MsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA8SURBVHicBcEHAsAgCASwYwmo3UP7/482gYU0bwBEszNVIPS8n48W5EvzmFyReo19FEdqL1xWQ4T45oYfPuYCDHTcuoAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:7},alt:"Delaware County Bar Association"}),title:"Delaware County Bar Association",link:"https://delcobar.org/",description:""},chesco:{image:(0,i.tZ)(o(),{height:200,src:{src:"/app/_next/static/media/iconChesterNew.5b3d21d7.png",height:300,width:600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEUWOEQOMkISNEILMkMXOEITNEBMaXErZdrnAAAAB3RSTlMyXlEWJT4AU15G6gAAAAlwSFlzAAALEwAACxMBAJqcGAAAACNJREFUeJwVxskRADAMA6HV5f5LzoQXXCypR/hZMPboSAGaBwWuAEsurEXLAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4},alt:"Chester County Bar Association"}),title:"Chester County Bar Association",link:"https://www.chescobar.org/",description:"We promote professionalism, inclusion, and collegiality within the legal profession, and enhance the quality of life of our members and the practice of law within our community."},mdb:{image:(0,i.tZ)(o(),{height:250,src:{src:"/app/_next/static/media/iconMDB.b1865810.jpg",height:267,width:278,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAhEAABAwMEAwAAAAAAAAAAAAABABESAgMEExYhI0Fhgv/EABUBAQEAAAAAAAAAAAAAAAAAAAED/8QAGhEAAgIDAAAAAAAAAAAAAAAAAhEAAQMSYf/aAAwDAQACEQMRAD8AuuZZlVbqGRuGZDt3a/LAeYP8x9IiJblcgAFDrSddn//Z",blurWidth:8,blurHeight:8},alt:"Miami-Dade Bar Association"}),title:"Miami-Dade Bar Association",link:"https://www.miamidadebar.org/",description:"The Miami Dade Bar supports its members in many ways, but some of the most important aspects are the abundant networking opportunities, high quality and timely continuing legal education, and leadership development opportunities for attorneys, to help you GROW your practice, GAIN experience and GIVE back."},generic:{image:(0,i.tZ)(o(),{height:180,src:{src:"/app/_next/static/media/organization.84efbb47.png",height:512,width:512,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAdVBMVEVeWkwdGRNeXFKIi4ZybV9MaXE5Oj9Dg5WUf0Womm85cn83eY4vXmt0a05NQSVCT0VoalODcTx/fwBie3Y6c4BtfG87aHVUTEZ4ent1Z1xfT0ZtaV18eGtwdmdeeHOTl5t9em+ypHeBfm92hHRPjJyvsbF5c2XsMuV6AAAAG3RSTlPfJrb+/gBh/eP93/ul0FnD39oC/uT+o8Tf4962xwJEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAARElEQVR4nD3GRQKAIBQFwEeH3fFFLO5/RXbOaqB6xTprazCtuXN3BR5FILqA+TMD0QGUpjj/SPkAa4oiTG+LZdvh/dhkhLMEEu+/xIkAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},alt:"Organization"}
1),title:"EsquireX",link:"https://www.esquirex.com/",description:"EsquireX is a legal technology company that provides a platform for attorneys to connect with clients and provide legal services online."}},d=()=>{let e=(0,s.useRouter)(),{tag:t}=e.query,[a,n]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!e.isReady)return;let a=Object.keys(c),i=a.includes(null==t?void 0:t.toLowerCase());i?n(c[t.toLowerCase()]):n(c.generic)},[e.isReady,t]),(0,i.tZ)("a",{href:null==a?void 0:a.link,target:"_blank",rel:"noopener noreferrer",style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:null==a?void 0:a.image})};var u=d},60711:function(e,t,a){"use strict";a.d(t,{m:function(){return f}});var i=a(47533),r=a(87066),n=a(99854),o=a(55790),s=a(82912),A=a(70921),l=a(74322),c=a(11163),d=a(67294),u=a(87536),h=a(59625);a(84682);var p=a(392),m=a(86784),g=a(16310);let f=(e,t,a)=>{var f;let w=(0,c.useRouter)(),{tag:y,uid:b,source:E}=w.query,{dispatch:Z}=(0,d.useContext)(s.A),{updateUserSocialImage:B}=(0,A.G)(),v=(0,d.useRef)(null),x=(0,o.e)(e=>e.setVerifyData),C=w.pathname.startsWith("/event"),S=w.pathname.startsWith("/partner"),R=(null==w?void 0:null===(f=w.query)||void 0===f?void 0:f.foundingMember)==="true",U=g.Ry({email:g.Z_().required("Email is required").email("Email must be a valid email").matches(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,"Email must be a valid email."),password:g.Z_().required("Password is required").min(6,"Password must be at least 6 characters").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])/,"Password must contain at least 1 uppercase letter, 1 lowercase letter, 1 number and one special character"),confirm_password:g.Z_().required("Confirm Password is required").oneOf([g.iH("password"),null],"Passwords must match"),name:g.Z_().required("First Name is required"),lastname:g.Z_().required("Last Name is required"),promocode:g.Z_().nullable(),phone:C?g.Z_().required("Phone is Required"):g.Z_(),terms:g.Xg().required().oneOf([!0],"Field must be checked")}).required(),{handleSubmit:M,control:k,formState:{errors:D,isSubmitting:T},setValue:I,setError:_,getValues:V,watch:O}=(0,u.cI)({resolver:(0,i.X)(U),defaultValues:{email:"",password:"",confirm_password:"",name:"",lastname:"",promocode:"",phone:"",terms:!1}}),L=e=>{let{username:t,password:a}=e;r.Z.post("".concat(l.qG,"/user/login"),{username:t,password:a}).then(e=>{if(e.data.error)Z({type:h.YV.SET_LOGIN_INPUT_ERROR,payload:{isLoginInputError:!0,loginErrorMessage:"Incorrect credentials"}});else{let t=JSON.parse(e.data.body).data;if(!0===t.success){let e=new Date,a=new Date(e.setMonth(e.getMonth()+120));setCookie("id_token",t.data.id_token,{path:"/",maxAge:t.data.expires_in}),setCookie("access_token",t.data.access_token,{path:"/",maxAge:t.data.expires_in}),setCookie("refresh_token",t.data.refresh_token,{path:"/",expires:a}),r.Z.defaults.headers.common.Authorization=t.data.id_token,user.profile_form_data?uploadPicture():submitEditProfile(user.profile_image)}}})},q=async i=>{let o={...i,username:i.email,role:a};(C||S)&&(o={...o,tag:y}),b&&(o={...o,tag:"lx_user"}),E&&(o={...o,source:E}),o=(0,p.DD)(o);try{let a=await r.Z.post("".concat(l.qG,"/user/signup"),o);if(a.data.error)a.data.message.includes("username")?_("email",{message:"Email already exists"}):a.data.message.includes("Password")?_("password",{message:a.data.message}):a.data.message?(0,n.cB)(a.data.message):(0,n.cB)("Invalid Request");else{let{password:a,confirm_password:i,...r}=o;if((0,m.mN)(r),B(o),b)L(o);else{let a="/verify?user_type=".concat(o.role,"&setup_account=true&email=").concat(o.email);"free"!==e&&(a="".concat(a,"&plan=").concat(e||"free",",").concat(t)),E&&(a+="&source=".concat(E)),S?a+="&returnUrl=/organization/".concat(y):R?a+="&returnUrl=/founding-member/detail":w.query.returnUrl&&(a+="&returnUrl=".concat(w.query.returnUrl)),w.push(a),x({username:o.email,password:o.password})}}}catch(e){console.log(e),(0,n.cB)("Invalid Request")}},F=O("password"),G=(0,d.useMemo)(()=>{let e=[];return F.length<1&&e.push("required-error"),F.length<6&&e.push("length-error"),F.match(/^(?=.*[a-z])/)||e.push("lowercase-error"),F.match(/^(?=.*[A-Z])/)||e.push("uppercase-error"),F.match(/^(?=.*[0-9])/)||e.push("number-error"),F.match(/^(?=.*[!@#\$%\^&\*])/)||e.push("special-character-error"),e},[F]);return{captchaRef:v,setValue:I,handleSubmit:M,control:k,isSubmitting:T,errors:D,getValues:V,isEvent:C,isPartner:S,submitRegister:q,passwordErrors:G,isFoundingMember:R,watch:O}}},90907:function(e,t,a){"use strict";var i=a(35944);a(67294);var r=a(23972),n=a(25675),o=a.n(n),s=a(86722),A=a(73512);a(79684);var l=a(60711);let c=()=>{let{isPartner:e,isEvent:t}=(0,l.m)();return(0,i.BX)(A.S,{style:{height:e||t?"fit-content":"100%",maxHeight:e||t?"fit-content":"600px"},children:[(0,i.tZ)(r.Z,{color:"#FFF",fontSize:22,fontWeight:"bold",textAlign:"center",children:"Welcome to EsquireX - A Legal Freelancer Marketplace"}),(0,i.tZ)(o(),{height:150,width:150,src:s.Z,alt:"register"}),(0,i.BX)(r.Z,{color:"#FFF",fontSize:18,textAlign:"center",children:["A place for lawyers to hire lawyers on a",(0,i.tZ)("br",{}),"project-by-project basis"]}),(0,i.BX)(r.Z,{color:"#FFF",fontSize:18,textAlign:"center",children:["Questions or Concerns? Reach out to: \xa0",(0,i.tZ)("a",{href:"mailto:[email protected]",style:{color:"#FFF",textDecoration:"underline"},children:"[email protected]"})]})]})};t.Z=c},66772:function(e,t,a){"use strict";var i=a(35944),r=a(67294),n=a(99226),o=a(23972),s=a(75291),A=a(11163),l=a(41664),c=a.n(l);let d=()=>{let[e,t]=(0,r.useState)(!1),a=(0,A.useRouter)();return(0,r.useEffect)(()=>{"/login"===a.pathname?t(!0):t(!1)},[a.pathname]),(0,i.BX)(n.Z,{display:"flex",mx:"auto",children:[(0,i.tZ)(n.Z,{px:2,py:.5,borderBottom:e?0:2,borderColor:s.r.palette.primary.main,children:(0,i.tZ)(c(),{href:"/register",children:(0,i.tZ)("button",{style:{border:"none",background:"none",cursor:"pointer"},children:(0,i.tZ)(o.Z,{color:!e&&"primary",children:"Register"})})})}),(0,i.tZ)(n.Z,{px:2,py:.5,borderBottom:e?2:0,borderColor:s.r.palette.primary.main,children:(0,i.tZ)(c(),{href:"/login",children:(0,i.tZ)("button",{style:{border:"none",background:"none",cursor:"pointer"},children:(0,i.tZ)(o.Z,{color:e&&"primary",children:"Login"})})})})]})};t.Z=d},73512:function(e,t,a){"use strict";a.d(t,{S:function(){return n}});var i=a(90948),r=a(99226);let n=(0,i.ZP)(r.Z)(e=>{let{theme:t}=e;return{backgroundColor:t.palette.primary.main,margin:"auto",maxHeight:600,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:20,borderRadius:5,[t.breakpoints.up("sm")]:{maxWidth:500,rowGap:15},[t.breakpoints.down("sm")]:{maxWidth:"100%",rowGap:1,marginBottom:20}}})},55790:function(e,t,a){"use strict";a.d(t,{e:function(){return r}});var i=a(64529);let r=(0,i.Ue)(e=>({verifying:!1,setVerifying:t=>e({verifying:t}),resending:!1,setResending:t=>e({resending:t}),verifyData:null,setVerifyData:t=>e({verifyData:t}),clear:()=>e({verifying:!1,resending:!1})}
1))},95128:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return I}});var i=a(35944),r=a(99226),n=a(66489),o=a(48263),s=a(23972),A=a(67294),l=a(11163),c=a(10708),d=a(90907),u=a(87536),h=a(22715),p=a(54799),m=a(69397),g=a(71808),f=a(72450),w=a(14029),y=a(41664),b=a.n(y);a(34853);let E=()=>{let{captchaRef:e,handleSubmit:t,control:a,errors:r,isSubmitting:n,submitLogin:l}=(0,w.f)(),[c,d]=(0,A.useState)(!1),y=()=>d(e=>!e),E=e=>{e.preventDefault()};return(0,i.BX)("form",{onSubmit:t(l),children:[(0,i.BX)(o.ZP,{container:!0,my:2,columnSpacing:.5,rowSpacing:2,width:"100%",children:[(0,i.tZ)(o.ZP,{width:"100%",item:!0,xs:12,sm:12,md:12,children:(0,i.tZ)(u.Qr,{name:"username",control:a,render:e=>{var t,a;let{field:n}=e;return(0,i.tZ)(h.Z,{size:"small",fullWidth:!0,label:"Email",variant:"filled",error:null===(t=r.username)||void 0===t?void 0:t.message,helperText:null===(a=r.username)||void 0===a?void 0:a.message,...n})}})}),(0,i.tZ)(o.ZP,{width:"100%",item:!0,xs:12,sm:12,md:12,children:(0,i.tZ)(u.Qr,{name:"password",control:a,render:e=>{var t,a;let{field:n}=e;return(0,i.tZ)(h.Z,{size:"small",fullWidth:!0,label:"Password",variant:"filled",type:c?"text":"password",error:null===(t=r.password)||void 0===t?void 0:t.message,helperText:null===(a=r.password)||void 0===a?void 0:a.message,InputProps:{endAdornment:(0,i.tZ)(p.Z,{onClick:y,onMouseDown:E,children:c?(0,i.tZ)(f.Z,{}):(0,i.tZ)(g.Z,{})})},...n})}})}),(0,i.tZ)(o.ZP,{width:"100%",item:!0,xs:12,sm:12,md:12,display:"flex",justifyContent:"flex-end",alignItems:"center",children:(0,i.tZ)(b(),{href:"/reset-password",children:(0,i.tZ)(s.Z,{fontSize:14,color:"primary","aria-hidden":"true",children:"Forgot password"})})})]}),(0,i.tZ)(o.ZP,{width:"100%",item:!0,xs:12,sm:12,md:12,mt:1,children:(0,i.tZ)(m.Z,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",size:"large",disabled:n,style:{color:"white",fontSize:20},children:"Sign In"})})]})};var Z=a(66772),B=a(58801),v=a(54887),x=a(99854);let{styled:C,Grid:S}=a(54522),R=C(S)(e=>{let{theme:t}=e;return{[t.breakpoints.down("sm")]:{order:1},[t.breakpoints.up("sm")]:{order:0}}}),U=C(S)(e=>{let{theme:t}=e;return{[t.breakpoints.down("sm")]:{order:0,paddingLeft:8,paddingRight:8},[t.breakpoints.up("sm")]:{order:1,paddingLeft:40,paddingRight:40}}}),M=()=>{let e=(0,l.useRouter)(),[t,a]=(0,c.Z)(["auth"]),[u,h]=(0,A.useState)(!0);return((0,A.useEffect)(()=>{t.id_token?e.push("/dashboard"):h(!1)},[t.id_token,e]),(0,A.useEffect)(()=>{if(window.location.hash){let i=v.Z.parse(window.location.hash);if(console.log(i.state),i.error)(0,x.cB)("Cannot use Google SSO for this account"),e.push("/login");else if((e=>{if(!e)return!1;try{let a=JSON.parse(decodeURIComponent(e));return(0,B.pe)(a.encrypted)===t.g_sso}catch(e){return!1}})(i.state)){let t=JSON.parse(decodeURIComponent(i.state));a("id_token",i.id_token,{path:"/",maxAge:parseInt(i.expires_in,10)}),a("access_token",i.access_token,{path:"/",maxAge:parseInt(i.expires_in,10)});let r=t.returnUrl;r?(r.startsWith("/app")&&(r=r.replace(/^\/app/,"")),e.push(r)):e.push("/dashboard")}else(0,x.cB)("Invalid Google SSO request"),e.push("/login")}},[t.g_sso,e,a]),u)?(0,i.tZ)(r.Z,{container:!0,height:"100%",width:"100%",alignItems:"center",justifyContent:"center",display:"flex",children:(0,i.tZ)(n.Z,{})}):(0,i.BX)(o.ZP,{container:!0,mx:"auto",height:"100%",maxWidth:1200,alignItems:"center",pt:10,px:3,children:[(0,i.tZ)(R,{item:!0,xs:12,sm:6,my:"auto",children:(0,i.tZ)(d.Z,{})}),(0,i.tZ)(U,{item:!0,xs:12,sm:6,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",children:(0,i.BX)("div",{style:{marginTop:40,paddingBottom:40,backgroundColor:"white"},children:[(0,i.tZ)("div",{style:{display:"flex",marginBottom:10},children:(0,i.tZ)(Z.Z,{})}),(0,i.tZ)(E,{}),(0,i.tZ)(s.Z,{fontSize:12,mx:"auto",textAlign:"center",my:1,children:"or"}),(0,i.tZ)(B.ZP,{})]})})]})};var k=a(2962),D=a(22869);let T=()=>(0,i.BX)(i.HY,{children:[(0,i.tZ)(k.PB,{title:"Login | Esquirex",nofollow:D.x,noindex:D.U}),(0,i.tZ)(M,{})]});var I=T},22869:function(e,t,a){"use strict";a.d(t,{U:function(){return r},x:function(){return i}});let i=!1,r=!1}},function(e){e.O(0,[2962,4327,1072,591,4522,592,9774,2888,179],function(){return e(e.s=64167)}),_N_E=e.O()}]);
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.