All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.8848.3d93262c9f4ae409fd91.js Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
"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(56256),n=a(4107),m=a(71577),i=a(27049),c=a(96486),o=a(67294),d=a(68432),u=a(15137),f=a(26356),p=a(58603),b=a(71001),w=a(97725),y=a(62761),E=a(16139),h=a(53026),v=a(8133);a(78205),t.default=function(){var e=(0,d.$)().t,t=(0,p.Eu)().authConfig,a=(0,b.xi)().handleRegister,g=(0,u.k6)(),Z=(0,l.CR)(r.Z.useForm(),1)[0],N=r.Z.useWatch("password",Z),x=(0,o.useMemo)((function(){return{isAuthProviderBasic:(null==t?void 0:t.provider)===h.Ho.Basic||(null==t?void 0:t.provider)===h.Ho.LDAP}}),[t]).isAuthProviderBasic;return o.createElement("div",{className:"d-flex flex-col h-full bg-white"},o.createElement("div",{className:"d-flex flex-grow","data-testid":"signin-page"},o.createElement("div",{className:"w-5/12"},o.createElement("div",{className:"mt-4 text-center flex-center flex-col"},o.createElement(w.Z,{height:"auto",width:200}),o.createElement(s.Z.Text,{className:"mt-8 w-80 text-xl font-medium text-grey-muted"},e("message.om-description")),x?o.createElement("div",{className:"m-t-lg",style:{width:"334px"}},o.createElement(r.Z,{autoComplete:"off",form:Z,layout:"vertical",validateMessages:y.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]}))}))}},o.createElement(r.Z.Item,{label:e("label.entity-name",{entity:e("label.first")}),name:"firstName",rules:[{whitespace:!0,required:!0}]},o.createElement(n.Z,{autoFocus:!0,placeholder:e("label.enter-entity-name",{entity:e("label.first-lowercase")})})),o.createElement(r.Z.Item,{label:e("label.entity-name",{entity:e("label.last")}),name:"lastName",rules:[{whitespace:!0,required:!0}]},o.createElement(n.Z,{placeholder:e("label.enter-entity",{entity:e("label.last-name-lowercase")})})),o.createElement(r.Z.Item,{label:e("label.email"),name:"email",rules:[{type:"email",required:!0}]},o.createElement(n.Z,{placeholder:e("label.enter-entity",{entity:e("label.email-lowercase")})})),o.createElement(r.Z.Item,{label:e("label.password"),name:"password",rules:[{required:!0},{pattern:E.BV,message:e("message.password-error-message")}]},o.createElement(n.Z.Password,{autoComplete:"off",placeholder:e("label.enter-entity",{entity:e("label.password-lowercase")})})),o.createElement(r.Z.Item,{label:e("label.password-type",{type:e("label.confirm")}),name:"confirmPassword",rules:[{validator:function(t,a){return(0,c.isEmpty)(N)?Promise.reject(e("label.please-password-type-first")):a!==N?Promise.reject(e("label.password-not-match")):Promise.resolve()}}]},o.createElement(n.Z.Password,{autoComplete:"off",placeholder:e("label.confirm-password")})),o.createElement(m.Z,{className:"w-full",htmlType:"submit",type:"primary"},e("label.create-entity",{entity:e("label.account")})),o.createElement(i.Z,{className:"w-min-0  mt-8 mb-12 justify-center"},o.createElement(s.Z.Text,{type:"secondary"},e("label.or-lowercase"))),o.createElement("div",{className:"mt-4 d-flex flex-center"},o.createElement(s.Z.Text,{className:"mr-4"},e("message.already-a-user")),o.createElement(m.Z,{ghost:!0,"data-testid":"login",type:"link",onClick:function(){return g.push(y.Z6.SIGNIN)}},e("label.login"))))):null)),o.createElement("div",{className:"w-7/12 relative"},o.createElement("div",{className:"absolute inset-0"},o.createElement("img",{alt:"bg-image",className:"w-full h-full","data-testid":"bg-image",src:f.default})),o.createElement(v.Z,null))))}}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy