PageSourceSearch

https://www.spinandwin.com/build/_shared/PasswordResetForm-M3HHGFXL.js

js spinandwin.com collected 2026-09-26 06:50:10 UTC 3,566 bytes, 1 lines download raw bytes

1import"/build/_shared/chunk-5QV3NTGD.js";import"/build/_shared/chunk-SD2AJ5KT.js";import"/build/_shared/chunk-QPVZAJR3.js";import{a as u,b as S}from"/build/_shared/chunk-2G3BUNAD.js";import{e as R}from"/build/_shared/chunk-MA6AGVSE.js";import"/build/_shared/chunk-S2I5YMHW.js";import"/build/_shared/chunk-Q6UE3OVN.js";import"/build/_shared/chunk-ELXM45ZL.js";import{e as w}from"/build/_shared/chunk-6XX3ATVP.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{b as g,g as O}from"/build/_shared/chunk-J24524FQ.js";import{E as i,F as E,b as T,z as N}from"/build/_shared/chunk-TQS5E2SK.js";import{e as v,q as P,w as y}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as q}from"/build/_shared/chunk-JUM7J4TY.js";import{a as b}from"/build/_shared/chunk-RW7BUM27.js";import{e as c}from"/build/_shared/chunk-ADMCF34Z.js";var k=c(q());var e=c(b());function J({config:x,onCloseClick:h,username:A,token:I}){let r=v(),s=y(),f=s.state==="submitting";(0,k.useEffect)(()=>{var a,C;s.state==="idle"&&(s==null?void 0:s.data)!==void 0&&(((C=(a=s.data)==null?void 0:a.errors)==null?void 0:C.length)>0?r(`?expired${S.menu_reset_password}`):(w({event:"account_recovery_success",event_category:"forgot_password",event_action:"button_click",A
1ccountRecoveryType:"RESET PASSWORD"}),r(`?message=${j}${u.menu_login}`)))},[s.state,s==null?void 0:s.data]);let{passwordResetNewPasswordLabel:U,passwordResetNewPasswordPlaceholder:H,passwordResetNewPasswordInfo:B,passwordResetNewPasswordErrors:L,passwordResetNewPasswordReplaceError:D,passwordResetNewPasswordText:F,passwordResetRepeatPasswordLabel:M,passwordResetRepeatPasswordPlaceholder:K,passwordResetRepeatPasswordInfo:W,passwordResetRepeatPasswordErrors:$,passwordResetSuccessMessage:j,loginFormLoadingSVG:o,registerFieldSuccessIcon:n,registerFieldErrorIcon:p,registerFieldAlertIcon:l,registerFieldShow:d,registerFieldHide:m,liveHelpUrl:_,liveHelpEnabled:z}=x||{},t=R($,"text");t=t==null?void 0:t.oneOf([g("new_password")],"Password doesn't match");let Y=O().shape({new_password:R(L,"text"),repeat_new_password:t});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(N,{username:"CREATE PASSWORD",closeIconSrc:"/images/close-icon.svg",backIconSrc:"/images/back-icon.svg",menuTitleClasses:"text-accountMenuHeaderTextBottomColor normal-case",onCloseIconClick:()=>{h()},onBackIconClick:()=>{w({event:"back_click",event_action:"button_click",event_category:"forgot_password"}),r(`${u.menu_login}`)}}),(0,e.jsxs)("div",{className:"p-4",children:[(0,e.jsxs)(E,{schema:Y,submitting:f,submitButtonComponent:(0,e.jsx)(T,{className:"w-full",label:"Reset password",size:"large",type:"primary",submittable:!0,svgSource:o==null?void 0:o.url,loading:f},"submit"),onSubmit:a=>{s.submit({token:I,username:A,password:a.repeat_new_password},{action:"/forms/reset-password",method:"POST"})},icons:{success:n==null?void 0:n.url,error:p==null?void 0:p.url,warning:l==null?void 0:l.url,spinner:o==null?void 0:o.url,show:d==null?void 0:d.url,hide:m==null?void 0:m.url},children:[(0,e.jsx)("div",{className:"mb-2 mt-4 text-sm font-medium leading-6 select-none",children:F}),(0,e.jsx)(i,{name:"new_password",label:U,type:"password",placeholder:H,info:B,replaceError:D,defaultFocus:!0}),(0,e.jsx)(i,{name:"repeat_new_password",label:M,type:"password",placeholder:K,info:W})]},"reset-password"),_&&z&&(0,e.jsxs)("div",{className:"flex justify-center text-primary mt-4",children:["Contact",(0,e.jsx)(P,{className:"underline px-1",to:_,rel:"noopener noreferrer",target:"_blank",children:"Live Help"})]})]})]})}export{J as default};

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.