1import{n,i as c,aN as l,j as e,aO as o,aP as r,aQ as x,q as m}from"./index-D8I86NRa.js";function i({isOn:t,onToggle:s}){return e.jsx("div",{onClick:s,className:`relative inline-flex h-3 w-8 items-center rounded-full transition-colors ${t?"bg-[#00B39E]":"bg-[#00000061]"}`,children:e.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full transition-transform ${t?"translate-x-6 bg-white border border-[#00B39E]":"translate-x-0 bg-[#00000099] "}`})})}function u(){const t=n(),s=c(),{mutateAsync:a}=l({onSuccess:()=>{t.invalidateQueries({queryKey:[m.accountStatusInfo]})}});return e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"!text-[12px] font-bold text-[#242424] mb-2",children:"Notification settings"}),e.jsx("p",{className:"text-[#7A7F88] text-xs",children:"Customize the notifications you receive"})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-[#7A7F88] text-[8px] font-medium mb-3",children:"Product Information"}),e.jsxs("div",{className:"flex items-center justify-between mb-4 opacity-50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(o,{className:"text-[#7A7F88] text-lg"}),e.jsx("span",{className:"text-[#242424] font-medium",children:"Plans"})]}),e.jsx(i,{isOn:!0})]}),e.jsxs("div",{className:"flex items-center justify-between opacity-50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(r,{className:"text-[#7A7F88] text-lg"}),e.jsx("span",{className:"text-[#242424] font-medium",children:"Claims"})]}),e.jsx(i,{isOn:!0})]})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-[#7A7F88] text-sm font-medium mb-4",children:"Others"}),e.jsxs("div",{className:"flex items-center justify-between py-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(x,{className:"text-[#7A7F88] text-lg"}),e.jsx("span",{className:"text-[#242424] font-medium",children:"Scrella FPL"})]}),e.jsx(i,{isOn:s?.data?.notificationsInfo?.receiveFPLNotifications??!1,onToggle:()=>a({receiveFPLNotifications:!s?.data?.notificationsInfo?.receiveFPLNotifications})})]})]})]})}export{u 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.