1"use strict";(self.webpackChunksocialpilot_react=self.webpackChunksocialpilot_react||[]).push([[1918],{25524:()=>{},46768:(e,s,a)=>{a.d(s,{A:()=>j});var r=a(9950),t=a(34143),i=a(63593),l=a.n(i),n=a(42074),o=a(5580),c=a(85532),d=a(80878),m=a(58656),h=a(57656),u=a(41248),w=a(98214),g=(a(25524),a(99757)),x=a(31788),f=a(77727),p=a(44414);const j=e=>{const{handleChange:s,submitResetPassword:a,data:i,enterPriceDetails:j,loginUrl:A,featureImageUrl:N,featureImageAltText:P,bgColor:S,removeAlert:v,displayNewLeftSide:b}=e,{newPassword:C,confirmPassword:E,newPasswordError:y,confirmPasswordError:R,isSubmited:_,clientConnectOrgName:D,clientConnectLogo:I,errorMsg:T}=i,[L,O]=(0,r.useState)(!0),[k,M]=(0,r.useState)(!0),W=l().get("language");return(0,p.jsx)("div",{className:"container-fluid plain-container",children:(0,p.jsxs)("div",{className:"row h-100",children:[(0,p.jsx)("div",{className:"col-lg-5 col-sm-5 feature-image d-flex align-items-center justify-content-center ".concat(S," ").concat(o.lw?"p-0":""),children:b?(0,p.jsx)(x.A,{}):(0,p.jsx)(u.A,{imageUrl:N,altText:P,id:"forgot-feature-image"})}),(0,p.jsxs)("div",{className:"col-lg-7 col-sm-7 bg-white d-flex justify-content-center align-items-center flex-column",children:[(0,p.jsx)("div",{className:"top-logo-header",children:(0,p.jsxs)("div",{className:"d-flex justify-content-between mt-32 align-items-center",children:[(0,p.jsx)("div",{className:"",children:(0,p.jsx)("div",{className:"".concat(-1!==(0,w.A)("client")?"client-logo":""),children:(0,p.jsx)("div",{className:"",children:(0,p.jsx)("a",{className:"",href:"".concat(o.lw&&j.companyLogo?"javaScript:;":"https://www.socialpilot.co"),children:(0,p.jsx)(d.A,{clientConnectOrgName:D,clientConnectLogo:I})})})})}),(0,p.jsx)("div",{className:"",children:(0,p.jsx)(m.A,{defaultLanguage:W})})]})}),T&&(0,p.jsx)("div",{className:"alert-container alert-msg",children:(0,p.jsxs)("div",{id:"w0-success-0",className:"alert-danger alert text-left",children:[(0,p.jsx)(c.A,{type:"button",bsClass:"close",onClick:()=>v(),children:(0,p.jsx)(f.A,{name:"BaseClose",size:16})}),(0,p.jsx)("p",{className:"w-95 m-0",children:(0,p.jsx)(t.A,{id:T,defaultValue:T})})]})}),(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col-lg-12 col-sm-12 mt-24",children:(0,p.jsxs)("div",{className:"signup-container",children:[(0,p.jsx)("div",{className:"row",children:(0,p.jsx)("div",{className:"col-lg-12",children:(0,p.jsxs)("h2",{className:"sign-up-text mb-8 mt-0",children:[(0,p.jsx)(t.A,{id:h.A.SET_A_NEW_PASSWORD,defaultValue:h.A.SET_A_NEW_PASSWORD})," "]})})}),(0,p.jsx)("div",{className:"row mb-24",children:(0,p.jsx)("div",{className:"col-lg-12 top-text-startup",children:(0,p.jsxs)("p",{className:"text-left",children:["(",(0,p.jsx)(t.A,{id:h.A.PASSWORD_VALIDATE,defaultValue:h.A.PASSWORD_VALIDATE}),")"]})})}),(0,p.jsx)("div",{className:"row mb-24",children:(0,p.jsx)("div",{className:"col-lg-12",children:(0,p.jsxs)("form",{onSubmit:a,children:[(0,p.jsxs)("div",{className:"mb-24",children:[(0,p.jsxs)("label",{htmlFor:"password",className:"control-label",children:[(0,p.jsx)(t.A,{id:h.A.NEW_PASSWORD,defaultMessage:h.A.NEW_PASSWORD}),(0,p.jsx)("superscript",{children:" *"})]}),(0,p.jsx)("input",{type:k?"password":"text",className:"form-control".concat(y?" is-invalid":""),name:"newPassword",onChange:s,value:C,tabIndex:1}),(0,p.jsx)("a",{href:"javascript:;",onClick:()=>{M(!k)},className:"passowrd-eye new-password-eye login-password-eye",children:""!==C?k?(0,p.jsx)(f.A,{name:"BasePreviewOffHide"}):(0,p.jsx)(f.A,{name:"BasePreviewOnShow"}):null}),y&&(0,p.jsx)("div",{className:"invalid-feedback",children:(0,p.jsx)(t.A,{id:y,defaultValue:y})})]}),(0,p.jsxs)("div",{className:"mb-24 password-container",children:[(0,p.jsxs)("label",{htmlFor:"password",className:"control-label",children:[(0,p.jsx)(t.A,{id:h.A.RETYPE_PASSWORD,defaultMessage:h.A.RETYPE_PASSWORD}),(0,p.jsx)("superscript",{children:" *"})]}),(0,p.jsx)("input",{type:L?"password":"text",className:"form-control".concat(R?" is-invalid":""),name:"confirmPassword",onChange:s,value:E,tabIndex:2}),(0,p.jsx)("a",{href:"javascript:;",onClick:()=>{O(!L)},className:"login-password-eye",children:""!==E?L?(0,p.jsx)(f.A,{name:"BasePreviewOffHide"}):(0,p.jsx)(f.A,{name:"BasePreviewOnShow"}):null}),R&&(0,p.jsx)("div",{className:"invalid-feedback",children:(0,p.jsx)(t.A,{id:R,defaultValue:R})})]}),(0,p.jsxs)("div",{className:"row",children:[(0,p.jsx)("div",{className:"col",children:(0,p.jsxs)("div",{className:"form-inline",children:[(0,p.jsx)(c.A,{type:"submit",bsClass:"btn btn-primary btn-medium login-link reset-password-btn",disabled:_||""===C||""===E,children:(0,p.jsx)(t.A,{id:h.A.SET_PASSWORD,defaultValue:h.A.SET_PASSWORD})}),_&&(0,p.jsx)(g.A,{className:"circular-spinner ml-2",id:"smallspinner-newuiCreatePassword"})]})}),(0,p.jsx)("div",{className:"col-auto my-auto",children:(0,p.jsx)(n.N_,{to:A||"/login",children:(0,p.jsx)(t.A,{id:h.A.BACK_TO_SIGN
1IN,defaultValue:h.A.BACK_TO_SIGNIN})})})]})]})})})]})})})]})]})})}},91918:(e,s,a)=>{a.r(s),a.d(s,{default:()=>A});var r=a(9950),t=a(73878),i=a(3745),l=a(5580),n=a(46768),o=a(51620),c=a(83438),d=a(41936),m=a(98214),h=a(57656),u=a(31965),w=a(42247),g=(a(68334),a(43997)),x=a(57193),f=a(72772),p=a(44414);class j extends r.Component{constructor(e){super(e),this.apiCalls=async e=>{const s=await(0,g.A)(e);s.error&&this.setState({newPasswordError:s.error,isSubmited:!1}),this.setState({successMessage:"Your password has been changed."})},this.handleChange=e=>{this.setState({[e.target.name]:e.target.value})},this.handleBackToLogin=()=>{o.A.push({pathname:"/login"})},this.submitResetPassword=e=>{e.preventDefault();const{newPassword:s,confirmPassword:a}=this.state,r=(0,d.Q)(s),t=r.required()||r.validate();t?this.setState({newPasswordError:t}):s!==a?this.setState({confirmPasswordError:"",newPasswordError:h.A.NEW_CONFIRM_PASSWORD_MATCH}):(this.setState({isSubmited:!0}),this.apiCalls(s))},this.displayNewLeftSide=!0;let{featureImageUrl:s,altText:a,bgColor:r}=(0,u.m)();l.lw&&(this.displayNewLeftSide=!1,s=w,a="Create Password",r="client-testimonial-bg"),this.displayNewLeftSide&&(r="new-signup-bg"),this.state={successMessage:"",errorMessage:"",newPassword:"",confirmPassword:"",newPasswordError:"",confirmPasswordError:"",isSubmited:!1,featureImageUrl:s,featureImageAltText:a,bgColor:r,pageVerify:!1}}componentDidMount(){const{location:e}=this.props,{state:s}=e;s&&s.forcePasswordReset?this.setState({pageVerify:!0},()=>{o.A.push("/create-password",{forcePasswordReset:null})}):o.A.push("/login")}componentDidUpdate(e){const{createPasswordRes:s,verifyLinkRes:a}=this.props;if(s!==e.createPasswordRes&&(200===s.status?this.setState({successMessage:s.message}):s.error&&s.error.message&&this.setState({errorMessage:s.error.message})),a!==e.verifyLinkRes)if(200!==a.status||a.success)a.error&&this.setState({errorMessage:a.error.message});else{let e="/forget";if(-1!==(0,m.A)("client")){const s=o.A.location.pathname.split("/").pop();e="/client/forget/".concat(s)}const s=h.A.LINK_EXPIRE_TEXT;o.A.push({pathname:e,state:{errorMessage:s}})}}render(){const{enterPriceDetails:e}=this.props,s="/login",{newPassword:a,confirmPassword:r,errorMessage:t,successMessage:c,newPasswordError:d,confirmPasswordError:m,isSubmited:h,featureImageUrl:u,featureImageAltText:w,bgColor:g,pageVerify:j}=this.state;if(!j||"success"!==e.status&&l.lw)return(0,p.jsx)(i.A,{});(t||c)&&o.A.push({pathname:s,state:{errorMessage:t,successMessage:c}});const{newFeatureImageUrl:A}=(0,x.A)(e,u);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(f.m,{children:(0,p.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,p.jsx)(n.A,{data:{newPassword:a,confirmPassword:r,newPasswordError:d,confirmPasswordError:m,isSubmited:h},handleChange:this.handleChange,handleBackToLogin:this.handleBackToLogin,submitResetPassword:this.submitResetPassword,enterPriceDetails:e,loginUrl:s,featureImageUrl:A,featureImageAltText:w,bgColor:g,displayNewLeftSide:this.displayNewLeftSide})]})}}const A=(0,t.Ng)(e=>({createPasswordRes:e.createPassword,verifyLinkRes:e.verifyLinkRes,enterPriceDetails:e.enterPriceDetailsReducer}),{createNewPassword:c._k,verifyLinkAPI:c.mG,fetchClientData:c.uU})(j)}}]);
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.