PageSourceSearch

https://www.spinandwin.com/build/_shared/PinResetForm-YYBFDID7.js

js spinandwin.com collected 2026-09-26 06:49:59 UTC 3,267 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 d,b as x}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 f}from"/build/_shared/chunk-6XX3ATVP.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{b as g,g as h}from"/build/_shared/chunk-J24524FQ.js";import{E as c,F as E,b as T,z as k}from"/build/_shared/chunk-TQS5E2SK.js";import{e as C,q as N,w as _}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as j}from"/build/_shared/chunk-JUM7J4TY.js";import{a as v}from"/build/_shared/chunk-RW7BUM27.js";import{e as u}from"/build/_shared/chunk-ADMCF34Z.js";var S=u(j());var e=u(v());function z({config:I,onCloseClick:H,identity:U,token:A}){let a=C(),t=_(),y=t.state==="submitting";(0,S.useEffect)(()=>{var s,P;t.state==="idle"&&(t==null?void 0:t.data)!==void 0&&(((P=(s=t.data)==null?void 0:s.errors)==null?void 0:P.length)>0?a(`?expired${x.menu_reset_pin}`):(f({event:"account_recovery_success",AccountRecoveryType:"RESET PIN"}),a(`?message=Your PIN has been reset${d.menu_login}`)))},[t.state,t==null?void 0:t.data]);let{pinResetNewPinLabel:O,pinResetNewPinPlaceholder:B,pinResetNewPinInfo:L,pinResetNewPinErrors:b,pinResetNewPinText:M,pinResetRepeatPinLabel:$,pinResetRepeatPinPlaceholder:F,pinResetRepeatPinInfo:D,loginFormLoadingSVG:n,registerFieldSuccessIcon:r,registerFieldErrorIcon:i,registerFieldAlertIcon:l,registerFieldShow:p,registerFieldHide:m,liveHelpUrl:w,liveHelpEnabled:K}=I||{},o=R(b,"text");o=o==null?void 0:o.oneOf([g("new_password")],"Pin doesn't match");let Y=h().shape({new_password:R(b,"text"),repeat_new_password:o});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(k,{username:"RESET PIN",closeIconSrc:"/images/close-icon.svg",backIconSrc:"/images/back-icon.svg",menuTitleClasses:"text-accountMenuHeaderTextBottomColor normal-case",onCloseIconClick:()=>{H()},onBackIconClick:()=>{f({event:"back_click"}),a(`${d.menu_login}`)}}),(0,e.jsxs)("div",{className:"p-4",children:[(0,e.jsxs)(E,{schema:Y,submitting:y,submitButtonComponent:(0,e.jsx)(T,{className:"w-full",label:"Reset PIN",size:"large",type:"primary",submittable:!0,svgSource:n==null?void 0:n.url,loading:y},"submit"),onSubmit:s=>{t.submit({token:A,username:U,password:s.repeat_new_password,type:"retail"},{action:"/forms/reset-password",method:"POST"})},icons:{success:r==null?void 0:r.url,error:i==null?void 0:i.url,warning:l==null?void 0:l.url,spinner:n==null?void 0:n.url,show:p==null?void 0:p.url,hide:m==null?void 0:m.url},children:[(0,e.jsx)("div",{className:"text-passwordReminderFormColor my-2 text-sm font-medium leading-6 select-none",children:M}),(0,e.jsx)(c,{name:"new_password",label:O,type:"pin",placeholder:B,info:L,infoAlwaysVisible:!0}),(0,e.jsx)(c,{name:"repeat_new_password",label:$,type:"pin",placeholder:F,info:D})]},"reset-pin"),w&&K&&(0,e.jsxs)("div",{className:"flex justify-center text-primary mt-4",children:["Contact",(0,e.jsx)(N,{className:"underline px-1",to:w,rel:"noopener noreferrer",target:"_blank",children:"Live Help"})]})]})]})}export{z 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.