1import{r as i,j as e,c as ne}from"./vendor-react-72e4a099.js";import{u as K,B as p,F as g,I as O,e as G,f as ie,P as A}from"./Toast-43ee7788.js";import{C as k,a as P,b as re,T as V}from"./Display-48adcc24.js";import{S as $}from"./Controls-5a18fd37.js";import{e as f,a as E,u as le}from"./api-d8a57490.js";import{C as oe,e as X,n as ce}from"./format-5039f022.js";import{p as ue,l as de,n as he,o as me,q as pe,t as fe,u as xe}from"./buildLifecycle-a44b0e05.js";import{SettingsHead as B}from"./SettingsLayout-14516db3.js";import{c as R}from"./createLucideIcon-581cd729.js";import{U as je}from"./upload-34ad8b6a.js";import{T as ye}from"./trash-2-7a739e24.js";import{C as ge}from"./check-083433f7.js";import{L as J}from"./languages-9836601a.js";import{G as ve}from"./globe-e09c7f1b.js";import{K as Y}from"./key-round-327e86e8.js";import"./eye-5711d0dd.js";import"./x-b9f3d093.js";import"./circle-check-63b159d4.js";import"./circle-alert-67975319.js";import"./chevron-down-888c3b30.js";import"./copy-34f4069e.js";import"./CabinetContext-31fc5321.js";/* empty css *//* empty css */import"./user-2d8f405f.js";import"./video-a08888e9.js";import"./palette-a7aa7952.js";import"./layout-template-dfe5c440.js";import"./plug-1e9df63e.js";import"./credit-card-a31de76a.js";/** 2 * @license lucide-react v0.554.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const be=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],Ne=R("bell-off",be);/** 7 * @license lucide-react v0.554.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const ke=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],we=R("bell-ring",ke);/** 12 * @license lucide-react v0.554.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Ce=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],Se=R("mail-warning",Ce);function Pe(){const t=K(),[c,o]=i.useState(null),[v,u]=i.useState(null);i.useEffect(()=>{let l=!0;return ue().then(async y=>{l&&(o(y),y==="on"&&await de().catch(()=>{}))}).catch(()=>l&&o("unsupported")),()=>{l=!1}},[]);const x=i.useCallback(async()=>{u("enable");try{const l=await he();o(l),l==="on"?t.success("Push-ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð²ÐºÐ»ÑÑÐµÐ½Ñ Ð² ÑÑом бÑаÑзеÑе"):l==="denied"&&t.error("ÐÑаÑÐ·ÐµÑ Ð·Ð°Ð¿ÑеÑил ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð´Ð»Ñ SNICH")}catch(l){t.error(f(l,"Ðе ÑдалоÑÑ Ð²ÐºÐ»ÑÑиÑÑ push-ÑведомлениÑ"))}finally{u(null)}},[t]),n=i.useCallback(async()=>{u("disable");try{o(await me()),t.success("Push-ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð²ÑклÑÑÐµÐ½Ñ Ð² ÑÑом бÑаÑзеÑе")}catch(l){t.error(f(l,"Ðе ÑдалоÑÑ Ð²ÑклÑÑиÑÑ push-ÑведомлениÑ"))}finally{u(null)}},[t]),j=i.useCallback(async()=>{u("test");try{const l=await pe();l.sent>0?t.success("ÐÑпÑавили â Ñведомление поÑвиÑÑÑ ÑеÑез паÑÑ ÑекÑнд"):l.removed>0?(o("off"),t.error("ÐодпиÑка ÑÑого бÑаÑзеÑа ÑÑÑаÑела â вклÑÑиÑе push заново")):t.error("СеÑÐ²Ð¸Ñ Ñведомлений бÑаÑзеÑа не пÑинÑл ÑообÑение â попÑобÑйÑе позже")}catch(l){t.error(f(l,"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð¿ÑовеÑкÑ"))}finally{u(null)}},[t]);return{state:c,busy:v,enable:x,disable:n,test:j}}function ze({push:t}){const{state:c,busy:o}=t;if(!c)return null;const v={on:["Push в ÑÑом бÑаÑзеÑе вклÑÑенÑ","Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¸Ð· ÑÑолбÑа «Push» пÑÐ¸Ñ Ð¾Ð´ÑÑ ÑÑда, даже когда вкладка SNICH закÑÑÑа."],off:["Push в ÑÑом бÑаÑзеÑе вÑклÑÑенÑ","ÐклÑÑиÑе, ÑÑÐ¾Ð±Ñ ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¸Ð· ÑÑолбÑа «Push» пÑÐ¸Ñ Ð¾Ð´Ð¸Ð»Ð¸ на ÑÑо ÑÑÑÑойÑÑво."],denied:["Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸ÑÐ¾Ð²Ð°Ð½Ñ Ð² бÑаÑзеÑе","РазÑеÑиÑе ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð´Ð»Ñ ÑÑого ÑайÑа в наÑÑÑÐ¾Ð¹ÐºÐ°Ñ Ð±ÑаÑзеÑа (знаÑок Ñлева Ð¾Ñ Ð°Ð´ÑеÑа) и обновиÑе ÑÑÑаниÑÑ."],unsupported:fe()?["Ðа iPhone push пÑÐ¸Ñ Ð¾Ð´ÑÑ Ð² SNICH Ñ ÑкÑана «Ðомой»","ÐажмиÑе «ÐоделиÑÑÑÑ» â «Ðа ÑкÑан Ðомой», оÑкÑойÑе SNICH оÑÑÑда и вклÑÑиÑе ÑведомлениÑ."]:["ÐÑÐ¾Ñ Ð±ÑаÑÐ·ÐµÑ Ð½Ðµ поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ push-ÑведомлениÑ","ÐиÑÑма на поÑÑÑ Ð¿ÑÐ¸Ñ Ð¾Ð´ÑÑ ÐºÐ°Ðº обÑÑно."]}
16,[u,x]=v[c];return e.jsxs("div",{className:"sn-a-push","data-state":c,children:[e.jsx("span",{className:"sn-a-push-icon","aria-hidden":!0,children:c==="on"?e.jsx(we,{className:"sn-i"}):e.jsx(Ne,{className:"sn-i"})}),e.jsxs("span",{className:"sn-a-push-text",children:[e.jsx("b",{children:u}),e.jsx("small",{children:x})]}),e.jsxs("span",{className:"sn-a-push-actions",children:[c==="off"&&e.jsx(p,{size:"sm",variant:"primary",loading:o==="enable",onClick:t.enable,children:"ÐклÑÑиÑÑ"}),c==="on"&&e.jsx(p,{size:"sm",variant:"quiet",loading:o==="test",onClick:t.test,children:"ÐÑовеÑиÑÑ"}),c==="on"&&e.jsx(p,{size:"sm",variant:"quiet",loading:o==="disable",onClick:t.disable,children:"ÐÑклÑÑиÑÑ"})]})]})}const Me=[{key:"reminders",title:"ÐÐ°Ð¿Ð¾Ð¼Ð¸Ð½Ð°Ð½Ð¸Ñ Ð¾Ð± ÑÑиÑаÑ
",description:"Ðа ÑÑÑки и за 15 минÑÑ Ð´Ð¾ наÑала â вам и команде ÑÑиÑа"},{key:"summaries",title:"ÐÑоги и запиÑи",description:"Ðогда запиÑÑ Ð¸ AI-иÑоги вÑÑÑеÑи или ÑÑиÑа гоÑовÑ"},{key:"registrations",title:"РегиÑÑÑаÑии",description:"Сводка новÑÑ
ÑегиÑÑÑаÑий Ñаз в ÑÐ°Ñ Ð¿Ð¾ ÐºÐ°Ð¶Ð´Ð¾Ð¼Ñ ÑÑиÑÑ"}],Ie=8*1024*1024;function L(t){return{name:t.name||"",title:t.title||"",locale:t.locale||"ru",timezone:t.timezone||X(),prefs:t.notificationPrefs}}function Ee({open:t,onClose:c,hasPassword:o,onChanged:v}){const[u,x]=i.useState(""),[n,j]=i.useState(""),[l,y]=i.useState(""),[a,h]=i.useState({}),[z,w]=i.useState(!1);i.useEffect(()=>{t&&(x(""),j(""),y(""),h({}))},[t]);const M=async d=>{d==null||d.preventDefault();const m={};if(o&&!u&&(m.current="ÐведиÑе ÑекÑÑий паÑолÑ"),n.length<8?m.next="ÐинимÑм 8 Ñимволов":n!==l&&(m.repeat="ÐаÑоли не ÑовпадаÑÑ"),h(m),!Object.keys(m).length){w(!0);try{const b=await E.post("/api/v1/auth/password/change",{currentPassword:o?u:void 0,newPassword:n});v(b.token)}catch(b){const C=f(b,"Ðе ÑдалоÑÑ ÑмениÑÑ Ð¿Ð°ÑолÑ");h(/ÑекÑÑий паÑолÑ/i.test(C)?{current:C}:{form:C})}finally{w(!1)}}};return e.jsx(ie,{open:t,onClose:c,className:"sn-a-ui",title:o?"СмениÑÑ Ð¿Ð°ÑолÑ":"ÐадаÑÑ Ð¿Ð°ÑолÑ",subtitle:o?"ÐовÑй паÑÐ¾Ð»Ñ Ð½Ð°ÑнÑÑ Ð´ÐµÐ¹ÑÑвоваÑÑ ÑÑазÑ":"ÐÑ Ð²Ñ
одиÑе ÑеÑез Ð¯Ð½Ð´ÐµÐºÑ ID â паÑÐ¾Ð»Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ð¸Ñ Ð²Ñ
одиÑÑ Ð¸ по поÑÑе",icon:e.jsx(Y,{className:"sn-i sn-i-20"}),width:480,footer:e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{flex:1}}),e.jsx(p,{variant:"quiet",onClick:c,children:"ÐÑмена"}),e.jsx(p,{variant:"primary",loading:z,onClick:()=>M(),children:"СоÑ
ÑаниÑÑ Ð¿Ð°ÑолÑ"})]}),children:e.jsxs("form",{onSubmit:M,style:{display:"flex",flexDirection:"column",gap:16},children:[a.form&&e.jsx("div",{className:"sn-error",role:"alert",children:a.form}),o&&e.jsx(g,{label:"ТекÑÑий паÑолÑ",htmlFor:"pw-current",error:a.current,children:e.jsx(A,{id:"pw-current",autoComplete:"current-password",value:u,invalid:!!a.current,onChange:d=>x(d.target.value),"data-autofocus":!0})}),e.jsx(g,{label:"ÐовÑй паÑолÑ",htmlFor:"pw-next",error:a.next,hint:"ÐинимÑм 8 Ñимволов, лÑÑÑе Ñ ÑиÑÑами",children:e.jsx(A,{id:"pw-next",autoComplete:"new-password",value:n,invalid:!!a.next,onChange:d=>j(d.target.value)})}),e.jsx(g,{label:"ÐовÑоÑиÑе паÑолÑ",htmlFor:"pw-repeat",error:a.repeat,children:e.jsx(A,{id:"pw-repeat",autoComplete:"new-password",value:l,invalid:!!a.repeat,onChange:d=>y(d.target.value)})}),e.jsx("button",{type:"submit",hidden:!0,"aria-hidden":"true",tabIndex:-1})]})})}function os(){const t=K(),c=Pe(),o=ne(),{user:v,login:u,token:x}=xe(),[n,j]=i.useState(null),[l,y]=i.useState(null),[a,h]=i.useState(null),[z,w]=i.useState(null),[M,d]=i.useState(!1),[m,b]=i.useState(null),[C,F]=i.useState(!1),[U,q]=i.useState(!1),I=i.useRef(null),_=i.useRef(null),H=()=>{y(null),E.get("/api/v1/auth/me").then(s=>{j(s),h(L(s))}).catch(s=>y(f(s,"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð¿ÑоÑилÑ")))};i.useEffect(H,[]),i.useEffect(()=>
16{const r=new URLSearchParams(o.search).get("emailVerified");r==="1"&&t.success("Email подÑвеÑждÑн"),r==="0"&&t.error("СÑÑлка подÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ ÑÑÑаÑела â оÑпÑавÑÑе пиÑÑмо еÑÑ Ñаз")},[]),i.useEffect(()=>{o.hash==="#notifications"&&n&&window.setTimeout(()=>{var s;return(s=_.current)==null?void 0:s.scrollIntoView({behavior:"smooth",block:"start"})},60)},[o.hash,n]);const Z=i.useMemo(()=>!n||!a?!1:JSON.stringify(L(n))!==JSON.stringify(a),[n,a]),W=(s,r)=>{const N=r||s.token||x;N&&u(N,{...v||{},id:s.id,email:s.email,name:s.name,avatarUrl:s.avatarUrl||void 0,roles:s.roles})},T=async s=>{const r=await E.patch("/api/v1/auth/me",s);return j(r),W(r),r},Q=async()=>{if(!(!a||!n)){if(!a.name.trim()){w("УкажиÑе Ð¸Ð¼Ñ â его видÑÑ ÑÑаÑÑники ÑÑиÑов");return}d(!0);try{const s=await T({name:a.name.trim(),title:a.title.trim(),locale:a.locale,timezone:a.timezone,notificationPrefs:a.prefs});h(L(s)),t.success("ÐÑоÑÐ¸Ð»Ñ ÑоÑ
ÑанÑн")}catch(s){t.error(f(s,"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ Ð¿ÑоÑилÑ"))}finally{d(!1)}}},ee=async s=>{if(s){if(!/^image\/(jpeg|png|webp)$/.test(s.type)){t.error("ÐÑжна каÑÑинка JPG, PNG или WebP");return}if(s.size>Ie){t.error("Файл болÑÑе 8 ÐÐ â вÑбеÑиÑе поменÑÑе");return}b(0);try{const r=await le(s,N=>b(Math.round(N*100)));await T({avatarUrl:r.url}),t.success("ФоÑо обновлено")}catch(r){t.error(f(r,"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑоÑо"))}finally{b(null),I.current&&(I.current.value="")}}},se=async()=>{try{await T({avatarUrl:null}),t.success("ФоÑо Ñдалено")}catch(s){t.error(f(s,"Ðе ÑдалоÑÑ ÑдалиÑÑ ÑоÑо"))}},te=async()=>{q(!0);try{await E.post("/api/v1/auth/email/verify/request"),t.success(`ÐÑпÑавили пиÑÑмо на ${n==null?void 0:n.email}`)}catch(s){t.error(f(s,"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð¿Ð¸ÑÑмо"))}finally{q(!1)}},ae=i.useMemo(()=>{const s=new Set(oe);return a!=null&&a.timezone&&s.add(a.timezone),s.add(X()),Array.from(s).map(r=>({value:r,label:ce(r)}))},[a==null?void 0:a.timezone]);if(l)return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"ÐÑоÑилÑ",subtitle:"Ðак Ð²Ð°Ñ Ð²Ð¸Ð´ÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°, ÑпикеÑÑ Ð¸ зÑиÑели"}),e.jsxs(k,{pad:!0,style:{display:"flex",alignItems:"center",gap:16,flexWrap:"wrap"},children:[e.jsx("span",{style:{flex:1,color:"var(--sn-ink-2)"},children:l}),e.jsx(p,{variant:"quiet",onClick:H,children:"ÐовÑоÑиÑÑ"})]})]});if(!n||!a)return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"ÐÑоÑилÑ",subtitle:"Ðак Ð²Ð°Ñ Ð²Ð¸Ð´ÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°, ÑпикеÑÑ Ð¸ зÑиÑели"}),e.jsxs(k,{className:"sn-a-prof",children:[e.jsx(P,{width:112,height:112,radius:56}),e.jsxs("div",{style:{display:"grid",gap:18},children:[e.jsx(P,{height:48}),e.jsx(P,{height:48}),e.jsx(P,{height:48})]})]}),e.jsx(k,{className:"sn-a-notif",children:e.jsx(P,{height:160})})]});const D=(s,r,N)=>{h(S=>S&&{...S,prefs:{...S.prefs,[s]:{...S.prefs[s],[r]:N}}})};return e.jsxs(e.Fragment,{children:[e.jsx(B,{title:"ÐÑоÑилÑ",subtitle:"Ðак Ð²Ð°Ñ Ð²Ð¸Ð´ÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°, ÑпикеÑÑ Ð¸ зÑиÑели",actions:e.jsx(p,{variant:"primary",onClick:Q,loading:M,disabled:!Z,children:"СоÑ
ÑаниÑÑ"})}),e.jsxs(k,{className:"sn-a-prof",children:[e.jsxs("div",{className:"sn-a-prof-photo",children:[e.jsx(re,{name:a.name||n.email,src:n.avatarUrl,size:112,style:{objectPosition:"center 22%"}}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:8},children:[e.jsx(p,{size:"sm",variant:"quiet",icon:e.jsx(je,{className:"sn-i sn-i-16"}),loading:m!==null,onClick:()=>{var s;return(s=I.current)==null?void 0:s.click()},children:m!==null?`${m}%`:n.avatarUrl?"ÐамениÑÑ":"ÐагÑÑзиÑÑ"}),n.avatarUrl&&m===null&&e.jsx(p,{size:"xs",variant:"text",icon:e.jsx(ye,{className:"sn-i sn-i-14"}),onClick:se,style:{paddingLeft:4},children:"УдалиÑÑ"}),e.jsx("span",{className:"sn-hint",style:{fontSize:12,lineHeight:1.4},children:"JPG или PNG, квадÑÐ°Ñ Ð¾Ñ 400 px"})]}),e.jsx("input",{ref:I,type:"file",accept:"image/jpeg,image/png,image/webp",hidden:!0,onChange:s=>{var r;return ee((r=s.target.files)==null?void 0:r[0])}})]}),e.jsxs("div",{className:"sn-a-prof-fields",children:[e.jsx(g,{label:"ÐÐ¼Ñ Ð¸ ÑамилиÑ",htmlFor:"pf-name",error:z||void 0,children:e.jsx(O,{id:"pf-name",autoComplete:"name",value:a.name,maxLength:100,invalid:!!z,onChange:s=>{h({...a,name:s.target.value}),w(null)}})}),e.jsx(g,{label:"ÐолжноÑÑÑ",htmlFor:"pf-title",hint:"Ðидна в плаÑке Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼, когда Ð²Ñ Ð² кадÑе",children:e.jsx(O,{id:"pf-title",value:a.title,maxLength:120,placeholder:"ÐапÑимеÑ, пÑодÑÑÐµÑ ÑÑиÑов",onChange:s=>h({...a,title:s.target.value})})}),e.jsx(g,{className:"sn-a-prof-full",label:"Email",htmlFor:"pf-email",hint:n.emailVerified?"СÑда пÑиÑ
одÑÑ Ð¿ÑиглаÑениÑ, Ð½Ð°Ð¿Ð¾Ð¼Ð¸Ð½Ð°Ð½Ð¸Ñ Ð¸ иÑоги":e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:["ÐодÑвеÑдиÑе поÑÑÑ, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð»ÑÑаÑÑ Ð¿ÑиглаÑÐµÐ½Ð¸Ñ Ð¸ иÑоги.",e.jsx("button",{type:"button",onClick:te,disabled:U,style:{border:0,background:"none",padding:0,color:"var(--sn-blue)",fontWeight:600,fontSize:13},children:U?"ÐÑпÑавлÑемâ¦":"ÐÑпÑавиÑÑ Ð¿Ð¸ÑÑмо"})]}),children:e.jsxs("div",{style:{position:"relative"},children:[e.jsx(O,{id:"pf-email",type:"email",value:n.email,readOnly:!0,style:{paddingRight:150},title:"Email менÑеÑÑÑ ÑеÑез поддеÑжкÑ"}),e.jsx("span",{className:"sn-a-prof-verified",children:n.emailVerified?e.jsx(V,{tone:"green",icon:e.jsx(ge,{className:"sn-i sn-i-14"}),children:"ÐодÑвеÑждÑн"}):e.jsx(V,{tone:"amber",icon:e.jsx(Se,{className:"sn-i sn-i-14"}),children:"Ðе подÑвеÑждÑн"})})]})}),e.jsx(g,{label:"ЯзÑк инÑеÑÑейÑа",children:e.jsx($,{ariaLabel:"ЯзÑк инÑеÑÑейÑа",value:a.locale,onChange:s=>h({...a,locale:s}),options:[{value:"ru",label:"Ð ÑÑÑкий",icon:e.jsx(J,{className:"sn-i"})},{value:"en",label:"English",description:"СкоÑо",icon:e.jsx(J,{className:"sn-i"}),disabled:!0}]})}),e.jsx(g,{label:"ЧаÑовой поÑÑ",children:e.jsx($,{ariaLabel:"ЧаÑовой поÑÑ",value:a.timezone,onChange:s=>h({...a,timezone:s}),options:ae.map(s=>({...s,icon:e.jsx(ve,{className:"sn-i"})}))})})]})]}),e.jsx("div",{ref:_,id:"notifications",style:{scrollMarginTop:16},children:e.jsxs(k,{className:"sn-a-notif",children:[e.jsxs("div",{className:"sn-a-notif-head",children:[e.jsx("h3",{children:"УведомлениÑ"}),e.jsx("span",{className:"sn-eyebrow sn-a-notif-col",children:"ÐоÑÑа"}),e.jsx("span",{className:"sn-eyebrow sn-a-notif-col",children:"Push"})]}),e.jsx(ze,{push:c}),Me.map(s=>e.jsxs("div",{className:"sn-a-notif-row",children:[e.jsxs("span",{style:{flexGrow:1,minWidth:0},children:[e.jsx("b",{children:s.title}),e.jsx("small",{children:s.description})]}),e.jsx("span",{className:"sn-a-notif-col",children:e.jsx(G,{label:`${s.title} â на поÑÑÑ`,checked:a.prefs[s.key].email,onChange:r=>D(s.key,"email",r)})}),e.jsx("span",{className:"sn-a-notif-col",children:e.jsx(G,{label:`${s.title} â push`,checked:a.prefs[s.key].push,onChange:r=>{D(s.key,"push",r),r&&c.state==="off"&&!c.busy&&c.enable()}})})]},s.key))]})}),e.jsxs(k,{className:"sn-a-prof-security",children:[e.jsxs("span",{style:{display:"flex",flexDirection:"column",gap:2,flexGrow:1,minWidth:0},children:[e.jsx("span",{style:{fontSize:15,fontWeight:600},children:"ÐаÑолÑ"}),e.jsx("span",{style:{fontSize:13,color:"var(--sn-ink-3)"},children:n.hasPassword?"ÐÐ»Ñ Ð²Ñ
ода по поÑÑе":`СейÑÐ°Ñ Ð²Ñ Ð²Ñ
одиÑе ÑеÑез ${n.authProvider==="yandex"?"Ð¯Ð½Ð´ÐµÐºÑ ID":"внеÑний ÑеÑвиÑ"}. ÐадайÑе паÑолÑ, ÑÑÐ¾Ð±Ñ Ð²Ñ
одиÑÑ Ð¸ по поÑÑе.`})]}),e.jsx(p,{variant:"quiet",icon:e.jsx(Y,{className:"sn-i sn-i-16"}),onClick:()=>F(!0),children:n.hasPassword?"СмениÑÑ Ð¿Ð°ÑолÑ":"ÐадаÑÑ Ð¿Ð°ÑолÑ"})]}),e.jsx(Ee,{open:C,hasPassword:n.hasPassword,onClose:()=>F(!1),onChanged:s=>{F(!1),j({...n,hasPassword:!0}),W(n,s),t.success("ÐаÑÐ¾Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½Ñн")}})]})}export{os 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.