1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{43274:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(66845)}])},59178:(e,s,t)=>{"use strict";t.d(s,{A:()=>o});var r=t(37876),n=t(30051),l=t(62276),i=t(48230),a=t.n(i);t(14232);let o=e=>{var s,t,i,o,d,c,m,u,x,g,h,p,v,f,j,b,N,y;let{children:k,rightBtn:_,isLoginPage:w=!0,isSignUpPage:A=!1,isResetPasswordPage:E=!1}=e,P=null==(t=l.g.signIn_page)||null==(s=t.blockquote)?void 0:s.text,q=null==(o=l.g.signIn_page)||null==(i=o.blockquote)?void 0:i.author,z=null==(d=l.g.signIn_page)?void 0:d.title,C=l._?"Try sing in with a demo account (demo/demo).":null==(c=l.g.signIn_page)?void 0:c.sub_title;return A&&(P=null==(u=l.g.signUp_page)||null==(m=u.blockquote)?void 0:m.text,q=null==(g=l.g.signUp_page)||null==(x=g.blockquote)?void 0:x.author,z=null==(h=l.g.signUp_page)?void 0:h.title,C=null==(p=l.g.signUp_page)?void 0:p.sub_title),E&&(P=null==(f=l.g.resetPassword_page)||null==(v=f.blockquote)?void 0:v.text,q=null==(b=l.g.resetPassword_page)||null==(j=b.blockquote)?void 0:j.author,z=null==(N=l.g.resetPassword_page)?void 0:N.title,C=null==(y=l.g.resetPassword_page)?void 0:y.sub_title),(0,r.jsxs)("div",{className:"not-dark container relative h-screen min-h-[600px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0 xl:min-h-[800px] dark:bg-zinc-950",children:[(0,r.jsx)(a(),{className:"focus-visible:ring-ring absolute right-4 top-4 hidden h-9 items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-neutral-100 focus-visible:outline-hidden focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 md:right-8 md:top-8 lg:inline-flex dark:hover:bg-neutral-700",href:_.href,children:_.text}),(0,r.jsxs)("div",{className:"dark relative hidden h-full flex-col overflow-y-auto border-zinc-800 p-10 text-neutral-100 lg:flex dark:border-r",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-zinc-900"}),(0,r.jsx)("div",{className:"dark relative z-20 flex items-center text-lg font-medium",children:(0,r.jsx)(n.A,{})}),(0,r.jsx)("div",{className:"relative z-20 mt-auto max-w-(--breakpoint-sm)",children:(0,r.jsxs)("blockquote",{className:"space-y-2",children:[(0,r.jsxs)("p",{className:"text-lg",children:["â",P,"â"]}),(0,r.jsx)("footer",{className:"text-sm",children:q})]})})]}),(0,r.jsx)("div",{className:"pb-8 pt-12 sm:py-8 lg:p-8",children:(0,r.jsxs)("div",{className:"mx-auto flex w-full flex-col justify-center space-y-8 sm:w-96 sm:space-y-10",children:[(0,r.jsxs)("div",{className:"flex flex-col text-center",children:[(0,r.jsx)("div",{className:"relative z-20 flex items-center justify-center pb-10 text-lg font-medium lg:hidden",children:(0,r.jsx)(n.A,{})}),(0,r.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:z}),(0,r.jsx)("p",{className:"text-muted-foreground mt-2 text-sm",children:C})]}),k]})})]})}},66845:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>p});var r=t(37876),n=t(56042),l=t(66453),i=t(85300),a=t(72187),o=t(40959),d=t(59178),c=t(17633),m=t(64177),u=t(48230),x=t.n(u),g=t(14232),h=t(97685);function p(){var e;let[s,t]=(0,g.useState)(""),u=(0,c.A)(),[p,{loading:v,data:f,error:j,called:b}]=(0,m.n)((0,n.J1)('\n mutation mutationSendPasswordResetEmail($username: String = "") {\n sendPasswordResetEmail(input: { username: $username }) {\n clientMutationId\n success\n }\n }\n '),{onCompleted:e=>{var s;(null==e||null==(s=e.sendPasswordResetEmail)?void 0:s.success)&&h.Ay.success("A password reset link has been sent to your email!",{position:"bottom-center"})},onError:e=>{h.Ay.error(e.message,{position:"bottom-center"})}});return(0,r.jsx)(d.A,{isResetPasswordPage:!0,rightBtn:{text:u["Sign in"],href:"/login"},children:b&&(null==f||null==(e=f.sendPasswordResetEmail)?void 0:e.success)?(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-sm text-green-600",children:u["A password reset link has been sent to your email!"]}),(0,r.jsxs)("p",{className:"mt-4 text-center text-sm leading-6 text-neutral-500 dark:text-neutral-400",children:[(0,r.jsx)(x(),{href:"/",className:"text-primary-600 underline-offset-2 hover:text-primary-500 hover:underline dark:text-primary-400",children:u["Back to home"]}),(0,r.jsx)("span",{className:"mx-1",children:"|"}),(0,r.jsx)(x(),{href:"/login",className:"text-primary-600 underline-offset-2 hover:text-primary-500 hover:underline dark:text-primary-400",children:u.Login})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid gap-6",children:(0,r.jsx)("form",{onSubmit:e=>{if(e.preventDefault(),!s)return void h.Ay.error(u["Email or username are required!"],{position:"bottom-center"});p({variables:{username:s}})},children:(0,r.jsxs)("div",{className:"grid gap-4",children:[(0,r.jsxs)("div",{className:"grid gap-1.5",children:[(0,r.jsx)(o.A,{htmlFor:"username",children:u["Email or username"]}),(0,r.jsx)(a.A,{id:"username",placeholder:u["Email or username"],autoCapitalize:"none",autoCorrect:"off",type:"text",required:!0,onChange:e=>t(e.target.value)})]}),(0,r.jsxs)("div",{className:"grid",children:[(0,r.jsx)(l.A,{loading:v,children:u["Reset password"]}),!!(null==j?void 0:j.message)&&(0,r.jsx)(i.A,{className:"mt-2 text-center",error:j.message})]})]})})}),(0,r.jsxs)("p",{className:"text-center text-sm leading-6 text-neutral-500 dark:text-neutral-400",children:[u["Not a member?"]," ",(0,r.jsx)(x(),{href:"/sign-up",className:"text-primary-600 underline-offset-2 hover:text-primary-500 hover:underline dark:text-primary-400",children:u["Sign up"]}),(0,r.jsx)("span",{className:"mx-1",children:"|"}),(0,r.jsx)(x(),{href:"/login",className:"text-primary-600 underline-offset-2 hover:text-primary-500 hover:underline dark:text-primary-400",children:u.Login})]})]})})}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=43274)),_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.