1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[444],{52004(e,s,t){t.d(s,{A:()=>f});var n=t(76998),r=t(13761),a=t(13978),o=t(23236),i=t(18320),l=t(68713),c=t(82086),d=t(80369),m=t(18783),u=t(90349),h=t(23446);const p=(0,d.C)()((0,r.Ng)(function(e){return{siteContent:e.siteContent,formValues:(0,m.A)("forgottenPasswordForm")(e)}})(function(e){const{tenantName:s,siteContent:{data:{telephone:t,termsAndConditionsEmail:n}={}}={},formValues:{email:r}={},t:a}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.A,{text:a("component.forgot-password.virtual.success-heading",{0:r,1:s}),small:!0}),(0,h.jsx)("p",{children:(0,h.jsx)(c.x,{i18nKey:"component.forgot-password.virtual.success-first-text"})}),(0,h.jsx)("p",{children:(0,h.jsxs)(c.x,{i18nKey:"component.forgot-password.virtual.success-second-text",values:{0:t,1:n},children:[(0,h.jsx)("a",{href:`tel:${t}`,children:t}),(0,h.jsx)("a",{href:`mailto:${n}`,children:n})]})})]})}));const x=(0,r.Ng)(function(e){return{formValues:(0,m.A)("forgottenPasswordForm")(e)}})(function(e){const{formValues:{email:s}={}}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.A,{text:"Forgotten / Create Password",small:!0}),(0,h.jsxs)("p",{children:["An email has been sent to",(0,h.jsxs)("b",{children:[" ",s," "]}),"from [email protected]."]}),(0,h.jsxs)("p",{children:["The password reset link within the email will ",(0,h.jsx)("b",{children:"expire after 1 hour"}),"."]})]})});const f=(0,r.Ng)(function(e){return{siteHeader:e.siteHeader,pageConfig:e.pageConfig}})(function(e){const{siteHeader:{data:{logo:{path:s}={}}={}}={},pageConfig:{tenantId:t,sitePath:r,tenantConfig:{outputName:c}={},location:{origin:d}={}}={},formConfig:{title:m,subtitle:u,callToActionLabel:f}={},partneringOne:g}=e,[w,j]=(0,n.useState)(!1);return w?(0,h.jsx)("div",{className:"c-forgotten-password-form__success-message",children:g?(0,h.jsx)(x,{}):(0,h.jsx)(p,{tenantName:c})}):(0,h.jsx)(i.Ay,{form:"forgottenPasswordForm",destroyOnUnmount:!1,heading:m,subHeading:u,callToAction:f,submitAction:function(e){const{email:n}=e;return a.A.sendDelegateForgotPassword({username:n,sitePath:r,siteUrl:d+"/"+r+"/",logo:(0,o.gt)(t,s,"w=150"),template:g?"p1":"cve"})},onSubmit:function(e){const{error:s,success:t}=e;!s&&t&&j(!0)},children:(0,h.jsx)("div",{className:"form-control",children:(0,h.jsx)(l.A,{type:"email",name:"email",label:"Email Address *",validate:[i.mw,i.Rp]})})})})},68713(e,s,t){t.d(s,{M:()=>m,A:()=>c});var n=t(76998),r=t(34156),a=t.n(r),o=t(4077),i=t(23446);const l=e=>{const{input:s,type:t,label:r,placeholder:o,showStrengthBar:l,showPasswordBtn:c,meta:{touched:d,error:u}}=e,[h,p]=(0,n.useState)(!1),x=a()("c-redux-form-input",{[`c-redux-form-input--type-${t}`]:t,"c-redux-form-input--error":d&&u}),f=a()("c-redux-form-input__input",{"c-redux-form-input__input--with-btn":c});return(0,i.jsxs)("div",{className:x,children:[(0,i.jsxs)("label",{htmlFor:s.name,className:"c-redux-form-input__label",children:[(0,i.jsx)("span",{children:r}),d&&u&&(0,i.jsx)("span",{className:"c-redux-form-input__error",children:u})]}),(0,i.jsxs)("div",{className:f,children:[(0,i.jsx)("input",{...s,type:h?"text":t,placeholder:o}),c&&(0,i.jsx)("div",{className:"c-redux-form-input__show-password-btn",onClick:()=>{p(!h)},children:(0,i.jsx)("span",{children:h?"Hide":"Show"})})]}),l&&(0,i.jsx)(m,{password:s.value})]})};function c(e){const{type:s,name:t,label:n,placeholder:r,className:a,validate:c,showStrengthBar:d,showPasswordBtn:m}=e;return(0,i.jsx)(o.A,{type:s,name:t,validate:c,component:l,label:n,placeholder:r,className:a,showStrengthBar:d&&"password"===s,showPasswordBtn:m&&"password"===s})}var d=t(28519);function m(e){let{password:s=""}=e;const t=s.length>=d.A.passwordLength,n=/[A-Z]/.test(s),r=/[a-z]/.test(s),a=/[\d]/.test(s);return(0,i.jsxs)("div",{className:"c-password-strength-bar",children:[(0,i.jsxs)("span",{className:"c-password-strength-bar__text",children:["Minimum requirements for a ",(0,i.jsx)("strong",{children:"strong"})," password:"]}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{className:t?"valid":"invalid",children:"8 characters"}),(0,i.jsx)("li",{className:n?"valid":"invalid",children:"1 uppercase"}),(0,i.jsx)("li",{className:r?"valid":"invalid",children:"1 lowercase"}),(0,i.jsx)("li",{className:a?"valid":"invalid",children:"1 number"})]})]})}},18320(e,s,t){t.d(s,{C5:()=>w,Ay:()=>x,Rp:()=>j,wJ:()=>g,mw:()=>f});var n=t(28519),r=t(76998),a=t(81528),o=t(27325),i=t(34156),l=t.n(i),c=t(23236),d=t(90349),m=t(92675),u=t(44847),h=t(23446);class p extends r.Component{constructor(){super(...arguments),this.state={loading:!1},this.submitHandler=e=>{this.setState({loading:!0});let s=200;return this.props.submitAction(e).then(e=>(s=e.status,e.json())).then(e=>{let t;if(this.setState({loading:!1}),(0,c.Tn)(this.props.onSubmit)&&(t=this.props.onSubmit(e,s)),t&&Ob
1ject.keys(t).length)throw new a.n(t);const{error:n,errors:r={}}=e;if(n||Object.keys(r).length>0)throw new a.n({...r,_error:n})})}}render(){const{form:e,error:s,heading:t,headingSentenceCase:n,subHeading:r,callToAction:a,alternativeProposition:o,handleSubmit:i,isClearSubmitCtaMargin:c,children:p}=this.props,x=l()("form-submit",{"form-submit--no-margin":c}),{loading:f}=this.state;return(0,h.jsxs)("form",{name:e,onSubmit:i(this.submitHandler),noValidate:!0,autoComplete:"off",className:"c-redux-form-wrapper",children:[t&&(0,h.jsx)(d.A,{small:!0,text:t,sentenceCase:n}),r&&(0,h.jsx)(m.A,{style:{marginBottom:"20px"},text:r}),p,s&&a&&(0,h.jsx)("div",{className:"form-error",children:s}),a&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Ay,{type:"submit",size:"submit",mode:"black",label:a,loading:f,className:x}),o&&(0,h.jsx)("div",{className:"form-alt-proposition",children:o})]})]})}}const x=(0,o.A)()(p);function f(e){return e||"number"===typeof e?void 0:"Required"}function g(e){return n.A.isPassword(e)?void 0:"Password is not strong enough"}function w(e,s){return e===s.password?void 0:"Confirm password doesn't match password"}function j(e){return n.A.isEmail(e)?void 0:"Please enter a valid email address"}},59474(e,s,t){t.r(s),t.d(s,{ForgottenPasswordView:()=>l});t(76998);var n=t(13761),r=t(36753),a=t(66395),o=t(52004),i=t(23446);function l(e){const{siteHeader:{data:{partneringOne:s}={}}={}}=e;return(0,i.jsx)(r.A,{helmet:{title:"Forgotten / Create password"},children:(0,i.jsx)(a.A,{section:{type:"forgotten_password"},children:(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-xs-12 col-sm-7",children:(0,i.jsx)(o.A,{formConfig:{title:"Forgotten / Create password",subtitle:"We will send you an email to reset your password or activate your account",callToActionLabel:"Send email"},partneringOne:s})})})})})})}const c=(0,n.Ng)(function(e){return{siteHeader:e.siteHeader}})(l);t.d(s,["default",0,c])}}]); 2//# sourceMappingURL=P1ForgottenPasswordView.d5dbb889.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.