PageSourceSearch

https://gamdom.com/build/AuthFormResetPassword.B4s3f5e3.js

js gamdom.com collected 2026-10-01 12:24:33 UTC 4,509 bytes, 2 lines download raw bytes

1import{j as r,t as c,a as R}from"./ThemeProviderV4.BJzwFqdE.js";import{o as V,I as N,r as a,v as E}from"./vendor.DIHqQuRl.js";import{u as M,t as Y,C as u}from"./index.d-IXg_W9.js";import{t as w}from"./errors.DgYkpLMh.js";import{u as _,t as f}from"./index.BmuYOVWj.js";import{u as k}from"./ProfileStore.DfCZWeMX.js";import{B as g}from"./ButtonV4.BtUnhwWI.js";import{I as D}from"./InputFieldV4Password.D8RATvCe.js";import{T as H}from"./TypographyV4.CtNC0Nr7.js";import{c as h}from"./e2e.util.DTQoQZoJ.js";import{g as L}from"./urlParameter.util.OFc5A56j.js";import{C as O}from"./CaptchaV4.kax3naMj.js";import{r as q}from"./Auth.validations.DHI2yQVz.js";import{F as U}from"./SignInForm.styled.eir4hx0m.js";import{I as A}from"./PasswordRequirementsV4.BjZF3RgP.js";import{T as o}from"./siteContentLanguages.CB1TAUaL.js";import"./react-toastify.esm.BcUAK96u.js";import"./util.GzQCO_UI.js";import"./ModalStore.BGz6QLsv.js";import"./PenguinKingJackpotStore.Cb45Dg70.js";import"./slugify.CQkBG-e2.js";import"./jsonFetch.C_hHwYGZ.js";import"./Button.81SqSNQ8.js";import"./StackV4.fVixnu5O.js";import"./eye-2.icon.CUGQY9bf.js";import"./hide.icon.DzIRABY4.js";import"./InputFieldV4.BNfLYgwf.js";import"./InputFieldWrapper.C_9JfUxC.js";import"./usePreventReactAriaInert.B-dge7fw.js";import"./index.BU4k5i4K.js";import"./index.Chjiymov.js";import"./hoist-non-react-statics.cjs.D4OhhMiI.js";import"./typeof.ZI2KZN5z.js";import"./CaptchaV4Component.styled.BUFvohFV.js";import"./passwordPolicy.DPUVarsU.js";import"./DialogV4.BkFp6o3w.js";import"./Dialog.C5SorhYV.js";import"./VisuallyHidden.B1HY6dUm.js";import"./CloseButtonV4.hcO_zxkh.js";import"./remove-circle.icon.AifzH9AT.js";import"./IconButtonV4.D0s_OlVn.js";import"./Modal.DrWT2KM1.js";import"./circle-error.icon.b0_M691B.js";const P=E(H).withConfig({displayName:"AuthFormResetPassword__Description",componentId:"sc-llc3ah-0"})(["text-align:center;"]),Mr=V(({onClose:x})=>{const j=k(),C=N(),S=a.useRef(null),n=a.useRef(null),[T,i]=a.useState(!1),[b,y]=a.useState(!1),m=_(),{control:d,handleSubmit:B,formState:t,getValues:p,clearErrors:l,trigger:I}=M({resolver:Y(q),mode:"onBlur",reValidateMode:"onBlur",shouldFocusError:!1,defaultValues:{newPassword:"",newPasswordConfirmation:"",reset_token:String(L("t")||"")}}),F=async s=>{try{const e=p();await j.resetPassword({...e,captcha_solution:s},()=>{y(!0),C(R.HOME,{replace:!0})})}catch(e){console.error(e)}finally{i(!1)}},v=async()=>{var s;i(!0);try{const e=await((s=n.current)==null?void 0:s.execute());e?await F(e):w.error(c("Captcha required",{id:"Bhe9Ylma"}))}catch{w.error(c("Captcha required",{id:"Bhe9Ylma"}))}finally{i(!1)}};return r.jsxs(r.Fragment,{children:[r.jsx(U,{onSubmit:B(v),ref:S,"data-testid":"reset-password-form",children:b?r.jsxs(r.Fragment,{children:[r.jsx(g,{type:"button",onClick:x,dataTestId:"reset-pwd-close-btn",children:r.jsx(o,{default:"Close",id:"5N0BJYMG"})}),r.jsx(P,{variant:"medium12",color:"grey7",dataTestId:h("reset-password","success-message"),children:r.jsx(o,{default:"Cool! Now you can Login with a new password",id:"mBPBhFnR"})})]}):r.jsxs(r.Fragment,{children:[r.jsx(u,{name:"newPassword",control:d,render:({field:s})=>{var e;return r.jsx(A,{...s,onBlur:()=>{s.onBlur(),p("newPasswordConfirmation")&&I("newPasswordConfirmation")},inputProps:{onFocus:()=>l("newPassword")},label:r.jsx(o,{default:"New Password",id:"T6HB71G7"}),placeholder:f("Enter your new password",{id:"7I65LHw3"}),error:!!t.errors.newPassword,errorMessage:m((e=t.errors.newPassword)==null?void 0:e.message),dataTestId:"reset-password-new-password"})}}),r.jsx(u,{name:"newPasswordConfirmation",control:d,render:({field:s})=>{var e;return r.jsx(D,{...s,inputProps:{onFocus:()=>l("newPasswordConfirmation")},label:r.jsx(o,{default:"New Password Confirmation",id:"00Yi01Nb"}),placeholder:f("Repeat new password",{id:"nJ8ZVQk6"}),error:!!t.errors.newPasswordConfirmation,errorMessage:m((e=t.errors.newPasswordConfirmation)==null?void 0:e.message),dataTestId:"reset-password-confirmation"})}}),r.jsx(g,{type:"submit",loading:T,disabled:!t.isValid,variant:"modal-primary",dataTestId:"reset-pwd-sbt-btn",children:r.jsx(o,{default:"Set New Password",id:"oTH2t0hY"})}),r.jsx(P,{variant:"medium12",color:"grey7",dataTestId:h("reset-password","idle-message"),children:r.jsx(o,{default:"Set a new password now",id:"e1gDBugC"})})]})}),r.jsx(O,{ref:n,size:"invisible",popup:!0,featureScope:"regular",dataTestId:"reset-password-captcha"})]})});export{Mr as default};
2//# sourceMappingURL=AuthFormResetPassword.B4s3f5e3.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.