PageSourceSearch

https://www.careerfairy.io/_next/static/chunks/pages/reset-password-6c48aafc14782e89.js

js careerfairy.io collected 2026-09-24 12:07:05 UTC 10,347 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f72594ef-bc2c-4ee9-a7fc-f274be7abc59",e._sentryDebugIdIdentifier="sentry-dbid-f72594ef-bc2c-4ee9-a7fc-f274be7abc59")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8006],{24137:function(e,r,t){"use strict";var i=t(71600);r.Z=void 0;var n=i(t(68671)),o=t(52322),a=(0,n.default)((0,o.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");r.Z=a},51460:function(e,r,t){"use strict";var i=t(71600);r.Z=void 0;var n=i(t(68671)),o=t(52322),a=(0,n.default)((0,o.jsx)("path",{d:"M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-6 0h-4V5h4v2z"}),"BusinessCenter");r.Z=a},44270:function(e,r,t){"use strict";var i=t(71600);r.Z=void 0;var n=i(t(68671)),o=t(52322),a=(0,n.default)((0,o.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),"Mic");r.Z=a},86617:function(e,r,t){"use strict";t.d(r,{Z:function(){return y}});var i=t(31461),n=t(7896),o=t(2784),a=t(40489),s=t(6970),l=t(76224),d=t(80599),u=t(37870),c=t(99423),h=t(59708),g=t(52322);let m=["className","component","disableGutters","fixed","maxWidth","classes"],p=(0,h.Z)(),f=(0,c.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[`maxWidth${(0,d.Z)(String(t.maxWidth))}`],t.fixed&&r.fixed,t.disableGutters&&r.disableGutters]}}),useThemePropsDefault=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:p}),useUtilityClasses=(e,r)=>{let{classes:t,fixed:i,disableGutters:n,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,d.Z)(String(o))}`,i&&"fixed",n&&"disableGutters"]};return(0,l.Z)(a,e=>(0,s.ZP)(r,e),t)};var x=t(7342),b=t(65992),v=t(43853);let k=function(e={}){let{createStyledComponent:r=f,useThemeProps:t=useThemePropsDefault,componentName:s="MuiContainer"}=e,l=r(({theme:e,ownerState:r})=>(0,n.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:r})=>r.fixed&&Object.keys(e.breakpoints.values).reduce((r,t)=>{let i=e.breakpoints.values[t];return 0!==i&&(r[e.breakpoints.up(t)]={maxWidth:`${i}${e.breakpoints.unit}`}),r},{}),({theme:e,ownerState:r})=>(0,n.Z)({},"xs"===r.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[e.breakpoints.up(r.maxWidth)]:{maxWidth:`${e.breakpoints.values[r.maxWidth]}${e.breakpoints.unit}`}})),d=o.forwardRef(function(e,r){let o=t(e),{className:d,component:u="div",disableGutters:c=!1,fixed:h=!1,maxWidth:p="lg"}=o,f=(0,i.Z)(o,m),x=(0,n.Z)({},o,{component:u,disableGutters:c,fixed:h,maxWidth:p}),b=useUtilityClasses(x,s);return(0,g.jsx)(l,(0,n.Z)({as:u,ownerState:x,className:(0,a.Z)(b.root,d),ref:r},f))});return d}({createStyledComponent:(0,b.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[`maxWidth${(0,x.Z)(String(t.maxWidth))}`],t.fixed&&r.fixed,t.disableGutters&&r.disableGutters]}}),useThemeProps:e=>(0,v.Z)({props:e,name:"MuiContainer"})});var y=k},63651:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(3879)}])},94278:function(e,r,t){"use strict";t.d(r,{GF:function(){return PillsBackground},ZP:function(){return GlobalBackground},oi:function(){return g},yK:function(){return h}});var i=t(72155),n=t(31499),o=t(24022),a=t(83286),s=t(52322),l=t(42921),d=t(28165),u=t(95680),c={globalBackgroundStyles:{height:"100%",minHeight:"100vh",backgroundColor:function(e){return"dark"===e.palette.mode?"background.default":"rgb(250,250,250)"}}
1,greyBackgroundStyles:{display:"flex",flexDirection:"column",backgroundColor:function(e){return"dark"===e.palette.mode?"background.default":"rgb(230,230,230)"},height:"100%",minHeight:"100vh"},darkBackgroundStyles:{backgroundColor:"rgb(44, 66, 81)",minHeight:"100%"},mobileBackgroundStyles:{backgroundColor:"rgb(250,250,250)",height:"100%"},tealBackgroundStyles:{backgroundColor:"primary.main",height:"100%",minHeight:"100vh",padding:"0 0 40px 0",display:"flex",flexDirection:"column"},themedBackgroundStyles:{backgroundColor:"primary.main",height:"100%",minHeight:"100vh",padding:"0 0 40px 0"},darkThemedBackgroundStyles:{backgroundColor:"primary.dark",height:"100%",minHeight:"100vh",padding:"0 0 40px 0",display:"flex",flexDirection:"column"},paperBackground:{minHeight:"100vh",display:"flex",flexDirection:"column",backgroundColor:"background.paper",height:"100%"},pillsBackground:function(e){var r=e.isOnDialog,t=e.isSmallBackground,i=e.bgColor,n=void 0===i?"":i,o=e.backgroundUrl,a=void 0===o?void 0:o;return{height:"100%",background:function(e){return n?"url(".concat(a||u.jY,") top left no-repeat, ").concat(n):"url(".concat(a||u.bI,") top left no-repeat, ").concat(e.palette.common.white)},backgroundSize:"auto ".concat(void 0!==r&&r?"60vh":void 0!==t&&t?"40vh":"120vh",", auto 100vh !important")}}},GlobalBackground=function(e){var r=(0,i._)({},(0,n._)(e));return(0,s.jsx)(l.Z,(0,o._)({sx:c.globalBackgroundStyles},r))},PillsBackground=function(e){var r=e.isSmallBackground,t=e.bgColor,i=e.backgroundUrl,n=(0,a._)(e,["isSmallBackground","bgColor","backgroundUrl"]);return(0,s.jsx)(l.Z,(0,o._)({sx:[c.pillsBackground({isOnDialog:null==n?void 0:n.isOnDialog,isSmallBackground:void 0===r?void 0:r,bgColor:void 0===t?"":t,backgroundUrl:void 0===i?void 0:i}),null==n?void 0:n.styles],minHeight:(null==n?void 0:n.minHeight)||"100vh"},n))},h=(0,d.F4)({"0%":{backgroundPosition:"0% 100%"},"50%":{backgroundPosition:"100% 0%"},"100%":{backgroundPosition:"0% 50%"}}),g=(0,d.F4)({"0%":{boxShadow:"0px 0px 0px 4px #e9911d"},"50%":{boxShadow:"0px 0px 0px 4px #dc2743"},"100%":{boxShadow:"0px 0px 0px 4px #e9911d"}})},3879:function(e,r,t){"use strict";t.r(r),t.d(r,{ResetPasswordBase:function(){return ResetPasswordBase}});var i=t(87963),n=t(52322),o=t(2784),a=t(50647),s=t(24137),l=t(51460),d=t(44270),u=t(90838),c=t(63397),h=t(5632),g=t(14647),m=t(42921),p=t(38677),f=t(64354),x=t(86617),b=t(95512),v=t(12115),k=t(53242),y=t(79312),Z=t(96607),S=t(97729),j=t.n(S),_=t(65413),w=t(58325),C=t(89178),B=t(32184),P=t(94278),W=t(83776),E=t(18231),R=t(34406),z=(0,W.e)({formWrapper:{p:{xs:2,sm:3},marginTop:3},formTitle:{color:"primary.main",fontWeight:"500",fontSize:"2em",mx:0,my:3,textAlign:"center"},logo:{margin:"20px 20px 0 20px"},footerInfo:{color:"black",fontWeight:"700",fontSize:"1.3em",margin:"40px 0 30px 0",textAlign:"center",textTransform:"uppercase",letterSpacing:"0.4em"},headerWrapper:{textAlign:"center"},icon:{margin:"0 10px"}}),I="true"===R.env.NEXT_PUBLIC_IS_VERCEL_PREVIEW;r.default=function(){var e,r,t=(0,C.a)().authenticatedUser,i=(0,h.useRouter)(),s=(0,a.oO)();return(0,o.useEffect)(function(){if(t.isLoaded&&!t.isEmpty){var e,r;(null===(r=s.auth)||void 0===r?void 0:null===(e=r.currentUser)||void 0===e?void 0:e.emailVerified)?i.replace("/profile"):i.replace("/signup")}},[t,null===(r=s.auth)||void 0===r?void 0:null===(e=r.currentUser)||void 0===e?void 0:e.emailVerified,i]),(0,n.jsxs)(P.GF,{children:[(0,n.jsx)(B.y7,{children:(0,n.jsx)(w.zU,{sx:z.logo})}),(0,n.jsx)(ResetPasswordBase,{})]})};var D=_.object().shape({email:_.string().trim().required("Your email is required").email("Please enter a valid email address")}),H={email:""};function ResetPasswordBase(){var e=(0,i._)((0,o.useState)(!1),2),r=e[0],t=e[1],h=(0,a.oO)(),S=(0,o.useCallback)(function(e,r){t(!1),h.sendPasswordResetEmail({recipientEmail:e.email,redirectLink:"".concat(I?g.o2:(0,Z.SV)(),"/login")}).catch(E.LS).finally(function(){t(!0),r.setSubmitting(!1),r.resetForm()})},[h]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j(),{children:(0,n.jsx)("title",{children:"CareerFairy | Reset Password"},"title")}),(0,n.jsxs)(x.Z,{maxWidth:"sm",children:[(0,n.jsx)(m.Z,{sx:z.formWrapper,children:(0,n.jsx)(c.J9,{initialValues:H,validationSchema:D,onSubmit:S,children:function(e){var t=e.values,i=e.errors,o=e.touched,a=e.handleChange,c=e.handleBlur,h=e.handleSubmit,g=e.isSubmitting;return(0,n.jsxs)("form",{id:"resetPasswordForm",onSubmit:h,children:[(0,n.jsxs)(m.Z,{sx:z.headerWrapper,children:[(0,n.jsx)(d.Z,{fontSize:"large",style:z.icon,
1color:"disabled"}),(0,n.jsx)(s.Z,{fontSize:"large",style:z.icon,color:"disabled"}),(0,n.jsx)(l.Z,{fontSize:"large",style:z.icon,color:"disabled"})]}),(0,n.jsx)(m.Z,{sx:z.formTitle,children:"CareerFairy"}),(0,n.jsx)(k.Z,{required:!0,name:"email",id:"email",placeholder:"Email",onBlur:c,onChange:a,value:t.email,disabled:g,label:"Email",variant:"outlined",className:"registrationInput",fullWidth:!0,error:!!(i.email&&o.email)}),(0,n.jsx)(f.Z,{in:!!(i.email&&o.email&&i.email),children:(0,n.jsx)(b.Z,{error:!0,children:i.email})}),(0,n.jsx)(p.Z,{type:"submit","data-testid":"password-reset-button",sx:{mt:2},disabled:g,startIcon:!!g&&(0,n.jsx)(u.Z,{color:"inherit",size:15}),color:"primary",variant:"contained",fullWidth:!0,children:"Reset Password"}),(0,n.jsx)(f.Z,{in:r,children:(0,n.jsxs)(v.Z,{variant:"outlined",sx:{p:1,mt:2},children:[(0,n.jsx)(y.Z,{variant:"h4",gutterBottom:!0,children:"Done!"}),(0,n.jsxs)(y.Z,{variant:"subtitle1",children:["If ","you're"," email is registered, you will shortly receive an email to complete your password reset."]})]})})]})}})}),(0,n.jsx)(y.Z,{sx:z.footerInfo,children:"Meet Your Future"})]})]})}},72155:function(e,r,t){"use strict";function _extends(){return(_extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}t.d(r,{_:function(){return _extends}})},31499:function(e,r,t){"use strict";function _object_destructuring_empty(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}t.d(r,{_:function(){return _object_destructuring_empty}})}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=63651)}),_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.