PageSourceSearch

https://www.unionhiringhall.org/_next/static/chunks/app/auth/signin/page-3e48aa20960e128a.js

js unionhiringhall.org collected 2026-10-04 23:26:16 UTC 4,643 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8098],{8805:function(e,t,r){Promise.resolve().then(r.t.bind(r,72972,23)),Promise.resolve().then(r.bind(r,38173))},38173:function(e,t,r){"use strict";r.d(t,{default:function(){return N}});var a=r(57437),s=r(2265),i=r(29501),o=r(67976),l=r(46136),n=r(99376),m=r(67188),c=r(5853),d=r(9483),u=r(24865),h=r(59349);class g{constructor(e){Object.assign(this,e)}}(0,c.gn)([(0,d.rl)({message:"Please Enter Your Email!"}),(0,u.s6)({},{message:"Please Enter Valid Email!"})],g.prototype,"email",void 0),(0,c.gn)([(0,d.rl)({message:"Please Enter Your Password!"}),(0,h.Yq)({minLength:6,minLowercase:0,minNumbers:0,minSymbols:0,minUppercase:0})],g.prototype,"password",void 0);var f=r(27648),p=r(80826),E=r(50935),w=r(33145),x=r(60018),v=r(37478),b=r(63414);let y=["email","password"];var N=function(){var e,t;let[r,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(""),[h,N]=(0,s.useState)(!1),S=(0,i.cI)({resolver:(0,o.L)(g),defaultValues:{email:"",password:""}}),A=(0,m.xq)(),D=(0,n.useSearchParams)(),T=e=>{let t=new FormData(e);y.forEach(e=>{let r=t.get(e);"string"==typeof r&&r!==S.getValues(e)&&S.setValue(e,r,{shouldDirty:!0,shouldTouch:!0})})},j=async e=>{c(!0);let t=localStorage.getItem("JOBID"),r=localStorage.getItem("LASTROUTE");try{let a=await (0,p.zB)("credentials",{...e,redirect:!0,methodType:"signin",callbackUrl:window.location.pathname},{methodType:"signin",jobId:t});if(c(!1),(null==a?void 0:a.status)===200){if(N(!0),t&&localStorage.removeItem("JOBID"),r)return localStorage.removeItem("LASTROUTE"),A.replace(r);return A.push("/user/dashboard")}}catch(e){c(!1),console.log("Err",e)}},L=e=>(0,p.zB)(e,{methodType:"signin",callbackUrl:window.location.pathname,redirect:!0},{methodType:"signin"}),O=async e=>{e.preventDefault(),T(e.currentTarget),await S.handleSubmit(j)(e)};return(0,s.useEffect)(()=>{let e=D.get("error");e&&u(b.Ny[e]||"Something went wrong!")},[D.get("error")]),(0,a.jsxs)(a.Fragment,{children:[h&&(0,a.jsx)("div",{className:"fixed inset-0 bg-white bg-opacity-75 flex items-center justify-center z-50",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary mb-4"}),(0,a.jsx)("p",{className:"text-slate-900",children:"Logging you in..."})]})}),(0,a.jsxs)("div",{className:"w-full flex flex-col",children:[(0,a.jsxs)(l.z,{onClick:()=>L("google"),variant:"outline",className:"py-5",children:[(0,a.jsx)(w.default,{src:x.o.SOCIAL_ICON.google,width:20,height:20,alt:"google",className:"mr-2",style:{maxWidth:"100%",height:"auto"}}),"Sign in with Google"]}),(0,a.jsxs)(l.z,{variant:"outline",onClick:()=>L("facebook"),className:"py-5 bg-[#0866FF] text-white mt-4",children:[(0,a.jsx)(w.default,{src:x.o.SOCIAL_ICON.white_facebook,width:20,height:20,alt:"google",className:"mr-2",style:{maxWidth:"100%",height:"auto"}}),"Sign in with Facebook"]})]}),(0,a.jsx)(i.RV,{...S,children:(0,a.jsxs)("form",{id:"signin-form",className:"w-full",onSubmit:O,children:[(0,a.jsx)(v.Z,{name:"email",type:"email",error:null==S?void 0:null===(e=S.formState)||void 0===e?void 0:e.errors,label:"Email",mainClassName:"mt-4"}),(0,a.jsx)(v.Z,{name:"password",error:null==S?void 0:null===(t=S.formState)||void 0===t?void 0:t.errors,label:"Password",type:"password",mainClassName:"mt-4"}),(0,a.jsx)(f.default,{className:"mt-2 block text-slate-600 md:text-md text-sm font-normal underline",href:"/auth/forget-password",children:"Forget Password?"}),(0,a.jsx)(E.pf,{className:"text-red-400 font-medium mt-3",children:d}),(0,a.jsx)(l.z,{id:"signin-submit",variant:"default",type:"submit",loader:r,className:"w-full mt-6 text-slate-900 hover:text-primary hover:border hover:border-primary cursor-pointer",children:"Login"})]})})]})}},63414:function(e,t,r){"use strict";r.d(t,{L8:function(){return s},Ny:function(){return l},OE:function(){return i}});var a=r(27670);let s=25,i={ROLE:{ADMIN_DASHBOARD:{url:["/admin/*/*","/user/*"],permission:["CREATE","READ","UPDATE","DELETE"]},MANAGE_JOB_LISTING_DASHBOARD:{url:["/user/*"],permission:["CREATE","READ","UPDATE","DELETE"]},USER_DASHBOARD:{url:["/user/dashboard/*"],permission:["CREATE","READ","UPDATE","DELETE"]}},PROFILE:["/auth/complete-profile"],EXCLUDE:["/_next","/favicon.ico","/assets","/api"]};class o extends a.UC{}o.type="Verification";let l={CredentialsSignin:"Invalid email or password. Please retry",Verification:"Locked out after too many failed attempts. Please start Forgot Password flow."}}},function(e){e.O(0,[8218,2897,1886,2972,826,6087,5878,7670,3621,3013,5107,2605,2971,2117,1744],function(){return e(e.s=8805)}),_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.