PageSourceSearch

https://web.kolsa.ru/assets/SettingNotifications-2E1R6wNd.js

js kolsa.ru collected 2026-09-24 15:11:29 UTC 3,034 bytes, 1 lines download raw bytes

1import{u as d,ae as f,I as p,j as e,k as x,i as n,n as o,gN as g,U as u,an as y,C as j,f as N}from"./index-BNFipKEE.js";const C="_DesktopSettingNotifications_1fd0a_1",k="_containerCheckBox_1fd0a_13",l={DesktopSettingNotifications:C,containerCheckBox:k},w=()=>{const t=d(f),s=p(),a=()=>{t&&s(g({push_notify:!t.push_notify}))},c=async()=>{if(!t)return;const r={avatar:(t==null?void 0:t.avatar)??"",name:t.name??"",newsletter:!t.newsletter},h=(await u.updateUserInfo(r)).data.data;s(y(h))};return e.jsxs("div",{className:l.DesktopSettingNotifications,children:[e.jsx(x,{flexShrink:0,justifyContent:"center",goBackButton:!0,center:!0,children:e.jsx(n.Typography,{variant:"h5",fontWeight:700,children:"Настройка уведомлений"})}),e.jsxs(n.BlockCover,{overflow:"hidden",padding:"8px 24px",width:"600px",children:[e.jsxs(o,{className:l.containerCheckBox,display:"flex",direction:"row",justifyContent:"space-between",children:[e.jsx(n.Typography,{variant:"text4",fontWeight:500,children:"Получать уведомления"}),t&&e.jsx(n.SwitchToggle,{onChange:a,checked:t.push_notify})]}),e.jsxs(o,{className:l.containerCheckBox,display:"flex",direction:"row",justifyContent:"space-between",children:[e.jsxs(n.Typography,{variant:"text4",fontWeight:500,children:["Получать рекламные рассылки и информацию об ",e.jsx("br",{})," обновлениях"]}),t&&e.jsx(n.SwitchToggle,{onChange:c,checked:t.newsletter})]})]})]})},_="_settingNotifications_1vi4t_11",v="_settingNotificationsContent_1vi4t_20",S="_containerCheckBox_1vi4t_26",i={settingNotifications:_,settingNotificationsContent:v,containerCheckBox:S},B="SettingNotifications",m=()=>{const t=d(f),s=p(),a=()=>{t&&s(g({push_notify:!t.push_notify}))},c=async()=>{if(!t)return;const r={avatar:(t==null?void 0:t.avatar)??"",name:t.name??"",newsletter:!t.newsletter},h=(await u.updateUserInfo(r)).data.data;s(y(h))};return e.jsxs(j,{disableGutters:!0,className:i.settingNotifications,"data-testid":B,children:[e.jsx(x,{center:!0,justifyContent:"center",goBackButton:!0,marginBottom:"14px",children:e.jsx(n.Typography,{variant:"h6",fontWeight:700,children:"Настройка уведомлений"})}),e.jsxs("div",{className:i.settingNotificationsContent,children:[e.jsxs(o,{className:i.containerCheckBox,display:"flex",direction:"row",justifyContent:"space-between",children:[e.jsx(n.Typography,{variant:"text6",color:"black",children:"Получать уведомления"}),t&&e.jsx(n.SwitchToggle,{onChange:a,checked:t.push_notify})]}),e.jsxs(o,{className:i.containerCheckBox,display:"flex",direction:"row",justifyContent:"space-between",gap:"10px",children:[e.jsx(n.Typography,{variant:"text6",color:"black",children:"Получать рекламные рассылки и информацию об обновлениях"}),t&&e.jsx(n.SwitchToggle,{onChange:c,checked:t.newsletter})]})]})]})},b="SettingNotifications",D=()=>{const{isMobile:t}=N();return t?e.jsx(m,{}):e.jsx(w,{})};export{b as TEST_ID,D 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.