Please wait. This can take some minutes ...
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.
assets.8848.9bf1d89926b9972b5b0a.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[8848],{18848:function(e,t,a){a.r(t);var l=a(70655),r=a(49409),s=a(71230),n=a(15746),m=a(56256),i=a(4107),c=a(71577),o=a(27049),u=a(96486),d=a(67294),p=a(68432),f=a(15137),b=a(26356),w=a(71001),y=a(97725),h=a(62761),E=a(16139),Z=a(53026),g=a(48794),v=a(78024);a(4323),t.default=function(){var e=(0,p.$)().t,t=(0,g.N)().authConfig,a=(0,w.xi)().handleRegister,N=(0,f.k6)(),x=(0,l.CR)(r.Z.useForm(),1)[0],P=r.Z.useWatch("password",x),C=(0,d.useMemo)((function(){return{isAuthProviderBasic:(null==t?void 0:t.provider)===Z.Ho.Basic||(null==t?void 0:t.provider)===Z.Ho.LDAP}}),[t]).isAuthProviderBasic;return d.createElement(s.Z,{className:"h-full","data-testid":"signin-page"},d.createElement(n.Z,{className:"bg-white",span:10},d.createElement("div",{className:"mt-4 text-center flex-center flex-col"},d.createElement(y.Z,{height:"auto",width:200}),d.createElement(m.Z.Text,{className:"mt-8 w-80 text-xl font-medium text-grey-muted"},e("message.om-description")),C?d.createElement("div",{className:"m-t-lg",style:{width:"334px"}},d.createElement(r.Z,{autoComplete:"off",form:x,layout:"vertical",validateMessages:h.NG,onFinish:function(e){return(0,l.mG)(void 0,void 0,void 0,(function(){var t;return(0,l.Jh)(this,(function(l){return e.confirmPassword&&delete e.confirmPassword,(t=e)&&a(t),[2]}))}))}},d.createElement(r.Z.Item,{label:e("label.entity-name",{entity:e("label.first")}),name:"firstName",rules:[{whitespace:!0,required:!0}]},d.createElement(i.Z,{autoFocus:!0,placeholder:e("label.enter-entity-name",{entity:e("label.first-lowercase")})})),d.createElement(r.Z.Item,{label:e("label.entity-name",{entity:e("label.last")}),name:"lastName",rules:[{whitespace:!0,required:!0}]},d.createElement(i.Z,{placeholder:e("label.enter-entity",{entity:e("label.last-name-lowercase")})})),d.createElement(r.Z.Item,{label:e("label.email"),name:"email",rules:[{type:"email",required:!0}]},d.createElement(i.Z,{placeholder:e("label.enter-entity",{entity:e("label.email-lowercase")})})),d.createElement(r.Z.Item,{label:e("label.password"),name:"password",rules:[{required:!0},{pattern:E.BV,message:e("message.password-error-message")}]},d.createElement(i.Z.Password,{autoComplete:"off",placeholder:e("label.enter-entity",{entity:e("label.password-lowercase")})})),d.createElement(r.Z.Item,{label:e("label.password-type",{type:e("label.confirm")}),name:"confirmPassword",rules:[{validator:function(t,a){return(0,u.isEmpty)(P)?Promise.reject(e("label.please-password-type-first")):a!==P?Promise.reject(e("label.password-not-match")):Promise.resolve()}}]},d.createElement(i.Z.Password,{autoComplete:"off",placeholder:e("label.confirm-password")})),d.createElement(c.Z,{className:"w-full",htmlType:"submit",type:"primary"},e("label.create-entity",{entity:e("label.account")})),d.createElement(o.Z,{className:"w-min-0 mt-8 mb-12 justify-center"},d.createElement(m.Z.Text,{type:"secondary"},e("label.or-lowercase"))),d.createElement("div",{className:"mt-4 d-flex flex-center"},d.createElement(m.Z.Text,{className:"mr-4"},e("message.already-a-user")),d.createElement(c.Z,{ghost:!0,"data-testid":"login",type:"link",onClick:function(){return N.push(h.Z6.SIGNIN)}},e("label.login"))))):null)),d.createElement(n.Z,{className:"relative",span:14},d.createElement("div",{className:"absolute inset-0"},d.createElement("img",{alt:"bg-image",className:"w-full h-full","data-testid":"bg-image",src:b.default})),d.createElement(v.Z,null)))}}}]);