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([[7071],{60505:function(e,t,s){var a=s(8081),n=s.n(a),r=s(23645),l=s.n(r)()(n());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.reset-logo {\n display: flex;\n justify-content: center;\n}\n.ant-col .reset-password-text {\n padding-left: 0px;\n}\n',""]),t.Z=l},43579:function(e,t,s){s.r(t),s.d(t,{default:function(){return R}});var a=s(70655),n=s(49409),r=s(91894),l=s(71230),i=s(15746),o=s(56256),d=s(4107),c=s(71577),m=s(80129),u=s.n(m),p=s(67294),w=s(68432),f=s(15137),h=s(71001),b=s(97725),g=s(62761),y=s(16139),x=s(46321),Z=s(93379),E=s.n(Z),N=s(7795),v=s.n(N),I=s(90569),S=s.n(I),T=s(3565),C=s.n(T),L=s(19216),P=s.n(L),A=s(44589),k=s.n(A),q=s(60505),O={};O.styleTagTransform=k(),O.setAttributes=C(),O.insert=S().bind(null,"head"),O.domAPI=v(),O.insertStyleElement=P(),E()(q.Z,O),q.Z&&q.Z.locals&&q.Z.locals;var R=function(){var e=(0,w.$)().t,t=(0,a.CR)(n.Z.useForm(),1)[0],s=(0,f.TH)(),m=(0,h.xi)().handleResetPassword,Z=(0,f.k6)(),E=(0,p.useMemo)((function(){var e=s.search;return u().parse(e.startsWith("?")?e.substring(1):e)}),[s]),N=n.Z.useWatch("password",t);return p.createElement("div",{className:"h-full p-y-36","data-testid":"reset-password-container"},p.createElement(r.Z,{bodyStyle:{padding:"48px"},className:"m-auto p-x-lg",style:{maxWidth:"450px"}},p.createElement(l.Z,{gutter:[16,24]},p.createElement(i.Z,{className:"text-center","data-testid":"brand-image",span:24},p.createElement(b.Z,{className:"m-auto",height:"auto",width:200})),p.createElement(i.Z,{className:"mt-12 text-center",span:24},p.createElement(o.Z.Text,{className:"text-xl font-medium text-grey-muted"},e("label.reset-your-password"))),p.createElement(i.Z,{span:24},p.createElement(n.Z,{className:"w-full",form:t,layout:"vertical",validateMessages:g.NG,onFinish:function(t){return(0,a.mG)(void 0,void 0,void 0,(function(){var s,n;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:s={token:null==E?void 0:E.token,username:null==E?void 0:E.user,password:t.password,confirmPassword:t.confirmPassword},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,m(s)];case 2:return a.sent(),Z.push(g.Z6.SIGNIN),[3,4];case 3:return n=a.sent(),(0,x.Eo)(n,e("server.unexpected-response")),[3,4];case 4:return[2]}}))}))}},p.createElement(n.Z.Item,{label:e("label.new-password"),name:"password",rules:[{required:!0,message:e("message.field-text-is-required",{fieldText:e("label.password")})},{pattern:y.BV,message:e("message.password-pattern-error")}]},p.createElement(d.Z.Password,{autoComplete:"off",className:"w-full","data-testid":"password",placeholder:e("label.enter-entity",{entity:e("label.new-password")})})),p.createElement(n.Z.Item,{label:e("label.confirm-new-password"),name:"confirmPassword",rules:[{required:!0,message:e("message.field-text-is-required",{fieldText:e("label.confirm-new-password")})},{validator:function(t,s){return N===s?Promise.resolve():Promise.reject(e("label.password-not-match"))}}]},p.createElement(d.Z.Password,{autoComplete:"off",className:"w-full","data-testid":"confirm-password",placeholder:e("label.re-enter-new-password")})),p.createElement(c.Z,{className:"w-full m-t-lg","data-testid":"submit-button",htmlType:"submit",type:"primary"},e("label.submit")))))))}}}]);