Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[8392],{93290:function(e,t,n){var a=n(8081),s=n.n(a),r=n(23645),l=n.n(r)()(s());l.push([e.id,'/*\n * Copyright 2022 Collate.\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n.forgot-password-container .success-alert {\n border-color: #a9dcb5;\n}\n.forgot-password-container input.forgot-email-input {\n border-color: var(--ant-error-color);\n}\n.forgot-password-container input.forgot-email-input:focus {\n outline: none;\n border-color: 1px solid var(--ant-error-color);\n}\n.forgot-password-container input.forgot-email-input:hover {\n border-color: var(--ant-error-color);\n}\n',""]),t.Z=l},8392:function(e,t,n){n.r(t),n.d(t,{default:function(){return F}});var a=n(70655),s=n(53014),r=n(91894),l=n(71230),o=n(15746),i=n(56256),c=n(49409),m=n(4107),u=n(71577),d=n(27049),p=n(67294),f=n(68432),g=n(15137),h=n(86442),b=n(71001),E=n(97725),y=n(62761),Z=n(93379),x=n.n(Z),N=n(7795),w=n.n(N),v=n(90569),S=n.n(v),C=n(3565),I=n.n(C),k=n(19216),L=n.n(k),T=n(44589),A=n.n(T),R=n(93290),O={};O.styleTagTransform=A(),O.setAttributes=I(),O.insert=S().bind(null,"head"),O.domAPI=w(),O.insertStyleElement=L(),x()(R.Z,O),R.Z&&R.Z.locals&&R.Z.locals;var F=function(){var e=(0,f.$)().t,t=(0,b.xi)().handleForgotPassword,n=(0,g.k6)(),Z=(0,a.CR)((0,p.useState)(!1),2),x=Z[0],N=Z[1],w=(0,a.CR)((0,p.useState)(!1),2),v=w[0],S=w[1],C=(0,p.useCallback)((function(e){return(0,a.mG)(void 0,void 0,void 0,(function(){return(0,a.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,4,5]),N(!0),t?[4,t(e.email)]:[3,2];case 1:n.sent(),n.label=2;case 2:return S(!0),[3,5];case 3:return n.sent(),S(!1),[3,5];case 4:return N(!1),[7];case 5:return[2]}}))}))}),[S,t]);return p.createElement("div",{className:"h-full py-24 forgot-password-container ","data-testid":"forgot-password-container"},p.createElement(r.Z,{bodyStyle:{padding:"48px"},className:"m-auto",style:{maxWidth:"430px"}},p.createElement(l.Z,{gutter:[16,24]},p.createElement(o.Z,{className:"text-center",span:24},p.createElement(E.Z,{className:"m-auto",height:"auto",width:200})),p.createElement(o.Z,{className:"flex-center text-center mt-8",span:24},p.createElement(i.Z.Text,{className:"text-xl font-medium text-grey-muted"},e("message.enter-your-registered-email"))),p.createElement(c.Z,{className:"w-full",labelCol:{span:24},onFinish:C},p.createElement(o.Z,{span:24},p.createElement(c.Z.Item,{label:e("label.email"),name:"email",rules:[{required:!0,type:"email",message:e("label.field-invalid",{field:e("label.email")})}]},p.createElement(m.Z,{type:"email"}))),p.createElement(o.Z,{className:"m-t-md",span:24},p.createElement(u.Z,{block:!0,htmlType:"submit",loading:x,type:"primary"},e("label.submit")))),v&&p.createElement(o.Z,{span:24},p.createElement("div",{className:"flex flex-col","data-testid":"success-screen-container"},p.createElement("div",{className:"flex global-border rounded-4 p-sm success-alert"},p.createElement("div",{className:"m-r-xs"},p.createElement(s.Z,{className:"align-middle",component:h.ReactComponent,"data-testid":"success-icon",style:{fontSize:"20px"}})),p.createElement("p",{"data-testid":"success-line"},p.createElement("span",null,e("message.reset-link-has-been-sent")))))),p.createElement(d.Z,{className:"w-min-0 mt-8 mb-12 justify-center items-start p-x-xs"},p.createElement(i.Z.Text,{className:"text-sm",type:"secondary"},e("label.or-lowercase"))),p.createElement(o.Z,{span:24},p.createElement(u.Z,{ghost:!0,className:"w-full","data-testid":"go-back-button",type:"primary",onClick:function(){return n.push(y.Z6.SIGNIN)}},e("message.go-back-to-login-page"))))))}}}]);