1import{q as d,j as e,L as x,B as h,a0 as i,a6 as j}from"./index-CHzKhuDb.js";import{C as u}from"./content-section-CjALhlTt.js";import{u as f,a as p,F as N,b as o,c as n,d as l,e as r,f as b,h as c}from"./form-DXaTLenZ.js";import{s as g}from"./show-submitted-data-BgXS1a5b.js";import{C as v}from"./checkbox-BBMjDZNu.js";import{R as C,a as m}from"./radio-group-BMetyb8r.js";import{S as t}from"./switch-BL5_EVra.js";import"./separator-Dz62Em8m.js";import"./index-D-iclG3d.js";import"./label-Cq3TPjRZ.js";import"./index-3mP8ZZKM.js";import"./check-CnekOt_r.js";import"./index-C3h0LNU5.js";import"./index-DJgRP4Vl.js";import"./index-D4PnepHB.js";const y=d({type:j(["all","mentions","none"],{error:a=>a.input===void 0?"ÐожалÑйÑÑа, вÑбеÑиÑе Ñип Ñведомлений.":void 0}),mobile:i().default(!1).optional(),communication_emails:i().default(!1).optional(),social_emails:i().default(!1).optional(),marketing_emails:i().default(!1).optional(),security_emails:i()}),k={communication_emails:!1,marketing_emails:!1,social_emails:!0,security_emails:!0};function _(){const a=f({resolver:p(y),defaultValues:k});return e.jsx(N,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(s=>g(s)),className:"space-y-8",children:[e.jsx(o,{control:a.control,name:"type",render:({field:s})=>e.jsxs(n,{className:"relative space-y-3",children:[e.jsx(l,{children:"УведомлÑÑÑ Ð¼ÐµÐ½Ñ Ð¾..."}),e.jsx(r,{children:e.jsxs(C,{onValueChange:s.onChange,defaultValue:s.value,className:"flex flex-col gap-2",children:[e.jsxs(n,{className:"flex items-center",children:[e.jsx(r,{children:e.jsx(m,{value:"all"})}),e.jsx(l,{className:"font-normal",children:"ÐÑе новÑе ÑообÑениÑ"})]}),e.jsxs(n,{className:"flex items-center",children:[e.jsx(r,{children:e.jsx(m,{value:"mentions"})}),e.jsx(l,{className:"font-normal",children:"ÐиÑнÑе ÑообÑÐµÐ½Ð¸Ñ Ð¸ ÑпоминаниÑ"})]}),e.jsxs(n,{className:"flex items-center",children:[e.jsx(r,{children:e.jsx(m,{value:"none"})}),e.jsx(l,{className:"font-normal",children:"ÐиÑего"})]})]})}),e.jsx(b,{})]})}),e.jsxs("div",{className:"relative",children:[e.jsx("h3",{className:"mb-4 text-lg font-medium",children:"Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾ Ñл. поÑÑе"}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(o,{control:a.control,name:"communication_emails",render:({field:s})=>e.jsxs(n,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(l,{className:"text-base",children:"ÐиÑÑма об акÑивноÑÑи"}),e.jsx(c,{children:"ÐолÑÑайÑе пиÑÑма об акÑивноÑÑи ваÑего аккаÑнÑа."})]}),e.jsx(r,{children:e.jsx(t,{checked:s.value,onCheckedChange:s.onChange})})]})}),e.jsx(o,{control:a.control,name:"marketing_emails",render:({field:s})=>e.jsxs(n,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(l,{className:"text-base",children:"ÐаÑкеÑинговÑе пиÑÑма"}),e.jsx(c,{children:"ÐолÑÑайÑе пиÑÑма о новÑÑ
пÑодÑкÑаÑ
, ÑÑнкÑиÑÑ
и многом дÑÑгом."})]}),e.jsx(r,{children:e.jsx(t,{checked:s.value,onCheckedChange:s.onChange})})]})}),e.jsx(o,{control:a.control,name:"social_emails",render:({field:s})=>e.jsxs(n,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(l,{className:"text-base",children:"СоÑиалÑнÑе пиÑÑма"}),e.jsx(c,{children:"ÐолÑÑайÑе пиÑÑма о запÑоÑаÑ
в дÑÑзÑÑ, подпиÑкаÑ
и многом дÑÑгом."})]}),e.jsx(r,{children:e.jsx(t,{checked:s.value,onCheckedChange:s.onChange})})]})}),e.jsx(o,{control:a.control,name:"security_emails",render:({field:s})=>e.jsxs(n,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(l,{className:"text-base",children:"ÐиÑÑма безопаÑноÑÑи"}),e.jsx(c,{children:"ÐолÑÑайÑе пиÑÑма об акÑивноÑÑи и безопаÑноÑÑи аккаÑнÑа."})]}),e.jsx(r,{children:e.jsx(t,{checked:s.value,onCheckedChange:s.onChange,disabled:!0,"aria-readonly":!0})})]})})]})]}),e.jsx(o,{control:a.control,name:"mobile",render:({field:s})=>e.jsxs(n,{className:"relative flex flex-row items-start",children:[e.jsx(r,{children:e.jsx(v,{checked:s.value,onCheckedChange:s.onChange})}),e.jsxs("div",{className:"space-y-1 leading-none",children:[e.jsx(l,{children:"ÐÑполÑзоваÑÑ Ð´ÑÑгие наÑÑÑойки Ð´Ð»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑнÑÑ
ÑÑÑÑойÑÑв"}),e.jsxs(c,{children:["ÐÑ Ð¼Ð¾Ð¶ÐµÑе ÑпÑавлÑÑÑ Ð¼Ð¾Ð±Ð¸Ð»ÑнÑми ÑведомлениÑми на"," ",e.jsx(x,{to:"/settings",className:"underline decoration-dashed underline-offset-4 hover:
1decoration-solid",children:"ÑÑÑаниÑе мобилÑнÑÑ
наÑÑÑоек"}),"."]})]})]})}),e.jsx(h,{type:"submit",children:"ÐбновиÑÑ ÑведомлениÑ"})]})})}function F(){return e.jsx(u,{title:"УведомлениÑ",desc:"ÐаÑÑÑойÑе ÑпоÑоб полÑÑÐµÐ½Ð¸Ñ Ñведомлений.",children:e.jsx(_,{})})}const J=F;export{J as component};
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.