PageSourceSearch

https://www.magicalvegas.com/build/_shared/accountDetailsEditActivityReminder-3ER4RUQ5.js

js magicalvegas.com collected 2026-09-26 03:02:45 UTC 3,586 bytes, 2 lines download raw bytes

1import{a as x}from"/build/_shared/chunk-HFUZZOIL.js";import{a as g}from"/build/_shared/chunk-2G3BUNAD.js";import{a as C}from"/build/_shared/chunk-LXYKMAPX.js";import{e as b}from"/build/_shared/chunk-6XX3ATVP.js";import"/build/_shared/chunk-H5UJJ74Q.js";import{R as p,b as v,z as y}from"/build/_shared/chunk-TQS5E2SK.js";import{e as m,q as c,w as u}from"/build/_shared/chunk-RBFCHJWR.js";import"/build/_shared/chunk-GZJBGZQO.js";import{a as H}from"/build/_shared/chunk-JUM7J4TY.js";import{a as f}from"/build/_shared/chunk-RW7BUM27.js";import{e as s}from"/build/_shared/chunk-ADMCF34Z.js";var o=s(H()),e=s(f());function S({onCloseClick:h,profile:k,config:N}){let i=u(),{liveHelpUrl:A,liveHelpEnabled:T}=N,[R,B]=(0,o.useState)(!0),l={1:"Monthly",3:"Every 3 Months",6:"Every 6 Months"};(0,o.useEffect)(()=>{i.load("/loaders/activityreminder")},[]);let r=(0,o.useMemo)(()=>{var t;if(i.data!=null){let a=(t=i.data)==null?void 0:t.playerActivityReminder;return B(!1),l[a==null?void 0:a.frequency]||"Every 6 Months"}},[i.data]),[n,d]=(0,o.useState)(r);(0,o.useEffect)(()=>{d(r)},[r]);let[w,I]=(0,o.useState)(!0);(0,o.useEffect)(()=>{I(n===r)},[n,r]);let L=m(),E=()=>{b({event:"back_click"}),L(g.menu_accountdetails)},M=t=>{i.submit({frequency:Object.keys(l).find(a=>l[Number(a)]===n)||"6"},{action:"/forms/updateActivityReminder",method:"patch"})};return(0,e.jsxs)("div",{className:"flex flex-col h-full",children:[(0,e.jsx)(y,{username:C(k),backIconSrc:"/images/back-icon.svg",accountIconSrc:"/images/account-icon.svg",closeIconSrc:"/images/close-icon.svg",menuTitle:"ACTIVITY",menuUserClasses:"text-changePasswordAccountMenuHeaderTextTopColor",menuTitleClasses:"text-changePasswordAccountMenuHeaderTextBottomColor",onBackIconClick:()=>{E()},onCloseIconClick:()=>{h()}}),(0,e.jsx)(x,{leftContent:T&&(0,e.jsx)(c,{className:"underline px-1 text-changePasswordLiveHelpLinkColor",to:A,rel:"noopener noreferrer",target:"_blank",children:"Live Help"}),rightContent:(0,e.jsx)(c,{className:"btn btn-ghost underline text-accountDetailsLogoutLinkColor font-normal",to:"/forms/logout",children:"Logout"})}),(0,e.jsxs)("div",{className:"px-6 py-4",children:[(0,e.jsx)("h2",{className:"text-activityReminderTitleColor font-bold mb-2 text-lg font-jost",children:"Activity Reminder"}),(0,e.jsx)("p",{className:"text-sm mb-4 text-activityReminderTextColor",children:"Want to get reminders of when to review your transactions or activity. Please let us know how often you would like to hear from us."}),R?(0,e.jsx)("div",{className:"flex items-center justify-center h-28",children:(0,e.jsx)(p,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"space-y-3",children:Object.values(l).map(t=>(0,e.jsxs)("button",{onClick:()=>d(t),className:`w-full px-6 py-4 rounded-lg transition text-left flex items-center gap-4 font-jost
2        ${n===t?"bg-activityReminderButtonActiveBgColor text-activityReminderButtonActiveTextColor font-bold":"border-2 border-activityReminderBorderColor text-activityReminderButtonInactiveTextColor"}`,children:[(0,e.jsxs)("div",{className:"relative w-4 h-4 flex items-center justify-center",children:[(0,e.jsx)("div",{className:`w-full h-full rounded-full border ${n===t?"border-activityReminderBulletBorderColor":"border-activityReminderButtonInactiveTextColor"}`}),n===t&&(0,e.jsx)("div",{className:"absolute w-2.5 h-2.5 bg-activityReminderBulletBorderColor rounded-full"})]}),(0,e.jsx)("span",{children:t})]},t))}),(0,e.jsx)(v,{label:"Update",type:"primary",size:"large",className:"w-full mt-6 rounded-lg",disabled:w,onClick:()=>{M(n)}})]})]})]})}export{S 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.