PageSourceSearch

https://www.spinandwin.com/build/_shared/SawMembershipUpgrade-QSQL6TAM.js

js spinandwin.com collected 2026-09-26 06:49:55 UTC 5,020 bytes, 1 lines download raw bytes

1import{a as Y}from"/build/_shared/chunk-2G3BUNAD.js";import{e as N}from"/build/_shared/chunk-MA6AGVSE.js";import"/build/_shared/chunk-S2I5YMHW.js";import"/build/_shared/chunk-Q6UE3OVN.js";import{a as j}from"/build/_shared/chunk-LXYKMAPX.js";import{c as E}from"/build/_shared/chunk-LXYO3DKR.js";import{a as v}from"/build/_shared/chunk-ELXM45ZL.js";import{e as Z}from"/build/_shared/chunk-6XX3ATVP.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{e as D,g as G}from"/build/_shared/chunk-J24524FQ.js";import{E as C,F as X,a as Q,b as w,z as V}from"/build/_shared/chunk-TQS5E2SK.js";import{e as $,q as U,v as q,w as J}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as L}from"/build/_shared/chunk-JUM7J4TY.js";import{a as f}from"/build/_shared/chunk-RW7BUM27.js";import{e as n}from"/build/_shared/chunk-ADMCF34Z.js";var g=n(L());var r=n(f());function H({profile:m,config:y,forward:l,promptCardAndDob:p}){let e=J(),[d,b]=(0,g.useState)(),[u,S]=(0,g.useState)(!1),{registerMembershipCardNumberErrors:M,registerMembershipCardNumberPlaceholder:h,registerMembershipCardNumberInfo:P,registerMembershipCardNumberLabel:s,registerDOBPlaceholder:a,registerDOBInfo:x,registerDOBLabel:ee,registerDOBErrors:re,registerFieldErrorIcon:T,registerFieldAlertIcon:B,registerFieldSuccessIcon:O,registerFieldShow:I,registerFieldHide:k,loginFormLoadingSVG:c,registerSawPinInfo:te,registerSawPinErrors:oe,registerSawPinPlaceholder:se,registerSawPinLabel:ae,singleAccountWalletUpgradeStepOneText:ie,singleAccountWalletUpgradeStepOneInfo:ne}=y||{},me=G().shape({membershipCardNumber:p?N(M,"text"):D().optional(),dateOfBirth:p?N(re,"date"):D().optional(),sawPin:N(oe,"text")});return(0,g.useEffect)(()=>{var t,z,_,F,K,A;e.state==="idle"&&(e==null?void 0:e.data)!==void 0&&(S(!1),((z=(t=e.data)==null?void 0:t.errors)==null?void 0:z.length)>0?b(((F=(_=e.data)==null?void 0:_.errors[0])==null?void 0:F.detail)||((A=(K=e.data)==null?void 0:K.errors[0])==null?void 0:A.title)):l())},[e.state,e==null?void 0:e.data]),(0,r.jsxs)(r.Fragment,{children:[d&&(0,r.jsx)("div",{className:"text-error",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"mb-4 font-bold",children:ie}),(0,r.jsx)("article",{className:"mb-2","safely-set-inner-html":v(ne)}),(0,r.jsxs)(X,{schema:me,submitting:u,onSubmit:t=>{S(!0),b(null),e.submit({username:m.Username,playerId:m.PlayerID.toString(),pin:t==null?void 0:t.sawPin,membershipCardNumber:t==null?void 0:t.membershipCardNumber,dateOfBirth:t==null?void 0:t.dateOfBirth},{action:"/actions/saw/upgrade",method:"POST"})},submitButtonComponent:(0,r.jsx)(w,{className:"w-full",label:"Set PIN",size:"large",type:"primary",submittable:!0,svgSource:c==null?void 0:c.url,loading:u}),icons:{success:O==null?void 0:O.url,error:T==null?void 0:T.url,warning:B==null?void 0:B.url,spinner:c==null?void 0:c.url,show:I==null?void 0:I.url,hide:k==null?void 0:k.url},children:[p&&(0,r.jsx)(C,{name:"membershipCardNumber",type:"text",placeholder:h,info:P,label:s!=null?s:"",allowedCharsExpression:"^\\d*$"}),p&&(0,r.jsx)(C,{name:"dateOfBirth",type:"date",placeholder:a,info:x,infoAlwaysVisible:!0,label:ee}),(0,r.jsx)(C,{name:"sawPin",type:"pin",placeholder:se,label:ae,info:te,infoAlwaysVisible:!0,autoComplete:"off"})]})]})}var W=n(L());var i=n(f());function R({image:m,text:y,footer:l}){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"flex",children:m&&(0,i.jsx)(Q,{svgSource:m,className:"mb-4 m-auto"})}),(0,i.jsx)("article",{className:"mb-4 text-sm font-medium leading-6 select-none mb-4","safely-set-inner-html":v(y)}),l&&(0,i.jsx)(l,{})]})}var o=n(f());function le({onCloseClick:m,onBackClick:y,profile:l,config:p}){let e=$(),{customerType:d,theme:b}=q("root"),[u,S]=(0,W.useState)(1),M=()=>{S(u+1)},{singleAccountWalletUpgradeSuccessImage:h,singleAccountWalletUpgradeSuccessText:P,singleAccountWalletUpgradeSuccessPrimaryLink:s,singleAccountWalletUpgradeSuccessSecondaryLink:a}=p||{},x=()=>(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[s&&(0,o.jsx)(U,{to:E(s==null?void 0:s.url,b),children:(0,o.jsx)(w,{label:s==null?void 0:s.name,size:"large",type:"primary",className:"w-full"})}),a&&(0,o.jsx)("div",{className:"flex justify-center",children:(0,o.jsx)(U,{className:"underline px-1",to:E(a==null?void 0:a.url,b),children:a==null?void 0:a.name})})]});return(0,o.jsxs)("div",{className:"flex flex-col h-full",children:[(0,o.jsx)(V,{username:j(l),backIconSrc:"/images/back-icon.svg",accountIconSrc:"/images/account-icon.svg",closeIconSrc:"/images/close-icon.svg",menuTitle:"MEMBERSHIP",menuUserClasses:"text-depositAccountMenuHeaderTextTopColor",menuTitleClasses:"text-depositAccountMenuHeaderTextBottomColor",onBackIconCl
1ick:()=>{Z({event:"back_click"}),e(Y.menu_default)},onCloseIconClick:()=>{m()}}),(0,o.jsxs)("div",{className:"p-4",children:[u==1&&(0,o.jsx)(H,{profile:l,config:p,forward:M,promptCardAndDob:!(d=="MultiChannel"||d=="DigitalOnly")}),u==2&&(0,o.jsx)(R,{image:h==null?void 0:h.url,text:P,footer:x})]})]})}export{le 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.