1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3993],{7187:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(1808),o=r(91054);function i(e){var t,r,i=e.children,a=function(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(o=0,r=Reflect.ownKeys(Object(e));o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["children"]);return(0,n.jsx)(o.E,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},a),r=r={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}i.ariane={category:"typography",type:"component",status:"beta"}},17042:(e,t,r)=>{"use strict";r.d(t,{Mo:()=>l,Qu:()=>m,__:()=>d,a6:()=>u,gT:()=>s,ls:()=>p});var n=r(89100),o=r(62108),i=r(10337);let{tokenCookieName:a}=o.W,l=a,s="maze-has-logged-in",c=()=>{if((0,i.fU)())return;let{domain:e}=document,t=e.split(".").slice(1).join(".");return["localhost","127.0.0.1"].includes(e)?e:".".concat(t)},d=()=>(0,n.getCookie)(l)||(()=>{try{var e;return null==(e=localStorage)?void 0:e.getItem(l)}catch(e){return null}})(),u=(e,t,r,o)=>{(0,n.setCookie)(l,e,{domain:t||c(),expires:new Date(Date.now()+6048e5),secure:(0,i.KV)(),req:r,res:o})},p=()=>{(0,n.deleteCookie)(l,{domain:c()})},m=()=>{(0,n.setCookie)(s,1,{domain:c(),secure:!0})}},28476:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot",function(){return r(81723)}])},53164:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});class n{static setRef(e){n.INSTANCE=e}}},81594:(e,t,r)=>{"use strict";r.d(t,{c:()=>s,x:()=>u});var n=r(94118),o=r(9554),i=r(81222);function a(){let e=(0,o._)(["\n mutation requestResetPassword($email: String!) {\n requestResetPassword(email: $email) {\n id\n }\n }\n"]);return a=function(){return e},e}let l=(0,i.J1)(a()),s=async e=>{let{errors:t}=await n.V.mutate({mutation:l,variables:{email:e},errorPolicy:"all"});return t?{error:t[0].message}:null};function c(){let e=(0,o._)(["\n mutation resetPassword($token: String!, $password: String!) {\n resetPassword(token: $token, password: $password)\n }\n"]);return c=function(){return e},e}let d=(0,i.J1)(c()),u=async e=>{let{password:t,token:r}=e,{data:o,errors:i}=await n.V.mutate({mutation:d,variables:{password:t,token:r},errorPolicy:"all"});return i?{error:i[0].message}:null==o?void 0:o.resetPassword}},81723:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>N,default:()=>C});var n=r(1808),o=r(86318),i=r.n(o),a=r(60743),l=r(43793),s=r(47059),c=r(54654),d=r(1728),u=r(91054),p=r(19939),m=r(12904),f=r.n(m),h=r(4695),g=r.n(h),x=r(46426),w=r(73628),y=r(79304),j=r(8079),b=r(62192),v=r(81594),_=r(84579),O=r(7187),E=r(28264),S=r.n(E);let k=e=>{let{email:t}=e;return(0,n.jsx)(l.a,{flex:1,height:"100%",px:"60px",children:(0,n.jsxs)(c.s,{flexDirection:"column",justifyContent:"space-between",height:"100%",children:[(0,n.jsxs)(l.a,{mt:"20px",children:[(0,n.jsx)(S(),{width:120,height:120,src:"/auth/confirm_account_email.png",alt:"",role:"presentation"}),(0,n.jsx)(l.a,{mt:"16px",children:(0,n.jsx)(d.D,{level:1,children:"Check your email"})}),(0,n.jsxs)(l.a,{mt:"8px",children:[(0,n.jsxs)(u.E,{children:["We'll send an email to ",t," if it's associated with your account."]}),(0,n.jsx)(l.a,{mt:"16px",children:(0,n.jsx)(u.E,{children:"Bear in mind it will be valid for 30 minutes only."})})]})]}),(0,n.jsxs)(l.a,{py:"40px",children:[(0,n.jsx)(l.a,{mb:"8px",children:(0,n.jsxs)(u.E,{children:["Didn't receive our email?"," ",(0,n.jsx)(O.N,{
1color:"default.extra.awake",inline:!0,href:"https://help.maze.co/hc/en-us/requests/new",target:"_blank",children:"Contact support"})]})}),(0,n.jsxs)(c.s,{flexDirection:"row",gap:"4px",children:[(0,n.jsx)(u.E,{children:"Take me back to"}),(0,n.jsx)(g(),{passHref:!0,href:"/login/",legacyBehavior:!0,children:(0,n.jsx)(u.E,{color:"default.extra.awake",children:"login"})})]})]})]})})},P=()=>{var e,t;let r=(0,x.useRouter)(),{register:o,handleSubmit:i,getValues:a,formState:m}=(0,y.mN)({mode:"onTouched",defaultValues:{email:""}}),{ref:h,...O}=o("email",{required:"Enter your email address first",validate:e=>!!f()(e)||"Invalid email"}),[E,S]=(0,w.useState)(!1),P=async e=>{let{email:t}=e,n=await (0,v.c)(t);(null==n?void 0:n.error)||((0,_.M)("REQUEST_RESET_PASSWORD_COMPLETED"),S(!0)),(null==n?void 0:n.error)&&((0,j.toast)(n.error,{type:"error"}),r.push("/signup?email=".concat(encodeURIComponent(t))))};return E?(0,n.jsx)(k,{email:a("email")}):(0,n.jsx)(b.e,{children:(0,n.jsxs)(c.s,{flexDirection:"column",justifyContent:"space-between",height:"100%",mt:"20px",children:[(0,n.jsxs)(l.a,{children:[(0,n.jsx)(d.D,{level:1,children:"Reset password"}),(0,n.jsx)(l.a,{mt:"8px",mb:"40px",children:(0,n.jsx)(u.E,{children:"Type the email you used to sign up on Maze and we'll send you a password reset email."})}),(0,n.jsxs)("form",{onSubmit:i(P),"data-e2e":"forgot_password_form",children:[(0,n.jsx)(p.A,{label:"Email",type:"email",autoComplete:"email","data-e2e":"forgot_password_email_input",id:"forgot_password_email_input",inputRef:h,error:null!=(t=null==(e=m.errors.email)?void 0:e.message)?t:void 0,...O}),(0,n.jsx)(c.s,{mt:"24px",justifyContent:"flex-end",children:(0,n.jsx)(s.$,{type:"submit",waiting:m.isSubmitting,"data-e2e":"login_submit_button",size:"MD",children:"Send reset email"})})]})]}),(0,n.jsxs)(c.s,{flexDirection:"row",mb:"68px",gap:"4px",children:[(0,n.jsx)(u.E,{children:"Take me back to"}),(0,n.jsx)(g(),{passHref:!0,href:"/login/","data-e2e":"forgot_password_login_link",legacyBehavior:!0,children:(0,n.jsx)(u.E,{color:"default.extra.awake",children:"login"})})]})]})})};var N=!0;function C(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"Maze â Forgot password"})}),(0,n.jsx)(a.D,{leftColumnWidth:[1,1,1,"560px"],children:(0,n.jsx)(P,{})})]})}},84579:(e,t,r)=>{"use strict";r.d(t,{M:()=>i,l:()=>a});var n=r(89100),o=r(10337);let i=(e,t,r)=>{var n;if(!(0,o.fU)()&&void 0!==window.analytics)return null==(n=window.analytics)?void 0:n.track(e,t,r)},a=function(){var e;let{id:t,accessToken:r,userProfile:i,emailVerified:a,...l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,o.fU)()||void 0===window.analytics)return;let s=(0,n.getCookie)("testerId"),c=window.segmentHardcodedUserEnabled?1:t;null==(e=window.analytics)||e.identify(String(c),{userId:String(c),verified:a,...l,...i,testerId:s},{segmentHardcodedUserEnabled:window.segmentHardcodedUserEnabled,integrations:{Salesforce:!1}})}},94118:(e,t,r)=>{"use strict";r.d(t,{V:()=>j});var n=r(6168),o=r(72283),i=r(10159),a=r(56931),l=r(60842),s=r(61179),c=r(27549),d=r(89100),u=r(62108),p=r(67777),m=r(53164),f=r(10337),h=r(17042);let g=p.A.child({module:"maze-graph"}),x=(0,n.$)({uri:u.W.apiUrl}),w=(0,l.o)((e,t)=>{let{operationName:r}=e,{headers:n}=t,o=(0,h.__)();return(0,f.XV)(r)&&(o=null),{headers:{...n,...o?{authorization:o}:{}}}}),y=(0,s.S)(e=>{var t,r;let{graphQLErrors:n,networkError:o,operation:i,response:a}=e,l=null==(t=m.W.INSTANCE)?void 0:t.state.context.user,s=l?{...l,id:null==l||null==(r=l.id)?void 0:r.toString()}:{id:(0,d.getCookie)("ajs_anonymous_id")};o&&(g.error("[Network error]: ".concat(o.message),{userUuid:null==l?void 0:l.uuid,operationName:null==i?void 0:i.operationName}),c.datadogRum.addError(o,{user:s})),n&&0!==n.length&&n.forEach(e=>{var t,r;let{extensions:n,message:o,locations:d,path:u}=e,p=null!=(r=null==n||null==(t=n.response)?void 0:t.statusCode)?r:200,m=Math.floor(p/100);g.warn("[GraphQL error]: Message: ".concat(o,", Location: ").concat(JSON.stringify(d),", Path: ").concat(JSON.stringify(u)),{userUuid:null==l?void 0:l.uuid,operationName:null==i?void 0:i.operationName,response:a}),401===p?(0,h.ls)():(4===m||5===m)&&c.datadogRum.addError(e,{user:s,context:{o
1perationName:null==i?void 0:i.operationName,responseCode:p}})})}),j=new o.R({link:i.C.from([y,w,x]),cache:new a.D})}},e=>{e.O(0,[1448,7096,5966,3316,8904,5176,1226,978,7206,7059,9264,9939,636,6593,8792],()=>e(e.s=28476)),_N_E=e.O()}]); 2//# sourceMappingURL=forgot-97d671ef07bffb95.js.map
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.