1import{X as y,G as m,r as k,j as e,x as n,B as l}from"./app-czPFo12y.js";import{M as j,I as d}from"./Footer-wPZ09Ppw.js";import{C as v}from"./CabinetLayout-BmTAp0mi.js";import"./favoriteFolders-BQZKBtBy.js";import"./loader-circle-Bcw1lMRg.js";import"./trash-2-CWN75zKV.js";import"./chevron-right-hj2-TUZX.js";import"./chevron-down-BqKweUYI.js";function q({mustVerifyEmail:x=!1,status:c,hasStories:g=!1,requiresPasswordForDelete:u=!0,meta:i={}}){const{auth:h}=y().props,s=h?.user,r=m({name:s?.name??"",fullname:s?.fullname??"",email:s?.email??""}),t=m({password:"",delete_stories:!1}),[p,o]=k.useState(!1),b=a=>{a.preventDefault(),r.patch(route("profile.update"))},f=a=>{a.preventDefault(),t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>o(!1),onFinish:()=>t.reset()})};return e.jsxs(e.Fragment,{children:[e.jsx(j,{meta:{title:i.title||"ÐÑоÑÐ¸Ð»Ñ â ÐаÑÑпад",...i}}),e.jsx(v,{children:e.jsxs("div",{className:"space-y-8 max-w-xl",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl lg:text-2xl font-semibold text-gray-900 dark:text-gray-100",children:"ÐккаÑнÑ"}),e.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:["Email и вÑ
од. ÐваÑÐ°Ñ Ð¸ пÑблиÑнÑй пÑоÑÐ¸Ð»Ñ â в Ñазделе"," ",e.jsx(n,{href:route("profile.author"),className:"text-orangie hover:underline",children:"ÐÑоÑÐ¸Ð»Ñ Ð°Ð²ÑоÑа"}),". СпиÑок блокиÑовок â в Ñазделе"," ",e.jsx(n,{href:route("profile.blocks"),className:"text-orangie hover:underline",children:"ÐлокиÑовки"}),"."]})]}),e.jsxs("form",{onSubmit:b,className:"bg-gray-50 dark:bg-gray-800/50 rounded-xl p-6 border border-gray-100 dark:border-gray-700 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"ÐÐ¼Ñ Ð² кабинеÑе"}),e.jsx(d,{id:"name",value:r.data.name,onChange:a=>r.setData("name",a.target.value),required:!0,autoComplete:"name",className:"w-full bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-foreground"}),r.errors.name&&e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:r.errors.name})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"fullname",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Ðолное имÑ"}),e.jsx(d,{id:"fullname",value:r.data.fullname,onChange:a=>r.setData("fullname",a.target.value),autoComplete:"name",className:"w-full bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-foreground"}),r.errors.fullname&&e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:r.errors.fullname})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Email"}),e.jsx(d,{id:"email",type:"email",value:r.data.email,onChange:a=>r.setData("email",a.target.value),required:!0,autoComplete:"username",className:"w-full bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-foreground"}),r.errors.email&&e.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:r.errors.email})]}),x&&s?.email_verified_at==null&&e.jsxs("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:["Email не подÑвеÑждÑн."," ",e.jsx(n,{href:route("verification.send"),method:"post",as:"button",className:"text-orangie hover:underline",children:"ÐÑпÑавиÑÑ Ð¿Ð¸ÑÑмо повÑоÑно"})]}),c==="verification-link-sent"&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"СÑÑлка Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¾ÑпÑавлена на Ð²Ð°Ñ email."}),e.jsx(l,{type:"submit",disabled:r.processing,className:"bg-orangie hover:bg-orangie/90",children:r.processing?"СоÑ
Ñанение...":"СоÑ
ÑаниÑÑ"})]}),e.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800/50 rounded-xl p-6 border border-gray-100 dark:border-gray-700 space-y-4",children:[e.jsx("h2",{className:"text-lg font-medium text-gray-900 dark:text-gray-100",children:"Удаление аккаÑнÑа"}),e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"ÐоÑле ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð°ÐºÐºÐ°ÑнÑа вÑе даннÑе бÑдÑÑ ÑÐ´Ð°Ð»ÐµÐ½Ñ Ð±ÐµÐ·Ð²Ð¾Ð·Ð²ÑаÑно."}),p?e.jsxs("form",{onSubmit:f,className:"space-y-3",children:[u&&e.jsxs(e.Fragment,{children:[e.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"ÐведиÑе паÑÐ¾Ð»Ñ Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑждениÑ"}),e.jsx(d,{id:"password",type:"password",value:t.data.password,onChange:a=>t.setData("password",a.target.value),placeholder:"ÐаÑолÑ",className:"w-full max-w-xs bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-foreground"}),t.errors.password&&e.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:t.errors.password})]}),g&&e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:t.data.delete_stories,onChange:a=>t.setData("delete_stories",a.target.checked),className:"rounded border-gray-300 dark:border-gray-600 text-red-600 focus:ring-red-500"}),e.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"УдалиÑÑ Ð²Ñе мои иÑÑоÑии"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(l,{type:"submit",variant:"outline",className:"text-red-600 dark:text-red-400 border-red-200 dark:border-red-800 hover:bg-red-50 dark:hover:bg-red-900/30",disabled:t.processing,children:t.processing?"Удаление...":"УдалиÑÑ Ð½Ð°Ð²Ñегда"}),e.jsx(l,{type:"button",variant:"outline",onClick:()=>{o(!1),t.reset()},children:"ÐÑмена"})]})]}):e.jsx(l,{type:"button",variant:"outline",className:"text-red-600 dark:text-red-400 border-red-200 dark:border-red-800 hover:bg-red-50 dark:hover:bg-red-900/30",onClick:()=>o(!0),children:"УдалиÑÑ Ð°ÐºÐºÐ°ÑнÑ"})]})]})})]})}export{q 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.