{"version":3,"file":"SendResetMailPage.1ecf05a4214071ada93a.js","mappings":"gPAYA,MAAMA,EAAmBC,GAAwBC,EAAAA,GAAI;WAC1CD,EAAME,OAAOC;eACTH,EAAMI,WAAWC,KAAKC;iBACpBN,EAAMI,WAAWG,OAAOC;gBACzBR,EAAMS,QAAQH;;EAIjBI,EAAwB,KAAM,QACzC,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,WAAS,GACrCC,GAASC,EAAAA,EAAAA,WAAUhB,GACnBiB,EAAa,GAAEC,EAAAA,GAAAA,kBASrB,OAAIN,GAEA,kCACE,0HADF,OAEE,SAAC,EAAAO,UAAD,CAAWC,OAAO,SAClB,SAAC,EAAAC,WAAD,CAAYC,QAAQ,UAAUC,KAAMN,EAApC,+BAOJ,SAAC,EAAAO,KAAD,CAAMC,SAnBUC,MAAAA,UACEC,EAAAA,EAAAA,iBAAgBC,KAAK,sCAAuCC,IAE5EhB,GAAa,IAgBf,SACG,cAAC,SAAEiB,EAAF,OAAYC,GAAb,SACC,uCACE,SAAC,EAAAC,OAAD,+BACA,SAAC,EAAAC,MAAD,CACEC,MAAM,OACNC,YAAY,yDACZC,UAAWL,EAAOM,YAClBC,MAAOP,MAAAA,GAAF,UAAEA,EAAQM,mBAAV,aAAE,EAAqBE,QAJ9B,UAME,SAAC,EAAAC,MAAD,eACEC,GAAG,aACHC,YAAY,qBACRZ,EAAS,cAAe,CAAEa,SAAU,sCAX9C,OAcE,UAAC,EAAAC,gBAAD,kBACE,SAAC,EAAAC,OAAD,CAAQC,KAAK,SAAb,gCACA,SAAC,EAAAzB,WAAD,CAAY0B,KAAK,OAAOxB,KAAMN,EAA9B,+BAhBJ,OAqBE,cAAG+B,UAAWjC,EAAd,gG,MC7DH,MAAMkC,EAAwB,IAAM,IAAN,GACnC,SAACC,EAAA,GAAD,WACE,SAAC,KAAD,WACE,SAACvC,EAAD,SAKN","sources":["webpack://grafana/./public/app/core/components/ForgottenPassword/ForgottenPassword.tsx","webpack://grafana/./public/app/core/components/ForgottenPassword/SendResetMailPage.tsx"],"sourcesContent":["import { css } from '@emotion/css';\nimport React, { FC, useState } from 'react';\n\nimport { GrafanaTheme } from '@grafana/data';\nimport { getBackendSrv } from '@grafana/runtime';\nimport { Form, Field, Input, Button, Legend, Container, useStyles, HorizontalGroup, LinkButton } from '@grafana/ui';\nimport config from 'app/core/config';\n\ninterface EmailDTO {\n userOrEmail: string;\n}\n\nconst paragraphStyles = (theme: GrafanaTheme) => css`\n color: ${theme.colors.formDescription};\n font-size: ${theme.typography.size.sm};\n font-weight: ${theme.typography.weight.regular};\n margin-top: ${theme.spacing.sm};\n display: block;\n`;\n\nexport const ForgottenPassword: FC = () => {\n const [emailSent, setEmailSent] = useState(false);\n const styles = useStyles(paragraphStyles);\n const loginHref = `${config.appSubUrl}/login`;\n\n const sendEmail = async (formModel: EmailDTO) => {\n const res = await getBackendSrv().post('/api/user/password/send-reset-email', formModel);\n if (res) {\n setEmailSent(true);\n }\n };\n\n if (emailSent) {\n return (\n
An email with a reset link has been sent to the email address. You should receive it shortly.
\n