PageSourceSearch

https://ltw365.com/static/js/P1ResetPasswordView.181d5bb7.chunk.js

js ltw365.com collected 2026-10-08 19:57:37 UTC 6,243 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[6675],{95665(e,s,a){var t=a(76998),n=a(82086),r=a(80369),i=a(13978),c=a(17317),l=a(43113),o=a(28519),d=a(99867),h=a(23446);class m extends t.Component{constructor(e){super(e),this.formRef=t.createRef(),this.state={loading:!1,success:!1,error:!1,errorData:null,filledIn:!1,validated:!1},this.validatePasswordFields=this.validatePasswordFields.bind(this),this.signInLink=this.signInLink.bind(this)}onSubmit(e){this.setState({loading:!0,error:!1,errorData:null});const s={username:e.target.email.value,password:e.target.password.value,confirmationCode:e.target.code.value};return i.A.sendDelegateResetPassword(s)}onSuccess(){this.setState({loading:!1,success:!0,error:!1,errorData:null})}onError(e){this.setState({loading:!1,success:e&&!e.error,error:!0,errorData:e})}validatePasswordFields(){const e=this.formRef;if(this.state.filledIn){if(e.current){const s=e.current.formRef.current.password,a=e.current.formRef.current.confirmPassword;let t=o.A.isPassword(s.value);a&&(t=t&&s.value===a.value),this.setState({validated:t,error:!t})}}else this.setState({filledIn:!0})}getErrorMessage(e){if(!e)return null;const{t:s}=this.props;switch(e.error){case"Invalid verification code provided, please try again.":case"Invalid code provided, please request a code again.":case"Username/client id combination not found.":return(0,h.jsxs)("section",{className:"c-create-password-section c-event-section c-event-section--color-black",children:[(0,h.jsx)("h2",{className:"c-event-section__heading",children:s("event.p1.expired.title")}),(0,h.jsx)("p",{children:(0,h.jsx)(n.x,{i18nKey:"event.p1.expired.message",values:{0:s("event.p1.expired.message.button")},children:(0,h.jsx)("a",{href:`/${this.props.eventId}/pone/forgotten-password/`,children:s("event.p1.expired.message.button")})})})]});case"User cannot confirm because user status is not UNCONFIRMED.":return(0,h.jsxs)("section",{className:"c-create-password-section c-event-section c-event-section--color-black",children:[(0,h.jsx)("h2",{className:"c-event-section__heading",children:s("event.p1.already.activated.title")}),(0,h.jsx)("p",{children:s("event.p1.already.activated.message")}),(0,h.jsx)("p",{children:(0,h.jsx)(d.A,{to:"/pone/login/",target:"_blank",event:!0,className:"pull-right",children:s("event.p1.login")})})]});default:return null}}signInLink(){return(0,h.jsx)(d.A,{to:"/pone/login/",target:"_blank",event:!0,className:"pull-right",children:"Sign In"})}render(){const{newAccount:e=!1,code:s="",email:a="",t:t}=this.props,{validated:r,loading:i,success:o,error:m,errorData:u}=this.state,v=(e?"Create":"Reset")+" your password to access partneringONE\u2122";return(0,h.jsxs)("div",{className:"c-create-password-form",children:[e&&!o&&!u&&(0,h.jsx)("section",{className:"c-create-password-section",children:(0,h.jsx)("div",{className:"c-create-password-banner",children:(0,h.jsxs)("div",{className:"account-activated-section",children:[(0,h.jsx)("div",{className:"account-activated-success-icon",children:(0,h.jsx)("div",{className:"check-circle",children:(0,h.jsx)("i",{className:"fa fa-check","aria-hidden":"true"})})}),(0,h.jsx)("div",{className:"account-activated-msg",children:(0,h.jsx)("h2",{children:t("event.p1.activated.success.banner")})})]})})}),this.getErrorMessage(u),(0,h.jsx)("section",{className:"c-create-password-section",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsxs)("div",{className:"col-sm-12",children:[(0,h.jsxs)(c.UV,{className:"c-event-section--color-black",enabled:!!o,children:[(0,h.jsx)("div",{className:"row",children:(0,h.jsx)("div",{className:"col-sm-12",children:e?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("h2",{className:"c-event-section__heading",children:t("event.p1.success.password.activated.title")}),(0,h.jsx)(n.x,{i18nKey:"event.p1.success.password.activated.message"}),(0,h.jsx)("br",{})]}):(0,h.jsx)("h2",{className:"c-event-section__heading",children:t("event.p1.success.password.changed")})})}),(0,h.jsx)("div",{className:"row",children:(0,h.jsx)("div",{className:"col-sm-12",children:(0,h.jsx)(d.A,{className:"pull-right c-button c-button--accent c-button--submit uppercase",to:"/pone/login/",event:!0,children:t("event.p1.login")})})})]}),(0,h.jsx)(c.UV,{enabled:!o&&!u,heading:v,panel:this.signInLink,children:(0,h.jsxs)(c.lV,{ref:this.formRef,onSubmit:e=>this.onSubmit(e),onSuccess:e=>this.onSuccess(e),onError:e=>this.onError(e),error:m,children:[(0,h.jsx)(c.zB,{type:"hidden",name:"code",value:s}),(0,h.jsx)(c.zB,{type:"hidden",name:"email",value:a}),(0,h.jsx)(c.zB,{type:"hidden",name:"new_account",value:e.toString()}),(0,h.jsx)("div",{className:"row",children:(0,h.jsx)("div",{className:"col-sm-12",children:(0,h.jsxs)("p",{children:["Email:",a]})})}),(0,h.jsxs)("div",{className:"row",children:[(0,h.jsxs)("div",{className:"col-sm-7",children:[(0,h.jsx)(l.A,{withStrengthBar:!0,withConfirmField:!0,withShowButton:!0,newAccount:e,form:this.formRef,onValueChanged:this.validatePasswordFields}),(0,h.jsx)(c.C5,{type:"danger",enabled:r&&m,children:(0,h.jsx)("p",{children:"Something went wrong. Try again later..."})})]}),(0,h.jsx)("div",{className:"col-sm-5 c-form-help-msg",children:(0,h.jsx)("p",{children:"Password must have at least 8 characters, with 1 upper case letter, 1 lowercase letter and 1 number."})})]}),(0,h.jsx)(c.zB,{type:"submit",look:"accent",size:"submit-wide",disabled:i||!r,loading:i,value:"Submit"})]})})]})})})]})}}const u=(0,r.C)()(m);a.d(s,["A",0,u])},57886(e,s,a){a.r(s),a.d(s,{ResetPasswordView:()=>d});a(76998);var t=a(13761),n=a(88743),r=a.n(n),i=a(26019),c=a(36753),l=a(95665),o=a(23446);function d(e){const{pageConfig:{isPreview:s,sitePath:a,location:{search:t=""}={}}={}}=e,n=r().parse(t.slice(1));return n.email?(0,o.jsx)(c.A,{helmet:{title:"Reset your password to access partneringONE\u2122"},children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-sm-12",children:(0,o.jsx)(l.A,{tenant:n.tenant,code:n.code,email:n.email,eventId:a,isPreview:s})})})})}):(0,o.jsx)(i.A,{to:"/"+a+"/"})}
1const h=(0,t.Ng)(function(e){return{pageConfig:e.pageConfig}})(d);a.d(s,["default",0,h])}}]);
2//# sourceMappingURL=P1ResetPasswordView.181d5bb7.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.