1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,802002,e=>{"use strict";var r=e.i(696300);e.s(["SubmitButton",()=>r.default])},864438,e=>{e.v({name:"@job-link/web",version:"1.5.0",private:!0,scripts:{dev:"next dev -p 4000",build:"next build",start:"next start",lint:"eslint --max-warnings 0",typecheck:"tsc --noEmit",test:"jest","test:watch":"jest --watch","test:coverage":"jest --coverage"},dependencies:{"@aws-amplify/adapter-nextjs":"^1.7.2","@bprogress/next":"^3.2.12","@emotion/cache":"^11.14.0","@emotion/react":"^11.14.0","@emotion/styled":"^11.14.0","@fortawesome/fontawesome-svg-core":"^7.0.1","@fortawesome/pro-solid-svg-icons":"^7.0.1","@fortawesome/react-fontawesome":"^3.0.2","@googlemaps/js-api-loader":"^1.16.10","@hookform/resolvers":"^5.2.1","@mui/icons-material":"^7.0.1","@mui/material":"^7.0.1","@mui/material-nextjs":"^7.3.7","@mui/x-data-grid":"^8.7.0","@stripe/react-stripe-js":"^4.0.2","@stripe/stripe-js":"^7.9.0","@t3-oss/env-nextjs":"^0.13.8","aws-amplify":"^6.16.2",bytes:"^3.1.2",clsx:"^2.1.1",compressorjs:"^1.2.1","cookies-next":"^5.1.0","country-state-city":"^3.2.1",dayjs:"^1.11.13",deepmerge:"^4.3.1",firebase:"^12.14.0",jose:"^6.0.12","libphonenumber-js":"^1.12.25",next:"16.1.1","next-intl":"^4.7.0",pino:"^9.6.0","pino-pretty":"^13.0.0",qs:"^6.14.0",react:"19.2.3","react-avatar-editor":"^14.0.0","react-device-detect":"^2.2.3","react-countdown":"^2.3.6","react-dom":"19.2.3","react-error-boundary":"^6.1.1","react-hook-form":"^7.55.0","react-international-phone":"^4.5.0","server-only":"^0.0.1","url-join":"^5.0.0",zod:"^4.0.15"},devDependencies:{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@svgr/webpack":"^8.1.0","@types/bytes":"^3.1.5","@types/google.maps":"^3.58.1","@types/lodash":"^4.17.16","@types/qs":"^6.14.0","@types/react":"19.2.8","@types/react-avatar-editor":"^13.0.4","@types/react-dom":"19.2.3",autoprefixer:"^10.4.20",lodash:"^4.17.21",typescript:"~5.7.2",yoctocolors:"^2.1.1"}})},848136,e=>{"use strict";var r=e.i(19549);e.s(["typographyClasses",()=>r.default])},447221,e=>{"use strict";var r=e.i(5014);e.s(["Typography",()=>r.default])},76305,e=>{"use strict";e.i(842232);var r=e.i(81524),t=e.i(7284),s=e.i(330204),o=e.i(770723),i=e.i(647809),n=e.i(64014),a=e.i(718158),d=e.i(627001);function m(e){return(0,d.default)("MuiCard",e)}(0,a.default)("MuiCard",["root"]);var l=e.i(506236);let c=(0,o.styled)(n.default,{name:"MuiCard",slot:"Root",overridesResolver:(e,r)=>r.root})({overflow:"hidden"}),p=r.forwardRef(function(e,r){let o=(0,i.useDefaultProps)({props:e,name:"MuiCard"}),{className:n,raised:a=!1,...d}=o,p={...o,raised:a},u=(e=>{let{classes:r}=e;return(0,s.default)({root:["root"]},m,r)})(p);return(0,l.jsx)(c,{className:(0,t.default)(u.root,n),elevation:a?8:void 0,ref:r,ownerState:p,...d})});e.s(["default",0,p],76305)},16667,e=>{"use strict";var r=e.i(585168);e.s(["FormTextField",()=>r.default])},228558,814756,824174,e=>{"use strict";(t=i||(i={})).EmptySignInUsername="EmptySignInUsername",t.EmptySignInPassword="EmptySignInPassword",t.CustomAuthSignInPassword="CustomAuthSignInPassword",t.EmptySignUpUsername="EmptySignUpUsername",t.EmptySignUpPassword="EmptySignUpPassword",t.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",t.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",t.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",t.EmptyChallengeResponse="EmptyChallengeResponse",t.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",t.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",t.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",t.EmptyResetPasswordUsername="EmptyResetPasswordUsername",t.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",t.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",t.IncorrectMFAMethod="IncorrectMFAMethod",t.EmptyUpdatePassword="EmptyUpdatePassword",t.InvalidPreferredChallenge="InvalidPreferredChallenge",e.s(["AuthValidationErrorCode",()=>i],814756);let r={[i.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[i.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[i.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[i.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[i.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[i.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[i.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[i.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[i.EmptySignInPassword]:{message:"password is required to signIn"},[i.EmptySignInUsername]:{message:"username is required to signIn"},[i.EmptySignUpPassword]:{message:"password is required to signUp"},[i.EmptySignUpUsername]:{message:"username is required to signUp"},[i.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[i.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[i.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[i.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[i.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[i.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};(s=n||(n={}
1)).DEFAULT_MSG="Authentication Error",s.EMPTY_EMAIL="Email cannot be empty",s.EMPTY_PHONE="Phone number cannot be empty",s.EMPTY_USERNAME="Username cannot be empty",s.INVALID_USERNAME="The username should either be a string or one of the sign in types",s.EMPTY_PASSWORD="Password cannot be empty",s.EMPTY_CODE="Confirmation code cannot be empty",s.SIGN_UP_ERROR="Error creating account",s.NO_MFA="No valid MFA method provided",s.INVALID_MFA="Invalid MFA type",s.EMPTY_CHALLENGE="Challenge response cannot be empty",s.NO_USER_SESSION="Failed to get the session because the user is empty",s.NETWORK_ERROR="Network Error",s.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",s.AUTOSIGNIN_ERROR="Please use your credentials to sign in",s.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings",(o=a||(a={})).SignInException="SignInException",o.OAuthSignInError="OAuthSignInException",e.s(["AuthErrorCodes",()=>a,"validationErrorMap",()=>r],824174);var t,s,o,i,n,a,d=e.i(852354);function m(e,t){let{message:s,recoverySuggestion:o}=r[t];if(!e)throw new d.AuthError({name:t,message:s,recoverySuggestion:o})}e.s(["assertValidationError",()=>m],228558)},787834,e=>{"use strict";function r({username:e,userPoolId:r,userPoolClientId:t}){if("undefined"==typeof window)return;let s=window.AmazonCognitoAdvancedSecurityData;if(void 0===s)return;let o=s.getData(e,r,t);return o?{EncodedData:o}:{}}e.s(["getUserContextData",()=>r])},399841,400866,e=>{"use strict";var r;let t;function s(){return{active:!1}}let o=(t=(r=(e,r)=>{switch(r.type){case"SET_USERNAME":return{...e,username:r.value};case"SET_SESSION":return{...e,session:r.value};case"START":return{...e,active:!0};case"RESET":return s();default:return e}})(s(),{type:"RESET"}),{getState:()=>t,dispatch:e=>{t=r(t,e)}});function i(e){}function n(e=!0){o.dispatch({type:"RESET"})}e.s(["autoSignInStore",()=>o],400866),e.i(852354),e.i(535737),e.s(["resetAutoSignIn",()=>n,"setAutoSignIn",()=>i],399841)},995675,e=>{"use strict";var r=e.i(734937),t=e.i(585967),s=e.i(256270),o=e.i(228558),i=e.i(814756),n=e.i(379261),a=e.i(233318),d=e.i(787834),m=e.i(246305),l=e.i(290599),c=e.i(744363),p=e.i(708846),u=e.i(562496),g=e.i(917795);async function y(e){let y,{username:f}=e;(0,o.assertValidationError)(!!f,i.AuthValidationErrorCode.EmptySignUpUsername);let E=r.Amplify.getConfig().Auth?.Cognito;(0,t.assertTokenProviderConfig)(E);let{userPoolClientId:h,userPoolId:S,userPoolEndpoint:w}=E,v=e.options?.clientMetadata,C=(0,d.getUserContextData)({username:f,userPoolId:S,userPoolClientId:h}),U=(y={endpointResolver:(0,g.createCognitoUserPoolEndpointResolver)({endpointOverride:w})},(0,m.composeServiceApi)(l.cognitoUserPoolTransferHandler,(0,c.createUserPoolSerializer)("ResendConfirmationCode"),(0,p.createUserPoolDeserializer)(),{...u.DEFAULT_SERVICE_CLIENT_API_CONFIG,...y})),{CodeDeliveryDetails:P}=await U({region:(0,n.getRegionFromUserPoolId)(E.userPoolId),userAgentValue:(0,a.getAuthUserAgentValue)(s.AuthAction.ResendSignUpCode)},{Username:f,ClientMetadata:v,ClientId:E.userPoolClientId,UserContextData:C}),{DeliveryMedium:R,AttributeName:A,Destination:I}={...P};return{destination:I,deliveryMedium:R,attributeName:A||void 0}}e.s(["resendSignUpCode",()=>y],995675)},51615,e=>{"use strict";var r=e.i(856404),t=e.i(580954),s=e.i(916859),o=e.i(655608),i=e.i(36141),n=e.i(447221),a=e.i(613861);e.i(134385);var d=e.i(16667),m=e.i(802002);e.i(494721);var l=e.i(994029),c=e.i(309382);let p=(0,c.createServerReference)("005048a2fac64392ab808ba09e7fee484cfa750bd0",c.callServer,void 0,c.findSourceMapURL,"deleteLoginRedirectAlertCookie");var u=e.i(578354),g=e.i(995675),y=e.i(876566),f=e.i(81524),E=e.i(282291);let h=E.object({username:E.string().nonempty(),password:E.string().nonempty()}).required();var S=e.i(603125),w=e.i(321715),v=e.i(336878),C=e.i(270286),U=e.i(613477);e.s(["default",0,({invitedEmail:e,initialLoginAlertKey:c=null})=>{let E=(0,w.useRouter)(),P=(0,C.useTranslations)(),R=(0,v.useSearchParams)().get("redirectUrl"),A=(0,a.useForm)({resolver:(0,U.zodResolver)(h),mode:"onTouched",defaultValues:{username:e}}),[I,b]=(0,f.useState)(!1),[T]=(0,f.useState)(()=>c?l.LOGIN_PAGE_ALERT[c]:null),[x,j]=(0,f.useState)(!1),{handleSubmit:_,formState:M,setError:F,watch:O,clearErrors:L}=A,{errors:N,isValid:G}=M,k=(0,f.useRef)(null),q=O("username");(0,f.useEffect)(()=>{c&&p()},[c]),(0,f.useEffect)(()=>{N.root?.server?.type==="confirmSignUp"&&L("root.server")},[q,L]);let D=async e=>{j(!0);try{let{nextStep:r,isSignedIn:t}=await (0,y.signIn)({...e,options:{authFlowType:"USER_PASSWORD_AUTH"}});t&&E.replace(R??"/");let s=l.SIGN_IN_STEP_TO_UI[r.signInStep];s&&F("root.server",{type:s.type,message:P(s.messageKey)})}catch(t){S.logger.error(t,"Sign-in error");let e=t instanceof Error?t:{name:void 0,message:""},r=(0,l.getLoginErrorMessageKey)(e.name,e.message??"");F("root.server",{message:r?P(r):P("LoginForm.errors.unexpected_error")})}},z=async()=>{try{b(!0);let{destination:e}=await (0,g.resendSignUpCode)({username:A.getValues("username")}),{success:r}=await (0,u.setEmailVerificationCookie)({username:A.getValues("username"),destination:e});if(!r)throw Error("Failed to set email verification cookie");E.push("/email-verification")}catch(e){S.logger.error(e,"Error resending sign up email"),F("root.server",{type:"confirmSignUp",message:P("LoginForm.errors.resend_email_error")})}finally{b(!1)}};return(0,r.jsx)(a.FormProvider,{...A,children:(0,r.jsxs)(o.Grid,{ref:k,container:!0,component:"form",onSubmit:_(D),children:[(!!N.root?.server||!!T&&!x)&&(0,r.jsxs)(o.Grid,{size:12,mb:2,children:[!!N.root?.server&&(0,r.jsx)(t.Alert,{severity:"error",action:N.root?.server?.type==="confirmSignUp"?(0,r.jsx)(s.Button,{loading:I,variant:"text",color:"inherit",size:"small",onClick:z,children:P("LoginForm.buttons.resend")}):N.root?.server?.type==="resetPassword"?(0,r.jsx)(s.Button,{variant:"text",color:"inherit",size:"small",href:"/forgot-password",children:P("LoginForm.buttons.forgot_password")}):void 0,children:N.root.server.message}),T&&!N.root?.server&&!x&&(0,r.jsx)(t.Alert,{severity:T.severity,children:P(T.messageKey)})]}),(0,r.jsx)(o.Grid,{size:12,display:"flex",justifyContent:"center",children:(0,r.jsx)(n.Typography,{variant:"subtitle1",children:P("LoginForm.description")})}),(0,r.jsxs)(o.Grid,{size:12,container:!0,justifyContent:"center",px:5,children:[(0,r.jsx)(o.Grid,{size:12,children:(0,r.jsx)(d.FormTextField,{name:"username",label:P("LoginForm.labels.username"),placeholder:P("LoginForm.placeholders.username")})}),(0,r.jsx)(o.Grid,{size:12,children:(0,r.jsx)(d.FormTextField,{name:"password",type:"password",label:P("LoginForm.labels.password"),placeholder:P("LoginForm.placeholders.password")})})]}),(0,r.jsx)(o.Grid,{size:12,display:"flex",justifyContent:"center",children:(0,r.jsx)(i.Link,{sx:{mt:1,mb:2},href:"/forgot-password",children:P("LoginForm.buttons.forgot_password")})}),(0,r.jsxs)(o.Grid,{container:!0,size:12,columnGap:2,justifyContent:"center",children:[(0,r.jsx)(o.Grid,{size:5,display:"flex",justifyContent:"flex-end",children:(0,r.jsx)(m.SubmitButton,{disabled:!G,children:P("LoginForm.buttons.login")})}),(0,r.jsx)(o.Grid,{size:5,children:(0,r.jsx)(s.Button,{variant:"outlined",size:"large",href:{pathname:"/register",...e&&{query:{email:e}}},children:P("LoginForm.buttons.register")})})]})]})})}],51615)}]);
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.