PageSourceSearch

https://www.chroma.pl/clientpanel/assets/app-modules-account-views…s-ResetPassword-f2c366fdb54d1132d801.min.js

js chroma.pl collected 2026-10-03 23:20:27 UTC 2,948 bytes, 2 lines download raw bytes

1/*! For license information please see app-modules-account-views-Account-subviews-ResetPassword-f2c366fdb54d1132d801.min.js.LICENSE.txt */
2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9251],{66701(e,s,t){t.r(s),t.d(s,{default:()=>E});var r,a=t(70227),o=t(24809),l=t(54262),n=t(97496),i=t.n(n),c=t(96054),d=t(20454),m=t(68445),u=t(6669),w=t(1686),p=t(72639),g=t(41833),h=t(13185);function b(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}let E=(0,l.j4)(r=class extends a.Component{constructor(e){super(e),b(this,"password",void 0),b(this,"formResetPasswordConfig",[{type:"password",name:"password",label:a.createElement(l.sA,{id:"Forms.password"}),isRequired:!0,validator:e=>(0,u.Oj)(e),errorMessage:a.createElement(l.sA,{id:"Forms.passwordError"}),onChange:e=>{this.password=e},showStrengthIndicator:!0},{type:"password",name:"repeatPassword",label:a.createElement(l.sA,{id:"Forms.repeatPassword"}),isRequired:!0,validator:e=>e===this.password,errorMessage:a.createElement(l.sA,{id:"Forms.repeatPasswordError"})},{type:"submit",label:a.createElement(l.sA,{id:"Users.setPassword"}),name:"submit",isFullWidth:!0,className:"mt-10"}]),this.state={isResetSuccess:!1}}onSubmitResetPassword(e){let s=this.props.router.location.query.token||"";c.A.resetPassword(e.password,s).then(e=>{400!==e.status?401!==e.status&&409!==e.status?this.setState({isResetSuccess:!0}):(0,d.UG)("ne_user_changePassword_wrongToken"):(0,d.UG)("ne_user_changePassword_wrongFormat")}).catch(e=>{(0,d.UG)("ne_user_changePassword_setNewError",null,e)})}render(){const e=(0,w.Wz)("isReseller");return a.createElement("div",{className:i()({[g.A.isReseller]:e},"bg-white text-chroma-black"),"data-box":"resetPassword"},a.createElement("h2",{className:"1xl:desktop-title-s lg:tablet-title-m mobile-title-m mb-8"},this.state.isResetSuccess?a.createElement(l.sA,{id:"ResetPassword.success"}):a.createElement(l.sA,{id:"ResetPassword.createNewPassword"})),a.createElement("p",{className:"mobile-paragraph-l-regular lg:tablet-paragraph-l-regular 1xl:desktop-paragraph-l-regular mb-8"},this.state.isResetSuccess?a.createElement(l.sA,{id:"ResetPassword.successfulReset"}):a.createElement(l.sA,{id:"ResetPassword.insertNewPassword"})),this.state.isResetSuccess?a.createElement(h.A,{className:"w-full",link:(0,m.B2)("route-login"),rel:"nofollow","data-analytics":"action:resetPasswordGoToLoginPage"},a.createElement(l.sA,{id:"Users.goToLoginPage"})):a.createElement(a.Fragment,null,a.createElement(p.A,{config:this.formResetPasswordConfig,onSubmit:this.onSubmitResetPassword.bind(this),formId:"resetPassword2",isRebranding:!0}),a.createElement(o.N_,{to:(0,m.B2)("route-root"),className:"flex items-center justify-center cursor-pointer text-chroma-black-70 mt-6 underline mobile-paragraph-m-regular 1xl:desktop-paragraph-m-regular"},a.createElement(l.sA,{id:"Common.cancel"}))))}})||r}}]);

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.