1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[7514],{68418(e,s,t){t.d(s,{A:()=>b});var o=t(76998),n=t(13761),r=t(49113),i=t(80369),a=t(68985),c=t(88743),l=t.n(c),d=t(23236),m=t(13978),h=t(99867),u=t(43113),p=t(17317),g=t(31088),x=t(23446);class v extends o.Component{constructor(e){super(e),this.state={loading:!1,error:!1,errorText:"",validated:!1,isEmpty:!0},this.onSubmit=this.onSubmit.bind(this),this.onSuccess=this.onSuccess.bind(this),this.onError=this.onError.bind(this),this.checkFilledValues=this.checkFilledValues.bind(this)}componentDidMount(){this.checkFilledValues()}checkFilledValues(){const e=document.getElementsByName("username")[0].value.trim(),s=document.getElementsByName("password")[0].value.trim();this.setState({isEmpty:!(e.length&&s.length)})}onSubmit(e){const{username:s,password:t}=e.target;return s&&t?(this.setState({loading:!0,error:!1,validated:!0}),m.A.login({username:s.value,password:t.value})):Promise.resolve({error:!0,validated:!1})}async onSuccess(e){this.setState({loading:!1,error:!1}),m.A.setToken(e),g.A.ga4UserLogin("User login from knect365.com form","knect365_log_in_form_id");const s=l().parse(document.location.search.slice(1)).redirectUrl;s?document.location.replace(decodeURIComponent((0,d.kN)(s,{noCache:!0}))):document.location.replace("/account/profile/")}onError(e){this.handleError(e),this.setState({loading:!1,error:!0})}handleError(e){const{t:s}=this.props;let t=s("component.form.default.error");if(e.errorCode)switch(e.errorCode){case"PASSWORD_RESET_REQUIRED":t=s("component.login.errors.password-expired");break;case"CREDENTIALS_DOESNT_MATCH":case"USER_NOT_FOUND":t=s("component.login.errors.account-not-found")}this.setState({errorText:t})}checkField(e,s){const t={};t[s]=e,this.setState(t),this.setState(e=>({isEmpty:!(e.username&&e.username.length&&e.password&&e.password.length)}))}render(){const{siteHeader:{data:{partneringOne:e=!1}={}}={},pageConfig:{tenantConfig:{outputName:s}={}}={},withSignUpProposition:t=!1,t:o}=this.props,{loading:n,error:r,validated:i,errorText:c,isEmpty:l}=this.state;return(0,x.jsx)("div",{className:"c-sign-in-form "+(t?"with-proposition":""),children:(0,x.jsx)(p.UV,{heading:""+(e?"Log in to partneringONE\u2122":`Log in to your ${s} account`),children:(0,x.jsx)("div",{className:"row",children:(0,x.jsxs)(p.lV,{className:"col-xs-12 "+(e?"col-sm-8":""),onSubmit:this.onSubmit,onSuccess:this.onSuccess,onError:this.onError,error:r,children:[(0,x.jsxs)("div",{className:"row",children:[(0,x.jsxs)("div",{className:""+(e?"col-xs-12":"col-xs-12 col-sm-6"),children:[(0,x.jsx)(p.zB,{type:"email",name:"username",label:""+(e?"Username":"Email Address"),pattern:{required:!0},onChange:this.checkFilledValues}),e&&!a.Fr&&(0,x.jsx)("br",{})]}),(0,x.jsxs)("div",{className:""+(e?"col-xs-12":"col-xs-12 col-sm-6"),children:[(0,x.jsx)(u.A,{isPassValidation:!1,withShowButton:e,onValueChanged:this.checkFilledValues}),(0,x.jsx)(p.C5,{type:"danger",enabled:r&&i,children:(0,x.jsx)("p",{children:c})}),e?(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"form-row",children:(0,x.jsx)(h.A,{to:"/forgotten-password",event:!0,children:o("event.p1.forgotten-password")})}),(0,x.jsx)(p.zB,{type:"submit",look:"accent",disabled:n||l,loading:n,value:"Login",className:"c-button--submit-medium"})]}):(0,x.jsx)(h.A,{to:"/account/forgotten-password",parent:!0,className:"c-sign-in-form__forgot-link",children:"Forgot your password?"})]})]}),!e&&(0,x.jsx)(p.zB,{type:"submit",disabled:n||l,loading:n,textTransform:"capitalize",value:"Login",className:"c-button--full"})]})})})})}}const N=(0,i.C)()((0,n.Ng)(function(e){return{siteHeader:e.siteHeader,pageConfig:e.pageConfig}})((0,r.y)(v)));class f extends o.Component{constructor(e){super(e),this.state={loading:!1,error:!1,errorText:"",validated:!1,isEmpty:!0},this.onSubmit=this.onSubmit.bind(this),this.onSuccess=this.onSuccess.bind(this),this.onError=this.onError.bind(this),this.checkFilledValues=this.checkFilledValues.bind(this)}componentDidMount(){this.checkFilledValues()}checkFilledValues(){const e=document.getElementsByName("username")[0].value.trim(),s=document.getElementsByName("password")[0].value.trim();this.setState({isEmpty:!(e.length&&s.length)})}onSubmit(e){const{username:s,password:t}=e.target;return s&&t?(this.setState({loading:!0,error:!1,validated:!0}),m.A.login({username:s.value,password:t.value})):Promise.resolve({error:!0,validated:!1})}async onSuccess(e){this.setState({loading:!1,error:!1}),m.A.setToken(e),g.A.ga4UserLogin("User login","informa_connect_log_in_form_id");const s=l().parse(document.location.search.slice(1)).redirectUrl;s?document.location.replace(decodeURIComponent((0,d.kN)(s,{noCache:!0}))):document.location.replace("/account/profile/")}onError(e){this.handleError(e),this.setState({loading:!1,error:!0})}handleError(e){const{t:s}=this.props;let t=s("component.form.default.error");
1if(e.errorCode)switch(e.errorCode){case"PASSWORD_RESET_REQUIRED":t=s("component.login.errors.password-expired");break;case"CREDENTIALS_DOESNT_MATCH":case"USER_NOT_FOUND":t=s("component.login.errors.account-not-found")}this.setState({errorText:t})}checkField(e,s){const t={};t[s]=e,this.setState(t),this.setState(e=>({isEmpty:!(e.username&&e.username.length&&e.password&&e.password.length)}))}render(){const{siteHeader:{data:{partneringOne:e=!1}={}}={},withSignUpProposition:s=!1,t:t}=this.props,{loading:o,error:n,validated:r,errorText:i,isEmpty:c}=this.state;return(0,x.jsx)("div",{className:"c-sign-in-form "+(s?"with-proposition":""),children:(0,x.jsx)("div",{className:"row",children:(0,x.jsxs)(p.lV,{className:"col-xs-12 "+(e?"col-sm-8":""),onSubmit:this.onSubmit,onSuccess:this.onSuccess,onError:this.onError,error:n,children:[(0,x.jsx)(p.zB,{type:"email",name:"username",label:""+(e?"Username":"Email Address"),pattern:{required:!0},onChange:this.checkFilledValues}),e&&!a.Fr&&(0,x.jsx)("br",{}),(0,x.jsx)(u.A,{isPassValidation:!1,withShowButton:e,onValueChanged:this.checkFilledValues}),(0,x.jsx)(p.C5,{type:"danger",enabled:n&&r,children:(0,x.jsx)("p",{children:i})}),e?(0,x.jsxs)("div",{children:[(0,x.jsx)("div",{className:"form-row",children:(0,x.jsx)(h.A,{to:"/forgotten-password",event:!0,children:t("event.p1.forgotten-password")})}),(0,x.jsx)(p.zB,{type:"submit",look:"accent",disabled:o||c,loading:o,value:"Login",className:"c-button--submit-medium"})]}):(0,x.jsx)(h.A,{to:"/account/forgotten-password",parent:!0,className:"c-sign-in-form__forgot-link",children:"Forgot your password?"}),!e&&(0,x.jsx)(p.zB,{type:"submit",disabled:o||c,loading:o,textTransform:"capitalize",value:"Login",className:"ic-submit-button"})]})})})}}const j=(0,i.C)()((0,n.Ng)(function(e){return{siteHeader:e.siteHeader,pageConfig:e.pageConfig}})((0,r.y)(f)));var S=t(27329),E=t(79107);function b(e){let{tenantName:s,tenantId:t}=e;return(0,x.jsx)("div",{className:"c-sign-in-with-proposition",children:t===E.gX.TMTKNECT365?(0,x.jsx)(N,{withSignUpProposition:!0}):(0,x.jsx)(S.lo,{tenantName:s,children:(0,x.jsx)(j,{})})})}},97773(e,s,t){t.r(s),t.d(s,{AccountActivatedView:()=>u,default:()=>p});t(76998);var o=t(13761),n=t(59453),r=t(11947),i=t(27329),a=t(68418),c=t(31192),l=t(23446);const d=(0,r.Ay)(i.A0).withConfig({displayName:"AccountActivated__InformaConnectAlert",componentId:"sc-8v0kgt-0"})(["margin-top:31px;margin-bottom:-40px;"]),m=()=>(0,l.jsx)("div",{className:"c-account-activated__message",children:(0,l.jsx)("section",{className:"c-create-password-section",children:(0,l.jsx)("div",{className:"c-create-password-banner",children:(0,l.jsxs)("div",{className:"account-activated-section",children:[(0,l.jsx)("div",{className:"account-activated-success-icon",children:(0,l.jsx)("div",{className:"check-circle",children:(0,l.jsx)("i",{className:"fa fa-check","aria-hidden":"true"})})}),(0,l.jsxs)("div",{className:"account-activated-msg",children:[(0,l.jsx)("h2",{children:"Your account is now active"}),(0,l.jsx)("p",{children:"Please login in order to access your account."})]})]})})})}),h=e=>{let{tenantId:s,tenantName:t}=e;const o=(0,c.gH)(s);return(0,l.jsx)("div",{className:"c-account-activated",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2",children:[o?(0,l.jsx)(m,{}):(0,l.jsx)(d,{heading:"Your account is now active",message:"Please login in order to access your account.",alertType:"success"}),(0,l.jsx)(a.A,{tenantId:s,tenantName:t})]})})})})};function u(e){const{pageConfig:{tenantConfig:{outputName:s}={},tenantId:t}={}}=e;return(0,l.jsx)(n.A,{helmet:{title:s+" - Login"},children:(0,l.jsx)(h,{tenantId:t,tenantName:s})})}const p=(0,o.Ng)(function(e){return{pageConfig:e.pageConfig}})(u)}}]); 2//# sourceMappingURL=AccountActivatedView.aa774222.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.